Introduction

Despite improved prognosis, breast cancer remains a challenging disease, as its incidence in women is increasing globally over the last three decades [1]. Particularly in women with type 2 diabetes mellitus (T2DM), the risk of breast cancer is elevated by 14–25% [2,3,4]. Therefore, preventive strategies on modifiable risk factors related to breast cancer would have substantial benefit.

Metformin, a first-line drug for T2DM treatment, has shown anti-cancer effects ex vivo, but mixed findings yielded in observational studies regarding breast cancer [5,6,7]. Two previous randomized controlled trials (RCTs), not specially designed for this issue, observed no reduction in breast cancer risk by metformin use [8]; but one recent RCT uncovered that metformin intervention resulted in favourable changes in breast cancer risk factors, such as reduction in waist circumference and non-dense breast volume [9]. Another commonly used medication, statins, tended to be concluded insignificantly associated with breast cancer risk [10], while some negative and positive associations/effects were previously reported in either observational studies [11, 12] or RCT [13]. Thus, the efficacy of metformin and statins in the prevention of breast cancer still remains unclear.

In vitro experiments indicated metformin and statins share common targets and pathways, like AMP-activated protein kinase signalling, to inhibit cell proliferation and trigger apoptosis in cancer cells [14, 15]. One recent paper provided direct evidence that the combined use of metformin and simvastatin exerts a more potent suppression on endothelin 1-induced hypoxia and angiogenesis in breast cancer cell lines compared to each drug alone [16]. Regarding epidemiological evidence, as far as we know, one cohort study conducted in the Finnish nationwide diabetes database, mentioned no interaction effect between these two drugs on breast cancer incidence but without elaborating analysis details [17]. So far, there is a paucity of evidence answering the question: whether the association between metformin and the risk of breast cancer could be modified by statins. This, however, was confirmed in two studies working on men with T2DM considering prostate cancer incidence [18, 19].

Thus, we utilized a real-world dataset and conducted a cohort study to evaluate the associations of metformin and statins use with breast cancer risk, and particularly to examine the interaction and potentially synergistic effects of the combination treatment with metformin and statins on breast cancer risk in women with T2DM.

Materials and methods

Study design and setting

A population-based cohort study was performed in women diagnosed with T2DM, who were recruited in the Zwolle Outpatient Diabetes project Integrating Available Care (ZODIAC), an annual benchmarking database for 731 general practitioners (GP) in Dutch primary care, for the period 1998 to 2014. Data were linked to the Netherlands Cancer Registry and the Dutch Personal Record Database for cancer and mortality data. This research required no ethics committee approval (see Supplementary Material for explanations).

Baseline date and follow up

The baseline is defined as July 1th in the year when the clinical data was available in ZODIAC database. Follow-up started at baseline, and ended at the date of breast cancer diagnosis, death or loss-to-follow-up (the year when no more clinical data were present for a patient, namely body mass index (BMI), smoking status, any blood/urine measures, blood pressures, prescriptions of any medication in this cohort till July 1th, 2014), or July 1th, 2015, whichever came first. Censoring occurred when a woman died or did not have follow-up data (no measurements or prescriptions) before a diagnosis of breast cancer at the end of the follow up.

Patient selection

The following inclusion criteria were applied in this study: (1) women were diagnosed with T2DM at baseline; (2) to ensure that patients had ever visited a general practice within a study period, we only included patients who had at least one of the following records: BMI, smoking status, blood/urine measures, or blood pressures between 1998 and 2014. Patients were excluded if they satisfied at least one of the following criteria (1) they had a history of cancer other than non-melanoma skin cancer at baseline [20]; (2) they had follow up ≤ one year after the baseline; (3) to ensure that medication was recorded, we excluded those patients who never received drug prescriptions in the study period (between 1998 and 2014). Of note, a history of medication usage before baseline is unavailable, and patients included in this cohort may not be new users regarding metformin and statins.

Data collection

Data at baseline

