Background

High-flow nasal cannula (HFNC) treatment can offer continuously higher gas flow with better heat and humidity than conventional oxygen [1]. It is also popular because of its easy application and good tolerability [2]. Several high-quality studies have shown that the treatment effect of HFNC on patients with hypoxemia or patients after surgery is not inferior to that of noninvasive ventilation (NIV) [3, 4]. However, both the indications for HFNC after early extubation in hypoxemic patients and the timing of reintubation when HFNC fails are unclear [5].

This retrospective study was designed based on the Medical Information Mart for Intensive Care IV (MIMIC-IV) database to investigate the indications for HFNC for patients with hypoxemia during ventilator weaning. A machine learning algorithm was used to explore the predictors of reintubation in these patients.

Methods

Patients

The patients were identified in the MIMIC-IV database from 2008 to 2019. The inclusion criteria were as follows: hypoxemia 4 h before extubation (100 < PaO2/FiO2 ≤ 300 mmHg); over 18 years old; with or without hypercapnia; and received continuous or intermittent HFNC or NIV after extubation. The exclusion criteria were as follows: tracheotomy; accidental extubation; and received both HFNC and NIV after extubation.

Source of data and ethics approval

This retrospective study was conducted based on a large critical care database named Medical Information Mart for Intensive Care IV [6]. This database is an updated version of MIMIC-III with pre-existing institutional review board approval. A number of improvements have been made, including simplifying the structure, adding new data elements, and improving the usability of previous data elements. Currently, the MIMIC-IV contains comprehensive and high-quality data of patients admitted to intensive care units (ICUs) at the Beth Israel Deaconess Medical Center between 2008 and 2019 (inclusive). One author (QZ) obtained access to the database and was responsible for data extraction.

Study design

The treatment group received continuous or intermittent HFNC after extubation, and the control group received continuous or intermittent NIV after extubation.

The following data were recorded: age, sex, body mass index (BMI), comorbidities, simplified acute physiology scoring II (SAPS-II) score at ICU admission, duration of mechanical ventilation, reintubation rate, mortality, length of ICU stay, length of hospital stay and duration before reintubation.

Physiological parameters and arterial blood gas (ABG) from 4 h before weaning to 48 h after extubation were collected. Average values for each patient per four hours were assessed, and the median value and interquartile ranges (IQRs) in the two groups were plotted. The 28-day mortality of patients who received reintubation within 48 h after extubation was compared with that of patients who received reintubation 48 h after extubation.

Statistical analysis

Variables with normal distributions are presented as the means (SD) and were compared with independent samples t tests. Nonnormally distributed variables are expressed as medians and IQRs, which were compared with the Mann–Whitney U test. Categorical variables are described as percentages and were compared by using a chi-square test. A Kaplan–Meier curve was drawn to evaluate the time from extubation to reintubation, and a log-rank test was used to compare the differences in times between the two groups.

Above risk factors for reintubation were included for propensity score matching (PSM): age, gender, BMI, SAPS-II, comorbidities, heart rate, respiratory rate, mean blood pressure, pH, PaO2, PaCO2, PaO2/FiO2, SpO2 and ventilation duration before extubation. Multivariate Imputation by Chained Equations was used to impute missing values, followed by the development of a multivariate logistic regression model to estimate the patient’s propensity scores for HFNC treatment [7]. One-to-one nearest neighbour matching with a caliper width of 0.1 was applied in the present study [8]. Statistical testing was performed to evaluate the effectiveness of PSM. The duration before reintubation, 28-day mortality, and 48-h and 28-day reintubation rates were compared based on matched data. Additionally, subgroup analyses were separately performed on patients with moderate and severe hypoxemia. PSM was applied to each subgroup, and outcomes were compared based on the matched data.

The risk factors for reintubation were analysed by a machine learning algorithm. The extreme gradient boosting (XGBoost) model [9], an advanced ensemble learning algorithm, was developed to predict 48-hour reintubation risk based on the baseline variables. Feature importance was assessed by using the SHapley Additive exPlanations (SHAP) values [10]. Features were sorted according to the mean value of absolute SHAP values. Then, predictors were developed manually based on the baseline values of most important features. The areas under the receiver operating characteristic curve (AUCs) of the predictors to predict 48-hour reintubation were calculated and compared with the rapid shallow breathing index (RSBI) and the ratio of SpO2/FiO2 to respiratory rate (ROX index).

All statistical analyses were performed with R (version 3.6.1), and p < 0.05 was considered statistically significant.

Results

Propensity score adjusted and matched outcomes

A total of 524520 medical records were screened, including 20165 patients with planned extubation. Finally, 801 patients with moderate and severe hypoxemia when mechanical ventilation weaning was included (100<PaO2/FiO2≤300 mmHg), and 358 patients received HFNC therapy after extubation in the treatment group. There were 233 patients remained in the treatment group with median oxygenation index 209[164,253] mmHg after PSM (Fig. 1). There were no significant differences in age, sex, BMI, SPAS-II score, comorbidities, duration of mechanical ventilation or physiological parameters before weaning between the 2 groups (all P>0.05).

