# Early Prediction of 90-Day Periprosthetic Joint Infection After Hip Arthroplasty for Proximal Femur Fracture Using Machine Learning: Development and Temporal Validation of a Predictive Model

**Authors:** Nicolò Giuseppe Biavardi, Francesco Pezone, Federico Morlini, Mattia Alessio-Mazzola, Valerio Pace, Pierluigi Antinolfi, Giacomo Placella, Vincenzo Salini

PMC · DOI: 10.3390/jcm15041668 · 2026-02-23

## TL;DR

This study uses machine learning to predict joint infections after hip surgery for femur fractures, achieving high accuracy and stable performance over time.

## Contribution

A machine learning model (XGBoost) was developed and validated for early prediction of periprosthetic joint infection after hip arthroplasty, with high sensitivity and stable performance in temporal validation.

## Key findings

- The XGBoost model achieved an AUC of 0.889 in predicting 90-day periprosthetic joint infection.
- The model demonstrated 100% sensitivity and 99.1% NPV in temporal validation with a 2023 cohort.
- Postoperative C-reactive protein, operative duration, BMI, ASA class, and serum sodium were key predictors identified via SHAP.

## Abstract

Background: Periprosthetic joint infection (PJI) after hip arthroplasty for proximal femur fracture is a severe complication, and early postoperative identification remains challenging. This study developed and validated machine learning (ML) models for the early prediction of 90-day EBJIS 2021 “confirmed” PJI using routinely available perioperative data. Methods: We performed a single-center retrospective study including 1182 consecutive adults undergoing primary hip arthroplasty for proximal femur fracture (2015–2022). Forty-seven perioperative candidate predictors were extracted, including early postoperative laboratory values (postoperative day 1–2 and maxima within 72 h). Six algorithms were trained and compared (logistic regression, random forest, support vector machine, multilayer perceptron, XGBoost, and stacking ensemble) using a stratified 80/20 training–test split with 10-fold cross-validation, grid-search hyperparameter tuning, and class weighting. A sensitivity-prioritizing classification threshold was derived using training data only and applied unchanged to evaluation cohorts. Uncertainty was estimated via 1000 bootstrap iterations. Calibration was assessed using the Brier score and calibration intercept/slope. Temporal validation was conducted in a same-center 2023 cohort (n = 147). Model explainability used SHAP. Results: EBJIS-confirmed 90-day PJI occurred in 58/1182 (4.9%) patients. In held-out testing, the final XGBoost model demonstrated good discrimination (AUC 0.889, 95% CI 0.804–0.960) with good overall calibration (Brier score 0.043). Using a prespecified sensitivity-prioritizing threshold selected in the training set, test-set sensitivity was 100%, specificity 58.5%, PPV 11.4%, and NPV 100%. The stacking ensemble yielded the highest discrimination (AUC 0.937; 95% CI 0.89–0.98). In temporal validation (same-center 2023 cohort; n = 147), model performance remained stable (AUC 0.892; sensitivity 85.7%; NPV 99.1% at the prespecified threshold). Calibration was favorable in the development cohort (Brier 0.041; intercept −0.04; slope 0.96) and in 2023 (Brier 0.038; intercept −0.06; slope 0.94). SHAP identified postoperative C-reactive protein, operative duration, body mass index, ASA class, and serum sodium as the most influential predictors. Conclusions: ML models, particularly XGBoost, supported early postoperative risk stratification for 90-day EBJIS-confirmed PJI after fracture-related hip arthroplasty, with a consistently high NPV and stable calibration in a temporally independent same-center cohort. Prospective multi-center validation and impact evaluation are needed before clinical implementation.

## Linked entities

- **Diseases:** Periprosthetic joint infection (MONDO:0800179)

## Full-text entities

- **Genes:** CORO7 (coronin 7) [NCBI Gene 79585] {aka 0610011B16Rik, CRN7, POD1}, CRP (C-reactive protein) [NCBI Gene 1401] {aka PTX1}
- **Diseases:** femur fracture (MESH:D000092524), polytrauma (MESH:D009104), POD (MESH:D014786), Proximal Femur Fracture (MESH:D000092526), Fracture (MESH:D050723), sarcopenia (MESH:D055948), inflammation (MESH:D007249), injury to (MESH:D014947), PJI (MESH:D057068), Hip Arthroplasty (MESH:D025981), proximal (MESH:D014897), femoral neck fractures (MESH:D005265), obesity (MESH:D009765), infection (MESH:D007239), infectious disease (MESH:D003141), chronic (MESH:D002908)
- **Chemicals:** sodium (MESH:D012964)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Figures

3 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12941624/full.md

---
Source: https://tomesphere.com/paper/PMC12941624