Stroke is a devastating medical condition and one of the leading causes of death and disability worldwide. According to the World Health Organization (WHO), stroke affects approximately 15 million people each year, resulting in 5 million deaths and 5 million people being permanently disabled1. In addition, stroke places a significant economic burden on society, with estimates of the total cost of stroke ranging from $28 billion to $68 billion annually in the United States alone2. Therefore, identifying modifiable risk factors for stroke is of great public health importance. Dietary habits are among the modifiable risk factors that have been extensively studied for their role in the prevention of stroke3,4,5. A healthy diet, characterized by a high intake of fruits, vegetables, whole grains, and lean protein sources, has been shown to be associated with a reduced risk of stroke6,7. Several dietary indices have been developed to assess overall diet quality, such as the Dietary Approaches to Stop Hypertension (DASH) diet, the Mediterranean diet, and the Healthy Eating Index (HEI)7,8,9. Moreover, there are gender differences in the impact of dietary quality on the occurrence of various diseases. Several studies have shown that women are more susceptible to the negative effects of a poor diet, particularly in the context of cardiovascular disease (CVD)10,11.

The HEI is a measure of diet quality that assesses adherence to the United States Department of Agriculture’s (USDA) dietary guidelines5,12. The HEI is based on 13 components, including the intake of fruits, vegetables, whole grains, dairy, protein foods, seafood, and added sugars, as well as the ratio of unsaturated to saturated fats and sodium intake13,14. The HEI has been widely used in epidemiological studies to evaluate the association between diet quality and chronic disease outcomes, including cardiovascular disease, diabetes, and cancer14,15,16. Although the association between diet quality and the risk of stroke has been investigated in several studies, the results have been inconsistent. Some studies have found that a better dietary quality is associated with a lower risk of stroke. Moreover, most of the previous studies have been conducted without a standard measurement to evaluate the dietary quality, and few study on the association between HEI and stroke17,18.

Therefore, the aim of this study was to investigate the association between HEI scores and the risk of stroke in a population-based sample of adults in the United States. We hypothesized that a higher HEI score would be associated with a lower risk of stroke. The findings of this study could provide insights into the potential role of diet quality in stroke prevention and inform the development of public health strategies to improve diet quality and reduce the burden of stroke.


Study population

NHANES, a continuous cross-sectional survey, conducted by the National Center for Health Statistics in the Centers for Disease Control and Prevention once every 2 years to assess the health and nutrition status of residents in the U.S. NHANES team employed “stratified multistage probability sampling” method to ensure participants enrolled were representative. The detailed method description can be found on the NHANES official website (, last accessed on 18 Mar 2023)19. 10 consecutive study circles of NHANES from 1999/2000 to 2017/2018 were included in the present study. The exclusion criteria were as follows: (1) age < 18 or ≥ 80 years, (2) participants without stroke status, (3) pregnant individuals, (4) participants without dietary data or missing.

Dietary information

The dietary interview, referred to as What We Eat in America (WWEIA), is conducted collaboratively by the US Department of Agriculture (USDA) and the US Department of Health and Human Services (DHHS). All eligible NHANES participants undergo two 24-h dietary recall interviews to disclose the types and amounts of foods they consumed in the 24 h prior to the interview (from midnight to midnight). These interviews aim to gather information about the quantities and varieties of foods individuals ingested in the 24 h leading up to the interview, covering the time span from midnight to midnight. The first dietary recall is conducted face-to-face at the Mobile Examination Center (MEC), while the second recall occurs through a telephone interview approximately 3 to 10 days after the initial recall. In this study, participants’ daily intake of HEI components is determined by averaging their two dietary recalls. The USDA’s Food and Nutrient Database for Dietary Studies (FNDDS) is employed to compute the nutrients and food components in all food items. The dataset containing total nutrient intakes serves as a concise record of the nutrient intake for each individual. The NHANES data from 1999 to 2018 was collected to gather information on the participants’ dietary intake, including food frequency questionnaires, 24-h dietary recall, and supplement intake. The HEI version 2015 was employed for assessing dietary quality. HEI ranges from 0 to 100, the higher HEI scores, the better quality of diet. The HEI score is calculated based on ten components, which are grouped into two categories: Adequacy and Moderation. Adequacy components are further divided into four subcategories: total fruit, whole fruit, total vegetables, and greens and beans. Moderation components are divided into five subcategories: whole grains, dairy, total protein foods, fatty acids, and added sugars. Each component has a specific set of standards and guidelines, and the score for each component ranges from 0 to 5, depending on how well the participant meets the recommendations. The component scores are summed to create a total score ranging from 0 to 100. The HEI score is then used to analyze the association between the quality of the diet and the risk of stroke, by comparing the scores of participants who have had a stroke with those who have not. Due to the wide range of HEI-2015, which spans from 0 to 100, the increase in the prevalence of stroke for each incremental unit of HEI-2015 is minimal. The decision to categorize HEI scores into quartiles was based on the desire to explore potential associations between dietary quality, as assessed by the HEI, and the risk of stroke across different levels of dietary quality. We have calculated and present the quartiles of HEI scores for both the total sample and stratified by stroke and non-stroke groups. The quartile boundaries for the total sample, stroke, and non-stroke groups are as follows: Total Sample: Q1: (0–26.1]; Q2: (26.1–51.3]; Q3: (51.3–72.6]; Q4: (72.6–96.7]. Stroke Group: Q1: (0–23.2]; Q2: (23.2–47.8]; Q3: (47.8–70.3]; Q4: (70.3–93.2]. Non-Stroke Group: Q1: (0–28.8], Q2: (28.8–53.2], Q3: (53.2–76.9]; Q4: (76.9–96.7].

