Introduction

The well-being in the human life cycle depends on maintaining brain health. An inadequate diet is a substantial risk factor for mental health disorders in adults and in the young populations [1, 2]. There are many nutrients and micronutrients in the diet that are essential for brain development, protection and functioning in early stages of life such as lipids, proteins, minerals, and vitamins [3].

During childhood and adolescence, the brain exhibits sensitive phases when experience, environment and nutrition may greatly modify its functional and structural characteristics [4]. Specifically, neuropsychological functions such as attention, impulsivity regulation and emotional recognition are highly developing during adolescence [5,6,7]. During this period, symptoms related to attention-deficit hyperactivity disorder (ADHD) may hinder the recognition of internal emotions, task execution, academic performance, and social interactions [8,9,10].

It is crucial to find ways to support neuropsychological development and academic achievement in childhood and adolescence, given that poor neuropsychological performance and low academic achievement in childhood are associated with an increased risk of adult obesity, unemployment, and vulnerable socioeconomic condition [11, 12]. Neuropsychological development and function are influenced by nutrition. Nutrients are relevant components of enzyme systems in the cerebral cortex and provide the essential building blocks for cell division, DNA synthesis, neurotransmitter and hormone metabolism, and cell growth [13, 14]. Inadequate levels of whole foods (i.e. unprocessed), such as those rich in micronutrients (iron, zinc, B12) and long-chain polyunsaturated fatty acids (PUFAs), may result in long-term functional issues like memory loss, ADHD symptoms, depression, or anxiety problems [15]. On the other hand, excessive consumption of junk food in the young population has been related to the development of alcohol consumption, drug abuse, impulsivity and ADHD symptoms [16]. Therefore, an adequate and balanced diet is essential for proper brain development and neuropsychological function [17, 18].

The cornerstone of efforts for the primary prevention of many of the risk factors for neuropsychological impairment is lifestyle and dietary changes [19]. Due to the correlation of dietary preferences, isolating the ‘pure effect’ of each individual food is difficult, making it challenging to investigate the relationship between the dietary intake of each food/nutrient and neuropsychological functions. Sophisticated approaches for determining food patterns include principal components analysis (PCA), a type of dimensionality reduction technique [20]. To find hidden patterns in the data, it uses correlations between food intake or preferences. Aggregation-based PCA provides a unique or multiple factor solution and reduces dietary variables [21]. As an example of research using this innovative technique, a previous study on a population aged 10 to 15 years used PCA to identify dietary patterns, resulting in ‘High protein,’ ‘High fat,’ and ‘High salt-oil’ patterns. The ‘High protein’ pattern score was significantly associated with higher mathematics test scores. Conversely, the ‘High fat’ pattern score was significantly associated with lower mathematics and vocabulary test scores [22]. Another cross-sectional study demonstrated that the high-energy dietary pattern (noodles, eggs, processed meat and fish snacks) was negatively associated with general cognitive ability, perceptual reasoning, and processing speed in adolescent population [23].

Data-driven food patterns of healthy adolescents and their relationships with neuropsychological functions are poorly understood. Indeed, there is limited research of these factors among teenagers, which is an important period of brain development and function. Thus, in this cross-sectional study, we aimed to examine the association between dietary preferences and neuropsychological functions such as externalizing and internalizing regulations, impulsivity and emotion recognition among a healthy adolescent population using the Walnuts Smart Snack (WSS) cohort.

We hypothesized that a balanced diet with a healthy pattern of nutrition would relate to better neuropsychological performance in the adolescent population.

Materials and methods

Study design and participants

The current study is based on a cross-sectional design using baseline information from the Walnuts Smart Snack (WSS) trial [24]. The purpose of this intervention was to determine if dietary supplementation with 30 g of raw walnut kernels per day for six months resulted in beneficial improvements in cognitive and socioemotional development when compared to a control group of healthy adolescents [25]. The study targeted adolescents aged 11–16 years attending regular schools in Barcelona. Although the initial protocol aimed to recruit 12–15-year-olds, the inclusion criteria were expanded to accommodate slightly younger and older students willing to participate, as facilitated by the schools. Exclusion criteria comprise individuals who regularly consume omega-3 PUFA supplements, eat walnuts daily, or have allergies to walnuts or gluten. Additionally, participants were excluded if they reported lactose intolerance or allergies to cereals, dried fruits, peanuts, soy, sesame, or sulfites, due to potential traces of these substances in walnut packages as a result of walnut industry practices. Participants with neuropsychological disorders were not excluded. In our study, there are only 3 cases of dyslexia and 1 case of attention deficit without hyperactivity. The rest of the cohort population in this analysis does not report neuropsychological or mental health disorders.

