ECG Image Classification Using Hybrid Machine Learning and Deep Learning Techniques
DOI:
https://doi.org/10.19139/soic-2310-5070-4003Keywords:
ECG classification, myocardial infarction, arrhythmia, ECG image processing, machine learning, deep learning, SVM, CNNAbstract
Electrocardiogram (ECG) interpretation is one of the most important diagnostic procedures in cardiovascular medicine. It is routinely used to detect myocardial infarction, rhythm disorders, conduction abnormalities, ischemic changes, and previous cardiac injury. However, accurate interpretation of ECG reports still depends greatly on physician experience, especially when ECG records are stored as scanned documents, printed sheets, or image captures rather than raw digital waveform signals. This creates a practical need for automated image-based ECG classification systems that can support physicians in diagnosis, screening, triage, and telemedicine applications. This paper presents a hybrid framework for four-class ECG image classification using enhanced grayscale preprocessing, advanced handcrafted feature extraction, hyperparameter-optimized machine learning, and deep learning comparison. The dataset contains four diagnostic categories: myocardial infarction (MI), abnormal heartbeat (AHB), history of myocardial infarction (HMI), and normal ECG. The proposed system automatically detects the ECG chart region, crops the useful waveform area, removes background artifacts, resizes all images to a fixed resolution, balances the training data through augmentation, extracts discriminative image features, and evaluates multiple classifiers. Experimental results show that the Support Vector Machine (SVM) model achieved the highest classification accuracy of 96.76%, followed closely by the Convolutional Neural Network (CNN) model with 96.40%. These results demonstrate that optimized classical machine learning can remain highly competitive with deep learning when supported by strong preprocessing and informative feature engineering. The proposed framework can serve as a reliable foundation for intelligent ECG screening systems and computer-aided cardiac diagnosis.Downloads
Published
2026-07-16
How to Cite
M. Assass, O. H., Tawfik, B. S., El-Gazzar, M. M., & M. Elnawsany, A. M. (2026). ECG Image Classification Using Hybrid Machine Learning and Deep Learning Techniques. Statistics, Optimization & Information Computing. https://doi.org/10.19139/soic-2310-5070-4003
License
Copyright (c) 2026 Osama H. M. Assass, BenBella S. Tawfik, Mohamed M. El-Gazzar, Amal M. M. Elnawsany

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).