Introduction

Women of childbearing age have not been spared in the obesity epidemic worldwide. In fact, maternal obesity or overweight are among the most common conditions present during pregnancy in the developed world, affecting up to 47% of women [1]. Obesity in pregnancy has been associated with an increased risk of serious adverse outcomes, including miscarriage, fetal congenital anomaly, thromboembolism, gestational diabetes mellitus (GDM), preeclampsia, postpartum hemorrhage (PPH), wound infections, stillbirth and neonatal death and a lower breastfeeding rate [1,2,3]. The consequences of fetal exposure to the intrauterine conditions associated with maternal obesity may also extend to the neonate, as infants born to obese women appear to be at increased risk for a number of congenital anomalies, including neural tube defects and macrosomia [4, 5]. Additionally, it is important to note the effect of “nutrition programming” [6]. In fact, there is increasing evidence about the influence of maternal nutritional status and diet during pregnancy and infant type of feeding during the first months of life on child development and health in later adulthood [7]. Early programmed effects on anthropometric, metabolic, and neurological development have been suggested [8,9,10]. In this regard, milk from obese or gestational diabetic mothers presented changes in the concentration of several bioactive components [11] that could influence short- and long-term infant health status [12]. Furthermore, several studies have linked maternal and child weight through the transmission of maternal commensal microbiota, which is probably colonized during gestation [13,14,15]. Interestingly, Guilley et al. examined maternal human milk oligosaccharides (HMOs) between overweight/obese and normoweight mothers and observed an alteration in their composition. Furthermore, offspring from obese mothers presented a lower abundance of short-chain fatty acid (SCFA)-producing bacteria and lower fecal butyric acid levels, with a prediction of elevated adiposity at 12 months [16]. It follows that maternal obesity might also “program” offspring for lifelong obesity and associated metabolic and mental disorders [9, 17,18,19].

On the other hand, GDM is estimated to affect up to 14% of pregnancies [20] and is increasing worldwide in the wake of the increase in obesity [21]. Maternal consequences include an increased rate of hypertensive disorders during pregnancy and a future risk of type 2 diabetes mellitus (T2DM) as well as other aspects of metabolic syndrome, such as obesity, cardiovascular morbidities, recurrent GDM [1, 22] and a variation in the gut microbiota composition of the offspring during the first week of life and 9 months after birth [23]. Moreover, there are maternal complications secondary to delivering a neonate that is macrosomic or large for gestational age (LGA), such as an increased rate of cesarean delivery, postpartum hemorrhage and birth trauma [22].

The WHO [24] estimates that one in five children and adolescents experience mental health problems, which are known to predict other negative outcomes in later life, including noncompletion of schooling, physical health problems, drug and alcohol misuse, marital difficulties, increased mortality, injury risk, and involvement in the criminal justice system [25,26,27,28]. According to several authors, many risk factors during the prenatal period (a critical window for later behavioral development) could contribute to the development of future mental diseases [29,30,31]. Research also demonstrates the importance of environmental influences (e.g., prenatal and perinatal risk factors) on the causation of externalizing behavior [32]. One reason that may cause an increase in these risk factors is the inflammatory milieu present in maternal obesity and GDM during gestation [33, 34]. It has been proven that a fetus maturing under those conditions (obesity and/or GDM) has a higher risk of developing different neurodevelopmental disorders during childhood [35], such as attention problems, hyperactivity and anxiety [36,37,38,39]. Furthermore, adverse birth outcomes, including low birth weight and preterm birth, exposure during pregnancy to maternal smoking, alcohol consumption, GDM and psychological stress, have been identified as the most important pre- and perinatal factors associated with attention-deficit/hyperactivity disorder (ADHD) [40,41,42]. In a recent review, the association between maternal obesity and neurodevelopmental and psychiatric morbidity in offspring was investigated [43]. Brion et al. found significant associations between maternal overweight and externalizing and total problems at 3 years old in the Dutch Generation R cohort but not in the Avon Longitudinal Study [44]. Furthermore, Rodríguez et al. reported that a higher maternal prepregnancy body mass index (BMI) (overweight and obesity) was associated with core symptoms of ADHD in school-age children [45]. On the other hand, one hypothesis to explain the influence of maternal weight on their children is the transmission of obesogenic microbes from the mother to her offspring [13]. In this connection, several studies have shown that maternal prepregnancy obesity imprints a selective gut microbial composition during late infancy [46, 47].

