Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2026 Jan 27.
Published in final edited form as: J Affect Disord. 2021 Dec 11;299:264–272. doi: 10.1016/j.jad.2021.12.019

The mediating effect of engagement in physical activity over a 24-hour period on chronic disease and depression: Using compositional mediation model

Ziqiang Lin a,b,c,1, Sui Zhu a,1, Jinqun Cheng d, Qiaoxuan Lin e, Wayne R Lawrence f, Wangjian Zhang g, Yanhong Huang d, Yue Chen h, Yanhui Gao a,*
PMCID: PMC12833733  NIHMSID: NIHMS2137705  PMID: 34902506

Abstract

Background:

Popular mediation method only considers a single activity as a mediator instead of all 24-hour physical activity, such as a four-way decomposition method. We investigated the mediation of 24-hour movement continuum between chronic diseases (cardiovascular disease [CVD] and diabetes) and depression using a novel compositional mediation model.

Methods:

24-hour activity data measured by accelerometer were obtained from NHANES 2005–2006. Adjusted coefficient with 95% confidence interval (95% CI) for PHQ-9 total score and adjusted odds ratio (OR) with 95% CI for depression were computed from compositional mediation models.

Results:

In total, 2,375 participants aged ≥ 20 were included in our analysis. Both diabetes and CVD were associated with increased sedentary behavior (SB) and sleep and reduced moderate-to-vigorous physical activity (MVPA) and light-intensity physical activity (LPA), leading to an increased likelihood of depression. Although not all component indirect effects were associated with PHQ-9 total score and depression, the total indirect effect was significantly associated with both PHQ-9 total score (coefficient (95% CI) for diabetes: 0.162 (0.081, 0.261); coefficient (95% CI) for CVD: 1.139 (1.061, 1.240)) and depression (OR (95% CI) for diabetes: 0.235 (0.126, 0.362); OR (95% CI) for CVD: 1.200 (1.088, 1.346)) using the compositional mediation model.

Conclusion:

We developed a compositional mediation model for continuous and binary outcomes, which can handle entire compositional mediators as a unit. The mediation of 24-hour movement continuum mediated the association between diabetes, CVD, and depression. Our findings present potential interventions for reducing risk of depression among patients with CVD and diabetes.

Keywords: Compositional mediation model, Depression, Chronic disease, Physical activity, CVD

1. Introduction

Depression is a common mood disorder that adversely affects daily life and contributes to poor physical health (Centers for Disease Control Prevention, 2010; Cho et al., 2019). The incidence of depression has increased markedly from 1990 to 2017 (Liu et al., 2020). The growing burden of chronic diseases has contributed to the rise in incidence of depression, and subsequent poorer quality of life (Cho et al., 2019; Hidaka, 2012; Simon, 2001). Therefore, it is of public health importance to identify depression risk factors and develop and effective low-cost preventative strategy.

Physical activity was suggested to influence chronic disease in relation to depression. Previous studies have reported that people with chronic diseases tend to engage in less physical activity, including moderate-to-vigorous physical activity (MVPA) and light-intensity physical activity (LPA), as well as more likely to engage in sedentary behavior (SB) (Barker et al., 2019; Sobngwi et al., 2002). Physical activity reduces the risk of depressive symptoms in all age groups, while SB increases the likelihood of depression (Dimeo et al., 2001; Doyne et al., 1983; Huang et al., 2021; McNeil et al., 1991). Several studies have reported that replacing SB with MVPA or LPA can significantly reduce depression (Kandola et al., 2020; Tully et al., 2020; Yasunaga et al., 2018a).

Epidemiological studies have observed that moderate recreational activity (MRA) mediates the effects of cardiovascular disease (CVD) and diabetes on depression using a four-way decomposition method (Huang et al., 2021; Xu et al., 2020). However, this approach considers a single activity as a mediator instead of measuring the full 24-hour physical activity. Therefore, by accounting for the full 24-hour activity as compositional data, changing any one activity will cause changes to other activities. For instance, within a fixed 24-hour period, increase in SB will lead to a compensatory decrease in the time of one or more other activities (MVPA, LPA or sleep). To better understand the mediating effects of physical activity and SB on the relationship between chronic disease and depression from a movement continuum perspective, it is necessary to consider the 24-hour activity as a unit in the mediation analysis.

In this study, we developed a compositional mediation model for both continuous and binary outcomes to deal with mediators that are compositional data, and explored the 24-hour movement continuum as a mediator for CVD and diabetes in association with depression. Findings will be helpful in proposing early interventions to reduce risk for depression among people with chronic diseases (CVD and diabetes).

2. Method

2.1. Data source and ethnic statement

The present study used data from the National Health and Nutrition Examination Survey (NHANES), a nationwide survey of adults and children in the U.S. NHANES is a cross-sectional study, where new samples are collected every two years. The study aims to monitor health and nutritional status, and represents the non-institutionalized population of the U.S. (National Center for Health Statistics, 2008). NHANES is a publicly available dataset approved by the National Center for Health Statistics institutional review board, where all included participants provided written informed consent. The present study used NHANES 2005–2006 data and included adults ≥ 20 years of age that wore an accelerometer. A total of 2375 participants (weighted=110,193,691) were included in our analysis.

2.2. Outcome measures

