Skip to main content

Machine learning-based models for predicting mortality and acute kidney injury in critical pulmonary embolism

Abstract

Objectives

We aimed to use machine learning (ML) algorithms to risk stratify the prognosis of critical pulmonary embolism (PE).

Material and methods

In total, 1229 patients were obtained from MIMIC-IV database. Main outcomes were set as all-cause mortality within 30 days. Logistic regression (LR) and simplified eXtreme gradient boosting (XGBoost) were applied for model constructions. We chose the final models based on their matching degree with data. To simplify the model and increase its usefulness, finally simplified models were built based on the most important 8 variables. Discrimination and calibration were exploited to evaluate the prediction ability. We stratified the risk groups based on risk estimate deciles.

Results

The simplified XGB model performed better in model discrimination, which AUC were 0.82 (95% CI: 0.78–0.87) in the validation cohort, compared with the AUC of simplified LR model (0.75 [95% CI: 0.69—0.80]). And XGB performed better than sPESI in the validation cohort. A new risk-classification based on XGB could accurately predict low-risk of mortality, and had high consistency with acknowledged risk scores.

Conclusions

ML models can accurately predict the 30-day mortality of critical PE patients, which could further be used to reduce the burden of ICU stay, decrease the mortality and improve the quality of life for critical PE patients.

Peer Review reports

Introduction

Pulmonary embolism (PE) is a clinical manifestation of venous thromboembolism (VTE) and is the third most common cause of cardiovascular death worldwide after stroke and heart attack [1]. In the United States, PE killed 300,000 people per year [2]. PE is usually caused by deep vein thrombosis (DVT) of the lower extremity. And the clinical manifestations can vary from asymptomatic to fatal [3]. Although there are a number of auxiliary examinations (such as computed tomography pulmonary angiogram [CTPA], echocardiography, etc.) that can help us identify the serious condition, their effects do not seem to be obvious [4]. Thus, sorting out the patients with acute PE remains a big challenge. There are currently clear relevant studies on the risk grading of PE, including the European Society of Cardiology (ESC), Australia and New Zealand Risk of Death (ANZROD), simplified pulmonary embolism severity index (sPESI), pulmonary embolism severity index (PESI) and so on [5,6,7,8,9]. However, whether these scores could also be applied in intensive care unit (ICU) still remains unknown. ICU is the best place to monitor and support critical-ill PE patients [10] but there is no relevant definition of disease heterogeneity in PE patients in ICU and no clear guidelines to recommend how we should manage them individually. As a result, it is difficult for physicians in ICU to grade risk of patients.

Critical-ill PE patients are usually characterized by adverse complications (such as acute kidney injury [AKI], predominantly malignancy, etc.), requirement of mechanical ventilation (MV), trend of hemodynamic instability, and high mortality [11,12,13,14]. Although the pathophysiology is not well understood, PE has been proved to be a unique cause of AKI [14]. We supposed that some prediction methods can be used to stratify risk of PE patients, by which we can identify low-risk patients and allow them to discharge from ICU early. For high-risk patients, we should not only prevent death, but also prevent the occurrence of AKI. In this way, we can not only reduce the resource burden of ICU for healthcare centers and the unnecessary burden of ICU stay for patients, but also manage patients with critical PE more effectively and improve their survival rate and quality of lives [12].

Machine learning (ML) algorithms, which uses computers to learn data and capture high-dimensional, non-linear relationships between clinical features to make data-driven outcome predictions, has been widely accepted in the medical field [15, 16]. We used ML to construct models to predict the outcomes of in-ICU death, in-Hospital death, and AKI in patients with critical PE. The data was obtained from Medical Information Mart for Intensive Care IV (MIMIC-IV version 1.0) database [17]. The models included logistic regression (LR), simplified eXtreme gradient boosting (XGBoost) [18]. We selected the final model after comparing their matching degree and prediction ability with the data.

Material and methods

Patients and materials

The data we used to developed and validated the model was derived from the MIMIC-IV database from 2008 to 2019 and 1229 patients were included, of whom 860 patients (70%) were assigned into the derivation cohort and 369 (30%) were assigned into the validation cohort. MIMIC-IV database is a large, freely-available ICU database involving clinical data in Beth Israel Deaconess Medical Center, which extracts patient data from hospitals and ICU, corresponds it to medical record numbers, then reorganizes the data, simplifies the database, and performs patient identification with high accuracy and simplicity [17]. International classification of diseases (ICD)-9 or -10 version diagnostic code was used to define the patients’ disease condition in MIMIC-IV database. Critical PE patients with/without septic or other cardiopulmonary complications were all included in this analysis, which was diagnosed based on ICD-9 codes of 41,511, 41,512, ICD-10 codes of I26, I260, I2601, I2609, I269, I2690, I2693 and I2699. The diagnosis and clinical treatment flow could be referred to the 2019 ESC guideline for the diagnosis and management of critical PE. CTPA with clinical manifestation including dyspnea, chest pain, presyncope or hemoptysis was the golden diagnoses criterion. For risk stratification, sPESI, 2019 ESC PE risk stratification model, simplified acute physiology score II (SAPSII) and sequential organ failure assessment (SOFA) were used to evaluate the risk for every patient. For ESC model, hemodynamic decompensation included cardiac arrest or need for cardiopulmonary resuscitation, obstructive shock (including systolic blood pressure [SBP] < 90 mmHg or vasopressors required, and end-organ hypoperfusion) and persistent hypotension (including SBP < 90 mmHg or SBP drop > 40 mmHg, lasting longer than 15 min and not caused by new-onset arrhythmia, hypovolemia, or sepsis). The exclusion criteria included age < 18, not first ICU admission or hospital admission, and not emergence admission (elective admission and observation admission were excluded).