During the first 3 years of life, children’s brains growing rapidly parallel to deep gut microbiota establishment and development through communication along the “gut-brain axis” has been postulated as one plausible mechanism influencing infant neurodevelopment [48, 49]. Experiments in animal models have shown that the maturation process of the gut microbiota coincides with intense synaptogenesis and pruning in the cerebral cortex, ending in adolescence [50,51,52]. Therefore, it is increasingly considered that gut microbes are part of the unconscious system influencing early neurodevelopment with potential later psychiatric expressions. In this regard, the theory that health across the lifespan is shaped during early sensitive windows, known as the developmental origins of health and disease, is a focus of pediatric molecular epidemiology, and the microbiome likely plays a crucial role in the most significant problems of behavior, such as externalizing (aggression, conduct problems, hyperactivity and inattention) and internalizing problems (emotional and affective problems, anxiety and depression) at 3 to 5 years old. Studying early biomarkers and symptomatology is of crucial importance because it could help to understand the underlying etiology of behavioral problems in preschool children [53, 54]. The objective of this study was to evaluate the influence of preconceptional maternal BMI and/or GDM on child behavior at 3.5 years old and to identify other possible influencing factors, including early gut microbiota composition and functionality and breastfeeding.

Material and methods

Study design and subjects

The PREOBE study design, the characteristics of the pregnant women and their compliance have been described previously [18]. Briefly, 331 pregnant women were recruited between 2008 and 2012 through collaboration with the Clinical University Hospital San Cecilio and the Mother–Infant University Hospital of Granada, Spain, and their peripheral health centers. The inclusion criteria were single pregnancy at 12 to 34 weeks of gestation (before 20 weeks), aged 18 to 45 years, no simultaneous participation in another study, no drug treatment, no vegan diet, and no diagnosed diseases other than obesity, overweight or GDM. Based on their prepregnancy BMI, pregnant women were assigned to one of the following three groups: 1. normoweight (18.5 ≤ BMI < 25), n = 71; 2. overweight (25 ≤ BMI < 30), n = 45; and 3. obese (BMI ≥ 30, n = 40) (Fig. 1). Women who developed GDM during pregnancy remained in their group depending on prepregnancy BMI as follows: 1. normoweight group with GDM: n = 20; 2. overweight with GDM: n = 14; and 3. obese with GDM: n = 14 (Fig. 1). According to the hospital routines, mothers diagnosed with GDM were invited to participate in an endocrine nutritional program to optimize glucose control using nutritional and lifestyle recommendations and, in some cases, medical treatment. Overweight and obese mothers without GDM received no intervention or dietary recommendations except the regular ones.

Fig. 1
figure 1

This figure shows drop-outs since delivery to 3.5 year old. D = drop-outs and E = exclusions (1 infant at delivery due to congenital heart disease and one before the six months follow up due to severe immunodeficiency). CBCL = Child Behavior Checklist; GDM = Gestational diabetes mellitus

Ethics, consent, and permissions

Ethical approval was obtained from the Research Ethics Committee of the University of Granada. The Bioethical Committees for Clinical Research of the Clinical University Hospital San Cecilio and the Mother–Infant University Hospital of Granada, Spain, approved the project. A member of the research group provided full information about the project, and written informed consent was obtained from all women prior to entering the study. The project was registered at www.ClinicalTrial.gov (no.: NCT01634464).

Data collection during pregnancy

In this study, baseline and background characteristics of pregnant women and their offspring, including maternal age, weight gain during pregnancy, preconceptional maternal weight, height, and BMI, maternal education level, maternal intelligence quotient (IQ) assessed with Catell’s Culture Fair Intelligence Test (g factor) [55, 56], smoking habit and alcohol consumption during pregnancy, gestational age at delivery, neonatal anthropometric measures (birth weight, length and head circumference), Apgar scores, family situation, type of delivery, baby gender, and parity, were collected using questionnaires and medical records. In addition, at three months of age, mothers were interviewed by an expert pediatrician about infant diet, which was categorized as breastfeeding, formula feeding or mixed feeding.

Child behavior checklist (CBCL)

Parents completed the Child Behavior Checklist for Ages 1½–5 (CBCL) (Spanish validated version) [57] when their children were 3.5 years old. This test includes 101 items divided into two scales (“internalizing problems” and “externalizing problems”) and a total score. The internalizing problems scale is divided into four syndrome subscales: emotionally reactive behavior, anxiety/depression, somatic complaints, and withdrawn behavior. The externalizing problems scale is divided into two syndrome subscales: attention problems and aggressive behavior. Additionally, it assesses sleep, affective problems, anxiety, pervasive developmental problems, ADHD and oppositional defiant problems. The sum of the items of each CBCL scale provides a score that becomes the basis for the assignation of the children into one of the following three groups: normal, borderline and clinical (pathological) [57].

DNA Extraction from stool samples