The Patient Health Questionnaire (PHQ-9) is a 9-item depression screening that asked about the frequency of depressive symptoms in the past two weeks to measure depression symptoms (trouble falling sleep, feeling down, overeating, feeling tired, little interest, feeling bad about yourself, trouble concentrating on things, moving or speaking so slowly that other people could have noticed, and thoughts of hurting yourself) (Kroenke et al., 2001). Each PHQ-9 question scored from 0 to 3, and the total PHQ-9 score ranged from 0 to 27. Depression was defined as PHQ-9 total score ≥5 recommend by Janssen et al. (2016) (Janssen et al., 2016). Although the National Quality Forum recommends 10 as the threshold, the threshold of 5 has the best sensitivity (92.3%) and acceptable specificity (70.4%), which is suitable for early intervening (Janssen et al., 2016; Kroenke et al., 2001). We used both PHQ-9 total score and depression as the outcomes in the mediation analysis.

2.3. Mediator – 24-hour physical behavior

Physical activity and sedentary behavior were assessed by using a uniaxial accelerometer (AM-7164, ActiGraph, LLC, Pensacola, Florida) for seven consecutive days. Each participant in the study was asked to wear an accelerometer in the morning, except for bathing or engaging in water activities (e.g., swimming). Participants that wore an accelerometer for a minimum of ten hours on any four days over a seven-day period were included in our study. Using data captured from the accelerometer and based on the definition of Theou and colleagues (2017), SB was defined as 0 to <100 counts/minute, LPA was defined as 100 to <2020 counts/minute, and MVPA was defined as ≥ 2020 counts/minute (Theou et al., 2017). Estimated mean time in minutes spent in each evaluation intensity per day was calculated by averaging all measures over the number of valid days. In order to avoid short periods having nothing to do with bedtime and long period that might be invalid data, we used the duration of the longest non-wearing time ranging from four to twelve hours in a 24-hour window as sleep activity (Urbanek et al., 2018). The time of each movement behavior in a 24-hour period was the ratio of each behavior (SB, LPA, MVPA, sleep) multiplied by 1440.

2.4. Assessment of diabetes

Diabetes was determined based on participant’s self-report and blood examination. Adhering to the American Diabetes Association, diabetes was defined if at least one of the following criteria were met: (1) fasting glucose concentration ≥ 126 mg/dL; (2) Glycosylated hemoglobin (HbA1c) ≥ 6.5%; (3) participant answered yes to the question “are you now taking diabetes medication to lower your blood sugar”; (4) participant answered yes to the question “have you ever been told by a doctor that you have diabetes”; and (5) participant answered yes to the question “are you taking insulin now.”

2.5. Assessment of cardiovascular disease

CVD was determined by self-reported questionnaire. Based on the American Heart Association, CVD was defined if at least one of following criteria were met: (1) participant answered yes to the question “have you ever been told you had congestive heart failure”; (2) participant answered yes to the question “have you ever been told you had coronary heart disease”; (3) participant answered yes to the question “have you ever been told you had angina/angina pectoris”; (4) participant answered yes to the question “have you ever been told you had a heart attack”; and (5) participant answered yes to the question “have you ever been told you had a stroke”.

2.6. Assessment of covariates

Included in our analysis as covariates were gender, age, race/ethnicity (Hispanic, White, Black, and other racial group), education level (less than 12 years, grade 12 or equivalent, and post high school), marital status (never married, married or living with partner, and others), general health condition (excellent, very good, good, fair, and poor), family poverty index ratio (a ratio of family income to poverty), smoking status (nonsmoker, former smoker, and current smoker), alcohol intake (no alcohol consumption, previous alcohol consumption, moderate alcohol consumption, and excessive alcohol consumption), body-mass index (BMI) was categorized based on the World Health Organization criteria(underweight if BMI<18.5, normal weight if BMI between 18.5 and 24.9, overweight if BMI between 25 and 29.9, and obese if BMI ≥ 30), and total energy used per day.

2.7. Statistical analysis

2.7.1. Demographic description

We applied weights to calculate the average total PHQ-9 score and the prevalence of depression corresponding to each influencing factor. We also compared the 24-hour activities (MVPA, LPA, SB, and sleep) of CVD and non-CVD, diabetic and non-diabetic, and depression and non-depression participants.

2.7.2. Isometric log-ratio (ILR) and variation matrix

Let M be a vector of m compositional mediators (24-hour activities in our study were mediator variables and treated as compositional data). Since M is a m-simplex space, that is, M=M1,,Mm:Mi>0,i=1,2,,m,i=1mMi=1, modeling directly to M may produce distorted results (Aitchison, 1982). To address this issue, isometric log-ratio (ilr) transformation technique which transform the compositional data from simplex Sm to real Euclidean space Rm1 was introduced by Egozcue et al. (2003).

Let denote ilr transformation coordinates by Z, that is, Z=Z1,Z2,,Zm1. For coordinate i,

Zi=mimi+1lnMij=i+1mMj1mi

The benefit of ilr is the ability to be expressed and interpreted as the average of pairwise log difference, that is,

Zi=mimi+1lnMi(j=i+1mMj)1mi=1(mi+1)(mi)j=i+1mln(MiMj)=1(mi+1)(mi)j=i+1m(ln(Mi)ln(Mj))

It is unable to construct directly for original compositions to measure variability of compositional data. Therefore, Aitchison introduced a variation matrix which is the variance of pairwise Log ratios (Aitchison, 1982). Let the compositional data M=M1,,Mm:Mi>0,i=1,2,,m,i=1mMi=1, the variation matrix is defined as

V=v11v1mvm1vmm

where vjk are sample variances of pairwise logratios between Mj and Mk for all j,k=1,2,,m, and

vjk=VarlnMjMk

The closer vjk is to zero, the stronger the proportional relationship or co-dependence between Mj and Mk

In this study, the time spent in SB, LPA, MVPA, and sleeping were converted to z, a three-dimensional coordinate using ILR, where

z=34lnMVPASleep*SB*LPA13,23lnLPASleep*SB12,12lnSleepSB

