Next Article in Journal
Hospital Admissions Related to Infections and Disorders of the Skin and Subcutaneous Tissue in England and Wales
Next Article in Special Issue
Examining Cognitive Factors for Alzheimer’s Disease Progression Using Computational Intelligence
Previous Article in Journal
Hypovitaminosis D and Metabolic Syndrome in Postmenopausal Women
Previous Article in Special Issue
Intelligent Monitoring Model for Fall Risks of Hospitalized Elderly Patients
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Age-Stratified Analysis of COVID-19 Outcome Using Machine Learning Predictive Models

by
Juan L. Domínguez-Olmedo
1,2,*,
Álvaro Gragera-Martínez
3,
Jacinto Mata
1,2 and
Victoria Pachón
1,2
1
I2C Research Group, Higher Technical School of Engineering, University of Huelva, 21007 Huelva, Spain
2
Research Center for Technology, Energy and Sustainability (CITES), University of Huelva, 21007 Huelva, Spain
3
Juan Ramón Jiménez University Hospital, 21005 Huelva, Spain
*
Author to whom correspondence should be addressed.
Healthcare 2022, 10(10), 2027; https://doi.org/10.3390/healthcare10102027
Submission received: 20 September 2022 / Revised: 6 October 2022 / Accepted: 11 October 2022 / Published: 14 October 2022
(This article belongs to the Special Issue Artificial Intelligence Applications in Medicine)

Abstract

:
Since the emergence of COVID-19, most health systems around the world have experienced a series of spikes in the number of infected patients, leading to collapse of the health systems in many countries. The use of clinical laboratory tests can serve as a discriminatory method for disease severity, defining the profile of patients with a higher risk of mortality. In this paper, we study the results of applying predictive models to data regarding COVID-19 outcome, using three datasets after age stratification of patients. The extreme gradient boosting (XGBoost) algorithm was employed as the predictive method, yielding excellent results. The area under the receiving operator characteristic curve (AUROC) value was 0.97 for the subgroup of patients up to 65 years of age. In addition, SHAP (Shapley additive explanations) was used to analyze the feature importance in the resulting models.

1. Introduction

The beginning of the SARS-CoV-2 pandemic at the end of 2019 resulted in changes in people’s way of life, their relationships with others and changes in work, and above all it has posed and currently continues to constitute one of the greatest societal challenges of our time. In this sense, the health crisis is noteworthy, not only due to the mortality of the coronavirus, but also because of the indirect consequences it has generated, since many patients have been unable to be diagnosed and treated for other pathologies. We must also add the economic consequences that this pandemic is causing in every country [1].
The coronavirus occurs in many patients, initially presenting with respiratory disease, which in some cases later derives in respiratory failure and death in a significant percentage of those infected. Respiratory involvement is not the exclusive symptom of COVID-19, since many other patients develop a severe acute respiratory syndrome, which occurs with an increase in pro-inflammatory cytokines, which can cause systemic inflammation with multi-organ failure and death [2]. On the other hand, a significant percentage of patients develop coagulation alterations, entering a prothrombotic state; these patients undergo thrombi in the lungs, brain and elsewhere in the body, which on many occasions lead to the patient’s death [3].
Since the emergence of COVID-19, most health systems around the world have experienced a series of spikes in the number of infected patients. This exponential increase in cases has caused an unparalleled collapse of the health systems in many countries. Healthcare systems have come under pressure to such an extent that it has been necessary to choose which patients are candidates for treatment and which are not. In addition, in the initial moments of the pandemic rapid diagnostic methods were practically unavailable, leading to several patients not receiving adequate treatment [4].
To prioritize the treatment of infected patients, the World Health Organization (WHO), together with the USA’s Center for Disease Control and Prevention (CDC), defined the profile of patients with a higher risk of mortality. The risk group was defined as patients over 65 years old, those who lived in a nursing home and people with at least one of the following health problems: chronic lung disease, severe heart disease, obesity, diabetes, hypertension, kidney failure, liver disease or patients with immunodeficiency [5]. This classification of risk factors has evolved, making it necessary to stratify according to patient’s age.
Machine learning is a branch of artificial intelligence that allows machines to make systems capable of identifying patterns in data to make predictions. It has been successfully applied to tasks related to healthcare [6,7]. By applying machine learning techniques to clinical laboratory data from patients’ hospital stays [8], we developed mortality prediction models after stratification of patients according to age (up to 65 years, 65–80 years and older than 80 years). For each age group we also studied the influence of laboratory parameters on the model predictions. This enables healthcare professionals to provide more personalized attention to patients, focusing on possible complications depending on the age group, which translates into a better evolution of the disease in these patients.
The rest of this paper is organized as follows. The Section 2 gives a description of the data and methods employed. Section 3 and Section 4 detail and discuss the results obtained. Finally, some concluding remarks are stated in Section 5.

2. Materials and Methods

In this section, the dataset used in this work is described first. Next, a detailed description of the machine learning techniques employed is provided.

2.1. Materials

