Electrocardiogram heartbeat classification based on a deep convolutional neural network and focal loss
The DOI matches its Crossref record; 39 of the 39 references it cites were found in a registry or an index.
Abstract
The electrocardiogram (ECG) is an effective tool for cardiovascular disease diagnosis and arrhythmia detection. Most methods proposed in the literature include the following steps: 1) denoizing, 2) segmentation into heartbeats, 3) feature extraction, and 4) classification. In this paper, we present a deep learning method based on a convolutional neural network (CNN) model. CNN models can perform feature extraction automatically and jointly with the classification step. In other words, our proposed method does not require a feature extraction step with hand-crafted techniques. Our proposed method is also based on an algorithm for heartbeat segmentation that is different from most existing methods. In particular, the segmentation algorithm defines each ECG heartbeat to start at an R-peak and end after 1.2 times the median RR time interval in a 10-s window. This method is simple and effective, as it does not use any form of filtering or processing that requires assumptions about the signal morphology or spectrum. Although enhanced ECG heartbeat classification algorithms have been proposed in the literature, they failed to achieve high performance in detecting some heartbeat categories, especially for imbalanced datasets. To overcome this challenge, we propose an optimization step for the deep CNN model using a novel loss function called focal loss. This function focuses on minority heartbeat classes by increasing their importance. We trained and evaluated our proposed model with the MIT-BIH and INCART datasets to identify five arrhythmia categories (N, S, V, Q, and F) based on the Association for Advancement of Medical Instrumentation (AAMI) standard. The evaluation results revealed that the focal loss function improved the classification accuracy for the minority classes as well as the overall metrics. Our proposed method achieved 98.41% overall accuracy, 98.38% overall F1-score, 98.37% overall precision, and 98.41% overall recall. In addition, our method achieved better performance than that of existing state-of-the-art methods.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
(2014) · Cited by 33,419
Focal Loss for Dense Object Detection
Lin, T.-Y., Goyal, P., Girshick, R., He, K., & Dollar, P. (2017) · 2017 IEEE International Conference on Computer Vision (ICCV) · doi:10.1109/iccv.2017.324 · Cited by 30,581
Goldberger, A. L., Amaral, L. A. N., Glass, L., Hausdorff, J. M., Ivanov, P. C., Mark, R. G., Mietus, J. E., Moody, G. B., Peng, C.-K., & Stanley, H. E. (2000) · Circulation · doi:10.1161/01.cir.101.23.e215 · Cited by 14,809
Focal Loss for Dense Object Detection
Lin, T.-Y., Goyal, P., Girshick, R., He, K., & Dollar, P. (2020) · IEEE Transactions on Pattern Analysis and Machine Intelligence · doi:10.1109/tpami.2018.2858826 · Cited by 9,556
A Real-Time QRS Detection Algorithm
Pan, J., & Tompkins, W. J. (1985) · IEEE Transactions on Biomedical Engineering · doi:10.1109/tbme.1985.325532 · Cited by 7,855
The use of the area under the ROC curve in the evaluation of machine learning algorithms
Bradley, A. P. (1997) · Pattern Recognition · doi:10.1016/s0031-3203(96)00142-2 · Cited by 7,217
The impact of the MIT-BIH Arrhythmia Database
Moody, G. B., & Mark, R. G. (2001) · IEEE Engineering in Medicine and Biology Magazine · doi:10.1109/51.932724 · Cited by 4,812
Understanding of a convolutional neural network
Albawi, S., Mohammed, T. A., & Al-Zawi, S. (2017) · 2017 International Conference on Engineering and Technology (ICET) · doi:10.1109/icengtechnol.2017.8308186 · Cited by 3,986
A deep convolutional neural network model to classify heartbeats
Acharya, U. R., Oh, S. L., Hagiwara, Y., Tan, J. H., Adam, M., Gertych, A., & Tan, R. S. (2017) · Computers in Biology and Medicine · doi:10.1016/j.compbiomed.2017.08.022 · Cited by 1,421
Quantitative Investigation of QRS Detection Rules Using the MIT/BIH Arrhythmia Database
Hamilton, P. S., & Tompkins, W. J. (1986) · IEEE Transactions on Biomedical Engineering · doi:10.1109/tbme.1986.325695 · Cited by 1,142
ECG-based heartbeat classification for arrhythmia detection: A survey
Luz, E. J. D. S., Schwartz, W. R., Cámara-Chávez, G., & Menotti, D. (2016) · Computer Methods and Programs in Biomedicine · doi:10.1016/j.cmpb.2015.12.008 · Cited by 878
Kaplan Berkaya, S., Uysal, A. K., Sora Gunal, E., Ergin, S., Gunal, S., & Gulmezoglu, M. B. (2018) · Biomedical Signal Processing and Control · doi:10.1016/j.bspc.2018.03.003 · Cited by 610
Confusion Matrix-Based Feature Selection
Visa, S., Ramsay, B., Ralescu, A., & VanDerKnaap, E. (2011) · Cited by 479
ECG Classification Using Wavelet Packet Entropy and Random Forests
Li, T., & Zhou, M. (2016) · Entropy · doi:10.3390/e18080285 · Cited by 478
Hong, S., Zhou, Y., Shang, J., Xiao, C., & Sun, J. (2020) · Computers in Biology and Medicine · doi:10.1016/j.compbiomed.2020.103801 · Cited by 464
A deep learning approach for ECG-based heartbeat classification for arrhythmia detection
Sannino, G., & De Pietro, G. (2018) · Future Generation Computer Systems · doi:10.1016/j.future.2018.03.057 · Cited by 445
The MIT-BIH Arrhythmia Database on CD-ROM and software for use with it
Moody, G. B., & Mark, R. G. (2002) · [1990] Proceedings Computers in Cardiology · doi:10.1109/cic.1990.144205 · Cited by 404
A new approach for arrhythmia classification using deep coded features and LSTM networks
Yildirim, O., Baloglu, U. B., Tan, R.-S., Ciaccio, E. J., & Acharya, U. R. (2019) · Computer Methods and Programs in Biomedicine · doi:10.1016/j.cmpb.2019.05.004 · Cited by 386
Heartbeat classification using disease-specific feature selection
Zhang, Z., Dong, J., Luo, X., Choi, K.-S., & Wu, X. (2014) · Computers in Biology and Medicine · doi:10.1016/j.compbiomed.2013.11.019 · Cited by 358
Opportunities and Challenges in Deep Learning Methods on Electrocardiogram Data: A Systematic Review
Qiao, L., Zhou, Y.-X., Shang, J.-Y., Xiao, C., & Sun, J.-M. (2020) · arXiv.org · doi:10.48550/arxiv.2001.01550 · Cited by 250
PIndroid: A novel Android malware detection system using ensemble learning methods
Idrees, F., Rajarajan, M., Conti, M., Chen, T. M., & Rahulamathavan, Y. (2017) · Computers & Security · doi:10.1016/j.cose.2017.03.011 · Cited by 224
ECG Feature Extraction Techniques - A Survey ApproachPreprint
Karpagachelvi, S., Arthanari, M., & Sivakumar, M. (2010) · arXiv (Cornell University) · doi:10.48550/arxiv.1005.0957 · Cited by 195
Detection of abnormal heart conditions based on characteristics of ECG signals
Hammad, M., Maher, A., Wang, K., Jiang, F., & Amrani, M. (2018) · Measurement · doi:10.1016/j.measurement.2018.05.033 · Cited by 190
APPLICATION OF HIGHER ORDER CUMULANT FEATURES FOR CARDIAC HEALTH DIAGNOSIS USING ECG SIGNALS
MARTIS, R. J., ACHARYA, U. R., LIM, C. M., MANDANA, K. M., RAY, A. K., & CHAKRABORTY, C. (2013) · International Journal of Neural Systems · doi:10.1142/s0129065713500147 · Cited by 188
Inter-Patient ECG Heartbeat Classification with Temporal VCG Optimized by PSO
Garcia, G., Moreira, G. J. P., Menotti, D., & Luz, E. J. D. S. (2017) · Scientific Reports · doi:10.1038/s41598-017-09837-3 · Cited by 171
A novel electrocardiogram feature extraction approach for cardiac arrhythmia classification
Marinho, L. B., Nascimento, N. M. M., Souza, J. W. M., Gurgel, M. V., Filho, P. P. R., & de Albuquerque, V. H. C. (2019) · Future Generation Computer Systems · doi:10.1016/j.future.2019.03.025 · Cited by 166
Mousavi, S., & Afghah, F. (2019) · ICASSP 2019 - 2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) · doi:10.1109/icassp.2019.8683140 · Cited by 159
Li, Z., Zhou, D., Wan, L., Li, J. H., & Mou, W. (2019) · Journal of Electrocardiology · doi:10.1016/j.jelectrocard.2019.11.046 · Cited by 138
Performance Analysis of Ten Common QRS Detectors on Different ECG Application Cases
Liu, F., Liu, C., Jiang, X., Zhang, Z., Zhang, Y., Li, J., & Wei, S. (2018) · Journal of Healthcare Engineering · doi:10.1155/2018/9050812 · Cited by 124
A high-precision arrhythmia classification method based on dual fully connected neural network
Wang, H., Shi, H., Lin, K., Qin, C., Zhao, L., Huang, Y., & Liu, C. (2020) · Biomedical Signal Processing and Control · doi:10.1016/j.bspc.2020.101874 · Cited by 121
Electrocardiogram Classification Based on Faster Regions with Convolutional Neural Network
Ji, Y., Zhang, S., & Xiao, W. (2019) · Sensors · doi:10.3390/s19112558 · Cited by 102
Multi-information fusion neural networks for arrhythmia automatic detection
Chen, A., Wang, F., Liu, W., Chang, S., Wang, H., He, J. L., & Huang, Q. (2020) · Computer Methods and Programs in Biomedicine · doi:10.1016/j.cmpb.2020.105479 · Cited by 101
Ramirez, E., Melín, P., & Prado-Arechiga, G. (2019) · Expert Systems with Applications · doi:10.1016/j.eswa.2019.02.035 · Cited by 81
A Comparison of Three QRS Detection Algorithms Over a Public Database
Álvarez, R. A., Méndez, A. J., & Sobrino, X. A. V. (2013) · Procedia Technology · doi:10.1016/j.protcy.2013.12.129 · Cited by 75
Very deep feature extraction and fusion for arrhythmias detection
Amrani, M., Hammad, M. A., Jiang, F., Wang, K., & Amrani, A. (2018) · Neural Computing and Applications · doi:10.1007/s00521-018-3616-9 · Cited by 67
Pandey, S. K., & Janghel, R. R. (2020) · Signal Image and Video Processing · doi:10.1007/s11760-020-01666-8 · Cited by 44
Weighted Focal Loss: An Effective Loss Function to Overcome Unbalance Problem of Chest X-ray14
Qin, R., Qiao, K., Wang, L., Zeng, L., Chen, J., & Yan, B. (2018) · IOP Conference Series Materials Science and Engineering · doi:10.1088/1757-899x/428/1/012022 · Cited by 27
Arrhythmias in Right Heart Disease
Bogdan, S. N., Vatasescu, R. G., & Dorobanţu, M. (2018) · Springer eBooks · doi:10.1007/978-3-319-73764-5_23 · Cited by 3
Analysis of myocardial infarction risk factors in heart disease data set
Chitra, R., Jegan, T. M. C., & Ezhilarasu, R. (2017) · doi:10.35841/biology-medicine.1.1.9-15 · Cited by 2
Cited by
Deep learning in ECG diagnosis: A review
Liu, X., Wang, H., Li, Z., & Qin, L. (2021) · Knowledge-Based Systems · doi:10.1016/j.knosys.2021.107187 · Cited by 436
Machine learning-based heart disease diagnosis: A systematic literature review
Ahsan, M. M., & Siddique, Z. (2022) · Artificial Intelligence in Medicine · doi:10.1016/j.artmed.2022.102289 · Cited by 416
Deepred-Mt: Deep representation learning for predicting C-to-U RNA editing in plant mitochondria
Edera, A. A., Small, I., Milone, D. H., & Sanchez-Puerta, M. V. (2021) · Computers in Biology and Medicine · doi:10.1016/j.compbiomed.2021.104682 · Cited by 161
Wang, T., Lu, C., Yang, M., Hong, F., & Liu, C. (2020) · PeerJ Computer Science · doi:10.7717/peerj-cs.324 · Cited by 37
A comprehensive review of AI-Based detection of Arrhythmia using Electrocardiogram (ECG)
Ayyub, A., Politis, C., & Usman, M. A. (2025) · Computers in Biology and Medicine · doi:10.1016/j.compbiomed.2025.110594 · Cited by 18
Metadata
- Authors
- Romdhane, T. F., Alhichri, H., Ouni, R., & Atri, M.
- Venue
- Computers in Biology and Medicine
- Publisher
- Elsevier BV
- Published
- 2020-08
- Volume
- 123
- Pages
- 103866
- ISSN
- 0010-4825 (ISSN-L)
- OpenAlex
- W3040197709
- Cited by
- 163
- References
- 39
- FWCI
- 12.29
- Type
- journal article
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.