Baseline data were collected with different strategies to limit missingness as follows: age at baseline, BMI and smoking status as values taken nearest to the baseline date, duration of diabetes as a period between the registered date of diabetes and the baseline (the registered date was around or before the baseline), first records within one year around the baseline of glycated hemoglobin A (HbA1c), low-density lipoprotein cholesterol (LDL-C) and estimated glomerular filtration rate (eGFR), and a history of cardiovascular disease, hypertension and cancer before or at the baseline. Certified labs performed the sample analyses for laboratory measurements. LDL-C was routinely calculated using the Friedewald equation [21]. Further details are included in Fig. S1 and the Supplementary Material. Baseline values of HbA1c, LDL-C and eGFR were only used for comparisons between women with and without breast cancer.

Time-dependent data during the follow up

Time-dependent data on the following variables were collected: use of metformin, statins, sulfonylurea, and insulin, as well as values of HbA1c, LDL-C, and eGFR. These data were treated as time-dependent further in the models.

The dataset was structured in a person-time interval format, with each interval spanning one year. Within each person-time interval, exposure to metformin was defined as yes or no. As the data were collected at annual benchmarks, cumulative exposure at the beginning of each interval was calculated in years as the sum over all the intervals where a prescription was present since the first known prescription at baseline. To avoid a small sample size for the category of patients receiving metformin for a long period, we truncated the cumulative exposure at six years of follow up. That is, patients who received metformin for six or more years were assigned to one category. A similar approach was applied to the other drugs: statins, sulfonylurea and insulin. More details are presented in Supplementary Material. Regarding blood measures, values were updated for each interval. In case of a missing value in a certain interval before a patient has been censored or received a diagnosis of breast cancer, the value from the last interval was used instead.

Latency period

To appropriately classify metformin and statin exposure with respect to breast cancer diagnosis, a one-year (365 days) latency period was applied. It means that any metformin or statin prescription which was prescribed in the one-year period preceding breast cancer diagnosis, death, or censoring, was not considered as exposure because breast cancer pathogenesis is likely have already been initiated during that period, and any exposure during this period was assumed to not influence breast cancer diagnosis. This latency period was also applied when collecting blood measures [22].

Outcome and exposure

The outcome of interest was time to breast cancer diagnosis. The exposures of interest were metformin, statins and particularly the interaction between metformin and statins.

Statistical analyses

All data analyses were performed using R version 4.1.0 statistical software. Descriptive statistics were presented as mean (standard deviation, SD) or count (percentage, %). The baseline characteristics of the patients diagnosed with breast cancer were compared with those without diagnosis using independent t-tests (continuous variables) or chi-square tests (categorical variables; the group of missing values was not accounted).

Cox proportional hazards (PH) models were conducted to assess the interaction between two time-dependent variables: metformin and statins, alongside their individual association with breast cancer occurrence, presenting hazard ratios (HRs) and 95% confidence intervals (CIs). As these two variables (i.e., metformin and statins) violated the PH assumption, the extended Cox PH models were applied allowing a regression coefficient (log-scale HR) to vary as a flexible function of time. Specifically, the interaction term between metformin/statins and a 3-knot restricted cubic splines function of follow-up time was included into the model, so that time-varying coefficient of metformin and statins were estimated. To evaluate the interaction between metformin and statins, the multiplicative interaction term of metformin × statins was added as a time-independent variable. Additionally, the additive interaction on the same scale was calculated by the relative excess risk due to interaction (RERI) based on model 2 estimates [23, 24]. As there were missing values (missing rate in total, %) in BMI (22.3%), smoking status (1.0%), HbA1c (5.8%), and LDL-C (4.7%) at baseline, we imputed those for the Cox models using multiple imputation by chained equations generating five imputed datasets with the “mice” R-package (see Supplementary Material).

Except drugs and age, other covariates were categorized. The following were categorized into three groups using two cutoffs: 7.0 and 8.5% for HbA1c, 2.6 and 3.6 in mmol/L for LDL-C as suggested by the literature [25], 60 and 90 units for eGFR, 2 and 5 years for duration of diabetes at baseline (< 2, 2–5, ≥ 5 years). For these variables with three groups, the lowest level was the reference. The rest, namely BMI (cut-off value: 30 kg/m2), smoking status, year at baseline (cutoff value: 2018), a history of cardiovascular disease (yes/no), and a history of hypertension (year/no), served as dichotomous variables in the analyses.