Genomic deoxyribonucleic acid (DNA) was extracted from the fecal bacteria of these infants (n = 64) at 18 months of age, as previously described [58]. Briefly, fecal samples were resuspended in 1 mL of TN150 buffer (10 mM Tris–HCl with a pH of 8.0 and 150 mM NaCl). Zirconium glass beads (0.3 g) and 150 mL of buffered phenol were added, and bacteria were disrupted with a mini bead beater set to 5000 rpm at 4 °C for 15 s (Biospec Products, Bartlesville, OK, USA). After centrifugation, genomic DNA was purified from the supernatant using a phenol‒chloroform extraction. Quality was checked by agarose gel electrophoresis and quantified with a QuantiT PicoGreen dsDNA assay kit (Invitrogen, Darmstadt, Germany).

16S rRNA gene sequencing and data processing

Genomic DNA from fecal bacteria was used as a template for 16S ribonucleic acid ribosomal (rRNA) gene amplification using 27F and 338R universal primers and two consecutive polymerase chain reactions (PCRs) to integrate Illumina multiplexing sequences as previously described [59]. The library was prepared by pooling equimolar ratios of amplicons and was sequenced using an Illumina MiSeq platform (Genetic Service, University of Granada, Granada, Spain). Reads were demultiplexed and sorted, and paired ends were matched to yield 240 nt reads. The dataset was filtered, and OTUs were defined at 99% similarity with the MOTHUR programs unique.seqs and pre.cluster [60]. Taxonomic classifications of OTUs were assigned using the naïve Bayesian algorithm CLASSIFIER of the Ribosomal Database Project [61]. OTUs were considered unassigned when the confidence value score was lower than 0.8 and were annotated using upper taxonomic ranks.

Statistical analysis

All statistical analyses were performed using the SPSS statistical software package for Windows (version 24.0; IBM SPSS Inc., Chicago, IL, USA). Normally distributed variables are presented as the mean and standard deviation (SD), and nonnormal variables are presented as the median and interquartile range (IQR). Categorical variables are shown as frequencies and percentages. Differences in CBCL scores among the three PREOBE groups were evaluated using an analysis of variance (ANOVA) or Kruskal‒Wallis rank-sum test for nonnormal continuous variables and a chi-square or Fisher’s test for categorical variables. To determine differences according to the development of GDM, a univariate analysis of variance was performed. When significant differences were found between groups, a posteriori Bonferroni correction was used to identify significant pairwise group differences. A logistic regression model (enter method) was used to calculate odds ratios (ORs) and 95% confidence intervals (CIs) of having a normal/clinical pathologic value in the different groups of study using the normoweight group as a reference. Moreover, variables showing significant group differences were adjusted to univariate general linear models (ANCOVA) and multivariate logistic regression models. Spearman’s correlation analyses were performed to estimate the associations between preconceptional maternal BMI, breastfeeding, and child behavioral problems. In a secondary analysis, to establish the influence of confounder variables regardless of group, we used a logistic regression (Wald test). For the appropriate analysis of gut microbiota compositional data, we performed all statistical analyses and graphical representations in R [62] using the packages tidyverse [63], corrplot [64], psych and stats [65]. The contribution of metadata variables to microbiota community variation was determined by distance-based redundancy analysis (dbRDA) on genus-level Aitchison distance (Euclidian distance between samples after centered log-ratio transformation, as recommended for compositional data) with the capscale function in the vegan R package [64]. Correlations between gut microbial composition and CBCL scale were identified using Spearman’s nonparametric correlation test. The Bonferroni procedure (FDR < 0.01) was used to correct for multiple testing in correlations between taxa and CBCL scores. Associations between taxa and CBCL scores after screening the effect of microbiota covariates were assessed by fitting a generalized linear model (GLM) with the glm R function. Unless otherwise stated, the significance cutoff was set at p < 0.05 or false discovery rate (FDR) < 0.05 when multiple test correction was applied.

Results

Characteristics of the PREOBE study participants at 3.5 years old

Of the 331 pregnant women included in the PREOBE study, 156 were included in the present study after exclusions and dropouts. Children’s behavior was assessed at 3.5 years old using the CBCL test (Fig. 1).

Background and baseline characteristics of the mothers and their offspring are shown and compared among the three PREOBE groups in Table 1. Statistical analysis revealed significant differences between study groups in weight gain during pregnancy, maternal educational level and maternal IQ. In fact, normoweight pregnant women presented more weight gain during pregnancy than obese pregnant women (p = 0.008). Moreover, normoweight pregnant women showed a higher cultural level than obese pregnant women (p = 0.001) and higher IQ than overweight pregnant women (p = 0.025). On the other hand, obese mothers had an increased risk of GDM (35%) compared with overweight (31.11%) or normoweight mothers (28.17%), although the difference was not significant. Finally, differences in neonatal birth weight were marginally significant among groups (p = 0.065), as was the type of feeding at 3 months (p = 0.060). The skewed variables were included in the analyses.

