Prediction of Oswestry Disability Index and Numeric Rating Scale scores after lumbar spine surgery: machine learning model development and fairness assessment
Clinical Snapshot
PICO Framework
| P — Population | Adults undergoing elective lumbar spine surgery for disc herniation (n=18,377) or spinal stenosis (n=24,540) in Norwegian healthcare system |
| I — Intervention | Machine learning prognostic models using 22 preoperative predictors |
| C — Comparator | Six different regression algorithms (XGBoost, Gaussian process, gradient boosting, neural networks, linear regression) |
| O — Outcomes | 12-month postoperative Oswestry Disability Index (0-100), back pain NRS (0-10), leg pain NRS (0-10) |
Bottom Line
This large Norwegian registry study developed machine learning models to predict continuous disability and pain outcomes 12 months after lumbar spine surgery. While the models demonstrated fairness across demographic groups and achieved prediction errors close to measurement precision, their modest explanatory power (27-31% of variance) limits immediate clinical utility for individual patient counselling. The study's strength lies in its population-based approach and comprehensive fairness assessment, but the lack of external validation and comparison with existing tools constrains confidence in generalisability. The patient similarity function represents an innovative approach to clinical decision support. Before clinical implementation, external validation in diverse populations and demonstration of clinical impact are essential. Australian spine surgeons should await validation studies before adopting these tools for routine practice.
Key Findings
P Value: Not reported for primary analysis
Effect Size: XGBoost regression achieved MAE 11.32 (LDH) and 12.05 (LSS) ODI points
Primary Outcome: 12-month Oswestry Disability Index (ODI) scores
Nnt Or Sensitivity: R² 0.27 (LDH) and 0.31 (LSS), indicating models explain 27-31% of outcome variance
Confidence Interval: LDH: 95% CI 11.00-11.63; LSS: 95% CI 11.76-12.32
Clinical Application
Requires implementation of machine learning infrastructure and systematic collection of 22 preoperative variables Relevant to Australian spine surgery practice. ODI and NRS are standard measures. Would require validation in Australian population and integration with existing clinical pathways Adults undergoing elective lumbar spine surgery for disc herniation or spinal stenosis in developed healthcare systems
Abstract
BACKGROUND: One-third of patients operated for degenerative conditions in the lumbar spine do not report substantial improvement after 12 months. Most previous outcome prediction models are classifiers. This constrains nuances in prediction and use for decision support. OBJECTIVES: To develop and test models for the prediction of continuous outcome scores and retrieval of similar patients' outcomes, and to evaluate the models' fairness. SETTING: Norwegian public and private specialist healthcare. PARTICIPANTS AND DATA SOURCE: All cases recorded with an elective operation for lumbar disc herniation (LDH, n=18 377) or lumbar spinal stenosis (LSS, n=24 540) in the Norwegian Registry for Spine Surgery from 1 January 2007 to 23 May 2023. OUTCOME MEASURES: All outcomes were patient-reported 12 months after the operation. The primary outcome was the Oswestry disability index (ODI), modelled on a scale ranging from 0 to 100. Numeric Rating Scale scores (range 0-10) for back and leg pain were secondary outcomes. MODEL BUILDING AND PERFORMANCE: We selected 22 predictors recorded preoperatively by patients and clinicians based on Shapley Additive Explanations values. Data were split into 80%/20% training/test samples for LDH and LSS. Six machine learning methods for regression, that is, with a continuous outcome (extreme gradient boosting (XGBoost), Gaussian process regression, gradient boosting regression, artificial neural networks and linear regression), were trained for both conditions using fivefold cross-validation. We report the magnitude and distribution of errors as mean absolute error (MAE) with 95% CIs, and explanatory power as the coefficient of determination (R2). Fairness and calibration were assessed with violin and calibration plots of error. We developed a patient-similarity function that uses a K-nearest neighbour model to retrieve the individual outcomes of the 50 most similar patients and evaluated it by calculating L1 distances (Manhattan distances) across subgroups. RESULTS: XGBoost regression performed best for both conditions. The models showed good calibration and predicted ODI with MAE 11.32 (95% CI 11.00 to 11.63) and R2 0.27 (95% CI 0.24 to 0.29) for LDH and MAE 12.05 (95% CI 11.76 to 12.32) and R2 0.31 (95% CI 0.28 to 0.34) for LSS. The MAEs for back and leg pain were 2.09 (95% CI 2.04 to 2.15) and 1.95 (95% CI 1.90 to 2.00) for LDH and 2.33 (95% CI 2.28 to 2.38) and 2.13 (95% CI 2.08 to 2.16) for LSS. All models were fair with differences in error between subgroups for sex, age, education level and native language. In the patient-similarity function, distances at baseline were evenly distributed across subgroups. CONCLUSIONS: Our machine learning models predicted continuous outcomes with MAEs close to the SEs of measurements. The models were fair across sociodemographic subgroups. We succeeded in developing a patient-similarity function which supplements the predictions.
References
- 1.Joakimsen, H. L., Lund, J. A., Burman, J., Woldaregay, A. Z., Berg, B., Solberg, T. K., Ingebrigtsen, T., & Mikalsen, K. Ø. (2026). Prediction of Oswestry Disability Index and Numeric Rating Scale scores after lumbar spine surgery: machine learning model development and fairness assessment. BMJ Open, 16(5), e108947. https://doi.org/10.1136/bmjopen-2025-108947
Related Research
The Knee
Artificial intelligence in the management of sports knee injuries: a narrative review.
3 Aug 2026
Clinical spine surgery
An Introduction to Machine Learning for the Practicing Spine Surgeon
2 Aug 2026
Seminars in musculoskeletal radiology
Artificial Intelligence (Pattern Recognition) in Musculoskeletal Imaging: The Future or Hype?
2 Aug 2026
This content is for educational purposes for healthcare professionals only and does not constitute clinical advice. Clinical decisions should be based on individual patient assessment, current guidelines, and appropriate specialist consultation. Editorial Standards · Privacy Policy · Terms of Service