Regarding model fitting, the time-varying associations of metformin or statins with breast cancer risk were estimated by looking at the main effects of the medications use and their interaction with time. The time-varying association was first estimated in a model including metformin (or statins) and time without other covariates (Crude model), then both metformin and statins were included with and without the interaction term between metformin and statins (Model 1), followed by adjustment for other potential confounders, namely age, BMI, smoking status, a history of cardiovascular disease, a history of hypertension, and duration of diabetes, year at baseline, time-dependent measures of HbA1c, LDL-C, eGFR, sulfonylurea and insulin (Model 2). By adding the interaction term between metformin and statins, the time-varying association of metformin was conditional on statins. Proportionality was met.

Sensitivity analyses

Sensitivity analyses were separately performed in two subsets of cohort: (1) women aged ≥ 55 years old at baseline, since post- and pre-menopausal breast cancer may have distinct etiology; (2) women with a diabetes duration < 2 years at baseline, to reduce the possible bias caused by a missing history of metformin. Another sensitivity analysis was conducted when considering inverse probability weights for balancing confounders across metformin (details in Supplementary Material).

Results

Patient characteristics at baseline

A total of 35,497 women with T2DM were recruited; of them, women were further excluded if (1) they had no records of any of the following: BMI, smoking status, blood/urine measures, and blood pressures (n = 178); (2) they had a history of cancer other than non-melanoma skin cancer at baseline (n = 3136); (3) they were followed for no more than one year (n = 2509); (4) they never received a prescription of any medication between 1998 and 2014 (n = 169). Consequently, 29,498 women with T2DM formed the study cohort (Fig. 1) with a median follow up of 5.0 years (mean: 5.6 years; range: 1.1–17.0 years), and breast cancer was detected in 515 women. Out of the total, 344 women received diagnoses within five years following the baseline.

Fig. 1
figure 1

Flow chart of patients selection

Abbreviations: BC: breast cancer; BMI: body mass index; T2DM: type 2 diabetes mellitus

As shown in Table 1, women diagnosed with breast cancer were more likely to have a duration of diabetes between 2 and 5 years (29.13% vs. 23.46%, P = 0.003), be recruited before 2008 (52.62% vs. 33.83%, P < 0.001), have a slightly lower HbA1c at baseline (6.64 ± 0.92% vs. 6.77 ± 1.44%, P = 0.003), and not receive metformin at baseline (50.87% vs. 44.05%, P = 0.002). Regarding continuous duration of diabetes, a shorter duration was seen in women with breast cancer, in contrast to those without breast cancer (3.81 ± 4.37 vs. 4.29 ± 5.15 years, P = 0.015).

Table 1 Characteristics at baseline between patients diagnosed with and without breast cancer in this cohort of women with T2DM

Time-varying association of metformin or statins use with breast cancer risk

Before considering the interaction term between metformin and statins, both the crude model and the multivariate models obtained similar estimates on metformin’s and statins’ time-varying associations with breast cancer risk (Table S1 and Fig. S2). That is, one more year of metformin/statins prescription was associated with a lower risk of breast cancer, but the magnitude decreased over time. As for the main effect of metformin, HRs were 0.82 (95% CI: 0.75–0.90) after 3 years of follow-up, and 0.88 (95% CI: 0.83–0.93) after 5 years of follow-up (Fig. S2A and Table 2). As for the main effect of statins, HRs were 0.85 (95% CI: 0.77–0.93) after 3 years of follow-up, and 0.95 (95% CI: 0.89–1.01) after 5 years of follow-up (Fig. S2B and Table S3). HRs for breast cancer risk were further illustrated in the interaction surface plot when no use of metformin or statins served as the reference (Figs. S2C, S2D). Sensitivity analyses yielded similar findings (Table S2 and Table S4).

Table 2 Modification of the time-varying association between metformin and breast cancer risk by statins separately after 3-, 5-, 7- and 10-years of follow up

