Predicting 30-Day Non-Seizure Outcomes Following Temporal Lobectomy with Personalized Machine Learning Models

World Neurosurg. 2024 Mar:183:e59-e70. doi: 10.1016/j.wneu.2023.11.077. Epub 2023 Nov 23.

Abstract

Background: Temporal lobe epilepsy is the most common reason behind drug-resistant seizures and temporal lobectomy (TL) is performed after all other efforts have been taken for a Temporal lobe epilepsy. Our study aims to develop multiple machine learning (ML) models capable of predicting postoperative outcomes following TL surgery.

Methods: Data from the American College of Surgeons National Surgical Quality Improvement Program database identified patients who underwent TL surgery. We focused on 3 outcomes: prolonged length of stay (LOS), nonhome discharges, and 30-day readmissions. Six ML algorithms, TabPFN, XGBoost, LightGBM, Support Vector Machine, Random Forest, and Logistic Regression, coupled with the Optuna optimization library for hyperparameter tuning, were tested. Models with the highest area under the receiver operating characteristic (AUROC) values were included in the web application. SHapley Additive exPlanations was used to evaluate importance of predictor variables.

Results: Our analysis included 423 patients. Of these patients, 111 (26.2%) experienced prolonged LOS, 33 (7.8%) had nonhome discharges, and 29 (6.9%) encountered 30-day readmissions. The top-performing models for each outcome were those built with the Random Forest algorithm. The Random Forest models yielded AUROCs of 0.868, 0.804, and 0.742 in predicting prolonged LOS, nonhome discharges, and 30-day readmissions, respectively.

Conclusions: Our study uses ML to forecast adverse postoperative outcomes following TL. We developed accessible predictive models that enhance prognosis prediction for TL surgery. Making ML models available for this purpose represents a significant advancement in shifting toward a more patient-centric, data-driven paradigm.

Keywords: Artificial intelligence; Epilepsy surgery; Machine learning; Outcome prediction; Personalized medicine; Temporal lobectomy; Web application.

MeSH terms

  • Epilepsy, Temporal Lobe* / surgery
  • Humans
  • Length of Stay
  • Machine Learning
  • Prognosis
  • Psychosurgery*