Introduction

Sedentary time is a significant public health concern, and there has been an observed increase in the prevalence of total sitting time among both adolescents and adults in the US population from 2001 to 2016 [1]. Previous research indicated that prolonged sedentary behavior is associated with a higher risk of all-cause mortality [2, 3], obesity [4], cardiovascular disease [5], cancer [6], diabetes [7], and stroke [8]. Numerous previous studies have shown that severe sedentary behavior is associated with an increased risk of sleep disturbances, and longer sedentary time is strongly linked with sleep disturbances. Additionally, vigorous physical activity (PA) has been shown to be associated with a lower risk of sleep disturbances [9,10,11,12].

Sleep disturbances have been identified as a public health epidemic by the Center for Disease Control. There is currently a high incidence of sleep disturbances worldwide. More than one third of respondents in the U.S. [13], 40% Canadian adults [14] and 50% working adults in Malaysia [15] reported sleep disturbances based on r self-report. The past decade has seen sleep health become a focal point in epidemiological and health research, with studies showing that sleep disturbances can impact immune functions and increase multisystem biological risk through the elevation of proinflammatory markers, systemic inflammation, and immune dysfunctions [16, 17]. Sleep disturbances is associated with an increased risk of dementia [18] and cognitive decline in later life [19], as well as impacting glycemic control in adults with T2DM [20].

Sleep plays a critical role in promoting overall health. The most commonly used interventions for sleep disorders are stress management and relaxation exercises, stimulus control, sleep hygiene, and PA. The results of reviews indicate that acute and regular PA have positive effects on numerous sleep outcomes [21, 22]. Qi Feng et al. suggested that high levels of PA and low screen time were independently associated with significantly lower risk for poor sleep quality and depression among Chinese college freshmen [23]. Seth A Creasy et al. also suggested that longer sedentary time is associated with shorter sleep duration and poorer sleep quality. Moreover, higher levels of PA have been suggested as beneficial for sleep quality in postmenopausal women [24].

To the best of our knowledge, there is limited research, particularly in large-scale national studies, that has investigated the relationship between sleep disturbances and sedentary behavior. Most previous studies have relied on self-reported sleep disorders, whereas this study represents the first attempt to investigate the correlation among individuals diagnosed with sleep disorders by medical professionals, thus providing research evidence that is more reflective of real-world conditions. This cross-sectional study aimed to (I) explore the association between sedentary behavior and sleep disturbances based on data from the National Health and Nutrition Examination Survey; (II) adjust for various potential confounders, using multiple models to compare trends in the relationship between sedentary time and sleep disturbances; and (III) investigate whether recreational activities levels affected the associations between sedentary behavior and sleep disturbances.

Methods

Study population

The original data for this cross-sectional study was 49,880 participants from 5 discrete 2-year cycles of the continuous National Health and Nutrition Examination Survey (NHANES) (2005/2006, 2007/2008, 2009/2010, 2011/2012, 2013/2014) in America. According to the exclusion criteria, the study excluded 17,836 subjects who did not have self-reported information about sleep disorders, 121 participants with no information on sedentary behavior and sedentary time, and 1,906 subjects younger than 18 years old. Moreover, we excluded 8,603 participants who lacked covariates data, including those with no education data (n = 1,850), marital data (n = 14), family poverty index ratio (PIR) data (n = 2,327), smoking data (n = 13), body mass index (BMI) data (n = 1,182), waist circumference data (n = 1,065), diabetes mellitus (DM) data (n = 524), drink data (n = 1,627), cardiovascular disease (CVD) data (n = 1). The remaining 21,414 subjects with available data were included in the statistical analysis. A total of 1,816 subjects were added to sleep disorder group, with questionnaire results indicating that they had been diagnosed with sleep disturbances by doctors. Figure 1 illustrates the flowchart of participant selection.

Fig. 1
figure 1

Flowchart of the study design and participants excluded from the study. PIR, poverty index ratio; BMI, Body Mass Index; DM, diabetes mellitus; CVD, cardiovascular disease

Measures

Outcomes: sleep disturbances

The outcome, sleep disturbances, was assessed by the NHANES questionnaire sq060 “{Have you/has sp} ever been told by a doctor or other health professional that {you have/s/he has} a sleep disorder?”. The response categories of this question were “Yes,” “No,” “Refused,” and “Do not know.” For participants who responsed with “Do not know” or “Refused,” their data was considered as missing values.

