Introduction

Sleep and physical activity are both behaviors that strongly relate to depression. Short and long sleep duration, decreased sleep continuity (e.g., low sleep efficiency, long sleep latency, and more nighttime awakening), decreased sleep depth (e.g., less time in stage 2 and slow-wave sleep), and insomnia have been associated with depression [1]. High levels of physical activity prospectively predict lower rates of incident depression in children, adolescents, and adults and in randomized controlled trials of clinically depressed individuals, physical activity intervention has been shown to significantly reduce depression symptoms to the same or to a larger extent than medication and other non-pharmacological therapies [2].

While many biological, psychological, and behavioral mechanisms have been proposed to be responsible for the associations that sleep and physical activity have with depression [2,3,4], it remains unknown whether sleep may mediate the relationship between physical activity and depression or vice versa. Physical activity and sleep are reciprocally related. A meta-analysis of physical activity interventions showed that higher levels of physical activity were associated with increased sleep duration, sleep efficiency, slow-wave sleep, and subjective quality, as well as decreased sleep latency and wake after sleep onset [5]. In the other direction, emerging research suggests that poor sleep may contribute to lower physical activity levels [6]. Daily diary and actigraphy studies have shown that within-person variation in sleep quality and efficiency predicts physical activity the next day [7] and experimental sleep restriction has been shown to reduce physical activity levels and increase sedentary time in freely living participants [8].

Despite evidence of strong reciprocal ties, it remains unclear if sleep mediates the relationship between physical activity and depression or vice versa, although emerging evidence supports a role for sleep as a potential mediator [9]. As such, we tested sleep as a mediator of the relationship between physical activity and depression and physical activity as a mediator of the relationship between sleep and depression. We hypothesized that both sleep and physical activity would individually predict depression and that each would be a significant mediator in a population-based, cross-sectional sample.

Participants and methods

Study sample

Participants were recruited online using Amazon’s Mechanical Turk (MTurk) crowd-sourcing service from January to March 2020, prior to the COVID-19 pandemic in the USA. To be eligible, participants had to be at least 18 years of age and be in the USA at the time of participation. Participant demographics are summarized in Table 1. This study was approved by the University IRB, and all participants provided informed consent.

Table 1 Participant characteristics (N = 1576)

MTurk is an online crowd-sourcing service where employees (called workers) are recruited by employers (called requesters) to execute batches of discrete tasks (called HITs, acronym for Human Intel) [10]. In a research context, workers are participants, requesters are researchers, and HITs represent study survey completion opportunities. In the present study, a total of 1704 HITs were released to participants for completion. The total number of HITs was divided across smaller batches that were released around the clock at varying 3- and 6-h intervals in order to enroll respondents of different chronotypes in each of the four time zones of the continental USA. A total of 1652 HITs were completed (97% completion). Our analytical sample comprised 1576 participants after removal of duplicate participants using unique Amazon IDs, participants with < 75% survey completion, and participants with missing data. Age, sex, and race data for the sample approximated 2020 census data from the American Community Survey [11] (Table 1).

Data collection procedure

After participants accepted a HIT on MTurk, they were directed to the study survey via URL (Qualtrics, Provo, UT, USA). Participants provided informed consent before viewing instructions for satisfactory completion of the survey. Participants were then tested on their comprehension of the goals, timeline, and expectations of the survey prior to proceeding to the survey itself (e.g., “This survey is concerned with my sleep over the… (last night, last week, last month”; answer: last month)). The survey comprised individual questionnaires presented in random order.

Several data quality checks were integrated into the survey. In order to identify potential computer bots (i.e., fake participants), participants were asked to free-hand draw the word “mouse” on their keypad and successfully pass a CAPTCHA V2 bot check. In addition, a free response sentence-style question at the end of the survey was used. A response resembling a coherent sentence was required to pass this bot check. Attention to the survey was also assessed via embedded questions in a matrix-style question (prompt stated: “Select option ‘3’ for this question”). Satisfactory completion of comprehension questions, bot checks, and attention checks was requisite for inclusion in statistical analyses.

