Learning ECG Image Representations via Dual Physiological-Aware Alignments
Organizations: University of Cambridge · Singapore Management University · Eindhoven University of Technology, Netherlands
Abstract
Electrocardiograms (ECGs) are among the most widely used diagnostic tools for cardiovascular diseases, and a large amount of ECG data worldwide appears only in image form. However, most existing automated ECG analysis methods rely on access to raw signal recordings, limiting their applicability in real-world and resource-constrained settings. In this paper, we present ECG-Scan, a self-supervised framework for learning clinically generalized representations from ECG images through dual physiological-aware alignments: 1) Our approach optimizes image representation learning using multimodal contrastive alignment between image and gold-standard signal-text modalities. 2) We further integrate domain knowledge via soft-lead constraints, regularizing the reconstruction process and improving signal lead inter-consistency. Extensive benchmarking across multiple datasets and downstream tasks demonstrates that our image-based model achieves superior performance compared to existing image baselines and notably narrows the gap between ECG image and signal analysis. These results highlight the potential of self-supervised image modeling to unlock large-scale legacy ECG data and broaden access to automated cardiovascular diagnostics.
Figures & tables
| Lead | PTB-XL | CPSC | CSN |
|---|---|---|---|
| Lead III | 50.70 | 89.62 | 46.41 |
| Lead aVR | 48.65 | 45.61 | 36.54 |
| Lead aVL | 47.38 | 41.89 | 33.55 |
| Lead aVF | 47.13 | 43.95 | 35.70 |
| Methods | PTBXL-Super | PTBXL-Sub | PTBXL-Form | PTBXL-Rhythm | CPSC2018 | CSN | Average | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1% | 10% | 100% | 1% | 10% | 100% | 1% | 10% | 100% | 1% | 10% | 100% | 1% | 10% | 100% | 1% | 10% | 100% | 1% | 10% | 100% | ||
| 10s Signal Input | SimCLR ( Chen et al., 2020 ) | |||||||||||||||||||||
| BYOL ( Grill et al., 2020 ) | ||||||||||||||||||||||
| BarlowTwins ( Zbontar et al., 2021 ) | ||||||||||||||||||||||
| MoCo-v3 ( Chen et al., 2021 ) | ||||||||||||||||||||||
| SimSiam ( Chen and He, 2021 ) | ||||||||||||||||||||||
| Methods | ECG Input | PTBXL-Super | PTBXL-Sub | PTBXL-Form | PTBXL-Rhythm | CPSC2018 | CSN | Average |
|---|---|---|---|---|---|---|---|---|
| MERL ( Liu et al., 2024a ) | 10s Signal | 74.2 | 75.7 | 65.9 | 78.5 | 82.8 | 74.4 | 75.3 |
| D-BETA ( Hung et al., 2025 ) | 10s Signal | 76.2 | 75.9 | 66.1 | 88.6 | 80.1 | 76.3 | 77.1 |
| MELP ( Wang et al., 2025 ) | 10s Signal | 76.2 | 81.2 | 69.1 | 85.4 | 84.2 | 77.6 | 79.0 |
| DIP + D-BETA | Image | 61.2 | 63.4 | 53.1 | 76.5 | 58.4 | 66.3 | 63.2 |
| nnU-Net + D-BETA ( Krones et al., 2024 ) | Image | 61.1 | 65.2 | 58.3 | 75.9 | 72.0 | 66.5 | 66.5 |
| Open-Digitizer + D-BETA ( Stenhede et al., 2026 ) | Image | 67.3 | 64.8 | 58.6 | 82.7 | 73.6 | 64.4 | 68.6 |
| Human Expert’s Interpretation | Signal-based Models | Image-based Models | ||||||
|---|---|---|---|---|---|---|---|---|
| Cardio Resident | Emergency Resident | Medical Student | MERL | D-BETA | DIP + D-BETA | nnUnet + D-BETA | Open-Digitizer + D-BETA | ECG-Scan |
| 92.07 | 90.52 | 93.61 | 85.14 | 96.79 | 64.97 | 85.20 | 94.04 | 94.78 |
| Source Domain | Zero-shot | Training Ratio | PTBXL-Super | CPSC2018 | CSN | Average | |||
|---|---|---|---|---|---|---|---|---|---|
| Target Domain | CPSC2018 | CSN | PTBXL-Super | CSN | PTBXL-Super | CPSC2018 | |||
| SimCLR ( Chen et al., 2020 ) | ✗ | 100% | 69.62 | 73.05 | 56.65 | 66.36 | 59.74 | 62.11 | 65.22 |
| BYOL ( Grill et al., 2020 ) | ✗ | 100% | 70.27 | 74.01 | 57.32 | 67.56 | 60.39 | 63.24 | 65.63 |
| BarlowTwins ( Zbontar et al., 2021 ) | ✗ | 100% | 68.98 | 72.85 | 55.97 | 65.89 | 58.76 | 61.35 | 64.13 |
| MoCo-v3 ( Chen et al., 2021 ) | ✗ | 100% | 69.41 | 73.29 | 56.54 | 66.12 | 59.82 | 62.07 | 64.21 |
| SimSiam ( Chen and He, 2021 ) | ✗ | 100% | 70.06 | 73.92 | 57.21 | 67.48 | 60.23 | 63.09 | 65.33 |
| Zero-shot | Linear probing | |||
|---|---|---|---|---|
| – | ||||
| ✓ | ||||
| ✓ | ✓ | |||
| ✓ | ✓ | ✓ |
| Modality | Replaced Encoder | Zero-shot | Linear probing |
|---|---|---|---|
| Text | Bio-ClinicalBERT ( Alsentzer et al., 2019 ) | ||
| Image | MedSigLIP ( Sellergren et al., 2025 ) | ||
| Signal | MELP ( Wang et al., 2025 ) | ||
| ECG-Scan |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | # Categories | Train | Valid | Test | Optimizer | # Epoch | Batch size | Learning rate |
|---|---|---|---|---|---|---|---|---|
| MIMIC-IV-ECG ( Gow et al., 2023 ) | – | 710,560 | 78,951 | – | AdamW | – | 80 | 0.0005 |
| PTBXL-Super ( Wagner et al., 2020 ) | 5 | 17,084 | 2,146 | 2,158 | AdamW | 100 | 16 | 0.001 |
| PTBXL-Sub ( Wagner et al., 2020 ) | 23 | 17,084 | 2,146 | 2,158 | AdamW | 100 | 16 | 0.001 |
| PTBXL-Form ( Wagner et al., 2020 ) | 19 | 7,197 | 901 | 880 | AdamW | 100 | 16 | 0.001 |
| PTBXL-Rhythm ( Wagner et al., 2020 ) | 12 | 16,832 | 2,100 | 2,098 | AdamW | 100 | 16 | 0.001 |
| CPSC2018 ( Liu et al., 2018 ) | 9 | 4,950 | 551 | 1,376 | AdamW | 100 | 16 | 0.001 |