Introduction

Depression has a severe impact not only on the individual level but also on public health and the economy. According to data released by the Health Measurement and Evaluation Study in 2021, approximately 280 million people worldwide suffer from depression, with an estimated 3.8% of the population affected [1]. Depression is also the main cause of suicide deaths, with nearly 0.8 million people committing suicide each year [2].

Previous studies have consistently linked obesity with depression in adult populations [3, 4]. Compared with the general population, adults with obesity are 55% more likely to suffer from depression [5]. A Mendelian randomization study in UK Biobank showed that obesity was a causal risk factor for depression [6]. However, previous studies used body mass index (BMI) as a surrogate for adiposity, under the assumption that body composition is sufficiently similar between individuals. Large inter-individual variability exists in body composition and fat distribution for those with a similar BMI [7]. It has been shown that the difference in body fat mass was more significant than the difference in BMI, suggesting that the latter may underestimate the extent of obesity in this population [8]. A study in a weight loss trial showed that increases in BMI and body fat attenuated the improvement in depression during weight loss [9]. A case-control study indicated that BMI, body fat percentage (BFP), fat mass, fat-free mass, and waist-hip ratio (WHR) were higher in patients with lifetime depression compared to healthy controls [10].

Lifestyle is a common and crucial modifiable risk factor for many diseases. Many researchers applied scores to evaluate the lifestyle and suggested that adhering healthy lifestyle was beneficial for lowering the risk of adverse events [11,12,13]. Behavioral intervention is a widely accepted treatment for depression [14]. A systematic large-scale research identified a set of modifiable factors associated with depression across social, sleep, dietary, and exercise-related domains, and these factors were supported by Mendelian randomization evidence [15]. However, the selection of limited lifestyle factors [16] in previous studies leaves emerging important factors such as sleep pattern, sedentary behavior, and social connection out of the lifestyle scores in relation to the risk of depression. We sought to apply a new comprehensive lifestyle score, defined following the prevailing guidelines on depression [17], to evaluate the joint impact of lifestyle and body composition on the risk of depression [11].

In this study, we investigated the associations of body composition and fat distribution with depression in the British population. We further examined whether a healthy lifestyle pattern based on seven modifiable lifestyle factors: smoking, diet, alcohol consumption, physical activity, sleep pattern, social connection, and sedentary behavior, could modify the association of body composition with depression.

Methods

Study design and population

Our study was conducted among participants from the UK Biobank, a prospective population-based cohort study. The UK Biobank study started in 2006 and, until 2010, recruited more than 500,000 participants aged 37 to 73 years from the general population at 22 assessment centers throughout the United Kingdom. Participants provided information on lifestyle and other potentially health-related aspects through extensive baseline touchscreen and nurse-led questionnaires, physical measurements, and biological samples [18]. In the current study, we included all participants who were classified as British and without a history of reported depression at baseline, and participants without data on genetic and lifestyle factors (smoking, diet, alcohol consumption,  physical activity, sleep pattern, social connection, and sedentary behavior) were excluded.

Body composition

We examined continuous physiological measures obtained at the baseline assessment, including body mass index (BMI), waist circumference (WC), hip circumference (HC), body fat percentage (BFP), whole-body fat mass (WBFM), whole-body fat-free mass (WBFFM), whole-body water mass (WBWM), trunk fat percentage (TFP), trunk fat mass (TFM), trunk fat-free mass (TFFM), leg fat percentage (LFP), leg fat mass (LFM), leg fat-free mass (LFFM), arm fat percentage (AFP), arm fat mass (AFM), and arm fat-free mass (AFFM). BMI was calculated as weight in kilograms divided by the square of height in meters and classified into three categories based on the World Health Organization’s criteria: underweight/normal (< 25 kg/m2), overweight (25 -30 kg/m2), and obese (≥ 30 kg/m2) [19]. WHR was calculated as waist circumference in centimeters divided by hip circumference in centimeters and classified into three different body shapes: normal weight, peripheral obesity (WHR < 0.76 for females and WHR < 0.87 for males), and abdominal obesity (WHR > 0.84 for females and WHR > 0.99 for males) [20]. Fat mass to fat-free mass ratio (FFR) was calculated as whole body fat mass divided by whole body fat-free mass.

Lifestyle factors

