Manifold-Constrained Data Augmentation via SPD Geometry for Self-Supervised ECG Representation Learning

Authors

  • Pranayachandanreddy Gottimukkala Independent Researcher Author
  • Regiane Relva Romano Faculty of Engineering of Sorocaba (FACENS), Sorocaba, São Paulo, Brazil; VIP-Systems Tecnologia & Inovação, Sorocaba, São Paulo, Brazil Author

Keywords:

Self-Supervised Learning, Electrocardiogram (ECG), Riemannian Manifold, Contrastive Learning, Physiological Data Augmentation

Abstract

Self-supervised learning for electrocardiogram (ECG) analysis often relies on stochastic data augmentation techniques such as random cropping or noise injection. These conventional methods, however, may generate physiologically implausible signals that degrade downstream representation quality. We propose a novel data augmentation framework that operates on a low-dimensional Riemannian manifold of symmetric positive-definite matrices. The core idea is to embed each multi-lead ECG segment as a point on this manifold, thereby capturing inter-lead correlations in a geometry-constrained manner. Our method first partitions the ECG signal into temporal patches and computes sample covariance matrices for each patch. These matrices are then projected into a lower-dimensional space via a learnable linear map, preserving the essential lead-correlation structure. A transformer encoder processes the resulting sequence of tangent-space vectors, and the output is aggregated to produce a canonical manifold representation of the entire segment. To enforce physiological validity, we introduce a physics-informed residual block that corrects the embedded point toward a prior derived from Einthoven’s triangle constraints. Augmented views are subsequently generated through geodesic interpolation between the corrected point and a randomly sampled neighbor on the manifold, followed by a harmonic perturbation of the eigenvalues. This procedure yields smooth variations in the covariance structure while maintaining the eigenbasis, thereby mimicking natural physiological variability. The augmented covariance matrix is then projected back to the original lead space, and a Gaussian process is sampled to reconstruct the ECG time series. The entire pipeline is trained end-to-end with a contrastive objective. Our approach ensures that all synthesized signals remain within the submanifold of physiologically plausible covariance structures, a critical advantage over stochastic augmentation methods. We demonstrate that this manifold-constrained augmentation significantly improves the quality of learned ECG representations for downstream tasks such as arrhythmia classification and patient identification.

References

L Wu, J Zhuang, and H Chen. Voco: A simple-yet-effective volume contrastive learning framework for 3d medical image analysis. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2024.

K He, X Chen, S Xie, Y Li, P Dollár, and R Girshick. Masked autoencoders are scalable vision learners. in proceedings of the ieee/cvf conference on computer vision and pattern recognition. 2022, 2022.

Y Na, M Park, Y Tae, and S Joo. Guiding masked representation learning to capture spatio-temporal relationship of electrocardiogram. Technical report, arXiv preprint arXiv:2402.09450, 2024.

A Le Guennec, S Malinowski, et al. Data augmentation for time series classification using convolutional neural networks. In ECML/PKDD Workshop on Advanced Analytics and Learning on Temporal Data, 2016.

SS Barold. Willem einthoven and the birth of clinical electrocardiography a hundred years ago. Cardiac electrophysiology review, 2003.

A Vaswani, N Shazeer, N Parmar, et al. Attention is all you need. In Advances in Neural Information Processing Systems, 2017.

X Wang, B Ozek, A Mohan, A Ravari, et al. Rhythmbert: A self-supervised language model based on latent representations of ecg waveforms for heart disease detection. ICASSP, 2026.

M Gazeran, S Soleymanbaigi, F Daneshfar, et al. Ecg-nat: A self-supervised neighborhood attention transformer for multi-lead electrocardiogram classification. Technical report, arXiv preprint arXiv:2605.13194, 2026.

P Xu, L Li, X Xie, J Lv, C Di, X Gu, and Y Chen. Multi-stage temporal and cross-view contrastive learning for self-supervised multi-lead ecg classification. Biomedical Signal Processing and Control, 2026.

C Ding and C Wu. Self-supervised learning for biomedical signal processing: A systematic review on ecg and ppg signals. Technical report, medRxiv, 2024.