Exposure: recreational activities and sedentary behavior

The data on recreational activities and sedentary behavior were self-reported in the NHANES by the Physical Activity Questionnaire [10].

In the 2005–2006 survey cycle, the question of the Physical Activity Questionnaire was “Have you done any vigorous activity over past 30 days?” and “Have you done any moderate activity over past 30 days?“. In the 2007–2014 survey cycle, the corresponding question has been changed to “In a typical week, do you do any vigorous-intensity sports, fitness, or recreational activities that cause large increases in breathing or heart rate like running or basketball for at least 10 min continuously?” and “In a typical week, do you do any moderate-intensity sports, fitness, or recreational activities that cause a small increase in breathing or heart rate such as brisk walking, bicycling, swimming, or volleyball for at least 10 min continuously?“ [10].

The sedentary behavior was defined as the time spent sitting on a typical day, including sitting at a desk, traveling in a car or bus, or train, reading, playing cards, watching TV or videos, or using a computer, but it did not include the time spent sleeping [10]. In the 2005–2006 survey cycle, the question was “Over the past 30 days, on average about how many hours per day did you sit and watch television or videos” and “Over the past 30 days, on average about how many hours per day did you use a computer or play computer games” with options of None/less than 1 h/1 hour/2 hours/3 hours/4 hours/5 hours or more/Refused/Don’t know. The sedentary time data was a total duration of both aspects. In the 2007–2014 survey cycles, the sedentary time data referred to sitting or reclining at work, at home, or at school. The corresponding question was “How much time (do you/does SP) usually spend sitting or reclining on a typical day?” with options of minutes/Refused/Don’t know [1].

Covariates

In this study, sociodemographic and lifestyle factors (gender, age, marital ststus, education level, race, PIR, waist circumference, recreational type, smoking status, drinking status, diabetes status, CVD status, sleep duration, BMI) were collected as potential confounding factors (Supplementary Table S2 “Sleep disturbance-related pathways overview illustrated in the directed acyclic graph (DAG)”).

According to the World Health Organization recommendations, waist circumference is classified as follows: <= 94 cm for male and < = 80 cm for female into normal group, and waist circumferences above these thresholds into high group. Education status was classified into three groups: 9-11th grade or less group (includes 12th grade with no diploma), high school graduated/equal group, and college graduate/above/equal group. Marital status was categorized into three groups: those living with a partner or married, those who were divorced, separated, or widowed, and those who had never been married. Race was classified into four groups, including the white group, black group, Mexican American group and the other racial groups. Non-Hispanic white was classified into white group, non-Hispanic black was classified into black group, Mexican American was classified into Mexican American group. PIR classification was low (PIR < 1.0), middle (1.0 ≤ PIR ≤ 3.0) and high (PIR > 3.0). BMI was classified as follows: normal (BMI < 25 kg/m²), overweight (25 kg/m² ≤ BMI < 30 kg/m²), and obese (BMI ≥ 30 kg/m²). Smoking status and alcohol use status were categorized based on responses to questionnaires about cigarette and alcohol consumption, respectively. ‘Never smokers’ were defined as individuals who have never smoked. ‘Former smokers’ were those who had smoked at least 100 cigarettes in their lifetime but do not smoke now. ‘Current smokers’ were defined as subjects who have smoked at least 100 cigarettes in their lifetime and continue to smoke. ‘Never drinkers’ referred to participants who had never consumed alcohol in their lifetime. ‘Former drinkers’ were those who had consumed alcohol regularly in the past but do not drink now. ‘Current drinkers’ were participants who are consuming alcohol weekly at present.

Statistical analysis

All data were based on population-weighted analysis, and the details of weights were explained in NHANES’ introduction. In view of the complex multistage (strata and cluster) sampling design of the NHANES, the R 4.3.3 version (survey Version 4.4-1, rms Version 6.8-0) were used to conduct the weighted analysis. Sample weights were reweighted to merge 10 years of total survey data from the NHANES 2005 to 2014. The merged weights were represented as WT05-14 = (1/5) × WTINT2YR05–06 + (1/5) × WTINT2YR07–08 + (1/5) × WTINT2YR09–10+(1/5) × WTINT2YR11–12+ (1/5) × WTINT2YR13–14.

