Skip to main content

Developing nonlinear k-nearest neighbors classification algorithms to identify patients at high risk of increased length of hospital stay following spine surgery.

Publication ,  Journal Article
Shahrestani, S; Chan, AK; Bisson, EF; Bydon, M; Glassman, SD; Foley, KT; Shaffrey, CI; Potts, EA; Shaffrey, ME; Coric, D; Knightly, JJ ...
Published in: Neurosurg Focus
June 2023

OBJECTIVE: Spondylolisthesis is a common operative disease in the United States, but robust predictive models for patient outcomes remain limited. The development of models that accurately predict postoperative outcomes would be useful to help identify patients at risk of complicated postoperative courses and determine appropriate healthcare and resource utilization for patients. As such, the purpose of this study was to develop k-nearest neighbors (KNN) classification algorithms to identify patients at increased risk for extended hospital length of stay (LOS) following neurosurgical intervention for spondylolisthesis. METHODS: The Quality Outcomes Database (QOD) spondylolisthesis data set was queried for patients receiving either decompression alone or decompression plus fusion for degenerative spondylolisthesis. Preoperative and perioperative variables were queried, and Mann-Whitney U-tests were performed to identify which variables would be included in the machine learning models. Two KNN models were implemented (k = 25) with a standard training set of 60%, validation set of 20%, and testing set of 20%, one with arthrodesis status (model 1) and the other without (model 2). Feature scaling was implemented during the preprocessing stage to standardize the independent features. RESULTS: Of 608 enrolled patients, 544 met prespecified inclusion criteria. The mean age of all patients was 61.9 ± 12.1 years (± SD), and 309 (56.8%) patients were female. The model 1 KNN had an overall accuracy of 98.1%, sensitivity of 100%, specificity of 84.6%, positive predictive value (PPV) of 97.9%, and negative predictive value (NPV) of 100%. Additionally, a receiver operating characteristic (ROC) curve was plotted for model 1, showing an overall area under the curve (AUC) of 0.998. Model 2 had an overall accuracy of 99.1%, sensitivity of 100%, specificity of 92.3%, PPV of 99.0%, and NPV of 100%, with the same ROC AUC of 0.998. CONCLUSIONS: Overall, these findings demonstrate that nonlinear KNN machine learning models have incredibly high predictive value for LOS. Important predictor variables include diabetes, osteoporosis, socioeconomic quartile, duration of surgery, estimated blood loss during surgery, patient educational status, American Society of Anesthesiologists grade, BMI, insurance status, smoking status, sex, and age. These models may be considered for external validation by spine surgeons to aid in patient selection and management, resource utilization, and preoperative surgical planning.

Duke Scholars

Altmetric Attention Stats
Dimensions Citation Stats

Published In

Neurosurg Focus

DOI

EISSN

1092-0684

Publication Date

June 2023

Volume

54

Issue

6

Start / End Page

E7

Location

United States

Related Subject Headings

  • Spondylolisthesis
  • Spine
  • Neurology & Neurosurgery
  • Middle Aged
  • Male
  • Machine Learning
  • Length of Stay
  • Humans
  • Female
  • Algorithms
 

Citation

APA
Chicago
ICMJE
MLA
NLM
Shahrestani, S., Chan, A. K., Bisson, E. F., Bydon, M., Glassman, S. D., Foley, K. T., … Mummaneni, P. V. (2023). Developing nonlinear k-nearest neighbors classification algorithms to identify patients at high risk of increased length of hospital stay following spine surgery. Neurosurg Focus, 54(6), E7. https://doi.org/10.3171/2023.3.FOCUS22651
Shahrestani, Shane, Andrew K. Chan, Erica F. Bisson, Mohamad Bydon, Steven D. Glassman, Kevin T. Foley, Christopher I. Shaffrey, et al. “Developing nonlinear k-nearest neighbors classification algorithms to identify patients at high risk of increased length of hospital stay following spine surgery.Neurosurg Focus 54, no. 6 (June 2023): E7. https://doi.org/10.3171/2023.3.FOCUS22651.
Shahrestani S, Chan AK, Bisson EF, Bydon M, Glassman SD, Foley KT, et al. Developing nonlinear k-nearest neighbors classification algorithms to identify patients at high risk of increased length of hospital stay following spine surgery. Neurosurg Focus. 2023 Jun;54(6):E7.
Shahrestani, Shane, et al. “Developing nonlinear k-nearest neighbors classification algorithms to identify patients at high risk of increased length of hospital stay following spine surgery.Neurosurg Focus, vol. 54, no. 6, June 2023, p. E7. Pubmed, doi:10.3171/2023.3.FOCUS22651.
Shahrestani S, Chan AK, Bisson EF, Bydon M, Glassman SD, Foley KT, Shaffrey CI, Potts EA, Shaffrey ME, Coric D, Knightly JJ, Park P, Wang MY, Fu K-M, Slotkin JR, Asher AL, Virk MS, Michalopoulos GD, Guan J, Haid RW, Agarwal N, Chou D, Mummaneni PV. Developing nonlinear k-nearest neighbors classification algorithms to identify patients at high risk of increased length of hospital stay following spine surgery. Neurosurg Focus. 2023 Jun;54(6):E7.

Published In

Neurosurg Focus

DOI

EISSN

1092-0684

Publication Date

June 2023

Volume

54

Issue

6

Start / End Page

E7

Location

United States

Related Subject Headings

  • Spondylolisthesis
  • Spine
  • Neurology & Neurosurgery
  • Middle Aged
  • Male
  • Machine Learning
  • Length of Stay
  • Humans
  • Female
  • Algorithms