Table 1 General characteristics of the PREOBE mother–child pairs who participated in the children behavioral follow up at 3.5 years of age

Effects of maternal prepregnancy BMI on children’s CBCL scores at 3.5 years old

The effects of maternal prepregnancy overweight or obesity on children’s CBCL scores at 3.5 years of age are shown in Table 2. We found that children born to overweight mothers showed higher scores in anxiety (p = 0.027) and total problems (p = 0.039) than children born to normoweight mothers, although significance was lost after adjustment for confounders (weight gain during pregnancy, maternal educational level and maternal IQ). Moreover, differences between children’s scores were seen in anxiety/depression (p = 0.044) and internalizing problems (p = 0.048); however, the p values did not remain significant after a Bonferroni post hoc test (p = 0.083 and p = 0.199, respectively). Additionally, the results for emotionally reactive and externalizing problem scores were not significant (p = 0.056 and p = 0.062, respectively), even after adjustment for confounding variables (p = 0.065 and p = 0.199, respectively).

Table 2 Effects of maternal pre-pregnancy BMI on children’s CBCL scores at 3.5 years of age

Subsequently, we categorized the CBCL children’s scores according to normal, borderline and clinical pathology outcomes (Table 3). In general, children born to overweight or obese mothers more frequently showed scores classified as borderline or clinical pathology. The analysis showed that children born to overweight mothers presented more borderline anxiety/depression (p = 0.018) and clinical pathology such as externalizing problems (p = 0.020) and total problems (p = 0.031) than children born to healthy normoweight mothers. Concerning oppositional defiant problems, children born to normoweight mothers were more frequently classified as normal than children born to overweight mothers (p = 0.008). Furthermore, children born to obese mothers presented more borderline anxiety problems (p = 0.006) than those born to healthy normoweight mothers.

Table 3 Effects of maternal pre-pregnancy overweight or obesity on children’s CBCL scores at 3.5 years of age compared to those born to healthy normoweight pregnant women (controls)

Impact of GDM on children’s behavioral problems at 3.5 years old

Additionally, we studied the impact of the development of GDM in overweight, obese or normoweight pregnant women on children’s CBCL scores. The statistical analysis revealed significant differences only in offspring of the obese mothers group, as the children born to obese mothers with GDM presented higher scores in aggressive behavior (p = 0.008) and oppositional defiant problems (p = 0.004) than the children born to obese mothers without GDM (see Additional file 1: Table S1). Moreover, when we performed the analysis of CBCL scores by categorizing into clinical clusters, we found that the children born to obese mothers with GDM presented more clinical pathology regarding externalizing problems (p = 0.015) and more borderline ADHD symptoms (p = 0.011) than the children born to obese mothers without GDM (see Additional file 2: Table S2).

Effects of maternal metabolic status and potential confounders on behavioral development in PREOBE children at 3.5 years of age

Logistic regression models, calculating the OR and 95% CI for CBCL scores of children born to obese and overweight groups, respectively, against the normoweight group as a reference, are presented in Additional file 3: Table S3. We found an increased risk in children born to overweight and obese mothers vs. those children born to normoweight mothers of having externalizing problems (OR 4.786, 95% CI 1.400–16.364, p = 0.013; OR 4.863, 95% CI 1.390–17.014, p = 0.013, respectively), total problems (OR 3.636, 95% CI 1.513–8.740, p = 0.004; OR 2.937, 95% CI 1.178–7.326, p = 0.021, respectively) and anxiety problems (OR 3.300, 95% CI 1.028–10.592, p = 0.045; OR 4.400, 95% CI 1.383–13.994, p = 0.012, respectively). A similar increased risk was seen in children born to overweight vs. normoweight mothers regarding the anxiety/depression score (OR 4.271, 95% CI 1.372–13.289, p = 0.012), withdrawn behavior score (OR 4.187, 95% CI 1.205–14.550, p = 0.024) and internalizing problems score (OR 3.038, 95% CI 1.366–6.757, p = 0.006). Nevertheless, when the logistic regression models were adjusted by confounding factors (weight gain during pregnancy, maternal educational level and maternal IQ), these differences disappeared.

Correlation analysis between gut microbiota composition in children at 18 months of life and their CBCL scores at 3.5 years

We initially examined gut microbiota covariation with CBCL scales in the context of known microbiota covariates, which included maternal age, smoking during pregnancy (yes/no), alcohol consumption during pregnancy (yes/no), neonate weight, gender, type of delivery (C-section or vaginal), gestational diabetes (yes/no), maternal pregestational BMI groups (normoweight, overweight and obese) and type of feeding up to the third month. We determined the proportion of interindividual variation in microbiota composition explained by covariates using a dbRDA at the genus level with Aitchison distance. This confounder analysis revealed a significant association with maternal pregestational BMI, which was considered in downstream statistical analyses to avoid covariate effects (Fig. 2).