Additionally, variation matrix reflecting co-dependence between SB, LPA, MVPA, and sleep in the general population, diabetes population, and CVD population were calculated. For 24-hour activities, two activities with strong co-dependence means that it may be easy to convert between each other.

2.7.3. Compositional mediation model

Suppose we have a random sample size of n from a population. Let Y be an outcome, M be a vector of m compositional mediators, T be an exposure, and X be a set of covariates that may affect the mediators,exposure, and outcome. Based on the ILR calculation we mentioned above, we proposed the compositional mediation model in two cases:

Case 1: If Y is continuous outcome, the steps of the compositional mediation model are as follow:

Step 1: Building linear regression Y on treatment T and ilr coordinates Z

Y=β0+i=1m1βiZi+cT+γX+ε

where β0 is the intercept, βi is the coefficient of Zi, c is the coefficient of T,γ is the vector of coefficient of X, and ε is an error term. By replacing Zi, the equation will be simplified to

Y=β0+i=1mβiln(Mi)+cT+γX+ε

where

βi=βi(mi)(mi+1)min(i1,1)j=1i1βj1(mj+1)(mj),1im1j=1m1βj1(mj+1)(mj),i=m

Step 2: Building linear regression Mi on treatment T

lnMi=α0i+α1iT+γiX+εi

where α0i is the intercept, α1i is the coefficient of T, γi is the vector of coefficient of X, and εi is an error term.

Based on Step 1 and Step 2, we get the indirect effect of treatment T on Y through Mi is α1iβi. Further, the average indirect effect (AIE) and average total effect (ATE) are i=1mα1iβi and i=1mα1iβi+c, respectively.

Case 2: If Y is binary outcome, the steps of the compositional mediation model are as follow:

Step 1: Building logistic regression Y on treatment T and ilr coordinates Z

(Odd(Y))=β0+i=1m1βiZi+cT+γX

where β0 is the intercept, βi is the coefficient of Zi, c is the coefficient of T, and γ is the vector of coefficient of X. By replacing Zi, the equation will be simplified to

(Odd(Y))=β0+i=1mβiln(Mi)+cT+γX

where

