Exploring Latent Representations of RR-Interval Dynamics Beyond Poincaré Maps

Francisco-Manuel Melgarejo-Meseguer1, Estela Sánchez-Carballo2, Dafne Lozano Paredes3, Enrique Feito-Casares1, Luis Bote-Curiel3, Francisco-Javier Gimeno-Blanes4, Juan José Sánchez Muñoz5, arcadi Garcia6, Jose Luis Rojo-Alvarez1
1Universidad Rey Juan Carlos, 2Department of Signal Theory and Communications, Telematics and Computing Systems, Universidad Rey Juan Carlos, 3Rey Juan Carlos University, 4Universidad Miguel Hernandez, 5Arrhythmia and Electrophysiology Unit, Department of Cardiology. Hospital Universitario Virgen de la Arrixaca, Spain, 6University of Murcia (Spain)


Abstract

Introduction. Poincaré-plot Heart Rate Variability analysis is widely used for noninvasive characterization of cardiac rhythm dynamics, but limited by its static 2D geometry and handcrafted features, which miss nonlinear arrhythmia dynamics. Representation-learning approaches enable feature-free, temporally aware embeddings. We investigate contrastive latent-space representations of tachograms to discriminate sinus rhythm (SR), atrial fibrillation (AF), and paced rhythms using an end-to-end LSTM autoencoder with contrastive projection.

Materials and Methods. The dataset comprised nine 24-hour Holter recordings, with three subjects for each of the three target rhythms. RR-interval series were manually cleaned, resampled to 1 Hz, z-score normalized, and segmented into 5-minute windows. The model consists of an LSTM encoder mapping each window into a three-dimensional latent manifold, an LSTM decoder for reconstruction, and a self-attention contrastive module. Training optimized a joint objective combining the MSE reconstruction loss with an InfoNCE contrastive loss to enforce invariance across original–augmented pairs.

Experiments and Results. The resulting 3-D embeddings were compared against classical Poincaré plots and UMAP using spatial dispersion and structural organization metrics, including the Besag L-function and its area under the curve (AUC-L), where higher values indicate more organized spatial patterns. The AUC-L scores for SR, AF, and paced rhythms were: Contrastive-101.818, 72.528, 165.928; UMAP-60.056, 38.250, 41.031; Poincaré-55.320, 115.691, 239.514.

Conclusions. Contrastive latent-space embeddings capture tachogram structure more distinctly than geometric baselines, providing a compact and well-organized representation suited for robust automated rhythm characterization.