Study surveys

Sleep health

Sleep health is a descriptive multidimensional paradigm comprising six sleep dimensions including regularity, satisfaction, alertness, timing, efficiency, and duration [12]. These six sleep health dimensions load onto a single latent sleep health construct [13] and relate to various health outcomes such as body mass index [14], self-reported health [15], cardiometabolic morbidity [16], and depression [17]. Questions were formatted on a 3-point Likert scale: never/seldom (0), sometimes (1), and always/almost always (2). The scale has a scoring range of 0–12, with higher scores indicating better sleep health.

Hospital Anxiety and Depression Scale

The 14-item Hospital Anxiety and Depression Scale (HADS) was used to assess depression symptoms using the depression subscale (HADS-D) [18]. This subscale consists of seven Likert-style questions ranging from 0 to 3. Higher scores indicate a higher prevalence of depression symptoms. Scores ≥ 8 on the HADS-D indicate clinically significant depression symptoms; 776 participants in the current sample (49%) met this threshold. The HADS has been validated across a range of clinical and epidemiological samples. Cronbach’s α = 0.77 in the present study.

Physical activity

Physical activity was assessed using a single-item measure designed to capture habitual physical activity patterns [19, 20]. The scale consists of 5 categories, of which participants endorsed 1 of 5 potential physical activity levels ranging from “little activity other than walking for pleasure” (level 1) to “aerobic exercise such as running/walking for greater than 3 h per week” (level 5). Levels 4 and 5 approach or meet US Department of Health and Human Services physical activity guidelines [21].

Covariates

Covariates were chosen based on previously demonstrated associations with depression. The following covariates were included in the analyses: sex, age, subjective social status, race, neuroticism, smoking status, chronotype, and self-reported cardiometabolic diagnoses or medication use. Participants self-reported sex (male, female), race (White, Black, other), current smoking status (yes, no), and age (years). Subjective social status was self-reported using the social status ladder [22]. Neuroticism was recorded using the neuroticism subscale of the 44-item Big Five Personality Inventory [23]. Chronotype was measured using the MEQ [24] and continuous scores were used in analyses. Participants self-reported if they had ever received a cardiometabolic diagnosis (e.g., stroke, hypertension, coronary artery disease, obesity, and type 2 diabetes) from a physician or if they were prescribed medications from a physician to treat any of these conditions. Individuals endorsing a diagnosis and/or prescription were considered positive for cardiometabolic disease and coded accordingly in a dichotomous cardiometabolic disease variable.

Statistical analysis

Descriptive analyses were conducted on all covariates. Pearson’s bivariate correlations were conducted to assess the associations between physical activity, sleep health, and depression symptoms, all treated as continuous variables. Two subsequent models of interest were tested, both with depression symptoms as an outcome. Model 1 tested physical activity as a predictor of depression symptoms and sleep health as a mediator while model 2 tested sleep health as a predictor of depression symptoms and physical activity as a mediator. To test these two models of interest, ordinary least squares (OLS) regression was used. All assumptions of OLS were tested and satisfied. Analyses of statistical mediation were conducted using the PROCESS macro [25] in SPSS (IBM, V25, Armonk, NY, USA) controlling for all covariates. Confidence intervals for model effects were constructed using percentile bootstrapping (5,000 bootstrapped samples). According to simulations, a sample of 558 participants is needed to have acceptable power (0.80) for detecting small mediation effects (β for pathways a and b equal to 0.14). Given the current sample size (N = 1576), this study was sufficiently powered to detect small effects [26]. Both standardized and partially standardized coefficients were used to quantify total, direct, and indirect effects [25].