Clinical treatment

For critical PE patients, treatment included hemodynamic and respiratory support, initial anticoagulation, reperfusion treatment, vena cava filters, etc. Oxygen therapy was indicated in patients with SpO2 < 90%. High-flow oxygen and mechanical ventilation (non-invasive or invasive) were used in a worse situation. In cardiac arrest presumably caused by acute PE, current guidelines for advanced life support should be followed. In the acute phase of high-risk PE, systemic thrombolytic therapy and immediate anticoagulation with unfractionated heparin (UFH) were recommended. Vasopressor was also an important treatment in hemodynamic decompensation especially congestive heart failure or cardiogenic shock and it included using dobutamine, dopamine, epinephrine, norepinephrine, phenylephrine or milrinone here. When thrombolysis was contraindicated or failed, surgical pulmonary embolectomy or percutaneous catheter-directed treatment was recommended. Anticoagulation should be initiated immediately in patients with a high or intermediate clinical probability of PE. Inferior vena cava (IVC) filters should be considered in patients with acute PE, who had absolute contraindications to anticoagulation or in cases of PE recurrence despite therapeutic anticoagulation.

Outcomes and variables definition

From MIMIC-IV database, we obtained general information, laboratory test, vital signs, complications, treatment information and severity scores. Laboratory results were all tested within 24 h after ICU admission, including cardiac markers, hematological parameters, biochemical markers and coagulative markers. Vital signs included blood pressure, heart rate, respiratory rate, SpO2 and temperature tested within 24 h after ICU admission. For treatment information, oxygen therapy included high flow nasal cannula oxygen inhalation and mechanical ventilation (non-invasive or invasive). Urine output was the total volume within the 24 h after ICU admission. The invasive line included both arterial and venous catheter (also included dialysis catheters).

Primary outcomes were set as all-cause mortality within 30 days. AKI was defined based on Kidney Disease Improving Global Outcomes (KDIGO) and was determined by serum creatinine (SCr) and urine output (reduced urine output [urine volume < 0.5 mL/kg/h for ≥ 6 h] and increased SCr level [an increase in SCr of ≥ 0.3 mg/dL within 48 h or an increase in SCr to ≥ 1.5 times baseline within 7 days]).

Imputation of missing value

Only variables with missing value proportion less than 20% were put into constructing prediction models by ML algorithms (Supplementary Table 1). R package “MICE” was used to impute the missing value, based on the complete conditional specification and predictive mean matching method. Each missing variable was imputed using an independent model to ensure the validity. To ensure the authenticity of the risk prediction sores, sPESI, ESC model, SAPSII and SOFA scores were not imputed. The missing outcomes were also not imputed.

Feature selection and model development

Four general baseline variables included gender, age, proximal DVT and VTE history. Maximum and minimum of 15 laboratory variables (hematocrit, hemoglobin, anion gap, e.g.) within 24 h after ICU admission, maximum and minimum of 8 vital signs (heart rate, blood pressure, respiratory rate, e.g.) within 24 h after ICU admission, 22 variables of complications (congestive heart failure, hypertension, atrial fibrillation, e.g.), risk status of hemodynamic instability (including one treatment variable of vasopressor use) and 3 supporting treatment variables included ventilation, urine output and invasive line, were used for feature selection, model development and prediction for the main outcome (More details are shown in Supplementary Table 1).

In order to balance the number of positive and negative examples in the derivation cohort to overcome overfitting, the synthetic minority over-sampling technique (SMOTE) was applied to synthesize new samples and add them to the derivation cohort. Then, zero-mean normalization of continuous variables was conducted to reduce the relevant impact of non-normality on the model performance.

XGBoost has been regarded to perform well in predicting binary classification of outcome, while LR has high interpretability by weighting of the features of models [19, 20]. Considering that primary outcome is binary, ML algorithms comprising XGB and LR were implemented for model constructions, and ROC curve was also constructed to evaluate the discrimination of our models. And we then used the grid search method to optimize the hyperparameters. The relative importance of clinical variables in each model was determined based on the effect on outcomes, which was then ranked and shown as radar plots. After building full-variables models, 8 relatively more important variables were chosen to build simplified models for further clinical use.

Evaluation and validation of the model

The most important indicators to evaluate the prediction performance were discrimination and calibration, which were usually based on AUC and calibration curves. Firstly, the derivation cohort was separated into the training cohort and internal validation cohort to conduct tenfold cross validation to investigate the stability. Then the models were validated in the validation cohort to evaluate the generalization. After calculating the best cut-off value based on receiver operator curve (ROC) and Youden index, ML indicators involving F scores, precision recall, false accept rate (FAR), positive prediction value, negative prediction value, accuracy, sensitivity and specificity were calculated. sPESI was also externally validated. Net reclassification improvement (NRI) and integrated discrimination improvement (IDI) were used to compare our ML models to sPESI on the prediction performance. To characterize the crucial characteristics that affect mortality risk in ML model, we plotted bar graph consisting of average SHAP value for each feature.

