Abstract
Sepsis-associated delirium (SAD) is a critical ICU complication linked to poor clinical outcomes and long-term cognitive impairment. This study aimed to develop and validate an interpretable machine learning model to predict SAD risk using data from 16,120 patients in the MIMIC-IV database. By employing a Gradient Boosting Machine (GBM) and SHAP interpretability, we identified 17 key clinical features, with the Glasgow Coma Scale (GCS), ICU stay duration, and electrolyte levels (Chloride, Sodium) emerging as primary predictors. The resulting model demonstrated strong predictive performance (AUC 0.732) and was deployed as an online web calculator to facilitate early clinical intervention.
Introduction
Sepsis-associated delirium (SAD) represents a significant hurdle in intensive care management. Characterized by acute brain dysfunction resulting from systemic inflammatory responses, SAD is associated with increased mortality and long-term neurocognitive deficits. Despite its prevalence, early detection remains challenging. Standard bedside assessments, such as the Confusion Assessment Method for the ICU (CAM-ICU), are often reactive and dependent on patient cooperation.
To address this, we developed a data-driven predictive model using standard clinical indicators available within the first 24 hours of ICU admission. By shifting from reactive monitoring to proactive risk assessment, clinicians can potentially mitigate the severity of SAD through timely interventions.
Methods
Data Source and Preprocessing
The study utilized the Medical Information Mart for Intensive Care IV (MIMIC-IV 3.1) database, filtering for 16,120 sepsis patients meeting the Sepsis-3.0 criteria. To address the inherent class imbalance—where delirium cases are less frequent than non-delirium cases—the Synthetic Minority Over-sampling Technique (SMOTE) was applied to the training set.
Feature Selection and Modeling
A "triangulation" approach was used for feature selection to ensure robustness. We combined three distinct methods:
- Multivariate Logistic Regression
- Lasso Regression
- Boruta Algorithm (a Random Forest-based wrapper)
Only the 17 features identified as significant by all three methods were retained. We then benchmarked eight machine learning algorithms, including Support Vector Machines (SVM), Random Forests, XGBoost, LightGBM, and Gradient Boosting Machines (GBM).
Interpretability
To ensure clinical transparency, we utilized SHapley Additive exPlanations (SHAP). This method quantifies the contribution of each variable to an individual patient's risk score, transforming a "black box" model into an interpretable clinical tool.
Results
Model Performance
While the Random Forest model showed signs of overfitting (achieving a perfect AUC on training data but failing to generalize), the Gradient Boosting Machine (GBM) emerged as the optimal model. It achieved an AUC of 0.732 in the internal validation set, demonstrating a strong balance between accuracy and generalization.
Key Predictors
The SHAP analysis identified the following five factors as the most influential in predicting SAD:
- Glasgow Coma Scale (GCS): Lower scores indicated a significantly higher risk.
- ICU Day: The cumulative duration of the ICU stay was a major driver of delirium risk.
- Chloride Levels: Electrolyte imbalances were strongly correlated with SAD.
- Sodium Levels: Similar to chloride, sodium levels played a critical role in the prediction.
- Sequential Organ Failure Assessment (SOFA) Score: Higher overall severity of illness increased the likelihood of delirium.
Discussion
The findings underscore the complex physiological underpinnings of SAD. The importance of sodium and chloride levels reinforces the link between electrolyte imbalance, blood-brain barrier disruption, and neuroinflammation during sepsis. Furthermore, the non-linear relationship between GCS and delirium risk—where very low scores (1-3) cause a disproportionate spike in risk—highlights the advantage of machine learning over traditional linear models.
To translate these findings into clinical practice, we developed an online web calculator. This tool allows healthcare providers to input the 17 identified variables and receive a real-time risk percentage, aiding in early identification and treatment adjustments.
Limitations
This study is retrospective and based on a single-center dataset (MIMIC-IV). While robust, the model requires external validation across diverse hospital systems. Additionally, certain biological markers like Procalcitonin or specific interleukins were excluded due to missing data; future prospective studies may improve accuracy by incorporating these biomarkers.
Conclusion
We have successfully developed and validated a machine learning pipeline for the early prediction of Sepsis-Associated Delirium. By combining high-performance algorithms with SHAP interpretability and a user-friendly web interface, this work provides a practical path toward improving patient outcomes in the ICU.
Summary updated