Statins as a moderator of the association between metformin and breast cancer risk

By adding the interaction between metformin and statins, we observed that the association between metformin use and breast cancer risk was modified by statins (HR, 95% CI of the interaction term: 0.97, 0.96–0.99 in model 2, Table S1). This was confirmed by assessing their addictive interaction based on Model 2 in terms that 95% CI of RERI did not cover zero (Table 3). Since the association between metformin and breast cancer was time-varying and statins-dependent, it is illustrated by separately assuming statins use for 0, 1, 3, 5 years after the follow up of 3, 5, 7, and 10 years (Table 2 and Fig. 2). As observed, there was a negative effect of statins on the association between metformin and breast cancer. Particularly, when there is a negative relation between metformin and breast cancer, the slope (HR in log-scale) of metformin was steeper in those with concomitant longer exposure to statins (Fig. 2A, B and C). This implies a stronger magnitude of this main effect of metformin on breast cancer incidence along with an increase in years of statins use. For example (Fig. 2B), after 5 years of follow up, one more year of metformin use was associated with a decrease in breast cancer risk in women with statins use for 5 years (HR: 0.83, 95% CI: 0.78–0.89) and 3 years (HR: 0.88, 95% CI: 0.84–0.93), but that was not seen in those with one-year statins use (HR: 0. 94, 95% CI: 0.88–1.00) or without statins use (HR: 0.96, 95% CI: 0.89–1.04). As for sensitivity analyses, we observed a significant interaction in women aged ≥ 55 years old (HR, 95% CI of the interaction term: 0.97, 0.95–0.99), but not in women with a duration of diabetes < 2 years (HR, 95% CI of the interaction term: 0.98, 0.95-1.00, Table S2). The utilization of inverse probability weights did not result in noticeable differences (Table S4).

Table 3 Additive interaction between metformin and statins in cumulative years based on Model 2
Fig. 2
figure 2

Time-varying associations of metformin and the risk of breast cancer modified by statins

In term of the violation of PH assumption, time-varying association between metformin and the risk of breast cancer was evaluated and illustrated separately after 3 (A), 5 (B), 7 (C) and 10 years (D) of follow up. In each of them, the y-axis shows the linear predictor of the hazard function for varying values of metformin, holding statins fixed at specific cumulative years, i.e., 0 (red line), 1 (green line), 3 (blue line), 5 years (purple line). The x-axis shows the cumulative usage in years of metformin

Abbreviations: CI: confidence interval; HR: hazard ratio

Discussion

This study demonstrated that the use of metformin or statins was associated with a lower risk of breast cancer in women with T2DM. However, these estimates diminished over time. Notably, an interaction was detected between metformin and statins that was independent of time. Specifically, the protective effect of metformin on breast cancer risk was more pronounced with prolonged exposure to statins.

Protective effect of metformin

The association between metformin and breast cancer risk remains a subject of debate, partly due to variations in exposure definition across different studies. Previous studies primarily employed binary analyses (yes/no) of metofrmin use or compared different glucose-lowering medications [8, 26, 27], whereas more recent studies have taken into account the dose and duration of metformin use. Two studies with a nested case-control design both indicated a negative dose-response relationship between metformin and breast cancer risk [28, 29]. However, a study conducted in Israel [7], which employed similar time-dependent techniques as our study, did not support such an association. One potential explanation for this discrepancy is that the Israeli study relied on medication purchase data to determine exposure, while another factor could be that the Israeli study only included patients with incident diabetes and estimated hazard ratios based on the additional mean metformin dose per day.

Protective effect of statins

In this study only 40% (data not shown) of women who did not achieve LDL-C < 2.6 mmol/L [30], received statins at baseline. Nevertheless, we observed an association between statins and a lower risk of breast cancer. This finding is in contrast to a recent meta-analysis [10]; but it should be noted that several individual studies included in the meta-analysis might introduce biases, such as time-invariant allocation bias [31]. Moreover, previous clinical trials predominantly focused on populations with a high cardiovascular disease risk [32], or their results were inconclusive due to limited sample sizes and short-term use of statins [33, 34]. A recent study indirectly suggested that statin use may be associated with lower mammographic breast density, which serves as a useful biomarker for assessing the effect of chemo-preventive agents on breast cancer risk [35].

