Skip to main content
Advertisement
  • Loading metrics

Contrasting factors associated with COVID-19-related ICU admission and death outcomes in hospitalised patients by means of Shapley values

  • Massimo Cavallaro ,

    Roles Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Software, Visualization, Writing – original draft, Writing – review & editing

    M.Cavallaro@warwick.ac.uk (MC); Noel.Mccarthy@tcd.ie (NDM)

    Affiliations The Zeeman Institute for Systems Biology & Infectious Disease Epidemiology Research, University of Warwick, Coventry, United Kingdom, School of Life Sciences and Mathematics Institute, University of Warwick, Coventry, United Kingdom

  • Haseeb Moiz,

    Roles Writing – original draft, Writing – review & editing

    Affiliation Warwick Medical School, University of Warwick, Coventry, United Kingdom

  • Matt J. Keeling,

    Roles Conceptualization, Data curation, Funding acquisition, Writing – review & editing

    Affiliations The Zeeman Institute for Systems Biology & Infectious Disease Epidemiology Research, University of Warwick, Coventry, United Kingdom, School of Life Sciences and Mathematics Institute, University of Warwick, Coventry, United Kingdom

  • Noel D. McCarthy

    Roles Conceptualization, Funding acquisition, Writing – original draft, Writing – review & editing

    M.Cavallaro@warwick.ac.uk (MC); Noel.Mccarthy@tcd.ie (NDM)

    Affiliations The Zeeman Institute for Systems Biology & Infectious Disease Epidemiology Research, University of Warwick, Coventry, United Kingdom, Warwick Medical School, University of Warwick, Coventry, United Kingdom, Institute of Population Health, Trinity College Dublin, University of Dublin, Dublin, Ireland

Abstract

Identification of those at greatest risk of death due to the substantial threat of COVID-19 can benefit from novel approaches to epidemiology that leverage large datasets and complex machine-learning models, provide data-driven intelligence, and guide decisions such as intensive-care unit admission (ICUA). The objective of this study is two-fold, one substantive and one methodological: substantively to evaluate the association of demographic and health records with two related, yet different, outcomes of severe COVID-19 (viz., death and ICUA); methodologically to compare interpretations based on logistic regression and on gradient-boosted decision tree (GBDT) predictions interpreted by means of the Shapley impacts of covariates. Very different association of some factors, e.g., obesity and chronic respiratory diseases, with death and ICUA may guide review of practice. Shapley explanation of GBDTs identified varying effects of some factors among patients, thus emphasising the importance of individual patient assessment. The results of this study are also relevant for the evaluation of complex automated clinical decision systems, which should optimise prediction scores whilst remaining interpretable to clinicians and mitigating potential biases.

Author summary

The design is a retrospective cohort study of 13954 in-patients of ages ranging from 1 to 105 year (IQR: 56, 70, 81) with a confirmed diagnosis of COVID-19 by 28th June 2020. This study used multivariable logistic regression to generate odd ratios (ORs) multiply adjusted for 37 covariates (comorbidities, demographic, and others) selected on the basis of clinical interest and prior findings. Results were supplemented by gradient-boosted decision tree (GBDT) classification to generate Shapley values in order to evaluate the impact of the covariates on model output for all patients. Factors are differentially associated with death and ICUA and among patients. Deaths due to COVID-19 were associated with immunosuppression due to disease (OR 1.39, 95% CI 1.10–1.76), type-2 diabetes (OR 1.31, 95% CI 1.17–1.46), chronic respiratory disease (OR 1.19, 95% CI 1.05–1.35), age (OR 1.56/10-year increment, 95% CI 1.51–1.61), and male sex (OR 1.54, 95% CI 1.42–1.68). Associations of ICUA with some factors differed in direction (e.g., age, chronic respiratory disease). Self-reported ethnicities were strongly but variably associated with both outcomes. GBDTs had similar performance (ROC-AUC, ICUA 0.83, death 0.68 for GBDT; 0.80 and 0.68 for logistic regression). We derived importance scores based on Shapley values which were consistent with the ORs, despite the underlying machine-learning model being intrinsically different to the logistic regression. Chronic heart disease, hypertension, other comorbidities, and some ethnicities had Shapley impacts on death ranging from positive to negative among different patients, although consistently associated with ICUA for all. Immunosuppressive disease, type-2 diabetes, and chronic liver and respiratory diseases had positive impacts on death with either positive or negative on ICUA. We highlight the complexity of informing clinical practice and public-health interventions. We recommend that clinical support systems should not only predict patients at risk, but also yield interpretable outputs for validation by domain experts.

Introduction

COVID-19, due to SARS-CoV-2 betacoronavirus, emerged in Wuhan, China in late 2019 and has spread globally. It can cause severe complications of pneumonia, acute respiratory distress syndrome, sepsis, and septic shock [1]. It has, as of October 24, 2020, infected over 42 million people and killed over 1.1 million people [2]. Certain patient subsets, such as the elderly and those with comorbidities, are at an increased risk of severe outcomes from COVID-19 such as admission to intensive care units, respiratory distress requiring mechanical ventilation, and death [3,4].

Clinicians can use predictive factors to prioritize patients at higher risk of clinical deterioration and public health authorities can use them to target public health interventions. Identifying factors associated with severe disease has been described as an urgent research priority. Several studies have sought to identify factors predicting poor outcome following COVID-19 infection [5,6] and assist clinician decision making [79]. A traditional method such as logistic regression can infer the odd ratios (ORs) of the outcome in the presence of a risk factor. Modern machine-learning technologies, widely implemented during the COVID-19 pandemic, can handle more complex patient data types, offer greater generality, and produce more accurate predictions than the previous methods, but at the cost of losing transparency and interpretability [10].