In this study, we used anonymized clinical data provided by a private Spanish hospital group (HM Hospitales), which has facilities mainly in the Autonomous Communities of Madrid and Galicia, and also in the city of Barcelona. This group made its data available to the scientific community for research purposes.
Using these electronic medical records, we used the available data of patients admitted with a possible diagnosis of COVID-19 between March and June 2020. From all the data tables provided, the following were selected:
  • A main table containing specific data on patient hospitalization (2547 records).
  • A table of laboratory data with the results of different tests performed on patients both on admission to the hospital and during their hospitalization (584,136 records).
In the main table there is an ‘Outcome’ feature, with the values: ‘Death’ (15.0%), ‘Home’ (77.2%), ‘Transfer to hospital’ (3.7%), ‘Transfer to socio-sanitary center’ (2.1%), ‘Voluntary discharge’ (0.1%) and without value (1.9%).

2.2. Methods

2.2.1. Data Preprocessing

As an initial step in any machine learning procedure, a data preprocessing stage was performed. The information from the two tables was preprocessed as follows:
  • Selection of patients with a confirmed diagnosis of SARS-CoV-2 with an ‘Outcome’ value of ‘Home’ or ‘Death’, to analyze the data likely related to the patient’s survival.
  • Combination of data from both tables using the patient ID. Since patients may present a variable number of results for each laboratory parameter, the mean value was calculated and assigned to each of them.
  • Due to the considerable number of missing values in the laboratory parameters, a filtering process was carried out both in the records and the features to obtain a clean dataset with no missing values. In this work, for the sake of uniformity and simplicity, we used the following procedure: first, we eliminated those features that had missing values in more than 10% of all records; subsequently, only those records with values in the set of features selected in the previous step were selected.
  • The values of the discrete features were transformed into numerical values. Among all the features used in this study, the only two variables with discrete values were ‘Sex’ and ‘Outcome’, which are the classes to be predicted. Both features have two possible values, so they were transformed into binary values.

2.2.2. XGBoost

The algorithm XGBoost is a gradient boosted decision tree model presented by Chen and Guestrin [9]. It offers parallel tree boosting to address a wide range of data science problems quickly and accurately. It is an open-source software library which provides a gradient boosting framework designed to be highly efficient and flexible. This algorithm stands out due to its ability to produce accurate predictions which are often comparable to or better than those produced by more computationally complex models.
This method trains decision trees sequentially and adds a new decision tree to the previous one if it improves the objective function’s value. During training, XGBoost produces several “weak” prediction models sequentially (decision trees), and then it uses the effects of the previous model to construct a “stronger” model with improved predictive strength and greater stability in its results.
This algorithm aims to minimize the objective functions by adjusting the parameters in each tree. An optimization algorithm is used to select which tree to add to create a stronger model. Each model is compared to the one before it. When a new model performs better, it is added to the strong model. If, on the other hand, the outcomes are poor, it is returned to the best previous one and updated in a different way.
This method is repeated until the gap between successive models is negligible, indicating that we have found the best possible model. XGBoost has been successfully applied to medicine tasks, such as prediction of diabetes risk [10], hypertension [11], drug response [12], smoking-induced diseases [13], lung cancer [14], mortality in elderly patients [15] or bone mass loss [16].
In this study, all experiments were performed using the XGBoost library for Python [17].

2.2.3. Feature Importance

A crucial feature in machine learning research is the interpretability of the results. In the field of medicine, this characteristic is paramount for healthcare professionals to be able to draw conclusions and make decisions based on the results obtained using machine learning algorithms [18]. Machine learning interpretability can be defined as the degree to which the user can understand and interpret a prediction made by a model [19].
In this paper, we used the SHAP framework to assist in interpreting machine learning models [20]. SHAP is based on game theory [21] and enables the identification and ranking of the features that most influence the prediction model, selecting the optimal set from these features.
This technique can assign values to the importance of features in complex machine learning models, providing an interpretable prediction for a test sample. SHAP values have been proposed as a unified metric of feature significance, since they assign an importance value to each feature that reflects the impact of including that feature in the model prediction, and they can be calculated according to (1):
i ( v ) = S N \ { i }   | S | ! ( n | S | 1 ) ! n ! ( v ( S   { i } ) v ( S ) )
Using SHAP with XGBoost has an additional advantage, which is the possibility of using TreeSHAP, a quick variant of SHAP for tree-based machine learning. It enables the exact computation of Shapley values in polynomial time [22].
Figure 1 outlines the procedure used in this work. The importance of a feature is calculated as the average of the absolute SHAP values for all the instances of the dataset.

2.2.4. Feature Selection

In statistics and machine learning, feature selection involves the procedure to select the subset of relevant features (variables) and use it to build a model. Some possible advantages that can derive from a reduction in the features used include: a reduced processing time to train the model, a simplified model that is more interpretable and an improved generalization capability in the model.
It is important to consider that there may be some features that may be redundant or irrelevant, meaning that they can be omitted without affecting the quality of the model obtained [23].
In this work, a simple feature selection technique was chosen, which can be considered within the category of wrapper methods, with the aim of reducing the number of features used without affecting the performance of the model. Moreover, in the field of medicine, where this study is developed, considering a smaller number of features has an additional advantage in this case. Because laboratory test results are involved, the time and cost associated with analytical tests can be reduced, and medical professionals can focus their efforts on the characteristics that most influence the model’s output.
The procedure involved uses the feature importance values, which in this work are related to the SHAP values, to select a subset of features. Specifically, we selected the 12 features with the highest feature importance value in a first model (intermediate model) after performing a hyperparameter tuning process. Then, using only these 12 features, the hyperparameter tuning process was repeated to obtain the final model. Figure 2 shows a diagram of the described procedure.

