Retrospective Study Open Access
Copyright ©The Author(s) 2022. Published by Baishideng Publishing Group Inc. All rights reserved.
World J Crit Care Med. Sep 9, 2022; 11(5): 317-329
Published online Sep 9, 2022. doi: 10.5492/wjccm.v11.i5.317
Prediction of hospital mortality in intensive care unit patients from clinical and laboratory data: A machine learning approach
Elena Caires Silveira, Soraya Mattos Pretti, Bruna Almeida Santos, Caio Fellipe Santos Corrêa, Leonardo Madureira Silva, Fabrício Freire de Melo, Multidisciplinary Institute of Health, Federal University of Bahia, Vitória da Conquista 45-029094, Brazil
ORCID number: Elena Caires Silveira (0000-0003-3470-9205); Soraya Mattos Pretti (0000-0002-9835-7635); Bruna Almeida Santos (0000-0002-4543-3163); Caio Fellipe Santos Corrêa (0000-0002-5271-6911); Leonardo Madureira Silva (0000-0002-6444-8264); Fabrício Freire de Melo (0000-0002-5680-2753).
Author contributions: Caires Silveira E collected and entered the data, performed the data analysis/statistics and interpretation, and participated in preparation and review of manuscript; Mattos Pretti S and Santos BA participated in the preparation of manuscript and wrote the literature analysis/search; Santos Corrêa CF and Madureira Silva L participated in review of manuscript; Freire de Melo F designed the research and participated in review of manuscript.
Institutional review board statement: For this study, there was no need for an appraisal by an ethics committee, since only publicly available anonymized data were used.
Informed consent statement: This manuscript does not involve “Signed Informed Consent Form”, as it was produced from previously anonymized, publicly available and free of charge data, obeying the norms of medical bioethics. Thus, there was no direct or even indirect contact between researchers and patients, with no necessity for "Signed Informed Consent Form" to carry out our study.
Conflict-of-interest statement: All the authors report no relevant conflicts of interest for this article.
Data sharing statement: No additional data are available.
Open-Access: This article is an open-access article that was selected by an in-house editor and fully peer-reviewed by external reviewers. It is distributed in accordance with the Creative Commons Attribution NonCommercial (CC BY-NC 4.0) license, which permits others to distribute, remix, adapt, build upon this work non-commercially, and license their derivative works on different terms, provided the original work is properly cited and the use is non-commercial. See: https://creativecommons.org/Licenses/by-nc/4.0/
Corresponding author: Fabrício Freire de Melo, PhD, Professor, Multidisciplinary Institute of Health, Federal University of Bahia, Rua Hormindo Barros, 58, Quadra 17, Lote 58, Candeias, Vitória da Conquista 45-029094, Brazil. freiremeloufba@gmail.com
Received: June 22, 2021
Peer-review started: June 22, 2021
First decision: July 31, 2021
Revised: August 13, 2021
Accepted: July 5, 2022
Article in press: July 5, 2022
Published online: September 9, 2022
Processing time: 441 Days and 4.9 Hours

Abstract
BACKGROUND

Intensive care unit (ICU) patients demand continuous monitoring of several clinical and laboratory parameters that directly influence their medical progress and the staff’s decision-making. Those data are vital in the assistance of these patients, being already used by several scoring systems. In this context, machine learning approaches have been used for medical predictions based on clinical data, which includes patient outcomes.

AIM

To develop a binary classifier for the outcome of death in ICU patients based on clinical and laboratory parameters, a set formed by 1087 instances and 50 variables from ICU patients admitted to the emergency department was obtained in the “WiDS (Women in Data Science) Datathon 2020: ICU Mortality Prediction” dataset.

METHODS

For categorical variables, frequencies and risk ratios were calculated. Numerical variables were computed as means and standard deviations and Mann-Whitney U tests were performed. We then divided the data into a training (80%) and test (20%) set. The training set was used to train a predictive model based on the Random Forest algorithm and the test set was used to evaluate the predictive effectiveness of the model.

RESULTS

A statistically significant association was identified between need for intubation, as well predominant systemic cardiovascular involvement, and hospital death. A number of the numerical variables analyzed (for instance Glasgow Coma Score punctuations, mean arterial pressure, temperature, pH, and lactate, creatinine, albumin and bilirubin values) were also significantly associated with death outcome. The proposed binary Random Forest classifier obtained on the test set (n = 218) had an accuracy of 80.28%, sensitivity of 81.82%, specificity of 79.43%, positive predictive value of 73.26%, negative predictive value of 84.85%, F1 score of 0.74, and area under the curve score of 0.85. The predictive variables of the greatest importance were the maximum and minimum lactate values, adding up to a predictive importance of 15.54%.

CONCLUSION

We demonstrated the efficacy of a Random Forest machine learning algorithm for handling clinical and laboratory data from patients under intensive monitoring. Therefore, we endorse the emerging notion that machine learning has great potential to provide us support to critically question existing methodologies, allowing improvements that reduce mortality.

Key Words: Hospital mortality; Machine learning; Patient outcome assessment; Routinely collected health data; Intensive care units; Critical care outcomes

Core Tip: Considering the critical nature of patients admitted to intensive care units (ICUs), this study seeks to analyze clinical and laboratory data using a machine learning model based on a Random Forest algorithm. Consequently, we developed a binary classifier that forecasts death outcome, achieving a relevant area under the curve value of 0.85 and identifying the variables that contributed the most to the prediction. With this, we aim to contribute to the improvement and methodological advancement in the development of clinically relevant machine learning tools, seeking to make medical practice decisions more accurate and reduce mortality in ICU patients.



INTRODUCTION

