Introduction

Pediatric obesity has become so widespread that the World Health Organization has deemed it one of this century’s most momentous public health obstacles1. In the United States, the prevalence of pediatric obesity has nearly quadrupled since the early 1970s2,3. Obesity is not only a chronic disease but is also a risk factor for the development of multiple metabolic and cardiovascular diseases, including diabetes, hypertension, liver disease, kidney disease, and some cancers4,5. Further, obesity early in life has been associated with an increased risk for premature death6,7,8,9,10 and has been linked to alterations in structural and functional brain development. In terms of brain structure, reductions in microstructural integrity are commonly identified in youth with overweight and obesity, though some studies report conflicting results11,12,13,14,15,16. Further, obesity has been associated with cortical thinning in prefrontal regions that are crucial for executive functions and higher-order cognitive abilities, which develop across childhood and into early adulthood17,18,19. Executive function, which is comprised of the integration, manipulation, and inhibition of multiple cognitive processes in the pursuit of goal-directed behavior20,21, emerges in early infancy, and is refined across a protracted developmental course continuing into early adulthood22,23,24. Deficits in executive function have been implicated in both adult25,26,27,28 and pediatric11,12,15,29,30 participants with obesity and overweight. Recent reviews summarizing the pediatric obesity literature report that inhibitory control has been the most commonly studied constituent of executive function31,32,33, though several studies have investigated working memory, cognitive flexibility, and attention and found significant associations with obesity. A considerable proportion of meta-analyses and other studies report deficits across a variety of executive functions in youth with obesity34,35,36,37, though a handful of studies report conflicting results38,39,40.

Fluid intelligence (Gf) is tightly coupled with executive functions, particularly working memory and inhibitory control41,42, and is more generally believed to index an individual’s capacity for decontextualized reasoning and one’s ability to react and adapt to novel situations or stimuli43,44. Gf rapidly develops in childhood and has been shown to be strongly predictive of academic achievement45,46,47. Interestingly, alterations in the development of Gf abilities have been associated with childhood obesity. Specifically, in a sample of 5–12 year-old children who underwent the Raven’s Progressive Matrices test48, those with severe obesity were twice as likely to have below-average Gf compared to normal-weight children49. Further, in a subsample of adults from the UK Biobank study, the excess accumulation of both visceral and non-visceral (e.g., subcutaneous) adiposity was found to be inversely associated with Gf50,51, thus underscoring the importance of additional work investigating the mechanisms giving rise to obesity-related alterations in neural and cognitive development.

Though Gf and higher-order cognition more broadly relies on normal functioning of prefrontal and parietal regions, Jung and Haier52 proposed that such functions involve a much wider set of regions in their parieto-frontal integration theory (P-FIT) of intelligence. This predominant theory of the neural basis of intelligence suggests that intelligence and reasoning are not dependent upon the activity of discrete brain regions, but instead rely upon a distributed network extending from the primary sensory cortices to the parietal, frontal, and cingulate regions to quickly and accurately transmit information to support goal-oriented behavior52,53,54. Within these broad regions, areas of the lateral prefrontal cortex, angular gyrus, and superior and inferior parietal cortices have been frequently implicated in fMRI studies evaluating higher-order cognitive abilities, such as working memory, matrix reasoning, and card sorting tasks55,56,57. Further, studies using magneto- and electroencephalography (M/EEG) have illuminated the crucial role that neural oscillations in parietal and prefrontal regions play in abstract reasoning47,58,59,60. For example, a previous MEG study of abstract reasoning in adults found that older age was associated with stronger alpha/beta activity in the parietal cortices, and that functional alpha/beta connectivity was stronger with older age between the frontal and parietal cortices and weaker between parietal-hippocampal regions, thus reflecting aging-related changes in processing speed and efficiency61. There are also pediatric MEG studies of abstract reasoning showing that beta activity in frontal and temporal regions becomes stronger with development, possibly reflecting the refinement of other cognitive processes supporting Gf such as top-down attentional control47,62,63. Perhaps most importantly, longitudinal MEG work has shown that increases in the strength of theta oscillations in prefrontal and superior temporal cortices scale with improvements in abstract reasoning performance in children and adolescents47. More broadly, similar to other higher-order processes, greater task complexity and cognitive exertion have been linked to stronger oscillatory responses associated with abstract reasoning in the aforementioned regions64,65,66.