Surveillance systems support these analyses. The COVID-19 Hospitalization in England Surveillance System (CHESS), a UK system distributed by Public Health England (PHE) and adapted from the UK severe influenza surveillance system, collects extensive data on patients admitted to hospital, including known comorbidities and important demographic information (such as age, sex, and ethnicity) [11]. This large national dataset reduces limitations inherent in small cohorts, enabling more reliable identification of associations. We performed analyses on this dataset using logistic regression and a more general machine-learning model (the gradient-boosted decision tree, GBDT), which generated interpretable predictions by means of the Shapley additive explanation, a technique that mitigates the interpretability issue in machine-learning outputs. For different applications of this technique to COVID-19 research see, e.g., references [12,13]. Through these methods, we demonstrated the extent to which pre-existing conditions differentially predicted death and intensive care unit (ICU) admission. Some factors affected both similarly but others proved to be protective for one while increasing the risk for the other, or showed very different effect sizes. We also identified variation of effects among patients. These results may be useful to clinicians assessing hospitalized patients with COVID-19. They may also provide a greater context or benchmark for individuals evaluating or interpreting complex automated clinical decision systems designed to identify those most at-risk.

Materials and methods

Ethics statement

The data used in this study were supplied from the CHESS database after anonymisation under strict data protection protocols agreed between the University of Warwick and Public Health England. The ethics of the use of these data for these purposes was agreed by Public Health England with the Government’s SPI-M(O) / SAGE committees.

Description of cohort and outcomes

We studied a cohort of 13954 patients of which 8947 patients survived and 5007 died after contracting COVID-19. 5758 were admitted to ICUs, of whom 3483 were discharged after treatment, and 2275 died. The dataset includes epidemiological data (demographics, risk factors, and outcomes) on patients with a confirmed diagnosis of COVID-19 by 28th June 2020 who required hospitalization. We included all available chronic and pre-existing morbid conditions recorded by PHE as potential risk factors, including immunosuppression due to disease, asthma requiring medication, immunosuppression due to treatment, neurological conditions, respiratory conditions, obesity, type-1 and type-2 diabetes, hypertension, heart conditions, renal disease, liver diseases, and other comorbidities [11]. No acute illnesses or medical conditions were considered. In the CHESS dataset self-defined ethnicity is categorized according to the Office for National Statistics questionnaires into 17 factors, all included in the study. With 8628 patients, white British was the largest group in the cohort and therefore chosen as a reference category. 1895 patients did not identify themselves with any ethnicity and were labelled as “NA”. With the exception of age and admission date, all features were stratified to binary variables. Entries labelled “diabetes” whose type was unknown and not recorded in the database as “type 1”, have been considered as “type 2”. Death and ICU admission were chosen as outcomes. The median age of this sample was 70 years (IQR 56–81, range 1–105), 59.25% were men and 0.18% had an unrecorded sex. The prevalence of comorbidities is reported in Table 1 and ethnicity in Table 2. Cross-correlations between recorded ethnicities and pre-existing conditions are illustrated in Fig 1.

thumbnail
Fig 1. Correlation heatmap between self-defined ethnicities and pre-existing conditions.

Colour shades from blue to red correspond to increasing values of Person correlation coefficient (white: no correlations are present). NA labels inpatients who did not identify themselves with any ethnicity.

https://doi.org/10.1371/journal.pcbi.1009121.g001

thumbnail
Table 1. Fraction of patients in cohort by sex and comorbitidies.

https://doi.org/10.1371/journal.pcbi.1009121.t001

Statistical analysis

Logistic regression models were used to estimate odd ratios (ORs) of all 37 pre-existing conditions and demographic factors for both outcomes. Standard errors (SEs) and confidence intervals (CIs) of the ORs were computed using the Taylor series-based delta method and the profile likelihood method, respectively, and statistical significance assessed using the Benjamini-Hochberg (BH) test with false discovery rate set to 0.05 [14].

In addition, we applied a “gradient boosted decision tree” (GBDT) machine-learning model with logistic objective function, as an appropriate machine learning approach. A GBDT aggregates a large number of weak prediction models, in this case decision trees, into a robust prediction algorithm, where the presence of many trees mitigates the errors due to a single-tree prediction. Each individual tree consists of a series of nodes that represent binary decision splits against one of the input variables, with its final output being determined by the nodes at the end of the tree (known as leaves). The model was implemented in the XGBoost library (version 0.81) [15] and depended on a number of hyper-parameters. To avoid over-fitting, these hyper-parameters were selected by means of Bayesian optimization of c-statistics using 5-fold cross-validation over the training set [16] with constant L1-regularisation parameter α = 0.5. We used Shapley additive explanation (SHAP) analysis to understand the result of a GBDT model fit [17,18]. The importance of each feature in the model output is represented by the so-called Shapley values, introduced in game theory literature and providing a theoretically justified method for allocation of credit among a group of players. In the context of machine learning, the same mathematics is used to allocate the credit for the GBDT prediction among the N features included in the study, for each of the M patients. The chief output of this approach is a M×N matrix of Shapley values ϕij where i indicates a patient, i = 1,2,…,N, and j is a pre-existing condition or other patient characteristic, j = 1,2,…,N. We also refer to the Shapley value ϕij as the impact of j on the outcome for the patient i. Similar to the logistic regression model, for each patient i, the trained GBDT model returns a decision value fi to be interpreted as the logarithm of the odds that the outcome is poor. The Shapley values are unique allocations of credit in explaining the decision fi among all the N features, where for our case, negative values (ϕij<0) tip the decision value towards good outcome, while positive values (ϕij>0) towards bad (i.e., ICU or death). The model output satisfies (which is the local accuracy property), where ϕi0 is a bias term. Importantly, it has been mathematically proven that the Shapley allocation is the only possible one that satisfies two additional desirable properties, i.e., consistency (if a feature’s contribution increases or stays the same regardless of the other inputs, its Shapley value does not decrease), and missingness (a zero-valued feature contributes a zero Shapley value) [1719]. In tree-based models, the same idea has been extended to allocate the credit to pairs of features, thus yielding , where the Φijks are referred to as SHAP interaction values [18]. The diagonal term Φijj encodes the net effect on the model prediction fi of a feature j, stripped of its interactions with the other features kj and is referred to as the SHAP main effect of j. We used an implementation specific to tree-based models, also referred to as TreeSHAP, accessible via the XGBoost and SHAP libraries; we refer the reader to references [17,18] for a more comprehensive discussion and for the implementation details.