Fig. 1
figure 1

Flow chart of the study

There were no significant differences in the 28-day reintubation rate (4.29% vs. 5.15%, P=0.827) or 28-day mortality (4.29% vs. 5.15%, P=0.827) between the two groups. The 48-hour reintubation rate in the treatment group was lower than that in the control group (8.58% vs. 15.88%, P=0.024).

There were 315 patients with severe hypoxemia (100<PaO2/FiO2≤200 mmHg) before extubation, and 190 patients remained in the treatment group with median oxygenation index 166[157,180] mmHg after PSM. There were no significant differences in the 48-hour reintubation rate, 28-day reintubation rate or 28-day mortality between the 2 groups (all P>0.05).

There were 486 patients with moderate hypoxemia (200<PaO2/FiO2≤300 mmHg) before extubation, and 304 patients remained in the treatment group with median oxygenation index 238[214,267] mmHg after PSM. There were no significant differences in the 48-hour reintubation rate, 28-day reintubation rate or 28-day mortality between the 2 groups (all P>0.05).

Both the length of stay in the ICU and in the hospital in the treatment group were longer than those in the control group (6.36 vs. 4.72 days, P<0.001 and 12.62 vs. 10.93 days, P=0.001). The duration before reintubation in the treatment group was longer than that in the control group (73.28 vs. 21.52 hours, P=0.001) (Table 1 and Fig. 2).

Table 1 The baseline data and prognosis of patients with hypoxemia of different severities in the two groups after PSM
Fig. 2
figure 2

Survival curve and cumulative reintubation curve of patients with different severities of hypoxemia after PSM. a Survival curve of patients with different severities of hypoxemia after PSM. b Cumulative reintubation curve of patients with different severities of hypoxemia after PSM

The 28-day mortality of patients with reintubation 48 hours after extubation was not higher than that within 48 hours in either the treatment group or the control group (23.08% vs. 10.00%, P=0.206 and 19.23% vs. 12.73%, P=0.509) (Table 2).

Table 2 The baseline data and prognosis of patients who received reintubation within 48 h of and 48 h after extubation in the two groups

Features and predictors of HFNC failure

The important features predicting weaning failure were PaO2, duration before extubation, heart rate, BMI, age, mean blood pressure, pH, SAPS-II, SpO2, tidal volume and respiratory rate (Fig. 3). Thus HR/PaO2 and HR/SpO2 were calculated manually based on the above important features. There was a significant difference of HR/SpO2 at 4 hours after extubation between patients weaning failed and successfully (1.00 vs. 0.92, P< 0.05), and no significant difference of ROX index at the same time (7.38 vs. 7.29, P>0.05). HR/SpO2 increased more than 10% compared to baseline data in patients with failed HFNC treatment at 24 hours after extubation (1.06 vs.0.93 , P< 0.05) while there was no significant change in the ROX index at the same time (6.54 vs. 8.61, P>0.05) (Table 3 and Fig. 4-5).

Fig. 3
figure 3

Important features of the machine learning XGBoost model in reintubation prediction

Table 3 Changes in physiological parameters in patients with successful or failed weaning in the HFNC treatment group
Fig. 4
figure 4

Changes in HR/PaO2, HR/SpO2 and the ROX index in patients who received reintubation within 48 h in the two groups. a HR/PaO2; b HR/SpO2; and c the ROX index

Fig. 5
figure 5

Values of HR/SpO2 and the ROX index at 4 and 24 h after extubation in two groups. a HR/SpO2; and b the ROX index

According to values at 4 hours before extubation, the AUCs of HR/PaO2 and HR/SpO2 were 0.640 and 0.618 for predicting 48-hour reintubation, respectively, which were larger than that of RSBI (AUC=0.541) and ROX index (AUC=0.551). According to values at 4 hours after extubation, the AUC of HR/SpO2 were 0.657 for predicting 48-hour reintubation, which were larger than that of ROX index (AUC=0.583). The specificity reached 93% when the cut-off point of HR/SpO2 was 1.20 at 4 hours after extubation (Table 4 and Fig. 6).

Table 4 Predicting power of HFNC failure by HR/PaO2, HR/SpO2, RSBI and the ROX index at 4 h before and after extubation
Fig. 6
figure 6

The ROC curves of HR/PaO2, HR/SpO2, the ROX index, and RSBI for 48-h reintubation prediction in the HFNC treatment group. a The ROC curves within 4 h before extubation; b the ROC curves within 4 h after extubation

Discussion