The intensive care unit (ICU) is the section of the hospital responsible for monitoring acute patients, and it relies on specialized multidisciplinary staff and high-technology equipment to ensure the best support for these patients, who are usually unstable and at high risk of death. These patients demand continuous monitoring of the most diverse clinical and laboratory parameters that directly influence their medical progress and the staff’s decision-making. Lactate levels obtained from arterial blood samples, for example, may indicate the levels and severity of tissue hypoxia[1]. The elevation in serum lactate levels (hyperlactatemia) is associated with increased mortality[2,3]. Another important parameter in critically ill patients is the prothrombin time expressed in international normalized ratio (INR), which reveals abnormalities in the coagulation status[4]. This parameter is also associated with an increased mortality when at altered levels. Besides these, many other laboratory and clinical data like temperature, oxygen and carbon dioxide pressure, systolic and diastolic pressure, motor, ocular, and verbal responses, among others, require team supervision since they are all related in some way to the severity of these ill patients[5].

These data are so vital in the assistance of these patients that they are already used by several scoring systems, including the Acute Physiology and Chronic Health Evaluation (APACHE) and the Simplified Acute Physiology Score (SAPS), which are designed to assess and predict the patient’s prognosis and allow for appropriate interventions[6]. The APACHE score, for example, which has been widely used since its creation in the 1980s and has been undergoing updates ever since, relies on the use of parameters evaluated in three major groups: Demographic characteristics, comorbidities, and physiological measures. From these data, numerical weights are assigned to each one and then summed to assign a severity classification and predict outcomes[7].

Machine learning may be understood as a scientific discipline by which a computer system is enabled to cross-reference numerous data in order to build statistical prediction models through pattern recognition[8]. To reach this pattern perception capability, it is essential during the use of the supervised machine learning approach to separate the data subsets for training and for testing. The training data are presented to the algorithm in order to create the model, and then the test data is also presented after the creation of the model in order to simulate this model’s prediction and evaluate its performance. The machine learning approach is already used for medical predictions based on clinical data, which includes patient outcome. Heo et al[9] used it to predict the long-term outcome of patients who suffered an ischemic stroke. In another study, Lynch et al[10] sought a survival prediction of lung cancer patients using machine learning by providing a series of patient data such as age, tumor size, type of intervention, and more.

The use of machine learning has been consolidated as an alternative for the development of predictive models of mortality in the critical care setting. An example is the retrospective study by Liu et al[11], who developed a logistic model of the death risk grade in patients with pulmonary tuberculosis using data from patients admitted to ICUs in three hospitals. In this multivariate analysis study, where the sensitivity was 83.3% and specificity was 73.1%, the Apache II score, C-reactive protein levels, albumin levels, and pressure of oxygen in arterial blood (PaO2) were considered the main factors influencing the outcome. However, a registered limitation was the small dataset utilized.

The limiting matter caused by the database used in machine learning predictive models was also observed in the study by Hou et al[12], who developed a model regarding 30-d mortality in patients who fit the Third International Consensus Definitions for Sepsis (Sepsis-3). This paper used a public database Medical Information Mart for Intensive Care III (MIMIC III) from a single-center critical care database. Another study that also relates the development of a predictive machine learning model in the context of patients with sepsis is the one proposed by Nemati et al[13] that, in addition to using the aforementioned MIMIC III, also relied on ICU admission data from two hospital centers. In this study, as well as in the two previously mentioned, the potentialuses of this tool in the early identification of severity of cases and the possibility of making fundamental decisions to the positive outcome for patients was observed.

In addition, more recently, in light of the advent of the severe acute respiratory syndrome coronavirus 2 pandemic, the application of these predictive models using machine learning technology have been employed on various grounds, such as for risk of critical coronavirus disease 2019 (COVID-19)[14], need for ICU transfer, and the prognosis of intensive care COVID-19 patients[15,16]. The latter one was associated with eight main component factors, namely: Lymphocyte percentage, prothrombin time, lactate dehydrogenase, total bilirubin, eosinophil percentage, creatinine, and neutrophil percentage. And although it also emphasized the difficulties of small databases, they pointed out the significance of this approach in critical patients with a panel of such complicated parameters.

Understanding a clinical setting as complex and full of variables as the ICU, identifying existing patterns, and enabling outcome prediction is a valuable tool for the improvement of health assistance to these patients. Therefore, the aim of the current paper is to develop a predictive model for the outcome of death in ICU patients based on clinical and laboratory parameters using a binary classifier, with predicted outcome consisting of in-hospital death and discharge.

MATERIALS AND METHODS
Data acquisition

We used anonymized retrospective data from ICU patients admitted to the emergency department to build a predictive model geared towards predicting death outcomes in these patients. For this purpose, a dataset used in the study was created from the larger “WiDS (Women in Data Science) Datathon 2020: ICU Mortality Prediction” dataset[17], which presents clinical and laboratory data pertaining to the first 24 h of ICU patient admission. The criteria for inclusion of instances (i.e., patients) in the study dataset were: (1) ICU admission and emergency department admission; and (2) Completeness (i.e., absence of missing data) with respect to the variables of interest. Since all the data were obtained from a public and anonymized dataset[16], it was not necessary to submit this study to the ethics committee, being in accordance with all the established precepts by the Committee on Publication Ethics.

Data preprocessing and exploratory data analysis

Aligned with the goal of building an interpretable predictive model from clinical and laboratory data, variables related to the clinical status of patients (such as vital signs, clinical score scores, blood counts, and biochemical test results) were prioritized in the definition of variables of interest - with exclusion of variables of this type only when redundant or when they represented the application of formulas instead of measured or scored values - to the detriment of anthropometric and demographic variables, with age being the only representative of this group of variables included. Additionally, factors referring to logistical aspects of hospitalization (such as source and type of admission and readmission status) were also not included among the variables of interest.