Such an approach explains each individual prediction fi and is therefore referred to as a local method. In contrast to that, as a complementary global method, we consider the so-called partial dependence plots (PDPs) to show the average effects of age and admission date on the predicted outcomes, marginalizing over the values of all other features [20].

It is worth comparing this approach with the standard logistic regression. For a patient i with feature values Xi≔(xi1, xi2,…,xiN), the logistic regression and the GBDT models predict an outcome (here taken to be ICUA or death) with probabilities p(Xi) and , respectively. These satisfy and where the coefficients βjs are maximum-likelihood estimates and the values ϕijs are obtained by means of the TreeSHAP algorithm. To rank the features by their overall importance, we estimate the slopes for each j, where ϕj≔(ϕ1j, ϕ2j,…,ϕNj) and xj≔(x1j, x2j,…,xNj), thus obtaining a novel feature score which we refer to as Impj and can be directly compared to the coefficient βj.

All models were fitted to a randomly chosen 90% of data entries, while the remaining entries were used for validation. Goodness-of-prediction was assessed by means of the c-statistics of the receiver operating characteristic curve (ROC-AUC) on the validation set, with bootstrapped 2.5%-97.5% confidence intervals.

Results

Risk factors showed strong associations with both death and ICUA, but the strength and even direction of these associations differed substantially across these outcomes. From logistic regression analysis, immunosuppression due to disease (OR 1.39, 95% CI 1.10–1.76), type-2 diabetes (OR 1.31, 95% CI 1.17–1.46), chronic respiratory disease (OR 1.19, 95% CI 1.05–1.35), age (OR 1.56 for each 10 year age increment, 95% CI 1.51–1.61), and being male (OR 1.54, 95% CI 1.42–1.68) were strongly associated with deaths due to COVID-19. The regression was adjusted for other comorbidities including type-1 diabetes, chronic liver disease, serious mental illness, chronic renal disease, chronic neurological condition, chronic heart disease, hypertension, obesity and asthma, none of which were significantly associated with death (BH test). Having any comorbidity other than these was recorded in the dataset as “other comorbidity” and appeared to be a protective factor (OR death, 0.87, 95% CI 0.80–0.95). Some self-reported ethnicities, compared to white British, were associated with substantially increased risk of death (e.g., Indian (OR 1.84, 95% CI 1.42–2.73)) risk of death. Asymptomatic testing was associated with substantially lower risk of death (OR 0.29, 95% CI 0.18–0.45). The estimated ORs of deaths are detailed in Table 3 and illustrated in Fig A in S1 Text.

thumbnail
Table 3. Estimated odd ratios (ORs) from adjusted logistic regressions and importance (Imp) scores of death and intensive-care unit admission (ICUA) outcomes.

https://doi.org/10.1371/journal.pcbi.1009121.t003

Among co-morbidities, obesity (OR 3.37, 95% CI 2.90–3.29), serious mental illness (OR 2.57, 95% CI 1.51–4.46), hypertension (OR 1.58, 95% CI 1.42–1.76), asthma (OR 1.51, 95% CI 1.29–1.77), and “other comorbidity” (OR 1.31, 95% CI 1.19–1.45) were strongly positively associated with ICU admission (Fig B in S1 Text and Table 3). Each of these had far weaker or even negative associations with death. Some features associated with increased risk of death such as chronic respiratory disease were negatively associated with ICUA (OR 0.83, 95% CI 0.72–0.96). No ethnicity was negatively associated with ICUA compared to white British although there was substantial variation across these. Other factors associated with ICUA included immunosuppression due to treatment (OR 1.79, 95% CI 1.41–2.28) and male sex (OR 1.73, 95% CI 1.58–1.89). Old age (OR 0.76, 95% CI 0.74–0.78 for each 10-year increment), asymptomatic testing (OR 0.52, 95% CI 0.35–0.74), and pregnancy (OR 0.34, 95% CI 0.20–0.57) were associated with decreased ICUA. The associations of each predictor with death and with ICUA are illustrated in Fig 2, highlighting some contrasts in direction and magnitude while other risk factors appear more consistently associated with the two outcomes. The overall associations obtained from the GBDT model were consistent with the logistic model results.

thumbnail
Fig 2. Contrasting odd ratios (ORs) of death with ORs of intensive care unit admission (ICUA).

Features are grouped into comorbidities, self-defined ethnicities, and others (top to bottom). For binary variables, marker sizes are proportional to the frequencies of the exposure. Error bars are 68% confidence intervals (CIs). Gray and white regions correspond to discordant and concordant associations. The figure highlights mismatches in the ORs of a number of variables, e.g., asthma and “other comorbidity” were risk factors for ICUA but protective for death outcome. Chronic respiratory disease was a risk factor for death but negatively associated with ICU admission. For most ethnicities the ORs of death and ICUA were concordant in sign but of different magnitude. Abbreviations: Mental ill.: serious mental illness; Resp. dis.: respiratory disease; Neuro. dis.: neurological disease; Immunos. dis.: immunosuppression due to disease; T2D: type-1 diabetes; T1D: type-2 diabetes; Eth. NA: ethnicity unrecorded; Immunos. treat.: immunosuppression due to treatment; Asymp.: asymptomatic–meaning that testing was not due to the presence of COVID-19 symptoms.

https://doi.org/10.1371/journal.pcbi.1009121.g002

