Predicting periprosthetic joint Infection: Evaluating supervised machine learning models for clinical application
- PMID: 40703570
- PMCID: PMC12284488
- DOI: 10.1016/j.jot.2025.06.016
Predicting periprosthetic joint Infection: Evaluating supervised machine learning models for clinical application
Abstract
Background and objectives: Periprosthetic joint infection (PJI) is a serious complication that can occur after joint arthroplasty, such as hip or knee replacement surgeries. It involves the invasion of the periprosthetic space by pathogens, leading to severe inflammation and often requiring complex medical intervention. PJI is associated with significant morbidity, increased healthcare costs, and a reduced quality of life for patients. This study aims to evaluate the performance of multiple supervised machine learning models in predicting PJI using clinical and demographic data collected from patients who underwent joint arthroplasty.
Methods: Eight supervised machine learning models-Logistic Regression, Random Forest, XGBoost, Artificial Neural Network (ANN), k-Nearest Neighbors (KNN), AdaBoost, Gaussian Naive Bayes (GNB), and Stochastic Gradient Descent (SGD)-were trained and tested on a dataset of 27,854 patients. Models were evaluated using accuracy, precision, recall, specificity, F1 score, and area under the ROC curve (AUC).
Results: Random Forest and XGBoost showed the best overall performance, with high accuracy and balanced metrics across all evaluation criteria. KNN also performed strongly, particularly in minimizing misclassifications. GNB and SGD yielded weaker results, with higher error rates.
Conclusion: Random Forest, XGBoost, and KNN are the most promising models for clinical implementation in PJI prediction. Their robust performance may support earlier diagnosis and improved patient outcomes in orthopedic care.
Translational potential statement: This study demonstrates that machine learning models-particularly Random Forest and XGBoost-can accurately predict periprosthetic joint infection (PJI) using structured electronic health record data. By integrating these models into preoperative assessment workflows, clinicians may be able to identify high-risk patients earlier, personalize prophylactic strategies, and reduce infection-related morbidity. The implementation of these predictive tools has the potential to enhance clinical decision-making, improve surgical outcomes, and optimize the use of healthcare resources in orthopedic practice.
Keywords: Artificial intelligence; Classification metrics; Machine learning; Orthopaedics; Periprosthetic joint infection; Predictive modelling.
© 2025 The Authors.
Conflict of interest statement
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Figures








References
-
- Zimmerli W., Trampuz A., Ochsner P.E. Prosthetic-joint infections. N Engl J Med. 2004;351(16):1645–1654. - PubMed
-
- Hantouly A.T., Alzobi O., Toubasi A.A., Zikria B., Al Dosari M.A.A., Ahmed G. Higher sensitivity and accuracy of synovial next-generation sequencing in comparison to culture in diagnosing periprosthetic joint infection: a systematic review and meta-analysis. Knee Surg Sports Traumatol Arthrosc. 2023;31(9):3672–3683. - PMC - PubMed
-
- Berbari E.F., Hanssen A.D., Duffy M.C., Steckelberg J.M., Ilstrup D.M., Harmsen W.S., et al. Risk factors for prosthetic joint infection: case-control study. Clin Infect Dis. 1998;27(5):1247–1254. - PubMed
LinkOut - more resources
Full Text Sources