- 1Department of Clinical Pharmacy, Shifang People’s Hospital, Shifang, Sichuan, China
- 2Department of Pharmacy, People’s Hospital of Zhongjiang County, Deyang, China
- 3Department of Pharmacy and Evidence-Based Pharmacy Center, West China Second University Hospital, Chengdu, China
- 4Key Laboratory of Birth Defects and Related Diseases of Women and Children (Sichuan University), Ministry of Education, Chengdu, Sichuan, China
Background: The aim of this study was to investigate the association of metformin use with the risk of in-hospital mortality and prognosis in acute respiratory failure (ARF) patients admitted to the intensive care unit (ICU).
Methods: We conducted a retrospective cohort study using the MIMIC-IV database. Patients were categorized into metformin and non-metformin groups based on medication exposure. Primary outcomes were in-hospital and ICU mortality, while 30-day and 90-day all-cause mortality served as secondary endpoints. We applied Kaplan–Meier survival curves, Cox proportional hazards models, and logistic regression to assess associations. Propensity score matching (PSM) and machine learning algorithms were used for confounder adjustment and feature selection.
Results: After PSM, 1,429 patients with ARF were included (374 metformin users; 1,055 non-users). Multivariate logistic regression revealed that metformin use was associated with significantly reduced in-hospital mortality (OR = 0.202, 95% CI: 0.123–0.317, p < 0.001) and ICU mortality (OR = 0.245, 95% CI: 0.142–0.399, p < 0.001). Cox models showed consistent reductions in 30-day (HR = 0.199, 95% CI: 0.124–0.320, p < 0.001) and 90-day (HR = 0.230, 95% CI: 0.150–0.352, p < 0.001) mortality. Kaplan–Meier curves confirmed better survival in the metformin group (p < 0.001). Subgroup analyses supported a consistent protective effect of metformin across most patient strata.
Conclusion: Metformin use was significantly associated with decreased short-term mortality among ICU patients with ARF. These findings suggest that metformin, beyond its glucose-lowering effects, may offer survival benefits in critically ill populations. Clinicians should consider the potential role of metformin when managing ICU patients with type 2 diabetes and ARF. Further prospective studies are warranted to confirm these findings and optimize clinical application strategies.
Introduction
Acute respiratory failure (ARF) is defined as acute and progressive hypoxemia in previously healthy patients due to a variety of cardiopulmonary or systemic diseases (Fujishima, 2023), and it is one of the most common and life-threatening complications among critically ill patients. A recent binational ICU study reported that over 50% of patients developed acute hypoxaemic respiratory failure within 24 h, with in-hospital mortality ranging from 8% in mild to 30% in severe cases (Ling et al., 2024). The pathogenesis of ARF is complex and may involve a variety of pathological processes such as immune dysregulation, inflammatory responses, oxidative stress, and metabolic disturbances (Lu et al., 2022; Wang et al., 2022). However, current treatments for ARF focus on supportive therapies and lack specific pharmacologic interventions (Fujishima et al., 2020).
Metformin is a classical drug widely used in the treatment of type 2 diabetes, which has the effects of lowering blood glucose and improving insulin sensitivity, while its anti-inflammatory, antioxidant, and immunomodulatory effects have received increasing attention in recent years (LaMoia and Shulman, 2021; Rena, Hardie, and Pearson, 2017). Studies have shown that metformin can inhibit the release of inflammatory factors, reduce oxidative stress, and protect organ function by activating the AMP-activated protein kinase (AMPK) signaling pathway (T. Liu et al., 2023; Bai and Chen, 2021; Lin et al., 2023). These properties make metformin an important candidate with therapeutic potential for critically ill patients.
Metformin treatment has been reported to be associated with reduced mortality from lower respiratory disease in diabetic patient (Mendy et al., 2019). Moreover, there is growing evidence that metformin reduces the production of pro-inflammatory factors in vitro and mitigates inflammatory harm in vivo (Kim and Choi, 2012; Yuan et al., 2012; Liu et al., 2017; Koh et al., 2014), and reduces all-cause mortality in patients with sepsis (Liang et al., 2019). However, there is still a lack of studies related to the use of metformin in patients with ARF and its impact on prognosis.
The primary objective of this study was to evaluate the association between metformin use and in-hospital and ICU mortality in critically ill patients with ARF. Secondary objectives included assessing 30-day and 90-day mortality following ICU admission, aiming to elucidate the potential impact of metformin on clinical outcomes in this patient population.
Methods
Study population and data source
This is a retrospective observational study. The Medical Information Mart for Intensive Care-IV (MIMIC-IV-3.0) is a publicly available database including more than 94,000 intensive care unit (ICU) admissions from the Beth Israel Deaconess Medical Center, spanning the years 2008–2022 (Johnson et al., 2023). The MIMIC-IV database has extensive information, including demographic data, vital signs, laboratory findings, and diagnoses. It is classified with the International Classification of Diseases, Ninth Edition (ICD-9) and Tenth Edition (ICD-10) codes. To access this database, one author (WW) obtained the necessary certification and subsequently extracted the relevant variables for our study (certification number: 13149633).
We included patients diagnosed with ARF upon admission in the MIMIC-IV database. The codes employed for data extraction were International Classification of Diseases ninth edition diagnostic codes (“51,851”, “51,881”) and 10th edition diagnostic codes (“J95821”, “J960”, “J9601”, “J9602”). The final enrollment of 15,613 patients with a diagnosis of ARF was divided into a metformin group (382 patients) and a non-metformin group (15,231 patients) (Figure 1). Patients were defined as metformin users if they received metformin at any point during their ICU stay, based on medication administration records in the MIMIC-IV database. Those without any record of ICU metformin use were classified as non-users. The follow-up period started at ICU admission, with endpoints defined according to the outcome measures. Patients were followed from ICU admission until hospital discharge or death. For secondary outcomes (30-day and 90-day mortality), follow-up ended at either the specified time point or death, whichever occurred first.

