Development and Validation of an Explainable Machine Learning Model for Predicting Invasive Fungal Infection in

Fei-Xiang Xiong1, Jian-Guo Yan2, Xue-Jie Zhang1

  • 1Center of Integrative Medicine, Beijing Ditan Hospital, Capital Medical University, Beijing, China.

Mycoses
|July 17, 2025
PubMed
Abstract

Insights

This study developed a Random Forest model to predict invasive fungal infection (IFI) risk in acute-on-chronic liver failure (ACLF) patients, outperforming existing scores. The model identifies high-risk factors like bacterial infection and specific lab values for better patient management.

Area of Science:

  • Machine Learning in Clinical Medicine
  • Hepatology and Critical Care

Background:

  • Acute-on-chronic liver failure (ACLF) carries a high short-term mortality risk.
  • Invasive fungal infection (IFI) significantly exacerbates mortality in ACLF patients.
  • Accurate prediction of IFI risk is crucial for timely intervention and improved outcomes.

Purpose of the Study:

  • To develop and validate a machine learning (ML) model for predicting the risk of IFI in ACLF patients.
  • To compare the performance of the developed ML model against established clinical scores.
  • To identify key predictors of IFI in ACLF patients using interpretable ML techniques.

Main Methods:

  • A cohort of 1112 ACLF patients was divided into training, internal validation, and external validation sets.
  • Recursive Feature Elimination (RFE) was employed for optimal variable selection.
  • Four ML algorithms were evaluated, with Random Forest (RF) selected as the best performer. Model performance was assessed using C-index, time-dependent ROC curves, decision curve analysis (DCA), and calibration curves. Local Interpretable Model-Agnostic Explanations (LIME) was used for risk factor identification.

Main Results:

  • The RF model demonstrated superior predictive performance for IFI risk compared to MELD, CLIF-C OF, and CLIF-C ACLF scores across all validation sets (AUROC 0.922 in training set).
  • Time-dependent ROC curves confirmed the RF model's advantage in predicting 28-day IFI risk.
  • LIME analysis identified bacterial infection, low sodium levels (Na < 136 mmol/L), high C-reactive protein (CRP > 20.1 g/L), and high total bilirubin (TBIL > 196.7 μmol/L) as significant risk factors.

Conclusions:

  • The developed Random Forest model provides an effective tool for predicting IFI risk in ACLF patients.
  • The model's interpretability through LIME allows for the identification of high-risk patient subgroups.
  • This approach offers significant clinical value for optimizing patient management and potentially reducing IFI-related mortality in ACLF.

Related Concept Videos