The receiver operating characteristic (ROC) curves for the logistic regression models are plotted in Fig 3. The ROC-Area Under the Curve (AUC) scores for the logistic regression classifiers were 0.68 (95% CI 0.65–0.71) and 0.80 (95% CI 0.78–0.82) for death and ICUA outcome predictions, respectively. Generalized collinearity diagnostics by means of variance inflation factor (VIF) excluded severe collinearity (VIFs <2, Table 4, see also reference [21]). The scores of GBDT for classification task were 0.68 (95% CI 0.66–0.71) and 0.83 (95% CI 0.82–0.85) for the death and ICUA outcome predictions, respectively. In addition to outcome prediction, the GBDT analysis with Shapley value explanations yielded the impact of each feature on both death and ICUA outcome for each single patient (summarised in Figs C and D in S1 Text).

thumbnail
Fig 3. ROC curves (C-statistics) of the logistic regression classifiers over the validation set.

Confidence intervals are obtained by means of bootstrapping.

https://doi.org/10.1371/journal.pcbi.1009121.g003

thumbnail
Table 4. Variance inflation factors (VIFs) for the logistic regressions.

VIF scores are always smaller than two, excluding serious collinearity issues.

https://doi.org/10.1371/journal.pcbi.1009121.t004

We contrasted the Shapley values for impacts on death and ICUA in Fig 4. All patients with obesity, serious mental illness, immunosuppressing treatment, male sex, asymptomatic admission, and those whose self-reported ethnicity was other black, Indian, black Caribbean, other Asian, other white, and NA had concordant impacts to death and ICU admission. In almost all asthma patients, it is possible to appreciate negative impact on death and positive impact on ICUA. Patients with type-1 diabetes, chronic renal disease, or chronic neurological disease show positive association with death and negative association with ICUA outcome, although with very dispersed Shapley value distributions. Upon visual inspection, the scatter points for chronic liver disease, type-1 diabetes, chronic neurological, and chronic heart comorbidities show two (or more) clusters with respect to the impact on death. The hypertension scatter plot displays a neat partition with respect to the impact on ICUA outcome, showing that this variable was associated with ICUA. Its impact on death is less clear, with patients having discordant or concordant Shapley values for death. The cases of type-2 diabetes and chronic respiratory disease appear diametrically opposite to these, as all patients with such conditions had positive Shapley values for death with qualitatively different impacts on ICU outcome.

thumbnail
Fig 4. Contrasting Shapley values for impact on death and intensive-care unit admission ICUA for all variables included in this study.

Each marker in the scatter plots corresponds to an in-patient. Colours from red to blue indicate the value of the underlying variable (in binary variables, red colour means feature is present, blue otherwise; in age feature, red to blue shades correspond to old to young ages; in admission day, red to blue shades correspond to early to late dates). The explanation models assigned a concordant (discordant) impact on death and ICUA to the patients in the white (grey) regions. The scatter plots expose not only the importance of a potential risk factor but also its range of effects over the cohort. All patients with immunosuppression disease, type-2 diabetes, liver and respiratory disease, and Pakistani self-defined ethnicity had positive Shapley values from death, with impact on ICU ranging from negative to positive values, thus suggesting that these conditions were always leaning towards death but sometimes not consistently towards ICUA. Conversely hypertension always have positive impact on ICUA whilst can either have positive or negative impact on death for different patients. The Shapley values for death for many features appear clustered (T1 diabetes, chronic liver, neurological, and hearth disease comorbidities), thus suggesting the presence of different groups under the same labels with different effect on patient health. Inspection of the age pattern suggests the presence of a group of young patients (blue markers) with negative impact on both age and ICUA outcome, old-age patients with positive impact on death and negative impact on ICUA outcome, and intermediate-age patients with impacts negative on death and positive on ICUA outcome. For abbreviations, see the caption of Fig 2.

https://doi.org/10.1371/journal.pcbi.1009121.g004

Stratifying on ICUA yields marginally higher ROC-AUC scores (logistic regression 0.69 (95% CI 0.66–0.72), GBDT 0.70 (95% CI 0.67–0.72) compared to death prediction obtained without ICUA prediction. In fact, ICUA is a very strong predictor of death (OR 2.25, 95% CI 2.04–2.48) but is markedly correlated to other features (Fig 1). The full results are summarised in Figs E-F and Table A in S1 Text.

The features were ranked according to their median ORs and their importance scores Imp (defined in Materials and methods), showing that these two are ordinally associated in both death (Spearman’s ρ = 0.47, P = 0.005) and ICUA outcomes (Spearman’s ρ = 0.97, P = 13×10−22), as shown in Fig 5. The explanation model for the GBDT was therefore largely consistent with the interpretable logistic linear model. The analysis of SHAP main effect also revealed the non-linear relations between outcomes and the age and admission day (Figs 6 and 7). The probability of death rose above 30 years of age. Likelihood of ICU admission decreased markedly above 60.

thumbnail
Fig 5.

SHAP importance scores from the explaination model for GBDT vs logarithm of odd-rations (ORs) from logistic regression for death (A) and intensive-care unit (ICU) admission (B). Each point represents a feature (see Table 3). Red markers correspond to the features whose association with the outcome was not significant according to the logistic regression. The x-axis errorbars comprise 68% confidence intervals. The SHAP importance Imp allows us to assess to what extent a feature contributes to the GBDT prediction. This plot shows that these are consistent with the well-known logistic regression coefficients, despite the underlying models used to generate these two quantities are fundamentally different.

https://doi.org/10.1371/journal.pcbi.1009121.g005

thumbnail
Fig 6.

A-B) Partial dependence plots (PDPs) and probability of death predicted by GBDT for each patient in training set. C-D) SHAP main effect for age and admission date. These effects can be ascribed to the age/admission date alone, regardless of their covariates. The strong pattern in the main effect for admission date highlights the importance of incorporating timing in predictive models.

https://doi.org/10.1371/journal.pcbi.1009121.g006

thumbnail
Fig 7.

A-B) Partial dependence plots (PDPs) and probability of intensive-care unit admission predicted by GBDT for each patient in training set. C-D) SHAP main effect for age and admission date.

https://doi.org/10.1371/journal.pcbi.1009121.g007

Discussion