βi={βi(mi)(mi+1)min(i1,1)j=1i1βj1(mj+1)(mj),1im1j=1m1βj1(mj+1)(mj),i=m

Step 2: Building linear regression Mi on treatment T

lnMi=α0i+α1iT+γiX+εi

where α0i is the intercept, α1i is the coefficient of T, γi is the vector of coefficient of X, and εi is an error term.

From Step 1 and Step 2, we get the indirect effect odds ratio (OR) of treatment T on Y through Mi is eα1iβi. Further, the average indirect effect OR (AIEOR) and average total effect OR (ATEOR) are ei=1mα1iβi and ei=1mα1iβi+c, respectively.

In a compositional mediation model, we aimed to determine the effect of chronic disease (diabetes or CVD) on PHQ-9 total score or depression mediated by daily physical activity, after adjusting for gender, race/ethnicity, education, marital status, smoking status, alcohol consumption, family poverty index ratio, total energy used per day, health condition, and BMI. Adjusted regression coefficient with 95% confidence interval (95% CI) for PHQ-9 total score and adjusted odds ratio (OR) with 95% CI for depression were computed. All statistical tests were 2-tailed, and analyses were performed using R software version 4.0.3.

3. Results

Table 1 shows the average total PHQ-9 score and the prevalence of depression according to influencing factors. The overall weighted prevalence of depression was 16.98%. There were significant associations for average PHQ score and the prevalence of depression with gender, smoking status, educational attainment, health condition, BMI, diabetes, and CVD. Additionally, the prevalence of depression was significantly associated with racial/ethnic group and marital status.

Table 1.

Average total PHQ-9 score and prevalence of depression according to influencing factors.

Overall Weighted N Use sample size instead of population size Total PHQ-9 Score MEAN (SE) p-value Depression% (SE) p-value
Gender
Male 55,114,947 2.00 (0.10) <0.001 42.43% (2.82%) 0.005
Female 55,078,744 2.67 (0.12) 57.57% (2.82%)
Age (years)
20–44 50,065,438 2.37 (0.12) 0.066 49.50% (2.94%) 0.133
45–64 35,836,689 2.53 (0.17) 32.46% (2.82%)
65+ 24,291,564 1.96 (0.12) 18.04% (1.97%)
Race
Hispanic 12,609,721 2.83 (0.24) 0.853 14.54% (1.77%) 0.037
Non-Hispanic White 80,832,170 2.21 (0.10) 67.57% (2.54%)
Non-Hispanic Black 11,176,106 2.54 (0.15) 11.10% (1.22%)
Others 5575,693 2.59 (0.35) 6.79% (1.57%)
Education
Less than year 12 16,201,143 2.82 (0.19) 0.003 20.97% (2.10%) 0.001
Grade 12 or equivalent 27,831,284 2.43 (0.18) 26.27% (2.53%)
Post high school 66,161,264 2.17 (0.10) 52.76% (2.89%)
Marital status
Never married 14,617,521 2.82 (0.22) 0.347 17.24% (2.11%) 0.003
Married or living with partner 76,389,002 2.07 (0.09) 61.32% (2.84%)
Widowed, divorced, or separated 19,187,168 2.98 (0.25) 21.44% (2.36%)
Smoking
Nonsmoker 58,279,619 2.16 (0.11) 0.001 45.62% (2.91%) <0.001
Former smoker 29,329,699 2.15 (0.14) 24.31% (2.52%)
Current smoker 22,584,373 3.00 (0.21) 30.07% (2.62%)
Alcohol intake
No alcohol consumption 11,987,822 2.02 (0.22) 0.200 8.96% (1.60%) 0.125
Previous alcohol consumption 26,853,102 2.52 (0.17) 27.31% (2.50%)
Moderate alcohol consumption 54,120,951 2.16 (0.11) 45.14% (2.90%)
Excessive alcohol consumption 17,231,816 2.78 (0.23) 18.60% (2.28%)
Health condition
Excellent 12,279,658 1.02 (0.13) <0.001 3.46% (1.07%) <0.001
Very good 40,530,484 1.65 (0.10) 21.29% (2.48%)
Good 41,321,937 2.35 (0.12) 38.16% (2.84%)
Fair 14,414,952 4.53 (0.29) 30.70% (2.65%)
Poor 1646,660 9.06 (1.29) 6.39% (1.36%)
BMI
Underweight 1695,111 2.23 (0.43) 0.001 1.76% (0.70%) <0.001
Normal 33,815,631 2.08 (0.14) 24.28% (2.55%)
Overweight 36,537,230 2.14 (0.13) 28.82% (2.54%)
Obesity 38,145,720 2.74 (0.16) 45.13% (2.91%)
Diabetes
Yes 10,965,701 3.05 (0.27) 0.006 86.61% (1.84%) 0.019
No 99,227,990 2.25 (0.08) 13.39% (1.84%)
CVD
Yes 101,996,722 3.10 (0.33) 0.014 88.87% (1.66%) 0.004
No 8196,969 2.27 (0.08) 11.13% (1.66%)

Note: p ≤ 0.05 was considered statistically significant.

Significant difference between groups determined by X2 test (depression) or ANOVA-test (PHQ-9 score).

Abbreviations: CVD, cardiovascular disease; BMI, Body-mass index; SE, standard error; PHQ, patient health questionnaire.

Table 2 presents physical activity by diabetes status, CVD, and depression. We observed that time spent engaging in SB, LPA, MVPA, and sleep were significantly different between diabetes and non-diabetes groups. Participants with diabetes had less MVPA and LPA, and more SB and sleep in a 24-hour period compared with non-diabetic participants. SB, LPA, MVPA, and sleep were similarly associated with CVD and depression.

Table 2.

A: Engagement in physical activity by diabetes status.

Diabetes Non-diabetes p-value

Sedentary behavior 39.33% (0.61%) 35.90% (0.21%) <0.001
Light-intensity physical activity 22.94% (0.50%) 26.26% (0.18%) <0.001
Moderate-to-vigorous physical activity 1.25% (0.10%) 2.34% (0.05%) <0.001
Sleeping 36.47% (0.38%) 35.45% (0.14%) 0.012
Table 2B Engagement in physical activity by cardiovascular disease status
CVD Non-CVD p-value
Sedentary behavior 40.73% (0.68%) 35.88% (0.21%) <0.001
Light-intensity physical activity 20.92% (0.54%) 26.33% (0.18%) <0.001
Moderate-to-vigorous physical activity 1.23% (0.16%) 2.37% (0.05%) <0.001
Sleeping 37.12% (0.38%) 35.42% (0.14%) <0.001
Table 2C. Engagement in physical activity by depression status
Depression Non-depression p-value
Sedentary behavior 37.32% (0.50%) 36.02% (0.21%) 0.017
Light-intensity physical activity 24.52% (0.41%) 26.22% (0.19%) <0.001
Moderate-to-vigorous physical activity 1.80% (0.10%) 2.38% (0.05%) <0.001
Sleeping 36.36% (0.33%) 35.38% (0.14%) 0.007

Fig. 1 shows the variation matrix between SB, LPA, MVPA, and sleep in the general population, diabetes population, and CVD population. We observed that the co-dependence between SB and LPA or the co-dependence between sleep and LPA were stronger than co-dependence between SB and MVPA or the co-dependence between sleep and MVPA in any population. In addition, the co-dependence between LPA and MVPA was weak.

Fig. 1.

Fig. 1.

A: The variation matrix between SB, LPA, MVPA, and sleep – All Population. B: The variation matrix between SB, LPA, MVPA, and sleep – Diabetes Population. C: The variation matrix between SB, LPA, MVPA, and sleep – CVD Population.

Fig. 2 presents the effects of diabetes on the total PHQ-9 score and the prevalence of depression mediated by daily physical activity. We observed that diabetes increased the time spent engaging in SB and sleep, and reduce time spent on MVPA and LPA, thereby increasing depression and PHQ-9 total score. Although the indirect effect through sleep was not significant on PHQ-9 total score, and the indirect effects through SB, LPA, and sleep were not significant on depression, the total indirect effect was significantly associated with both PHQ-9 total score (coefficient = 0.162, 95% CI 0.082–0.261) and depression (adjusted OR = 1.139, 95%CI 1.061–1.240) (Table 3).

Fig. 2.

Fig. 2.

A: presents the effect of diabetes to PHQ-total score mediated by daily engagement in physical activity. B: presents the effect of diabetes to depression mediated by daily engagement in physical activity.

Table 3.

The effects of diabetes or CVD on PHQ-total score and depression mediated by daily engagement in physical activity.

Diabetes on PHQ score Coefficient (95% CI) Diabetes on Depression OR (95% CI) CVD on PHQ score Coefficient (95% CI) CVD on Depression OR (95% CI)
Total Indirect Effect 0.162 (0.081,0.261) 1.139 (1.061,1.240) 0.235 (0.126,0.362) 1.200 (1.088,1.346)
Direct Effect −0.040 (−0.563,0.499) 0.890 (0.556,1.395) −0.139 (−0.767,0.520) 1.015 (0.612,1.649)
Total Effect 0.121 (−0.395,0.655) 1.014 (0.639,1.569) 0.096 (−0.531,0.754) 1.217 (0.736,1.971)

Fig. 3 shows the effects of CVD on total PHQ-9 score and depression mediated by daily physical activity. We observed that CVD significantly increased the time spent engaging in SB and sleep, and reduced time spent for MVPA and LPA, thereby increasing depression and PHQ-9 total score. Similarly, the indirect effect through sleep was not associated with total PHQ-9 score, the indirect effect through SB, LPA, and sleep were not associated with depression, but the total indirect effect was associated with both total PHQ-9 score (coefficient = 0.235, 95% CI 0.126–0.362) and depression (adjusted OR = 1.200, 95% CI 1.088–1.346) (Table 3).

Fig. 3.

Fig. 3.

A: presents the effect of CVD to PHQ-total score mediated by daily engagement in physical activity. B: presents the effect of CVD to depression mediated by daily engagement in physical activity.

4. Discussion

In the present study we introduced a compositional mediation model for continuous and binary outcomes, which is the extension of mediation model for dealing with a situation when the mediators are compositional data. Although previous research tried to use the four-way decomposition method to analyze each compositional data feature as a mediator (Discacciati et al., 2019; VanderWeele, 2014; Xu et al., 2020), to the best of our knowledge, this is the first study to include all compositional data features as mediators in a single mediation analysis. Compared with the four-way decomposition method, our method includes the entire compositional mediators as a unit, that is, it jointly estimates the effect of exposure on whole compositional mediators, instead of each mediator separately, thereby making the indirect and direct effects more accurate.

After adjusting for potential confounders, we observed that diabetes and CVD increased the time spent engaging in SB and sleep, and compensatorily decreased the time spent in LPA and MVPA. Our findings are consistent with result from previous studies that individuals with a chronic condition, such as diabetes or CVD, are less likely to engage in physically activity (Durstine et al., 2013; Sobngwi et al., 2002). For instance, previous studies reported that older adults with diabetes engaged in less physical activity and more SB than those without diabetes (Loprinzi, 2014), and people with CVD preferred to increase SB and reduce any type of physical activity (Xu et al., 2020). There are two possible reasons for these associations: 1) people with chronic diseases are at greater risk for mental disorders, but mental disorders can affect the homeostatic system involved in the stress response, resulting in reduced physical activity (Campbell and Turner, 2018; Correll et al., 2017; Verhaak et al., 2005); and 2) some chronic diseases are accompanied by physical disabilities, resulting in greater engagement in SB and lower physical activity. However, previous studies have examined separately the effects of chronic diseases on physical activity and SB (Huang et al., 2021; Xu et al., 2020), ignoring the complex nature of the interrelationship between chronic disease and both physical activity and SB. Our findings from 24-hour physical activity behavior as a unit revealed that having a chronic disease reduced physical activity and increased SB from the perspective of time usage throughout the day. Behavior changes are interchangeable, in addition to the increase in SB directly caused by chronic diseases, the decrease in physical activity caused by chronic diseases also compensatory increases SB, and vice versa. Our results suggest that compared with non-diabetics, the average daily SB time of patients with diabetes increased from 35.90% to 39.33% (an increase of 3.43%, approximately 50 min), while the average LPA and MVPA time decreased from 28.60 a day to 24.19 (reduced by 4.41%, approximately 64 min). CVD behavior time changes was more severe, SB time on average increased from 35.88% a day to 40.73% (an increase of 4.85%, approximately 70 min), while LPA and MVPA reduced from 28.70% to 22.15% (decreased by 6.55%, approximately 94 min). As the severity of the disease increased, the level of physical activity among patients with chronic disease will decrease further, and SB will increase further. The accumulation of levels for dual risk factors will lead to further deterioration of the physical and psychological conditions of patients with chronic diseases.