Our study considered seven modifiable behavioral factors, including four traditional factors (smoking, physical activity, alcohol consumption, and diet) and three novel factors (sleep pattern, sedentary behavior, and social connection [21]) according to previous evidence, to generate a lifestyle score [11, 22]. Details of the assessment of each lifestyle factor can be found in Supplementary Table 13.

The standard of low-risk lifestyle in our study included no current smoking, moderate alcohol consumption, regular physical activity, healthy diet, less sedentary behavior, healthy sleep pattern, and appropriate social connection. Regular physical activity was defined as at least 150 min/week of moderate activity or 75 min/week of vigorous activity (or an equivalent combination). Participants who reported no drinking or drinking on special occasions only, and no more than one drink/day for women and two drinks/day for men (one drink is measured as 8 g ethanol in the UK [23]) were defined as moderate drinking. A low-risk level diet was defined as an adequate intake of at least one-half of 10 food groups recommended as follows: increased consumption of fruits, vegetables, whole grains, fish, dairy, and vegetable oils and reduced consumption of refined grains, processed/unprocessed meats, and sugar-sweetened beverages [13, 24]. Healthy sleep patterns were defined by five individual sleep behaviors (sleep duration, chronotype, insomnia, snoring, and excessive daytime sleepiness) [22]. For each sleep behavior, low risk or high risk was coded as 1 or 0, respectively. A healthy sleep score was the sum of the five scores, ranging from 0 to 5. Low-risk sleep behaviors were defined as healthy sleep scores of 4 or 5. We defined a low-risk level of sedentary behavior as the time of television watching < 4 h/day according to a previous study [25], The social connection level was evaluated by the information on the number in the household, frequency of friend/family visits, and participation in leisure/social activity. For each social behavior, low risk or high risk was assigned 1 point and otherwise 0 points, respectively. The three aspects were summed to obtain a social score ranging from 0 to 3, and a score of 2–3 was defined as appropriate social connection [21].

For each factor, a low-risk level was assigned 1 point and otherwise 0 points. The lifestyle score was constructed as the sum of all seven factors, ranging from 0 to 7, with a higher score indicating a healthier lifestyle. Then the lifestyle score was subsequently categorized into unfavorable (0–2), intermediate (3–4), and favorable lifestyles (5–7).

Additionally, to determine the best combination of lifestyle scores, we included components that were significantly associated with the risk of depression to calculate a modified healthy lifestyle score. The score was weighted based on the β coefficient of each lifestyle factor in the Cox proportional hazard model with all seven lifestyle factors, as well as adjustments for other covariance. We applied the Cox proportional hazard regression model to explore the associations of body composition and modified lifestyle score with incident depression, using the modified lifestyle (range from 0 to 5) that included no current smoking, regular physical activity, healthy sleep pattern, appropriate social connection, and less sedentary behavior.

Assessment of depression

The primary outcome was the incidence of depression during follow-up. The incident depression was sourced from health outcomes across self-report, primary care, hospital inpatient data, and death data, and was identified using ICD code F32.

Polygenetic risk score

We calculated the polygenetic risk score (PRS) to assess the cumulative genetic risk for depression. The score was constructed based on the Genome-Wide Association Studies (GWAS) summary-statistic data on depression in the Genetic Epidemiology Research on Adult Health and Aging (GERA) [26]. The present study was restricted to British samples in the UK Biobank. We inferred the posterior effect sizes of Single nucleotide polymorphisms (SNPs) with Ldpred2, an approach that quantifies the contribution of each by examining the relationship between test statistics and linkage disequilibrium (LD) [27]. All the included SNPs were in Hardy-Weinberg equilibrium (HWE) with a phwe > 1.0 × 10−6 and had a minor allele frequency (MAF) ≥ 1%. The PRS for all individuals in UK Biobank was z-standardized.

Statistical analysis

Continuous variables were reported as means and standard deviations (SDs), while categorical variables as numbers and percentages. We used Cox proportional hazard regression models to determine the associations of body composition, lifestyle, and joint analysis of body composition and lifestyle with the risk of depression. Participants with depression at baseline were excluded. The model was adjusted for age, sex, assessment center, and Townsend Deprivation Index. We tested interactions of the body composition indices and genetic risk score of depression on the risk of depression by including the respective interaction terms in the models, adjusted for age, sex, assessment center, Townsend Deprivation Index, genotyping batch, and the first 10 principal components of ancestry. The proportional hazard assumption was checked by tests based on Schoenfeld residuals, and the results suggested that the assumptions had not been violated.

