Introduction

Dementia currently affects approximately 50 million people worldwide, and this number is expected to rise to 152 million by 20501. Maintaining cognitive function is crucial for promoting the health of the aging population. Individuals with low socioeconomic status (SES) are more likely to experience impaired cognitive function2,3,4,5,6. SES has also been associated with functional and structural neural differences in wide range of cortical areas7. Despite increasing life expectancy, there are widening SES inequalities in health8. At this time, treatments for dementia are inadequate9. Identifying susceptible populations and modifiable risk factors for cognitive decline are priorities for public health intervention10. Comprehensive strategies are warranted to identify vulnerable groups who may benefit most from preventive interventions to reduce cognitive declines and socioeconomic disparities.

Most emphasis is now directed towards individual-level interventions on potentially modifiable lifestyle factors11. Diets rich in fruit and vegetables, abstinence from smoking, and regular exercise are associated with better cognitive performance and lower risk of dementia12,13,14. Despite extensive investigations, clear understanding of the roles of healthy lifestyles and SES in cognitive health is still lacking15. Few attempts have been made to investigate associations between combined lifestyle factors and cognitive function. For studies focusing on SES, most previous studies used single socioeconomic variables (e.g., education, occupation, income) to represent SES16,17. SES is a complex, multifactorial construct, and composite SES measurements reflecting multiple socioeconomic factors are needed to characterize18,19. Furthermore, evidence suggests that healthy lifestyles could play a role in health outcomes patterned by SES, particularly cardiometabolic disease and mortality15; yet, it is unknown whether healthy lifestyles could alleviate socioeconomic inequalities in cognitive health.

We used data from the National Health and Nutrition Examination Survey (NHANES) to examine the complex relationships of SES and lifestyle factors with cognitive function in older adults. We defined individual-level SES with a composite of education, occupation, income-to-poverty ratio, health insurance, and food security. A composite healthy lifestyle score was constructed based on health behaviors including smoking status, alcohol consumption, physical activity, and diet. We hypothesized that higher composite SES and healthy lifestyle scores were associated with better cognitive function in a cross-sectional sample of U.S. older adults.

Results

Univariate analyses: participant characteristics and cognitive function by SES and healthy lifestyle score

The analytic sample had a mean age of 69.3 years. Latent class analysis (LCA) was used to classify SES based on multiple factors (Table S2). The high SES class was characterized by income-to-poverty ratio ≥ 4, white collar occupations, college education or higher, health insurance, and full food security. The medium SES class was characterized by income-to-poverty ratio > 1 and < 4, blue collar occupation, and food security. The low SES class was characterized by income-to-poverty ratio < 4, blue collar occupations, less than high school education, government insurance or uninsured, and food insecurity. Within the sample, 581 were of high SES, 351 were of medium SES, and 381 were of low SES. Low SES participants tended to be women, non-White people, not married, born outside of the United States, have less alcohol consumption, and less healthy diets (Table 1). For healthy lifestyles, 341 study participants had 0 or 1 healthy behavior, 512 had 2 healthy behaviors, and 460 had 3 or 4 healthy behaviors (Table 2). Participants with less healthy behaviors were more likely to be non-White people, born in the United States, and have blue collar occupations.

Table 1 Survey-weighted participant characteristics by socioeconomic status (SES: low, medium, and high) from the U.S. National Health and Nutrition Examination Survey 2011–2014.
Table 2 Survey-weighted participant characteristics by healthy lifestyle score (HLS: 0 or 1 healthy behavior; 2 healthy behaviors; 3 or 4 healthy behaviors) from the U.S. National Health and Nutrition Examination Survey 2011–2014.

