A Comparative Study of Machine Learning Algorithms for Detecting Heart Disease
DOI:
https://doi.org/10.21928/uhdjst.v10n2y2026.pp153-159Keywords:
Machine Learning Algorithms, Gradient Boosting, Random Forest, Support Vector Machines, Cardiovascular DiseasesAbstract
Cardiovascular diseases remain a leading cause of mortality worldwide. Identifying underlying clinical phenotypes early, such as distinct categories of chest pain, is vital for diagnostic triage and downstream medical decision-making. This study evaluates the performance of four prominent machine learning algorithms – gradient boosting (GB), random forest, multinomial logistic regression, and support vector machines (SVM) – in classifying four distinct chest pain types (cp = 0, 1, 2, 3) utilizing a clinical dataset of 180 patient records. The models were trained using a stratified 80/20 train-test split combined with 5-fold cross-validation for hyperparameter optimization. Evaluation was conducted through rigorous classification metrics: Accuracy, Macro $F_1$-score, Weighted $F_1$-score, Cohen’s Kappa, and receiver operating characteristic area under the curve (ROC-AUC). The empirical findings reveal that GB achieves the highest overall performance with an accuracy of 76.1% and an ROC-AUC of 0.912. Post hoc statistical evaluation using Nemenyi and McNemar tests ($\alpha = 0.01$) confirmed that GB and random forest demonstrate significantly higher predictive power than multinomial logistic regression and SVM. However, multinomial logistic regression remains clinically invaluable, offering explicit Odds Ratios that identify “oldpeak” (exercise-induced ST depression), “thalach” (maximum heart rate), and “age” as the most statistically significant clinical predictors. Across all models, classification performance degraded when detecting Class 3 chest pain, though GB retained the highest relative recall for this minority category.
References
. A. Acharya. “Comparative Study of Machine Learning Algorithms for Heart Disease Prediction”. [Type of Thesis/Report if Applicable], 2017.
. H. Arghandabi and P. Shams. “A comparative study of machine learning algorithms for the prediction of heart disease”. International Journal for Research in Applied Science and Engineering Technology, vol. 8, no. 12, pp. 677-683, 2020.
. M. A. Moreno-Ibarra, Y. Villuendas-Rey, M. D. Lytras, C. Yáñez- Márquez and J. C. Salgado-Ramírez. “Classification of diseases using machine learning algorithms: A comparative study”. Mathematics, vol. 9, no. 15, p. 1817, 2021.
. M. A. A. R. Asif, M. M. Nishat, F. Faisal, R. R. Dip, M. Hasan Udoy, M. F. Shikder and R. Ahsan. “Performance evaluation and comparative analysis of different machine learning algorithms in predicting cardiovascular disease”. Engineering Letters, vol. 29, no. 2, 2021.
. R. Hasan. “Comparative analysis of machine learning algorithms for heart disease prediction”. ITM Web of Conferences, vol. 40, p. 03007, 2021.
. H. A. Elzeheiry, S. Barakat and A. Rezk. “Different scales of medical data classification based on machine learning techniques: A comparative study”. Applied Sciences, vol. 12, no. 2, p. 919, 2022.
. V. Sheth, U. Tripathi and A. Sharma. “A comparative analysis of machine learning algorithms for classification purpose”. Procedia Computer Science, vol. 215, pp. 422-431, 2022.
. Sun, H., Depraetere, K., Meesseman, L., Cabanillas Silva, P., Szymanowsky, R., Fliegenschmidt, J., Hulde, N., von Dossow, V., Vanbiervliet, M., De Baerdemaeker, J. and Roccaro-Waldmeyer, D.M. “Machine learning–based prediction models for different clinical risks in different hospitals: evaluation of live performance”. Journal of Medical Internet Research, 24(6), p.e34295, 2022.
. H. Iftikhar, M. Khan, Z. Khan, F. Khan, H. M. Alshanbari and Z. Ahmad. “A comparative analysis of machine learning models: A case study in predicting chronic kidney disease”. Sustainability, vol. 15, no. 3, p. 2754, 2023.
. M. G. Kavitha, S. P. Subashini and R. Devika. “An efficient cardiovascular disease prediction framework using optimized machine learning algorithms”. Journal of Medical Systems, vol. 47, no. 1, p. 42, 2023.
. B. Şener, K. Acici and E. Sümer. “Categorization of Alzheimer's disease stages using deep learning approaches with McNemar's test”. PeerJ Computer Science, vol. 10, p. e1877, 2024.
. S. Nandini. “Comparative Study of Machine Learning Algorithms in Detecting Cardiovascular Diseases”. arXiv [preprint], 2024.
. A. Hammoud, A. Karaki, R. Tafreshi, S. Abdulla and M. Wahid. “Coronary heart disease prediction: A comparative study of machine learning algorithms”. Journal of Advances in Information Technology, vol. 15, no. 1, pp. 27-32, 2024.
. W. Alsabhan and A. Alfadhly. “Effectiveness of machine learning models in diagnosis of heart disease: A comparative study”. Scientific Reports, vol. 15, no. 1, p. 24568, 2025.
. T. J. Shah and R. K. Sharma. “Comparative evaluation of gradient boosted decision trees vs. Deep architectures for multi-class phenotyping of coronary anomalies”. IEEE Transactions on Biomedical Engineering, vol. 72, no. 4, pp. 1045-1054, 2025.
T. J. Shah and R. K. Sharma. “Comparative evaluation of gradient boosted decision trees vs. Deep architectures for multi-class phenotyping of coronary anomalies”. IEEE Transactions on Biomedical Engineering, vol. 72, no. 4, pp. 1045-1054, 2025.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Twana Abdulqader Mohammed, Samira Muhamad Salh

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