Introduction

Due to widespread community prevalence, depression and anxiety are now leading causes of global disability in adults, responsible for more than 40 million years of healthy life lost in 2020 [1]. The debilitating nature of these common mental disorders places substantial burden on individuals and their families, and costs the global economy US$1 trillion dollars each year in lost productivity and health care expenditure [2]. Accordingly, the prevention of mental disorders has become a global health priority, with growing interest in identifying the underlying risk factors for depression and anxiety at a young age and identifying possible target groups for early interventions.

The complex relationship between obesity and mental health has received increasing attention, with systematic reviews and meta-analyses finding that adults with obesity are at greater risk of subsequent depression [3] and possibly anxiety [4]. However, despite these findings, most of the research to date has considered obesity cross-sectionally, which fails to account for temporal changes in weight status and differences in the onset and duration of obesity exposure. Consequently, the longitudinal effects of obesity on long term mental health remain poorly understood and are of particular interest in light of global trends towards an increasingly earlier age of obesity onset [5].

Given the dynamic nature of weight status and the likely tracking of obesity from childhood to adulthood, research adopting a life-course perspective is necessary to appropriately quantify the effects of weight status on adult mental health and so, identify potentially sensitive periods during which changes in weight status might influence vulnerability to depression and anxiety. To date, only three studies have analysed trajectories of weight status over the life course in association with adult mental health, but all focused exclusively on depression [6,7,8]. Two [6, 7] of these studies modelled trajectories based on recalled body shape in non-population based samples and the other [8] modelled BMI trajectories only up to the age of 24 years.

To address these current knowledge gaps, population-based, prospective research extending BMI trajectories into mid-adulthood is needed. Especially considering that this age group experiences an increased vulnerability to, and burden of, mental disorders [9]. Furthermore, the association between life course BMI trajectories and adult anxiety has not been previously explored. Accordingly, the current study aimed to investigate the association between BMI trajectories from age 5 to 45 years and both current depression and anxiety risk at age 53 years, and whether these relationships were modified by sex, smoking, occupational class or alcohol intake.

Methods

Tasmanian Longitudinal Health Study

This study analyzed data from the Tasmanian Longitudinal Health Study (TAHS), a population-based, prospective community birth cohort study of children born in 1961, attending school in Tasmania, Australia in 1968 when baseline data collection occurred. Details regarding TAHS sampling procedures and methods of data collection have previously been described [10]. In summary, n = 8583 school children (age 7) underwent a clinical examination and questionnaire data were collected from their parents. Follow up surveys and/or examinations were conducted in 1974, 1979, 1991, 2002–2008 and 2012–2016 (See e-Methods in the online supplement for further details).

Outcomes

Depression and anxiety

Depression and anxiety were measured at age 53 using the 9-item Patient Health Questionnaire (PHQ-9) and the 7-item Generalized Anxiety Disorder scale (GAD-7) [11, 12]. Current depression was defined as a PHQ-9 score ≥10 (sensitivity [Se]: 88% and specificity [Sp]: 88%) and the severity of depressive symptoms was defined using the recommended cut off scores: none (0–4), mild (5–9), moderate (10–14), moderately severe (15–19) and severe (≥20) [11]. Likewise, current anxiety was defined as GAD-7 score ≥10 (Se: 89% and Sp: 82%) and cut points of 5, 10 and 15 were used to represent mild, moderate and severe levels of anxiety symptoms, respectively [12]. We also assessed each individual symptoms as an individual outcome to explore whether different symptoms have different risk factors, as previously hypothesized [13]. (See e-Methods in the online supplement for further details).

Exposure

Body mass index trajectories

Height and weight were measured at ages 7, 13 and 20, but self-reported by participants at ages 30 and 43. Additional measurements were extracted from school medical records at ages 5-6, 10-11 and 14-15 years. BMI was calculated as weight (kg)/height2 (m) and all eight measures were transformed into z scores standardized for sex. Five distinct BMI z-score trajectories from age 5 to 43 were estimated in the TAHS cohort using group-based trajectory modelling: persistently average (50.3%; n = 2109), persistently low (26.3%; n = 1120), child high-decreasing (14.1%; n = 592), child average-increasing (5.8%; n = 245), and persistently high (3.1%; n = 128) (Fig. 1) [14]. The modelling of BMI trajectories has previously been published [14] and further details are described in the online supplement. In brief, the number and shape of trajectories were determined by sequentially increasing the number of trajectories and decreasing the order of the polynomial until all functions were significant. The optimal model was then selected based on the Bayesian Information Criteria (BIC), group posterior probability and plausibility/clinical interpretation of trajectory shapes.