Risk classification

Risk classification is not only for convenient use in clinical, but also an important part of the calibration. Patients in each dataset were divided into estimated risk deciles in accordance with predictive outputs of ML models. We then calculated the mean prediction probability and observed probability in each group, and observed the calibration result in each decile group. Patients were divided into low-, intermediate-, and high-risk groups based on thresholds that highlight significant gradients in risk from one relative lower risk group to the next higher group in risk deciles plots and the calibration plots. Finally, we compared the clinical outcomes and risk scores in each group to investigate whether the new risk classification systems could reflect real-world risk of critical PE patients. Furthermore, we performed decision curve analysis (DCA) on XGBoost model to determine whether the model can improve clinical decision making.

Statistical analysis

When comparing the baseline data and clinical outcomes in the derivation and validation cohorts, categorical variables were expressed as percentages, compared using chi-square tests, while continuous variables were presented by median with interquartile range (IQR) and compared using Kruskal–Wallis test. A two-sided P < 0.05 was defined statistically significant. Data imputation, cleaning and transforming were implemented in R (version 3.6.3). Variables selection, model constructions, performance evaluation and validation were carried out in Python (version 3.8.5). Data pre-processing and Logistic regression model development were conducted with scikit-learn library. XGBoost models were developed to select features and validate using xgboost package of Python. Shapley additive explanations (SHAP) values were calculated by the SHAP package of Python. SMOTE was conducted using imblearn package. The figures were drawn by matplotlib.pyplot library.

Ethics

The study was conducted in accordance with the Declaration of Helsinki, and approved by the Institutional Review Board (or Ethics Committee) of both Beth Israel Deaconess Medical Center and Massachusetts Institute of Technology Affiliates (protocol code 35,655,780 and 03-Mar-2020), Sun Yat-sen Memorial Hospital (SYSKY-2023–199-01). Requirement for patient consent was waived because this was a retrospective study and did not impact clinical practice.

Results

After our filtering, a total of 1229 patients from MIMIC-IV database were included in this study. There were 860 (70%) patients in the derivation cohort and 369 (30%) patients in the validation cohort. The derivation cohort was used to develop models with ML approaches including XGB, LR and conduct internal validation (tenfold cross validation). While the validation dataset was used to verify the efficiency and generalization of the models. When comparing baseline data in the derivation and validation cohorts, only age showed difference between them (P = 0.034, Table 1, Supplementary Table 1). The derivation cohort had older age. Male occupied 51% of the derivation cohort, and 48.5% of the validation cohort. Hemodynamic instability occupied 35.3% of the derivation cohort, and 34.3% of the validation cohort. 31.4% of the derivation cohort and 30.9% of the validation cohort received invasive mechanical ventilation. Variables included in model development are shown in Supplementary Table 1. To further ensure the balance between the derivation cohort and the validation cohort, survival curves of each group were drawn, and the results showed no difference in survival time between the two groups (Log rank P = 0.28, Supplementary Fig. 1).

Table 1 Baseline data and clinical outcomes for derivation and validation cohort

The relative importance in final model is shown in the radar plots (Supplementary Fig. 2). The top 8 important variables were chosen for building simplified models. As for XGB model, the top 8 important variables included international normalized ratio (INR, maximum and minimum), gender, sinus-tachycardia, creatinine (maximum), chronic pulmonary disease, renal disease, and history of VTE (Supplementary Fig. 2).

Building simplified models aimed to make convenience for clinical decisions, and we still found their good prediction ability in the validation cohort (Fig. 1). The simplified XGB model performed better in model discrimination, which AUC were 0.82 (95% CI: 0.78–0.87), compared with the AUC of simplified LR model (0.75 [95% CI: 0.69—0.80]), thus the simplified XGB model is considered to be more suitable for clinical application. The risk of outcomes in the validation cohort according to deciles of event probability based on simplified models is shown in Fig. 2. The observed probability tended to increase with the predicted probability. Compared with LR model, the XGB model had the smaller differences in observed probability and predicted probability in each decile group for predicting the all-cause mortality within 1 month (Fig. 2A, B). As an example of risk stratification, we divided the patients into three groups according to the predicted all-cause mortality using the XGB model. We set the first group as low-risk, which the prediction probability was lower than 20%, while second group as intermediate-risk (prediction probability of 20–40%) and high-risk group patients were set as with the prediction probability > 40%. The risk of outcomes in the derivation cohort according to deciles of event probability based on finally models are shown in Supplemental Fig. 3.

Fig. 1
figure 1

ROC curves based on ML models in derivation and validation cohort. The top 8 relative more important variables were chosen to build ML models. Receiver operating characteristic curves for primary outcomes (30-days mortality) based on XGBoost and LR models. AUC was presented as mean with 95% CI. Abbreviation: ROC, receiver operating characteristic curve; AUC, area under the curve; XGB, eXtreme gradient boosting; LR, logistic regression

