








key: cord-332180-dw4h69tp
authors: Cheng, Fu-Yuan; Joshi, Himanshu; Tandon, Pranai; Freeman, Robert; Reich, David L; Mazumdar, Madhu; Kohli-Seth, Roopa; Levin, Matthew A.; Timsina, Prem; Kia, Arash
title: Using Machine Learning to Predict ICU Transfer in Hospitalized COVID-19 Patients
date: 2020-06-01
journal: J Clin Med
DOI: 10.3390/jcm9061668
sha: 
doc_id: 332180
cord_uid: dw4h69tp

Objectives: Approximately 20–30% of patients with COVID-19 require hospitalization, and 5–12% may require critical care in an intensive care unit (ICU). A rapid surge in cases of severe COVID-19 will lead to a corresponding surge in demand for ICU care. Because of constraints on resources, frontline healthcare workers may be unable to provide the frequent monitoring and assessment required for all patients at high risk of clinical deterioration. We developed a machine learning-based risk prioritization tool that predicts ICU transfer within 24 h, seeking to facilitate efficient use of care providers’ efforts and help hospitals plan their flow of operations. Methods: A retrospective cohort was comprised of non-ICU COVID-19 admissions at a large acute care health system between 26 February and 18 April 2020. Time series data, including vital signs, nursing assessments, laboratory data, and electrocardiograms, were used as input variables for training a random forest (RF) model. The cohort was randomly split (70:30) into training and test sets. The RF model was trained using 10-fold cross-validation on the training set, and its predictive performance on the test set was then evaluated. Results: The cohort consisted of 1987 unique patients diagnosed with COVID-19 and admitted to non-ICU units of the hospital. The median time to ICU transfer was 2.45 days from the time of admission. Compared to actual admissions, the tool had 72.8% (95% CI: 63.2–81.1%) sensitivity, 76.3% (95% CI: 74.7–77.9%) specificity, 76.2% (95% CI: 74.6–77.7%) accuracy, and 79.9% (95% CI: 75.2–84.6%) area under the receiver operating characteristics curve. Conclusions: A ML-based prediction model can be used as a screening tool to identify patients at risk of imminent ICU transfer within 24 h. This tool could improve the management of hospital resources and patient-throughput planning, thus delivering more effective care to patients hospitalized with COVID-19.

With more than 3 million cases and 200,000 deaths [1] by the end of April 2020, the COVID-19 pandemic has rapidly emerged as a serious global health emergency [2] , testing the ability of health care systems to respond. The burden on health care systems emanates both from the high incidence of COVID-19 and the fact that 20% to 30% of patients experience a moderate-to-severe form of the disease-with multi-organ failure, prolonged periods of morbidity and hospitalization, and high mortality [3] . Moreover, from 5% to 12% of all patients diagnosed with COVID-19 and up to 33% of hospitalized patients require supportive critical care in an intensive care unit (ICU) [3] [4] [5] . These estimates indicate that the rate of ICU transfer of hospitalized patients with COVID-19 is significantly higher than the ICU transfer rates of 11% reported for other hospitalized patients [6, 7] .

Furthermore, the need for ICU care may be even higher in specific high-risk groups with COVID-19, such as older individuals [3] or those with pre-existing comorbidities [8] . For example, over 75% of COVID-19 patients admitted to the ICU have one or more pre-existing comorbid conditions [9] . According to an estimate by the American Hospital Association, there are just under 100,000 ICU beds in the United States [10] , with over 67% occupancy under normal circumstances [11] -a potential constraint on resources during a surge in cases. Moreover, constraints in the availability of trained manpower [12] may occur with a rapid surge in COVID-19 hospitalizations. COVID-19 patients admitted to non-ICU units often experience rapid clinical deterioration [13] and, therefore, require frequent clinical assessments. However, with resources stretched thin, frequent assessment is difficult and can increase the risk of exposure among frontline personnel. To efficiently manage these finite resources and personnel, optimal prioritization of patients and efficient use of hospital resources are necessary.

ICU care may be needed for supportive management of severe COVID-19-associated pneumonia, acute respiratory distress (ARDS), sepsis, cardiomyopathy, arrhythmia, and acute renal failure. ICU care also may become necessary to manage prolonged hospitalization-associated complications, such as coagulopathy [14] , secondary infections, gastrointestinal bleeding, and other problems [13] . Determining whether an individual's dynamic risk of clinical deterioration warrants an ICU transfer may require analyses of temporal changes in patients' conditions and key indicators of imminent complications of COVID-19. Supervised machine learning approaches may be useful to (a) analyze and interpret patients' clinical and laboratory values and their temporal changes, and (b) quantify their dynamic risk of clinical deterioration and the need for ICU transfer.

