Introduction

Over recent decades, there has been a major change in the nutritional status of pregnant women. The incidence of obesity [body mass index(BMI) ≥ 30 kg/m2] has increased dramatically among women of childbearing age1,2, with prevalence rates of 7–25% in Europe and over 30% in the United States1. Epidemiological studies have consistently demonstrated a link between maternal undernutrition in pregnancy and adverse health consequences for the offspring3. However, increasing evidence shows that maternal obesity in pregnancy also predicts premature mortality, increased obesity, diabetes and cardiovascular disease risks and increased health care utilization in the offspring4,5,6,7,8,9. Although BMI is influenced also by several other factors than nutrition10,11,12, these findings can be seen as suggesting two developmental pathways of both maternal under- and over-nutrition being linked to offspring health.

Previous studies have shown that maternal overweight and obesity in pregnancy may also be associated with an increased risk of mental disorders and their symptoms in children4,13,14,15,16,17,18,19,20,21,22,23,24,25. A meta-analysis showed that maternal overweight (BMI 25–29.99 kg/m2) and obesity predicted increased risks of attention deficit hyperactivity disorder, autism spectrum disorder, and developmental delay in children14. To our knowledge, the largest study on maternal BMI and child mental disorders was a Finnish study among over 600 000 participants, which showed that children of women with obesity and particularly severe obesity (BMI ≥ 35 kg/m2) in early pregnancy had significantly increased risks of any mental disorder and several specific mental disorders13,21. However, almost all the studies included in the meta-analysis14 and the Finnish study13,21 followed-up the offspring only into childhood or adolescence. The exception was a Swedish study among over 300 000 participants, which followed-up offspring to ages 4–27 years, and found that offspring of women with overweight/obesity had increased risk of autism spectrum disorder, but not among a smaller subsample of differentially exposed siblings18.

Much less is known about the consequences of maternal underweight, overweight, obesity and severe obesity in pregnancy on offspring psychopathology risk in adulthood. The Dutch Hunger Winter and Chinese Famine studies showed that maternal undernutrition during pregnancy due to famine exposure predicted increased risks of schizophrenia, substance use, personality, and mood disorders in adult offspring3,26,27,28,29, but did not directly test effects of maternal BMI. The available data on maternal BMI in pregnancy and offspring adulthood psychopathology risk includes to our knowledge four studies, all on offspring schizophrenia, with between 336 and 10,500 participants and conflicting findings30,31,32,33. One study suggested a negative association of maternal BMI in pregnancy and offspring risk of schizophrenia30, two positive31,33, and one study showed no association32. However, none of these studies used the World Health Organization classification of BMI into categories34. Further, since the participants were born within a narrow range of birth years30,31,32,33, these studies could not test whether the effects of maternal BMI in pregnancy on offspring mental disorders are modified by offspring birth year, even though the rates of underweight, overweight, obesity and severe obesity have changed markedly across time1.

We hypothesized that both maternal underweight and obesity in pregnancy would be associated with an increased risk of offspring mental disorders in adulthood, with the greatest risk in the offspring of severely obese women13. To test this hypothesis, we examined the associations of maternal BMI in pregnancy and offspring mental disorders severe enough to require hospitalization or contribute to death in adulthood among 68,571 mother–offspring dyads identified from the Aberdeen Maternity and Neonatal Databank (AMND) and born 1950–1999. With such a range of birth years, we could examine the consequences of exposure to both maternal underweight and obesity in pregnancy, and test if the effects of maternal BMI on offspring mental disorders were time-dependent and varied by offspring birth year. We also tested if any associations were independent of several factors previously associated with maternal BMI and/or offspring mental disorders, including maternal mental disorders, maternal hypertensive pregnancy disorders and many sociodemographic and perinatal factors13,18,23,24,35,36,37.

Results

Sample characteristics

Table 1 shows the sociodemographic, maternal, and perinatal characteristics of our study sample. Table 2 shows the prevalence of any mental disorder and the specific mental disorder diagnostic categories in the offspring, along with the International Classification of Diseases, Tenth Revision codes used to identify these diagnoses and mean age at first diagnosis for each diagnosis. Mean age at first diagnosis of any mental disorder was 29.2 years, and 1103 (1.6%) offspring had been hospitalized or had died with a diagnosis of mental disorder. Mood disorders were the most common specific mental disorder category, followed by substance use and schizophrenia spectrum disorders.