This cohort study investigated the association between patient characteristics (demographics and comorbidities) and severe outcomes with COVID-19 using a large national dataset in England (the CHESS database). Our findings on many factors were largely consistent with the patterns observed worldwide in studies on patients infected with SARS-CoV-2 [2234]. Both logistic and GBDT models predicted admission to ICU more accurately than death.

Obese patients were approximately 3.4-fold more likely to be admitted to ICU (the strongest association for any co-morbid condition), while the association with mortality was small and non-significant (OR 1.16, BH test). In a US study involving 3615 patients, patients with a body mass index (BMI) between 30 and 35 were 2-fold more likely to reach the ICU and those with a BMI of over 35 were 3-fold more likely, when compared to BMIs of less than 30 [22]. These very high levels of ICUA in our and other works, as well as the contrastingly weaker association with COVID-19 mortality, could be explained by clinicians tending to, relatively, over-admit obese patients to ICU. It could reflect ICUA being very effective in reducing mortality in this group and is an important area for further research [35]. Hypertension, and asthma were associated with ICU admission but not death. Others have reported increased risk of severe COVID-19 among asthmatics, with the increase driven only by patients with non-allergic asthma [27]. Hypertension has been associated with severe COVID-19 disease in previous univariable studies but there is no clear evidence that hypertension is an independent risk factor [29].

Black or Asian minority ethnic groups showed higher odds of death and substantially higher odds of ICU admission in our data compared to white British patients. Similar findings to ours have been demonstrated UK-wide. Multivariable analyses from large multi-ethnic cohorts have suggested that Asian and black patients group experienced an excessive level of mortality, hospital admission, and intensive care admission even when differences in age, sex, deprivation, geographical region, and some key comorbidities were taken into account [5,28,30,31]. White Irish ethnicity was non-significantly associated with lower risk of death (OR 0.49, BH test). This finding, adjusted for all covariates, echoes findings in an earlier study comparing death rates standardised for age and region using census data [30]. Chinese ethnicity predicted ICU admission (OR 10.22 with respect to the white British baseline) most strongly, followed by black Caribbean (OR 5.25). For these and other minority groups the association with ICU admission far exceeded that of death. An unrecorded or unknown ethnicity was strongly negatively associated with ICU admission, but not strongly associated with death. This may indicate increased recording of ethnicity on ICU admission, a potential cause of bias in estimating true differences in risk of ICU admission across ethnicities.

Age, type-1 diabetes, and neurological, heart, and respiratory diseases were negatively associated with ICU admission but not death. Age and chronic respiratory disease were strongly positively associated with death. Data gathered across the USA showed that deaths are 90 times higher in the 65–74 age group than the 18–29 age group and 630 times higher in the 85 and older group [36]. This may reflect judgements of limited capacity to benefit from ICU admission due to age and some co-morbidities. Type-2 diabetes is broadly reported to be associated with poor outcome in COVID-19 patients, while studies reporting outcome for type-1 diabetes are rare [32,33]. A national general practice based analysis in England demonstrated that both type-1 and type-2 diabetes are associated with increased risk of in-hospital death with COVID-19 [34]. Our multiply adjusted analysis of the CHESS dataset confirmed that type-2 diabetes had a strong association with mortality (and non-significant association with ICU admission), while type-1 diabetes’ association was positive but not statistically significant. On the other hand, type-1 diabetes was negatively associated with ICUA outcome. There is uncertainty regarding the effect of diabetes and glycaemic control on COVID-19 outcome. Whilst some suggest a 3-fold increase in intensive care admission and death [24], others found no association between glycaemic control and severe outcome [26]. Potential mechanisms for effects could include hyperinsulinemia or the interaction of SARS-CoV-2 with ACE2 receptors expressed in pancreatic β cells [32,37].

Male sex was positively and similarly associated with both ICU admission and death. The increased risk of male deaths is consistent with worldwide data, in which, on average, 1.4-fold more men than women have died from SARS-CoV2, with some countries reporting greater than 2-fold male deaths [38]. Increased expression of the ACE2 receptor may occur in men and has been suggested as a possible explanation for this finding [25]. Asymptomatic testing and pregnancy demonstrated a strong negative association with both death and ICU admission. These results were expected in view of NHS trusts undertaking surveillance swabs for asymptomatic people, including among elective hospital admissions.

Different machine-learning models have been leveraged to predict COVID-19 patients at risk of sudden deterioration. A study over 162 infected patients in Israel demonstrated that artificial intelligence may allow accurate risk prediction for COVID-19 patients using three models (neural networks, random trees, and random forests) [39]; a random forest model was used over 1987 patients for early prediction of ICU transfer [40]; the GBDT model was deployed on blood-sample data from 485 patients in Wuhan, China [41]; GBDT models outperformed conventional early-warning scoring systems for ventilation requirement prediction over 197 patients [42]; deep learning and ensemble models were reported to perform well for early warning and triaging in China [9,43]. These models are very complex, but evidence indicates that mortality predictions can be obtained from more parsimonious models, upon selecting the most important features, thus facilitating more efficient implementation of machine-learning in clinical environments [44]. Despite these successes, prediction models have been found overall to be poorly reported and at high risk of bias in a systematic review [45]. A comprehensive list of relevant works is out of the scope of this paper, but it is worth underlining that machine-learning methods typically excel in outcome prediction but lack ease of interpretation of the result. In this study, we bridged the gap between performance and interpretability in machine learning for poor outcome predictions in COVID-19 patients. We trained GBDT models (see Materials and methods section) and extracted not-only their predictions, but also the extent to which each potential risk factor contributed to the prediction overall (thus permitting comparisons with the more easily-interpretable logistic regression model) and for each patient. So-called “Shapley values” quantify such information, as summarised in Fig C and D of S1 Text for death and ICUA, respectively.

