Introduction

In the era of Internet, getting online has become an indispensable part of modern life. Smartphones, serving as conduits for internet access, have brought many conveniences for both work and leisure [1]. However, Excessive or unregulated use of smartphones may precipitate Internet addiction, also termed as “pathological Internet use.” In some early academic publications, Internet addiction was conceptualized as a form of impulse control disorder [2], whereas subsequent discourse has defined it as a persistent overuse of the Internet by individuals who have lost the capacity for self-regulation of their Internet use, culminating in compulsive Internet usage behaviors [3, 4]. This definition underscores a gradual loss of control, leading to a pervasive pattern of Internet engagement that persists despite awareness of the negative consequences and disruptions to daily life. The excessive and unhealthy use of smartphones has been underlined by the World Health Organization as a growing public health issue [5]. Numerous studies indicate a prevalent rate of smartphone addiction among the student population in higher education institutions [6,7,8,9]. As of 2017, the incidence of internet addiction among university students has escalated to an alarming 30% [10].

Problematic smartphone use often co-occurs with a range of mental health disorders, including but not limited to depression, anxiety, and stress [11, 12]. Among the multitude of concerns related to smartphone use, the use of these devices in bed before sleep has recently garnered scholarly attention. This behavior is a pivotal factor in the onset of sleep delays and disturbances among adolescents [13, 14]. Particularly, the use of smartphones while lying in bed in a dark environment poses substantial risks to visual health and sleep quality, and can lead to complications such as cervical pain, poor sleep quality, and subsequent daytime fatigue [15, 16]. These adverse impacts may further exacerbate negative emotional issues, such as depression [17, 18].

The role of physical exercise in altering behavioral outcomes has gained more attention. Known benefits of physical exercise include mitigating addictive behaviors, such as alcohol abuse, smoking, and food addiction [19,20,21]. Some recent studies indicate that individuals engaged in higher levels of physical activity tend to exhibit lower levels of smartphone usage [22,23,24,25], which brings the idea of using physical activity or exercise to treat smartphone addiction [26, 27]. The negative association between physical activity and smartphone use can be explained by the following aspects. According to the Mood Enhancement Theory, physical activity ostensibly reduces reliance on smartphones by enhancing subjective well-being and self-efficacy [22, 28,29,30]. Furthermore, although some smartphone use can occur while performing physical activity (e.g., watching short videos on a stationary bike), smartphone use is generally associated with sedentary [31, 32]. Therefore, according to the isotemporal substitution model (ISM), physical activity, as the opposite of sedentary, may occupy the time that can be otherwise spent on smartphone usage [33, 34]. Additional investigations have also demonstrated that physical activity, as an intervention strategy, can effectively change adverse psychological health outcomes and ameliorate social dysfunction [20, 35, 36]. Moreover, it is commonly accepted that physical activity contributes to improved sleep quality and other health indices [37, 38].

Although the health benefits of physical exercise have garnered considerable attention, the effect of nighttime exercise is rarely studied. In contrast to the more standardized work time regimes in Western developed countries, Asian nations, including China, often exhibit extended working hours and a prevalent culture of overtime [39, 40]. The cultures, values, societal structures, and Human Resource Management (HRM) practices of Asian countries may uniquely influence individuals’ work and life experiences [39, 41, 42]. For example, the work schedule named “996” (defined as six days of work per week, with daily hours from 9 a.m. to 9 p.m.) has become very common in China [43, 44]. In the realm of education, Asian students face a more substantial academic burden and a higher frequency of extracurricular tutoring compared to their Western counterparts [45]. This situation leads to a scenario where the majority of the population in many Asian countries, including China, tend to engage in leisure and physical activities primarily during the nighttime. This situation underscores the value of studies on nighttime activities, such as nighttime physical activity.

Previous research has indicated disparities between daytime and nighttime exercise in terms of health benefits [46]. Certain scholars have posited that nighttime physical activities might inhibit the secretion of melatonin and cause an elevation in body temperature, both of which can interfere with the sleep mechanism and consequently lead to sleep onset delay [47,48,49]. Specifically, as a critical hormone regulating the sleep-wake cycle, melatonin may be suppressed during intense nocturnal exercise, disrupting its normal rhythm [50, 51]. Concurrently, engaging in strenuous activities can result in sustained higher body temperatures, while the natural initiation of sleep is usually accompanied by a drop in core temperature [52]. The American Sleep Guidelines also caution against excessive physical activities at night [53]. Despite these concerns, there are also studies indicating that nighttime physical activity or exercise may not affect sleep [54,55,56] and might even improve sleep quality [57]. It’s worth noting that, like many developed countries, the Chinese government considers insufficient physical activity as a significant threat to public health. The potential health benefits of nighttime physical activity may vary from its daytime counterpart, but its role in weight control [58] and emotional regulation [59] can be possibly retained. Therefore, this necessary nighttime physical activity may have more bright sides than dark sides.