Fig. 1: BMI z-score trajectories from age 5 to 43 years.
figure 1

Five BMI trajectories were identified using group-based trajectory modelling. Body mass index was measured at age 5, 7, 10, 13, 15, 20, 30 and 43 years, and each node in the graph represents the mean BMI z-score at each age. The persistently average trajectory comprised 50.3% of participants; the persistently low trajectory, 26.7%; the child high-decreasing trajectory, 14.1%; the child average-increasing trajectory, 5.8% and the persistently high trajectory, 3.1%.

Other variables

Based on current knowledge, potential confounding variables were identified, and a directed acyclic graph (DAG) was developed to determine the minimally sufficient adjustment set (Supplementary Fig. S1). The following covariates measured at age 53 were adjusted for in the models: sex, education, occupational class, and smoking status. Additionally, the following variables measured at age 53 were selected as possible effect modifiers: sex, occupational class, smoking status and alcohol intake. See e-Methods in online supplement for further details.

Statistical analyses

The characteristics of participants and the distribution of mental health outcomes across BMI trajectories were compared using the χ2 test for categorical variables and ANOVA or Welch’s ANOVA with Games-Howell post hoc tests for continuous variables, as appropriate. When analysing the distribution of anxiety symptoms and depressive symptoms, categories were combined to satisfy the assumptions of the χ2 test.

Binary and ordinal logistic regression analyses were conducted to estimate both unadjusted and adjusted odds ratios (OR) and 95% confidence intervals (95%CI) for the association between BMI trajectories and depression and anxiety outcomes, using the persistently average trajectory as the reference.

We explored sex, occupational class, smoking status and alcohol intake at age 53 as possible effect modifiers using interaction terms and likelihood ratio tests. Stratified analyses were presented when significant interactions were found, however we decided a priori to stratify all models by sex.

Analyses were conducted using STATA version 16 (StataCorp, College Station, TX) and SPSS version 23 (IBM Corp., Armonk, NY). A p-value <0.05 was considered as the level of significance for all tests except for the interaction terms, where a p value <0.1 was applied.

Results

BMI trajectory groups and membership characteristics

Participant characteristics across BMI trajectory groups are summarised in Table 1. The persistently average and child high-decreasing trajectories were predominantly male (p = 0.04). A greater proportion of participants in the child average-increasing and persistently high trajectories were from a lower occupational class (p = 0.01), but consumed low or no alcohol (p ≤ 0.001). BMI at 53 years also differed between trajectory groups (p < 0.001), with post-hoc analyses demonstrating that mean BMI differed between all groups except the child average-increasing and persistently high trajectories. The characteristics of participants lost to follow-up are presented in Supplementary Table S1. Whilst there was no significant difference in the proportion of BMI trajectory members, attrition was more likely in males (43.7% vs 38.0% of females) and participants with obesity (47.1% vs 39.3% normal/underweight and 39.5% overweight participants).

Table 1 Demographic, anthropometric, and behavioural characteristics of participants at 53 years across BMI trajectory groups.

BMI trajectories in association with depression

The overall prevalence of current depression at age 53 years was 6.9% and was greatest in the persistently high trajectory (16.2%) and lowest in the child-high decreasing trajectory (5.7%, Table 2). However, these trends differed slightly among women, with prevalence rates highest in the child average-increasing trajectory (17.1%, Supplementary Table S2).

Table 2 Distribution of depression and anxiety in the total sample and across BMI trajectory groups.

In adjusted models, the child average-increasing trajectory (OR = 2.24, 95%CI: 1.24, 4.06) and the persistently high trajectory (OR = 2.64, 95%CI: 1.26, 5.52) were at a greater risk of current depression at age 53, compared with the persistently average group (Table 3; unadjusted models in supplementary table S6). However, the odds of experiencing a greater severity of depressive symptoms were highest in the child average-increasing trajectory (OR = 2.36, 95%CI: 1.59, 3.49). This group was also more likely to experience each depressive symptom at an increased frequency (Supplementary Table S8). In comparison, the persistently high trajectory was more likely to experience appetite changes, whilst the persistently low trajectory was less likely to. The child high-decreasing trajectory was less likely to experience depressed mood and sleep disturbances.

