link.springer.com
Open in
urlscan Pro
151.101.192.95
Public Scan
Submitted URL: https://info.deeplearning.ai/e2t/tc/MXbNZBDfvTxW4wXYQy9dwLDmW7xsyK94sW2btN6J4pYS3p_9rV1-WJV7CgTj2W8YlSm64ltKwPW95q3NG28zyZ_N3...
Effective URL: https://link.springer.com/article/10.1007/s10994-020-05921-4?utm_campaign=The%20Batch&utm_medium=email&_hsmi=134267948&_hs...
Submission Tags: falconsandbox
Submission: On October 11 via api from US — Scanned from DE
Effective URL: https://link.springer.com/article/10.1007/s10994-020-05921-4?utm_campaign=The%20Batch&utm_medium=email&_hsmi=134267948&_hs...
Submission Tags: falconsandbox
Submission: On October 11 via api from US — Scanned from DE
Form analysis
2 forms found in the DOMPOST https://order.springer.com/public/precheckout
<form action="https://order.springer.com/public/precheckout" method="post"><button class="c-header__link" type="submit" style="
appearance: none;
border: none;
background: none;
color: inherit;
">
<svg aria-hidden="true" focusable="false" height="18" viewBox="0 0 18 18" width="18" style="vertical-align: text-bottom;" xmlns="http://www.w3.org/2000/svg">
<path
d="m5 14c1.1045695 0 2 .8954305 2 2s-.8954305 2-2 2-2-.8954305-2-2 .8954305-2 2-2zm10 0c1.1045695 0 2 .8954305 2 2s-.8954305 2-2 2-2-.8954305-2-2 .8954305-2 2-2zm-10 1c-.55228475 0-1 .4477153-1 1s.44771525 1 1 1 1-.4477153 1-1-.44771525-1-1-1zm10 0c-.5522847 0-1 .4477153-1 1s.4477153 1 1 1 1-.4477153 1-1-.4477153-1-1-1zm-12.82032249-15c.47691417 0 .88746157.33678127.98070211.80449199l.23823144 1.19501025 13.36277974.00045554c.5522847.00001882.9999659.44774934.9999659 1.00004222 0 .07084994-.0075361.14150708-.022474.2107727l-1.2908094 5.98534344c-.1007861.46742419-.5432548.80388386-1.0571651.80388386h-10.24805106c-.59173366 0-1.07142857.4477153-1.07142857 1 0 .5128358.41361449.9355072.94647737.9932723l.1249512.0067277h10.35933776c.2749512 0 .4979349.2228539.4979349.4978051 0 .2749417-.2227336.4978951-.4976753.4980063l-10.35959736.0041886c-1.18346732 0-2.14285714-.8954305-2.14285714-2 0-.6625717.34520317-1.24989198.87690425-1.61383592l-1.63768102-8.19004794c-.01312273-.06561364-.01950005-.131011-.0196107-.19547395l-1.71961253-.00064219c-.27614237 0-.5-.22385762-.5-.5 0-.27614237.22385763-.5.5-.5zm14.53193359 2.99950224h-13.11300004l1.20580469 6.02530174c.11024034-.0163252.22327998-.02480398.33844139-.02480398h10.27064786z"
fill="#333"></path>
</svg><span class="u-screenreader-only visually-hidden">Go to cart</span></button>
</form>
GET /search
<form role="search" method="GET" action="/search">
<label for="search" class="app-search__label">Search SpringerLink</label>
<div class="app-search__content">
<input id="search" class="app-search__input" data-search-input="" autocomplete="off" role="textbox" name="query" type="text" value="">
<button class="app-search__button" type="submit">
<span class="u-visually-hidden">Search</span>
<svg class="u-icon" aria-hidden="true" focusable="false">
<use xlink:href="#global-icon-search"></use>
</svg>
</button>
<input type="hidden" name="searchType" value="publisherSearch">
</div>
</form>
Text Content
YOUR PRIVACY We use cookies to make sure that our website works properly, as well as some ‘optional’ cookies to personalise content and advertising, provide social media features and analyse how people use our site. By accepting some or all optional cookies you give consent to the processing of your personal data, including transfer to third parties, some in countries outside of the European Economic Area that do not offer the same data protection standards as the country where you live. You can decide which optional cookies to accept by clicking on ‘Manage Settings’, where you can also find more information about how your personal data is processed. Further information can be found in our privacy policy. Accept all cookies Manage preferences Skip to main content Advertisement Search Go to cart * Log in Search SpringerLink Search CPAS: the UK’s national machine learning-based hospital capacity planning system for COVID-19 Download PDF Download PDF * Open Access * Published: 24 November 2020 CPAS: THE UK’S NATIONAL MACHINE LEARNING-BASED HOSPITAL CAPACITY PLANNING SYSTEM FOR COVID-19 * Zhaozhi Qian ORCID: orcid.org/0000-0002-4561-03421, * Ahmed M. Alaa2 & * Mihaela van der Schaar1,2,3 Machine Learning volume 110, pages 15–35 (2021)Cite this article * 4266 Accesses * 11 Citations * 8 Altmetric * Metrics details ABSTRACT The coronavirus disease 2019 (COVID-19) global pandemic poses the threat of overwhelming healthcare systems with unprecedented demands for intensive care resources. Managing these demands cannot be effectively conducted without a nationwide collective effort that relies on data to forecast hospital demands on the national, regional, hospital and individual levels. To this end, we developed the COVID-19 Capacity Planning and Analysis System (CPAS)—a machine learning-based system for hospital resource planning that we have successfully deployed at individual hospitals and across regions in the UK in coordination with NHS Digital. In this paper, we discuss the main challenges of deploying a machine learning-based decision support system at national scale, and explain how CPAS addresses these challenges by (1) defining the appropriate learning problem, (2) combining bottom-up and top-down analytical approaches, (3) using state-of-the-art machine learning algorithms, (4) integrating heterogeneous data sources, and (5) presenting the result with an interactive and transparent interface. CPAS is one of the first machine learning-based systems to be deployed in hospitals on a national scale to address the COVID-19 pandemic—we conclude the paper with a summary of the lessons learned from this experience. INTRODUCTION The coronavirus disease 2019 (COVID-19) pandemic poses immense challenges to healthcare systems across the globe—a major issue faced by both policy makers and front-line clinicians is the planning and allocation of scarce medical resources such as Intensive Care Unit (ICU) beds (Bedford et al. 2020). In order to manage the unprecedented ICU demands caused by the pandemic, we need nationwide collective efforts that hinge on data to forecast hospital demands across various levels of regional resolution. To this end, we developed the COVID-19 Capacity Planning and Analysis System (CPAS), a machine learning-based tool that has been deployed to hospitals across the UK to assist the planning of ICU beds, equipment and staff (NHS 2020d). CPAS is designed to provide actionable insights into the multifaceted problem of ICU capacity planning for various groups of stakeholders; it fulfills this goal by issuing accurate forecast for ICU demand over various time horizons and resolutions. It makes use of the state-of-the-art machine learning techniques to draw inference from a diverse repository of heterogeneous data sources. CPAS presents its predictions and insights via an intuitive and interactive interface and allows the user to explore scenarios under different assumptions. Critical care resources—such as ICU beds, invasive mechanical ventilation and medical personnel—are scarce, with much of the available resources being already occupied by severely-ill patients diagnosed with other diseases (NHS 2020a, b). CPAS is meant to ensure a smooth operation of ICU by anticipating the required resources at multiple locations beforehand, enabling a timely management of these resources. While capacity planning has the greatest value at the peak of the pandemic, it also has important utility even after the peak because it can help the hospitals to manage the transition from the COVID-19 emergency back to the normal business. During the pandemic, the vast majority of the healthcare resources were devoted to treating COVID-19 patients, so the capacity for treating other diseases was much reduced. It is therefore necessary to review and re-assign the resources after the COVID-19 trend starts to decline. CPAS is one of the first machine learning decision support systems deployed nationwide to manage ICU resources at different stages of the pandemic. Fig. 1 Illustration of how the different components in CPAS address the diverse needs of stakeholders on various levels. On the regional level, “hospital trusts” refers to the NHS foundation trusts, organizations that manage several hospitals in a region Full size image CPAS is designed to serve the needs of various groups of stakeholders involved in capacity planning at different levels of geographical and administrative resolution. More specifically, as illustrated in Fig. 1, CPAS models ICU demands on the (a) patient, (b) hospital, (c) regional and (d) national levels. On the highest level, the system helps the policy-makers to make informed decisions by forecasting the national trends for ICU demand under different scenarios. Secondly, regional healthcare leadership can use CPAS as a “load balancing” tool as some hospitals may experience higher demand than others. Transferal of patients and resources can then be arranged accordingly. Next, hospital managers can use CPAS to plan ahead the local ICU space, equipment and staff. Lastly, the front-line clinicians can make use of the tool to understand the risk profile of individual patients. Importantly, these four groups of stakeholders require insights on different time horizons and levels of aggregation. CPAS addresses this challenge by combining the top-down projections from an “aggregated trend forecaster” and the bottom-up predictions from an “individualized risk predictor”. Using agent-based simulation, CPAS is able to provide multi-resolution scenario analysis for individual, local, regional and national ICU demand. As illustrated in Fig. 1, CPAS comprises an aggregated trend forecaster (top right) that issues overall projections of hospital admission trend. The projections are made on the hospital level over a time horizon of thirty days, and they are further aggregated to form the regional and national forecasts. CPAS also makes use of an individualized risk predictor (bottom right) that contains a suite of machine learning pipelines predicting the patient-level risk profiles of ICU admission, ventilator usage, mortality and discharge in the thirty-day period after hospital admission. The patient level risk profiles can be directly used by the clinicians to monitor patient status and make a treatment plan. They can also be combined with the hospital admission forecast in the agent-based simulator (middle right) to perform scenario analysis for ICU capacity. CPAS casts the complex practical problem of ICU capacity planning into a set of sub-problems, each of which can be addressed by machine learning. This divide-and-conquer approach makes CPAS a transparent solution rather than a monolithic black-box. The machine learning models underlying CPAS are trained using data that reflects the entire patient journey: from hospital admission, to ICU admission, to ventilation treatment, and finally to discharge or death. We will discuss the problem formulation in detail in Sect. 2.1. The CPAS machine learning model ICU planning for COVID-19 is a novel problem with few examples to learn from. The spread of COVID-19 is modulated by the intrinsic characteristics of the novel virus as well as the unprecedented intervention policies by the government. The need for deploying the system rapidly also means we cannot wait longer to collect more observations. As a result, the aggregated trend forecaster (Fig. 1 top right) needs to learn the disease’s transmission and progression characteristics from very limited data. To address this issue, we use a compartmental epidemiological model as a strong domain-specific prior to drive the trend forecast. We integrated the prior in the proven framework of Bayesian hierarchical modelling and Gaussian processes to model the complex disease dynamics from few observations (Rasmussen 2003). We explain the aggregated trend forecaster in detail in Sect. 2.3. The individualized risk predictor (Fig. 1 bottom right) is a production-level machine learning pipeline tasked to predict four distinct outcomes. For each outcome, it needs to address all stages of predictive modelling: missing data imputation, feature processing, prediction, and calibration. For every stage, there are many machine learning algorithms to choose from, and for each algorithm there are multiple hyperparameters to tune. However, using a naive approach such as grid search to select algorithms and hyperparameters is very time-consuming, and it would hamper the rapid deployment of the system (Kotthoff et al. 2017). Since the pipeline configuration significantly affects the system’s overall performance (Hutter et al. 2019), we use a state-of-the-art AutoML tool designed for medical applications, AutoPrognosis (Alaa and van der Schaar 2018), to address the algorithm and hyperparameter selection challenge for the individualized risk predictor (see Sect. 2.2). It is inherently hard for a data-driven forecasting tool to accurately factor in the impact of unseen events (e.g. new social distancing policies). CPAS uses the agent-based simulator (Fig. 1 middle right) to allow the users to explore scenarios under different assumptions about the policy impact. The simulator first constructs a patient cohort that matches the feature distribution in the region of interest. It then uses the aggregated trend forecaster to determine the number of patients admitted to the hospital on each day based on the user’s assumption about policy impact. As is standard in agent-based simulation (Railsback et al. 2006), each patient’s outcomes are then simulated based on the risk profiles given by the individualized risk predictor. Finally, the simulated outcomes are aggregated to the desired level to form the scenario analysis. We introduce the details of the agent-based simulator in Sect. 2.4 Challenges associated with building practical machine learning-based decision support systems Data integration poses a practical challenge for implementing a large-scale machine learning system. As illustrated in Fig. 1, CPAS uses both patient records and the aggregated trends. Typically, the patient level information is collected and stored by various hospital trusts in isolated databases with inconsistent storage formats and information schema. It is a labour-intensive and time-consuming task to link and harmonize these data sources. Furthermore, historical data that contains valuable information about the patients’ pre-existing morbidities and medications, are archived on separated databases. Accessing, processing and linking such historical data also proves to be challenging. CPAS is trained using a data set constructed from four data sources. By breaking the data silos and linking the data, we draw diverse information covering the full spectrum of the patient health condition, which leads to informed and accurate prediction. We introduce the details of the datasets in Sect. 3.1. Presenting the insights in a user-friendly way is often neglected but vital to a machine-learning tool’s successful adoption. Ideally, the user interface should not only present the final conclusion but also the intermediate steps to reach the conclusion. The transparency of the system’s internal working makes the system more trustworthy. CPAS contains well-designed dashboards to display the outputs of the aggregated trend forecaster and the individualized risk predictors. Thanks to the agent-based simulator, CPAS also allows the users to interactively explore the future scenarios by changing the underlying assumptions rather than presenting the forecast as the only possible truth. We present an illustrative use case in Sect. 5. The rest of the article is organized as follows: After formulating the ICU planning problem into a set of learning tasks in Sect. 2.1, we introduce the individualized risk predictor in Sect. 2.2, the aggregated trend forecaster in Sect. 2.3, and the agent-based simulator in Sect. 2.4. We proceed to describe the data sources used in CPAS and the training procedure in Sect. 3. After that, we present the offline evaluation results and discuss the need for online performance monitoring in Sect. 4. In Sect. 5, we demonstrate how CPAS works in action by going through an illustrative use case. We conclude with the lessons learned in Sect. 6. CPAS: A SYSTEM FOR ICU CAPACITY PLANNING PROBLEM FORMULATION To formulate the ICU capacity planning problem, we start by modelling the patients’ arrival at each hospital. Let Ah(t)∈NAh(t)∈N be the number of COVID-19 patients admitted to a given hospital h∈{1,…,N}h∈{1,…,N} on the ttth day since the beginning of the outbreak. Since not all hospitalized patients will require ICU treatment, we need to model the patient-level ICU admission risk to translate hospital admissions into ICU demand. Let Xi∈RDXi∈RD be the D-dimensional feature vector for a patient i. We use one-hot encoding to convert categorical variables into a real vector. Binary variables are encoded as 0 or 1. Further denote the event of ICU admission on the ττth days after hospital admission as Yi(τ)∈{0,1}Yi(τ)∈{0,1}. Note that Yi(τ)Yi(τ) will not be available for some ττ due to insufficient follow-up time, e.g. we don’t observe the outcome at 10 days after admission if the patient was only admitted 7 days ago. Formally speaking, We only observe Yi(τ)Yi(τ) for τ∈(0,τ∗i]τ∈(0,τi∗], where τ∗iτi∗ is the censoring time for patient i. The ICU admission event Yi(τ)Yi(τ) directly translates into the ICU demand. To see this, consider a cohort of Ah(t)Ah(t) patients admitted to hospital h at time t. On a future date t′>tt′>t, the new ICU admission contributed by this cohort is given as: ICU-inflow(t→t′)=∑i=1Ah(t)Yi(t′−t),ICU-inflow(t→t′)=∑i=1Ah(t)Yi(t′−t), (1) where we explicitly use t→t′t→t′ to emphasize the date of hospital admission t and the date of ICU demand t′t′. We can obtain the total ICU inflow on day t′t′ by summing over all historical patient cohorts with different hospital admission dates: ICU-inflow(t′)=∑t<t′ICU-inflow(t→t′)=∑t<t′∑i=1Ah(t)Yi(t′−t).ICU-inflow(t′)=∑t<t′ICU-inflow(t→t′)=∑t<t′∑i=1Ah(t)Yi(t′−t). (2) It is apparent from the equation above that the ICU demand depends on two quantities: (1) the patient ICU risk profile Yi(τ)Yi(τ) and (2) the number of hospital admissions Ah(t)Ah(t) in the range of summation. Therefore, CPAS uses the individualized risk predictor to model Yi(τ)Yi(τ) and the aggregated trend forecaster to model Ah(t)Ah(t) . In addition to the ICU admission event, CPAS also contain models for three other clinical events: ventilator usage, mortality and discharge. We use Yi(τ)Yi(τ) to conceptually represent any outcome of interest when the context is clear. To build the CPAS individualized risk predictor, we consider a patient-level data set DPN,tDN,tP consisting patients from N hospitals over a period of t days, i.e., DPN,t:={Xi,Yi[1:τ∗i]}Npi=1,DN,tP:={Xi,Yi[1:τi∗]}i=1Np, (3) where we use the square brackets to denote a sequence over a period of time i.e. Yi[1:τ∗i]:={Yi(1),…,Yi(τ∗i)}Yi[1:τi∗]:={Yi(1),…,Yi(τi∗)}, and Np:=∑Nh=1∑tj=1Ah(j)Np:=∑h=1N∑j=1tAh(j). CPAS learns the hazard function for any patient with feature X over a time horizon of τ∈(0,H]τ∈(0,H]: hˆ(τ)=P(Y(τ)=1 | X, DPN,t, Y(τ′)=0,∀τ′<τ)h^(τ)=P(Y(τ)=1 | X, DN,tP, Y(τ′)=0,∀τ′<τ) (4) Conceptually, the hazard function hˆ(τ)h^(τ) represents the likelihood of ICU admission on day ττ given the patient has not been admitted to the ICU in the first τ−1τ−1 days. Therefore, for any patient who is already admitted to the hospital and registered in the system, CPAS is able to issue individual-level risk prediction based on the observed patient features XiXi. Those individualized predictions can directly help the clinicians to monitor the patient status and design personalized treatment plan. The predicted risk profiles can also be aggregated to the hospital level to measure the ICU demand driven by the existing patients. To build the CPAS aggregated trend forecaster, we consider a hospital-level dataset DAN,tDN,tA for N hospitals covering a period of t days, i.e., DAN,t:={Ah[1:t],Mh[1:t]}Nh=1,DN,tA:={Ah[1:t],Mh[1:t]}h=1N, (5) where the square brackets denote a sequence over time as before. The dataset contains the number of hospital admissions Ah(t)Ah(t), which we have defined previously, and the community mobility Mh[1:t]:={mh(1)…mh(t)}Mh[1:t]:={mh(1)…mh(t)} in the catchment of hospital h. The mh(t)∈RKmh(t)∈RK is a K-dimensional real vector, with each dimension k=1…Kk=1…K reflecting the relative decrease of mobility in one category of places (e.g. workplaces, parks, etc) due to the COVID-19 containment and social distancing measures. We used data for N=94N=94 hospitals, each with K=6K=6 categories of places. The details of the community mobility dataset is described in Sect. 3.1.4. For each hospital h, CPAS probabilistically forecasts the trajectory of the number of COVID-19 admissions within a future time horizon of T days with a given community mobility, i.e., Aˆh[t:t+T]=P[Ah[t:t+T]∣∣mh(t),mh(t+1),…,mh(t+T)Future mobility Mh[t:t+T],DAN,t].A^h[t:t+T]=P[Ah[t:t+T]|mh(t),mh(t+1),…,mh(t+T)⏟Future mobility Mh[t:t+T],DN,tA]. (6) The future mobility Mh[t:t+T]Mh[t:t+T] depends on the intervention policies to be implemented in the future (e.g. schools to be closed in a week’s time) and therefore may not be learnable from the historical data. For this reason, CPAS only models the conditional distribution as in Eq. 6 and it allows the users to supply their own forecast of Mh[t:t+T]Mh[t:t+T] based on their knowledge and expectation of the future policies. By supplying different values of Mh[t:t+T]Mh[t:t+T], CPAS is able to project the hospital admission trend under these different scenarios. By default, CPAS extrapolates the community mobility using the average value of the last seven days i.e. Mh(j)=Avg(Mh[t−8:t−1])Mh(j)=Avg(Mh[t−8:t−1]) for j∈[t, t+T]j∈[t, t+T]. In the following three sub-sections, we will introduce the individualized risk predictor, the aggregated trend forecaster, and the agent-based simulator. When multiple modelling approaches are possible, we will discuss their pros and cons and the reason why we choose a particular one in CPAS. Table 1 The algorithms considered in each stage of the pipeline, which includes MICE (Buuren and Groothuis-Oudshoorn 2010), MissForest (Stekhoven and Bühlmann 2012), GAIN (Yoon et al. 2018), PCA, Fast ICA (Hyvarinen 1999), Recursive elimination (Guyon et al. 2002), Elastic net (Zou and Hastie 2005), Random forest (Liaw and Wiener 2002), Xgboost (Chen and Guestrin 2016), Multi-layer Perceptron (MLP) (Hinton 1990), Isotonic regression (De Leeuw 1977), Bootstrap (Chernick et al. 2011), Platt scaling (Platt et al. 1999) Full size table INDIVIDUALIZED RISK PREDICTION USING AUTOMATED MACHINE LEARNING In order to learn the hazard function defined over a period of τ∈(0,H]τ∈(0,H] days (Eq. 4), the individualized risk predictor contains H calibrated binary classification pipelines, trained independently and each focusing on a single time step, as illustrated in Fig. 2. We will discuss the concept of pipelines later in this section. For now, the readers can assume Pτθ(X)Pθτ(X) to be a binary classifier with hyperparameters θθ. By training separate pipelines for each time step, we do not assume that the hazard function follows any specific functional form, which adds to the flexibility to model complex disease progression. The training data for each time step ττ, denoted as DPN,t(τ)DN,tP(τ) is derived from the full patient-level dataset DPN,tDN,tP as follows: DPN,t(τ)={(Xi,Yi(τ)) | (Xi,Yi[1:τ∗i])∈DPN,t, τ∗i≥τ, Yi(τ′)=0,∀τ′<τ}DN,tP(τ)={(Xi,Yi(τ)) | (Xi,Yi[1:τi∗])∈DN,tP, τi∗≥τ, Yi(τ′)=0,∀τ′<τ} (7) The first condition (Xi,Yi[1:τ∗i])∈DPN,t(Xi,Yi[1:τi∗])∈DN,tP simply states that the patient i is in the full dataset. The second condition τ∗i≥ττi∗≥τ ensures that the Yi(τ)Yi(τ) is observed. In other words, the status of patient i at time ττ is not censored. The last condition Yi(τ′)=0,∀τ′<τYi(τ′)=0,∀τ′<τ arises from the definition of the hazard function in Eq. 4. Jointly these three conditions ensure that the binary classifier trained on DPN,t(τ)DN,tP(τ) predicts the hazard function hˆ(τ)h^(τ) at time ττ. Fig. 2 Schematic depiction for the individualized risk predictor. A patient’s features are fed into multiple pipelines in parallel. Each pipeline estimates the hazard function hˆ(τ)h^(τ) at a different time step τ∈[1,H]τ∈[1,H]. The pipeline for τ=14τ=14 is illustrated in more details in the figure. The pipeline configuration specifies the algorithms and the associated hyperparameters. The configurations are determined by AutoPrognosis using Eq. 9 and may vary across ττ Full size image A machine learning pipeline consists of multiple stages of predictive modelling. Let Fd,Ff,Fp,FcFd,Ff,Fp,Fc be the sets of all missing data imputation, feature processing, prediction, and calibration algorithms we consider (Table 1) respectively. A pipeline P is a tuple of the form: P=(Fd,Ff,Fp,Fc),P=(Fd,Ff,Fp,Fc), (8) where Fi∈FiFi∈Fi, ∀i∈{d,f,p,c}∀i∈{d,f,p,c}. The space of all possible pipelines is given by P=Fd×Ff×Fp×FcP=Fd×Ff×Fp×Fc. Thus, a pipeline consists of a selection of algorithms from each column of Table 1. For example, P = (MICE, PCA, Random Forest, Platt scaling). The total number of pipelines we consider is |P|=192|P|=192. While P specifies the “skeleton” of the pipeline, we also need to decide the hyperparameter configuration of its constituent algorithms. Let Θ=Θd×Θf×Θp×ΘcΘ=Θd×Θf×Θp×Θc be the space of all hyperparameter configurations. Here Θv=⋃aΘavΘv=⋃aΘva for v∈{d,f,p,c}v∈{d,f,p,c} with ΘavΘva being the space of hyperparameters associated with the athath algorithm in FvFv. Therefore, a fully specified pipeline configuration Pθ∈PΘPθ∈PΘ determines the selection of algorithms P∈PP∈P and their corresponding hyperparameters θ∈Θθ∈Θ. Why not use survival analysis? Some readers might have noticed that our problem formalism is similar to survival analysis, which also deals with time-varying outcome (survival) and considers censored data. When developing CPAS, we have considered this class of models. In fact, we have used the Cox proportional hazard model as a baseline benchmark (see Sect. 4). However, two factors discouraged us from further pursuing survival models. Firstly, the available implementations of survival models are not as abundant as classifiers and they are often immature for industrial scale applications. Secondly, many modern machine-learning powered survival models do not make the proportional hazards assumption (Pölsterl et al. 2016; Van Belle et al. 2011; Hothorn et al. 2006). The expense of relaxing assumption is that these models are often not able to estimate the full survival function and measure the absolute risk at a given time. There are recent works in survival analysis trying to address this issue (Lee et al. 2019), but it is still an open research area. Training the individualized risk predictor In training, we need to find the best pipeline configuration P∗θ∗∈PΘPθ∗∗∈PΘ that empirically minimizes the J-fold cross-validation loss: P∗θ∗=argminPθ∈PΘ∑j=1JL(Pθ, DPN,t[Train(j)], DPN,t[Val(j)]),Pθ∗∗=argminPθ∈PΘ∑j=1JL(Pθ, DN,tP[Train(j)], DN,tP[Val(j)]), (9) where LL is the loss function (e.g. Brier score), and DPN,t[Train(j)]DN,tP[Train(j)] and DPN,t[Val(j)]DN,tP[Val(j)] are the training and validation splits of the patient-level dataset DPN,tDN,tP. Note that this is a very hard optimization problem due to three facts (1) the space of all pipeline configurations PΘPΘ has very high dimension, (2) the pipeline stages interact with each other and prevents the problem from being easily decomposable, and (3) evaluating the loss function via cross validation is a time-consuming operation. Instead of relying on heuristics, we apply the state-of-the-art automated machine learning tool AutoPrognosis to configure all stages of the pipeline jointly (Alaa and van der Schaar 2018). AutoPrognosis is based on Bayesian optimization (BO), an optimization framework that has achieved remarkable success in optimizing black-box functions with costly evaluations as compared to simpler approaches such as grid and random search (Snoek et al. 2012). The BO algorithm used by AutoPrognosis implements a sequential exploration-exploitation scheme in which balance is achieved between exploring the predictive power of new pipelines and re-examining the utility of previously explored ones. To deal with high-dimensionality, AutoPrognosis models the “similarities” between the pipelines’ constituent algorithms via a sparse additive kernel with a Dirichlet prior. When applied to related prediction tasks, AutoPrognosis can also be warm-started by calibrating the priors using an meta-learning algorithm that mimics the empirical Bayes method, further improving the speed. For more technical details, we refer the readers to Alaa and van der Schaar (2018). The AutoPrognosis framework has been successfully applied to building prognostic models for Cystic Fibrosis and Cardiovascular Disease (Alaa and van der Schaar 2018; Alaa et al. 2019). Implemented as a Python module, it supports 7 imputation algorithms, 14 feature processing algorithms, 20 classification algorithms, and 3 calibration methods; a design space which corresponds to a total of 5,880 pipelines. We selected a subset of most commonly used and well-understood algorithms for CPAS (Table 1), all of which have achieved considerable success in machine learning applications. TREND FORECAST USING HIERARCHICAL GAUSSIAN PROCESS WITH COMPARTMENTAL PRIOR CPAS uses a hierarchical Gaussian process with compartmental prior (HGPCP) to forecast the trend of hospital admission. HGPCP is a Bayesian model that combines the data-driven Gaussian processes (GP) and the domain-specific compartmental models (Li and Muldowney 1995; Rasmussen 2003). The compartmental model is a family of time-honoured mathematical models designed by domain experts to model epidemics (Kermack and McKendrick 1927). We use a specific version to model hospital admission (Hethcote 2000; Osemwinyen and Diakhaby 2015). As illustrated in Fig. 3, the compartmental model partitions the whole population containing ChCh individuals into disjoint compartments: Susceptible Sh(t)Sh(t), Exposed Eh(t)Eh(t), Infectious Ih(t)Ih(t), Hospitalized Hh(t)Hh(t), and Recovered or died outside hospital Rh(t)Rh(t), for ∀h≤N∀h≤N. At any moment in time, the sum of all compartments is equal to the size of the population i.e. Sh(t)+Eh(t)+Ih(t)+Hh(t)+Rh(t)=ChSh(t)+Eh(t)+Ih(t)+Hh(t)+Rh(t)=Ch for ∀t>0∀t>0. As the pandemic unfolds, the sizes of the compartments change according to the following differential equations: dShdtdHhdt=−βh(t)ShIh,dEhdt=βh(t)ShIh−αhEh,dIhdt=αhEh−γhIh,=ηhγhIh,dRhdt=(1−ηh)γhIh,dShdt=−βh(t)ShIh,dEhdt=βh(t)ShIh−αhEh,dIhdt=αhEh−γhIh,dHhdt=ηhγhIh,dRhdt=(1−ηh)γhIh, (10) where αhαh, γhγh, ηhηh are hospital-specific parameters describing various aspects of the pandemic, and βh(t)βh(t) is the contact rate parameter that varies across hospitals and time. Among all the parameters, the contact rate βh(t)βh(t) is of special importance for two reasons: (1) βh(t)βh(t) is the coefficient of the only non-linear term in the equation: Sh⋅IhSh⋅Ih. Therefore the nonlinear dynamics of the system heavily depends on βh(t)βh(t). (2) The contact rate changes over time according to how much people travel and communicate. It is therefore heavily influenced by the various intervention policies. Fig. 3 Pictorial illustration of HGPCP. Left to right: The upper-layer GP f(⋅)f(⋅) models the contact rate βh(t)βh(t) based on community mobility Mh(t)Mh(t). The compartmental model gives the deterministic trajectory of the five compartments based on βh(t)βh(t). The lower layer GP uses the hospitalized compartment Hh(t)Hh(t) as prior and predicts the hospital admission Full size image To model the time-varying contact rate, the upper layer of HGPCP utilizes a function f drawn from a GP prior with mean μμ and covariance kernel Kφ(⋅,⋅)Kφ(⋅,⋅). The function f maps community mobility Mh(t)Mh(t) to the time-varying contact rate βh(t)βh(t) as follows: f∼GP(μ,Kφ(⋅,⋅)),βh(t)=f(Mh(t)),f∼GP(μ,Kφ(⋅,⋅)),βh(t)=f(Mh(t)), (11) where μμ and φφ are hyperparameters of the GP. It is worth noticing that the upper layer of HGPCP is shared across hospitals. With the contact rate given by Eq. 11, the differential Eq. (10) can be solved to obtain the trajectory of all compartments. We used Euler’s method (Hutzenthaler et al. 2011) to solve these equations but other solvers are possible. The lower layer of HGPCP consists of N independent GPs that use the hospitalized compartment Hh(t)Hh(t) as a prior mean function and predicts hospital admissions over time: gh∼GP(Hh(t),Kφ′h(⋅,⋅)),Ah(t)=gh(t),∀h≤Ngh∼GP(Hh(t),Kφh′(⋅,⋅)),Ah(t)=gh(t),∀h≤N (12) where φ′φ′ denotes the kernel hyperparameters. We use the radial basis function as the kernel for both upper and lower layers. Combining Eqs. 10, 11, and 12, the prediction problem (6) can be formulated in the following posterior predictive distribution: Aˆh[t:t+T]=∫P(Ah[t:t+T]∣∣Ah[1:t],Hh)Lower layer GP⋅P(Hh∣∣βh,θh)Compartmental modeldP(βh∣∣DAN,t,Mh[t:t+T])Upper layer GPP(θh),A^h[t:t+T]=∫P(Ah[t:t+T]|Ah[1:t],Hh)⏟Lower layer GP⋅P(Hh|βh,θh)⏟Compartmental modeldP(βh|DN,tA,Mh[t:t+T])⏟Upper layer GPP(θh), (13) where Hh:={Hh(1),…,Hh(t+T)}Hh:={Hh(1),…,Hh(t+T)}, βh:={βh(1),…,βh(t+T)}βh:={βh(1),…,βh(t+T)}, and θh=(αh,γh,ηh,φ′h)θh=(αh,γh,ηh,φh′). In this equation, the GP posterior terms can be computed analytically (Rasmussen 2003) while the compartmental model term has no closed form solution due to its nonlinearity. Therefore, we evaluate the integral via Monte Carlo approximation and derive the mean and quantiles from the Monte Carlo samples. What is the advantage over a standard GP? Compared with a standard zero-mean GP, HGPCP is able to use the domain knowledge encoded in the compartmental models to inform the prediction. Since the spread of a pandemic is a highly non-stationary process — after the initial phase of exponential growth, the trend flattens and gradually reaches saturation, extrapolating observed data without considering the dynamics of the pandemic spread is likely to be misleading. The injection of domain knowledge is especially helpful at the early stage of the pandemic where little data are available. What is the advantage over a compartmental model? Compared with the compartmental models, HGPCP uses the GP posterior to make prediction in a data-driven way. Since HGPCP only uses the compartmental trajectories as a prior, it is less prone to model mis-specifications. Moreover, HGPCP is able to quantify prediction uncertainties in a principled way by computing the predictive posterior, whereas the compartmental models can only produce trajectories following deterministic equations. In capacity planning applications, the ability to quantify uncertainty is especially important. Training HGPCP So far, we have assumed that the hyperparameters α=(φ,μ)α=(φ,μ) of the upper layer GP are given. In practice, we optimize these hyperparameters by maximizing the log-likelihood function on the training data DAN,tDN,tA: L(DAN,t|α):=log∫∏h=1NP(Ah[1:t]∣∣Hh)⋅P(Hh∣∣Mh[1:t],α)dHh,L(DN,tA|α):=log∫∏h=1NP(Ah[1:t]|Hh)⋅P(Hh|Mh[1:t],α)dHh, (14) and α∗=argmaxαL(DAN,t|α)α∗=argmaxαL(DN,tA|α). Since the integral in (14) is intractable, we resort to a variational inference approach for optimizing the model’s likelihood (Ranganath et al. 2014; Wingate and Weber 2013). That is, we maximize the evidence lower bound (ELBO) on (14) given by: ELBOi(α,ϕ)=EQ[logP(Ah[1:t],Hh∣∣α)−logQ(Hh∣∣Ah[1:t],ϕ)], ELBOi(α,ϕ)=EQ[logP(Ah[1:t],Hh|α)−logQ(Hh|Ah[1:t],ϕ)], where Q(.)Q(.) is the variational distribution parameterized by ϕϕ with conditioning on Mh[1:t]Mh[1:t] omitted for notational brevity. We choose a Gaussian distribution for Q(.)Q(.), which simplifies the evaluation the ELBO objective and its gradients. We use stochastic gradient descent via the ADAM algorithm to optimize the ELBO objective (Kingma and Ba 2014). The trained HGPCP model can issue forecasts on hospital level. To obtain regional or national level forecast, denote the set of hospitals in the region r as HrHr, and the regional forecast is obtained by taking summation of the constituent hospitals i.e. Aˆr(t)=∑h∈HrAˆh(t)A^r(t)=∑h∈HrA^h(t) for ∀t∈(0,T]∀t∈(0,T]. AGENT-BASED SIMULATION The individualized risk predictor can be used to predict the ICU demand caused by the patients who are currently staying in the hospital and whose features XiXi are known. However, the total ICU demand is also driven by the patients arriving at the hospital in the future whose features are currently unknown. From discussions with the stakeholders, we understand that the ICU demands from future patients are especially important for setting up new hospital wards. CPAS uses agent-based simulation (Railsback et al. 2006) to perform scenario analysis for future patients. To estimate the ICU demand caused by future patients, we need to answer two questions: (1) how many new patients will be admitted to the hospital in the future? and (2) what will be the risk profile of these patients? The aggregated trend forecaster is precisely designed to answer the first question whereas the individualized risk predictor can answer the second question if the patient features were known. We can use the empirical joint feature distribution of the existing patients to approximate the distribution of the future patients. The empirical feature distribution is defined as p^(X)=∑NPj=1I(Xj=X)/NPp^(X)=∑j=1NPI(Xj=X)/NP, where I(⋅)I(⋅) is the indicator function, Xj∈RDXj∈RD are the observed feature vectors and NpNp is the number of patients in the region of interest. The algorithm is detailed in Algorithm 1. The simulator takes two sets of user inputs. The user first specifies the level of resolution (hospital, regional, or national) and chooses what hospital or region to examine from a drop down list. Next, the user specifies the future community mobility trend M(t) to reflect the government plan to maintain or easy social distancing. The default value of M(t) is a constant value given by the average over the last seven days. In the simulation the aggregated trend forecaster first generates a forecast of daily hospital admissions A(t). It then generates a patient cohort with A(t) patients arriving at the hospital on day t, whose features are sampled from distribution p^(X)p^(X). Next, the individualized risk predictor PτθPθτ obtains the calibrated ICU admission risk on the ττ-th day after hospital admission. Based on the risk scores, we take a Monte Carlo sample to decided when each patient will be admitted to ICU and update the total ICU inflow accordingly. The above procedure can be repeated many times to obtain the Monte Carlo estimate of variation in ICU inflow. The ICU outflow due to discharge or death as well as ventilator usage can be derived in a similar fashion, and is omitted for brevity. TRAINING AND DEPLOYING CPAS DATASET CPAS relies on three distinct sources of patient-level data, each covering a unique aspect of patient health condition (Fig. 4). CPAS also makes use of community mobility trend data to issue aggregated trend forecast. The details of these data sources are described in the following sub-sections. The summary statistics of the data sets as of May 20th20th are shown in Fig. 4. Fig. 4 Illustration of the CPAS datasets and the training set up. a CHESS and ICNARC data are joined and linked to HES to form the hospital patient data (18,101 cases) and the ICU patient data (10,868 cases). AutoPrognosis uses these two patient level datasets to train the various predictive pipelines in the individualized risk predictor. The aggregated hospital admission data together with the community mobility data empowers HGPCP to forecast the trend of admission. b The daily hospital admission, ICU admission, fatalities and discharges as recorded in the CPAS data set. c The prevalence of comorbidities and complications of hospitalized COVID-19 patients Full size image COVID-19 HOSPITALIZATIONS IN ENGLAND SURVEILLANCE SYSTEM (CHESS) COVID-19 Hospitalizations in England surveillance system (CHESS) is a surveillance scheme for monitoring hospitalized COVID-19 patients. The scheme has been created in response to the rapidly evolving COVID-19 outbreak and has been developed by Public Health England (PHE). It has been designed to monitor and estimate the impact of COVID-19 on the population in a timely fashion, to identify those who are most at risk and evaluate the effectiveness of countermeasures. CPAS uses the de-identified CHESS data updated daily from 8th February (data collection start), which records COVID-19 related hospital and ICU admissions from 94 NHS trusts across England. The data set features comprehensive information on patients’ general health condition, COVID-19 specific risk factors (e.g. comorbidities), basic demographic information (age, sex, etc.), and tracks the entire patient treatment journey: when each patient was hospitalized, whether they were admitted to the ICU, what treatment (e.g. ventilation) they received, and their mortality or discharge outcome. INTENSIVE CARE NATIONAL AUDIT AND RESEARCH CENTRE DATABASE (ICNARC) Intensive care national audit & research centre (ICNARC) maintains a database on patients critically ill with confirmed COVID-19. The data are collected from ICUs participating in the ICNARC Case Mix Programme (covering all NHS adult, general intensive care and combined intensive care/high dependency units in England, Wales and Northern Ireland, plus some additional specialist and non-NHS critical care units). CPAS uses the de-identified ICNARC data which contains detailed measurements of ICU patients’ physiological status (PaO2/FiO2 ratio, blood pH, vital signals, etc.) in the first 24 hours of ICU admission. It also records each patient’s organ support status (respiratory support, etc). ICNARC therefore provides valuable information about the severity of patient condition. HOSPITAL EPISODE STATISTICS (HES) Hospital Episode Statistics (HES) is a database containing details of all admissions, A and E attendances and outpatient appointments at NHS hospitals in England. We retrieve HES records for patients admitted to hospital due to COVID-19. While the HES record contains a wide range of information about an individual patient, CPAS only makes use of the clinical information about disease diagnosis. All other information is discarded during the data linking process to maximally protect privacy. HES is a valuable data source because it provides comprehensive and accurate information about patients’ pre-existing medical conditions, which are known to influence COVID-19 mortality risk. COMMUNITY MOBILITY REPORTS In addition to the above patient-level data, we also used the COVID-19 Community Mobility Reports produced by Google (Google 2020). The dataset tracks the movement trends over time by geography, across six different categories of places including (1) retail and recreation, (2) groceries and pharmacies, (3) parks, (4) transit stations, (5) workplaces, and (6) residential areas, resulting in a K=6K=6 dimensional time series of community mobility. It reflects the change in people’s behaviour in response to the social distancing policies. We use this dataset to inform the prediction of contact rates over time. The dataset is updated daily starting from the onset of the pandemic. TRAINING PROCEDURE By linking the three patient-level data sources described in the last section, we create two data sets containing hospitalized and ICU patients respectively (Fig. 4). For the ICU patients, we use AutoPrognosis to train three sets of models for mortality prediction, discharge prediction and ventilation prediction over a maximum time horizon of 30 days. For hospitalized patients, we carry out a similar routine to train predictors for ICU admission. All the AutoPrognosis pipelines are then deployed to form the individualized risk predictor in CPAS. Furthermore, we aggregate the patient-level data to get the daily hospital admission on hospital level. The data set is then combined with the community mobility report data to train the aggregated trend forecaster. To make sure CPAS uses the most up-to-date information, we retrain all models in CPAS daily. The re-training process is automatically triggered whenever a new daily batch of CHESS or ICNARC arrives. Data linking and pre-processing is carried out on a Spark cluster with 64 nodes, and usually takes less than an hour to complete. After that, model training is performed on a HPC cluster with 116 CPU cores and 348 GB memory, and typically finishes within three hours. Finally, the trained models are deployed to the production server and the older model files are archived. EVALUATION AND PERFORMANCE MONITORING OFFLINE EVALUATION In the offline evaluation, we first validated two hypothesis about the individualized risk predictor: (1) using additional patient features improves risk prediction and (2) the AutoPrognosis pipeline significantly outperforms the baseline algorithms. We performed 10-fold cross validation on the data available as of March 30 (with 1200 patients in total) and evaluated the AUC-ROC score on the τ=7τ=7 day risk prediction. We compared AutoPrognosis to two benchmarks that are widely used in clinical research and Epidemiology: the Cox proportional hazard model (Cox 1972) and the Charlson comorbidity index (Charlson et al. 1994). The results are shown in Table 2. We can clearly see that there is a consistent gain in predictive performance when more features are included in the AutoPrognosis model and AutoPrognosis significantly outperforms the two benchmarks. Table 2 Performance in forecasting individualized risk profile using different feature sets and algorithms measured by AUC-ROC Full size table Next, we turned to the aggregated trend forecaster and validated the following two hypothesis: (1) HGPCP outperforms the zero-mean GP due to a more sensible prior (the compartmental model), and (2) HGPCP outperforms the compartmental model because GP reduces the risk of model mis-specification. We evaluate the accuracy of the 7-day projections issued at three stages of the pandemic: before the peak of infections (March 23), in the midst of the peak (March 30), and in the “plateauing” stage (April 23). Accuracy was evaluated by computing the mean absolute error between true and predicted daily hospital admission throughout the forecasting horizon, i.e., ∑7t=1|Ah(t)−Aˆh(t)|/7∑t=17|Ah(t)−A^h(t)|/7. In Table 3 we report the performance for the five hospitals with most COVID-19 patients as well as the national level projection produced by aggregating all hospital level forecasts. We observe that HGPCP consistently outperforms the benchmarks on the national level across different stages of the pandemic. HGPCP also performs well on hospital level where the day-to-day fluctuation of ICU admission is bigger. Table 3 Performance in forecasting hospital admission Full size table ONLINE MONITORING It is vital to continuously monitor the performance after a machine-learning system is deployed. This is to prevent two possible scenarios (1) the gradual change in feature distribution worsens the predictive performance and (2) the breaking change in the upstream data pipelines causes data quality issues. Therefore, we always validate the model using a held-out set and record the performance whenever a model is re-trained. We have automated this process as part of the training procedure and developed a dashboard to visually track the performance over time. ILLUSTRATIVE USE CASE Here we present an illustrative use case to demonstrate how CPAS works in real life. In this example, we show how the management of a particular hospital located in central London can use CPAS to plan ICU surge capacity for future patients before the peak of COVID-19. On March 23th, the hospital’s ICU capacity had almost been fully utilized, but the pandemic had not yet reached the peak (refer to Fig. 4). The hospital management was desperate to know how many more patients would be admitted to the hospital and to the ICU in the coming weeks. They were planning to convert some of the existing general wards into ICU wards and, if necessary, to send some of the patients to the Nightingale hospital, a hospital specially constructed to support all NHS London hospitals in the surge of COVID-19 (NHS 2020c). CPAS could help the management to estimate how many general wards to convert and how many patients to transfer. Fig. 5 The configuration interface of CPAS. The user enters the desired level of resolution and the region of interest. The user then inputs the assumed trend for future community mobility. The empirical feature distribution in the region of interest is displayed below for reference Full size image Fig. 6 The output interface of CPAS. CPAS displays the projected ICU demand with confidence intervals on the top. It then shows the intermediate prediction that leads to the projections. On the bottom-left, it shows the output of the aggregated trend forecaster. On the bottom-right, it shows the average risk profile for various outcomes given by the individualized risk predictor Full size image Figure 5 presents the input interface of CPASFootnote 1. The user first informed the system that the simulation should be performed on hospital level. Since the peak of the pandemic had not occurred yet on March 23th, it is reasonable to assume that the lockdown would continue and the community mobility would maintain at the lockdown level. Therefore, the user selected the Extrapolation - Constant option for the community mobility trend. Alternatively, the user can specify their own community mobility projections by selecting User-defined in the drop down and upload a file with the forecast numbers. CPAS displays the estimated feature distribution in the region of interest in the “Patient Cohort” section for reference. The result of the simulation is shown in Fig. 6. The panel on the top projects that the ICU demand in the hospital would increase over the next two weeks as the pandemic progresses. The ICU capacity for thirty-five additional patients will be needed by mid April with the best scenario of 20 patients and the worst scenario of 50 patients. In reality, the hospital admitted 42 patients to the ICU in this period, which falls within the 95% confidence region given by CPAS. With this estimation, the management decided that the hospital could cope with the surge by converting existing general wards into ICU wards, and there was probably no need to transfer patients to the Nightingale hospital. This also turned out to be the case in reality. The ICU demand projection above is driven by the aggregated hospital admission forecast (Fig. 6 bottom left), which predicts a steady increase of hospital admissions (around 50 per day) until early April when the trend starts to decline. The decline in admissions is caused by the social distancing policy and the lowered community mobility, which are assumed to persist throughout the simulation. The projection is also driven by the predictions of individual risk profiles. The plot on bottom right shows the average risk profile of the patient cohort. There is significant risk for ICU admission from the first day of hospitalization, whereas the risk for death and discharge increases over time starting from a small value. By presenting these intermediate results, CPAS shows more transparency in the overall ICU demand projection. LESSONS LEARNED AI and machine learning have certainly not moved slowly in bringing seismic change to countless areas including retail, logistics, advertising, and software development. But in healthcare, there is still great unexploited potential for systematic change and fundamental innovation. As in the CPAS project, we can use AI and machine learning to empower medical professionals by enhancing the guidance and information available to them. Collaboration is one of the most important aspects of straddling the divide between machine learning research and healthcare applications. In the CPAS project, we work closely with clinicians and stakeholders because they bring in domain expertise to inform the formulation of the problem and the design of the system. Effective collaboration is a challenge as we are all highly specialized in our respective areas, with different ways of thinking and different professional languages and approaches. As a result, we must each make extra effort to reach the middle ground. But it’s a fascinating and invigorating way to work. Listening to clinicians and stakeholders can guide us to where problems and challenges actually lie, and then we can start being creative in trying to solve them. We found it is particularly helpful to build prototypes rapidly and get timely feedback from the collaborators. Each prototype should clearly demonstrate what can be achieved and what assumptions are made. We can then iteratively find out what functionalities we should focus on most and what we can assume about the problem. Linking and accessing data is another challenge in healthcare applications. In the CPAS project, we first surveyed the potential data sources and understand the associated cost, which includes the financial cost, the waiting time for approval, the engineering cost, and so on. After a thorough discussion with the collaborators, we prioritized what data to acquire first. It is often practical to start out with a single easy-to-access data source, and then expand the data sources as the system gets more adoption. The success of CPAS is greatly facilitated by the solid data infrastructure in the UK’s healthcare system. Initiatives such as CHESS play a vital role in the data-driven response to the pandemic. Transparency and interpretability are crucial for high-stake machine learning applications. The reality is that most machine learning models can’t be used as-is by medical professionals because, on their own, they are black boxes that are hard for the intended users to apply, understand, and trust. While interpretable machine learning (Ahmad et al. 2018) is still an open research area, CPAS explored two practical approaches to make a machine learning system more interpretable. The first approach is to break down the problem into a set of sub-problems. This divide-and-conquer approach allows the users to understand how the final answer is derived from the smaller problems. The second approach is to let the users autonomously explore different scenarios using simulation rather than presenting the results as the only possible answer. Scenario analysis also allows the uses to understand the level of uncertainty and sensitivity of the machine learning predictions. Last but equally importantly, automated machine learning is a powerful tool for building large and complex machine learning systems. Most machine learning models cannot be easily used off-the-shelf with the default hyperparameters. Moreover, there are many machine learning algorithms to choose from, and selecting which one is best in a particular setting is non-trivial – the results depend on the characteristics of the data, including number of samples, interactions among features and among features and outcomes, as well as performance metrics used. In addition, in any practical application, we need entire processing pipelines which involve imputation, feature selection, prediction, and calibration. AutoML is essential in order to enable machine learning to be applied effectively and at scale given the complexities stated above. In CPAS, we used AutoML to generate a large number of machine learning models with minimum manual tweaking. AutoML not only helps the CPAS models to issue more accurate predictions but also saves the developers manual work so that we can focus on the design and modelling aspects. In the future, we will also explore the usage of AutoML to address the temporal shift in the feature distribution (Zhang et al. 2019), and to model time series collected in the clinical setting (van der Schaar et al. 2020). NOTES 1. All figures presented in this section are based on developmental versions of CPAS. They are for illustrative purposes only and do not represent the actual “look-and-feel” of CPAS in production. REFERENCES * Ahmad, M. A., Eckert, C., & Teredesai, A. (2018). Interpretable machine learning in healthcare. In Proceedings of the 2018 ACM international conference on bioinformatics, computational biology, and health informatics (pp. 559–560). * Alaa, A., & van der Schaar, M. (2018). Autoprognosis: Automated clinical prognostic modeling via bayesian optimization with structured kernel learning. In International conference on machine learning (pp. 139–148). * Alaa, A. M., Bolton, T., Di Angelantonio, E., Rudd, J. H., & van der Schaar, M. (2019). Cardiovascular disease risk prediction using automated machine learning: A prospective study of 423,604 uk biobank participants. PloS one, 14(5), e0213653. Article Google Scholar * Alaa, A. M., & van der Schaar, M. (2018). Prognostication and risk factors for cystic fibrosis via automated machine learning. Scientific Reports, 8(1), 1–19. Article Google Scholar * Bedford, J., Enria, D., Giesecke, J., Heymann, D. L., Ihekweazu, C., Kobinger, G., et al. (2020). Covid-19: Towards controlling of a pandemic. The Lancet, 395(10229), 1015–1018. Article Google Scholar * Buuren, S. v., & Groothuis-Oudshoorn, K. (2010). mice: Multivariate imputation by chained equations in r. Journal of statistical software 1–68. * Charlson, M., Szatrowski, T. P., Peterson, J., & Gold, J. (1994). Validation of a combined comorbidity index. Journal of clinical epidemiology, 47(11), 1245–1251. Article Google Scholar * Chen, T., & Guestrin, C. (2016). Xgboost: A scalable tree boosting system. In Proceedings of the 22nd acm sigkdd international conference on knowledge discovery and data mining (pp. 785–794). * Chernick, M. R., González-Manteiga, W., Crujeiras, R. M., & Barrios, E. B. (2011). Bootstrap methods * Cox, D. R. (1972). Regression models and life-tables. Journal of the Royal Statistical Society: Series B (Methodological), 34(2), 187–202. MathSciNet MATH Google Scholar * De Leeuw, J. (1977). Correctness of kruskal’s algorithms for monotone regression with ties. Psychometrika, 42(1), 141–144. MathSciNet Article Google Scholar * Google. (2020). Covid-19 community mobility. Retrieved July 4, 2020 from, https://www.google.com/covid19/mobility/. * Guyon, I., Weston, J., Barnhill, S., & Vapnik, V. (2002). Gene selection for cancer classification using support vector machines. Machine Learning, 46(1–3), 389–422. Article Google Scholar * Hethcote, H. W. (2000). The mathematics of infectious diseases. SIAM Review, 42(4), 599–653. MathSciNet Article Google Scholar * Hinton, G. E. (1990). Connectionist learning procedures. In Machine Learning (pp. 555–610). Elsevier. * Hothorn, T., Bühlmann, P., Dudoit, S., Molinaro, A., & Van Der Laan, M. J. (2006). Survival ensembles. Biostatistics, 7(3), 355–373. Article Google Scholar * Hutter, F., Kotthoff, L., & Vanschoren, J. (2019). Automated machine learning: Methods, systems, challenges. Berlin: Springer. Book Google Scholar * Hutzenthaler, M., Jentzen, A., & Kloeden, P. E. (2011). Strong and weak divergence in finite time of euler’s method for stochastic differential equations with non-globally lipschitz continuous coefficients. Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences, 467(2130), 1563–1576. MathSciNet Article Google Scholar * Hyvarinen, A. (1999). Fast ica for noisy data using gaussian moments. In 1999 IEEE international symposium on circuits and systems (ISCAS) (Vol. 5, pp. 57–61). IEEE. * Kermack, W. O., & McKendrick, A. G. (1927). A contribution to the mathematical theory of epidemics. Proceedings of the Royal Society of london Series A, Containing Papers of a Mathematical and Physical Character, 115(772), 700–721. MATH Google Scholar * Kingma, D. P., & Ba, J. (2014). Adam: A method for stochastic optimization. Preprint arXiv:14126980 * Kotthoff, L., Thornton, C., Hoos, H. H., Hutter, F., & Leyton-Brown, K. (2017). Auto-weka 2.0: Automatic model selection and hyperparameter optimization in weka. The Journal of Machine Learning Research, 18(1), 826–830. MathSciNet Google Scholar * Lee, C., Zame, W., Alaa, A., & Schaar, M. (2019). Temporal quilting for survival analysis. In The 22nd international conference on artificial intelligence and statistics (pp. 596–605). * Liaw, A., Wiener, M., et al. (2002). Classification and regression by randomforest. R News, 2(3), 18–22. Google Scholar * Li, M. Y., & Muldowney, J. S. (1995). Global stability for the seir model in epidemiology. Mathematical Biosciences, 125(2), 155–164. MathSciNet Article Google Scholar * NHS. (2020a). Health careers in intensive care medicine. Retrieved July 4, 2020 from, https://www.healthcareers.nhs.uk/explore-roles/doctors/roles-doctors/intensive-care-medicine. * NHS. (2020b). Intensive care. Retrieved July 4, 2020 from, https://www.nhs.uk/conditions/Intensive-care/. * NHS. (2020c). Nhs nightingale london hospital. Retrieved July 4, 2020 from, http://www.bartshealth.nhs.uk/nightingale. * NHS. (2020d). Trials begin of machine learning system to help hospitals plan and manage covid-19 treatment resources developed by nhs digital and university of cambridge. Retrieved June 28, 2020 from, https://digital.nhs.uk/news-and-events/news/trials-begin-of-machine-learning-system-to-help-hospitals-plan-and-manage-covid-19-treatment-resources-developed-by-nhs-digital-and-university-of-cambridge. * Osemwinyen, A. C., & Diakhaby, A. (2015). Mathematical modelling of the transmission dynamics of ebola virus. Applied and Computational Mathematics, 4(4), 313–320. Article Google Scholar * Platt, J., et al. (1999). Probabilistic outputs for support vector machines and comparisons to regularized likelihood methods. Advances in Large Margin Classifiers, 10(3), 61–74. Google Scholar * Pölsterl, S., Navab, N., & Katouzian, A. (2016). An efficient training algorithm for kernel survival support vector machines. Preprint arXiv:161107054 * Railsback, S. F., Lytinen, S. L., & Jackson, S. K. (2006). Agent-based simulation platforms: Review and development recommendations. Simulation, 82(9), 609–623. Article Google Scholar * Ranganath, R., Gerrish, S., & Blei, D. (2014). Black box variational inference. In Artificial Intelligence and Statistics (pp. 814–822). * Rasmussen, C. E. (2003). Gaussian processes in machine learning. In Summer School on Machine Learning (pp. 63–71). Springer. * Snoek, J., Larochelle, H., & Adams, R. P. (2012). Practical bayesian optimization of machine learning algorithms. In Advances in neural information processing systems (pp. 2951–2959). * Stekhoven, D. J., & Bühlmann, P. (2012). Missforest–non-parametric missing value imputation for mixed-type data. Bioinformatics, 28(1), 112–118. Article Google Scholar * Van Belle, V., Pelckmans, K., Suykens, J. A., & Van Huffel, S. (2011). Learning transformation models for ranking and survival analysis. Journal of Machine Learning Research, 12(3). * van der Schaar, M., Yoon, J., Qian, Z., Jarrett, D., & Bica, I. (2020). clairvoyance alpha: the first unified end-to-end automl pipeline for time-series data. Retrieved July 4, 2020 from, https://www.vanderschaar-lab.com/clairvoyance-alpha-the-first-unified-end-to-end-automl-pipeline-for-time-series-data/. * Wingate, D., & Weber, T. (2013). Automated variational inference in probabilistic programming. Preprint arXiv:13011299 * Yoon, J., Jordon, J., & Van Der Schaar, M. (2018). Gain: Missing data imputation using generative adversarial nets. In International conference on machine learning (ICML). * Zhang, Y., Jordon, J., Alaa, A. M., & van der Schaar, M. (2019). Lifelong bayesian optimization. Preprint arXiv:190512280. * Zou, H., & Hastie, T. (2005). Regularization and variable selection via the elastic net. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 67(2), 301–320. MathSciNet Article Google Scholar Download references ACKNOWLEDGEMENTS We thank Professor Jonathan Benger, Chief Medical Officer of NHS Digital, Dr. Jem Rashbass, Executive Director of Master Registries and Data at NHS Digital, Emma Summers, Programme Delivery Lead at NHS Digital, and the colleagues from NHS Digital and Public Health England for their tremendous support in providing datasets, computation environment, and domain expertise. AUTHOR INFORMATION AUTHORS AND AFFILIATIONS 1. University of Cambridge, Cambridge, UK Zhaozhi Qian & Mihaela van der Schaar 2. University of California, Los Angeles, USA Ahmed M. Alaa & Mihaela van der Schaar 3. The Alan Turing Institute, London, UK Mihaela van der Schaar Authors 1. Zhaozhi Qian View author publications You can also search for this author in PubMed Google Scholar 2. Ahmed M. Alaa View author publications You can also search for this author in PubMed Google Scholar 3. Mihaela van der Schaar View author publications You can also search for this author in PubMed Google Scholar CORRESPONDING AUTHOR Correspondence to Zhaozhi Qian. ETHICS DECLARATIONS CONFLICT OF INTEREST The authors declare that they have no conflict of interest. ADDITIONAL INFORMATION PUBLISHER'S NOTE Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Editor: Hendrik Blockeel. 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/. Reprints and Permissions ABOUT THIS ARTICLE CITE THIS ARTICLE Qian, Z., Alaa, A.M. & van der Schaar, M. CPAS: the UK’s national machine learning-based hospital capacity planning system for COVID-19. Mach Learn 110, 15–35 (2021). https://doi.org/10.1007/s10994-020-05921-4 Download citation * Received: 13 July 2020 * Revised: 05 September 2020 * Accepted: 26 September 2020 * Published: 24 November 2020 * Issue Date: January 2021 * DOI: https://doi.org/10.1007/s10994-020-05921-4 SHARE THIS ARTICLE Anyone you share the following link with will be able to read this content: Get shareable link Sorry, a shareable link is not currently available for this article. Copy to clipboard Provided by the Springer Nature SharedIt content-sharing initiative KEYWORDS * Automated machine learning * Gaussian processes * Compartmental models * Resource planning * Healthcare * COVID-19 Download PDF * Sections * Figures * References * Abstract * Introduction * CPAS: a system for ICU capacity planning * Training and deploying CPAS * Evaluation and performance monitoring * Illustrative use case * Lessons learned * Notes * References * Acknowledgements * Author information * Ethics declarations * Additional information * Rights and permissions * About this article Advertisement * Fig. 1 View in articleFull size image * Fig. 2 View in articleFull size image * Fig. 3 View in articleFull size image * Fig. 4 View in articleFull size image * Fig. 5 View in articleFull size image * Fig. 6 View in articleFull size image 1. Ahmad, M. A., Eckert, C., & Teredesai, A. (2018). Interpretable machine learning in healthcare. In Proceedings of the 2018 ACM international conference on bioinformatics, computational biology, and health informatics (pp. 559–560). 2. Alaa, A., & van der Schaar, M. (2018). Autoprognosis: Automated clinical prognostic modeling via bayesian optimization with structured kernel learning. In International conference on machine learning (pp. 139–148). 3. Alaa, A. M., Bolton, T., Di Angelantonio, E., Rudd, J. H., & van der Schaar, M. (2019). Cardiovascular disease risk prediction using automated machine learning: A prospective study of 423,604 uk biobank participants. PloS one, 14(5), e0213653. Article Google Scholar 4. Alaa, A. M., & van der Schaar, M. (2018). Prognostication and risk factors for cystic fibrosis via automated machine learning. Scientific Reports, 8(1), 1–19. Article Google Scholar 5. Bedford, J., Enria, D., Giesecke, J., Heymann, D. L., Ihekweazu, C., Kobinger, G., et al. (2020). Covid-19: Towards controlling of a pandemic. The Lancet, 395(10229), 1015–1018. Article Google Scholar 6. Buuren, S. v., & Groothuis-Oudshoorn, K. (2010). mice: Multivariate imputation by chained equations in r. Journal of statistical software 1–68. 7. Charlson, M., Szatrowski, T. P., Peterson, J., & Gold, J. (1994). Validation of a combined comorbidity index. Journal of clinical epidemiology, 47(11), 1245–1251. Article Google Scholar 8. Chen, T., & Guestrin, C. (2016). Xgboost: A scalable tree boosting system. In Proceedings of the 22nd acm sigkdd international conference on knowledge discovery and data mining (pp. 785–794). 9. Chernick, M. R., González-Manteiga, W., Crujeiras, R. M., & Barrios, E. B. (2011). Bootstrap methods 10. Cox, D. R. (1972). Regression models and life-tables. Journal of the Royal Statistical Society: Series B (Methodological), 34(2), 187–202. MathSciNet MATH Google Scholar 11. De Leeuw, J. (1977). Correctness of kruskal’s algorithms for monotone regression with ties. Psychometrika, 42(1), 141–144. MathSciNet Article Google Scholar 12. Google. (2020). Covid-19 community mobility. Retrieved July 4, 2020 from, https://www.google.com/covid19/mobility/. 13. Guyon, I., Weston, J., Barnhill, S., & Vapnik, V. (2002). Gene selection for cancer classification using support vector machines. Machine Learning, 46(1–3), 389–422. Article Google Scholar 14. Hethcote, H. W. (2000). The mathematics of infectious diseases. SIAM Review, 42(4), 599–653. MathSciNet Article Google Scholar 15. Hinton, G. E. (1990). Connectionist learning procedures. In Machine Learning (pp. 555–610). Elsevier. 16. Hothorn, T., Bühlmann, P., Dudoit, S., Molinaro, A., & Van Der Laan, M. J. (2006). Survival ensembles. Biostatistics, 7(3), 355–373. Article Google Scholar 17. Hutter, F., Kotthoff, L., & Vanschoren, J. (2019). Automated machine learning: Methods, systems, challenges. Berlin: Springer. Book Google Scholar 18. Hutzenthaler, M., Jentzen, A., & Kloeden, P. E. (2011). Strong and weak divergence in finite time of euler’s method for stochastic differential equations with non-globally lipschitz continuous coefficients. Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences, 467(2130), 1563–1576. MathSciNet Article Google Scholar 19. Hyvarinen, A. (1999). Fast ica for noisy data using gaussian moments. In 1999 IEEE international symposium on circuits and systems (ISCAS) (Vol. 5, pp. 57–61). IEEE. 20. Kermack, W. O., & McKendrick, A. G. (1927). A contribution to the mathematical theory of epidemics. Proceedings of the Royal Society of london Series A, Containing Papers of a Mathematical and Physical Character, 115(772), 700–721. MATH Google Scholar 21. Kingma, D. P., & Ba, J. (2014). Adam: A method for stochastic optimization. Preprint arXiv:14126980 22. Kotthoff, L., Thornton, C., Hoos, H. H., Hutter, F., & Leyton-Brown, K. (2017). Auto-weka 2.0: Automatic model selection and hyperparameter optimization in weka. The Journal of Machine Learning Research, 18(1), 826–830. MathSciNet Google Scholar 23. Lee, C., Zame, W., Alaa, A., & Schaar, M. (2019). Temporal quilting for survival analysis. In The 22nd international conference on artificial intelligence and statistics (pp. 596–605). 24. Liaw, A., Wiener, M., et al. (2002). Classification and regression by randomforest. R News, 2(3), 18–22. Google Scholar 25. Li, M. Y., & Muldowney, J. S. (1995). Global stability for the seir model in epidemiology. Mathematical Biosciences, 125(2), 155–164. MathSciNet Article Google Scholar 26. NHS. (2020a). Health careers in intensive care medicine. Retrieved July 4, 2020 from, https://www.healthcareers.nhs.uk/explore-roles/doctors/roles-doctors/intensive-care-medicine. 27. NHS. (2020b). Intensive care. Retrieved July 4, 2020 from, https://www.nhs.uk/conditions/Intensive-care/. 28. NHS. (2020c). Nhs nightingale london hospital. Retrieved July 4, 2020 from, http://www.bartshealth.nhs.uk/nightingale. 29. NHS. (2020d). Trials begin of machine learning system to help hospitals plan and manage covid-19 treatment resources developed by nhs digital and university of cambridge. Retrieved June 28, 2020 from, https://digital.nhs.uk/news-and-events/news/trials-begin-of-machine-learning-system-to-help-hospitals-plan-and-manage-covid-19-treatment-resources-developed-by-nhs-digital-and-university-of-cambridge. 30. Osemwinyen, A. C., & Diakhaby, A. (2015). Mathematical modelling of the transmission dynamics of ebola virus. Applied and Computational Mathematics, 4(4), 313–320. Article Google Scholar 31. Platt, J., et al. (1999). Probabilistic outputs for support vector machines and comparisons to regularized likelihood methods. Advances in Large Margin Classifiers, 10(3), 61–74. Google Scholar 32. Pölsterl, S., Navab, N., & Katouzian, A. (2016). An efficient training algorithm for kernel survival support vector machines. Preprint arXiv:161107054 33. Railsback, S. F., Lytinen, S. L., & Jackson, S. K. (2006). Agent-based simulation platforms: Review and development recommendations. Simulation, 82(9), 609–623. Article Google Scholar 34. Ranganath, R., Gerrish, S., & Blei, D. (2014). Black box variational inference. In Artificial Intelligence and Statistics (pp. 814–822). 35. Rasmussen, C. E. (2003). Gaussian processes in machine learning. In Summer School on Machine Learning (pp. 63–71). Springer. 36. Snoek, J., Larochelle, H., & Adams, R. P. (2012). Practical bayesian optimization of machine learning algorithms. In Advances in neural information processing systems (pp. 2951–2959). 37. Stekhoven, D. J., & Bühlmann, P. (2012). Missforest–non-parametric missing value imputation for mixed-type data. Bioinformatics, 28(1), 112–118. Article Google Scholar 38. Van Belle, V., Pelckmans, K., Suykens, J. A., & Van Huffel, S. (2011). Learning transformation models for ranking and survival analysis. Journal of Machine Learning Research, 12(3). 39. van der Schaar, M., Yoon, J., Qian, Z., Jarrett, D., & Bica, I. (2020). clairvoyance alpha: the first unified end-to-end automl pipeline for time-series data. Retrieved July 4, 2020 from, https://www.vanderschaar-lab.com/clairvoyance-alpha-the-first-unified-end-to-end-automl-pipeline-for-time-series-data/. 40. Wingate, D., & Weber, T. (2013). Automated variational inference in probabilistic programming. Preprint arXiv:13011299 41. Yoon, J., Jordon, J., & Van Der Schaar, M. (2018). Gain: Missing data imputation using generative adversarial nets. In International conference on machine learning (ICML). 42. Zhang, Y., Jordon, J., Alaa, A. M., & van der Schaar, M. (2019). Lifelong bayesian optimization. Preprint arXiv:190512280. 43. Zou, H., & Hastie, T. (2005). Regularization and variable selection via the elastic net. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 67(2), 301–320. MathSciNet Article Google Scholar Over 10 million scientific documents at your fingertips Switch Edition * Academic Edition * Corporate Edition * Home * Impressum * Legal information * Privacy statement * California Privacy Statement * How we use cookies * Manage cookies/Do not sell my data * Accessibility * FAQ * Contact us * Affiliate program Not logged in - 217.114.218.25 Not affiliated Springer Nature © 2022 Springer Nature Switzerland AG. Part of Springer Nature.