Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Jul 30;25(1):375.
doi: 10.1186/s12871-025-03259-9.

Establishment of predictive models for postoperative delirium in elderly patients after knee/hip surgery based on total bilirubin concentration: machine learning algorithms

Affiliations

Establishment of predictive models for postoperative delirium in elderly patients after knee/hip surgery based on total bilirubin concentration: machine learning algorithms

Shuhui Hua et al. BMC Anesthesiol. .

Abstract

Background: With the aging demographic on the rise, we're seeing a spike in the occurrence of postoperative delirium (POD). Our research aims to delve into the connection between plasma bilirubin levels and postoperative delirium, with the goal of crafting ten machine learning (ML) models capable of predicting POD instances.

Methods: This study enrolled 621 elderly patients after knee/hip surgery. We used the Confusion Assessment Method (CAM) to assess whether participants had POD. Univariate binary logistic regression analysis and restricted cubic spline (RCS) analysis were used to evaluate the association between plasma total bilirubin and POD. This study further investigated whether cerebrospinal fluid plays some role in the relationship between bilirubin and POD using mediated causal analysis. Subsequently, we employed ten machine learning algorithms to train and develop the predictive models: Logistic Regression (LR), Support Vector Machine (SVM), Gradient Boosting Model (GBM), Neural Network (NN), Random Forest (RF), Xgboost, K-Nearest Neighbors (KNN), AdaBoost, LightGBM, and CatBoost. The performance of the models was evaluated by the area under the receiver operating characteristic curve (AUROC), Brier score, accuracy, sensitivity, specificity, precision, F1 score, calibration curve, decision curve, clinical impact curve, and confusion matrix. In addition, the model was interpreted through Shapley additive interpretation (SHAP) analysis to clarify the importance of bilirubin in the model and its decision-making basis.

Results: Univariate binary logistic regression analysis revealed that plasma total bilirubin was associated with POD. Furthermore, the RCS analysis illustrated there was no nonlinear relationship between total bilirubin and POD. Mediation analysis indicted that T-tau mediated the effect of total bilirubin on POD. Total bilirubin and other features(age, educational level, BMI, history of diabetes, ASA, albumin, Aβ42, T-tau and P-tau) were used to construct ML models. Compared with other ML algorithms, NN showed better performance, with an AUC of 0.973 (95% CI (0.959-0.987)) in the test set. In addition, the SHAP method determines that age and education are the main determinants that affect the prediction of ML models.

Conclusion: Plasma total bilirubin was identified as a preoperative risk factor for postoperative delirium (POD). Among ten ML models, the Neural Network (NN) incorporating total bilirubin showed the best predictive performance for POD.

Trial registration: Clinical Registration No. ChiCTR2000033439. Registration data:2020.06.01.

Keywords: Cerebrospinal fluid; Machine learning; Postoperative delirium; Surgery.

PubMed Disclaimer

Conflict of interest statement

Declarations. Ethics approval and consent to participate: The study was carried out according to the Helsinki Declaration of Helsinki Principles. Qingdao Municipal Hospital’s Ethics Committee approved this study (PNDABLE: ChiCTR2000033439, registration date: 01/06/2020). The patients/participants gave their written informed consent to participate in this study. Consent for publication: Not applicable. Competing interests: The authors declare no competing interests.

Figures

Fig. 1
Fig. 1
Delirium assessment
Fig. 2
Fig. 2
Flowchart of our study procedure
Fig. 3
Fig. 3
(A) The box-plots, box-plots show that the level of plasma total bilirubin in the postoperative delirium (POD) group and non-postoperative delirium (NPOD) group. (B) Restricted cubic spline analysis, total bilirubin levels are not non-linearly related to postoperative delirium using a Restricted Cubic Spline Analysis. (C) Mediation analysis. Mediation analysis mediates the relationship between total bilirubin and POD
Fig. 4
Fig. 4
(A) Receiver operating characteristic curves for ten machine learning models in training dataset. (B) Receiver operating characteristic curves for ten machine learning models in testing dataset. (C) Calibration plot for ten machine learning models in training dataset. (D) Calibration plot for ten machine learning models in test dataset
Fig. 5
Fig. 5
Evaluation the performance of all machine learning models in training dataset and the test dataset
Fig. 6
Fig. 6
(A) Decision curve analysis for NN model in training dataset. (B) Decision curve analysis for NN model in test dataset. (C) Clinical impact curve for NN model in training dataset. (D) Clinical impact curve for NN model in test dataset. (E) Fuzzy matrix for NN model in training dataset. (F) Fuzzy matrix for NN model in test dataset
Fig. 7
Fig. 7
(A) SHAP summary plot of the NN model. The color represents the value of the variable. (B) SHAP importance for each feature of the NN model. (C) SHAP force plot of the NN model.

References

    1. Inouye SK, Westendorp RG, Saczynski JS. Delirium in elderly people. Lancet. 2014;383:911–22. - PMC - PubMed
    1. Oh S-T, Park JY. Postoperative delirium. Korean J Anesthesiol. 2019;72:4–12. - PMC - PubMed
    1. Igwe EO, Nealon J, O’Shaughnessy P, Bowden A, Chang H (Rita), Ho M Incidence of postoperative delirium in older adults undergoing surgical procedures, et al. editors. A systematic literature review and meta-analysis. Worldviews Evid Based Nurs. 2023;20:220–37. - PubMed
    1. Goldberg TE, Chen C, Wang Y, Jung E, Swanson A, Ing C, et al. Association of delirium with Long-term cognitive decline: A Meta-analysis. JAMA Neurol. 2020;77:1373. - PMC - PubMed
    1. Thakkar M, Edelenbos J, Doré S. Bilirubin and ischemic stroke: rendering the current paradigm to better understand the protective effects of bilirubin. Mol Neurobiol. 2019;56:5483–96. - PubMed

LinkOut - more resources