Next Article in Journal
Cardiac Autonomic Dysfunction in Myasthenia Gravis and Relapsing-Remitting Multiple Sclerosis—A Pilot Study
Previous Article in Journal
Analysis of Frailty in Geriatric Patients as a Prognostic Factor in Endovascular Treated Patients with Large Vessel Occlusion Strokes
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Machine Learning Models to Predict 30-Day Mortality in Mechanically Ventilated Patients

1
Department of Anaesthesiology and Pain Medicine, College of Medicine, Hallym University, Chuncheon Sacred Heart Hospital, Chuncheon 24253, Korea
2
Institute of New Frontier Research Team, Hallym University, Chuncheon 24253, Korea
3
Department of Internal Medicine, Chung-Ang University Hospital, Chung-Ang University College of Medicine, Seoul 06973, Korea
*
Authors to whom correspondence should be addressed.
J. Clin. Med. 2021, 10(10), 2172; https://doi.org/10.3390/jcm10102172
Submission received: 23 March 2021 / Revised: 14 May 2021 / Accepted: 15 May 2021 / Published: 18 May 2021
(This article belongs to the Section Anesthesiology)

Abstract

:
Previous scoring models, such as the Acute Physiologic Assessment and Chronic Health Evaluation II (APACHE II) score, do not adequately predict the mortality of patients receiving mechanical ventilation in the intensive care unit. Therefore, this study aimed to apply machine learning algorithms to improve the prediction accuracy for 30-day mortality of mechanically ventilated patients. The data of 16,940 mechanically ventilated patients were divided into the training-validation (83%, n = 13,988) and test (17%, n = 2952) sets. Machine learning algorithms including balanced random forest, light gradient boosting machine, extreme gradient boost, multilayer perceptron, and logistic regression were used. We compared the area under the receiver operating characteristic curves (AUCs) of machine learning algorithms with those of the APACHE II and ProVent score results. The extreme gradient boost model showed the highest AUC (0.79 (0.77–0.80)) for the 30-day mortality prediction, followed by the balanced random forest model (0.78 (0.76–0.80)). The AUCs of these machine learning models as achieved by APACHE II and ProVent scores were higher than 0.67 (0.65–0.69), and 0.69 (0.67–0.71)), respectively. The most important variables in developing each machine learning model were APACHE II score, Charlson comorbidity index, and norepinephrine. The machine learning models have a higher AUC than conventional scoring systems, and can thus better predict the 30-day mortality of mechanically ventilated patients.

1. Introduction

Acute respiratory failure is a common cause of mechanical ventilation in the intensive care unit (ICU), which results from various medical conditions, such as pneumonia, congestive heart failure, sepsis, or acute respiratory distress syndrome [1]. Although mechanical ventilation is indicated for respiratory support or airway protection, it is associated with higher mortality and morbidity [1,2,3,4,5,6]. Moreover, patients requiring prolonged mechanical ventilation have high long-term mortality, and tracheostomy is often needed to maintain mechanical ventilation. Therefore, accurate prediction of prognosis in mechanically ventilated patients in the ICU is important.
As such, several mortality prediction models for mechanically ventilated patients have been suggested [4,7,8,9,10,11]. However, there are few models that are focused on predicting hospital mortality, and most models included only patients with pneumonia or chronic obstructive lung disease. Conventional scoring systems such as Acute Physiologic Assessment and Chronic Health Evaluation II (APACHE II) or Sequential Organ Failure Assessment (SOFA) scores have been reported as a significant mortality predictor among mechanically ventilated patients [1,10,11,12,13,14]. However, the discrimination ability of these scoring systems have not been validated in large cohorts of patients with various types of respiratory failure.
Machine learning algorithms have been recently applied to predict various outcomes related to mechanical ventilation. These outcomes include prolonged ventilation or tracheostomy, need for mechanical ventilation, successful extubation, weaning from mechanical ventilation, and monitoring lung mechanics [15,16,17,18,19]. However, there are no studies yet on using machine learning models for predicting mortality in mechanically ventilated patients. Therefore, we aimed to apply machine learning algorithms to predict the mortality of mechanically ventilated patients. Further, we investigated whether the machine learning models have better predictive capability than do conventional scoring systems.

2. Materials and Methods

2.1. Data Source and Study Population

In this retrospective study, data were collected from the study cohort enrolled at five hospitals of Hallym University Medical Center, Republic of Korea. The hospitals were located in Seoul (Kangnam Sacred Heart Hospital and Hangang Sacred Heart Hospital), Gyeonggi Province (Hallym University Sacred Heart Hospital and Dongtan Sacred Heart Hospital), and Gangwon Province (Chuncheon Sacred Heart Hospital). The overall bed capacity was 3047 beds, and 2,598,544 outpatients and 835,543 inpatients were managed in 2019.
We evaluated consecutive adult patients (≥18 years old) who required mechanical ventilation in the ICU between 1 January 2010 and 31 December 2019. Among the 28,340 mechanically ventilated patients identified, 11,400 patients who underwent surgery (n = 7403) and had missing values (n = 3997) were excluded (Figure S1). Thus, 16,940 patients were included in the analysis.
The study was approved by the institutional review board of Chuncheon Sacred Hospital (No. 2020-11-008). The need for informed consent was waived owing to the retrospective nature of the study.

2.2. Data Collection and Definitions

