Early Type 2 diabetes risk prediction using explainable machine learning in a two-stage approach

Background Diabetes is a chronic disease characterized by elevated blood glucose levels. Without early detection and proper management, it can lead to serious complications and increase healthcare costs. Its global prevalence is rising, with many cases remaining undiagnosed. In this study, we developed an explainable machine learning model using a two-stage approach for predicting diabetes. Methods Five machine learning (ML) models, including Multi-Layer Perceptron, Support Vector Machine, K-Nearest Neighbor, Extreme Gradient Boosting (XGBoost), and Naïve Bayes, were trained and evaluated using a two-stage approach. In Stage one, a public dataset containing 520 samples was used, and Shapley Additive exPlanations (SHAP) and MLP weights were applied for feature selection. In Stage two, the same models were trained and evaluated using a dataset of 270,943 samples collected from Rwanda. SHAP was further employed to explain the model output. Results In Stage one, the Multi-Layer Perceptron model achieved the best performance on a public dataset, with an accuracy of 95.19%. Feature selection techniques identified the top 10 influential predictors associated with diabetes risk, including those recommended by diabetes care providers in Rwanda. In Stage two, the XGB model outperformed other models, achieving an accuracy of 97.14%. Conclusion This study presents a two-stage, explainable machine learning framework for systematic screening for type 2 diabetes. The first stage evaluates risk based on reported symptoms, while the second stage incorporates demographic, anthropometric, and vital sign data for refined risk assessment. Integration of these models into the mUzima mobile application can enhance community health workers' capacity to identify and refer high-risk individuals. By enabling early and accurate detection, the proposed approach has the potential to reduce undiagnosed diabetes and support improved disease management.

Authors

Institutions

Publication Details

Journal
Frontiers in Digital Health
Published
2026-03-27
DOI
https://doi.org/10.3389/fdgth.2026.1743619
Primary Topic
Artificial Intelligence in Healthcare
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Early Type 2 diabetes risk prediction using explainable machine learning in a two-stage approach

Célestin Twizere, Tony Lindgren, Isaac Ntakirutimana, Silas Majyambere
Frontiers in Digital Health
Artificial Intelligence in Healthcare
article

Early Type 2 diabetes risk prediction using explainable machine learning in a two-stage approach

Célestin Twizere, Tony Lindgren, Isaac Ntakirutimana, Silas Majyambere
article en

Abstract

Background Diabetes is a chronic disease characterized by elevated blood glucose levels. Without early detection and proper management, it can lead to serious complications and increase healthcare costs. Its global prevalence is rising, with many cases remaining undiagnosed. In this study, we developed an explainable machine learning model using a two-stage approach for predicting diabetes. Methods Five machine learning (ML) models, including Multi-Layer Perceptron, Support Vector Machine, K-Nearest Neighbor, Extreme Gradient Boosting (XGBoost), and Naïve Bayes, were trained and evaluated using a two-stage approach. In Stage one, a public dataset containing 520 samples was used, and Shapley Additive exPlanations (SHAP) and MLP weights were applied for feature selection. In Stage two, the same models were trained and evaluated using a dataset of 270,943 samples collected from Rwanda. SHAP was further employed to explain the model output. Results In Stage one, the Multi-Layer Perceptron model achieved the best performance on a public dataset, with an accuracy of 95.19%. Feature selection techniques identified the top 10 influential predictors associated with diabetes risk, including those recommended by diabetes care providers in Rwanda. In Stage two, the XGB model outperformed other models, achieving an accuracy of 97.14%. Conclusion This study presents a two-stage, explainable machine learning framework for systematic screening for type 2 diabetes. The first stage evaluates risk based on reported symptoms, while the second stage incorporates demographic, anthropometric, and vital sign data for refined risk assessment. Integration of these models into the mUzima mobile application can enhance community health workers' capacity to identify and refer high-risk individuals. By enabling early and accurate detection, the proposed approach has the potential to reduce undiagnosed diabetes and support improved disease management.

Frontiers in Digital HealthVol. 8
Stockholm University (SE), Rwanda Biomedical Center (RW)
Good health and well-being
Openalex Percentile: Top 6%
Artificial Intelligence in Healthcare
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.