Predicting pneumonia death in patients with heart failure using explainable machine learning model in a territory-wide electronic health record cohort
XGBoost achieved strong discrimination for predicting pneumonia death and identified clinically coherent risk drivers through SHAP, which supports the potential utility of explainable machine learning for risk stratification and earlier escalation of care in HF populations.