The primary aim of this study is to develop a novel supervised machine learning classifier for predicting the risk of ICU transfer within the next 24 h for COVID-19 patients using hospital EMR data. We applied a random forest (RF) [15] approach, which has proven promising in analyzing complex clinical data of multiple types [15] , has high model generalizability [15] , and can elucidate high-order interactions between variables without compromising predictive accuracy [16] . We describe the development and validation of such a model, its predictive performance, and the interpretation of our results.

This study was approved by the Mount Sinai Health System Institutional Research Board (IRB protocol number: 18-00581); the need for informed consent was waived.

The study cohort was comprised of patients 18 years or older who had a COVID-19 diagnosis and were admitted to the Mount Sinai Hospital in non-ICU general in-patient beds between 26 February and 18 April 2020. The diagnosis was based on a clinical conclusion of an infectious disease specialist or a positive PCR test (initial or repeat testing).

The following data were retrospectively collected from the Mount Sinai Health System COVID-19 registry, sourced from an EPIC EHR system: demographic information, time-series of the admission-discharge-transfer events, structured and semi-structured clinical assessments, vital signs from nursing flowsheets, and laboratory and electrocardiogram (ECG) results.

Given the crisis nature of the pandemic, clinicians caring for this cohort collected data such as vital signs, diagnostic labs, ECGs, and nursing assessments based on clinical judgment and resource availability rather than a standard protocol. Thus, to create time-series data for each observational variable, we included the three most recent assessments available when the feature vector was created. Feature vectors were created daily during each COVID-19 patient's non-ICU general bed stay until discharge, ICU transfer, or death. Missing values for each variable were imputed by using the median value across the cohort [17] .

The primary outcome of this study was ICU transfer within 24 h from the time of prediction. Labeling of feature vectors followed the following logic: (1) If the ICU transfer was within 24 h of the feature vector creation, we labeled the feature vector as positive; (2) If the ICU transfer occurred after 24 h from the creation of the feature vector, we labeled the feature vector as negative; (3) If the ICU transfer did not occur during the patients' stay, then all feature vectors for that admission were labeled as negative. This process is depicted in Figure 1 . 

The study cohort data were randomly split into a training set used for training the prediction model, and a test set used for testing the model's performance. The training set consisted of 70 percent of the full cohort, and the test cohort consisted of the remaining 30 percent. We randomly split our cohort so that patients were only included in the training or the test set. The non-ICU bed to ICU transfer rate in our cohort was 3.7 percent, which created an extreme class imbalance between the majority class (feature vectors without the occurrence of ICU transfer within 24 h) and the minority class (feature vectors with ICU transfer within 24 h). We performed random under-sampling [18, 19] on the training data set for balancing the majority class (negative label) until both classes were equally balanced.

The RF model was trained with 10-fold cross-validation. The open-source Apache Spark project machine-learning library [20] was used.

The features included in this study were based on clinical judgments and reports in the COVID-19 literature. We included periodic monitoring of vital signs [21] , complete blood count, serum biochemical tests [22] , coagulation profile [14] , and electrocardiogram results [23] as relevant input variables. The full list of features used in modeling is provided in Table S1 . Features were ranked by using the Gini importance [20] .

The model performance was evaluated on the test set. RF model-derived class probabilities [20] were used to predict ICU transfer within 24 h with a default threshold of ≥0.5. Predictions less than the default threshold were categorized as negative. Sensitivity, specificity, accuracy, and area under the receiver operating curve (AUC-ROC), along with 95% CI, were estimated for evaluating the screening tool's performance [24] . Performance metrics were computed in the R environment [25] by using custom scripts and R packages-PRROC (v.1.3.1) [26] , pROC (v. 1.15) [27] , and epiR (v. 1.0.4) [28] .

Cohort characteristics are shown in Table 1 . The study cohort yielded 9639 feature vectors, which contained data from each day of non-ICU hospital stay for 1987 unique patients. Each individual vector, generated 24 h apart, represented a day of in-patient stay in a non-ICU bed for each patient. The split cohort resulted in 5548 and 2386 feature vectors created from the stays of 1168 and 521 patients in the training and test datasets, respectively. After performing majority-class under-sampling, the final training set consisted of 2008 feature vectors, representing each non-ICU stay of 401 unique patients. The median time to ICU transfer from the time of admission was 2.45 days.