Several sets of additional analyses were conducted. First, in both models of interest, sleep health was replaced with the scores of each individual sleep health dimension to determine if individual sleep health dimensions acted as mediators of the relationship between physical activity and depression symptoms or as predictors of depression symptoms. These analyses were carried out in the whole sample. Second, the two models of interest were separately tested in subgroups of individuals displaying clinical or subclinical levels of depression symptoms. Such analyses were conducted to assess whether results obtained from the whole sample generalized to each subsample. Finally, given the cross-sectional nature of our data, a set of exploratory (i.e., no a priori hypotheses) mediation analyses were conducted testing the other four possible permutations of the three study variables.

Results

Study variables

Participant characteristics are included in Table 1. The most commonly endorsed physical activity category was level 2, which indicated some regular participation in modest physical activity involving sports and recreational activities. The mean sleep health score was 7.9 (range: 0–12). Depression scores ranged from 0 to 9 with a mean score of 6.6. Depression, physical activity, and sleep health scores all significantly correlated with each other with small-moderate r-values (all p ≤ 0.001; Table 2).

Table 2 Pearson correlational analyses of mediation model variables

Main analysis: physical activity, sleep health, and depression symptoms

In adjusted analyses of model 1 (Fig. 1), higher levels of self-reported physical activity significantly predicted fewer depression symptoms (total effect: β =  − 0.114, t =  − 5.56, p < 0.0001) and greater sleep health (path a: β = 0.081, t = 3.27, p = 0.0001). Greater sleep health predicted fewer depression symptoms (pathway b: β =  − 0.273, t =  − 13.87, p < 0.0001). Sleep health significantly mediated the relationship between physical activity and depression symptoms (indirect effect: β =  − 0.022, 95% CI [− 0.036 to − 0.008], p < 0.05) and reduced the total effect of physical activity on depression symptoms, β =  − 0.092, t =  − 4.73, p < 0.0001 (direct effect). Inspection of partially standardized effect sizes revealed that every increasing level of physical activity score was associated with a 0.36-point lower score in depression symptoms, of which 0.29 points were due to the direct effect of physical activity and 0.07 points (19%) due to the mediating effect of sleep.

Fig. 1
figure 1

Adjusted mediation models predicting depression symptoms in full sample (N = 1576) with A physical activity as a predictor and sleep health as a mediator and B sleep health as a predictor and physical activity as a mediator. Values represent standardized coefficients. *indicates p < .05

In adjusted analyses of model 2 (Fig. 1), greater sleep health significantly predicted fewer depression symptoms (total effect: β =  − 0.281, t =  − 14.21, p < 0.0001) and higher levels of self-reported physical activity (path a: β = 0.084, t = 3.27, p = 0.0001). Physical activity significantly predicted fewer depression symptoms (pathway b: β =  − 0.092, t =  − 4.73, p < 0.0001). Physical activity significantly mediated the relationship between sleep health and depression symptoms (indirect effect: β =  − 0.008, 95% CI [− 0.014 to − 0.003], p < 0.05) and reduced the total effect of sleep health on depression symptoms, β =  − 0.273, t =  − 13.87, p < 0.0001 (direct effect). Every single point increase in sleep health (e.g., going from rarely/never to sometimes or sometimes to usually/always on one sleep health dimension) was associated with a 0.47-point lower score in depression symptoms, of which 0.46 points were due to the direct effect of sleep health and 0.01 points (3%) due to the mediating effect of physical activity.

Sensitivity analyses: individual sleep health dimensions

For model 1, analyses of individual sleep health dimensions revealed that sleep regularity, satisfaction, timing, and duration each significantly mediated the relationship between physical activity and depression symptoms. These dimensions mediated between 6 and 10% of the total effect of physical activity on depression symptoms. Daytime alertness and sleep efficiency did not statistically mediate the relationship between physical activity and depression symptoms (Table 3). For model 2, each individual sleep health dimension was significantly associated with depression scores (range βtotal effect =  − 0.203 to − 0.050). Physical activity significantly mediated the relationships between depression symptoms and sleep regularity, satisfaction, timing, and duration. In cases where there was significant mediation, physical activity mediated 3 to 4% of the total effect of sleep health on depression scores.

