Abstract
The widespread emergence of machine learning-based solutions provides most fields with a range of available tools. Utilizing these tools requires resources unavailable to many institutions. Off-the-shelf methods could fill this gap, as they usually require little implementational effort, and are easily customizable to fit a wide range of tasks. To assess how easily off-the-shelf methods can be adapted to clinical tasks so that clinicians would be provided actionable predictions, we adopted the time series forecasting model Prophet to forecast patient census time series 3 days from the day of prediction. The underlying time series used for model training consisted of day-to-day census data collected in 2021 and 2022. Performance of the model had been evaluated daily against a baseline and the manual predictions of a business subject matter expert. The Prophet model outperformed the other methods and provided accurate predictions for several time series; it predicted adult intensive care unit census, overall adult census, and emergency department census with 2.1%, 3.2%, and 7.6% mean absolute percentage error, respectively. To acquire these predictions, necessary steps were installing Python, the library containing Prophet, and writing a script around it to train it on the time series of interest and generate actual predictions. The model has been operationalized in a large academic hospital. We conclude that medical facilities which accumulate time series data (patient census, resources, etc.) can benefit from advances in machine learning, or more specifically time series forecasting by adopting off-the-shelf methods to generate actionable predictions to enhance patient care.
Introduction
Hospital operations, particularly staffing and bed management, are critically dependent on accurate "census" forecasts—the predicted number of patients in a facility at any given time. Inaccurate forecasts lead to significant operational risks: underestimation results in dangerous understaffing and bed shortages, while overestimation leads to costly resource waste.
Despite the potential of advanced machine learning (ML) to solve these forecasting challenges, many healthcare institutions face a "resource gap." Building custom ML models typically requires specialized data science teams and significant infrastructure, which are often unavailable. Consequently, many hospitals continue to rely on "naïve" baselines, such as simple moving averages, or labor-intensive manual calculations performed in Excel by subject matter experts. This study investigates whether "off-the-shelf" open-source forecasting tools can bridge this gap, providing high-accuracy, actionable clinical predictions with minimal technical overhead.
Methods
The research team implemented Prophet, an open-source forecasting procedure developed by Meta (Facebook). Prophet is specifically designed to handle time series data with strong seasonal effects (e.g., weekly and yearly cycles) and disruptions caused by holidays. It utilizes an additive model where non-linear trends are fit with yearly, weekly, and daily seasonality, plus holiday effects.
The implementation utilized the Kats Python library. The system was designed for full automation: it updates daily with fresh data from the Electronic Health Record (EHR), retraining every morning to generate 1, 2, and 3-day-ahead forecasts. The 3-day window was prioritized to allow sufficient lead time for proactive staffing and patient placement decisions.
Performance was benchmarked against two standards:
- A naïve baseline (a 7-day moving average).
- Manual predictions generated daily by a business subject matter expert using traditional spreadsheet methods.
Results
The study analyzed nine distinct time series from UCLA Health, including Adult ICU census, Emergency Department (ED) volume, and Medical/Surgical (MS) units. The Prophet model consistently demonstrated superior performance over both the naïve baseline and manual expert forecasts.
As shown in Table 1, the Prophet model achieved a Mean Absolute Percentage Error (MAPE) of just 2.1% for the Adult ICU census and 3.1% for the overall Adult Census. In the Emergency Department, the model outperformed the manual expert prediction by a Mean Absolute Error (MAE) of 2.82 patients. Four of the nine tracked time series achieved a MAPE below 5%, a threshold considered highly reliable for operational decision-making.
Figure 1 illustrates the model's tracking capability for the Adult Medical/Surgical (MS) unit. The Prophet prediction (orange) closely follows the actual patient census (dashed blue), capturing fluctuations that the baseline (green) fails to anticipate.
Discussion and Conclusion
Beyond statistical accuracy, the study highlights the "democratization" of machine learning in clinical settings. By using off-the-shelf tools, personnel with basic programming knowledge can achieve results that surpass manual expert analysis.
The operational benefits are substantial. Manual forecasting previously required approximately 30 hours of labor per month; the automated Prophet script generates these predictions in seconds. This shift allows administrators to move from data processing to proactive decision-making. While the model requires several months of historical data to learn seasonal patterns and necessitates ongoing monitoring, its success at a large academic hospital suggests that similar facilities can significantly enhance patient care by adopting accessible time series forecasting methods.
Summary updated