Figure 1. Flowchart of this study. Abbreviations: MIMIC, Medical Information Mart for Intensive Care; ICU, intensive care unit.
Data extraction
Baseline characteristics were retrieved from the MIMIC-IV database using Structured Query Language (SQL) in combination with PostgreSQL (version 9.6), encompassing age, gender, and severity at admission SOFA score, APSIII, SIRS score, and SAPSII, as well as comorbidities and laboratory variables recorded within 24 h of ICU admission. Coronary heart disease (CHD), heart failure, hypertension, myocardial infarction, hyperlipidemia (HLD), diabetes, acute kidney injury (AKI), chronic kidney disease (CKD), cancer (CA), chronic obstructive pulmonary disease (COPD), liver cirrhosis (LC), hepatitis (HEP), pneumonia (PNA), cerebrovascular accident (CVA), chronic bronchitis (CB), and ischemic heart disease (IHD) were defined with ICD-9 and ICD-10 codes.
Primary outcomes and secondary outcomes
The primary outcomes of this study were hospitalized all-cause mortality and ICU mortality, and the secondary outcomes were 30-day mortality and 90-day mortality after ICU admission.
Selection of features
Before examining the relationship between metformin administration and in-hospital mortality in patients with ARF, we first utilized machine learning methods for feature selection to determine their relevance in prognostic models. An essential technique in this context is the Boruta algorithm, a prevalent approach for feature selection. The algorithm’s core is founded on two concepts: “shaded features” and “binomial distributions.” Boruta creates a collection of feature replicas from the original dataset, referred to as shaded features. If a feature’s Z-score above the maximum Z-score of a shaded feature, it is deemed significant and retained; if not, it is discarded (Degenhardt et al., 2019). In addition, we used the Random Forest model for variable feature selection and the Shapley Additive Extension (SHAP) package to visualize variable importance (Lundberg et al., 2020). The SHAP package, implemented through the SHAP Python package (version 0.39.0), facilitates model interpretation to mitigate the inherent black-box nature of machine learning, thereby helping clinicians understand the results provided by the model (Nohara et al., 2022).
Statistical analysis
Continuous variables were summarized as mean ± standard deviation or median (IQR) and compared using Student’s t-test or Mann–Whitney U test where appropriate. Categorical variables were summarized as frequencies and percentages, with group differences evaluated using the Pearson chi-square test or Fisher’s exact test. Missing data were handled using multiple imputations, and variables with >30% missingness were excluded.
Propensity score matching (1:3 nearest neighbor with a caliper of 0.2) was used to reduce baseline differences, and balance between groups was assessed using standardized mean difference (SMD), with an SMD >0.1 considered meaningful (Austin, 2011). To further address potential residual imbalance and improve precision, multivariable regression was conducted on the matched cohort (Ali et al., 2019).
Multivariable logistic regression was conducted to assess the association between metformin use and in-hospital or ICU mortality. Three models were developed: Model 1 (unadjusted), Model 2 (adjusted for age, gender, and BMI), and Model 3 (adjusted for covariates selected via Boruta and random forest feature selection). The importance of variables selected via Boruta and random forest algorithms is illustrated in Figure 2, which visualizes the ranking of features contributing to model construction. Cox proportional hazards regression was used to evaluate the association with 30- and 90-day all-cause mortality. Additionally, subgroup analyses were conducted to investigate the relationship between metformin use and 30-day as well as 90-day mortality across various subgroups. To address potential immortal time bias, we performed landmark analyses at two time points—48 h and 7 days after ICU admission (Suissa, 2007). For each landmark, only patients who survived beyond the respective time point were included. Patients were classified as metformin users if they received metformin within the landmark window (i.e., within 48 h or within 7 days of ICU admission). Those who had not received metformin prior to the landmark time point were classified as non-users. Kaplan–Meier survival curves were generated to compare 30-day and 90-day mortality between groups for each landmark time point. To improve comparability, both unmatched and PSM cohorts were used in the landmark analyses, and group differences were assessed using log-rank tests. All statistical analyses were performed using R software (version 4.1.2, R Foundation). A two-sided P-value below 0.05 was considered statistically significant. This study followed the STROBE guidelines for reporting observational studies (von Elm et al., 2007).