We undertook a series of sensitivity analyses to evaluate the robustness of our findings. First, the risk of depression was examined by using a modified lifestyle score that excludes variables not significantly associated with the risk of depression (Supplementary Table 45). Second, we analyzed the association of body composition with the risk of depression within the sex subgroups. Third, to minimize the possibility of spurious associations due to reverse causation, the associations of body composition, lifestyle, and genetic risk with depression were re-analyzed after excluding the people who were diagnosed during the first two years of follow-up. Finally, we further excluded the participants with depression symptoms at baseline which was assessed by the validated two-item Patient Health Questionnaire (PHQ-2) as a sensitivity analysis. To maximize the likelihood of reporting true findings, we used Benjamini & Hochberg correction to adjust for multiple tests. All analyses were performed using R statistical software (version 4.1.1). The survival [28] and survminer packages were used for Cox proportional hazard regression. The Hmisc [29] and corrplot [30] packages were used for correlation analyses.

Result

Population characteristics

At baseline, 502,507 participants were assessed. After excluding non-British participants (n = 165,088) without body composition measurements or genetic information (n = 7288), a total of 330,131 participants were included in our study. The baseline characteristics of the participants according to incident depression was shown in Table 1. There were 26,902 participants with depression at baseline. The mean (SD) age was 56.87 (7.98) years, and 177,724 (53.83%) were females. In total, 45,440 (13.76%) individuals had a favorable lifestyle, 215,668 (65.33%) had an overall intermediate lifestyle, and 69,023 (20.91%) had an unfavorable lifestyle. A total of 7576 incident cases of depression were documented during a median follow-up time of 11.7 years. Participants who developed depression were more likely to have a higher BMI, BFP, and body and trunk fat mass, while with lower body and trunk fat-free mass, and WBWM at baseline.

Table 1 Baseline characteristics of UK Biobank Participant

We analyzed the correlations between different body composition indices. The correlations between BMI and WC, HC, and WBFM were higher than 0.8. Both WC and WHR were weakly correlated with whole-body or regional fat mass. We also observed a high correlation coefficient between fat-free mass and WBWM (Supplementary Fig. 1).

Associations of body composition indices with incident depression

The associations between body composition indices and depression were shown in Supplementary Table 6. We observed that all indices were associated with an increased risk of depression adjusted for age, sex, UK Biobank assessment center, and Townsend Deprivation Index. A 1-SD (4.72 kg/m2) higher BMI was associated with a 1.19 (95% CI: 1.02–1.37) higher risk of depression. A 1-SD (8.49) higher BFP was associated with a 1.26 (95% CI: 1.03–1.50) higher risk of depression. The association of a 1-SD increase (10.59) in leg fat percentage with the risk of depression was the most pronounced (HR = 1.43, 95% CI: 1.02–1.79).

Although the results showed that the higher risk of depression was associated with higher body fat indices, the relationship between different body components and depression risk slightly varied. We found that among all the indices, compared with the lowest tertile, the highest tertile of body composition corresponded to the highest level of depression risk (Fig. 1).

Fig. 1
figure 1

Associations of body composition with the risk of depression. BMI, body mass index; BFP, body fat percentage; WBFM, wholebody fat mass; AFP, arm fat percentage; AFM, arm fat mass; LFP, leg fat percentage; LFM, leg fat mass; TFP, trunk fat percentage; TFM, trunk fat mass; WC, waist circumference; HC, hip circumference; FFR, Fat mass to fat-free mass ratio. Cumulative hazards of depression were estimated from Cox proportional hazards models, adjusted for sex, age, assessment center, and Townsend deprivation index. T1, T2, and T3 correspond to the corresponding tertiles from 0 to 3

Associations of lifestyle with incident depression

We also explored the associations of lifestyle with the risk of depression (Supplementary Table 5). The results showed that a higher lifestyle score was associated with a reduced risk of depression (HR = 0.76, 95% CI: 0.74–0.77). Except for the diet score, other higher levels of the components of the lifestyle score were significantly associated with a lower risk of depression. Additionally, a healthy sleep pattern was also associated with a lower risk of depression (HR = 0.61, 95% CI: 0.58–0.65).

