Abstract
Artificial intelligence (AI) has shown great promise in electrocardiogram (ECG) diagnosis, yet clinical adoption is hindered by the "black-box" nature of deep learning and a disconnect from established medical knowledge. This paper introduces the Momentum Distillation Oscillographic Transformer (MDOT), a framework that bridges this gap. By converting 1D ECG signals into 2D oscillographic representations and employing a teacher-student distillation process informed by clinical indices, MDOT achieves state-of-the-art accuracy (up to 99.53%) while providing interpretable saliency maps that align with clinical reasoning.
Introduction
Cardiovascular diseases (CVDs) remain the leading cause of death globally. While the 12-lead ECG is the gold standard for diagnosis, manual interpretation is subjective, time-consuming, and prone to error—especially in underserved regions. Existing AI solutions often face three hurdles: the "black box" problem where models cannot explain their decisions, a disconnect from decades of established medical knowledge, and high computational requirements that prevent deployment on wearable devices. MDOT addresses these challenges by integrating clinical logic into a lightweight, high-performance transformer architecture.
Methods
The MDOT framework utilizes a multi-stage pipeline that blends computer vision, traditional machine learning, and clinical logic:
- OSC Module (Oscillation and Stacking Convolution): Instead of processing raw 1D signals, this module reshapes ECG data into 2D image-like "oscillographic" representations. This allows the model to leverage advanced Vision Transformer (ViT) architectures to capture both long-range dependencies and fine-grained waveform shapes.
- Momentum Distillation: A heavy-duty "teacher" model (ResNeSt + XGBoost) is trained on raw ECGs and specific clinical indices, such as heart rate, QTc interval, and ST-segment displacement. A lightweight "student" model (LeViT) then learns to mimic the teacher, inheriting complex clinical reasoning without the computational overhead.
- Hybrid Classifier: The framework uses XGBoost for final classification, leveraging the strengths of gradient-boosted trees for structured feature sets.
- Intrinsic Interpretability: The transformer’s self-attention mechanism generates saliency maps (heatmaps) that highlight diagnostically relevant segments, such as a depressed ST segment or an abnormal P-wave.
Results
MDOT was evaluated using two major benchmarks with strict inter-patient splits to ensure generalizability:
- MIT-BIH Arrhythmia Database: Achieved 99.53% Accuracy and a 97.26% F1-score.
- Chapman-Shaoxing Dataset: Achieved 99.03% Accuracy and a 96.38% F1-score.
Ablation studies revealed that clinical knowledge is a performance multiplier. A student model trained by a physician-informed teacher significantly outperformed one trained on raw data alone. Furthermore, occlusion analysis confirmed a high correlation between the model's attention heatmaps and the segments of the heartbeat that are clinically significant for diagnosis.
Discussion and Conclusion
MDOT successfully combines the predictive power of deep learning with the interpretability required for clinical trust. By treating ECGs as 2D images and distilling physician-informed knowledge, the framework provides a robust solution for automated diagnosis that is both accurate and "human-readable." While the results are impressive, future work will focus on validating the model across more diverse global populations and testing real-time performance on wearable hardware like Holter monitors or smartwatches.
Summary updated