Over a year (2015–2016), we recruited 771 participants from 11 high schools in Barcelona which were evenly distributed geographically. We invited both public and private schools to participate in the project, and our goal was to include at least one high school per municipal district. Participants completed several neuropsychological tests and provided information on their lifestyle and dietary preferences prior to randomization. All information about the clinical trial procedure is described in the WSS protocol [24]. Participants who had complete baseline data on the food frequency questionnaire and the neuropsychological tests were eligible for the present study (n = 643). The trial study received permission from Parc Salut Mar’s Clinical Research Ethics Committee (approval number: 2015/6026/I).

A fieldwork technician provided questionnaires to the adolescent participants and other questionnaires were given to the parents to complete at home and return to us through the school instructors. Additionally, the technician asked about dietary habits using a food-frequency questionnaire (FFQ) of 60 food items adapted to the adolescent age from a validated questionnaire for the Spanish population [26, 27]. The adaptation consisted on increasing the portion sizes for some items (from small to medium size for meat, fish, vegetables, rice, pasta, and ultra-processed foods) and adding some extra items (e.g. Plant milk and soy yogurt). The technicians requested to the adolescents to report the average frequency of consumption for the specified standard units or portion size for each food item of the FFQ. The questionnaire included 9 frequency categories for each item ranging from “never or < 1 time/month’’ to ‘‘≥6 times/day” (Supplementary Table 1). All the selected frequency categories for each food item were converted to a daily intake.

Several primary endpoints concerning the neuropsychological function of adolescents were assessed at baseline (pre-intervention). The administration of all neuropsychological tests was carried out at the school by one trained psychologist and two fieldwork technicians. Similar procedure was applied for anthropometric measurements. Standard techniques were used to measure height, weight, and waist circumference (SECA 214 stadiometer for height, SECA 770 weighing scales for weight, and SECA 201 tape for waist measurement).

Primary outcomes

Based on WSS outcome data, three primary outcomes were selected for the current study. The first primary outcome was the self-reported Strengths and Difficulties Questionnaire (SDQ), a child mental health assessment tool with five hypothesized subscales. The scale was originally developed for the measurement of five aspects related to mental health screening namely four “difficulty” domains: hyperactivity/inattention, emotional symptoms, conduct problems, and peer problems. The SDQ additionally gathers data on prosocial behavior as a strength domain [28]. The SDQ externalizing score, which ranges from 0 to 20, is calculated by adding the conduct problems and hyperactivity scales. Emotional symptoms and peer problems scores are added to create the SDQ internalizing score, which has also a range of 0 to 20. In this case, we looked at the two SDQ profiles, where a higher score indicates abnormal behaviors.

The second measurement used was the Attention Network Test (ANT), a computer-based neuropsychological test to determine the attention function performance and the integrity of the three attentional networks [29, 30]: Alerting, the capacity to achieve and sustain maximum vigilance and performance while performing tasks; executive attention, which entails recognizing and resolving shifting attention to sensory inputs; and orienting, which includes shifting attention to sensory stimuli. Participants had to quickly determine the direction of the middle arrow when five arrows appeared on the screen. The impulsivity index was selected for the current research, which is calculated by deducing the reaction times in incorrect responses from the reaction times in correct responses, measured in milliseconds (ms). Lower scores indicate better attention performance (less impulsivity). The ANT impulsivity index is useful for identifying mental health changes, behavioral regulation, and risk-taking behavior in the adolescent population.

The third measurement analyzed, to assess emotional face recognition, was the Emotion Recognition Task (ERT). The neuropsychological test is a computer-generated paradigm for assessing the recognition of six fundamental facial emotional expressions: anger, contempt, fear, pleasure, sadness, and surprise. One at a time, the screen shows computer-generated images that have been warped from actual people’s facial characteristics to represent various emotions [31]. Each face is shown for 200 ms and then immediately covered up to prevent residual processing of the image. Finally, the participant must choose one of six possible emotions based on the expression on the face. A total of 60 images were used for emotion recognition. The outcome measures for ERT cover the correct total responses of facial emotions; higher scores indicate better emotional recognition.

Reduction of dimensionality and dietary patterns