The study cohort included a higher proportion of women, and about two-thirds of the cohort was between 18 and 65 years old. The median duration of hospital stay was 4.2 days and ranged between 1 to 43.6 days. About one-quarter of the patients in the cohort had more than one comorbidity, including COPD, diabetes, hypertension, obesity, or cancer. 

A total of 31 variables (comprising 99 features) had predictive value using the Gini importance metric in training the RF model. Hyper-parameters used in the final model are provided in Table S1 .

The top 20 predictive variables are summarized in Figure 2 . Model input variables with their respective sources are listed in Table S2 . Our model identified a series of features related to progressive respiratory failure (respiratory rate, oxygen saturation), markers of systemic inflammation (C-reactive protein, white blood cell count), shock (systolic and diastolic blood pressures), renal failure (blood urea nitrogen, anion gap, and serum creatinine), and the pathophysiology of COVID-19 (lymphocyte count). Respiratory rate (the earliest recorded value of the latest three assessments) had the highest predictive value in the RF model, and white blood cell count was the second highest. Variables included in the final model reflected the importance of temporal changes in vital signs, markers of acid-base equilibrium and systemic inflammation, and predictors of myocardial injury and renal function. 

The predictive performance of the RF-based model on the test dataset is presented in Table 2 . Of 2386 feature vectors, 89 represented patient-days where ICU transfer occurred within 24 h of the prediction time point. The AUC-ROC of the prediction model is shown in Figure 3 . 

Our model provides a tool for dynamic risk quantification for ICU transfer within the next 24 h. Clinical management of COVID-19 requires frequent monitoring and re-assessment among patients who may suffer rapid deterioration. Although deterioration may be evident by corroboration of changes in vital signs, laboratory results, electrocardiograms, and information in nursing notes, frequent review of these important parameters might not be feasible in crisis situations. Using machine learning, we developed a model for identifying deteriorating patients in need of ICU transfer by using data routinely collected during inpatient care. This model could be easily automated as an alternative to manual clinical review. Furthermore, inspection of important features in the model can provide insight into predictors and their plausible links to the pathophysiology of clinical deterioration among patients with COVID-19.

A key advantage of using an RF-based model is that the relative importance of predictive features is available for end users to interpret. Our finding that lymphocyte count is a significant predictor of ICU transfer correlates with previous reports that identified lymphopenia as a predictor of severe disease and poor prognosis [29, 30] .

Although age is clearly identified as a risk factor for needing ICU care among patients with COVID-19 [3] , patients above 65 years old have lower rates of ICU transfer, despite higher mortality [5] , possibly reflecting a greater preference for palliative or less aggressive care in older patients. We believe that the relatively low rank of age as a risk factor in our model could mean that our model incorporates actual patient data and patterns of clinical practice into its predictions.

Acute worsening of respiratory rate and oxygen saturation are used for identifying COVID-19 patients at risk of developing acute respiratory distress syndrome [31, 32] . The model ranks oxygen saturation with a significantly lower predictive value than respiratory rate. A significant proportion of COVID-19 patients who are hospitalized need supplemental oxygen support. One possible 

Our model provides a tool for dynamic risk quantification for ICU transfer within the next 24 h. Clinical management of COVID-19 requires frequent monitoring and re-assessment among patients who may suffer rapid deterioration. Although deterioration may be evident by corroboration of changes in vital signs, laboratory results, electrocardiograms, and information in nursing notes, frequent review of these important parameters might not be feasible in crisis situations. Using machine learning, we developed a model for identifying deteriorating patients in need of ICU transfer by using data routinely collected during inpatient care. This model could be easily automated as an alternative to manual clinical review. Furthermore, inspection of important features in the model can provide insight into predictors and their plausible links to the pathophysiology of clinical deterioration among patients with COVID-19.

A key advantage of using an RF-based model is that the relative importance of predictive features is available for end users to interpret. Our finding that lymphocyte count is a significant predictor of ICU transfer correlates with previous reports that identified lymphopenia as a predictor of severe disease and poor prognosis [29, 30] .

Although age is clearly identified as a risk factor for needing ICU care among patients with COVID-19 [3] , patients above 65 years old have lower rates of ICU transfer, despite higher mortality [5] , possibly reflecting a greater preference for palliative or less aggressive care in older patients. We believe that the relatively low rank of age as a risk factor in our model could mean that our model incorporates actual patient data and patterns of clinical practice into its predictions.