All numerical variables were shown as mean ± standard error. Baseline characteristics between the sleep disturbances group and the non-sleep disturbances group were compared using the Wilcoxon rank-sum test for continuous variables in complex survey samples, and the chi-squared test with Rao & Scott’s second-order correction for categorical variables. A P-value < 0.05 was considered statistically significant for all analyses.

Stratified analyses were performed based on age, sex, marital status, education level, race, PIR, BMI, waist circumference, type of recreation, smoking status, type of drinking, history of diabetes, history of heart disease, and sleep duration. The covariates, including recreation type, PIR category, smoking status, drinking status, and sleep duration type, were evaluated for interactions. For the complex sample data, the significance of the interactions was assessed using the svyglm function of R, with a threshold for significance set at P < 0.1.

All participants were categorized into quartiles based on their sedentary time, with the following cut points: Q1, 0 < = Q1 < 3 h; Q2, 3 < = Q2 < 5 h; Q3, 5 < = Q3 < 8 h; Q4, 8 < = Q4 < 20 h. The sedentary time was entered into the models as continuous variables and categorical variables (with the lowest sedentary time quartile as a reference group). The weighted multivariate logistic regression analysis was performed to examine the association between sedentary behavior and sleep disturbances, with 95% confidence intervals (CI) and odds ratio (OR) calculated. The P values for trend were obtained through the use of the quartile level as an ordinal variable. Five multivariate models were constructed to explore the association between sedentary behavior and sleep disturbances, including crude model (unadjusted), adjusted model 1 (adjusted for gender, age type and BMI type), adjusted model 2 (only adjusted for recreational type), adjusted model 3 (adjusted for recreational type, PIR type, smoke status, drink status, sleep duration type, all P for interaction < 0.1), adjusted model 4 (adjusted for gender, age, marital type, education type, race, PIR, waist circumference, recreational type, smoke status, drink status, diabetes status, CVD status, sleep duration type, BMI).

A Restricted Cubic Spline (RCS) model was employed to investigate the non-linear relationship between the sedentary time and sleep disturbances. The adjustment models included potential confounding variables such as gender, age group, marital type, education type, race, PRI, waist circumference, smoke status, drink status, DM status, CVD status, sleep duration type, BMI group. The significance of non-linear effects was assessed using a threshold of P for non-linearity < 0.05.

Results

A tatal of 21,414 participants were eligible for our final analysis (Fig. 1). The baseline characteristics and demographic information of participants (weighted data) were shown in Table 1. The weighted prevalence of sleep disturbances symptoms was 8.60%. The weighted prevalence of sleep disturbances group was higher among men, constituting 53.45% of all participants with sleep disturbances. The average sleep duration for all participants was 6.88 ± 0.01 h. In contrast, participants in the sleep disturbances group had an average sleep duration of 6.48 ± 0.05 h, which was significantly shorter than that of participants without sleep disturbances (P < 0.0001). The mean of sedentary time of participants in the sleep disturbances group was 6.3 ± 0.11 h, which was significantly higher than that of participants without sleep disturbances with 5.6 ± 0.06 h (P < 0.0001). Additionally, the weighted prevalence of sleep disturbances significantly varied across different categories, including age, sex, race, BMI, marital status, waist circumference, recreational activities, smoking status, diabetes status, CVD status, and alcohol consumption status (P < 0.05) (Table 1). The baseline characteristics and demographic information of participants (unweighted data) were shown in Table S1.

Table 1 Baseline characteristics and Demographic Information of Participants (Weighted Data)

The stratified analysis results were shown in Table 2. The P-value for trend was less than 0.05 in most subgroups, except for the never married group, other races, BMI category of 25.0 to 29.9 kg/m², normal waist circumference, never drinkers, the CVD group, those engaging in vigorous recreational activities, and the long sleep duration group (> 9 h). Five covariates showing statistical significance were identified and assessed for interactions through variable interaction testing, including recreation type, PIR category, smoking status, drinking status, and sleep duration type (with P values for interaction less than 0.1) (Table 2).

Table 2 Stratified analysis based on potential covariates