Overall, the association of patient features with the final outcome (measured by the SHAP importance scores Imp, see Materials and methods and Fig 5) is consistent with the logistic regression results, although the two models are intrinsically different. Moreover, for each feature, we derived an individual Shapley value for each patient, allowing us to consider the variation in effects among patients. As a first example, we discuss interpretation of type-2 diabetes. In the summary plots of Fig 4 and Figs C and D in S1 Text, the red markers correspond to type-2 diabetes patients and blue to patients without type-2 diabetes. In the summary plot for death outcome (Fig C in S1 Text, see also Fig 4), the red and blue markers are grouped into two distinct clusters. All the type-2 diabetes patients had positive Shapley values, thus showing that such a comorbidity was always associated with death, while all the other patients had nearly zero Shapley values. Conversely, in the summary plot for ICUA outcome (Fig D in S1 Text, see also Fig 4), the red markers appear scattered. Some T2-diabetes patients had positive Shapley values (positive association with ICU admission) while others had negative values (a negative association with ICU admission). The summary plots thus show not only the overall importance of a potential risk factor, but also its range of effects over the patients. In this case our interpretation is that although consistently increasing the risk of death, the presence of type 2 diabetes had more variable impact on decision making around ICU admission, in some cases apparently adding to the case for admission and in some cases diminishing it.

Being male was positively associated with both death and ICU admission. Its impacts were concordant in sign and confined within a narrow range of values. Conversely, for example, chronic renal disease and immunosuppressive treatment had low impact on predicting death for some patients, but very high impact for others, perhaps reflecting that these categories comprise a number of diverse conditions and therapies. Considering ethnicity, most minority groups were consistently and positively associated with ICUA but the impact attributed to Pakistani ethnicity were much more variable.

Shapley value analysis of the GBDT model also excels in explaining the nonlinear relations between covariates and their importance to outcome prediction. In Fig 6A, the predicted probability of death is shown to increase with age, in part due to increasing presence of comorbidities which are correlated with increasing age (Fig 1). In fact, the isolated effect of age (the SHAP main effects for age), illustrated in Fig 6C, shows a sharp rise from age 30 even if it is stripped from the interactions with the other factors. For ICUA, the SHAP main effect for age abruptly drops and even reverses from the 60th year of age (Fig 7). The abruptness may suggest an age threshold is being applied in clinical decision making on ICU admission.

During the first peak of COVID-19 epidemic healthcare services were under variable strain, with clinical expertise growing over time. Declining in-hospital mortality was observed in Italy [46] and England [47] during the first pandemic peak. This may reflect a mix of changing pressure, developing clinical expertise and variable follow-up time following admission. We included the patient’s admission day in our models to allow for these effects in adjustment (logistic regression) and attribution of impact (machine learning). Hospital admission later than March decreased both death and ICUA. These results mirror the PDPs outlined in Figs 6A and 6B and 7A and 7B, showing that a local explanation technique such as the Shapley value analysis supersedes and is consistent with the global explanation of the PDPs. The performance gains of the GBDTs here are small, in part due to the fact that all but two predictors (age and admission date) are binary. Indeed, the logistic model predictions depend on a linear combination of the predictor values, which is adequate if all the predictors are binary and the classes are linearly separable. The similarity in the predictive power for these specific cases should not shadow the other advantages of the GBDTs (including their greater generality and their ability of detecting non-linearity and variation in predictive effect).

While all our models had excellent performances, it is worth noting that prediction of ICUA outcome was significantly better than death alone prediction for both. Including laboratory test results in the predictor variable may improve death prediction [48].

In conclusion, this study confirms that, in hospitalised patients, the risk of severe COVID-19, defined as either death or transfer to intensive care unit, is strongly associated with known demographic factors and comorbidities. We found that the association of these variables with death was often qualitatively and quantitatively different from their association with ICU admission. This was consistently derived by means of two different predictive models, i.e., the standard logistic and the GBDT machine-learning models. The Shapley value explanation of the latter model also highlights the sometimes variable impact of each factor for each patient. These results allow an insight into the variable impact of individual risk factors on clinical decision support systems. We suggest that these should not only grant the optimal average prediction, but also provide interpretable outputs for validation by domain experts. Shapley values may also support analytical approaches to address the problem of characterising the group of patients for whom a prediction is incorrect. This is an important additional potential area for research and application. Shapley-value analyses allow clinical interpretation of the results from a complex machine-learning model such as the GBDT. Using these we have derived importance scores which are consistent with the better known ORs as an overall assessment of an average effect but can additionally display the extent to which this average effect is consistent across patients or highly variable among different patient groups. We recommend the wider adoption of Shapley-value analyses to support interpretation of ML outputs in clinical decision making given this capacity to communicate the variation in the effects of predictive variables. These aspects are particularly valuable to tackle COVID-19, a complex disease that can cause a variety of symptoms and clinical outcomes, depending on the patients’ conditions, and rapidly overwhelm healthcare systems, thus requiring large-scale automated decision systems.

Supporting information

S1 Text.

Supporting Information, including: Figs A, B, C, D, E, and F, and Table A.

https://doi.org/10.1371/journal.pcbi.1009121.s001

(PDF)

