arXiv:2610.28083cs.AIOct 2026

Manuscript Offprint

arXiv:2610.28083

IECG: Weakly-Supervised Interpretability-Enhancing Foundation Model for Electrocardiogram

Huynh Dang Nguyen, Trong-Thang Pham, Anh-Thuan Do, Phuong-Nhi Dinh, Brijesh Patel, Ngan Le, Van Nguyen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Electrocardiography (ECG) is a cornerstone of cardiac diagnosis, yet most machine learning methods for ECG analysis lack interpretability, limiting their clinical adoption. We present IECG, a weakly-supervised ECG foundation model that jointly performs diagnostic classification and abnormality localization without requiring manual abnormal region annotations, overcoming a long-standing bottleneck in interpretable ECG learning. Central to IECG is a weakly-supervised attention strategy that explicitly incorporates clinical priors by deriving abnormality heatmap pseudo-labels from established ECG clinical knowledge. These pseudo-labels guide the model's CLS-token attention through a KL-divergence loss, encouraging it to focus on diagnostically relevant waveform regions. During pretraining, IECG is jointly optimized with clinically guided attention supervision, ECG-text contrastive alignment, and report captioning objectives, enabling it to learn rich multimodal representations while producing localized waveform evidence. By explicitly aggregating features from clinically guided attention regions, IECG grounds its diagnostic predictions in interpretable waveform evidence without sacrificing classification performance. Extensive experiments demonstrate that IECG achieves state-of-the-art abnormal region localization while maintaining strong classification performance, advancing trustworthy foundation models for ECG analysis.

1. Introduction

Deep learning architectures for electrocardiogram (ECG) analysis [21, 23, 24, 37] have achieved remarkable success in automated cardiac diagnosis. However, despite their strong predictive performance, these models remain largely uninterpretable: they predict what abnormality is present but fail to explain where the supporting evidence resides within the ECG waveform. This limitation substantially hinders their clinical adoption, as physicians rely not only on diagnostic predictions but also on verifying the underlying waveform morphology. An ECG analysis model should therefore identify both the predicted diagnosis and the localized waveform evidence supporting that prediction.

Despite its importance, abnormality localization remains an unsolved problem for ECG foundation models. The primary challenge is the lack of localized supervision. Large-scale ECG datasets such as MIMIC-IV-ECG [5] and PTB-XL [32] provide only recording-level diagnostic labels and contain no annotations identifying the waveform regions corresponding to each diagnosis. Consequently, existing models are optimized solely for classification and cannot learn to consistently associate predictions with clinically meaningful waveform regions. While various methods can highlight irregular beats [4, 8], they fail to provide specific diagnoses associated with those localized regions.

In this work, we address this challenge by exploiting a key observation: although localized annotations are unavailable, diagnostic criteria for many ECG abnormalities are well established in clinical practice. For example, a PR interval exceeding 200 ms is a diagnostic criterion for first-degree AV block, while ST-segment elevation greater than 0.1 mV indicates myocardial injury. We formalize these clinical heuristics into an automatic pseudo-label generation pipeline that produces abnormality heatmaps directly

†^{\dagger}Equal contribution.

∗^{*}Equal advising.

from ECG signals. By explicitly incorporating these clinical priors, we transform localization from a manual annotation problem into a weakly-supervised learning problem.

Building upon this insight, we propose IECG, an attention-enhanced interpretable ECG foundation model that jointly performs classification and abnormality localization. During training, clinically derived abnormality heatmaps supervise the model's attention through a Kullback-Leibler (KL) divergence objective, encouraging attention to align with diagnostically relevant waveform regions while learning disease classification. As a result, IECG produces both diagnostic predictions and localized visual evidence supporting those predictions. For example, when diagnosing atrial fibrillation, the model highlights the irregularly absent P-wave regions that cardiologists naturally inspect during clinical interpretation.

Extensive experiments demonstrate that IECG achieves state-of-the-art (SOTA) abnormal region localization, reaching 75.55% AUROC and outperforming existing attribution methods, including approaches specifically designed for this task, while archiving competitive classification performance. These findings suggest that clinically guided attention supervision can significantly enhance the interpretability of ECG foundation models without requiring manual attention annotations.

Our main contributions are summarized as follows:

• We propose IECG, an ECG foundation model that jointly performs classification and abnormality localization without requiring manual attention annotations.

• We introduce a weakly-supervised attention supervision framework that incorporates clinical priors to automatically generate abnormality heatmap pseudo-labels from established ECG diagnostic heuristics, aligning model attention with clinically meaningful waveform regions.

• We demonstrate SOTA abnormality localization and competitive classification performance, highlighting the effectiveness of clinically guided attention supervision for improving the interpretability of ECG foundation models.

References (32)