The food frequency questionnaire (FFQ) was used to identify dietary patterns performing PCA. All food items listed in the FFQ, except for water, were used to derive the PCA in daily servings. The original food items included from the Spanish questionnaire are detailed in Supplementary Table 1. PCA is a reduction of dimensionality technique useful for analyzing complex and vast data. The main idea is to reduce the number of variables and detect “intrinsic patterns” in the data based on linear combinations of questionnaire food, illustrating the combinations of food that are usually eaten together in an individual’s diet of group study [32]. Since this FFQ version has only 60 items, we preferred to proceed with this agnostic approach (PCA) without any prior item manipulation, such as regrouping the items to common nutrient domains.

The adequacy of the data for factor analysis was evaluated in advance of PCA (Supplementary Table 2). The Kaiser-Meyer-Olkin test and Bartlett’s test of sphericity were conducted before PCA analysis to observe the relationship between variables. PC factors were retained considering factors with eigenvalues greater than 1.8 (Supplementary Table 3). Then, the varimax rotation was performed on PCA to simplify the factor structure and to enhance their interpretability. The rotated component fed the factor loadings for each food question contained in the factor. To interpret the results, variables with loadings greater than |0.2| were considered to contribute significantly to the pattern. Finally, factor standardized scores were also saved, as continuous and tertiles, for each PC for posterior regression analysis.

PCA standardized scores are a standardized system for representing an individual’s position within a component. As the score increases, it indicates that the individual is more represented in the foods with higher positive loadings of the PC. Conversely, as the score decreases, it means that the individual is less represented by the positive loadings of the PC. In the case of a component with negative loadings (i.e., PC1 and PC5), as the score increases (positive values), it indicates that the individual is more represented by eating less food with negative values.

Statistical analysis

After the creation of the PCA derived dietary patterns, multivariate linear regression models were performed to study the association between PCA standardized scores (continuous and tertiles) and neuropsychological outcomes (SDQ externalizing score, SDQ internalizing, ANT impulsivity index, ERT score), and all final models were adjusted for confounding variables.

First, we performed the multivariate linear regressions between PCA standardized scores and neuropsychological outcomes to study their linear association. Then, the PCA standardized scores were divided into three tertiles to avoid potential problems with non-linear relationships between the exposure and the outcome. By converting the tertiles into continuous variables (coded as 1, 2, and 3), we calculated the p-for-trend to evaluate the dose-response effect of the exposure variable. The confounding variables included in the regression models were as follows: age, gender, body mass index (BMI), physical activity and maternal education. Age was studied as a continuous variable (12–16 years old), while gender was categorical (female / male). The BMI, based on the World Health Organization (WHO) referent, was computed weight (kg)/length (m) [2] and then converted as z-scores (BMI z-scores). Physical activity was evaluated as high-intensity activity practice in four categories: once, twice, three times and more than three times a week. Finally, maternal education (presence or absence of university studies) was expressed as dichotomous.

For all regression models, the p-value of < 0.05 was considered statistically significant. Specifically, in the analysis of the ordinal exposure variable (categories), we considered the test as p for trend, with p-values < 0.05 indicating statistical significance. We did not conduct an in-depth analysis when significance was found only in the categorical exposure variable without the presence of a significant p for trend. To reduce the Type I error rates when performing multiple regression models, we conducted the False Discovery Rate test. We considered a threshold value of 0.05 to calculate the q-values. Only p-values below the q-values were considered as new thresholds for statistical significance. All analyses were conducted using RStudio version 4.2.3.

Results

The baseline characteristics of the study population are shown in Table 1. Participants had an equal gender distribution, and age was within few years of rank (mean, 13.8 years, SD = 0.9). Most mothers’ participants had university studies (60.5%).

Table 1 Baseline characteristics of the study population (n = 643)

Six dietary patterns were extracted using PCA; eigenvalue > 1.8 criteria for PC retention and loadings greater than |0.2| were statistically relevant for the analysis. The six PC retained account for 30.77% of the total variance of the FFQ data.

