Predictors of Metformin Failure: Repurposing Electronic Health Record Data to Identify High-Risk Patients

J Clin Endocrinol Metab. 2023 Jun 16;108(7):1740-1746. doi: 10.1210/clinem/dgac759.

Abstract

Context: Metformin is the first-line drug for treating diabetes but has a high failure rate.

Objective: To identify demographic and clinical factors available in the electronic health record (EHR) that predict metformin failure.

Methods: A cohort of patients with at least 1 abnormal diabetes screening test that initiated metformin was identified at 3 sites (Arizona, Mississippi, and Minnesota). We identified 22 047 metformin initiators (48% female, mean age of 57 ± 14 years) including 2141 African Americans, 440 Asians, 962 Other/Multiracial, 1539 Hispanics, and 16 764 non-Hispanic White people. We defined metformin failure as either the lack of a target glycated hemoglobin (HbA1c) (<7%) within 18 months of index or the start of dual therapy. We used tree-based extreme gradient boosting (XGBoost) models to assess overall risk prediction performance and relative contribution of individual factors when using EHR data for risk of metformin failure.

Results: In this large diverse population, we observed a high rate of metformin failure (43%). The XGBoost model that included baseline HbA1c, age, sex, and race/ethnicity corresponded to high discrimination performance (C-index of 0.731; 95% CI 0.722, 0.740) for risk of metformin failure. Baseline HbA1c corresponded to the largest feature performance with higher levels associated with metformin failure. The addition of other clinical factors improved model performance (0.745; 95% CI 0.737, 0.754, P < .0001).

Conclusion: Baseline HbA1c was the strongest predictor of metformin failure and additional factors substantially improved performance suggesting that routinely available clinical data could be used to identify patients at high risk of metformin failure who might benefit from closer monitoring and earlier treatment intensification.

Keywords: diabetes mellitus; hemoglobin A1c; metformin; metformin failure; prediabetes; type 2 diabetes.

Publication types

  • Research Support, N.I.H., Extramural
  • Research Support, Non-U.S. Gov't

MeSH terms

  • Adult
  • Aged
  • Diabetes Mellitus, Type 2* / drug therapy
  • Diabetes Mellitus, Type 2* / epidemiology
  • Drug Repositioning
  • Electronic Health Records
  • Glycated Hemoglobin
  • Humans
  • Hypoglycemic Agents / therapeutic use
  • Metformin* / therapeutic use
  • Middle Aged
  • Retrospective Studies

Substances

  • Metformin
  • Hypoglycemic Agents
  • Glycated Hemoglobin