With the rise in the prevalence of pediatric obesity over the last several decades, it is becoming increasingly necessary to investigate the implications not only to long-term physical health, but also to mental and cognitive health. As previously discussed, obesity has been related to significant aberrations in cognitive processes, but less is known about its relationship with the neural mechanisms serving cognition in pediatric samples. Herein, we sought to identify whether the neural oscillatory dynamics underlying Gf scale with age- and sex-standardized measures of body mass index (BMI) using an abstract reasoning task and high-density MEG imaging in a community sample of children and adolescents. Of note, we focused on age- and sex-standardized measures of BMI in this study because, unlike in adult samples, the relationship between BMI and adiposity changes throughout development, which necessitates an age- and sex-corrected adjustment to BMI values67. To mitigate this, BMI percentiles standardized for age and sex are typically used to quantify obesity in children68,69, and the Center for Disease Control and Prevention (CDC) defines pediatric obesity as a BMI at or above the 95th percentile for the individual’s sex and age. Based on the extant literature, we hypothesized that participants with higher age- and sex-corrected BMIs would exhibit proportional alterations in the neural oscillations serving abstract reasoning in the prefrontal and parietal cortices, and that these effects would be related to observable differences in task performance. In line with this, we find that participants with higher zBMI exhibit weaker theta oscillations and altered patterns of functional connectivity in key brain regions involved in abstract reasoning.

Results

Following parental informed consent and assent of the participating child/adolescent, all participants completed a thorough intake interview where they provided demographic, physical, and mental health information through a series of assessments and questionnaires. They then completed a custom abstract reasoning task based on Raven’s Progressive Matrices (Fig. 1)48,70 during high-density MEG and underwent a high-resolution structural MRI scan. The MEG data were coregistered to the MRI data, transformed into time-frequency space, and significant oscillatory responses were imaged using a beamforming approach. Whole-brain correlations with zBMI were then computed across the whole sample to identify oscillatory responses that were related to zBMI. Associations with behavioral and cognitive performance were also assessed, as was functional connectivity among regions exhibiting significant relationships to zBMI. For a thorough overview of the study protocol, abstract reasoning task, and analytic pipeline, please refer to the Methods section.

Fig. 1: Abstract reasoning task paradigm.
Fig. 1: Abstract reasoning task paradigm.
Full size image

Participants were presented with an empty grid of gray boxes for 2500 to 3000 ms with either the left or right bottom square highlighted by a white border to indicate the location of the upcoming target. Complex images then populated each of the four squares within the grid for 4000 ms. Participants indicated whether the image in the highlighted square correctly completed the pattern in the grid by responding via button press (i.e., right index finger for matching patterns, 60 trials; right middle finger for non-matching patterns, 60 trials). Match and non-match trials of each pattern were presented in a pseudo-randomized order for the duration of the task.

Participant characteristics, neuropsychological, and behavioral results

Seventy-two youth between the ages of 9–16 years were enrolled and a total of 66 participants successfully completed the abstract reasoning task and had complete data on height, weight, sex, age, and mental health measures (Table 1; see Supplementary Table 1 for a breakdown by weight class). The sample had an average age of 13.09 years (SD = 1.93 years) and 53% were female. Participants had an average zBMI of −0.05 (SD = 1.21). As expected, age was not associated with zBMI (r(64) = 0.12, 95% CI: −0.12, 0.36, p = 0.322), and there were no differences in zBMI among males and females (t(64) = 0.69, 95% CI: −0.39, 0.81, p = 0.493). Overall, participants performed well on the abstract reasoning task in terms of accuracy 82.55% (SD = 8.48%) and mean reaction time 1960.43 ms (SD = 315.43 ms). In terms of task behavior, we found that higher accuracy during the abstract reasoning task was significantly associated with scores on the Wechsler Abbreviated Scale of Intelligence – 2nd Edition (WASI-II), including T-scores from the Block Design subtest (r(64) = 0.33, 95% CI: 0.10, 0.53, p = 0.007; Fig. 2A) and Matrix Reasoning subtest (r(63) = 0.26, 95% CI: 0.02, 0.48, p = 0.034; Fig. 2B), along with the standard score from the Perceptual Reasoning Index (PRI) Composite (r(63) = 0.34, 95% CI: 0.11, 0.54, p = 0.005; Fig. 2C). Note that all WASI-II correlational analyses with task accuracy and zBMI survived at p < 0.05 following FDR correction. Finally, higher zBMI was associated with poorer performance on the Block Design subtest (r(64) = −0.32, 95% CI: −0.52, −0.08, p = 0.010; Fig. 2D).