Table 3 Multivariable binary and ordinal logistic regression exploring the association between BMI trajectory groups and depression and anxiety outcomes at age 53.

In sex-stratified models, the risk of depression was greater among males in the persistently high trajectory (OR = 3.68, 95%CI: 1.13, 12.0) and among women in the child average-increasing trajectory (OR = 2.77, 95%CI: 1.38, 5.58, Table 4). However, interaction terms were not significant. Regarding symptoms of depression, women in the persistently low trajectory were more likely than men to experience fatigue (OR = 1.29, 95%CI: 1.00, 1.67, pint < 0.01; Supplementary Table S9).

Table 4 Multivariable binary and ordinal logistic regression exploring the association between life course BMI trajectory groups and mental health outcomes at age 53 stratified by sex.

In effect-modification analyses, a greater risk of depression was observed among participants in both the child average-increasing and persistently high trajectories if they were from a lower occupational class (Supplementary Table S10). We found no evidence of effect modification by alcohol intake or smoking.

BMI trajectories in association with anxiety

The overall prevalence of current anxiety was 8.2% and did not significantly differ across trajectories (Table 2). Although, the prevalence of anxiety in child high-decreasing trajectory was lower than average.

In adjusted models, BMI trajectories were not associated with current anxiety at age 53 years (Table 3; unadjusted models in supplementary table S6). However, the child high-decreasing trajectory was more likely to experience a lower severity of symptoms compared to the persistently average trajectory (OR = 0.68, 95%CI: 0.51,0.91). Furthermore, the child average-increasing trajectory was more likely to experience irritability (OR = 1.86, 95%CI: 1.31, 2.64) and feelings of apprehension (OR = 1.67, 95%CI: 1.07, 2.59), whilst a positive trend was observed for feeling nervous/anxious (OR = 1.38, 95%CI: 0.96, 1.97, p = 0.08) and uncontrollable worrying (OR = 1.44, 95%CI: 0.98, 2.11, p = 0.06; Supplementary Table S8)

In sex-stratified models, males in the child high-decreasing trajectory (OR = 0.51 95%CI: 0.32, 0.83) were less likely to experience a greater severity of anxiety symptoms (Table 4). When symptoms were analyzed individually, women in the persistently low and child-high decreasing trajectories experienced trouble relaxing significantly more frequently than men (pint=0.03 and 0.1, respectively) and females in the persistently high BMI trajectory experienced feelings of apprehension less frequently than men (pint=0.07; Supplementary Table S9).

In effect-modification analyses, a greater risk of anxiety was observed among participants in the persistently low BMI trajectory within strata of alcohol consumers (pint<0.1). Whereas a decreased risk of anxiety was observed within strata of lower occupational class (pint<0.1). We found no evidence of effect modification by smoking.

Discussion

In our long-term population-based cohort, five distinct trajectories of BMI from ages 5 to 43 years were differentially associated with depression and to a lesser extent, anxiety at age 53. Specifically, the persistently high and child average-increasing trajectories were associated with a greater risk of current depression in mid-adult life, with participants in the child average-increasing trajectory more likely to experience a greater severity of symptoms. Furthermore, despite finding no association between BMI trajectories and the risk of current anxiety per se, participants in the child high-decreasing trajectory were less likely to experience severe symptoms of anxiety.

Current evidence on the longitudinal effects of life course obesity on depression in adulthood is limited [6,7,8] and only one other study has modelled BMI trajectories using prospectively collected data and only to early adulthood [8]. Consistent with what we observed in the child average-increasing trajectory, Perry et al. [8] found a greater risk of depression in young adults (24 years) who had a major increase in BMI following puberty. However, unlike our study, no greater risk of depression was found in the persistently high trajectory, possibly owing to differences in follow up duration (24 vs 43 years), cohort age (1991 vs 1961 birth cohort) and age at outcome assessment (early- vs. mid-adulthood).