Table 3 presents the distributions of the cognitive composite z-score and its components. Participants with higher SES, on average, had higher test scores of Consortium to Establish a Registry for Alzheimer’s Disease (CERAD) delayed recall, Animal Fluency, Digit Symbol Substitution Test (DSST), as well as the composite z-score, compared to participants with lower SES. The mean (SE) test scores were 6.7 (0.1) for CERAD delayed recall, 19.8 (0.3) for Animal Fluency, 58.8 (0.7) for DSST, and 0.41 (0.02) for the composite z-score among participants with high SES. In contrast, the mean (SE) test scores were 5.7 (0.2) for CERAD delayed recall, 16.2 (0.4) for Animal Fluency, 41.8 (1.5) for DSST, and -0.07 (0.04) for the composite z-score among participants with low SES.

Table 3 Survey-weighted cognitive composite score and its components by socioeconomic status (SES) and healthy lifestyle score from the U.S. National Health and Nutrition Examination Survey 2011–2014.

Primary analysis: adjusted associations between composite exposure measures and cognitive score

To assess the associations between cumulative SES and lifestyle factors, we tested the adjusted relationships of healthy lifestyle score and composite SES with composite cognitive z-score (Table 4). Participants with 3 or 4 healthy behaviors, on average, had 0.07 (95% CI 0.005, 0.14) standard deviation higher composite cognitive z-scores than those with one or less healthy behavior. Participants with high SES, on average, had 0.37 (95% CI 0.29, 0.46) standard deviation higher composite cognitive z-scores than those with low SES.

Table 4 Survey-weighted differences and 95% confidence intervals (95% CIs)* in cognitive composite z-score with socioeconomic status and healthy lifestyle from the U.S. National Health and Nutrition Examination Survey 2011–2014.

Figure 1 presents the joint associations of lifestyle and SES with composite cognitive z-score, according to the combination of the nine categories of healthy lifestyle score and composite SES. The interaction between the healthy lifestyle score and composite SES was not statistically significant (P for interaction = 0.06). Participants with high SES had better cognitive function compared to those with low SES, independent of the healthy lifestyle score.

Figure 1
figure 1

Survey-weighted changes in cognition z-score with an additional interaction term between socioeconomic status (SES) and healthy lifestyle from the U.S. National Health and Nutrition Examination Survey 2011–2014. Model was adjusted for age, sex, race/ethnicity, marital status, and birthplace. P for interaction between SES and healthy lifestyle was 0.06.

Secondary analysis: adjusted associations between individual exposure measures and cognitive score

We tested the associations between individual healthy lifestyle behaviors (mutually adjusted) and cognition score, adjusting for age, sex, race/ethnicity, marital status, and birthplace (Model 1, Table 5). On average, participants with low or moderate alcohol consumption had 0.11 (95% CI -0.21, -0.02) standard deviation lower cognitive score compared to those with high alcohol consumption. Those with healthy physical activity levels had 0.08 (95% CI 0.03, 0.14) standard deviation higher cognitive scores compared to those with unhealthy physical activity. Those with healthy eating had 0.08 (95% CI 0.02, 0.15) standard deviation higher composite cognitive z-scores, compared to those with unhealthy eating habits.

Table 5 Survey-weighted differences and 95% confidence intervals (95% CIs) in cognitive composite z-score from linear regression models using data from the U.S. National Health and Nutrition Examination Survey 2011–2014.

We tested the similarly adjusted associations between SES components and cognition score (Model 2, Table 5). We observed participants in the highest categories of family income (income-to-poverty ratio ≥ 4) had 0.15 (95% CI 0.03, 0.27) standard deviation higher composite cognitive scores, compared to those in the lowest categories (income-to-poverty ratio ≤ 1 for family income). Participants in the highest category of education (college and above) had 0.26 (95% CI 0.16, 0.37) standard deviation higher composite cognitive z-scores, compared to those in the less than high school education category. Participants with food security had 0.13 (95% CI 0.06, 0.20) standard deviation higher composite cognitive z-scores than those with food insecurity. Participants who had white collar occupations had 0.16 (95% CI 0.08, 0.24) standard deviation higher composite cognitive z-scores than those who had blue collar occupations.

We then included both lifestyle and SES components in similarly adjusted models of cognitive score (Model 3, Table 5). Similar associations were observed between all of SES components and cognitive z-score to the previous models without lifestyle component adjustment. However, after adjusting for SES components, physical activity was the only lifestyle factor still associated with cognitive z-score.