Our findings suggest that the effects of diabetes and CVD on both PHQ-9 score and depression were mediated by 24-hour daily physical activities. Several studies reported that increasing any form of physical activity including LPA and MVPA, and reducing sedentary time reduced the probability of depression (Cahuas et al., 2020; Dinas et al., 2011; Vallance et al., 2011). LPA and MVPA not only significantly reduced depression in the general population (Schuch et al., 2018) but also increased both, while reducing SB and sleep, can lower the risk of depression among individuals with either CVD or diabetes (Mekary et al., 2013; Rethorst et al., 2017; Yasunaga et al., 2018a). Additionally, previous studies have reported that physical activity interventions had a beneficial effect on reducing depression symptoms (Conn, 2010; Hu et al., 2020). A meta-analysis of ninety-two studies reported that physical activity reduced depression by a medium effect (Rebar et al., 2015). A potential explanation is that physical activity increases endorphins and other natural brain chemicals that can enhance well-being, while buffering negative thought cycles that leads to depression (Centers for Disease Control Prevention, 2010). Also, after physical activity, the lower layer of granular cells in the dentate gyrus of the hippocampus will produce a large number of new neurons, because the number of new neurons in a certain range is beneficial to the brain and reduces certain depressive symptoms (Kodali et al., 2016; Tunc-Ozcan et al., 2019). Another meta-analysis observed that SB was associated with increased risk of depression (pooled relative risk (PR) = 1.31; 95% CI: 1.16 to 1.48 in cross-sectional studies, and pooled RR = 1.14; 95% CI: 1.06 to 1.21 in longitudinal studies) (Zhai et al., 2015). This is potentially due to SB contributes to lose vitality, and increase blood pressure and cerebrovascular resistance, which are known to negatively impact brain health long-term (Maasakkers et al., 2020).

