Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Jul 31:18:10253-10265.
doi: 10.2147/JIR.S499903. eCollection 2025.

Machine Learning Strategies for Preoperative PJI Diagnosis: Integrative Analysis of Serum and Synovial Fluid Markers

Affiliations

Machine Learning Strategies for Preoperative PJI Diagnosis: Integrative Analysis of Serum and Synovial Fluid Markers

Bin Chen et al. J Inflamm Res. .

Abstract

Background: Preoperative diagnosis of periprosthetic joint infection (PJI) is crucial for guiding treatment strategies and improving patient outcomes. This study aims to develop a new diagnostic model for the preoperative diagnosis of PJI based on serum and synovial fluid markers and further validate its effectiveness.

Methods: We retrospectively collected data from patients admitted for joint revision surgery between January 2018 and October 2022, selecting serum and synovial fluid markers as variables for the study. The most suitable diagnostic markers were selected using LASSO regression, and eight machine learning (ML) models were constructed based on the selected markers. The diagnostic performance and clinical utility of the ML models were assessed using receiver operating characteristic curves, calibration curves, decision curve analysis, and clinical impact analysis. Finally, the best model was compared to existing diagnostic standards using an external validation cohort.

Results: A total of 376 cases were analyzed (263 in the training cohort and 113 in the validation cohort), with 111 cases (29.52%) diagnosed as PJI. The ML models included SE-IL6, SE-CRP, ESR, SF-IL6, PMN%, DD, and ALB. The eXtreme Gradient Boosting model was the optimal model, achieving an area under the curve of 0.998 (95% CI 0.993-1) in the test set, outperforming other models. It also recorded the lowest Brier score of 0.062 and the highest F1 score of 0.985. In the external validation cohort, the accuracy, sensitivity, and specificity of the ML diagnostic model were higher than those of the MSIS 2013 and ICM 2018 diagnostic criteria.

Conclusion: Our newly developed ML diagnostic model can assist clinicians in rapidly and accurately diagnosing PJI before surgery and has potential value for timing decisions regarding two-stage revisions. It has high economic value and clinical applicability.

Keywords: diagnostic model; inflammatory markers; machine learning; periprosthetic joint infection; preoperative diagnosis; synovial fluid.

PubMed Disclaimer

Conflict of interest statement

The authors have not disclosed any competing interests.

Figures

Figure 1
Figure 1
Flowchart of the study.
Figure 2
Figure 2
Demographics and variable characteristics selection using LASSO regression. (A) Binomial bias versus log (Lambda) in the LASSO regression model. The dashed line on the left indicates Lambda.min (the minimum value of Lambda) and the dashed line on the right indicates Lambda.1st (the maximum value within one standard error of Lambda.min). The numbers at the top of the figure indicate the number of variables included in the model at each Lambda value. (B) LASSO coefficient trajectories for selected variables under log (Lambda). Unimportant coefficients shrink to zero as Lambda increases. Y-axis denotes the coefficient of the variable and x-axis denotes log (Lambda).
Figure 3
Figure 3
Evaluating the diagnostic performance of different models. (A and B) ROC curves of the training and test sets for evaluating the ability of the eight machine learning models to discriminate between PJI and aseptic failures. The AUC values and their 95% confidence intervals are displayed in the figure. (C) Calibration curves showing how well the predicted probabilities of the eight models match the actual observed events. The Brier scores obtained by each model are shown on the right side of the figure. XGB obtained better Brier scores 0.062. (D) Decision Curve Analysis evaluates the clinical net benefit of each model at different risk thresholds.
Figure 4
Figure 4
SHAP interpretation of XGB machine learning model. (A) A scatter plot based on SHAP values shows the contribution of each variable to PJI diagnosis. The X-axis represents SHAP values, the Y-axis represents variable names, and the color indicates the contribution range of the variables (from low to high). (B) The average SHAP values of each variable reflect their relative importance in the PJI diagnosis model. (C and D) Individual SHAP force plots for a PJI patient (C) and an aseptic failure patient (D). The SHAP values represent the diagnostic features of individual patients and the contribution of each variable to diagnosing PJI. f(x) represents the predicted probability of being diagnosed with PJI, with values closer to 1 indicating a higher likelihood of PJI diagnosis; a negative f(x) indicates that the patient’s features are pushing the model’s diagnosis toward aseptic failure. E[f(x)] is the baseline value of the model when no sample input is provided. The length of the arrows indicates the degree to which the diagnosis is influenced by each variable—the longer the arrow, the greater the impact.

Similar articles

References

    1. Wouthuyzen-Bakker M, Sebillotte M, Arvieux C, et al. How to handle concomitant asymptomatic prosthetic joints during an episode of hematogenous periprosthetic joint infection, a multicenter analysis. Clin Infect Dis. 2020;73(11):e3820–e3824. doi: 10.1093/cid/ciaa1222 - DOI - PMC - PubMed
    1. Senneville E, Dinh A, Ferry T, Beltrand E, Blondiaux N, Robineau O. Tolerance of prolonged oral tedizolid for prosthetic joint infections: results of a multicentre prospective study. Antibiotics. 2020;10(1):4. doi: 10.3390/antibiotics10010004 - DOI - PMC - PubMed
    1. Almazrou Y, Shibl AM, Alkhlaif R, et al. Epidemiology of invasive pneumococcal disease in Saudi Arabian children younger than 5 years of age. J Epidemiol Glob Health. 2016;6(2):95–104. doi: 10.1016/j.jegh.2015.08.002 - DOI - PMC - PubMed
    1. Qin L, Li X, Wang J, Gong X, Hu N, Huang W. Improved diagnosis of chronic hip and knee prosthetic joint infection using combined serum and synovial IL-6 tests. Bone Joint Res. 2020;9(9):587–592. doi: 10.1302/2046-3758.99.BJR-2020-0095.R1 - DOI - PMC - PubMed
    1. Qin L, Yang S, Zhao C, et al. Prospects and challenges for the application of tissue engineering technologies in the treatment of bone infections. Bone Res. 2024;12(1):28. doi: 10.1038/s41413-024-00332-w - DOI - PMC - PubMed

LinkOut - more resources