Abstract
Cardiovascular diseases (CVDs) remain the leading cause of global mortality, necessitating accessible and early diagnostic tools. While deep learning has advanced electrocardiogram (ECG) analysis, high-performing models are often too computationally intensive for edge devices like smartwatches. This paper introduces LRH-Net (Low Resource Heart-Network), an ultra-lightweight architecture optimized for resource-constrained environments. By employing a novel Multi-Level Knowledge Distillation (MLKD) strategy, LRH-Net bridges the performance gap between complex 12-lead teacher models and compact 2- or 3-lead student models. Our results demonstrate that LRH-Net achieves a 106x reduction in parameters while maintaining high diagnostic accuracy, offering a viable path for real-time, wearable heart monitoring.
Introduction
The gold standard for diagnosing cardiovascular conditions is the 12-lead electrocardiogram (ECG). However, the clinical utility of 12-lead systems is limited by their bulk and the requirement for professional administration. Wearable devices offer a continuous monitoring alternative but are restricted by limited battery life, memory, and the number of signal channels (leads) they can capture.
Existing deep learning solutions for ECG classification typically rely on large-scale convolutional neural networks (CNNs) that are unsuitable for deployment on microcontrollers or wearable processors. Furthermore, models trained on 12-lead data often perform poorly when applied to the 1- or 3-lead configurations common in consumer hardware. To address these challenges, we present LRH-Net and a hierarchical distillation framework designed to transfer knowledge from complex clinical models to efficient edge-ready networks.
Methodology
LRH-Net Architecture
LRH-Net is designed as a compact variant of the Residual Network (ResNet) architecture. To maximize feature extraction efficiency within a small parameter budget, we integrated Squeeze-and-Excitation (SE) blocks into three residual stages. These SE blocks provide a spatial attention mechanism, allowing the network to adaptively recalibrate channel-wise feature responses. This is particularly effective for ECG data, as it enables the model to prioritize the most informative leads and temporal segments for specific pathologies.
Multi-Level Knowledge Distillation (MLKD)
To train LRH-Net, we moved beyond standard teacher-student paradigms. Knowledge distillation typically involves a small "student" model mimicking the soft labels of a large "teacher." We introduced a multi-level hierarchy to facilitate smoother knowledge transfer:
- Teacher Model: A high-parameter SE-ResNet trained on full 12-lead data.
- Intermediate Teacher: A model of moderate size trained on reduced-lead data.
- Student Model (LRH-Net): The final lightweight model.
We evaluated two distillation strategies:
- Sequential (s-MLKD): Knowledge is transferred linearly from the 12-lead teacher to the reduced-lead teacher, and then to the student.
- Parallel (p-MLKD): The student model attempts to learn from both the 12-lead and reduced-lead teachers simultaneously.
Experimental Setup
The models were trained and validated using the PhysioNet-2020 challenge dataset, a comprehensive collection of 43,101 12-lead ECG recordings. This dataset encompasses 24 distinct cardiovascular classifications, including various arrhythmias and conduction blocks. The diversity of the data sources (CPSC, INCART, PTB-XL, and Georgia Challenge) ensures the robustness of the findings across different clinical environments.
Results and Discussion
Model Efficiency and Speed
LRH-Net represents a significant leap in model compression. Compared to the SE-ResNet teacher, LRH-Net is 106x smaller in parameter count and requires only 0.35 Mb of disk space (a 101x reduction). In terms of operational efficiency, the model is 76% faster during inference, making it highly suitable for real-time analysis on wearable hardware.
Performance Gains via MLKD
The sequential distillation approach (s-MLKD) proved superior to the parallel method. By using an intermediate teacher, the student model avoids "gradient conflict"—a phenomenon where competing signals from different teachers hinder convergence. The MLKD framework improved LRH-Net's performance on reduced-lead data by up to 3.25% compared to standard training.
The 3-Lead "Sweet Spot"
A critical finding of this study is the efficacy of specific lead combinations. We identified that a 3-lead configuration (Leads I, II, and V2) captures the majority of the diagnostic information present in a full 12-lead ECG. When combined with MLKD, the 3-lead LRH-Net performed nearly as well as its 12-lead counterparts, outperforming a standard 1D-CNN baseline by 2.76% despite being significantly smaller.
Conclusion
LRH-Net demonstrates that high-fidelity cardiac diagnosis is possible within the strict constraints of edge computing. By leveraging Multi-Level Knowledge Distillation and spatial attention mechanisms, we have developed a model that is both extremely lightweight and diagnostically robust. While a performance gap remains for complex conditions like Sinus Arrhythmia, the efficiency of LRH-Net provides a strong foundation for the next generation of smart wearable health monitors. Future work will focus on refining the distillation process and exploring optimal lead selection for rare cardiac pathologies.
Summary updated