This way, a set formed by 1087 instances and 50 variables was obtained, of which 49 were assumed as predictive variables and 1 as predicted variable (outcome variable). The predictive numerical variables were: (1) Age; (2) Disease score; (3) Eye opening score on the Glasgow coma scale (GCS); (4) Heart rate; (5) Hematocrit; (6) Mean arterial pressure; (7) Maximum albumin; (8) Maximum bilirubin; (9) Maximum blood urea nitrogen; (10) Maximum calcium; (11) Maximum creatinine; (12) Maximum diastolic blood pressure; (13) Maximum glucose; (14) Maximum HCO3; (15) Maximum hemoglobin; (16) Maximum INR; (17) Maximum lactate; (18) Maximum platelets; (19) Maximum potassium; (20) Maximum sodium; (21) Minimum systolic blood pressure; (22) Maximum saturation of peripheral oxygen (SpO2); (23) Maximum white blood cells (WBC); (24) Minimum albumin; (25) Minimum bilirubin; (26) Maximum blood urea nitrogen; (27) Minimum calcium; (28) Minimum creatinine; (29) Minimum diastolic blood pressure; (30) Minimum glucose; (31) Minimum HCO3; (32) Minimum hemoglobin; (33) Minimum INR; (34) Minimum lactate; (35) Minimum platelets; (36) Minimum potassium; (37) Minimum sodium; (38) Minimum systolic blood pressure; (39) Minimum SpO2; (40) Minimum WBC; (41) Motor response on the GCS; (42) Partial PaO2; (43) Partial pressure of carbonic gas in arterial blood (PaCO2); (44) pH; (45) Respiratory rate; (46) Temperature; and (47) Verbal response on the GCS. The predictive categorical variables were: (1) Need for intubation or not; and (2) Predominant systemic involvement. The outcome variable was the evolution or not with hospital death.

The disease score corresponded to the number of diseases present among the following conditions: (1) Acquired immunodeficiency syndrome; (2) Cirrhosis; (3) Diabetes; (4) Hepatic failure; (5) Immunosuppression; (6) Leukemia; (7) Lymphoma; and (8) Solid tumor. The categories of predominant systemic involvement considered were: (1) Cardiovascular involvement; (2) Gastrointestinal involvement; (3) Genitourinary involvement; (4) Hematological involvement; (5) Metabolic involvement; (6) Musculoskeletal/skin involvement; (7) Neurological involvement; (8) Respiratory involvement; (9) Sepsis; and (10) Trauma.

Initially, a descriptive and comparative analysis of the data was performed. The data were categorized according to the outcome variable. After that, the occurrence frequencies of each category for of categorical predictive variables and the means and standard deviations for all numerical predictive variables in both groups were computed. Finally, the differences for each variable between the groups were analyzed using the χ2 test for risk ratios (for categorical variables) and the Mann-Whitney U test (for numerical variables). Since a decision tree ensemble algorithm was chosen to constitute our predictive model, it was not necessary to normalize or standardize the data, since tree partitioning algorithms are insensitive to scaling.

Machine learning algorithm selection

To perform our predictive analysis, we chose to build a Random Forest algorithm, a model consisting of an ensemble of randomized decision trees. As an extension of bootstrap aggregation (bagging) of decision trees, in Random Forest algorithms each individual model in the ensemble is employed to generate a prediction for a new sample, and these individual model predictions are averaged to give the forest’s prediction, resulting in better performance than any single tree. By combining individual models, the ensemble model tends to be more flexible and efficient. Accordingly, random forests have been incredibly successful in a variety of classification and regression problems with clinical applications. Furthermore, the algorithm does not require any feature scaling since decision trees predictions are partitioning-based instead of distance-based.

Model training and evaluation

We then proceeded to the development of the predictive model for the outcome variable. The data were divided into a training set (80%) and a test set (20%). The training set was used to train a predictive model based on the Random Forest algorithm[18], implemented here through the Scikit-learn open source library[19]. The test set was used to evaluate the predictive effectiveness of the model. The metrics used for such evaluation were accuracy, sensitivity, specificity, area under the curve (AUC) score, positive predictive value, and negative predictive value. The adopted methodology is schematically summarized in Figure 1. Besides the predictive performance, the feature importance attributed by the model to each variable was also considered, which not only adds explainability to the model, but also potentially provides insights regarding the evaluation of critically ill patients and the factors associated with higher mortality in this clinical setting. All steps of statistical analysis and development of the predictive model were performed in Python (version 3.6.9) using SciPy and Scikit-learn libraries.

Figure 1
Figure 1 Methodological design of the study. The proposed workflow encompasses selective collection of clinical, laboratorial and outcome data, splitting and pre-processing of the data, iterative training of the classificatory model, and finally evaluation of its performance. ICU: Intensive care unit.
RESULTS

Data from 1087 ICU patients were analyzed and used in the construction of the predictive model, of which 388 evolved with hospital death, while the remaining 699 did not. With regard to the predictive variables categories - need or not of intubation and predominantly affected body system -, among the 388 patients who evolved with hospital death: 275 were intubated and 63 were not; 106 had sepsis as predominant systemic involvement, 18 respiratory involvement, 4 metabolic involvement, 154 cardiovascular involvement, 11 trauma, 16 neurological involvement, 25 gastrointestinal involvement, 2 genitourinary involvement, 1 musculoskeletal/skin involvement, and 1 hematological involvement. Among the 699 patients who did not progress to hospital death: 534 were intubated and 215 were not; 206 had sepsis as predominant systemic involvement, 107 respiratory involvement, 79 metabolic involvement, 167 cardiovascular involvement, 38 trauma, 49 neurological involvement, 74 gastrointestinalintestinal involvement, 17 genitourinary involvement, 9 musculoskeletal/skin involvement, and 3 hematological involvement. A statistically significant association was identified between need for intubation and hospital death (risk ratio = 1.5, χ² = 11.87, P < 0.001), as well as between the predominant systemic cardiovascular involvement and hospital death compared to the musculoskeletal system/skin, which related to lower rate of hospital death (risk ratio = 4.80, χ² = 4.20, P = 0.04). With regards to numerical predictive variables, their mean ± SD, and the respective comparison between both outcome groups (performed using the Mann-Whitney U test) are shown in Table 1.