References

  1. 1. Wiersinga WJ, Rhodes A, Cheng AC, Peacock SJ, Prescott HC. Pathophysiology, Transmission, Diagnosis, and Treatment of Coronavirus Disease 2019 (COVID-19): A Review. JAMA—Journal of the American Medical Association. American Medical Association; 2020. pp. 782–793. pmid:32648899
  2. 2. WHO Coronavirus Disease (COVID-19) Dashboard | WHO Coronavirus Disease (COVID-19) Dashboard. [cited 26 Oct 2020]. Available: https://covid19.who.int/
  3. 3. Zhou Y, Yang Q, Chi J, Dong B, Lv W, Shen L, et al. Comorbidities and the risk of severe or fatal outcomes associated with coronavirus disease 2019: A systematic review and meta-analysis. International Journal of Infectious Diseases. 2020. pp. 47–56. pmid:32721533
  4. 4. Xie J, Tong Z, Guan X, Du B, Qiu H. Clinical Characteristics of Patients Who Died of Coronavirus Disease 2019 in China. JAMA Netw open. 2020;3: e205619. pmid:32275319
  5. 5. Williamson EJ, Walker AJ, Bhaskaran K, Bacon S, Bates C, Morton CE, et al. Factors associated with COVID-19-related death using OpenSAFELY. Nature. 2020;584: 430–436. pmid:32640463
  6. 6. McKeigue PM, Weir A, Bishop J, McGurnaghan SJ, Kennedy S, McAllister D, et al. Rapid Epidemiological Analysis of Comorbidities and Treatments as risk factors for COVID-19 in Scotland (REACT-SCOT): A population-based case-control study. Murthy S, editor. PLOS Med. 2020;17: e1003374. pmid:33079969
  7. 7. Clift AK, Coupland CAC, Keogh RH, Diaz-Ordaz K, Williamson E, Harrison EM, et al. Living risk prediction algorithm (QCOVID) for risk of hospital admission and mortality from coronavirus 19 in adults: national derivation and validation cohort study. BMJ. 2020;371: m3731. pmid:33082154
  8. 8. Knight SR, Ho A, Pius R, Buchan I, Carson G, Drake TM, et al. Risk stratification of patients admitted to hospital with covid-19 using the ISARIC WHO Clinical Characterisation Protocol: development and validation of the 4C Mortality Score. BMJ. 2020;370: m3339. pmid:32907855
  9. 9. Gao Y, Cai GY, Fang W, Li HY, Wang SY, Chen L, et al. Machine learning based early warning system enables accurate mortality risk prediction for COVID-19. Nat Commun. 2020. pmid:33024092
  10. 10. Molnar C, Casalicchio G, Bischl B. Interpretable Machine Learning—A Brief History, State-of-the-Art and Challenges. 2020. Available: http://arxiv.org/abs/2010.09337
  11. 11. Letter: COVID-19 Hospitalisation in England Surveillance System (CHESS)–daily reporting. [cited 6 Apr 2021]. Available: https://www.england.nhs.uk/coronavirus/publication/letter-covid-19-hospitalisation-in-england-surveillance-system-chess-daily-reporting
  12. 12. Booth AL, Abels E, McCaffrey P. Development of a prognostic model for mortality in COVID-19 infection using machine learning. Mod Pathol. 2021;34: 522–531. pmid:33067522
  13. 13. Zoabi Y, Deri-Rozov S, Shomron N. Machine learning-based prediction of COVID-19 diagnosis based on symptoms. npj Digit Med. 2021;4: 3. pmid:33398013
  14. 14. Benjamini Y, Hochberg Y. Controlling the False Discovery Rate: A Practical and Powerful Approach to Multiple Testing. J R Stat Soc Ser B. 1995;57: 289–300.
  15. 15. Chen T, Guestrin C. XGBoost. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining—KDD ‘16. New York, New York, USA: ACM Press; 2016. pp. 785–794. https://doi.org/10.1145/2939672.2939785
  16. 16. Bergstra J, Yamins D, Cox D. Making a Science of Model Search: Hyperparameter Optimization in Hundreds of Dimensions for Vision Architectures. In: Dasgupta S, McAllester D, editors. Proceedings of the 30th International Conference on Machine Learning. Atlanta, Georgia, USA: PMLR; 2013. pp. 115–123. Available: http://proceedings.mlr.press/v28/bergstra13.html https://doi.org/10.1161/CIRCULATIONAHA.113.003334 pmid:24077170
  17. 17. Lundberg SM, Lee S-I. A Unified Approach to Interpreting Model Predictions. Guyon I, Luxburg U V, Bengio S, Wallach H, Fergus R, Vishwanathan S, et al., editors. Nips. 2012;16: 426–430.
  18. 18. Lundberg SM, Erion G, Chen H, DeGrave A, Prutkin JM, Nair B, et al. From local explanations to global understanding with explainable AI for trees. Nat Mach Intell. 2020;2: 56–67. pmid:32607472
  19. 19. Shapley LS. A VALUE FOR n-PERSON GAMES. In: Kuhn HW, Tucker AW, editors. Contributions to the Theory of Games (AM-28), Volume II. Princeton, New Jersey: Princeton University Press; 1953. pp. 307–318. Available: http://www.jstor.org/stable/j.ctt1b9x1zv.24
  20. 20. Friedman JH. Greedy function approximation: A gradient boosting machine. Ann Stat. 2001;29: 1189–1232.
  21. 21. Fox J, Weisberg S. An R companion to applied regression. Thousands Oaks, California: SAGE Publications Inc.; 2018.
  22. 22. Lighter J, Phillips M, Hochman S, Sterling S, Johnson D, Francois F, et al. Obesity in Patients Younger Than 60 Years Is a Risk Factor for COVID-19 Hospital Admission. Clinical infectious diseases: an official publication of the Infectious Diseases Society of America. 2020. pp. 896–897. pmid:32271368
  23. 23. Simonnet A, Chetboun M, Poissy J, Raverdy V, Noulette J, Duhamel A, et al. High Prevalence of Obesity in Severe Acute Respiratory Syndrome Coronavirus-2 (SARS-CoV-2) Requiring Invasive Mechanical Ventilation. Obesity. 2020;28: 1195–1199. pmid:32271993
  24. 24. Riddle MC, Buse JB, Franks PW, Knowler WC, Ratner RE, Selvin E, et al. COVID-19 in People with Diabetes: Urgently Needed Lessons from Early Reports. Diabetes Care. American Diabetes Association Inc.; 2020. pp. 1378–1381. https://doi.org/10.2337/dci20-0024 pmid:32409505
  25. 25. Klein SL, Dhakal S, Ursin RL, Deshpande S, Sandberg K, Mauvais-Jarvis F. Biological sex impacts COVID-19 outcomes. Coyne CB, editor. PLOS Pathog. 2020;16: e1008570. pmid:32569293
  26. 26. Cariou B, Hadjadj S, Wargny M, Pichelin M, Al-Salameh A, Allix I, et al. Phenotypic characteristics and prognosis of inpatients with COVID-19 and diabetes: the CORONADO study. Diabetologia. 2020;63: 1500–1515. pmid:32472191
  27. 27. Zhu Z, Hasegawa K, Ma B, Fujiogi M, Camargo CA, Liang L. Association of asthma and its genetic predisposition with the risk of severe COVID-19. J Allergy Clin Immunol. 2020;146: 327–329.e4. pmid:32522462
  28. 28. Sapey E, Gallier S, Mainey C, Nightingale P, McNulty D, Kolesnyk A, et al. Ethnicity and Risk of Death in Patients Hospitalised for COVID-19 Infection: An Observational Cohort Study in an Urban Catchment Area. SSRN Electron J. 2020.
  29. 29. Shibata S, Arima H, Asayama K, Hoshide S, Ichihara A, Ishimitsu T, et al. Hypertension and related diseases in the era of COVID-19: a report from the Japanese Society of Hypertension Task Force on COVID-19. Hypertension Research. Nature Publishing Group; 2020. pp. 1028–1046. https://doi.org/10.1038/s41440-020-0515-0 pmid:32737423
  30. 30. Aldridge RW, Lewer D, Katikireddi SV, Mathur R, Pathak N, Burns R, et al. Black, Asian and Minority Ethnic groups in England are at increased risk of death from COVID-19: indirect standardisation of NHS mortality data. Wellcome Open Res. 2020;5: 88. pmid:32613083
  31. 31. Alaa AM, Qian Z, Rashbass J, Gomes Pinto K, Benger J, Van Der Schaar M. Ethnicity and Outcomes of COVID-19 Patients in England. [cited 29 Aug 2020]. Available: https://vanderschaar-lab.com/papers/Ethnicity_COVID19_Cambridge_NHS.pdf
  32. 32. Apicella M, Campopiano MC, Mantuano M, Mazoni L, Coppelli A, Del Prato S. COVID-19 in people with diabetes: understanding the reasons for worse outcomes. lancet Diabetes Endocrinol. 2020;0. pmid:32687793
  33. 33. Drucker DJ. Coronavirus Infections and Type 2 Diabetes-Shared Pathways with Therapeutic Implications. Endocr Rev. 2020;41. pmid:32294179
  34. 34. Barron E, Bakhai C, Kar P, Weaver A, Bradley D, Ismail H, et al. Associations of type 1 and type 2 diabetes with COVID-19-related mortality in England: a whole-population study. Lancet Diabetes Endocrinol. 2020. pmid:32798472
  35. 35. Simonnet A, Chetboun M, Poissy J, … VR-, 2020 U. High Prevalence of Obesity in Severe Acute Respiratory Syndrome Coronavirus-2 (SARS-CoV-2) Requiring Invasive Mechanical Ventilation. Obesity. 2020;28: 1994–1994. pmid:32959517
  36. 36. Provisional Death Counts for Coronavirus Disease 2019 (COVID-19). [cited 17 Nov 2020]. Available: https://www.cdc.gov/nchs/covid19/covid-19-mortality-data-files.htm
  37. 37. The Lancet Diabetes Endocrinology TLD&. COVID-19 and diabetes: a co-conspiracy? lancet Diabetes Endocrinol. 2020;8: 801. pmid:32946812
  38. 38. COVID-19 sex-disaggregated data tracker–Global Health 50/50. [cited 17 Nov 2020]. Available: https://globalhealth5050.org/the-sex-gender-and-covid-19-project/the-data-tracker/
  39. 39. Assaf D, Gutman Y, Neuman Y, Segal G, Amit S, Gefen-Halevi S, et al. Utilization of machine-learning models to accurately predict the risk for critical COVID-19. Intern Emerg Med. 2020; 1–9. pmid:32812204
  40. 40. Cheng F-Y, Joshi H, Tandon P, Freeman R, Reich DL, Mazumdar M, et al. Using Machine Learning to Predict ICU Transfer in Hospitalized COVID-19 Patients. J Clin Med. 2020;9: 1668. pmid:32492874
  41. 41. Yan L, Zhang H-T, Goncalves J, Xiao YYY, Wang M, Guo Y, et al. An interpretable mortality prediction model for COVID-19 patients. Nat Mach Intell. 2020;2: 283–288.
  42. 42. Burdick H, Lam C, Mataraso S, Lynn-Palevsky A, Braden G, Dellinger RP, et al. Prediction of respiratory decompensation in Covid-19 patients using machine learning: The READY trial. Comput Biol Med. 2020;124: 103949. pmid:32798922
  43. 43. Liang W, Yao J, Chen A, Lv Q, Zanin M, Liu J, et al. Early triage of critically ill COVID-19 patients using deep learning. Nat Commun. 2020;11: 3543. pmid:32669540
  44. 44. Yadaw AS, Li Y chak, Bose S, Iyengar R, Bunyavanich S, Pandey G. Clinical features of COVID-19 mortality: development and validation of a clinical prediction model. Lancet Digit Heal. 2020;2: e516–e525. pmid:32984797
  45. 45. Wynants L, Van Calster B, Collins GS, Riley RD, Heinze G, Schuit E, et al. Prediction models for diagnosis and prognosis of covid-19: Systematic review and critical appraisal. BMJ. 2020;369: m1328. pmid:32265220
  46. 46. Ciceri F, Ruggeri A, Lembo R, Puglisi R, Landoni G, Zangrillo A, et al. Decreased in-hospital mortality in patients with COVID-19 pneumonia. Pathog Glob Health. 2020; 1–2. pmid:32584660
  47. 47. Mahon J, Oke J, Heneghan C. Declining death rate from COVID-19 in hospitals in England. 2020. Available: https://www.cebm.net/covid-19/declining-death-rate-from-covid-19-in-hospitals-in-england/
  48. 48. Zhang H, Shi T, Wu X, Zhang X, Wang K, Bean D, et al. Risk prediction for poor outcome and death in hospital in-patients with COVID-19: derivation in Wuhan, China and external validation in London, UK. medRxiv. 2020.