Figure 2. Application of Machine Learning in Feature Selection. (A) Shapley Additive Explanations (SHAP) for the random forest model. (A) Distribution of the impact of each feature on the model output. Each dot represents a patient in a row. The colors of the dots represent the feature values: purple represents larger values and yellow represents lower values. (B) Feature selection for the relationship between various variables and in-hospital mortality was analyzed using the Boruta algorithm. (B) The horizontal axis shows the name of each variable, whereas the vertical axis represents the Z-value of each variable. The box plot depicts the Z-value of each variable in the model calculation, with red boxes representing important variables, pink boxes representing tentative attributes, and yellow boxes representing unimportant variables. Abbreviations: APSIII, acute physiology score III; SAPSII, simplified acute physiology score II; OASIS, Oxford acute severity of illness score; CRRT, continuous renal replacement therapy; PLT, platelets; Charlson, Charlson comorbidity index; VP, vasopressor; PH, potential of hydrogen; RBC, red blood cell; HCT, hematocrit; SOFA, sequential organ failure assessment; PCO2, partial pressure of carbon dioxide; AG, anion gap; BUN, blood urea nitrogen; TCO2, total carbon dioxide; BMI, body mass index; INR, international normalized ratio; ALT, alanine aminotransferase; RDW, red cell distribution width; WBC, white blood cell; PT, prothrombin time; HR, heart rate; PTT, partial thromboplastin time; AST, aspartate aminotransferase; AKI, acute kidney injury; CKD, chronic kidney disease; CA, cancer; PO2, partial pressure of oxygen; MI, myocardial infarction; CVA, cerebrovascular accident; HLD, hyperlipidemia; RR, respiratory rate; IHD, ischemic heart disease; SPO2, peripheral capillary oxygen saturation; LC, liver cirrhosis; HF, heart failure; HTN, hypertension; PNA, pneumonia; COPD, chronic obstructive pulmonary disease; CB, chronic bronchitis; HEP, hepatitis.
Results
Baseline characteristics
This study included 15,613 patients who met the eligibility criteria, with 15,231 in the non-metformin group and 382 in the metformin group. Our study is a retrospective study, and its results are susceptible to confounding factors. After PSM, 1,429 patients were included, and confounding was minimized. Adequate balance was achieved across most baseline characteristics (Supplementary Figure S1). Table 1 presents the clinical data of the two patient groups prior to PSM. In the original population, there was no difference in age between the metformin group and the non-metformin group, while for clinical scores such as assessed via the Sequential Organ Failure Assessment (SOFA), Oxford acute severity of illness score (OASIS), Acute Physiology Score III (APSIII), and Simplified Acute Physiology Score II (SAPSII), the metformin group was lower than the non-metformin group. In addition, for patient clinical outcomes, patients in the metformin group had lower ICU mortality and in-hospital mortality compared with patients in the non-metformin group. After PSM, there were no significant differences in baseline characteristics between the two groups (Table 2).
Metformin use and hospitalization, ICU mortality rates
Compared with patients who did not use metformin, the unadjusted model showed a 78.2% reduction in the risk of in-hospital death (OR = 0.218, 95% CI 0.136–0.333, p < 0.001) and a 75.0% reduction in the risk of ICU death in patients who used metformin (OR = 0.250, 95% CI 0.149–0.397, p < 0.001). After adjusting for confounders, the protective effect of metformin was consistent across multifactorial analyses of in-hospital and ICU deaths. Fully adjusted models showed a 79.8% reduction in the risk of in-hospital death (OR = 0.202, 95% CI 0.123–0.317, p < 0.001) and a 75.5% reduction in the risk of ICU death in patients using metformin (OR = 0.245, 95% CI 0.142–0.399, p < 0.001). These findings are summarized in Table 3, which presents the logistic regression results for in-hospital and ICU mortality.
These results suggest that metformin use significantly reduces in-hospital and ICU mortality in patients with ARF, supporting its potentially important clinical protective role in patients with ARF.
Survival analysis and COX proportional risk modeling
Patients with ARF were categorized into two groups based on their metformin use during hospitalization. Univariate COX risk analysis showed that the 30-day, 90-day risk of death was lower in the metformin group than in the non-metformin group (HR = 0.211, 95% CI 0.132–0.337, p < 0.001; HR = 0.232, 95% CI 0.159–0.367, p < 0.001) (Table 4). Kaplan-Meier curves for 30- and 90-day survival are shown in Figure 3. According to Kaplan-Meier survival analysis, the 30-day survival and 90-day survival rates were significantly higher in the metformin group than in the non-metformin group (the log-rank test: p-value <0.001). We examined the association between metformin and mortality in ARF patients through Cox regression analysis, along with other factors that may affect survival. The metformin group exhibited a reduced 30-day mortality risk and a diminished 90-day mortality risk compared to the non-metformin group (adjusted HR = 0.199, 95% CI: 0.124, 0.320; adjusted HR = 0.230, 95% CI: 0.150, 0.352) as determined by multivariable Cox proportional hazards analysis (Table 4).

Figure 3. (A) Kaplan-Meier curves of 30-day mortality risk in the two groups for the original population. (B) Kaplan-Meier curves of 90-day mortality risk in the two groups for the original population. (C) Kaplan Meier curve of 30-day mortality risk in two groups for the PSM population. (D) Kaplan Meier curve of 90-day mortality risk in two groups for the PSM population.
Subgroup analysis
In addition, to validate the relationship between metformin and 30-day all-cause mortality in patients with ARF, we conducted subgroup analyses according to age, gender, BMI, SOFA score, APSIII score, and diabetes status. Figure 4, in the fully adjusted model, metformin demonstrated a significant protective effect in multiple groups of patients. For example, there was a significant association between metformin and 30-day all-cause mortality in both male (HR = 0.157, 95% CI 0.081–0.302) and female (HR = 0.245, 95% CI 0.122–0.496) patients, as well as for patients diagnosed with PNA (HR = 0.224, 95% CI 0.114–0.440) and those without PNA (HR = 0.189, 95% CI 0.095–0.373), the protective effect of metformin remained unchanged.

