Development and validation of a machine learning model for real-time blood glucose prediction for ICU patients
摘要
Glucose control of ICU patients is complicated due to various diseases, different patient characteristics, and divergent treatment received during ICU stay. To deal with this challenge, machine learning prediction models are emerging to forecast glucose-related events. Our study utilizing the machine learning algorithm to develop a real-time blood glucose (BG) prediction model, which aims to promote the precision insulin therapy.
MethodsElectronic medical record data from a tertiary hospital were collected from September 2021 to September 2022. Demographics, comorbidities, vital signs, laboratory results, previous BG measurements, records of insulin injection, nutritional intake, and vasoactive inotropic score (VIS) were included as candidate predictor variables. Four machine learning algorithms including elastic net linear regression, random forest, eXtreme Gradient Boosting (XGBoost), and support vector regression were employed to develop prediction model. Internal validation was performed to select final model, and then was externally validated using MIMIC-IV database. Performance metrics included root mean square error (RMSE), mean absolute percentage error (MAPE), mean absolute deviation (MAD), and Clarke error grid analysis (CEGA). Finally, subgroup analysis detected predictive performance’s heterogeneity, while Shapley additive explanation (SHAP) method enhanced the clinical interpretability.
ResultsTotal of 3,385 ICU patients with 58,090 BG measurements were included, with 80% for training and 20% for validation. XGBoost performed best in internal validation and was selected as final model (RMSE = 33.59mg/dL, MAPE = 15.39%, MAD = 23.92mg/dL, proportion of type A predictions = 75.67%, and proportion of clinically inappropriate predictions = 0.29%). XGBoost model also showed satisfactory performance in external validation of MIMIC-IV database, underscoring robustness and generalizability. Finally, SHAP method elucidated predictors’ contributions to the predictions from both global and individual perspectives.
ConclusionsOur study proposes a real-time blood glucose prediction model utilizing the XGBoost machine learning framework in real-world ICU scenarios. The model could facilitate clinicians in understanding the real-time trend of patients’ glucose level and making timely therapeutic decisions.
Clinical trial numberNot applicable.