Machine learning applications for the prediction of surgical site infection in neurological operations

Neurosurg Focus. 2019 Aug 1;47(2):E7. doi: 10.3171/2019.5.FOCUS19241.

Abstract

Objective: Surgical site infection (SSI) following a neurosurgical operation is a complication that impacts morbidity, mortality, and economics. Currently, machine learning (ML) algorithms are used for outcome prediction in various neurosurgical aspects. The implementation of ML algorithms to learn from medical data may help in obtaining prognostic information on diseases, especially SSIs. The purpose of this study was to compare the performance of various ML models for predicting surgical infection after neurosurgical operations.

Methods: A retrospective cohort study was conducted on patients who had undergone neurosurgical operations at tertiary care hospitals between 2010 and 2017. Supervised ML algorithms, which included decision tree, naive Bayes with Laplace correction, k-nearest neighbors, and artificial neural networks, were trained and tested as binary classifiers (infection or no infection). To evaluate the ML models from the testing data set, their sensitivity, specificity, positive predictive value (PPV), and negative predictive value (NPV), as well as their accuracy, receiver operating characteristic curve, and area under the receiver operating characteristic curve (AUC) were analyzed.

Results: Data were available for 1471 patients in the study period. The SSI rate was 4.6%, and the type of SSI was superficial, deep, and organ/space in 1.2%, 0.8%, and 2.6% of cases, respectively. Using the backward stepwise method, the authors determined that the significant predictors of SSI in the multivariable Cox regression analysis were postoperative CSF leakage/subgaleal collection (HR 4.24, p < 0.001) and postoperative fever (HR 1.67, p = 0.04). Compared with other ML algorithms, the naive Bayes had the highest performance with sensitivity at 63%, specificity at 87%, PPV at 29%, NPV at 96%, and AUC at 76%.

Conclusions: The naive Bayes algorithm is highlighted as an accurate ML method for predicting SSI after neurosurgical operations because of its reasonable accuracy. Thus, it can be used to effectively predict SSI in individual neurosurgical patients. Therefore, close monitoring and allocation of treatment strategies can be informed by ML predictions in general practice.

Keywords: ANN = artificial neural network; ASA = American Society of Anesthesiologists; AUC = area under the receiver operating characteristic curve; CSF = cerebrospinal fluid; DT = decision tree; ML = machine learning; NB = naive Bayes; NPV = negative predictive value; PPV = positive predictive value; ROC = receiver operating characteristic; SAH = subarachnoid hemorrhage; SSI = surgical site infection; k-NN = k-nearest neighbors; machine learning; neural network; surgical site infection; survival analysis.

MeSH terms

  • Adult
  • Aged
  • Female
  • Humans
  • Machine Learning*
  • Male
  • Middle Aged
  • Neurosurgery* / methods
  • Neurosurgical Procedures / adverse effects*
  • ROC Curve
  • Retrospective Studies
  • Risk Factors
  • Surgical Wound Infection / etiology
  • Surgical Wound Infection / surgery*