AI-delirium guard: Predictive modeling of postoperative delirium in elderly surgical patients

S Sri Harsha Boppana D Divyansh Tyagi S Sachin Komati S Sri Lasya Boppana R Ritwik Raj C C. David Mintz

Abstract

Introduction In older patients, postoperative delirium (POD) is a major complication that can result in greater morbidity, longer hospital stays, and higher healthcare expenses. Accurate prediction models for POD can enhance patient outcomes by guiding preventative strategies. This study utilizes advanced machine learning techniques to develop a predictive model for POD using comprehensive perioperative data. Methods We examined information from the National Surgical Quality Improvement Program (NSQIP), which included 17,000 patients who were over 65 and undergoing different types of surgery. The dataset included variables such as patient demographics (age, sex), comorbidities (diabetes, cardiovascular diseases, pre-existing dementia), surgical details (type, duration), anesthesia type and dosage, and postoperative outcomes. Categorical variables were encoded numerically, and data standardization was applied to ensure normal distribution. A range of machine learning approaches were assessed such as Decision Trees and Random Forests. Based on the greatest Area Under the Curve (AUC) from Receiver Operating Characteristic (ROC) analysis, the final model was chosen. Hyperparameter tuning was performed using GridSearchCV, optimizing parameters like max_depth, min_child_weight, and gamma for XGBoost model. Results The optimized XGBoost model demonstrated superior performance, achieving an AUC of 0.85. Key hyperparameters included min_child_weight = 1, max_depth = 5, gamma = 0.3, subsample = 0.9, colsample_bytree = 0.7, reg_alpha = 0.0007, learning_rate = 0.14, and n_estimators = 123. The model exhibited an accuracy of 0.926, recall of 0.945, precision of 0.934, and an F1-score of 0.939, depicting a higher level of predictive accuracy & balance between sensitivity and specificity. Conclusion This study proposes a strong XGBoost-based model to predict POD in older surgical patients, demonstrating the potential of Machine Learning (ML) in clinical risk assessment. With the help of the model’s balanced performance indicators and high accuracy, physicians may identify high-risk patients and promptly execute interventions in clinical settings. Subsequent investigations ought to concentrate on integration into clinical workflows and external validation.

Article Details

Journal PLoS ONE
Volume / Issue Vol. 20, Issue 6
Published June 05, 2025
Pages e0322032
ISSN 1932-6203
Publisher Public Library of Science

Journal Info

PLoS ONE

Public Library of Science

ISSN: 1932-6203 Open Access Health Sciences

Authors (6)

S

Sri Harsha Boppana

D

Divyansh Tyagi

S

Sachin Komati

S

Sri Lasya Boppana

R

Ritwik Raj

C

C. David Mintz