Fig. 2
figure 2

Principal component analysis based on Aitchison distance of microbial community composition in 18-moths old infants grouped by mother pre-gestational BMI: normoweight, overweight and obese. Each colored point represents a sample. Distance between samples on the plot represents differences in microbial community composition at genus level, with 17.2% of total variance being explained by the first two components

Next, we identified associations of infant gut microbiota at the genus level with CBCL scales at 3.5 years (Spearman’s correlation, Bonferroni FDR < 0.01, Fig. 3). The internalizing problems scores were negatively correlated with Fusicatenibacter and Butyricicoccus within Firmicutes. Within the subscales, the anxiety/depression and somatic complaints scores were positively correlated with an unclassified genus in Clostridiales (unclass_Clostridiales) and with Flavonifractor, respectively, both belonging to Firmicutes. Somatic complaints, emotionally reactive problems, and withdrawn behavior scores were negatively correlated with Fusicatenibacter. On the “externalizing problems scale”, the aggressive behavior scores were negatively correlated with Barnesiella (Bacteroidetes) and Ruminococcus (Firmicutes). On independent scales, the sleep problems scores were negatively correlated with Megasphaera (Firmicutes). Attention deficit hyperactivity problems and aggressive behavior scores were negatively correlated with Barnesiella. Pervasive developmental problems scores were negatively correlated with Fusicatenibacter. Interestingly, the overall total problem scores were negatively correlated with Fusicatenibacter and Butyricicoccus.

Fig. 3
figure 3

Heatmap diagram of significant correlations between gut microbial composition and CBCL scale. Green squares represent significant associations by fitting a generalized linear model (GLM) between taxa and CBCL scores after partially out the effect of microbiota covariables

Fitting GLMs between CBL subscales and microbial genera (FDR < 0.05; Fig. 3) while screening the maternal pregestational BMI covariate contribution confirmed significant correlations between the abundances of three genera and CBCL scores. An inverse association with mental health problems remained largely significant for the Fusicatenibacter genus. Negative correlations between Fusicatenibacter abundances were confirmed with total problems, internalizing problems and its subscales somatic complaints and withdrawn behavior, and pervasive developmental problems. Positive correlations between the abundances of unclass_Clostridiales and Flavonifractor and anxiety/depression and somatic complaints subscales, respectively, remained significant.

Influences of maternal pregestational BMI on breastfeeding and their consequences on behavioral development in PREOBE children at 3.5 years of age and gut microbiota composition at 18 months

Finally, we tested whether maternal pregestational BMI had any effects on breastfeeding and its association with later behavioral development. Remarkably, Spearman’s correlation analysis revealed that higher maternal pregestational BMI was associated with higher anxiety (rs = 0.321; p = 0.003), internalizing (rs = 0.291; p = 0.006), externalizing (rs = 0.255; p = 0.018) and total problems (rs = 217; p = 0.045) in their children at 3.5 years old only in the group of children who were breastfed during their first 3 months of life. No correlations were found in the group of children fed with infant formula or mixed feeding (Fig. 4).

Fig. 4
figure 4

Spearman correlation analysis between pre-conceptional maternal BMI and anxiety (A), internalizing (B), externalizing (C) and total (D) problems. rs: correlation coefficient Rho Spearman

To identify the possible gut bacteria that could influence these results, we analyzed the gut microbiota composition of children at 18 months born to obese/overweight mothers who were exclusively breastfed during the first 3 months of life. At the phylum level, we detected a positive correlation between Actinobacteria and somatic complaints, Fusobacteria and withdrawn behavior and Fusobacteria and pervasive developmental problems. At the family level, 6 families (Coriobacteriaceae, Leuconostocaceae, Ruminococcaceae, Unclass_Firmicutes, Fusobacteriaceae and Streptococcaceae) were positively correlated with somatic complaints, withdrawn behavior, sleep problems, internalizing problems, pervasive developmental problems, total problems and anxiety/depression. Finally, we detected positive and negative correlations between all CBCL subscales and several genera, highlighting a positive correlation between Flavonifractor and sleep problems and negative correlations between Fusicatenibacter and somatic complaints, affective problems and pervasive developmental problems (Fig. 5).

Fig. 5
figure 5

Heatmap diagram of significant correlations between gut microbial composition from children born to obese mothers with breastfeeding and CBCL scale

Discussion