Definition of stroke

Like previous articles published using NHANES data, the primary outcome of this study was determined based on self-reported history of stroke. Participants were asked in the health questionnaire whether a healthcare professional had ever informed them of a previous stroke diagnosis. Those who responded affirmatively were classified as having had a stroke.


Structured questionnaires and face-to-face interviews were employed to collect demographic information, encompassing age, gender, racial/ethnic background, educational level, physical inactivity, smoking status, and patterns of alcohol consumption. Participants meeting any of the following criteria were categorized as having hypertension: (1) Mean systolic blood pressure (SBP) ≥ 140 mmHg; (2) Mean diastolic blood pressure (DBP) ≥ 90 mmHg; (3) Self-reported diagnosis of hypertension; (4) Current use of antihypertensive medications. Additionally, diabetes served as a notable confounding factor with potential implications for stroke. Those with a prior diagnosis of diabetes by a physician or health professional were classified as having diagnosed diabetes. Individuals without a history of diagnosed diabetes but demonstrating HbA1c levels of 6.5% (47.5 mmol/mol) or higher, fasting plasma glucose (FPG) levels of 126 mg/dL (7.0 mmol/L) or higher, or 2-h oral glucose tolerance test (OGTT) plasma glucose levels of 200 mg/dL or higher (11.1 mmol/L), as determined by laboratory tests, were also designated as having diabetes. All blood samples were collected after at least an 8-h overnight fast to examine blood biochemical indexes. Dyslipidemia was defined as the presence of one of the conditions below in the participants: (1) self-reported dyslipidemia, (2) currently using hypolipidemic drugs, (3) total cholesterol (TC) ≥ 200 mg/dL, (4) TG ≥ 150 mg/dL, (5) LDL-C ≥ 130 mg/dL, and (6) HDL-C < 50 mg/dL (female) or < 40 mg/dL (male). According to WHO guidelines, normal weight, overweight, and obesity were defined as participants with a BMI < 25 kg/m2, 25 ≤ BMI < 30 kg/m2, and BMI ≥ 30 kg/m2, respectively. We used the Chronic Kidney Disease Epidemiology Collaboration creatinine equation to calculate the estimated glomerular filtration rate (eGFR).

Statistical analysis