Sensitivity results

In sensitivity analyses of individual cognitive assessments, higher SES was associated with higher cognition measured with the CERAD immediate learning, Animal Fluency, and DSST (Table S3). When examining the associations using the weighted healthy lifestyle score, a similar positive association was observed (Table S4). Additional adjustment for body mass index (BMI) did not alter the associations (Table S5). In a subpopulation after excluding 283 participants with cardiovascular disease or stroke, similar associations of healthy lifestyle score and composite SES with composite cognitive z-score were observed (Tables S6 and S7). Similar associations were observed in the pooled analysis of 20 imputed datasets (Table S8).

Discussion

This study examined the associations of lifestyle and socioeconomic factors with cognitive function in a representative sample of adults aged 60 years and older in the United States. We summarized smoking status, alcohol consumption, physical activity, and healthy diet in a composite healthy lifestyle score and education, family income, occupation, health insurance, and food security into a composite SES. Both higher healthy lifestyle scores and higher SES scores were independently associated with better cognitive function. These associations persisted after controlling for age, sex, race, marital status, and birthplace. The magnitude of the SES effect was considerably greater than the magnitude of healthy lifestyle factors. In individual component analyses, participants with higher physical activity, higher education, higher family income, better health insurance, food security, and white-collar occupations had better cognitive function performance. This study is the first to investigate the complex relationships between SES, healthy lifestyles, and cognition.

Given population ageing and lack of therapies to halt the progression to dementia, identification of vulnerable populations and modifiable risk factors for age-related impaired cognitive function is of substantial public health importance. Lifestyle factors are potentially modifiable factors. The associations of various individual lifestyle factors such as healthy diet20, physical activity21, and smoking22 with cognitive function and dementia were described previously, which is consistent with our study results. Additionally, we evaluated the combinations of multiple lifestyle factors given that those factors are not independent of each other and the complex and multifactorial etiology of cognitive impairment and dementia. Three large trials examined the effects of multiple lifestyle interventions on cognitive function—the Finnish Geriatric Intervention Study to Prevent Cognitive Impairment and Disability (FINGER), the French Multidomain Alzheimer Preventive Trial (MAPT)23 and the Dutch Prevention of Dementia by Intensive Vascular Care (PreDIVA)24 trials—yielded inconsistent results. FINGER demonstrated some benefit, but MAPT and PreDIVA did not, though post-hoc analyses of participants at high dementia risk suggested benefits. Overall, our findings along with previous studies suggest that promoting a healthy lifestyle could be a feasible strategy that could have an impact on prevention for cognitive impairment and dementia. The associations between healthy lifestyles and cognitive function are biologically possible. Physical activity is associated with increased brain volume, elevated brain-derived neurotrophic factor levels, reduced psychological stress, reduced cardiometabolic risk factor levels, and enhanced amyloid beta clearance25. Smoking exerts toxic effects through oxidative stress, neuroinflammation, and increase cardiometabolic risks25. Healthy diets rich in nutrients and vitamins may ameliorate cognitive impairment through their effects on oxidative stress, inflammation, and cardiometabolic health25.

We found a larger effect of SES on cognitive function. Considerable evidence shows that SES components are associated with cognitive function. Higher education levels are consistently associated with higher cognitive function and lower risk of dementia5,6. Lower income and sustained financial hardship were associated with lower cognitive function26,27, and food insecurity adversely impacts the cognitive function28. Studies examining the relationship between longest-held occupations and cognition found that blue collar occupations were associated with higher risks of cognitive impairment and Alzheimer’s disease29,30. A large cohort study of U.S. found that low access to health care was associated with 25% higher odds of cognitive impairment31. Our analysis observed similar associations between these single socioeconomic variables and cognitive function. More importantly, we constructed a composite SES variable given the nature of SES as a multidimensional construct comprising diverse socioeconomic factors, and that SES may affect health through multiple pathways32. The association between composite SES and cognitive function suggests the socioeconomic inequalities in cognitive health in U.S. older adults, and thus, exploring strategies to reduce socioeconomic inequalities is needed.