Five multivariate logistic regression models were constructed to explore the associations between sedentary behavior and sleep disturbances (Table 3). Participants were stratified by sedentary time into four quartiles: Q1 (< 3 h), Q2 (3 < = Q2 < 5 h), Q3 (5 < = Q3 < 8 h), and Q4 (8 < = Q4 < 20 h). The Q1 group, which serves as the reference for statistical analysis, accounted for 33.63% of all participants. The remaining quartiles included Q2 (24.13%), Q3 (25.70%), and Q4 (16.54%). In the unadjusted (crude) model, a significant increasing trend of odds ratios (ORs) for sleep disturbances with higher sedentary time was observed (Q1 as reference: Q2: OR, 1.31; 95% CI, 1.09–1.58; P = 0.005; Q3: OR, 1.62; 95% CI, 1.39–1.88; P < 0.001; Q4: OR, 1.75; 95% CI, 1.48–2.06; P < 0.001; P for trend < 0.001) (Table 3).

Table 3 The association between sedentary behavior and sleep disturbances

The results of the adjusted models were consistent with the crude model (Table 3). Adjusted model 1, which accounted for gender, age, and BMI, demonstrated a positive association between sedentary time and sleep disturbances (Q1 as reference: Q2: OR, 1.23; 95% CI, 1.02–1.49; P = 0.033; Q3: OR, 1.48; 95% CI, 1.25–1.74; P < 0.001; Q4: OR, 1.58; 95% CI, 1.32–1.89; P < 0.001; P for trend < 0.001). Adjusted model 2, with adjustments limited to recreational type, also demonstrated a positive relationship between sedentary time and the odds of sleep disturbances. The odds increased with sedentary time (Q1 as reference: Q2: OR, 1.28; 95% CI, 1.06–1.56; P = 0.011; Q3: OR, 1.56; 95% CI, 1.34–1.82; P < 0.001; Q4: OR, 1.72; 95% CI, 1.46–2.02; P < 0.001). The overall trend was significant (P for trend < 0.001). Adjusted model 3 included additional variables such as PIR type, smoking status, drinking status, and sleep duration type. The ORs using Q1 as the reference category were as follows: Q2 showed an OR of 1.27 [95% CI 1.05–1.54], P = 0.015; Q3 showed an OR of 1.56 [95% CI 1.33–1.82], P < 0.001; and Q4 showed an OR of 1.74 [95% CI 1.47–2.05], P < 0.001. The OR for sleep disturbances increased with increasing sedentary time, indicating a significant trend (P for trend < 0.001). Adjusted model 4 incorporated a broader range of variables, including gender, age, marital type, education type, race, PIR, waist circumference, recreational type, smoking status, drinking status, DM status, CVD status, sleep duration type, and BMI. In this model, the OR for the Q2 subgroup did not significantly differ from the reference group Q1 (Q2: OR, 1.18; 95% CI, 0.96–1.44; P = 0.1). However, for the Q3 and Q4 subgroups, the ORs indicated an increased risk of sleep disturbances with longer sedentary time (Q3: OR, 1.35; 95% CI, 1.14–1.59; P < 0.001; Q4: OR, 1.45; 95% CI, 1.21–1.75; P < 0.001), showing a significant trend (P for trend < 0.001).

The unadjusted RCS model revealed a non-linear increase in the risk of sleep disturbances with increasing sedentary time among all participants (P for non-linearity < 0.001). For sedentary time > 3 h, the OR was 1.05; 95% CI, 1.03–1.08; P-value < 0.001 (Fig. 2A). Subsequently, we conducted stratified analyses to further investigate the associations between sleep disturbances and sedentary time across different levels of recreational activity. In the subgroup of the population reporting no recreational activities, there was a non-linear increase in the risk of sleep disturbances with increasing sedentary time (P for non-linearity < 0.001). For sedentary time > 3 h, the OR was 1.07, with a 95% CI of 1.04 to 1.10, and the P-value < 0.001 (Fig. 2B). However, no significant non-linear relationship was observed between sleep disturbances and sedentary time in the population with moderate recreational activities; although the OR slightly increased with increasing sedentary time, it was not statistically significant (P for non-linearity = 0.612) (Fig. 2C). Similarly, there was no non-linear relationship between sleep disturbances and sedentary time for individuals engaged in vigorous recreational activities (P for non-linearity = 0.094) (Fig. 2D).

Fig. 2
figure 2

