Development and validation of an interpretable machine learning model for predicting cognitive impairment in patients with sepsis

Read full text
Authors: Guisheng Liang, Mo Lu, Yurong Pan
Cited by: 2
References: 40

Abstract

Objective: Cognitive impairment is a common and debilitating complication after sepsis. This study aimed to develop and validate an interpretable machine learning (ML) model to predict post-sepsis cognitive impairment and identify key clinical risk factors. Methods: A retrospective cohort of 866 adult sepsis patients treated in our hospital between January 2020 and January 2025 was analyzed. Cognitive function was assessed 1-3 months after discharge using the Montreal Cognitive Assessment (MoCA), with scores < 26 indicating impairment. Key predictors were selected via least absolute shrinkage and selection operator (LASSO) regression and the Boruta algorithm. Five ML models-logistic regression, extreme gradient boosting (XGBoost), random forest (RF), k-nearest neighbors (KNN), and decision tree (DT)-were developed and evaluated using area under the curve (AUC), accuracy, F1-score. SHapley Additive exPlanations (SHAP) values were applied for interpretability. Results: Cognitive impairment occurred in 195 patients (22.5%). Seven variables were identified as key predictors of cognitive impairment, including age, years of education, septic shock, benzodiazepine use, acute physiology and chronic health evaluation II (APACHE II) score, sequential organ failure assessment (SOFA) score, and interleukin-10 (IL-10) level. The RF model performed best, with AUCs of 0.947 (training set) and 0.895 (validation set), showing good calibration and clinical utility. SHAP analysis showed that SOFA score had the greatest influence on cognitive impairment, followed by age, APACHE II score, IL-10, and years of education. Conclusion: Using SHAP analysis, the RF model provided clear insights into the key factors contributing to the model's prediction of cognitive impairment after sepsis. The model not only achieved high predictive accuracy but also offered a transparent, data-driven tool to identify patients at elevated risk, potentially enabling timely interventions and tailored clinical management.

Fields of Study & Subjects

Sepsis Diagnosis and Treatment Intensive Care Unit Cognitive Disorders Clinical Reasoning and Diagnostic Skills

Publication details

Journal / source
Frontiers in Medicine
Publisher
Frontiers Media SA
Volume
12
Pages
1753260–1753260
Publication date
21 January 2026
Language
EN