The contribution of healthy lifestyles to the socioeconomic inequalities in health is widely discussed, particularly on cardiovascular outcomes and mortality. A recent systematic review estimated that lifestyles factors were responsible for approximately 20% of the socioeconomic inequalities in health, suggesting the promotion of healthy lifestyles since they may help alleviate socioeconomic inequalities in health15. Contrary to these findings, we found that the healthy lifestyle score and SES were independently associated with cognitive function, though a borderline interaction between the healthy lifestyle score and SES was observed. Effect estimates of SES on cognitive function were also larger than those of the healthy lifestyle score. These findings may suggest that significant reductions in socioeconomic inequalities in health could not be achieved by only promoting healthy lifestyles, and additional modifiable factors such as environmental exposures, psychosocial factors, structural factors, and policies should be considered and evaluated. Some data suggests that SES inequality per se is a significant driver of health disparities. On the other hand, Lynch argues persuasively that more systemic interventions are required to address SES disparities in population health33. Addressing systemic factors, such as access to affordable and nutritious food, safe recreational spaces, and comprehensive healthcare services, can create an environment that supports the adoption and maintenance of healthy behaviors34. Further research, particularly prospective cohort studies or analyses of existing lifestyle intervention trial datasets, is needed to confirm our findings and provide a more comprehensive understanding of the complex interplay between healthy lifestyles, SES, and specific health outcomes.

Strengths of the current study include examining the associations of healthy lifestyles and SES with cognitive function in a representative sample of U.S. older adults. In addition, we constructed a healthy lifestyle score and composite SES, acknowledging the complex and multifactorial impacts of lifestyle and socioeconomic factors on cognitive function. However, we acknowledge that the cross-sectional nature of NHANES data precludes the ability to assess longitudinal cognitive decline. We could not rule out the possibility of reverse causality that participants’ cognitive function could impact self-report on behavior factors such as diet. Additionally, both lifestyle and socioeconomic factors were measured in late life; thus, we are not able to investigate whether lifestyle and SES changes across the life course are associated with cognitive function at older ages. Therefore, it is critically important to examine the contribution of SES and lifestyle to cognition using the life course approach. Future studies with longitudinal design will also enable us to better understand the causal relationships between SES, healthy lifestyle, and health outcomes by employing causal mediation analysis. Finally, we were unable to completely eliminate residual confounding due to limited categorization of covariates, for example, lack of non-binary gender identity35 and APOE genotype36 due to the limitation in NHANES measures, despite we have controlled for many known confounders.

Our study provides evidence that higher SES, and healthy lifestyle are independently associated with a higher cognitive function performance in U.S. older adults. The magnitude of the SES association with cognitive function was considerably larger than the association between healthy lifestyle factors and cognitive performance. No statistically significant interaction between the healthy lifestyle and SES was observed, suggesting that reductions in socioeconomic inequalities in health cannot not be achieved by only promoting healthy lifestyles. Future studies with longitudinal design are needed to confirm our findings and explore more modifiable factors that help mitigate socioeconomic inequalities in health.

Methods

Study population

Data were from the NHANES, a large, nationally representative cross-sectional survey and physical examination conducted in 2-year cycles, assessing the health and nutritional status of the civilian, noninstitutionalized United States population. Details of the survey and laboratory procedures are published elsewhere37. The comprehensive cognitive evaluation was available among 2937 adults ≥ 60 years old from two continuous NHANES data releases: 1364 from the 2011–2012 cycle and 1573 from the 2013–2014 cycle. Our samples excluded 1624 participants without information on lifestyle factors, SES factors, and covariates. Our final analytic sample included 1313 participants from the NHANES 2011–2014 (Figure S1).

Standard protocol approvals, registrations, and patient consents

