Explainable machine learning versus logistic regression for diabetes risk prediction in Pima Indian women: a calibration- and decision-focused internal validation study

https://doi.org/10.55529/jpdmhd.62.73.86

Authors

  • Mainazarova Elmira Department of Public Health and Family Medicine, Jalal-Abad International University, 720906, 24 Kurmanbek Str., Manas, Kyrgyzstan. https://orcid.org/0000-0003-4397-8431
  • Arzykulova Ainagul Department of Clinical Disciplines, Jalal-Abad International University, 720906, 24 Kurmanbek Str., Manas, Kyrgyzstan. https://orcid.org/0009-0001-2166-9059
  • Mamashov Nurbek Department of Clinical Disciplines, Jalal-Abad International University, Osh State University, Osh International Medical University, 720906, 24 Kurmanbek Str., Manas, Kyrgyzstan. https://orcid.org/0000-0003-3764-5307

Keywords:

Diabetes Mellitus, Clinical Prediction Model, Machine Learning, Explainable Artificial Intelligence, Decision Curve Analysis

Abstract

Background: Machine learning (ML) models for diabetes prediction frequently emphasise accuracy while overlooking calibration and clinical utility. This study compared logistic regression (LR) with ML approaches and laboratory-based with non-laboratory predictor sets.

Methods: The Pima Indians Diabetes Database comprising 768 women aged ≥21 years, including 268 (34.9%) with diabetes, was analysed. Five models were evaluated: glucose-only LR, non-laboratory LR, full LR, random forest and gradient boosting. Missing physiologically implausible values were imputed within training folds. Model performance was assessed using repeated 5-fold cross-validation (10 repetitions), discrimination (AUROC), calibration slope, calibration-in-the-large, Brier score and decision curve analysis. SHapley Additive exPlanations (SHAP) assessed predictor contributions. Reporting followed TRIPOD+AI guidelines.

Results: Full LR achieved an AUROC of 0.837 (95% CI 0.809–0.864), comparable to random forest (0.838; 95% CI 0.809–0.865) and gradient boosting (0.831; 95% CI 0.800–0.859). Glucose-only and non-laboratory LR achieved AUROCs of 0.790 and 0.749, respectively. LR and random forest demonstrated acceptable calibration (slopes 0.93 and 1.07), whereas gradient boosting showed overextreme predictions (0.69). All models provided greater net benefit than testing all women across thresholds of 0.10–0.60. Plasma glucose and body mass index were the strongest predictors.

Conclusions: ML approaches provided no meaningful discrimination advantage over LR. Gradient boosting required recalibration. Non-laboratory prediction may support screening decisions where laboratory access is limited. External validation in diverse populations is essential before clinical implementation.

References

H. Sun et al., “IDF Diabetes Atlas: global, regional and country-level diabetes prevalence estimates for 2021 and projections for 2045,” Diabetes Res Clin Pract, vol. 183, Art. no. 109119, 2022. https://doi.org/10.1016/j.diabres.2021.109119

GBD 2021 Diabetes Collaborators, “Global, regional, and national burden of diabetes from 1990 to 2021, with projections of prevalence to 2050: a systematic analysis for the Global Burden of Disease Study 2021,” Lancet, vol. 402, no. 10397, pp. 203–234, 2023. https://doi.org/10.1016/S0140-6736(23)01301-6

R. M. Anjana et al., “Metabolic non-communicable disease health report of India: the ICMR-INDIAB national cross-sectional study (ICMR-INDIAB-17),” Lancet Diabetes Endocrinol, vol. 11, no. 7, pp. 474–489, 2023. https://doi.org/10.1016/S2213-8587(23)00119-5

W. C. Knowler et al., “Reduction in the incidence of type 2 diabetes with lifestyle intervention or metformin,” N Engl J Med, vol. 346, no. 6, pp. 393–403, 2002. https://doi.org/10.1056/NEJMoa012512

American Diabetes Association Professional Practice Committee, “2. Diagnosis and classification of diabetes: Standards of Care in Diabetes—2024,” Diabetes Care, vol. 47, no. Suppl 1, pp. S20–S42, 2024. https://doi.org/10.2337/dc24-S002

J. Lindström and J. Tuomilehto, “The diabetes risk score: a practical tool to predict type 2 diabetes risk,” Diabetes Care, vol. 26, no. 3, pp. 725–731, 2003. https://doi.org/10.2337/diacare.26.3.725

V. Mohan, R. Deepa, M. Deepa, S. Somannavar, and M. Datta, “A simplified Indian Diabetes Risk Score for screening for undiagnosed diabetic subjects,” J Assoc Physicians India, vol. 53, pp. 759–763, 2005.

