Skip to main content

Routine urinalysis-based machine learning framework for predicting urine culture contamination

In brief

Two-stage machine learning flags 73% of contaminated urine cultures before reporting

In retrospective testing, a two-stage model identified 73% of contaminated cultures and detected pathogenic growth with 90% recall in internal validation. It showed positive net benefit at two external sites, but prospective, multicenter testing across different laboratory platforms is still needed before routine use.

Journal
Clinica chimica acta; international journal of clinical chemistry (Q1)
Published
6 November 2026
Study design
Cohort / observational study
Evidence level
Level 3, Low (CEBM 3b)
Authors
Yunying Chen, Xianfei Ye, Cuiying Ye, Hanqin Cao, Zhaohui Ma, Xinfeng Zhao
PMID
42994545
DOI
10.1016/j.cca.2026.122957

Why clinicians should know about it

  • Picked for Biochemistry (medical) (top studies of the week, 8 November 2026): Urinalysis assay variables support contamination detection and stewardship

Abstract

BACKGROUND: Urine culture contamination is a common preanalytical challenge, yet conventional urinalysis strategies rarely treat it as an independent outcome. METHODS: This retrospective study included 8446 specimens from 6686 patients, split at the patient level into training and internal validation sets. An additional 3481 specimens from 2819 patients at two other campuses of the same hospital system were used for external validation. Nineteen demographic and routine urinalysis variables were analyzed. We developed a two-stage XGBoost framework that first distinguished bacterial growth from negative culture and then contamination from pathogenic growth. Thresholds were selected during training to maintain ≥95% sensitivity for bacterial-growth detection in Stage 1 and ≥ 95% specificity for pathogenic growth in Stage 2. Comparators included one-stage three-class, class-weighted, and binary contamination-versus-rest XGBoost models and SEC-based rules. RESULTS: The binary contamination-versus-rest model and SEC-based rules showed limited contamination recall (0.411 [0.348-0.475] to 0.589 [0.525-0.651]). Relative to the two-stage reference, the one-stage three-class model had significantly lower contamination recall (0.572 versus 0.732) and pathogenic-growth recall (0.746 versus 0.901) in internal validation (both Holm-adjusted P < 0.001), whereas the class-weighted model achieved comparable contamination recall (0.765) but with reduced pathogenic-growth recall (0.741) and a higher pathogen-to-contamination error rate (0.091 versus 0.033). Decision curve analysis showed positive net benefit at both external sites. SHapley Additive exPlanations (SHAP) identified bacilli count, SEC, and WBC as the main contributors in Stage 2. CONCLUSIONS: This two-stage framework may support urine culture diagnostic stewardship by flagging approximately three-quarters of contaminated cultures before culture reporting. Prospective multicenter and cross-platform validation is needed before routine implementation.

Abstract as published, via PubMed.

View on PubMedFull text at the publisherOpen in the app

For healthcare professionals. The summary is generated by AI from the published abstract, and the evidence level is assigned automatically from the study design on the Oxford CEBM hierarchy. Neither is medical advice. Read the full paper before changing practice.