Research Article

A Comparative Study of Logistic Regression and Machine Learning Models for Diabetes Prediction Using the BRFSS Dataset

Yuchen Zhang*
ZJUI Institute, Zhejiang University, Hangzhou, Zhejiang, China, 310058

* Corresponding author: [email protected]

Abstract

Diabetes mellitus, particularly type 2 diabetes, is a growing global health challenge with significant clinical and economic consequences. Accurate early prediction of diabetes risk may facilitate prevention and timely intervention. In this study, we conducted a comparative analysis of logistic regression (LR), random forest (RF), and Extreme Gradient Boosting (XGBoost) models for diabetes prediction using the Behavioral Risk Factor Surveillance System (BRFSS) 2015 dataset (N = 253,680). The dataset included demographic, lifestyle, and clinical variables. Models were evaluated on accuracy, area under the receiver operating characteristic curve (ROC AUC), and precision–recall AUC (PR AUC). All models demonstrated strong discriminative performance (ROC AUC = 0.82–0.83), with XGBoost slightly outperforming LR and RF. Feature importance analysis revealed that general health status, high blood pressure, body mass index, cholesterol level, and age were consistent predictors across models. While ML models provided higher predictive performance, logistic regression retained value in interpretability. These findings underscore the potential of integrating machine learning into diabetes risk assessment while maintaining clinical interpretability.

Keywords: Diabetes; Logistic Regression; BRFSS
Published: October 28, 2025
DOI: 10.54254/2755-2721/2025.LD28522
Volume: ACE Vol.196
pp. 179-187
Download PDF

References

  1. World Health Organization. (2024). Diabetes. https: //www.who.int/news-room/fact-sheets/detail/diabetes
  2. Cho, N. H., et al. (2018). IDF Diabetes Atlas: Global estimates of diabetes prevalence. Diabetes Research and Clinical Practice, 138, 271–281.
  3. Joshi, R. D. (2021). Predicting type 2 diabetes using logistic regression and decision tree algorithms. Journal of Diabetes Science and Technology, 15(4), 755–763.
  4. Lynam, A. L., & Sutherland, S. (2020). Logistic regression vs machine learning in diabetes classification. npj Digital Medicine, 3, 1–8.
  5. Shin, J. (2022). Development of diabetes prediction models using health screening test parameters. Diabetes & Metabolism Journal, 46(6), 752–763.
  6. Xie, Z., et al. (2019). Building risk prediction models for type 2 diabetes using machine learning. Preventing Chronic Disease, 16, E109.
  7. Li, W. (2024). GA-XGBoost for diabetes prediction. npj Digital Medicine, 7, 1–10.
  8. Kavakiotis, I., et al. (2017). Machine learning and data mining approaches in diabetes research. Computational and Structural Biotechnology Journal, 15, 104–116.
  9. Liang, W., et al. (2019). Development of a machine learning model for diabetes prediction in community settings. Scientific Reports, 9, 1–9.
  10. Wang, Y., et al. (2021). Ensemble machine learning models for predicting type 2 diabetes in adults. Journal of Biomedical Informatics, 115, 103694.
  11. Teboul, A. (n.d.). Diabetes Health Indicators Dataset [Data set]. Kaggle. Retrieved August 31, 2025, from https: //www.kaggle.com/datasets/alexteboul/diabetes-health-indicators-dataset