Table 1 Participant characteristics
Fig. 2: Accuracy on the MEG abstract reasoning task was associated with measures of fluid intelligence.
Fig. 2: Accuracy on the MEG abstract reasoning task was associated with measures of fluid intelligence.
Full size image

Accuracy (% correct) was significantly associated with scales from the Wechsler Abbreviated Scale of Intelligence – 2nd Edition (WASI-II), including the (A) Block Design and (B) Matrix Reasoning subtests, as well as the (C) Perceptual Reasoning Index (PRI) Composite. (D) Finally, zBMI was significantly associated with Block Design T-scores. The gray shaded area depicts the standard error of the mean. The gradient of the data points reflects each participant’s age in years. Note that one participant had incomplete data for the Matrix Reasoning subtest and the PRI Composite (n = 65), but all participants had complete data for the Block Design subtest (n = 66). *p < 0.05.

Neural oscillatory responses

Sensor-level MEG data were transformed into the time-frequency domain and statistically examined using a rigorous two-stage approach. We observed robust neural oscillatory responses in three temporally and spectrally defined windows during the abstract reasoning task (Fig. 3). These included statistically significant theta oscillations (100–425 ms, 4–8 Hz, with an increase in power relative to the baseline period), robust and temporally extended alpha/beta oscillations (450–1450 ms, 8–16 Hz, with a decrease in power relative to the baseline), and gamma oscillations (200–1200 ms, 62–66 Hz, with an increase in power relative to baseline). Please refer to Supplementary Fig. 1 for a map of the MEG sensor array showing the locations of the MEG gradiometers used to display the significant oscillatory responses. All responses were significant at p < 0.005 following multiple comparisons correction using nonparametric permutation testing. These time-frequency windows were imaged using a beamformer and one-sample t-tests were conducted per oscillatory response to assess the significant task-related responses serving abstract reasoning. These analyses revealed that significant oscillatory theta, alpha/beta, and gamma responses were widespread and extended across bilateral occipital, parietal, temporal, and frontal regions (Fig. 3; all ps < 0.001).

Fig. 3: Neural oscillatory responses to the abstract reasoning task.
Fig. 3: Neural oscillatory responses to the abstract reasoning task.
Full size image

(Left): Grand-averaged time-frequency spectrograms of MEG sensors exhibiting one or more significant oscillatory responses. Shown from top to bottom: gamma (62–66 Hz, 200–1200 ms; MEG1913), alpha/beta (8–16 Hz, 450–1450 ms; MEG2042), and theta (4–8 Hz, 100–425 ms; MEG1123). Each spectrogram displays frequency (Hz) on the y-axis and time (ms) on the x-axis. Signal power data are expressed as a percent difference from the baseline period (−1800 to −800 ms) with color scale bars shown to the right of each spectrogram. Data from all 66 participants included for further analysis are represented in the spectrograms. Please refer to Supplementary Fig. 1 for a map of the MEG sensor locations. (Right): One-sample t-tests across all participants for each time-frequency component depicting the significant oscillatory responses serving abstract reasoning. Color scale bars display uncorrected p values.

Whole-brain correlations with zBMI

