Research Article

Heart Disease Prediction Base on Machine Learning

Lingxiao Ren*
University College Dublin

* Corresponding author: [email protected]

Abstract

Heart disease is a major cause of death around the world. Accurate predictions in the early stages can provide additional time for treatment and significantly increase the likelihood of survival. Traditional methods rely on manual diagnosis, which usually occurs when patients already have obvious symptoms. This study uses machine learning to predict heart disease and identify key risk factors, aiming to find a model that can provide accurate and reliable predictions to assist in early clinical diagnosis of heart disease. Among all models, logistic regression performs best with 88.04% accuracy, and its precision, recall, and F1 score also performed the best among the four models. It also identifies the key factors that influence heart disease risk, the research indicates that factors such as sex, type of chest pain, fasting blood sugar, and the slope of the peak exercise ST segment are the main determinants of the risk of heart disease. The results show that this model is reliable for medical risk prediction and decision support.

Keywords: Heart Disease; Machine Learning; Logistic Regression; Prediction
Published: December 31, 2025
DOI: 10.54254/2755-2721/2026.TJ30923
Volume: ACE Vol.218
pp. 39-47
Download PDF

References

  1. D i Cesare, M., Perel, P., Taylor, S., Kabudula, C., Bixby, H., Gaziano, T. A., McGhie, D. V., Mwangi, J., Pervan, B., Narula, J., Pineiro, D., & Pinto, F. J. (2024). The Heart of the World. Global heart, 19(1), 11.
  2. Talin, I.A., Abid, M.H., Khan, MM. (2022). Finding the influential clinical traits that impact on the diagnosis of heart disease using statistical and machine-learning techniques. Sci Rep12, 20199
  3. Kumar, A., & Maben, M. (2025). Heart disease prediction using machine learning algorithms. In 2025 Third International Conference on Networks, Multimedia and Information Technology (NMITCON) 1-6. IEEE.
  4. Sharma, V., Yadav, S., & Gupta, M. (2020). Heart disease prediction using machine learning techniques. In 2020 2nd international conference on advances in computing, communication control and networking (ICACCCN) 177-181. IEEE.
  5. Anbuselvan, P. (2020). Heart disease prediction using machine learning techniques. Int. J. Eng. Res. Technol, 9, 515-518.
  6. Jindal, H., Agrawal, S., Khera, R., Jain, R., & Nagrath, P. (2021). Heart disease prediction using machine learning algorithms. In IOP conference series: materials science and engineering (Vol. 1022, No. 1, p. 012072). IOP Publishing.
  7. Rindhe, B. U., Ahire, N., Patil, R., Gagare, S., & Darade, M. (2021). Heart disease prediction using machine learning. Heart Disease, 5(1).
  8. FEDESORIANO. (2021, September). Heart Failure Prediction Dataset. Retrieved October 25, 2025, from www.kaggle.com website: https: //www.kaggle.com/datasets/fedesoriano/heart-failure-prediction
  9. Kwak, S. K., & Kim, J. H. (2017) Statistical data preparation: management of missing values and outliers. Korean journal of anesthesiology, 70(4), 407–411.
  10. Gijs F N Berkelmans, Read, S. H., Soffia Gudbjörnsdottir, Wild, S. H., Franzen, S., van, … J A N Dorresteijn. (2022). Population median imputation was noninferior to complex approaches for imputing missing values in cardiovascular prediction models in clinical practice. ScienceDirect, 145(0895-4356), 70–80.
  11. Poslavskaya, E., & Korolev, A. (2023). Encoding categorical data: Is there yet anything 'hotter' than one-hot encoding?. arXiv preprint arXiv: 2312.16930.
  12. Pinheiro, J. M. H., de Oliveira, S. V. B., Silva, T. H. S., Saraiva, P. A. R., de Souza, E. F., Godoy, R. V., ... & Becker, M. (2025). The impact of feature scaling in machine learning: Effects on regression and classification tasks. arXiv preprint arXiv: 2506.08274.
  13. Xu, Y., & Goodacre, R. (2018). On splitting training and validation set: a comparative study of cross-validation, bootstrap and systematic sampling for estimating the generalization performance of supervised learning. Journal of analysis and testing, 2(3), 249-262.
  14. Chesnaye, N. C., van Diepen, M., Dekker, F., Zoccali, C., Jager, K. J., & Stel, V. S. (2024) Non-linear relationships in clinical research. Nephrology Dialysis Transplantation, 40(2). https: //doi.org/10.1093/ndt/gfae187
  15. Hassan, M. M., Zaman, S., Rahman, M. M., Bairagi, A. K., El-Shafai, W., Rathore, R. S., & Gupta, D. (2024). Efficient prediction of coronary artery disease using machine learning algorithms with feature selection techniques. Computers and Electrical Engineering, 115, 109130.
  16. Dhiman, P., Ma, J., Qi, C., Bullock, G. S., Sergeant, J. C., Riley, R. D., & Collins, G. S. (2023) Sample size requirements are not being considered in studies developing prediction models for binary outcomes: a systematic review. BMC Medical Research Methodology, 23(1).
  17. Sajeev, S. et al. (2019). Deep Learning to Improve Heart Disease Risk Prediction. In: Liao, H., et al. Machine Learning and Medical Engineering for Cardiovascular Health and Intravascular Imaging and Computer Assisted Stenting. MLMECH CVII-STENT 2019 2019. Lecture Notes in Computer Science, 11794. Springer, Cham.
  18. Hasnat, Md Abrar, Jobayer, M., Hasan, M., & Alam, (2025, November). Interpretable Heart Disease Prediction via a Weighted Ensemble Model: A Large-Scale Study with SHAP and Surrogate Decision Trees. Retrieved from arXiv.org website: https: //arxiv.org/abs/2511.01947?utm_source=chatgpt.com