Development of a machine learning model and a web application for predicting neurological outcome at hospital discharge in spinal cord injury patients.
{"title":"Development of a machine learning model and a web application for predicting neurological outcome at hospital discharge in spinal cord injury patients.","authors":"Kyota Kitagawa, Satoshi Maki, Takeo Furuya, Yuki Shiratani, Yuki Nagashima, Juntaro Maruyama, Yasunori Toki, Shuhei Iwata, Masahiro Inoue, Yasuhiro Shiga, Kazuhide Inage, Sumihisa Orita, Seiji Ohtori","doi":"10.1016/j.spinee.2025.01.005","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>Spinal cord injury (SCI) is a devastating condition with profound physical, psychological, and socioeconomic consequences. Despite advances in SCI treatment, accurately predicting functional recovery remains a significant challenge. Conventional prognostic methods often fall short in capturing the complex interplay of factors influencing SCI outcomes. There is an urgent demand for more precise and comprehensive prognostic tools that can guide clinical decision-making and improve patient care in SCI.</p><p><strong>Purpose: </strong>This study aims to develop and validate a machine learning (ML) model for predicting American Spinal Injury Association (ASIA) Impairment Scale (AIS) at discharge in SCI patients. We also aim to convert this model into an open-access web application.</p><p><strong>Study design/setting: </strong>This was a retrospective cohort study enrolling traumatic SCI patients from 1991 to 2015, analyzed in 2023. Data were obtained from the Japan Rehabilitation Database (JARD), a comprehensive nationwide database that includes SCI patients from specialized SCI centers and rehabilitation hospitals across Japan.</p><p><strong>Patients sample: </strong>4,108 SCI cases from JARD were reviewed, excluding 405 cases, patients caused by nontraumatic injuries, patients who were graded as AIS E at admission, and patients without data of AIS at discharge, resulting in 3,703 cases being included in the study. Patient demographics and specific SCI injury characteristics at admission were utilized for model training and prediction.</p><p><strong>Outcome measures: </strong>Model performance was evaluated based on R<sup>2</sup>, accuracy, and the weighted Kappa coefficient. Shapley additive explanations (SHAP) values highlighted significant features influencing the model's output.</p><p><strong>Methods: </strong>The primary outcome was AIS at discharge, treated as a continuous variable (0-4) to capture the ordinal nature and clinical significance of potential misclassifications. Data preprocessing included multicollinearity removal, feature selection using the Boruta algorithm, and iterative imputation for missing data. The dataset was split using the hold-out method with a 7:3 ratio resulting in 2,592 cases for training and 1,111 cases for testing the regression model. A best performing model was defined as the highest R<sup>2</sup> using PyCaret's automated model comparison. Final predictions of regression model were discretized to the original AIS categories for clinical interpretation.</p><p><strong>Results: </strong>The Gradient Boosting Regressor (GBR) was identified as the optimal model. The GBR model showed an R² of 0.869, accuracy of 0.814, and weighted Kappa of 0.940. Eleven key variables, including AIS at admission, the day from injury to admission, and the motor score of L3, were identified as significant based on SHAP values. This model was then adapted into a web application via Streamlit.</p><p><strong>Conclusions: </strong>We developed a high-accuracy ML model for predicting the AIS at discharge, which effectively captures the ordinal nature of the AIS scale, using 11 key variables. This model demonstrated its performance to provide reliable prognostic information. The model has been integrated into a user-friendly, open-access web application (http://3.138.174.54:8502/). This tool has the potential to aid in resource allocation and enhance treatment for each patient.</p>","PeriodicalId":49484,"journal":{"name":"Spine Journal","volume":" ","pages":""},"PeriodicalIF":4.9000,"publicationDate":"2025-01-31","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Spine Journal","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.1016/j.spinee.2025.01.005","RegionNum":1,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"CLINICAL NEUROLOGY","Score":null,"Total":0}
引用次数: 0
Abstract
Background: Spinal cord injury (SCI) is a devastating condition with profound physical, psychological, and socioeconomic consequences. Despite advances in SCI treatment, accurately predicting functional recovery remains a significant challenge. Conventional prognostic methods often fall short in capturing the complex interplay of factors influencing SCI outcomes. There is an urgent demand for more precise and comprehensive prognostic tools that can guide clinical decision-making and improve patient care in SCI.
Purpose: This study aims to develop and validate a machine learning (ML) model for predicting American Spinal Injury Association (ASIA) Impairment Scale (AIS) at discharge in SCI patients. We also aim to convert this model into an open-access web application.
Study design/setting: This was a retrospective cohort study enrolling traumatic SCI patients from 1991 to 2015, analyzed in 2023. Data were obtained from the Japan Rehabilitation Database (JARD), a comprehensive nationwide database that includes SCI patients from specialized SCI centers and rehabilitation hospitals across Japan.
Patients sample: 4,108 SCI cases from JARD were reviewed, excluding 405 cases, patients caused by nontraumatic injuries, patients who were graded as AIS E at admission, and patients without data of AIS at discharge, resulting in 3,703 cases being included in the study. Patient demographics and specific SCI injury characteristics at admission were utilized for model training and prediction.
Outcome measures: Model performance was evaluated based on R2, accuracy, and the weighted Kappa coefficient. Shapley additive explanations (SHAP) values highlighted significant features influencing the model's output.
Methods: The primary outcome was AIS at discharge, treated as a continuous variable (0-4) to capture the ordinal nature and clinical significance of potential misclassifications. Data preprocessing included multicollinearity removal, feature selection using the Boruta algorithm, and iterative imputation for missing data. The dataset was split using the hold-out method with a 7:3 ratio resulting in 2,592 cases for training and 1,111 cases for testing the regression model. A best performing model was defined as the highest R2 using PyCaret's automated model comparison. Final predictions of regression model were discretized to the original AIS categories for clinical interpretation.
Results: The Gradient Boosting Regressor (GBR) was identified as the optimal model. The GBR model showed an R² of 0.869, accuracy of 0.814, and weighted Kappa of 0.940. Eleven key variables, including AIS at admission, the day from injury to admission, and the motor score of L3, were identified as significant based on SHAP values. This model was then adapted into a web application via Streamlit.
Conclusions: We developed a high-accuracy ML model for predicting the AIS at discharge, which effectively captures the ordinal nature of the AIS scale, using 11 key variables. This model demonstrated its performance to provide reliable prognostic information. The model has been integrated into a user-friendly, open-access web application (http://3.138.174.54:8502/). This tool has the potential to aid in resource allocation and enhance treatment for each patient.
期刊介绍:
The Spine Journal, the official journal of the North American Spine Society, is an international and multidisciplinary journal that publishes original, peer-reviewed articles on research and treatment related to the spine and spine care, including basic science and clinical investigations. It is a condition of publication that manuscripts submitted to The Spine Journal have not been published, and will not be simultaneously submitted or published elsewhere. The Spine Journal also publishes major reviews of specific topics by acknowledged authorities, technical notes, teaching editorials, and other special features, Letters to the Editor-in-Chief are encouraged.