NHANES analytic and reporting guidance was followed for all analysis procedures. Stratified multistage probability sampling was utilized in NHANES to reduce bias caused by post-stratification, non-response, and oversampling. To ultimately produce representative estimates nationwide, each participant was assigned a specific sampling weight based on the primary sampling unit. In this study, all analysis was produced according to the final 20-year survey weight in statistical analysis. Weighted mean (95% confidence interval (CI)) was used to present continuous variables, while proportions (95% CI) were used to represent categorical variables. Adjusted Wald test for continuous variables and Rao–Scott χ2 test for categorical variables were used to compare baseline characteristics. HEI components were compared using the adjusted Wald test. Considering the potential inflation of Type I error due to the numerous hypothesis tests performed, it is crucial to employ a correction method to mitigate this concern. The Bonferroni correction was used. Weighted multivariable logistic regression analysis was adopted to assess the association of HEI with stroke. In order to assess the non-linear relationships between HEI and the risk of stroke, a restricted cubic spline (RCS) analysis was conducted with three piecewise points, using the median value of each anthropometric measurement as the reference point. Subgroup analysis was conducted to evaluate heterogeneity, stratified by age, sex, BMI, and race. LASSO regression was chosen for its ability to handle variable selection, address multicollinearity, and improve the overall robustness and interpretability of the regression model in the context of our study. LASSO regression based on the “glmnet” package in R was carried out, and the nomogram model was established based on the “replot” package. All dietary components that contributed to HEI were included in the LASSO regression model, along with three important demographic variables (age, sex, and race). The penalty parameter lambda (λ) was selected based on tenfold cross-validation, with 1000 iterations performed to ensure accuracy. As in previous studies, the largest λ within one standard error range of the minimal binomial deviation (λ = 0.0005925861) was chosen as the optimal model. The discriminatory power of the nomogram model in identifying hypertension risk was evaluated with the receiver operating characteristic (ROC) curve. “Multiple imputation” was adopted to fill in missing covariates and to avoid selection bias due to excluding participants with missing data. We utilized the “mice” R package for multiple imputation in this study, where all missing data were completed at random. For each variable with missing data, it was treated as the dependent variable, while the other variables were considered independent variables, and imputation was performed individually for each variable. Multiple imputations were conducted, resulting in the generation of five complete datasets to better capture the uncertainty introduced by the missing data. Subsequently, by computing the mean or median and considering the weights assigned to each dataset, we aggregated the results from the multiple imputed datasets. A P value < 0.05 was considered significant, and R software (version 4.1.6, R Foundation for Statistical Computing, Vienna, Austria) was used for all statistical analyses.

Ethics approval and consent to participate

The NCHS Ethics Review Board protects the rights and welfare of NHANES participants. The NHANES protocol complies with the U.S. Department of Health and Human Services Policy for the Protection of Human Research Subjects. NCHS IRB/ERC Protocol number: 2011-17. Ethical review and approval were waived for this study as it solely used publicly available data for research and publication.


Characteristics of the study population

In the current study, 43,978 individuals from NHANES (1999–2018) were included, representing 201 million (survey samples were 201,162,632) individuals with multiple racial ancestries in the United States (Fig. 1). Of these individuals, 1485 once had a stroke. Among all participants, 49.31% were male, 68.27% were non-Hispanic white, and the mean age was 45.82 years. Significant differences in demographic and clinical characteristics were observed between participants with and without stroke. Participants with stroke were significantly older (60.27 vs. 45.46 years old, P < 0.001), had lower education levels, and a higher proportion of smokers. The prevalence of diabetes was also higher in participants with stroke than in those without stroke (35.74% vs. 11.74%, P < 0.001). In addition, the eGFR was significantly lower in participants with stroke compared to those without stroke (77.37 vs. 95.67 mL/min/1.73 m2, P < 0.001). The detailed characteristics of the study population grouped by stroke status and HEI quartiles are presented in Table 1 and Table S1. We calculated HEI and found that participants in the stroke group had a lower mean HEI than those without stroke (48.90 vs. 50.21, P = 0.004); the standardized mean difference was 0.105. In addition, we also compared important cardiovascular and cerebrovascular biomarkers among participants in different quartiles of HEI scores. We found that participants with higher HEI had cardiovascular and metabolic conditions compared with participants with lower HEI scores (Table S2). To explore further the dietary factors that contributed to the difference in HEI between the two groups, we compared each component score of HEI, as shown in Table 2. Individuals with stroke had a lower HEI score in greens and beans, seafood and plant proteins, fatty acids, and saturated fatty acids.

Figure 1

Flowchart of the study population.

Table 1 Baseline characteristics of 43,978 individuals enrolled in the cross-sectional study.
Table 2 Comparison of each component of HEI scores between stroke and none-stroke group.

Association of HEI with risk of stroke

