COMPARATIVE EVALUATION OF DEEP LEARNING MODELS AND EXPLAINABILITY METHODS FOR ECG HEARTBEAT CLASSIFICATION

Abstract

This study compared a 1D-CNN architecture and a hybrid CNN-BiLSTM-Attention model for multiclass electrocardiographic heartbeat classification, incorporating Explainable Artificial Intelligence techniques to evaluate the faithfulness and temporal distribution of the evidence used by the models. Experiments used a dataset derived from the MIT-BIH Arrhythmia Database, organized into the Normal, Supraventricular, Ventricular, Fusion, and Unclassified classes. The protocol employed five-fold stratified cross-validation exclusively on the training set, epoch selection based on Macro F1 in an internal validation partition, and final evaluation on an untouched holdout test set. The 1D-CNN achieved a test Macro F1 of 0.8681 versus 0.8140 for the CNN-BiLSTM-Attention model, whereas the hybrid model achieved higher Balanced Accuracy, 0.9441 versus 0.9264, indicating higher average class-wise recall. Explainability analysis employed 1D Grad-CAM, Integrated Gradients, and temporal attention on a class-balanced subset of samples correctly classified by both architectures. Under the adopted perturbation protocol, Integrated Gradients showed positive mean faithfulness gains across all classes for both architectures, whereas Grad-CAM and temporal attention exhibited more class-dependent behavior. Low-to-moderate agreement among the methods indicated that different techniques may emphasize distinct temporal regions for the same correct prediction. Within this experimental setting, the additional complexity of the hybrid model did not translate into uniformly better predictive performance, supporting the complementary evaluation of predictive performance and explainability in ECG classification.

Author Biographies

Jessica Fernandes Lopes, Londrina State University

PhD in Electrical Engineering from the State University of Londrina (UEL) and Master's degree in Computer Science. Senior Research, Development, and Innovation (RDI) Analyst and AI Technical Lead at SENAI Paraná, Brazil. She works on the research, development, and validation of AI solutions for industrial applications, as well as the technical management and coordination of R&D teams. Her expertise includes Machine Learning, Deep Learning, Computer Vision, Data Stream Mining, and Explainable AI. Her research focuses on concept drift, explainability, and model adaptation in data streams.

Felipe Torquato Bressan, Educational Foundation of the Municipality of Assis (FEMA)

Undergraduate medical student in the final stage of his studies at the Educational Foundation of the Municipality of Assis (FEMA), Brazil. Holds a technical qualification in Biomedicine from the Federal Institute of Paraná (IFPR), in Londrina. His academic interests focus on Cardiology, particularly clinical training and professional development in the specialty.

Rafael Staiger Bressan, Federal University of Paraná

PhD candidate in Computer Science at the Federal University of Paraná (UFPR). Holds a Master's degree in Computer Science from the Federal University of Technology – Paraná (UTFPR), as well as bachelor's and teaching degrees in Computer Science from Fundação Faculdades Luiz Meneghel (FFALM). Works in Research, Development, and Innovation (R&D&I), leading teams and projects in Artificial Intelligence, and teaches undergraduate and graduate courses. His main research interests include Artificial Intelligence, Machine Learning, Computer Vision, Evolutionary Computation, and Explainable Artificial Intelligence (XAI).

Danilo Sipoli Sanches, Federal University of Technology of Paraná

PhD in Electrical Engineering from the University of São Paulo (USP), Master in Computer Science from the Federal University of São Carlos (UFSCar) and graduated in Computer Science from Universidade Paulista (UNIP). Associate professor at the Federal University of Technology - Paraná (UTFPR), teaching and researching Artificial Intelligence, Machine Learning, Computer Vision, Explainable Artificial Intelligence, Data Mining, Natural Language Processing and Evolutionary Computation.

References

AYYUB, Ahtisham; POLITIS, Christos; USMAN, Muhammad Arslan. A comprehensive review of AI-based detection of arrhythmia using electrocardiogram (ECG). Computers in Biology and Medicine, v. 196, pt. A, art. 110594, 2025. DOI: https://doi.org/10.1016/j.compbiomed.2025.110594

BAHDANAU, Dzmitry; CHO, Kyunghyun; BENGIO, Yoshua. Neural machine translation by jointly learning to align and translate. In: International Conference on Learning Representations (ICLR), 3., 2015, San Diego.

GUPTA, Utkarsh et al. A comprehensive review on efficient artificial intelligence models for classification of abnormal cardiac rhythms using electrocardiograms. Heliyon, v. 10, n. 5, 2024. DOI: https://doi.org/10.1016/j.heliyon.2024.e26787