Table 3 Sensitivity analyses of individual sleep health dimensions

Sensitivity analyses: participant subgroups

In a subsample of individuals indicating a least mild depression symptoms (n = 776), adjusted analyses for model 1 revealed that higher levels of self-reported physical activity significantly predicted fewer depression symptoms (total effect: β =  − 0.077, t =  − 2.21, p = 0.028). However, the associations of sleep health with physical activity and depression were non-significant. Sleep health did not significantly mediate the relationship between physical activity and depression symptoms (Fig. 2A, model 1). Testing of model 2 with covariates showed that sleep health did not predict depression symptoms (total effect: β =  − 0.025, t =  − 0.69, p = 0.49) and that there was no statistically significant mediation by physical activity (Fig. 2A, model 2).

Fig. 2
figure 2

Adjusted mediation models predicting depression symptoms in A a participant subsample with at least mild depression symptoms (n = 776) and in B a participant subsample with low/no symptoms of depression (n = 800). Values represent standardized coefficients. *indicates p < .05

Among individuals with few or no depression symptoms (n = 800), assessment of model 1 with covariates showed that higher levels of physical activity significantly predicted fewer depression symptoms (total effect: β =  − 0.106, t =  − 3.53, p = 0.0004) and better sleep health (path a: β = 0.083, t = 2.36, p = 0.018). Better sleep health predicted fewer depression symptoms (pathway b: β =  − 0.087, t =  − 8.07, p < 0.0001) and significantly mediated the relationship between physical activity and depression symptoms (indirect effect: β =  − 0.020, 95% CI [− 0.037 to − 0.004], p < 0.05). For each increasing level of physical activity, depression symptoms were lower by 0.31 points, of which 0.25 points (81%) were attributed to the direct effect of physical activity and 0.06 points (19%) were due to the mediating effect of sleep health (Fig. 2B, model 1). In adjusted model 2, better sleep health predicted fewer depression symptoms (total effect: β =  − 0.245, t =  − 8.31, p < 0.0001) and higher levels of physical activity (path a: β = 0.085, t = 2.36, p = 0.018). Higher levels of physical activity significantly predicted fewer depression symptoms (pathway b: β =  − 0.238, t =  − 2.98, p = 0.003) and significantly mediated the relationship between sleep health and depression symptoms (indirect effect: β =  − 0.007, 95% CI [− 0.017 to − 0.001], p < 0.05). Each point scored higher on sleep health coincided with a 0.43 point lower score on depression symptoms. The direct effect of sleep health accounted for 0.42 points (97%), while the mediating effect of physical activity accounted for almost 0.01 points (3%) (Fig. 2B, model 2).

Exploratory analyses: alternative mediation models

Figure 3 outlines the results of four exploratory mediation models that were tested, controlling for covariates. As a predictor, depression was significantly associated with poor sleep health and low physical activity. In each case (Fig. 3B, D), neither sleep health nor physical activity was found to be a significant mediator. Depression was found to be a significant mediator in both models accounting for approximately 50% of the total effect of sleep health on physical activity and vice versa (Fig. 3A, C).

Fig. 3
figure 3

Adjusted exploratory mediation models in full sample (N = 1576). Values represent standardized coefficients. *indicates p < .05

Discussion

The current study examined the roles of sleep health and physical activity as statistical mediators and predictors of depression symptoms in a cross-sectional US population-based sample. Sleep health was a significant predictor of depression symptoms and significantly mediated 19% of the association between physical activity scores and depression symptoms, even after controlling for sociodemographic, behavioral, and health-related covariates. By comparison, physical activity also significantly predicted depression symptoms, but only mediated about 3% of the relationship between sleep health and depression symptoms after controlling for covariates. Together, these findings demonstrate that physical activity and sleep health both are individually associated with depression symptoms, and may mediate the other’s effect, to some extent.

