Innovative ECG Classification Approach Utilizing a Transfer Learning-Driven Ensemble Architecture
Keywords:
Data Augmentation, ECG (electrocardiogram), Ensemble Architectures, Preprocessing techniques, Transfer learningAbstract
An electrocardiogram (ECG/EKG) is a vital methodology that is used for the diagnosis and monitoring of heart diseases by recording the electrical activity of the heart. However, manual analysis of ECGs shows limitations such as noise sensitivity, visual interpretation constraints and data imbalance. The proposed study a deep learning ensemble model combining DenseNet121, InceptionV3, and ResNet50 are implement to classify ECG images to improve diagnostic accuracy. The model is trained on two datasets: the National Heart Foundation 2023 ECG dataset and the ECG Dataset for Heart Condition Classification, focusing the main cardiac conditions such as abnormal heartbeat, myocardial infarction. The preprocessing techniques include background removal of ECG signal images, grayscale conversion, and data augmentation to enhance image quality and overfitting reduction. Stratified 5-Fold cross-validation was employed to demonstrate the generalization abilities of the proposed models. Early stopping and performance plots demonstrated that proposed model is not overfitting and two proposed models show consistent accuracy which suggests the model is not biased toward a specific dataset. While the ensemble models, as demonstrated in this study, produce better results than single models. The proposed study demonstrates validation accuracies of 99.5% and 99.1% for the National Heart Foundation 2023 dataset and the ECG dataset for heart condition classification, respectively, using 5-fold stratified cross-validation. There are still some limitations, such as the proposed ensemble models not being evaluated using Explainable AI, which reduces clinical trust. Additionally, small datasets can limit the model's generalizability. Therefore, this study demonstrates the potential of deep ensemble models with advanced preprocessing for ECG classification, but it also highlights the importance of greater transparency, better dataset diversity, and real-world validation in future research studies.
References
Professional, C. C. medical, “What’s an EKG?,” Cleveland Clinic, Feb. 19, 2025. [Online]. Available: https://my.clevelandclinic.org/health/diagnostics/16953- electrocardiogram-ekg Access Article
 
M. M. R. Khan et al., “Electrocardiogram heartbeat classification using convolutional neural networks for the detection of cardiac Arrhythmia,” in Proc. 2020 Fourth Int. Conf. I-SMAC (IoT in Social, Mobile, Analytics and Cloud), 2020, pp. –, doi: 10.1109/I-SMAC49090.2020.9243474 Access Article
 
E. Essa and X. Xie, “An ensemble of deep learning-based multi-model for ECG heartbeats arrhythmia classification,” IEEE Access, vol. 9, pp. 103452–103464, 10.1109/ACCESS.2021.3098986, 2021. Access Article
 
T. Sadad et al., “Efficient classification of ECG images using a lightweight CNN with attention module and IoT,” Sensors, vol. 23, no. 18, p. 7697, doi: 10.3390/s23187697, 2023. Access Article
 
U. R. Acharya et al., “Deep convolutional neural network for the automated detection and diagnosis of seizure using EEG signals,” Computers in Biology and Medicine, vol. 100, pp. 270–278, 2018. Access Article
 
K. Fatema et al., “A robust framework combining image processing and deep learning hybrid model to classify cardiovascular diseases using a limited number of paper-based complex ECG images,” Biomedicines, vol. 10, no. 11, p. 2835, 2022. Access Article
 
S. Muthumeena and L. Priya, “Deep Learning Framework for Cardio Vascular Disease Prediction Using ECG Images,” in 2024 Int. Conf. Smart Syst. Electr., Electron., Commun. Comput. Eng. (ICSSEECC), 2024, pp. –, doi: 10.1109/ICSSEECC61126.2024.10649540. Access Article
 
D. K. Mohsin, “National Heart Foundation 2023 ECG dataset,” Kaggle, Mar. 27, 2024. [Online]. Available: https://www.kaggle.com/datasets/drkhaledmohsin/national- heart-foundation-2023-ecg-dataset Access Article
 
“Types of arrhythmias - AFIB institute.” [Online]. Available: https://afibinstitute.com.au/about-us/other- arrhythmias/ Access Article
 
N. Ojha, “Myocardial infarction,” StatPearls [Internet], Aug. 8, 2023. [Online]. Available: https://www.ncbi.nlm.nih.gov/books/NBK537076/ Access Article
 
S. Fazeli, “ECG Heartbeat Categorization Dataset,” Kaggle, May 31, 2018. [Online]. Available: https://www.kaggle.com/datasets/shayanfazeli/heartbeat Access Article
 
R. C. Gonzalez, Digital Image Processing, Pearson Education India, 2009.
J. Canny, “A computational approach to edge detection,” IEEE Trans. Pattern Anal. Mach. Intell., vol. PAMI-6, pp. 679– 698, 1986. Access Article
 
N. Otsu, “A threshold selection method from gray-level histograms,” Automatica, vol. 11, pp. 285–296, 1975. Access Article
 
Additional Files
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Author

This work is licensed under a Creative Commons Attribution 4.0 International License.
 
						 
							 
    
  