Association between sedentary behavior and sleep disturbances among overall participants and stratified for recreational type. A, Overall participants; B, Participants with no recreational activities; C, Participants with moderate recreational activities; D, Participants with vigorous recreational activities. Estimates no covariates were adjusted

The adjusted RCS model, after adjusting for gender, age group, marital type, education type, race, PRI, waist circumference, smoking status, drinking status, DM status, CVD status, sleep duration type, BMI type, revealed that the risk of sleep disturbances increased non-linearly with increasing sedentary time among all participants (P for non-linearity = 0.012). For sedentary time > 3 h, OR was 1.04, 95% CI, 1.02–1.06, P < 0.001 (Fig. 3A). Similarly, among the population with no recreational activities, the adjusted RCS model also showed a non-linear increase in the risk of sleep disturbances with increasing sedentary time (P for non-linearity = 0.005) (Fig. 3B). The non-linearity relationship was not found for participants with moderate recreational activities (P for non-linearity = 0.565) (Fig. 3C). Interestingly, in the population with vigorous recreational activities, when sedentary time was from 5 to 8 h, the risk no longer increased with additional sedentary time (P for non-linearity = 0.162) (Fig. 3D).

Fig. 3
figure 3

Association between sedentary behavior and sleep disturbances among overall participants and stratified for recreational type. A, Overall participants; B, Participants with no recreational activities; C, Participants with moderate recreational activities; D, Participants with vigorous recreational activities. Estimates adjusted for gender, age group, marital type, education type, race, PRI, waist circumference, smoke status, drink status, DM status, CVD status, sleep duration type, BMI group

Discussion

This study was the first to explore the relationship between sedentary behavior and sleep disturbances among participants nationwide who had been diagnosed with sleep disorders by their doctors. The main finding was that sedentary time was a risk factor for sleep disturbances, with the risk increasing as sedentary time increased among all participants. The multivariable logistics regression results showed that the OR for sleep disturbances increased with increasing sedentary time, P for trend < 0.001. Both the unadjusted and adjusted RCS models revealed a non-linear increase in the risk of sleep disturbances with increasing sedentary time for all participants. In the population with sedentary time more than 5 h per day, the moderate to vigorous recreational activities may weaken the positive correlation between sleep disturbances and sedentary time.

Currently,, a large body of research has shown that sedentary behavior is one of the more serious risk factors for health. In several observational studies, television watching and use of computer were often used as proxy for total leisure sedentary behavior [25, 26]. In present study, the sedentary behavior data from NHANES was assessed by the question “How much time do you usually spend sitting on a typical day?”, which included the time of sitting at a desk, traveling in a car or bus, reading, playing cards, watching TV or videos, or using a computer, not included time spent sleeping [10]. The estimated prevalence of sedentary time increased among all age groups, which included 10,359 children, 9,639 adolescents, and 31,898 adults from NHANES data 2001–2016, in US population [1]. The literatures also reported that adult population spend an increased amount of sedentary time in Australia and parts of Europe [27,28,29].

The positive association between sedentary behavior and sleep disturbances was demonstrated in our study, the OR for sleep disturbances increased with increasing sedentary time, which was consistent with previous findings [10, 11, 30,31,32]. Yanwei You, et al. also suggested that sedentary behavior was a risk factor for sleep disturbances, although based on the participants whose sleep disorders were assessed by the NHANES questionnaire “Have you ever told a doctor or other health professional that you have trouble sleeping?” [10]. Compared to their population, the sleep disturbancess of our subjects were assessed by doctors or other professional, which will be helpful to explore the authenticity and objectivity of the relationship between sedentary behavior and sleep disorders. Another similar study reported that sedentary behavior ≥ 9 hours a day significantly increased the risk of poor sleep quality for subjects [33].

However, the potential mechanisms for explaining the relationship between sedentary behavior and sleep disturbances were not well understood. Several mechanisms have been proposed to explain this correlation [34, 35]. Low sunlight exposure may mediate the association between sedentary behavior and sleep disorders. Sunlight exposure is one of the most important external synchronizer for regulating the sleep-wake cycle [36]. And the daytime sunlight source has a significant impact on the circadian rhythm, which is crucial for a good night’s sleep [37]. Moreover, sunlight regulates sleep by driving vitamin D synthesis [38]. For example, the Rotating shift workers with vitamin D deficiency are more likely to have obstructive sleep apnea [39]. Luiz Antonio Alves de Menezes-Junior and colleague reported that vitamin D deficiency was associated with poor sleep quality in sun-insufficient Brazilian adults, and that increasing vitamin D levels could reduce the chance of poor sleep quality. Vitamin D was not associated with poor sleep quality in individuals with sufficient sunlight. The odds of poor sleep quality decrease by 4.2% for each 1 ng/mL increase in vitamin D level [40].

