Classification of Heart Disorders Using Deep Learning and Machine Learning Approaches
Main Article Content
Abstract
Heart disorders persist a primary cause of mortality worldwide, underscoring the necessity for precise and effective diagnostic support systems. The objective of this study is to classify heart disorders employing a combination of deep learning and machine learning approaches based upon electrocardiogram (ECG) image data., The model’s performance was evaluated through 5-fold cross-validation per patient to ensure robust generalizability. The dataset comprised 486 ECG images from 284 patients. A total of six models were subjected to comparative analysis, including Support Vector Machine (SVM), VGG16, ResNet50, Custom CNN, Xception, and Inception-V3, by utilizing key evaluation metrics including accuracy, precision, recall, specificity, F1-score, and AUC-ROC. The experimental results demonstrated that Inception-V3 achieved the optimal overall performance, demonstrating a balance between sensitivity and precision. Furthermore, deep learning models generally outperformed traditional methods such as support vector machines (SVM). The mean performance across all models yielded an accuracy of approximately 78.6% and an AUC-ROC of 0.83, demonstrating reliable discrimination in cardiac disorder classification. Deep learning-based architectures, particularly Inception-V3 and Xception, demonstrated considerable potential in the development of automated and accurate diagnostic systems for the early detection of cardiac disorders. Future research could explore hybrid approaches and larger and more diverse datasets to enhance clinical applicability. This study provides improved accuracy and reliability in cardiac disorder classification by leveraging and comparing machine learning and deep learning approaches. The proposed model has been demonstrated to effectively capture complex patterns in medical data, thereby supporting early diagnosis and improving clinical decision-making.
Downloads
Article Details

This work is licensed under a Creative Commons Attribution 4.0 International License.
References
2. Sumiati, et al., Classification of cardiac disorders based on electrocardiogram data with fuzzy cognitive map (FCM) Algoritm approach, 15 (2021).
3. Sumiati, et al., Expert system for heart disease based on electrocardiogram data using certainty factor with multiple rule,IAES International Journal of Artificial Intellegence (IJAI) 10 (2021).
4. R. A. Rajagede et al. Al-Quran recitation verification for memorization test using Siamese LSTM network, Commun. Sci. Technol. 6 (2021) 35–40.
5. T. G. Pratama, et al., Machine learning algorithm for improving performance on 3 AQ-screening classification, Commun. Sci. Technol. 4 (2019) 44–49
6. M. Abdullah, et al., Artificial intelligence-based framework for early detection of heart disease using enhanced multilayer perceptron, 2025.
7. Z. Wang, et al., Hierarchical deep learning with Generative Adversarial Network for automatic cardiac diagnosis from ECG signals, Comput. Biol. Med. 155 (2023).
8. P. Wagner, et al., Explaining deep learning for ECG analysis: Building blocks for auditing and knowledge discovery, Comput. Biol. Med. 176 (2024) 108525.
9. K. Natarajan, et al., Efficient Heart Disease Classification Through Stacked Ensemble with Optimized Firefly Feature Selection, Int. J. Comput. Intell. Syst., 17 (2024) 174.
10. S. Ahmadian, S. M. J. Jalali, S. Raziani, and A. Chalechale, An efficient cardiovascular disease detection model based on multilayer perceptron and moth-flame optimization. Expert Syst. 39 (2022) e12914.
11. L. Ali, A. Niamat, J. A. Khan, A. Golliarz, X. Xingzhong, A. Noor, et al., An optimized stacked support vector machines based expert system for the effective prediction of heart failure, IEEE Access, 7 (2019) 54007–54014.
12. M. M. Ali, B. K. Paul, K. Ahmed, F. M. Bui, J. M. Quinn, and M. A. Moni, Heart disease prediction using supervised machine learning algorithms, performance analysis and comparison. Comput. Biol. Med. 136 (2021) 104672.
13. A. A. Alnuaim, M. Zakariah, P. K. Shukla, A. Alhadlaq, W. A. Hatamleh, H. Tarazi, et al., Human-computer interaction for recognizing speech emotions using multilayer perceptron classifier. J. Healthc. Eng. (2022) 6005446.
14. D. Dharmendra, Prediction of heart failure using support vector machine compared with decision tree algorithm for better accuracy, in 2022 International Conference on Sustainable Computing and Data Communication Systems (ICSCDS) (Erode: IEEE) (2022).
15. R. Jahangir et al, ECG-based heart arrhythmia classification using feature engineering and a hybrid stacked machine learning, BMC Cardiovascular Disorders. 25 (2025) 260.
16. R. Jahangir, S. Ahmed, & M. Malik, ECG-based cardiac arrhythmias detection using convolutional neural network architectures. BMC Cardiovasc. Disord., 25 (2025) 150.
17. U. Gupta, P. Sharma, & R. Kaur, A comprehensive review on efficient artificial intelligence algorithms for ECG analysis, Expert Systems with Applications, 245 (2024) 123456.
18. A. R. Ismail, S. Q. Nisa, S. A. Shaharuddin, S. I. Masni, & S. A. Suharudin Amin, Utilising VGG-16 of Convolutional Neural Network for Medical Image Classification, International Journal on Perceptive and Cognitive Computing, 10 (2024) 113–118.
19. R. Hapsari, & A. Purwinarko, Implementation of Convolutional Neural Network Algorithm Using Vgg-16 Architecture for Image Classification in Facial Images, Recurs. J. Inform., 1 (2023) 83-92
20. A. Daza, et al., Stacking ensemble based hyperparameters to diagnosing cardiovascular diseases. Biomedical Signal Processing and Control.ScienceDirect. (2024)
21. K. Tang, et al., Optimizing machine learning for enhanced automated ECG interpretation and diagnosis, Egypt. Inform. J. 28 (2024) 100578.
22. S. Din, et al., ECG-based cardiac arrhythmia classification through rich feature fusion and hybrid deep learning,Biomedical Signal Processing and Control. ScienceDirect. (2024)
23. H. Narotamo, M. Dias, R. Santos, A. V. Carreiro, H. Gamboa dan M. Silveira, Deep learning for ECG classification: A comparative study of 1D and 2D representations and multimodal fusion approaches, Biomed. Signal Process. Control 93 (2024) 106141.
24. E. Westphal, & H. Seitz, A Machine Learning Method for Defect Detection and Visualization in Selective Laser Sintering based on Convolutional Neural Networks, Computers, Materials & Continua, 68 (2021) 1915–1933.
25. S. U. Haq, et al., Reseek-Arrhythmia: Empirical evaluation of ResNet architectures for ECG arrhythmia detection. Sensors, MDPI 23 (2023) 3891.
26. H. Tsuji & I. Shiojima, Increased Incidence of ECG Abnormalities in the General Population During the COVID-19 Pandemic. Int. Heart J., 63 (2022) 678-682.
27. C. F. Gonçalves dos Santos & J. P. Papa, Avoiding Overfitting: A Survey on Regularization Methods for Convolutional Neural Networks, (2022).
28. V. Vardana, et al., A Comprehensiive Review on Heart Disease Risk Prediction using Machine learning and Deep Learning Algorithms, Arch. Comput. Methods Eng., 32 (2024) 1763-1795.
29. Md Nahid Hasan et al. (2025), An ensemble based lightweight deep learning model for the prediction of cardiovascular diseases from electrocardiogram images, Eng. Appl. Artif. Intell., 141 (2025) 109782.
