- Open Access
A multi-granular stacked regression for forecasting long-term demand in Emergency Departments
BMC Medical Informatics and Decision Making volume 23, Article number: 29 (2023)
In the United Kingdom, Emergency Departments (EDs) are under significant pressure due to an ever-increasing number of attendances. Understanding how the capacity of other urgent care services and the health of a population may influence ED attendances is imperative for commissioners and policy makers to develop long-term strategies for reducing this pressure and improving quality and safety.
We developed a novel multi-granular stacked regression (MGSR) model using publicly available data to predict future mean monthly ED attendances within Clinical Commissioning Group regions in England. The MGSR combines measures of population health and health service capacity in other related settings. We assessed model performance using the R-squared statistic, measuring variance explained, and the Mean Absolute Percentage Error (MAPE), measuring forecasting accuracy. We used the MGSR to forecast ED demand over a 4-year period under hypothetical scenarios where service capacity is increased, or population health is improved.
Measures of service capacity explain 41 ± 4% of the variance in monthly ED attendances and measures of population health explain 62 ± 22%. The MGSR leads to an overall improvement in performance, with an R-squared of 0.79 ± 0.02 and MAPE of 3% when forecasting mean monthly ED attendances per CCG. Using the MGSR to forecast long-term demand under different scenarios, we found improving population health would reduce peak ED attendances per CCG by approximately 1000 per month after 2 years.
Combining models of population health and wider urgent care service capacity for predicting monthly ED attendances leads to an improved performance compared to each model individually. Policies designed to improve population health will reduce ED attendances and enhance quality and safety in the long-term.
In the United Kingdom, Emergency Department (ED) demand is increasing year-on-year . In 2014 there were, on average, 61,318 ED attendances per day across the country; by 2019 this figure had risen to 70,230 attendances, an increase of 14.5% . Given that the average cost of an ED attendance is £166 , this equates to an increase of over £500 million per year. Being able to forecast long-term ED demand is therefore important for strategic planning of services. Understanding the drivers of this increase in ED demand is also essential to policy makers in order to assess the potential impact of interventions for improving quality and safety by reducing demand and spending.
There exists a large volume of work that looks at forecasting demand on ED departments. Previous studies have mostly focussed on predicting short-term ED attendances [4,5,6,7,8,9,10,11,12] using past attendances [4, 5, 7, 8, 10,11,12,13,14], calendar [5, 7, 9, 10, 14] and meteorological variables [5, 9, 14]. The most common techniques employed are Multiple Linear Regression [7, 9, 11, 15], Autoregressive Integrated Moving Average (ARMIA) and variants [4, 5, 7, 8, 12, 13], Exponential Smoothing [7, 8, 11] and, more recently, Machine Learning (ML) algorithms [5, 8, 10, 12, 13, 16]. Cohort studies have found that measures of social deprivation and co-morbidities are predictive of ED attendances [15, 17, 18] and low General Practice (GP) attendance is associated with low ED attendance . This suggests models used for forecasting need to incorporate measures of overall population health and access to other health services. As these variables change at different rates (GP availability changes daily, population health changes over a much longer time period), methods used in previous studies are not directly applicable.
Combining data at different scales falls under the paradigm of Granular Computing: a theoretical concept that recognises data contains different information when viewed at different resolutions . Ensemble learning, a ML technique that combines the output from multiple independent algorithms into a unified framework, naturally lends itself to granular tasks. Multi-Granularity Ensemble Learning, where each algorithm in the ensemble is trained on data at a different scale, has been successfully applied to text [20, 21] and image  classification and financial forecasting [23, 24].
Here, we present a multi-granular stacked regression (MGSR) that uses measures of health service capacity with population and population health (including socioeconomic deprivation) to forecast long-term ED demand. Our model can be used by strategic planners and policy makers to determine how changes in service capacity or population health will impact long-term demand in ED departments.
This study uses publicly available data mapped to Clinical Commissioning Groups (CCGs) in England over the two-year period January 2018 to December 2019. We used this study period to avoid disruption from the COVID-19 pandemic. As NHS organisations, CCGs are part of a local network of healthcare providers: Primary Care, Secondary Care, Mental Health and Community Services. At the time of the study there were 81 CCGs in England with major EDs. Each CCG covers a certain geographical region, within which there are hospitals with ED Departments and GP surgeries. The CCG region also has a contract for 111, a 24-hour medical advice helpline, and a contract for Ambulance Services.
Variables were selected based on previous studies [15, 17, 18] and the availability of nationally curated datasets.
ED attendance data was obtained from the A&E Attendances and Emergency Admissions dataset published by NHS England . This data is released monthly and contains the total number of attendances at each NHS Trust for that month. NHS Trusts were mapped to CCGs. The outcome variable, ED attendances per CCG per month, was calculated as the sum of the attendances at each Trust for each month (see Data Processing).
Data on the number of GP appointments available in each CCG was obtained from the Appointments in General Practice dataset, published by NHS Digital . This data is released monthly and is available stratified by CCG. The variable ‘count of appointments’ corresponds to the daily number of GP appointments available. This variable was summed for each CCG to give a total number of appointments available per month as a measure of GP capacity.
The NHS 111 minimum dataset was published monthly by NHS England up until March 2021 . It contains detailed information on call handling and disposition after triage for all 111 contracts covering England. From this dataset, the variable “Calls offered” was used as a measure of the capacity of the 111 service. The daily number of calls offered for each contract was summed for each month before being stratified by CCG (see Data processing).
NHS England publish the Ambulance System Indicators (AmbSys) data monthly which contains information on calls made to the 11 ambulance service contracts covering England . We used “Calls answered (A1)” as a measure of service capacity. The number of calls answered per month was summed for each contract before being stratified by CCG (see Data Processing).
Estimates of the population of CCGs were obtained from the Office for National Statistics (ONS) . Estimates of future population from 2019 to 2025 were also obtained to allow for forecasting of future ED demand. In addition to the total population, these estimates were used to derive a variable representing the percentage of the population over the age of 65, %>65, as a measure of age distribution.
The Health Index is a measure of the health of the United Kingdom, consisting of three domains: People, Places and Lives . Each of the three domains consist of a set of sub-domains. People, which quantifies health outcomes, is a combination of measures of mortality (e.g. life expectancy, avoidable deaths), morbidity (prevalence of long-term physical health conditions) and mental health conditions (e.g. prevalence of depression and anxiety, suicide rate). Places is a measure of wider determinants of health and environmental risk factors with components quantifying access to green space, quality of the local environment (e.g. air pollution, traffic noise), access to housing, access to services (e.g. distance to GPs and pharmacies) and levels of crime. Lives measures health-related behaviours and personal circumstances: physiological risk factors (e.g. diabetes, obesity); behavioural risk factors such as prevalence of alcohol and drug misuse; unemployment and working conditions (e.g. workplace safety); risk factors for children such as teenage pregnancy and child poverty; children and young people’s education; protective measures (e.g. cancer screening, vaccination coverage).
The overall index is a single indicator that can be compared over time and at different geographies. Values are relative to index values in 2015. It has a base of 100: values higher than 100 indicate better health than in 2015 and values lower than 100 indicate worse health. The Health Index is an experimental statistic developed by the ONS. Annual estimates are available stratified by CCG .
The curated dataset consisted of a single observation for each CCG and each month of the study period. For variables not reported at the level of CCG, data were aggregated (if reported at trust level) or stratified (if reported at contract level). Stratification was carried out according to population share: if a contract covers 3 CCGs, the amount of the variable assigned to each CCG will be proportional to the CCG’s population. When data was missing for a given CCG on a given month, the data point was removed from the data set. ED attendances, population and variables measuring the capacity of other services were scaled to units of per 10,000 people. As we are interested in forecasting future ED attendances, data for CCGs that have merged since 2018 were aggregated.
To forecast ED demand, we developed the MGSR to predict monthly ED attendances for each CCG. The model uses the capacity of other services, population and measures of population health as independent variables. We used a stacked architecture as measures of service capacity are available on a monthly basis, whereas population and measures of population health change annually. A stacked architecture allows for the predictions of independent models to be combined to produce a final prediction.
The MGSR consists of three separate models: two Level 0 models (Capacity Model and Population Health model) and one Level 1 model, the Combined Model (Fig. 1). The Capacity Model was trained on measures of service capacity as independent variables: the number of GP appointments available (GP capacity); the number of 111 calls offered (111 capacity); the number of ambulance calls answered (Ambulance capacity). The dependent variable was monthly ED attendances per CCG. The Population Health model had population, the percentage of the population over the age of 65, and the three components of the Health Index (People, Places and Lives) as independent variables. The dependent variable was mean monthly ED attendances per year per CCG. The combined model takes the predicted values from the Capacity Model and the Population Health model to generate a final prediction for monthly ED attendances.
For the Level 0 models we implemented a Random Forest (RF) algorithm  which is an example of an ensemble learning algorithm composed of individual decision trees. We used RF as it can handle non-linear relationships between independent and dependent variables, is known to be robust and has lower variance compared to a single decision tree. For the Combined model we implemented an Ordinary Least Squares (OLS) Regression due to the small number of variables and expected linearity between predicted values from the level 0 models and true values.
All models were implemented using Python’s sci-kit learn library , version 1.0.2. Repeated 5-fold cross-validation was used to assess individual model performance: data was split into a training set (80%) and validation set (20%) five times, such that each data point is in the validation set exactly once. This process was repeated 5 times with different random seeds, resulting in 25 different validation sets. At each fold, the model was fit to the training set and the validation set was used to assess performance. Final performance measures for each model were obtained by averaging over those for each validation set. For level-0 models, hyper-parameters controlling the number of trees and maximum tree depth were selected to maximise mean performance in the validation data while minimising model complexity .
To assess overall performance of the MGSR, at each fold the Combined model was fit to 70% of the data (7/8 of the training set) and the level 1 model was fit to 10% of the data (1/8 of the training set). The Population Health model was fit independently to the Combined model to ensure no data leakage between training and validation data . The forecasting accuracy of the MGSR was assessed by training the model on data from 2018 only. This model was used to forecast both monthly ED attendances for each CCG, and mean monthly ED attendances per CCG, for 2019.
Individual model performance was evaluated using the coefficient of determination (R-squared), which measures the amount of variance in the dependant variable that is explained by the independent variables. The Mean Absolute Percentage Error (MAPE) was used to assess the forecasting accuracy of the MGSR.
Variable importance was assessed for each model independently using the Gini Importance (GI)  for RF algorithms, and coefficient importance for OLS regression. Overall variable importance was determined using Permutation Importance (PI) . Each variable in the data was randomly permuted sequentially, keeping all other variables constant. A variable’s PI was calculated as the difference between the model’s R-squared value without permutation and the R-squared when the variable is permuted. Repeated 5-fold cross-validation was used with 5 repeats. Final variable PI was obtained by averaging the difference in R-squared values for each fold and each repeat. A low PI suggests a variable has little influence on model performance whereas a high PI suggests an independent variable contains a lot of information about the dependent variable (ED attendances).
Forecasting future demand
For forecasting future demand, the MGSR was refit to the entire dataset. Population forecasts were obtained from the ONS. Data from 2019 was used as the baseline and ED attendances were forecast over a 4-year period. For each year, the population variable was replaced with forecasted population, and the percentage of the population over the age of 65 was updated, to obtain estimates of future ED demand in a ‘do nothing’ scenario (i.e., population health and service capacity remains as it was in 2019).
As we use data from 2019 as the baseline, theoretically the 4-year forecasting period represents 2020–2024. However, due to the impact of the COVID-19 pandemic on ED attendances and the capacity of other services, our forecasts will not be accurate for this period. We demonstrate the forecasting accuracy of the MGSR using pre-pandemic data (2018–2019) and separately use the model forecast future demand under different hypothetical scenarios had the pandemic not occurred.
Future demand was forecasted under 4 different scenarios: (1) 111 capacity is increased by 10%; (2) GP capacity is increased by 10%; (3) Ambulance capacity is increased by 10%; (4) population health in the least healthy regions is improved. Together, these scenarios involve altering the independent variables of the MGSR either individually (scenarios 1–3) or in combination (scenario 4) to gain insight into how changes in service capacity or population health might impact future ED attendances. In scenarios 1–3, service capacity was immediately increased by 10%. For scenario 4, population health measures (People, Places and Lives) were increased in regions that scored below average in any of the measures in 2019. Specifically, if these variables were less than the baseline average, they were increased by 0.2 points per year until they reached the baseline average. By increasing levels of population health in the least healthy regions, rather than nationally, this scenario models how a reduction in health inequalities might impact future ED attendances.
The curated dataset consisted of data from different publicly available sources (see Data). At the time of the analysis there were 81 CCGs in England with major EDs. Of these, 5 CCGs had incomplete data on ED attendances for 2018 and were removed from the analysis. This resulted in 76 CCGs and a maximum dataset size of 1824 datapoints. Datapoints were removed due to missing data in the following variables: Health Index (N = 48); 111 capacity (N = 158). This resulted in a final sample of 1618 data points containing 7 independent variables and representing 74 unique CCGs. Descriptive statistics for each independent variable are displayed in Table 1.
The RF fitted to measures of service capacity (GP, 111 and ambulance service) as independent variables was able to explain 41 ± 4% of the variance in monthly ED attendances. Of these variables, the most important was the capacity of the ambulance service (GI 0.65 ± 0.04) and the least important was GP capacity (GI 0.16 ± 0.02).
Population Health model
The RF fitted to population and measures of population health derived from the Health Index as independent variables was able to explain 62 ± 22% of the variance in monthly ED attendances. The most important variable was CCG population (GI 0.43 ± 0.20). Of the Health Index components, Lives was the most important (GI 0.33 ± 0.23) and People was least important (GI 0.05 ± 0.05).
Combining predicted mean monthly ED attendances (output of the Population Health model) and monthly ED attendances (output of the Capacity model) with an OLS Regression, the MGSR was able to explain 79 ± 2% of the variance in monthly ED attendances (Fig. 2). The coefficient of the Capacity model was 0.22 ± 0.07 and the coefficient of the Population Health model was 0.85 ± 0.06 suggesting population and measures of population health are more predictive of ED attendances than the capacity of other healthcare services.
Training the MGSR on data from 2018, the model was able to predict mean monthly ED attendances per CCG in 2019 with a MAPE of 0.03 (Fig. 3). For all months except February, the predicted mean monthly ED attendances in 2019 (green dashed line, Fig. 3) are less than the true mean monthly ED attendances (red dashed line). Over the winter period (December – February), the MGSR predicts mean monthly ED attendances per CCG most accurately, with an average error of 2%.
We assessed overall variable importance by randomly permuting each variable individually and calculating the mean change in performance of the combined model (Fig. 4). The most important variable was population (PI 0.39 ± 0.07). Of the measures of service capacity, Ambulance capacity is most important (PI 0.05 ± 0.02), followed by 111 capacity (0.02 ± 0.01) and GP capacity (PI 0.01 ± 0.01). Components of the Health Index (People, Places, Lives) are also important in predicting monthly ED attendances, with Lives providing the most information (PI 0.22 ± 0.04) followed by People (PI 0.07 ± 0.02) and Places (PI 0.04 ± 0.01). The percentage of the population over the age of 65 is more important (PI 0.11 ± 0.02) than the capacity of other services for predicting monthly ED attendances, but not as important as the overall population or health related behaviours and risk-factors (Lives).
Forecasting future demand
The MGSR trained on all available data was used to assess how changes in service capacity and population health might impact ED attendances in the future, compared to a ‘do-nothing’ scenario where the only independent variables that change are population and the percentage of the population over the age of 65. Using the model to forecast ED attendances over a 4-year period, we found that changes to overall population health would have the largest instant impact (Fig. 5). If population health in CCGs that were below average at baseline were improved year-on-year until the baseline average for each component was met, average peak ED attendances per CCG would be approximately 1000 lower after 2 years (grey line, Fig. 5) compared to a ‘do-nothing’ scenario (green dashed line, Fig. 5). Increasing GP capacity by 10% would have no impact on mean ED attendances (purple line, Fig. 5). Increasing Ambulance and 111 capacity would lead to an overall increase in ED attendances (blue and red lines, Fig. 5). An increase in Ambulance capacity would have the greatest impact resulting in average peak ED attendances per CCG increasing by 100 per month.
We have presented a novel MGSR model that can be used to forecast monthly ED attendances for CCGs in England. The MGSR combines measures of health service capacity (Capacity model) and measures of population health (Population Health model). The Capacity model can explain 41 ± 4% of the variance in monthly ED attendances, and the Population Health model explains 62 ± 22% of the variance. Combining these two models, the MGSR has an overall R-squared (variance explained) of 79 ± 2% which is an improvement on the performance of each of the component models independently. Alongside an increase in R-squared, the MGSR allows for monthly ED attendances to be forecast while accounting for annual changes in population size and measures of population health. The MGSR trained on data from 2018 was able to predict mean monthly ED attendances per CCG in 2019 with, on average, only a 3% error. Using the MGSR to forecast future ED attendances we found that improving population health would lead to a reduction in mean monthly ED attendances however changes to service capacity may lead to an increase.
When using the MGSR to forecast future ED demand, individual predictions of monthly ED attendances for each CCG were aggregated into an average across CCGs. As such, it is important to note that while the model suggests improving population health will result in a reduction in ED attendances, and increasing service capacity may increase ED attendances, these relationships only hold at the aggregate level. For an individual CCG, the relationship between population health, service capacity and monthly ED attendances can be different to that which is seen globally .
A strength of the MGSR model is that it was developed using publicly available data from 2018 to 2019 aggregated to CCG regions. We selected this study period due to the impact of COVID-19 on health service capacity and service accessibility; a model trained on data from 2020 to 2021 would not be transferable to the post-Covid era due to health service disruption during the pandemic. As the data we have used is updated either monthly [25, 26, 28] or annually [27, 29, 31], once enough data is available from the post-Covid era, the model can be re-trained to produce more up-to-date forecasts without changing any of the underlying architecture. While recent changes in the organisational structure of the NHS mean that CCGs no longer exist, having been replaced with Integrated Care Boards (ICBs), any future data can be mapped to past CCG regions (now referred to as sub-ICBs) or the model can be re-trained at the geographical level of ICBs.
We used RFs for the Population Health and Capacity models as they performed best when compared to linear models and other ensembles . While we have compared multiple ML and statistical approaches, the list of models implemented was not exhaustive. Previous work has demonstrated that Neural Networks (NNs) are superior to linear models for predicting short-term ED attendances in certain settings [5, 14], and time-series methods, such as ARIMAX, can outperform ML approaches [8, 10]. A recent review  found that, out ten studies forecasting monthly ED demand, the five that employed time-series methods had, on average, lower errors (MAPE 4.7 ± 3.9%) than the two that used NNs (MAPE 7.6 ± 1.3%) and only two of the time-series models achieved a lower MAPE (2%) than the MGSR. We did not consider these approaches due to data availability; both NNs and time-series models require a large amount of data during training and ARMIAX would not be suitable for long-term forecasts when the values of the exogenous (independent) variables are not known, as is the case for the variables used here. Furthermore, while NNs often outperform other ML approaches, this is at the cost of interpretability. In order to ensure our model is useful in practice, in the RFs we selected the number and size of trees that optimised performance while minimising complexity .
One limitation of RFs is that they are not able to make predictions outside of the range of the data seen during training. This can be seen in Fig. 2 where the range of predicted values (y-axis) is smaller than the range of true values (x-axis). Consequently, the MGSR will not perform as well in regions with a very low or very high number of ED attendances per 10,000 people.
Comparing the monthly ED attendances predicted by the MGSR to their true values (Fig. 2) it is clear that the MGSR does not always perform well. Specifically, from this figure the two clusters of points above the dashed line appear to be outliers. Further analysis found that each cluster represents a distinct CCG. These two CCGs have very low values for ‘People’ and ‘Lives’ . As the Population Health model contains variables that vary annually and our study period is two years, the amount of data available for training this model was limited to 145 data points. This smaller sample of data resulted in less accurate predictions for CCGs that had very low or high values for any of the population health variables. This limitation will be overcome in the future once more data becomes available.
When using the MGSR to forecast future ED demand, improving population health was the only scenario that resulted in a decrease in ED attendances (Fig. 5). Of the population health variables, Lives, which quantifies health-related behaviours and personal circumstances, was the most important (PI 0.22 ± 0.04, Fig. 4). For policy makers, this suggests that interventions to reduce the prevalence of smoking and alcohol abuse, tackle obesity and improve vaccination coverage could all have an impact on long term ED demand. As each of the domains of the Health Index (People, Places and Lives) are an aggregate of underlying components, future work looking at the importance of each sub-component and how changes in these impact ED demand would be beneficial to policy makers: knowledge of the underlying component(s) that have the greatest impact on ED attendances would ensure policies are targeted and effective. However, it is important to note that while the model suggests improving health-related behaviours and personal circumstances would lead to a reduction in ED attendances, we cannot deduce a causal relationship. For example, if a high prevalence of smoking in a population is found to be associated with a greater number of ED attendances, this doesn’t mean that smoking drives ED attendances: the association may be caused by underlying factors that contribute to smoking prevalence, rather than the behaviour itself.
In contrast to improving population health, increasing Ambulance Capacity led to an overall increase in ED attendances (Fig. 5). This may be explained by the fact that monthly ambulance capacity is lower than utility for all CCGs: the number of calls answered is always less than the number of calls made [28, 34]. Therefore if ambulance capacity is increased, meaning more calls are answered, more people will be conveyed to hospital. The model is not able to predict what would happen in a situation where no data are available, for example where ambulance capacity is greater than utility. While this is clearly a limitation of the model, it is also a limitation of the data and the way the ambulance service in England currently operates: if the ambulance service is always saturated, it is not possible to use data to model a scenario when it is unsaturated.
If the model were to be used locally by, e.g. an ICB, it would significantly benefit from being re-trained with local data at a lower level of geography. This would ensure that the model is tailored to the local population. For example, if the independent variables were calculated per Lower Super Output Area (LSOA) the model could be used to forecast total monthly ED attendances within an Integrated Care System (ICS) under different practical scenarios. Using local data would also help to overcome the limitation of the model not performing well for regions that are outliers in terms of population health; ICS regions cover on average 1.5 million people  equating to approximately 850 LSOAs per ICS (or 1700 values of population health variables over two years) compared to the 74 CCGs used in this study.
Our MGSR model can be used by both strategic commissioners and policy makers. For commissioners, the Capacity model can be used to assess how additional spending, or spending cuts, in other services will impact monthly ED attendances. Using the model to determine how spending on one service impacts other services would allow for both cost and service capacity to be optimised across a region. The Population Health model can be used by policy makers to understand how health interventions might impact ED attendances. Working alongside service planners, the value of an intervention could be assessed through its impact on both population health and reduction in cost for the local health service.
To our knowledge this is the first model that combines measures of wider urgent care service capacity and population health for forecasting long-term demand on ED departments. We demonstrated that 79% of the variance in monthly ED attendances can be explained using only 8 variables obtained from publicly available data. Using the MGSR to forecast mean monthly ED attendances for 74 CCGs in the UK, we found that improving population health would have the largest impact. Our model can be used by strategic planners and policy makers to measure the impact of future changes or interventions on safety and quality of services.
Availability of data and materials
The data generated and analysed during the study are available on GitHub: https://github.com/CharlotteJames/ed-forecast/tree/main/data.
Multi-granular stacked regression
Mean absolute Percentage Error
Auto-regressive integrated moving average
Clinical Commissioning Group
Office for National Statistics
Ordinary Least Squares
Integrated Care Board
Lower Super Output Area
Integrated Care system
The Kings Fund. What’s going on with A & E waiting times? 2022. https://www.kingsfund.org.uk/projects/urgent-emergency-care/urgent-and-emergency-care-mythbusters. Accessed 18 Aug 2022.
House of Commons Library, Key Statistics NHS. England, February 2020. 2020. https://researchbriefings.files.parliament.uk/documents/CBP-7281/CBP07281-feb2020.pdf. Accessed 18 Aug 2022.
Turner J, Knowles E, Simpson R, Sampson F, Dixon S, Long J, Bell-Gorrod H, Jacques R, Coster J, Yang H, Nicholl J. Impact of NHS 111 online on the NHS 111 telephone service and urgent care system: a mixed-methods study. Health Serv Deliv Res. 2021;9(21):1–48.
Cheng Q, Argon NT, Evans CS, Liu Y, Platts-Mills TF, Ziya S. Forecasting emergency department hourly occupancy using time series analysis. Am J Emerg Med. 2021;48:177–82.
Zhang Y, Zhang J, Tao M, Shu J, Zhu D. Forecasting patient arrivals at emergency department using calendar and meteorological information. Appl Intell (Dordr). 2022. https://doi.org/10.1007/s10489-021-03085-9.
Boyle J, Jessup M, Crilly J, Green D, Lind J, Wallis M, et al. Predicting emergency department admissions. Emerg Med J. 2012;29(5):358–65.
Ordu M, Demir E, Tofallis C. A comprehensive modelling framework to forecast the demand for all hospital services. Int J Health Plan Manag. 2019. https://doi.org/10.1002/hpm.2771.
Jones SS, Thomas A, Evans RS, Welch SJ, Haug PJ, Snow GL. Forecasting daily patient volumes in the emergency department. Acad Emerg Med. 2008;15(2):159–70.
Tideman S, Santillana M, Bickel J, Reis B. Internet search query data improve forecasts of daily emergency department volume. J Am Med Inform Assoc. 2019;26(12):1574–83.
Vollmer MAC, Glampson B, Mellan T, Mishra S, Mercuri L, Costello C, et al. A unified machine learning approach to time series forecasting applied to demand at emergency departments. BMC Emerg Med. 2021;21(1):9.
Champion R, Kinsman LD, Lee GA, Masman KA, May EA, Mills TM, et al. Forecasting emergency department presentations. Aust Health Rev. 2007;31(1):83–90.
Jilani T, Housley G, Figueredo G, Tang PS, Hatton J, Shaw D. Short and long term predictions of Hospital emergency department attendances. Int J Med Inform. 2019;129:167–74.
Zhou L, Zhao P, Wu D, Cheng C, Huang H. Time series model for forecasting the number of new admission inpatients. BMC Med Inform Decis Mak. 2018;15(1):39.
Sudarshan VK, Brabrand M, Range TM, Wiil UK. Performance evaluation of Emergency Department patient arrivals forecasting models by including meteorological and calendar information: a comparative study. Comput Biol Med. 2021;135:104541.
Scantlebury R, Rowlands G, Durbaba S, Schofield P, Sidhu K, Ashworth M. Socioeconomic deprivation and accident and emergency attendances: cross-sectional analysis of general practices in England. Br J Gen Pract. 2015;65(639):e649–54.
Tuominen J, Lomio F, Oksala N, Palomäki A, Peltonen J, Huttunen H, Roine A. Forecasting daily emergency department arrivals using high-dimensional multivariate data: a feature selection approach. BMC Med Inform Decis Mak. 2022;22(1):1–2.
Giebel C, McIntyre JC, Daras K, Gabbay M, Downing J, Pirmohamed M, et al. What are the social predictors of accident and emergency attendance in disadvantaged neighbourhoods? Results from a cross-sectional household health survey in the north west of England. BMJ Open. 2019;9(1):e022820.
Hull SA, Homer K, Boomla K, Robson J, Ashworth M. Population and patient factors affecting emergency department attendance in London: retrospective cohort analysis of linked primary and secondary care records. Br J Gen Pract. 2018;68(668):e157-67.
Pedrycz W. Granular computing: an introduction. In: Proceedings joint 9th IFSA world congress and 20th NAFIPS international conference (Cat. No. 01TH8569) 25 Jul 2001 (Vol. 3, pp. 1349–1354). IEEE.
Kumar N, Baghel BK. Smart stacking of deep learning models for granular joint intent-slot extraction for multi-intent SLU. IEEE Access. 2021;9:97582–90.
Jin J, Zhao Y, Cui R. Research on multi-granularity ensemble learning based on Korean. In: The 2nd international conference on computing and data science, 28 Jan 2021 (pp. 1–6).
Zhao Q, Lyu S, Li Y, Ma Y, Chen L. MGML: multi-granularity multi-level feature ensemble network for remote sensing scene classification. IEEE Trans Neural Netw Learning Syst. 2021. https://doi.org/10.1109/TNNLS.2021.3106391.
Deng W, Wang G, Zhang X, Xu J, Li G. A multi-granularity combined prediction model based on fuzzy trend forecasting and particle swarm techniques. Neurocomputing. 2016;173:1671–82.
Wang J, Zhou H, Hong T, Li X, Wang S. A multi-granularity heterogeneous combination approach to crude oil price forecasting. Energy Econom. 2020;91:104790.
NHS England. A&E Attendances and Emergency Admissions. 2018–2019. https://www.england.nhs.uk/statistics/statistical-work-areas/ae-waiting-times-and-activity/. Accessed 18 Aug 2022.
NHS Digital. Appointments in General Practice. 2018–2019. https://digital.nhs.uk/data-and-information/publications/statistical/appointments-in-general-practice. Accessed 18 Aug 2022.
NHS England. NHS 111 Minimum Dataset. 2018–2019. https://www.england.nhs.uk/statistics/statistical-work-areas/iucadc-new-from-april-2021/nhs-111-minimum-data-set. Accessed 18 Aug 2022.
NHS England, Ambulance Quality I. 2018–2019. https://www.england.nhs.uk/statistics/statistical-work-areas/ambulance-quality-indicators. Accessed 18 Aug 2022.
Office for National Statistics. Clinical Commissioning Group Mid-year Population Estimates. 2018. https://www.ons.gov.uk/peoplepopulationandcommunity/populationandmigration/populationestimates/datasets/clinicalcommissioninggroupmidyearpopulationestimates. Accessed 18 Aug 2022.
Office for National Statistics. Developing the Health Index for England. 2020. https://www.ons.gov.uk/peoplepopulationandcommunity/healthandsocialcare/healthandwellbeing/articles/developingthehealthindexforengland/2015to2018. Accessed 18 Aug 2022.
Office for National Statistics. Health, Index Scores E. 2022 https://www.ons.gov.uk/peoplepopulationandcommunity/healthandsocialcare/healthandwellbeing/datasets/healthindexscoresengland. Accessed 18 Aug 2022.
Breiman L. Random forests. Mach Learn. 2001;45(1):5–32.
Pedregosa F, Varoquaux G, Gramfort A, Michel V, Thirion B, Grisel O, Blondel M, Prettenhofer P, Weiss R, Dubourg V, Vanderplas J. Scikit-learn: machine learning in Python. J Mach Learn Res. 2011;12:2825–30.
James C, Forecasting Long Term Emergency Department Demand. 2022. https://charlottejames.github.io/ed-forecast/ doi: https://doi.org/10.5281/zenodo.6856992. Accessed 18 Aug 2022.
Hastie T, Tibshirani R, Friedman JH, Friedman JH. The elements of statistical learning: data mining, inference, and prediction. New York: Springer; 2009.
Jiang S, Liu Q, Ding B. A systematic review of the modelling of patient arrivals in emergency departments. Quant Imaging Med Surg. 2022. https://doi.org/10.21037/qims-22-268.
NHS England. Allocation of Resources 2022/23. 2022. https://www.england.nhs.uk/wp-content/uploads/2022/04/integrated-care-board-allocation-core-services.xlsx. Accessed 18 Aug 2022.
This study was supported by the National Institute for Health and Care Bristol Biomedical Research Centre. The views expressed are those of the authors and not necessarily those of the NIHR or the Department of Health and Social Care.
CJ and RD are funded by NIHR Bristol BRC (BRC_1215_20011). CJ is funded by NIHR Research Capability Funding (RCF 21/22 − 4.2). RD is funded by HDR UK South West CFC0129.
Ethics approval and consent to participate
Consent for publication
All authors declare no competing interests.
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated in a credit line to the data.
About this article
Cite this article
James, C., Wood, R. & Denholm, R. A multi-granular stacked regression for forecasting long-term demand in Emergency Departments. BMC Med Inform Decis Mak 23, 29 (2023). https://doi.org/10.1186/s12911-023-02109-3
- Machine learning
- Emergency Department
- Population Health
- Service demand