Machine learning triumphs in differentiating fungal and bacterial infections

Patients with multiple myeloma (MM) are immunocompromised and highly susceptible to severe infections. Invasive fungal disease (IFD) carries a particularly high mortality rate, yet its presentation often mimics bacterial infection, leading to misdiagnosis, inappropriate antibiotic use, and delayed antifungal therapy. This case-control study aimed to develop and validate a machine learning-based model to accurately distinguish IFD from bacterial infection in MM patients. In this retrospective case-control study, we analyzed epidemiological, clinical, and laboratory data from 140 MM patients with IFD (cases) and 158 MM patients with bacterial infections (controls). 16 key variables were used to train nine machine learning models (including Random Forest and XGBoost). The dataset was split into a training cohort (70%) and a test cohort (30%) for performance evaluation. The findings demonstrate that the area under the receiver operating characteristic curve (AUC) values for the nine models varied between 0.860 and 0.967. Notably, the logistic regression model exhibited superior performance, achieving an AUC of 0.967, an accuracy of 0.918, a recall of 0.908, and a precision of 0.919. Bootstrap analysis using 500 stratified bootstrap samples revealed that the model’s performance metrics had a standard deviation of less than 0.04 and narrow 95% confidence intervals, with the AUC interval width at 0.021, indicating consistent performance and high accuracy. Additionally, SHapley Additive exPlanation (SHAP) analysis enhanced the model’s interpretability by elucidating the contribution of each predictor. We developed and validated an accurate machine learning-based model that effectively distinguishes IFD from bacterial infections in MM patients. The resulting SHAP analysis provides clinicians with a practical tool for the early identification of high-risk IFD, potentially guiding timely and appropriate treatment decisions.

Authors

Institutions

Publication Details

Journal
BMC Infectious Diseases
Published
2026-04-02
DOI
https://doi.org/10.1186/s12879-026-13005-2
Primary Topic
Pneumonia and Respiratory Infections
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Machine learning triumphs in differentiating fungal and bacterial infections

Xue‐Jin Hu, Xiaodan Peng, Xin Zhao, Lili Chen
BMC Infectious Diseases
Pneumonia and Respiratory Infections
article

Machine learning triumphs in differentiating fungal and bacterial infections

Xue‐Jin Hu, Xiaodan Peng, Xin Zhao, Lili Chen
article en

Abstract

Patients with multiple myeloma (MM) are immunocompromised and highly susceptible to severe infections. Invasive fungal disease (IFD) carries a particularly high mortality rate, yet its presentation often mimics bacterial infection, leading to misdiagnosis, inappropriate antibiotic use, and delayed antifungal therapy. This case-control study aimed to develop and validate a machine learning-based model to accurately distinguish IFD from bacterial infection in MM patients. In this retrospective case-control study, we analyzed epidemiological, clinical, and laboratory data from 140 MM patients with IFD (cases) and 158 MM patients with bacterial infections (controls). 16 key variables were used to train nine machine learning models (including Random Forest and XGBoost). The dataset was split into a training cohort (70%) and a test cohort (30%) for performance evaluation. The findings demonstrate that the area under the receiver operating characteristic curve (AUC) values for the nine models varied between 0.860 and 0.967. Notably, the logistic regression model exhibited superior performance, achieving an AUC of 0.967, an accuracy of 0.918, a recall of 0.908, and a precision of 0.919. Bootstrap analysis using 500 stratified bootstrap samples revealed that the model’s performance metrics had a standard deviation of less than 0.04 and narrow 95% confidence intervals, with the AUC interval width at 0.021, indicating consistent performance and high accuracy. Additionally, SHapley Additive exPlanation (SHAP) analysis enhanced the model’s interpretability by elucidating the contribution of each predictor. We developed and validated an accurate machine learning-based model that effectively distinguishes IFD from bacterial infections in MM patients. The resulting SHAP analysis provides clinicians with a practical tool for the early identification of high-risk IFD, potentially guiding timely and appropriate treatment decisions.

BMC Infectious Diseases
Chongqing University of Posts and Telecommunications (CN), The Affiliated Yongchuan Hospital of Chongqing Medical University (CN), Chongqing Jiaotong University (CN), Chongqing Medical University (CN)
National Natural Science Foundation of China
Good health and well-being
Openalex Percentile: Top 22%
Pneumonia and Respiratory Infections
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.