Fig. 2
figure 2

Risk of outcome and calibration curve in validation cohort based on ML models. Risk of primary outcome according to deciles of event probability based on ML models in the validation cohort. A XGBoost model; B LR model. Calibration curve shows the mean predicted probability of outcome against the observed proportion of clinical outcomes. C XGBoost model; D LR model

In addition, we also plotted the calibration curve based on simplified models in the validation cohort (Fig. 2C, D). The calibration curve based on final models in derivation cohort is shown in Supplemental Fig. 4. When predicting 30-days mortality, we found that simplified ML models had overestimated the event probability. As a result, patients judged as low-risk by our ML models would have even more low risk of death than predicted and therefore be safe enough. We also summarized the performance metrics of our models in validation cohort, and the results showed that negative predictive value (NPV) was up to 0.904 (Table 2), which also indicates that the diagnosis of low-risk patients is reliable.

Table 2 Performance metrics for 8-variables models in predicting 30-days death in validation cohort

We found that the AUC of the simplified XGBoost model was higher in predicting main outcomes and had good stability. So we compared the prediction probability of all-cause mortality of the simplified XGBoost model with the sPESI score in the validation cohort. The NRI and IDI results of the simplified XGBoost model compared with sPESI in the validation cohort are shown in Table 3. The prediction efficiency of the simplified XGBoost models was higher than the sPESI in predicting primary outcomes (NRI (Categorical) and IDI > 0, P < 0.001). We then defined patients in the validation group of whom the simplified XGBoost prediction probability of 30-days death was lower than 20% as the Low-risk group. The intermediate-risk group was defined as prediction probability between 20 to 40%. And the rest were the high-risk group. The outcome in each risk group defined by simplified XGBoost prediction probability is shown in Table 4. Patients’ all-cause mortality within 30 days, in-ICU mortality, in-Hospital mortality, and AKI grades increased as risk levels increased (P < 0.001). This result had a common trend with ESC model, SOFA and SAPSII (P < 0.001). Likewise, ICU stay length increased with increased risk, however, there was no such trend in hospital stay length. Moreover, for patients in the low-risk group, the occurrence of AKI was mostly stage 1–2, while for patients in the high-risk group was mostly stage 3.

Table 3 NRI and IDI results of simplified XGB models compared with sPESI in validation cohort
Table 4 Outcome in each risk group defined by simplified XGB 30-days death prediction probability in validation cohort

To characterize the crucial characteristics that affect mortality risk in ML model, we plotted bar graph consisting of average SHAP value for each feature (Fig. 3). The results showed that the marginal contribution of sinus tachycardia, INR-max and INR-min to the XGBoost model were the highest, while blood urea nitrogen (minimum), age and systolic blood pressure (minimum) contributed more to the LR model.

Fig. 3
figure 3

Bar graph consisting of average SHAP value for each feature. The mean absolute Shapley values are measured as feature importance. A feature is considered to be “important” if its mean absolute Shapley value is high; a feature is considered to be “unimportant” if its mean absolute Shapley value is low or zero

Patients in the validation cohort were stratified based on the XGBoost model and plotted survival curves within one month for each group (Fig. 4A). The results showed that there were differences in survival between different groups (P < 0.001), and the short-term mortality of low-risk patients was much lower than that of intermediate and high-risk patients. After We had further performed decision curve analysis (DCA) on XGBoost model, patients using this model for risk stratification obtained more net benefit, with threshold set approximately between 0.1 and 0.6 (Fig. 4B).

Fig. 4
figure 4

Survival curves within 30 days for each group in validation cohort and decision curve analysis based on the XGBoost model. A Survival curves within 30 days for each group in validation cohort; B Decision curve analysis based of XGBoost model

Discussion

In this study, we used data from 1229 patients to develop and validate models with different ML algorithms. XGBoost was chosen to construct the finally model. After training and validation, we found that our finally model had good predictive power for the primary outcome. The simplified XGB model performed well in predicting death events within one month with a AUC of 0.82 (95% CI: 0.78–0.87). Based on risk deciles and calibration plots of ML models, patients were grouped into different risk levels and the new classification systems based on XGB could accurately predict low-risk of mortality, and had high consistency with acknowledged risk scores. Moreover, compared with sPESI, the prediction efficiency of the simplified XGBoost models was higher in predicting 30-days Death (NRI (Categorical) and IDI > 0, P < 0.001).

Many models have already been developed for the prognosis of PE. Massimo Cugno’s team used the 2014 ESC model to predict early mortality in PE patients [21]. Anthony J. Weekes et al. developed a tool named Pulmonary embolism short-term clinical outcomes risk estimation (PE-SCORE) to assess short-term clinical outcomes in patients with PE [22]. Recently, much more popular models are PESI, sPESI, Angriman, etc. Besides, there are many models that combine them [23,24,25]. However, no clear model has been especially built for risk and heterogeneity classification of critical PE patients who need ICU admission.

