Skip to main content

ORIGINAL RESEARCH article

Front. Physiol.
Sec. Computational Physiology and Medicine
Volume 16 - 2025 | doi: 10.3389/fphys.2025.1542240
This article is part of the Research Topic Medical Knowledge-Assisted Machine Learning Technologies in Individualized Medicine Volume II View all 8 articles

Web-Based Machine Learning Application for Interpretable Prediction of Prolonged Length of Stay After Lumbar Spinal Stenosis Surgery: A Retrospective Cohort Study with Explainable AI

Provisionally accepted
Xinghua Song Xinghua Song 1*Parhat Yasin Parhat Yasin 1Alimujiang Yusufu Alimujiang Yusufu 1Yasen Yimit Yasen Yimit 2HaoPeng Luan HaoPeng Luan 1Cong Peng Cong Peng 1
  • 1 Sixth Affiliated Hospital of Xinjiang Medical University, Ürümqi, China
  • 2 First People's Hospital of Kashi, Kashi, Xinjiang, China

The final, formatted version of the article will be published soon.

    Objectives: Lumbar spinal stenosis (LSS) is an increasingly important issue related to back pain in elderly patients, resulting in significant socioeconomic burdens.Postoperative complications and socioeconomic effects are evaluated using the clinical parameter of hospital length of stay (LOS). This study aimed to develop a machine learning-based tool that can calculate the risk of prolonged length of stay (PLOS) after surgery and interpret the results. Methods: Patients were registered from the spine surgery department in our hospital. Hospital stays greater than or equal to the 75th percentile for LOS was considered extended PLOS after spine surgery. We screened the variables using the least absolute shrinkage and selection operator (LASSO) and permutation importance value and selected nine features. We then performed hyperparameter selection via grid search with nested cross-validation. Receiver operating characteristics curve, calibration curve and decision curve analysis was carried out to assess model performance. The result of the final selected model was interpreted using Shapley Additive exPlanations (SHAP), and Local Interpretable Model-agnostic Explanations (LIME) were used for model interpretation. To facilitate model utilization, a web application was deployed. Results: A total of 540 patients were involved, and several features were finally selected. The final optimal random forest (RF) model achieved an area under the curve (ROC) of 0.93 on the training set and 0.83 on the test set. Based on both SHAP and LIME analyses, intraoperative blood loss emerged as the most significant contributor to the outcome. Conclusions: Machine learning in association with SHAP and LIME can provide a clear explanation of personalized risk prediction, and spine surgeons can gain a perceptual grasp of the impact of important model components. Utilization and future clinical research of our RF model are made simple and accessible through the web application.

    Keywords: Lumbar spinal stenosis, Postoperative length of stay, Spine surgery, Interpretable model, SHAP value

    Received: 09 Dec 2024; Accepted: 24 Jan 2025.

    Copyright: © 2025 Song, Yasin, Yusufu, Yimit, Luan and Peng. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

    * Correspondence: Xinghua Song, Sixth Affiliated Hospital of Xinjiang Medical University, Ürümqi, China

    Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.