The NHANES protocol followed the ethical guidelines of the 1975 Declaration of Helsinki and was approved by the National Center for Health Statistics Research Ethics Review Board, and written informed consent was obtained from all participants or legally authorized representatives. The National Center for Health Statistics Research Ethnics Review Board approved all study protocols, and written informed consent was obtained from all participants. All methods were performed in accordance with relevant guidelines and regulations and followed the Strengthening the Reporting of Observational Studies for Epidemiology (STROBE) guidelines38.

Lifestyle factor assessment

We calculated a composite healthy lifestyle score consisting of multiple domains, including self-reported cigarette smoking, alcohol use, physical activity, and diet, which align with previous NHANES studies and recommendations set forth by the World Health Organization39,40,41. Information on all lifestyle factors were collected using structured questionnaires or 24-h dietary recall. Cigarette smoking was categorized into never smoking (smoked fewer than 100 cigarettes in lifetime) or smoking history, with never smoking considered a healthy level. Alcohol use was defined by daily consumption of alcohol, and a healthy level was defined as daily consumption of no more than one drink for women and no more than two drinks for men42. Physical activity was assessed weekly by metabolic equivalent hours of leisure time (MET). MET was categorized into tertiles, and we considered participants in the top tertile to show evidence of adequate physical activity (healthy level).

Diet was characterized by the healthy eating index-2015 (HEI-2015)43. The HEI-2015 is a diet quality index to assess the adherence to 2015–2020 Dietary Guidelines for Americans43. Intake of each HEI-2015 component was scored proportionately between the minimum and maximum standards. The details of HEI-2015 components and scoring standards are shown in Table S1. HEI-2015 scores range from 0 to 100. A healthy diet was defined as HEI-2015 scores in the top 40%, while those in the bottom 60% showed evidence of unhealthy eating39,40.

We constructed a composite healthy lifestyle score. For each lifestyle factor, we assigned 1 point for a healthy level and 0 point for an unhealthy level. The healthy lifestyle score was calculated by summing each individual lifestyle factor score, and possible scores ranged from 0 to 4. Higher healthy lifestyle scores indicated greater adherence to healthy behaviors. Healthy lifestyle scores were classified into approximate tertiles, comprising 0–1, 2, and 3–4 healthy behaviors.

SES assessment

The present study focused on individual-level SES, characterized by education, family income, occupation, health insurance, and food security44. Education levels were categorized into less than high school, high school or equivalent, and college or above. Family income levels were defined as the ratios of family income to the poverty thresholds specific to the survey year. Family income levels were classified into low income (family income to poverty ratio ≤ 1), middle income (> 1 and < 4), and high income (≥ 4)45. Occupation was defined by each participant’s longest job, and categorized as blue collar (service, farming/forestry/fishing, precision production/craft/repair, and operator/fabricator/laborer), white collar (managerial/professional specialty, and technical/sales/administrative support), unemployed, or not in labor force (retired persons, homemakers, and students)46. Health insurance was classified into government insurance (Medicare, Medi-Gap, Medicaid, State Children’s Health Insurance Program, military health plan, Indian Health Service, state-sponsored health plan, or other government insurance), private insurance, both government and private insurance, or uninsured. Food insecurity was measured using 18-item Food Security Survey Module, and dichotomized into full food security and food insecurity47.

For composite SES, LCA was used to identify the presence of underlying constructs (or classes) in the observed SES components (education, occupation, income-to-poverty ratio, health insurance, and food security)48. LCA estimates conditional class membership probability and classifies individuals who are homogeneous in terms of particular criteria. We compared the performance of LCA with two, three, and four classes, and the optimal number of latent classes was determined based on the Akaike Information Criterion (AIC) and the Bayesian Information Criterion (BIC)48. We identified three latent classes—high, medium, and low SES groups.

Cognitive function assessment

