An open-source, configurable machine learning pipeline for predicting blood culture outcomes from routine haematology parameters.
Benjamin R McFadden, Timothy J J Inglis, Mark Reynolds
University of Western Australia, School of Physics, Mathematics and Computing, Perth, 6009, Australia. · University of Western Australia, Discipline of Pathology and Laboratory Medicine, School of Medicine, Perth, 6009, Australia.
Key points
From the paper's conclusion- We present an open-source pipeline for training, evaluation, and reporting of binary classification models that predict BC outcomes from complete blood count (CBC), white blood cell differential (DIFF) and cell population data (CPD) generated by Sysmex XN-series haematology analysers.
Abstract
Background. Bloodstream infections remain a major cause of morbidity and mortality worldwide, yet blood culture (BC) positivity rates are typically low, highlighting a need to optimize test use. Machine learning models trained on routinely available haematology parameters have shown promise for predicting BC outcomes. However, there is a lack of open-source software to implement methods described in the peer-reviewed literature. Results. We present an open-source pipeline for training, evaluation, and reporting of binary classification models that predict BC outcomes from complete blood count (CBC), white blood cell differential (DIFF) and cell population data (CPD) generated by Sysmex XN-series haematology analysers. This pipeline implements four classifier types (LR: logistic regression, DT: decision tree, RF: random forest and XG: XGBoost), two default feature spaces (19-feature CBC/DIFF and 50-feature CBC/DIFF/CPD) and feature selection methods (Boruta all-relevant selection and recursive feature elimination), along with nested cross-validation (CV) to prevent data leakage during feature selection. Trained LR coefficients and DT rules were exported in portable formats suited to deployment in spreadsheet-based or laboratory information management system environments without requiring the Python programming language runtime. RF and XG models were also exported. The pipeline was fully configurable via a single JSON file and allowed adaptation to any binary classification problem without source code modification. Automated HTML reports with embedded area under the receiver operating characteristic curves and confusion matrices were generated for both training and inference runs. Conclusions. This open-source repository addresses key limitations in existing BC outcome prediction workflows by providing a reproducible, transparent method and clinically deployable pipeline. Its configurable architecture, nested CV strategy, multiple feature selection methods and export of interpretable model artefacts make it suitable for both research and clinical decision support applications.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Rapid diagnosis of common, undetected, and uncultivable bloodstream infections from positive blood cultures using Oxford Nanopore sequencing: a metagenomic pipeline analysisThe Lancet Microbe · 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
- Machine learning implementation for host-based infectious disease diagnosticsFrontiers in Digital Health · 2026
- Diagnostic Performance of Machine Learning Models for Predicting Bloodstream Infections in Large Cohorts: A Systematic Review and Meta-analysis.Infectious diseases and therapy · 2026
- Machine learning prediction of 30-day mortality in adults with a positive blood culture.Enfermedades infecciosas y microbiologia clinica (English ed.) · 2026
- Comparison and validation of multiple machine learning algorithms for predicting MDRO infection in catheter-related bloodstream patients: a multicenter cohort studyMicrobiology Spectrum · 2026