Explainable machine learning versus logistic regression for diabetes risk prediction in Pima Indian women: a calibration- and decision-focused internal validation study
- 9 September 2026
- journal article
- Published by HM Publishers in Journal of Prevention, Diagnosis and Management of Human Diseases
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.This publication has 17 references indexed in Scilit:
- IDF Diabetes Atlas: Global, regional and country-level diabetes prevalence estimates for 2021 and projections for 2045Diabetes Research and Clinical Practice, 2022
- Calculating the sample size required for developing a clinical prediction modelBMJ, 2020
- From local explanations to global understanding with explainable AI for treesNature Machine Intelligence, 2020
- A systematic review shows no performance benefit of machine learning over logistic regression for clinical prediction modelsJournal of Clinical Epidemiology, 2019
- Stop explaining black box machine learning models for high stakes decisions and use interpretable models insteadNature Machine Intelligence, 2019
- Reporting and Interpreting Decision Curve Analysis: A Guide for InvestigatorsEuropean Urology, 2018
- Towards better clinical prediction models: seven steps for development and an ABCD for validationEuropean Heart Journal, 2014
- Reduction in the Incidence of Type 2 Diabetes with Lifestyle Intervention or MetforminThe New England journal of medicine, 2002
- Random ForestsMachine Learning, 2001
- DIABETES INCIDENCE AND PREVALENCE IN PIMA INDIANS: A 19-FOLD GREATER INCIDENCE THAN IN ROCHESTER, MINNESOTAAmerican Journal of Epidemiology, 1978