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
. 2022 Aug 29:10:1900508.
doi: 10.1109/JTEHM.2022.3202749. eCollection 2022.

Heartbeat Classification by Random Forest With a Novel Context Feature: A Segment Label

Affiliations

Heartbeat Classification by Random Forest With a Novel Context Feature: A Segment Label

Congyu Zou et al. IEEE J Transl Eng Health Med. .

Abstract

Objective: Physicians use electrocardiograms (ECG) to diagnose cardiac abnormalities. Sometimes they need to take a deeper look at abnormal heartbeats to diagnose the patients more precisely. The objective of this research is to design a more accurate heartbeat classification algorithm to assist physicians in identifying specific types of the heartbeat.

Methods and procedures: In this paper, we propose a novel feature called a segment label, to improve the performance of a heartbeat classifier. This feature, provided by a Convolutional Neural Network, encodes the information surrounding the particular heartbeat. The random forest classifier is trained based on this new feature and other traditional features to classify the heartbeats.

Results: We validate our method on the MIT-BIH Arrhythmia dataset following the inter-patient evaluation paradigm. The proposed method is competitive with other similar works. It achieves an accuracy of 0.96, and F1-scores for normal beats, ventricular ectopic beats, and Supra-Ventricular Ectopic Beats (SVEB) of 0.98, 0.93, and 0.74, respectively. The precision and sensitivity for SVEB are 0.76 and 0.78, which outperforms the state-of-the-art methods.

Conclusion: This study demonstrates that the segment label can contribute to precisely classifying heartbeats, especially those that require rhythm information as context information (e.g. SVEB). Clinical impact: Using a medical devices embedding our algorithm could ease the physicians' processes of diagnosing cardiovascular diseases, especially for SVEB, in clinical implementation.

Keywords: Convolutional neural network; ECG classification; heartbeat classification; machine learning; mutual information random forest.

PubMed Disclaimer

Figures

FIGURE 1.
FIGURE 1.
Illustration of the overall methodology.
FIGURE 2.
FIGURE 2.
Difference between heartbeat classification and ECG classification. Left side is a single heartbeat with heartbeat label NOR(normal hearbeat). Right side is a period of ECG with ECG label NSR(normal sinus rhythm).
FIGURE 3.
FIGURE 3.
Illustration of QRS width, QRS width in half level, and QRS width in quarter level of one heartbeat. The definition is originally from , here half level and quarter level is calculated between the highest signal strength and lowest signal strength of QRS complex.
FIGURE 4.
FIGURE 4.
Illustration of ECG segmentation without overlap (left) and with half overlap (right). The upper one are the original ECG signals, and the rests are ECG segments got from the records.
FIGURE 5.
FIGURE 5.
Model architecture of ecgclf_c, which is a ECG recording classifier in Fig. 1 serving as a segment label extractor.
FIGURE 6.
FIGURE 6.
Hyperparameter tuning for number of decision trees based on leave-one-patient-out cross-validation on macro-averaged F1-scores of two proposed models, formula image and formula image, which are introduced in Section IV-C.

References

    1. Promoting Cardiovascular Health in the Developing World: A Critical Challenge to Achieve Global Health (EDS V Fuster, BB Kelly). Accessed: 2020. [Online]. Available: https://www.ncbi.nlm.nih.gov/books/NBK45688/ - PubMed
    1. Khan M. G., Rapid ECG Interpretation. Cham, Switzerland: Springer, 2008.
    1. Mondéjar-Guerra V., Novo J., Rouco J., Penedo M. G., and Ortega M., “Heartbeat classification fusing temporal and morphological information of ECGs via ensemble of classifiers,” Biomed. Signal Process. Control, vol. 47, pp. 41–48, Jan. 2019.
    1. Mykoliuk I., Jancarczyk D., Karpinski M., and Kifer V., “Machine learning methods in electrocardiography classification,” in Proc. CEUR Workshop, vol. 2300, 2018, pp. 102–105.
    1. Li T. and Zhou M., “ECG classification using wavelet packet entropy and random forests,” Entropy, vol. 18, no. 8, pp. 1–16, 2016.

Publication types