Leveraging XGBoost and explainable AI for accurate prediction of type 2 diabetes
Zahra Rafie, Moslem Sedaghat Talab, Behrooz Ebrahim Zadeh Koor, Ali Garavand, Cirruse Salehnasab, Mustafa Ghaderzadeh
Yasuj University of Medical Sciences · Lorestan University of Medical Sciences
Key points
From the paper's conclusion- This study demonstrates that combining advanced gradient‑boosting models with SHAP explainability yields highly accurate, interpretable T2DM risk prediction in an underrepresented population.
Abstract
INTRODUCTION: Type 2 diabetes mellitus (T2DM) poses a major public health challenge, particularly in regions with limited representation in predictive modeling studies. This research aimed to develop and interpret robust machine learning (ML) models for early T2DM risk prediction using data from the Dena Cohort in Iran. METHODS: Data from 3,203 adults aged 35–70 years were preprocessed through outlier removal, median/mode imputation, feature selection via LightGBM, and class balancing with the Synthetic Minority Over‑sampling Technique (SMOTE). Two gradient‑boosting algorithms, XGBoost and CatBoost, underwent hyperparameter tuning and 10‑fold cross‑validation. Model performance was assessed using accuracy, F1‑score, and the area under the receiver operating characteristic curve (AUC). Shapley Additive Explanations (SHAP) provided global and case‑specific interpretability of predictive features. RESULTS: XGBoost achieved the highest performance (accuracy = 96.07%, AUC = 99.29%), outperforming CatBoost and demonstrating substantial improvement with SMOTE balancing. Key predictors included fasting blood sugar, fatty liver, urolithiasis, red blood cell indices, and lifestyle factors such as energy drink consumption and prolonged television viewing. SHAP visualizations enhanced model transparency and facilitated individualized risk interpretation. CONCLUSION: This study demonstrates that combining advanced gradient‑boosting models with SHAP explainability yields highly accurate, interpretable T2DM risk prediction in an underrepresented population. These findings support integrating interpretable ML into clinical workflows for personalized prevention and early intervention strategies.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- D.R.E.A.M: diabetes risk via explainable AI modelingMultimedia Tools and Applications · 2026
- Development of an explainable machine learning model for predicting depression in adults with type 2 diabetes mellitus: A cross-sectional SHAP-based analysis of NHANES 2009–2023Medicine · 2026
- Improving Diabetes Prediction Accuracy and Interpretability with SMOTE and SHAPEngineering Technology & Applied Science Research · 2026
- Evaluation and Comparison of Machine Learning Methods for Type 2 Diabetes Classification and Associated Factors.Healthcare informatics research · 2026
- Explainable Tree-Based Ensemble Models for Diabetes Prediction Using SHAPAUIQ technical engineering science. · 2026
- Construction and validation of a hypoglycemia risk prediction model for hospitalized type 2 diabetes patients based on machine learningBMC Endocrine Disorders · 2025