Development of a risk prediction model for sepsis-related delirium based on multiple machine learning approaches and an online calculator

L Lang Gao G Guang Dong Wang X Xing Yi Yang S Shi Jun Tong X Xu Jie Wang Y Yun Ruo Chen J Jin Ying Bai Y Ya Xin Zhang

Abstract

Background Sepsis-associated delirium (SAD) occurs due to disruptions in neurotransmission linked to inflammatory responses from infections. It poses significant challenges in clinical management and is associated with poor outcomes. Survivors often experience long-term cognitive and behavioral issues that impact their quality of life and place a burden on their families. This study aimed to develop and validate an interpretable machine learning model for early prediction of SAD in critically ill patients. Additionally, we constructed an online risk calculator to facilitate real-time clinical assessment. Methods This study is a retrospective analysis utilizing data from 16,120 patients in the Medical Information Mart for Intensive Care IV database. To manage imbalanced data, we applied the Synthetic Minority Over-sampling Technique (SMOTE) method. Feature selection was conducted using Multivariate Logistic Regression, LASSO regression, and the Boruta algorithm. We developed predictive models using eight machine learning algorithms and selected the best one for validation. The SHapley Additive exPlanations (SHAP) method was used for visualization and interpretation, enhancing the clinical understanding of the model, alongside the creation of an online web calculator. Results We combined three feature selection methods to identify 17 key features for our machine learning prediction model. The Gradient Boosting Machine (GBM) model demonstrated excellent calibration and strong predictive accuracy in the validation cohort. The SHAP feature importance ranking revealed five critical risk factors for predicting outcomes: Glasgow Coma Scale (GCS), ICU stay duration, chloride, sodium, and Sequential Organ Failure Assessment (SOFA). Based on this optimal model, we successfully developed an online web calculator. Conclusion We developed and validated a machine learning model capable of accurately predicting SAD with high clinical applicability. The integration of interpretable machine learning and an online calculator offers a practical tool to support early identification and timely management of SAD in critically ill patients.

Article Details

Journal PLoS ONE
Volume / Issue Vol. 20, Issue 7
Published July 16, 2025
Pages e0323831
ISSN 1932-6203
Publisher Public Library of Science

Journal Info

PLoS ONE

Public Library of Science

ISSN: 1932-6203 Open Access Health Sciences

Authors (8)

L

Lang Gao

G

Guang Dong Wang

X

Xing Yi Yang

S

Shi Jun Tong

X

Xu Jie Wang

Y

Yun Ruo Chen

J

Jin Ying Bai

Y

Ya Xin Zhang