Construction and Analysis of a Risk Prediction Model for Heart Disease Based on Binary Logit Regression and Random Forest Model

Authors

  • Ailin Du

DOI:

https://doi.org/10.61173/ns18c775

Keywords:

Random Forest Model, Binary Logit Regression, Cardiovascular prediction, Heart Disease Prediction

Abstract

Heart disease (HD) is one of the most serious health problems worldwide. If it can be predicted at an early stage, it can prevent heart attacks and thereby reduce the mortality rate of HD. Previous studies that successfully predicted HD using random forest models and binary logistic models have inspired this research. Therefore, this research jointly uses the random forest model and the binary logistic model to make more reliable and stable predictions of HD. This research analyzed the survey data on the annual health status of over 400,000 adults from the Centers for Disease Prevention and Control of the United States in the public database of the Kaggle website in 2022. Finally, it was concluded that stroke is the most significant factor affecting HD.  In the visual analysis and the predictions of the two models, the risk factor Stroke stood out significantly. In the prediction results of the random forest model, this factor ranked among the top four, with a model prediction accuracy of 89%. In the binary logit model prediction, the variable Stroke ranked first, with a model prediction accuracy of 91.36%. Both models had relatively high accuracy rates, and Stroke was determined as a significant influencing factor in both models, making the prediction results reliable. This research provides a theoretical basis for early clinical screening of HD and offers more innovative and reliable prediction methods, which is expected to reduce the mortality rate of HD in the future.

References

Burden of Disease Study 2016. 2023. Proc. 2020 International Conference on Computer, Control, [3] Ralapanawa U., Sivakanesan R. Epidemiology and the Electrical, and Electronics Engineering (ICCCEEE), IEEE,

magnitude of coronary artery disease and acute coronary 2021: 1-6. syndrome: a narrative review. Journal of Epidemiology and [7] Pytlak K. Indicators of heart disease (2022 update. Kaggle,

Global Health, 2021, 11(2): 169-177. 2022. Available: https://www.kaggle.com/datasets/kamilpytlak/ [4] Bhowmik P. K., Miah M. N. I., Uddin M. K., Sizan M. M. personal-key-indicators-of-heart-disease (Accessed: 2025-07- H., Pant L., Islam M. R., Gurung N. Advancing heart disease 22). prediction through machine learning: techniques and insights [8] Scheitz J. F., Sposato L. A., Schulz-Menger J., Nolte C. H., for improved cardiovascular health. British Journal of Nursing Backs J., Endres M. Stroke–heart syndrome: recent advances

Studies, 2024, 4(2): 35-50. and challenges. Journal of the American Heart Association, [5] Sumwiza K., Twizere C., Rushingabigwi G., Bakunzibake 2022, 11(17): e026528. P., Bamurigire P. Enhanced cardiovascular disease prediction [9] George M. G. Risk factors for ischemic stroke in younger

model using random forest algorithm. Informatics in Medicine adults: a focused update. Stroke, 2020, 51(3): 729-735.

Downloads

Published

2025-10-23