Development and validation of machine learning-based models for predicting healthcare-associated bacterial/fungal infections among COVID-19 inpatients: a retrospective cohort study
Related Experiment Video
Updated: Jun 28, 2025

Development of a Polymicrobial Colony Biofilm Model to Test Antimicrobials in Cystic Fibrosis
Published on: September 20, 2024
Min Wang1, Wenjuan Li2, Hui Wang1
1Department of Infection Management, Nanjing Drum Tower Hospital, Affiliated Hospital of Medical School,Nanjing University, 321 Zhongshan Road, Nanjing, Jiangsu Province, 210009, China.
Background:
COVID-19 and bacterial/fungal coinfections have posed significant challenges to human health. However, there is a lack of good tools for predicting coinfection risk to aid clinical work.
Objective:
We aimed to investigate the risk factors for bacterial/fungal coinfection among COVID-19 patients and to develop machine learning models to estimate the risk of coinfection.
Methods:
In this retrospective cohort study, we enrolled adult inpatients confirmed with COVID-19 in a tertiary hospital between January 1 and July 31, 2023, in China and collected baseline information at admission. All the data were randomly divided into a training set and a testing set at a ratio of 7:3. We developed the generalized linear and random forest models for coinfections in the training set and assessed the performance of the models in the testing set. Decision curve analysis was performed to evaluate the clinical applicability.
Results:
A total of 1244 patients were included in the training cohort with 62 healthcare-associated bacterial/fungal infections, while 534 were included in the testing cohort with 22 infections. We found that patients with comorbidities (diabetes, neurological disease) were at greater risk for coinfections than were those without comorbidities (OR = 2.78, 95%CI = 1.61-4.86; OR = 1.93, 95%CI = 1.11-3.35). An indwelling central venous catheter or urinary catheter was also associated with an increased risk (OR = 2.53, 95%CI = 1.39-4.64; OR = 2.28, 95%CI = 1.24-4.27) of coinfections. Patients with PCT > 0.5 ng/ml were 2.03 times (95%CI = 1.41-3.82) more likely to be infected. Interestingly, the risk of coinfection was also greater in patients with an IL-6 concentration < 10 pg/ml (OR = 1.69, 95%CI = 0.97-2.94). Patients with low baseline creatinine levels had a decreased risk of bacterial/fungal coinfections(OR = 0.40, 95%CI = 0.22-0.71). The generalized linear and random forest models demonstrated favorable receiver operating characteristic curves (ROC = 0.87, 95%CI = 0.80-0.94; ROC = 0.88, 95%CI = 0.82-0.93) with high accuracy, sensitivity and specificity of 0.86vs0.75, 0.82vs0.86, 0.87vs0.74, respectively. The corresponding calibration evaluation P statistics were 0.883 and 0.769.
Conclusions:
Our machine learning models achieved strong predictive ability and may be effective clinical decision-support tools for identifying COVID-19 patients at risk for bacterial/fungal coinfection and guiding antibiotic administration. The levels of cytokines, such as IL-6, may affect the status of bacterial/fungal coinfection.
Insights
Machine learning models can predict bacterial/fungal coinfections in COVID-19 patients. Risk factors include comorbidities, catheters, and PCT levels, aiding clinical decisions for antibiotic use.
Area of Science:
- Infectious Diseases
- Computational Biology
- Clinical Medicine
Background:
- COVID-19 poses significant health challenges, often complicated by bacterial/fungal coinfections.
- Effective tools for predicting coinfection risk in COVID-19 patients are currently lacking.
Purpose of the Study:
- To identify risk factors for bacterial/fungal coinfection in COVID-19 patients.
- To develop machine learning models for estimating coinfection risk.
Main Methods:
- Retrospective cohort study of adult COVID-19 inpatients.
- Development of generalized linear and random forest models using a 7:3 training/testing split.
- Evaluation of model performance using receiver operating characteristic curves and decision curve analysis.
Main Results:
- Comorbidities (diabetes, neurological disease), indwelling catheters, PCT > 0.5 ng/ml, and IL-6 < 10 pg/ml were associated with increased coinfection risk.
- Low baseline creatinine levels correlated with decreased coinfection risk.
- Both models demonstrated high accuracy, sensitivity, and specificity (ROC 0.87-0.88).
Conclusions:
- Machine learning models show strong predictive ability for identifying COVID-19 patients at risk of bacterial/fungal coinfection.
- These models can serve as clinical decision-support tools to guide antibiotic administration.
- Cytokine levels, such as IL-6, may influence the status of coinfections.
Related Concept Videos
Steps in Outbreak Investigation
Healthcare Associated Infections II: Preventive Measures
The best practices for preventing healthcare-associated infections include hand hygiene, patient risk...
Healthcare Associated Infections I: Iatrogenic, Exogenic and Endogenic
HAIs significantly increase the cost of health care. Extended stays in healthcare institutions, increased disability, increased costs of medications, including specialized antibiotics, and prolonged recovery times add to the patient's expenses and the healthcare institution and funding bodies.