Comprehensive cognitive testing was completed by participants aged ≥ 60 years during NHANES 2011–2012 and 2013–2014 cycles. Four tests were administered, including the CERAD Word Learning subtests to evaluate immediate and delayed learning ability49, the Animal Fluency test to assess categorical verbal fluency (component of executive function)50, and the DSST from the Wechsler Adult Intelligence Scale to assess processing speed, sustained attention, and working memory51. Individual results of the four tests (CERAD immediate and delayed learning, Animal Fluency, DSST) converted to z-scores using age appropriate normal means. Individual test z scores are averaged to form the cognitive composite z-score, similar to previous studies52.

Covariates

Covariates were selected based on previous research and included age, sex, race/ethnicity, marital status, birthplace, and BMI53. Sex included male and female. Participants were assigned to one of these categories by NHANES based on their questionnaire responses. Race/ethnicity categories provided by NHANES included non-Hispanic White, non-Hispanic Black, non-Hispanic Asian, Hispanic, or other races including multiracial. Marital status included never married, married, or not married (including widowed, divorced, separated, or living with partner). Birthplace was categorized as born in or outside of the United States. BMI (kg/ m2) was computed as the ratio of weight (kg) and height squared (m2).

Statistical analyses

Mean and standard error (SE) were computed for continuous variables, and percentage (%) was calculated for categorical variables. Participant characteristics, composite cognition z-scores, and scores of the four individual cognitive tests were compared by composite healthy lifestyle and composite SES groups. The sampling weights and design variables were used for all analyses.

In the primary analysis, we utilized survey-weighted linear regression models to examine the associations of healthy lifestyle score and composite SES derived from LCA with composite cognition z-score, after adjusting for age, sex, race/ethnicity, marital status, and birthplace. To assess the joint associations of lifestyles and SES, we classified participants into nine groups based on three SES classes (low, medium, high) and three healthy lifestyle groups (0–1, 2, 3–4). Differences in cognition z-score and 95% confidence intervals were calculated with participants with low SES and 0–1 health lifestyle as the reference group. Likelihood-ratio test comparing models with and without interaction terms between SES and healthy lifestyle groups was used to test the interaction between healthy lifestyle score and composite SES.

In the secondary analysis of individual SES and lifestyle factors, we performed linear regression models to estimate differences in composite cognitive z-score and 95% confidence intervals. Model 1 included age, sex, race/ethnicity, marital status, birthplace, and individual lifestyle factors (smoking status, alcohol consumption, physical activity, and HEI-2015). Model 2 included age, sex, race/ethnicity, marital status, birthplace, and individual SES factors (education, family income, occupation, health insurance, and food security). Model 3 included age, sex, race/ethnicity, marital status, birthplace, as well as both individual lifestyle and SES components.

To test the robustness of our findings, we conducted several sensitivity analyses. First, to assess the different cognitive domains, we determined the relationships between lifestyle and SES factors with z-scores of each of the four cognitive test scores. Second, to assess potential differential influences between healthy lifestyle factors on cognition, we computed a weighted healthy lifestyle score. The weighted healthy lifestyle score was constructed as the sum of lifestyle factor scores where weights are beta coefficients of each individual lifestyle factor derived from Model 1 in the analysis of individual lifestyle factors. We then used this weighted healthy lifestyle score in a multivariable regression analysis. Furthermore, BMI could be an intermediate factor linking exposures and cognition, so we did not adjust for BMI in our primary analyses. However, in sensitivity analyses, we additionally controlled for BMI. Moreover, we repeated our analyses in a subpopulation excluding participants with stroke or cardiovascular disease, which might impair cognitive functions54. We did not excluding these participants in the primary analysis in consideration of potential overadjustment bias because stroke and cardiovascular disease may serve as risk factors for cognitive decline and could be also influenced by SES and healthy lifestyle factors. Finally, to explore the impact of missing values on the observed results, we conducted multiple imputations with chain equation to impute missing values55. This procedure used PROC MI in SAS to create 20 datasets for missing values and computed pooled effect estimates using PROC MIANALYZE. We repeated Models 1–3 on each of the imputed datasets and compared the effect estimates to the primary findings using measured data. All statistical analyses were performed using SAS (version 9.4, SAS Institute Inc.). Statistical significance was set at a two-sided P < 0.05.