A long short-term memory network with SHAP interpretability for dynamic prediction of ICU delirium: development and external validation
lanqiong Lei, Hongya Xia, Ran Zhang, Yu Huang, Fang He, Shuwen Huang, Xusihong Cai, Juan Yang,
Zunyi Medical University · Tongren Hospital
Key points
From the paper's conclusion- Dynamic variables were organized into 24-hour rolling observation windows (T1–T7), and a two-layer bidirectional long short-term memory (LSTM) network incorporating a masking mechanism and class-weight correction was developed to predict delirium occurrence in each window based on all preceding sequential inputs.
Abstract
ICU delirium is a common and serious complication in critically ill patients, yet existing prediction models rely predominantly on static data and lack interpretable decision logic, limiting their clinical utility. This retrospective cohort study enrolled 464 ICU patients from the First Affiliated Hospital of Zunyi Medical University as the internal cohort and 70 patients from the Second Affiliated Hospital as an external test set. A variable system comprising nine baseline characteristics and 24 dynamic variables was established through systematic evidence synthesis and a clinical pilot investigation. Dynamic variables were organized into 24-hour rolling observation windows (T1–T7), and a two-layer bidirectional long short-term memory (LSTM) network incorporating a masking mechanism and class-weight correction was developed to predict delirium occurrence in each window based on all preceding sequential inputs. The model achieved an area under the receiver operating characteristic curve (AUCROC) of 0.835 (95% CI: 0.724–0.946), sensitivity of 0.696, and specificity of 0.894 on the internal test set, with satisfactory calibration and clinical net benefit on this set across a broad probability threshold range. External validation yielded an AUCROC of 0.830 (95% CI: 0.716–0.944), with calibration and decision curve analysis in the external cohort further supporting reliable probability estimates and clinical net benefit, indicating stable cross-institutional generalizability. SHapley Additive exPlanations (SHAP) analysis revealed a clinically coherent, phase-dependent transition in dominant predictors: invasive mechanical ventilation predominated during T1–T3 (peak mean |SHAP| = 0.286 at T3), arterial pH and Sequential Organ Failure Assessment (SOFA) score emerged as principal drivers during T4–T6, and SOFA score retained the highest attribution at T7, collectively providing an evidence-based rationale for temporally differentiated monitoring and intervention strategies.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A large language model for delirium prediction in the intensive care unit using structured electronic health recordsScientific Reports · 2025
- Early prediction of incident delirium in traumatic brain injury: a multicenter validated and interpretable machine learning approachFrontiers in Neurology · 2026
- A large language model-driven multidisciplinary AI agent system predicts delirium in emergency critically ill patients.Cell reports. Medicine · 2026
- Real-time dynamic prediction of in-hospital mortality in hyperglycemic crisis patients using temporal deep learning.World journal of emergency medicine · 2026
- Predicting Sepsis in ICU Patients Using GRU-D and LightGBM for Clinical Decision SupportInternational Journal on Smart Sensing and Intelligent Systems · 2026
- Targeting delirium in gastric surgery: An interpretable predictive model and statistical analysis in critical care.Technology and health care : official journal of the European Society for Engineering and Medicine · 2026