Background

Type 2 diabetes mellitus (T2DM) increases the susceptibility to cardiovascular diseases such as myocardial infarction (MI), heart failure, and atrial fibrillation (AF) [1]. In line with recent guidelines on diabetes mellitus (DM), management recommendations now encompass pharmacological approaches with holistic lifestyle modifications [2]. This includes exercise, which is vital for reducing cardiovascular morbidity and mortality regardless of the specific type [3, 4].

In individuals with T2DM, AF substantially affects morbidity and mortality outcomes [5]. Consequently, considerable attention has been devoted to AF prevention, focusing on identifying risk factors, including lifestyle factors. The established risk factors for AF include advanced age and comorbidities such as hypertension and DM [6, 7]. Notably, unhealthy lifestyle habits such as obesity, smoking, and alcohol consumption have been linked to an increased incidence of AF [8, 9].

The relationship between exercise and AF in the general population exhibits a complex and nonlinear pattern [10, 11]. In individuals with T2DM, recent studies have highlighted the beneficial effects of physical activity on AF [9, 12]. However, the influence of the amount of physical activity on mitigating AF risk, related to varying durations of DM duration remains unknown.

This study aimed to assess the effect of physical activity on incident AF in patients with DM with respect to known DM duration, using a large-scale nationwide population-based cohort.

Methods

Data were extracted from the extensive nationwide claims database of the Korean National Health Insurance Service (NHIS), which provides coverage for the entire South Korean population. The NHIS database contains a wide range of information, including demographic variables; mortality data; medical expenses; diagnoses classified by the International Classification of Diseases, Tenth Revision, Clinical Modification (ICD-10-CM); utilization of inpatient and outpatient services; and prescription records [13]. Additionally, the National Health Screening Program for chronic diseases caters to individuals over 19 years of age and encompasses data from physical examinations, laboratory results, and self-reported questionnaires [14].

Study population

Figure 1 provides an overview of the patient selection process. The initial pool consisted of patients with DM who underwent a National Health Insurance Corporation health examination between January 1, 2015, and December 31, 2016, resulting in a total of 2,613,026 individuals. Patients aged < 20 years (n = 322), those with missing data (n = 88,213), those with prevalent AF before enrollment (n = 104,876), and those who developed AF before 1-year follow-up (n = 27,129) were excluded. Subsequently, the remaining participants were categorized into four groups based on the duration of their DM: new-onset (first diagnosed at baseline health examination), < 5 years, 5–9 years, and ≥ 10 years. This categorization of DM duration has been widely used since study by Zoungas and his colleagues and have shown to be associated with elevated cardiovascular disease risk [15,16,17].

Fig. 1
figure 1

Study flow. Abbreviation T2DM, type 2 diabetes mellitus; NHIC, national health insurance cooperation

Measurement of the amount of physical activity

The intensity and frequency of exercise in health examinations were collected via self-report structured questionnaires using a 7-d recall method. The survey questionnaire used to assess exercise was adapted from the International Physical Activity Questionnaire endorsed by the World Health Organization. This survey consisted of three questions inquiring about the frequency of: (1) light-intensity physical activity (e.g., slow or leisurely walking) for at least 30 min, (2) moderate-intensity physical activity (e.g., brisk walking, slow cycling, or tennis doubles) for at least 30 min, and (3) vigorous-intensity physical activity (e.g., running, cycling over 15 km/h, climbing, or participating in an aerobics class) for at least 20 min during the past week. Previous studies confirmed the validity and reliability of this survey method [18, 19]. Regular physical activity was defined as performing moderate-intensity physical activity for more than 30 min at least five times per week or strenuous physical activity for more than 20 min at least thrice per week (regular physical activity 1) [20]. The criterion for the presence of physical activity involved engaging in either moderate physical activity for a minimum of 30 min once per week or strenuous physical activity for more than 20 min at least once per week (referred to as regular physical activity 2).

To determine physical activity-related energy expenditure (metabolic equivalent task [MET]-min/week), we assigned pre-specified values to each intensity of activity (2.9 for light-intensity, 4.0 for moderate-intensity, and 7.0 for vigorous-intensity activities). Subsequently, the sum of the products of frequency, intensity, and duration was calculated for each activity. To assess the relationship between physical activity and the risk of AF, an analysis was conducted on the hazard ratios (HRs) for incident AF, categorized based on energy expenditure using the previously mentioned method [12, 21, 22]. Energy expenditure was divided into four groups: <500, 500 to 999, 1000 to 1499, and ≥ 1500 MET-min/week, based on the level of energy expenditure [22].