To address our primary hypotheses, we standardized BMI scores for differences in sex and age (in months) based on the CDC growth charts according to Cole’s LMS method71,72. We then assessed the relationship between zBMI and theta, alpha/beta, and gamma oscillatory responses using voxel-wise correlations with the participant-level functional MEG images. Whole-brain correlations revealed that higher zBMI were associated with weaker theta oscillations within the left DLPFC (r(57) = −0.46, 95% CI: −0.64, −0.23, p < 0.001, corrected; Fig. 4) and the left TPJ (r(57) = −0.41, 95% CI: −0.60, −0.17, p = 0.001, corrected; Fig. 5A) during the abstract reasoning task. Interestingly, weaker theta oscillations in the left TPJ were also associated with worse performance on the abstract reasoning task (i.e., slower reaction times; r(57) = −0.31, 95% CI: −0.53, −0.06, p = 0.016; Fig. 5B). Theta activity in the left DLPFC and left TPJ were not significantly associated with accuracy during the abstract reasoning task. No significant relationships were observed between zBMI and alpha/beta or gamma oscillations in these whole-brain analyses.

Fig. 4: Higher zBMI is associated with blunted theta oscillations in the left DLPFC.
Fig. 4: Higher zBMI is associated with blunted theta oscillations in the left DLPFC.
Full size image

(Left): Extracted pseudo-t values from the peak voxel in the left dorsolateral prefrontal cortex (DLPFC) are plotted to show the significant relationship between zBMI (x-axis) and oscillatory theta power (pseudo-t, y-axis) during task performance. Note that data from 59 participants were used for analyses following outlier exclusion at the whole-brain level. The gray shaded area depicts the standard error of the mean. The gradient of the data points reflects each participant’s age in years, which was not significantly related to these findings. (Right): Thresholded correlation map across all participants showing the left DLPFC cluster where theta oscillations were inversely linked to zBMI. **p < 0.005.

Fig. 5: Elevated zBMI is associated with attenuated theta oscillations in the left TPJ.
Fig. 5: Elevated zBMI is associated with attenuated theta oscillations in the left TPJ.
Full size image

A Extracted pseudo-t values from the peak voxel in the left temporoparietal junction (TPJ) region are plotted to demonstrate the significant relationship between zBMI (x-axis) and weaker oscillatory theta power (pseudo-t, y-axis) during abstract reasoning. B Weaker oscillatory theta power in the left TPJ was associated with slower reaction times (ms) during the abstract reasoning task. Note that data from 59 participants were used for analyses following outlier exclusion at the whole-brain level. In both scatterplots, the gray shaded area depicts the standard error of the mean. The gradient of the data points reflects each participant’s age in years, which was not related to either finding. *p < 0.05, **p < 0.005.

Exploratory relationships with dynamic functional connectivity

We conducted an exploratory analysis to determine whether theta-range dynamic functional connectivity among the left TPJ and DLPFC nodes was related to zBMI. Briefly, we computed the phase locking value (PLV)73 between peak voxels in the left DLPFC and TPJ, averaged these across the active period for theta oscillations (i.e., the time window used in the beamforming analyses; Fig. 6A), and then normalized this mean active period value by the mean PLV during the pre-stimulus baseline period per participant. We then tested the association between PLV, zBMI, accuracy, and reaction time and found that higher zBMI was associated with weaker theta-range functional connectivity (i.e., PLV) between the left DLPFC and left TPJ, controlling for source power (r(57) = −0.28, 95% CI: −0.50, −0.02, p = 0.035; Fig. 6B). In addition, stronger PLV was associated with better performance on the abstract reasoning task in terms of accuracy (r(57) = 0.38, 95% CI: 0.14, 0.58, p = 0.003; Fig. 6C) and reaction time (r(57) = −0.34, 95% CI: −0.55, −0.09, p = 0.009). Of note, as a sanity check, we also baseline-corrected the mean PLV during the active period by subtracting the mean PLV during the baseline period74 and the results (i.e., correlations with zBMI and behavior) were very similar to the original analysis.