Although less comparable, the studies that analyzed trajectories of recalled body size were conducted in specific sub-populations, namely middle aged university graduates [7] and post-menopausal women [6]. Sayon-Orea et al. [7] found that women with a large body size in childhood, which increased throughout adulthood, were at an increased risk of new-onset depression at age 40, but found no associations in males. Similarly, Perquier et al. [6] showed that a persistently large body size was associated with a greater risk of new onset depression post-menopause (age 65). And a marked increase in body size following puberty was associated with current depression post-menopause. When taken together, it seems excess weight that persists from childhood to adulthood, and excess weight gained across the adolescent transition, may increase vulnerability to depression in adulthood. This highlights the need to increase mental health screening and support among individuals with comparable weight trajectories.

Notably, our study extends the literature by demonstrating that in comparison to the persistently high BMI trajectory, belonging to the child average-increasing trajectory was associated with a greater risk of having more severe and frequent symptoms of depression and a greater risk of several anxiety symptoms. Although we would expect to see a dose-response relationship, where a greater duration of obesity worsens mental health, in actual fact it appears that participants belonging to the child average-increasing trajectory had the worst mental health profile. These novel insights suggest adolescence may be a period of increased sensitivity, during which, the onset of obesity has an apparent influence on long term mental health. The timely introduction of obesity prevention strategies during these formative years may aid in reducing the burden of depression. However, we cannot exclude the possibility that depression onset preceded weight gain in this group, as a bidirectional relationship is quite possible; [15] furthermore, earlier-onset of depression has also been associated with greater severity [16].

Although we couldn’t establish a statistically significant association between BMI trajectories and current anxiety, we did observe a positive trend in the two highest BMI trajectories. Despite limited longitudinal evidence on this topic, a meta-analysis of four prospective studies found a small, positive association between obesity and anxiety [4] and so it is possible that our study was insufficiently powered to pick up a small effect. This would not be surprising given the frequent clinical concurrence of anxiety and depression.

Encouragingly, the child high-decreasing trajectory was associated with a reduced likelihood of experiencing severe anxiety symptoms, sleep disturbance or depressed mood, and had no association with current depression. Previous studies have also found no association between excess weight confined to childhood only and adult depression risk; [8, 17,18,19] however, our study is the first to show resolving excess weight may promote mental health. These findings suggest that the potentially depressive effects of obesity may be reversible with its resolution and therefore amenable to intervention: highlighting the need for and value of early intervention strategies to prevent and treat excess weight. Moreover, as the reference trajectory maintained a lower BMI throughout the duration of the observation period, it is likely that methods of weight reduction such as exercise and other healthy lifestyle behaviours partially explain the results observed in the child high-decreasing trajectory [20, 21]. And so, further research should explore methods of weight reduction in at-risk trajectory groups as possible intervention strategies to promote mental health and wellbeing.

To date, several plausible mechanisms have been suggested to explain why obesity may increase vulnerability to depression and anxiety. From a psychosocial perspective, weight-based stigmatization and discrimination faced by individuals with obesity have been shown to mediate associations between weight status, anxiety and depression, by increasing body image dissatisfaction, psychological distress, and lowering self-esteem [22]. Several related behaviours also offer explanatory pathways, as poor dietary patterns, physical inactivity, and sedentary lifestyles are common among individuals with obesity and present as risk factors for depression and anxiety [23]. More recently, increasing research attention has focused on underlying physiological and genetic mechanisms. Most prominently, chronic low-grade systematic inflammation, induced by obesity, has been identified as a key catalyst for depression, and possibly anxiety, by triggering dysregulation of the hypothalamic-pituitary-adrenal axis, with activated immune-inflammatory pathways inducing neuroendocrine abnormalities [24].

Sex differences were apparent in our stratified analyses; however, evidence of effect modification was weak. We observed an increased risk of depression among women in the child average-increasing trajectory, which is consistent with the findings of Perry et al. [8]. However, our study is the first to report a greater risk of depression among males in the persistently high trajectory. Although obesity and depression are more prevalent in women, sex differences in the relationship between obesity and depression are lesser known. It has been shown that women experience greater body dissatisfaction and place greater value on their appearance regardless of age [25]. In this context, a consistently increasing BMI might be negatively affecting body image among women in the child average-increasing trajectory, causing an increased vulnerability to depression. Somewhat paradoxically, however, a greater magnitude in the risk of depression was observed among males in the persistently high trajectory. Although this finding is unexpected, it’s possible that women in this group have sought support for their mental health, as males are less likely to seek treatment [26].