Obesity before and during pregnancy is the most important cause of increased systemic inflammation in the fetal compartment, and exposure to a proinflammatory milieu might produce alterations in brain structure and later neurocognitive function and psychopathology [66,67,68]. Experimental studies in animals concluded that exposure to high levels of proinflammatory cytokines produced negative consequences in neurogenesis, apoptosis, neurotransmitter levels and myelination [69], leading to a decrease in gray and white matter volumes, abnormal development of fetal brain and later behavioral problems [70], and even increased risk for neuropsychiatric disorders [71]. In this regard, some studies in animals showed that the offspring of mothers who are obese during pregnancy showed reduced central serotonergic and dopaminergic signaling in brain regions (nucleus accumbeus, hippocampus and prefrontal cortex) associated with cognitive development and psychiatric problems in humans [72,73,74].

In the present study, we provide evidence that children born to obese and overweight mothers presented higher scores in the CBCL test and increased risk for developmental behavior problems at 3.5 years old than those born to healthy normoweight mothers. Recently, a meta-analysis supported the idea that offspring born to mothers who were overweight or obese prior to pregnancy have an increased risk of compromised neurodevelopmental outcomes, such as ADHD, autism spectrum disorder developmental delay and emotional/behavioral problems [39]. Moreover, Jo. et al. determined that children whose mothers were severely obese before pregnancy had an increased risk of unfavorable development, such as emotional symptoms, peer problems, ADHD, autism or developmental delay [75]. Another study showed that learning and behavioral disabilities, as well as ADHD, autism, pervasive development disorder, oppositional defiant disorder or another developmental delay, occurred more often in children who were born to severely obese mothers [76]. In addition, Mina et al. showed that 3- to 5-year-old children born to very severely obese mothers have higher scores for externalizing and total problems, anxiety/depression, aggressive behavior and other syndromes and more DSM-oriented affective problems, anxiety and ADHD problems in CBCL [77].

Affective problems, including major depressive disorder and dysthymic disorder, are the most common mental problems in children and adolescents [78, 79]. Recent studies have shown that factors present in fetal life could affect the development of common mental disorders, such as depression [80, 81]. Empirical data suggest that obesity and metabolic disorders, such as GDM, are associated with a higher risk of depression. Recent studies suggest a possible link between maternal metabolic conditions and programming of the fetal brain in the uterus, which could predispose the fetus to suffering from emotional problems in childhood [82]. Robinson et al. confirmed the relationship between maternal prepregnancy BMI (obesity and overweight) and the development of affective and emotional problems [78]. Additionally, maternal prepregnancy obesity and overweight were found to predict a higher risk for inattention and emotional regulation problems when children were 5 years old [83].

Moreover, interestingly, our results indicate that children born to obese mothers with GDM presented higher scores in psycho-behavior problems than children born to obese mothers without GDM or overweight/healthy normoweight mothers who developed GDM. Therefore, maternal diabesity represents the worst-case scenario for the fetus, increasing the odds of developing behavioral problems during childhood. Our results seem to be in agreement with other previously published studies showing that lower IQ, language disability, attention problems, impulsivity, and behavioral problems are linked to GDM [84, 85]. In addition, other studies found that children of diabetic mothers had higher rates of ADHD symptoms [42, 86]. The intrauterine conditions associated with childhood obesity are characterized by a series of prenatal factors, such as suboptimal maternal diet and/or nutritional deficiencies, diabetes mellitus, psychosocial stress, increased levels of proinflammatory cytokines, and obstetric complications. These factors are associated with deficits in brain growth in the offspring and are attributed to fetal programming, including brain inflammation, behavioral alterations in the offspring and later mental health [31, 87, 88]. The maturing brain is a target for these environmental insults, and anything affecting the developing brain, such as elevated circulating levels of glucose or fatty acids, has the potential to determine childhood and adult behavior [89, 90]. Particularly, in obese and diabetic pregnant women, an increased inflammatory milieu appears during gestation that might represent a biological condition involved in the genesis and development of behavioral and psychological problems in the offspring. Among other possible mechanisms proposed to underlie the risk of neurodevelopmental morbidity are the dysregulation of leptin signaling in the developing brain, serotonergic and dopaminergic signaling and impaired reward circuitry or alteration of brain-derived neurotrophic factor-mediated synaptic plasticity [43].

Psycho-behavior research has provided evidence of an association between maternal prepregnancy BMI and emotional and behavioral problems in children [91], and a higher risk of externalizing (ADHD and aggressive behavior) and internalizing problems are related to prepregnancy adiposity [92]. However, as the higher risk for externalizing problems appears early during development, some recent research has shown the increasing risk for internalizing problems later in life. It is not yet clear whether the delayed expression of internalizing symptoms is caused by stress linked to externalizing problems in early life, programming of internalizing problems during pregnancy or heterotypic continuity [87]. Nevertheless, our data showed higher scores in internalizing symptoms such as anxiety/depression and externalizing problems in children 3.5 years old born to overweight and obese mothers with GDM, respectively, suggesting that psycho-emotional and behavioral problems may be programmed in early life. It is important to note that maternal psychosocial variables, such as maternal IQ, educational level, and breastfeeding, were associated with lower psycho-behavioral problems, influencing child behavior development more frequently.

