Background
Nosocomial infections (NIs) frequently occur and adversely impact prognosis for hospitalized patients with cirrhosis. This study aims to develop and validate two machine learning models for NIs and in-hospital mortality risk prediction.
Methods
The Prediction of Nosocomial Infection and Prognosis in Cirrhotic patients (PIPC) study included hospitalized patients with cirrhosis at the Qingchun Campus of the First Affiliated Hospital of Zhejiang University. We then assessed several machine learning algorithms to construct predictive models for NIs and prognosis. We validated the best-performing models with bootstrapping techniques and an external validation dataset. The accuracy of the predictions was evaluated through sensitivity, specificity, predictive values, and likelihood ratios, while predictive robustness was examined through subgroup analyses and comparisons between models.
Results
We enrolled 1,297 patients into derivation cohort and 496 patients into external validation cohort. Among the six algorithms assessed, the Random Forest algorithm performed best. For NIs, the PIPC-NI model achieved an area under the curve (AUC) of 0.784 (95% confidence interval [CI] 0.741–0.826), a sensitivity of 0.712, and a specificity of 0.702. For in-hospital mortality, the PIPC- mortality model achieved an AUC of 0.793 (95% CI 0.749–0.836), a sensitivity of 0.769, and a specificity of 0.701. Moreover, our PIPC models demonstrated superior predictive performance compared to the existing MELD, MELD-Na, and Child-Pugh scores.
Conclusions
The PIPC models showed good predictive power and may facilitate healthcare providers in easily assessing the risk of NIs and prognosis among hospitalized patients with cirrhosis.
Supplementary Information
The online version contains supplementary material available at 10.1186/s13756-024-01444-y.