Main

Healthy circadian rhythms are essential for mental health and wellbeing1. Many psychiatric disorders are characterized by disrupted circadian rhythms and sleep2,3. In humans, a central circadian (~24-hour) clock in the suprachiasmatic nuclei (SCN) of the hypothalamus regulates the timing of basic cellular functions4, physiology, cognition, and behavior5,6. Rhythms within the SCN are regulated by daily light-exposure patterns. This biological system evolved under predictable conditions of bright light during the day and darkness at night to ensure stable, robust rhythms7,8,9. Humans in modern, industrialized societies challenge this biology, spending ~90% of the day indoors under electric lighting10, which is dim during the day and bright at night compared with natural light/dark cycles11. Deviations from our natural light/dark cycle lead to disrupted circadian rhythms and therefore could contribute to adverse psychiatric outcomes.

In this Article, we report the largest sample to date (n = 86,772) of objective recordings of individual, 24-hour light-exposure data obtained during seven days of actimetry and light monitoring. We investigated the association of day and night-time light with a constellation of psychiatric disorders that feature circadian rhythm disturbance, while controlling for confounding variables in multivariable models. We tested two primary hypotheses: (1) greater light exposure in the day is associated with lower risk for psychiatric disorders and better mood and (2) greater light exposure at night is associated with higher risk for psychiatric disorders and poorer mood. These hypotheses were motivated by the known effects of day and night-time light exposure on the human circadian system and the well-established links between circadian disruption and psychiatric disorders.

Results

