Introduction

Stroke is a grave cerebrovascular disorder, ranking as the second leading cause of mortality and the third leading cause of both death and disability globally1. With the progressive aging of the population, stroke imposes significant health and economic burdens on individuals and society. Although the precise etiology and mechanisms of stroke remain incompletely elucidated, inflammation unequivocally assumes a central role in its onset and progression2,3. Inflammation serves as a natural protective response to bodily injuries or infections; however, sustained, chronic inflammation can lead to endothelial dysfunction, platelet activation, and a prothrombotic state, ultimately heightening the risk of stroke4. Additionally, previous studies have indicated that inflammatory mediators such as C-reactive protein (CRP) and interleukin-6 (IL-6) undergo changes during the acute phase of stroke, serving as potential biomarkers for stroke prognosis or imminent complications5. In conclusion, inflammation is key in stroke development, holding significant implications for the prevention and management of strokes.

Distinct dietary patterns may result in varying levels of inflammation6. Past research has indicated that pro-inflammatory diets can elevate blood concentrations of inflammatory markers such as complement component C3 (C3), CRP, tumor necrosis factor (TNF)-α and IL-67. Therefore, adopting anti-inflammatory diets holds promise as a potential strategy for stroke prevention and intervention. The Dietary Inflammatory Index (DII) is a comprehensive tool used to assess an individual’s dietary inflammation levels based on the impact of various nutrients in the diet on the inflammatory response8. While the DII shows promise in dietary studies related to inflammatory diseases, its association with stroke remains poorly understood, and research findings are inconsistent9,10. These discrepancies in study outcomes may be attributed to the oversight of underlying factors, such as insulin resistance (IR). IR is a condition characterized by the body's reduced responsiveness to insulin, resulting in ineffective glucose uptake by cells and the development of hyperglycemia11. Current research indicates that metabolic changes resulting from inflammation play a crucial role in the development of insulin receptor dysfunction, implying that a more pro-inflammatory diet may elevate the risk of IR12. Furthermore, IR is strongly linked not only to diabetes mellitus (DM) and cardiovascular diseases (CVD) but also to the onset and progression of stroke13,14. Therefore, IR likely plays a significant role in the interplay between dietary inflammation and stroke.

At present, treatment options for stroke remain very limited15. It is crucial to fully understand the risk factors for stroke and take preventive measures to nip it in the bud. There is a complex and subtle relationship between DII, stroke, and IR, but there are no clear research results among these three. Therefore, this study will explore the relationship between DII and stroke in the adult population based on large-scale population data collected in the National Health and Nutrition Examination Survey (NHANES) database, and further investigate the mediating role of IR between the two.

Results

Characteristics of participants

The general characteristics of the study population are detailed in Table 1. This study included a total of 13,063 participants with a mean age of 47.41 ± 16.83 years. Among them, 508 individuals were diagnosed with stroke (3.89%). Compared with the non-stroke group, stroke participants exhibited higher proportions of female, non-Hispanic black, education level less than high school, widowed, former drinkers, with underlying conditions (DM, hypertension and hyperlipidemia), and a history of medication use (antidiabetic, antihypertensive, and antihyperlipidemic drugs) (P < 0.05). Additionally, the stroke participants had higher levels of age, BMI, FPG, SBP, HOMA-IR and DII, while energy intake, DBP and TC were lower than those in the non-stroke group (P < 0.05).

Table 1 Characteristics of the study population*.

Characteristics of the participants according to the quartiles of DII