2.2.5. Hyperparameter Optimization

During the training phase of a predictive model, it is generally necessary to fix the values of certain parameters (hyperparameters). Among the variety of existing parameters in XGBoost, some of the most relevant ones were considered for adjustment, leaving the rest at their default values. The six parameters selected for tuning affect both the number and structure of the gradient boosted trees (n_estimators, max_depth, and min_child_weight), as well as the learning process itself (learning_rate, subsample, and colsample_bytree).
The values for these hyperparameters were chosen using hyperopt, a Python library for distributed hyperparameter optimization [24]. The metric used in the optimization was the AUROC (area under the receiving operator characteristic curve), and the algorithm used was the tree-structured Parzen estimator (TPE). It was carried out in 1000 tuning cycles, and in each tuning cycle 10-fold stratified cross-validation was used to estimate the value of the AUROC.

2.2.6. Evaluation Metrics

In order to evaluate the performance of the predictive models obtained, the AUROC value was calculated, based on its ROC (receiver operating characteristics) curve, which plots the true-positive rate against the false-positive rate. In addition, the accuracy value was calculated (2), and also, by determining the cut-point that maximizes the Youden index (3), the associated sensitivity (4) and specificity (5) values [25].
a c c u r a c y = t r u e   p o s i t i v e s + t r u e   n e g a t i v e s t r u e   p o s i t i v e s + f a l s e   p o s i t i v e s + t r u e   n e g a t i v e s + f a l s e   n e g a t i v e s
s e n s i t i v i t y = t r u e   p o s i t i v e s t r u e   p o s i t i v e s + f a l s e   n e g a t i v e s
s p e c i f i c i t y = t r u e   n e g a t i v e s t r u e   n e g a t i v e s + f a l s e   p o s i t i v e s
J = s e n s i t i v i t y + s p e c i f i c i t y 1
The calculation of these metrics was carried out using the bootstrap method, which iteratively resamples a dataset with replacement [26], and goes through 200 iterations for this purpose.

3. Results

After the initial preprocessing phase, data from 1823 patients were selected. Given that this study focuses on comparing results according to age subgroups, the resulting dataset was divided according to the patients’ age. Thus, three datasets were obtained: the first with patients under 65 years of age, the second with those between 66 and 80 years of age and the third with those over 80 years of age.
Table 1 shows information about these datasets, detailing the distribution of patients according to ‘Sex’ and ‘Outcome’. The number of selected features was 32, corresponding to age, sex and laboratory test results. Table A1 in Appendix A provides the features corresponding to laboratory tests, together with their units and reference values.

3.1. Evaluation of the Models

In order to evaluate the final models obtained, we used the bootstrap technique, calculating the average value for the different metrics described above. Table 2 shows the results obtained for each of the established age subgroup. For all three datasets, high values were obtained for all measurements, all of them exceeding the AUROC value of 0.93. The model obtained from the dataset of the age subgroup up to 65 years was the one that obtained the best result in all the measures, highlighting its 0.97 AUROC value. The results show the robustness of the model for all the age subgroups. Figure 3 illustrates the ROC curves corresponding to each age subgroup.
As described in Section 2.2.5, a tuning process was performed to find the optimal values for some of the hyperparameters used by the XGBoost algorithm. As can be seen in Table 3, the values obtained differ for each model, adapting to the nature of the data in each dataset. As can be seen, the simplest model, in terms of the number of trees used and their depth, is the one obtained for the over-80 subgroup.

3.2. Feature Selection

To evaluate the effect of the feature selection process described in Section 2.2.4, a test of the models’ performance in the process was carried out. For this purpose, we compared the AUROC and accuracy values in the intermediate model (with all variables) and in the final model (with 12 variables), using the bootstrap technique to calculate them. Table 4 shows the mean values obtained together with a confidence interval of 95%. It can be seen that performance improved in all age subgroups after performing the feature selection process. Thus, having fewer features, the models are more interpretable and, in addition, present better values for the quality measures used.

3.3. Feature Importance

One of the main objectives of this study is to obtain predictive models with optimal values for quality measures that are, in turn, easily interpretable by healthcare professionals. In general, the models obtained using predictive machine learning algorithms are presented as black boxes that are difficult to interpret and, therefore, it is not possible to know which variables or features have the greatest influence on the model.
For this purpose, the present study included a process to obtain the most relevant features for the prediction of the ‘Outcome’ feature, based on the calculation of the SHAP values for each feature. Figure 4 shows the 12 features that most influence the models obtained for each age subgroup. It is noteworthy that the significance of the features, which mainly represent different laboratory measurements performed on patients, are different for each subgroup. Thus, the LDH feature is the most relevant in the (-,65] and (65,80] subgroups, and yet the most important feature in the (80,-) subgroup is the CRP. In the case of D-Dimer, it is the second most relevant feature in the (-,65] subgroup, and yet it ranks seventh in the (65,80] subgroup and is not among the 12 most relevant in the (80,-) subgroup.