ML is the learning of data that captures high-dimensional, non-linear relationships between clinical features and makes predictions [15]. In ML, algorithms learn patterns from data without being explicitly programmed with pre-specified rules [26, 27]. Compared with traditional modeling methods, ML has much more advantages in processing real-world data, such as (i) ML can process high-dimensional, complex variables from clinical practice; (ii) ML has better generalization and accuracy [28]. ML has been widely recognized and applied in many fields of medicine in recent years. For example, ADB model has been used to predict adverse events in acute coronary syndromes [29], RF model was used for risk assessment of delayed graft function in kidney transplantation [30]. Based on the advantages of ML, we developed several different models to predict the prognosis of patients with critical PE. Our aim is to classify patients with PE. For high-risk patients, we should intervene as early as possible to prevent the occurrence of the worse outcomes, especially the occurrence of renal failure and death. As for low-risk patients, it is our responsibility to reduce their ICU stay length and make the precious medical resources in the ICU reasonably allocated. XGBoost, a decision-tree-based algorithm, can automatically learn the splitting direction for its missing data. The underlying tree structure of XGB is the Classification and Regression Tree (CART). This is a parameter-based algorithm that is used to train the model after dividing the dataset. Because of its high precision, flexibility and regularization, it is widely used in the field of medical research [31]. LR is a ML method used to solve a binary classification problem for estimating the likelihood of something. We can see the impact of different features on the final outcome by the weight of the features, therefore the interpretability of LR is high [19, 32].

The 8 factors that have the greatest impact on the outcome based on different algorithms for each model are presented as radar graphs. INR (maximum and minimum), gender, as well as sinus-tachycardia had the greatest impact on the prognosis of patients in XGBoost model. Anticoagulation therapy has long been considered the cornerstone of treatment for PE, patients should receive anticoagulant therapy regardless of risk stratification [6]. Insufficient anticoagulant dose and time are associated with poor prognosis, while excessive anticoagulant will increase the risk of bleeding and affect the prognosis of patient [6, 33]. The rise or fall of INR reflects insufficient or excessive anticoagulation for PE, thus predicting the patient's prognosis. Male sex and tachycardia have been proven as an important prognostic indicator of pulmonary embolism and has been included in previous prognostic scoring systems, such as PESI, which is consistent with the included predictive factors in our model [5, 25]. A rise in serum creatinine always indicates the occurrence of AKI, previous studies show that patients with critical PE are more likely to develop AKI [34, 35]. Mechanisms that may cause AKI in PE include the renal hypoperfusion, comorbidities of critical PE patients as well as respiratory failure and anemia caused by PE [35, 36]. Factors such as chronic pulmonary disease, renal disease, and history of VTE are also important factors contributing to increased patient mortality [35, 37]. Patients with renal disease were more likely to develop AKI, while the hazard ratio increased to 1.8 (95% CI: 1.2–2.7) for PE patients with chronic lung disease [38]. Therefore, we should not only concentrate on the treatment of thrombosis, but also pay attention to the underlying diseases of patients and improve the function of various organs, so as to improve the prognosis. Although the variables screened by each model are not the same as the clinical risk factors, they still have certain guiding significance for our judgment of the patient's condition [37]. In addition, hemoglobin levels and anemia have been shown to be associated with all-cause death, recurrent, and major bleeding in patients with acute coronary syndromes (ACS), which are considered an important prognostic factor and are included in the existing prognostic model of ACS, but were not included in our model [39, 40]. This may be because the main cause of death in PE is hemodynamic deterioration or respiratory failure, rather than bleeding.

To further test the validity of the model, we calculated NRI for the three primary outcomes compared with sPESI score using XGBoost model. We can see that the accuracy of the simplified XGBoost models improved with different cutoff values (NRI (Categorical) > 1, P < 0.001). At the same time, we calculated IDI to investigate the overall improvement of the simplified XGBoost model. The results also showed that our model was overall better than sPESI score (IDI > 1, P < 0.001). We entered baseline data, vital signs, and laboratory data from patients within 24 h, complications, treatment information and severity scores after admission into a simplified XGB model for analysis. According to the analysis results, the prognosis of patients could be stratified. We divided patients into the low-risk group, intermediate-risk group, and high-risk group using predicted probabilities of 20% and 40% as cut-off points. We could see that mortality was higher in patients within higher risk groups, whether 30-days Death, in-ICU death or in-Hospital death. Notably, the 30-day mortality rate in the low-risk group was 9.0%, with the In-ICU mortality was 4.8%, significantly lower than in the intermediate-risk group and high-risk group, and patients in the low-risk group had significantly lower occurrence than those in the other two groups in incidence of renal failure, or grade of renal failure. While no significant difference in the 30-day mortality rate (42.3%, 53.8%) and AKI incidence (84.6%, 84.6%) between the intermediate-risk group and the high-risk group. Thus, patients identified as low risk by the model are safe enough, and should be considered for transfer out of the ICU for further treatment, while intermediate-risk patients should continue to be monitored in the ICU. Similarly, the negative predictive value of our model is as high as 0.904 (Table 2), which also confirms low-risk patients are safe enough.

To the best of our knowledge, this study is the first to use the ML algorithm to develop models for predicting the prognosis of patients with critical PE. And our models have better predictive ability than the other models or scores. Moreover, our model can also stratify the risk of AKI in PE patients, which previous models cannot do. When our models are refined, triage for critical PE patients in ICU can be improved clinically. Reasonable allocation of ICU resources can effectively improve patient outcomes, survival length and quality of life.

