Machine learning for the prediction of postoperative nosocomial pulmonary infection in patients with spinal cord injury

Eur Spine J. 2023 Nov;32(11):3825-3835. doi: 10.1007/s00586-023-07772-8. Epub 2023 May 17.

Abstract

Purpose: The purpose of this study was to establish the best prediction model for postoperative nosocomial pulmonary infection through machine learning (ML) and assist physicians to make accurate diagnosis and treatment decisions.

Methods: Patients with spinal cord injury (SCI) who admitted to a general hospital between July 2014 and April 2022 were included in this study. The data were segmented according to the ratio of seven to three, 70% were randomly selected to train the model, and the other 30% were used for testing. We used LASSO regression to screen the variables, and the selected variables were used in the construction of six different ML models. Shapley additive explanations and permutation importance were used to explain the output of the ML models. Finally, sensitivity, specificity, accuracy and area under receiver operating characteristic curve (AUC) were used as the evaluation index of the model.

Results: A total of 870 patients were enrolled in this study, of whom 98 (11.26%) developed pulmonary infection. Seven variables were used for ML model construction and multivariate logistic regression analysis. Among these variables, age, ASIA scale and tracheotomy were found to be the independent risk factors for postoperative nosocomial pulmonary infection in SCI patients. Meanwhile, the prediction model based on RF algorithm performed best in the training and test sets. (AUC = 0.721, accuracy = 0.664, sensitivity = 0.694, specificity = 0.656).

Conclusion: Age, ASIA scale and tracheotomy were the independent risk factors of postoperative nosocomial pulmonary infection in SCI. The prediction model based on RF algorithm had the best performance.

Keywords: Complication; Machine learning; Pulmonary infection; RF algorithm; SCI.

Publication types

  • Research Support, Non-U.S. Gov't

MeSH terms

  • Cross Infection* / diagnosis
  • Cross Infection* / epidemiology
  • Humans
  • Machine Learning
  • ROC Curve
  • Risk Factors
  • Spinal Cord Injuries* / complications
  • Spinal Cord Injuries* / diagnosis
  • Spinal Cord Injuries* / surgery