Covariates

Detailed definitions of the inclusion and exclusion criteria (AF, DM), as well as the specified comorbidities (hypertension, dyslipidemia, chronic kidney disease [CKD], proteinuria, heart failure, prior MI, prior stroke, and peripheral artery disease [PAD]), health behaviors (smoking, alcohol consumption, and exercise), and household income are provided in Supplementary Table S1. The administration of oral antihyperglycemic medications, including sulfonylureas, metformin, meglitinides, thiazolidinediones, dipeptidyl peptidase-4 inhibitors, α-glucosidase inhibitors, and insulin were evaluated. General health examinations included measurements of systolic and diastolic blood pressure, BMI, and waist circumference. Additionally, laboratory analyses included estimated glomerular filtration rate (eGFR) and fasting glucose, total cholesterol, triglyceride, HDL cholesterol, and LDL cholesterol levels [23,24,25]. A self-reported questionnaire was used to gather data on smoking habits (never, ex-, or current) and alcohol consumption patterns (none, mild to moderate, or heavy) [8, 9, 23].

Study outcomes and follow-up

The primary outcome assessed throughout the follow-up period was the incidence of AF. AF was defined as the initial diagnosis of related ICD-10-CM codes (I48; AF and atrial flutter) during at least two separate outpatient clinic visits or one hospital admission, or at death [23]. Patients were monitored from the index date until the occurrence of incident AF, disqualification from the NHIS due to immigration, death, or the conclusion of the study (December 31, 2020), whichever occurred first.

Statistical analysis

Numerical data are presented as the mean ± standard deviation for variables with a normal distribution and as the geometric mean with interquartile range for those without a normal distribution. Categorical variables were presented as numbers and frequencies. Baseline characteristics were compared using one-way analysis of variance to assess differences in continuous variables, whereas chi-square tests were conducted to evaluate group differences in categorical variables. The incidence rate (IR) of AF events was determined as the number of new AF events per 1,000 person-years. Kaplan–Meier survival curves of cumulative AF incidence were compared using the log-rank test. Cox proportional hazards regression models were used to calculate HRs and the corresponding 95% CIs. A stepwise approach was employed involving five Cox models with varying covariate adjustments: (i) unadjusted model (model 1); (ii) model adjusted for age and sex (model 2); (iii) model adjusted for age, sex, comorbidities (hypertension, dyslipidemia, CKD), antihyperglycemic agent use (more than three drug prescriptions, insulin), BMI, fasting glucose, low income, and social behavior (smoking, alcohol consumption) (model 3); (iv) model 3 with additional comorbidities (heart failure, prior MI, prior stroke, and PAD) (model 4); and (v) model 4 with the addition of eGFR and proteinuria (model 5). To evaluate the effect of covariates on AF risk across the different DM duration, we performed a univariable and a multivariable logistic regression for the covariates used in Model 5.

Statistical significance was set at p < 0.05. All statistical analyses were performed using SAS version 9.4 (SAS Institute, Cary, North Carolina, USA).

Results

Baseline characteristics

The final study population consisted of 2,392,486 individuals. Based on DM duration, the participants were divided into four groups: new-onset (n = 707,432), < 5 years (n = 649,811), 5–9 years (n = 464,870), and ≥ 10 years (n = 573,073). Table 1 presents the baseline characteristics of the study population according to DM duration.

Table 1 Baseline characteristics of the study population

The study cohort had a mean age of 59.3 ± 12.0 years and was 39.8% female. The most prevalent comorbidity was hypertension (57.9%), followed by dyslipidemia (56.4%). As the duration of diabetes increased, there was a steady and linear increase in the proportion of comorbidities, such as hypertension, CKD, heart failure, prior MI, prior stroke, and PAD. The mean DM duration was 5.3 ± 5.1 years, and as the duration increased, there was a consistent linear rise in the prescription of more than three oral antihyperglycemic agents (0.0% in the new-onset group, 18.4% in the < 5 years group, 35.3% in the 5–9 years group, and 51.8% in the ≥ 10 years group) and insulin (0.0% in the new onset group, 6.8% in the < 5 years group, 8.3% in the 5–9 years group, and 20.6% in the ≥ 10 years group). The percentage of current smokers and alcohol consumers was highest among individuals in the new-onset DM duration group and lowest among those with a DM duration ≥ 10 years (30.9% vs. 16.0% for current smokers; 57.3% vs. 31% for alcohol consumers). The previously known cardiovascular risk factors mostly demonstrated a consistent effect on AF risk despite the duration of DM (Supplementary Table S2 and S3). However, there was variation with the size of effect with different DM duration.