The Management Strategy and Prognosis of Pulmonary Embolism Registry (MAPPET) registry reported that an overall mortality rate of 1001 patients with PE is 29% [41]. While in our cohort used to build models, the 30-days mortality was about 16.2%. This may be the reflection of medical progress. Advanced examination equipments, assessment systems and treatment levels significantly reduce mortality of PE patinets. However, the mortality is still high. High-efficiency assessment systems are needed. We used ML to predict the prognosis of critical PE in order to explore a new assessment system. A good assessment system can identify high-risk patients and allow us to intervene promptly and improve prognosis. It can also help us identify low-risk patients and allow patients to discharge early so as to avoid wasting ICU resources. Thus, reasonable risk grading is beneficial to triage, so that we can reasonably allocate medical resources and save more life.

However, this study has limitations. Firstly, this is a retrospective study based on the MIMIC-IV database. The MIMIC-IV database is not used specifically for modeling, some important indicators related to PE are not completely collected at the time of data collection. Such as recent surgery, D-dimer and so on [37]. We hope to add these well-established risk factors to refine our model in future studies. Perhaps the database of special diseases in different hospitals can help us solve this problem. Secondly, although our model performed well in prediction. ROC curves of XGBoost model performed well for the primary outcomes. Our modeling still requires external validation from multiple different centers to revise our model and improve its generalizability. Third, our models have black-box problems, which make the model interpretability and transparency limited. The black-box problem is also a major problem that limits the practical application of ML in clinical practice, so improving the interpretability of the model is the key to this problem [42]. We should also actively explore new models to enhance interpretability and thus better apply ML in clinical practice.

Conclusion

In this study, we used ML algorithms to develop and validate models for predicting 30-Days mortality of AKI for critical PE admitted to ICU. ML models helped accurately predict the occurrence of 30-Days mortality, which could further be used to reduce the burden of ICU stay and decrease the mortality, increase the quality of patients’ life in the clinic.

Availability of data and materials

The data that support the findings of this study are available from https://mimic.mit.edu/, but restrictions apply to the availability of these data, which were used under license for the current study, and so are not publicly available. Data are however available from the Kai Huang upon reasonable request and with permission of Medical Information Mart for Intensive Care.

Abbreviations

BMI:

Body mass index

DVT:

Deep vein thrombosis

VTE:

Venous thromboembolism

sPESI:

Simplified pulmonary embolism severity index

ESC:

European society of cardiology

SAPSII:

Simplified acute physiology score II

SOFA:

Sequential organ failure assessment

ICU:

Intensive care unit

AKI:

Acute kidney injury

NRI:

Net reclassification improvement

IDI:

Integrated discrimination improvement

XGB:

EXtreme gradient boosting

ROC:

Receiver operating characteristic curve

AUC:

Area under the curve

RF:

Random forest

MLP:

Multilayer perceptron

ADB:

Adaptive boosting

LR:

Logistic regression

ML:

Machine learning

XGB:

EXtreme gradient boosting

MLP:

Multilayer perceptron

MLP:

Multilayer perceptron

