Visual abstractsVisuals
Researchnpj Digital Medicine · Jun 11, 2026

Development and prospective evaluation of a real-time deep learning model for inpatient hypoglycemia prediction

Momenzadeh A, Cranney C, Chen DH, Nguyen EV, Gianchandani R, Meyer JG
Digital Health & AIAdult

Study type: Observational study: it can show a link, but not prove that one thing causes another.

Read the full paper free at PubMed Central ↗

Abstract

Inpatient hypoglycemia is associated with increased morbidity, mortality, length of stay, and healthcare costs, yet current management remains reactive due to the lack of real-time prediction tools. We developed, validated, and prospectively evaluated a real-time long short-term memory (LSTM) model to predict hypoglycemia within 24 h using electronic health record (EHR) data from 143,124 adult inpatient admissions across three hospitals between 2014 and 2025. Eligible patients were ≥ 18 years old, hospitalized for ≥ 24 h, and received at least one antihyperglycemic medication. Time-series predictors included medications, laboratory values, diet orders, and percentage of meals consumed over a 5-day lookback window segmented into 4-hour intervals, alongside static demographic variables. The primary outcome was blood glucose (BG) < 70 mg/dL within 24 hours following each prediction timepoint. Model hyperparameters were optimized using Bayesian optimization, and performance was compared with logistic regression, dense neural network, and XGBoost baselines using F1 score, precision, recall, area under the precision-recall curve (AUPRC), and calibration metrics. The best-performing LSTM model achieved an F1 score of 0.30 (95% CI 0.296-0.305), precision of 0.23, recall of 0.44, and AUPRC of 0.23 at a decision threshold of 0.7, outperforming all baseline models. Performance remained stable during prospective daily validation using live EHR extracts. SHapley Additive exPlanations (SHAP) identified clinically meaningful temporal predictors, including recent insulin administration and prior hypoglycemia. Model performance remained consistent across most demographic subgroups. This real-time deployable LSTM model provides a clinically interpretable prediction of inpatient hypoglycemia and may support proactive glycemic stewardship workflows in hospitalized patients.

DOI: 10.1038/s41746-026-02874-1 · PubMed: 42277312

Spotted a mistake? Suggest a correction

More in Digital Health & AI

ResearchLancet Digit Health · Nov 23, 2026 · Digital Health & AI

ClinicalAge biomarker associated with mortality and disease risk in UK datasets

ClinicalAge, a framework for modelling ageing trajectories from longitudinal electronic health records in the UK: a model development and validation study

ResearchLancet Digit Health · Nov 23, 2026 · Digital Health & AI

Facial photographs used to estimate age and predict survival in cancer patients

Foundation artificial intelligence models for health recognition by use of face photographs (FAHR-Face): a model development and validation study

ResearchLancet Digit Health · Nov 23, 2026 · Digital Health & AI

New model predicts severe fetal compromise risk at birth with 33.4% sensitivity

A prognostic model for use at labour onset to estimate the risk of severe fetal compromise at birth: a retrospective, model development and validation study

ResearchNPJ Digit Med · Nov 21, 2026 · Digital Health & AI

ECG foundation models performed well on general data but less so on athletes' data

ECG foundation models for cardiovascular screening in a cohort of young competitive athletes

ResearchJ Med Internet Res · Nov 20, 2026 · Digital Health & AI

Six large language models showed similar question-answering accuracy on medical exam questions

Medical Reasoning in Large Language Models: Development and Evaluation of the MedEvalArena Benchmark