Research Article

Heart disease prediction based on machine learning algorithms

Mingyuan Xu*
National University of Singapore, Singapore, 119077, Singapore

* Corresponding author: [email protected]

Abstract

Heart disease is a medical research field in which the outcome can benefit lots of people. Because there are several factors that might raise the risk of heart disease, it is useful to build a prediction model to assist people in assessing their health. This paper makes use of a Kaggle dataset that was derived from CDC (Centers for Disease Control and Prevention). First, 8 components are analyzed using diagrams, and then the dataset is used to train classifiers in machine learning models. This paper conducts a comparative study between different algorithms, including Decision Tree, Logistic Regression, SVM (Support Vector Machine), and Random Forest. Besides, the factors taken into consideration while evaluating performance include accuracy, precision, recall, and f1-score. As a result, the maximum accuracy is reached by SVM with a linear kernel, and logistic regression achieves the highest precision. In addition, the highest recall and f1-score are obtained from the model SVM with an RBF kernel.

Keywords: Heart Disease Prediction; Decision Tree; Logistic Regression; SVM (Support Vector Machine); Random Forest
Published: June 14, 2023
DOI: 10.54254/2755-2721/6/20230959
Volume: ACE Vol.6
pp. 790-798
Download PDF

References

  1. Rajdhan, A., Agarwal, A., Sai, M., Ravi, D., Ghuli, P. Heart disease prediction using machine learning. International Journal of Research and Technology 9(04), 659-662 (2020).
  2. Jagtap, A., Malewadkar P, Baswat, O., Rambade H. Heart disease prediction using machine learning. International Journal of Research in Engineering. Science and Management 2(2), 352-355 (2019).
  3. Nagaraj, M. L., Chethan, C., Basavaraj, S. P. Prediction of heart disease using machine learning. International Journal of Recent Technology and Engineering 8(2), 474-477 (2019).
  4. Chang, V., Ganatra, M. A., Hall, K., Golightly, L., Xu, Q. W. A. An assessment of machine learning models and algorithms for early prediction and diagnosis of diabetes using health indicators. Healthcare Analytics 2, 100118 (2022).
  5. Chen, T. J. Simone A Ludwig, et al. A performance analysis of dimensionality reduction algorithms in machine learning models for cancer prediction. Healthcare Analytics 100125 (2022).
  6. Javanmard, M. E., Ghaderi, S. F., Hoseinzadeh, M. Data mining with 12 machine learning algorithms for predict costs and carbon dioxide emission in integrated energy-water optimization model in buildings. Energy Conversion and Management 238, 114153 (2021).
  7. Han J. W., Pei, J. Tong, H. H. Data mining: concepts and techniques. Morgan kaufmann (2022).
  8. Hamrani, A. Akbarzadeh, A., Madramootoo, C. A. Machine learning for predicting greenhouse gas emissions from agricultural soils. Science of The Total Environment 741, 140338 (2020).
  9. Wang, Z. Y., Wang, Y. R., Zeng, R., Srinivasan R. S., Ahrentzen, S. Random forest based hourly building energy prediction. Energy and Buildings 171, 11-25 (2018).
  10. Ramalingam, V. V., Dandapath, A., Raja, M. K. Heart disease prediction using machine learning techniques: a survey. International Journal of Engineering & Technology 7(2.8), 684-687 (2018).