Interaction between lifestyle and body composition on the risk of depression

Based on the multiplicative model, we observed significant interactions between the lifestyle score and whole body, regional fat mass on the risk of depression. The p-interaction for the whole body, trunk, arm, and leg fat mass were 2.09 × 10−6, 9.16 × 10−4, 4.00 × 10−7, and 1.65 × 10−9, respectively (Fig. 2). There was also a significant interaction between lifestyle and FFR (p-interaction = 6.81 × 10−7). We found no interactions between lifestyle score and the whole body and regional fat-free mass, WBWM, WC, and WHR. Then we performed the analysis of the associations of body composition indices with the risk of incident depression stratified by lifestyle (Supplementary Table 7). The associations of different body component indices with depression risk varied among participants with different lifestyle grades. The associations of body component indices with the risk of incident depression tended to be more pronounced among those with a healthier lifestyle. Moreover, a higher body fat measurement attenuated the beneficial association of a healthy lifestyle with the risk of depression (Fig. 2).

Fig. 2
figure 2

Associations of lifestyle with risks for depression according to body composition and fat distribution. WBFM, whole body fat mass; TFM, trunk fat mass; LFM, leg fat mass; AFM, arm fat mass. Multivariate-adjusted hazard ratios (HRs) and 95% CIs of depression were estimated from Cox proportional hazards models, adjusted for sex, age, assessment center, and Townsend deprivation index. T1, T2, and T3 correspond to the corresponding tertiles from 0 to 3

Furthermore, we jointly analyzed the association of different types of body shapes and lifestyles with the risk of depression (Supplementary Fig. 2). We found that the improvement of lifestyle was important for people with all types of body shapes to lower depression risk. The HRs (95% CI) were 0.56 (0.51–0.62), and 0.37 (0.32–0.43) in intermediate and favorable lifestyles compared with unfavorable lifestyles in people with normal weight, which was the most significant among three body shapes.

Interaction between genetic risk and lifestyle on incident depression

We then assessed the modification effect of body composition on the association of genetic risk of depression with the incidence of depression, with adjustment of age, sex, UK Biobank assessment center, Townsend Deprivation Index, genotyping batch, and the first ten genetic principal components. We did not observe a significant interaction between body composition indices and the genetic risk of depression shown in Supplementary Table 8.

Sensitivity analysis

With the modified lifestyle score, the association of body composition and modified lifestyle score with incident depression didn’t change materially (Supplementary Table 9), which suggested that there was no need to modify the original one. In sex-subgroups, almost all body composition indices were related to depression risk in women, slightly different from those in men. The associations of different fat distribution with the risk of depression in both populations change consistently with that of the whole population (Supplementary Table 10). When we excluded participants who developed depression events within the first 2 years of follow-up (n = 2879), the associations of body composition and lifestyle with depression remained consistent with the main analysis (Supplementary Table 1113). The result remained unchanged after we further excluded participants with depression symptom assessment by PHQ-2 (n = 10,866) (Supplementary Table 1416).

Discussion

In this large-scale prospective study, we found that increasing fat mass, fat percentage, and fat-free mass were all associated with an increased risk of depression, with fat mass showing the strongest relation. We found interactions of lifestyle with BMI, fat percentage, and fat mass indices on the risk of depression. The interaction between leg fat mass and lifestyle was the most significant. The beneficial association of a healthy lifestyle with depression was more pronounced among those with a healthy body fat distribution. Viewed differently, the association of body composition with incident depression was particularly marked among participants with a favorable lifestyle.

Although BMI is widely used to approximate overall body fat, it fails to capture other metabolically relevant aspects of adiposity such as fat distribution, leading to considerable disparity in health outcomes between individuals with similar BMI. In particular, differences in body fat distribution, both the location and subtype of adipose tissue used to store excess calories, have been shown different influences on health outcomes [31]. There is also evidence that specific body fat distributions are significantly linked to adverse consequences [32,33,34,35]. Therefore, this study explored the relationship between body composition indices and depression in the form of a cohort study. Our study showed that the whole body and regional fat distribution were related to the increased risk of depression, which was consistent with some previous studies [36, 37]. A Mendelian randomization study suggested that both fat mass and height are causal risk factors for depression, while fat-free mass was not. However, the mechanism between body composition distribution and depression remains unclear. A possible explanation is that fat distribution may lead to depression through the HPA (hypothalamic–pituitary–adrenal) axis, which is consisting of stimulating forward and feedback inhibition loops involving the brain, pituitary, and adrenal glands, and regulates glucocorticoid production [38]. That is, individuals with poor fat distribution tend to produce higher levels of glucocorticoid, which stimulates overactivity of the HPA axis and increases the risk of depression.

