Abstract
Acute kidney injury is a common and critical complication in patients with community-acquired pneumonia who are admitted to intensive care units, substantially increasing their risk of short-term mortality. To enhance early clinical decision-making, we developed and validated multiple machine learning-based survival models to predict 28-day mortality using data from the Medical Information Mart for Intensive Care (MIMIC IV and MIMIC III databases). Five models were evaluated: Random Survival Forests, Gradient Boosting Machine, Lasso-Cox, CoxBoost, and Survival-SVM. Among these, the CoxBoost model demonstrated superior predictive performance with an AUC of 0.737in internal validation cohort and an AUC of 0.671 in external validation cohort, outperforming established clinical scoring systems. Decision curve analysis indicated high net benefit across a clinically relevant range of predicted risks. Key predictive features identified by model interpretation included age, vasopressor use, NSAIDs use, hemoglobin level, hypertension, and blood urea nitrogen. To improve practical application, we developed a web application that allows for individualized, real-time mortality risk prediction at the bedside. This tool may help identify high-risk patients earlier and support timely, personalized treatment strategies in critical care environments.