Figure 4. Protective effects of metformin on 30-day all-cause mortality across subgroups in the fully adjusted Cox regression model. Abbreviations: HR, hazard ratio; AKI, acute kidney injury; PNA, pneumonia; HF, heart failure; MI, myocardial infarction; IHD, ischemic heart disease; COPD, chronic obstructive pulmonary disease; SOFA, sequential organ failure assessment; APSIII, acute physiology score III.
Of note, in diabetic patients, metformin significantly reduced the risk of death (HR = 0.201, 95% CI 0.123–0.326, p < 0.001). In contrast, in the non-diabetic subgroup, the reference group (non-metformin users) had a small sample size (95 patients) and a low number of events (10 deaths), leading to instability in the Cox regression model. This may explain the computational limitations and the unexpected HR of 0 observed for this group. Despite these issues, the protective effect of metformin was directionally consistent across subgroups, suggesting potential benefits even in non-diabetic patients. Moreover, similar trends were observed in the stratified analysis of 90-day all-cause mortality (Figure 5).

Figure 5. Protective effects of metformin on 90-day all-cause mortality across subgroups in the fully adjusted Cox regression model. Abbreviations: HR, hazard ratio; AKI, acute kidney injury; PNA, pneumonia; HF, heart failure; MI, myocardial infarction; IHD, ischemic heart disease; COPD, chronic obstructive pulmonary disease; SOFA, sequential organ failure assessment; APSIII, acute physiology score III.
Sensitivity analysis
In the landmark analyses at 48 h and 7 days after ICU admission, Kaplan–Meier curves showed that metformin use within each respective window was associated with significantly lower 30-day and 90-day mortality compared with non-use (log-rank p < 0.05 for all comparisons). These associations were consistent in both the unmatched and PSM cohorts (Figure 6). The concordant findings across two landmark time points strengthen the robustness of our results and further reduce concerns about immortal time bias.