Diminishing magnitude of the protective effect of metformin and statins

The protective effect of metformin and statins use on breast cancer risk diminished over time. This could be attributed to the transient nature of the effect, that is primarily driven by the initiation of treatment with metformin or statins, and the worsening of diabetes over time, that could potentially mask or counteract the benefits of treatment. Of note, due to unavailability of a historical usage, there could be a small fraction of patients who may have been using metformin or statins for years before enrolment. These patients might have a lower risk of breast cancer compared to those new users, that might lead to a potential underestimation of the negative association between metformin/statins and the risk of breast cancer. However, as the estimated negative associations are exceedingly strong, particularly within the first three years of follow-up, we could not exclude the bias possibly due to lower risk of breast cancer among patients who were able to receive and/or adhere to the treatment [36]. Adjustment for accessible confounders was inadequate for fully distinguishing between the direct impact of the treatment and the influence of the patient’s clinical/demographic characteristics linked to an increased likelihood of receiving the treatment. Therefore, while our findings provide further support for the protective effect of metformin and statins on breast cancer risk, it is crucial to interpret this association carefully, taking into consideration disease severity and duration of exposure.

Interaction between metformin and statins on breast cancer risk

Our study indicated a significant interaction between metformin and statins on a lower breast cancer risk, that was confirmed both in multiplicative and additive scales. However, it is noteworthy that this significance was not observed among women with a diabetes duration of less than 2 years, potentially due to a substantial decrease in a sample size. Nonetheless, a trend indicating the negative association persisted. The synergistic effect of these two drugs is supported by biological experiments that indicated the combination was more efficient than the individual drug on inhibiting tumor cell proliferation, promoting apoptosis, alleviating hypoxia, decreasing angiogenesis, and increasing vessel normalization [16]. However, in an epidemiological perspective, the study conducted in a Finnish cohort of women with T2DM failed to provide supportive finding [17]. Even that, it is important to note that, that study applied distinct study design and exposure definition, and it did not provide details for the interaction analysis Given the limited evidence in this area, further research is warranted to better understand the potential synergistic effects of metformin and statins on breast cancer risk.

Strengths and limitations

This study was conducted with a relatively large sample size, providing detailed information on medications and laboratory tests that were collected as part of routine GP care in a real-world setting. To address potential biases such as immortal time bias and time-dependent confounding [37, 38], we incorporated time-dependent exposures and covariates in our analysis. Additionally, we took measures to minimize time-lag bias, which commonly arises when comparing metformin with other glucose-lowering drugs due to the order of drug prescriptions during the progression of diabetes [37]. Specifically, we estimated the effect of one additional year of metformin prescription while simultaneously adjusting for the use of sulfonylureas and insulin.

However, it is important to consider several limitations. First, approximately 60% of patients had a diabetes duration exceeding 2 years with no history of using glucose-lowering medications. Part of them could be treatment with lifestyle and diet advice. It is unlikely that this would impact the interaction of metformin and statins since it was assessed after adjusting for the interaction between these medications and time. Second, there was variation in the duration of diabetes between groups, which is known as time-window bias [37]. To address this, we controlled for diabetes duration to mitigate potential confounding from disease severity. Additionally, as our data was organized into one-year intervals, the small difference in duration (approximately half a year on average) is not expected to substantially affect our findings. Third, despite adjusting for an extensive set of confounders, residual confounding from unmeasured factors such as physical activity and dietary factors cannot be entirely excluded. However, it is worth noting that there were no notable differences in the estimates across different adjusted models, indicating that this is unlikely to affect our main findings.

Conclusions

This study demonstrated a time-varying association of metformin and statins use with the risk of breast cancer in women with T2DM, as well as an interaction between metformin and statins, assesed at both the multiplicative and additive scale. This interaction implies a possible reduction in breast cancer risk for women with T2DM who use both medications simultaneously. These findings provide empirical evidence to support metformin and statins in combination as promising prevention agents for breast cancer.