- Research article
- Open Access
Prediction of hospital bed capacity during the COVID− 19 pandemic
BMC Health Services Research volume 21, Article number: 468 (2021)
Prediction of the necessary capacity of beds by ward type (e.g. ICU) is essential for planning purposes during epidemics, such as the COVID− 19 pandemic. The COVID− 19 taskforce within the Ghent University hospital made use of ten-day forecasts on the required number of beds for COVID− 19 patients across different wards.
The planning tool combined a Poisson model for the number of newly admitted patients on each day with a multistate model for the transitions of admitted patients to the different wards, discharge or death. These models were used to simulate the required capacity of beds by ward type over the next 10 days, along with worst-case and best-case bounds.
Overall, the models resulted in good predictions of the required number of beds across different hospital wards. Short-term predictions were especially accurate as these are less sensitive to sudden changes in number of beds on a given ward (e.g. due to referrals). Code snippets and details on the set-up are provided to guide the reader to apply the planning tool on one’s own hospital data.
We were able to achieve a fast setup of a planning tool useful within the COVID− 19 pandemic, with a fair prediction on the needed capacity by ward type. This methodology can also be applied for other epidemics.
The enormous impact of the COVID− 19 pandemic has surprised many hospitals beginning March 2020. It soon became apparent that the capacity of hospital beds was at the verge of coming under great pressure. Besides a shift of regular beds to specific COVID-19 beds with special hygiene measures, pressure on the number of beds arose primarily from the need to foresee sufficient capacity in the Intensive Care Unit (ICU). Indeed, while approximately 9 to 11% of admitted COVID-19 patients were in need of advanced life-supporting measures , ICU capacity was limited in terms of the number of beds, but also the number of monitoring devices, life supporting machines and specific trained personnel to provide high quality of care. In the Belgian situation, which we will consider, the number of ICU beds is on average 15.9 per 100.000 inhabitants; it is less favourable in the rest of Europe, numbering 11.5 per 100.000 inhabitants . For healthcare systems, and hospitals within these systems, organizational preparedness and capacity planning was thus essential . In Belgium, for instance, a Surge Capacity Plan  has been set up to monitor the number of occupied ICU beds and to create extra ICU beds where needed. In cases of (near) saturation, contact had to be made with the local health inspector. Moreover, so long as saturation was threatened at the national level, a certain percentage of the beds needed to be allocated and foreseen for potential COVID-19 patients (described in different phases by the government). To attain the required capacity, patients in burn units were centralized at the national level.
Hospital capacity planning is driven by complex dynamics between input, output and the number of available beds [5, 6]. In normal times, hospitals aim to achieve an optimal bed occupancy by maximizing bed occupancy while minimizing overflow, which often has a negative effect on patient outcomes . However, pandemics and natural disasters typically come with a sudden influx of unforeseen patients, which almost instantly pushes the boundaries of a hospital’s capacity . Frontline health care workers, directly engaged in the diagnosis, treatment, and care for patients with COVID-19, are susceptible to experience psychological burden in return, while also being at greater health risks . Lack of bed capacity, scarcity in supplies and high occupancy rates further increases that burden.
In order to prevent such overflow, healthcare systems can take several measures. In China, new hospitals have been built , which immediately increased capacity via a larger number of available beds. However, most European countries underestimated the pandemic potential and virulence, and as such did not take such actions. In most countries, the influx in hospitals was instead reduced by means of a nationwide quarantine, measures of social distancing, hand washing, school closures, mouth mask or other activities . Such measures successfully flattened the curve, decreasing the influx and therefore putting less stress on hospital capacity.
However, successfully flattening the curve means extending the duration of the pandemic, making it impossible to further postpone regular care . A fragile equilibrium needs to be found between reserving a sufficient number of beds for COVID-19 cases, while also providing sufficient beds for regular, necessary care which cannot be delayed. In order to achieve such balance, predictive models can play an important role, not only to predict the number of needed beds that should be allocated to the pandemic, but also to inform the hospital on providing the right equipment and training sufficient healthcare workers for specific cases .
The ability to predict hospital bed capacity for different types of wards is essential for monitoring and planning purposes during epidemics, such as the ongoing COVID-19 pandemic. At the start of the pandemic, the available models were scarce. Most efforts then focused on susceptible-infected-removed (SIR) models, and variations thereof, aimed at predicting the number of positive COVID-19 cases at a national level (e.g. [13, 14]). While these provide valuable insights into the dynamics of future disease spreading in a population, we could not readily make use of those for hospital planning because they demand input on parameters, such as doubling times and social distancing measures, that were not available for our local setting at that time. Moreover, they are not designed to give detailed predictions for a specific hospital, organized by type of ward. A further limitation is that standard SIR models not accounting for cohort structure underestimate the peak of COVID-19 infectious cases and their timing . General purpose simulation toolboxes, such as the (free) web application corona.simbox.ai, predict capacity building on observed trends in the number of new cases and the expected length of hospital stay observed in specific countries (data from https://www.worldometers.info/coronavirus/). While potentially more directly useful, their generic nature has the disadvantage of providing capacity predictions that are not well aligned with the regional variation in the severity of the epidemic, local treatment, triage and hospital management policies. Within the Ghent University Hospital, we have therefore set up a planning tool to predict on each day the needed capacity of different bed types over the subsequent ten-day period. Based on the tool’s predictions, the required human capacity (i.e. healthcare workers) can be assessed and the needed material can be stocked. Such capacity planning forms an essential primordial step in preparing a hospital. In particular, we will develop a data-driven prediction algorithm which makes use of daily updated hospital records to make predictions on each day, of the number of new cases that can be expected over the next 10 subsequent days, as well as how admitted cases are expected to transition during this period between different wards, as well as to discharge or death. The proposed algorithm makes use of Poisson models with smoothing splines to model the evolution in the number of new cases over time, along with multistate models  to describe patient transitions between multiple states (namely, wards, discharge or death). These fitted models, which are daily updated, are then used to simulate the capacity needed over the subsequent 10 days.
The data includes all patients admitted to the University Hospital Ghent and labelled as COVID-19 patient; some of these are transferals from other hospitals. We label a patient as a COVID-19 patient, when a positive PCR test in the lab (internal or external) is present. Some patients in our dataset had already been admitted before obtaining a positive PCR test result (e.g. in the Rehabilitation department). We use data from different time points from one hospital and use as such a longitudinal study design.
The model is trained on all positive COVID-19 patients who were in the University Hospital Ghent before April 20, 2020. We test the model on the patients who were in the hospital between April 20, 2020 and April 27, 2020. This range of dates falls within the peak of the pandemic and refers to one of the first weeks the model was fully operational.
The implementation of the different steps can be found in the Supplementary Appendix, along with code snippets.
We use multistate modelling to model the time for current patients needed to transition to a different ward, as well as to discharge or hospital death. In particular, we model transitions between the wards Non-Covid19, Cohort, ICU Midcare, ICU Standard and ICU Ventilated. Here, Non-Covid19 includes all the wards without positive COVID-19 patients, such as the Emergency Department, but also the wards where non-COVID-19 patients stay during the pandemic. Cohort includes all wards with COVID-19 patients who need standard care. The task force decided to open a specific COVID-19 midcare unit (ICU Midcare), to better guarantee availability of Intensive Care department (ICU) beds for the most severely ill patients with a good chance of ICU survival. The ICU was further divided into unventilated critically ill patients (ICU Standard) and ventilated critically ill patients (ICU Ventilated). We chose to split these two types of ICU wards to enable capacity planning on the required number of ventilators. Our model makes no distinction between discharge or death, as it has no consequences for capacity planning.
Multistate models describe events over the course of time as transitions between multiple states. A first step is to define all possible transitions (Fig. 1, Appendix A1). Patients arrive at Non-Covid19 (e.g. emergency department), from which they can be transferred to Cohort (= all non-ICU wards with COVID-19 patients), ICU Midcare, ICU Standard or ICU Ventilated. Each patient can have multiple transfers between the different wards, terminating in state Discharged, which indicates that the patient either has been discharged or has died.
The considered multistate model places no constraints on the possible transitions that can be made. In particular, the cause-specific hazard of each transition is modelled non-parametrically and estimated using the Aalen-Johansen estimator . This is done under a standard Markovian assumption that the hazard to transition to a given state (e.g. ward), while possibly different depending on the current state in which the patient is present, has no residual dependence on earlier states in which the patient was observed. For instance, the cause-specific hazard to transition to Cohort after having spent 10 days on ventilation is assumed to be the same, regardless of whether the patient was already in the ICU prior to ventilation, versus was directly admitted to ICU Ventilated. To enable a fast implementation and because covariate data of future cases are obviously missing, no covariate adjustment is made in these models.
Simulating transition for patients already present in the hospital
The fitted multistate model was used to simulate on each day of the pandemic, how COVID-19 patients currently present in the hospital are expected to transition to other wards, discharge or death. In particular, for each patient, we calculated their cause-specific hazard to transition to each of the other wards, discharge or death on each of the subsequent 10 days, based on their latest state and the time already spent in that state. Based on these estimated cause-specific hazards, the patient’s possible transitions through the different states were then randomly simulated. Subsequently, the number of occupied beds on each ward was calculated for each of the subsequent 10 days. This process was repeated M times (in our case 500) in order to eliminate simulation error as well as to develop insight into the degree of uncertainty. Simulations were based on the R function mstate::mssample (see Appendix A2.4).
Simulating transitions for new patients
To predict the number of new cases expected over the subsequent 10 day(s), we use additive Poisson modelling. In particular, we model the logarithm of the number of daily new cases using a Poisson model with a penalized regression spline for calendar time. Smoothing parameters are selected based on Mallow’s Cp. All models are fitted in R (version 3.6.1), using the implementation from the mgcv  package for additive Poisson modelling (Appendix A4).
Based on the fitted Poisson model, we next simulate the number of new cases that is expected to arrive on each of the coming 10 days. For convenience, these patients are assumed to enter the Non-Covid19 ward (such as ER) (R package mgcv::gam), with their time set to zero. Next, the fitted multistate model is used to simulate how new cases will transition to different wards, discharge or death over the coming 10 days. Also this entire simulation process was repeated five hundred times. In doing so, we accounted for the fact that e.g. for a patient who was simulated to be newly admitted on day eight, we only need to simulate his/her transitions for the subsequent two days (see Table 1).
The total number of occupied beds across existing and new patients was calculated for each of the subsequent 10 days in each of the M simulation runs. The obtained results were averaged across the M simulation runs to eliminate simulation error. In addition, to summarize the uncertainty in the possible capacity needed on each day, we report a best case scenario (corresponding to the 5% percentile of the needed capacity) and a worst scenario (corresponding to the 95% percentile of the needed capacity).
To assess the degree of inaccuracy in the results stemming from the limited number of simulation runs, we calculated Monte Carlo simulation error. For the mean scenario, this is given by the standard error of the mean (defined as the standard deviation of the capacity across the M simulations, divided by the square root of the number of simulations). For the two percentiles, we report the standard error calculated using Nyblom’s interpolated order statistic approach  (available from the R package quantileCI::quantile_confint_nyblom) (Appendix A3).
To validate the model we compare the bed occupancy predicted on April 20, 2020 and April 27, 2020, which corresponds with the first peak of the pandemic, with the actual values. We also evaluate one-day-ahead predictions in the period in between these two dates. This means that for every day a new prediction is made for just the next day, e.g. on April 23, 2020 the prediction is made for April 24, 2020 and on April 24, 2020 the prediction is made for April 25, 2020.
We use and apply this approach on data from the Ghent University hospital during the COVID-19 pandemic. On April 20, 2020 this dataset consists of 203 different people in hospital, while on April 27, 2020 222 admissions are included. More males than females are admitted with an average age of sixty (Table 2). At the two selected time points, a large fraction of all patients (29–24%) is still in hospital.
We estimate the overall transition probabilities (using the mstate::probtrans function) from the multistate model (fit with mstate::msfit) (Appendix A1). In Fig. 2 we can see the overall transition probabilities for the ward in which we wish to predict the number of patients by day, which express what percentage of patients is expected in each state in function of the number of days since admission. It shows a majority of patients in Cohort, and moreover indicates long length of stay on ICU Ventilated.
Simulating transition for all patients
The results of the Poisson modelling to predict the number of expected patients for the next ten days is given in Fig. 3. We show the actual numbers in dark bars and the predicted number of new patients in lighter boxplots. For interpretation of the boxplots we refer to Appendix A5.
The results of the simulations are visualized in bar charts and in a table with the absolute numbers of patients. The bar chart (Fig. 4) shows the trends as well as the difference between actual and predicted number of patients; the table (Table 3) holds the absolute numbers which are of interest to stakeholders. The graph and table also display simulation error, which is small, indicating that 500 simulation runs suffice. As expected from the transition probabilities, the largest proportion of patients is expected to stay in Cohort. This number first increases, as this is where new patients arrive before possible transfer to other wards. We observe a similar effect on ICU Midcare, where transfers from Cohort and ICU Ventilated result in an increase of patients on this ward and transfers back or to these same wards for a decrease. The evolution on ICU Ventilated is different, with patients tending to have long lengths of stay once admitted. ICU Standard has a very limited number of patients.
To validate our model, we compare the actual and predicted numbers of patients (Table 4).
Where Table 4 shows the prediction for the next 10 days, Table 5 shows the prediction for just the next day. If the actual difference on one day is large, this has a negative effect on the prediction (e.g. April 22, 2020 ICU Midcare). This has no effect on the prediction for the days after, as the actual numbers are included in the dataset. Nevertheless, this does imply that for prediction on multiple days (e.g. 10 days as in Table 4) will results in an unexpected change that will be lower or higher than expected.
The large difference on April 28, 2020 in ICU Ventilated is caused by a sudden two deaths and three transfers.
In this paper, we have proposed an algorithm that can be used for capacity planning during an epidemic, along with software code. We are not aware of similar data driven approaches that fully rely on one’s own hospital health records.
We have found the proposed approach to be fairly reliable in predicting the required capacity within Ghent University hospital, except at the start of the pandemic where the number of data is still too limited to enable reliable prediction, and where the organization may not be in a sufficiently stable situation to enable extrapolation to the future. For this, it can be useful to borrow strength by combining data across multiple regional hospitals. Also, it can be used in a second wave, using the parameters from the first wave. This would then become more specific for the institution, as physicians and treatment protocols differ among the different institutions.
While using this tool during the COVID-19 pandemic, we have found the number of patients on ICU Midcare to be the hardest to predict (Table 5), where we observe between − 3 and + 5 deviation between the actual and predicted numbers. The reason is that this ward receives input and output from Cohort as from ICU Standard/ICU Ventilated, making the numbers of patients on this ward very sensitive to human decisions made on these other wards, and possibly even the insight of a single physician. Our results, including the ones reported in this paper (and used by the task force of the Ghent University hospital), are based on predictions made on Mondays. These are subject to a possible weekend effect, as decisions on opening/closing/changing wards were usually made just prior to the weekend and this could influence the results. These decisions mainly related to shifting or changing ICU Midcare, adding to the difficulty of predicting the capacity on ICU Midcare on Mondays.
A further limitation of our proposal is that the Poisson model may need some time to pick up sudden increases or drops in the expected number of new cases, e.g. due to a relaxation of lockdown regulations. The use of smoothing splines allows sufficient flexibility to pick up such effects, but some time is needed for this to be picked up in a reliable way.
The proposed approach is simulation-based, which is useful to develop insight into random fluctuations that may occur in the required capacity. The calculated Monte Carlo simulation error suggested 500 simulations to suffice in order to dampen simulation error. Model validation was based on an independent dataset as the predictions were evaluated on future data not known upfront or used within the training set data.
Our reported best- and worst-case scenario ignore the excess variability that may arise from the fact that the Poisson and multistate models were themselves fitted on limited data and are thus subject to imprecision, making the reported intervals somewhat optimistic. Acknowledging this excess variability is non-trivial, and beyond the scope of this work.
The proposed approach is transposable to any other epidemic or very specific pathology/disease for which one is interested to know the required number of beds for specific wards and with a specific flow. As most administrative systems will have at least one row for every transfer for all patients, these can be bundled and as such used in the same approach as described. The extent of data manipulation should not be underestimated as each system has its own layout / structured and is difficult to generalize internationally (in Belgium most hospitals have one of the larger software vendors to capture this administrative data). We presume that this step will take most of the time to set up the model for the planning tool. The need for an accurate planning tool is high, as a lack of equipment to apply oxygen related therapies, such as invasive mechanical ventilation, increases mortality , and so does an overflow on ICU beds . An optimal organization within the hospitals is therefore needed, and we believe that prediction strategies as discussed in this paper can be helpful to obtain this objective.
The prediction accuracy of our model can in principle be further improved by making use of patient characteristics, such as age and gender, when modelling transitions between wards. We have chosen not to do this in view of the additional cost of data manipulation, the risk of model misspecification when Cox proportional hazards models are used for the cause-specific transition hazards, and the fact that such patient characteristics are unknown for future patients.
The proposed algorithm can be quickly setup and is an added value during the COVID-19 pandemic to predict the needed capacity within the hospital by ward type.
Availability of data and materials
The data (csv file) that support the findings of this study are available from https://github.com/descheppermieke/Prediction-of-hospital-bed-capacity-during-the-COVID-19-pandemic.
Intensive Care Unit
Polymerase chain reaction
Remuzzi A, Remuzzi G. COVID-19 and Italy: what next? Lancet. 2020;395(10231):1225–8. https://doi.org/10.1016/S0140-6736(20)30627-9.
Rhodes A, Ferdinande P, Flaatten H, Guidet B, Metnitz PG, Moreno RP. The variability of critical care bed numbers in Europe. Intensive Care Med. 2012;38(10):1647–53. https://doi.org/10.1007/s00134-012-2627-8.
Leung K, Wu JT, Liu D, Leung GM. First-wave COVID-19 transmissibility and severity in China outside Hubei after control measures, and second-wave scenario planning: a modelling impact assessment. Lancet. 2020;395(10233):1382–93. https://doi.org/10.1016/S0140-6736(20)30746-7.
Van de Voorde C, Lefèvre M, Mistiaen P, Detollenaere J, Kohn L, Van den Heede K. Assessing the management of hospital surge capacity in the first wave of the COVID-19 pandemic in Belgium. In: KCE reports. Brussels: Belgian Health Care Knowledge Centre (KCE); 2020.
Kuntz L, Scholtes S, Vera A. Incorporating efficiency in hospital-capacity planning in Germany. Eur J Health Econ. 2007;8(3):213–23. https://doi.org/10.1007/s10198-006-0021-6.
Yi P, George SK, Paul JA, Lin L. Hospital capacity planning for disaster emergency management. Socio Econ Plan Sci. 2010;44(3):151–60. https://doi.org/10.1016/j.seps.2009.11.002.
Litvak N, van Rijsbergen M, Boucherie RJ, van Houdenhoven M. Managing the overflow of intensive care patients. Eur J Oper Res. 2008;185(3):998–1010. https://doi.org/10.1016/j.ejor.2006.08.021.
Ettelt S, Nolte E, Thomson S, Mays N. Capacity planning in health care: reviewing the international experience. Euro Observer. 2008;9(1):1–5.
Lai J, Ma S, Wang Y, Cai Z, Hu J, Wei N, et al. Factors associated with mental health outcomes among health care workers exposed to coronavirus disease 2019; 2020. p. 2574–3805. (Electronic))
Liang T. Handbook of COVID-19 prevention and treatment; 2020.
Rothstein MA. Flattening the curve, then what? In: Hastings bioethics forum; 2020.
Jansson M, Liao X, Rello J. Strengthening ICU health security for a coronavirus epidemic. Intens Crit Care Nurs. 2020;57:102812. https://doi.org/10.1016/j.iccn.2020.102812.
Abrams S, Wambua J, Santermans E, Willem L, Kuylen E, Coletti P, et al. Modeling the early phase of the Belgian COVID-19 epidemic using a stochastic compartmental model and studying its implied future trajectories. medRxiv. 2021;35:100449. https://doi.org/10.1016/j.epidem.2021.100449.
Weissman GE, Crane-Droesch A, Chivers C, Luong T, Hanish A, Levy MZ, et al. Locally informed simulation to predict hospital capacity needs during the COVID-19 pandemic. Ann Intern Med. 2020;173(1):21.
Stern RH. Locally informed simulation to predict hospital capacity needs during the COVID-19 pandemic. Ann Intern Med. 2020;173(8):679–80. https://doi.org/10.7326/L20-1061.
Fiocco M, Putter H, van Houwelingen HC. Reduced-rank proportional hazards regression and simulation-based prediction for multi-state models. Stat Med. 2008;27(21):4340–58. https://doi.org/10.1002/sim.3305.
Ferguson N, Datta S, Brock G. msSurv: an R package for nonparametric estimation of multistate models. J Stat Softw. 2012;50(14):24. https://doi.org/10.1863/jss.v050.i14.
de Wreede LC, Fiocco M. Putter H: mstate: an R package for the analysis of competing risks and multi-state models. J Stat Softw. 2011;38(7):1–30.
Wood S. Generalized additive models. 2nd ed. New York: Chapman and Hall/CRC; 2017. https://doi.org/10.1201/9781315370279.
Nyblom J. Note on interpolated order-STATISTICS. Stat Probability Lett. 1992;14(2):129–31. https://doi.org/10.1016/0167-7152(92)90076-H.
Vincent JL, Taccone FS. Understanding pathways to death in patients with COVID-19. Lancet Respir Med. 2020:2213–619 (Electronic)).
Taccone FS, Vangoethem N, Depauw R, Wittebole X, Blot K, Vanoyen H, et al. The role of organizational characteristics on the outcome of COVID-19 patients admitted to the ICU in Belgium. Lancet Regional Health - Europe. 2021;2:100019. https://doi.org/10.1016/j.lanepe.2020.100019.
Ethics approval and consent to participate
The study was approved by the ethics committee at Ghent University Hospital (Belgian registration no. B6702020000164).
A separate informed consent was not obtained from all participants: The required data only includes the admission and discharge date per type of nursing unit (Cohort, Midcare, ICU), the length of stay, death and whether the patient has been ventilated. The data is linked in advance by an internal employee according to the principles of a Trust Party, whereby all possible identifiable data is removed or anonymised before it is delivered to the researcher. The analyzes are performed retrospectively on day − 1.
The authors declare no potential conflicts of interest with respect to the research, authorship, and/or publication of this article. All authors have confirmed their approval for submission of the manuscript. We confirm that the content of the manuscript has not been published, or submitted for publication elsewhere.
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
About this article
Cite this article
Deschepper, M., Eeckloo, K., Malfait, S. et al. Prediction of hospital bed capacity during the COVID− 19 pandemic. BMC Health Serv Res 21, 468 (2021). https://doi.org/10.1186/s12913-021-06492-3
- COVID− 19
- Multistate modeling
- Poisson modelling
- Hospital data