Acute worsening of respiratory rate and oxygen saturation are used for identifying COVID-19 patients at risk of developing acute respiratory distress syndrome [31, 32] . The model ranks oxygen saturation with a significantly lower predictive value than respiratory rate. A significant proportion of COVID-19 patients who are hospitalized need supplemental oxygen support. One possible explanation underlying the lower predictive value of oxygen saturation is that in patients with progressive hypoxia, a progressively greater fraction of inhaled oxygen (FiO 2 ) is delivered to maintain adequate percutaneous oxygen saturation (SpO 2 ) until the patient can no longer maintain normal oxygen saturation despite support from high-flow nasal oxygen or non-invasive ventilation. This makes SpO 2 a less sensitive reflection of disease progression until severe respiratory decompensation occurs. We propose to include FiO 2 , level of respiratory support, and SpO 2 as variables in future versions of this model. C-reactive protein has been reported as a marker of disease severity in early phases of COVID-19 infection and is positively correlated with COVID-19 pneumonia [33] . Patients' vital signs (e.g., pulse rate, blood pressure, and temperature) are among the top 20 predictors in this model and are widely accepted as identifying patients in critical condition who are at risk of deterioration [34] . Hematologic parameters such as red blood cell count, hemoglobin, platelet count, and white blood cell count are conventionally used markers of sepsis in critical care settings [35] ; thus, it is not surprising that they were predictive of COVID-19 in our model also. Abnormalities in potassium, sodium, and calcium also have been associated with severe COVID-19 [36] .

Our model has strengths in terms of methodology, utility, and scalability. The labeling approach of feature vectors-using the last 3 observations, rather than the earliest or latest-made it easier to minimize chances of over-fitting despite the low sample size for training. The cohort is diverse in distribution of key variables such as age, race, ethnicity, and length of hospitalization, supporting the generalizability of the model. The model uses input variables mainly comprised of routine laboratory and clinical data, which are commonly available in most streaming data models across the U.S. Furthermore, the model can be adopted to different frequencies of assessments and different common input variables. It can be adjusted to use streaming data from the EMR and provide frequent predictions for real-time risk prioritization. We use the Fast Healthcare Interoperability Resources (FHIR) format for facilitating data exchange and retrieval from an EPIC-supported EMR system. This can help to improve the model's scalability in other hospital settings.

Clinical judgment and resources can play a significant role in data availability. In addition, clinical documentation may not be perfect during crises, when normal documentation standards are relaxed due to the high work burden of clinicians. Therefore, unavailable data (as in our case) may be the consequence of either clinical judgement on need for specific assessments or imperfect clinical documentation.

Despite the non-random pattern of data availability for specific variables, the imputation strategy and the RF model had reasonably high sensitivity. This supports previous reports that found RF models to be highly suitable in situations with missing data [17] , complex non-linear relationships among input variables, and their potential higher-level interactions [16] ; thus, an ensemble-based classification approach minimizes overfitting [15] . An additional asset of this model is that, unlike other models, key discriminatory variables underlying each prediction can be provided.

Low sample size and class imbalance resulting from low ICU transfer rates are major limitations to this version of the model, which resulted in low precision. Therefore, we recommend using this version of the model as a prioritization tool, not a tool for clinical decision support. Since the model is based on data from a single hospital, its case mix may not be easily generalizable to other settings. For example, in this cohort, rates of hypertension and diabetes were lower than in others reported [4, 5, 37] . Variables related to systemic inflammation and the coagulation cascade (e.g., D-dimer, fibrinogen, ferritin, and lactate dehydrogenase) were not available for modeling when this model was generated. While our model provides high sensitivity, we believe that inclusion of these other markers, which have predictive and/or prognostic value [38] , could improve subsequent iterations of the model. While SpO 2 without assessments of FiO 2 and level of oxygen support may not be sufficient to capture signs of progressive hypoxia, the inclusion of all three variables in subsequent versions of the model could also further improve its performance. However, given the low sample size of a single medical center in the acute phase of a pandemic, it may be difficult to generate a model with both high sensitivity and precision (positive predictive value).

As a screening tool for development of critical illness, this model has multiple opportunities for clinical use. In addition to identifying patients with a potentially increased need for ICU transfer within 24 h, the tool can also be used for improving the coordination of patient transfers to the ICU. The tool can be used to inform clinicians of patients at higher risk of a greater need for frequent assessments, and thereby can facilitate inclusion of clinicians less familiar with critical care medicine.

