Development and Validation of a Machine Learning-Based Prediction of Chronic Postsurgical Pain Following Total Hip and Knee Arthroplasty: An Exploratory Study.
Yuan Cao, Yinghua Hu, Tianlun Gong, Zaijie Sun, Zijian Wang, Ximing Zhang
Department of Orthopedics, Xiangyang Central Hospital, Affiliated Hospital of Hubei University of Arts and Science, Xiangyang, China, xfszxyy.cn.
Key points
From the paper's conclusion- We used Lasso regression for feature selection and developed prediction models using six ML algorithms: logistic regression (LR), random forest (RF), extreme gradient boosting (XGBOOST), support vector machine (SVM), multilayer perceptron (MLP), and k‐nearest neighbor (KNN).
Abstract
INTRODUCTION: Chronic postsurgical pain (CPSP) is a concern following total hip arthroplasty (THA) and total knee arthroplasty (TKA), substantially diminishing surgical benefits. We aimed to develop a machine learning (ML) prediction model for risk of developing CPSP. METHODS: This cohort study included 383 patients recruited from a tertiary medical center between March 2022 and July 2024. Dataset was divided into a training set and a testing set. We used Lasso regression for feature selection and developed prediction models using six ML algorithms: logistic regression (LR), random forest (RF), extreme gradient boosting (XGBOOST), support vector machine (SVM), multilayer perceptron (MLP), and k-nearest neighbor (KNN). Model performance was evaluated using metrics such as receiver operator characteristic (ROC) curve and precision-recall (PR) curves, accuracy, sensitivity, and specificity. The optimal model was deployed on a web application using Shiny, and Shapley additive explanations (SHAP) analysis was used to interpret model predictions. RESULTS: Among the 383 eligible patients, the median age was 67.4 years, and 58.0% were women. The incidence of CPSP in TKA and THA was 26.0% and 12.7% respectively. Four predictors were selected: preoperative pain catastrophizing scale (PRO-PCS), preoperative Tampa Scale for Kinesiophobia (PRO-TSK), preoperative numerical rating scale (PRO-NRS) at rest, and time to first ambulation. In the testing set, the RF model demonstrated the best performance with ROC-AUC of 0.872 and PR-AUC of 0.773. The accuracy, sensitivity, and specificity were 0.90, 0.77, and 0.94, respectively. CONCLUSION: This study developed a clinically applicable ML model for CPSP prediction for THA, while the CPSP prediction for TKA was only conducted for exploration and still requires further verification.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Machine learning-based prediction models for chronic postsurgical pain after orthopaedic surgery: a scoping review.Journal of orthopaedic surgery and research · 2026
- Predicting Chronic Post-Surgical Pain After Anal Fistula Surgery Using Perioperative Clinical and Anesthesia Data: A Machine Learning Study.Journal of pain research · 2026
- Interpretable Machine Learning for Predicting Risk Factors for Chronic Postsurgical Pain After Cesarean Delivery: A Prospective Cohort StudyMedComm · 2026
- Nutritional status, inflammatory burden, and CT-derived muscle phenotypes for predicting chronic postsurgical pain after total hip arthroplasty: an explainable machine learning study.Frontiers in nutrition · 2026
- Identifying patients with a phenotype consistent with chronic postsurgical pain after hip and knee arthroplasty using robust, scalable k-medoids clustering analysismedRxiv · 2026
- Determination of candidate predictors for chiropractic treatment outcome of spinal pain using a machine learning framework for small datasets.Pain management · 2026