Fig. 6: Exploratory analyses evaluating relationships between dynamic functional connectivity along the left DLPFC and left TPJ pathway with zBMI and task behavior.
Fig. 6: Exploratory analyses evaluating relationships between dynamic functional connectivity along the left DLPFC and left TPJ pathway with zBMI and task behavior.
Full size image

A The theta phase locking value (PLV) expressed as percent change relative to baseline was computed as a measure of dynamic functional connectivity between the left dorsolateral prefrontal cortex (DLPFC) and temporoparietal junction (TPJ) The gray shaded area depicts the active period (i.e., 100–425 ms), and the green shaded area depicts the standard error of the mean. Controlling for source power, (B) higher zBMI was associated with weaker theta connectivity (i.e., hypoconnectivity) between the left DLPFC and left TPJ, while stronger theta PLVs scaled with better task performance in terms of (C) accuracy (% correct) and (D) reaction time (ms). Note that data from 59 participants were used for analyses after controlling for source power. The gray shaded areas depict the standard error of the mean. The gradient of the data points reflects each participant’s age in years. *p < 0.05, **p < 0.005.

Discussion

In this study, we used an abstract reasoning task during high-density MEG recording in conjunction with age- and sex-adjusted BMI measures (i.e., zBMI) to examine whether the neural oscillatory dynamics underlying task performance scale with biometric measures. Briefly, abstract reasoning, which is tightly coupled with Gf and working memory, is known to undergo considerable development into early adulthood and is predictive of academic achievement41,42,45,46,47. Obesity is known to negatively affect executive function and higher order cognition29,30,31,49,50, though its specific effects on the neural oscillatory dynamics underlying abstract reasoning have not previously been investigated in youth. This leaves a notable gap in the literature, as higher-order cognitive deficits associated with obesity have been widely demonstrated in the behavioral literature, yet the relationship between zBMI and the neural populations serving these cognitive processes remains unclear. Our key findings demonstrate that youth with greater zBMI had reduced theta oscillations in frontoparietal cortices and altered theta-frequency functional connectivity between these frontoparietal regions, with both oscillatory amplitude and connectivity scaling with task performance. Additionally, task accuracy and zBMI were significantly associated with gold-standard measures of Gf and abstract reasoning. These findings and their implications are discussed below.

Gf relies on the coordinated efforts across a network of regions and cognitive domains spanning the parietal and frontal cortices. Jung and Haier’s P-FIT model postulates that sensory inputs to the parietal cortex are responsible for structural symbolism and abstraction, while interactions with the frontal cortex give rise to problem solving52. Several M/EEG studies have demonstrated spectrally-specific ensembles of coordinated oscillatory activity supporting Gf in fronto-parietal cortices47,75,76,77. Further, the left DLPFC and TPJ have been reliably implicated in the P-FIT model, with a number of fMRI and PET studies reporting increased activation in these areas during tasks linked to Gf, such as figural and matrix reasoning tasks78,79. Our findings linking the DLPFC and TPJ to abstract reasoning processes not only substantiate the existing literature, but also demonstrate the key roles of these regions and, importantly, their potential vulnerability to deviations from normal body mass, as we found that higher zBMI values scaled with altered theta oscillations in both regions. The TPJ is an important region for attentional control, as it is critically involved in the integration of salient contextual information, and it is modulated by the prefrontal cortex80,81. Indeed, this process is essential to Gf more broadly, and matrix reasoning tasks in particular, whereby one must identify whether an image completes the rest of a pattern. Furthermore, we identified a direct link between weaker theta power and behavior in the TPJ, such that blunted theta activity was associated with slower response times. This may be due in part to the TPJ’s role in attending to salient stimuli and reorienting attention82, but could also be related to the intricate oscillatory dynamics supporting the higher-order processes associated with Gf. Finally, these results are in agreement with the pediatric obesity literature, including a study from Kamijo et al. which found that children with obesity exhibited slower reaction times during trials requiring greater cognitive control (e.g., the incongruent condition of the Flanker task)83,84,85,86,87.

