We worked on a publication for NPJ biological timing and sleep
A few things that are surprising from the research
- sleep duration decreases by 4.4 minutes for each additional hour of daylight
- The effect didnt get much stronger at higher altitudes (even though daylight swings are much larger)
Plain English summary here
https://tryterra.co/research/terra-research-nature-publicati...
The cycle of day and night is one of the most fundamental environmental features shaping life on Earth. Nearly all species, from bacteria to mammals, exhibit daily rhythms in physiology and behavior that align with this 24-hour light-dark cycle1,2,3,4. These rhythms are not merely passive responses to external changes, but are generated by a biological timekeeping system, the circadian “clock,” which allows organisms to anticipate environmental transitions and coordinate internal processes throughout the day5.
This internal temporal organization is essential for health and survival: disruption of circadian timing can affect cognition, metabolism, hormonal function, and mental health6,7,8,9. In humans, the central circadian clock is the suprachiasmatic nuclei (SCN) in the hypothalamus. It is aligned with the 24-hour light-dark cycle mentioned previously through input from the retina. Therefore, changes in environmental light levels shape patterns of sleep and wakefulness and influence the physiological processes that support these behaviours10,11,12.
By this reasoning, it seems logical to expect that sleeping patterns would shift with changes in the amount of light across the year. However, despite this biological grounding, our understanding of seasonal sleep variation in humans at a global scale remains limited. A minority of studies claim that seasonal shifts do not affect sleep duration or quality, while the rest claim that there is some correlation between the two. The magnitude of this correlation is a point of contention throughout the literature, with some studies suggesting that social factors may play a larger role in the duration and quality of sleep13,14,15,16,17,18,19,20,21,22,23,24,25.
A further inspection into existing studies reveals that the discrepancies in final findings largely result from variations in data tracking methods and small sample sizes. Particularly, studies that utilise self-reporting often end up citing no correlation between photoperiod and sleep13,16, while studies that use more objective measures such as EEG signals and wrist-wearables report a more clear link between the two14,15,17,18,19,20,21,23,24,25. Additional sources of bias in many existing studies possibly include unrepresentative samples and highly localised groups of people14,15,17,22,24,25.
We found that recent work by Mattingly et al.19 provides one of the most comprehensive examinations of seasonal sleep variation in real-world settings. Using over 51,000 nights of wearable-derived sleep data from 216 U.S. adults tracked continuously for a full year, the authors show that seasonal effects on sleep are small but robust. Sleep duration reliably decreased as day length increased: each additional hour of daylight shortened sleep by approximately 3.6 minutes, and sleep during spring was ~ 12 minutes shorter than in winter. Seasonal shifts were driven primarily by wake times rather than bedtimes—participants tended to wake earlier in spring and summer, while bedtimes shifted only modestly.
However, this work too suffers from a fundamental limitation: the dataset is geographically restricted. All participants lived within the United States, which spans a relatively narrow range of latitudes. As a result, their study cannot evaluate how seasonal sleep patterns scale across dramatically different photoperiod environments, such as the tropics with nearly constant day length, or high-latitude regions where day length can vary by more than ten hours across the year. In addition, the study could not disentangle environmental influences from cultural or country-level factors, because all participants shared broadly similar social, economic, and climatic contexts. Consequently, the extent to which seasonal effects on sleep differ across societies and latitudes remains unknown. The authors note these limitations explicitly, emphasising the need for larger and more diverse datasets that capture sleep behavior across multiple countries and environmental conditions.
In our work, we address these gaps by analysing wearable-derived sleep data from individuals across a wide range of countries, latitudes, and climatic environments. Because our participants span both hemispheres and occupy equatorial, mid-latitude, and high-latitude regions, the dataset captures the full global range of seasonal light environments. This diversity allows us to quantify how photoperiod effects scale with latitude and how seasonal sleep patterns vary across different cultural and climatic contexts—analyses that were not possible in prior single-country or region-restricted studies.
Specifically, using Bayesian hierarchical models, we test the following hypotheses:
H1: Within individuals, sleep duration decreases as day length increases, consistent with circadian entrainment to environmental light.
H2: The magnitude of the photoperiod effect increases with latitude, reflecting the stronger seasonal amplitude of photoperiod at higher latitudes.
H3: Countries exhibit systematic differences in photoperiod sensitivity even after adjusting for latitude, indicating that sociocultural and environmental contexts modulate seasonal sleep behavior.
These hypotheses provide a structured framework for quantifying global, environmental, and sociocultural influences on seasonal sleep variation.
All Bayesian hierarchical models were implemented in PyMC 5 using the No-U-Turn Sampler (NUTS), an adaptive Hamiltonian Monte Carlo algorithm well suited for high-dimensional hierarchical structures26. The model and priors were specified as shown in section 4.4.
Sampling used four parallel chains, each with 2000 tuning iterations and 2000 posterior draws, producing 8000 total posterior samples per parameter. A target acceptance rate of 0.90 was selected to ensure stable NUTS adaptation given the model’s depth.
To quantify the seasonal structure in sleep duration, we first estimated the effect of day length (photoperiod) and calendar season on nightly sleep while accounting for individual-, country-, and device-level heterogeneity. Table 1 summarises the posterior estimates for the key environmental predictors.
Table 1 Posterior summaries for core environmental and seasonal effects
We observed a clear and robust negative association between day length and sleep duration. The global photoperiod coefficient, β__P, indicated –0.073 minutes of sleep per additional minute of daylight, corresponding to –4.4 minutes of sleep every additional hour of daylight. This effect replicates prior studies and demonstrates that, at a global scale, longer days reliably shorten sleep duration.
In contrast, the seasonal indicator variables showed negligible additional explanatory power, and their 95% credible intervals overlapped zero. To assess whether photoperiod accounted for variation that might otherwise be attributed to seasonal indicators, we refit the model without latitude-dependent terms.
Despite this, seasonal coefficients remained small, with 95% credible intervals spanning zero, indicating minimal independent contribution of calendar season even when photoperiod was removed. In the no-photoperiod model, the number of user- and country-level intercepts whose credible intervals excluded zero increased from 436 to 452, reflecting a redistribution of explained variation toward stable baseline effects. This pattern suggests that coarse seasonal labels do not capture consistent global structure in sleep duration.
Evidence for seasonal sleep patterns in prior work may be driven in part by the geographically constrained nature of those studies. Within a single country or city, populations experience broadly synchronized seasonal transitions, allowing seasonal labels to serve as effective proxies for environmental and behavioural change. In globally distributed samples, by contrast, seasonal responses differ markedly across latitudes and cultures, limiting the ability of categorical season definitions to capture consistent structure in sleep behaviour.
Importantly, our analysis focuses exclusively on total sleep duration. Seasonal structure may still manifest in other dimensions of sleep that were not examined here, such as bedtimes, wake times, or night-to-night regularity. Prior work suggests that seasonal effects can operate through shifts in sleep timing rather than changes in total duration. Consequently, the absence of robust seasonal effects in sleep duration does not preclude meaningful seasonal patterning in sleep timing or circadian alignment, which remains an important direction for future work.
As expected, weekends were associated with substantially longer sleep. The posterior estimate for the weekend coefficient was strongly positive at around 13 minutes, with narrow uncertainty, validating the model’s sensitivity to known behavioural regularities.
The latitude-photoperiod interaction termwas estimated as show in Table 2.
Table 2 Posterior summary for the latitude–photoperiod interaction term (β__P__L)
Although directionally consistent with the hypothesis, the effect size is extremely small. Thus, we concluded that photoperiod-sensitivity does not scale with latitude.
We examined how individual countries differed in both their baseline sleep duration and their sensitivity to seasonal changes in daylight. This enabled us to capture real-world cultural, social, and environmental differences that cannot be explained by latitude alone.
Table 3 reports the subset of countries whose photoperiod slopes differ significantly from the global effect β__P. Although most countries cluster near the overall mean, eight nations show posterior photoperiod slopes whose credible intervals do not overlap the global effect (Fig. 1b, c). These deviations indicate potential heterogeneity in photoperiod responsiveness, though estimates for sparsely sampled countries should be interpreted cautiously.
Fig. 1: Scaled mean asleep time plotted against day length.
a Plot showing the effect with day-length and asleep time across the entire dataset. The lack of any trend here is expected due to deeply hierarchical structure of the dataset. Estimated trends start to appear when countries with significant offsets are looked at individually, such as in b, where countries have positive b__k values. These trends get even clearer in c, where the country-specific offset in the same direction as the global trend, i.e., a negative b__k value. Countries in both plots (b) and c are listed in the legend in order of size of effect.
Table 3 Posterior summaries for country-level photoperiod slope deviations b__k whose 95% credible intervals do not overlap the global photoperiod effect β__P
These country-level slopes are estimated under partial pooling, which stabilizes inference in the presence of highly uneven sample sizes but does not eliminate uncertainty arising from sparse within-country data. Consequently, posterior deviations for countries represented by few individuals should be interpreted as indicative rather than definitive, and primarily as signals for potential heterogeneity rather than precise population-level estimates.
Within these constraints, several countries show estimated photoperiod responses that differ in direction or magnitude from the global average. For example, Australia, Denmark, Luxembourg, and Switzerland exhibit steeper reductions in sleep duration with increasing day length, whereas Italy, Saudi Arabia, Spain, and the United Arab Emirates show weaker or attenuated responses. While these patterns persist after adjusting for latitude, they likely reflect a combination of sociocultural, behavioral, and environmental factors, as well as residual heterogeneity not captured by the available covariates.
Table 4 displays two representative examples of country-level random intercepts, v__k, which quantify deviations from the global average sleep duration after adjusting for environmental and individual factors. For example, Australia shows a positive intercept of roughly +35 minutes, while Brazil shows an even larger deviation of +41 minutes. Both credible intervals are fully above zero, indicating higher estimated baseline sleep duration relative to the global average within the modeled sample.
Table 4 Posterior summaries for selected country-level random intercepts v__k
All reported values had a \(\widehat{R}\) value of 1.00, with the only exception being v[Australia]. This deviation was small (\(\widehat{R}\) = 1.01) and was accompanied by a large effective sample size. The posterior summary is therefore still considered stable.
Figures 2 and 3 show caterpillar plots for country-specific deviations in photoperiod sensitivity and baseline sleep duration respectively. Figure 4 shows the average sleep duration across all countries in our dataset.
Fig. 2: Caterpillar plot showing b__k values for all 49 countries.
Intervals span HDI 2.5% and HDI 97.5%. While most of credible intervals overlap 0, a couple countries show very clear effects in response to photoperiod.
Fig. 3: Caterpillar plot showing v__k values for all 49 countries.
Intervals span HDI 2.5% and HDI 97.5%. Random intercepts values are much noisier than countries' photoperiod response, with only Brazil and Australia showing clear effects.
Fig. 4: Average sleep duration by country for each country present in our data.
Country-level heterogeneity is particularly visible in this map, even within a narrow range of latitudes such as the European continent. Furthermore, the lack of any consistent pattern provides further evidence that sleep durations are heavily dependent on cultural contexts.
Our findings extend prior single-country studies by examining how sleep duration varies with environmental light exposure across a geographically diverse, multi-country wearable dataset. Across nearly 185,000 nights of sleep recorded from individuals spanning 49 countries, we find a consistent association between photoperiod and sleep duration: nightly sleep decreases by approximately 4.4 minutes for each additional hour of daylight. This estimate closely aligns with results from longitudinal studies conducted within individual countries, suggesting that the relationship between day length and sleep duration generalises across a wide range of geographic and cultural contexts. In contrast, once individual- and country-level heterogeneity is explicitly modelled, categorical season indicators contribute little additional explanatory power, indicating that coarse calendar seasons do not capture consistent structure in sleep duration across globally distributed samples.
One implication of these results is that some seasonal patterns reported in earlier work may partly reflect the geographically constrained nature of those studies rather than intrinsic seasonal effects on sleep duration. Within a single country or city, populations experience broadly synchronised seasonal transitions in daylight, climate, and social schedules, allowing seasonal labels to act as effective proxies for environmental and behavioural change. In globally distributed samples, however, seasonal timing, amplitude, and behavioural responses vary substantially across latitudes and sociocultural contexts. Under these conditions, categorical season definitions are less effective at capturing shared structure in sleep duration, with much of the remaining variation instead absorbed by stable individual- and country-level baselines.
Despite large differences in seasonal light amplitude across latitudes, we find little evidence that photoperiod sensitivity itself scales meaningfully with latitude. The interaction between day length and latitude is statistically detectable but extremely small in magnitude, indicating that populations at higher latitudes do not exhibit substantially stronger sleep responses to changes in daylight than those closer to the equator. Instead, substantial heterogeneity emerges at the country level, with several nations exhibiting photoperiod sensitivities that differ significantly from the global mean even after adjusting for latitude. These differences likely reflect sociocultural and behavioural factors—such as work schedules, social norms, and patterns of artificial light exposure—that shape how populations respond to environmental light cues.
Several limitations should be considered when interpreting these findings. First, the hierarchical partial-pooling framework necessarily induces stronger shrinkage for countries with limited data. While this stabilises estimates and prevents noise-driven extremes, it also implies greater uncertainty for sparsely sampled regions and limits the reliability of fine-grained cross-country comparisons in those settings. Second, the sample consists exclusively of users of commercially available wearable devices, a group that is likely skewed toward higher socioeconomic status, greater health engagement, and higher digital literacy. Geographic variation in wearable adoption further contributes to imbalance across countries, increasing uncertainty in under-represented regions. Third, the dataset lacks key demographic and behavioural covariates, including age, sex, occupation, and chronotype; factors that are known to influence sleep duration and circadian responses to light. As a result, some of the heterogeneity attributed to individual or country-level effects may reflect unmeasured demographic or social differences rather than purely environmental factors.
Taken together, these results indicate that global sleep variation is driven primarily by stable individual and national baselines rather than by calendar season, and that photoperiod exerts a modest but reliable influence across diverse settings. By leveraging large-scale wearable data and hierarchical modelling, this study provides a foundation for future work aimed at disentangling environmental and sociocultural determinants of sleep at a global scale and highlights the potential of wearable technologies for studying human adaptation to the seasonal light-dark cycle.
Our final dataset consisted of 697 people and 185,143 nights of sleep. These people were spread out over 6 continents and 49 countries. The participants all wore health wearables, through which their sleep was tracked. Table 5 shows how many participants and nights of sleep were present from each country, with Figs. 5 presenting the number of sessions as a heatmap. Section 4.2 presents a detailed description of the rigorous cleaning and preprocessing steps used to create the dataset. All participants were users of commercially available wearable devices connected through the Terra platform. This allows Terra to collect data on daily health metrics, any activity sessions recorded on the health-wearable as well as sleep data, given that the user wears their wearable while sleeping. For any sleep session, this includes the start and end timestamp of the session, the timezone of the user’s wearable, a nap flag of the session, total time spent awake in bed, total time spent asleep, number of REM events during the sleep, light, deep, and REM durations, number of short and long interruptions during the session, sleep latency, wakeup latency, temperature, oxygen saturation, respiratory rate, snoring events and their durations, heart rate, HRV, and sleep efficiency. Some of this data is missing depending on what the device any user is wearing measures. For any activity session the user records, Terra also collects their GPS coordinates during their activity session. The device providers in this study consisted of Garmin, Apple Health, TrainingPeaks, Zepp, Coros, Suunto, and Polar. This sampling frame likely introduces a demographic bias: individuals who own such devices tend to come from higher socioeconomic backgrounds and generally exhibit greater engagement with personal health monitoring27,28,29,30,31. Supplementary Fig. 1 shows the distributions of these devices across participants in different countries. Supplementary Fig. 3 shows sleep duration distributions per device for countries that have similar latitudes and large sample sizes within our dataset. As Terra does not store information regarding age, sex, or gender, these were demographics we did not control for.
Fig. 5: Worldwide sleep distribution in our data.
The colour-scale shows number of sleep sessions on a logarithmic scale due to the large amount of variation in population distribution among countries in our dataset.
Table 5 Number of unique participants by country and percentage share of the sample
All participants were provided notice and consented to Terra’s processing of their data to operate, maintain and improve the Terra platform and to generate aggregated analytics and insights. The analysis was conducted on a de-identified dataset. Direct identifiers were removed or not made available to the researchers and results are reported only in aggregate. Where location signals were used, they were used only to derive country-level attributes for analysis and were not reported at an individual level. As the study involved secondary analysis of de-identified data with no participant contact or intervention, NHS Research Ethics Committee review was not required, as confirmed using the HRA decision tool.
The primary objectives of data cleaning were to remove sleep episodes not representative of consolidated nocturnal sleep, ensure that each participant contributed a sufficient and well-distributed set of observations across the year, and verify that assigned geographic locations accurately reflected true residence. Figure 6 provides a flowchart showing amount of entries kept and excluded at preprocessing step.
Fig. 6: Flowchart showing the number of sleep records retained and excluded at each preprocessing step, from all Terra data to the final dataset.
Exclusions include records removed for insufficient yearly recordings, missing location, mismatched timezones, naps, and abnormal deviations from data and physiology.
Most wearable-device providers explicitly label sleep episodes as naps. All entries identified as naps were removed to ensure that only consolidated nocturnal sleep periods were analyzed. To further eliminate artefactual or incomplete recordings, we applied a two-stage duration filtering procedure. First, for each participant, we used a median absolute deviation (MAD) rule to identify extreme outliers, excluding any sleep duration deviating by more than 3 MAD from the individual-level median. This approach adapts to each person’s typical sleep range and removes device-level segmentation errors without imposing arbitrary global thresholds. Second, we excluded episodes shorter than 3 hours, as such durations are physiologically implausible as consolidated nocturnal sleep in free-living adults and typically reflect fragmented or partially recorded sleep. After filtering, the empirical distribution of sleep durations fell within biologically plausible limits (3.00–14.88 hours).
To ensure that each participant contributed a sufficiently long and seasonally informative trajectory, we imposed three data-coverage requirements.
First, participants were required to have at least 305 days between their first and last recorded sleep entry. Exploratory analysis showed a marked decline in recording activity after this point, and because start dates were uniformly distributed across the calendar, a 305-day span provides potential coverage across all four seasons while avoiding unnecessary loss of participants with slightly incomplete annual records.
Second, to prevent highly sparse or uneven temporal sampling, we required each participant to contribute at least 100 distinct sleep episodes over their observation window. This ensures stable estimation of individual sleep averages and within-person photoperiod sensitivity.
Third, we required a minimum of 10 complete nights of sleep within every three-month interval, providing sufficient within-season stability while preserving geographic diversity that would be lost under stricter thresholds used in single-country studies. As a robustness check, we re-estimated the photoperiod-sleep models using an alternative requirement of 20 nights per interval and obtained nearly identical estimates of the global photoperiod and seasonal effects, photoperiod-latitude scaling, and cross-country variation in photoperiod sensitivity (Supplementary Tables 1, 2, and 3), indicating that our findings are not sensitive to the specific choice of the 10-night criterion.
The wearable devices used in this study record geolocation only during activity events and not during sleep, which required developing a procedure to infer each individual’s most likely country of residence and ensure spatial consistency between their activity and sleep records. To do this, we first sampled a set of random activity coordinates for each participant across the full year in which they contributed sleep data and assigned each sampled point to a country using standard geospatial lookup tools. Sleep records, in contrast, report only timezone information, so we cross-validated the inferred activity country with the timezone associated with each of the individual’s sleep episodes. This validation explicitly accounted for daylight saving time transitions, mid-year timezone shifts, and the fact that several countries span multiple timezones. Short-term travel does not influence country assignment, as sleep episodes with timezones that did not match the inferred activity country were removed.
As an additional empirical check on residence stability, we quantified how often activity events occurred within the inferred home country. Across all participants, 89.87% of activity events occurred in the assigned country, indicating strong internal consistency between inferred residence, habitual activity locations, and sleep-record timezones. After confirming this match, we designated the resulting country as the individual’s residence for analytical purposes and assigned each participant a representative latitude equal to the average latitude of that country. Although this introduces some noise for geographically large countries with substantial latitudinal variation (e.g., the United States or Canada), the resulting bias is expected to be minor for smaller or more compact nations. We are able to confirm this by looking at the mean absolute difference in sampled latitude and assigned latitude by country (Supplementary Table 4) as well as a boxplot of the same quantity across our data (Supplementary Fig. 2). Given the scale of the dataset and our focus on broad geographic and seasonal patterns rather than fine-grained spatial variation, this country-level approximation provides a robust balance between data constraints and analytical accuracy.
Day length was computed from latitude ϕ and day of year using a standard astronomical approximation based on solar declination32. For agiven latitude ϕ (in radians) and day of year d, solar declination δ was approximated as,
$$\delta (d)=23.4{4}^{\circ }\cdot \sin \left(\frac{2\pi (284+d)}{365}\right)$$
(1)
Using solar declination, the hour angle of the sun _ω_0 could be calculated as shown in equation 233.
$${\omega }_{0}=-\tan (\phi )\tan (\delta )$$
(2)
Day length in hours was then simply obtained by,
$${\rm{daylength}}(d,\phi )=\frac{24}{\pi }{\omega }_{0}$$
(3)
A key motivation for using Bayesian hierarchical modeling in this study arises from both the structure of the dataset and the nature of the scientific questions. Prior studies examining seasonal variation or light-sleep relationships typically rely on frequentist mixed-effects models applied to single-country cohorts with relatively balanced samples, where classical methods perform adequately. In contrast, the present dataset is globally sourced, highly unbalanced, and deeply hierarchical: nightly sleep episodes are nested within individuals, who are nested within 49 countries and multiple device providers, with participant counts varying by more than two orders of magnitude. Estimating country-level photoperiod effects under such imbalance requires a framework that remains stable even for sparsely represented countries, and Bayesian partial pooling provides this capability34,35. By treating country-specific effects as draws from a shared population distribution, the model borrows strength across countries, allowing well-sampled countries to retain data-driven estimates while shrinking sparsely sampled ones toward the global mean to avoid implausible values. This mechanism is essential for testing heterogeneity in photoperiod sensitivity and its scaling with latitude without having the global effect distorted by extreme values from small samples. Frequentist mixed-effects models are known to struggle in such settings—often yielding singular fits, unreliable variance estimates, or convergence issues—whereas the Bayesian framework provides robust partial pooling and full posterior distributions for all levels of the hierarchy, enabling principled uncertainty quantification across small, moderate, and large countries alike36,37.
To quantify global, latitudinal, and country-level variation in photoperiod sensitivity, we fit a Bayesian hierarchical regression model to nightly sleep duration. Let y__i__j__k denote the sleep duration (in hours) for night i of individual j living in country k. For each night, we compute the corresponding photoperiod value P__i__j__k (hours of daylight) based on the individual’s inferred latitude and date. We model sleep duration as:
$${y}_{ijk} \sim {\mathcal{N}}({\mu }_{ijk},{\sigma }_{y})$$
(4)
$${\mu }_{ijk}={\alpha }_{0}+{u}_{j}+{v}_{k}+{w}_{d(j)}+({\beta }_{P}+{b}_{k}){P}_{ijk}+{\beta }_{PL}({P}_{ijk}\cdot {L}_{k})+{\gamma }^{\top }{X}_{ijk}$$
(5)
Where, _α_0 is the global intercept, u__j, v__k, and w__d(j) are random intercepts for participant, country, and wearable device respectively. β__P is the global photoperiod effect, whereas b__k is the country-level photoperiod effect. β__P__L is the fixed effect encoding how photoperiod sensitivity changes with latitude, L__k. X__i__j__k is a vector of covariates including weekend indicators and seasonal controls and γ is the associated coefficient vector.
Bayesian estimation has previously been shown to be sensitive to bad prior design38,39. We used weakly informative priors chosen to regularize the hierarchical model while allowing the data to dominate inference. Normal priors were placed on the intercept and fixed effects,
$${\alpha }_{0},{\beta }_{P},{\beta }_{PL},\gamma \sim {\mathcal{N}}(\mu ,{\sigma }^{2})$$
(6)
providing symmetric shrinkage toward ÎĽ and preventing implausibly large effect sizes.
We calculated the mean duration and standard deviation within our own sleep dataset and found that the mean sleep was 444 minutes, while the standard deviation was 78 minutes. Hence, the prior for _α_0 was set to roughly match these numbers.
$${\alpha }_{0} \sim {\mathcal{N}}(450,9{0}^{2})$$
(7)
Although prior work suggests daylength may decrease sleep duration modestly, effect sizes vary across populations. To avoid introducing directional bias, we centered the β__P prior at 0 and allowed for a wide deviation.
$${\beta }_{P} \sim {\mathcal{N}}(0,1{0}^{2})$$
(8)
As the modulation of photoperiod sensitivity by latitude is poorly characterized in the literature, we used a broad prior.
$${\beta }_{PL} \sim {\mathcal{N}}(0,{5}^{2})$$
(9)
Finally, although seasonal effects are expected to be small, weekend effects are usually much larger. Hence, the prior for Îł allowed for a deviation of 30 minutes.
$$\gamma \sim {\mathcal{N}}(0,3{0}^{2})$$
(10)
The standard deviations of the user-level, country-level, and device-level random intercepts were assigned Half-Normal priors,
$${\sigma }_{user},{\sigma }_{country},{\sigma }_{device} \sim {\rm{Half}}-{\rm{Normal}}(\mu ,\tau )$$
(11)
which constrain variance components to be positive and discourage extreme over-dispersion that can arise in weakly constrained hierarchical models.
Values for user intercepts were inferred through results in Mattingly et al.19, while country and device variation were chosen by looking at deviations within Terra’s data.
$${\sigma }_{user} \sim {\rm{Half}}-{\rm{Normal}}(0,60)$$
(12)
$${\sigma }_{country} \sim {\rm{Half}}-{\rm{Normal}}(0,30)$$
(13)
$${\sigma }_{device} \sim {\rm{Half}}-{\rm{Normal}}(0,20)$$
(14)
Night-to-night residual variability in sleep duration was modeled using a Half-Student-t prior, with ν = 3,
$${\sigma }_{y} \sim {\rm{Half-}}{t}_{v}(0,90)$$
(15)
to allow for occasional heavy-tailed deviations in sleep duration while maintaining overall model robustness.
These prior choices follow established recommendations for hierarchical models, which emphasize weakly informative distributions to stabilize variance estimation while avoiding undue influence on posterior inference40.
The datasets generated and analysed during the current study are not publicly available due to due to privacy and data protection restrictions. Aggregated summary statistics, including country-, device-, and month-level sleep duration estimates, are available from the corresponding author upon reasonable request.
Code for this paper is available upon reasonable request.
Johnson, C. H. & Rust, M. J.Circadian rhythms in bacteria and microbiomes, vol. 409 (Springer, Cham, 2021).
King, D. P. & Takahashi, J. S. Molecular genetics of circadian rhythms in mammals. Annu. Rev. Neurosci. 23, 713–742 (2000).
Voigt, R., Forsyth, C., Green, S., Engen, P. & Keshavarzian, A. Circadian rhythm and the gut microbiome. Int. Rev. Neurobiol. 131, 193–205 (2016).
Tosini, G. Melatonin circadian rhythm in the retina of mammals. Chronobiol. Int. 17, 599–612 (2000).
Vitaterna, M. H., Takahashi, J. S. & Turek, F. W. Overview of circadian rhythms. Alcohol Res. Health 25, 85–93 (2001).
Xu, S., Akioma, M. & Yuan, Z. Relationship between circadian rhythm and brain cognitive functions. Front. Optoelectron. 14, 278–287 (2021).
Panda, S. Circadian physiology of metabolism. Science 354, 1008–1015 (2016).
Kim, T. W., Jeong, J.-H. & Hong, S.-C. The impact of sleep and circadian disturbance on hormones and metabolism. Int. J. Endocrinol. 2015, 591729 (2015).
Walker, W. H., Walton, J. C., DeVries, A. C. & Nelson, R. J. Circadian rhythm disruption and mental health. Transl. Psychiatry 10, 28 (2020).
Blume, C., Garbazza, C. & Spitschan, M. Effects of light on human circadian rhythms, sleep and mood. Somnologie 23, 147–156 (2019).
[Article](https://link.springer.com/doi/10.1007/s11818-019-00215-x) [PubMed](http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&dopt=Abstract&list_uids=31534436) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=Effects%20of%20light%20on%20human%20circadian%20rhythms%2C%20sleep%20and%20mood&journal=Somnologie&doi=10.1007%2Fs11818-019-00215-x&volume=23&pages=147-156&publication_year=2019&author=Blume%2CC&author=Garbazza%2CC&author=Spitschan%2CM)
[Article](https://doi.org/10.2150%2Fjlve.IEIJ130000503) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=An%20overview%20of%20the%20effects%20of%20light%20on%20human%20circadian%20rhythms%3A%20Implications%20for%20new%20light%20sources%20and%20lighting%20systems%20design&journal=J.%20Light%20Vis.%20Environ.&doi=10.2150%2Fjlve.IEIJ130000503&volume=37&pages=51-61&publication_year=2013&author=Figueiro%2CMG)
[Article](https://link.springer.com/doi/10.1007/BF00584704) [CAS](https://www.nature.com/articles/cas-redirect/1:STN:280:DyaL3s7mvVyjtQ%3D%3D) [PubMed](http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&dopt=Abstract&list_uids=6835810) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=Bright%20light%20affects%20human%20circadian%20rhythms&journal=Pfl%C3%BCgers%20Arch.&doi=10.1007%2FBF00584704&volume=396&pages=85-87&publication_year=1983&author=Wever%2CRA&author=Pol%C3%A1%C5%A1ek%2CJ&author=Wildgruber%2CCM)
[Article](https://doi.org/10.1111%2Fj.1365-2869.2011.00982.x) [PubMed](http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&dopt=Abstract&list_uids=22074234) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=Associations%20between%20seasonal%20variations%20in%20day%20length%20%28photoperiod%29%2C%20sleep%20timing%2C%20sleep%20quality%20and%20mood%3A%20a%20comparison%20between%20ghana%20%285%29%20and%20norway%20%2869%29&journal=J.%20Sleep.%20Res.&doi=10.1111%2Fj.1365-2869.2011.00982.x&volume=21&pages=176-184&publication_year=2012&author=Friborg%2CO&author=Bjorvatn%2CB&author=Amponsah%2CB&author=Pallesen%2CS)
[Article](https://doi.org/10.1210%2Fjcem-73-6-1276) [CAS](https://www.nature.com/articles/cas-redirect/1:CAS:528:DyaK38Xns1yhtA%3D%3D) [PubMed](http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&dopt=Abstract&list_uids=1955509) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=The%20durations%20of%20human%20melatonin%20secretion%20and%20sleep%20respond%20to%20changes%20in%20daylength%20%28photoperiod%29&journal=J.%20Clin.%20Endocrinol.%20Metab.&doi=10.1210%2Fjcem-73-6-1276&volume=73&pages=1276-1280&publication_year=1991&author=Wehr%2CTA)
[Article](https://link.springer.com/doi/10.1007/BF01930461) [CAS](https://www.nature.com/articles/cas-redirect/1:STN:280:DyaK387pt1Wrug%3D%3D) [PubMed](http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&dopt=Abstract&list_uids=1547849) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=Seasonality%20in%20human%20sleep&journal=Experientia&doi=10.1007%2FBF01930461&volume=48&pages=231-233&publication_year=1992&author=Kohsaka%2CM&author=Fukuda%2CN&author=Honma%2CK&author=Honma%2CS&author=Morita%2CN)
[Article](https://doi.org/10.3109%2F07420528.2011.623978) [PubMed](http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&dopt=Abstract&list_uids=22080737) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=The%20pattern%20of%20entrainment%20of%20the%20human%20sleep-wake%20rhythm%20by%20the%20natural%20photoperiod%20in%20the%20north&journal=Chronobiol.%20Int.&doi=10.3109%2F07420528.2011.623978&volume=28&pages=921-929&publication_year=2011&author=Borisenkov%2CMF)
[Article](https://doi.org/10.1111%2Fjpi.12843) [CAS](https://www.nature.com/articles/cas-redirect/1:CAS:528:DC%2BB38XjtVOjur7M) [PubMed](http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&dopt=Abstract&list_uids=36404490) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=Daytime%20light%20exposure%20is%20a%20strong%20predictor%20of%20seasonal%20variation%20in%20sleep%20and%20circadian%20timing%20of%20university%20students&journal=J.%20Pineal%20Res.&doi=10.1111%2Fjpi.12843&volume=74&publication_year=2023&author=Dunster%2CGP)
[Article](https://doi.org/10.1016%2Fj.sleep.2025.106840) [PubMed](http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&dopt=Abstract&list_uids=41067032) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=Associations%20of%20latitude%20and%20photoperiod%20with%20sleep%20duration%20in%20a%20yearlong%20study%20of%20us%20physicians&journal=Sleep%20Med.&doi=10.1016%2Fj.sleep.2025.106840&volume=136&publication_year=2025&author=Ross%2CKE&author=Pereira-Lima%2CK&author=Shedden%2CK&author=Burmeister%2CM&author=Sen%2CS)
[Article](https://doi.org/10.1038%2Fs41746-021-00435-2) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=The%20effects%20of%20seasons%20and%20weather%20on%20sleep%20patterns%20measured%20through%20longitudinal%20multimodal%20sensing&journal=NPJ%20Digital%20Med.&doi=10.1038%2Fs41746-021-00435-2&volume=4&publication_year=2021&author=Mattingly%2CSM)
[Article](https://doi.org/10.1080%2F07420528.2018.1443118) [CAS](https://www.nature.com/articles/cas-redirect/1:CAS:528:DC%2BC1cXmsVegurg%3D) [PubMed](http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&dopt=Abstract&list_uids=29589960) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=A%20longitudinal%20large-scale%20objective%20sleep%20data%20analysis%20revealed%20a%20seasonal%20sleep%20variation%20in%20the%20japanese%20population&journal=Chronobiol.%20Int.&doi=10.1080%2F07420528.2018.1443118&volume=35&pages=933-945&publication_year=2018&author=Hashizaki%2CM&author=Nakajima%2CH&author=Shiga%2CT&author=Tsutsumi%2CM&author=Kume%2CK)
[Article](https://doi.org/10.1371%2Fjournal.pone.0215345) [CAS](https://www.nature.com/articles/cas-redirect/1:CAS:528:DC%2BC1MXps1Sgur8%3D) [PubMed](http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&dopt=Abstract&list_uids=30998709) [PubMed Central](http://www.ncbi.nlm.nih.gov/pmc/articles/PMC6472875) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=Seasonal%20changes%20in%20sleep%20duration%20and%20sleep%20problems%3A%20A%20prospective%20study%20in%20japanese%20community%20residents&journal=PLoS%20One&doi=10.1371%2Fjournal.pone.0215345&volume=14&publication_year=2019&author=Suzuki%2CM)
[Article](https://doi.org/10.1016%2Fj.buildenv.2023.110785) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=The%20impact%20of%20bedroom%20environment%20on%20sleep%20quality%20in%20winter%20and%20summer%20in%20the%20qinghai-tibetan%20plateau&journal=Build.%20Environ.&doi=10.1016%2Fj.buildenv.2023.110785&volume=244&publication_year=2023&author=Guo%2CC)
[Article](https://doi.org/10.3389%2Ffnins.2023.1105233) [PubMed](http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&dopt=Abstract&list_uids=36875666) [PubMed Central](http://www.ncbi.nlm.nih.gov/pmc/articles/PMC9981644) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=Seasonality%20of%20human%20sleep%3A%20Polysomnographic%20data%20of%20a%20neuropsychiatric%20sleep%20clinic&journal=Front.%20Neurosci.&doi=10.3389%2Ffnins.2023.1105233&volume=17&publication_year=2023&author=Seidler%2CA&author=Weihrich%2CKS&author=Bes%2CF&author=Zeeuw%2CJ&author=Kunz%2CD)
[Article](https://link.springer.com/doi/10.1007/s11325-022-02620-3) [PubMed](http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&dopt=Abstract&list_uids=35469371) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=Seasonal%20variation%20and%20sleep%20patterns%20in%20a%20hot%20climate%20arab%20region&journal=Sleep.%20Breath.&doi=10.1007%2Fs11325-022-02620-3&volume=27&pages=355-362&publication_year=2023&author=Lawati%2CI&author=Zadjali%2CF&author=Al-Abri%2CMA)
[Article](https://doi.org/10.1111%2Fjsr.13453) [PubMed](http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&dopt=Abstract&list_uids=34355440) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=Seasonal%20variations%20in%20sleep%20duration%20and%20sleep%20complaints%3A%20a%20swedish%20cohort%20study%20in%20middle-aged%20and%20older%20individuals&journal=J.%20Sleep.%20Res.&doi=10.1111%2Fjsr.13453&volume=31&publication_year=2022&author=Titova%2COE&author=Lindberg%2CE&author=Elmst%C3%A5hl%2CS&author=Lind%2CL&author=Benedict%2CC)
[Google Scholar](http://scholar.google.com/scholar_lookup?&title=The%20no-u-turn%20sampler%3A%20adaptively%20setting%20path%20lengths%20in%20hamiltonian%20monte%20carlo&journal=J.%20Mach.%20Learn.%20Res.&volume=15&pages=1593-1623&publication_year=2014&author=Hoffman%2CMD&author=Gelman%2CA)
[Article](https://doi.org/10.1016%2Fj.chb.2016.06.040) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=Consumer%20valuation%20of%20the%20wearables%3A%20The%20case%20of%20smartwatches&journal=Computers%20Hum.%20Behav.&doi=10.1016%2Fj.chb.2016.06.040&volume=63&pages=899-905&publication_year=2016&author=Jung%2CY&author=Kim%2CS&author=Choi%2CB)
[Article](https://doi.org/10.3390%2Fsu13116499) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=To%20buy%20or%20not%20to%20buy%3A%20how%20behavioral%20habits%20affect%20the%20repurchase%20intention%20of%20cobranded%20wearable%20fitness%20technology&journal=Sustainability&doi=10.3390%2Fsu13116499&volume=13&publication_year=2021&author=Mohammadi%2CS&author=Abdolmaleki%2CH&author=Khodadad%20Kashi%2CS&author=Bernal-Garc%C3%ADa%2CA&author=G%C3%A1lvez-Ruiz%2CP)
[Article](https://doi.org/10.17010%2Fijom%2F2023%2Fv53%2Fi12%2F173354) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=Unveiling%20millennials%E2%80%99%20motivations%20to%20purchase%20smartwatches&journal=Indian%20J.%20Mark.&doi=10.17010%2Fijom%2F2023%2Fv53%2Fi12%2F173354&volume=53&pages=63-81&publication_year=2023&author=Shamsi%2CMS&author=Verma%2CA&author=Verma%2CM)
[Google Scholar](http://scholar.google.com/scholar_lookup?&title=A%20survey%20on%20wearable%20sensor-based%20systems%20for%20health%20monitoring%20and%20prognosis&journal=IEEE%20Trans.%20Syst.%2C%20Man%2C%20Cybern.%2C%20Part%20C.%20%28Appl.%20Rev.%29&volume=40&pages=1-12&publication_year=2009&author=Pantelopoulos%2CA&author=Bourbakis%2CNG)
[Article](https://doi.org/10.1016%2Fj.cmpb.2016.12.009) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=Consumers%E2%80%99%20perceived%20attitudes%20to%20wearable%20devices%20in%20health%20monitoring%20in%20china%3A%20A%20survey%20study&journal=Computer%20methods%20Prog.%20biomedicine&doi=10.1016%2Fj.cmpb.2016.12.009&volume=140&pages=131-137&publication_year=2017&author=Wen%2CD&author=Zhang%2CX&author=Lei%2CJ)
[Google Scholar](http://scholar.google.com/scholar_lookup?&title=Determination%20of%20the%20declination%20of%20the%20sun%20on%20a%20given%20day&journal=Eur.%20J.%20Phys.%20Educ.&volume=3&pages=17-22&publication_year=2012&author=Shivalingaswamy%2CT&author=Kagali%2CB)
[Article](https://doi.org/10.1093%2Fbioinformatics%2F13.4.479) [CAS](https://www.nature.com/articles/cas-redirect/1:STN:280:DyaK2svivFCitA%3D%3D) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=Calculation%20of%20daylength&journal=Bioinformatics&doi=10.1093%2Fbioinformatics%2F13.4.479&volume=13&pages=479-480&publication_year=1997&author=Amthor%2CJS)
[Article](https://doi.org/10.1214%2F10-STS308B) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=Bayesian%20statistics%20then%20and%20now&journal=Stat.%20Sci.&doi=10.1214%2F10-STS308B&volume=25&pages=162-165&publication_year=2010&author=Gelman%2CA)
Gelman, A., Hill, J. & Yajima, M. Why we (usually) don’t have to worry about multiple comparisons (2009). 0907.2478.
Hong, H. et al. Comparing bayesian and frequentist approaches for multiple outcome mixed treatment comparisons. Med. Decis. Mak. 33, 702–714 (2013).
[Article](https://doi.org/10.1177%2F0272989X13481110) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=Comparing%20bayesian%20and%20frequentist%20approaches%20for%20multiple%20outcome%20mixed%20treatment%20comparisons&journal=Med.%20Decis.%20Mak.&doi=10.1177%2F0272989X13481110&volume=33&pages=702-714&publication_year=2013&author=Hong%2CH)
[Article](https://doi.org/10.1207%2Fs15327906mbr3904_4) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=Evaluation%20of%20the%20bayesian%20and%20maximum%20likelihood%20approaches%20in%20analyzing%20structural%20equation%20models%20with%20small%20sample%20sizes&journal=Multivar.%20Behav.%20Res.&doi=10.1207%2Fs15327906mbr3904_4&volume=39&pages=653-686&publication_year=2004&author=Lee%2CS-Y&author=Song%2CX-Y)
[Article](https://doi.org/10.1080%2F10705511.2016.1186549) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=On%20using%20bayesian%20methods%20to%20address%20small%20sample%20problems&journal=Struct.%20Equ.%20Modeling%3A%20A%20Multidiscip.%20J.&doi=10.1080%2F10705511.2016.1186549&volume=23&pages=750-773&publication_year=2016&author=McNeish%2CD)
[Article](https://doi.org/10.1080%2F10705511.2019.1577140) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=Bayesian%20versus%20frequentist%20estimation%20for%20structural%20equation%20models%20in%20small%20sample%20contexts%3A%20A%20systematic%20review&journal=Struct.%20Equ.%20Modeling%3A%20A%20Multidiscip.%20J.&doi=10.1080%2F10705511.2019.1577140&volume=27&pages=131-161&publication_year=2020&author=Smid%2CSC&author=McNeish%2CD&author=Mio%C4%8Devi%C4%87%2CM&author=Schoot%2CR)
[Article](https://doi.org/10.1214%2F06-BA117A) [Google Scholar](http://scholar.google.com/scholar_lookup?&title=Prior%20distributions%20for%20variance%20parameters%20in%20hierarchical%20models&journal=Bayesian%20Anal.&doi=10.1214%2F06-BA117A&volume=1&pages=515-533&publication_year=2006&author=Gelman%2CA)
Author notes
Terra API, Beaconsfield Street, London, UK
Faraaz Akhtar, Alistair Brownlee & Cameron Crawford
Authors
F.A. conceptualised the study, developed the methodology, collected and curated the data, performed the formal analysis, and wrote the original manuscript. A.B. proposed the initial study idea and contributed to data preprocessing and manuscript review. C.C. contributed to data preprocessing and manuscript review. A.B. and C.C. contributed equally to this work. All authors approved the final manuscript.
Correspondence to Faraaz Akhtar.
The authors are employees of Terra API, which provides the wearable data infrastructure used in this study.
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
Akhtar, F., Brownlee, A. & Crawford, C. Variation in sleep duration across latitudes and countries: a Bayesian hierarchical analysis of wearable data. npj Biol Timing Sleep 3, 27 (2026). https://doi.org/10.1038/s44323-026-00092-2
Received: 11 January 2026
Accepted: 08 June 2026
Published: 22 June 2026
Version of record: 22 June 2026