ContextHospitalization provides an opportunity to address end-of-life care (EoLC) preferences if patients at risk of death can be accurately identified while in the hospital. The modified Hospital One-Year Mortality Risk (mHOMR) uses demographic and admission data in a logistic regression algorithm to identify patients at risk of death one year from admission. ObjectivesThis project sought to validate mHOMR and identify superior models. MethodsThe mHOMR model was validated using historical data from an academic health system. Alternative logistic regression and random forest (RF) models were developed using the same variables. Receiver operating characteristic (ROC) and precision recall curves were developed, and sensitivity, specificity, and positive and negative predictive values were compared over a range of model thresholds. ResultsThe RF model demonstrated higher area under the ROC curve (0.950, 95% CI 0.947 – 0.954) as compared to the logistic regression models (0.818 [95% CI 0.812 – 0.825] and 0.841 [95% CI 0.836 – 0.847]). Area under the precision recall curve was higher with the random forest model compared to the logistic regression models (0.863 vs. 0.458 and 0.494, respectively). Across a range of thresholds, the RF model demonstrated superior sensitivity, equivalent specificity, and higher positive and negative predictive values. ConclusionA machine learning RF model, using common demographic and utilization data available on hospital admission, identified inpatients at risk of death more effectively than logistic regression models using the same variables. Machine learning models have promise for identifying admitted patients with elevated one-year mortality risk, increasing opportunities to prompt discussion of EoLC preferences.