Journal of Next Generation Technology

An International Open Access multi-disciplinary Journal in Science, Technology, and Sustainability

e-ISSN : 2583-021X


Home / Archives / Vol. 6 No. 5 (2026) / Articles

Comparative Analysis of Machine Learning Classifiers for Heart Disease Prediction with Cross-Validation-Based Model Selection

Kritjot Kanwal Department of Computer Science and Engineering, Punjabi University, Patiala, Punjab, India
Article Citation:
Kritjot Kanwal, “Comparative Analysis of Machine Learning Classifiers for Heart Disease Prediction with Cross-Validation-Based Model Selection”, Journal of Next Generation Technology (ISSN: 2583-021X), Vol. 6, Issue 5, pp. 16–26, October 2026.
Keywords:
Heart disease prediction, machine learning, classification, support vector classifier, five-fold cross-validation
Journal Volume 6 No. 5 (2026) ▧ DOWNLOAD PDF
Published
22 October 2026

Abstract

Many studies have attempted to predict heart disease using various machine learning algorithms. However, there are no consistent results across different datasets and evaluation methods for determining model performance. This paper will compare the performance of four supervised machine learning models, i.e., Logistic Regression, Support Vector Classifier (SVC), Decision Tree, and Gaussian Naive Bayes, on a binary classification dataset for heart disease. A total of 1,048 observations were collected along with 11 independent features. A standard scikit-learn processing pipeline was applied to the data, including standardizing several numeric features. On the held-out test split, the Decision Tree model had an accuracy of 80.00% compared to 79.52% for Logistic Regression, 78.57% for SVC, and 73.81% for Gaussian Naive Bayes. Five-fold cross- validation demonstrated that SVC outperformed the other three models with a mean accuracy of 77.65%, followed by Logistic Regression with 76.12%, Decision Tree with 74.70%, and Gaussian Naive Bayes with 69.81%. Therefore, SVC was chosen as the most suitable algorithm for the Python prediction application. It should be noted that this is a prototype predictive study, and as such, does not provide validation of clinical relevance nor external validity.

References

[1]. World Health Organization, “Cardiovascular diseases (CVDs),” Jul. 31, 2025. [Online]. Available: https://www.who.int/news-room/fact-sheets/detail/cardiovascular-diseases-(cvds)

[2]. R. Detrano et al., “International application of a new probability algorithm for the diagnosis of coronary artery disease,” The American Journal of Cardiology, vol. 64, no. 5, pp. 304–310, 1989, doi: 10.1016/0002- 9149(89)90524-9.

[3]. J. Azmi, M. Arif, M. T. Nafis, M. A. Alam, S. Tanweer, and G. Wang, “A systematic review on machine learning approaches for cardiovascular disease prediction using medical big data,” Medical Engineering & Physics, vol. 105, Art. no. 103825, 2022, doi: 10.1016/j.medengphy.2022.103825.

[4]. P. Shinde, M. Sanghavi, and T. A. Tran, “A survey on machine learning techniques for heart disease prediction,” SN Computer Science, vol. 6, Art. no. 334, 2025, doi: 10.1007/s42979-025-03860-2.

[5]. Y. Mao, B. L. Jimma, and T. B. Mihretie, “Machine learning algorithms for heart disease diagnosis: A systematic review,” Current Problems in Cardiology, vol. 50, no. 8, Art. no. 103082, 2025, doi: 10.1016/j.cpcardiol.2025.103082.

[6]. K. Shameer, K. W. Johnson, B. S. Glicksberg, J. T. Dudley, and P. P. Sengupta, “Machine learning in cardiovascular medicine: Are we there yet?,” Heart, vol. 104, no. 14, pp. 1156–1164, 2018, doi: 10.1136/heartjnl-2017-311198.

[7]. E. J. Topol, “High-performance medicine: The convergence of human and artificial intelligence,” Nature Medicine, vol. 25, no. 1, pp. 44–56, 2019, doi: 10.1038/s41591-018-0300-7.

[8]. B. Balakrishnan and C. N. S. Vinoth Kumar, “A comprehensive performance analysis of various classifier models for coronary artery disease prediction,” International Journal of Cognitive Informatics and Natural Intelligence, vol. 15, no. 4, pp. 1–14, 2021, doi: 10.4018/IJCINI.20211001.OA36. Journal of Next Generation Technology (JNxtGenTech) Vol. 6, Issue 5, Oct 2026

