Related Experiment Video
Updated: Jan 11, 2026

Improving IV Insulin Administration in a Community Hospital
Published on: June 11, 2012
A machine learning model for hypoglycemia risk prediction in hospitalized patients with diabetes: development and
Liren Li1, Jiayu Chen2, Tongshu Guan2
1Clinical Pharmacy Center, Nanfang Hospital, Southern Medical University, Guangzhou, China; Department of Pharmacy, Nanfang Hospital, Southern Medical University, Guangzhou, China.
Background:
Hypoglycemia is a major obstacle for optimal glucose management in patients with diabetes. Existing prediction models primarily target non-hospitalized settings or use static variables, limiting applicability for hospitalized patients. We aimed to developed and validated a machine learning model predicting inpatient hypoglycemia using electronic medical records data, integrating dynamic clinical variables to improve accuracy and clinical utility.
Methods And Findings:
We conducted a retrospective study of 37,966 inpatients with diabetes mellitus at Nanfang Hospital (2021-2022). After applying inclusion and exclusion criteria, 2,845 patients were included. Data preprocessing focused on analyzing potential predictors, including demographic characteristics, medication use, comorbidities, and laboratory parameters. Using a stepwise forward variable selection method based on XGBoost, we identified 10 optimal predictors. The cohort was split into training and testing sets at an 8:2 ratio. Predictive performance was assessed via AUC. Ten ML algorithms were evaluated, with CatBoost demonstrating the best performance (AUC = 0.85, PPV = 0.75, NPV = 0.89).
Conclusions:
Our ML-based predictive model for inpatient hypoglycemia shows robust performance and integrates readily available clinical parameters, offering significant potential for early risk identification and preventive intervention. Future research should focus on multicenter validation and seamless integration into clinical workflows to support dynamic risk assessment.
Related Concept Videos
Hypoglycemia and Glucagon
Diabetes: Symptoms, Diagnosis, and Complications
Diabetes Mellitus: Type 2 and Gestational
Diabetes Mellitus: Overview and Type I Subtype
Type 1 diabetes is an autoimmune disease in which the immune system mistakenly attacks and destroys the insulin-producing beta cells in the pancreas. As a result, the body is unable to produce sufficient insulin, and individuals with...
Pathophysiology of Diabetes
Type 1 diabetes is characterized by autoimmune-mediated destruction of pancreatic β cells, with environmental factors potentially triggering this process in genetically susceptible individuals. Despite many not having a family history, certain genes increase susceptibility,...
Diabetes: Management and Pharmacotherapy
Insulin remains the cornerstone of treatment for most patients with type 1 and many...