Weighted logistic regression was utilized in the current study to examine the correlation between HEI and stroke. The participants were categorized into quartiles based on their HEI levels, and the logistic regression results showed that individuals with higher HEI levels had a decreased risk of developing stroke compared to those with lower HEI levels, before and after adjusting for confounding factors, including age, sex, ethnicity, smoking, drinking, education levels, hypertension, and diabetes (Table 3). The results indicated that higher HEI was associated with a decreased risk of stroke. Furthermore, the study conducted detailed subgroup analyses by stratifying the data by sex, age (18–40, 40–60, 60–80 years old), race, BMI (normal weight, overweight, obesity), smoking status, drinking status, diabetes, and hypertension to explore the association between HEI and stroke among different populations. The results indicated that there were no significant differences in the association of HEI and stroke across different race groups, weight groups, smoking groups, drinking groups, diabetes groups, and hypertension groups, suggesting that the study’s conclusion was consistent. However, we found that compared to male individuals, a high healthy diet index may benefit female individuals more (P for interaction = 0.02) (Fig. 2). Results of RCS analysis also demonstrated that HEI was negatively correlated with the risk of stroke, and in a nonlinear pattern. The risk of stroke decreased rapidly with the increase of HEI; however, the decrease in stroke risk for men after the median age is not significant compared with women (Fig. 3). The above results suggest that the impact of dietary quality on stroke incidence may be greater for women than for men.

Table 3 Logistic regression analysis on the association between HEI and stroke.
Figure 2
figure 2

Subgroup analyses for the association of HEI with the risk of stroke. Multivariable weight Logistic analyses were conducted among different populations after adjusting for age, sex, race/ethnicity, smoking, drinking, education levels, hypertension, diabetes, dyslipidemia, physical inactivity, and obesity. HEI health eating index.

Figure 3
figure 3

RCS analysis on the association between HEI and the risk of stroke. (A) RCS curve of the association between HEI and stroke among all participants; (B) subgroup RCS analysis stratified by sex. RCS restricted cubic spline, HEI health eating index.

LASSO regression and nomogram model

LASSO regression was utilized to identify the dietary factors most strongly associated with stroke (Fig. 4A, B). Eight variables (refined grains, fatty acids, dairy, sodium, added sugars, seafood and plant proteins, total vegetable, whole fruit, and age) were included in the final model due to their statistical significance (Fig. 5A). The ROC results showed that our nomogram model had favorable discriminatory power, with an AUC of 79.3% (95% CI 78.4–81.2%) (Fig. 5B).

Figure 4
figure 4

LASSO regression analysis to screen out key dietary factors most related to stroke. (A) Plot for LASSO regression coefficients. (B) Cross-validation plot.

Figure 5
figure 5

Nomogram model established for predicting the risk of stroke and its ROC curve. (A) Nomogram model based on the key dietary factors screened out by LASSO regression, and the red points show an example: for 62-year-old male participants with stroke, the probability of stroke increased by 6.08-fold. (B) ROC curve for evaluating the diagnostic power of the nomogram model in this study.

Sensitive analysis

We also carried out a sensitive analysis in which unweighted logistic analysis on the association between HEI and the risk of stroke was carried out. We found that the results of the sensitivity analysis were consistent with the results of the main analysis. In the fully adjusted logistic regression model, HEI was negatively associated with stroke; participants in higher quartiles determined by HEI were less likely to have a stroke (Q2: OR 0.89, 95% CI 0.73–1.06; Q3: OR 0.78, 95% CI 0.67–0.92; Q4: OR 0.66, 95% CI 0.56–0.72) (Table 4). Thus, the results of the sensitivity analysis indicated that the findings of the current study are robust and dependable, showing a negative correlation between an increase in HEI and the incidence of stroke.

Table 4 Unweighted logistic regression analysis on the association between HEI and stroke in sensitive analysis.


The study aimed to explore the association between the healthy eating index (HEI) and stroke prevalence in a diverse U.S. population. Using cross-sectional data from the National Health and Nutrition Examination Survey (NHANES), dietary information was collected, and HEI scores were computed. Participants with a history of stroke had lower HEI scores compared to those without stroke, indicating a robust association even after adjusting for confounding variables. RCS analysis indicated a nonlinear negative correlation between HEI and stroke risk. Subgroup analysis revealed a gender-based disparity, suggesting potential greater benefits for women from dietary quality improvements. The nomogram model, based on LASSO regression-identified dietary factors, demonstrated favorable discriminatory power (AUC: 79.3%, 95% CI 78.4–81.2%). Higher HEI scores were inversely related to stroke risk, emphasizing the importance of improving dietary quality for enhanced stroke prevention, particularly for women.