The results of our exploratory functional connectivity analyses revealed that stronger theta-band connectivity between the DLPFC and TPJ was associated with better task performance, whereas higher zBMI was associated with weaker theta connectivity. Much of the functional connectivity literature is in the context of resting-state activity with most studies reporting disrupted connectivity in individuals with obesity88. Recent studies using large-scale resting state datasets found that in adolescents, zBMI was negatively correlated with functional connectivity within- and between- functional networks16, and that BMI was positively associated with functional connectivity variability in the reward system in adults89. The relationship between increased zBMI and weaker functional connectivity observed during the abstract reasoning task appears to be maladaptive, as individuals with stronger connectivity tended to perform better on the task.

Broadly, neural oscillations play an essential role in cognition, with theta, alpha, and gamma oscillations giving rise to cognitive processes important for Gf and abstract reasoning. For example, stronger decreases in alpha power relative to baseline (i.e., desynchronizations) have been associated with the allocation of attentional resources47,62,63. Similarly, increases in gamma power have also been implicated in supporting top-down attentional control and higher-order cognition90,91. Further, theta activity has been shown to be crucial in coordinating a wide range of cognitive processes, including selective attention65, working memory92,93, and fluid intelligence. For example, Riddle et al.94 found that frontal theta activity became stronger with greater task demands, such as larger set sizes in a hierarchical cognitive control task94, and others have found that greater cognitive demands during working memory tasks scale with oscillatory theta power95,96. Alterations in theta oscillations and subsequent behavioral deficits in working memory performance have also been reported in individuals with autism and schizophrenia97,98, and prior work in our laboratory has demonstrated similar relationships between psychosocial distress and theta activity and behavior in youth performing the Flanker task99, suggesting that these population-level neural dynamics may be critical to mental health function. Our finding that zBMI values are closely associated with the amplitude of theta oscillations may reflect selective perturbation of functioning in these networks due to health-related alterations in neurotransmitter cycling, mitochondrial perturbations, elevated inflammatory levels, and/or related factors100,101,102,103. However, additional work is needed to decipher the mechanisms and potential pathways involved in the context of obesity-related disease processes.

Before closing, it is important to acknowledge limitations of this study. First, though BMI is an accessible and easy metric to acquire and screen for obesity, using it as a measure of obesity in youth is less than ideal as it cannot account for the body’s rapid growth and development during childhood and adolescence. Therefore, we used age- and sex-adjusted BMI (zBMI) to account for these differences in physical development. Unfortunately, neither BMI nor zBMI distinguish between adipose and lean body mass, and thus, future investigations should consider utilizing more reliable or direct measures of obesity such as DEXA scans or hip-to-waist circumference ratios. Further, though the sample included individuals with overweight and obesity, the parent study (Dev-CoG)104 did not target recruitment efforts to include individuals in this population, and thus, we were not sufficiently powered to separate our sample into groups for group-wise statistical analyses. Future studies that specifically target this population would benefit from being able to create several discrete groups based on obesity status for analysis (e.g., youth with healthy weight, youth with overweight, youth with obesity). Finally, we were unable to take pubertal status into account, and thus, future studies should evaluate the complex relationship between puberty and obesity on the neural dynamics serving higher-order cognitive processing.

Despite these limitations, our findings strongly suggest that normalized measurements of body mass scale with altered neural activity in regions serving Gf. Based on these findings and the extant literature, we hypothesize that studies that recruit participants with medically diagnosed obesity will observe even more robust relationships between obesity and neural indices supporting higher-order cognition. Our findings underscore the importance of research in this understudied, yet growing literature focused on youth with obesity, and the corresponding clinical implications during this crucial stage of cognitive development. Although a recently published study concluded that a domain-general cognitive control intervention had no significant effect on brain or behavioral outcomes in healthy children105, a handful of studies in the behavioral literature have shown that interventions focused on improving attentional and cognitive control in youth with obesity can have positive effects106,107. This may suggest that interventions aimed at improving abstract reasoning and Gf in youth who either have, or are at risk for developing obesity may be more efficacious in improving physical and cognitive outcomes for these individuals than for youth with healthy weight. However, more research will be needed to substantiate this claim. As rates of pediatric obesity continue to rise, understanding its long-term impacts on cognition is warranted. Coordinated efforts on all fronts are necessary for identifying and targeting efficacious treatments, and extensive work is needed to inform public policy and implement effective preventive strategies to reduce the individual and societal burdens of obesity.