Table 1 Descriptive and univariate comparative analyses for numerical predictive variables according to outcome.
Variable
mean ± SD
U value
P value
Death outcome, n = 338
Survival outcome, n = 749
Age63.4 ± 15.760.1 ± 16.1111072< 0.001
Disease score1.3 ± 0.81.2 ± 0.7121505.50.110
Eye opening (GCS)2.0 ± 1.22.5 ± 1.297325.0< 0.001
Heart rate114.3 ± 34.9111.1 ± 31.1117672.00.031
Hematocrit31.7 ± 8.332.8 ± 7.3116749.00.02
MAP84.7 ± 53.987.4 ± 48.7108432.0< 0.001
Max albumin2.7 ± 0.72.8 ± 0.6109136.0< 0.001
Max bilirubin2.2 ± 3.81.2 ± 1.898589.5< 0.001
Max BUN40.0 ± 25.233.8 ± 24.5102300.0< 0.001
Max calcium8.0 ± 0.98.1 ± 0.8117155.00.024
Max creatinine2.6 ± 2.02.0 ± 1.996278.5< 0.001
Max DBP92.0 ± 23.194.8 ± 21.5116162.00.015
Max glucose231.4 ± 113.0210.1 ± 105.211090.0< 0.001
Max HCO321.0 ± 5.123.3 ± 4.894750.0< 0.001
Max hemoglobin11.7 ± 2.511.7 ± 2.3124619.00.341
Max INR2.1 ± 1.31.6 ± 0.883944.0< 0.001
Max lactate7.3 ± 5.53.2 ± 2.862255.5< 0.001
Max platelets189446.7 ± 98687.9198186.9 ± 96842.7120773.50.113
Max potassium4.7 ± 0.94.5 ± 0.8106603.0< 0.001
Max sodium142.1 ± 6.7140.9 ± 5.4113894.00.004
Max SBP147.5 ± 29.3151.1 ± 26.2113747.50.004
Max SpO299.6 ± 1.599.8 ± 0.6119714.50.005
Max WBC17442.9 ± 10269.315302 ± 8516111218.50.001
Min albumin2.5 ± 0.72.7 ± 0.6101997.5< 0.001
Min bilirubin1.9 ± 3.31.1 ± 1.7101177.5< 0.001
Min BUN34.2 ± 22.929.0 ± 21.0106584.5< 0.001
Min calcium7.4 ± 0.97.7 ± 0.998668.5< 0.001
Min creatinine2.08 ± 1.71.6 ± 1.399935.0< 0.001
Min glucose104.6 ± 47.0110.7 ± 38.1111941.50.001
Min HCO317.0 ± 5.520.6 ± 5.579747.5< 0.001
Min hemoglobin10.3 ± 2.710.8 ± 2.4111370.00.001
Min INR1.8 ± 0.91.5 ± 0.689909.5< 0.001
Min lactate4.7 ± 4.02.1 ± 1.5869894.5< 0.001
Min platelets157252 ± 94655.6177120.8 ± 90595.7110075.0< 0.001
Min potassium3.8 ± 0.83.8 ± 0.7125962.0< 0.001
Min SBP75.4 ± 20.384.9 ± 19.692919.0< 0.001
Min sodium137.9 ± 6.1138.2 ± 5.5121722.50.155
Min WBC13247.1 ± 8505.412.7 ± 6.9122208.50.181
Min DBP38.7 ± 14.944.9 ± 12.793559.5< 0.001
Min SpO281.3 ± 19.088.0 ± 12.094624.5< 0.001
Motor response (GCS)2.9 ± 2.24.3 ± 2.083488.5< 0.001
PaCO240.0 ± 13.939.5 ± 11.6124352.00.321
PaO2137.4 ± 102.3130.9 ± 82.4121043.00.124
pH7.3 ± 0.17.3 ± 0.1109784.0< 0.001
Respiratory rate31.2 ± 15.127.5 ± 14.9107284.5< 0.001
Temperature35.2 ± 1.936.2 ± 1.480674.5< 0.001
Verbal response (GCS)1.9 ± 1.52.3 ± 1.7109666.5< 0.001

The search for the best hyperparameters in our Random Forest model training was done using randomized search. In this way, 100 random combinations of hyperparameters were tested. Each combination was iterated 6 times, as a 6-fold validation scheme was adopted. In this scheme, the training set (n = 869) was split into 6 parts, and in each iteration a different part was used for validation. Ultimately, during training we performed 600 fits, obtaining the following hyperparameters: (1) Number of estimators = 213; (2) Maximum depth = 23; (3) Maximum leaf nodes = 24; (4) Minimum samples split = 5; (5) Class weights = 3.9; and (6) Bootstrap = true.

The model obtained accuracy of 80.28%, sensitivity of 81.82%, specificity of 79.43%, positive predictive value of 73.26%, negative predictive value of 84.85%, F1 score of 0.74, and AUC score of 0.85 on the test set (n = 218). The confusion matrix for the model is shown in Figure 2, and its receiver operating characteristic (ROC) curve is shown in Figure 3. The predictive variables with the greatest importance were the maximum and minimum lactate values, adding up to a predictive importance of 15.54%, followed by temperature (6.47%), motor punctuation in GCS (5.25%), maximum blood urea nitrogen (4.35%), and minimum WBC (3.31%). The percentage importance of the other variables in the prediction are listed in Table 2.

