Hospital Discharge Prediction Using Machine Learning

Joaquim Oristrell,Anna Pascual,Pere Millet,Guillermo R Lazaro,Anna Benavent
DOI: https://doi.org/10.1101/2024.06.20.24309256
2024-06-21
Abstract:OBJECTIVE: Reliable hospital discharge predictions still remain an unmet need. In this study, we aimed to forecast daily hospital discharges by ward, until seven days ahead, using machine learning methods. METHODS: We analyzed all (n=67308) hospital admissions proceeding from the Emergency department in a University Hospital, from January-2018 to August-2023. Several train-test splits were defined simulating a prospective, weekly acquisition of data on new admissions. First, we trained Light Gradient Boosting Machines (LGBM) and Multilayer Perceptron (MLP) models to generate predictions on length of stay (LOS) for each admission. Based on predicted LOS, timeseries were built and predictions on daily hospital discharges, by ward, seven days into the future, were created employing diverse forecasting techniques. Mean absolute error (MAE) between predicted and observed discharges was used to measure the accuracy of predictions. Discharge predictions were also categorized as successful if they did not exceed by 10% the mean number of hospital daily discharges. RESULTS: LGBM slightly outperformed MLP in 25 weekly LOS predictions (MAE 4.7 [SD 0.7] vs 4.9 [SD 0.7] days, p<0.001). The best techniques to forecast, seven days ahead, the daily number of hospital discharges were obtained using Prophet (MAE 5.0, R2=0.85), LGBM (MAE 5.2, R2=0.85), seasonal ARIMA (MAE 5.5, R2=0.81) and Temporal Fusion Transformer (TFT)(MAE 5.7, R2=0.83). After categorizing the predictions, LGBM, Prophet, seasonal ARIMA and TFT reached successful predictions in 82.3%, 81.1%, 77.7% and 77.1% of days, respectively. CONCLUSIONS: Successful predictions of daily hospital discharges, seven days ahead, were obtained combining LOS predictions using LGBM and timeseries forecasting techniques.
What problem does this paper attempt to address?
The problem this paper attempts to address is predicting the daily number of discharges from hospitals using machine learning methods to optimize patient flow management within hospitals and prevent overcrowding. Specifically, the study aims to predict the daily number of discharges in each ward for the next 7 days, thereby helping hospital administrators take proactive measures to address potential bed shortages and improve patient care quality. The paper mentions that public hospitals in most Western countries have been operating at near-full capacity for a considerable period, leading to frequent delays in emergency admissions, causing inconvenience to patients and potentially affecting the quality of their care. Therefore, accurately predicting the daily number of discharges will help hospital management implement measures to prevent hospital overcrowding.