S Jeong, W Ko, AW Mulyadi, et al. Deep efficient continuous manifold learning for time series modeling. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2023.

GE Karniadakis, IG Kevrekidis, L Lu, et al. Physics-informed machine learning. Nature Reviews Physics, 2021.

H Ji, W Gao, and P Zhou. P2es: Physiology-conditioned diffusion for 12-lead ecg generation from ppg. Smart Health, 2026.

X Bao, E Kamavuako, and S Chatterjee. Generative modeling for physiological signals. Technical report, arXiv preprint arXiv:2606.23864, 2026.

T Oladunni, F Ganiyu-Adewumi, C Baidoo, et al. Complementarity-preserving generative theory for multimodal ecg synthesis: A quantum-inspired approach. Technical report, arXiv preprint arXiv:2603.26695, 2026.

P Zanini, M Congedo, C Jutten, S Said, et al. Transfer learning: A riemannian geometry framework with applications to brain-computer interfaces. IEEE Transactions on Biomedical Engineering, 2017.

A Nolin-Lapalme, O Tastet, A Sowa, J Delfrate, et al. Deepecg. ai: An ai-enhanced ecg analysis platform to bridge the expertise gap from primary care to cardiology. Journal of Electrocardiology, 2026.

R Sameni, GD Clifford, C Jutten, et al. Multichannel ecg and noise modeling: Application to maternal and fetal ecg signals. EURASIP Journal on Advances in Signal Processing, 2007.

G Bădiţoiu. Classification of pseudo-riemannian submersions with totally geodesic fibres from pseudo-hyperbolic spaces. In Proceedings of the London Mathematical Society, 2012.

H Hajri, I Ilea, S Said, L Bombrun, and Y Berthoumieu. Riemannian laplace distribution on the space of symmetric positive definite matrices. Entropy, 2016.

Q Zhou, X Luo, and K Du. Interpretable detection of left ventricular hypertrophy using commercial ecg features and machine learning: a study based on the ptb-xl+ dataset. Frontiers in Cardiovascular Medicine, 2026.

E Ribeiro, QB Soares, DA Almeida, JJ Pereira, et al. Long-term continuous monitoring of wearable ecg signals for atrial fibrillation detection. Scientific Reports, 2026.

R Hosseini and S Sra. Matrix manifold optimization for gaussian mixtures. In Advances in Neural Information Processing Systems, 2015.

E Eldele, M Ragab, Z Chen, M Wu, et al. Self-supervised contrastive representation learning for semi-supervised time-series classification. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2023.

N Halko, PG Martinsson, and JA Tropp. Finding structure with randomness: probabilistic algorithms for constructing approximate matrix decompositions siam rev., vol. 53, 217-288 pp. 2011, 2011.

B Peng, E Alcaide, Q Anthony, A Albalak, et al. Rwkv: Reinventing rnns for the transformer era. Findings of the Association for Computational Linguistics: EMNLP 2023, 2023.

A Gu, K Goel, and C Ré. Efficiently modeling long sequences with structured state spaces. arxiv 2021. doi: 10.48550. Technical report, arXiv preprint arXiv.2111.00396, 2022, 2111.

Y Chen, J Liu, L Peng, Y Wu, Y Xu, and Z Zhang. Auto-encoding variational bayes. Cambridge Explorations in Arts and Sciences, 2024.

T Golany, K Radinsky, et al. Simgans: Simulator-based generative adversarial networks for ecg synthesis to improve deep ecg classification. In International Conference on Machine Learning, 2020.

VK Chauhan, J Zhou, P Lu, S Molaei, et al. A brief review of hypernetworks in deep learning. Artificial Intelligence Review, 2024.

S Huckemann, T Hotz, and A Munk. Intrinsic shape analysis: Geodesic pca for riemannian manifolds modulo isometric lie group actions. Statistica Sinica, 2010.

Downloads

Published

2026-09-30

Issue

Section

Articles

How to Cite

Manifold-Constrained Data Augmentation via SPD Geometry for Self-Supervised ECG Representation Learning. (2026). Journal of Advanced Intelligent Computing and Informatics, 1(1), 1-15. https://landing.wrunion.org/ojs/index.php/jaici/article/view/19