Pathology-Aware Multi-View Contrastive Learning for Patient-Independent ECG Reconstruction
Organizations: Department of Computer Science and Engineering, Indian Institute of Technology Roorkee, Roorkee 247667, India · Department of Biosciences and Bioengineering, Indian Institute of Technology Roorkee, Roorkee 247667, India
Abstract
Reconstructing a 12-lead electrocardiogram (ECG) from a reduced lead set is an ill-posed inverse problem due to anatomical variability. Standard deep learning methods often ignore underlying cardiac pathology losing vital morphology in precordial leads. We propose Pathology-Aware Multi-View Contrastive Learning, a framework that regularizes the latent space through a pathological manifold. Our architecture integrates high-fidelity time-domain waveforms with pathology-aware embeddings learned via supervised contrastive alignment. By maximizing mutual information between latent representations and clinical labels, the framework learns to filter anatomical "nuisance" variables. On the PTB-XL dataset, our method achieves approx. 76% reduction in RMSE compared to state-of-the-art model in patient-independent setting. Cross-dataset evaluation on the PTB Diagnostic Database confirms superior generalization, bridging the gap between hardware portability and diagnostic-grade reconstruction.
Figures & tables
| Lead | RMSE (mV) | Pearson | |||||||
|---|---|---|---|---|---|---|---|---|---|
| C | C-h | C | C-h | C | C-h | ||||
| 0.063 | 0.052 | +18.2% | 0.754 | 0.839 | +11.2% | 0.940 | 0.951 | +1.2% | |
| 0.115 | 0.101 | +12.7% | 0.670 | 0.744 | +11.0% | 0.913 | 0.926 | +1.5% | |
| 0.118 | 0.108 | +8.7% | 0.605 | 0.687 | +13.5% | 0.893 | 0.906 | +1.4% | |
| 0.094 | 0.084 | +10.3% | 0.684 | 0.717 | +4.8% | 0.922 | 0.931 | +1.0% | |
| 0.071 | 0.063 | +11.4% | 0.699 | 0.760 | +8.8% | 0.935 | 0.944 | +1.0% | |
| Lead | Proposed (C-h) | Rajotte et al. [ 26 ] | ||||
| RMSE | RMSE | |||||
| 80.4% | 5.4% | |||||
| 71.7% | 6.4% | |||||
| 73.8% | 12.9% | |||||
| 75.4% | 3.6% | |||||
| 80.5% | 4.9% | |||||
| Method | Patient Indep. | Input Leads | RMSE | Pearson |
|---|---|---|---|---|
| Garg et al. (2023) [ 19 ] | No | II | – | 0.805 |
| Lu et al. (2025) [ 25 ] | No | 0.160 | 0.860 | |
| Hebiguchi et al. (2025) [ 18 ] | No | I, II, | - | 0.93 |
| Ours | Yes | I, II, | 0.082 | 0.932 |
| Method | Patient Indep. | Input Leads | RMSE | Pearson |
|---|---|---|---|---|
| Smith et al. (2021) [ 23 ] | No | 6 limb leads + | 0.173 | 0.921 |
| Moghaddam et al. (2025) [ 4 ] | Yes | 3-leads | – | 0.76 |
| Ours | Yes | I, II, | 0.095 | 0.887 |