E. Christodoulou, J. Ma, G. S. Collins, E. W. Steyerberg, J. Y. Verbakel, and B. Van Calster, “A systematic review shows no performance benefit of machine learning over logistic regression for clinical prediction models,” J Clin Epidemiol, vol. 110, pp. 12–22, 2019. https://doi.org/10.1016/j.jclinepi.2019.02.004

Van Calster B, McLernon DJ, van Smeden M, Wynants L, Steyerberg EW; Topic Group ‘Evaluating diagnostic tests and prediction models’ of the STRATOS initiative, “Calibration: the Achilles heel of predictive analytics,” BMC Med, vol. 17, Art. no. 230, 2019. https://doi.org/10.1186/s12916-019-1466-7

C. Rudin, “Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead,” Nat Mach Intell, vol. 1, no. 5, pp. 206–215, 2019. https://doi.org/10.1038/s42256-019-0048-x

R. D. Joshi and C. K. Dhakal, “Predicting type 2 diabetes using logistic regression and machine learning approaches,” Int J Environ Res Public Health, vol. 18, no. 14, Art. no. 7346, 2021. https://doi.org/10.3390/ijerph18147346

G. S. Collins et al., “TRIPOD+AI statement: updated guidance for reporting clinical prediction models that use regression or machine learning methods,” BMJ, vol. 385, Art. no. e078378, 2024. https://doi.org/10.1136/bmj-2023-078378

J. W. Smith, J. E. Everhart, W. C. Dickson, W. C. Knowler, and R. S. Johannes, Using the ADAP learning algorithm to forecast the onset of diabetes mellitus, in Proceedings of the Annual Symposium on Computer Application in Medical Care. Washington, DC: IEEE Computer Society Press;, pp. 261–265, 1988.

W. C. Knowler, P. H. Bennett, R. F. Hamman, and M. Miller, “Diabetes incidence and prevalence in Pima Indians: a 19-fold greater incidence than in Rochester, Minnesota,” Am J Epidemiol, vol. 108, no. 6, pp. 497–505, 1978. https://doi.org/10.1093/oxfordjournals.aje.a112648

S. van Buuren and K. Groothuis-Oudshoorn, “mice: Multivariate Imputation by Chained Equations in R,” J Stat Softw, vol. 45, no. 3, pp. 1–67, 2011. https://doi.org/10.18637/jss.v045.i03

L. Breiman, “Random forests,” Mach Learn, vol. 45, no. 1, pp. 5–32, 2001. https://doi.org/10.1023/A:1010933404324

J. H. Friedman, “Greedy function approximation: a gradient boosting machine,” Ann Stat, vol. 29, no. 5, pp. 1189–1232, 2001. https://doi.org/10.1214/aos/1013203451

E. W. Steyerberg and Y. Vergouwe, “Towards better clinical prediction models: seven steps for development and an ABCD for validation,” Eur Heart J, vol. 35, no. 29, pp. 1925–1931, 2014. https://doi.org/10.1093/eurheartj/ehu207

A. J. Vickers and E. B. Elkin, “Decision curve analysis: a novel method for evaluating prediction models,” Med Decis Making, vol. 26, no. 6, pp. 565–574, 2006. https://doi.org/10.1177/0272989X06295361

B. Van Calster et al., “Reporting and interpreting decision curve analysis: a guide for investigators,” Eur Urol, vol. 74, no. 6, pp. 796–804, 2018. https://doi.org/10.1016/j.eururo.2018.08.038

S. M. Lundberg and S. I. Lee, A unified approach to interpreting model predictions, in Advances in Neural Information Processing Systems 30 (NIPS 2017). Long Beach, CA, 2017. arXiv:1705.07874. https://arxiv.org/abs/1705.07874

S. M. Lundberg et al., “From local explanations to global understanding with explainable AI for trees,” Nat Mach Intell, vol. 2, no. 1, pp. 56–67, 2020. https://doi.org/10.1038/s42256-019-0138-9

R. D. Riley et al., “Calculating the sample size required for developing a clinical prediction model,” BMJ, vol. 368, Art. no. m441, 2020. https://doi.org/10.1136/bmj.m441

F. Pedregosa et al., “Scikit-learn: machine learning in Python,” J Mach Learn Res, vol. 12, pp. 2825–2830, 2011.

S. Seabold and J. Perktold, Statsmodels: econometric and statistical modeling with Python, in Proceedings of the 9th Python in Science Conference. Austin, TX;, pp. 92–96, 2010. https://doi.org/10.25080/Majora-92bf1922-011

Published

2026-09-09

How to Cite

Mainazarova, E., Arzykulova, A., & Mamashov, N. (2026). Explainable machine learning versus logistic regression for diabetes risk prediction in Pima Indian women: a calibration- and decision-focused internal validation study. Journal of Prevention, Diagnosis and Management of Human Diseases, 6(2), 73–86. https://doi.org/10.55529/jpdmhd.62.73.86