Figure 6. (A) 30-day mortality in the unmatched cohort, landmark time at 48 h (B) 90-day mortality in the unmatched cohort, landmark time at 48 h (C) 30-day mortality in the PSM cohort, landmark time at 48 h (D) 90-day mortality in the PSM cohort, landmark time at 48 h (E) 30-day mortality in the unmatched cohort, landmark time at 7 days. (F) 90-day mortality in the unmatched cohort, landmark time at 7 days. (G) 30-day mortality in the PSM cohort, landmark time at 7 days. (H) 90-day mortality in the PSM cohort, landmark time at 7 days.
Discussion
This study examined the relationship between metformin use and mortality in patients with ARF and showed that metformin use significantly reduced in-hospital and ICU mortality. These findings support that metformin may play a significant role in the holistic treatment of ARF.
ARF is a prevalent cause of hospitalization and admissions to critical care units, resulting from many etiologies. According to previous studies, pre-discharge mortality is as high as 40% for patients with ARF requiring ICU admission and invasive mechanical ventilation (Azoulay et al., 2019). Early recognition and treatment of ARF not only helps to reduce complications but also reduces ICU and hospitalization time and significantly improves survival.
Lung inflammation is a central mechanism in the pathogenesis of ARF, often triggered by microbial infections such as pneumonia or acute exacerbations of COPD, and may progress to acute respiratory distress syndrome (ARDS), a severe form of diffuse inflammatory lung injury (Umakanthan et al., 2020; Hashimoto et al., 2017; Thompson et al., 2017). These conditions are characterized by dysregulated immune responses and excessive release of pro-inflammatory cytokines, leading to alveolar damage and impaired gas exchange (Parsons et al., 2005; Wedzicha and Seemungal, 2007; Ferguson et al., 2012). Metformin, a widely used antidiabetic agent, has attracted growing interest for its pleiotropic effects beyond glycemic control. Mechanistically, it activates AMPK, suppresses oxidative stress, and inhibits the release of pro-inflammatory cytokines (Kristófi and Eriksson, 2021; Xian et al., 2021). These immunomodulatory properties have been supported by clinical studies in populations with chronic inflammatory conditions such as type 2 diabetes and polycystic ovary syndrome, with reductions in markers like C-reactive protein (CRP) (Haffner et al., 2005; Lund et al., 2008; Tsilchorozidou et al., 2009; Diamanti-Kandarakis et al., 2006). Such effects provide a biological rationale for exploring metformin as adjunctive therapy in critically ill patients with inflammatory syndromes such as ARF.
The COVID-19 pandemic has further drawn attention to the immunomodulatory potential of metformin. Several retrospective studies and early meta-analyses suggested that metformin use in patients with type 2 diabetes was associated with reduced mortality and severity in COVID-19 (Bramante et al., 2021; Khunti et al., 2021; Lalau et al., 2021; Li et al., 2021; Lukito et al., 2020). However, recent evidence from randomized controlled trials offers a more nuanced perspective. A comprehensive systematic review and meta-analysis of RCTs concluded that metformin did not significantly reduce all-cause mortality or risk of clinical deterioration in hospitalized COVID-19 patients (Chowdhury et al., 2025). These findings suggest that while metformin’s theoretical mechanisms of action remain plausible, its clinical efficacy in acute viral ARDS, such as COVID-19-related ARF, is still inconclusive. The conflicting results underscore the complexity of metformin’s effects in acute illness. Differences in study populations (e.g., diabetes status), timing of drug exposure, and underlying ARF etiology (e.g., viral vs non-viral) may contribute to the variability in findings across studies (Bramante et al., 2021). Our study complements this body of work by focusing on a broader ARF population in the ICU setting. Nevertheless, the lack of benefit observed in recent meta-analyses of COVID-19 RCTs highlights the need for cautious interpretation of observational findings.
In the present study, metformin use significantly reduced in-hospital mortality and ICU mortality in ARF patients in fully adjusted multivariate models. These results suggest that metformin may not only be protective against death associated with systemic inflammation and metabolic disorders, but may also have potential benefits for the complex clinical state of ICU patients (Zhou et al., 2001). Notably, patients with ARF often die due to MODS or severe lung injury (Phua et al., 2009; Bellani et al., 2016; Herridge et al., 2003), whereas metformin may attenuate multiple organ dysfunction by suppressing inflammatory responses and oxidative stress (Cameron et al., 2016; Isoda et al., 2006). These findings further suggest that metformin may have broad clinical potential in the comprehensive treatment of critically ill patients.
To further assess the robustness of our findings against potential unmeasured confounding, we calculated the E-value for the association between metformin use and in-hospital mortality. The observed odds ratio of 0.202 corresponds to an E-value of 9.37 (Supplementary Figure S2), which represents the minimum strength of association that an unmeasured confounder would need to have with both metformin use and mortality—beyond the measured covariates—to fully explain away the observed association. This high E-value suggests that residual confounding is unlikely to entirely account for the magnitude of the observed protective effect, thus reinforcing the robustness of our findings under plausible assumptions (VanderWeele and Ding, 2017).
While our findings suggest a potential benefit of metformin in ICU patients with ARF, several limitations should be acknowledged. First, this was a retrospective observational study. Although PSM balanced baseline characteristics, we cannot completely rule out the effect of residual confounding (e.g., the patient’s current and past medical history) on outcomes. In particular, the “non-user” group may include patients who were not prescribed metformin due to contraindications, introducing potential reverse causality and overestimating the protective effect. Moreover, PSM and standard regression models primarily adjust for baseline variables and cannot fully account for time-varying confounding. Future studies should consider advanced methods such as marginal structural models to address these dynamic treatment effects. Second, ARF was identified using ICD codes, which may not fully capture the clinical diagnosis. Some patients may have been misclassified due to transient hypoxia or rule-out diagnoses, while others with true ARF may have been missed if classified under specific conditions (e.g., severe pneumonia or cardiogenic pulmonary edema). Moreover, the study population was derived from a single academic ICU and comprised mostly critically ill patients. These factors may limit the generalizability of our findings to less severe or non-ICU ARF populations. Given the clinical heterogeneity of ARF in etiology and severity, treatment effects of metformin may vary across subgroups. Future studies should explore whether specific ARF subphenotypes derive greater benefit (Yang et al., 2024). Finally, the associations observed in this study are correlational rather than causal. Although we applied robust statistical adjustments, causal inference remains limited. Future prospective or target trial emulation studies are needed to better estimate the effect of metformin in this setting (Yang et al., 2025; Hernán et al., 2025).
Conclusion
In this retrospective cohort study, metformin use was associated with reduced in-hospital, ICU, 30-day, and 90-day mortality among ICU patients with ARF. These findings suggest potential benefits of metformin beyond glycemic control. However, due to the observational nature of the study and possible residual confounding, the results should be interpreted with caution. Further prospective studies are needed to confirm these associations and clarify their clinical relevance.
Data availability statement
The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.
Author contributions
YY: Conceptualization, Data curation, Formal Analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing – original draft, Writing – review and editing. JL: Investigation, Software, Writing – review and editing. YH: Supervision, Validation, Writing – original draft. YW: Conceptualization, Investigation, Software, Writing – review and editing. LH: Conceptualization, Data curation, Writing – original draft, Writing – review and editing. WW: Data curation, Formal Analysis, Resources, Writing – original draft, Writing – review and editing.
Funding
The author(s) declare that no financial support was received for the research and/or publication of this article.
Acknowledgments
We would like to express our sincere gratitude to Liang Huang from West China Second University Hospital, Sichuan University, for his invaluable guidance and support throughout this study. His expertise and insights greatly contributed to the design and execution of this research. We also thank the developers and maintainers of the Medical Information Mart for Intensive Care-IV (MIMIC-IV) database for providing open access to high-quality clinical data, which was essential for the completion of this study.
Conflict of interest
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Generative AI statement
The author(s) declare that no Generative AI was used in the creation of this manuscript.
Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.
Publisher’s note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
Supplementary material
The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fphar.2025.1584230/full#supplementary-material
References
Ali, M. S., Prieto-Alhambra, D., Lopes, L. C., Ramos, D., Bispo, N., Ichihara, M. Y., et al. (2019). Propensity score methods in health technology assessment: principles, extended applications, and recent advances. Front. Pharmacol. 10, 973. doi:10.3389/fphar.2019.00973
Austin, P. C. (2011). An introduction to propensity score methods for reducing the effects of confounding in observational studies. Multivar. Behav. Res. 46 (3), 399–424. doi:10.1080/00273171.2011.568786
Azoulay, E., Mokart, D., Kouatchet, A., Demoule, A., and Lemiale, V. (2019). Acute respiratory failure in immunocompromised adults. Lancet Respir. Med. 7 (2), 173–186. doi:10.1016/s2213-2600(18)30345-x
Bai, B., and Chen, H. (2021). Metformin: a novel weapon against inflammation. Front. Pharmacol. 12, 622262. doi:10.3389/fphar.2021.622262
Bellani, G., Laffey, J. G., Pham, T., Fan, E., Brochard, L., Esteban, A., et al. (2016). Epidemiology, patterns of care, and mortality for patients with acute respiratory distress syndrome in intensive care units in 50 countries. Jama 315 (8), 788–800. doi:10.1001/jama.2016.0291
Bramante, C. T., Ingraham, N. E., Murray, T. A., Marmor, S., Hovertsen, S., Gronski, J., et al. (2021). Metformin and risk of mortality in patients hospitalised with COVID-19: a retrospective cohort analysis. Lancet Healthy Longev. 2 (1), e34–e41. doi:10.1016/s2666-7568(20)30033-7
Cameron, A. R., Morrison, V. L., Levin, D., Mohan, M., Forteath, C., Beall, C., et al. (2016). Anti-inflammatory effects of metformin irrespective of diabetes status. Circ. Res. 119 (5), 652–665. doi:10.1161/circresaha.116.308445
Chowdhury, S. R., Islam, N., Zhou, Q., Hasan, M. K., Chowdhury, M. R., Siemieniuk, R. A., et al. (2025). Metformin for covid-19: systematic review and meta-analysis of randomised controlled trials. BMJ Med. 4 (1), e001126. doi:10.1136/bmjmed-2024-001126
Degenhardt, F., Seifert, S., and Szymczak, S. (2019). Evaluation of variable selection methods for random forests and omics data sets. Brief. Bioinform 20 (2), 492–503. doi:10.1093/bib/bbx124
Diamanti-Kandarakis, E., Paterakis, T., Alexandraki, K., Piperi, C., Aessopos, A., Katsikis, I., et al. (2006). Indices of low-grade chronic inflammation in polycystic ovary syndrome and the beneficial effect of metformin. Hum. Reprod. 21 (6), 1426–1431. doi:10.1093/humrep/del003
Ferguson, N. D., Fan, E., Camporota, L., Antonelli, M., Anzueto, A., Beale, R., et al. (2012). The Berlin definition of ARDS: an expanded rationale, justification, and supplementary material. Intensive Care Med. 38 (10), 1573–1582. doi:10.1007/s00134-012-2682-1
Fujishima, S. (2023). Guideline-based management of acute respiratory failure and acute respiratory distress syndrome. J. Intensive Care 11 (1), 10. doi:10.1186/s40560-023-00658-3
Fujishima, S., Gando, S., Saitoh, D., Kushimoto, S., Ogura, H., Abe, T., et al. (2020). Demographics, treatments, and outcomes of acute respiratory distress syndrome: the focused outcomes research in emergency care in acute respiratory distress syndrome, sepsis, and trauma (FORECAST) study. Shock 53 (5), 544–549. doi:10.1097/shk.0000000000001416
Haffner, S., Temprosa, M., Crandall, J., Fowler, S., Goldberg, R., Horton, E., et al. (2005). Intensive lifestyle intervention or metformin on inflammation and coagulation in participants with impaired glucose tolerance. Diabetes 54 (5), 1566–1572. doi:10.2337/diabetes.54.5.1566
Hashimoto, S., Sanui, M., Egi, M., Ohshimo, S., Shiotsuka, J., Seo, R., et al. (2017). The clinical practice guideline for the management of ARDS in Japan. J. Intensive Care 5, 50. doi:10.1186/s40560-017-0222-3
Hernán, M. A., Dahabreh, I. J., Dickerman, B. A., and Swanson, S. A. (2025). The target trial framework for causal inference from observational data: why and when is it helpful? Ann. Intern Med. 178 (3), 402–407. doi:10.7326/annals-24-01871
Herridge, M. S., Cheung, A. M., Tansey, C. M., Matte-Martyn, A., Diaz-Granados, N., Al-Saidi, F., et al. (2003). One-year outcomes in survivors of the acute respiratory distress syndrome. N. Engl. J. Med. 348 (8), 683–693. doi:10.1056/NEJMoa022450
Isoda, K., Young, J. L., Zirlik, A., MacFarlane, L. A., Tsuboi, N., Gerdes, N., et al. (2006). Metformin inhibits proinflammatory responses and nuclear factor-kappaB in human vascular wall cells. Arterioscler. Thromb. Vasc. Biol. 26 (3), 611–617. doi:10.1161/01.Atv.0000201938.78044.75
Johnson, A. E. W., Bulgarelli, L., Shen, L., Gayles, A., Shammout, A., Horng, S., et al. (2023). MIMIC-IV, a freely accessible electronic health record dataset. Sci. Data 10 (1), 1. doi:10.1038/s41597-022-01899-x
Khunti, K., Knighton, P., Zaccardi, F., Bakhai, C., Barron, E., Holman, N., et al. (2021). Prescription of glucose-lowering therapies and risk of COVID-19 mortality in people with type 2 diabetes: a nationwide observational study in England. Lancet Diabetes Endocrinol. 9 (5), 293–303. doi:10.1016/s2213-8587(21)00050-4
Kim, S. A., and Choi, H. C. (2012). Metformin inhibits inflammatory response via AMPK-PTEN pathway in vascular smooth muscle cells. Biochem. Biophys. Res. Commun. 425 (4), 866–872. doi:10.1016/j.bbrc.2012.07.165
Koh, S. J., Kim, J. M., Kim, I. K., Ko, S. H., and Kim, J. S. (2014). Anti-inflammatory mechanism of metformin and its effects in intestinal inflammation and colitis-associated Colon cancer. J. Gastroenterol. Hepatol. 29 (3), 502–510. doi:10.1111/jgh.12435
Kristófi, R., and Eriksson, J. W. (2021). Metformin as an anti-inflammatory agent: a short review. J. Endocrinol. 251 (2), R11–r22. doi:10.1530/joe-21-0194
Lalau, J. D., Al-Salameh, A., Hadjadj, S., Goronflot, T., Wiernsperger, N., Pichelin, M., et al. (2021). Metformin use is associated with a reduced risk of mortality in patients with diabetes hospitalised for COVID-19. Diabetes Metab. 47 (5), 101216. doi:10.1016/j.diabet.2020.101216
LaMoia, T. E., and Shulman, G. I. (2021). Cellular and molecular mechanisms of metformin action. Endocr. Rev. 42 (1), 77–96. doi:10.1210/endrev/bnaa023
Li, Y., Yang, X., Yan, P., Sun, T., Zeng, Z., and Li, S. (2021). Metformin in patients with COVID-19: a systematic review and meta-analysis. Front. Med. (Lausanne) 8, 704666. doi:10.3389/fmed.2021.704666
Liang, H., Ding, X., Li, L., Wang, T., Kan, Q., Wang, L., et al. (2019). Association of preadmission metformin use and mortality in patients with sepsis and diabetes mellitus: a systematic review and meta-analysis of cohort studies. Crit. Care 23 (1), 50. doi:10.1186/s13054-019-2346-4
Lin, H., Ao, H., Guo, G., and Liu, M. (2023). The role and mechanism of metformin in inflammatory diseases. J. Inflamm. Res. 16, 5545–5564. doi:10.2147/jir.S436147
Ling, R. R., Ponnapa Reddy, M., Subramaniam, A., Moran, B., Ramanathan, K., Ramanan, M., et al. (2024). Epidemiology of acute hypoxaemic respiratory failure in Australian and New Zealand intensive care units during 2005-2022. A binational, registry-based study. Intensive Care Med. 50 (11), 1861–1872. doi:10.1007/s00134-024-07609-y
Liu, G., Wu, K., Zhang, L., Dai, J., Huang, W., Lin, L., et al. (2017). Metformin attenuated endotoxin-induced acute myocarditis via activating AMPK. Int. Immunopharmacol. 47, 166–172. doi:10.1016/j.intimp.2017.04.002
Liu, T., Gao, L., Wang, J., Wu, L., and Zhou, M. (2023). Protective effect of metformin on pulmonary fibrosis caused by paraquat through activating AMP-activated protein kinase pathway. Zhonghua Wei Zhong Bing Ji Jiu Yi Xue 35 (12), 1309–1315. doi:10.3760/cma.j.cn121430-20230407-00250
Lu, Q., Yu, S., Meng, X., Shi, M., Huang, S., Li, J., et al. (2022). MicroRNAs: important regulatory molecules in acute lung injury/acute respiratory distress syndrome. Int. J. Mol. Sci. 23 (10), 5545. doi:10.3390/ijms23105545
Lukito, A. A., Pranata, R., Henrina, J., Lim, M. A., Lawrensia, S., and Suastika, K. (2020). The effect of metformin consumption on mortality in hospitalized COVID-19 patients: a systematic review and meta-analysis. Diabetes Metab. Syndr. 14 (6), 2177–2183. doi:10.1016/j.dsx.2020.11.006
Lund, S. S., Tarnow, L., Stehouwer, C. D., Schalkwijk, C. G., Teerlink, T., Gram, J., et al. (2008). Impact of metformin versus repaglinide on non-glycaemic cardiovascular risk markers related to inflammation and endothelial dysfunction in non-obese patients with type 2 diabetes. Eur. J. Endocrinol. 158 (5), 631–641. doi:10.1530/eje-07-0815
Lundberg, S. M., Erion, G., Chen, H., DeGrave, A., Prutkin, J. M., Nair, B., et al. (2020). From local explanations to global understanding with explainable AI for trees. Nat. Mach. Intell. 2 (1), 56–67. doi:10.1038/s42256-019-0138-9
Mendy, A., Gopal, R., Alcorn, J. F., and Forno, E. (2019). Reduced mortality from lower respiratory tract disease in adult diabetic patients treated with metformin. Respirology 24 (7), 646–651. doi:10.1111/resp.13486
Nohara, Y., Matsumoto, K., Soejima, H., and Nakashima, N. (2022). Explanation of machine learning models using shapley additive explanation and application for real data in hospital. Comput. Methods Programs Biomed. 214, 106584. doi:10.1016/j.cmpb.2021.106584
Parsons, P. E., Eisner, M. D., Thompson, B. T., Matthay, M. A., Ancukiewicz, M., Bernard, G. R., et al. (2005). Lower tidal volume ventilation and plasma cytokine markers of inflammation in patients with acute lung injury. Crit. Care Med. 33 (1), 1–232. doi:10.1097/01.ccm.0000149854.61192.dc
Phua, J., Badia, J. R., Adhikari, N. K., Friedrich, J. O., Fowler, R. A., Singh, J. M., et al. (2009). Has mortality from acute respiratory distress syndrome decreased over time? a systematic review. Am. J. Respir. Crit. Care Med. 179 (3), 220–227. doi:10.1164/rccm.200805-722OC
Rena, G., Hardie, D. G., and Pearson, E. R. (2017). The mechanisms of action of metformin. Diabetologia 60 (9), 1577–1585. doi:10.1007/s00125-017-4342-z
Suissa, S. (2007). Immortal time bias in observational studies of drug effects. Pharmacoepidemiol Drug Saf. 16 (3), 241–249. doi:10.1002/pds.1357
Thompson, B. T., Chambers, R. C., and Liu, K. D. (2017). Acute respiratory distress syndrome. N. Engl. J. Med. 377 (6), 562–572. doi:10.1056/NEJMra1608077
Tsilchorozidou, T., Mohamed-Ali, V., and Conway, G. S. (2009). Determinants of interleukin-6 and C-reactive protein vary in polycystic ovary syndrome, as do effects of short- and long-term metformin therapy. Horm. Res. 71 (3), 148–154. doi:10.1159/000197871
Umakanthan, S., Sahu, P., Ranade, A. V., Bukelo, M. M., Rao, J. S., Abrahao-Machado, L. F., et al. (2020). Origin, transmission, diagnosis and management of coronavirus disease 2019 (COVID-19). Postgrad. Med. J. 96 (1142), 753–758. doi:10.1136/postgradmedj-2020-138234
VanderWeele, T. J., and Ding, P. (2017). Sensitivity analysis in observational research: introducing the E-Value. Ann. Intern Med. 167 (4), 268–274. doi:10.7326/m16-2607
von Elm, E., Altman, D. G., Egger, M., Pocock, S. J., Gøtzsche, P. C., Vandenbroucke, J. P., et al. (2007). The strengthening the reporting of observational studies in epidemiology (STROBE) statement: guidelines for reporting observational studies. Lancet 370 (9596), 1453–1457. doi:10.1016/s0140-6736(07)61602-x
Wang, K., Wang, M., Liao, X., Gao, S., Hua, J., Wu, X., et al. (2022). Locally organised and activated Fth1(hi) neutrophils aggravate inflammation of acute lung injury in an IL-10-dependent manner. Nat. Commun. 13 (1), 7703. doi:10.1038/s41467-022-35492-y
Wedzicha, J. A., and Seemungal, T. A. (2007). COPD exacerbations: defining their cause and prevention. Lancet 370 (9589), 786–796. doi:10.1016/s0140-6736(07)61382-8
Xian, H., Liu, Y., Rundberg Nilsson, A., Gatchalian, R., Crother, T. R., Tourtellotte, W. G., et al. (2021). Metformin inhibition of mitochondrial ATP and DNA synthesis abrogates NLRP3 inflammasome activation and pulmonary inflammation. Immunity 54 (7), 1463–1477.e11. doi:10.1016/j.immuni.2021.05.004
Yang, J., Zhang, Bo, Hu, C., Jiang, X., Shui, P., Huang, J., et al. (2024). Identification of clinical subphenotypes of sepsis after laparoscopic surgery. Laparosc. Endosc. Robotic Surg. 7 (1), 16–26. doi:10.1016/j.lers.2024.02.001
Yang, J., Wang, L., Chen, L., Zhou, P., Yang, S., Shen, H., et al. (2025). A comprehensive step-by-step approach for the implementation of target trial emulation: evaluating fluid resuscitation strategies in post-laparoscopic septic shock as an example. Laparosc. Endosc. Robotic Surg. 8 (1), 28–44. doi:10.1016/j.lers.2025.01.001
Yuan, H., Li, L., Zheng, W., Wan, J., Ge, P., Li, H., et al. (2012). Antidiabetic drug metformin alleviates endotoxin-induced fulminant liver injury in mice. Int. Immunopharmacol. 12 (4), 682–688. doi:10.1016/j.intimp.2012.01.015
Keywords: intensive care unit, acute respiratory failure, retrospective cohort study, mortality, metformin
Citation: Yang Y, Liu J, Hou Y, Wei Y, Huang L and Wei W (2025) Correlation between metformin use and mortality in acute respiratory failure: a retrospective ICU cohort study. Front. Pharmacol. 16:1584230. doi: 10.3389/fphar.2025.1584230
Received: 27 February 2025; Accepted: 18 August 2025;
Published: 26 August 2025.
Edited by:
Paolo Montuschi, Catholic University of the Sacred Heart, ItalyReviewed by:
Zhongheng Zhang, Sir Run Run Shaw Hospital, ChinaYukang Dong, Guizhou Provincial People’s Hospital, China
Pradana Zaky Romadhon, Airlangga University Hospital, Indonesia
Nancy Rehatta, Petra Christian University, Indonesia
Copyright © 2025 Yang, Liu, Hou, Wei, Huang and Wei. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Liang Huang, aGxpYW5nXzEwMjJAMTYzLmNvbQ==; Wei Wei, d2Vpd2VpZXJpYzA0MDVAMTYzLmNvbQ==