Table 1 Characteristics of the whole study sample and of participants born 1950–1974 and 1975–1999.
Table 2 The prevalence of and diagnostic codes for and the mean age at first diagnosis for the different offspring mental disorders in the whole cohort and among participants born 1950–1974 and 1975–1999.

Table 3 shows the associations of the covariates with offspring mental disorders. Maternal smoking during pregnancy, maternal physician-diagnosed mental disorders, younger maternal age, gestation when weight was measured, lower social class of the family, and earlier birth year of the child all showed significant associations with increased hazards of mental disorders in the offspring (Table 3, all p-values ≤ 0.02).

Table 3 The associations of the covariates with offspring hazard of mental disorders among all participants and participants born 1950–1974 and 1975–1999.

Time-specific associations

The associations between maternal BMI and offspring mental disorders were time-specific, which was shown by maternal BMI emerging as a time-dependent predictor of offspring mental disorders (p = 0.02). Hence, to meet the proportional hazards assumption, we ran all further analyses dividing our sample into two halves by birth year: participant offspring born in 1950–1974 and in 1975–1999. This yielded two subsamples of 9937 and 58,634 participants. Within these subsamples, the associations of maternal BMI with child mental disorders were not time-specific (p-values ≥ 0.13).

Tables 1, 2 and 3 also show the perinatal characteristics, prevalence of mental disorders, and associations of the covariates with mental disorders in these subsamples and the differences in these factors between the subsamples. The prevalence of maternal early pregnancy underweight decreased across time (2.1% in the younger vs. 3.2% in the older cohort, respectively), while there were more women with overweight (26.5% vs. 18.9%) and with moderate (7.1% vs. 4.0%) and severe (2.6% vs. 0.9%) obesity in early pregnancy in the younger cohort (Table 1). Mean age at first diagnosis of mental disorder was 43.7 years in the older cohort and 24.2 years in the younger subsample. Mood disorders, substance use disorders and schizophrenia spectrum disorders were the most common subcategories of mental disorders in both subsamples, each with average ages of onset in adulthood in both subsamples (Table 2). Children born 1950–1974 had higher hazards of mental disorders than children born 1975–1999 did (Table 3). Maternal age at childbirth, smoking during pregnancy, and hospital-treated mental disorders, gestation when maternal weight was measured, and lower social class of the family were each significantly associated with offspring mental disorders in both subsamples. Maternal preeclampsia, self-reported mental disorders and multiparity were associated with increased hazards of mental disorders among offspring born 1975–1999. Also among offspring born 1975–1999, boys and older participants had higher cumulative incidences of mental disorders (Table 3).

Maternal BMI in pregnancy and offspring mental disorders among participants born 1950–1974

As shown in Table 4 and Fig. 1, in the older cohort, maternal underweight in pregnancy predicted a significantly (p = 0.05) increased, 1.7-fold hazard of any mental disorder in adult offspring. This association was independent of the birth year and sex of the child, gestational week at maternal weight measurement, maternal physician-diagnosed and self-reported mental disorders, hypertensive pregnancy disorders, smoking during pregnancy, age, parity, and social class of the family. Offspring of women with overweight, moderate obesity or severe obesity in pregnancy did not differ significantly in their hazards of mental disorders from offspring of women with normal weight in pregnancy in this subsample. None of the associations with offspring mental disorder subgroups was significant in this older subsample born 1950–1974.

Table 4 Maternal body mass index in pregnancy and hazard of mental disorders in offspring born 1950–1974.
Figure 1
figure 1

Maternal Body Mass Index in Pregnancy and Mental Disorders in the Offspring Born 1950–1974 and 1975–1999. Hazard Ratios (HR) and 95% Confidence Intervals (CI) from Cox Proportional Hazards Models adjusted for child sex and birth year and gestation at maternal weight measurement (Model 1) and additionally for maternal smoking and hypertensive disorders in pregnancy, maternal mental disorders, age, parity and social class of the family.

Maternal BMI in pregnancy and offspring mental disorders among participants born 1975–1999

Among offspring born 1975–1999, maternal severe obesity in early pregnancy was associated with a 1.6-fold significantly (p = 0.02) increased hazard of any mental disorder, and specifically 2.8-fold hazard of schizophrenia spectrum disorders and 1.9-fold hazard of substance use disorders (Table 5, Fig. 1), in the offspring. These associations were independent of all the covariates. Maternal moderate obesity or underweight showed no significant associations with offspring mental disorders. Maternal overweight was not associated with the hazard of any mental disorder in the offspring but maternal overweight in pregnancy did predict increased hazards of schizophrenia spectrum disorders and intellectual disability in the offspring.