Factor loadings for the dietary patterns are presented in Fig. 1. The first dietary pattern, referred to as the “low consumption of meat and fish” dietary pattern, was characterized by lower intake of chicken, beef pork, fish, and fish derivates, low-fat cheese, hot dog, hard cheese, omelet, fried egg, and ham. The second dietary pattern, described as “fruits” dietary pattern, was characterized by higher intake of peach, watermelon, strawberries, orange, apple, vegetables, and legumes. The third dietary pattern, referred to as the “dairy products, soft drinks and juices” pattern, was characterized by higher intake consumption of skimmed yoghurt, light soft drinks, packaged fruit juice, petit Suisse, soft drinks, other oil, butter, and integral bread. The fourth dietary pattern, referred to as the “nuts” dietary pattern, was characterized by a higher intake of hazelnuts, walnuts, almonds, omega 3 eggs, and fruits. The fifth dietary pattern, implied to as “low consumption of calorie-dense foods” pattern, was characterized by lower intake of industrial (french fries from fast-food restaurants, frozen or bagged) and homemade fries (homemade fried or cooked potatoes), seeds and other nuts, pizza, chocolate pastries, hotdogs, chocolates, and mayonnaise. The sixth dietary pattern, described as a “mixed” dietary pattern, was characterized by a higher intake of white bread, olive oil, cereals breakfast, raw vegetables, cooked vegetables, tomato sauce, legumes, and rice pasta.

Fig. 1
figure 1

Factor loadings for the 6 principal components in adolescents PC Principal Component, var (%) proportion of variance. The 6 principal components retained, before to varimax rotation, add up to 30.77% of the total variance of the dietary data (cumulative variance)

Table 2 presents the fully adjusted model associations between patterns of diet and neuropsychological outcomes in the adolescents’ population. For SDQ externalizing score, statistically significant inverse associations were found for “low consumption of calorie-dense foods” as continuous (\(\:{\beta\:}_{1}\)= −0.49, 95% CI = −0.75, −0.24, p value < 0.001) and tertiles (tertile 3; \(\:{\beta\:}_{1}\)= −0.93, 95% CI = −1.56, −0.30; p for trend = 0.004). The SDQ internalizing score only showed an inverse association between the “low consumption of calorie-dense foods” dietary pattern when this variable was expressed as continuous (\(\:{\beta\:}_{1}\)= −0.46, 95% CI= −0.67, −0.26, p value < 0.001).

Table 2 Multiple linear regression models for principal component (PC) dietary patterns and SDQ externalizing and SDQ internalizing outcomes in the adolescent population

Table 3 shows the fully adjusted model associations between the PC dietary patterns and the neuropsychological outcomes (ANT impulsivity index and ERT score). ANT impulsivity index showed an inverse association with “nuts” dietary pattern when this exposure was continuous (\(\:{\beta\:}_{1}\)= −24.60, 95% CI = −36.80, −12.41, p value < 0.001). We also observed a positive association between ERT score and “low consumption of calorie-dense foods” dietary pattern as continuous standardized score (\(\:{\beta\:}_{1}\)= 0.59, 95% CI = 0.14, 1.04, p value = 0.010) and tertiles (tertile 3: \(\:{\beta\:}_{1}\)= 1.31, 95% CI = 0.18, 2.44, p value < 0.05; p for trend = 0.023).

Table 3 Multiple linear regression models for principal component (PC) dietary patterns and ANT Impulsivity Index and ERT outcomes in the adolescent population

We performed the False Discovery Rate test for each regression model. Finally, after adjusting the new comparisons of p-values with q-values, the condition to accept the alternative hypothesis was met only in the following regressions when the exposure variable is continuous: SDQ externalizing and PC5 “low consumption of calorie-dense foods” (p value < 0.001, q value = 0.006), SDQ internalizing (p value < 0.001, q value = 0.002), and PC5 “low consumption of calorie-dense foods” and Impulsivity Index and PC4 “Nuts (p value < 0.001, q value = 0.004)” (Supplementary Table 4). The regression model where the exposure variable (PC) was in ordinal tertiles 1, 2, and 3 (p for trend) did not meet the conditions of the Benjamini-Hochberg critical value (Supplementary Table 5).

Discussion

In this cross-sectional study conducted within the framework of the WSS Intervention Trial [24], we observed the association between PCA-derived dietary patterns and neuropsychological outcomes in the adolescent population. Six dietary patterns were identified that demonstrate specific characteristics: “low consumption of meat and fish”, “fruits”, “dairy products, soft drinks and juices”, “nuts”, “low consumption of calorie-dense foods” and “mixed diet”. In fully adjusted multivariable models, “low consumption of calorie-dense foods” dietary pattern was negatively associated with SDQ externalizing and internalizing problems. Additionally, the “nuts” dietary pattern was negatively associated with the ANT impulsivity index. All these beneficial associations between diet and neuropsychological outcomes remained significant after FDR corrections.