Methods

Participants

Seventy-two youth between the ages of 9–16 years (Mean age = 13.09 years, SD = 1.93; See Table 1 and Supplementary Table 1 for full demographics) completed an abstract reasoning task as part of the National Science Foundation (NSF)-funded Developmental Chronnecto-Genomics (Dev-CoG) study104. Note that the MEG data from this study have been previously published in a study evaluating developmental sex differences in the neural oscillatory dynamics serving abstract reasoning75. Participants were recruited from the local community through advertisements, posted flyers, and community events. Flyers were also distributed through local elementary and middle schools. The racial and ethnic distribution of participants was monitored to ensure they reflected the demographics of the surrounding metropolitan area. Exclusionary criteria for enrollment in the study included any medical illness affecting CNS function, diagnosed neurological or psychiatric disorder, history of head trauma, current substance use, any medication known to affect CNS function, and the standard exclusionary criteria for MEG acquisition (e.g., dental braces, battery operated implants, and/or any type of ferromagnetic implanted material). Parents/guardians of participants signed informed consent forms, and the child and adolescent participants signed assent forms before proceeding with the study. All procedures were approved by the University of Nebraska Medical Center Institutional Review Board and all ethical regulations relevant to human research participants were followed in accordance with the Declaration of Helsinki.

Standardized Body Mass Index (zBMI)

Each participant’s height and weight were measured at their study visit and used to create a BMI score. In the United States, weight status is defined by four classes based on BMI. Briefly, BMIs < 18.5 are classified as underweight, 18.5 to 24.9 are healthy weight, 25.0 to 29.9 are overweight, and 30.0 and above are classified as obesity. BMI scores were then standardized based on sex and age (in months) based on the CDC growth charts, which contain 10 smoothed percentiles (between the third and 97th) of BMI for children and adolescents between the ages of 24–240 months (~20 years) of age108,109. These estimates were subsequently used to derive lambda (L, the power transformation to achieve normality), mu (M, mean or median), and sigma (S, coefficient of variation) parameters. The LMS parameters for BMI were derived from equations for smoothed percentiles109,110 based on Cole’s LMS method71,72. Estimates of these three parameters allow the BMI of youth to be expressed as a z-score (zBMI) and percentile relative to children of the same sex and age in the CDC growth charts using the following equation: \({zBMI}=[{(\frac{{BMI}}{M})}^{L}-1]\div(L\times S)\). Higher zBMI values were indicative of higher age- and sex-adjusted BMIs.

MEG and MRI data acquisition and analysis

Functional MEG data were collected using a MEGIN MEG system (Helsinki, Finland) equipped with 306 sensors (204 planar gradiometers, 102 magnetometers) using a 1 kHz sampling rate and an acquisition bandwidth of 0.1–330 Hz in a one-layer magnetically shielded room with active shielding engaged. During MEG recording, participants completed a non-progressive abstract reasoning task adapted from Raven’s Progressive Matrices111. MEG and MRI data processing closely followed previously reported pipelines47,60,61,70,75,76. The structural MRI data were aligned parallel to the anterior and posterior commissures and transformed into standardized space. MEG data were subjected to environmental noise reduction and corrected for head motion112. Only data from the 204 planar gradiometers were used for further analysis. All MEG and MRI data were further processed in BESA (Research: Version 7.1; MRI: Version 3.0; Statistics: Version 2.1). Cardiac and ocular artifacts were removed from the MEG data using signal space projection113, and this correction was accounted for during source reconstruction. The data were separated into 6500 ms epochs. Only trials with correct responses were considered for further analysis. Epochs containing artifacts were rejected using a fixed threshold method that was set per participant and supplemented with visual inspection. Briefly, in MEG, the raw signal amplitude is strongly affected by the distance between the brain and the MEG sensor array, as the magnetic field strength falls off sharply as the distance from the current source (i.e., brain) increases. To account for this source of variance across participants, as well as other sources of variance, we used an individualized threshold based on the signal distribution for both amplitude and gradient to reject artifacts. The average amplitude threshold across all participants was 1361.72 (SD = 352.63) fT/cm, the average gradient threshold was 283.98 (SD = 125.99) fT/(cm*ms), and an average of 86.19 (SD = 11.80) trials out of the original 120 were used for further analysis. The number of trials included in the final MEG analyses was not significantly associated with zBMI (r = −0.17, p = 0.187) or age (r = 0.21, p = 0.118). We then transformed the artifact-free epochs into the time-frequency domain (resolution: 2 Hz, 25 ms)114,115 and these were normalized by the baseline power of each respective bin, calculated as the mean power from −1800 to −800 ms, relative to stimulus onset.