Physical activity according to the duration of diabetes

In the total study population, the proportion of patients performing regular physical activity 2 decreased with an increasing duration of DM (Table 1). Conversely, the proportion of those performing regular physical activity 1 increased as the DM duration increased (Table 1). The mean physical activity level of the total population was 643.0 ± 638.0 MET-min/week. Within each subgroup based on varying DM duration, the mean physical activity increased with an increase in DM duration (Table 1).

Supplementary Table S4 provides a comparison of baseline characteristics based on different levels of physical activity and DM duration. In the new-onset DM group, those with a sedentary lifestyle were the oldest (mean age 55.5 years, p < 0.001), with the highest proportion of women (36.8%; p < 0.001) (Supplementary Table S4 (A)). The proportion of patients with dyslipidemia decreased with an increase in physical activity, but other comorbidities did not show a significant linear association.

Physical activity and the risk of incident AF with different durations of diabetes

Over a mean follow-up period of 3.9 ± 0.8 years, 46,674 patients (2.0% of total population; IR of 5.1 per 1,000 person-years) developed new-onset AF. In the total study population, all the ranges of physical activity were associated with a lower risk of AF compared to no physical activity (Table 2). The amount of physical activity associated with the lowest AF risk was 1,000–1,499 MET-min/week (adjusted HR 0.87; 95% CI 0.84–0.90) followed by ≥ 1,500 MET-min/week (adjusted HR 0.90, 95% CI 0.87–0.93) in the total study population (Table 2). The trends observed in this categorical analysis were consistent with those of the adjusted cubic spline curve (Figs. 2, 3A).

Table 2 Risk of incident AF according to DM duration and physical activity
Fig. 2
figure 2

Adjusted hazard ratio and incidence rate of atrial fibrillation in subjects with different diabetes mellitus duration and physical activity (A) Reference as new onset with no physical activity (B) Reference as no physical activity in each DM duration group. Abbreviation CI, confidence interval; DM, diabetes mellitus; HR, hazard ratio

Fig. 3
figure 3

Cubic spline curve of incident AF in subjects with different diabetes duration and physical activity (A) Total (B) New onset (C) DM duration < 5 years (D) DM duration 5–10 years (D) DM duration. Abbreviation CI, confidence interval; DM, diabetes mellitus; HR, hazard ratio; Min, minute

The crude IR and adjusted HR with model 5 of AF according to the amount of physical activity among the different DM duration groups are presented in Table 2; Fig. 2. Generally, in all groups with different DM durations, a greater amount of physical activity was associated with a lower risk of AF, although the specific amount of physical activity associated with the lowest risk varied among the DM duration groups (Table 2; Fig. 2). The adjusted HRs estimated using other models are presented in Supplementary Table S5.

In patients with new-onset AF, all ranges of physical activity exhibited a lower AF risk, except ≥ 1,500 MET-min/week. Notably, patients participating in physical activity within the range of 1,000 to 1,499 MET-min/week were the least susceptible to AF (adjusted HR 0.88, 95% CI 0.82–0.95) (Table 2; Fig. 2). The adjusted cubic spline curve further corroborated these trends, revealing a J-shaped correlation between the extent of physical activity and risk of AF (Fig. 3B).

Patients with a DM duration < 5 years, at each range of physical activity, displayed a lower AF risk than those with new-onset AF who did not engage in physical activity (Table 2; Fig. 2). Physical activity levels of 1,000 to 1,499 MET-min/week and ≥ 1,500 MET-min/week were both linked to a 9% lower AF risk compared to a DM duration < 5 years and no physical activity (Fig. 2B), and a 12% reduction in AF risk compared to new-onset AF with no physical activity (Fig. 2A).

Patients with a DM duration of 5–9 years, who engaged in physical activity at levels of 1,000 to 1,499 MET-min/week and ≥ 1,500 MET-min/week, demonstrated a significantly lower risk of AF by 17% and 12%, respectively, compared with those with new-onset AF who did not participate in physical activity (Table 2; Fig. 2A). These lower AF risks were also evident when the aforementioned patients were compared with those in the 5–9 years DM duration group who remained physically inactive (Fig. 2B).

