Postoperative dissatisfaction after primary total knee arthroplasty (TKA) that requires additional care or readmission may impose a significant financial burden to healthcare systems. The purpose of the current study is to develop machine learning algorithms to predict dissatisfaction after TKA.
A retrospective review of consecutive TKA patients between 2014 and 2016 from 1 large academic and 2 community hospitals was performed. Preoperative variables considered for prediction included demographics, medical history, flexion contracture, knee flexion, and outcome scores (patient-reported health state, Knee Society Score [KSS], and KSS-Function [KSS-F]). Recursive feature elimination was used to select features that optimized algorithm performance. Five supervised machine learning algorithms were developed by training with 10-fold cross-validation 3 times. These algorithms were subsequently applied to an independent testing set of patients and assessed by discrimination, calibration, Brier score, and decision curve analysis.
Of 430 patients, a total of 40 (9.0%) were dissatisfied with their outcome after primary TKA at a minimum of 2 years postoperatively. The random forest algorithm achieved the best performance in the independent testing set not used for algorithm development (c-statistic: 0.77, calibration intercept: 0.087, calibration slope: 0.74, Brier score: 0.082). The most important factors for predicting dissatisfaction were age, number of medical comorbidities, presence of one or more drug allergies, preoperative patient-reported health state score, and preoperative KSS.
The current study developed machine learning algorithms based on partially modifiable risk factors for predicting dissatisfaction after TKA. This model demonstrates good discriminative capacity for identifying those at greatest risk for dissatisfaction and may allow for preoperative health optimization.