In addition, nighttime lighting may contribute to an extra positive experience during exercise. Concerns about the harm of artificial light at night, such as that from lighting and electronic devices like smartphones, have garnered significant attention—LED screens on phones, for example, may affect melatonin [60] secretion, disrupt circadian [61] rhythms, and lead to vision [62] impairment. Nevertheless, nighttime artificial light also holds considerable benefits, even more than its [63] harms. Firstly, it provides people with the opportunity for nighttime exercise, and outdoor street lighting may offer a comfortable light environment, allowing participants to enjoy a restorative experience during physical [64] activity. Furthermore, considering the well-documented stress-reduction capabilities of exercise [65], we hypothesize that nighttime physical exercise may mitigate reliance on other stress-reduction measures like smartphone use before sleep, thus reducing other subsequent health issues.

Despite these assumptions, empirical evidence remains relatively absent. Hence, our study aims to explore the associations between nighttime exercise and a range of health outcomes, including smartphone use before sleep, smartphone addiction, sleep quality, and related mental health issues. Specifically, we hypothesize that:

H1: Nighttime exercise behaviors are negatively associated with smartphone use before sleep (while in bed) and its duration.

H2: Nighttime exercise behaviors are negatively associated with sleep delay due to smartphone use.

H3: Nighttime exercise behaviors are positively associated with sleep quality.

H4: Nighttime exercise behaviors are negatively associated with smartphone addiction.

H5: Nighttime exercise behaviors are negatively associated with mental health issues.

Materials and methods

Study design and participants

A cross-sectional survey was conducted in March 2023 in the urban area of Chongqing, targeting university students enrolled in institutions within the city. This study was approved and supervised by the Ethics Review Committee of the College of Physical Education at Southwest University (code: SWU-PE-20230310). Participants were recruited from six universities in Chongqing through instructors within their respective Departments of Physical Education. Data collection was facilitated either via digital platforms or paper-based questionnaires, depending on the context and preferences of the participants. Prior to the commencement of the survey, subjects were briefed on the overarching research theme, although specific research questions were not disclosed. Informed consent forms were signed by participants before initiating the survey.

A total of 1,334 responses were received, consisting of 985 paper-based and 349 digital questionnaires. Following the exclusion of incomplete submissions (n = 13) and those failing manual validation tests to ensure diligent completion (n = 6), 1,315 qualified questionnaires were retained for subsequent analysis.

Instruments and measurements

Time and rationale for engaging in physical exercise