Patients with a DM duration exceeding 10 years, across all degrees of physical activity, had a lower AF risk than those with new-onset AF who did not engage in physical activity (Table 2; Fig. 2A). In contrast to patients with a DM duration ≥ 10 years and no physical activity, those with greater levels of physical activity exhibited an enhanced reduction in the risk of new-onset AF; the risk reduction amounted to 8% for physical activity levels < 500 MET-min/week, 10% for physical activity levels of 500–999 MET-min/week, 14% for physical activity levels of 1,000–1,499 MET-min/week, and 15% for physical activity levels ≥ 1,500 MET-min/week (Fig. 2B).

Across all DM duration groups, the beneficial effect of a substantial amount of physical activity on the risk of AF was accentuated in patients with longer DM duration (p-for-interaction, p = 0.002) (Table 2; Fig. 2B). A J-shaped relationship between the magnitude of physical activity and AF risk was counteracted in patients with longer DM durations; specifically, those with DM durations of 10 years or more exhibited a diminished AF risk in tandem with escalated levels of exercise (Fig. 3D).

Discussion

Our principal findings can be summarized as follows: (1) in patients with T2DM, all ranges of physical activity were associated with a lower AF risk compared to physical inactivity; (2) those engaging in physical activity at levels of 1000–1499 MET-min/week demonstrated the lowest AF risk with a J-shaped correlation between the extent of physical activity and AF risk; (3) this J-shaped correlation was observed in those with new-onset AF and a DM duration < 5 years, and was slightly attenuated in those with a DM duration of 5–9 years; (4) in patients with new-onset DM and a DM duration < 5 years and of 5–9 years, those engaging in 1,000–1,499 MET-min/week exhibited the lowest AF risk; and (5) for patients with a DM duration ≥ 10 years, higher physical activity levels led to a significantly lower risk of AF, and a longer DM duration amplified the positive impact of physical activity on AF risk (Graphical abstract).

In this large-scale, nationwide, population-based study, we analyzed the effect of physical activity on the risk of incident AF according to the duration of DM. We demonstrated that even among patients with a longer DM duration, those who engaged in a substantial amount of physical activity showed a lower relative risk of AF than those with new-onset AF who remained physically inactive.

Exercise improves glycemic control and reduces HbA1c levels in patients with DM regardless of the type of exercise [26]. Concerning the intensity of physical activity, the current recommendations for both aerobic and resistance exercises suggest engaging in moderate-intensity workouts as a minimum, with the option to target a more vigorous intensity if desired [27]. Consequently, the most recent consensus from the American College of Sports Medicine highlights the importance of regular physical activity and encourages individuals with T2DM to reduce their sedentary time and break up sitting periods, in line with the 2018 Physical Activity Guidelines for Americans [20, 28]. Nonetheless, the impact of physical activity on the risk of cardiovascular disease has remained complex [29].

One concern regarding physical activity intensity and AF is that excessive endurance exercise might increase the risk of AF [30, 31]. In a large cohort of Swedish men, excessive exercise among young adults was associated with an increased risk of AF [32]. Additionally, a previous systematic review established that athletes have a higher risk of AF than nonathletes [11]. However, one pooled observational cohort study encompassing more than 2 million participants identified no general association between regular physical activity and AF risk in overall population [33]. Nonetheless, the study did note a disparity between sexes, showing an increased risk of AF in men and a reduced risk in women, with the quality of evidence ranging from low to moderate.

Previous research has also demonstrated a U-shaped correlation between physical activity and AF [34]. Concerning the amount of physical activity and AF in previous nationwide population studies, the presence of physical activity has consistently shown the possibility of a beneficial effect on AF risk reduction [8, 9, 12]. Considering the outcomes of this study in conjunction with prior research, the relationship between physical activity and AF appears to be complex, and is influenced by multiple factors including age, sex, and comorbidity-related elements such as DM duration. Furthermore, our findings support the favorable effects of physical activity without necessitating concerns about the heightened risks associated with excessive exercise during the different stages of DM.

