Generative recurrence analysis and metric learning for detection of atrial fibrillation from short ECG data
- 1 October 2026
- journal article
- Published by AIP Publishing in Chaos: An Interdisciplinary Journal of Nonlinear Science
- Vol. 36 (10)
Abstract
Electrocardiogram (ECG) signals exhibit complex, nonlinear, and nonstationary dynamics that are not fully captured by conventional time series analysis methods. In this study, we propose a novel framework for atrial fibrillation (AF) detection that integrates a beat-level recurrence representation with supervised metric learning. ECG recordings are first segmented into beat-centered waveforms that serve as effective dynamical states, avoiding the inaccurate estimation of time delay and embedding dimension from short recordings. Rather than constructing conventional recurrence plots from delay-embedded trajectories, the proposed method forms a beat-to-beat dissimilarity matrix using the Jensen–Shannon distance between normalized ECG beat segments. This representation captures variations in beat morphology and rhythm irregularity and provides information complementary to heart rate variability descriptors and recurrence quantification features. A contrastive Gaussian-mixture variational autoencoder learns an eight-component latent distribution with two components assigned to each of the four rhythm classes. Reconstruction, Gaussian-mixture regularization, supervised classification, clustering, and contrastive objectives jointly promote informative, compact, and class-discriminative latent representations. Class-conditional samples drawn from the learned mixture provide balanced synthetic latent representations for classifier training. Evaluated on the four-class PhysioNet/CinC 2017 dataset, the proposed framework achieves an overall accuracy of approximately 94%, with F1 scores of 0.97, 0.95, 0.92, and 0.86 for normal sinus rhythm, AF, other rhythm, and noise, respectively. These results demonstrate the potential of combining beat-level nonlinear dynamics, structured generative modeling, and metric learning for AF detection from short ECG recordings.Keywords
Funding Information
- National Science Foundation (DMS-2235451)
- Simons Foundation (MPS-NITMB-00005320)
This publication has 23 references indexed in Scilit:
- BioSPPy: A Python toolbox for physiological signal processingSoftwareX, 2024
- Stacking segment-based CNN with SVM for recognition of atrial fibrillation from single-lead ECG recordingsBiomedical Signal Processing and Control, 2021
- Pattern recognition and automatic identification of early-stage atrial fibrillationExpert Systems with Applications, 2020
- Intrinsic recurrence quantification analysis of nonlinear and nonstationary short-term time seriesChaos: An Interdisciplinary Journal of Nonlinear Science, 2020
- Automated diagnosis of arrhythmia using combination of CNN and LSTM techniques with variable length heart beatsComputers in Biology and Medicine, 2018
- Heterogeneous recurrence analysis of heartbeat dynamics for the identification of sleep apnea eventsComputers in Biology and Medicine, 2016
- Atrial fibrillationNature Reviews Disease Primers, 2016
- Time series forecasting for nonlinear and non-stationary processes: a review and comparative studyIIE Transactions, 2015
- Predicting termination of atrial fibrillation based on the structure and quantification of the recurrence plotMedical Engineering & Physics, 2008
- Fractal dynamics in physiology: Alterations with disease and agingProceedings of the National Academy of Sciences of the United States of America, 2002