To investigate the timeframe of physical exercise, respondents were queried with the following question: “When do you usually engage in physical exercise?” Response categories included: “I usually exercise during daytime hours,” “I usually exercise after dark,” or “I do not engage in physical exercise.” According to data from “Timeanddate,” a global resource for solar times (https://www.timeanddate.com/), the average sunrise time in Chongqing’s main urban area for March is 7:19 am, and sunset occurs at 6:53 pm. Therefore, we defined the daytime exercise as 7:20 am to 6:50 pm, and the period for nighttime exercise should be after 7:00 pm. Additionally, respondents were required to briefly elucidate their primary rationale for exercising either during the daytime or nighttime, with answers collected via open-ended boxes.

Frequency and duration of physical exercise

Participants were asked, " In the recent month, how many times per week on average do you engage in physical exercise during your preferred time (daytime or nighttime)?” Answers were documented using a 7-point scale (1 = once a week or less; 2 = twice a week; 3 = thrice a week; 4 = four times a week; 5 = five times a week; 6 = six times a week; 7 = almost daily). Questions pertaining to the duration of each exercise session were posed as: “Approximately how long does each exercise session last during your preferred time?” Responses were captured on a 5-point Likert scale ranging from 0 to over 120 min, with 30-minute intervals. Scores for frequency and duration were multiplied to yield the total weekly exercise time.

Smartphone use in bed before sleep

Two questions were designed to probe the prevalence of smartphone use in bed before sleep among college students. The first query was, “Do you usually use a smartphone while lying in bed before sleep?” Responses were coded as 0 = no and 1 = yes. The second question examined the duration of this activity, asking, “How much time do you typically spend using a smartphone while lying in bed before sleep?” Answers were captured via an 11-point Likert scale ranging from 0 to over 90 min, with 10-minute intervals.

Sleep delay due to smartphone use

To investigate the issue of sleep delay due to smartphone use, the question posed was: “Did using a smartphone last night cause you to sleep later than you intended, planned, or desired?” Responses were coded as 0 = no and 1 = yes.

Sleep quality

Drawing upon existing single-item sleep scales, an 11-point numeric rating scale was used to measure overall sleep quality, ranging from 0 (best sleep) to 10 (worst sleep) [66].

Smartphone addiction

The Smartphone Addiction Scale Brief Version in Chinese (SABAS) was employed to assess the risk of smartphone addiction among respondents [67]. Each question was rated using a 6-point Likert scale (1 = strongly disagree; 6 = strongly agree). The total score was computed by summing the individual item scores (ranging from 1 to 6 points), with higher scores indicating greater degrees of addiction. The scale demonstrated high reliability in our sample (Cronbach’s α = 0.80).

Anxiety symptoms

Anxiety levels over the past month were measured using the validated Chinese version of the General Anxiety Disorder 7-item (GAD-7) scale [68]. Responses were captured via a 4-point Likert scale for each question (0 = not at all; 3 = nearly every day). Total scores could be interpreted to diagnose anxiety symptoms. The scale showed high internal consistency in our sample (Cronbach’s α = 0.92).

Depressive symptoms

Depressive status over the last month was assessed using the Chinese version of the Patient Health Questionnaire-9 (PHQ-9) [69]. Responses were captured on a 4-point Likert scale (0 = not at all; 3 = nearly every day). Again, high internal reliability was observed in our sample (α = 0.90).

Sociodemographic characteristics

The gender of the participants was dichotomized into two groups (1 = male; 2 = female). Age categories were divided into six brackets (16–18, 19–21, 22–24, 25–27, 28–30, 31–33). Educational levels were classified into four groups (1 = Associate Degree; 2 = Bachelor’s Degree; 3 = Master’s Degree; 4 = Doctoral Degree). Monthly family income was categorized into three levels (< 5000 RMB, 5000–10,000 RMB, > 10,000 RMB).

Statistical analysis

Internal reliability of the instrument

The internal reliability of the questionnaire was assessed using Cronbach’s alpha coefficient. A Cronbach’s alpha value greater than 0.70 is deemed acceptable for research purposes.

Jieba segmentation

In this study, the Chinese word segmentation is implemented using a commonly adopted segmentation technique - the Jieba segmentation method [70]. The fundamental principle involves constructing a prefix dictionary to segment the input sentences, subsequently generating all potential segmentation possibilities. By establishing a directed acyclic graph and employing dynamic programming algorithms, the method calculates the most probable path, thereby facilitating the segmentation function as a statistical-based approach. This segmentation technique not only enables word segmentation through its inherent algorithm but also allows for the integration of an external dictionary to enhance segmentation accuracy. In addition to segmentation, the jieba method also provides functionalities for keyword extraction and part-of-speech tagging in documents.

Correlation analysis

Various measures, including Spearman’s rank-order correlation for continuous variables, Phi correlation for binary variables, and point-biserial correlation for binary and continuous variables, were employed to discern the general patterns of association among the core variables.

Generalized linear models

Generalized Linear Models (GLMs) were utilized for assessing associations between nighttime exercise and health outcomes. Prior to analysis, the sample was segmented to focus on individuals who exercise during nighttime. The nighttime exercise items (e.g., frequency and duration) were treated as predictors. The sociodemographic characteristics, including gender, age, educational attainment, and family income, were incorporated as covariates to adjust the models. Linear and binary logistic functions were selected for continuous and binary outcomes, respectively. A p-value of < 0.05 was regarded as statistical significance.

Results

Participant characteristics

The characteristics of the participants are summarized in Table 1. The sample included 623 males and 692 females, with individuals aged between 19 and 21 years comprising 49.4% of the total sample. All participants were college students, with undergraduate students making up 76.8% of the sample. Nearly half (49.1%) of the participants reported a monthly family income ranging from ¥5,000 to ¥10,000. Notably, over 96% of the surveyed individuals reported to usually use smartphone before sleep, and more than half reported to have experienced sleep delay due to smartphone use.

Table 1 Participants’ characteristics

Proportion of individuals engaging in evening exercise

As indicated in Table 2, among the surveyed population, 22% of Chinese students exercise during the day, and 69.4% reported to conduct physical exercise during nighttime.

Table 2 Proportion of individuals engaging in evening exercise

Primary reasons for opting for nighttime exercise

Word clouds rendered by Python provide a visual representation of the focus and themes of interest, with the size of the words within the cloud denoting the frequency of their occurrence in the text. Following segmentation using the jieba method, and the integration of a stop-word dictionary alongside custom stop-words to eliminate meaningless words, visualization of the vocabulary is achieved. This process enhances the interpretive clarity and thematic emphasis of the textual data. Figure 1 demonstrates the top 30 keywords regarding the rationale for exercise during nighttime. Figure 2 displays a histogram of the top thirty keywords. The predominant reason for choosing to exercise at night was the availability of free time exclusively in the evening hours. This was followed by habit and the perception that nighttime exercise offered a more relaxed setting. The last mentioned reasons included the belief that exercising during nighttime aids in sleep quality and serves as a countermeasure to daytime sun exposure.

Fig. 1
figure 1

The main reasons for choosing night exercise

Fig. 2
figure 2

Night exercise primary reasons frequency histogram

Correlations among core variables in the nighttime exercise population

As indicated in Table 3, within the population engaged in nighttime exercise, there is a significant negative correlation between the frequency of nighttime exercise and several parameters related to smartphone use and mental health. Specifically, a higher frequency of nighttime exercise was associated with lower likelihood of smartphone use before sleep (rho = -0.088**), shorter duration of smartphone use before sleep (rho = -0.166**), and decreased likelihood of sleep delay due to smartphone use (rho = -0.117**). Additionally, a higher frequency of nighttime exercise was negatively correlated with poorer sleep quality scores (rho = -0.068*), smartphone addiction (rho = -0.165**), anxiety (rho = -0.142**), and depression (rho = -0.074*).

Furthermore, participants with a longer overall duration of nighttime exercise generally demonstrated lower probabilities of smartphone use before sleep (rho = -0.099**) and shorter duration of smartphone use before sleep (rho = -0.093**), and decreased likelihood of sleep delay due to smartphone use (rho = -0.081*). Participants with a longer overall duration of nighttime exercise also exhibit a negative correlation with smartphone addiction (rho = -0.160**) and anxiety (rho = -0.105**).

Table 3 Correlations among core variables

Association between nighttime exercise indices and variables of interest

Table 4 demonstrates the associations of nighttime exercise indices and smartphone-related health outcomes among individuals who claimed to primarily exercised at night. In the adjusted model, the frequency of nighttime exercise was negatively associated with the likelihoods of using a smartphone before sleep and sleep delay due to smartphone use, as well as the duration of smartphone use before sleep smartphone and the levels of addiction and anxiety. The duration of nighttime exercise (per time) was only negatively associated with the likelihood of using a smartphone before sleep. The total duration of nighttime exercise was negatively associated with the likelihood of using smartphone before sleep, the duration of smartphone use before sleep, and the levels of smartphone addiction and anxiety.

Table 4 Association between nighttime exercise programs and core variables

Discussion

General discussion

The present study aimed to investigate the proportion of Chinese university students who engage in nighttime exercise, and to evaluate the associations of nighttime exercise and smartphone use before sleep, sleep delay, sleep quality, smartphone addiction, and mental health issues.

We found that the frequency of nighttime exercise was negatively associated with the probability and duration of smartphone use before sleep and its related sleep delay. Meanwhile, it was also associated for smartphone addiction and anxiety. Similar findings were obtained for the total duration of nighttime exercise, except for sleep delay (which was non-significant).

The findings on smartphone addiction, smartphone use before sleep, and related sleep delay broadly support our first, second, and fourth hypotheses, and they are generally in line with findings of previous studies [24, 25, 71, 72]. These phenomena may be explained by the following reasons. Unhealthy smartphone use before sleep has been regarded as an addictive behavior [26], a subtype of impulse control disorders [73]. Physical exercise is known to enhance neural plasticity related to reward in key brain structures such as the dorsolateral striatum, the nucleus accumbens, and the ventromedial prefrontal cortex [74], thus mitigating the influence of impulse control. A study in 2020 confirmed that engaging in physical exercise stimulates the pituitary gland to release endorphins, enhancing pleasure and reducing discomfort when away from smartphones [75].

In concordance with earlier research, we observed that college students frequently postpone exercise to nighttime hours to accommodate their academic schedules and leisure time [76]. Contrary to our third hypothesis, however, our findings did not reveal a significant association between nighttime exercise behaviors and sleep quality. So far, some scholars believe that engaging in physical activity at night improves sleep, but there are also those who hold completely opposite opinions. For example, a study showed that university students who exercised at night experienced lower sleep quality and sleep efficiency compared to their morning-exercising counterparts [77]. Sleep hygiene guidelines also caution against engaging in high-intensity physical activities in the evening [53], because it is believed that physical exercise before sleep can cause nerve stimulation and reduce sleep quality. In contrast, a study on young males following nighttime exercise observed improved subjective feelings upon waking the next morning [78], and further evidence also suggests that engaging in moderate-intensity exercise 2–4 h before sleep may positively change sleep-related variables such as sleep delay and slow-wave sleep [79,80,81]. Therefore, the relationship between nighttime exercise and sleep quality remains complex and inconclusive. It is necessary to explore which side, benefits or drawbacks, is more predominant in specific scenarios.

Ultimately, we found that engagement in nighttime exercise was associated with reduced levels of anxiety, while the association with depression was not statistically significant. This result partially supports our fifth hypothesis. Previous literature has widely recognized the health benefits of physical exercise, encompassing both increased life expectancy and enhanced mental and physical well-being [82]. One possible reason is that physical exercise can stimulate cerebral microcirculation, elevate levels of monoamine neurotransmitters in the brain, accelerate blood circulation, and enhance metabolic rates, thereby attenuating sedentary behavior and improving mood [83, 84]. Additionally, social withdrawal theory can also be employed for explanation. Lack of physical activity can lead to social isolation and withdrawal, both of which are positively correlated with increased social anxiety [85].

In comparison with this study, many previous studies have provided evidence that physical exercise can mitigate symptoms of depression in both clinical and non-clinical populations [86, 87]. To explain this discrepancy, exercise intensity may offer a clue. For example, exercise can alleviate symptoms of depression by reducing inflammation, with moderate-intensity continuous exercise identified as optimal [88]. Therefore, the absence of an examination of exercise intensity may be a reason for our null results concerning depression.

In summary, our findings indicate that nighttime exercise may have numerous potential benefits related to smartphone usage issues. Considering insufficient physical activity is one of the major crises in China currently [89,90,91], we advocate for the reasonable utilization of leisure time at night for exercise. It is important to note that we do not endorse the irrational extension of nighttime exercise to compromise sleep duration. Instead, we recommend viewing nighttime exercise as a leisure activity within a framework that promotes health.

Limitations

Firstly, our data was purely self-reported, introducing the possibility of reporting biases. Respondents might be reluctant to disclose unhealthy behavioral patterns or mental conditions, which could result in underestimations of smartphone addiction, depression, and anxiety levels.

Secondly, our investigation of nighttime exercise is confined to qualitative questions and does not address the specific timing of exercise, nor the time elapsed between the end of exercise and sleep delay. Moreover, the intensity of nighttime exercise is a significant uncertainty factor, and different intensities of nighttime exercise can affect sleep quality, and even have the opposite effect. Future research exploring the relationship between nighttime exercise and sleep quality should consider the time interval and intensity between the exercise and sleep behaviors.

Thirdly, ross-sectional surveys are inevitably subject to confounding factors, making it necessary to comprehensively control external variables. Currently, many social, environmental, and cultural factors are known to potentially influence physical activity and problematic smartphone use [92,93,94]. However, due to limitations in survey methods, we couldn’t thoroughly investigate these factors. Therefore, future research should consider more diverse survey methods to reduce the risk of bias.

Lastly, our sample consists of university students only in Chongqing City. The comparatively homogeneous environment and academic-focused stressors of this population could limit the generalizability of our findings. Subsequent research should target diverse populations to explore the relationships between exercise habits and health behaviors, so as to enrich the theoretical framework concerning nighttime exercise.

Conclusion

The aim of this study was to investigate the impact of nighttime exercise on smartphone usage, sleep quality, and health-related behaviors. We found that nearly 70% of the participants chose to engage in physical exercise during nighttime, a choice closely related to academic pressures during daytime. Moreover, the frequency and overall duration of nighttime exercise were significantly correlated with smartphone use before sleep, the length of smartphone use before sleep, sleep latency, smartphone addiction, and anxiety. However, weaker correlations were observed between sleep quality and depression. These findings could serve as preliminary evidence supporting the notion that nighttime exercise might reduce smartphone addiction and alleviate anxiety.