TL;DR
Can a cheap, decades-old diabetes drug pull double duty to prevent dementia? Using data from the NIH All of Us Research Program, researchers emulated a randomized clinical trial to compare dementia and mortality rates between patients starting metformin versus sulfonylureas. They found that metformin was strongly linked to a lower risk of death, while its potential benefit for preventing dementia was modest and statistically uncertain—highlighting how sensitive real-world drug repurposing studies can be to when and how patients are studied.
What Problem Does This Paper Address?
Developing new drugs for dementia from scratch is slow, expensive, and has yielded only modest results. Drug repurposing—finding new uses for existing, well-understood medications—offers a faster alternative. Metformin, the go-to first-line treatment for type 2 diabetes (T2D), has shown promise in animal models and observational studies for slowing cognitive decline and lowering dementia risk.
Previously, a large target trial emulation (TTE) using UK primary care data and US data from Mass General Brigham (MGB) found that starting metformin (compared to sulfonylureas, another diabetes drug class) was associated with lower risks of both dementia and death. However, those datasets had blind spots: the US cohort lacked data on smoking, area-level socioeconomic deprivation, and prescription year, and neither cohort had detailed individual-level data on education or alcohol use. They also didn't separate patients with a coded T2D diagnosis from those taking metformin for other reasons (like prediabetes or PCOS).
This paper tests whether those earlier findings hold up in an independent, diverse US cohort—and how much those missing social, behavioral, and temporal confounders actually matter.
Methods
To mimic a randomized controlled trial using messy observational data, the authors used target trial emulation (TTE) paired with a causal competing risk analysis (causalCmprsk).
- The Setup: "Time zero" (baseline) was defined as a participant's first prescription for either metformin or a sulfonylurea at age 50 or older. Patients with prior dementia or chronic kidney disease (which can block metformin use) were excluded.
- Competing Risks: Because death before dementia prevents dementia from ever being observed, death was treated as a competing event rather than simple censoring.
- Balancing the Arms: To emulate randomization, the researchers used inverse probability of treatment weighting (IPTW)—specifically stabilized Average Treatment Effect (ATE) weights and overlap weights—based on propensity scores estimated via logistic regression. They adjusted for demographics, comorbidities, lab values (BMI, HbA1c), prior antidiabetic drugs, calendar year of first prescription, and social/behavioral factors (smoking, alcohol, education, and neighborhood socioeconomic status).
- Robustness Checks: They ran seven sensitivity analyses, including dropping the T2D diagnosis requirement, adding/removing lifestyle and socioeconomic covariates, and performing a one-year landmark analysis (excluding anyone who had an event or was censored in year one).
Datasets
The study used the NIH All of Us (AoU) Research Program Controlled Tier Dataset (CDRv9), which links electronic health records (EHRs) with participant surveys.
From 481,919 participants with EHR data, the primary T2D-restricted cohort included 18,809 participants (16,449 initiating metformin; 2,360 initiating sulfonylureas) with prescriptions spanning 1994–2024 and a median follow-up of 6.1 years. When relaxing the T2D diagnosis requirement, the cohort expanded to 32,816 participants.
Key Insights and Ideas
- Calendar year is a major confounder: Prescribing habits shifted dramatically over the 30-year window (especially after 2006 guidelines made metformin first-line therapy) alongside AoU's rapid enrollment after 2018. Adding prescription year to the propensity score model changed individual scores by up to ±0.25 and pulled hazard ratios further from the null.
- Lifestyle and socioeconomic factors barely budged the needle—here: Adding smoking, alcohol use, education, and neighborhood data had little impact on the treatment effect estimates. However, the authors note these covariates were already fairly balanced in AoU and were often measured at enrollment after time zero, so this stability might not generalize to other datasets.
- T2D restriction didn't change much: Whether the cohort was restricted to patients with a coded T2D diagnosis or included all initiators, the hazard ratios remained nearly identical.
Key Results
Under stabilized ATE weighting, metformin initiation was associated with:
- Death before dementia: A substantially lower risk (HR: 0.61, 95% CI: [0.49, 0.75]), closely reproducing the earlier UK (0.66) and MGB (0.57) estimates. By year 15, cumulative death risk was 6% for metformin vs. 9% for sulfonylureas.
- Dementia onset: A smaller, statistically uncertain reduction (HR: 0.90, 95% CI: [0.82, 1.02]). This is directionally consistent with the UK (0.86) and MGB (0.81) studies, but attenuated toward no effect. Cumulative dementia risk at 15 years was 28–30%, with metformin tracking about 2 percentage points below sulfonylureas.
Limitations and Future Work
The authors are candid about several structural hurdles in the AoU data:
- Pre-enrollment survival bias: For 79% of participants, their first prescription happened before they enrolled in AoU. Because you have to survive to enroll, this introduces selection and immortal time bias that could underestimate competing deaths and distort dementia incidence.
- Intention-to-treat vs. sustained use: Treatment arms were fixed at the first prescription, with no data on whether patients actually filled or adhered to their medications over time.
- Data gaps: Survey and ZIP-code data were collected at enrollment (often post-treatment), death records may be incomplete, and inpatient vs. outpatient prescription settings were often missing.
Future work should use enrollment-based delayed entry, require a minimum window of pretreatment EHR data, exclude prior insulin users, and apply doubly robust estimators (like survival TMLE) to nail down whether metformin truly offers a cognitive shield.
Summary updated