Earlier identification of high-risk patients could potentially reduce the use of invasive mechanical ventilation [39] , sparing patients from avoidable morbidity and lowering mortality from complications. Given the sensitivity of the model, it can effectively identify patients who are likely to be transferred to ICU within 24 h, reducing the chance of missing the patients in need of ICU care. Moreover, clinical implementation of the tool can increase the rates of early ICU transfers, which can potentially translate into reduced mortality and shorter lengths of ICU stay [40, 41] , with favorable consequences on other complications affecting patient outcomes, such as delirium and sleep disorders [42, 43] . However, its positive predictive value and precision are limited, and it is not practical to perform labor-intensive interventions for all patients whom the model predicted are at high risk. Nonetheless, our model has clinical utility in the setting of a pandemic. The high negative predictive value suggests that those identified as unlikely to require critical care in the next 24 h may be considered for a lower level of monitoring.

Our RF-based tool can reliably be used for prioritizing COVID-19 patients not in the ICU but at risk for deterioration and requiring ICU transfer within 24 h. The model shows the importance of respiratory failure, shock, inflammation, and renal failure in the progression of COVID-19. Such a predictive tool may have wide implications and utility in clinical practice and hospital operations. Further refinement of the model will yield even higher precision while maintaining sensitivity. More studies are needed to identify other ways to improve patient outcomes by early identification of COVID-19 patients at risk of deterioration. Implementing machine learning models has the potential to build capacity within a hospital's continuous learning and quality improvement environment.

Supplementary Materials: The following are available online at http://www.mdpi.com/2077-0383/9/6/1668/s1, Table S1 : Hyperparameters used in the final model, Table S2 

World Health Organization. WHO COVID-19 Dashboard

Covid-19-Navigating the Uncharted

CDC COVID-19 Response Team. Severe Outcomes Among Patients with Coronavirus Disease 2019 (COVID-19)-United States

Characteristics of Hospitalized Adults With COVID-19 in an Integrated Health Care System in California

Presenting Characteristics, Comorbidities, and Outcomes Among 5700 Patients Hospitalized With COVID-19 in the

Active Bed Management by Hospitalists and Emergency Department Throughput

Evaluating implementation of a rapid response team: Considering alternative outcome measures

Estimates of the severity of coronavirus disease 2019: A model-based analysis

Preliminary Estimates of the Prevalence of Selected Underlying Health Conditions Among Patients with Coronavirus Disease 2019-United States

AHA Annual Survey

Trends in Critical Care Beds and Use Among Population Groups and Medicare and Medicaid Beneficiaries in the United States

United States Resource Availability for COVID-19

Interim Clinical Guidance for Management of Patients with Confirmed Coronavirus Disease (COVID-19)

Abnormal coagulation parameters are associated with poor prognosis in patients with novel coronavirus pneumonia

Iterative random forests to discover predictive and stable high-order interactions

An analysis of four missing data treatment methods for supervised learning

The Class Imbalance Problem: Significance and Strategies

Enhancing the Prediction of Clinical Deterioration in Admitted Patients through a Machine Learning Model

MLlib: Main Guide-Spark 2.3.0 Documentation

National Institute for the Infectious Diseases "L. Spallanzani" IRCCS. Recommendations for COVID-19 Clinical Management

Clinical course and risk factors for mortality of adult inpatients with COVID-19 in Wuhan, China: A retrospective cohort study

Cardiovascular Implications of Fatal Outcomes of Patients With Coronavirus Disease

Screening tests: A review with examples

R: A Language and Environment for Statistical Computing

Computing and visualizing precision-recall and receiver operating characteristic curves in R

pROC: An open-source package for R and S+ to analyze and compare ROC curves

EpiR: An R Package for the Analysis of Epidemiological Data

Evaluation and Treatment Coronavirus

Dysregulation of Immune Response in Patients With Coronavirus

Covid-19 in Critically Ill Patients in the Seattle Region-Case Series

Treatment for severe acute respiratory distress syndrome from COVID-19

C-reactive protein levels in the early stage of COVID-19

Monitoring vital signs using early warning scoring systems: A review of the literature

The Hematologic System as a Marker of Organ Dysfunction in Sepsis

Electrolyte Imbalances in Patients with Severe Coronavirus Disease 2019 (COVID-19)

Laboratory abnormalities in patients with COVID-2019 infection

Lower mortality of COVID-19 by early recognition and intervention: Experience from Jiangsu Province

Association between intensive care unit transfer delay and hospital mortality: A multicenter investigation

An examination of early transfers to the ICU based on a physiologic risk score

Sleep deprivation in Intensive Care Unit-systematic review

COVID-19: ICU delirium management during SARS-CoV-2 pandemic

We acknowledge Susan Usyal for her editorial assistance.

The authors declare no conflict of interest.

