Development and validation of an interpretable machine learning model for predicting in-hospital hypoglycemia in adults with type 1 diabetes mellitus: a multicenter retrospective study
Background: In-hospital hypoglycemia remains a serious and potentially life-threatening complication among adults with type 1 diabetes mellitus (T1DM), yet reliable and interpretable prediction tools for Chinese inpatients are lacking. We aimed to develop and validate an interpretable machine learning model using multicenter inpatient data to predict the risk of in-hospital hypoglycemia in adults with T1DM, and to enhance clinical understanding of key predictors. Methods: = 450). Within the development set, we performed 5-fold stratified cross-validation for hyperparameter tuning, and both internal cross-validation and external validation remained fully independent throughout model development. Machine learning models were trained to predict in-hospital hypoglycemia and evaluated for discrimination, calibration, clinical utility, and interpretability. Results: : 0.798-0.873), sensitivity of 0.793, specificity of 0.748, and a Brier score of 0.149. Hemoglobin, potassium, sodium, low-density lipoprotein cholesterol, and age at onset were identified as the top predictors. Hemoglobin, potassium, sodium, and BMI exhibited U-shaped associations with hypoglycemia risk, where both low and high values increased risk. Exploratory analysis of joint biomarker status showed that patients with abnormalities in two or more of these core predictors had a non-significant trend toward higher event rates, while the complexity of their combined effects was better captured by the non-linear model. The model enabled effective risk stratification into four quartiles, and decision curve analysis confirmed its consistent net clinical benefit across relevant probability thresholds. Conclusions: The interpretable random forest model using routine inpatient data showed strong discrimination, good calibration and useful risk stratification for in-hospital hypoglycemia in Chinese adults with T1DM, which may help identify high-risk patients early and guide targeted preventive interventions in clinical practice.
Authors
- Qian Tang (ORCID: https://orcid.org/0000-0001-5108-2868)
- 宣凌燕
- Q X Zhang
- Yuan Zhao (ORCID: https://orcid.org/0000-0002-7045-138X)
- Xiaoli Zhu (ORCID: https://orcid.org/0000-0003-1723-4527)
- S. Saad (ORCID: https://orcid.org/0009-0002-6088-4795)
- Haojie Zhou
- Bianca Tankie Baakile
- Ran Li
- Yanfen Fu
- Ruolin Han (ORCID: https://orcid.org/0009-0000-8706-3140)
- Guniqing Zhugu
- Jianjun Zou
- Guoyan He
- Hui Li
Institutions
- China Pharmaceutical University (CN)
- Dalian Medical University (CN)
- Kunming Medical University (CN)
- Second Affiliated Hospital of Chongqing Medical University (CN)
- Qujing Normal University (CN)
- First Affiliated Hospital of Kunming Medical University (CN)
- Puer University (CN)
- First Affiliated Hospital of Dalian Medical University (CN)
- Southern Medical University (CN)
- Dali University (CN)
- Nanjing Medical University (CN)
- Chongqing Medical University (CN)
Publication Details
- Journal
- Frontiers in Endocrinology
- Published
- 2026-04-17
- DOI
- https://doi.org/10.3389/fendo.2026.1816599
- Primary Topic
- Diabetes Management and Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Jiangsu Pharmaceutical Association
- National Natural Science Foundation of China
- Yunnan Provincial Department of Education