Data were collected from the electronic medical records (EMRs) from each participating hospital using the clinical big data analytic solution Smart Clinical Data Warehouse based on the QlikView Elite Solution (Qlik, King of Prussia, PA, USA). The following information was collected from the time of mechanical ventilation initiation: age, sex, body mass index, time from hospitalization to ICU admission, time from hospitalization to mechanical ventilation initiation, APACHE II, ProVent score, Modified Early Warning Score (MEWS) [20], status post tracheostomy, transfer from skilled nursing facility, Charlson Comorbidity Index (CCI) and their variables [21], vital signs, continuous renal replacement therapy (CRRT), mode of mechanical ventilation, transfusion requirement (packed red blood cell, fresh frozen plasma, and platelet concentrate), use and type of vasopressors and inotropes (norepinephrine, epinephrine, dobutamine, dopamine, and vasopressin), use and type of corticosteroids (hydrocortisone, dexamethasone, and methylprednisolone), use and type of opioids (fentanyl and remifentanil), use and type of sedatives (propofol and midazolam), use and type of neuromuscular blockades (atracurium, cisatracurium, rocuronium, and vecuronium), and laboratory results with arterial blood gases. For longitudinal data such as vital signs or laboratory findings, we selected initial values taken on the day mechanical ventilation was initiated. To prevent errors in the dataset, we excluded patients with systolic blood pressure, heart rate, respiratory rate, and body temperature outside the ranges of 30–300 mmHg, 10–300 beats/min, 3–60 breaths/min, and 30–45 °C, respectively [22].
The ProVent score was calculated using five categories and their corresponding scores as follows: (1) age ≥ 65 years, 2 points; (2) age 50–64 years, 1 point; (3) platelets ≤ 100 × 109, 1 point; (4) use of vasopressors and hemodialysis, 1 point; and (5) non-trauma, 1 point [7]. The maximum score was 7. The MEWS is a bedside tool for the prediction of increased risk of clinical deterioration and uses five physiological parameters including systolic blood pressure, pulse rate, respiratory rate, temperature, and level of conscious state [20]. The allocated diagnoses for each patient were categorized using the Korean Standard Classification of Diseases-7 codes, which is a Korean version of the International Classification of Diseases-10 (ICD-10). CCI variables were categorized according to ICD-10 codes. These variables were included as features in developing the machine learning algorithms (Table S4). The primary outcome was mortality within 30 days from the initiation of mechanical ventilation in the ICU.

2.3. Machine Learning Algorithms