The healthy eating index (HEI) is a tool that measures the quality of an individual’s diet based on the recommendations of the Dietary Guidelines for Americans. The HEI was first developed by the United States Department of Agriculture (USDA) in 1995 and has since been updated periodically to reflect new scientific knowledge and changes in dietary guidelines20. The HEI is composed of 12 components, each of which reflects a specific aspect of a healthy diet. These components include the intake of fruits, vegetables, whole grains, dairy products, protein foods, added sugars, saturated fats, and sodium21. Additionally, the HEI includes two components that reflect the overall diet quality, namely, variety and moderation. Each component is scored from 0 to 10, with a maximum total score of 100 indicating a diet that meets all the recommendations of the Dietary Guidelines for Americans22. The HEI has been used in various settings, including clinical practice, public health research, and dietary surveillance23,24,25. In clinical practice, the HEI can be used to assess the quality of an individual’s diet and provide guidance on dietary modifications to improve diet quality. In research, the HEI has been used to investigate the relationship between diet quality and various health outcomes, such as cardiovascular disease, cancer, and diabetes26,27. The HEI has also been used in dietary surveillance to monitor the diet quality of the population over time and to identify subgroups that may be at risk for poor diet quality. It has been shown to be a strong predictor of overall diet quality, nutrient adequacy, and health outcomes. A higher HEI score has been associated with a lower risk of chronic diseases, such as coronary artery disease, and overall mortality23. One of the strengths of the HEI is its flexibility in application. It can be used to assess the diet quality of individuals, households, or populations, and can be adapted to reflect cultural and regional dietary patterns23. The HEI has also been used to evaluate the effectiveness of dietary interventions, such as nutrition education programs and food assistance programs28,29. However, the application of HEI in the field of predicting stroke risk and prevention and treatment of stroke is still limited.

Numerous studies have investigated the effects of dietary patterns and dietary components on the risk of stroke. These studies have provided valuable insights into the potential impact of dietary modifications on stroke prevention. Several large prospective cohort studies have consistently reported that adherence to a healthy dietary pattern, such as the Mediterranean diet and DASH diet is associated with a reduced risk of stroke30,31. In addition to overall dietary patterns, specific dietary components have also been investigated for their impact on stroke risk. A meta-analysis by Dan et al. reported that higher consumption of fruits and vegetables was associated with a reduced risk of stroke, with a 32% (0.68 [0.56–0.82]) and 11% (0.89 [0.81–0.98]) for every 200 g per day increment in fruits consumption (p for nonlinearity = 0.77) and vegetables consumption (p for nonlinearity = 0.62), respectively32. A separate meta-analysis by Angela et al. reported that high consumption of whole grains was associated with a lower risk of stroke, with an 8% reduction in risk observed for every 3 servings per day increase in whole grain intake33. Several studies have also investigated the impact of dietary factors on specific subtypes of stroke. For example, a study by Diane et al. reported that a higher intake of dietary fiber was associated with a reduced risk of ischemic stroke, but not hemorrhagic stroke34. Similarly, a study by Larsson et al. reported that a high intake of fish was associated with a lower risk of ischemic stroke, but not hemorrhagic stroke35. While these studies provide valuable insights into the potential impact of dietary modifications on stroke prevention, it is important to note that the results are not always consistent across studies. For example, a meta-analysis by Wang et al. reported that high consumption of red and processed meat was associated with an increased risk of stroke, but several other studies have not found a significant association36. Overall, the evidence suggests that dietary modifications can play an important role in stroke prevention. Adherence to a healthy dietary pattern, such as the Mediterranean diet or DASH diet, as well as higher consumption of fruits, vegetables, whole grains, and fish, may be particularly beneficial in reducing the risk of stroke. However, further research is needed to better understand the mechanisms underlying these associations and to identify the most effective dietary modifications for stroke prevention. Besides, it is significantly needed to establish a measurement to evaluate the overall dietary quality and explore its association with various diseases. In the present study, we found that HEI, as an overall index evaluating dietary quality, was closely associated with the risk of stroke and can be used as a prediction parameter with favor diagnostic value.