There is increasing evidence on the influence of the type of feeding during the first months of life on infant development as well as on later health in adult life[7]. During the first 1000 days of life, the intensity of growth makes the brain particularly vulnerable to adverse nutritional stimuli and has a direct impact on cognitive and behavioral development [93], and this period is a critical window in the establishment of the gut microbiota community, which has been linked with later neurodevelopment skills and obesity status [94]. Breastfeeding is the gold standard of nutrition for optimal development, and the benefits on cognitive function are clear [95], but there are fewer studies about its role in emotional regulation and behavior development. In this regard, breastfeeding has been associated with a lower risk of behavioral problems in childhood. Parker et al. found that breastfeeding absence was associated with increased internalizing, externalizing, and overall behavioral problems as well as the diagnosis of ADHD [96]. In another study, children who were breastfed and whose mothers actively engaged with them showed the lowest risk of internalizing problems at 6 years old [97]. However, some studies have not found an association between breastfeeding and behavioral problems during early childhood [98]. Kwok et al. found inconsistent associations between breastfeeding and several early adolescent mental health factors, where confounding factors, such as socioeconomic status and maternal educational level, play an important role in the establishment of a good behavioral system and mental health [99]. Along these lines, several studies have shown that a large number of social and parental educational factors might influence child development independently of the breastfeeding effect [95]. Wigg et al. noted that when confounders such as social advantage, maternal education and intelligence, and the quality of a child’s developmental experiences were taken into account, the differences between bottle-fed and breastfed groups disappeared [100].

Most likely, there is an association between social, genetic and nutritional factors that could be essential for optimal brain development. The benefits of breastfeeding could be related to a stronger psychological attachment between mother and child neurodevelopment and not only to breast milk intake. Quinn et al. found that children who were breastfed presented better scores in language than formula-fed children, but this association was reduced though remaining significant when a large number of confounding social and parental factors were considered [95]. In this sense, milk from obese or gestational diabetic mothers might contain a lower abundance of protective factors than milk from normoweight mothers [101, 102]. Likewise, the omega-6/omega-3 ratio is increased, while the fatty acid (docosahexaenoic acid, eicosapentaenoic acid and docosapentaenoic acid) concentration and carotenoid (lutein) concentration are decreased [103]. Interestingly, and according to our results, breastfeeding in the offspring of overweight and obese mothers appears to be related to higher anxiety, internalizing problems, externalizing problems and total problems in children at 3.5 years old.

During early childhood, many behavioral problems that determine the development of mental pathologies in adult life, as well as higher rates of school dropout, substance abuse, problems with justice and suicide, can be identified. The emotional and psychological state of the child might be inferred through internalization problems, such as anxiety, depression, somatic complaints, withdrawn behavior or affective problems [104]. In contrast, externalizing problems manifest as aggressive behavior, opposite defiance or inattention. Thus, there is a clear distinction between externalizing and internalizing disorders. Despite the overlap between both, as children with internalizing problems might have disruptive behaviors with the environment and vice versa, children with externalizing problems could suffer several internal emotional problems. Therefore, it is necessary to perform a behavioral global study to understand its etiology and long-term consequences [105,106,107].

