 Research article
 Open access
 Published:
Recursive neural networks in hospital bed occupancy forecasting
BMC Medical Informatics and Decision Making volume 19, Article number: 39 (2019)
Abstract
Background
Efficient planning of hospital bed usage is a necessary condition to minimize the hospital costs. In the presented work we deal with the problem of occupancy forecasting in the scale of several months, with a focus on personnel’s holiday planning.
Methods
We construct a model based on a set of recursive neural networks, which performs an occupancy prediction using historical admission and release data combined with external factors such as public and school holidays. The model requires no personal information on patients or staff. It is optimized for a 60 days forecast during the summer season (May–September).
Results
An average mean absolute percentage error (MAPE) of 6.24% was computed on 8 validation sets.
Conclusions
The proposed machine learning model has shown to be competitive to standard timeseries forecasting models and can be recommended for incorporation in mediumsize hospitals automatized scheduling and decision making.
Background
The main reason for hospital occupancy forecasting is the widely understood need for optimization of resources in a more and more competitive medical field [1, 2]. The better predictions we can make, the more efficiently we can plan ahead, and as a result, resource use is optimized and, better care can be provided to the patients [3,4,5].
Hospital bed occupancy forecasting is a topic with multiple scales and perspectives. For example, a problem of optimizing national plans regarding hospital infrastructure means large spatial scale combined with large temporal scale. At a medium scale, hospital staffing and vacations needs to be planned weeks or months in advance to allow a continuous operation with respect to seasonal fluctuations of patients. Alternatively, we can also pose questions about a particular department of a local hospital in an hourly time perspective, for example, to optimize shortterm planning in emergency or intensive care units (ICU). Depending on the specific situation and the problem formulation, the choice of methods can vary significantly.
Recent literature has been primarily focused on building mathematical forecasting models for ICUs, as the risks of workflow interruptions are particularly high and the time scale is very small, possibly of the order of minutes [6,7,8,9]. On the other hand, the large scale of economic costs encourages hospital occupancy forecasting for medium to longterm planning, that is, in the order of weeks, months or years [10,11,12,13,14].
In this manuscript, we take a look on the medium time scale forecasting of bed occupancy (order of months) for medium scale hospitals (250–500 beds). The data resolution taken into account is 1 day and time periodicity (weekly, seasonally, yearly fluctuations) is assumed to play a key role in the model. Forecasting of occupancy and thereby resource utilization in a medium time scale allows for better allocation of personnel, especially during public or school holidays, or other periods of interest.
There is relatively little information about existing solutions to similarly formulated problems. In Mackay et al. one may find a broad overview of existing models of hospital forecasting from very simple to more modern and complex [15]. Many of these models are using estimates of the length of stay (LOS) [16, 17]. Here however, we are presenting more direct time series  based approach, which requires only historic admission and releases data and no personal patient information.
One of the first applications of time series methods to the hospital bed occupancy problem was a work by Farmer et al. [10], who suggested a stochastic approach and used autoregressive integrated moving average (ARIMA) modelling with BoxJenkins methodology [18]. This class of models has a long history of business applications, such as stock market simulations [19], and a solid mathematical background [20].
In the recent decades, datadriven approaches and machine learning proved their efficiency for forecasting tasks [21,22,23]. However, only limited progress was made in applying these methods to hospital bed occupancy forecasting. Length of stay (LOS) [16, 24,25,26,27], discharge [28] and readmission [29] forecasting models based on machine learning have been developed. Joy and Jones [30] proposed a combination of ARIMA with artificial neural networks (ANN) to model time series bed occupancy data. However, the ANN part is responsible only for residual estimations.
To our best knowledge, by the time of submitting this paper, no scientific work describing machine learning framework as a main forecasting model for time series data on bed occupancy is currently available.
The primary goal of this paper is to develop a computational model, which uses historic data on daily admissions and releases, combined with external, publicly available supporting data to return a forecast for an upcoming period. We explore the advantages of recurrent neural networks and show that they can be successfully used for medium term hospital bed occupancy forecasting.
Methods
The aim of this work is the forecasting of hospital bed occupancy. Therefore, a predictive model based on recurrent neural networks has been developed. The focus of optimization was set on the scheduling of medical personnel within seasonal demand fluctuations. In the use case upon which the model is based, a number of clinics share their bed pool in units of 30 beds. Units can be closed or opened based on current occupancy. Each unit requires individual personnel. Therefore, in practice, the ultimate target for forecasting is a correct estimation of the number of units needed at any point in time.
The requirement imposed by hospital management representatives was a sound prediction of bed occupancy for 60 days starting on the first day of the main holiday season months: May, June, July and August.
Dataset
Our work is based on the hospital records of a medium size German hospital (approx. 400 beds) in the period from October 14th 2002 to December 31st 2015 (4827 days). Each record consists of a patient identifier, time of admission and discharge, and the name of the clinic the patient was admitted to. No personal information on the patients or staff was provided. A total number of 353,520 records were available. A list of clinics sharing their bed pool is provided separately.
Curation, preprocessing and supporting data
Data preparation is performed in 5 steps: (1) curation by removal of missing values, (2) curation by removal of nonnecessary data, (3) data transformation, (4) addition of supporting data, and (5) separation of training, testing and evaluation data.
Data curation
In step 1 (removal of missing values), entries with missing data are deleted from the records (i.e., missing date or patient number). These entries correspond to about 2% of the overall data, so the removal will not essentially affect the model. Next, removal of nonnecessary data (step 2), the data from clinics not taking part in the bed pool is removed (i.e., ICUs or specialty clinics not in the shared bed pool). These entries correspond to about 50% of the overall data.
Data transformation
Step 3 is needed, since the original data does not directly contain information on the bed occupancy, that is, the number of beds occupied per day. Instead, it contains admission and discharge times for individual patients. In order to construct a time series of daily occupancy, the number of occupied beds in the first day is required. As this number is not available, we assume it to be zero. To compensate for the error, we remove the first 168 entries of the time series data (or, equivalently, remove the data in the period before April 1st 2003, or 168 days). Since we only take full records into account, each patient included in the construction of the time series has an admission and discharge date assigned. Therefore, the patients admitted before 14 October 2002 are not included in the time series but their number becomes neglectable by the chosen date of 1 April 2003 (Fig. 1). The final result of this step is a univariate time series of bed occupancy corresponding to the period 1 April 2003 to 31 December 2015 in the form of a vector with the length of 4657 days.
Supporting data
Next, addition of supporting data (step 4) was performed. After an analysis with the hospital managers, the following supporting data vectors were added to the model, as they are likely to influence the bed occupancy:

