key: cord-1018446-gl99kp31 authors: Ponce, Daniela; de Andrade, Luís Gustavo Modelli; Granado, Rolando Claure-Del; Ferreiro-Fuentes, Alejandro; Lombardi, Raul title: Development of a prediction score for in-hospital mortality in COVID-19 patients with acute kidney injury: a machine learning approach date: 2021-12-24 journal: Sci Rep DOI: 10.1038/s41598-021-03894-5 sha: aec6fdac7591f1eb19718202a5467280256812d5 doc_id: 1018446 cord_uid: gl99kp31 Acute kidney injury (AKI) is frequently associated with COVID-19 and it is considered an indicator of disease severity. This study aimed to develop a prognostic score for predicting in-hospital mortality in COVID-19 patients with AKI (AKI-COV score). This was a cross-sectional multicentre prospective cohort study in the Latin America AKI COVID-19 Registry. A total of 870 COVID-19 patients with AKI defined according to the KDIGO were included between 1 May 2020 and 31 December 2020. We evaluated four categories of predictor variables that were available at the time of the diagnosis of AKI: (1) demographic data; (2) comorbidities and conditions at admission; (3) laboratory exams within 24 h; and (4) characteristics and causes of AKI. We used a machine learning approach to fit models in the training set using tenfold cross-validation and validated the accuracy using the area under the receiver operating characteristic curve (AUC-ROC). The coefficients of the best model (Elastic Net) were used to build the predictive AKI-COV score. The AKI-COV score had an AUC-ROC of 0.823 (95% CI 0.761–0.885) in the validation cohort. The use of the AKI-COV score may assist healthcare workers in identifying hospitalized COVID-19 patients with AKI that may require more intensive monitoring and can be used for resource allocation. Bioethical considerations. The Institutional Review Board of the Clínica Los Olivos, Cochabamba, Bolivia (contact Dr Esdenka Vega, administracion@clinicalosolivos.com), approved the study. The informed consent was waived due to the observational characteristic of the study by the Review Board of the Clínica Los Olivos. The protocol and forms are available on the study's website (https:// slanh. net/ regis tro-latin oamer icano-ira-covid-19/). Confidentiality of information was appropriately protected by the de-identification of data. No personal data from the patients were included in the form. All methods were performed in accordance with the relevant guidelines and regulations of the Review Board of the Clínica Los Olivos. Inclusion criteria were patients aged more than 18 years with SARS-CoV-2 infection confirmed by RT-PCR of nasopharyngeal swabs and acute kidney injury (AKI) from 1 May 2020 to 31 December 2020. Exclusion criteria were patients with CKD stage 5, on dialysis or with a transplant. Data collection. Data were obtained from the clinical record and were entered online in a SurveyMonkey® platform specifically designed for this purpose (https:// es. surve ymonk ey. com/r/ L6PVM GQ). The data collection sheet had the following variables: (1) country and city of residence, demographic data; (2) comorbidities and condition at admission; (3) laboratory values at admission; (4) characteristics and aetiology of AKI; (5) ICU admission, mechanical ventilation (MV) and in-hospital complications; and (6) condition at discharge. Definitions. AKI was identified according to the KDIGO and defined by an increase in serum creatinine (SCr) level ≥ 0.3 mg/dl within 48 h or by 50% within 7 days. AKI was considered community-acquired (CA-AKI) when it was present at admission or within 48 h of hospital admission. AKI was considered hospital-acquired (HA-AKI) when it developed greater than 48 h into the hospital stay 14 . In cases with no pre-admission Scr level, we assumed its value at admission or within the first 24 h in a patient without chronic kidney disease (CKD) 15, 16 . Condition at admission to the hospital was classified into three categories: mild, if the patient was admitted to a conventional ward without need for oxygen therapy; moderate, if the patient needed oxygen therapy; and severe, when admission to the intensive care unit (ICU) was required. The study followed the guidelines of the transparent reporting of a multivariable prediction model for individual prognosis or diagnosis (TRIPOD) 17 . Predictor variables. We evaluated the predictors available at the time of COVID-19 diagnosis that were related to four categories: (1) demographic data; (2) comorbidities and condition at admission; (3) laboratory examinations within 24 h; and (4) aetiology of AKI (Supplementary Material Table 1 ). The laboratory examinations and haemodynamic parameters were collected within 24 h of admission. The comorbidities evaluated were diabetes, obesity, hypertension, lung disease, neoplasia, liver disease, autoimmune disease, cardiovascular disease, and smoking. We also evaluated the time from COVID-19 symptoms to hospitalization and the time from hospitalization to AKI. The aetiology of AKI was determined by the attending nephrologists using a diagnostic workup that included medical history, clinical examination, renal ultrasound, urinalysis, and blood testing to either classify the aetiology of AKI as ischaemic, septic or nephrotoxic (and therefore not associated with SARS-CoV-2 infection). Outcome. The outcome evaluated was in-hospital death. Use of medications to treat COVID-19, admission to the ICU, and need for MV were assessed at each centre according to their own local practices. Statistical analysis. Exploratory data analysis. All variables of interest were compared between patients who survived and those who died in the hospital. This comparison was performed by the χ 2 test for categorical variables and by the Mann-Whitney test for continuous variables. Predictive model. For the predictive model, the categorical variables were transformed into dummy variables. We removed the variables with more than 30% missing values (18% of the predictors) and imputed the others (Supplementary Fig. 1 www.nature.com/scientificreports/ method to account for missing values. We used all predictor variables to compute the Gower's distance and five nearest neighbours in the KNN imputation model. Once the nearest neighbours were determined, the mode was used to impute nominal variables, and the mean was used for numeric data. The continuous variables were normalised by dividing their values by the mean (centre) and standard deviation (scale). We transformed continuous variables using Box-Cox transformations. Variables with zero or nearzero variance were removed from the model. Feature selection. We used the Boruta algorithm to select the most important predictors. The Boruta algorithm is a feature selection method that classifies which of the features are important and which are not. The algorithm uses feature importance scores, which are provided by random forest. The importance measure of an attribute is obtained as the loss of accuracy of classification caused by the random permutation of attribute values between objects. It is computed separately for all trees in the forest that use a given attribute for classification. Then, the average and standard deviation of the accuracy loss are computed. The method performs a top-down search for relevant features by comparing the importance of original attributes and progressively eliminating irrelevant features 18 . We removed the features considered not important by the Boruta algorithm and highly correlated the variables (correlation value above 0.9) (Supplementary Table 1 ). Model training. We split the data into derivation (training) and validation (test) datasets. To create the datasets, we used a random split stratified by the target into training (80%) and test (20%). In the training data (derivation cohort), tenfold cross-validation was used to select the hyperparameters of the models and to reduce the bias. The data were randomly partitioned into 10 sets of roughly equal size. For each iteration, one fold was held out for assessment statistics and the remaining folds were substrate for the model. This process continued for each fold so that the models produced 10 sets of performance statistics. We fitted gradient boosting decision trees (XGBoost), random forest, and an Elastic Net to develop the candidate equations. Finally, the best hyperparameters were selected using machine learning approaches by tenfold cross-validation in a train set aimed to maximize the area under the receiver operating characteristic curve (AUC-ROC). Assessment of accuracy. The accuracy of the derivation cohort model was tested on the data of the validation cohort. We used the AUC-ROC to discriminate the ability of the models in the train and test sets. The 95% confidence interval (CI) of the AUC-ROC was estimated by bootstrap resampling (2,000 samples) to reduce over-fit bias. We evaluated the calibration of models with the Brier score and a calibration plot ( Supplementary Fig. 2 ). Accuracy metrics for previously published models. The final model was compared with two available models that have been externally validated in the general population: the CHA2DS2-VASc 19 and the clinical predictive model proposed by Wang et al. 20 . The CHA2DS2-VASc is used to estimate thromboembolic stroke risk in atrial fibrillation and thrombotic risk in cardiac diseases and was evaluated in patients diagnosed with COVID-19. The second cited model was derived from a cohort of patients diagnosed between January 2020 and February 2020, in Wuhan, and was built by the XGBoost approach, considering age, history of hypertension, and history of coronary disease as predictors. Finally, we compared the performance of the final model with the Acute Tubular Necrosis Index Specific Score (ATN-ISS). The ATN-ISS 21 is a validated general score to predict mortality in patients with AKI. The comparisons were performed throughout the assessment of sensitivity, specificity, and AUC-ROC. For the sensitivity analysis, we fitted the LASSO algorithm using all available predictors (without using feature selection). We also fitted the LASSO with the predictors that had more than 30% missing data. The LASSO algorithm automatically selects those features that are useful, discarding the useless or redundant features. The analysis was performed by the AUC-ROC. Score fit and model visualization. The model with higher AUC-ROC in the validation cohort associated with a better calibration value was used to build the AKI-COV score. We used Shapley Additive Explanations (SHAP) to visualise and explain the importance of predictors. The software R version 4.0.2 and the packages tidymodels and DALEx were used to create and visualise the models. The R package "glmnet" statistical software (R Foundation) was used to perform the Elastic Net regression 22 . The R programming code and the final model are available in a supplementary file. The steps to validate the model in an external cohort are described in the supplementary materials. Consent to participate. Not applicable (register study). All authors declare to approve the paper for publication. Transparency declaration. The lead authors (DP and RL) confirm that the manuscript is an honest, accurate, and transparent account of the study being reported; that no important aspects of the study have been www.nature.com/scientificreports/ AKI was hospital-acquired in 547 (62.9%) patients. The time between diagnosis of COVID-19 and the onset of AKI was 3 (1-7) days. Multiple organ dysfunction syndrome (MODS) attributable to SARS-CoV-2 infection was the main cause of AKI (35.7%). As expected, in many patients, AKI was linked to more than one aetiology. In the majority of cases, AKI was non-oliguric (59.9%). Most patients had AKI-KDIGO 3 (59.7%), followed by AKI-KDIGO 1 (25.8%). Kidney replacement therapy (KRT) was performed in 402 patients (46.2%). The most common KRT was intermittent haemodialysis (IHD) (69.1%), followed by prolonged intermittent renal replacement therapy (PIRRT) (32.8%), continuous renal replacement therapy (CRRT) (15.6%) and peritoneal dialysis (PD) (2.7%). Patients were treated for SARS-CoV-2 infection with steroids (73.9%), chloroquine-hydroxychloroquine (12.5%), ivermectin (6.8%), tocilizumab (1.5%), and remdesivir and lopinavir-ritonavir (0.6%). It should be highlighted that, in a large proportion of patients, the option "other treatment" was selected in 46.9% of them, with no further specification. Most of the patients had complications during the hospitalization, with sepsis being the most common (50.4%), followed by infection without sepsis (8.7%) and deep vein thrombosis (5.4%). All-cause in-hospital mortality was 62.5% (544 out of 870 patients). Most of the deaths occurred in the ICU (88.9%). Table 1 shows the variables associated with mortality in the univariate analysis. The patients were grouped randomly into two cohorts: the derivation cohort (or train set) (n = 697, 80%) and the internal validation cohort (or test set) (n = 173, 20%), as shown in Fig. 1 . We had a total of 44 predictors and removed seven of them due to higher missing values (> 30%). We also removed 17 uninformative and two collinear predictors (Supplementary Table 1 ). Then, we fitted predictive models using the candidate predictors (n = 18). We fitted several candidate models with tenfold cross-validation and analysed the performance of these models throughout the AUC-ROC in the derivation cohort. The AUC-ROC were 0.894 (0.82-0.93), 0.886 (0.85-0.95), and 0.877 (0.83-0.93) for random forest, XGBoost and Elastic Net, respectively. In a second step, the performances of these models were tested in the internal validation cohort. The AUC-ROC was 0.831 (0.76-0.89), 0.823 (0.75-0.88), and 0.821 (0.75-0.88) for random forest, XGBoost and Elastic Net, respectively (Table 2) . To choose the most useful model, we additionally plot the AUC-ROC values in Fig. 2 , and a confusion matrix of 28-day mortality in the derivative cohort is shown in Fig. 3 . The performance was similar, but the Elastic Net had better calibration values in the validation cohort and was selected as a final model (Supplementary Fig. 2 ). The final model fitted (Elastic Net) was a combination of the least absolute shrinkage and selection operator (LASSO) with ridge regression. It was a generalised linear model via penalised maximum likelihood that www.nature.com/scientificreports/ performs regularisation and variable selection 23 . The regularisation path is computed for the LASSO penalty at a grid of values for the regularisation parameter lambda 23 . The proportion of LASSO and ridge regression, as well as the amount of regularisation, was selected by tenfold cross-validation. Making a score-based prediction. The results of the Elastic Net model showed that MV, higher age, vasopressors, higher leukocyte values, higher aspartate aminotransferase (AST) values, severe/moderate condition at admission, hypertension, HA-AKI, AKI aetiology related to sepsis or COVID-19, higher creatinine levels during hospitalisation and indications for KRT were related to a worse outcome. Higher urine output, longer time from COVID symptoms to hospitalisation, use of nephrotoxic drugs, dehydration and AKI of nephrotoxic or ischaemic aetiology were related to a better outcome (Fig. 4) . The coefficients of the Elastic Net model were used to build the AKI-COV score. Comparison of accuracy metrics with previous models. We show examples of predictions in four different hypothetical patients (Table 3) . Patients 1 and 2 had the same CA-AKI and mild condition at admission, while patients 3 and 4 had HA-AKI and a moderate/severe condition at admission. There was KRT in patients 2 to 4 and MV and vasopressors in patient 4. In these scenarios, the probability of death was progressive, ranging from 0.5% to 93%. For better demonstration, the contribution and importance of each predictor are visualized in a SHAP plot, as shown in Fig. 5 . Finally, we developed a web app to estimate the individual probability for point-of-care decisions, which is available at: https:// covid models. shiny apps. io/ covid_ aki_ app/. Previous studies have used machine learning to develop COVID-19 prognostic models with overall good performance 24,25 , frequently reaching over 0.90 AUC-ROC 26 . However, to the best of our knowledge, this is the first multicentre study that developed a model named AKI-COV to predict in-hospital COVID-19 mortality in patients with AKI. The model was performed and validated in a cohort in Latin America, the new epicentre of the COVID-19 pandemic. In this model, we used predictors that are easily available upon initial diagnosis and at hospital admission. The AKI-COV score achieved a higher discriminative capacity to predict patient mortality and can contribute to the early start of interventions, thereby increasing the survival of COVID-19 with AKI 23, 26, 27 . Using variable importance analysis, we identified the predictors associated with mortality in the COVID-19 patients with AKI. Higher age, need for MV, use of vasopressors, higher leukocyte values, higher ALT values, severe/moderate condition at admission, hypertension, HA-AKI, AKI aetiology related to sepsis or COVID-19, and an indication of KRT were related to a worse outcome. On the contrary, higher urine output, shorter time from COVID-19 symptoms to hospitalization and AKI diagnosis, use of nephrotoxic drugs, dehydration, and nephrotoxic aetiology of AKI were related to a better outcome (Fig. 4) . Higher age and leukocytosis were associated with negative outcomes in critically ill patients 28, 29 and were also associated with poor outcomes in SARS-CoV-2 patients 30, 31 . Aging is associated with a well-known decrease in immunity, which leads to an increased susceptibility to infections 28 . Additionally, age-related immune imbalance www.nature.com/scientificreports/ may be present, leading to increased production of cytokines, which enhances the vulnerability of patients as a result of the cytokine storm in response to COVID-19 30 . Classical comorbidities (such as hypertension), need for MV, and use of vasopressors are predictors already associated with higher mortality in patients with AKI or COVID-19 32, 33 . in-hospital mortality model (Variable Importance). The red bars represent the variables related with the probability of death, whereas the blue bars were related with the probability of surviving. The model was fitted with 15 predictors and we derived natural splines in the variables age and eGFR. The natural splines computed a different risk for each stratum aiming to capture the non-linear association between these predictors and outcome. www.nature.com/scientificreports/ The presence of comorbidities, such as diabetes and hypertension, indicate the importance of the effects of pre-existing conditions on the severity of COVID-19 and AKI. Even though hypertension is age-dependent, it remained an independent risk factor in the final AKI-COV model. We showed that hospital-acquired (HA-AKI) was related to a worse outcome, similar to the reports of non-COVID-19 patients 34 . This may be related to higher frequencies of both the severe condition and admissions to the ICU, which may lead to an increase in sepsis-associated AKI. Additionally, these patients present with higher comorbidities and increased age 35 . We showed that both the longer time from COVID-19 symptoms to hospitalization and time from COVID-19 to AKI were associated with a better outcome. Similar results were observed by others, suggesting that the longer time from COVID-19 symptoms to the presentation may reflect a less aggressive disease 36 . The AKI-COV model retrieved an AUC-ROC of 0.82, which was classified as a good performance, considering the reduced number of predictors. Other predictive models of COVID-19 retrieved a better accuracy but combined data from vital signs, radiology exams, and laboratory exams, which can also limit its application. A review of COVID-19 predictive models concluded that the majority were of low quality. The reasons can be summarized in the absence of a description of the study population, absence of calibration plots, and absence of a validation cohort 37 . In contrast, we used a machine learning approach combined with a well-described cohort of patients. Using predictors available at baseline and within the first hours of the admission, we could objectively predict the probability of death of a COVID-19 patient with AKI. With an accurate prediction, we could allocate resources to patients who we expect to have a better prognosis 38 . In the scenario of the COVID-19 pandemic, the critical decision to not perform dialysis because of lack of resources was made in several countries. Of note, in the present cohort, some patients needing KRT did not receive it. There were 43 people identified meeting this condition (4.9%). Reasons were not recorded but were presumably due to resource shortages. On the opposite, another application was a change in a worse outcome using the scores of AKI-COV. For example, a patient presenting with a higher score in AKI-COV had a higher rate of death. We could anticipate dialysis or propose a more advanced resource like continuous renal replacement therapy aimed to reduce this unfavored prognostic. These interventions could possibly modify the unfavored outcome if the resources were available. A major strength of the AKI-COV score is its simplicity; the use of objective parameters, which may reduce the variability; and easy availability, even in under-resourced settings. Then, the AKI-COV score may help clinicians to make a prompt and reasonable decision to optimize the management of COVID-19 patients with AKI and potentially reduce mortality. Table 3 . COVID-19 mortality prediction (AKI-COV) in four hypothetical AKI patient. AKI: acute kidney injury; AST: aspartate aminotransferase; WBC: white blood cell counts. Our study has a few limitations. First, we analysed data from Latin America at different time points. In these periods, the clinical protocols for COVID-19 were still being established, so this could affect the outcomes and caution should be used when generalizing results. Obesity was not directly measured by body mass index, but was rather clinically defined, as its measurement was based on medical records, which may have led to underreporting. Due to the pragmatic study design, laboratory exams were performed according to physician order, which can contribute to higher proportions of missing data. Additionally, some laboratory parameters, which proved to be of prognostic relevance in other studies, were not evaluated. Additionally, the time from COVID-19 symptoms to hospitalization was not directly measured but retrieved from questionnaires applied to patients or their families. Another limitation was that the diagnosis of AKI was based on clinical presentation, rather than biopsy proven. www.nature.com/scientificreports/ Moreover, the machine learning models had a primary focus in prediction with lower explanatory capacity compared to classic statistical analysis. This could reduce the inferential conclusions; therefore, additional studies are required to determine the impact of the associated predictors of mortality in COVID-19 patients with AKI. For these reasons, study designs that reduce causal inference may be useful [39] [40] [41] [42] . In conclusion, we developed and validated a model named AKI-COV to predict the in-hospital mortality of COVID-19 patients with AKI. This score used a few predictors available at baseline that retrieved a good accuracy. This could be an inexpensive tool to predict the in-hospital mortality of COVID-19 patients with AKI objectively and accurately. Additionally, it may be used to inform clinical decisions and the assignment to the appropriate level of care and treatment for COVID-19 patients with AKI. Deep impact of COVID-19 in the healthcare of Latin America: The case of Brazil Political and institutional perils of Brazil's COVID-19 crisis Clinical characteristics of coronavirus disease 2019 in China Clinical features, laboratory characteristics, and outcomes of patients hospitalized with coronavirus disease 2019 (COVID-19): Early report from the United States Acute kidney injury in patients hospitalized with COVID-19 Acute kidney injury in Covid-19: 90 days of the pandemic in a Brazilian public hospital Covid-19: Increasing demand for dialysis sparks fears of supply shortage Development and validation of a clinical risk score to predict the occurrence of critical illness in hospitalized patients with COVID-19 Prediction of respiratory decompensation in Covid-19 patients using machine learning: The READY trial Predicting in-hospital mortality from coronavirus disease 2019: A simple validated app for clinical use Covid-19: A remote assessment in primary care An observational, prospective, longitudinal and multinational study (submitted) and presented in WCN 2020 Recognition and management of acute kidney injury in the International Society of Nephrology 0by25 Global Snapshot: A multinational cross-sectional study KDIGO-based acute kidney injury criteria operate differently in hospitals and the community-findings from a large population cohort Acute kidney injury recognition in low and middle income countries Transparent reporting of a multivariable prediction model for individual prognosis or diagnosis (TRIPOD): Explanation and elaboration Feature selection with the Boruta package CHA2DS2-VASc score and modified CHA2DS2-VASc score can predict mortality and intensive care unit hospitalization in COVID-19 patients Clinical and laboratory predictors of in-hospital mortality in patients with coronavirus disease-2019: A cohort study in Wuhan, China Prognosis of acute tubular necrosis: An extended prospectively contrasted study Regularization paths for generalized linear models via coordinate descent Regularization paths for generalized linear models via coordinate descent Early risk assessment for COVID-19 patients from emergency department data using machine learning Development and validation of a clinical risk score to predict the occurrence of critical illness in hospitalized patients with COVID-19 Using machine learning to predict ICU transfer in hospitalized COVID-19 patients AKI in hospitalized patients with COVID-19 SARS-CoV-2, COVID-19 and the ageing immune system Cytokine response in SARS-CoV-2 infection in the elderly SARS-CoV-2-host dynamics: Increased risk of adverse outcomes of COVID-19 in obesity Fatores de risco para mortalidade na lesão renal aguda Principais motivos de internação do paciente com insuficiência renal aguda na unidade de terapia intensiva Perfil epidemiologico dos pacientes com injúria renal aguda em uma unidade de terapia intensiva. Arq Cat deMed 17th acute disease quality initiative (ADQI) consensus group patient selection and timing of continuous renal replacement therapy on behalf of the COVID-19 Research Group of CSAPG. Association between COVID-19 prognosis and disease presentation Association between COVID-19 prognosis and disease presentation, comorbidities and chronic treatment of hospitalized patients Prediction models for diagnosis and prognosis of covid-19 infection: Systematic review and critical appraisal Fair allocation of scarce medical resources in the time of covid-19 Causal influences of neuroticism on mental health and cardiovascular disease Genetic evidence suggests posttraumatic stress disorder as a subtype of major depressive disorder Genetic support of a causal relationship between iron status and type 2 diabetzenges: A Mendelian randomization study Exploring the causal pathway from ischemic stroke to atrial fibrillation: A network Mendelian randomization study We would like to thank the hospitals that were part of this collaboration in 12 countries, for supporting this project: We also thank all the clinical staff at those hospitals that were in charged of the cared for the patients. It is not necessary the names of the individual members of the Group to be searchable through their individual PubMed record. Data are available upon reasonable request. This study was partially funded by Latin American Society of Nephrology and Hypertension (SLANH). The authors declare no competing interests. The online version contains supplementary material available at https:// doi. org/ 10. 1038/ s41598-021-03894-5.Correspondence and requests for materials should be addressed to D.P.Reprints and permissions information is available at www.nature.com/reprints.Publisher's note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.