In this study, we used 24-hour physical activity as a unit, that is, a change in one indicator causes an inverse change in other indicators. At the same time, we observed that the magnitude of the mediating effects from large to small were MVPA, LPA, SB, and sleep for the impact of CVD and diabetes on depression. The World Health Organization recommend substituting SB with physical activity, especially MVPA for optimal health (Bull et al., 2020). Additionally, Tully et al. (2020) reported greater benefits when replacing SB with MVPA than SB with LPA among the older adult population using isotemporal substitution model (Tully et al., 2020). Therefore, substituting SB engagement with MVPA is a theoretically optimal intervention model. However, based on our variation matrix in different subpopulations (general, diabetes, non-diabetes, CVD, and non-CVD), there were greater difficulty for replacing SB with MVPA than SB with LPA (co-dependence between SB and LPA: 0.297, and co-dependence between SB and MVPA: 1.714). Changing inherent lifestyles and behaviors is a complex, continuous, and gradual process. More specifically, it may be more difficult for people who do not have an established exercise habit to initiate and maintain than to increase some of their daily activities in some inadvertent ways. Yasunaga et al. (2018) reported that substituting thirty minutes of SB with LPA can reduce risk of depression (Yasunaga et al., 2018b). Another systematic review documented that after adjusting for MVPA, LPA was associated with improved health outcomes (Amagasa et al., 2018). Therefore, a more practical and feasible intervention plan should be hierarchical and step-by-step, that is, for those who engage in SB for a long period, it is necessary to design a plan that encourages replacing some SB with LPA first, and for those that engage in LPA for long period are encouraged to replace some LPA with MVPA.

5. Strength and limitation

To the best of our knowledge, this is the first study to include all compositional data features as mediators in a single mediation analysis. However, several limitations must be noted. First, there is potential for selection bias as people with depression or certain chronic diseases might be less likely to participate in the survey. Second, depression was defined based on the PHQ-9 total score with no clinical diagnosis, potentially overestimating or underestimating depression. Finally, this is a cross-sectional study, therefore the causal relationships between chronic disease, physical activity, and depression cannot be determined. Prospective cohort studies are needed to confirm our findings.

Our study limitations are offset by notable strengths. First, the survey questionnaire was carefully designed to capture important sociodemographic and behavioral characteristics, such as family poverty index ratio, smoking, and alcohol consumption. Second, the analysis was based on a large national representative sample. Third, the 24-hour physical activity data were measured by an accelerometer reducing risk of potential measurement bias. Finally, using the compositional data method to determine the coefficients of variation matrix can more accurately estimate the co-dependence of the four behaviors (LPA, MVPA, SB, and sleep) compared with traditional methods.

6. Conclusion

The present study presents a compositional mediation model for continuous and binary outcomes, which is the extension of compositional mediation model for dealing with entire compositional mediators as a unit. We observed that diabetes and CVD were associated with increased SB and sleep, and reduced MVPA and LPA, which could lead to an increased likelihood of depression from the perspective of all-day physical activity. The strong co-dependence of SB and LPA in various populations suggests the need to develop a stratified and gradual preventative measure to reduce depression in patients with CVD and diabetes, such as increasing engagement in LPA and reduce SB, while maintaining current engagement in MVPA. Future preventative measures to reduce depression in patients with CVD or diabetes should consider the compositional feature of 24-hour physical activity.

Acknowledgements

We gratefully acknowledged the contribution of all participants of the present research.

Funding

This Study was supported by National Social Science Foundation (2019 key project of education sciences) [grant number ALA190015].

Footnotes

Ethics approval and consent to participate

NHANES is administered by the National Center for Health Statistics, and the study received approval by the Health Statistics Institutional Review Board. NHANES is a publicly available dataset approved by the National Center for Health Statistics institutional review board, where all included participants provided written informed consent.

Author statements

This manuscript has not been published or being considered for publication elsewhere in whole or in part.

CRediT authorship contribution statement

Ziqiang Lin: Conceptualization, Data curation, Formal analysis, Writing – original draft, Writing – review & editing. Sui Zhu: Conceptualization, Formal analysis, Writing – review & editing. Jinqun Cheng: Formal analysis, Writing – review & editing. Qiaoxuan Lin: Formal analysis, Writing – review & editing. Wayne R. Lawrence: Writing – review & editing. Wangjian Zhang: Formal analysis, Writing – review & editing. Yanhong Huang: Writing – review & editing. Yue Chen: Writing – review & editing. Yanhui Gao: Conceptualization, Writing – review & editing, Funding acquisition.

Declaration of Competing Interest

The authors have no conflicts to disclose. Trial registration: ClinicalTrials.gov NCT00005154.