Table 5 Maternal body mass index in pregnancy and hazard of mental disorders in offspring born 1975–1999.

Discussion

In our longitudinal cohort study, spanning over 60,000 births across five decades, maternal underweight and severe obesity in pregnancy emerged as time-dependent predictors of the hazard of mental disorders in adult offspring. While maternal underweight predicted increased hazard of any mental disorder in older offspring born in earlier years, among younger offspring, maternal severe obesity predicted increased offspring hazards of any mental disorder, substance use disorders, and schizophrenia spectrum disorders. All associations were independent of multiple covariates, including family’s social class, maternal mental disorders, hypertensive pregnancy disorders, and smoking in pregnancy. Our novel findings linking maternal severe obesity to offspring mental disorders also in adulthood are of particular concern given the rising prevalence of severe obesity among pregnant women1.

Few studies have examined effects of maternal underweight in pregnancy on offspring mental disorders. We found that in offspring born 1950–1974, offspring of women with underweight in early pregnancy had an increased risk of any mental disorder in adulthood. Our findings correspond with a Finnish study among offspring born 1924–1933 where lower maternal BMI predicted the risk of schizophrenia in adult offspring30, but not with a study in the United States among individuals born 1959–1967 which showed no effects of low maternal BMI on offspring schizophrenia risk31. These previous studies assessed maternal BMI at different gestational ages and with different methods30,31, and did not use the World Health Organization classification of underweight34. Also differences in the assessed mental health phenotypes and ages covered in diagnostic follow-ups may have contributed to the partially discrepant findings.

Notably, among participants born in 1975–1999, maternal severe prenatal obesity predicted increased hazards of any mental disorder and specifically substance use and schizophrenia spectrum disorders. These disorders most often had their onsets in young adulthood. Previous findings in children have also suggested that with increasing severity of maternal prenatal obesity, the consequences for offspring psychopathology risk may increase13,19. However, previous studies assessing effects of different levels of maternal obesity have had follow-up extending to adolescent age at most. The few available studies with follow-up extending to adulthood have not examined obesity severity effects, or focused on other mental disorders than schizophrenia or autism. In contrast to previous findings13, we found no effects of maternal moderate obesity on offspring mental disorders.

Importantly, the age specific findings in our study emerged particularly in those age groups where the exposure in question was more common: As shown in Table 1, maternal underweight was more common in the older and maternal severe obesity more common in the younger cohort. The incidence of underweight decreased and severe obesity increased across time in our cohort (Table 1). However, also the ages covered in the 20-year diagnostic follow-up differed depending on the birth year of the participant: participants born in the earlier years were older when the follow-up started, between 21 and 45 years of age in the older subsample and between 0 and 20 years old in the younger subsample. Hence, our time-specific findings may indicate either differential consequences of maternal BMI in pregnancy in different birth cohorts or at different ages.

Nevertheless, the more common forms of maternal abnormal BMI, possibly indicating malnutrition, observed among pregnant women across the world, were the key predictors of offspring mental ill health: underweight maybe indicating undernutrition in the older, earlier-born cohort, and severe obesity possibly signifying over-nutrition in the younger cohort. These observations chime with the Developmental Origins of Health and Disease—framework of chronic illnesses, according to which prenatal adversity leads to permanent changes in the development of organs, cells, and body’s biological feedback mechanisms, thereby contributing to an increased risk of chronic illnesses, including mental disorders subsequently38. Supporting the DOHaD framework and the possible role of under-or overnutrition underlying our findings, previous studies have shown that maternal undernutrition during pregnancy due to famine exposure may predict the risks of several different mental disorders in the offspring3,26,27,29, that specific maternal dietary patterns may predict increased risks of psychiatric symptoms and suboptimal neurodevelopment in children25, and that maternal obesity, dietary patterns and undernutrition in pregnancy may each predict altered brain structure in the offspring3,25,39.