Day of the week. The day of the week is encoded as numbers from 1 to 7 corresponding to the days from Monday to Sunday. This variable facilitates the modeling of the weekly periodicity.

Day of the year. A day of the year is encoded as numbers from 1 to 365/366 corresponding to the period from January 1st to December 31st. The variable reflects the time of year.

Public holidays. The binary vector indicates whether a given date is a public holiday (binary “yes”) or not (binary “no”). Since the hospital is located on the border of three German federal states and some of the holidays in Germany are statespecific, we added one vector for each state.

School holidays. The school holidays are encoded in the same way as the public holidays with three different vectors for the three states.
The holiday data was extracted from the website of the Standing Conference of the Ministers of Education and Cultural Affairs (Kultusministerkonferenz), the organization publishing the school holidays in Germany [31].
The supporting data (day of the week, day of the year, national and school holidays, prospective and retrospective information) is formatted to form multivariate time series, aligned with the bed occupancy univariate time series. It is arranged in a matrix with 9 rows and 4657 columns, corresponding to the days in the period from April 1st 2003 to December 31st 2015 (Fig. 2).
The final data set to build the model consists of bed occupancy and supporting data describing external conditions. Please note that the supporting data can be assessed for future time intervals during forecasting, while the bed occupancy data can be only known for the past.
Separation of training, testing and evaluation data
The cleaned data is divided into two parts. The first part (training and testing data) covers the period from April 1st 2003 until December 31st 2013. This part is used for tuning the model parameters. The second part (1 January 2014 to 31 December 2015) is used exclusively for model validation (evaluation data) and is used only once for validation of the prediction quality on unseen/new data.
The training and testing data are split into separate folds for training and testing sets. Each of the months May to August for the years 2009 until 2013 are used for a testprediction during parameter optimization (20 test cases total) and for each test case, the period of 1 to 5 years prior to this time point is used as training data.
NARX model
While still rarely referred to in the healthcare management forecasting context, machine learning methods such as Artificial Neural Networks, Decision Trees, or Support Vector Machines were successfully used in engineering and business applications (see [21] for an overview).
Moreover, multiple publications provide comparisons between stochastic models (autoregressivemovingaverage (ARMA), autoregressive integrated moving average (ARIMA), seasonal ARIMA (SARIMA), generalized autoregressive conditional heteroscedasticity (GARCH) and a special type of a recurrent Artificial Neural Network: nonlinear autoregressive model with exogenous terms (NARX) [32].
While it is difficult to make generalizations, comparisons based on specific data, such as chaotic laser time series [33], wind speed [34] or refrigeration compressors production [35] tend to agree that NARX are superior to stochastic methods, particularly for multistep forecasting [33].
The NARX model assumes that the value of the prediction variable (bed occupancy in our case, denoted by y) at time t is dependent on the local historical values of this variable (last d_{y} measurements) as well as on the local values of the external variable (in our case, 8dimensional variable of supporting values, denoted by u on a time interval covering the last d_{u} measurements:
The length of the “memory” parameters d_{y} and d_{u} influences the complexity of the model and the computing time. For simplification we assume, that d_{y} = d_{u} = d. We will further refer to the parameter d as “delay”. The value of this local history parameter is chosen during parameter optimization.
Equation (1) describes the essence of the model, which we propose here. Apart from the parameter delay d described above, a number of parameters are needed to specify the function f. Here, function f represents a neural network with hL hidden layers and a fixed number of hN nodes per layer (for simplification). During forecasting, the described neural network becomes a recurrent system, since the output data for y(t) is used as an input for the next steps, thus the name recurrent neural network.
NARX training and testing
In order to structure the modelling process, we define a fourstep training and testing procedure, which is subsequently used to iteratively optimize the model’s parameters and to make a forecast about the future hospital bed occupancy. The overall evaluation of the performance is done afterwards using the evaluation data.
The NARX model uses a socalled open loop during training and a closed loop during testing. This means that during training all information is taken from the feature vector, while during testing, part of the data is fed back from the network to itself (Fig. 3).
As an example, if a history of 1 year and a delay of 2 is used to predict 60 days starting May 1st 2008, the following data would be used. Training data would be the data of the 365 days prior to May 1st 2008, which is May 2nd 2007 (due to leap year) to April 30th 2008. For the prediction of the first day (May 1st 2008), the bed occupancy data of April 29 and April 30 2008 are used as input for the NARX. For the second day (May 2nd 2008), the first prediction (May 1st 2008) and the occupancy at the last day of April is used as input. In the next step, only the newly predicted occupancies are used (closed loop).
Step 1: Fix model parameters
Choose the first day of the 60days long period for a forecast.
In the time series data, it corresponds to a certain natural number t_{0} and t_{0}d must belong to the period included in the dataset. The following parameters need to be fixed for the following training process:

delay d = d_{y} = d_{u} (see eq. (1)): delay of the model. It describes how many days in the past are assumed to influence the day t_{0}.

history k: length of history chosen for the training procedure. In other words, we take a kyear subset of the data into account (e.g., the last year), instead of all previous data.

hL  number of hidden layers.

hN  number of nodes in each hidden layer.
Step 2. Training of the model
To train the NARX model, the data for the individual training cycle needs to be selected (see Fig. 3). The set of data points is prepared as follows: to each date t_{i} ∈ [t_{0}k, t_{0}–1] corresponds the input vector (y(t_{i}d),..,y(t_{i}1), u(t_{i}d),...,u(t_{i})) and the output y(t_{i}). Please note that since t_{0}–1 must belong to the dataset and is the last point of the training data, the values y are known for each item in the training data. The neural network is trained using the backpropagation algorithm.
Step 3. Forecast/testing of the model
The previously trained NARX model is used to forecast a 60 days long time period (t_{0}, t_{0} + 60) (see Fig. 3). This part must be performed recurrently, since, independently of the choice of t_{0}, we assume that the future values (y(t_{0}),...,y(t_{0} + 60)) are unknown. On the other hand, the supporting data u is available at any time step, including future time steps. In the first step of the forecasting we take the input vector (y(t_{0}d),..,y(t_{0}–1), u(t_{0}d),...,u(t_{0})) and receive an output \( \widehat{y} \)(t_{0}), which is used to form the next input vector. After repeating the procedure 60 times, we obtain the 60step forecast (\( \widehat{y} \)(t_{0}),..., \( \widehat{y} \)(t_{0} + 60–1)).
Step 4. Ensure robustness
The backpropagation algorithm for network training used in our work is based on the initial randomization of the NARX model parameters and iteratively optimized during training. Therefore, the predictions can potentially vary substantially. In order to prevent this phenomenon, the randomization seed could be fixed, which would make the results fully reproducible. On the other hand, particular seeds can also produce a very large error.
In order to stabilize the prediction without losing the advantage of the randomization we decided to repeat the steps 2 and 3 multiple times (here 50) and average the results. This linearly increases the computation time, but makes the results more reliable.
Errors
There are various types of ways to evaluate the quality of the prediction. Typically, an error of the forecast is defined as a certain statistic of error vector e_{i} = y(t_{i})\( \widehat{y} \)(t_{i}), t_{i}∈ [t_{0},t_{0} + 60–1], where y denotes an actual value of the bed occupancy variable and \( \widehat{y} \)  the predicted value.
In this work, the following metrics were chosen:

1.
MAX = max( e_{i} , i = 1..60). Maximum error carries the information about the worst prediction within the 60 days forecasting period.

2.
MAE = mean( e_{i} , i = 1..60). Mean absolute error gives an overall picture about the quality of the prediction.

3.
MAPE=100 ∗ mean( e_{i}/y_{i} , i = 1..60). Mean absolute percentage error value shows the averaged error expressed as percentage. Often used in similar problems [11] and thus facilitating the comparison.

4.
RMSE = \( \sqrt{1/n{\sum}_{i=1}^{60}{e_i}^2} \) . Rootmeansquare error. Similarly to MAPE, facilitating the comparison.

5.
GE =\( \mathit{\max}\left( floor\left(\widehat{y}/30+1\right) floor\left(y/30+1\right)\right),i=\mathrm{1..60}\Big) \). This is a problemspecific error. As it was mentioned before, hospital clinics are sharing beds in groups of 30. It is important that during the forecasted period, the number of actually needed groups is as close as possible to the predicted number. Moreover, large differences on just 1 day can be considered as a failure of the forecast even if the prediction is good on average. GE can take natural values, one and zero. This captures the maximum difference between actually needed and predicted units, both too many and too few. Any positive numbers indicates that either one or more units were empty or too few beds were available on at least 1 day during the forecasting period.
Further on we prioritize MAE error for the optimization procedures. The reason is that MAE reflects the overall picture (unlike MAX, which can be drastically influenced by 1 day fluctuations) and is less prone to small changes than GE (problem of the thresholdbased functions where one bed can make a large difference).
In comparison to MAPE and RMSE, MAE has a more intuitive interpretation, while similar in most other characteristics. Later, we will see that despite minor differences, all four types of errors show a consistent picture.
Parameter optimization
In the current model we have the following four degrees of freedom: k, hL, hN, d (see Step 1 and 4 above for the description). While establishing the global optimum in the full parametric space would have very high computational costs, local optima could be found reasonably fast. In order to do so we will make use of the following optimization procedure.

1.
Optimize training data length k and number of hidden nodes hN.

a.
We assume the following values of other parameters: hL = 1and d = 2,. For every pair of parameters hN∈{1,5,10,15,...,40} and k∈ {365,730,1095,1460,1825} (1–5 years) the basic forecasting procedure is applied to the dates 1 {May, June, July, August} 2009–2013.

b.
Five described above types of errors are computed for a given date, value of k and hN.

c.
For fixed pair (k, hN) the errors are averaged along the dates.

d.
Optimal pair (k_0, hN_0) is chosen based on the minimal value of mean average error (MAE).

a.

2.
Optimize number of hidden layers hL.
For (k_0, hN_0) we similarly check the results for different numbers of layers (hL) and fix the optimal value hL_0.

3.
Optimize delay d, the local history used for prediction.
For (k_0, hN_0, hL_0) optimization of the last parameter d is made.
This process is repeated and the prior resulting configuration of the parameters is used as initial parameters for the next iteration until the parameters stabilize and do not change within one iteration anymore. As a result, a local optimum of the parameter settings has been found.
Model evaluation
For the previously chosen optimal parameter set, the basic forecasting procedure is applied to the summer seasons of the years 2014–2015. We perform 60days long prediction for 1st of May, June, July, and August, and compute the five types of errors. Finally, the full yearly prediction starting on 1 January will be performed for the years 2009–2015 to show the model transferability to the different conditions, such as rapid changes related to the major holidays.
Software
MATLAB R2017a (The Mathworks, Natick, MA, USA) was used to perform the computations. The NARX was implemented using the Neural Network Toolbox.
Results
Optimization of the parameters
Best results for a 60 days long prediction period starting on the first days of the summer season months May to August 2009–2013 could be achieved using a training data length of 1 year (k = 365), a delay of 2 days (d = 2) and two hidden layers with two nodes each (Table 1). An MAE of 12.1 beds was calculated. No significant differences were observed between MAE on individual days of the week. Notably, longer history of training data could not achieve a better result (Table 1). A prediction period of 1 year (365 days) resulted in an average MAE of 15.65 (±2.65) (Table 2). When applying the optimal parameters to the summer season months of the evaluation data, an average MAE of 12.51 (±2.54) was achieved (Table 3).
Since the results showed, that only 1 year of history performs best, a natural question is raised: what if we just forecast the same number of beds, which was needed last year on the “same” day? Therefore, a naive approach was implemented that predicts the same amount of beds as 1 year ago. Since the weekday is an important indicator of occupancy (Fig. 4), the bed occupancy from 364 days ago was used instead of 365 days. Thus, the day of the week remains the same. An average MAE of 16.4 (±2.9) was achieved by the naive model, outperforming the NARX only in one of eight predictions (Fig. 5).
To compare our work with the work of Kim et al. [11], the MAPE for a 1 and 30 day prediction period were calculated. For the oneday prediction, all days in the summer period of May to August 2014–2015 were individually predicted. For the 30day prediction, the first 30 days of each of the summer months May to August 2014–2015 were predicted. The MAPE was 4.01% (±3.16) and 5.55% (±1.21) for 1 and 30 day prediction period respectively.
Discussion
It is common to predict bed occupancy with respect to the length of stay (LOS) of a single patient. This is based on various information such as age, gender, medical history or medical tests results [26]. In contrast, hospital bed occupation prediction based on time series as performed in this work does not require any personal information of individual patients, hospital staffing or performed procedures. Thus, it can be considered privacy preserving. Yet, a direct comparison between our approach and prior work is not easily possibly. Additionally, no evaluation database is publicly available; therefore the following comparisons can only be an indication of performance. For a definitive evaluation, all methods should be tested on the same dataset.
Kim et al. [11] compare historical averaging to several time series methods (ARIMA, SARIMA and GARCH). The work reports 6 and 8.8% MAPE on correspondingly 1 day and 30 days forecasts. The average MAPE on our testing set is 4.01, 5.55 and 5.48% on 1 day, 30 days and 60 days forecast respectively. This suggests that NARXbased model outperforms the traditional time series approach. Jones et al. [36] report approximately 15 beds RMSE over a prediction period of 32 days, with the average of total bed occupancy around 440 beds. Our approach achieved an RMSE of 14.99 and 13.51 on approx. 220 beds in a 60 and 30 day prediction period respectively. In comparison to the previous methods, our solution is in line with the current state of the art or outperforming it on our specific dataset.
One of the most important advantages of the model is its robustness on several levels. First, the model is trained, optimized and validated based upon a relatively large dataset. Second, the search of the optimum is done in systematic way and parameters in proximity to the found optimum appear to have a relatively small gradient. Another indicator for stability is the difference between the errors on the training and validation sets. Here, the difference is small (5.48% vs 6.24% MAPE and 12.10 vs 12.51 MAE on training and validation respectively), which indicates that the model was not overfitting to the training data. One reason is the computation and averaging of multiple models (N = 50) at each step and the small model size.
Introducing multiple errors ensures better control on the optimization. The mean absolute error (MAE) was chosen for the optimization purposes, as it reflects the model quality over the whole forecasted period. However, MAPE, MAX and RMSE are following the MAE in most cases. The last type of the error, GE, is less intuitive as it does not directly depend on the daily differences between the prediction and the forecast. The difference can be just one bed, and yet the number of bed groups needed be different. Nevertheless, we report this error because of its importance to the hospital planning.
In general, the results of the evaluation are acceptable and motivate to use the proposed model as a part of the hospital planning system.
Finally, despite the fact that the optimization was performed for 60 days of the summer season, the model works well for whole year forecasting as well.
Perhaps the most surprising result of this paper is that the proposed model predicts optimally using only the information from the previous year, while a much longer history is available. While this has a positive influence on the speed of the computation, other advantages or disadvantages are possible and should be investigated in future. First, due to the small history the model can adapt more quickly to changes in hospital infrastructure (e.g., closing or opening of new wards).
On the other side, some limitations arise from the short history of the proposed model. Local onetime events such as disasters, diseases outbreaks or events with slower periodicity (Olympic Games, soccer championships) might not be predictable and could have a higher influence on the following year. Similarly, Jones [37] reported on/off switching (rapid increase and decrease) of hospital bed occupancy with a cycle length of 2 years, which can also not be modeled with a history of less than one cycle length. The usage of multiple years can have a smoothening effect and reduce the possible error in these cases. However, neither on/off switching nor other events with such an effect could be observed in this work.
There are several possibilities to further improve the model. The most obvious way is to work on the optimization procedure. There are parameters left in the model, which can still be tuned. For example, we assumed that the delays on the internal and external data are equal, but this assumption can be easily removed to get one more degree of freedom.
Another possible factor to take into account is weather, specifically excessive heat or cold, or other external factors such as flu outbreaks. Because of the length of our goal forecast (60 days), which is much longer than reliably available detailed weather forecasts, we decided to not incorporate it in the model. However, with the help of Bayesian modelling [38], this kind of uncertainty can be taken into account.
In case of longer times of prediction, other factors might play role. For instance, Jones [39] suggested number of hospital deaths as a possible bed occupation predictor.
Lastly, prediction intervals could also be a useful addition, as they could allow the user to have information on the uncertainty of the model.
Conclusions
We presented a mathematical model based on recurrent artificial neural networks, designed to forecast the bed occupancy in hospitals. Recurrent NARX networks were successfully used for time series data modelling in other areas, but to our best knowledge the presented work is the first application of NARX to hospital bed planning. With 6.24 MAPE on 60 days forecast, our model is competitive to the current state of art, while not using any sort of personal patient’s data. Instead, it is based on admissions and releases data only. The model was optimized for the summer seasons and the data from a mediumsize German hospital for optimized scheduling purposes. The model is flexible and can be easily adapted to different requirements. In particular, it can be integrated into an automatic decision model, e.g. similar to the one developed by Grübler et al. [40]. Currently, a software with a userfriendly interface and better performance characteristics is being developed as a webbased application for open access.
Abbreviations
 ANN:

artificial neural network
 ARIMA:

autoregressive integrated moving average
 ARMA:

autoregressive moving average
 GARCH:

generalized autoregressive conditional heteroskedasticity
 ICU:

intensive care unit
 LOS:

length of stay
 MAE:

mean absolute error
 MAPE:

mean absolute percentage error
 MAX:

maximal absolute error
 NARX:

nonlinear autoregressive model with exogenous terms
 RMSE:

rootmeansquare error
 SARIMA:

seasonal ARIMA
References
Anderson DR. The impact of resource management on hospital efficiency and quality of care. 2013. http://drum.lib.umd.edu/handle/1903/14568. Accessed 24 Jul 2017.
Kabene SM, Orchard C, Howard JM, Soriano MA, Leduc R. The importance of human resources management in health care: a global context. Hum Resour Health. 2006;4:20.
Aiken LH, Clarke SP, Sloane DM. Hospital staffing, organization, and quality of care: crossnational findings. Int J Qual Health Care. 2002;14:5–14.
Helm JE, Alaeddini A, Stauffer JM, Bretthauer KM, Skolarus TA. Reducing hospital readmissions by integrating empirical prediction with resource optimization. Prod Oper Manag. 2016;25:233–57.
Schmidt R, Geisler S, Spreckelsen C. Decision support for hospital bed management using adaptable individual length of stay estimations and shared resources. BMC Med Inform Decis Mak. 2013;13:3.
Ruyssinck J, van der Herten J, Houthooft R, Ongenae F, Couckuyt I, Gadeyne B, et al. Random survival forests for predicting the bed occupancy in the intensive care unit. Comput Math Methods Med. 2016;2016:e7087053.
Williams J, Dumont S, ParryJones J, Komenda I, Griffiths J, Knight V. Mathematical modelling of patient flows to predict critical care capacity required following the merger of two district general hospitals into one. Anaesthesia. 2015;70:32–40.
Ridge JC, Jones SK, Nielsen MS, Shahani AK. Capacity planning for intensive care units. Eur J Oper Res. 1998;105:346–55.
Jones SS, Evans RS, Allen TL, Thomas A, Haug PJ, Welch SJ, et al. A multivariate time series approach to modeling and forecasting demand in the emergency department. J Biomed Inform. 2009;42:123–39.
Farmer RD, Emami J. Models for forecasting hospital bed requirements in the acute sector. J Epidemiol Community Health. 1990;44:307–12.
Kim K, Lee C, O’Leary K, Rosenauer S, Mehrotra S. Predicting patient volumes in hospital medicine: A comparative study of different time series forecasting methods. Tech. rep., Northwestern University; 2014. http://www.mcs.anl.gov/~kibaekkim/ForecastingHospitalMedicine.pdf. Accessed 10 Apr 2017.
Mackay M, Lee MD. Using compartmental models to predict hospital bed occupancy. Retrieved from citeseerx. ist. psu. edu/viewdoc/download; 2007. https://pdfs.semanticscholar.org/0387/08b64383298304be8a2d36972ae340ec3ca6.pdf. Accessed 24 Feb 2017.
NHS report. http://www.nhshistory.net/nationalbeds.pdf. Accessed 24 July 2017.
SeematterBagnoud L, Fustinoni S, Dung DH, SantosEggimann B, Koehn V, Bize R, et al. Comparison of different methods to forecast hospital bed needs. Eur Geriatr Med. 2015;6:262–6.
Mackay M, Lee M. Choice of models for the analysis and forecasting of hospital beds. Health Care Manag Sci. 2005;8:221–30.
Jennifer TPF, Chen PC, Chen YY, Song HY, Lin HM, Lin FM, et al. Length of hospital stay prediction at the admission stage for cardiology patients using artificial neural network. J Healthc Eng. 2016;2016:e7035463.
Tandberg D, Qualls C. Time series forecasts of emergency department patient volume, length of stay, and acuity. Ann Emerg Med. 1994;23:299–306.
Makridakis S, Hibon M. ARMA models and the box–Jenkins methodology. J Forecast. 1997;16:147–63.
Ariyo AA, Adewumi AO, Ayo CK. Stock Price prediction using the ARIMA model. In: 2014 UKSimAMSS 16th international conference on computer modelling and simulation. 2014. p. 106–112.
Shumway RH, Stoffer DS. Time series analysis and its applications. Cham: Springer International Publishing; 2017. https://doi.org/10.1007/9783319524528.
Bontempi G, Taieb SB, Borgne YAL. Machine Learning Strategies for Time Series Forecasting. In: Aufaure MA, Zimányi E, editors. Business Intelligence. Springer Berlin Heidelberg; 2013. p. 62–77. doi:https://doi.org/10.1007/9783642363184_3.
Di Piazza A, Di Piazza MC, Vitale G. Solar and wind forecasting by NARX neural networks. Renew Energy Environ Sustain. 2016;1:39.
Bjoern Krollner, Bruce Vanstone, Gavin Finnie. Financial time series forecasting with machine learning techniques: A survey. Evere: dside; 2010.
Pendharkar PC, Khurana H. Machine learning techniques for predicting hospital length of stay in Pennsylvania fedar and specialty hospitals. Int J Comput Sci Appl. 2014;11:45–56.
Walczak S, Pofahl WE, Scorpio RJ, Others. Predicting hospital length of stay with neural networks. In: FLAIRS conference. 1998. p. 333–337. http://www.aaai.org/Papers/FLAIRS/1998/FLAIRS98065.pdf. Accessed 20 Mar 2017.
Turgeman L, May JH, Sciulli R. Insights from a machine learning model for predicting the hospital length of stay (LOS) at the time of admission. Expert Syst Appl. 2017;78:376–85.
Davis GE, Lowell WE. Using artificial neural networks and the GutenbergRichter power law to “Rightsize” a behavioral health care system. Am J Med Qual. 1999;14:216–28.
Oliveira S, Portela F, Santos MF, Machado J, Abelha A. Predictive models for hospital bed management using data mining techniques. In: Rocha Á, Correia AM, Tan FB, Stroetmann KA, editors. New perspectives in information systems and technologies, volume 2. Springer International Publishing; 2014. p. 407–16. doi:https://doi.org/10.1007/9783319059488_39.
Futoma J, Morris J, Lucas J. A comparison of models for predicting early hospital readmissions. J Biomed Inform. 2015;56:229–38.
European Symposium on Artificial Neural Networks, Verleysen M, editors. Proceedings/13th European symposium on artificial neural networks, ESANN 2005: Bruges, Belgium, April 27  28  29, 2005. Evere, Belgium: dside; 2005.
KMK. https://www.kmk.org/. Accessed 24 July 2017.
Siegelmann HT, Horne BG, Giles CL. Computational capabilities of recurrent NARX neural networks. IEEE Trans Syst Man Cybern Part B Cybern Publ IEEE Syst Man Cybern Soc. 1997;27:208–15.
Menezes JMP, Barreto GA. Longterm time series prediction with the NARX network: an empirical evaluation. Neurocomputing. 2008;71:3335–43.
Cadenas E, Rivera W, CamposAmezcua R, Heard C. Wind speed prediction using a univariate ARIMA model and a multivariate NARX model. Energies. 2016;9:109.
Mitrea CA, Lee CKM, Wu Z. A comparison between neural networks and traditional forecasting methods: a case study. Int J Eng Bus Manag. 2009;1:19–24.
Jones SA, Joy MP, Pearson J. Forecasting demand of emergency care. Health Care Manag Sci. 2002;5:297–305.
Jones RP. Deaths and medical admissions in the UK show an unexplained and sustained peak after 2011. Eur J Intern Med. 2018;47:e14–6.
Minty J, Harper P, Sarran C, Sahu S, Baffour B. Simulating Occupancy for ShortTerm Hospital Planning http://www.personal.soton.ac.uk/sks/research/papers/eng.pdf. Accessed 28 Feb 2017.
Jones R. Bed days: a new tool. Br J Healthc Manag. 2011;17:213.
Grübler M d S, da Costa CA, Righi R d R, Rigo SJ, Chiwiacowsky LD. A Hospital bed allocation hybrid model based on situation awareness. CIN Comput Inform Nurs. 2018;36:249–55.
Acknowledgements
Funding
The project was supported by the START program of the Faculty of Medicine of the RWTH Aachen and partially supported by the Faculty of Applied Mathematics AGH UST statutory tasks within subsidy of Ministry of Science and Higher Education (EK). These funding bodies had no role in the design of this study or in its execution, analyses, interpretation of the data, or decision to submit results.
Availability of data and materials
The datasets analyzed during the current study are not publicly available due to the hospital regulations, but are available from the corresponding author on reasonable request.
Author information
Authors and Affiliations
Contributions
EK, SJ and KK designed the work, EK developed the mathematical model, EK and SJ analyzed the data, EK wrote the initial version of the manuscript, IB acquired the data and made model refinements, KK and SJ provided scientific supervision, KK, IB and SJ have substantially revised the manuscript. All authors approved the final version.
Corresponding author
Ethics declarations
Ethics approval and consent to participate
Not applicable.
Consent for publication
Not applicable.
Competing interests
The authors declare that they have no competing interests.
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. 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.
About this article
Cite this article
Kutafina, E., Bechtold, I., Kabino, K. et al. Recursive neural networks in hospital bed occupancy forecasting. BMC Med Inform Decis Mak 19, 39 (2019). https://doi.org/10.1186/s1291101907761
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s1291101907761