References

  1. Raskob GE, Angchaisuksiri P, Blanco AN, Buller H, Gallus A, Hunt BJ, et al. Thrombosis: a major contributor to global disease burden. Arterioscler Thromb Vasc Biol. 2014. 34(11):2363–71.

  2. Wendelboe AM, Raskob GE. Global burden of thrombosis: epidemiologic aspects. Circ Res. 2016;118(9):1340–7.

    Article  CAS  PubMed  Google Scholar 

  3. Schulman S, Lindmarker P, Holmström M, Lärfars G, Carlsson A, Nicol P, et al. Post-thrombotic syndrome, recurrence, and death 10 years after the first episode of venous thromboembolism treated with warfarin for 6 weeks or 6 months. J Thromb Haemost. 2006;4(4):734–42.

    Article  CAS  PubMed  Google Scholar 

  4. Stein PD, Matta F, Janjua M, Yaekoub AY, Jaweesh F, Alrifai A. Outcome in stable patients with acute pulmonary embolism who had right ventricular enlargement and/or elevated levels of troponin I. Am J Cardiol. 2010;106(4):558–63.

    Article  CAS  PubMed  Google Scholar 

  5. Jiménez D, Aujesky D, Moores L, Gómez V, Lobo JL, Uresandi F, et al. Simplification of the pulmonary embolism severity index for prognostication in patients with acute symptomatic pulmonary embolism. Arch Intern Med. 2010;170(15):1383–9.

    Article  PubMed  Google Scholar 

  6. Konstantinides SV, Meyer G, Becattini C, Bueno H, Geersing GJ, Harjola VP, et al. 2019 ESC Guidelines for the diagnosis and management of acute pulmonary embolism developed in collaboration with the European Respiratory Society (ERS). Eur Heart J. 2020;41(4):543–603.

    Article  PubMed  Google Scholar 

  7. Paul E, Bailey M, Kasza J, Pilcher D. The ANZROD model: better benchmarking of ICU outcomes and detection of outliers. Crit Care Resusc. 2016;18(1):25–36.

    PubMed  Google Scholar 

  8. Pilcher D, Paul E, Bailey M, Huckson S. The Australian and New Zealand Risk of Death (ANZROD) model: getting mortality prediction right for intensive care units. Crit Care Resusc. 2014;16(1):3–4.

    PubMed  Google Scholar 

  9. Hariharan P, Takayesu JK, Kabrhel C. Association between the Pulmonary Embolism Severity Index (PESI) and short-term clinical deterioration. Thromb Haemost. 2011;105(4):706–11.

    Article  CAS  PubMed  Google Scholar 

  10. Baram M, Awsare B, Merli G. Pulmonary embolism in intensive care unit. Crit Care Clin. 2020;36(3):427–35.

    Article  PubMed  Google Scholar 

  11. Khemasuwan D, Yingchoncharoen T, Tunsupon P, Kusunose K, Moghekar A, Klein A, et al. Right ventricular echocardiographic parameters are associated with mortality after acute pulmonary embolism. J Am Soc Echocardiogr. 2015;28(3):355–62.

    Article  PubMed  Google Scholar 

  12. Winterton D, Bailey M, Pilcher D, Landoni G, Bellomo R. Characteristics, incidence and outcome of patients admitted to intensive care because of pulmonary embolism. Respirology. 2017;22(2):329–37.

    Article  PubMed  Google Scholar 

  13. Proud KC. Pulmonary embolism requiring intensive care: Do we now have a better idea of how to triage? Respirology. 2017;22(2):213–4.

    Article  PubMed  Google Scholar 

  14. Murgier M, Bertoletti L, Darmon M, Zeni F, Valle R, Del Toro J, et al. Frequency and prognostic impact of acute kidney injury in patients with acute pulmonary embolism. Data from the RIETE registry. Int J Cardiol. 2019;291:121–6.

    Article  PubMed  Google Scholar 

  15. Schwalbe N, Wahl B. Artificial intelligence and the future of global health. Lancet. 2020;395(10236):1579–86.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  16. Rajkomar A, Dean J, Kohane I. Machine Learning in Medicine. N Engl J Med. 2019;380(14):1347–58.

    Article  PubMed  Google Scholar 

  17. Johnson A, Bulgarelli L, Pollard T, Horng S, Celi LA, Mark R. MIMIC-IV (version 1.0). , in PhysioNet. 2021.

    Google Scholar 

  18. John GH GH, Langley PJMK. Estimating Continuous Distributions in Bayesian Classifiers. 2013.

    Google Scholar 

  19. Harris JK. Primer on binary logistic regression. Family medicine and community health. 2021;9(Suppl 1).

  20. ChenT, Guestrin C. XGBoost: a scalable tree boosting system. ACM; 2016.

  21. Cugno M, Depetri F, Gnocchi L, Porro F, Bucciarelli P. Validation of the predictive model of the European society of cardiology for early mortality in acute pulmonary embolism. TH Open. 2018;2(3):e265–71.

    Article  PubMed  PubMed Central  Google Scholar 

  22. Weekes AJ, Raper JD, Lupez K, Thomas AM, Cox CA, Esener D, et al. Development and validation of a prognostic tool: Pulmonary embolism short-term clinical outcomes risk estimation (PE-SCORE). PLoS One. 2021;16(11):e0260036.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  23. Jen WY, Jeon YS, Kojodjojo P, Lee EHE, Lee YH, Ren YP, et al. A New model for risk stratification of patients with acute pulmonary embolism. Clin Appl Thromb Hemost. 2018;24(9):277–84.

    Article  Google Scholar 

  24. Elias A, Mallett S, Daoud-Elias M, Poggi JN, Clarke M. Prognostic models in acute pulmonary embolism: a systematic review and meta-analysis. BMJ Open. 2016;6(4):e010324.

    Article  PubMed  PubMed Central  Google Scholar 

  25. Aujesky D, Obrosky DS, Stone RA, Auble TE, Perrier A, Cornuz J, et al. Derivation and validation of a prognostic model for pulmonary embolism. Am J Respir Crit Care Med. 2005;172(8):1041–6.

    Article  PubMed  PubMed Central  Google Scholar 

  26. Jordan MI, Mitchell TM. Machine learning: trends, perspectives, and prospects. Science. 2015;349(6245):255–60.

    Article  CAS  PubMed  Google Scholar 

  27. Scott IA. Machine learning and evidence-based medicine. Ann Intern Med. 2018;169(1):44–6.

    Article  PubMed  Google Scholar 

  28. Kruppa J, Ziegler A, König IR. Risk estimation and risk prediction using machine-learning methods. Hum Genet. 2012;131(10):1639–54.

    Article  PubMed  PubMed Central  Google Scholar 

  29. D’Ascenzo F, De Filippo O, Gallone G, Mittone G, Deriu MA, Iannaccone M, et al. Machine learning-based prediction of adverse events following an acute coronary syndrome (PRAISE): a modelling study of pooled datasets. Lancet. 2021;397(10270):199–207.

    Article  PubMed  Google Scholar 

  30. Konieczny A, Stojanowski J, Rydzyńska K, Kusztal M, Krajewska M. Artificial intelligence-a tool for risk assessment of delayed-graft function in kidney transplant. J Clin Med. 2021;10(22).

  31. Sun X, Xu Z, Feng Y, Yang Q, Xie Y, Wang D, et al. RBC Inventory-Management System Based on XGBoost Model. Indian J Hematol Blood Transfus. 2021;37(1):126–33.

    Article  PubMed  Google Scholar 

  32. Stoltzfus JC. Logistic regression: a brief primer. Acad Emerg Med. 2011;18(10):1099–104.

    Article  PubMed  Google Scholar 

  33. Becattini C, Agnelli G. Acute treatment of venous thromboembolism. Blood. 2020;135(5):305–16.

    Article  PubMed  Google Scholar 

  34. Chou DW, Wu SL, Chung KM, Han SC, Cheung BM. Septic Pulmonary Embolism Requiring Critical Care: Clinicoradiological Spectrum Causative Pathogens and Outcomes. Clinics (Sao Paulo). 2016;71(10):562–9.

    Article  PubMed  Google Scholar 

  35. Alhassan AM, Aldayel A, Alharbi A, Farooqui M, Alhelal MH, Alhusain F, et al. Acute kidney injury in patients with suspected pulmonary embolism: a retrospective study of the incidence, risk factors, and outcomes in a tertiary care hospital in Saudi Arabia. Cureus. 2022;14(1):e21198.

    PubMed  PubMed Central  Google Scholar 

  36. Chang CH, Fu CM, Fan PC, Chen SW, Chang SW, Mao CT, et al. Acute kidney injury in patients with pulmonary embolism: a population-based cohort study. Medicine (Baltimore). 2017;96(9):e5822.

    Article  PubMed  Google Scholar 

  37. Doherty S. Pulmonary embolism an update. Aust Fam Physician. 2017;46(11):816–20.

    PubMed  Google Scholar 

  38. Goldhaber S, Visani L, De Rosa M. Acute pulmonary embolism: clinical outcomes in the International Cooperative Pulmonary Embolism Registry (ICOPER). Lancet (London, England). 1999;353(9162):1386–9.

    Article  CAS  PubMed  Google Scholar 

  39. Leonardi S, Gragnano F, Carrara G, Gargiulo G, Frigoli E, Vranckx P, et al. Prognostic implications of declining hemoglobin content in patients hospitalized with acute coronary syndromes. J Am Coll Cardiol. 2021;77(4):375–88.

    Article  CAS  PubMed  Google Scholar 

  40. D’Ascenzo F, De Filippo O, Gallone G, Mittone G, Deriu M, Iannaccone M, et al. Machine learning-based prediction of adverse events following an acute coronary syndrome (PRAISE): a modelling study of pooled datasets. Lancet (London, England). 2021;397(10270):199–207.

    Article  PubMed  Google Scholar 

  41. Kasper W, Konstantinides S, Geibel A, Olschewski M, Heinrich F, Grosser KD, et al. Management strategies and determinants of outcome in acute major pulmonary embolism: results of a multicenter registry. J Am Coll Cardiol. 1997;30(5):1165–71.

    Article  CAS  PubMed  Google Scholar 

  42. Topol EJ. High-performance medicine: the convergence of human and artificial intelligence. Nat Med. 2019;25(1):44–56.

    Article  CAS  PubMed  Google Scholar 