Moreover, we also noticed that there was a significant sex difference in the specific impact of dietary quality on the risk of stroke. There is already evidence to suggest that there are gender differences in the impact of dietary quality on the occurrence of various diseases. In a recent large-scale prospective study, researchers examined the impact of diet quality on cardiovascular diseases. The study involved 155,724 participants from 21 different countries who were tracked for approximately 10 years. The study’s primary objective was to measure major cardiovascular events such as cardiovascular death, myocardial infarction, stroke, and heart failure. The results indicated that low diet quality had a stronger association with cardiovascular diseases in female participants than in male participants. The hazard ratio for females was 1.17 (95% CI 1.08–1.26), while for males, it was 1.07 (0.99–1.15)37. There are several potential explanations for the gender differences in the impact of dietary quality on stroke risk. Firstly, women may have a higher susceptibility to the negative effects of a poor diet due to differences in physiology and hormonal factors. For example, estrogen is known to have a protective effect on the cardiovascular system, and a decline in estrogen levels during menopause may increase the risk of CVD and stroke in men10. Additionally, men may have a lower capacity to metabolize and eliminate dietary fats, leading to higher levels of circulating lipids and an increased risk of atherosclerosis11. Secondly, there may be differences in dietary patterns between men and women that contribute to the observed gender differences in stroke risk. For example, men may be more likely to consume a diet high in refined carbohydrates, which are associated with a higher risk of CVD and stroke38. On the other hand, men may be more likely to consume a diet high in saturated fats, which are also linked to an increased risk of CVD and stroke39. Several studies have investigated the relationship between dietary quality and stroke risk, specifically in women. For instance, Akbaraly et al. reported that adherence to a healthy diet was associated with a lower risk of stroke in women, but not in men40. These findings suggest that improving dietary quality may be a more effective strategy for reducing stroke risk in women. In addition to reducing stroke risk, a healthy diet may also have other beneficial effects on women’s health. For example, a diet rich in fruits and vegetables is associated with a lower risk of breast cancer, and a diet high in omega-3 fatty acids may reduce the risk of depression and improve cognitive function41,42.

Studying the HEI is important because it allows researchers and healthcare professionals to identify specific dietary patterns and components that are associated with a lower risk of stroke. This information can be used to develop targeted interventions to improve dietary quality and reduce the incidence of stroke. Diagnostic prediction models are mathematical tools that use a combination of clinical and non-clinical variables to predict the probability of a specific outcome, such as stroke. These models can be used to identify individuals who are at high risk of stroke and implement targeted interventions to reduce their risk. The HEI can be incorporated into diagnostic prediction models for stroke because it provides information on an individual’s dietary quality, which is a modifiable risk factor for stroke.

In the present study, we also established a diagnostic model, which included refined grains, fatty acids, dairy, sodium, added sugars, seafood and plant proteins, total vegetables, and whole fruit. The ROC results showed that our nomogram model had favorable discriminatory power, with an AUC of 79.3% (95% CI 78.4–81.2%). However, we believe a more precise model including more dietary components is needed. In the future, the development of diagnostic prediction models based on dietary habits for stroke that incorporate the HEI has important implications for public health. By identifying individuals who are at high risk of stroke, healthcare professionals can implement targeted interventions to reduce their risk, including dietary interventions to improve dietary quality. In addition, the use of the HEI in diagnostic prediction models for stroke can inform public health policies and guidelines.

There are several implications and advantages stemming from this study. Firstly, due to the large population included in this study and the fact that all statistical processes were weighted and followed NHANES guidelines, reliable conclusions can be drawn. As a result, the conclusions drawn from this study may be applicable to the 201 million residents of the United States. Secondly, we utilized LASSO regression analysis to identify key dietary factors that are closely related to stroke, and we established a nomogram model with a strong discriminatory ability. Despite these benefits, it is important to note some limitations of this study. For instance, this study is cross-sectional in nature, and therefore, a causal relationship cannot be established. More prospective studies are needed, and the application of HEI in the stroke field may be limited. Additionally, subjective bias may exist due to self-reported dietary information and covariates from the NHANES database. Furthermore, daily diets can vary widely, and a 24-h recall of dietary information may be insufficient. Significant ethnic differences exist in terms of diet, physical activity, genetic variations, lipid metabolism, and susceptibility to cardiovascular disease. As a result, it is necessary to investigate whether the conclusions of this study based on US participants can be extended to other populations in future research. Moreover, another limitation is important to note that stroke survivors from NHANES, may not be fully representative of the entire stroke survivor population. The NHANES dataset does not include individuals who are hospitalized or residing in care facilities. Besides, While our study utilized an average of 2 recalls, the potential measurement error intrinsic to repeated 24-h dietary recalls and recall bias may exist.


A retrospective analysis was conducted on 43,978 participants from the NHANES survey, which revealed a sex difference in the association between the HEI and the risk of stroke. Using LASSO regression, key dietary factors that were mostly linked to stroke were identified. A nomogram model was established based on these key factors, which exhibited favorable diagnostic power in predicting the risk of stroke. The study highlights the importance of paying more attention to HEI and improving dietary quality for preventing and treating stroke. However, further prospective studies are still needed in this regard.