Personalized machine learning approach to predict candidemia in medical wards
Related Experiment Video
Updated: Dec 13, 2025

Author Spotlight: Enhancing Candida albicans Detection in Catheter Infections Using Fluorescent Protein Tagging
Published on: March 22, 2024
Andrea Ripoli1, Emanuela Sozio2, Francesco Sbrana3
1Bioengineering Department, Fondazione Toscana Gabriele Monasterio, Pisa, Italy.
Purpose:
Candidemia is a highly lethal infection; several scores have been developed to assist the diagnosis process and recently different models have been proposed. Aim of this work was to assess predictive performance of a Random Forest (RF) algorithm for early detection of candidemia in the internal medical wards (IMWs).
Methods:
A set of 42 potential predictors was acquired in a sample of 295 patients (male: 142, age: 72 ± 15 years; candidemia: 157/295; bacteremia: 138/295). Using tenfold cross-validation, a RF algorithm was compared with a classic stepwise multivariable logistic regression model; discriminative performance was assessed by C-statistics, sensitivity and specificity, while calibration was evaluated by Hosmer-Lemeshow test.
Results:
The best tuned RF algorithm demonstrated excellent discrimination (C-statistics = 0.874 ± 0.003, sensitivity = 84.24% ± 0.67%, specificity = 91% ± 2.63%) and calibration (Hosmer-Lemeshow statistics = 12.779 ± 1.369, p = 0.120), markedly greater than the ones guaranteed by the classic stepwise logistic regression (C-statistics = 0.829 ± 0.011, sensitivity = 80.21% ± 1.67%, specificity = 84.81% ± 2.68%; Hosmer-Lemeshow statistics = 38.182 ± 15.983, p < 0.001). In addition, RF suggests a major role of in-hospital antibiotic treatment with microbioma highly impacting antimicrobials (MHIA) that are found as a fundamental risk of candidemia, further enhanced by TPN. When in-hospital MHIA therapy is not performed, PICC is the dominant risk factor for candidemia, again enhanced by TPN. When PICC is not used and MHIA therapy is not performed, the risk of candidemia is minimum, slightly increased by in-hospital antibiotic therapy.
Conclusion:
RF accurately estimates the risk of candidemia in patients admitted to IMWs. Machine learning technique might help to identify patients at high risk of candidemia, reduce the delay in empirical treatment and improve appropriateness in antifungal prescription.
Insights
A Random Forest (RF) algorithm accurately predicts the risk of candidemia, a dangerous bloodstream infection, in internal medical wards. This machine learning approach improves early detection and antifungal treatment appropriateness.
Area of Science:
- Infectious Diseases
- Medical Informatics
- Machine Learning in Healthcare
Background:
- Candidemia is a life-threatening infection with various diagnostic scoring systems.
- Recent advancements include predictive models for early candidemia detection.
- Internal medical wards (IMWs) are a critical setting for candidemia management.
Purpose of the Study:
- To evaluate the predictive performance of a Random Forest (RF) algorithm for early candidemia detection in IMWs.
- To compare the RF algorithm's predictive capabilities against a traditional logistic regression model.
- To identify key predictors of candidemia within the studied patient population.
Main Methods:
- A cohort of 295 patients was analyzed, with 42 potential predictors identified.
- A RF algorithm was developed and validated using tenfold cross-validation.
- Performance was assessed using C-statistics, sensitivity, specificity, and the Hosmer-Lemeshow test, comparing RF to stepwise logistic regression.
Main Results:
- The RF algorithm demonstrated superior discrimination (C-statistic = 0.874) and calibration compared to logistic regression (C-statistic = 0.829).
- Key risk factors identified include in-hospital antibiotic treatment impacting the microbiome (MHIA) and total parenteral nutrition (TPN).
- Central venous catheter use (PICC) emerged as a significant risk factor when MHIA therapy was absent.
Conclusions:
- The RF algorithm provides accurate candidemia risk estimation in IMW patients.
- Machine learning, specifically RF, can aid in identifying high-risk patients for candidemia.
- This approach may lead to reduced diagnostic delays and more appropriate antifungal prescribing.
Related Concept Videos
Combination Therapies and Personalized Medicine
The combination of the drug acetazolamide and sulforaphane is a good example of combination therapy to treat cancer. The cells in the interior of a large tumor often die due to the hypoxic and...
Healthcare Associated Infections II: Preventive Measures
The best practices for preventing healthcare-associated infections include hand hygiene, patient risk...