Figure 2
Figure 2 Model confusion matrix. As illustrated, the model was able to accurately predict occurrence of death outcome for 63 of 77 patients and non-occurrence for 112 of 131 patients, with true positive and true negative rates of 76.8% and 88.9%, respectively.
Figure 3
Figure 3 Model receiver operating characteristic curve. The graph demonstrates the relationship between true and false positive rates, which led to an area under the curve of 85%. AUC: Area under the curve.
Table 2 Percentual importance of variables in the outcome prediction.
Variable
Predictive importance, %
Maximum lactate9.05
Minimum lactate6.49
Temperature6.47
Motor GCS5.25
Maximum BUN4.35
Minimum WBC3.31
Minimum creatinine3.22
Maximum INR3.15
Minimum HCO32.84
Maximum glucose2.69
Minimum SpO22.45
pH2.18
Age2.09
Minimum INR1.95
Platelets1.9
Maximum HCO31.83
Minimum SBP1.82
Minimum DBP1.82
Maximum creatinine1.79
Minimum albumin1.67
Minimum sodium1.66
Predominant systemic involvement1.64
Maximum bilirubin1.63
Maximum WBC1.63
PaO21.62
Minimum hemoglobin1.6
Maximum SBP1.6
Maximum albumin1.5
MAP1.5
Eyes opening GCS1.46
Respiratory rate1.41
Minimum calcium1.4
Maximum hemoglobin1.39
Minimum platelets1.35
Minimum BUN1.28
Hematocrit1.22
Minimum bilirubin1.2
PaCO21.19
Maximum sodium1.13
Maximum DBP1.12
Maximum calcium0.93
Minimum glucose0.92
Minimum potassium0.92
Maximum potassium0.82
Heart rate0.72
Verbal GCS0.42
Intubated0.15
Disease score0.14
Maximum SpO20.13
DISCUSSION

The presented predictive model, a Random Forest binary classifier, was able to predict in the test set the occurrence or not of hospital death with an accuracy of 80.28%, sensitivity of 81.82%, and specificity of 79.43%. It is well established in the literature that this type of classifier is generally well suited for high-dimensional problems with highly correlated features (a frequent situation when it comes to medical data)[20]. Our results are consistent with that, as they demonstrate the potential for using random forests to handle clinical and laboratory data from patients under intensive monitoring.

The ICU mortality is high, and the patients require interventions that are cost-effective in order to avoid mortality without inputting unnecessary costs or demand to the medical team. Mortality prediction models work with the objective to assess the severity of the patients so that, based on its findings, the treatment needed can be directed. The analysis presented in this study works in the same way; if we identify those patients that have major mortality rates, faster and better care can be provided in order to prevent the worse outcome[21]. For this purpose, a variety of assessment scores already exist, like APACHE, SAPS or Mortality Probability Model (MPM). The ROC value of our model (0.85) was comparable with some of these highly used models, like 0.836 for APACHE II, or 0.826 for SAPS II[22], which showcase the good results obtained.

Furthermore, the machine learning approach to predict mortality in ICU patients has been documented. For example, Veith and Steele[23] developed a LazyKStar model to predict mortality in ICU patients at the time of hospital admission, obtaining a 10-fold validation AUC value of 0.75.A recurrent neural network inputted with 44 clinical and laboratory features from the first 24 h of ICU patient admission proposed by Thorsen-Meyer et al[24] achieved an AUC of 0.82. The extreme gradient boosted trees classifier developed by Chia et al[25] reached an AUC of 0.83 using 42 predictive variables. The formats and results of these last two studies are comparable to ours, since we reached an AUC of 0.85 using a random forest fed by 50 features.

Due to the COVID-19 pandemic, there was a great growth of publications focused on machine learning models for predicting ICU mortality in a disease-specific manner, such as those by Pan et al[16], Lichtner et al[26], and Subudhi et al[27]. Meanwhile, many of the previous studies in this field also focus on predicting ICU outcomes for specific diseases or morbid conditions, like sepsis or death from pulmonary tuberculosis[11,13,28], which lead to an assessment of parameters specific for the disease studied, somewhat restricting the research. Many of the renowned models and scales for ICU mortality prediction demand a series of measurements to make their use possible, but not always all the data required are available. In this sense, it is important to understand what the main variables involved related to the outcome of interest (and its prediction) are, so that they can be closely monitored. In our study, lactate level proved to be the most influential one, which is in accordance with its physiological role that indicates poor oxygenation, anaerobic metabolism, acidosis and muscle fatigue, involved in a systemic response of the organ is mand corroborates the findings by Bou Chebl et al[29], Villar et al[30] and Vincent et al[2]. Despite its predictive importance found in our study (15.54%), lactate is not a variable of most scores used, and is not included in APACHE, SAPS or MPM.

Temperature, which is part of APACHE and SAPS, was the second variable that influenced the most the outcome prediction; its variation (hyper or hypothermia) is related with a loss of control of body homeostasis, and the mean valor for death outcome was 35.2 ± 1.9. While we have an increase of nearly 1 point in the mean value for the survival outcome, these data could represent that an increase of the temperature or even fever could be a positive body response, indicating an immune system attempt to fight the pathology[31,32].

