Development and temporal validation of a calibrated machine learning model for in-hospital blood culture positivity using routine clinical data.
Tao Huang, Zhenzhen Tan, Longyang Jiang, Xuping Yang, Shurong Wang, Yilan Huang
Department of Pharmacy, The Affiliated Hospital, Southwest Medical University, Luzhou, China. · School of Pharmacy, Southwest Medical University, Luzhou, China.
Key points
From the paper's conclusion- We developed and temporally validated a calibrated machine learning model for in-hospital blood culture positivity.
Abstract
BACKGROUND: Among hospitalized patients who have already undergone blood culture collection, routinely available clinical information may support early risk stratification while microbiological results are pending. We developed and temporally validated a calibrated machine learning model for in-hospital blood culture positivity. METHODS: This single-center retrospective study included 44,389 blood culture-related hospitalization records from January 2022 to September 2024. Records from 2022 to 2023 were used for model development and records from 2024 for temporal validation. The primary outcome was at least one laboratory-recorded positive blood culture between index collection and hospital discharge. A Platt-calibrated XGBoost model using demographic characteristics, routine laboratory variables, and missingness indicators was compared with procalcitonin-only and regression-based models. Performance was assessed using discrimination, calibration, threshold-specific metrics, decision curve analysis, and SHAP. RESULTS: The cohort included 3,555 outcome-positive records (8.01%). In temporal validation, the final XGBoost model achieved a ROC-AUC of 0.798 (95% CI, 0.784-0.813), a PR-AUC of 0.266, a Brier score of 0.0619, and a calibration slope of 1.061. At the 5% threshold, sensitivity was 0.877, specificity 0.570, and negative predictive value 0.983. XGBoost showed a modest improvement over logistic regression with missingness indicators, while an exploratory post hoc Age + PCT + BMI logistic comparator achieved a ROC-AUC of 0.757. Performance was stable in the new-patient validation subset but decreased within adult and pediatric subgroups (ROC-AUC 0.679 and 0.663, respectively). Age, procalcitonin, and body mass index were the dominant contributors. CONCLUSION: The calibrated model provided moderate discrimination and favorable calibration for hospitalization-level blood culture positivity risk stratification in the pooled temporal validation cohort. Performance varied across age groups, and much of the predictive information was concentrated in age, PCT, and BMI. The model does not predict the index culture result alone or diagnose clinically adjudicated bloodstream infection. Multicenter external and prospective validation using fixed prediction horizons and adjudicated outcomes is required before clinical implementation.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Machine learning prediction of 30-day mortality in adults with a positive blood culture.Enfermedades infecciosas y microbiologia clinica (English ed.) · 2026
- Predictive performance of machine learning models for bloodstream infection by validation type: A systematic review and meta-analysis.International journal of medical informatics · 2026
- Machine-learning prediction of urine-culture positivity in a multicentre test-ordered cohort: Model development and internal validation.BJUI compass · 2026
- Development of a machine learning-based sepsis prediction model for real-world clinical settings in South Korea: a single-center retrospective study.Journal of Korean biological nursing science · 2026
- Diagnostic prediction model for bacteraemia: an updated systematic review and meta-analysis.BMC infectious diseases · 2026
- Development and internal validation of machine learning models for identifying concurrent bloodstream infection in children with pneumococcal pneumonia: a retrospective case-control study.BMC infectious diseases · 2026