Machine learning–based prediction model for hypoglycemia during hospitalization in T2DM patients

Abstract Objective: This study aimed to develop a machine learning–based prediction model for hypoglycemia in hospitalized patients with type 2 diabetes mellitus (T2DM) by utilizing electronic medical records. The goal was to establish a reliable foundation for creating a web-based calculator or applet for clinical use. Methods: Predictive variables were identified through a comprehensive, evidence-based literature review. Potential hypoglycemia risk factors were extracted from electronic medical records using SQL queries generated by PLSQL software. The data set comprised hypoglycemic events occurring between June 2017 and January 2022 at the First Affiliated Hospital of Henan University of Science and Technology. After data preprocessing, binary logistic regression was applied to variables with a P value below 0.1. A hypoglycemia risk model was built using support vector machine (SVM) and random forest (RF) algorithms in MATLAB. The performance of these models was evaluated based on precision, recall, and accuracy, and compared to a binary logistic regression model. Hypoglycemia risk factors were ranked, and external validation was conducted to assess the model’s robustness. Results: Internal validation showed comparable performance between RF and SVM models. The RF model achieved a precision of 93.08%, accuracy of 77.05%, and recall of 77.52%, while the SVM model had 91.81% precision, 74.47% accuracy, and 75.00% recall. Both models outperformed binary logistic regression. External validation showed that the RF model had the highest rates of accuracy (91.50%) and recall (75.00%). The most significant predictors of hypoglycemia included the coefficient of variation, average daily blood glucose, and minimum average blood glucose level (BGmin). Conclusions: RF outperformed traditional logistic regression in predicting hypoglycemia in hospitalized T2DM patients. This model provides a solid basis for the development of websites and applets for the prediction of hypoglycemic events during hospitalization in real-world T2DM patients.

Authors

Institutions

Publication Details

Journal
Interdisciplinary Nursing Research
Published
2025-03-01
DOI
https://doi.org/10.1097/nr9.0000000000000087
Primary Topic
Diabetes Management and Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Machine learning–based prediction model for hypoglycemia during hospitalization in T2DM patients

Na Qi, W. D. Niu, Jiarong Huang, Huiping Yuan et al.
Interdisciplinary Nursing Research
Diabetes Management and Research
article

Machine learning–based prediction model for hypoglycemia during hospitalization in T2DM patients

Na Qi, W. D. Niu, Jiarong Huang, Huiping Yuan, Huifang Peng, Hongwei� Jiang, Shaowei Wang, Xiaomin Zhang, Chang Liu, Ruirui Zhang, Huimin Jia, Hongyan Du, YU Jing-li, Xiaoli Liang, Shuxin Li, Zhumin Jia
article en

Abstract

Abstract Objective: This study aimed to develop a machine learning–based prediction model for hypoglycemia in hospitalized patients with type 2 diabetes mellitus (T2DM) by utilizing electronic medical records. The goal was to establish a reliable foundation for creating a web-based calculator or applet for clinical use. Methods: Predictive variables were identified through a comprehensive, evidence-based literature review. Potential hypoglycemia risk factors were extracted from electronic medical records using SQL queries generated by PLSQL software. The data set comprised hypoglycemic events occurring between June 2017 and January 2022 at the First Affiliated Hospital of Henan University of Science and Technology. After data preprocessing, binary logistic regression was applied to variables with a P value below 0.1. A hypoglycemia risk model was built using support vector machine (SVM) and random forest (RF) algorithms in MATLAB. The performance of these models was evaluated based on precision, recall, and accuracy, and compared to a binary logistic regression model. Hypoglycemia risk factors were ranked, and external validation was conducted to assess the model’s robustness. Results: Internal validation showed comparable performance between RF and SVM models. The RF model achieved a precision of 93.08%, accuracy of 77.05%, and recall of 77.52%, while the SVM model had 91.81% precision, 74.47% accuracy, and 75.00% recall. Both models outperformed binary logistic regression. External validation showed that the RF model had the highest rates of accuracy (91.50%) and recall (75.00%). The most significant predictors of hypoglycemia included the coefficient of variation, average daily blood glucose, and minimum average blood glucose level (BGmin). Conclusions: RF outperformed traditional logistic regression in predicting hypoglycemia in hospitalized T2DM patients. This model provides a solid basis for the development of websites and applets for the prediction of hypoglycemic events during hospitalization in real-world T2DM patients.

Interdisciplinary Nursing ResearchVol. 4(1)
Xidian University (CN), Henan University of Science and Technology (CN), Xi’an University (CN), First Affiliated Hospital of Henan University of Science and Technology (CN), Weifang Maternity and Child Care Hospital (CN)
Openalex Percentile: Top 94%
Diabetes Management and Research
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.