The third variable of major impact is the motor GCS punctuation, which is part of GCS, a widely known scale for neurologic damage used in hospital admissions as well as assessment models[33].This motor element has a specific field only in APACHE IV. Lower punctuations in GCS are related with greater neurologic damage, with 3 and 1 as its bottom punctuation for the global and motor scale respectively, the mean of 2.9 ± 2.2 for the death outcome in contrast with the value of 4.3 ± 2.0 for the survival mean demonstrate a considerable difference between those patients since the greatest value possible for the motor component is 6. The stratification of the data based on its predictive value is a great contribution since the variables above discussed account for approximately 27% of the result, while the other 45 for the remaining 73%, indicating that continuous monitoring of them may be of great value. Considering their importance, a detailed survey with either a dataset with per hour measurement of parameters or the data separated by ICU type could lead to more specific approaches for the medical staff.

Despite the good results found, this study faces as its main limitation the incompleteness of the original dataset for many instances regarding important clinical and laboratory variables, which lead to the use of a relatively small quantity of instances to train the predictive model. Since machine learning algorithms are essentially data-driven, a larger amount of data could lead to greater accuracy and a wider generalizability of the model, thus being useful for additional testing and refinement. Another potential limitation is related to the clinically broad nature of the variables analyzed, since the purpose was to study the possible parameters available in the ICU, which contrasts with research focused on the outcomes for a specific disease and, therefore, fed with more specific variables with regards to the considered pathophysiological process.

Although the use of a wide range of clinical and laboratory parameters was critical for our purpose of assessing the predictive significance of the variables in the context of building a model that is not only explainable but also clinically interpretable, this factor may restrict the possibilities of potential datasets to be used to ascertain the reproducibility of the findings, since some parameters may be unavailable. However, since these are variables commonly evaluated in critically ill patients in the ICU, for whom the prognostic evaluation of mortality is more important (in view of their higher mortality rates), we believe that this should not be a limiting factor to the clinical applicability of the proposed model.

CONCLUSION

In the study, it was possible to develop a reliable model for predicting mortality in the ICU, in which the influence of lactate level stands out as the main variable involved in the outcome prediction, followed by temperature and motor GCS. What can be perceived through the research is that machine learning comes to contribute and to make medical practice more efficient, as it allows faster analysis that otherwise would be complex and time-consuming. More than that, it also allows us to critically question existing parameters and methodologies through the results it provides in order to allow improvements that reduce the mortality of patients and are time and cost-effective. This study also highlights the importance of complete and organized registers of ICU patient data in order to enable the development of predictive models towards prevention and prediction of in-hospital bad outcomes.

ARTICLE HIGHLIGHTS
Research background

The monitoring of clinical and laboratory parameters of patients in the intensive care unit (ICU) is an extremely important part of the routine of intensive care staff. Additionally, several scores already utilize these parameters to guide the assistance of these patients. In the meantime, the advance of technological resources, such as the machine learning approach, allows the development of predictive models capable of being applied to medical practice.

Research motivation

Mortality in the ICU is something that worries and drives the search for alternatives that can help the team in directing treatment to avoid this negative outcome. Therefore, a predictive model that uses the patient’s parameters can precisely influence this treatment guidance, improving the cost-effectiveness quickly and safely.

Research objectives

The objective of our study is the development of a binary classifier predictive model between the outcomes of death and non-death in ICU patients. This paper demonstrates the potency of emerging technological realities within the medical field and how it is possible to harness them to improve healthcare practices.

Research methods

Initially, we obtained a set of 1087 instances and 50 variables related to patients admitted to an ICU by using a public database. We calculated frequency and risk rate for categorical variables and means, standard deviations, and the Mann-Whitney U test for numerical variables. Afterwards, we divided the data for the application in training of the predictive model based on the Random Forest algorithm and then to test the effectiveness of the model.

Research results

Among the 50 variables associated with death outcome, the maximum and minimum lactate values were the most important predictors (15.54%) followed by temperature (6.47%), and motor Glasgow coma scale punctuation (5.25%). The Random Forest binary classifier predictive model (death and no death) showed accuracy of 80.28%, sensitivity of 81.82%, specificity of 79.43%, positive predictive value of 73.26%, negative predictive value of 84.85%, F1 score of 0.74, and area under the curve score of 0.85.

Research conclusions

This study demonstrated the development of a predictive model with high accuracy, sensitivity, and specificity for ICU patients by applying a machine learning approach, the Random Forest algorithm, to clinical and laboratory data.

Research perspectives

The proper registration of patient parameters, as well as the availability of more and larger databases and even further development of digital tools, can enhance machine learning approaches, enabling the refinement of predictive models and patient care.

Footnotes

Provenance and peer review: Invited article; Externally peer reviewed

Peer-review model: Single blind

Specialty type: Critical care medicine

Country/Territory of origin: Brazil

Peer-review report’s scientific quality classification

Grade A (Excellent): 0

Grade B (Very good): 0

Grade C (Good): C, C

Grade D (Fair): 0

Grade E (Poor): 0

P-Reviewer: Cabezuelo AS, Spain S-Editor: Wang JJ L-Editor: Filipodia P-Editor: Wang JJ