Reduced risk of depression by adhering to a healthy lifestyle has been well documented [39]. The role of some conventional lifestyles such as diet [40] and physical activity [41] has been studied. To the best of our knowledge, however, only a limited number of studies have examined the associations of combined healthy lifestyle factors with the risk of developing depression. A recent study explored the role of comprehensive lifestyle scores in reducing the risk of depression, but some important risk factors have been ignored [16]. Our present study applied the comprehensive lifestyle evaluation which included three new factors: sleep patterns [22], sedentary behaviors [42], and social connection [23, 43], which were all related to the risk of depression independently. The comprehensive lifestyle evaluation has been related to low risks of all-cause and cause-specific mortality [11].

Our study showed that body fat distribution indices modified the association of lifestyle with the risk of depression. A significant interaction was also found for fat mass-related indices but not for fat-free mass. The possible explanations about the effect of adverse body composition on the association of lifestyle with depression are: (a) The abnormal fat distribution reflects the abnormal metabolic distribution to some extent, which may offset the beneficial effect of lifestyle improvement on reducing the risk of depression. For example, insulin inactivation was associated with food addiction [44], which can affect adherence to a healthy lifestyle, as well as increase the risk of depression. (b) Body composition may be affected by a healthy lifestyle; and mutually, unfavorable body composition may have an adverse effect on some specific components of lifestyle score. Increased fat mass can affect activity and make it difficult to adhere to an active lifestyle [45]. As physical activity declines and weight gains, the psychological impact of weight stigma and discrimination increases, making it easier to choose high-calorie foods, leading to a vicious cycle of further weight gain and depressive mood [46, 47].

From another perspective, participants with adverse body fat distribution indices showed a greater increased risk of depression when adhering to a favorable lifestyle. As for the association of body composition with depression in population across different lifestyles, the possible explanations are: (c) People who adhere to a favorable lifestyle have fewer factors that increase the risk of depression than those who lead an unfavorable lifestyle [15, 16, 25, 48, 49], and the adverse lifestyles could be a risk factor for adverse body composition and may share similar pathways with adverse body composition, such as metabolic dysfunction, that contribute to depression [50]. So, the role of adverse body composition in increasing depression risk is more pronounced in population with favorable lifestyle.

We also found no significant interaction between genetic risk and body composition suggesting that the genetically predetermined risk of depression can’t be modified by body composition indices. The polygenetic score of depression was calculated based on genetic variants that accounted for a small proportion of the variance in depression, which may partly explain the null interaction between the genetic scores and body composition on depression.

Based on the large sample of UK Biobank participants and the use of standardized protocols for data collection, our study first explored the association of body composition with the risk of depression in a prospective design, which was a major strength of our study. However, several limitations of the current study still need to be considered. First, although we adjusted for known potential confounders in our analysis, there may be unmeasured confounders. Second, considering the heterogeneity in genetic, metabolic conditions, and the lifestyle across ethnicities and regions, the participants included in this study were primarily restricted to British to improve internal validity and therefore may not be generalizable to other populations. Third, we adopted the information of lifestyles at baseline. We could not avoid that lifestyle that might change during follow-up, which would affect the exploration of relevance. Fourth, we dichotomized each lifestyle factor and counted the number of low-risk lifestyle factors, ignoring the difference in the magnitude of association between various lifestyle factors and depression. However, we compared the analyses using modified lifestyle scores with the original score, and no significant differences were observed. Fifth, although participants who developed depression within the first 2 years of follow-up were excluded, the risk of reverse causation was still unavoidable.

In conclusion, our study suggested that body fat distribution was related to the risk of depression, and adherence to a healthy lifestyle, especially among those with healthy fat distribution, was important to reduce the risk of depression. It is promising for policymakers to advise individuals to reduce the risk of depression by paying attention to body fat distribution indices in the future.