However, also other mechanisms than maternal nutrition may have contributed to our findings. Convincing evidence shows that maternal obesity is associated with increased depressive and symptoms during pregnancy40 and that maternal depressive and anxiety symptoms during pregnancy are associated with increased psychopathology risk in the offspring41,42. Increased psychological distress during pregnancy in obese women, contributing to offspring psychopathology risk via prenatal programming or genetic or shared environmental pathways43 may thus explain the associations between maternal BMI and offspring mental disorders. Furthermore, lower socioeconomic position is consistently associated with an increased risk of obesity12, and previous evidence shows that there is a clear socioeconomic ingredient also in the AMND for the prevalence of maternal early pregnancy obesity both in the older44 and younger45 birth cohorts for the current study. As lower childhood socioeconomic position predicts an increased risk of mental disorders24, also in our study sample (Table 3), adverse childhood socioeconomic circumstances offer an additional pathway possibly contributing to our findings. However, neither childhood social class, as indicated by deprivation level of the family, nor maternal mental disorders explained the associations we found between maternal BMI with offspring psychopathology. On the other hand, maternal exposure to childhood maltreatment may also have contributed: Exposure to childhood maltreatment is associated with obesity risk11, also in pregnant women46, and childhood maltreatment predicts increased psychopathology risk both within the same47 and the next48,49 generation. A Mendelian randomization study suggests the effects on mental health within the same generation may be causal50. It is here of note that a large proportion of the mothers in the older subsample of the current study were children during World War II. Since Aberdeen was during the war affected by numerous air raids and had a large number of civilian victims, the childhood circumstances may have been adverse and traumatic for many women of our cohort. While we did not have data on maternal childhood maltreatment or other childhood traumas in our cohort, further studies should more specifically examine and compare the role of different etiological factors to the associations between maternal BMI in pregnancy and offspring mental disorders.

Neurobiologically, inflammatory pathways and other mechanisms related to individual’s altered stress vulnerability because of maternal obesity or underweight may have contributed to our findings. Obesity in pregnancy is a highly proinflammatory state4,17,25,51, and prenatal inflammation has been associated with psychopathology risk in the offspring17,52,53. Maternal BMI in pregnancy has been associated with altered functioning of the hypothalamus-pituitary adrenal axis in the offspring54, and changes in the functioning of this axis are characteristic of patients with mental disorders55. Furthermore, shared genetic vulnerabilities contributing both to our predictor and outcome phenotypes10,56 and/or maternal underweight or obesity in pregnancy leading to epigenetic changes in gene expression and contributing to an increased risk of mental disorders in the offspring4,57,58 are among the possible molecular pathways underlying the associations of maternal BMI in pregnancy with offspring mental disorders.

Our study has several strengths, including the longitudinal study design covering a combination of the whole range of mental disorders as outcomes and a lengthy follow-up extending into and/or across adulthood and over a period of time with dramatic changes in maternal BMI during pregnancy. Such a design has to our knowledge not been used in previous studies on maternal BMI and offspring psychopathology. With births spanning across five decades, we were able to assess temporal changes in the effects of maternal BMI in pregnancy on offspring mental disorders. We also benefited from a representative sample of over 60,000 participants. Due to the rich dataset, we could show effects occurring independently of maternal mental disorders, social class of the family, and the highly comorbid maternal hypertensive pregnancy disorders. When examining the associations of maternal BMI in pregnancy and child mental disorders, many studies have adjusted for maternal self-reported psychopathology, but fewer have controlled for physician-diagnosed mental disorders identified from nationwide health registers. Corresponding to the scarce previous evidence13,15,16,18,21, we found that maternal BMI in pregnancy predicted offspring psychopathology risk independently of maternal mental disorders and added to the previous findings by showing that such effects persisted to adulthood.