We found evidence of effect modification by socioeconomic status, such that a lower occupational class predicted a greater risk of depression in the persistently high trajectory. Given the disadvantages faced by those from lower socioeconomic backgrounds, factors such as food insecurity, financial and social stress, and reduced health care access, may explain this association. However, suprisingly, participants in the persistently low trajectory were less likely to report anxiety if they were from a lower occupational class; and the reason for this finding is not well understood. Furthermore, we also found a greater risk of anxiety among participants in the persistently low trajectory if they were consumers of alcohol, suggesting alcohol screening may be pertinent in this group. However, further research is needed to replicate our findings.

Strengths and limitations

The main strength of this study is that our BMI trajectories were modelled using eight repeated measures of BMI, with five collected across the transition from childhood to adulthood. This enabled us to adequately characterize within-subject variations in obesity over the life course. Furthermore, data were prospectively collected from a large representative sample of the Tasmanian population, and we assessed a variety of mental-health outcomes to understand the point prevalence, severity and symptomatology of anxiety and depression.

Several limitations should also be considered in the context of our findings. Although weight and height data were prospectively collected, we relied on self-reported measures at ages 30 and 43. Even though a strong correlation has been found between self-reported and measured weight and height, self-report could be prone to underestimation, particularly in individuals with overweight or obesity [27]. This would have tended to bias our results towards the null. Whilst we used validated, self-report questionnaires to assess anxiety and depression, the GAD-7 and PHQ-9 are not diagnostic tools. Nevertheless, these instruments are widely used in epidemiological studies and scores greater than ten have previously demonstrated high sensitivity and specificity in detecting probable cases [11, 12]. Furthermore, it is important to note that the GAD-7 and PHQ-9 were only administered at one time point, so we did not have prior data in adolescents/young adulthood to determine the age of depression or anxiety onset, nor could we exclude the possibility of reverse causation.

Despite using a DAG to inform confounder adjustment, our simple causal diagram could not depict the complex interrelationships between a time-varying exposure and time-varying confounders. Additionally, several known risk factors identified by our DAG were not measured in the TAHS cohort and could not be adjusted for in our analyses. These included family history of depression and obesity, medication use, genetics, history of trauma or chronic stress and substance abuse. Consequently, our results might have some residual confounding. Attrition bias could be a possibility as men and those with obesity at age 43 were more likely to be lost to follow-up. However, no differences in the proportion of participants lost to follow up between BMI trajectories were seen. Moreover, the persistently high and child average-increasing trajectories had the smallest sample sizes and may have lacked precision, particularly in stratified analyses. Although the shape and size of our trajectories are comparable to prior research in the field [8], TAHS participants were born in 1961, more than a decade before the prevalence of childhood obesity began to notably increase in the community. Based on current trends, we would expect that present-day trajectories may differ in shape and size, with a greater proportion of participants belonging to the highest trajectories. Therefore, further research is necessary to quantify the effects of more recent trends in BMI trajectories from childhood. Lastly, multiple comparisons might have increased the risk of type 1 error, especially given that we considered p-values of the interaction terms to be significant at a level of 0.1. Therefore, the results of effect modification analyses should be interpreted with some caution.

Conclusion

A persistently high BMI and a consistently increasing BMI over the life course was associated with an increased risk of depression in middle age, with members of the weight gain trajectory more likely to have increased severity of symptoms - although we can’t exclude the possible role of early-onset mental illness. Encouragingly, resolving early-life adiposity was associated with more favorable anxiety profiles and fewer depressive symptoms. These findings have important public health implications, as they highlight the need to target mental-health screening and treatment towards at-risk trajectory groups and emphasize the importance of early intervention to prevent and resolve excess weight. Further research is required to understand the causal, potentially bidirectional, or common mechanisms underlying these associations, and how these mechanisms could be addressed therapeutically. Furthermore, possible factors that might exacerbate or negate risks should be further explored, as these could be manipulated as part of clinical management.