The data set involved patient variables. We divided the dataset into the training-internal validation set and external validation sets to prevent model overfitting. The test set (17%, n = 2952) consisted of data from Chuncheon Sacred Heart Hospital to apply the machine learning model to an independent data set. The data from other four hospitals were used for training-validation (83%, n = 13,988). The training-internal validation set was further divided into the training set and internal validation set at a ratio of 4:1 with the same percentage of deaths. Datasets were standardized using min–max scaling. Supervised learning is a machine learning task that learns a function and maps inputs to outputs based on example input-output pairs. All machine learning used in this study was supervised learning. We used five machine learning algorithms, namely, balanced random forest (BRF), light gradient boosting machine (LGBM), extreme gradient boost (XBG), multilayer perceptron (MLP), and logistic regression (LR) [23,24]. LR is one of the regression algorithms that predicts whether data will fall into a specific category with a continuous probability between 0 and 1. Then, based on the probability, the algorithm decides which category the specific data belongs to, and ultimately solves the classification problem. MLP is a neural network in which one or more intermediate layers exist between an input layer and an output layer. The intermediate layer between the input layer and the output layer is called a hidden layer. The network is connected in the direction of the input layer, the hidden layer, and the output layer, and there is no connection within each layer and a direct connection from the output layer to the input layer, which is a feedforward network. It differs from logistic regression in that there can be one or more nonlinear layers called hidden layers. Random forest in machine learning is a type of ensemble learning method used for classification and regression analysis and operates by outputting classification or regression analysis from a plurality of decision trees constructed in the training process. The biggest characteristic of random forest is that trees have slightly different characteristics due to randomness. This property makes the predictions of each tree uncorrelated and consequently improves the generalization performance. In addition, randomization makes the forest robust even for noise-containing data. Extreme gradient boost (XGB) is one of the gradient boosting methods. Optimized gradient boosting algorithm through parallel processing, tree-pruning, handling missing values, and regularization to void overfitting/bias. LGBM works differently from the existing gradient boosting algorithm. Existing boosting models use a method of increasing the tree level-wise, but LGBM uses leaf-wise tree division. Existing trees used level-wise partitioning to reduce the tree depth, but LGBM models behave differently, and level-wise tree analysis needs to be balanced, so the tree depth is reduced. Instead, there is a disadvantage of adding an operation to balance it. LGBM does not balance the tree and proceeds by continuously dividing the leaf nodes. Therefore, an asymmetric and deep tree is created, but when creating a lost leaf, leaf-wise has the advantage of reducing loss compared to level-wise.
Data imbalance can bias the machine-learning models and render them inaccurate. To overcome this problem, we trained the models after balancing the training dataset via the synthetic minority oversampling technique (SMOTE) to a 1:1 ratio in the XGB, LGBM, MLP, and LR models. The parameters used in SMOTE is as follows: SMOTENC (categorical_features = [n_fratures], k_neighbors = 5, n_jobs = None, sampling_strategy = ‘auto’). Then, we modeled the balanced random forest. The five models were trained using the basic hyperparameters and training sets. The model with the best performance was identified using a validation set. We performed 10-fold cross-validation on the training dataset and tuned the hyperparameters using grid search. The final model was validated using the internal validation and external validation test set. Model evaluation involved receiver operating characteristic (ROC) curve and area under the receiver operating characteristic curves (AUCs) using Anaconda (Python version 3.7, https://www.anaconda.com (accessed on 10 February 2021); Anaconda Inc., Austin, TX, USA), the XGBoost package version 0.90 (https://xgboost.readthedocs.io (accessed on 10 February 2021)), the LGBM package version 2.2.3 (https://lightgbm.readthedocs.io/en/latest/Python-Intro.html (accessed on 10 February 2021)), imbalanced-learn package version 0.5.0 (https://imbalanced-learn.readthedocs.io (accessed on 11 February 2021)), and scikit-learn 0.24.1(MLP, LR; https://scikit-learn.org/stable/index.html (accessed on 11 February 2021)).

2.4. Variable Importance

In BRF, XGB, and LGBM, we used the built-in function that calculates feature importance. In MLP and LR, permutation feature importance was used because there was no built-in function in the packages. Permutation feature importance provides a method to compute feature importance for any black-box estimator by measuring how score decreases when a feature is not available; the method is also known as Mean Decrease Accuracy [25,26].

2.5. Statistical Analyses

Descriptive analysis was performed to compare the characteristics between survivors and non-survivors. Categorical variables were presented as numbers (%) and were compared using the Pearson’s chi-squared test. Continuous variables were presented as mean ± standard deviation and were compared using the Student’s t test. The discrimination powers of APACHE II, ProVent, and MEWS were assessed according to the AUC evaluated with the ROC curve analysis. All analyses were performed using SPSS software (version 26.0; IBM Corporation, Armonk, NY, USA). Differences were considered statistically significant at p-values of <0.05.

3. Results

3.1. Patient Characteristics

The mean patient age was 67 years (SD ± 15), and 61.5% of the patients were male. In total, 5061 patients (29.9%) died within 30 days, and the mortality rates of internal and external data sets were 31.5% and 22.0%, respectively. Mortality rates of the four hospitals included in the internal validation set were as follows: 33.7%, 30.8%, 28.9%, and 33.7%, respectively. The baseline characteristics and laboratory values are presented in Table 1 and Table S1. Compared with the survivor group, the non-survivor group showed significantly higher age (69 ± 14 years vs. 66 ± 15 years, p < 0.001) and APACHE II score (26.3 ± 6.5 vs. 21.6 ± 6.8, p < 0.001). The rates of use of vasopressors, corticosteroids, neuromuscular blockers, and CRRT were also significantly higher in the non-survivor group. The most common type of ventilator mode was pressure control (n = 7269, 42.9%). The PaO2/FiO2 ratio was significantly lower in the non-survivor group (262 ± 176 vs. 207 ± 173) (Table 1). Further, other laboratory findings were also significantly different between the two groups.
The 30-day mortality of the training-validation set and test set was 31.5% and 22.00% (p < 0.001), respectively. Moreover, the medications and interventions received during mechanical ventilations were also significantly different (Tables S2 and S3).

3.2. Model Performance

Figure 1 demonstrates the receiver operating characteristic curves for predicting 30-day mortality in mechanically ventilated patients. In the internal validation, there was no significant difference in AUC among the BRF (0.79, 95% CI: 0.78–0.81), LGBM (0.75, 95% CI: 0.73–0.76), XGB (0.80, 95% CI: 0.79–0.82), MLP (0.79, 95% CI: 0.77–0.80), and LR (0.76, 95% CI: 0.74–0.78) models. In the test set (external validation), the discrimination functions of BRF (AUC: 0.78, 95% CI: 0.76–0.80), XGB (AUC: 0.79, 95% CI: 0.77–0.80), and MLP (AUC: 0.76, 95% CI: 0.74–0.78) were superior to those of LGBM (AUC: 0.70, 95% CI: 0.68–0.72) and LR (AUC: 0.71, 95% CI: 0.69–0.74). The other performance indicators of the algorithms are presented for each model in Table 2. BRF showed the highest sensitivity (84%), while XGB showed the highest positive predictive value (46%) as well as accuracy (76%).
In the test set, APACHE II (AUC: 0.67, 95% CI: 0.65–0.69), ProVent (AUC: 0.69, 95% CI: 0.67–0.71), and MEWS (AUC: 0.63, 95% CI: 0.60–0.65) showed lower predictive performance for 30-day mortality than did the machine learning algorithms (Figure 2). In the overall cohort, APACHE II, ProVent, and MEWS showed AUCs of 0.69 (95% CI: 0.68–0.70), 0.66 (95% CI: 0.65–0.67), and 0.67 (95% CI: 0.66–0.68), respectively (Figure S2).

3.3. Variable Importance

The top 10 variables in the machine learning algorithms are listed in Table 3. The most important features in the models were APACHE II in BRF and LGBM, CCI in MLP and LR, and norepinephrine in XGB. APACHE II and norepinephrine were the top predictors common across all models. Variables of ABGA including base excess and bicarbonate, and pH were considered important values in BRF. Age and comorbidities, such as chronic pulmonary disease, congestive heart failure, and diabetes were important variables in the development of the models. The results of SHapley Additive exPlanations (SHAP) of the each model were demonstrated in Supplementary Figures S3–S7.

4. Discussion

Few studies have evaluated the validity of predictive models of mortality in cohorts with varying types of disease conditions. This multicenter study found that machine learning models based on EMR data on the day of mechanical ventilation initiation can predict the 30-day mortality of the patients receiving mechanical ventilation in the ICU regardless of the disease condition. Although the mortality of these patients are difficult to predict, the machine learning models better predicted 30-day mortality than did the conventional scoring systems of APACHE II, ProVent, and MEWS. The BRF and XGB models showed adequate discrimination abilities (AUC, 0.78 and 0.79). The most important features in the models were APACHE II, CCI, and norepinephrine. Although APACHE II did not reveal excellent discrimination power, (AUC 0.67), the conventional scores are still useful in developing machine learning models to predict outcomes.
Machine learning models have been developed to predict mortality in patients undergoing CRRT [27], critical trauma patients [28,29], and patients in the ICU [30]. Other studies have also used these models to predict in-hospital cardiac arrest [22] and real-time mortality [31,32]. Thorsen-Meyer et al. developed a machine leaning model using a recurrent neural network in a cohort of 15,615 ICU patients with a 33% 90-day mortality [30]. The AUC at ICU admission was 0.73, and performance improved over time from AUC 0.82 after 24 h to AUC 0.85 after 72 h. Kang et al. reported that machine learning model using random forest predicted ICU mortality in 1571 patients undergoing CRRT [27]. The AUC of the machine learning model was 0.78, which was higher than those of the APACHE II and SOFA scores.
Mortality among mechanically ventilated patients are associated with factors related to patient management and complications during mechanical ventilation as well as the factors at the initiation of mechanical ventilation [1]. As such, predicting mortality in patients with mechanical ventilation can be challenging. However, our model, which used clinical data within 24 h of the mechanical ventilation initiation, showed good discrimination ability. Further, the predictive capabilities were similar to those of machine learning models described previously. In addition, unlike previous studies, the results of our study are derived from external validation in a completely independent hospital dataset.
Mechanical ventilation is one of the crucial life support devices provided in the ICU. However, mechanical ventilation is associated with markedly increased ICU costs [33]. Worldwide, there is a shortage of ICU beds because of the coronavirus disease 2019 pandemic [34]. Therefore, in terms of priority of mechanical ventilation application, rapid and accurate prediction of mortality in mechanically ventilated patients is important. Our machine learning models were trained on all ICU patients who received mechanical ventilation regardless of the disease condition. We used clinical variables that are commonly available in mechanically ventilated patients. This improved the generalizability of our machine learning models for application in the clinical setting. Furthermore, our machine learning models can predict mortality with high accuracy compared with conventional scoring systems in patients receiving mechanical ventilation. These models can be easily developed using clinical variables from electronic medical records, and therefore, can be used even in the emergency room setting though. We suggest that our machine learning models should be utilized by physicians in making clinical decisions for judging mechanical ventilation priority.
Machine learning is like a black box in that we cannot explain the processes between input and output [35]. However, it is helpful to understand variables that play a significant role in predicting performance. Although there were some discrepancies between the machine learning models, APACHE-II, norepinephrine, age, and CCI contributed significantly to the development of our machine learning models. The variables selected in each model tended to be similar to conventional studies’ results. Age, type of respiratory failure, use of inotropes, and severity scoring systems such as APACHE II and SAPS II have been considered important predictors of outcomes in patients receiving mechanical ventilation [1,12]. The models showed better discrimination abilities than the conventional scoring systems. However, APACHE II and CCI also were important factors for the development of the machine learning models. It is notable that the machine learning algorithms identified variables that were considered significant in previous studies. As machine learning for big data processing becomes more advanced, the systems for outcome prediction in critically ill patients will evolve. However, our results suggest that the conventional scoring systems will remain useful even in the big data era.
This study has some limitations. First, other variables associated with mechanical ventilation such as PEEP or plateau pressure were not included because they were not collected during the mechanical ventilation, and data were only analyzed retrospectively. Moreover, the retrospective nature of the study precluded collection of data regarding the reasons of mechanical ventilation initiation or cause of respiratory failure. Second, the AUC of SOFA score, which is one of the most used outcome prediction scores, was not presented. Third, we did not demonstrate information regarding lung heterogeneity related to the outcomes of acute respiratory distress syndrome [36]. Adding this information to the machine learning models can be beneficial to improve the prediction accuracy. In terms of the mechanical properties of the lungs, fractional order model is emerging as a tool to characterize lung function [37]. Forced oscillation technique is a non-invasive and reliable method to evaluate the lung function, and this showed a great potential in healthy, asthma, and chronic obstructive pulmonary disease patients [37,38,39]. These can be further used in machine learning algorithms for the evaluation of the respiratory systems of mechanically ventilated patients. Fourth, there is a possibility that historical bias exists due to the long duration of patient enrollment. Fifth, although the AUC of our machine learning models have shown acceptable discriminatory ability, model performance, however, needs to be improved. Therefore, further prospective studies including a large cohort with various scoring systems and variables over time are needed to improve the efficacy of machine learning models for predicting outcomes in mechanically ventilated patients. Mortality prediction in mechanically ventilated patients can be further improved if longitudinal data can be collected.

5. Conclusions

Compared with previous scoring models, our machine learning models of BRF, LGBM, XBG, MLP, and LR can better predict 30-day mortality in mechanically ventilated patients. Although APACHE II did not reveal excellent discrimination power, machine learning algorithms showed that the conventional scoring systems and CCI remain important factors for predicting outcomes in mechanically ventilated patients. Our findings suggest that improving discrimination power of machine learning models can help make crucial clinical decisions for patients who are less likely to benefit from mechanical ventilation.

Supplementary Materials

The following are available online at https://www.mdpi.com/article/10.3390/jcm10102172/s1, Figure S1: Flow chart of the patients, Figure S2: Receiver operating characteristics (ROC) curves of conventional scoring systems for predicting 30-day mortality in mechanically ventilated patients in total patients, Figure S3: SHAP features importance for the determinants of 30-day mortality in BRF, Figure S4: SHAP features importance for the determinants of 30-day mortality in LGBM, Figure S5: SHAP features importance for the determinants of 30-day mortality in XGB, Figure S6: SHAP features importance for the determinants of 30-day mortality in MLP, Figure S7: SHAP features importance for the determinants of 30-day mortality in LR, Table S1: Baseline characteristics and laboratory findings of the patients according to mortality, Table S2: Baseline patient characteristics according to validation dataset, Table S3: Clinical and laboratory findings according to validation dataset, Table S4: Variables included in the machine learning algorithms.

Author Contributions

Conceptualization, M.S.B.; data curation, J.H.K.; methodology, Y.S.K.; validation, Y.S.K.; writing—original draft, J.H.K. and M.S.B.; writing—review and editing, M.S.B. All authors have read and agreed to the published version of the manuscript.

Funding

The design of this study and collection, analysis, and interpretation of data were supported by the First Research in Lifetime Program of the National Research Foundation (NRF) funded by the Korean government (MSIT) (NRF-2018R1C1B5085866), South Korea. The design of this study and collection, analysis, and interpretation of data were supported by the Bio & Medical Technology Development Program of the National Research Foundation (NRF) funded by the Korean government (MSIT) (NRF-2019M3A9E8020536), South Korea.

Institutional Review Board Statement

This retrospective study protocol was approved by the institutional review board of Chuncheon Sacred Hospital (2020-11-008).

Informed Consent Statement

The need for informed consent was waived owing to the retrospective nature of the study.

Data Availability Statement

Data sharing is not applicable to this article.

Conflicts of Interest

The authors disclose that they do not have any conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

References

  1. Esteban, A.; Anzueto, A.; Frutos, F.; Alía, I.; Brochard, L.; Stewart, T.E.; Benito, S.; Epstein, S.K.; Apezteguía, C.; Nightingale, P.; et al. Characteristics and Outcomes in Adult Patients Receiving Mechanical VentilationA 28-Day International Study. JAMA 2002, 287, 345–355. [Google Scholar] [CrossRef] [PubMed]
  2. Bellani, G.; Laffey, J.G.; Pham, T.; Fan, E.; Brochard, L.; Esteban, A.; Gattinoni, L.; van Haren, F.; Larsson, A.; McAuley, D.F.; et al. Epidemiology, Patterns of Care, and Mortality for Patients With Acute Respiratory Distress Syndrome in In-tensive Care Units in 50 Countries. JAMA 2016, 315, 788–800. [Google Scholar] [CrossRef]
  3. Behrendt, C.E. Acute respiratory failure in the United States: Incidence and 31-day survival. Chest 2000, 118, 1100–1105. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  4. Carson, S.S.; Kahn, J.M.; Hough, C.L.; Seeley, E.J.; White, D.B.; Douglas, I.S.; Cox, C.E.; Caldwell, E.; Bangdiwala, S.I.; Garrett, J.M.; et al. A multicenter mortality prediction model for patients receiving prolonged mechanical ventilation*. Crit. Care Med. 2012, 40, 1171–1176. [Google Scholar] [CrossRef] [PubMed]
  5. Cinotti, R.; Voicu, S.; Jaber, S.; Chousterman, B.; Paugam-Burtz, C.; Oueslati, H.; Damoisel, C.; Caillard, A.; Roquilly, A.; Feuillet, F.; et al. Tracheostomy and long-term mortality in ICU patients undergoing prolonged mechanical ventila-tion. PLoS ONE 2019, 14, e0220399. [Google Scholar] [CrossRef] [Green Version]
  6. Kalanuria, A.; Zai, W.; Mirski, M. Ventilator-associated pneumonia in the ICU. Crit. Care 2014, 18, 208. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  7. Hough, C.L.; Caldwell, E.S.; Cox, C.E.; Douglas, I.S.; Kahn, J.M.; White, D.B.; Seeley, E.J.; Bangdiwala, S.I.; Rubenfeld, G.D.; Angus, D.C.; et al. Development and Validation of a Mortality Prediction Model for Patients Receiving 14 Days of Mechanical Ventilation. Crit. Care Med. 2015, 43, 2339–2345. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  8. Shi, Q.; Sheng, Y.; Zhu, N.; Tan, Y.; Xie, X.; Wang, S.; Cai, J. The v-DECAF score can predict 90-day all-cause mortality in patients with COPD exacerbation requiring invasive mechanical ventilation. Clin. Respir. J. 2019, 13, 438–445. [Google Scholar] [CrossRef]
  9. Udeh, C.I.; Hadder, B.; Udeh, B.L. Validation and Extension of the Prolonged Mechanical Ventilation Prognostic Model (ProVent) Score for Predicting 1-Year Mortality after Prolonged Mechanical Ventilation. Ann. Am. Thorac. Soc. 2015, 12, 1845–1851. [Google Scholar] [CrossRef]
  10. Aydoğdu, M.; Ozyilmaz, E.; Aksoy, H.; Gürsel, G.; Ekim, N. Mortality prediction in community-acquired pneumonia requiring mechanical ventilation; values of pneumonia and intensive care unit severity scores. Tuberk. ve Toraks 2010, 58, 25–34. [Google Scholar]
  11. Özlü, T.; Küçük, M.P.; Kaya, A.; Yarar, E.; Kirakli, S.C.; Dikiş, Ö.S.; Çelik, H.K.; Özkan, S.; Aksoy, H.B.; Küçük, A.O. Can we predict patients that will not benefit from invasive mechanical ventilation? A novel scoring system in intensive care: The IMV Mortality Prediction Score (IMPRES). Turk. J. Med Sci. 2019, 49, 1662–1673. [Google Scholar] [PubMed]
  12. Sudarsanam, T.D.; Jeyaseelan, L.; Thomas, K.; John, G. Predictors of mortality in mechanically ventilated patients. Postgrad. Med. J. 2005, 81, 780–783. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  13. Gajic, O.; Afessa, B.; Thompson, B.T.; Frutos-Vivar, F.; Malinchoc, M.; Rubenfeld, G.D.; Esteban, A.; Anzueto, A.; Hub-Mayr, R.D.; Second International Study of Mechanical, V.; et al. Prediction of death and prolonged mechanical ventila-tion in acute lung injury. Crit. Care 2007, 11, R53. [Google Scholar] [CrossRef] [Green Version]
  14. Hersch, M.; Izbicki, G.; Dahan, D.; Breuer, G.S.; Nesher, G.; Einav, S. Predictors of mortality of mechanically ventilated patients in internal medicine wards. J. Crit. Care 2012, 27, 694–701. [Google Scholar] [CrossRef] [PubMed]
  15. Parreco, J.; Hidalgo, A.; Parks, J.J.; Kozol, R.; Rattan, R. Using artificial intelligence to predict prolonged mechanical ventilation and tracheostomy placement. J. Surg. Res. 2018, 228, 179–187. [Google Scholar] [CrossRef] [PubMed]
  16. Shashikumar, S.P.; Wardi, G.; Paul, P.; Carlile, M.; Brenner, L.N.; Hibbert, K.A.; North, C.M.; Mukerji, S.S.; Robbins, G.K.; Shao, Y.-P.; et al. Development and Prospective Validation of a Deep Learning Algorithm for Predicting Need for Mechanical Ventilation. Chest 2020. [Google Scholar] [CrossRef]
  17. Hsieh, M.-H.; Hsieh, M.-J.; Chen, C.-M.; Hsieh, C.-C.; Chao, C.-M.; Lai, C.-C. An Artificial Neural Network Model for Predicting Successful Extubation in Intensive Care Units. J. Clin. Med. 2018, 7, 240. [Google Scholar] [CrossRef] [Green Version]
  18. Kwong, M.T.; Colopy, G.W.; Weber, A.M.; Ercole, A.; Bergmann, J.H.M. The efficacy and effectiveness of machine learning for weaning in mechanically ventilated patients at the intensive care unit: A systematic review. Bio-Design Manuf. 2019, 2, 31–40. [Google Scholar] [CrossRef] [Green Version]
  19. Hezarjaribi, N.; Dutta, R.; Xing, T.; Murdoch, G.K.; Mazrouee, S.; Mortazavi, B.J.; Ghasemzadeh, H. Monitoring Lung Mechanics during Mechanical Ventilation using Machine Learning Algorithms. In Proceedings of the 2018 40th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Honolulu, HI, USA, 18–21 July 2018; Volume 2018, pp. 1160–1163. [Google Scholar]
  20. Subbe, C.P.; Kruger, M.; Rutherford, P.; Gemmel, L. Validation of a modified Early Warning Score in medical admis-sions. QJM Mon. J. Assoc. Physicians 2001, 94, 521–526. [Google Scholar] [CrossRef] [Green Version]
  21. Charlson, M.E.; Pompei, P.; Ales, K.L.; MacKenzie, C.R. A new method of classifying prognostic comorbidity in longi-tudinal studies: Development and validation. J. Chronic Dis. 1987, 40, 373–383. [Google Scholar] [CrossRef]
  22. Kwon, J.; Lee, Y.; Lee, Y.; Lee, S.; Park, J. An Algorithm Based on Deep Learning for Predicting In-Hospital Cardiac Arrest. J. Am. Hear. Assoc. 2018, 7, e008678. [Google Scholar] [CrossRef] [Green Version]
  23. Baum, E.B. On the capabilities of multilayer perceptrons. J. Complex. 1988, 4, 193–215. [Google Scholar] [CrossRef] [Green Version]
  24. Li, Y.; Chen, W. A Comparative Performance Assessment of Ensemble Learning for Credit Scoring. Mathematics 2020, 8, 1756. [Google Scholar] [CrossRef]
  25. Breiman, L. Random Forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef] [Green Version]
  26. Permutation Importance. Available online: https://eli5.readthedocs.io/en/latest/blackbox/permutation_importance.html (accessed on 1 March 2021).
  27. Kang, M.W.; Kim, J.; Kim, D.K.; Oh, K.H.; Joo, K.W.; Kim, Y.S.; Han, S.S. Machine learning algorithm to predict mortal-ity in patients undergoing continuous renal replacement therapy. Crit. Care 2020, 24, 42. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  28. Serviá, L.; Montserrat, N.; Badia, M.; Llompart-Pou, J.A.; Barea-Mendoza, J.A.; Chico-Fernández, M.; Sánchez-Casado, M.; Jiménez, J.M.; Mayor, D.M.; Trujillano, J. Machine learning techniques for mortality prediction in critical traumatic patients: Anatomic and physiologic variables from the RETRAUCI study. BMC Med. Res. Methodol. 2020, 20, 1–12. [Google Scholar] [CrossRef]
  29. Abujaber, A.; Fadlalla, A.; Gammoh, D.; Abdelrahman, H.; Mollazehi, M.; El-Menyar, A. Prediction of in-hospital mor-tality in patients on mechanical ventilation post traumatic brain injury: Machine learning approach. BMC Med. Inform. Decis. Mak. 2020, 20, 336. [Google Scholar] [CrossRef]
  30. Thorsen-Meyer, H.-C.; Nielsen, A.B.; Nielsen, A.P.; Kaas-Hansen, B.S.; Toft, P.; Schierbeck, J.; Strøm, T.; Chmura, P.J.; Heimann, M.; Dybdahl, L.; et al. 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. Heal. 2020, 2, e179–e191. [Google Scholar] [CrossRef]
  31. Kim, S.Y.; Kim, S.; Cho, J.; Kim, Y.S.; Sol, I.S.; Sung, Y.; Cho, I.; Park, M.; Jang, H.; Kim, Y.H.; et al. A deep learning model for real-time mortality prediction in critically ill children. Crit. Care 2019, 23, 1–10. [Google Scholar] [CrossRef] [Green Version]
  32. Johnson, A.E.; Mark, R.G. Real-time mortality prediction in the Intensive Care Unit. In AMIA Annual Symposium Proceedings; AMIA Symposium: Boston, WA, USA, 2018; Volume 2017, pp. 994–1003. [Google Scholar]
  33. Kaier, K.; Heister, T.; Wolff, J.; Wolkewitz, M. Mechanical ventilation and the daily cost of ICU care. BMC Heal. Serv. Res. 2020, 20, 267. [Google Scholar] [CrossRef]
  34. Dar, M.; Swamy, L.; Gavin, D.; Theodore, A. Mechanical-Ventilation Supply and Options for the COVID-19 Pandemic. Leveraging All Available Resources for a Limited Resource in a Crisis. Ann. Am. Thorac. Soc. 2021, 18, 408–416. [Google Scholar] [CrossRef]
  35. The Lancet Respiratory, M. Opening the black box of machine learning. Lancet. Respir. Med. 2018, 6, 801. [Google Scholar] [CrossRef]
  36. Cressoni, M.; Cadringher, P.; Chiurazzi, C.; Amini, M.; Gallazzi, E.; Marino, A.; Brioni, M.; Carlesso, E.; Chiumello, D.A.; Quintel, M.; et al. Lung Inhomogeneity in Patients with Acute Respiratory Distress Syndrome. Am. J. Respir. Crit. Care Med. 2013, 189, 149–158. [Google Scholar] [CrossRef] [PubMed]
  37. Ionescu, C.; Lopes, A.; Copot, D.; Machado, J.; Bates, J. The role of fractional calculus in modeling biological phenomena: A review. Commun. Nonlinear Sci. Numer. Simul. 2017, 51, 141–159. [Google Scholar] [CrossRef]
  38. Copot, D.; De Keyser, R.; Derom, E.; Ionescu, C.-M. Structural changes in the COPD lung and related heterogeneity. PLoS ONE 2017, 12, e0177969. [Google Scholar] [CrossRef] [PubMed]
  39. Copot, D.; De Keyser, R.; Derom, E.; Ortigueira, M.; Ionescu, C.M. Reducing bias in fractional order impedance esti-mation for lung function evaluation. Biomed. Signal Process. Control 2018, 39, 74–80. [Google Scholar] [CrossRef]