In addition, advances in 16S rDNA gene sequencing have recently shown the association of the gut microbiota with the pathophysiology of neurological disorders, such as anorexia nervosa, major depressive disorder (MDD), bipolar disorder, anxiety, psychosis, and schizophrenia. Fecal microbiota transplants from patients with psychiatric conditions resulted in the development of behavioral and physiological responses in germ-free mice, suggesting that the gut microbiota may be involved in neurological disorders and may serve as a biomarker[108]. Interestingly, evidence from epidemiological studies indicates that maternal prepregnancy obesity is also associated with increased risks for autism spectrum disorder, cognitive dysfunction, attention-deficit hyperactivity disorder, and other mental disorders [109]. In fact, our previous studies showed that maternal prepregnancy obesity may imprint a selective gut microbial composition during late infancy with distinct functional performances [47], and perhaps this factor would modulate the development of fine motor skills [110]. In the present study, we observed negative correlations between Fusicatenibacter and several CBCL scores. The Fusicatenibacter genus comprises one single cultured Fusicatenibacter species, F. saccharivorans, a strict anaerobic sugar fermenter and producer of propionate and acetate[111]. Dong et al. showed that the abundance of Fusicatenibacter was significantly lower in patients with MDD and general anxiety disorder, where a significant negative correlation between Fusicatenibacter abundance and thyroid hormone FT4 levels was observed[112]. Valles-Colomer et al. identified significant associations between the abundances of 10 genera and quality-of-life scores, including both mental and physical scores, where Fusicatenibacter was positively correlated with quality-of-life scores. Nevertheless, Medawar et al. observed a positive correlation between Fusicatenibacter abundances and unhealthy eating behavior, higher subjective hunger ratings and lower fecal concentrations of propionate and acetate [113]. Another genus linked to neurodevelopmental disorders was Flavonifractor, whose abundances were positively correlated with somatic complaints in our study. While Rothenberg et al. observed a positive correlation between Flavonifractor abundance and mental developmental index scores in children at 3 years of age [114], Luna et al. conducted a study showing higher levels of Clostridiales, including Flavonifractor plautii, in children with autism spectrum and functional gastrointestinal disorders[115]. Likewise, in our study, an unassigned genus within Clostridiales was positively correlated with anxiety/depression scores. Bacteria within Clostridiales are predominant members of the gut microbiota that are more abundant in children with neurodevelopmental disorders[116]. Furthermore, Rhee et al. analyzed the association of serum microbial DNA composition with depressive and anxiety symptoms in patients, observing a positive association between the Desulfovibrionaceae family and Clostridiales Family XIII with the total Beck Anxiety Inventory score[117]. Nevertheless, in adults, Li et al. showed a significant depletion of 6 genera within Clostridiales in multiple psychiatric diseases that was associated with dysfunction in amino acid and carbohydrate metabolism [118]. Our results suggest an association between gut microbiota at 18 months of life and CBCL scores in 3.5-year-old children that varies by population characteristics, type of disorder and timing of microbiota assessment. Further accurate and reliable evidence is needed to clarify the potential role of early life gut microbiota imprinting and maturation in children with neurodevelopmental disorders.

On the other hand, to improve prevention and intervention strategies, early detection of psychological and social factors that contribute to the development and maintenance of overweight and obesity, especially during pregnancy, is necessary because of the long-term consequences on children’s health. In this regard, our results highlight the importance of studying the influence of prepregnancy obesity and GDM on children’s future psycho-behavior and central nervous system development, considering their gut microbiota composition as a key modulator.

In summary, our current study helps to fill the gap in examining the relationship between prepregnancy weight status and child behavior development and confirms previous results shown in other studies, as there is not enough evidence about the impact of maternal metabolic state on behavior problems in children between 2 and 5 years old, especially in GDM mothers. Moreover, our results provide evidence that children whose mothers are obese and present GDM have an increased risk of developing behavioral problems. Furthermore, we provide evidence that the early gut microbiota composition in infants is a possible behavioral modulator for the future design of preventive strategies. Finally, the aforementioned influences of nutritional and maternal sociodemographic factors might help to clarify the etiology of behavioral problems during childhood. In this regard, it is important to note that human milk of overweight and obese mothers seems to be related to higher behavioral problems in children at 3.5 years old.

Strengths and limitations

The main strength of this study is its longitudinal design, which allowed long-term monitoring. An important issue has been the possibility of performing gut microbiota analysis at 18 months and behavioral assessment in this special cohort, which allowed us to develop these pilot studies to formulate new hypotheses. Furthermore, the presence of a specific group of mothers who developed GDM made it possible to study the effects of GDM development according to preconceptional BMI. The use of CBCL scales, a highly reliable and valid measure of childhood behavior, permitted us to arrive at important conclusions. All of the children evaluated were healthy, and maternal IQ and education level were used as confounding factors. Notably, the present study underlined the importance of optimal implantation of the intestinal microbiota during the first months of life in the development of behavioral alterations in children, which can be associated with different mental illnesses later in life. In addition, this study considers the intestinal microbiota as a potential biomarker of long-term problems related to mental health.

Among the limitations of the study, we should note that we have not included data about the mother's mental health status during pregnancy or stress, anxiety or depression, and other important variables such as diet or nutritional deficiencies. Moreover, we had no data on socioeconomic status at the moment of the evaluation, although other studies accounted for it and found it to be a significant predictor of mental health problems in children [119]. In addition, although our results regarding the offspring of obese mothers with GDM are in agreement with previously published studies [42, 86], caution should be taken because of the relatively small sample size of our groups.

Conclusions

According to our results, maternal overweight and obesity during pregnancy are significantly associated with elevated levels of behavior problems. Being obese with GDM during pregnancy increases behavioral problems in the offspring. This effect is not observed in overweight or normoweight mothers. Furthermore, the type of feeding during the first months of life, early gut microbiota composition and maternal psychosocial variables more commonly influence child behavior development. The results link early life gut microbiota composition with later mental health in children and state the importance of maternal metabolic status, suggesting a fetal programming of mental health and different nutritional and environmental factors in the causation of behavioral problems in children. Future research is needed to verify and clarify the mechanisms behind the observed associations.