References

  1. Aitchison J, 1982. The statistical analysis of compositional data. J. R. Statist. Soc 44, 139–160. [Google Scholar]
  2. Amagasa S, Machida M, Fukushima N, Kikuchi H, Takamiya T, Odagiri Y, Inoue S, 2018. Is objectively measured light-intensity physical activity associated with health outcomes after adjustment for moderate-to-vigorous physical activity in adults? A systematic review. Int. J. Behav. Nutr. Phys. Activity 15, 1–13. [DOI] [PMC free article] [PubMed] [Google Scholar]
  3. Barker J, Smith Byrne K, Doherty A, Foster C, Rahimi K, Ramakrishnan R, Woodward M, Dwyer T, 2019. Physical activity of UK adults with chronic disease: cross-sectional analysis of accelerometer-measured physical activity in 96 706 UK Biobank participants. Int. J. Epidemiol 48, 1167–1174. [DOI] [PMC free article] [PubMed] [Google Scholar]
  4. Bull FC, Al-Ansari SS, Biddle S, Borodulin K, Buman MP, Cardon G, Carty C, Chaput J-P, Chastin S, Chou R, 2020. World Health Organization 2020 guidelines on physical activity and sedentary behaviour. Br. J. Sports Med 54, 1451–1462. [DOI] [PMC free article] [PubMed] [Google Scholar]
  5. Cahuas A, He Z, Zhang Z, Chen W, 2020. Relationship of physical activity and sleep with depression in college students. J. Am. Coll. Health 68, 557–564. [DOI] [PubMed] [Google Scholar]
  6. Campbell JP, Turner JE, 2018. Debunking the myth of exercise-induced immune suppression: redefining the impact of exercise on immunological health across the lifespan. Front. Immunol 9, 648. [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Centers for Disease Control Prevention, 2010. Current depression among adults—United States, 2006 and 2008 59, 1229–1235. [PubMed] [Google Scholar]
  8. Cho Y, Lee JK, Kim D-H, Park J-H, Choi M, Kim H-J, Nam M-J, Lee K-U, Han K, Park Y-G, 2019. Factors associated with quality of life in patients with depression: a nationwide population-based study. PLoS ONE 14, e0219455. [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Conn VS, 2010. Depressive symptom outcomes of physical activity interventions: meta-analysis findings. Ann. Behav. Med 39, 128–138. [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Correll CU, Solmi M, Veronese N, Bortolato B, Rosson S, Santonastaso P, Thapa-Chhetri N, Fornaro M, Gallicchio D, Collantoni E, 2017. Prevalence, incidence and mortality from cardiovascular disease in patients with pooled and specific severe mental illness: a large-scale meta-analysis of 3,211,768 patients and 113,383,368 controls. World Psychiatry 16, 163–180. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Dimeo F, Bauer M, Varahram I, Proest G, Halter U, 2001. Benefits from aerobic exercise in patients with major depression: a pilot study. Br. J. Sports Med 35, 114–117. [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Dinas P, Koutedakis Y, Flouris A, 2011. Effects of exercise and physical activity on depression. Ir. J. Med. Sci 180, 319–325. [DOI] [PubMed] [Google Scholar]
  13. Discacciati A, Bellavia A, Lee JJ, Mazumdar M, Valeri L, 2019. Med4way: a Stata command to Investigate Mediating and Interactive Mechanisms Using the Four-Way Effect Decomposition Oxford University Press. [DOI] [PubMed] [Google Scholar]
  14. Doyne EJ, Chambless DL, Beutler LE, 1983. Aerobic exercise as a treatment for depression in women. Behav. Ther 14, 434–440. [Google Scholar]
  15. Durstine JL, Gordon B, Wang Z, Luo X, 2013. Chronic disease and the link to physical activity. J. Sport. Health Sci 2, 3–11. [Google Scholar]
  16. Egozcue JJ, Pawlowsky-Glahn V, Mateu-Figueras G, Barcelo-Vidal C, 2003. Isometric logratio transformations for compositional data analysis. Math. Geol 35, 279–300. [Google Scholar]
  17. Hidaka BH, 2012. Depression as a disease of modernity: explanations for increasing prevalence. J. Affect. Disord 140, 205–214. [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. Hu MX, Turner D, Generaal E, Bos D, Ikram MK, Ikram MA, Cuijpers P, Penninx BW, 2020. Exercise interventions for the prevention of depression: a systematic review of meta-analyses. BMC Public Health 20, 1–11. [DOI] [PMC free article] [PubMed] [Google Scholar]
  19. Huang B, Huang Z, Tan J, Xu H, Deng K, Cheng J, Ren Z, Gong X, Gao Y, 2021. The mediating and interacting role of physical activity and sedentary behavior between diabetes and depression in people with obesity in United States. J. Diabetes Complicat 35, 107764. [DOI] [PubMed] [Google Scholar]
  20. Janssen EP, Köhler S, Stehouwer CD, Schaper NC, Dagnelie PC, Sep SJ, Henry RM, van der Kallen CJ, Verhey FR, Schram MT, 2016. The Patient Health Questionnaire-9 as a screening tool for depression in individuals with type 2 diabetes mellitus: the Maastricht study. J. Am. Geriatr. Soc 64, e201–e206. [DOI] [PubMed] [Google Scholar]
  21. Kandola A, Lewis G, Osborn DP, Stubbs B, Hayes JF, 2020. Depressive symptoms and objectively measured physical activity and sedentary behaviour throughout adolescence: a prospective cohort study. Lancet Psychiatry 7, 262–271. [DOI] [PMC free article] [PubMed] [Google Scholar]
  22. Kodali M, Megahed T, Mishra V, Shuai B, Hattiangady B, Shetty AK, 2016. Voluntary running exercise-mediated enhanced neurogenesis does not obliterate retrograde spatial memory. J. Neurosci 36, 8112–8122. [DOI] [PMC free article] [PubMed] [Google Scholar]
  23. Kroenke K, Spitzer RL, Williams JB, 2001. The PHQ-9: validity of a brief depression severity measure. J. Gen. Intern. Med 16, 606–613. [DOI] [PMC free article] [PubMed] [Google Scholar]
  24. Liu Q, He H, Yang J, Feng X, Zhao F, Lyu J, 2020. Changes in the global burden of depression from 1990 to 2017: findings from the Global Burden of Disease study. J. Psychiatr. Res 126, 134–140. [DOI] [PubMed] [Google Scholar]
  25. Loprinzi PD, 2014. Accelerometer-determined sedentary and physical activity estimates among older adults with diabetes: considerations by demographic and comorbidity characteristics. J. Aging Phys. Act 22, 432–440. [DOI] [PubMed] [Google Scholar]
  26. Maasakkers CM, Melis RJ, Kessels RP, Gardiner PA, Rikkert MGO, Thijssen DH, Claassen JA, 2020. The short-term effects of sedentary behaviour on cerebral hemodynamics and cognitive performance in older adults: a cross-over design on the potential impact of mental and/or physical activity. Alzheimer’s Res 12, 1–11. [DOI] [PMC free article] [PubMed] [Google Scholar]
  27. McNeil JK, LeBlanc EM, Joyner M, 1991. The effect of exercise on depressive symptoms in the moderately depressed elderly. Psychology 6, 487. [DOI] [PubMed] [Google Scholar]
  28. Mekary RA, Lucas M, Pan A, Okereke OI, Willett WC, Hu FB, Ding EL, 2013. Isotemporal substitution analysis for physical activity, television watching, and risk of depression. Am. J. Epidemiol 178, 474–483. [DOI] [PMC free article] [PubMed] [Google Scholar]
  29. National Center for Health Statistics, 2008. National Health and Nutrition Examination Survey. [Google Scholar]
  30. Rebar AL, Stanton R, Geard D, Short C, Duncan MJ, Vandelanotte C, 2015.A meta-meta-analysis of the effect of physical activity on depression and anxiety in non-clinical adult populations. Health Psychol. Rev 9, 366–378. [DOI] [PubMed] [Google Scholar]
  31. Rethorst CD, Moncrieft AE, Gellman MD, Arredondo EM, Buelna C, Castañeda SF, Daviglus ML, Khan UI, Perreira KM, Sotres-Alvarez D, Health, 2017. Isotemporal analysis of the association of objectively measured physical activity with depressive symptoms: results from Hispanic Community Health Study/Study of Latinos (HCHS/SOL). J. Phys. Activity 14, 733–739. [DOI] [PMC free article] [PubMed] [Google Scholar]
  32. Schuch FB, Vancampfort D, Firth J, Rosenbaum S, Ward PB, Silva ES, Hallgren M, Ponce De Leon A, Dunn AL, Deslandes AC, 2018. Physical activity and incident depression: a meta-analysis of prospective cohort studies. Am. J. Psychiatry 175, 631–648. [DOI] [PubMed] [Google Scholar]
  33. Simon GE, 2001. Treating depression in patients with chronic disease. West. J. Med 175, 292. [DOI] [PMC free article] [PubMed] [Google Scholar]
  34. Sobngwi E, Mbanya JN, Unwin N, Kengne A, Fezeu L, Minkoulou E, Aspray T, Alberti K, 2002. Physical activity and its relationship with obesity, hypertension and diabetes in urban and rural Cameroon. Int. J. Obes 26, 1009–1016. [DOI] [PubMed] [Google Scholar]
  35. Theou O, Blodgett JM, Godin J, Rockwood K, 2017. Association between sedentary time and mortality across levels of frailty. CMAJ 189, E1056–E1064. [DOI] [PMC free article] [PubMed] [Google Scholar]
  36. Tully MA, McMullan I, Blackburn NE, Wilson JJ, Bunting B, Smith L, Kee F, Deidda M, Giné-Garriga M, Coll-Planas L, 2020. Sedentary behavior, physical activity, and mental health in older adults: an isotemporal substitution model. Scand. J. Med. Sci. Sports 30, 1957–1965. [DOI] [PubMed] [Google Scholar]
  37. Tunc-Ozcan E, Peng C-Y, Zhu Y, Dunlop SR, Contractor A, Kessler JA, 2019. Activating newborn neurons suppresses depression and anxiety-like behaviors. Nat. Commun 10, 1–9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  38. Urbanek JK, Spira AP, Di J, Leroux A, Crainiceanu C, Zipunnikov V, 2018. Epidemiology of objectively measured bedtime and chronotype in US adolescents and adults: NHANES 2003–2006. Chronobiol. Int 35, 416–434. [DOI] [PMC free article] [PubMed] [Google Scholar]
  39. Vallance JK, Winkler EA, Gardiner PA, Healy GN, Lynch BM, Owen N, 2011. Associations of objectively-assessed physical activity and sedentary time with depression: NHANES (2005–2006). Prev. Med 53, 284–288. [DOI] [PubMed] [Google Scholar]
  40. VanderWeele TJ, 2014. A unification of mediation and interaction: a four-way decomposition. Epidemiology 25, 749. [DOI] [PMC free article] [PubMed] [Google Scholar]
  41. Verhaak PF, Heijmans MJ, Peters L, Rijken M, 2005. Chronic disease & mental disorder. Soc. Sci. Med 60, 789–797. [DOI] [PubMed] [Google Scholar]
  42. Xu H, Deng K, Lin Z, Huang Z, Gong X, Tan J, Huang B, Gao Y, 2020. The effects of physical activity and sedentary behavior in the associations between cardiovascular diseases and depression: a four-way decomposition. J. Affect. Disord 275, 194–201. [DOI] [PubMed] [Google Scholar]
  43. Yasunaga A, Shibata A, Ishii K, Inoue S, Sugiyama T, Owen N, Oka K, 2018a. Replacing sedentary time with physical activity: effects on health-related quality of life in older Japanese adults. Health Qual. Life Outcomes 16, 1–5. [DOI] [PMC free article] [PubMed] [Google Scholar]
  44. Yasunaga A, Shibata A, Ishii K, Koohsari MJ, Oka K, 2018b. Cross-sectional associations of sedentary behaviour and physical activity on depression in Japanese older adults: an isotemporal substitution approach. BMJ Open 8, e022282. [DOI] [PMC free article] [PubMed] [Google Scholar]
  45. Zhai L, Zhang Y, Zhang D, 2015. Sedentary behaviour and the risk of depression: a meta-analysis. Br. J. Sports Med 49, 705–709. [DOI] [PubMed] [Google Scholar]

RESOURCES