Skip to content
Open access

Development of an explainable machine learning framework for early diabetes detection, multiclass classification, and risk stratification across age groups

Oct 2026 · Frontiers in Digital Health · Vol 8 · 0 citations · 64 references
Medicine

TL;DR

A ML framework integrating age stratified modelling with explainable ML frameworks to improve interpretability is presented that can support clinical decision-making systems, individualized risk assessment, and potential applications for targeted intervention in diabetes progression.

Abstract

Objective To develop and evaluate a novel machine learning (ML) framework tailored to a clinical diabetes dataset and to assess whether demographic stratification enhances model performance and interpretability for multiclass diabetes classification. Methods A clinical dataset of 264 patients' records was used to classify individuals including non-diabetic (36.4%), prediabetic (15.2%), and diabetic (48.5%) individuals. Several supervised learning models were trained using 80:20 train-test split and optimized using RandomizedSearchCV and 10-fold cross validation. Model performance was evaluated using the metrics accuracy, precision, recall and the F1-score. Area under the receiver operating characteristic curve (AUC) was calculated for the best generalizing model. A structured ML framework was developed for this dataset, incorporating preprocessing, model optimization, age stratification analysis age (<35 vs ≥35 years) and gender. SHAP was developed for model interpretability. Results Ensemble methods demonstrated superior performance in comparison to linear or single-tree approaches, with Gradient Boosting showing the most stable generalization with a test accuracy of 0.981 and stable cross validation accuracy of 0.972. AUC-ROC analysis using Gradient Boosting yielded good discriminative ability across the three diabetes classes: 0.991 (non-diabetic), 0.986 (prediabetic) and 0.972 (diabetic). Stratified analysis showed improved reliability in individuals aged ≥35 years (accuracy = 0.94, F1-score = 0.92), while performance in younger individuals was unstable due to small sample size. SHAP analysis identified HbA1c, BMI, and age as dominant predictors. Conclusion This study presents a ML framework integrating age stratified modelling with explainable ML frameworks to improve interpretability. The findings offer clinically relevant results that can support clinical decision-making systems, individualized risk assessment, and potential applications for targeted intervention in diabetes progression.

Read PDF

Similar papers

Open access Aug 2026

A Comparative Evaluation of Machine Learning Algorithms for Diabetes Risk Prediction

Evaluated machine learning algorithms for predicting diabetes risk from routinely available clinical and lifestyle variables confirm that ensemble tree-based methods, particularly Random Forest, provide a reliable, interpretable, and deployable basis for diabetes risk screening, especially in resource-constrained setti...

T. Olayinka · 0 citations
Sep 2026

Improving 10-year cardiovascular disease risk prediction using automated machine learning.

This study developed an AutoML-based CVD risk prediction model with superior discrimination and calibration, providing clinicians a practical tool for risk stratification, and has the potential to reduce CVD burden at the population level.

Si-Min He, Ju-Ping Wang, Le Zhao et al. · 0 citations
Sep 2026

Evaluating the Predictive Performance of Metabolic Biomarkers for 20- Year Incidence Diabetes in the Yazd Healthy Heart Cohort: A Machine Learning Analysis

Conventional machine learning models using baseline data are insufficient for predicting diabetes incidence over long-term horizons, and the development of dynamic models that incorporate temporal changes in variables and complex pathophysiological interactions is essential for acceptable accuracy in long-term predicti...

A. Ghadiri-anari, S. Namayandeh, M. Ahi · 0 citations
Open access Sep 2026

Explainable diabetes prediction using a stacked ensemble framework

A robust and explainable machine learning framework based on a stacked ensemble model that uses Random Forest, Support Vector Machine, and Gradient Boosting as base learners and Catboost as the meta-learner to support more informed and trustworthy decision-making in healthcare applications is presented.

Saher Fatima Awan, Kainat Irfan, Umair Muneer Butt et al. · 1 citation
Oct 2026

Machine Learning-Based Early Detection of Diabetes Mellitus: An Ensemble Framework Enhanced with Explainable AI and Ablation Study

The proposed approach combines ensemble learning, calibration, interpretability, and statistically strong validation, making diabetes risk prediction more of a transparent and clinically interpretable decision support tool for early risk assessment instead of a black box approach.

G. Gayathri · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.