References
1.  Fuller BM, Dellinger RP. Lactate as a hemodynamic marker in the critically ill. Curr Opin Crit Care. 2012;18:267-272.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 86]  [Cited by in F6Publishing: 106]  [Article Influence: 11.8]  [Reference Citation Analysis (0)]
2.  Vincent JL, Quintairos E Silva A, Couto L Jr, Taccone FS. The value of blood lactate kinetics in critically ill patients: a systematic review. Crit Care. 2016;20:257.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 228]  [Cited by in F6Publishing: 296]  [Article Influence: 37.0]  [Reference Citation Analysis (0)]
3.  Nichol AD, Egi M, Pettila V, Bellomo R, French C, Hart G, Davies A, Stachowski E, Reade MC, Bailey M, Cooper DJ. Relative hyperlactatemia and hospital mortality in critically ill patients: a retrospective multi-centre study. Crit Care. 2010;14:R25.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 208]  [Cited by in F6Publishing: 234]  [Article Influence: 16.7]  [Reference Citation Analysis (0)]
4.  Levi M, Opal SM. Coagulation abnormalities in critically ill patients. Crit Care. 2006;10:222.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 200]  [Cited by in F6Publishing: 192]  [Article Influence: 10.7]  [Reference Citation Analysis (0)]
5.  Hunt BJ. Bleeding and coagulopathies in critical care. N Engl J Med. 2014;370:847-859.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 200]  [Cited by in F6Publishing: 165]  [Article Influence: 16.5]  [Reference Citation Analysis (0)]
6.  Ko M, Shim M, Lee SM, Kim Y, Yoon S. Performance of APACHE IV in Medical Intensive Care Unit Patients: Comparisons with APACHE II, SAPS 3, and MPM0 III. Acute Crit Care. 2018;33:216-221.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 9]  [Cited by in F6Publishing: 9]  [Article Influence: 1.5]  [Reference Citation Analysis (0)]
7.  Ihnsook J, Myunghee K, Jungsoon K. Predictive accuracy of severity scoring system: a prospective cohort study using APACHE III in a Korean intensive care unit. Int J Nurs Stud. 2003;40:219-226.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 8]  [Cited by in F6Publishing: 8]  [Article Influence: 0.4]  [Reference Citation Analysis (0)]
8.  Deo RC. Machine Learning in Medicine. Circulation. 2015;132:1920-1930.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 1155]  [Cited by in F6Publishing: 1675]  [Article Influence: 209.4]  [Reference Citation Analysis (6)]
9.  Heo J, Yoon JG, Park H, Kim YD, Nam HS, Heo JH. Machine Learning-Based Model for Prediction of Outcomes in Acute Stroke. Stroke. 2019;50:1263-1265.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 156]  [Cited by in F6Publishing: 294]  [Article Influence: 73.5]  [Reference Citation Analysis (0)]
10.  Lynch CM, Abdollahi B, Fuqua JD, de Carlo AR, Bartholomai JA, Balgemann RN, van Berkel VH, Frieboes HB. Prediction of lung cancer patient survival via supervised machine learning classification techniques. Int J Med Inform. 2017;108:1-8.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 130]  [Cited by in F6Publishing: 120]  [Article Influence: 17.1]  [Reference Citation Analysis (0)]
11.  Liu Q, Gao J, Luo B, Liu J, Zhang L, Kang W, Han F. Prediction model for death in patients with pulmonary tuberculosis accompanied by respiratory failure in ICU: retrospective study. Ann Palliat Med. 2020;9:2731-2740.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 2]  [Cited by in F6Publishing: 2]  [Article Influence: 0.5]  [Reference Citation Analysis (0)]
12.  Hou N, Li M, He L, Xie B, Wang L, Zhang R, Yu Y, Sun X, Pan Z, Wang K. Predicting 30-days mortality for MIMIC-III patients with sepsis-3: a machine learning approach using XGboost. J Transl Med. 2020;18:462.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 52]  [Cited by in F6Publishing: 196]  [Article Influence: 49.0]  [Reference Citation Analysis (0)]
13.  Nemati S, Holder A, Razmi F, Stanley MD, Clifford GD, Buchman TG. An Interpretable Machine Learning Model for Accurate Prediction of Sepsis in the ICU. Crit Care Med. 2018;46:547-553.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 329]  [Cited by in F6Publishing: 377]  [Article Influence: 75.4]  [Reference Citation Analysis (0)]
14.  Assaf D, Gutman Y, Neuman Y, Segal G, Amit S, Gefen-Halevi S, Shilo N, Epstein A, Mor-Cohen R, Biber A, Rahav G, Levy I, Tirosh A. Utilization of machine-learning models to accurately predict the risk for critical COVID-19. Intern Emerg Med. 2020;15:1435-1443.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 185]  [Cited by in F6Publishing: 99]  [Article Influence: 24.8]  [Reference Citation Analysis (0)]
15.  Cheng FY, Joshi H, Tandon P, Freeman R, Reich DL, Mazumdar M, Kohli-Seth R, Levin M, Timsina P, Kia A. Using Machine Learning to Predict ICU Transfer in Hospitalized COVID-19 Patients. J Clin Med. 2020;9.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 92]  [Cited by in F6Publishing: 99]  [Article Influence: 24.8]  [Reference Citation Analysis (1)]
16.  Pan P, Li Y, Xiao Y, Han B, Su L, Su M, Zhang S, Jiang D, Chen X, Zhou F, Ma L, Bao P, Xie L. Prognostic Assessment of COVID-19 in the Intensive Care Unit by Machine Learning Methods: Model Development and Validation. J Med Internet Res. 2020;22:e23128.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 85]  [Cited by in F6Publishing: 62]  [Article Influence: 15.5]  [Reference Citation Analysis (0)]
17.  Lee M, Raffa J, Ghassemi M, Pollard T, Kalanidhi S, Badawi O, Matthys K, Celi LA. WiDS (Women in Data Science) Datathon 2020: ICU Mortality Prediction (version 1.0.0). PhysioNet. 2020;.  [PubMed]  [DOI]  [Cited in This Article: ]
18.  Breiman L. Random Forests. Mach Learn. 2001;45:5-32.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 56052]  [Cited by in F6Publishing: 56861]  [Article Influence: 5169.2]  [Reference Citation Analysis (0)]
19.  Pedregosa F, Varoquaux G, Gramfort A, Michel V, Thirion B, Grisel O, Blondel M, Louppe G, Prettenhofer P, Weiss R, Weiss RJ, Vanderplas J, Passos A, Cournapeau D, Brucher M, Perrot M, Duchesnay E. Scikit-learn: Machine Learning in Python. J MachLearn Res. 2011;12:2825-2830.  [PubMed]  [DOI]  [Cited in This Article: ]
20.  Yang F, Wang HZ, Mi H, Lin CD, Cai WW. Using random forest for reliable classification and cost-sensitive learning for medical diagnosis. BMC Bioinformatics. 2009;10 Suppl 1:S22.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 55]  [Cited by in F6Publishing: 61]  [Article Influence: 4.1]  [Reference Citation Analysis (0)]
21.  Awad A, Bader-El-Den M, McNicholas J, Briggs J, El-Sonbaty Y. Predicting hospital mortality for intensive care unit patients: Time-series analysis. Health Informatics J. 2020;26:1043-1059.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 16]  [Cited by in F6Publishing: 15]  [Article Influence: 3.0]  [Reference Citation Analysis (0)]
22.  Fuchs PA, Czech IJ, Krzych ŁJ. The Pros and Cons of the Prediction Game: The Never-ending Debate of Mortality in the Intensive Care Unit. Int J Environ Res Public Health. 2019;16.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 5]  [Cited by in F6Publishing: 5]  [Article Influence: 1.0]  [Reference Citation Analysis (0)]
23.  Veith N, Steele R.   Machine Learning-based Prediction of ICU Patient Mortality at Time of Admission. Proceedings of the 2nd International Conference on Information System and Data Mining; 2018 Mar; Lakeland, USA. New York: Association for Computing Machinery, 2018: 34-38.  [PubMed]  [DOI]  [Cited in This Article: ]
24.  Thorsen-Meyer HC, Nielsen AB, Nielsen AP, Kaas-Hansen BS, Toft P, Schierbeck J, Strøm T, Chmura PJ, Heimann M, Dybdahl L, Spangsege L, Hulsen P, Belling K, Brunak S, Perner A. Dynamic and explainable machine learning prediction of mortality in patients in the intensive care unit: a retrospective study of high-frequency data in electronic patient records. Lancet Digit Health. 2020;2:e179-e191.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 95]  [Cited by in F6Publishing: 133]  [Article Influence: 33.3]  [Reference Citation Analysis (0)]
25.  Chia A, Khoo M, Lim A, Ong K, Sun Y, Nguyen B, Chua M, Pang J. Explainable machine learning prediction of ICU mortality. Inform Med Unlocked. 2021;25:100674.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 3]  [Cited by in F6Publishing: 3]  [Article Influence: 1.0]  [Reference Citation Analysis (0)]
26.  Lichtner G, Balzer F, Haufe S, Giesa N, Schiefenhövel F, Schmieding M, Jurth C, Kopp W, Akalin A, Schaller SJ, Weber-Carstens S, Spies C, von Dincklage F. Predicting lethal courses in critically ill COVID-19 patients using a machine learning model trained on patients with non-COVID-19 viral pneumonia. Sci Rep. 2021;11:13205.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 11]  [Cited by in F6Publishing: 11]  [Article Influence: 3.7]  [Reference Citation Analysis (0)]
27.  Subudhi S, Verma A, Patel AB, Hardin CC, Khandekar MJ, Lee H, McEvoy D, Stylianopoulos T, Munn LL, Dutta S, Jain RK. Comparing machine learning algorithms for predicting ICU admission and mortality in COVID-19. NPJ Digit Med. 2021;4:87.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 92]  [Cited by in F6Publishing: 73]  [Article Influence: 24.3]  [Reference Citation Analysis (0)]
28.  Su L, Xu Z, Chang F, Ma Y, Liu S, Jiang H, Wang H, Li D, Chen H, Zhou X, Hong N, Zhu W, Long Y. Early Prediction of Mortality, Severity, and Length of Stay in the Intensive Care Unit of Sepsis Patients Based on Sepsis 3.0 by Machine Learning Models. Front Med (Lausanne). 2021;8:664966.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 9]  [Cited by in F6Publishing: 17]  [Article Influence: 5.7]  [Reference Citation Analysis (0)]
29.  Bou Chebl R, El Khuri C, Shami A, Rajha E, Faris N, Bachir R, Abou Dagher G. Serum lactate is an independent predictor of hospital mortality in critically ill patients in the emergency department: a retrospective study. Scand J Trauma Resusc Emerg Med. 2017;25:69.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 42]  [Cited by in F6Publishing: 69]  [Article Influence: 9.9]  [Reference Citation Analysis (0)]
30.  Villar J, Short JH, Lighthall G. Lactate Predicts Both Short- and Long-Term Mortality in Patients With and Without Sepsis. Infect Dis (Auckl). 2019;12:1178633719862776.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 19]  [Cited by in F6Publishing: 23]  [Article Influence: 4.6]  [Reference Citation Analysis (0)]
31.  Young PJ, Saxena M, Beasley R, Bellomo R, Bailey M, Pilcher D, Finfer S, Harrison D, Myburgh J, Rowan K. Early peak temperature and mortality in critically ill patients with or without infection. Intensive Care Med. 2012;.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 154]  [Cited by in F6Publishing: 138]  [Article Influence: 11.5]  [Reference Citation Analysis (0)]
32.  Rehman T, deBoisblanc BP. Persistent fever in the ICU. Chest. 2014;145:158-165.  [PubMed]  [DOI]  [Cited in This Article: ]  [Cited by in Crossref: 32]  [Cited by in F6Publishing: 32]  [Article Influence: 3.2]  [Reference Citation Analysis (0)]
33.  Jain S, Iverson LM.   Glasgow Coma Scale. 2021 Jun 20. In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; 2022 Jan–.  [PubMed]  [DOI]  [Cited in This Article: ]