The goal of this project (part of the versusvirus-hackathon) is to have a real time view on how many beds (ICU & non ICU) are available across Switzerland. To augment such monitoring capability, predictive modeling techniques that forecast how long a patient will remain hospitalized will be applied. Such approach allows for a more accurate resource planning of hospital beds and distribution of patients across Swiss hospitals.
Ou proposed solution is the BlueBeds Platform for which the code for which a Demo-version is available (also check-out the github-repo). The platform is the end-product, which collects data on the hospital-level and patient-level, and gives real-time predictions on the length-od-stay of the patient in that same bed. This will help with hospital-management. A description on how the data could be collected on the platform and how this data can be used in rather easy and straightforward prediction models can be found here.
-
A first very basic prediction model build with
R
, can be found at the end of this document. -
An alternative model build in
Python
can be found here.
To better illustrate the models, mock-data was generated as follows:
-
Use a data synthesizer to produce ~10k hospital patients.
-
Adjust synthetic data to Switzerland and current time frame (March/April 2020)
-
Map data to number of beds available in Swiss hospitals
-
Sample data according to volume of ICU beds available in Swiss hospitals
-
Sample admission type : ICU invasive, ICU non-invasive, Non-ICU (source)
-
Augment data with patient information about symptoms & preconditions and sample according to frequency of occurrence
-
Engineer duration of stay based on admission type & death occurrence
Please note that not all assumptions have been available prior generation of the data and some might deviate from the underlying literature. Conditional occurrence of medical preconditions and gender biases were not included in this first version.