Another aspect, the work environment and occupation type are directly related to sedentary behavior, which is one of the significant social factors that may indirectly affect sleep disturbances. The decline in PA over the years has increased in sedentary occupations and the possibility of working from home [41]. Participants that were working from home during social distancing showed increased odds of screen time and sitting time greater than 8 h/day [42]. Based on national data from Korea, Joo Hye Sung et al. suggested that occupation significantly influences people’s activities, with white-collar workers having the longest sedentary times [43].

In contrast to sedentary behavior, the strong evidence from review of 21 randomized controlled trials demonstrated that PA, as effective strategies to improve sleep, positively affected sleep quality, sleep efficiency, and total sleep time in almost all populations [21]. Consistent with this, Christopher E. Kline et al. also mentioned that both acute bouts of PA and regular PA improved sleep outcomes [22]. Excitingly, we also detected the mitigation role of vigorous recreational activities on sleep disorders, although not for total participants only among the participants with sedentary time > 5 h.

The research evidence confirmed that regular exercise and PA had a variety of health benefits for many chronic diseases, including cardiovascular disease, stroke, diabetes, osteoporosis, and obesity, mental health, reduction in mortality, and beneficial effects on sleep quality [44]. A study has reported that the excess risk associated with prolonged sitting can be eliminated for participants with high levels of PA [45]. In particular, it is greatly needed for us to better understand how PA play the role of improving sleep. This requires larger sample sizes, a wider variety of modes, and patterns of PA and sedentary behavior, and more accurate evaluation of sleep outcomes.

Importantly, for the first time, reducing sedentary behavior as part of a global strategy for chronic disease prevention and control, which come from the Global Physical Activity Action Plan (2018–2030), in 2018 [46]. After a short time, the second edition of Physical Activity Guidelines for Americans published in November 2018, which further providing specific recommendations to reduce sedentary behaviors for reducing risk of disease [47].

There were several limitations to consider in this study. Firstly, sedentary time using other devices such as phones and tablets were not captured. This could potentially impact the overall accuracy of the findings, as these devices are commonly used for work, entertainment, and communication. Secondly, this study only analyzed the independent effects of sedentary behavior on sleep disturbances. In this study, we solely examined the association between sedentary behavior and the risk of sleep disorders, without delving into the underlying mechanism or pathway through which sedentary behavior impacts sleep disorders. This is a proposition that we need to further explore in the future. Thirdly, in this study, we only collected a part of the participants’ demographic and lifestyle variables, and adjusted them in the statistical analysis. In fact, there may be confounding factors that have a significant impact on sleep disorders that we have not paid attention to, such as mental health conditions or medication use, which may lead to biased conclusions in the analysis. Furthermore, this study lacked information of different sleep disorders such as insomnia, sleep apnea, restless leg syndrome, and narcolepsy. Without this specific data, it is difficult to fully understand the impact of sedentary behavior on these individual sleep disorders. Further research that includes detailed information on the types of sleep disorders experienced by participants would provide a more comprehensive understanding of effects of sedentary behavior on various sleep outcomes. Finally, the samples in this study mainly come from a sample survey, and the results was taken as general evidence of the sampled population. They only reflect the relationship between sedentary behavior and sleep disorders in the sampled population. In future, we need to analyze the detail reasons and possible mechanisms of the positive relationship between sleep disorders and sedentary behavior to explore effective preventive intervention strategies.

Conclusion

In this nationally representative survey of the US population from 2005 to 2014, time spent in sedentary behaviors was positively associated with sleep disturbances among all participants. Moreover, we detected the mitigation role of vigorous recreational activities on sleep disturbances, among the participants with sedentary time more than 5 h. To some extent, vigorous recreational activities may mitigate the additional risk of sleep disorders associated with sedentary behaviors.