Accepted for/Published in: JMIR Medical Informatics
Date Submitted: Mar 14, 2025
Open Peer Review Period: Aug 26, 2025 - Oct 26, 2025
Date Accepted: Aug 4, 2025
(closed for review but you can still tweet)
Warning: This is an author submission that is not peer-reviewed or edited. Preprints - unless they show as "accepted" - should not be relied on to guide clinical practice or health-related behavior and should not be reported in news media as established information.
An Artificial Intelligence-Based Framework for Predicting Emergency Department Overcrowding: Development and Evaluation Study
ABSTRACT
Background:
Background:
Emergency department overcrowding remains a critical challenge, leading to delays in patient care and increased operational strain. Current hospital management strategies often rely on reactive decision-making, addressing congestion only after it occurs. However, effective patient flow management requires early identification of overcrowding risks to allow timely interventions. Machine learning-based predictive modeling offers a solution by forecasting key patient flow measures, such as waiting count, enabling proactive resource allocation and improved hospital efficiency.
Objective:
Objective:
The aim of this study is to develop machine learning models that predict emergency department waiting room occupancy at two temporal resolutions. The first approach is the hourly prediction model, which estimates the waiting count exactly six hours ahead at each prediction time (e.g., a 1 PM prediction forecasts 7 PM). The second approach is the daily prediction model, which forecasts the average waiting count for the next 24-hour period (e.g., a 5 PM prediction estimates the following day’s average). These predictive tools support resource allocation and help mitigate overcrowding by enabling proactive interventions before congestion occurs.
Methods:
Methods:
Data from a partner hospital's emergency department in the southeastern United States was used, integrating internal and external sources. Eleven different machine learning algorithms, ranging from traditional approaches to deep learning architectures, were systematically trained and evaluated on both hourly and daily predictions to determine the models that achieved the lowest prediction error. Experiments optimized feature combinations, and the best models were tested under high patient volume and across different hours to assess temporal accuracy.
Results:
Results:
The best hourly prediction performance was achieved by Time Series Vision Transformer Plus (TSiTPlus) with an MAE of 4.19 and an MSE of 29.32. The overall hourly waiting count had a mean of 18.11 (μ) and a standard deviation (σ) of 9.77. Prediction accuracy varied by time of day, with the lowest MAE at 11 PM (2.45) and the highest at 8 PM (5.45). Extreme case analysis at (μ + 1σ), (μ + 2σ), and (μ + 3σ) resulted in MAEs of 6.16, 10.16, and 15.59, respectively. For daily predictions, Explainable Convolutional Neural Network Plus (XCMPlus) achieved the best results with an MAE of 2.00 and an MSE of 6.64. The daily waiting count had a mean of 18.11 and a standard deviation of 4.51. Both models outperformed traditional forecasting approaches across multiple evaluation metrics.
Conclusions:
Conclusions:
The proposed prediction models effectively forecast emergency department waiting room occupancy at both hourly and daily intervals. The results demonstrate the value of integrating diverse data sources and applying advanced modeling techniques to support proactive resource allocation decisions. Implementation of these forecasting tools within hospital management systems has potential to improve patient flow and reduce overcrowding in emergency care settings.
Citation
Request queued. Please wait while the file is being generated. It may take some time.
Copyright
© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.