Accurate Forecasting of Emergency Department Arrivals With Internet Search Index and Machine Learning Models: Model Development and Performance Evaluation
- PMID: 35857360
- PMCID: PMC9350824
- DOI: 10.2196/34504
Accurate Forecasting of Emergency Department Arrivals With Internet Search Index and Machine Learning Models: Model Development and Performance Evaluation
Abstract
Background: Emergency department (ED) overcrowding is a concerning global health care issue, which is mainly caused by the uncertainty of patient arrivals, especially during the pandemic. Accurate forecasting of patient arrivals can allow health resource allocation in advance to reduce overcrowding. Currently, traditional data, such as historical patient visits, weather, holiday, and calendar, are primarily used to create forecasting models. However, data from an internet search engine (eg, Google) is less studied, although they can provide pivotal real-time surveillance information. The internet data can be employed to improve forecasting performance and provide early warning, especially during the epidemic. Moreover, possible nonlinearities between patient arrivals and these variables are often ignored.
Objective: This study aims to develop an intelligent forecasting system with machine learning models and internet search index to provide an accurate prediction of ED patient arrivals, to verify the effectiveness of the internet search index, and to explore whether nonlinear models can improve the forecasting accuracy.
Methods: Data on ED patient arrivals were collected from July 12, 2009, to June 27, 2010, the period of the 2009 H1N1 pandemic. These included 139,910 ED visits in our collaborative hospital, which is one of the biggest public hospitals in Hong Kong. Traditional data were also collected during the same period. The internet search index was generated from 268 search queries on Google to comprehensively capture the information about potential patients. The relationship between the index and patient arrivals was verified by Pearson correlation coefficient, Johansen cointegration, and Granger causality. Linear and nonlinear models were then developed with the internet search index to predict patient arrivals. The accuracy and robustness were also examined.
Results: All models could accurately predict patient arrivals. The causality test indicated internet search index as a strong predictor of ED patient arrivals. With the internet search index, the mean absolute percentage error (MAPE) and the root mean square error (RMSE) of the linear model reduced from 5.3% to 5.0% and from 24.44 to 23.18, respectively, whereas the MAPE and RMSE of the nonlinear model decreased even more, from 3.5% to 3% and from 16.72 to 14.55, respectively. Compared with each other, the experimental results revealed that the forecasting system with extreme learning machine, as well as the internet search index, had the best performance in both forecasting accuracy and robustness analysis.
Conclusions: The proposed forecasting system can make accurate, real-time prediction of ED patient arrivals. Compared with the static traditional variables, the internet search index significantly improves forecasting as a reliable predictor monitoring continuous behavior trend and sudden changes during the epidemic (P=.002). The nonlinear model performs better than the linear counterparts by capturing the dynamic relationship between the index and patient arrivals. Thus, the system can facilitate staff planning and workflow monitoring.
Keywords: emergency department; internet search index; machine learning; nonlinear model; patient arrival forecasting.
©Bi Fan, Jiaxuan Peng, Hainan Guo, Haobin Gu, Kangkang Xu, Tingting Wu. Originally published in JMIR Medical Informatics (https://medinform.jmir.org), 20.07.2022.
Conflict of interest statement
Conflicts of Interest: None declared.
Figures





Similar articles
-
A Systematic Review of Features Forecasting Patient Arrival Numbers.Comput Inform Nurs. 2025 Jan 1;43(1):e01197. doi: 10.1097/CIN.0000000000001197. Comput Inform Nurs. 2025. PMID: 39432906 Free PMC article.
-
Performance evaluation of Emergency Department patient arrivals forecasting models by including meteorological and calendar information: A comparative study.Comput Biol Med. 2021 Aug;135:104541. doi: 10.1016/j.compbiomed.2021.104541. Epub 2021 Jun 3. Comput Biol Med. 2021. PMID: 34166880
-
Forecasting daily emergency department arrivals using high-dimensional multivariate data: a feature selection approach.BMC Med Inform Decis Mak. 2022 May 17;22(1):134. doi: 10.1186/s12911-022-01878-7. BMC Med Inform Decis Mak. 2022. PMID: 35581648 Free PMC article.
-
Internet search query data improve forecasts of daily emergency department volume.J Am Med Inform Assoc. 2019 Dec 1;26(12):1574-1583. doi: 10.1093/jamia/ocz154. J Am Med Inform Assoc. 2019. PMID: 31730701 Free PMC article.
-
A systematic review of the modelling of patient arrivals in emergency departments.Quant Imaging Med Surg. 2023 Mar 1;13(3):1957-1971. doi: 10.21037/qims-22-268. Epub 2022 Oct 9. Quant Imaging Med Surg. 2023. PMID: 36915315 Free PMC article. Review.
Cited by
-
Early Warning Software for Emergency Department Crowding.J Med Syst. 2023 May 26;47(1):66. doi: 10.1007/s10916-023-01958-9. J Med Syst. 2023. PMID: 37233836 Free PMC article.
-
A Systematic Review of Features Forecasting Patient Arrival Numbers.Comput Inform Nurs. 2025 Jan 1;43(1):e01197. doi: 10.1097/CIN.0000000000001197. Comput Inform Nurs. 2025. PMID: 39432906 Free PMC article.
-
Internet-based Surveillance Systems and Infectious Diseases Prediction: An Updated Review of the Last 10 Years and Lessons from the COVID-19 Pandemic.J Epidemiol Glob Health. 2024 Sep;14(3):645-657. doi: 10.1007/s44197-024-00272-y. Epub 2024 Aug 14. J Epidemiol Glob Health. 2024. PMID: 39141074 Free PMC article.
-
Prognostic models for predicting patient arrivals in emergency departments: an updated systematic review and research agenda.BMC Emerg Med. 2025 Jul 1;25(1):106. doi: 10.1186/s12873-025-01250-8. BMC Emerg Med. 2025. PMID: 40596904 Free PMC article.
References
-
- Carvalho-Silva M, Monteiro MTT, Sá-Soares FD, Dória-Nóbrega S. Assessment of forecasting models for patients arrival at Emergency Department. Operations Research for Health Care. 2018 Sep;18:112–118. doi: 10.1016/j.orhc.2017.05.001. - DOI
-
- Morley C, Unwin M, Peterson GM, Stankovich J, Kinsman L. Emergency department crowding: A systematic review of causes, consequences and solutions. PLoS One. 2018;13(8):e0203316. doi: 10.1371/journal.pone.0203316. https://dx.plos.org/10.1371/journal.pone.0203316 PONE-D-18-06823 - DOI - DOI - PMC - PubMed
-
- Gul M, Celik E. An exhaustive review and analysis on applications of statistical forecasting in hospital emergency departments. Health Syst (Basingstoke) 2018 Nov 19;9(4):263–284. doi: 10.1080/20476965.2018.1547348. http://europepmc.org/abstract/MED/33354320 1547348 - DOI - PMC - PubMed
LinkOut - more resources
Full Text Sources