Download references

Acknowledgements

Nothing.

Funding

This work was supported by National Natural Science Foundation of China (No.81800420, No.82003151).

Author information

Authors and Affiliations

Authors

Contributions

Kai Huang, Shaoxu Wu and Geng Wang designed the study. Jiatang Xu, Xixia Lin and Xiong Chen collected the data. Geng Wang, Jiatang Xu, Xixia Lin, Chen Yao and Lin Lv analysed the data. Xixia Lin, Weijie Lai and Yao Chen were responsible for drafting the article or revising it critically for important intellectual content. All authors wrote the manuscript and approved the final manuscript.

Corresponding authors

Correspondence to Shaoxu Wu or Kai Huang.

Ethics declarations

Ethics approval and consent to participate

All methods were carried out in accordance with the declaration of Helsinki. This study involves human participants and was approved by ethics committee of Sun Yat-sen Memorial Hospital (ethics ID: SYSKY-2023–199-01). Because of the retrospective nature of this study, written inform consent was waived by Ethics Committee of Sun Yat-sen Memorial Hospital.

Consent for publication

Not applicable.

Competing interests

The authors declare no competing interests.

Additional information

Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary Information

Additional file 1: Supplementary Table 1.

Variables used for selecting and model fitting. Supplemental Figure 1. Survival Curves in derivation and validation cohort. Supplemental Figure 2. Radar plot for 30-days mortality. Supplemental Figure 3. Risk of outcome in derivation cohort according to deciles of event probability based on Top 8 variables models. Supplemental Figure 4. Calibration curve based on Top 8 variables models in derivation cohort.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated in a credit line to the data.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Wang, G., Xu, J., Lin, X. et al. Machine learning-based models for predicting mortality and acute kidney injury in critical pulmonary embolism. BMC Cardiovasc Disord 23, 385 (2023). https://doi.org/10.1186/s12872-023-03363-z

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s12872-023-03363-z

Keywords