4. Discussion

SARS-CoV-2 has produced an increase in mortality due to COVID-19. This excess mortality has been very well defined in those places where the healthcare system collapse has been more evident and has occurred much more quickly. In Italy, we have found that in the north of the country, where the pandemic began earlier, the excess mortality was much higher than in the areas of the country where there was time to establish prevention and protection measures for the population [27]. In Spain, this became evident in places with the highest population density, such as Madrid and Catalonia, as well as in regions with an older population.
The need to find an explanation for the aforementioned excess mortality has led to the stratification of the population according to different variables in order to explain higher mortality rates in each group. The first population groups that best explained the excess mortality were sex and age [28]. It is currently known that men have a higher mortality rate compared to women. This is due to different immunological mechanisms. It is true that the infection rate is the same in men and women, but later, the body’s physiological response to the virus is different depending on sex. In this sense, women display a more effective activation of the immune system. This means that women’s systems have more effective and faster clearing mechanisms for the virus than those of men. In men, the immune system undergoes a dysregulation when it comes into contact with the virus more frequently than in women, which produces a pro-inflammatory state and an increase in circulating cytokines in the blood, and as a consequence an acute inflammatory syndrome occurs with the consequent increase in mortality in this group [29]. If we add to this theory that men have a higher prevalence of cardiovascular disease, it increases the risk of mortality. If we stratify by age, it is logical to think that the older the patient, the higher the mortality, as occurs in most infectious diseases. Therefore, at an older age, mortality increased significantly [30]. Age combined with other parameters will make it possible to make a better prediction of mortality in these groups and therefore improve treatment [31]. If the risk of mortality as a function of age is divided by sex, we see that men present higher mortality than women in all age groups [32].
It is clear that stratification by age and sex is very important to understand how other factors can influence COVID-19 mortality. The individual risk factors, among which cardiovascular risk factors and diabetes stand out, will enable an approximation of the mortality risk for each individual [33].
Following the recommendations to stratify patients according to age, the proposed model includes the laboratory parameters obtained from patients upon entering the hospital. These parameters have made it possible to better understand why mortality is higher in each of the age groups, and, therefore, to carry out a treatment directed towards these alterations. In Figure 4, you can see the laboratory parameters that have been considered more clinically significant, in terms of patients who died compared to those who were discharged. As it can be seen in Table 5, all the comparisons using Mann–Whitney tests are statistically significant except in the case of creatinine in those up to 65 years of age and ALT in those over 65 years of age.
Figure 5 shows boxplots of LDH among patients who die and those who are discharged according to age group. It is noteworthy that in all age groups there is a clear difference between the group that dies and the one that is discharged, except in the group over 80 years of age. Both in the under-65 group and in the 65–80-year-old group, LDH is the laboratory variable that best explains mortality; however, in the group over 80 years of age, it is the second one, below CRP. It has already been established that laboratory tests better predict the severity of COVID-19 infection, with biomarkers such as D-Dimer, CRP and LDH considered as the most important in the initial screening of patients infected with COVID-19 when they visit a hospital. In this sense, the D-Dimer is the most important parameter to screen in young patients; it can even be performed in emergency units when patients are classified according to severity upon arrival [34].
Figure 6 shows the corresponding boxplots for D-Dimer, and according to the results obtained using our models, Figure A1, Figure A2 and Figure A3 in Appendix A show the boxplots with significant variables regarding mortality according to age groups. In addition to LDH, the importance of CRP in the over-80 age group is noteworthy. The D-Dimer is relevant in the under-65 age group, and platelet count is important in the 65 to 80 age group.
Furthermore, making a more exhaustive diagnosis will improve the prognosis of these patients, as the treatment will be better and more targeted, reducing the excess mortality from COVID-19 in each of the age groups. In younger patients (<65 years), establishing a treatment based on D-Dimer levels will improve the prognosis for these patients. Therefore, the benefit of establishing treatment with Enoxaparin or Apixaban will decrease mortality in those patients who have a D-Dimer greater than 1000 pg/L, compared to those patients with a D-Dimer value lower than 1000 pg/L [35]. However, in older patients, in whom inflammation measured by CRP is the best predictor of mortality, treatment should be directed towards blocking the immunological mechanisms that increase this inflammatory reaction, such as corticosteroids or IL-6 blockers (Tocilizumab or Sarilumab). The increase in therapeutic options will improve COVID-19 survival in the short term, and having successful treatments based on the risk of mortality will facilitate the work, until vaccines, in the long term, reduce mortality [36].
Having tools that allow a rapid diagnosis of COVID-19 through rapid tests such as real-time PCR in saliva [37], together with predictive models that use laboratory parameters upon arrival to the emergency room or medical center, will enable a quicker classification of patients according to their propensity to complications. Thus, patients will benefit from a more personalized treatment that will be established much earlier. All of this will translate into a reduction in COVID-19 mortality.

5. Conclusions

