Electrocardiogram Based Heartbeat Detection Using Deep Learning

Minh Tuan Nguyen, Anh Nguyen

Abstract


Cardiovascular diseases remain a leading cause of death worldwide, which results in important requirements for early and accurate arrhythmia diagnosis. This work proposes a novel design of automated heartbeat detection, which consists of a convolutional neural network and three-channel images using the electrocardiogram (ECG) signals. A combination of various preprocessing is applied for the elimination of interferences of the ECG signals such as band-pass filtering and wavelet transform for R-peak identification using a sliding window. Multimodal image fusion method is used to construct three-channel images from different grayscale images, which are transformed from the heartbeats by three transformation techniques namely Gramian angular field, Markov transition field, and Recurrence plot. Grid-search based optimization method in combination with 5-fold cross validation procedure are implemented for selection of the optimal hyper-parameters of the CNN models using the input three-channel images. The proposed algorithm including CNN models and MIF images is estimated the detection performance using 5-fold cross validation, which produces average accuracy of 99.63%, precision of 99.41%, recall of 99.52%, and F1-score of 99.64%. The relatively high performance of the proposed algorithm confirms the effectiveness for the arrhythmia recognition on the ECG signals.

References


W. H. Organization, “Cardiovascular Diseases (CVDs),” Geneva, Switzerland, 2019, https://www.who.int/en/newsroom/factsheets/detail/cardiovascular-diseases-(cvds).

A. Ameen, I. E. Fattoh, T. Abd El-Hafeez, and K. Ahmed, “Advances in ecg and pcg-based cardiovascular disease classification: a review of deep learning and machine learning methods,” Journal

of Big Data, vol. 11, no. 1, p.159, 2024.

N. Vinay, K. Vidyasagar, S. Rohith, P. Dayananda, S. Supreeth, and S. Bharathi, “An RNN-Bi LSTM based multi decision GAN approach for the recognition of cardiovascular disease (CVD) from heart beat sound: a feature optimization process,” IEEE Access, 2024.

O. Selma and A. Imteyaz, “Comparative Performance Analysis of Filtering Methods for Removing Baseline Wander Noise from an ECG Signal,” Fluctuation and Noise Letters, vol. 23, no. 4, p. 2450046, 2024.

T. Yorozu, M. Hirano, K. Oka, and Y. Tagawa, “Electron spectroscopy studies on magneto-optical media and plastic substrate interface,” IEEE translation journal on magnetics in Japan, vol. 2, no. 8, pp. 740–741, 1987.

S. K. Pandey, R. R. Janghel, and V. Vani, “Patient specific machine learning models for ECG signal classification,” Procedia Computer Science, vol. 167, pp. 2181–2190, 2020.

B. Fatimah, P. Singh, A. Singhal, and R. B. Pachori, “Biometric identification from ECG signals using Fourier decomposition and machine learning,” IEEE Transactions on Instrumentation and Measurement, vol. 71, pp. 1–9, 2022.

S. Mondal and P. Choudhary, “Detection of normal and abnormal ECG signal using ANN,” in Advances in Intelligent Informatics, Smart Technology and Natural Language Processing: Selected Revised Papers from the Joint International Symposium on Artificial Intelligence and Natural Language Processing (iSAINLP 2017). Springer, 2019, pp. 25–37.

M. Chourasia, A. Thakur, S. Gupta, and A. Singh, “ECG heartbeat classification using CNN,” in 2020 IEEE 7th Uttar Pradesh Section International Conference on Electrical, Electronics and Computer Engineering (UPCON). IEEE, 2020, pp. 1–6.

D. Kim, K. R. Lee, D. S. Lim, K. H. Lee, J. S. Lee, D.-Y. Kim, and C.-B. Sohn, “A novel hybrid CNN transformer model for arrhythmia detection without R-peak identification using stockwell transform,” Scientific Reports, vol. 15, no. 7817, pp. 1–11, 2025.

S. Dhyani, A. Kumar, S. Choudhury, C. Verma, and Z. Illés, “Assessing ECG-QRS signal detection algorithm chipand simulation on several FPGAs,” Discover Computing, vol. 28, no. 1, pp. 1–12, 2025.

O. A. Cárdenas, L. M. F. Nava, F. G. Castañeda, and J. A. M. Cadenas, “ECG Arrhythmia Classification for Comparing Pre-Trained Deep Learning Models,” in 2022 19th International Conference on Electrical Engineering, Computing Science and Automatic Control (CCE), 2022, pp.1–5.

C. Lin, H. Lu, P. Sang, and C. Pan, “A knowledge embedded multimodal pseudo-siamese model for atrial fibrillation detection,” Scientific Reports, vol. 15, no. 1, pp.1–15, 2025.

C. Wang, J. Ma, G. Wei, and X. Sun, “Analysis of Cardiac Arrhythmias Based on ResNet-ICBAM-2DCNN Dual-Channel Feature Fusion,” Sensors, vol. 25, no. 3, pp. 1–21, 2025.

Z. Li, F. Liu, W. Yang, S. Peng, and J. Zhou, “A survey of convolutional neural networks: analysis, applications, and prospects,” IEEE transactions on neural networks and learning systems, vol. 33, no. 12, pp. 6999–7019, 2021.

L. R. Medsker and L. Jain, Recurrent neural networks: Design and Applications. United States: CRC Press, Inc., 1999.

A. Graves and A. Graves, “Long short-term memory,” Supervised sequence labelling with recurrent neural networks, pp. 37–45, 2012.

V. Satheeswaran, G. N. Chandrika, A. Mitra, R. Chowd-hury, P. Kumar, and E. Glory, “Deep Learning based classification of ECG signals using RNN and LSTM Mechanism,” Journal of Electronics, Electromedical Engineering, and Medical Informatics, vol. 6, no. 4, pp. 332–342, 2024.

P. N. Singh and R. P. Mahapatra, “A novel deep learning approach for arrhythmia prediction on ECG classification using recurrent CNN with GWO,” International Journal of Information Technology, vol. 16, no. 1, pp. 577–585, 2024.

L.-H. Wang, Y.-T. Yu, W. Liu, L. Xu, C.-X. Xie, T. Yang, I.-C. Kuo, X.-K. Wang, J. Gao, P.-C. Huang et al., “Three-heartbeat multilead ECG recognition method for arrhythmia classification,” IEEE Access, vol. 10, pp. 44 04644 061, 2022.

J. Cui, L. Wang, X. He, V. H. C. De Albuquerque, S. A. AlQahtani, and M. M. Hassan, “Deep learning-based multidimensional feature fusion for classification of ECG.




DOI: http://dx.doi.org/10.21553/rev-jec.401

Copyright (c) 2025 REV Journal on Electronics and Communications


ISSN: 1859-378X

Copyright © 2011-2024
Radio and Electronics Association of Vietnam
All rights reserved