Development and validation of a routine blood test–based model to predict in-hospital postoperative pulmonary infection in older patients with hip fracture

BACKGROUND: Postoperative pulmonary infection (PPI) is a common and serious complication in older adults undergoing hip fracture surgery, leading to prolonged hospitalization, increased costs, and increased mortality. However, simple and reliable preoperative predictors remain limited. Therefore, this study aimed to develop and validate a hematology-based machine learning model for the early prediction of PPI in older hip fracture patients. METHODS: A total of 3,944 patients aged ≥ 60 years who underwent hip fracture surgery were retrospectively enrolled from three cohorts: the discovery cohort (n = 1,745, Shanghai Xuhui Central Hospital, 2016-2020), the internal validation cohort (n = 1,306, 2021-2024), and the external validation cohort (n = 893, Shanghai Putuo People's Hospital, 2016-2024). Twenty-four preoperative hematologic variables were analyzed. Six supervised machine learning algorithms were compared via fivefold cross-validation. Model performance was evaluated by the area under the receiver operating characteristic curve (AUC), accuracy, sensitivity, specificity, F1 score, calibration, and decision curve analysis (DCA). RESULTS: Patients who developed PPI were generally older and exhibited a neutrophil-dominant inflammatory profile, characterized by higher white blood cell counts, neutrophil, monocyte, platelet, and C-reactive protein levels, and lower lymphocyte, eosinophil, and basophil percentages (all p < 0.001). Among the evaluated algorithms, the extreme gradient boosting (XGBoost) model achieved the best overall performance, with AUCs of 1.00, 0.96, and 0.98 in the discovery, internal, and external cohorts, respectively. Calibration curves suggested good agreement between predicted and observed probabilities, and DCA indicated favorable clinical net benefit across threshold probabilities. CONCLUSIONS: A hematology-based XGBoost model was developed to predict in-hospital PPI in older adults following hip fracture surgery. The model demonstrated good discriminative performance and interpretability in this study cohort, suggesting its potential utility as a supplementary tool for cost-effective perioperative risk stratification. However, further prospective validation in diverse populations and healthcare settings is required to confirm its generalizability and clinical applicability.

Authors

Institutions

Publication Details

Journal
BMC Geriatrics
Published
2026-07-16
DOI
https://doi.org/10.1186/s12877-026-07906-9
Primary Topic
Nosocomial Infections in ICU
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Development and validation of a routine blood test–based model to predict in-hospital postoperative pulmonary infection in older patients with hip fracture

Yinwang Zhang, J Liu, Yunxiao Song, Fuhai Liu et al.
BMC Geriatrics
Nosocomial Infections in ICU
article

Development and validation of a routine blood test–based model to predict in-hospital postoperative pulmonary infection in older patients with hip fracture

Yinwang Zhang, J Liu, Yunxiao Song, Fuhai Liu, Junhua Zhang, Fei Chen, Zhengjian Qu, Zhen Xu, Tianyao Zhou
article en

Abstract

BACKGROUND: Postoperative pulmonary infection (PPI) is a common and serious complication in older adults undergoing hip fracture surgery, leading to prolonged hospitalization, increased costs, and increased mortality. However, simple and reliable preoperative predictors remain limited. Therefore, this study aimed to develop and validate a hematology-based machine learning model for the early prediction of PPI in older hip fracture patients. METHODS: A total of 3,944 patients aged ≥ 60 years who underwent hip fracture surgery were retrospectively enrolled from three cohorts: the discovery cohort (n = 1,745, Shanghai Xuhui Central Hospital, 2016-2020), the internal validation cohort (n = 1,306, 2021-2024), and the external validation cohort (n = 893, Shanghai Putuo People's Hospital, 2016-2024). Twenty-four preoperative hematologic variables were analyzed. Six supervised machine learning algorithms were compared via fivefold cross-validation. Model performance was evaluated by the area under the receiver operating characteristic curve (AUC), accuracy, sensitivity, specificity, F1 score, calibration, and decision curve analysis (DCA). RESULTS: Patients who developed PPI were generally older and exhibited a neutrophil-dominant inflammatory profile, characterized by higher white blood cell counts, neutrophil, monocyte, platelet, and C-reactive protein levels, and lower lymphocyte, eosinophil, and basophil percentages (all p < 0.001). Among the evaluated algorithms, the extreme gradient boosting (XGBoost) model achieved the best overall performance, with AUCs of 1.00, 0.96, and 0.98 in the discovery, internal, and external cohorts, respectively. Calibration curves suggested good agreement between predicted and observed probabilities, and DCA indicated favorable clinical net benefit across threshold probabilities. CONCLUSIONS: A hematology-based XGBoost model was developed to predict in-hospital PPI in older adults following hip fracture surgery. The model demonstrated good discriminative performance and interpretability in this study cohort, suggesting its potential utility as a supplementary tool for cost-effective perioperative risk stratification. However, further prospective validation in diverse populations and healthcare settings is required to confirm its generalizability and clinical applicability.

BMC Geriatrics
Tongji University (CN), Shanghai Xuhui Central Hospital (CN), Central Hospital of Putuo District (CN), Shanghai Sixth People's Hospital (CN)
Reduced inequalities
Openalex Percentile: Top 7%
Nosocomial Infections in ICU
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.