The limitations of our study included having no data on paternal BMI or mental health-the only paternal factor available was social class. Such paternal data would be important to disentangle prenatal programming effects from familial confounding. Unfortunately, register data in most countries lack such data on paternal factors during the offspring’s prenatal period. Furthermore, in the older subsample of our cohort, female offspring were overrepresented. This is most likely due to the more thorough BMI data available for the women of the cohort due to other AMND studies assessing the intergenerational transmission of perinatal characteristics through the maternal line2. Furthermore, we lacked data on maternal diabetes which often co-occurs with maternal obesity1,4,13. Indeed, previous evidence suggests that maternal diabetes and severe obesity may have additive effects on child mental disorders13, and further studies should examine if such additive effects extend to adult age. As outcomes, we focused on mental disorders severe enough to require hospitalization or contribute to death. It is thus questionable whether our findings generalize to less severe forms of psychopathology. We had diagnostic data only from Scotland, and were unable to identify whether participants had moved abroad during the follow-up. These factors may have biased our analyses. Also, since the distribution of maternal BMI differed between the subsamples of our study, statistical power to detect associations was stronger in the subsamples where the exposure in question was more common, which could suggest that bias related to differential statistical power would have contributed to the discrepant findings in the subsamples. Nevertheless, the significant time-dependency of the effects of maternal BMI on offspring mental disorders, and the clearly different hazard ratios in the maternal BMI groups within these subsamples do point out towards time- and/or birth-cohort-specific associations of maternal BMI with offspring mental disorders in the AMND. Also, a potential bias may stem from the youngest participating offspring in our younger cohort having a shorter diagnostic follow-up than the other cohort members, since they were born during the follow-up period. However, we adjusted all our analysis for offspring birth year. While most often the mental disorders in our cohort were first diagnosed in adulthood, in the younger subsample a smaller proportion of the cohort had received their first diagnosis in childhood or adolescence. Nevertheless, the relatively rare childhood onset emotional and behavioral disorders were the only diagnostic category with average age of onset before 20 years, while all other diagnostic categories had their average age at first diagnosis in adult age. Therefore, our findings are best generalized to mental disorders in adulthood. Furthermore, although we focused on the first pregnancies of the mothers in the cohort to exclude statistical bias due to dependent observations, this led to an overrepresentation of primiparous mothers in our sample. Since maternal parity was here and has been previously associated with offspring psychopathology risk36, further studies should examine whether similar or different associations between maternal underweight or severe obesity and offspring mental disorders emerge in more multiparous mothers and their children.

In conclusion, in our large prospective study, we found birth cohort specific effects of maternal BMI in pregnancy on offspring mental disorders. Among older participants born in earlier years, adult offspring of women with underweight in pregnancy had increased hazards of mental disorders, while among participants born more recently and in their young adulthood during our diagnostic follow-up, maternal severe obesity in pregnancy predicted increased hazards of any mental, schizophrenia spectrum, and substance use disorders. Our findings are important due to both the large numbers of women with underweight in pregnancy, and the increasing number of women with obesity in pregnancy. The findings highlight the potential permanent effects of maternal BMI on offspring psychopathology risk across the lifespan.

Methods

Our study cohort, the AMND, comprises all births at the Aberdeen Maternity Hospital since 195059. The database includes pregnancy, delivery and baby records on obstetric and perinatal health. Since around 99% of the births in the city occur at the Aberdeen Maternity Hospital59, the AMND is representative of the whole Aberdeen population.

For the current study, we had valid data on maternal BMI in pregnancy and child mental disorders for 68,571 mothers and their children born 1950–1999. We restricted our analyses to the participants who were alive during the Scottish Morbidity Records diagnostic follow-up between January 1, 1996 and June 8, 2017 and could hence have received a mental disorder diagnosis. Since BMI shows high consistency across adulthood, we focused on the 68,571 first live-born offspring of the mothers in the dataset in order to have independent analytic observations and meet the assumptions of the statistical analyses conducted31.

The authors assert that all procedures contributing to this work comply with the ethical standards of the relevant national and institutional committees on human experimentation and with the Helsinki Declaration of 1975, as revised in 2008. Our study was completely a record linkage study, and hence informed consent was unnecessary and impossible to obtain. We did not have identification information for the cohort members and some of them are already deceased. We did not conduct active experiments for our cohort members. Rather, we have used maternity, neonatal and health register data from a wide cohort where national register authorities have conducted the necessary data linkages. All procedures have been in place to protect the privacy of the participants. In Scottish nationwide health register studies, the researchers ask DASH Safehaven Scotland to provide a dataset linking the data from different registers. This linked dataset uses a pseudonymized study id code to link the data, and it is impossible for the researchers to identify the cohort members and ask for consents. This is an important prerequisite for record linkage studies to protect the privacy of the cohort members, since the study data is sensitive. All procedures involving human subjects were approved by the NHS Scotland's Public Benefit and Privacy Panel for Health and Social Care (Reference 516–0594) and the AMND steering committee. Thus, informed consent is also waived by the ethics committees NHS Scotland's Public Benefit and Privacy Panel for Health and Social Care (Reference 516-0594) and the AMND steering committee.

Maternal BMI

Maternal BMI was calculated from weight and height measured at first antenatal booking, on average at 15.1 gestational weeks, and extracted from the AMND register dataset. While over 80% of mothers had their weight and height measured in the first 20 gestational weeks, there was variation in the gestational stage when weight was measured. Hence, we adjusted all analyses for the time of weight measurement, classified into groups of < 20-weeks, = 20–30 weeks, and ≥ 31 weeks. We classified maternal BMI into five categories according to the World Health Organization classification: women with underweight < 18.5, normal weight = 18.5–24.9, overweight = 25.0–29.9, moderate (class 1) obesity = 30.0–34.9 and severe (class ≥ 2) obesity ≥ 35 in early pregnancy34.