This work presents a machine learning analysis of data regarding COVID-19 outcome. Using age-stratified data, three different predictive models were trained and evaluated, mainly employing as predictor features the patients’ laboratory test results.
By employing the XGBoost method, excellent results were obtained after an evaluation using the bootstrap method on several performance metrics, showing high accuracy to predict a patient’s outcome. In addition, the importance of the features used in each of the three models was analyzed using SHAP, and differences between the three age groups were found.

Author Contributions

Conceptualization, Á.G.-M. and J.L.D.-O.; methodology, J.L.D.-O., Á.G.-M. and J.M.; software, J.L.D.-O. and V.P.; writing—original draft, J.L.D.-O., Á.G.-M. and J.M.; writing—review and editing, J.L.D.-O., Á.G.-M., J.M. and V.P.; resources, J.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Patient consent was waived because anonymous data were made available from a hospital group.

Data Availability Statement

The data are not publicly available due to privacy reasons.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

ALTalanine aminotransferase
ASTaspartate aminotransferase
AUROCarea under the receiving operator characteristic curve
CRPC-reactive protein
LDHlactate dehydrogenase
MCHmean corpuscular hemoglobin
MCHCmean corpuscular hemoglobin concentration
MCVmean corpuscular volume
MPVmean platelet volume
RBCsred blood cells
SHAPShapley additive explanations
XGBXGBoost, extreme gradient boosting

Appendix A

Table A1. Units and reference values for the clinical lab features in the dataset.
Table A1. Units and reference values for the clinical lab features in the dataset.
FeatureUnitsReference Value
ALTU/L<40
ASTU/L<40
Anisocytosis coefficient%11.5–14.5
Basophils%0–1
Basophil count1 × 103/µL0–0.1
CRPmg/L<5
Creatininemg/dL0.6–1.0
D-Dimerng/mL<500
Eosinophils%2–7
Eosinophil count1 × 103/µL0.1–0.6
Glucosemg/dL70–105
Hematocrit%40–54
Hemoglobing/dL13.5–17.5
LDHU/L120–230
Leukocyte count1 × 103/µL4.4–11.3
Lymphocytes%20–48
Lymphocyte count1 × 103/µL1.2–3.4
MCHpg28–33
MCHCg/dL33–36
MCVfL80–95
MPVfL7.4–10.4
Monocytes%1–11
Monocyte count1 × 103/µL0.1–1
Neutrophils%40–75
Neutrophil count1 × 103/µL1.5–7.5
Platelets count1 × 103/µL150–450
Potassiummmol/L3.5–5.1
RBCs1 × 103/µL4.1–5.9
Sodiummmol/L135–145
Ureamg/dL5–50
Figure A1. Boxplots for Urea showing the values by age subgroup based on patients who died and those who were discharged.
Figure A1. Boxplots for Urea showing the values by age subgroup based on patients who died and those who were discharged.
Healthcare 10 02027 g0a1
Figure A2. Boxplots for CRP showing the values by age subgroup based on patients who died and those who were discharged.
Figure A2. Boxplots for CRP showing the values by age subgroup based on patients who died and those who were discharged.
Healthcare 10 02027 g0a2
Figure A3. Boxplots for Lymphocytes showing the values by age subgroup based on patients who died and those who were discharged.
Figure A3. Boxplots for Lymphocytes showing the values by age subgroup based on patients who died and those who were discharged.
Healthcare 10 02027 g0a3