[9]. M. I. Hossain, M. H. Maruf, M. A. R. Khan, F. S. Prity, S. Fatema, M. S. Ejaz, and M. A. S. Khan, “Heart disease prediction using distinct artificial intelligence techniques: performance analysis and comparison,” Iran Journal of Computer Science, vol. 6, pp. 397–417, 2023, doi: 10.1007/s42044-023-00148-7.

[10]. N. Tasnim, K. Tanvir, and S. B. K. Sezan, “Machine learning for heart disease prediction a comparison analysis,” Journal of Artificial Intelligence, Machine Learning and Neural Network, vol. 3, no. 2, pp. 78– 85, 2023, doi: 10.55529/jaimlnn.35.28.35.

[11]. D. R. Cox, “The regression analysis of binary sequences,” Journal of the Royal Statistical Society: Series B, vol. 20, no. 2, pp. 215–242, 1958.

[12]. C. Cortes and V. Vapnik, “Support-vector networks,” Machine Learning, vol. 20, pp. 273–297, 1995, doi: 10.1007/BF00994018.

[13]. J. R. Quinlan, “Induction of decision trees,” Machine Learning, vol. 1, pp. 81–106, 1986, doi: 10.1007/BF00116251.

[14]. P. Domingos and M. Pazzani, “On the optimality of the simple Bayesian classifier under zero-one loss,” Machine Learning, vol. 29, pp. 103–130, 1997, doi: 10.1023/A:1007413511361.

[15]. M. Fernández-Delgado, E. Cernadas, S. Barro, and D. Amorim, “Do we need hundreds of classifiers to solve real world classification problems?” Journal of Machine Learning Research, vol. 15, pp. 3133–3181, 2014.

[16]. F. Pedregosa et al., “Scikit-learn: Machine learning in Python,” Journal of Machine Learning Research, vol. 12, pp. 2825–2830, 2011.

[17]. R. Kohavi, “A study of cross-validation and bootstrap for accuracy estimation and model selection,” in Proc. 14th International Joint Conference on Artificial Intelligence (IJCAI), 1995, pp. 1137–1145.

[18]. T. Hastie, R. Tibshirani, and J. Friedman, The Elements of Statistical Learning: Data Mining, Inference, and Prediction, 2nd ed. New York, NY, USA: Springer, 2009.

[19]. G. S. Collins, J. B. Reitsma, D. G. Altman, and K. G. M. Moons, “Transparent reporting of a multivariable prediction model for individual prognosis or diagnosis (TRIPOD): The TRIPOD statement,” Annals of Internal Medicine, vol. 162, no. 1, pp. 55–63, 2015, doi: 10.7326/M14-0697.

[20]. M. Sokolova and G. Lapalme, “A systematic analysis of performance measures for classification tasks,” Information Processing & Management, vol. 45, no. 4, pp. 427–437, 2009, doi: 10.1016/j.ipm.2009.03.002.

[21]. E. Vayena, A. Blasimme, and I. G. Cohen, “Machine learning in medicine: Addressing ethical challenges,” PLOS Medicine, vol. 15, no. 11, Art. no. e1002689, 2018, doi: 10.1371/journal.pmed.1002689.

[22]. Z. Noroozi, A. Orooji, and L. Erfannia, “Analyzing the impact of feature selection methods on machine learning algorithms for heart disease prediction,” Scientific Reports, vol. 13, Art. no. 22588, 2023, doi: 10.1038/s41598-023-49962-w.

[23]. G. Balaraju, M. D. S. Reddy, S. R. Manjunath, M. Hemalatha, and N. Veena, “Heart disease prediction using classification techniques of supervised machine learning,” in 2024 Second International Conference on Networks, Multimedia and Information Technology (NMITCON), 2024, doi: 10.1109/NMITCON62075.2024.10699057.

[24]. E. W. Steyerberg, Clinical Prediction Models: A Practical Approach to Development, Validation, and Updating, 2nd ed. Cham, Switzerland: Springer, 2019.

[25]. S. Varma and R. Simon, “Bias in error estimation when using cross-validation for model selection,” BMC Bioinformatics, vol. 7, Art. no. 91, 2006, doi: 10.1186/1471-2105-7-91.