Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2024 Dec 10;24(24):7896.
doi: 10.3390/s24247896.

Research on a Lightweight Arrhythmia Classification Model Based on Knowledge Distillation for Wearable Single-Lead ECG Monitoring Systems

Affiliations

Research on a Lightweight Arrhythmia Classification Model Based on Knowledge Distillation for Wearable Single-Lead ECG Monitoring Systems

Xiang An et al. Sensors (Basel). .

Abstract

Arrhythmias are among the diseases with high mortality rates worldwide, causing millions of deaths each year. This underscores the importance of real-time electrocardiogram (ECG) monitoring for timely heart disease diagnosis and intervention. Deep learning models, trained on ECG signals across twelve or more leads, are the predominant approach for automated arrhythmia detection in the AI-assisted medical field. While these multi-lead ECG-based models perform well in automatic arrhythmia detection, their complexity often restricts their use on resource-constrained devices. In this paper, we propose an efficient, lightweight arrhythmia classification model using a knowledge distillation technique to train a student model from a teacher model, tailored for embedded intelligence in wearable devices. The results show that the student model achieves 96.32% accuracy, which is comparable to the teacher model, with a remarkable compression ratio that is 1242.58 times smaller, outperforming other lightweight models. Enabled by the proposed model, we developed a wearable ECG monitoring system based on the STM32F429 Discovery kit and ADS1292R chip, achieving real-time arrhythmia detection on small wearable devices.

Keywords: arrhythmia classification; edge intelligence; electrocardiogram (ECG); embedded system; knowledge distillation (KD); microcontroller.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflicts of interest.

Figures

Figure 1
Figure 1
Model architecture and knowledge distillation process. It illustrates the knowledge distillation process, wherein the information acquired by the teacher model is efficiently conveyed to the student model, allowing it to attain superior performance with a more streamlined design.
Figure 2
Figure 2
Confusion matrices for the teacher model under different configurations. (a) Confusion matrix for the complete teacher model; (b) confusion matrix for the teacher model without ResNet blocks; (c) confusion matrix for the teacher model without LSTM layers; (d) confusion matrix for the teacher model without SENet blocks.
Figure 3
Figure 3
Training and validation curves for the student model. (a) Accuracy curve of the student model during training and validation; (b) loss curve of the student model during training and validation.
Figure 4
Figure 4
Confusion matrices for the student model without and with knowledge distillation. (a) Confusion matrix for the student model without knowledge distillation; (b) confusion matrix for the student model with knowledge distillation.
Figure 5
Figure 5
Wearable ECG monitoring system block diagram.
Figure 6
Figure 6
Process of integrating the student model into the STM32F4 board with STM32Cube.AI.
Figure 7
Figure 7
The real-time ECG monitoring and arrhythmia detection system.

Similar articles

References

    1. Chong B., Jayabaskaran J., Jauhari S.M., Chan S.P., Goh R., Kueh M.T.W., Li H., Chin Y.H., Kong G., Anand V.V., et al. Global burden of cardiovascular diseases: Projections from 2025 to 2050. Eur. J. Prev. Cardiol. 2024:zwae281. doi: 10.1093/eurjpc/zwae281. - DOI - PubMed
    1. Ebrahimi Z., Loni M., Daneshtalab M., Gharehbaghi A. A review on deep learning methods for ECG arrhythmia classification. Expert Syst. Appl. X. 2020;7:100033. doi: 10.1016/j.eswax.2020.100033. - DOI
    1. Nawaz M., Ahmed J. Cloud-based healthcare framework for real-time anomaly detection and classification of 1-D ECG signals. PLoS ONE. 2022;17:e0279305. doi: 10.1371/journal.pone.0279305. - DOI - PMC - PubMed
    1. Zidelmal Z., Amirou A., Ould-Abdeslam D., Merckle J. ECG beat classification using a cost sensitive classifier. Comput. Methods Programs Biomed. 2013;111:570–577. doi: 10.1016/j.cmpb.2013.05.011. - DOI - PubMed
    1. Li T., Zhou M. ECG classification using wavelet packet entropy and random forests. Entropy. 2016;18:285. doi: 10.3390/e18080285. - DOI

MeSH terms

LinkOut - more resources