Skip to main content
Journal cover image

Development of Machine Learning Algorithms Predicting Psychological Distress After Total Joint Arthroplasty.

Journal articles  - Journal Article
Ramirez, MM; Horn, ME; George, SZ; Lentz, TA; Coles, T; Brennan, GP; Nelson, AE; Allen, KD; Bolognesi, MP; Brookhart, MA
Published in: J Arthroplasty
May 28, 2026

BACKGROUND: Psychological distress is associated with suboptimal outcomes after total joint arthroplasty (TJA). This study aimed to develop and evaluate machine learning models to predict a high psychological distress phenotype using only preoperative data. METHODS: We conducted a retrospective secondary analysis of patients undergoing primary hip or knee arthroplasty at Duke University between 2018 and 2024. Phenotypes were derived using latent class analysis of the Optimal Screening for Prediction of Referral and Outcome-Yellow Flag tool. There were four models such as (1) elastic net, (2) XGBoost, (3) random forest, and (4) logistic regression trained to predict a high-distress phenotype using preoperative demographic, clinical, and patient-reported data. The dataset was split into training and testing sets (70:30). Model performance was evaluated using the area under the receiver operating characteristic curve, accuracy, Brier score, sensitivity, specificity, calibration, and decision curve analysis. RESULTS: A total of 494 patients (64% women) undergoing TJA (knee 57%, hip 43%) were included; 18% (n = 89) were classified as having high postoperative distress. Patients in the high-distress phenotype demonstrated lower patient-reported outcomes measurement information system-physical function, higher patient-reported outcomes measurement information system-pain interference, pain ratings, and a greater prevalence of high-impact chronic pain. The elastic net model performed best, with an area under the receiver operating characteristic curve of 0.75 (95% CI: 0.62 to 0.85), compared with logistic regression (0.73), random forest (0.71), and XGBoost (0.65). Key preoperative predictors of high distress included a higher preoperative Optimal Screening for Prediction of Referral and Outcome-Yellow Flag count, greater pain, preoperative depression, and higher body mass index. CONCLUSIONS: Commonly collected data from routine preoperative clinical care show promise for predicting psychological distress after TJA. The elastic net model demonstrated the strongest overall performance and interpretability. Such models could support early identification of patients at risk for postoperative psychological distress, enabling targeted behavioral health referral or psychologically informed physical therapy prior to surgery. Future work should validate these models in larger, multisite cohorts.

Duke Scholars

Altmetric Attention Stats
Dimensions Citation Stats

Published In

J Arthroplasty

DOI

EISSN

1532-8406

Publication Date

May 28, 2026

Location

United States

Related Subject Headings

  • Orthopedics
  • 4003 Biomedical engineering
  • 3202 Clinical sciences
 

Citation

APA
Chicago
ICMJE
MLA
NLM
Ramirez, M. M., Horn, M. E., George, S. Z., Lentz, T. A., Coles, T., Brennan, G. P., … Brookhart, M. A. (2026). Development of Machine Learning Algorithms Predicting Psychological Distress After Total Joint Arthroplasty. J Arthroplasty. https://doi.org/10.1016/j.arth.2026.05.039
Ramirez, Michelle M., Maggie E. Horn, Steven Z. George, Trevor A. Lentz, Theresa Coles, Gerard P. Brennan, Amanda E. Nelson, Kelli D. Allen, Michael P. Bolognesi, and Maurice A. Brookhart. “Development of Machine Learning Algorithms Predicting Psychological Distress After Total Joint Arthroplasty.J Arthroplasty, May 28, 2026. https://doi.org/10.1016/j.arth.2026.05.039.
Ramirez MM, Horn ME, George SZ, Lentz TA, Coles T, Brennan GP, et al. Development of Machine Learning Algorithms Predicting Psychological Distress After Total Joint Arthroplasty. J Arthroplasty. 2026 May 28;
Ramirez, Michelle M., et al. “Development of Machine Learning Algorithms Predicting Psychological Distress After Total Joint Arthroplasty.J Arthroplasty, May 2026. Pubmed, doi:10.1016/j.arth.2026.05.039.
Ramirez MM, Horn ME, George SZ, Lentz TA, Coles T, Brennan GP, Nelson AE, Allen KD, Bolognesi MP, Brookhart MA. Development of Machine Learning Algorithms Predicting Psychological Distress After Total Joint Arthroplasty. J Arthroplasty. 2026 May 28;
Journal cover image

Published In

J Arthroplasty

DOI

EISSN

1532-8406

Publication Date

May 28, 2026

Location

United States

Related Subject Headings

  • Orthopedics
  • 4003 Biomedical engineering
  • 3202 Clinical sciences