Machine Learning Approaches for Hourly Emergency Department Patient Arrival Forecasting: A Multi-Horizon Comparison with Operational Benchmarking at a Norwegian Hospital
This study demonstrates that machine learning models, particularly a Direct LSTM+Optuna architecture that avoids the "frozen-feature" problem inherent in recursive autoregressive approaches, significantly outperform Norway's operational calendar-based baseline for hourly emergency department patient arrival forecasting across both short and extended planning horizons.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Hospitals are places of constant motion, where the flow of people is as critical to manage as the flow of blood or electricity. In an emergency department, the difference between a smooth shift and a chaotic crisis often comes down to timing. If a hospital knows exactly how many patients will arrive in the next hour, it can open the right number of beds, schedule the correct number of nurses, and prepare diagnostic equipment before the first person walks through the door. For decades, hospital administrators have relied on simple historical averages to make these decisions, looking at what happened on a Tuesday at 2 p.m. over the last few months and assuming today will be the same. This method works well enough for broad patterns, but it is blind to the immediate reality: a sudden storm, a spike in flu cases, or an unexpected rush of injuries can render a historical average useless. The challenge for modern medicine is to move from guessing based on the past to predicting the future with the help of computers that can learn from complex, changing data.
A team of researchers at Vestfold Hospital Trust in Norway set out to solve this specific problem by building a machine learning system capable of forecasting patient arrivals hour by hour. They gathered a year's worth of data, tracking over 35,000 patient visits, and combined this with real-time information about the weather, local infection rates, and public holidays. They then trained five different types of computer models to learn the patterns hidden in this data. The goal was not just to see if a computer could predict the future better than a simple calendar lookup, but to understand how far into the future that prediction could remain accurate. The researchers compared their new models against the hospital's current system, which simply looks up the median number of arrivals for a specific day and time.
The results showed that for the immediate future, the computer models were significantly more accurate than the traditional method. When predicting just one hour ahead, the best machine learning model reduced the average error by nearly a full patient per hour compared to the hospital's standard approach. This might sound like a small number, but in a busy emergency room, knowing whether to expect four patients or six can determine whether a doctor is called in early or left waiting. The computer models achieved this by noticing subtle signals that a calendar cannot see, such as how the arrival rate is changing right now or how the current weather might influence people's decisions to seek care.
However, the study uncovered a surprising and critical flaw in how some of these advanced computer models work when asked to look further into the future. When the researchers asked the models to predict twelve or twenty-four hours ahead, the most sophisticated deep learning systems suddenly failed. Their predictions became so inaccurate that they were worse than simply guessing the average. The researchers discovered the cause: a structural issue they called the "frozen-feature problem." These models were designed to look at a window of the past to predict the next step, then use that prediction to guess the step after that. In doing so, they kept the time-of-day information fixed at the starting point of the window. Because the time of day is the single most important factor in predicting patient arrivals, the model effectively forgot that time was passing. It kept predicting the future as if it were still the same hour it started with, leading to a complete breakdown in accuracy as the forecast horizon extended.
To fix this, the team developed a different approach that does not try to predict one hour at a time and feed the result back into the system. Instead, they built a model that calculates all twenty-four hours of the future in a single, simultaneous step. This method, which they named the Direct LSTM model, avoided the trap of forgetting the passage of time. While it was slightly less precise for the very first hour compared to the other models, it remained reliable all the way out to a full day. At the twelve-hour mark, where the other advanced models had collapsed into uselessness, this new approach still provided a meaningful prediction. At the twenty-four-hour mark, it was the only model that could offer a useful forecast, outperforming both the traditional hospital system and the other machine learning attempts.
The study concludes that there is no single "best" model for every situation. For immediate decisions, such as staffing the next hour, the traditional deep learning models work best. But for longer planning, such as preparing for the next day, the new direct approach is essential. The researchers have already turned this solution into a prototype tool that the hospital can use directly, feeding it current data to generate a full twenty-four-hour forecast that fits seamlessly into their existing planning dashboard. This work demonstrates that while artificial intelligence can dramatically improve hospital operations, the way the technology is built matters just as much as the data it learns from. By identifying and fixing a specific structural weakness in how these models handle time, the researchers have provided a practical path forward for hospitals everywhere to manage their most precious resource: time.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.