Figure 1. Receiver operating characteristic (ROC) curves for predicting 30-day mortality in mechanically ventilated patients: (a) in the internal validation, machine learning models showed AUCs from 0.75 to 0.80. (b) In the external validation, AUCs of XGB, BRF, MLP, LR, and LGBM were 0.79, 0.78, 0.76, 0.71, and 0.70, respectively. AUC, area under the receiver operating characteristic curve; BRF, balanced random forest; LGBM, light gradient boosting machine; XGB, extreme gradient boosting; MLP, multilayer perceptron; and LR, logistic regression.
Figure 1. Receiver operating characteristic (ROC) curves for predicting 30-day mortality in mechanically ventilated patients: (a) in the internal validation, machine learning models showed AUCs from 0.75 to 0.80. (b) In the external validation, AUCs of XGB, BRF, MLP, LR, and LGBM were 0.79, 0.78, 0.76, 0.71, and 0.70, respectively. AUC, area under the receiver operating characteristic curve; BRF, balanced random forest; LGBM, light gradient boosting machine; XGB, extreme gradient boosting; MLP, multilayer perceptron; and LR, logistic regression.
Jcm 10 02172 g001
Figure 2. Receiver operating characteristics curves showing the performance of APACHE II (AUC: 0.67, 95% CI: 0.65–0.69), ProVent (AUC: 0.69, 95% CI: 0.67–0.71), and MEWS (AUC: 0.63, 95% CI: 0.60–0.65) for predicting 30-day mortality in mechanically ventilated patients, in the test set. APACHE, Acute Physiology and Chronic Health Evaluation; AUC, area under the curve; MEWS, Modified Early Warning Score.
Figure 2. Receiver operating characteristics curves showing the performance of APACHE II (AUC: 0.67, 95% CI: 0.65–0.69), ProVent (AUC: 0.69, 95% CI: 0.67–0.71), and MEWS (AUC: 0.63, 95% CI: 0.60–0.65) for predicting 30-day mortality in mechanically ventilated patients, in the test set. APACHE, Acute Physiology and Chronic Health Evaluation; AUC, area under the curve; MEWS, Modified Early Warning Score.
Jcm 10 02172 g002
Table 1. Baseline characteristics of the patients.
Table 1. Baseline characteristics of the patients.
VariablesTotal (n = 16,940)Survivors (n = 11,879)Non-Survivors (n = 5061)p Value
Age (years)67 ± 1566 ± 1569 ± 14<0.001
Male sex (%)61.561.361.80.567
Interval between hospitalization and ICU admission (days)2 ± 72 ± 63 ± 9<0.001
Interval between hospitalization and MV initiation (days)1 ± 61 ± 62 ± 7<0.001
APACHE II23 ± 422 ± 726 ± 7<0.001
ProVent score3 ± 13 ± 14 ± 1<0.001
Modified early warning score5 ± 24 ± 26 ± 2<0.001
Transfer from skilled nursing facility (%)9.28.810.10.007
Charlson comorbidity index4 ± 34 ± 35 ± 20.006
Comorbidities a (%)
Diabetes20.522.216.4<0.001
Congestive heart failure18.119.814.0<0.001
Myocardial infarction8.58.87.80.037
Chronic pulmonary disease16.518.412.1<0.001
Liver disease9.38.511.4<0.001
Moderate to severe CKD12.612.612.60.998
Any malignancy20.119.222.0<0.001
Rheumatic disease1.61.42.2<0.001
Dementia7.07.65.4<0.001
Cerebrovascular disease26.627.6 24.2<0.001
Continuous renal replacement therapy (%)14.610.125.1<0.001
Transfusion (%)27.324.633.6<0.001
Medications (%)
Vasopressors and inotropes50.944.366.3<0.001
Corticosteroids16.415.119.4<0.001
Opioids33.733.234.60.077
Sedatives20.822.117.8<0.001
Neuromuscular blockades12.411.913.8<0.001
PaO2/FiO2 ratio246 ± 177262 ± 176207 ± 173<0.001
Length of stay (day)29 ± 3629 ± 3628 ± 360.175
ICU stay (day)16 ± 2716 ± 2717 ± 260.767
Duration of MV (day)11 ± 2311 ± 2311 ± 220.592
Values are presented as the mean ± SD or as %. a Comorbidities are categorized using the Charlson Comorbidity Index. ICU, intensive care unit; MV, mechanical ventilation; APACHE, Acute Physiology and Chronic Health Evaluation; CKD, chronic kidney disease; PaO2, partial pressure of oxygen; and FiO2, fraction of inspired oxygen.
Table 2. Performance metrics of 30-day mortality prediction models in the external validation set.
Table 2. Performance metrics of 30-day mortality prediction models in the external validation set.
ModelsAUCPositive Predictive ValueSensitivityAccuracy
BRF0.780.370.840.65
LGBM0.700.370.520.70
XGB0.790.460.580.76
MLP0.760.410.620.72
LR0.710.400.550.72
AUC, area under the receiver operating characteristic curve; BRF, balanced random forest; LGBM, light gradient boosting machine; XGB, extreme gradient boosting; MLP, multilayer perceptron; and LR, logistic regression.
Table 3. Top 10 most important variables for predicting 30-day mortality in the machine learning models.
Table 3. Top 10 most important variables for predicting 30-day mortality in the machine learning models.
Machine Learning Models
RankingBRFLGBMXGBMLPLR
1APACHE IIAPACHE IINorepinephrineCCICCI
2Base excessSpO2CHFAPACHE IIAPACHE II
3HCO3Respiratory rateChronic pulmonary diseaseCHFAge
4PlateletChronic pulmonary diseaseDiabetesChronic pulmonary diseaseCHF
5NorepinephrineMidazolamAPACHE IIDiabetesChronic pulmonary disease
6pHCHFSpO2NorepinephrineDiabetes
7PaO2/FiO2NorepinephrineMidazolamAgeAge group of CCI
8Blood urea nitrogenAgeDisease of the nervous systemAge group of CCIMalignancy
9eGFRHCO3Endocrine, nutritional, and metabolic diseaseTransfer from skilled nursing facilityRemifentanil
10FiO2DiabetesMental and behavioral disordersMalignancyNorepinephrine
AUC, area under the receiver operating characteristic curve; BRF, balanced random forest; LGBM, light gradient boosting machine; XGB, extreme gradient boosting; MLP, multilayer perceptron; and LR, logistic regression; CCI: Charlson Comorbidity Index; CHF: congestive heart failure; eGFR: estimated glomerular filtration rate.
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Kim, J.H.; Kwon, Y.S.; Baek, M.S. Machine Learning Models to Predict 30-Day Mortality in Mechanically Ventilated Patients. J. Clin. Med. 2021, 10, 2172. https://doi.org/10.3390/jcm10102172

AMA Style

Kim JH, Kwon YS, Baek MS. Machine Learning Models to Predict 30-Day Mortality in Mechanically Ventilated Patients. Journal of Clinical Medicine. 2021; 10(10):2172. https://doi.org/10.3390/jcm10102172

Chicago/Turabian Style

Kim, Jong Ho, Young Suk Kwon, and Moon Seong Baek. 2021. "Machine Learning Models to Predict 30-Day Mortality in Mechanically Ventilated Patients" Journal of Clinical Medicine 10, no. 10: 2172. https://doi.org/10.3390/jcm10102172

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