Predicting individual patient and hospital-level discharge using machine learning
Open Access
- 18 November 2024
- journal article
- research article
- Published by Springer Nature in Communications Medicine
- Vol. 4 (1) , 1-14
Abstract
Background: Accurately predicting hospital discharge events could help improve patient flow and the efficiency of healthcare delivery. However, using machine learning and diverse electronic health record (EHR) data for this task remains incompletely explored. Methods: We used EHR data from February-2017 to January-2020 from Oxfordshire, UK to predict hospital discharges in the next 24 h. We fitted separate extreme gradient boosting models for elective and emergency admissions, trained on the first two years of data and tested on the final year of data. We examined individual-level and hospital-level model performance and evaluated the impact of training data size and recency, prediction time, and performance in subgroups. Results: Our models achieve AUROCs of 0.87 and 0.86, AUPRCs of 0.66 and 0.64, and F1 scores of 0.61 and 0.59 for elective and emergency admissions, respectively. These models outperform a logistic regression model using the same features and are substantially better than a baseline logistic regression model with more limited features. Notably, the relative performance increase from adding additional features is greater than the increase from using a sophisticated model. Aggregating individual probabilities, daily total discharge estimates are accurate with mean absolute errors of 8.9% (elective) and 4.9% (emergency). The most informative predictors include antibiotic prescriptions, medications, and hospital capacity factors. Performance remains robust across patient subgroups and different training strategies, but is lower in patients with longer admissions and those who died in hospital. Conclusions: Our findings highlight the potential of machine learning in optimising hospital patient flow and facilitating patient care and recovery.Keywords
This publication has 34 references indexed in Scilit:
- Prediction of general medical admission length of stay with natural language processing and deep learning: a pilot studyInternal and Emergency Medicine, 2020
- Development and Validation of a Machine Learning Model to Aid Discharge Processes for Inpatient Surgical CareJAMA Network Open, 2019
- High-quality health systems in the Sustainable Development Goals era: time for a revolutionThe Lancet Global Health, 2018
- Biases in electronic health record data due to processes within the healthcare system: retrospective observational studyBMJ, 2018
- The TEND (Tomorrow's Expected Number of Discharges) Model Accurately Predicted the Number of Patients Who Were Discharged from the Hospital the Next DayJournal of Hospital Medicine, 2017
- Real-time prediction of inpatient length of stay for discharge prioritizationJournal of the American Medical Informatics Association, 2015
- Predicting Hospital Admissions at Emergency Department Triage Using Routine Administrative DataAcademic Emergency Medicine, 2011
- The Association Between Transfer of Emergency Department Boarders to Inpatient Hallways and Mortality: A 4-Year ExperienceAnnals of Emergency Medicine, 2009
- Systematic Review of Emergency Department Crowding: Causes, Effects, and SolutionsAnnals of Emergency Medicine, 2008
- Patient Flow in Hospitals: Understanding and Controlling It BetterFrontiers of Health Services Management, 2004