Statistics and reproducibility

The time-frequency windows for subsequent source imaging were identified using a stringent two-stage statistical approach that utilized paired-sample t-tests against baseline on each pixel in the spectrogram (per sensor) at the first stage, followed up with cluster-based nonparametric permutation testing at the second level. This testing was conducted across all participants and the entire frequency range (4–100 Hz) and used an initial cluster threshold of a two-tailed p < 0.05 and 5000 permutations. These methods are described in depth in our recent publications116,117. Time-frequency resolved source images were computed using the dynamic imaging of coherent sources (DICS) beamformer to image oscillatory activity in the time-frequency windows of interest per participant118,119,120. Following convention, we used task and baseline periods of equal duration and bandwidth for each time-frequency cluster identified in the sensor-level analysis to derive noise-normalized source power estimates per voxel (resolution: 4 × 4 × 4 mm) for each participant. These maps reflect power differences between the active and baseline periods and were transformed into standardized space using the same transform that was applied to the native space structural images per participant and then spatially resampled. To examine oscillatory activity specific to abstract reasoning, source images for each participant were included in whole-brain one-sample t-tests per time-frequency window to identify significant neural oscillatory responses serving abstract reasoning.

To probe whole-brain associations between neural oscillatory power serving abstract reasoning and zBMI, we computed voxel-wise correlations between zBMI and each neural oscillatory map (i.e., theta, alpha/beta, gamma)75,121,122. Individual participant-level maps containing significant artifacts were excluded from further analysis. To aid in interpretation, pseudo-t values were extracted from the peak voxel of each significant cluster per participant and plotted. To account for multiple comparisons, a two-tailed significance threshold of p < 0.005 was used for the identification of significant clusters in all whole-brain statistical maps, accompanied by a cluster (k) threshold of at least 12 contiguous voxels (i.e., >750 mm3 of brain tissue) based on the theory of Gaussian random fields123,124,125. All whole-brain statistical analyses were computed using a custom function in MATLAB v.R2018b (MathWorks; Natick, Massachusetts) and other statistical analyses were conducted in IBM SPSS v.29.

Exploratory functional connectivity analyses

We then conducted exploratory dynamic functional connectivity analyses between the significant cortical regions derived from the whole-brain correlation maps identified in our main analyses. Phase locking was computed within the same time-frequency windows derived from our sensor-level statistical analyses. Specifically, we estimated the phase locking value (PLV)73 between the significant clusters identified through the correlation maps. The PLV reflects the intertrial variability of the phase relationship between pairs of brain regions as a function of time. Values close to one indicate strong synchronicity (i.e., phase locking) between the two brain regions within the specific time window across trials, whereas values close to zero indicate substantial phase variation between the two signals and, thus, weak synchronicity (connectivity) between the two regions. We extracted the mean PLV relative to the baseline period (expressed as a percent change from baseline) per participant within the time-frequency windows used for beamforming, which we then correlated with zBMI and measures of task performance (i.e., accuracy, reaction time), controlling for source power99. Of note, as a sanity check, we also baseline-corrected the mean PLV by subtracting the mean PLV during the baseline period74, which we then correlated with zBMI and task performance, controlling for source power. The results were very similar, so we report only the analyses that used the normalization approach, with PLV expressed as percent change from baseline.

Reporting summary

Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.