The characteristics of participants by DII quartile are presented in Table 2. With increasing DII scores, participants tend to exhibit higher levels of BMI, insulin, SBP, TC, and HOMA-IR, while displaying lower levels of energy intake, DBP, and HDL-C (P < 0.05). Furthermore, we observed that, in comparison to the first quartile of DII, participants in the second through fourth quartiles of DII showed a higher prevalence of female, non-Hispanic blacks, stroke, with underlying conditions (DM, hypertension and hyperlipidemia), and a history of antihypertensive drugs use. Conversely, the proportion of participants with an education level of more than high school, partner or married, and current drinkers was lower (P < 0.05). The characteristics of participants according to the DII tertiles were similar to those of DII quartiles, except HDL-C, HOMA-IR and antidiabetic drugs. Based on the DII tertiles, when compared to the first tertiles, individuals in the second tertiles and third tertiles had higher a history of antidiabetic drugs use, but the clinical correlation between DII tertiles and HDL-C and HOMA-IR has not been definitively established (P > 0.05) (Supplementary Table S1).

Table 2 Characteristics of the participants according to the quartiles of DII*.

Association between DII and stroke

As shown in Table 3, the DII demonstrated a positive correlation with the risk of stroke in the second quartile [OR: 1.45 (95% CI: 1.02–2.08)] to the fourth quartile [OR: 2.20 (95% CI: 1.63–2.95)] compared with the first quartile in Model 1. This positive correlation persisted in the third quartile [OR: 1.78 (95% CI: 1.18–2.68) and the fourth quartile [OR: 1.70 (95% CI: 1.16–2.50)] compared with the first quartile in Model 2 and Model 3. Importantly, a significant dose–response relationship was evident in all three models (P < 0.05). An analysis with DII to increase 1-SD yielded similar results in Model 1 [OR: 1.42 (95% CI: 1.27–1.58)], Model 2 and Model 3 [OR: 1.30 (95% CI: 1.13–1.51)]. The spline variable confirmed that DII in all three models were significant non-linearly associated with the risk of stroke (P-nonlinear < 0.05), and the graph of the relationship revealed that an increase in DII was consistently associated with an increased risk of stroke (shown in Fig. 1). Similarly, the association between DII tertiles and stroke displayed the same characteristics. (Supplementary Table S2).

Table 3 Risk of stroke according to quartiles of DII.
Figure 1
figure 1

The restricted cubic spline curve was used to model the relationship between DII and the risk of stroke among all participants (AC). (A) did not adjust any covariates; (B) adjusted for age, gender, race, education, marital status, BMI, energy intake, drinking status, FPG, SBP, DBP, TC, HDL-C, DM, hypertension, hyperlipidemia, antidiabetic drugs, antihypertensive drugs, and antihyperlipidemic drugs; (C) further adjusted for HOMA-IR.

DII and stroke risk stratified by HOMA-IR category

Table 4 reveals that when stratified by HOMA-IR category, the risk of DII and stroke was primarily notable in the fourth quartile of DII except for individuals with 1.50 ≤ HOMA-IR < 2.51 in Model 1 [the ORs (95% CIs) were 2.89 (1.45–5.75), 2.02 (1.11–3.67), 2.22 (1.22–4.05)]. And in Model 2, the risk of DII and stroke was primarily notable in the fourth quartile of DII for individuals with 0.03 ≤ HOMA-IR < 1.50 [the OR (95% CI) was 2.87 (1.04–7.89)]. Additionally, there was no interaction observed between DII and HOMA-IR on stroke risk (P-interaction > 0.05). The risk of DII tertiles and stroke displayed similar characteristics excluding the association between them in Model 2 (Supplementary Table S3).

Table 4 Risk of stroke by quartile of dietary inflammatory index stratified according to HOMA-IR.

Mediating role of HOMA-IR

The result of the mediation analysis is shown in Fig. 2. Increased DII was associated with an increased risk of stroke, and the effect (1.54%) can be explained by a significant indirect effect of HOMA-IR (OR: 4.62 × 10−5, 95% CI: 1.67 × 10−5 to 6.54 × 10−5) (Fig. 2A). After adjusting for covariates, the indirect effect was not statistically significant (OR: 1.90 × 10−7, 95% CI: − 2.20 × 10−5 to 6.31 × 10−6) (Fig. 2B).

Figure 2
figure 2

Mediating effect of HOMA-IR between DII (A,B) and stroke. The 95% CI of these estimates was computed using the bootstrap method (1000 samples). (A) did not adjust any covariates; (B) adjusted for age, gender, race, education, marital status, BMI, energy intake, drinking status, FPG, SBP, DBP, TC, HDL-C, DM, hypertension, hyperlipidemia, antidiabetic drugs, antihypertensive drugs, and antihyperlipidemic drugs.

Discussion

In this cross-sectional observational study, a total of 13,063 participants were recruited to assess the correlation between DII and IR with the risk of stroke. Our results indicate that DII is an independent risk factor for stroke in the adult population of the U.S. The baseline inflammatory characteristics of diet show a positive non-linear association with the risk of stroke, and this association remains significant even after adjusting for known or potential confounding factors. Furthermore, we observed that stroke patients often have higher HOMA-IR levels, which gradually increase with higher DII scores. In Model 1 (Fig. 2A), which did not adjust for relevant covariates, HOMA-IR played a weaker mediating role in the association between DII and stroke. However, when considering these covariates (Fig. 2B), HOMA-IR no longer mediated the relationship between DII and stroke. Finally, there is insufficient evidence to support a substantial interaction between DII and HOMA-IR on the risk of stroke.

Prior studies have primarily centered on exploring the link between DII and CVD. In the Ravansar Non-Communicable Disease (RaNCD) cohort study16, where 9% of participants had prior CVD records, the investigation set out to scrutinize the connection between DII and CVD risk. The findings unveiled that higher adherence to a pro-inflammatory diet correlated with an elevated risk of CVD (OR: 1.4, 95% CI: 1.1–1.8). In a large prospective cohort study, the Supplémentation en VItamines et Minéraux AntioXydants (SU.VI.MAX)17, the investigation focused on the correlation between DII and the occurrence of overall CVD and its subtypes, including myocardial infarction, stroke, sudden death, angina pectoris and revascularization interventions. The results showed a noteworthy connection between a pro-inflammatory dietary pattern and an elevated risk of myocardial infarction, while such an association was not observed for the other subtypes of CVD. Furthermore, the study by Garcia-Arellano18 and Ramallal19 et al. also demonstrated that the quartiles of DII were positively associated with the overall risk of CVD and exhibited a linear dose–response trend.

In this study, we specifically focused on the subtype of CVD, which is stroke. Our findings revealed that the DII scores were higher in the stroke group as opposed to the non-stroke group (Table 1). Participants with higher DII scores (reflecting a pro-inflammatory diet) had a greater risk of stroke in comparison to those with lower DII scores (reflecting an anti-inflammatory diet) (Table 3). This observation corresponds with previous research on the relationship between DII and stroke10,20,21. Shi10 and Ganbaatar20 study suggest that individuals who have had a stroke tend to follow diets with higher inflammatory potential, and those with elevated DII scores face a higher risk of stroke. Comparing the fourth quartile with the first quartile, the risk of stroke was reported as (HR: 1.34, 95% CI: 1.03–1.75) and (OR: 1.21, 95% CI: 1.06–1.38). However, their study exclusively considered a single division method for DII, which might not adequately account for the potential for false positive or false negative results due to interval interference. Similarly, in a case–control study, it was observed that adopting a healthy dietary pattern played a significant role in reducing the risk of stroke when compared to the control group21. But their study had a relatively small sample size, highlighting the need for improving sample representativeness. In contrast, our study not only utilized data from a large and diverse sample of individuals but also conducted a thorough analysis utilizing two division methods (quartiles and tertiles), significantly enhancing the representativeness of the sample and the reliability of the data results.

However, it is also inconsistent with the findings of some studies. The SU.VI.MAX cohort17 and a prospective cohort study of Australian women22 both reported a lack of statistical association between DII scores and stroke. We posit several potential reasons for these findings. Firstly, the prospective cohort study may have had a limited number of participants in the stroke group, leading to reduced sample robustness. Secondly, these studies encompassed diverse groups with variations in racial backgrounds, dietary practices, and cultural norms. Our investigation was centered on the American population, while the two prospective cohorts predominantly examined French and Australian populations. Last but not the least, variations were evident in both the age range and gender composition of participants across the different studies. Our study exclusively involved American adults aged 20 years and older, whereas the SU.VI.MAX cohort enrolled individuals aged 35 to 60, and the Australian cohort concentrated on females aged 50 to 55.

In our study, stroke patients had higher HOMA-IR levels (Table 1). Compared to the first quartile, the second through fourth quartiles also showed elevated HOMA-IR levels (Table 2). Bienek et al. made similar observations, noting increased insulin concentrations and HOMA-IR levels in stroke patients23. Many studies have confirmed the relationship between stroke and IR. According to Rundek et al., IR serves as a marker for an increased risk of stroke in non-diabetic patients24. Research from a Japanese community-based cohort study also identified elevated HOMA-IR levels as a significant risk factor for stroke, even after adjusting for covariates (HR: 1.47, 95% CI: 1.14–1.88)25. The relationship between DII and IR is a subject of ongoing debate among scholars. While some studies, like that of Moslehi et al., found no significant association between DII and insulin resistance in Iranian adults26. others, such as Shu et al., strongly argue for a close relationship between DII and IR, showing that higher DII scores are associated with larger HOMA-IR values12. Furthermore, a meta-analysis also supports the strong association between IR and DII27. Our study partly validates this association, but a limitation arises when categorizing DII into tertiles. While HOMA-IR levels increase with higher DII scores, the clinical significance remains unclear (Supplementary Table S1). This could be related to data distribution and variability, as quartiles for DII may better capture the association with IR. It's also possible that a threshold effect exists, with a significant increase in IR observed only when DII values exceed a certain threshold. Current research suggests that inflammation plays a pivotal role in causing pancreatic dysfunction and elevating circulating fatty acid levels, contributing to the occurrence and development of cardiovascular diseases28,29. Nonetheless, our study has uncovered that the link between DII and stroke may operate independently of IR. The HOMA-IR scores (ranging from 0.028 to 269.41) were analyzed in quartiles (Supplementary Table S4). In comparison to the threshold-based method (HOMA-IR = 2.7)30, the quartile approach provides a more comprehensive exploration of insulin resistance at different levels, capturing potential diversity and variability beyond specific threshold values. It is noteworthy that even after adjusting for HOMA-IR, a significant association between DII and stroke persists (Table 3). Moreover, within our stratified model, an increased stroke risk was evident exclusively within the Q3, Q4, T2, or T3 DII ranges for particular HOMA-IR intervals, with no observable interaction between DII and HOMA-IR. This implies that HOMA-IR and DII may independently impact the occurrence of stroke. In the mediation analysis, HOMA-IR exhibited weak mediation in the unadjusted model (Fig. 2A) and became insignificant after multivariate adjustment (Fig. 2B). This implies that other factors may influence the relationship between DII and stroke regarding the effect of HOMA-IR. Subsequent research could consider potential mediators among the adjusted covariates to further investigate their role in the connection between DII and stroke.

This study exhibits multiple strengths. Firstly, we leveraged extensive, nationally representative sample data and meticulously accounted for potential confounding factors, rendering the results both robust and credible. Secondly, a diverse range of analytical methods were employed to investigate the correlation between DII and stroke, as well as the influence of IR on it. Our study elucidated the independent association of DII with the risk of stroke, and it demonstrated that IR and DII did not exhibit synergistic effects on the risk of the disease, a finding that holds significant public health implications.

Nonetheless, it’s important to acknowledge certain limitations in our interpretation of the results. Firstly, our DII score estimation was based on just 27 dietary parameters. It’s worth noting that no previous study has employed all 45 dietary parameters for calculating DII scores concerning stroke risk or even CVD risk. In previous studies, most studies used only 20–36 dietary parameters to calculate DII scores17,20,31,32,33. Moreover, one study has reported that a reduction in the number of dietary parameters available did not significantly impact the predictive capability of DII scores34. Additionally, information about stroke events was obtained through individual interviews, potentially introducing data collection bias due to the presence of severe stroke patients who were not equipped to respond to interviews. Furthermore, NHANES is a cross-sectional study, making it unsuitable for determining causality. To add further, dietary intake was estimated based on a 24-h recall, introducing potential recall bias that may not accurately reflect individuals' daily dietary habits. However, some studies suggest that the 24-h recall method may be sufficient to assess an individual's daily dietary intake35. Despite these limitations, our study contributes valuable insights into the association between DII, IR, and stroke. Further prospective studies are necessary to establish precise associations between variables and the occurrence of stroke.

In summary, our study indicates that as the DII increases, it is associated with elevated levels of indices related to IR. Furthermore, DII is independently linked to an increased risk of stroke in American adults. We found no sufficient evidence to support a multiplicative effect of DII and HOMA-IR on disease risk, nor did we find evidence that HOMA-IR acts as a mediator in this relationship.

Methods

Participants and study design

NHANES is a cross-sectional survey in the United States that integrates interviews and physical examinations. Its primary objective is to gather data regarding the health and nutritional status of both adults and children. NHANES uses a complex, stratified, multistage probabilistic study design to recruit a representative sample of the U.S. population annually and obtain informed consent from all participants. We employed NHANES data encompassing seven survey cycles spanning from 2005 to 2018. Initially, there were a total of 70,190 participants in our study. However, we restricted our analysis to 39,749 subjects aged 20 years and older. We excluded individuals based on the following criteria: (i) lacking dietary records or abnormal energy intake (daily energy intake ≤ 500 kcal or ≥ 5000 kcal) (n = 3295); (ii) without stroke data (n = 44); (iii) without fasting plasma glucose (FPG) or insulin value (n = 19,002); (iv) without demographics [gender, education level, race and marital status] or drinking data or physical examination data [height weight and blood pressure] or laboratory tests data [total cholesterol (TC) and high density lipoprotein cholesterol (HDL-C)] or medical history data [DM, hypertension, hyperlipidemia, as well as the use of antidiabetic, antihypertensive, and antihyperlipidemic drugs] or weight equal to 0 (n = 2781). Finally, we arrived at a final dataset comprising 13,063 participants for our comprehensive statistical analysis (Fig. 3).

Figure 3
figure 3

Flowchart of the participants selection from NHANES 2005–2018.

Dietary inflammatory index

DII is a comprehensive tool primarily designed to assess an individual's overall dietary inflammatory potential. It utilizes data derived from single 24-h dietary recalls within the NHANES dataset, which includes 27 dietary ingredients and nutrient parameters used for calculating the DII score10,31. These components comprise carbohydrates, protein, cholesterol, various types of fats (saturated, monounsaturated, polyunsaturated), omega-3 and omega-6 polyunsaturated fatty acids, vitamins (A, B1, B2, B6, B12, C, D, E), niacin, folic acid, beta carotene, minerals (iron, magnesium, zinc, selenium), alcohol, fiber, and caffeine. The DII calculation involves several key steps31. Initially, the intake of each dietary ingredient or nutrient is standardized using Z-scores. This process entails subtracting the individual’s estimated intake from the standard average and then dividing it by the world standard deviation, resulting in a distribution centered at 0 and bounded between − 1 and + 1. Subsequently, the Z-scores are multiplied by each dietary component’s respective inflammatory effect score. The summation of these calculations yields the individual’s DII score, which can range from negative values (indicating anti-inflammatory properties) to positive values (indicating pro-inflammatory properties).

Stroke

We defined stroke based on self-reported interview data obtained from the Medical Condition Questionnaire. The participants were asked the following questions: “Has a doctor or other health professional ever told you that you have had a stroke?” If they answered in the affirmative, they were categorized into the stroke group. Conversely, participants who denied having been informed of a stroke were included in the non-stroke group10.

Homeostatic model assessment of insulin resistance

The homeostatic model assessment of insulin resistance (HOMA-IR) was employed to evaluate IR levels in individuals. HOMA-IR is calculated as the product of fasting insulin (μU/mL) and fasting blood glucose (mmol/L), divided by 22.530. A HOMA-IR value of 1 is considered normal, with higher values indicating a greater degree of IR in individuals. IR was defined as a HOMA-IR value exceeding 2.730.

Study covariates

Drawing from previous research, multivariable models have taken into account potential confounding variables associated with the relationship between DII and stroke10,12,24,36,37. These variables encompass the following factors: age, gender (female or male), race (non- Hispanic black, non-Hispanic white, Mexican American, other Hispanic, other race), education level (less than high school, completed high school and more than high school), marital status (never married, partner or married, separated and divorced, widowed), body mass index (BMI), energy intake, drinking status (never, former drinker, current drinker), FPG, systolic blood pressure (SBP), diastolic blood pressure (DBP), TC, HDL-C, DM, hypertension, hyperlipidemia, and the use of antidiabetic, antihypertensive, and antihyperlipidemic drugs.

Statistical analysis

We weighted the NHANES data for analysis. Baseline population characteristics were reported as mean ± standard deviation for continuous variables and as numerical values (percentage) for categorical variables. Weighted Student’s t-test or weighted linear regression was employed to analyze differences among continuous variables. The weighted chi-squared test was used to assess disparities in categorical variables. Then, to estimate the association between stroke and DII quartiles, logistic regression was employed in three different models. We calculated the odds ratio (OR) and 95% confidence interval (CI) for each model, reporting the risk of stroke occurrence for each 1-SD (z-score) increase in DII. Three models were proposed: Model 1 without any adjustment for confounding factors; Model 2 adjusted for age, gender, race, education, marital status, BMI, energy intake, drinking status, FPG, SBP, DBP, TC, HDL-C, DM, hypertension, hyperlipidemia, and the use of antidiabetic, antihypertensive, and antihyperlipidemic drugs; Model 3 further adjusted for HOMA-IR. Furthermore, in order to evaluate whether there is a dose–response relationship between DII and stroke among the three models, we placed three nodes at the 5th, 35th, 65th and 95th percentiles of the DII distribution to construct restricted cubic spline models.

We conducted a stratified analysis in Models 1 and 2 by dividing HOMA-IR into quartiles to evaluate its potential moderating impact on IR. We also assessed the impact of the interaction between DII and HOMA-IR on stroke by introducing a multiplicative term between the two variables within a logistic model. Afterward, we employed mediation models using both linear and logistic regression to assess the direct impact of DII on stroke risk and the indirect influence mediated by HOMA-IR. Three effect estimates were obtained through the bootstrap method: the total effect, representing the overall effect of DII on stroke; the direct effect, indicating the effect of DII on stroke after controlling for the mediator variable HOMA-IR; and the indirect effect, indicating the effect of DII on stroke mediated by HOMA-IR. In addition, we conducted sensitivity analyses by reclassifying DII into tertiles to mitigate the impact of different DII categorizations on the results. All statistical analyses were conducted with R version 4.2.3 (https://www.r-project.org/, The R Foundation), and the “survey” packages was used. A significance level of P-values < 0.05 (two-tailed) was considered statistically significant.

Ethics statement

The NHANES protocols were approved by the ethics review board and included the written informed consent of all participants, following the principles of the Declaration of Helsinki.