References

  1. Mahase, E. Coronavirus COVID-19 has killed more people than SARS and MERS combined, despite lower case fatality rate. BMJ 2020, 368, m641. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  2. Ranney, M.L.; Valerie Griffeth, M.P.H.; Jha, A.K. Critical Supply Shortages—The Need for Ventilators and Personal Protective Equipment during the Covid-19 Pandemic. N. Engl. J. Med. 2020, 382, e41. [Google Scholar] [CrossRef]
  3. Klok, F.A.; Boon, G.J.A.M.; Barco, S.; Endres, M.; Geelhoed, J.M.; Knauss, S.; Rezek, S.A.; Spruit, M.A.; Vehreschild, J.; Siegerink, B. The Post-COVID-19 Functional Status scale: A tool to measure functional status over time after COVID-19. Eur. Respir. J. 2020, 56, 2001494. [Google Scholar] [CrossRef] [PubMed]
  4. Schwab, P.; DuMont Schütte, A.; Dietz, B.; Bauer, S. Clinical Predictive Models for COVID-19: Systematic Study. J. Med. Internet Res. 2020, 22, e21439. [Google Scholar] [CrossRef] [PubMed]
  5. Yan, L.; Zhang, H.-T.; Goncalves, J.; Xiao, Y.; Wang, M.; Guo, Y.; Sun, C.; Tang, X.; Jing, L.; Zhang, M.; et al. An interpretable mortality prediction model for COVID-19 patients. Nat. Mach. Intell. 2020, 2, 283–288. [Google Scholar] [CrossRef]
  6. Bejan, V.; Dragoi, E.-N.; Curteanu, S.; Scripcariu, V.; Filip, B. The Prediction of Peritoneal Carcinomatosis in Patients with Colorectal Cancer Using Machine Learning. Healthcare 2022, 10, 1425. [Google Scholar] [CrossRef]
  7. Tarcoveanu, F.; Leon, F.; Curteanu, S.; Chiselita, D.; Bogdanici, C.M.; Anton, N. Classification Algorithms Used in Predicting Glaucoma Progression. Healthcare 2022, 10, 1831. [Google Scholar] [CrossRef]
  8. Barda, N.; Riesel, D.; Akriv, A.; Levy, J.; Finkel, U.; Yona, G.; Greenfeld, D.; Sheiba, S.; Somer, J.; Bachmat, E.; et al. Developing a COVID-19 mortality risk prediction model when individual-level data are not available. Nat. Commun. 2020, 11, 1–9. [Google Scholar] [CrossRef]
  9. Chen, T.; Guestrin, C. XGBoost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; pp. 785–794. [Google Scholar] [CrossRef] [Green Version]
  10. Wang, L.; Wang, X.; Chen, A.; Jin, X.; Che, H. Prediction of Type 2 Diabetes Risk and Its Effect Evaluation Based on the XGBoost Model. Healthcare 2020, 8, 247. [Google Scholar] [CrossRef] [PubMed]
  11. Chang, W.; Liu, Y.; Xiao, Y.; Yuan, X.; Xu, X.; Zhang, S.; Zhou, S. A Machine-Learning-Based Prediction Method for Hypertension Outcomes Based on Medical Data. Diagnostics 2019, 9, 178. [Google Scholar] [CrossRef] [Green Version]
  12. Mo, X.; Chen, X.; Li, H.; Li, J.; Zeng, F.; Chen, Y.; He, F.; Zhang, S.; Li, H.; Pan, L.; et al. Early and Accurate Prediction of Clinical Response to Methotrexate Treatment in Juvenile Idiopathic Arthritis Using Machine Learning. Front. Pharmacol. 2019, 10, 1115. [Google Scholar] [CrossRef] [PubMed]
  13. Davagdorj, K.; Pham, V.H.; Theera-Umpon, N.; Ryu, K.H. XGBoost-Based Framework for Smoking-Induced Noncommunicable Disease Prediction. Int. J. Environ. Res. Public Health 2020, 17, 6513. [Google Scholar] [CrossRef]
  14. Tsou, P.-H.; Lin, Z.-L.; Pan, Y.-C.; Yang, H.-C.; Chang, C.-J.; Liang, S.-K.; Wen, Y.-F.; Chang, C.-H.; Chang, L.-Y.; Yu, K.-L.; et al. Exploring Volatile Organic Compounds in Breath for High-Accuracy Prediction of Lung Cancer. Cancers 2021, 13, 1431. [Google Scholar] [CrossRef]
  15. Huang, Y.-C.; Li, S.-J.; Chen, M.; Lee, T.-S.; Chien, Y.-N. Machine-Learning Techniques for Feature Selection and Prediction of Mortality in Elderly CABG Patients. Healthcare 2021, 9, 547. [Google Scholar] [CrossRef]
  16. Cheng, C.-H.; Lin, C.-Y.; Cho, T.-H.; Lin, C.-M. Machine Learning to Predict the Progression of Bone Mass Loss Associated with Personal Characteristics and a Metabolic Syndrome Scoring Index. Healthcare 2021, 9, 948. [Google Scholar] [CrossRef]
  17. XGBoost (eXtreme Gradient Boosting). Available online: https://github.com/dmlc/xgboost (accessed on 12 October 2022).
  18. Caruana, R.; Lou, Y.; Gehrke, J.; Koch, P.; Sturm, M.; Elhadad, N. Intelligible Models for HealthCare: Predicting Pneumonia Risk and Hospital 30-day Readmission. In Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Sydney, Australia, 10–13 August 2015; pp. 1721–1730. [Google Scholar] [CrossRef]
  19. Elshawi, R.; Al-Mallah, M.H.; Sakr, S. On the interpretability of machine learning-based model for predicting hypertension. BMC Med. Inform. Decis. Mak. 2019, 19, 1–32. [Google Scholar] [CrossRef] [Green Version]
  20. Lundberg, S.M.; Erion, G.G.; Lee, S.I. Consistent individualized feature attribution for tree ensembles. arXiv 2019, arXiv:1802.03888v3. [Google Scholar]
  21. Shapley, L.S. Contributions to the Theory of Games (AM-28); Princeton University Press: Princeton, NJ, USA, 1953; Volume II. [Google Scholar] [CrossRef]
  22. Lundberg, S.M.; Erion, G.; Chen, H.; DeGrave, A.; Prutkin, J.M.; Nair, B.; Katz, R.; Himmelfarb, J.; Bansal, N.; Lee, S.-I. From local explanations to global understanding with explainable AI for trees. Nat. Mach. Intell. 2020, 2, 56–67. [Google Scholar] [CrossRef] [PubMed]
  23. Guyon, I.; Elisseeff, A. An Introduction to Variable and Feature Selection. J. Mach. Learn Res. 2003, 3, 1157–1182. [Google Scholar] [CrossRef]
  24. Bergstra, J.; Yamins, D.; Cox, D.D. Making a science of model search: Hyperparameter optimization in hundreds of dimensions for vision architectures. In Proceedings of the ICML’13 30th International Conference on Machine Learning, Atlanta, GA, USA, 16–21 June 2013; Volume 28, pp. I115–I123. [Google Scholar]
  25. Ruopp, M.D.; Perkins, N.J.; Whitcomb, B.W.; Schisterman, E.F. Youden Index and Optimal Cut-Point Estimated from Observations Affected by a Lower Limit of Detection. Biom. J. 2008, 50, 419–430. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  26. Efron, B.; Tibshirani, R.J. An Introduction to the Bootstrap; Chapman & Hall: New York, NY, USA, 1993. [Google Scholar]
  27. Michelozzi, P.; De’Donato, F.; Scortichini, M.; De Sario, M.; Noccioli, F.; Rossi, P.; Davoli, M. Mortality impacts of the coronavirus disease (COVID-19) outbreak by sex and age: Rapid mortality surveillance system, Italy, 1 February to 18 April 2020. Eurosurveillance 2020, 25, 2000620. [Google Scholar] [CrossRef] [PubMed]
  28. Azzolina, D.; Magnani, C.; Gallo, E.; Ferrante, D.; Gregori, D. Effetti del genere e dell’età sugli eccessi di mortalità durante l’epidemia di COVID-19 in Italia. Epidemiol. Prev. 2020, 44 (Suppl. 2), 252–259. [Google Scholar] [CrossRef] [PubMed]
  29. A Bienvenu, L.; Noonan, J.; Wang, X.; Peter, K. Higher mortality of COVID-19 in males: Sex differences in immune response and cardiovascular comorbidities. Cardiovasc. Res. 2020, 116, 2197–2206. [Google Scholar] [CrossRef] [PubMed]
  30. Bhopal, S.S.; Bhopal, R. Sex differential in COVID-19 mortality varies markedly by age. Lancet 2020, 396, 532–533. [Google Scholar] [CrossRef]
  31. Hallal, P.C.; Hartwig, F.P. Estrutura etária e mortalidade por COVID-19. Cien. Saude Colet. 2020, 25, 3691. [Google Scholar] [CrossRef]
  32. O’Driscoll, M.; Ribeiro Dos Santos, G.; Wang, L.; Cummings, D.A.T.; Azman, A.S.; Paireau, J.; Fontanet, A.; Cauchemez, S.; Salje, H. Age-specific mortality and immunity patterns of SARS-CoV-2. Nature 2021, 590, 140–145. [Google Scholar] [CrossRef] [PubMed]
  33. Carrasco-Sánchez, F.J.; López-Carmona, M.D.; Martínez-Marcos, F.J.; Pérez-Belmonte, L.M.; Hidalgo-Jiménez, A.; Buonaiuto, V.; Fernández, C.S.; Castro, S.J.F.; Luordo, D.; Fontan, P.M.P.; et al. Admission hyperglycaemia as a predictor of mortality in patients hospitalized with COVID-19 regardless of diabetes status: Data from the Spanish SEMI-COVID-19 Registry. Ann. Med. 2020, 53, 103–116. [Google Scholar] [CrossRef]
  34. Gallo Marin, B.; Aghagoli, G.; Lavine, K.; Yang, L.; Siff, E.J.; Chiang, S.S.; Salazar-Mather, T.P.; Dumenco, L.; Savaria, M.C.; Aung, S.N.; et al. Predictors of COVID -19 severity: A literature review. Rev. Med. Virol. 2021, 31, 1–10. [Google Scholar] [CrossRef] [PubMed]
  35. Billett, H.H.; Reyes-Gil, M.; Szymanski, J.; Ikemura, K.; Stahl, L.R.; Lo, Y.; Rahman, S.; Gonzalez-Lugo, J.D.; Kushnir, M.; Barouqa, M.; et al. Anticoagulation in COVID-19: Effect of Enoxaparin, Heparin, and Apixaban on Mortality. Thromb. Haemost. 2020, 120, 1691–1699. [Google Scholar] [CrossRef] [PubMed]
  36. Gautret, P.; Million, M.; Jarrot, P.-A.; Camoin-Jau, L.; Colson, P.; Fenollar, F.; Leone, M.; La Scola, B.; Devaux, C.; Gaubert, J.Y.; et al. Natural history of COVID-19 and therapeutic options. Expert Rev. Clin. Immunol. 2020, 16, 1159–1184. [Google Scholar] [CrossRef] [PubMed]
  37. Chen, L.; Zhao, J.; Peng, J.; Li, X.; Deng, X.; Geng, Z.; Shen, Z.; Guo, F.; Zhang, Q.; Jin, Y.; et al. Detection of SARS-CoV-2 in saliva and characterization of oral symptoms in COVID-19 patients. Cell Prolif. 2020, 53, e12923. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Diagram depicting the process for calculating feature importance according to SHAP values for each feature in each instance of the dataset.
