INTRODUCTION: Nosocomial infections (NIs) in cirrhosis are associated with high mortality but could be preventable. Logistic regression (LR) models have failed to identify high-risk patients. We aimed to develop machine learning (ML) models to predict NI. METHODS: The CLEARED consortium consists of prospectively enrolled cirrhosis inpatients from >120 centers. Using day-of-admission clinical data, 3 ML approaches (random forest [RF], extreme gradient boosting, and neural networks [NNs]) were used to predict NI. Data were split 80:20 for training and testing stratified by the outcome. Models were compared using area under the receiver operating characteristic curve (AUC). RESULTS: In total, 8,263 patients (55.90 ± 13.34 years; 64.1% men) from 127 centers in 37 countries were included. NI developed in 869 (10.5%), a median of 6 (4–11) days of postadmission. Major NIs were respiratory (29.6%) and urinary tract infection (15.7%), and spontaneous bacterial peritonitis (13.5%). NIs occurred more frequently in patients from low/low-middle income countries and those with severe liver disease, alcohol etiology, and admission infections. NIs were associated with inpatient mortality (31.9% vs 8.1%, P < 0.001) and liver transplantation (4.8% vs 1.9%, P < 0.001). Although the RF model (AUC 0.69) showed good calibration (Brier score 0.09), outperforming extreme gradient boosting, neural network, and LR models (AUC 0.66 for all; LR comparison P = 0.043), no model achieved AUC ≥0.80 for clinical utility. At 10% predicted probability threshold, the RF model demonstrated only 75.4% sensitivity, 52.9% specificity, and 15.9% positive predictive value (PPV). DISCUSSION: NIs cannot be accurately predicted from day-of-admission data using ML models, even in a large, prospective, global cirrhosis cohort. Every hospitalized patient with cirrhosis should receive protocolized infection control measures.