Mental disorders in mothers and children

For all AMND mothers and children, mental disorder diagnoses were extracted from the Scottish Morbidity Records and National Records of Scotland59. These registers carry International Classification of Diseases, Tenth Revision diagnoses for all hospitalizations and causes of death in Scotland between January 1, 1996 and June 8, 2017. The datasets have complete nationwide coverage for this period. The diagnostic follow-up started at birth for the youngest and at 45 years of age for the oldest participant offspring. At the end of the follow-up, the offspring were 17–67 years old. The data linkage between the registers was done with deterministic matching using Community Health Index where available and with probabilistic matching using name, surname, date of birth, sex, and postcode when the Community Health Index was unavailable59.

We identified maternal and child mental disorders with International Classification of Diseases, Tenth Revision diagnostic codes F00-F99 (mental and behavioral disorders) and X60-X84 (suicides). We assessed associations of maternal BMI in pregnancy with any mental disorder in the offspring and with the two-digit International Classification of Diseases diagnostic groups with at least 30 participants diagnosed with the mental disorder in question during the follow-up. This cutoff was used to meet the requirements for reliable Cox Regression analyses and to ensure the anonymity of the participants. We also excluded mental disorder categories with only one participant from descriptive tables to certify that no participants could be identified.

Maternal physician-diagnosed mental disorders were used as a binary covariate. This variable indicated whether the mother had been hospitalized or had died with a diagnosis of mental disorder.

Maternal, sociodemographic and perinatal covariates

We identified the following covariates from the AMND: maternal hypertensive pregnancy disorders, smoking during pregnancy, self-reported mental disorders by childbirth, age at delivery and parity, mother’s partner’s deprivation category and child sex and birth year. These covariates were chosen based on their previously reported associations with maternal BMI in pregnancy in AMND6,44,45 and with psychopathology risk in the offspring24,35,36,37,60, and on them completing the epidemiologic research and causal diagram criteria for possible confounders being pre-exposure or other non-descendent factors related to the exposure (and outcome)61.

Women with self-reported mental disorders by childbirth were identified with questions on whether the mother had been diagnosed with depressive, anxiety, somatoform, or dissociative disorders, unspecified psychosis, or perinatal mental disorders, or been prescribed antipsychotics. We used a binary variable indicating the presence or absence of any of these psychiatric problems, recorded in the AMND.

The family’s socioeconomic position was defined based on the deprivation category of the partner of the mother. This index is based on living area and assesses the amount of social deprivation in the area on a scale from one to six. Values 1–3 refer to areas predominated by non-manual and values 4–6 by manual occupations.

Maternal age (years) at childbirth was used as a continuous covariate. Parity was classified into two categories (primiparous vs. other). Since we included the first-born offspring of the mothers in the AMND dataset with diagnostic data in 1996–2017 to the study, our sample had a high prevalence of primiparous women but also comprised 21,917 multiparous women.

We classified maternal smoking during pregnancy into three categories: never smoked, quit smoking during pregnancy or smoked throughout pregnancy. We classified maternal hypertensive pregnancy disorders into four categories: Normal blood pressure, pre-existing/essential hypertension, gestational hypertension, and preeclampsia/eclampsia.

Participants with missing values on categorical covariates were classified into their own respective categories. For maternal age, we imputed mean values for the 14 participants with missing data.

Statistical analyses

We examined the associations of the covariates with offspring mental disorders with Cox Proportional Hazards models. The participants were followed up from January 1, 1996 to June 8, 2017 or their death and censored from the analyses on these dates or the date they were hospitalized for mental disorders.

We examined the associations of maternal BMI in pregnancy with mental disorders in the offspring also using Cox models. We contrasted offspring born to underweight, overweight, moderately and severely obese women with offspring of normal weight women. First analytic models were adjusted for the birth year and sex of the child and gestational week at maternal weight measurement. Second models adjusted also for maternal physician-diagnosed and self-reported mental disorders, hypertensive pregnancy disorders, smoking during pregnancy, age, parity, and social class of the family.

Before proceeding to the above analyses, we studied if the birth year of the child modified the effects of maternal BMI in pregnancy on child mental disorders. We examined this by testing if maternal BMI had time-dependent effects on offspring mental disorders, using maternal BMI as a time-dependent covariate in the Cox models.