Explainable cluster-based learning for prediction of postprandial glycemic events and insulin dose optimization in type 1 diabetes
Effective management of postprandial glycemic excursions in type 1 diabetes requires accurate prediction of adverse events and personalized insulin adjustments informed by interpretable models. This study presents an explainable dual-prediction framework that simultaneously forecasts postprandial hypoglycemia and hyperglycemia within a 4-hour window using cluster-personalized ensemble models. Glycemic profiles were identified through a hybrid unsupervised approach combining self-organizing maps and k-means clustering, enabling the training of specialized random forest classifiers. The system outperformed baseline models on both real-world and simulated datasets, achieving high performance (AUC = 0.84 and 0.93; MCC = 0.47 and 0.73 for hypo- and hyperglycemia, respectively). Model interpretability was addressed using global (SHAP) and local (LIME) explanations, while interaction analysis revealed the non-linear effects of carbohydrate intake and insulin bolus combinations. An insulin adjustment module further refined pre-meal bolus recommendations based on predicted risk. Simulated evaluations confirmed improved postprandial time-in-range and reduced hypoglycemia without excessive hyperglycemia. These results underscore the potential of profile-driven and explainable machine learning approaches to support safer, individualized diabetes care.
Authors
- Iván Contreras (ORCID: https://orcid.org/0000-0001-6896-818X)
- Najib Ur Rehman (ORCID: https://orcid.org/0000-0003-1489-3543)
- Josep Vehı́ (ORCID: https://orcid.org/0000-0001-6884-9789)
- Aleix Beneyto (ORCID: https://orcid.org/0000-0001-8207-2259)
Institutions
- Universitat de Girona (ES)
- Centro de Investigación Biomédica en Red Diabetes y Enfermedades Metabólicas Asociadas (ES)
Publication Details
- Journal
- PLOS Digital Health
- Published
- 2025-09-16
- DOI
- https://doi.org/10.1371/journal.pdig.0000996
- Citations
- 2
- Primary Topic
- Diabetes Management and Research
- Type
- article
- Field-Weighted Citation Impact
- 2.59