According to neuropsychological outcomes, we found that “low consumption of calorie-dense foods” dietary patterns had a protective association with SDQ externalizing problem score, which includes ADHD symptoms and conduct problems. Other observational studies have shown an association between ultra-processed and junk food with externalizing symptoms and mental health disorders in children and adolescents [33, 34]. Independent of other potential confounding variables and childhood diet, higher intakes of unhealthy foods in children, even in pregnancy [35], predicted externalizing problems. The Western Australian Pregnancy Cohort (Raine) Study provides more evidence for adolescent women consuming a Western dietary pattern and externalizing problem behaviors [36]. On the other hand, a cross-sectional study showed that a “low fat eating” pattern made adolescents less likely to have hyperactivity symptoms and mental disorders [37]. In like manner, we found statistically significant and inverse associations between the consumption of “low consumption of calorie-dense foods” dietary preference and SQD internalizing scores. That means that people who had low consumption of calorie-dense foods had fewer internalizing symptoms (emotional symptoms and peer problems). A meta-analysis with a child and adolescent population (age = 3.9–18 years) that considered twenty-six cross-sectional studies, and, in one case-control study, the authors described an association between unhealthy diets (i.e., junk food, fast food and food associated with takeout services) and internalizing symptoms as well as symptoms of depression [38].

Further, the adherence to the “nuts” dietary pattern showed a protective association with ANT impulsivity index. Nuts are rich in omega-3 alpha-linolenic acid (ALA). In this context, a previous cross-sectional study involving the WSS cohort observed a beneficial association between erythrocyte membrane ALA levels in tertiles and a decreasing impulsivity index [39]. Impulsive behavior in the context of attention tasks is characteristic of ADHD symptoms. In this context, other studies in children and adolescents have reported an inverse association between a healthy diet (nuts, vegetables, olive oil) with symptoms of ADHD [40, 41]. These findings can be explained because nuts are rich in omega-3 fatty acids. Omega-3 is essential for protecting neurons from oxidative stress, promoting the formation of neurites, improving synaptic activity, and promoting dendritic branching [42]. Additionally, it has been suggested that omega-3 fatty acids help in impulsive and aggressive behaviors by enhancing the regulation of hormones and neurotransmitters [43].

In statistical terms, we observed discrepancy between the significant results in the continuous PCA score and the non-significant results in the tertile analysis for the same associations (e.g., “low consumption of calorie-dense foods” PC and SDQ internalizing score; “nuts” PC and ANT Impulsivity Index) warrants careful interpretation. Continuous variables capture the complete range of data, which may make them more sensitive to detecting subtle relationships. In contrast, tertile categorization simplifies the data into broader groups, which provides wider conclusions for each representation group, respectively, to each dietary pattern.

The main limitation of this cross-sectional study is that because both the outcome and the exposure are looked at the same time, it is impossible to discern the temporal relationship between them. The inability to prove the directionality of relationships, indeed, to infer causality of the study findings, and a non-randomized design are other limitations of this cross-sectional investigation using regression models. Additionally, the sample used in this research is derived from an intervention study and it is not nationally or regionally representative. Consequently, the characteristics of our study sample may differ from those of the general population, which could impact the generalizability of our findings. Additionally, despite efforts to control for confounding factors, residual confounding remains a key issue in observational studies, and interactions with other environmental factors may not be fully accounted for. Therefore, there may be unmeasured variables that influence both dietary patterns and neuropsychological outcomes (e.g., socioeconomic status). For instance, using the mother’s education level alone may not encompass all aspects of the socioeconomic background of the WSS sample. Furthermore, we cannot discard the possibility of a certain degree of misclassification from FFQ variables and residual confounding typically described in observational studies. PCA was performed in the adolescent’s food preferences and this technique, as an advantage, condenses a bigger collection of correlated variables into a smaller number of more understandable axes of variation. However, this methodology has limitations, such as linear relationship assumptions between variables and loss of information in the dimensionality reduction process. Finally, given the use of questionnaires to collect information on the possible confounders and the non-administration of missing data in the PCA’s matrixes, the sample size was reduced in the regression models due to missing responses. However, we found statistically significant associations, even after FDR corrections, despite a relative loss of sample size.

Overall, our results suggest that dietary patterns that includes “nuts” and “low consumption of calorie-dense foods” are associated with lower symptoms of externalizing and internalizing problems, and lower impulsivity index in teenagers. These are important neuropsychological outcomes related to brain maturity during adolescence. More randomized interventional studies among teenagers are needed to determine the causality of these associations in this observational study. However, this study provides valuable insights and a scientific foundation for further investigating the effect of dietary patterns on neuropsychological functioning during adolescence.