In a previous nationwide population study that focused on cardiovascular diseases (MI and stroke), regular exercise was associated with a dose-dependent decrease in risk among patients with T2DM, particularly in individuals aged 65 years and older [35]. Concerning the outcome of AF, we previously demonstrated a comparable pattern of risk reduction, with a more pronounced effect observed in individuals aged ≥ 65 years [12]. In the previous study, subgroup analyses based on the duration of DM were conducted but only considered durations of < 5 years and > 5 years [12]. The present study contributes to the literature by examining the effects of physical activity on distinct durations of DM.

A longer DM duration is associated with elevated rates of microvascular complications, macrovascular complications, and mortality [15, 36]. Additionally, the progression of DM was associated with a 3% annual increase in the incidence of AF [37]. Within this study, among the physically inactive participants, the crude incidence of AF increased in tandem with DM duration. The increased incidence of AF in individuals with diabetes may be attributed to factors such as left atrial enlargement, interstitial fibrosis in the atrial myocardium, and electrical remodeling [38, 39]. Moreover, findings from an in vitro study found a potential link between advanced glycation end products and heightened atrial myocyte senescence, contributing to a susceptibility to AF [40].

As the risk of AF varies with different durations of DM, we explored the potential effect of physical activity on AF risk. Individuals engaging in 1,000–1,499 MET-min/week demonstrated the lowest risk of AF. When compared with physically inactive individuals with new-onset DM, a more substantial reduction in AF risk was evident among those with heightened physical activity, particularly those with an extended DM duration. This outcome contrasts with the findings from the nationwide cohort study conducted by Jin et al. [41] In their research, Jin and his colleagues found a U-shaped correlation between physical activity and AF risk, with no significant risk reduction in highly active individuals, akin to new onset DM in our study. [41] A potential explanation for the varying effects of physical activity on different DM durations could be changes in the autonomic nervous system. As DM duration increases, so does the prevalence of autonomic neuropathy [42, 43]. Physical activity, shown to beneficially affect heart rate variability in a previous study [44], may counteract this alteration and enhance the positive effect on AF risk in groups with longer DM duration.

In contrast to earlier investigations that demonstrated an augmented risk of AF associated with excessive physical activity [30, 31], our study did not identify an elevated AF risk in any of the analyzed groups. Only in the new-onset DM group did those engaging in physical activity exceeding 1,500 MET-min/week exhibit a risk profile comparable to that of the physically inactive cohort. Nevertheless, the favorable impact of regular physical activity was most prominent in individuals with a long DM duration or a heightened burden of comorbidities, as evidenced by the attenuated J-curve observed in the cubic spline curve. This underscores the salutary role of routine physical activity in mitigating the risk of AF, particularly in patients with substantial comorbidities.

Engaging in regular physical activity is uncommon in individuals with DM. For example, the absence of participation in seeking diet or exercise advice remained steady (< 30% of Americans) from 2005 to 2015 [45, 46]. In this study, approximately half (50.3%) of the patients diagnosed with T2DM participated in physical activity of at least moderate intensity every week. Nevertheless, the occurrence of weekly physical activity diminished with longer durations of DM. Furthermore, individuals who engaged in physical activity at least five times per week constituted approximately 20% of the entire population. In terms of age, individuals with DM aged between 30 and 49 years old were more prone to receiving diet or exercise counseling than those aged 75 years and above [45]. Given the low occurrence of physical activity and the limited participation of older individuals, greater emphasis should be placed on promoting exercise in patients with DM regardless of their DM duration, based on the positive effects of physical activity, as shown in this study.

Study limitations

This study had several limitations. First, this was an observational retrospective study. Nonetheless, the strength of this study is the inclusion of over two million participants. Second, there is the potential for recall bias due to the methodology employed. The assessment of physical activity relied on self-reported questionnaires that captured patient behaviors from the preceding week. Third, physically inactive patients comprise a heterogeneous population, including individuals who are medically incapable of engaging in exercise and those who exhibit a lack of concern about adopting a healthy lifestyle. Fourth, only leisure-time activity was accounted for and not occupational or household activities. Fifth, this study did not perform multiple (potentially underpowered) subgroup analyses, which could have depicted some variations based on sex or age. Finally, owing to the nature of the study design, the precise mechanisms underlying reduced AF associated with increased physical activity could not be identified.

Conclusions

In conclusion, among patients with DM, longer DM duration was associated with a higher risk of incident AF, whereas increased physical activity generally reduced the risk of AF. Engaging in > 1,500 MET-min/week was associated with the greatest reduction in AF risk in patients with a longer DM duration, highlighting the potential benefits of higher activity levels for AF prevention.