Masked Autoencoders that Feel the Heart: Unveiling Simplicity Bias for ECG Analyses

He-Yang Xu, Hongxiang Gao, Yuwen Li, Xiu-Shen Wei, Chengyu LiuarXiv 2025 · DOI

Introduction: The Challenge of Simplicity Bias

Electrocardiograms (ECG) are fundamental tools for diagnosing cardiac conditions. However, the signal is a complex mix of high-amplitude "coarse-grained" features, like the QRS complex (ventricular contraction), and subtle "fine-grained" features, such as P and T waves. Recent research identifies a critical flaw in standard supervised AI models: Simplicity Bias (SB). These models often achieve high accuracy by over-relying on dominant patterns and global rhythms, effectively ignoring the subtle morphological deformations that are clinically vital for early diagnosis.

Cardiologist interpretation vs. model bias

While Self-Supervised Learning (SSL) has shown promise in mitigating this bias, existing methods often fail to capture multi-scale representations across both time and frequency domains.

The LEAST Framework

To address these limitations, the authors introduce LEAST (muLti-grained tEmporal-frequency Aware maSked auToencoders). This framework is designed to capture the full diagnostic richness of the heart through three key innovations:

  1. ECG-adapted Patch Embedding: A lightweight 1D ResNet extracts local morphological features and inter-lead correlations, preserving the anatomical structure of the 12-lead signal better than standard flat tokens.
  2. Temporal-Frequency aware Filters (TFF): Integrated into the encoder, these filters utilize Discrete Fourier Transforms (DFT) to analyze the signal in the frequency domain alongside temporal attention. This dual-domain approach allows the model to simultaneously "hear" rhythms and "see" shapes.
  3. Multi-Grained Prototype Reconstruction (MGPR): LEAST aligns intermediate representations between the encoder and decoder. By matching "prototypes" (averaged semantic features) at different layers, the model is forced to preserve information beyond just the dominant coarse-grained patterns.
Architecture of the LEAST framework

Large-Scale Pre-training and Evaluation

The model was pre-trained on a massive corpus of 1.53 million ECG recordings, combining a new Chinese multi-site dataset (380,000 recordings), MIMIC-IV-ECG (~800,000), and CODE-15% (~345,000).

Evaluation across six benchmarks demonstrated that LEAST achieves state-of-the-art (SOTA) performance:

  • Classification: Achieved 89.60% accuracy on PTB-XL and 97.55% on CPSC2018.
  • Segmentation: Reached a 99.71% F1 score for R-peak detection, showing extreme precision in heartbeat localization.
  • Forecasting: In survival prediction (SAMI-TROP), it led with a C-index of 0.8066, capturing long-term prognostic markers missed by other models.

Insights and Conclusion

Empirical evidence shows that while supervised models focus almost exclusively on the QRS complex, LEAST's masked autoencoding approach naturally attends to P and T waves. By explicitly modeling the frequency domain, the framework becomes significantly more sensitive to rhythmic oscillations characteristic of arrhythmias. Furthermore, LEAST is highly efficient, reaching peak performance in half the pre-training time of standard Masked Autoencoders.

Future work will focus on scaling these dual-domain processing techniques for low-power wearable devices and investigating their efficacy on long-tail, rare cardiac events.

Summary updated

BibTeX
@misc{xu2025masked,
  author = {He-Yang Xu and Hongxiang Gao and Yuwen Li and Xiu-Shen Wei and Chengyu Liu},
  title = {{Masked Autoencoders that Feel the Heart: Unveiling Simplicity Bias for ECG Analyses}},
  year = {2025},
  eprint = {2506.22495},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.22495},
}
Figure