HANNUN, Awni Y. et al. Cardiologist-level arrhythmia detection and classification in ambulatory electrocardiograms using a deep neural network. Nature Medicine, v. 25, n. 1, p. 65–69, 2019. DOI: https://doi.org/10.1038/s41591-018-0268-3

HOCHREITER, Sepp; SCHMIDHUBER, Jürgen. Long short-term memory. Neural Computation, v. 9, n. 8, p. 1735-1780, 1997. DOI: https://doi.org/10.1162/neco.1997.9.8.1735

JAIN, Sarthak; WALLACE, Byron C. Attention is not explanation. In: Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, 2019, Minneapolis. DOI: https://doi.org/10.18653/v1/N19-1357

KACHUEE, Mohammad; FAZELI, Shayan; SARRAFZADEH, Majid. Ecg heartbeat classification: A deep transferable representation. In: International Conference on Healthcare Informatics (ICHI), 2018, New York. DOI: https://doi.org/10.1109/ICHI.2018.00092

KIRANYAZ, Serkan; INCE, Turker; GABBOUJ, Moncef. Real-time patient-specific ECG classification by 1-D convolutional neural networks. IEEE transactions on biomedical engineering, v. 63, n. 3, p. 664-675, 2016. DOI: https://doi.org/10.1109/TBME.2015.2468589

LEINONEN, Tuija et al. Empirical investigation of multi-source cross-validation in clinical ECG classification. Computers in Biology and Medicine, v. 183, p. 109271, 2024. DOI: https://doi.org/10.1016/j.compbiomed.2024.109271

LOSHCHILOV, Ilya; HUTTER, Frank. Decoupled weight decay regularization. In: International Conference on Learning Representations (ICLR), 7., 2019, New Orleans.

LUZ, Eduardo; MENOTTI, David. How the choice of samples for building arrhythmia classifiers impact their performances. In: 2011 Annual International Conference of the IEEE Engineering in Medicine and Biology Society. IEEE, 2011. p. 4988-4991. DOI: https://doi.org/10.1109/IEMBS.2011.6091236

MANIMARAN, Gouthamaan et al. Explainable deep learning based techniques for ECG-Based heart disease classification: A systematic literature review and future direction. Computers in Biology and Medicine, v. 199, art. 111324, 2025. DOI: https://doi.org/10.1016/j.compbiomed.2025.111324

MOODY, George B.; MARK, Roger G. The impact of the MIT-BIH arrhythmia database. IEEE Engineering in Medicine and Biology Magazine, v. 20, n. 3, p. 45-50, 2001. DOI: https://doi.org/10.1109/51.932724

RANI, Jyoti; GUPTA, Shilpa; MITTAL, Vikas. Robust and Calibrated ECG Heartbeat Classification via Hybrid Convolutional, Temporal and Attention-Based Learning. Applied Sciences, v. 16, n. 9, p. 4393, 2026. DOI: https://doi.org/10.3390/app16094393

SCHUSTER, Mike; PALIWAL, Kuldip K. Bidirectional recurrent neural networks. IEEE Transactions on Signal Processing, v. 45, n. 11, p. 2673-2681, 1997. DOI: https://doi.org/10.1109/78.650093

SELVARAJU, Ramprasaath R. et al. Grad-CAM: Visual explanations from deep networks via gradient-based localization. In: IEEE international conference on computer vision (ICCV). 2017, Venice. DOI: https://doi.org/10.1109/ICCV.2017.74

SUNDARARAJAN, Mukund; TALY, Ankur; YAN, Qiqi. Axiomatic attribution for deep networks. In: International conference on machine learning (ICML), 34., 2017, Sydney. Proceedings of Machine Learning Research, v. 70, 2017. p. 3319–3328.

TALEBAN, Amirsajjad et al. Explainable artificial intelligence in electrocardiography: A systematic review. Biomedical Signal Processing and Control, v. 114, p. 109325, 2026. DOI: https://doi.org/10.1016/j.bspc.2025.109325

WORLD HEALTH ORGANIZATION. Ethics and governance of artificial intelligence for health: WHO guidance. Geneva: World Health Organization, 2021.

How to Cite

Lopes, J. F., Bressan, F. T., Bressan, R. S., & Sanches, D. S. (2026). COMPARATIVE EVALUATION OF DEEP LEARNING MODELS AND EXPLAINABILITY METHODS FOR ECG HEARTBEAT CLASSIFICATION . RECIMA21 - Revista Científica Multidisciplinar, 7(10), e7109152. https://doi.org/10.47820/recima21.v7i10.9152
Crossmark logo

Similar Articles

You may also start an advanced similarity search for this article.