Figure 1. Diagram depicting the process for calculating feature importance according to SHAP values for each feature in each instance of the dataset.
Healthcare 10 02027 g001
Figure 2. Process to obtain a final model after applying feature selection on an intermediate model.
Figure 2. Process to obtain a final model after applying feature selection on an intermediate model.
Healthcare 10 02027 g002
Figure 3. ROC curves for the final models for each age subgroup: (a) up to 65 years, (b) between 66 and 80, (c) older than 80 years. The curves for each bootstrap evaluation are shown, along with the average value (blue).
Figure 3. ROC curves for the final models for each age subgroup: (a) up to 65 years, (b) between 66 and 80, (c) older than 80 years. The curves for each bootstrap evaluation are shown, along with the average value (blue).
Healthcare 10 02027 g003
Figure 4. Feature importance in the final models: (a) up to 65 years, (b) between 66 and 80, (c) older than 80 years.
Figure 4. Feature importance in the final models: (a) up to 65 years, (b) between 66 and 80, (c) older than 80 years.
Healthcare 10 02027 g004
Figure 5. Boxplots for LDH showing the values by age subgroup based on patients who died and those who were discharged.
Figure 5. Boxplots for LDH showing the values by age subgroup based on patients who died and those who were discharged.
Healthcare 10 02027 g005
Figure 6. Boxplots for D-Dimer showing the values by age subgroup based on patients who have died and those who have been discharged.
Figure 6. Boxplots for D-Dimer showing the values by age subgroup based on patients who have died and those who have been discharged.
Healthcare 10 02027 g006
Table 1. Distribution of patients according to ‘Sex’ and ‘Outcome’.
Table 1. Distribution of patients according to ‘Sex’ and ‘Outcome’.
SexOutcome
DatasetPatientsMaleFemaleHomeDeath
Age (-,65]798532 (66.6%)266 (33.3%)769 (96.4%)29 (3.6%)
Age (65,80]623377 (60.5%)246 (39.5%)518 (83.1%)105 (16.9%)
Age (80,-)402205 (51.0%)197 (49.0%)274 (68.2%)128 (31.8%)
Table 2. Results for the evaluation metrics in the final models.
Table 2. Results for the evaluation metrics in the final models.
ModelAUROCAccuracyYoudenSensitivitySpecificity
Age (-,65]0.9670.9800.8920.9510.941
Age (65,80]0.9600.9180.8440.9500.894
Age (80,-)0.9320.8710.7520.8730.879
Table 3. Values for the XGBoost hyperparameters of each model after tuning.
Table 3. Values for the XGBoost hyperparameters of each model after tuning.
HyperparameterAge (-,65]Age (65,80]Age (80,-)
n_estimators130140100
max_depth562
min_child_weight3105
learning_rate0.1320.1850.285
subsample0.9720.7130.949
colsample_bytree0.2000.3830.214
Table 4. Evaluation of the models before and after the feature selection process. For each metric, mean value and 95% confidence interval are shown.
Table 4. Evaluation of the models before and after the feature selection process. For each metric, mean value and 95% confidence interval are shown.
Before Feature SelectionAfter Feature Selection
ModelAUROCAccuracyAUROCAccuracy
Age (-,65]0.957 (0.883–0.996)0.978 (0.959–0.993)0.967 (0.917–0.997)0.980 (0.966–0.993)
Age (65,80]0.957 (0.933–0.979)0.916 (0.884–0.941)0.960 (0.935–0.979)0.918 (0.888–0.943)
Age (80,-)0.926 (0.885–0.962)0.867 (0.809–0.914)0.932 (0.885–0.966)0.871 (0.825–0.916)
Table 5. Results for Mann–Whitney tests (p-values).
Table 5. Results for Mann–Whitney tests (p-values).
FeatureHome (-,65] vs. Death (-,65]Home (65,80] vs. Death (65,80]Home (80,-) vs. Death (80,-)
ALT<0.010.570.11
AST<0.01<0.01<0.01
Creatinine0.14<0.01<0.01
CRP<0.01<0.01<0.01
D-Dimer<0.01<0.01<0.01
Glucose<0.01<0.01<0.01
Platelets count<0.01<0.01<0.01
LDH<0.01<0.01<0.01
Lymphocytes<0.01<0.01<0.01
Sodium<0.01<0.01<0.01
Urea<0.01<0.01<0.01
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Domínguez-Olmedo, J.L.; Gragera-Martínez, Á.; Mata, J.; Pachón, V. Age-Stratified Analysis of COVID-19 Outcome Using Machine Learning Predictive Models. Healthcare 2022, 10, 2027. https://doi.org/10.3390/healthcare10102027

AMA Style

Domínguez-Olmedo JL, Gragera-Martínez Á, Mata J, Pachón V. Age-Stratified Analysis of COVID-19 Outcome Using Machine Learning Predictive Models. Healthcare. 2022; 10(10):2027. https://doi.org/10.3390/healthcare10102027

Chicago/Turabian Style

Domínguez-Olmedo, Juan L., Álvaro Gragera-Martínez, Jacinto Mata, and Victoria Pachón. 2022. "Age-Stratified Analysis of COVID-19 Outcome Using Machine Learning Predictive Models" Healthcare 10, no. 10: 2027. https://doi.org/10.3390/healthcare10102027

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop