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
. 2020 Mar 12;8(3):e17037.
doi: 10.2196/17037.

A Lightweight Deep Learning Model for Fast Electrocardiographic Beats Classification With a Wearable Cardiac Monitor: Development and Validation Study

Affiliations

A Lightweight Deep Learning Model for Fast Electrocardiographic Beats Classification With a Wearable Cardiac Monitor: Development and Validation Study

Eunjoo Jeon et al. JMIR Med Inform. .

Abstract

Background: Electrocardiographic (ECG) monitors have been widely used for diagnosing cardiac arrhythmias for decades. However, accurate analysis of ECG signals is difficult and time-consuming work because large amounts of beats need to be inspected. In order to enhance ECG beat classification, machine learning and deep learning methods have been studied. However, existing studies have limitations in model rigidity, model complexity, and inference speed.

Objective: To classify ECG beats effectively and efficiently, we propose a baseline model with recurrent neural networks (RNNs). Furthermore, we also propose a lightweight model with fused RNN for speeding up the prediction time on central processing units (CPUs).

Methods: We used 48 ECGs from the MIT-BIH (Massachusetts Institute of Technology-Beth Israel Hospital) Arrhythmia Database, and 76 ECGs were collected with S-Patch devices developed by Samsung SDS. We developed both baseline and lightweight models on the MXNet framework. We trained both models on graphics processing units and measured both models' inference times on CPUs.

Results: Our models achieved overall beat classification accuracies of 99.72% for the baseline model with RNN and 99.80% for the lightweight model with fused RNN. Moreover, our lightweight model reduced the inference time on CPUs without any loss of accuracy. The inference time for the lightweight model for 24-hour ECGs was 3 minutes, which is 5 times faster than the baseline model.

Conclusions: Both our baseline and lightweight models achieved cardiologist-level accuracies. Furthermore, our lightweight model is competitive on CPU-based wearable hardware.

Keywords: ECG classification; deep learning; fused recurrent neural network; path-type ECG sensor system; recurrent neural network.

PubMed Disclaimer

Conflict of interest statement

Conflicts of Interest: None declared.

Figures

Figure 1
Figure 1
Usage of S-Patch for Samsung SDS Cardio.
Figure 2
Figure 2
Data preprocessing of electrocardiograms: (A) full steps from downsampling to short-time Fourier transform; (B) an example of a 3-beat electrocardiographic segment for each class. ECG: electrocardiogram; RNN: recurrent neural network.
Figure 3
Figure 3
Examples of electrocardiographic signal noise: (A) loose contact, (B) motion artifact, (C) muscular activation interference, (D) baseline wandering, (E) alternating current (AC) interference (low signal-to-noise ratio), (F) AC interference (high signal-to-noise ratio).
Figure 4
Figure 4
Model architecture (general).
Figure 5
Figure 5
Normalized confusion matrix of the recurrent neural network (RNN) and fused RNN models.
Figure 6
Figure 6
Beats in rhythms with different shapes. SVT: supraventricular tachycardia; S: supraventricular ectopic; N: nonectopic.

Similar articles

Cited by

References

    1. American Heart Association. 2016. [2016-08-30]. About Arrhythmia https://www.heart.org/en/health-topics/arrhythmia/about-arrhythmia.
    1. Sayantan G, Kien PT, Kadambari KV. Classification of ECG beats using deep belief network and active learning. Med Biol Eng Comput. 2018 Oct;56(10):1887–1898. doi: 10.1007/s11517-018-1815-2. - DOI - PubMed
    1. Lobodzinski SS, Laks MM. New devices for very long-term ECG monitoring. Cardiol J. 2012;19(2):210–4. http://www.cardiologyjournal.org/en/darmowy_pdf.phtml?id=108&indeks_art=... - PubMed
    1. Guirguis E. Holter monitoring. Can Fam Physician. 1987 Apr;33:985–92. http://europepmc.org/abstract/MED/21263911 - PMC - PubMed
    1. Turakhia MP, Hoang DD, Zimetbaum P, Miller JD, Froelicher VF, Kumar UN, Xu X, Yang F, Heidenreich PA. Diagnostic utility of a novel leadless arrhythmia monitoring device. Am J Cardiol. 2013 Aug 15;112(4):520–4. doi: 10.1016/j.amjcard.2013.04.017. http://lib.plagh.cn:8080/medlib/s/gov/nih/nlm/ncbi/www/G.https/pubmed/?t... - DOI - PubMed

LinkOut - more resources