Heart Disease Prediction Models Performance Analysis based on Logistic Regression, Random Forest and XGBoost

Authors

  • Zehao Chen

DOI:

https://doi.org/10.54097/bc4caz77

Keywords:

Heart diseae prediction; machine learning models; senior adults; logistic regression.

Abstract

Heart disease is a leading cause of mortality worldwide, underscoring the urgent need for effective early detection techniques. This study evaluates the predictive effectiveness of three machine learning models-Logistic Regression, Random Forest, and XGBoost-using data from the CDC’s Behavioral Risk Factor Surveillance System (BRFSS), focusing on individuals aged 60–69. The class weighting method was employed to address class imbalance. The dataset was partitioned into training and testing sets in a 7:3 ratio. The assessment of model performance was performed using accuracy, sensitivity, specificity, F1-score, and the area under the ROC curve (AUC). The Random Forest model achieved the highest sensitivity (0.81) and F1-score (0.87), effectively identifying affirmative cases, however it demonstrated lower specificity (0.51). XGBoost demonstrated a balanced accuracy of 0.73, with a sensitivity of 0.75 and a specificity of 0.58. Logistic Regression had the highest AUC (0.77) and specificity (0.67), along with notable sensitivity (0.72), offering the ideal equilibrium between true positive and false positive rates. Logistic Regression was selected as the final model because of its equitable performance and clinical interpretability. These findings underscore the importance of interpretable models in medical applications and advocate for their integration into preventative cardiovascular care. Future research should encompass more extensive clinical characteristics and validate findings across diverse populations.

Downloads

Download data is not yet available.

References

[1] Cai Y Q, Gong D X, Tang L Y, Cai Y, Li H J, Jing T C, Gong M, Hu W, Zhang Z W, Zhang X, Zhang G W. Pitfalls in Developing Machine Learning Models for Predicting Cardiovascular Diseases: Challenge and Solutions. J Med Internet Res, 2024, 26: 47645.

[2] Sadr H, Salari A, Ashoobi M T, et al. Cardiovascular disease diagnosis: a holistic approach using the integration of machine learning and deep learning models. Eur J Med Res, 2024, 29: 455.

[3] Mensah G A, Fuster V, Murray C J L, Roth G A. Global Burden of Cardiovascular Diseases and Risks Collaborators. Journal of the American College of Cardiology, 2020, 82(25): 2350-2473.

[4] Berger J S, Jordan C O, Lloyd-Jones D M, Blumenthal R S. Screening for cardiovascular risk in asymptomatic patients. Journal of the American College of Cardiology, 2010, 55(12): 1169-1177.

[5] Weng S F, Reps J, Kai J, Garibaldi J M, Qureshi N. Can machine-learning improve cardiovascular risk prediction using routine clinical data? PLoS ONE, 2017, 12(4): 174944.

[6] Quer G, Arnaout R, Henne M, Arnaout R. Machine learning and the future of cardiovascular care: JACC state-of-the-art review. Journal of the American College of Cardiology, 2021.

[7] Petch J, Di S, Nelson W. Opening the black box: The promise and limitations of explainable machine learning in cardiology. Canadian Journal of Cardiology, 2022, 38(2): 204-213.

[8] Zhang Jingyi, Zhang Shizhong. Research progress in the epidemiology and related mechanisms of cardiovascular diseases and psychological diseases. Chinese Journal of General Medicine, 2023, 1-7.

[9] Achyut Tiwari, Aryan Chugh, Aman Sharma. Ensemble framework for cardiovascular disease prediction, Computers in Biology and Medicine, 2022, 146: 105624.

[10] Ennab Mohammad, Mcheick Hamid. Enhancing interpretability and accuracy of AI models in healthcare: a comprehensive review on challenges and future directions, Frontiers in Robotics and AI, 2024.

Downloads

Published

05-09-2025

How to Cite

Chen, Z. (2025). Heart Disease Prediction Models Performance Analysis based on Logistic Regression, Random Forest and XGBoost. Highlights in Science, Engineering and Technology, 153, 115-124. https://doi.org/10.54097/bc4caz77