The current results accord with reports demonstrating that sleep health predicts depression symptoms in both cross-sectional and longitudinal analyses [17]. Sleep health significantly predicted the depression score and the current results showed that a two-point difference in a single dimension of sleep health (e.g., from rarely/never to usually/always) was associated with almost a full-point difference in depression scores. In a recent longitudinal analysis from the Cardiovascular Risk in Young Finns Study, higher self-reported physical activity was significantly and prospectively associated with fewer sleep problems and depression symptoms. In unadjusted analyses, fewer sleep problems significantly mediated the relationship between physical activity and depressive symptoms [9]; the mediation effect, however, did not withstand adjustment for baseline depression symptoms. Our cross-sectional results broadly map onto these findings as sleep health significantly mediated approximately 20% of the effect of physical activity on depression symptoms in the whole sample. However, in a subsample of participants with at least clinically mild depression symptoms, sleep health failed to mediate the relationship. Together, these findings suggest that while sleep may be a mediator of the relationship between physical activity and depression symptoms, a history of depression or at least a mild level of prevailing symptoms significantly mitigate the effect of sleep as a mediating mechanism. It is important to note that physical activity continued to significantly predict depression symptoms in this subgroup, suggesting that other mechanisms may be operational in those with at least mild depression symptoms including psychological, behavioral, and neurobiological pathways [2, 4].

These findings also align with other studies that have examined the relationship between physical activity and depression [2, 4]. Physical activity acted both as a predictor of depression (associated with a 0.36-point lower depression score) and a partial mediator (approximately 3%) of sleep health’s effect on depression. To contextualize the magnitude of this effect, consider the case of two individuals who differ on physical activity by 4 categories (e.g., one is physically inactive and the other meets current physical activity guidelines). According to these results, these individuals would differ by 1.44 points in their HADS-D scores, with the individual who reports greater physical activity having a lower depression score. For context, the minimal clinically important difference for depression measured using the HADS in patients with cardiovascular disease and chronic obstructive pulmonary disorder ranges from 1.4 to 1.7 [27]. As a mediator, physical activity seemed to play only a small, albeit statistically significant, role in the relationship between sleep health and depression scores. It may be that the effects of sleep health on depression scores are mediated, in large part, by other mechanisms (e.g., impaired emotional regulation or abnormal dopaminergic/serotonergic signaling) [3].

These findings also add to the growing body of literature supporting the use of the sleep health construct and, more generally, the consideration of sleep as a multidimensional process. As a predictor and mediator, sleep health produced larger effects than any one of the six individual dimensions. This finding may not be surprising, given the overlap in sleep dimensions impacted by physical activity and depression. For example, low levels of physical activity and high levels of depressive symptoms have both been shown to relate to poor sleep duration, efficiency, latency, and slow-wave sleep [1, 4]. In addition, high levels of physical activity [28] and depression symptoms [17] have been individually associated with better and worse composite sleep health, respectively.

These results need to be interpreted within the context of study strengths and weaknesses. Strengths of the study include the use of a novel online crowd-sourcing service to capture a diverse and geographically representative sample of participants in the USA [29], as well as the extensive use of data quality measures. On the other hand, cross-sectional design precludes conclusions regarding causality. However, analyses from a similarly designed, yet longitudinal, study [9] reported results that align with the present study. In addition, the exclusive use of self-report measures leaves open the question as to whether these results will generalize to other measures of physical activity and sleep. Given that self-reported physical activity has been shown to moderately correlate with objective measures of physical activity [30] and self-reported sleep health performs similarly to actigraphy-based sleep health [16], it is reasonable to think that these results may generalize to other methods of physical activity and sleep assessment.

In conclusion, higher levels of physical activity and greater sleep health were associated with lower levels of depression symptoms. Both individually predicted depression symptoms, and each acted as a statistically significant mediator of the other’s overall effect. This study highlights the close association of sleep health and physical activity.