In our study, more than 500,000 medical records from 2008 to 2019 were selected from MIMIC-IV, and 801 patients with moderate to severe hypoxemia during mechanical ventilation weaning who received HFNC or NIV therapy were finally included. There were no significant differences in primary outcomes, including the 28-day reintubation rate and 28-day mortality, between the HFNC treatment group and the control group after PSM. Consistent results were confirmed in patients with moderate and severe hypoxemia. HFNCs can provide constant airflow and oxygen concentration with a small amount of positive end-expiratory pressure [11,12,13]. Therefore, the therapeutic effect of HFNC is better than that of conventional oxygen, including nasal catheters and facemasks [5, 14, 15]. Most research designs in recent years have been noninferior studies of HFNC and NIV, but the specific indication of hypoxemia is not clear. HFNC is noninferior to NIV for preventing postextubation respiratory failure in patients at high risk of reintubation or resolving acute respiratory failure in patients who receive cardiothoracic surgery. As the better tolerance with HFNC and a higher airway pressure delivered by NIV, combined treatment may be a better clinical option. Thille reported that the combined treatment could reduce the reintubation rate within 7 days compared to the use of HFNC alone [16]. In these studies, the mean oxygenation index of those patients with moderate hypoxemia was nearly 200 mmHg [3, 4]. Our study found that the effect of HFNC therapy was not inferior to that of NIV, even for severely hypoxemic patients with median oxygenation index of 170 mmHg.

The reintubation rate for ICU patients weaning from mechanical ventilation is approximately 10% [17], but it can reach 20% in patients at high risk when HFNC fails, and the timing of reintubation is mostly concentrated within 48 h after weaning [3, 4], which is consistent with our results. Therefore, patients who received reintubation within 48 h were regarded as having treatment failure in the HFNC treatment group, and we tried to predict reintubation within 48 h after extubation [18].

The longer length of ICU stay followed a longer duration before reintubation with the use of HFNC compared with NIV, which is in contrast to previous findings [5]. However, the mortality of patients who received reintubation within 48 h was not higher than that of patients who received reintubation 48 h after extubation in the HFNC group. In contrast to our findings, a previous study found that delayed intubation in patients with hypoxemia who received HFNC therapy might increase mortality [19]. The different results may be caused by different experimental designs and cohort sample sizes.

Although RSBI is routinely used as a clinical predictor of extubation failure, the threshold value for RSBI less than 105 had poor predictability for weaning success when measured at baseline during the spontaneous breathing trial, and it can be significantly affected by the level of ventilator support [20,21,22]. Moreover, the tidal volume is not routinely monitored after weaning. In patients with acute hypoxemic respiratory failure, the respiratory rate was a predictor of intubation under standard oxygen but not under high-flow nasal cannula oxygen or noninvasive ventilation [23]. Studies have shown that effective therapy for HFNC can decrease the work of breathing and reduce the respiratory rate of patients [24, 25]. Therefore, we think that the RSBI composed of tidal volume and respiratory rate is not a good predictor for reintubation with HFNC failure. ROX index is defined as the ratio of SpO2/FiO2 to respiratory rate [26], which needs further verification as a predictor of HFNC failure. At present, a simple and clear predictor for whether patients need early reintubation after weaning is still needed, and the timing of switching to invasive ventilator therapy is also not clear when HFNC fails [27, 28].

Respiratory work and oxygen consumption could be reduced with effective HFNC therapy. According to stroke volume × heart rate = cardiac output, heart rate decreased with cardiac output decreasing. And respiratory rate also decreased with less respiratory work. As feature importance was obtained by machine learning algorithm, we could infer that heart rate may be a more important and sensitive risk factor than respiratory rate. SpO2/FiO2 is a more accurate parameter to reflect oxygenation status than SpO2 according to basic physiology. But a predictor with two variables are obviously more simple and practical than the predictor with three variables. So we collected the two most important variables heart and SpO2 to form the predictor HR/SpO2 instead of the ratio of HR to SpO2/FiO2. Therefore, we propose to use HR/PaO2 or HR/SpO2 as predictors of reintubation.

As serial measurements of the RSBI and ROX index could more accurately predict successful weaning from mechanical ventilators [20, 29], we also observed the dynamic changes in these two indexes during extubation. The AUCs of HR/SpO2 according to values at 4 h before and after extubation to predict reintubation were larger than those of ROX index. The HR/SpO2 of patients with failed HFNC treatment was higher than that of patients with successful HFNC treatment within 4 h after weaning, but there was no significant difference of ROX index at the same time. Both HR/SpO2 and ROX index changed more than 10% compared to baseline data in patients with failed HFNC treatment at 24 h. The specificity of predicting HFNC treatment failure reached 93% when the threshold value of HR/SpO2 was 1.20 at 4 h after extubation, which was larger than that of ROX index. Therefore, HR/SpO2 may be a more sensitive and accurate predictor than ROX index for reintubation when HFNC treatment fails.

Limitations

Our study is a retrospective study based on the MIMIC-IV database. The daily time of HFNC and NIV treatment in the treatment group and the control group was not extracted, which would have an impact on the treatment effect. Although most of high risk factors for reintubation were included and matched in the propensity score, there were few high risk factors not included because data missed in this retrospective study. Although the sample size was not small and propensity score matching ensured low heterogeneity in the included patients, the results of this study need to be verified by multicentre, large-sample prospective studies.

Conclusions

The treatment effect of HFNC therapy is not inferior to that of NIV, even on patients with oxygenation index from 160 to 180 mmHg when weaning from ventilator. HR/SpO2 is more early and accurate in predicting HFNC failure than ROX index within 48 h after extubation.