Of the 103,720 UK Biobank participants that completed the seven-day actimetry and light monitoring assessment, we excluded those with poor-quality or unreliable accelerometry, sleep, and light data (detailed in Supplementary Methods and Fig. 1), leaving 86,772 participants. Of these, 86,631 had complete data for day and night-time light as well as the covariates in our fully adjusted Model 3. The mean and median daytime light exposures in the sample were 1,380.1 lux (standard deviation (s.d.) = 1,187.7) and 1,012.1 lux (interquartile range (IQR) = 1,578.1), respectively. The mean and median night-time light exposures in the sample were 24 lux (s.d. = 123.9) and 1.44 lux (IQR = 10), respectively. Mean and median lux values across quartiles of day and night-time light exposure are presented in Supplementary Table 1. The 24-hour light-exposure profile is presented in Supplementary Fig. 1. Characteristics of the sample and their missingness are presented in Table 1 for the lowest (Q1 and Q2) and highest (Q3 and Q4) quartiles of day and night-time light exposure. The light measurements showed very good reliability (intra-class correlation = 0.82 (95% confidence interval (CI): 0.81–0.83; Supplementary Methods) and a validation of the AX3 devices demonstrated they were able to accurately recover true lux after calibration for both low (r2 = 0.82) and high (r2 = 0.81) light levels (Supplementary Methods and Supplementary Fig. 2). The analytic sample comprised participants who completed both the mental health questionnaire (MHQ) and actigraphy assessment, and sample sizes varied depending on the outcome variable assessed, ranging from 26,956 to 61,442 for Model 1 and 26,824 to 61,147 in Model 3. Summary statistics for outcome variables derived from the MHQ are detailed in Supplementary Tables 2 and 3.

Fig. 1: Flow diagram of the light-data study sample.
figure 1

Of the 103,720 participants that completed the seven-day actimetry and light monitoring assessment, 86,772 met the quality control criteria.

Table 1 Demographic characteristics of participants by low and high day and night-time light exposure

In fully adjusted regression models (Model 3, adjusted for age, sex, ethnicity, photoperiod, employment, and physical activity; Fig. 2 and Table 2), higher night-time light exposure was associated with higher odds of major depressive disorder (MDD) (χ2 P < 5 × 10−16; fourth quartile odds ratio (ORQ4) = 1.30, 95% CI = 1.23–1.38), self-harm (χ2 P = 1.52 × 10−6; ORQ4 = 1.27, 95% CI = 1.14–1.42), generalized anxiety disorder (GAD) (χ2 P = 0.0001; ORQ4 = 1.23, 95% CI = 1.11–1.36), post-traumatic stress disorder (PTSD) (χ2 P = 2.23 × 10−10; ORQ4 = 1.34, 95% CI = 1.22–1.48), and psychosis (χ2 P = 0.0009; ORQ4 = 1.21, 95% CI = 1.09–1.34). There was no overall association with bipolar disorder (χ2 P = 0.18); however, those in the brightest night-time light quartile had 1.20 (95% CI = 1.02–1.42) times higher risk. Greater night-time light exposure was associated with higher scores on the Patient Health Questionnaire-9 (PHQ-9; χ2 P < 5 × 10−16; standardized βQ4 = 0.13, 95% CI = 0.11–0.15), Generalized Anxiety Disorder-7 (GAD-7; χ2 P = 7.58 × 10−10; βQ4 = 0.07, 95% CI = 0.05–0.09), and PTSD Checklist-6 (PCL-6; χ2 P = 2.84 × 10−11; βQ4 = 0.11, 95% CI = 0.08–0.14) and lower wellbeing scores (χ2 P < 5 × 10−16; βQ4 = −0.11, 95% CI = −0.13 to –0.08; Fig. 3 and Supplementary Table 4). The results for Model 1 (unadjusted) and Model 2 (adjusted for age, sex, ethnicity, and photoperiod) were similar in terms of direction, strength, and significance to Model 3.

Fig. 2: Associations of day and night-time light exposure with psychiatric disorders and self-harm.
figure 2

af, Coefficients plot for daytime and night-time light associations with (a) MDD (ncases = 18,933; ncontrols = 25,509), (b) self-harm behavior (ncases = 2,710; ncontrols = 58,670), (c) GAD (ncases = 3,279; ncontrols = 46,554), (d) PTSD (ncases = 3,535; ncontrols = 57,907), (e) bipolar disorder (hypomania/mania; ncases = 1,192; ncontrols = 45,197), and (f) psychosis (ncases = 3,110; ncontrols = 57,785). Coefficients represent the odds ratios ± the standard error of the mean (inner error bar) and 95% CI (outer error bar) for each quartile of day and night-time light exposure relative to the low light (Q1) referent. Three models are presented with increasing adjustment for confounders: Model 1 (green) is unadjusted, Model 2 (blue) adjusts for age, sex, ethnicity, and photoperiod, and Model 3 (red) additionally adjusts for employment and physical activity.

Table 2 Associations between night-time light exposure and psychiatric outcomes
Fig. 3: Associations of day and night-time light exposure with symptom severity scales and wellbeing.
figure 3

ad, Coefficients plot for daytime and night-time light associations with (a) PHQ-9 score (n = 60,556), (b) wellbeing score (n = 59,904), (c) GAD-7 score (n = 60,786), and (d) PCL-6 score (n = 26,956). Coefficients represent the standardized betas ± the standard error of the mean (inner error bar) and 95% CI (outer error bar) for each quartile of day and night-time light exposure relative to the low light (Q1) referent. Three models are presented with increasing adjustment for confounders: Model 1 (green) is unadjusted, Model 2 (blue) adjusts for age, sex, ethnicity, and photoperiod, and Model 3 (red) additionally adjusts for employment and physical activity.

Higher daytime light exposure (Model 3; Fig. 2 and Table 3) was associated with lower odds of MDD (χ2 P = 2.28 × 10–8; ORQ4 = 0.81, 95% CI = 0.76–0.87), self-harm (χ2 P = 0.0001; ORQ4 = 0.76, 95% CI = 0.67–0.87), PTSD (χ2 P = 0.01; ORQ4 = 0.82, 95% CI = 0.73–0.92), and psychosis (χ2 P = 5.79 × 10–9; ORQ4 = 0.69, 95% CI = 0.61–0.79). There was no association of daytime light exposure with GAD (χ2 P = 0.61; ORQ4 = 0.96, 95% CI = 0.85–1.09) or lifetime bipolar disorder (χ2 P = 0.22; ORQ4 = 0.86, 95% CI = 0.70–1.05). Figure 3 and Supplementary Table 5 show that greater daytime light exposure was associated with lower scores on the PHQ-9 (χ2 P = 1.61 × 10–11; βQ4 = –0.09, 95% CI = –0.12 to –0.07), GAD-7 (χ2 P = 3.36 × 10–5; βQ4 = -0.05, 95% CI = –0.08 to –0.03), PCL-6 (χ2 P = 0.002; βQ4 = –0.08, 95% CI = –0.12 to –0.04), and higher wellbeing scores (χ2 P = 4.45 × 10−8; βQ4 = 0.08, 95% CI = 0.05–0.11). The results for Model 1 (unadjusted) and Model 2 (adjusted for age, sex, ethnicity, and photoperiod) were similar in terms of direction and significance to Model 3. However, ORs and betas tended to be smaller in Model 3 after the addition of physical activity and employment covariates.

Table 3 Associations between daytime light exposure and psychiatric outcomes

Increased night-time light exposure was also associated with a greater number of co-occurring psychiatric disorders (χ2 P = 1.50 × 10–6; fourth quartile incidence rate ratio (IRRQ4) = 1.15, 95% CI = 1.10–1.21), while increased daytime light exposure was associated with fewer co-occurring psychiatric disorders (χ2 P = 7.67 × 10–8; IRRQ4 = 0.86, 95% CI = 0.81–0.91; Supplementary Table 6).

Day and night-time light exposure did not interact in their association with any psychiatric outcomes or symptom severity scales (Supplementary Tables 7 and 8); however, increased daytime light exposure attenuated the association of night-time light exposure with poorer wellbeing (interaction β = 0.01, 95% CI = 0.00–0.02, P = 0.01).

A series of sensitivity analyses were completed. First, we re-ran Model 3 regressions excluding participants who reported doing shift work (n = 6,840, 7.9%). The results for both psychiatric disorders and symptom severity scores were unchanged in this subsample (Supplementary Tables 9 and 10). In the subsample excluding shift workers, higher night-time light exposure was associated with higher odds of MDD (χ2 P < 5 × 10–16; fourth quartile odds ratio (ORQ4) = 1.30, 95% CI = 1.23–1.38), self-harm (χ2 P = 2.31 × 10–5; ORQ4 = 1.28, 95% CI = 1.14–1.44), generalized anxiety disorder (χ2 P = 4.31 × 10–5; ORQ4 = 1.27, 95% CI = 1.14–1.41), PTSD (χ2 P = 4.63 × 10–8; ORQ4 = 1.31, 95% CI = 1.18–1.45), and psychosis (χ2 P = 0.009; ORQ4 = 1.19, 95% CI = 1.06–1.32). As in the preceding analysis, there was no overall association with bipolar disorder in this subsample (χ2 P = 0.25); however, those in the brightest night-time light quartile had 1.19 (95% CI = 1.06–1.32) times higher risk. Greater night-time light exposure was also associated with higher scores on the PHQ-9 (χ2 P < 5 × 10–16; standardized βQ4 = 0.13, 95% CI = 0.11–0.15), GAD-7 (χ2 P = 1.88 × 10–9; βQ4 = 0.07, 95% CI = 0.05–0.09), and PCL-6 (χ2 P = 1.63 × 10–9; βQ4 = 0.10, 95% CI = 0.07–0.14) and lower wellbeing scores (χ2 P < 5 × 10–16; βQ4 = –0.10, 95% CI = –0.12 to –0.08). In the subsample excluding shift workers, increased daytime light exposure was associated with lower odds of MDD (χ2 P = 4.56 × 10–7; ORQ4 = 0.82, 95% CI = 0.76–0.88), self-harm (χ2 P = 9.43 × 10–5; ORQ4 = 0.75, 95% CI = 0.65–0.86), PTSD (χ2 P = 0.02; ORQ4 = 0.82, 95% CI = 0.73–0.93), and psychosis (χ2 P = 2.47 × 10–7; ORQ4 = 0.71, 95% CI = 0.62–0.81). There was also no association of daytime light exposure with GAD (χ2 P = 0.49; ORQ4 = 0.93, 95% CI = 0.82–1.06) or lifetime bipolar disorder (χ2 P = 0.38; ORQ4 = 0.87, 95% CI = 0.70–1.07). Finally, in the subsample excluding shift workers, greater daytime light exposure was also associated with lower scores on the PHQ-9 (χ2 P = 4.73 × 10–11; βQ4 = –0.10, 95% CI = –0.12 to –0.07), GAD-7 (χ2 P = 5.50 × 10–6; βQ4 = –0.05, 95% CI = –0.08 to –0.02), and PCL-6 (χ2 P = 0.002; βQ4 = –0.08, 95% CI = –0.12 to –0.04) and higher wellbeing scores (χ2 P = 9.89 × 10–7; βQ4 = 0.07, 95% CI = 0.05–0.10).

The second sensitivity analysis examined whether observed associations of day and night-time light with symptom severity scales and wellbeing were driven by the presence of clinical subgroups. We re-ran these analyses excluding participants with relevant disorders (Methods), adjusting for the same covariates in Model 3. The associations were unchanged excepting small variations in strength (Supplementary Table 11). The third sensitivity analysis examined whether the associations between light and psychiatric outcomes were independent of sleep characteristics. After adjustment for actigraphically derived sleep duration and sleep efficiency in addition to the Model 3 covariates (Model 4), the association of night-time light exposure with psychosis was no longer significant (χ2 P < 0.09; ORQ4 = 1.12, 95% CI = 1.01–1.25). All other associations of day and night-time light with psychiatric outcomes and symptom severity scales were unchanged, although associations tended to be weaker (Supplementary Tables 12 and 13). In a fourth sensitivity analysis, we examined whether residential density as a measure of urbanicity could explain the light and mood relationship; we conducted an additional sensitivity analysis (Model 5) adjusting for residence type (urban versus rural) as well as the covariates in Model 3. Adjustment for urbanicity did not change any of the associations of day and night-time light with psychiatric outcomes and symptom severity scales in strength or significance (Supplementary Tables 14 and 15). The fifth sensitivity analysis examined whether factors relating to cardiometabolic health could explain the light and mood relationship. Adjusting for body mass index, systolic blood pressure, and diabetes status did not change the overall results; however, the association between daytime light and PTSD became weaker (Supplementary Tables 16 and 17).

Discussion

The present study observed that objectively measured light-exposure patterns under free-living conditions were associated with the risk for psychiatric disorders and the severity of mood symptoms. Brighter light at night was associated with a greater risk for MDD, self-harm behavior, PTSD, psychosis, GAD, and bipolar disorder, as well as poorer self-reported mood and wellbeing. Conversely, brighter light in the day was associated with lower odds of MDD, self-harm behavior, PTSD, and psychosis, as well as better self-reported mood and wellbeing. Remarkably, these associations were independent and additive. For example, greater night-time light exposure was associated with increased odds of MDD even for those in the brightest daytime light quartile and, conversely, greater daytime light exposure was associated with reduced risk for MDD even amongst those in the brightest night-time light quartile. These associations were also independent of demographic, physical activity, photoperiod, and employment covariates. Sensitivity analyses showed these findings to be consistent when accounting for shift work, sleep quality, urbanicity, and cardiometabolic health.

For individuals in the brightest night-time light quartile, we observed ~30% higher risk of MDD and self-harm, while individuals in the brightest daytime light quartile had ~20% lower risk of MDD and self-harm. Night-time light exposure was also associated with poorer self-reported mood and wellbeing, while daytime light exposure was associated with better mood and wellbeing. Previous studies have reported an association of night-time light exposure with low mood12, and one study has linked night-time light to MDD risk, although this study examined group-level outdoor light at night, which may not be a good proxy for individual ambient light exposure13. Other limitations of these studies were generally small sample sizes and poor control for confounders such as physical activity and sleep quality, and no studies considered the independent effects of both day and night-time light. Conversely, daytime light therapy has long been shown to be efficacious in treating depression14 and has been shown to enhance treatment efficacy when combined with a selective serotonin reuptake inhibitor15. Fewer studies have linked free-living daytime light exposure to MDD risk, although one study linked self-reported time spent in outdoor light with lower risk16. Depression has long been associated with circadian disruption. Patients with depression have both delayed and low-amplitude circadian rhythms17,18, which are reversed in recovery19. The severity of mood symptoms and the duration of depressive episodes are greater in those who experience circadian rhythm disturbance17,20, and the presence of circadian rhythm disturbance in depression is predictive of recurrence21. Our findings are consistent with the known time-dependent effects of light on the properties of the circadian system, such that light at night tends to delay rhythms and reduce circadian amplitude, whereas early-morning and daytime light tends to advance rhythms and boost circadian amplitude8,9,22,23. Therefore, the euthymic effect of bright daytime light and dim night-time light exposure may occur by boosting the amplitude and advancing the timing of circadian rhythms, correcting the delayed and blunted rhythms seen in depression17,18. Seeking greater daytime light and minimizing night-time light exposure could be a simple means of improving depression trajectories by treating underlying circadian disturbance.

Greater light exposure at night was associated with higher risk for bipolar disorder. Bipolar disorder has long been associated with dampened amplitude of behavioral rhythms and more-variable circadian timing24. A recent study found that brighter night-time light exposure predicted manic/hypomanic episodes in patients with bipolar disorder25. and outdoor light at night has been associated with bipolar disorder13. Hypersensitivity of the circadian system to light at night has been proposed to be a trait marker of bipolar disorder26. Drugs used to treat bipolar disorder reduce the sensitivity of the circadian system to light27, suggesting that reducing the effects of light at night on the circadian system may play a role in recovery. Consistent with this, night-time dark therapy and wearing blue-light-blocking glasses at night are effective at reducing mania in patients28,29. We did not see an association of bipolar disorder with daytime light exposure. This finding is new as the association of free-living daytime light exposure with manic symptoms in bipolar disorder and the efficacy of daytime light therapy on manic episodes in randomized controlled trial designs has not been examined30. This finding also contradicts previous case reports that suggested daytime light exposure was a risk factor for increased manic symptoms31,32. The avoidance of light at night specifically may be beneficial in mitigating risk for bipolar disorder.

We found both an adverse association of night-time light exposure and a beneficial association of daytime light exposure with PTSD risk and symptom severity. To our knowledge, no studies have examined the association of free-living light-exposure patterns in the day or night with PTSD risk. There is some evidence of disturbed circadian rhythms in PTSD. Delayed activity rhythms are associated with more-severe PTSD symptoms33 while lower urinary melatonin rhythm amplitude after a trauma exposure predicts a higher risk for PTSD34, a finding replicated in military personnel35. Our results suggest bright night-time and dim daytime light exposure may be antecedent factors leading to blunted and delayed rhythms. This is supported by evidence that daytime light therapy may be an effective treatment for PTSD symptoms36. Avoidance of light at night and seeking bright daytime light after trauma could reduce the risk of developing PTSD or the severity of symptoms in those with the disorder.

We observed an ~20% higher risk for GAD and increased GAD-7 scores among those in the highest quartile of night-time light exposure. While daytime light exposure did not associate with GAD, brighter daytime light exposure was associated with reduced GAD-7 scores. As yet, the literature on light exposure and anxiety in humans is limited and mixed, with some studies reporting a beneficial effect of daytime light exposure on anxiety and others reporting null effects37,38. Consistent with our findings, night-shift workers, who are chronically underexposed to daytime light and overexposed to night-time light, report elevated anxiety; however, this could also be driven by concomitant sleep disruption39,40. Together, these findings provide new evidence for an association of night-time light exposure with increased GAD risk and symptomology and some evidence for an effect of daytime light exposure on reducing GAD symptomology.

Finally, bright night-time light exposure was associated with ~20% increased risk for psychosis, while bright daytime light exposure was associated with ~30% reduced risk for psychosis. There are also little data linking free-living light exposure in the day or night to psychosis and psychotic disorders, despite sleep and circadian rhythm disruption being common features of patients on and off medication1. One small study found that patients with schizophrenia had lower daytime light exposure and in a natural experiment observed that boosting daytime light exposure could normalize the sleep and circadian disruption seen in the disorder41. Studies of daytime light therapy and schizophrenia have reported mixed results, but these studies have been small and further, more rigorous, trials are needed42,43. In addition to daytime light, our findings point to night-time light as a new therapeutic target for psychosis.

Beyond effects on the circadian clock, non-visual photoreception is appreciated to have a direct effect on mood via projections to brain areas implicated in mood regulation. Light exposure acutely enhances both mood and alertness44,45. Intrinsically photosensitive retinal ganglion cells expressing the photopigment melanopsin are the primary input of light information to the circadian clock in the SCN46. These cells also project to the medial amygdala and lateral habenula, brain areas implicated in depression, and these projections mediate the acute euthymic effect of light exposure47,48. The direct effects of light may partially explain the association of daytime light with lower MDD and self-harm risk, although a mechanism for direct effects of daytime light on other disorders such as PTSD, psychosis, and bipolar disorder is unclear. As mood is generally poorer in the night/early-morning hours, people may seek out the acute euthymic effects of light at night. Although this may immediately improve mood, it would lead to circadian disruption in the long term and could perpetuate mental illness. This represents a potential challenge for promoting healthy light behaviors.

Taken together, our findings are consistent with bright daytime light and low night-time light strengthening circadian rhythms as an antecedent to more robust mental health. Patterns of bright daytime light and low night-time light serve to enhance the amplitude and stability of the circadian clock as well as align its timing appropriately with daily activities7,8,9,22. As modern humans spend ~90% of the day indoors10, our light-exposure patterns are typically less bright in the day and more bright at night than naturalistic patterns across our evolutionary history11. Addressing this deviation from our natural light/dark cycles may improve the general mental health of people in industrialized societies.

This study has a number of important limitations. First, the findings we report are cross-sectional. While there are well-supported causal mechanisms linking bright night-time light and dim daytime light with circadian disruption, and linking circadian disruption with mental health, we acknowledge the possibility of reverse causation and that longitudinal studies will be needed to establish the temporality of the associations we observed. However, the robustness of our findings to adjustment for confounders, including physical activity and sleep, provides support for our interpretation. Second, light monitoring was performed using a wrist-worn device, which is not designed to measure light at the ocular level. The data therefore provide a coarse estimate of the actual effects of light on the circadian system. Third, the actigraphy data and outcome variables were not measured simultaneously, with the latter measured an average of 1.86 years later, and as such it is feasible that the habitual light-exposure patterns of participants could have changed in the interim. However, we note that we did observe good reliability of within-individual repeat light-exposure assessments completed over the course of a year, suggesting that light measurements at one timepoint are a good proxy for other timepoints. Fourth, we are unable to distinguish true darkness from device coverage, and this probably contributes to error variance in the dataset. Fifth, as the AX3 APDS9007 light sensor is calibrated to the human photopic spectral range, we cannot report melanopic equivalent daylight illuminance, which is optimal for the study of the non-visual effects of light. Finally, the lux values reported for the day and night-time light quartiles were derived from a validation of the AX3 devices against a lux photometer using a sample of the devices approximately eight years after the original study. However, we note that these devices were a very good predictor of true lux and that the calibrated lux values for day and night-time light exposure cohere with those reported in other studies49,50,51.

This study reports an analysis of objectively measured light-exposure data from the UK Biobank and demonstrates its validity and reliability. This study is also the largest examination of objectively measured light exposure and mental health to date. Our findings demonstrate a consistent association of light-exposure patterns that are healthy for circadian rhythms with better psychiatric outcomes. These results suggest that light-exposure interventions may act in a transdiagnostic manner to improve mental health by strengthening circadian rhythms. Brighter days and darker nights may be a simple, freely available, non-pharmacological intervention to enhance mental health that is easily implementable in a community setting.

Methods

Study design and participants

In this cross-sectional study, we drew on the UK Biobank prospective general population cohort, which contains more than 502,000 UK residents recruited via National Health Service patient registers from 2006 to 2010. The study population is described in detail elsewhere52,53. Accelerometry and light data were measured in a subset of 103,720 participants in 2013–2015, and a separate subset of 157,366 participants completed an online MHQ in 2016–2017. Participants who accepted the invitation to join the UK Biobank cohort provided written, informed consent and were given reimbursement for travel expenses. The UK Biobank has generic ethical approval from the North West Multi-Center Research Ethics Committee (ref 11/NW/03820).

Measures

Light exposure

In 2013, 236,519 UK Biobank participants were invited to participate in a seven-day physical activity and light monitoring study. Of these participants, 103,720 (43.9%) accepted and returned the accelerometer to the UK Biobank. Participants who accepted the invitation received a wrist-worn AX3 triaxial accelerometer (Axivity) with in-built light sensor (APDS9007 silicon photodiode sensor; spectral sensitivity λ = 470–650 nm) and were asked to wear the device on their dominant wrist for seven days under free-living conditions.

Quality control and definition of light-exposure predictors was completed in R (version 4.1.0) as detailed in the Supplementary Methods. Briefly, the daily light profiles of participants meeting quality control criteria were entered into a factor analysis to identify independent patterns in light exposure in the sample. Factor analysis supported the extraction of day (7:30–20.30) and night (0:30–6:00) factors. Light exposure during the day had a small positive correlation with light exposure at night (rs = 0.10, P < 0.0001). Due to large positive skew in both day and night-time light variables (skewness coefficient > 1 for both), both variables were converted into categorical predictors for analysis by dividing them into four quartiles of equal n in ascending brightness.

Psychiatric outcomes

A total of 339,092 UK Biobank participants were invited to complete the online MHQ in 2016, and 157,366 completed the questionnaire. Measurement of psychiatric outcomes as part of the MHQ took place an average of 1.86 years (s.d. = 0.66) after the actigraphy assessment. Of the 86,772 participants with complete light data, 61,466 (70.8%) completed the UK Biobank MHQ. Definitions of case/control psychiatric disorder outcomes from the MHQ are based on Composite International Diagnostic Interview and the Diagnostic and Statistical Manual of Mental Disorders 4th Edition54 criteria and followed guidelines established by Davis et al.55 Case/control outcomes were MDD, GAD, bipolar disorder (hypomania/mania), PTSD, psychosis, and self-harm. Detailed definitions are given in the Supplementary Methods. Continuous outcomes were symptom severity scales for depression (Patient Health Questionnaire, PHQ-9), anxiety (GAD-7), PTSD (PTSD Checklist-6, PCL-6), and an overall wellbeing score indexing euthymia and eudaemonia (Supplementary Methods).

Statistical analysis

The association between day and night-time light and case/control outcomes was examined with multiple logistic regression. Odds ratios and their 95% confidence intervals are reported. Multiple linear regression was used for the continuous symptom severity scales and wellbeing, with standardized beta values reported. These associations were tested hierarchically in three models with increasing adjustment for potential confounders. Each model included both day and night-time light categorical predictors to examine their independent effects. Likelihood-ratio χ2 tests were used as an omnibus test of significance for the day and night-time light factors. Model 1 examined the unadjusted association between day and night-time light and psychiatric outcomes. Model 2 adjusted for age (at the time of actigraphy), sex, ethnicity (white versus non-white; data-field 21000), and photoperiod (as a measure of seasonality, defined as the duration between sunrise and sunset at the beginning of the actigraphy assessment). Finally, Model 3 additionally adjusted for employment (employed versus unemployed; data-field 6142) and physical activity (defined as overall acceleration average over the actigraphy period in milligravity units; data-field 90012). The physical activity variable was previously defined by the UK Biobank accelerometer expert working group56. An additional Poisson regression model adjusting for Model 3 covariates was run to examine the association of day and night-time light exposure with the number of co-occurring psychiatric disorders (range = 0 to 5), including MDD, PTSD, psychosis, bipolar disorder, and GAD. Incidence rate ratios and their 95% confidence intervals are reported for this model.

To assess the interaction between day and night-time light exposure on psychiatric outcomes and symptom severity scores, logistic and linear regressions using Model 3 covariates were run including the main effects and interaction term of log10-transformed day and night-time light exposure. Odds ratios per standard deviation of light exposure and standardized beta coefficients are reported with their 95% confidence intervals for the main effects and interaction terms of logistic and linear models, respectively.

A series of sensitivity analyses were completed to examine the robustness of the primary findings. The first sensitivity analysis examined whether the presence of shift workers in the sample (n = 6,840, 7.9%) was driving the observed associations. Model 3 regressions were re-run excluding those who reported doing shift work (work outside the “normal daytime working hours of 9am–5pm”; data-field 826) to any degree (sometimes, usually, or always). The second sensitivity analysis assessed whether observed associations of light with symptom severity scales and wellbeing were driven by clinical subgroups. We re-ran these analyses excluding participants with MDD for the PHQ-9 model; with GAD for the GAD-7 model; with PTSD for the PCL-6 model; and with MDD, GAD, PTSD, bipolar disorder, or psychosis for the wellbeing model. The third sensitivity analysis examined whether the relationship between light and psychiatric outcomes was independent of objectively measured sleep duration and efficiency (Model 4; Supplementary Methods). The fourth sensitivity analysis examined whether participants’ residential population density as a measure of urbanicity could explain the light and mood relationship (Model 5). Urbanicity (data-field 20118; urban versus rural) was defined according to the UK Office for National Statistics population density classification of participant residential postcodes where urban postcodes have a population of 10,000 or more and rural postcodes have a population of less than 10,000. The fifth sensitivity analysis examined whether cardiometabolic health explained the light and mood relationship (Model 6). In addition to Model 3 covariates, systolic blood pressure (data-field 4080), body mass index (data-field 21001), and diabetes diagnosis (data-field 2443) were added as covariates. All statistical tests were two-sided, and inspection of residual plots confirmed the assumptions of linear models were met. Reporting of statistical analyses and results followed the STROBE guidelines.

Reporting summary

Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.