Similarity Prediction of Intracardiac Electrograms Images Using Regression Model Based on Siamese Network Architecture

Evgeny Lyan1, Likoh Nicholson2, Adrian Zaman2, Vera Maslova2, Derk Frank1, Thomas Demming1
11 – Department of Internal Medicine III, Cardiology and Angiology, University Hospital Schleswig-Holstein, Kiel, Germany. 2 -German Centre for Cardiovascular Research (DZHK) partner site Hamburg/Kiel/Lübeck, Germany, 2Department of Internal Medicine III, Cardiology and Angiology, University Hospital Schleswig-Holstein, Kiel, Germany


Abstract

Background: Accurately localizing the source of cardiac arrhythmia is crucial for patient outcomes, and pace mapping is the only technique that allows this when the arrhythmia is non-inducible during the electrophysiological study. However, when presented as images by programmer devices, intracardiac electrograms (EGMs) from implantable cardiac devices can only be assessed for similarity by subjective eyeballing, highlighting the need for objective measures.

Aim: This study aimed to develop regression models based on Siamese network architecture for objectively measuring similarities between images of two distinct signals to improve the precision of arrhythmia mapping.

Methods: We developed six regression models based on Siamese neural network architecture, using pre-trained Resnet18, Efficientnet_b0, and MobileNet_V2 as backbones and two types of custom similarity layers. We created a comprehensive library of augmented images from 17,421 digital intracardiac EGMs and generated training datasets for each of two similarity metrics (Pearson correlation coefficient and Manhattan similarity), comprising 40,000 pairs of images with labels calculated using corresponding digital signals. We used Adam's optimizer with a learning rate of 10−4 to minimize the mean squared error (MSE) loss function over 100 epochs with a batch size of 64.

Results: The best performance showed the model with Efficientnet_b0 as the backbone for Manhattan similarity (MSE = 0,002, R2 = 0.98) and Resnet18 as the backbone for Pearson correlation (MSE = 0,009, R2 = 0.973). All models showed better prediction accuracy for Manhattan similarity than for Pearson correlation.

Conclusion: Regression models based on the Siamese network architecture with custom similarity layers provide a promising tool for objectively measuring the similarity of EGM images acquired from implanted devices. Further evaluation of the model's performance in clinical settings is needed to assess its potential for improving the precision of arrhythmia mapping.