Published on in Vol 8 (2024)

Preprints (earlier versions) of this paper are available at https://preprints.jmir.org/preprint/53441, first published .
Precision Assessment of Real-World Associations Between Stress and Sleep Duration Using Actigraphy Data Collected Continuously for an Academic Year: Individual-Level Modeling Study

Precision Assessment of Real-World Associations Between Stress and Sleep Duration Using Actigraphy Data Collected Continuously for an Academic Year: Individual-Level Modeling Study

Precision Assessment of Real-World Associations Between Stress and Sleep Duration Using Actigraphy Data Collected Continuously for an Academic Year: Individual-Level Modeling Study

Original Paper

1Department of Psychology, Harvard University, Cambridge, MA, United States

2Center for Brain Science, Harvard University, Cambridge, MA, United States

3Institute for Technology in Psychiatry, McLean Hospital, Belmont, MA, United States

4Department of Psychiatry, Harvard Medical School, Boston, MA, United States

5Department of Biostatistics, Harvard University, Boston, MA, United States

6Athinoula A Martinos Center for Biomedical Imaging, Massachusetts General Hospital, Charlestown, MA, United States

*these authors contributed equally

Corresponding Author:

Constanza M Vidal Bustamante, PhD

Department of Psychology

Harvard University

52 Oxford Street

Northwest Building, East Wing, Room 295.06

Cambridge, MA, 02138

United States

Phone: 1 617 384 8230

Email: constanzavidalbustamante@gmail.com


Background: Heightened stress and insufficient sleep are common in the transition to college, often co-occur, and have both been linked to negative health outcomes. A challenge concerns disentangling whether perceived stress precedes or succeeds changes in sleep. These day-to-day associations may vary across individuals, but short study periods and group-level analyses in prior research may have obscured person-specific phenotypes.

Objective: This study aims to obtain stable estimates of lead-lag associations between perceived stress and objective sleep duration in the individual, unbiased by the group, by developing an individual-level linear model that can leverage intensive longitudinal data while remaining parsimonious.

Methods: In total, 55 college students (n=6, 11% second-year students and n=49, 89% first-year students) volunteered to provide daily self-reports of perceived stress via a smartphone app and wore an actigraphy wristband for the estimation of daily sleep duration continuously throughout the academic year (median usable daily observations per participant: 178, IQR 65.5). The individual-level linear model, developed in a Bayesian framework, included the predictor and outcome of interest and a covariate for the day of the week to account for weekly patterns. We validated the model on the cohort of second-year students (n=6, used as a pilot sample) by applying it to variables expected to correlate positively within individuals: objective sleep duration and self-reported sleep quality. The model was then applied to the fully independent target sample of first-year students (n=49) for the examination of bidirectional associations between daily stress levels and sleep duration.

Results: Proof-of-concept analyses captured expected associations between objective sleep duration and subjective sleep quality in every pilot participant. Target analyses revealed negative associations between sleep duration and perceived stress in most of the participants (45/49, 92%), but their temporal association varied. Of the 49 participants, 19 (39%) showed a significant association (probability of direction>0.975): 8 (16%) showed elevated stress in the day associated with shorter sleep later that night, 5 (10%) showed shorter sleep associated with elevated stress the next day, and 6 (12%) showed both directions of association. Of note, when analyzed using a group-based multilevel model, individual estimates were systematically attenuated, and some even reversed sign.

Conclusions: The dynamic interplay of stress and sleep in daily life is likely person specific. Paired with intensive longitudinal data, our individual-level linear model provides a precision framework for the estimation of stable real-world behavioral and psychological dynamics and may support the personalized prioritization of intervention targets for health and well-being.

JMIR Form Res 2024;8:e53441

doi:10.2196/53441

Keywords



Background

The transition to college is often accompanied by elevated stress and insufficient sleep [1-3], both of which have been found to impact daily functioning and, upon repeated exposure, to be associated with negative health outcomes ranging from internalizing disorders, including anxiety and depression, to cardiac and metabolic disease [4-9]. A better understanding of the dynamic day-to-day interplay between perceived stress and sleep duration could inform the mechanisms of their downstream impacts and the development of interventions to prevent or mitigate them [10-14]. Nevertheless, only a few studies have collected daily observations to evaluate within-person associations between stress responses and sleep duration, and their results are mixed: some studies report that heightened stress is followed by shorter sleep that night but not vice versa [15,16], others report that shorter sleep is followed by heightened stress the next day but not vice versa [17], and yet others report bidirectional relationships [18,19].

Inconsistent findings in stress-sleep associations might be at least partially explained by 2 interrelated methodological limitations, both of which are addressed by the individual-level modeling approach presented in this study. First, existing longitudinal studies have aggregated individual observations collected over short study periods of ≤14 days, thus limiting the estimation of stable associations that are robust to changing environmental demands (eg, first week of the semester vs final examinations period). Thanks to the adoption of digital phenotyping tools such as wearables and smartphones, research designs that sample individuals over much longer periods of time are increasingly feasible [20-22]. Sleep duration can now be passively tracked through continuous actigraphy sensing over months and even years, while perceived stress levels can be probed via brief daily smartphone-based surveys, with high compliance rates in student samples and small participant burden [23-25].

Moreover, the prevailing focus on group modeling and sample-level effects obscures the possibility that day-to-day associations between perceived stress and sleep duration may vary across individuals; for instance, it is possible that in certain individuals, getting less sleep than usual has no significant impact on stress levels the following day, but heightened stress during the day leads to shorter sleep duration later that night, while the opposite pattern might be true for others. Even when group-level models allow for individual-level estimates, such as in multilevel models with random effects, the degree to which the individual estimates are pulled toward the group (a shrinkage effect) is different for each individual based on the amount of data they provide, thus reducing the individual tailoring in a nonuniform manner [26].

Individual-level linear models (iLMs), which are fitted over a single individual’s intensive longitudinal observations, may offer a critical alternative to the estimation of stress-sleep associations. Compared to group-level approaches, iLMs provide estimates of phenotypes that are tailored to each person’s data and unbiased by the group [27-30]. They may also be more readily applicable in real-world contexts, where a clinician might use a precision health approach to evaluate and support each individual patient based on their personal data rather than on a hypothetical average patient [31-34]. Of note, individual-level approaches can also contribute to conclusions at the group or population level, such as by estimating the prevalence of each individually derived phenotype, rather than blurring across individuals, to arrive at a central tendency that might not accurately represent many of the included individuals.

Objectives

In this study, we introduce a novel iLM approach that leverages daily observations collected over a full academic year for the assessment of day-to-day associations between actigraphy-derived sleep duration and self-reported stress levels in first-year college students. Our aims were 2-fold. First, we used a pilot data set to develop and validate a parsimonious iLM that estimates concurrent or lagged associations between 2 daily variables of interest while accounting for the weekly structure in student behavior. We then leveraged this iLM for the target examination of bidirectional day-to-day associations between perceived stress and objective sleep duration in an independent data set of 49 first-year college students. We expected a negative association for most participants—such that higher stress levels are associated with shorter sleep—but we also anticipated that some participants might show positive or null associations. We further hypothesized that the lead-lag relationship between perceived stress and sleep duration (ie, which of the 2 temporally precedes the other) would vary across individuals such that, for some, elevated stress would associate with shorter sleep that night; for others, shorter sleep would associate with elevated stress the next day; and for still others, both directions of association would be identified.


Participants

Pilot Group

A total of 6 undergraduate students returning for their sophomore year volunteered for a year-long study (all aged 19 years; n=3, 50% women and n=3, 50% men). All had participated in a previous pilot study in our laboratory during their first year of college and were known to be compliant. These 6 pilot participants provided data to develop the statistical models that were then applied to the new group of target participants described in the next subsection. The pilot participants enrolled for this study during the first 2 weeks of their fall semester. As in the case of the target participants, they were required to be taking full-time classes and own a smartphone compatible with the study smartphone app, Beiwe, which is part of the open-source Beiwe platform for digital phenotyping [35]. Available and missing data information at the participant level is provided in Figure S1 in Multimedia Appendix 1. Given our focus on individual-level models where each person serves as their own baseline, and there is no aggregation across participants, students were not excluded for current or past psychiatric disorders or medication use, and nor were they excluded if they began treatment or medication for mental health issues during the study.

Target Group

In total, 49 undergraduate students beginning their first year of college volunteered for a year-long study (aged 18-19 years; mean age 18.1, SD 0.24 y; n=25, 51% women and n=24, 49% men). We have previously reported data from these participants [24]. Participants living on campus were recruited via flyers posted on campus boards and distributed via email lists and were enrolled during the first 2 weeks concurrently with the pilot participants. Enrollment criteria were the same as for the pilot participants other than the fact that the target first-year participants were all new to the university. Initially, 68 participants enrolled, of whom 19 (28%) were excluded based on issues with data acquisition, including early withdrawal from the study (n=7, 37%), technical failure of the actigraphy data (n=1, 5%), poor-quality actigraphy data (n=2, 11%), and completion of <50% of the daily surveys (n=9, 47%). Of the 49 participants in the final sample, 2 (4%) identified as American Indian, 5 (10%) as Asian, 7 (14%) as Black, 31 (63%) as White, and 2 (4%) as mixed race. Furthermore, 12% (6/49) reported prior diagnosis of a psychiatric disorder (including anxiety, depression, and attention-deficit/hyperactivity disorder), and 8% (4/49) maintained active diagnoses. The 49 first-year students had not yet declared their area of study, but they reported their desired future occupation to be medicine (n=15, 31%), business or finance (n=7, 14%), academia or other research (n=6, 12%), engineering (n=5, 10%), policy or government (n=5, 10%), law (n=4, 8%), and other or undecided (n=7, 14%). Of the 49 participants, 46 (94%) were iPhone users, whereas 3 (6%) used Android mobile phones.

Study Design

As previously reported in our study [24], this intensive longitudinal observational study collected passive and active data as participants engaged in their lives over a full academic year, extending a few days into the summer break. Both pilot and target participants completed smartphone-based daily surveys and a voice-recorded diary; wore an actigraphy wristband (GENEActiv Original; Activinsights Ltd) for continuous activity and sleep monitoring for the duration of the study; completed a battery of web-based questionnaires at the beginning, middle, and end of the study; and attended brief in-person check-ins every 3 to 4 weeks.

Ethical Considerations

Informed consent and all study procedures and methods were approved by the institutional review board of Harvard University (IRB16-1230). All participants completed an in-person informed consent session where study procedures were explained, and any questions were clarified. Participants were informed that they could withdraw their study participation at any time. Participants were compensated US $1 per each daily survey they submitted, US $1 per day for continuously wearing the actigraphy wristband, and US $20 per hour for web-based surveys and attending in-person visits. Milestone bonus payments for completing half of the study (US $100) and the full study (US $300) were also provided to compensate participants for their continued compliance.

Study data collected across devices were stored and automatically backed up in a secure data warehouse configured to automatically import data from various collection streams. All data were kept as securely as possible and were only accessible to study staff. Participants’ data were labeled with a randomly generated participant ID. Personally identifying information, such as names and contact information, were kept separate from all other collected data in a locked file cabinet (in a locked office, behind an ID card–secured suite during off-hours) and in a password-protected database.

Measures and Quality Control

Objective Sleep Duration

Daily sleep duration reflects the number of minutes between the estimated start and end of the day’s longest detected sleep episode. As redescribed from our original study [24], sleep duration was derived from the accelerometer data collected through the GENEActiv Original actigraphy wristband and analyzed via the deep phenotyping of sleep processing pipeline [36]. Participants wore the wristband on their nondominant wrist continuously, including during sleep and when bathing. Triaxial acceleration was collected with a sampling frequency of 30 Hz during the academic semesters and 10 Hz during the winter break (to extend battery life and memory while participants were away from campus). Participants were instructed to press the wristband’s button when they began trying to fall sleep at night and immediately after they awoke in the morning. Individuals exchanged their wristband for a fully charged one with reset memory at the in-person check-ins.

The deep phenotyping of sleep (DPSleep) processing pipeline was applied to the raw actigraphy data to detect the major sleep episode for each day [36]. The pipeline first converted the accelerometer data to minute-based activity estimates, removed the minutes when the individual was not wearing the device, and then estimated the major sleep episode based on a sliding window. Days where one of the boundaries of the sleep episode (ie, rises in relative activity both before and after a period of lower activity) could not be detected due to missing data were labeled as unusable. Two independent trained raters examined the automatically detected start and end times and the usability label of each sleep episode against the minute-based activity levels and the participant button presses when available. When necessary, they adjusted the automatic times and labels. Any disagreements between the 2 raters’ assessments were reviewed by the research team and resolved through discussion. A full description of the DPSleep processing pipelines applied to the actigraphy data, including quality control steps, can be found in the study by Rahimi-Eichi et al [36].

All data that passed quality control were included in analysis, including days with no detected sleep episode (ie, with no extended periods of lower relative activity).

Daily Telephone-Based Surveys

Smartphone surveys were administered via the Beiwe app [35]. Each night before bed, participants completed a 46-item self-report survey related to their daily lives. As described originally in our study [24], the questions assessed a range of behaviors and internal states over the past 24 hours, including sleep quality, stress levels and sources, positive and negative affect, general physical health, daily consumption habits, studying behaviors, and sociability and support [24]. This paper reports analyses using 2 survey questions selected a priori that probed daily subjective sleep quality and perceived stress. The sleep quality question asked “How did you sleep last night?” and was answered on a 5-point scale (1=terribly: little or no sleep, 2=not so well: got some sleep but not enough, 3=sufficient: got enough sleep to function, 4=good: got a solid night’s sleep and felt well rested, and 5=exceptional: one of my best nights of sleep). The perceived stress question asked “How much did you feel stressed over the past 24 hours?” and was also answered on a 5-point scale (1=very slightly or not at all, 2=a little, 3=moderately, 4=quite a bit, and 5=extremely).

Surveys submitted between 5 PM (local time) on the day the survey opened and 6 AM the following day were considered to be on time. Surveys submitted after 6 AM the day after the survey was prompted were marked as missing. A participant was included in analysis if they were compliant with at least 100 daily surveys across the data collection period, and only on-time surveys from these participants were included.

Analytical Approach

Development of the iLM

An iLM was developed on the intensive day-level longitudinal data from the 6 pilot participants to test person-specific day-to-day behavioral associations. The iLM framework allows for individually tailored estimates by treating each day as the unit of observation and the individual as the population, as opposed to each individual as the unit of observation used to estimate the general population. An individual’s observed time series data can be understood as just one realization of a stochastic process whose data-generating process we are trying to model and understand [37], in this case through linear models. The intercept and slope estimates are unique to the individual, and we interpret them as a proxy for the individual’s phenotype. Of note, in this framework, each individual model can be interpreted as an independent test of the hypothesized association (eg, is shorter sleep than usual associated with heightened perceived stress the following day?).

The model was structured to be parsimonious while accounting for the nonindependence of the daily measures and the temporal structure imposed by the academic schedule. The day of the week was included as a categorical covariate to account for weekend versus weekday effects and other weekly structures imposed by the college schedule (eg, classes that meet on Monday-Wednesday-Friday vs those that meet on Tuesday-Thursday). In addition, because behavioral patterns during the semester vary substantially from those during the 5-week winter break (when students do not have classes and typically are away from campus), we decided a priori to only include in the model compliant data collected during the school semesters.

The final iLM took the following general form:

yt = β0 + β1xt or t−1 + β2DayOfWeekt + εt

A daily observation on dayt starts with the nighttime sleep episode and ends with the submission of the daily survey submitted in the evening before the next sleep episode. In the aforementioned formula, yt is a single participant’s outcome variable (eg, sleep duration in min) at daily time point t, β0 is this participant’s individual intercept, x is the predictor variable (eg, sleep quality or stress measured on a 1-5 scale) at daily time point t or t−1 (depending on the lag of the tested association), β1 is the participant’s individual slope for x, DayOfWeekt is the day of the week in which the outcome observation was acquired (modeled as a categorical variable ordered from Saturday to Friday), and εt is a normally distributed random error term.

All modeling was carried out in a Bayesian inference framework, which treats unknown parameters (eg, a slope) as random variables with a probability distribution rather than a discrete value; this distribution is updated based on the observed data (resulting in a posterior distribution) and serves as a measure of uncertainty around the parameter [38-40]. The Bayesian framework was favored for these analyses due to its flexibility in computing models with varied specifications (including complex random effect specifications in the multilevel models we fitted as part of our model validation process), robustness to sample data characteristics (eg, dispersion), and intuitive interpretation of the posterior distribution and 95% uncertainty interval (UI; ie, conditional on the data and the model, the probability that the parameter is contained in the interval is 0.95) [39,40]. For comparison, parallel iLMs fitted in a frequentist inference framework in the pilot validation stage yielded nearly identical point estimates to their Bayesian counterparts (refer to Figure S2 in Multimedia Appendix 1), suggesting that our model specification is robust across both statistical inference frameworks. All models were estimated in R (version 4.3.1; R Foundation for Statistical Computing) [41]. Bayesian models were estimated using the Stan modeling language [42] and the packages rstanarm (version 2.21.4 [43]), tidybayes (version 3.0.1 [44]), and bayestestR (version 0.13.1 [45]). Frequentist iLMs were estimated using the stats package included in base R [41].

Bayesian models were fit with default weakly informative priors specifying a gaussian distribution (mean 0, SD 2.5) to represent our diffuse prior knowledge. We estimated parameters using a Markov chain Monte Carlo (MCMC) approach. For each parameter, we sampled from 4 stationary Markov chains, each comprising 5000 sampling iterations, including a burn-in period of 2500 iterations that were discarded (for a total of 10,000 post–warm-up draws). Convergence of the 4 chains to a single stationary distribution was assessed quantitatively via the R-hat convergence diagnostic [46] (adequate convergence defined as R-hat <1.1) and qualitatively by visual inspection of trace plots showing the estimated parameter as a function of each chain’s iteration number (adequate convergence defined as the chains overlapping with each other throughout and a lack of structured patterns in each chain). Each model’s effective sample size (ESS) metric is reported. Each estimate in the MCMC process is serially correlated with the previous estimates: the higher the correlation, the more samples are needed to get to a stationary distribution. In the presence of nearly no autocorrelation, the ESS will be equal to the number of posterior draws requested (in this case, 10,000). Generally, the ESS should be at least 1000 to obtain stable estimates [38,47].

Adequacy of the model specification was assessed via 2 methods. First, posterior predictive checks entailed a visual comparison of the distribution of the observed outcome variable to the distribution of 100 simulated outcome data sets generated by applying 100 draws from the model parameters’ posterior distribution to our observed data set. Similarity in the distributions of the observed and model-generated outcomes suggests that the model specification captured the data well. Second, we inspected the model residuals against the model’s predicted values to confirm homoscedasticity and against themselves to rule out problematic autocorrelation due to temporal dependencies in longitudinal data.

Point estimates of intercepts and slopes were computed as the median value of their respective posterior distributions. Furthermore, 95% UIs were computed as the 2.5% and 97.5% quantiles of the posterior distribution. To provide intuitive parallels to a frequentist inference framework, we interpreted a predictor slope as statistically significant if its 95% UI did not contain 0, or, put differently, if the proportion of the posterior distribution falling in the direction (positive or negative) of the point estimate (also known as probability of direction [pd]) was higher than 0.975 (which approximates a frequentist 1-tailed P value of <.025) [48]. Although we focus on 95% as the cutoff for the UI given the widespread use of this number in the literature, it should be noted that this threshold has been criticized as arbitrary [39]. To go beyond testing whether the slope is different from exactly 0, we also report the percentage of the 95% UI that falls within a region of practical equivalence (ROPE), defined as parameter values that are sufficiently close to 0 to be considered equivalent to the null for practical purposes [49] and mathematically defined as a standardized effect size of <0.1 (ie, half of a small effect as defined by Cohen [50]). Given our individualized approach, ROPEs were estimated separately for each participant based on their observed data.

Validation of the iLM in the Pilot Data

Data from 6 pilot participants were used to test the properties of the iLM and explore associations among variables of interest to validate the approach. A first sanity check was to assess whether the iLM captured the expected association between a sleep event’s objective duration (estimated from an actigraphy wristband) and the subjective rating (reported at the end of each day as part of a smartphone-based survey) for the same (concurrent) sleep event. Participants were expected to rate episodes of shortened sleep as worse quality compared to nights of longer sleep. This contemporaneous model, known as a static model in the time series literature [37], was specified as follows:

ObjectiveSleepDurationt = β0 + β1SubjectiveSleepRatingt + β2DayOfWeekt + εt

A second, exploratory lagged model was fit testing associations between sleep duration on dayt and sleep quality reported the day before, on dayt−1. We expected that this lagged association would be weaker than the concurrent association outlined previously (given that the variables tested are no longer referring to the same sleep event), and importantly, that the association would be in the opposite direction such that poor-quality sleep on one night is associated with longer sleep duration the next night, signaling a compensatory sleep rebound effect. To test this, a model similar to the aforementioned one was fit, with the difference that the predictor was lagged by 1 day. This lagged model, known as a finite distributed lag model in time series analysis [37], was specified as follows:

ObjectiveSleepDurationt = β0 + β1SubjectiveSleepRatingt−1 + β2DayOfWeekt + εt

Both models were fit with a gaussian distribution to reflect the observed normal distribution of sleep duration in our sample.

We conducted model checks to evaluate the performance of the iLM framework. Posterior predictive checks (described earlier in this subsection) evaluated that a gaussian model specification captured the distribution of the data well. In addition, given the longitudinal design, we examined whether the model residuals lacked meaningful autocorrelation, which would suggest that our day-of-the-week covariate sufficiently captured the weekly structure of sleep duration. Finally, we compared the estimates obtained through the iLMs to the estimates obtained when the same data for the 6 pilot participants were fit within a single, group-based multilevel linear model (MLM), specifying fixed effects for intercepts and slopes and additional participant-level random intercepts and random slopes for the main predictor of interest (in this case, sleep quality). This comparison allowed us to assess our expectation that MLMs would provide individual estimates roughly comparable to those of the iLM, but with the critical difference that MLMs would systematically attenuate these individual estimates, especially for individuals who deviate from the predominant association phenotype or when there is large heterogeneity in these phenotypes across individuals.

Application of the iLM to the Novel Target Participants

After developing the iLM and validating it extensively over the pilot data set, the modeling framework was then carried forward and applied to the independent target data set of first-year college students. All models were fit with a gaussian distribution. We first applied the same sanity check models as in the pilot data set. Subsequently, we used the iLM method to test a priori target hypotheses regarding the association between perceived daily stress and objective sleep duration.

Two target models were fit for each individual to examine bidirectional associations between sleep duration and perceived stress. A daily observation on dayt consists of last night’s sleep duration (ObjectiveSleepDurationt, recorded passively via the actigraphy wristband) and the subjective rating of the present day’s overall stress levels (SubjectiveStressRatingt, reported by the participant in the evening). First, to test whether stress level during the day is related to sleep duration later that night (ie, a stress-then-sleep association), the model used the stress rating the day before sleep (dayt−1) as the predictor of subsequent sleep duration (dayt). Thus, the formula for this model was specified as follows:

ObjectiveSleepDurationt = β0 + β1SubjectiveStressRatingt−1 + β2DayOfWeekt + εt

Next, to test whether sleep duration is related to stress levels the day after (ie, a sleep-then-stress association), the model used stress rating the day after sleep (dayt) as predictor of the previous sleep duration (dayt, sleep duration last night):

ObjectiveSleepDurationt = β0 + β1SubjectiveStressRatingt + β2DayOfWeekt + εt

In this model, stress rating (predictor) is back-predicting sleep duration (outcome), which effectively tests the question “Is stress today associated with sleep last night?” As the objective sleep duration measure occurs temporally before the daily stress rating is submitted, results are interpreted as sleep duration being associated with increased or decreased stress the next day. Implementing the model in this way (rather than using sleep duration as the predictor and stress rating as the outcome) presented the advantage that the slope estimates across the 2 models are on equivalent units, namely, the change in the number of minutes in sleep duration per unit of change in stress rating. This allows us to directly compare the quantitative outputs for the models testing the questions “Is stress associated with subsequent sleep?” and “Is sleep associated with subsequent stress?”

As with the pilot data set, we conducted model checks to further evaluate the specification and performance of the iLM framework in our target data set, including posterior predictive checks; inspection of model residuals; and a comparison of the estimates obtained through the iLMs and the estimates obtained when the same data for the target sample were fit in a single, group-level MLM with random intercepts and random slopes per participant on the stress predictor. Additional inspection of model results against each participant’s raw time series data was conducted to complement our interpretation.


Participant-Level Descriptive Statistics

Table 1 presents participant-level available data and summary statistics for sleep and stress variables used in analysis. The pilot participants provided a median of 178 (range 119-212 out of a total possible of 223) usable observations for modeling, that is, day-level observations collected during the school semesters with usable actigraphy and survey data. The target participants provided a median of 178 (range 84-214) usable observations. Participants’ total number of usable observations was not correlated with their mean sleep duration (r=0.09; P=.53) or mean stress levels (r=−0.11; P=.42). In addition, participants’ mean sleep duration did not differ on days with or without available survey data (paired 2-tailed t test, P=.59), and participants’ mean stress levels did not differ on days with or without available actigraphy data (paired 2-tailed t test, P=.70). These observations suggest that participants’ overall sleep and stress metrics did not introduce systematic missingness in the data (more details on participant-level missing data are presented in Figure S1 in Multimedia Appendix 1).

Table 1. Participant-level descriptive statistics of data used in analyses.
ParticipantDaily observationsSleep duration (min), mean (SD)Sleep quality (1-5 Likert scale), mean (SD)Stress (1-5 Likert scale), mean (SD)
P1a119493.22 (101.89)3.59 (0.64)1.36 (0.74)
P2212412.08 (84.57)2.50 (0.68)2.95 (0.82)
P3156404.03 (68.81)2.48 (0.55)2.89 (0.93)
P4200425.20 (82.42)2.64 (0.69)3.15 (0.42)
P5200387.76 (58.32)3.14 (0.74)2.23 (1.14)
P6147379.29 (139.37)2.65 (1.12)3.85 (1.14)
T1b147464.92 (96.66)3.81 (0.94)2.76 (1.06)
T2212460.47 (82.68)3.08 (0.62)3.16 (0.83)
T3139415.09 (114.00)2.61 (0.71)3.59 (0.82)
T4103349.96 (89.02)2.81 (0.83)1.69 (1.09)
T5189446.40 (60.47)3.33 (0.62)2.51 (0.83)
T6199465.13 (76.76)3.07 (0.63)2.68 (0.77)
T7131389.17 (56.96)3.06 (0.91)1.95 (1.19)
T8173402.33 (108.91)2.87 (0.49)2.69 (0.63)
T9102448.53 (144.97)2.95 (0.79)1.98 (1.01)
T10208432.88 (114.48)2.71 (0.73)3.07 (1.11)
T11173373.92 (94.30)2.62 (0.73)2.77 (0.78)
T1287475.03 (75.76)2.83 (1.00)3.57 (1.14)
T13214441.09 (73.22)2.49 (0.56)3.25 (0.70)
T1484454.23 (100.68)3.40 (0.62)2.52 (0.81)
T1598412.93 (64.32)2.57 (0.66)3.41 (0.87)
T16152414.31 (127.89)2.70 (0.66)3.08 (0.83)
T17191440.73 (74.20)3.06 (0.50)1.37 (0.68)
T1892385.57 (70.90)3.09 (0.51)2.87 (0.63)
T19199464.09 (74.95)2.87 (0.44)2.94 (0.59)
T20192497.65 (77.78)3.69 (0.58)2.30 (0.95)
T21199390.89 (82.58)3.36 (0.76)2.85 (1.05)
T22126464.25 (84.70)3.33 (0.90)2.53 (1.04)
T2384418.65 (73.60)2.87 (0.62)3.39 (0.79)
T24148482.32 (81.06)3.19 (0.87)2.01 (0.77)
T25191406.52 (95.58)2.70 (0.78)3.47 (1.00)
T26205446.68 (64.03)3.01 (0.10)2.94 (1.14)
T27177443.10 (114.21)3.16 (0.82)3.28 (0.76)
T28209409.12 (65.85)2.92 (0.59)2.67 (0.91)
T29197429.07 (74.85)3.00 (0.47)1.68 (0.88)
T30195396.16 (62.76)2.67 (0.59)2.85 (1.05)
T31205388.53 (94.91)2.82 (0.83)2.52 (0.71)
T32117397.49 (118.98)2.61 (0.86)3.73 (1.10)
T33114383.05 (135.02)2.65 (0.89)2.09 (1.27)
T34206436.76 (80.84)2.88 (0.73)2.43 (0.89)
T35207461.99 (71.50)3.08 (0.78)3.16 (1.23)
T36188470.90 (86.02)3.36 (0.80)2.70 (1.10)
T37180423.49 (78.52)3.41 (0.63)2.21 (0.85)
T38139409.22 (132.79)2.56 (0.85)3.39 (0.82)
T39114414.25 (99.79)2.74 (0.67)2.25 (1.07)
T40102483.04 (53.83)3.37 (0.53)2.84 (1.24)
T41136429.99 (91.77)2.34 (0.67)3.54 (0.74)
T42193416.79 (95.16)3.26 (0.80)1.21 (0.46)
T43166464.57 (116.07)3.04 (0.35)2.23 (0.82)
T44179456.01 (67.63)3.34 (0.74)1.96 (1.03)
T45197474.08 (64.90)2.99 (0.60)1.18 (0.54)
T46203478.48 (70.13)1.99 (0.58)2.35 (1.01)
T47178382.32 (78.80)3.54 (0.72)1.79 (0.95)
T48189406.65 (103.77)2.81 (1.00)2.17 (1.36)
T49171444.64 (87.14)2.91 (0.86)1.90 (1.11)

aIDs starting with “P” indicate pilot sample participants.

bIDs starting with “T” indicate target sample participants.

Sleep and Stress Fluctuate in Relation to the Academic Calendar in the Pilot Participants

There was a pattern of enhanced sleep and lower stress when students were released from the structured academic demands of the in-person school semesters. Participants were enrolled for a full academic year, including a fall semester and a spring semester (each lasting roughly 16 weeks), as well as a 5-week class-free winter break bridging the 2 semesters. During the winter break and weekends, pilot participants had longer objective (actigraphy-derived) sleep duration, better subjective sleep quality, and felt less stress compared to school semesters and weekdays (Figures 1A and 1B). The temporal structure of sleep and stress variables was further evidenced by their autocorrelation estimates. Autocorrelations were generally small (|r|<0.2; Figure 1C) but were strongest (highlighted with asterisks) at a 7-day lag (and again at a 14-day lag) for sleep duration, consistent with a weekly sleep schedule. By contrast, autocorrelations for stress were strongest at 1- and 2-day lags, suggesting that experiences of stress might come in chains of >1 day.

The school break and week-related changes observed in the data informed the design of the iLM seeking to capture stable person-level associations. Given that the winter break presents different environmental demands from the school semester, we decided a priori to exclude from the model the observations collected during this period. In addition, to account for weekly patterns in sleep behavior (outcome variable) within the school semesters, we added the day of the week as a covariate in the model.

Figure 1. Group sleep and stress metrics fluctuate with the academic calendar. (A) The pilot participants’ group (between-person) means of sleep duration (in min), sleep quality (1-5 Likert scale), and perceived stress (1-5 Likert scale), aggregated by school semester (fall and spring) and winter break and (B) by the day of the week. (C) Between-person means of autocorrelation estimates over a 14-day window. Error bars show SE of the mean. *Autocorrelations were strongest at a 7-day lag (and again at a 14-day lag) for sleep duration and at 1-day and 2-day lags for perceived stress. F: Friday; FS: fall semester; M: Monday; S: Saturday; SS: spring semester; Su: Sunday; T: Tuesday; Th: Thursday; W: Wednesday; WB: winter break.

iLMs Capture Day-to-Day Associations in the Pilot Participants

To test the viability of the iLM approach, a proof-of-concept model examined the association between objective sleep duration and subjective sleep quality in the pilot participants (Table 2 and Figure 2). This model allowed for a test of construct validity, given that the tested association was intuitive and expected. The model tested the association between sleep duration and sleep quality for the same sleep episode (ie, a concurrent association). All pilot participants showed the expected positive association: when participants slept for a shorter period than usual, they also subjectively rated these same sleep events as worse quality (shown in orange in Figure 2A). The effect size was large for all individuals, and the 95% UI lay outside of the ROPE for all models. These results provided preliminary evidence that the iLM is a valid framework to reliably detect relations between psychological variables (in this case, subjective sleep quality rating) and objective behaviors (sleep duration) at the individual participant level.

A second, exploratory iLM tested the association between sleep duration (on dayt) and sleep quality the day before (on dayt−1). We expected this model to show significant but weaker effects compared to the first model, given that the variables were referring to lagged sleep events. Moreover, we expected negative associations such that worse sleep quality on one night would associate with longer sleep duration the next night, that is, a compensatory sleep rebound effect. Half of the participants (3/6, 50%; P1, P4, and P6) showed this expected pattern of association (pd>0.975; shown in blue in Figure 2). Of the 6 participants, 1 (17%; P2) showed a positive association such that worse subjective sleep quality experienced on the preceding night was associated with shorter sleep durations on the subsequent night. This participant might experience chains of poor sleep over multiple days (eg, reduced sleep days ahead of a deadline to accommodate increased workload), rather than a sleep rebound effect immediately the following night. In addition, of the 6 participants, 2 (33%; P3 and P5) showed a positive slope estimate but without reaching statistical significance (pd<0.975). We did not observe structured patterns of association between individual slope estimates and individuals’ mean sleep quality, mean sleep duration, or total number of daily observations (Figure 2B). This suggests that the estimated slopes were not systematically influenced by person-level characteristics of the psychological and behavioral phenomena of interest.

Table 2. Pilot sample results of individual-level linear models assessing sleep duration associated with concurrent sleep quality and assessing sleep duration associated with sleep quality the day before (all models included the day of the week as a covariate, but the table only shows model parameters for the main predictor, sleep quality).
Model and pilot participantSlope (median of the posterior distribution)95% UIapdbROPEc (+/−)% UI in ROPER-hatESSd
Sleep duration regressed on concurrent sleep quality
 P165.31e37.73 to 92.421.0015.840.001.007291
 P247.48e31.42 to 63.871.0012.350.001.008177
 P371.10e54.30 to 88.461.0012.500.001.007484
 P456.32e42.31 to 70.241.0012.000.001.007649
 P540.22e30.65 to 49.951.007.890.001.007030
 P684.28e69.58 to 99.151.0012.500.001.006578
Sleep duration regressed on sleep quality the day before
 P1−43.28e−67.61 to −18.991.0015.840.001.007726
 P225.05e8.84 to 41.571.0012.353.931.008244
 P36.80−14.01 to 27.050.7412.5071.041.007478
 P4−18.92e−33.78 to −3.380.9912.0017.201.007823
 P510.07−1.05 to 21.180.967.8934.291.008030
 P6−31.39e−51.90 to −10.441.0012.501.361.006911

aUI: uncertainty interval.

bpd: probability of direction.

cROPE: region of practical equivalence.

dESS: effective sample size.

eStatistically significant result.

Figure 2. Within-individual linear models capture real-world associations between objective sleep duration and subjective sleep quality. (A) Each row (from participant 1 [P1] to participant 6 [P6]) shows model results for an individual pilot participant. Individual-level models testing sleep duration associated with sleep quality the day before are displayed in blue; models testing sleep duration associated with concurrent sleep quality are displayed in orange. Column 1 shows the models’ estimated slopes (computed as the median of the posterior distribution) and uncertainty metrics. Symbol shading signifies statistically significant slopes. Error bars show 95% uncertainty intervals (UIs). Shaded density plots show the full posterior distributions of the slopes; gray shaded areas show the regions of practical equivalence (ROPEs). Column 2 shows the models’ predicted sleep duration as a function of sleep quality; shading around the lines indicates 95% UIs. Column 3 shows the participant-level distributions of sleep duration (in min) and sleep quality (1-5 Likert scale) across all daily observations used in analysis. (B) Slope estimates from column 1 in subpart A are plotted against participant-level estimates across the study period. Dur.: duration; n.s.: not statistically significant; pd: probability of direction; sig.: statistically significant.

Model Diagnostics Confirm Convergence and Adequate Specification

Both visual and quantitative MCMC diagnostic checks revealed that all iLMs converged successfully (Figure 3). Trace plots (Figure 3, column 1) revealed no structured pattern in the estimated slopes across sampling iterations. R-hat values were <1.1, and ESSs were >1000 for the estimated slopes of all models (Table 2). Posterior predictive checks comparing the observed distribution of the outcome variable (sleep duration) to 100 randomly sampled simulated data sets from the posterior predictive distribution confirmed that a gaussian model specification captured the observed data well (Figure 3, column 2). Inspection of the model residuals against the model’s predicted values confirmed homoscedasticity, with no structured pattern in the plots (Figure 3, columns 3 and 4). Finally, residual autocorrelation was generally low (|r|<0.2) for all models (Figure 3, column 5), suggesting that the model specification was able to account for the temporal structure in the data.

Figure 3. Within-individual model diagnostics suggest adequate convergence and specification. Each row (from participant 1 [P1] to participant 6 [P6]) shows model diagnostics for an individual pilot participant. Diagnostics for the models assessing the association between sleep duration and sleep quality the day before are displayed in blue; models assessing the association between sleep duration and concurrent sleep quality are displayed in orange. Column 1’s trace plots display time series of each Markov chain’s estimated slope (y-axis) as a function of postwarmup iterations (x-axis). Column 2 shows posterior predictive checks; black density lines show the observed distributions of the outcome (sleep duration), and the thin colored density lines show 100 replicated outcome distributions generated based on random samples from the models’ parameters’ posterior distributions. Columns 3 and 4 show the models’ predicted values (x-axis) against the models’ residuals (y-axis). Column 5 shows autocorrelation plots of model residuals.

iLMs Yield Similar, but Not Identical, Estimates to a Group-Based Multilevel Model

The slopes estimated from the iLM are similar to those obtained through a MLM testing the same associations between concurrent objective sleep duration and subjective sleep quality (Figure 4). This suggests that the individually tailored slopes obtained from our iLM are comparable to more traditional group-based approaches. Of note, although the estimates are similar, they are not identical.

Comparison of the 2 models suggested attenuation of the individual-level estimates in the group models (refer to the part of Figure 4 highlighted with an asterisk). Even with random effects by participant, in the MLM, these estimates are, by design, biased by the group and may underestimate individual-level effects, especially for uncommon phenotypes [20]. As will be revealed later in the results from the larger sample of target participants, group-based estimation can even result in the reversal of the sign of the association for some individuals.

Figure 4. Within-individual linear models of the association between sleep duration and sleep quality yield similar, but not identical, estimates to a group-based linear model. Estimates of the intercepts and slopes from the individual-level linear models (iLMs; x-axis) for each participant are compared to the random effects estimated from a group-based multilevel linear model (MLM; y-axis). Triangles show estimates for the models examining the association between sleep duration and sleep quality the day before; circles show estimates for the models examining the association between sleep duration and concurrent sleep quality. Symbol shading signifies statistically significant slopes in the iLMs. Dashed diagonal lines represent identical estimates between the individual- and group-based approaches. *Attenuation of individual estimates in the MLM compared to the iLMs.

The iLM Is a Valid Framework to Identify Individual-Level Associations

Proof-of-concept analyses of the pilot data demonstrated that the iLM successfully captures expected associations between objective behavior and psychological variables, has an adequate model specification, and captures individual-level estimates unbiased by the group. Moreover, point estimates obtained with our Bayesian iLMs are nearly identical to those obtained through iLMs fitted with a frequentist inference framework (refer to Figure S2 in Multimedia Appendix 1), suggesting that our individual-level modeling approach is robust across both major statistical inference frameworks. In sum, the iLM is a valid framework to identify individual-level associations, which justified carrying over the model to test target hypotheses regarding the association between perceived stress and objective sleep duration in the independent target data set of first-year students (n=49).

Sleep and Stress Fluctuate With the Academic Calendar in the Target Participants

As with the pilot participants, during winter break and weekends, participants had longer objective sleep duration, better subjective sleep quality, and felt less stressed compared to the fall and spring semesters (columns 1 and 2 in Figure S3 in Multimedia Appendix 1). We replicated the autocorrelation pattern seen in the pilot data set: sleep duration showed the greatest autocorrelation at a 7-day lag (and then again at a 14-day lag), indicating that sleep patterns are tied to a weekly schedule, while stress showed the greatest autocorrelation at 1-day and 2-day lags, indicating that experiences of stress might come in chains of a few days (column 3 in Figure S3 in Multimedia Appendix 1). These school break– and week-related dynamics confirm that our target data set captured real-life dynamics associated with college life and reinforce our individual-level modeling decisions regarding the exclusion of winter break data and the addition of the day of the week as a covariate.

Shorter Objective Sleep Duration Is Associated With Worse Subjective Sleep Quality in the Target Participants

All participants showed a positive slope estimate for the association between concurrent sleep duration and sleep quality, and this effect was statistically significant in 46 (94%) of the 49 target participants (pd>0.975; Table 3 and Figure 5A, in orange). In other words, when participants slept for a shorter period than usual, they also rated these same sleep events as worse quality, demonstrating that the iLM can capture expected real-world relations between behavioral and psychological phenomena. Among participants who showed a significant association (46/49, 94%), a 1-point increase in a 5-point sleep quality scale was associated with a sleep episode that was also longer by a median 59 (range 16-119) minutes, a substantial increase in sleep duration for most participants considering that the average sleep duration in the sample was 432 minutes (7.2 h; SD 34 min).

For the exploratory lagged model, the expected negative association between sleep duration and sleep quality the day before reached statistical significance in only 5 (10%) of the 49 participants (pd>0.975; Table 4 and Figure 5A, in blue). In other words, for only 10% of participants, sleep rated as worse quality was consistently followed by longer sleep the following night, suggesting that sleep rebound effects are perhaps less common or reliable than anticipated. Among these participants, a 1-point decrease in a 5-point sleep quality scale was associated with a subsequent sleep episode that was longer by a median 18 (range 15-22) minutes across participants, a much smaller effect compared to the concurrent model. We did not observe structured patterns of association between individual slope estimates and individuals’ mean sleep quality, mean sleep duration, or total number of daily observations, suggesting that the model results were not systematically influenced by person-level aggregates of the variables that went into the model (Figure 5B).

Table 3. Target sample results of individual-level linear models assessing sleep duration associated with concurrent sleep quality (all individual-level models included the day of the week as a covariate, but the table only shows model parameters for the main predictor, sleep quality).
Target participantSlope (median of the posterior distribution)95% UIapdbROPEc (+/−)% UI in ROPER-hatESSd
T158.57e43.90 to 72.991.0010.300.001.007523
T278.35e62.80 to 93.581.0013.360.001.008984
T383.88e60.42 to 107.401.0016.120.001.007211
T468.08e51.48 to 84.481.0010.740.001.007738
T559.57e48.38 to 70.461.009.770.001.008168
T643.51e27.26 to 59.181.0012.220.001.008029
T716.10e5.49 to 26.601.006.260.821.007772
T884.78e53.43 to 115.841.0022.050.001.008598
T9115.91e86.49 to 144.671.0018.390.001.006519
T1089.47e71.20 to 108.461.0015.770.001.007813
T1173.07e57.17 to 89.421.0012.980.001.007347
T1227.69e12.94 to 43.041.007.560.001.007765
T1345.99e30.31 to 61.921.0013.010.001.007855
T14119.30e93.16 to 145.871.0016.150.001.006735
T1556.74e40.07 to 72.961.009.770.001.008048
T16107.86e81.17 to 133.611.0019.390.001.008373
T1757.72e37.47 to 77.201.0014.880.001.008767
T1866.72e40.75 to 91.961.0014.010.001.007313
T1994.56e74.90 to 113.901.0016.980.001.007965
T2062.54e45.72 to 79.421.0013.310.001.009058
T2144.44e30.24 to 58.591.0010.880.001.008560
T2257.24e43.62 to 70.661.009.380.001.007436
T2345.24e20.23 to 71.171.0011.940.001.007503
T2448.20e34.92 to 61.391.009.340.001.008482
T2547.93e32.46 to 63.251.0012.210.001.008742
T2622.51−66.79 to 112.050.7064.9884.151.009231
T2776.92e59.80 to 94.431.0013.930.001.006829
T2835.80e21.59 to 49.731.0011.070.001.009366
T2927.47e5.63 to 49.430.9915.8013.091.009333
T3051.20e37.94 to 64.631.0010.680.001.0010,463
T3161.13e48.35 to 74.011.0011.390.001.008859
T3284.47e63.97 to 104.781.0013.820.001.008314
T3372.26e48.83 to 95.741.0015.130.001.007530
T3459.12e46.46 to 72.071.0011.040.001.008186
T3550.34e39.48 to 61.151.009.110.001.009152
T3645.89e31.88 to 60.451.0010.690.001.008367
T3779.76e65.18 to 94.361.0012.420.001.008393
T3896.75e76.15 to 117.531.0015.580.001.006420
T3997.12e74.12 to 119.881.0014.990.001.007432
T4021.66e1.58 to 42.280.9810.2511.051.007083
T4183.39e64.82 to 102.491.0013.720.001.007958
T4267.41e53.03 to 81.991.0011.890.001.008166
T4340.65−11.52 to 90.810.9433.5238.511.007499
T4448.21e36.79 to 59.671.009.100.001.008509
T4542.05e27.71 to 56.251.0010.780.001.009139
T4611.97−4.23 to 28.150.9312.0050.131.009021
T4756.68e42.98 to 70.501.0010.920.001.008050
T4858.27e46.41 to 70.591.0010.360.001.007819
T4952.76e40.08 to 65.241.0010.180.001.007410

aUI: uncertainty interval.

bpd: probability of direction.

cROPE: region of practical equivalence.

dESS: effective sample size.

eStatistically significant result.

Figure 5. Longer objective sleep duration associates with higher subjective sleep quality in most individuals. (A) Estimated slopes (corresponding to the median of the posterior distribution) from the individual-level models that assess sleep duration associated with sleep quality the day before (triangles) and with concurrent sleep quality (circles) are plotted along the y-axis ordered by participant (x-axis). Statistically significant slope estimates are shaded blue (day before) or orange (concurrent). Error bars show 95% uncertainty intervals, and shaded density plots show the full posterior distributions of the slopes. (B) Slope estimates from subpart A are plotted against participant-level estimates across the study period.
Table 4. Target sample results of individual-level linear models assessing sleep duration associated with sleep quality the day before (all individual-level models included the day of the week as a covariate, but the table only shows model parameters for the main predictor, sleep quality).
Target participantSlope (median of the posterior distribution)95% UIapdbROPEc (+/−)% UI in ROPER-hatESSd
T1−6.18−20.18 to 7.900.8110.3072.791.007331
T217.18−1.23 to 35.010.9713.3633.681.007898
T34.86−24.38 to 33.470.6216.1273.181.007339
T4−8.14−26.68 to 10.370.8110.7461.511.007692
T5−11.59−25.67 to 2.530.959.7738.921.008057
T63.99−12.52 to 20.730.6812.2284.161.008124
T71.79−9.04 to 12.400.636.2676.761.007715
T8−6.92−44.90 to 31.060.6422.0575.051.008294
T9−6.64−43.52 to 30.760.6318.3968.001.006542
T105.38−16.89 to 29.410.6815.7782.231.008276
T1111.88−8.52 to 32.290.8812.9854.381.007592
T12−15.31e−29.24 to −1.460.987.5611.921.006981
T131.30−15.99 to 18.290.5613.0190.631.008803
T14−0.44−30.03 to 29.900.5116.1576.591.007033
T156.21−13.53 to 25.510.739.7760.831.007607
T16−27.16−56.68 to 2.910.9619.3929.001.007630
T17−11.26−30.90 to 8.360.8714.8864.721.008548
T18−5.27−29.15 to 18.450.6714.0174.541.007075
T192.84−20.85 to 25.940.5916.9887.601.007754
T20−15.15−34.71 to 4.140.9413.3142.171.007930
T21−13.72−28.15 to 0.590.9710.8834.111.008292
T22−14.97−31.39 to 2.040.969.3824.141.007859
T237.89−17.17 to 32.620.7311.9459.321.007688
T24−17.72e−31.83 to −3.240.999.3410.941.008332
T257.69−9.26 to 24.560.8212.2171.231.007155
T26−7.54−80.37 to 64.790.5864.9896.561.008465
T27−7.78−27.82 to 12.370.7813.9374.721.008543
T28−22.29e−36.43 to −8.121.0011.073.941.007913
T29−15.76−37.87 to 6.160.9215.8050.181.007036
T3010.45−4.82 to 25.990.9110.6851.311.006695
T312.76−12.58 to 18.240.6411.3986.791.006494
T32−2.39−27.37 to 23.670.5713.8274.031.007438
T33−1.18−27.00 to 24.740.5415.1379.091.006429
T347.50−7.80 to 23.050.8311.0468.411.008185
T352.35−11.15 to 15.760.639.1183.181.007304
T36−7.26−22.38 to 7.850.8310.6967.711.007446
T37−8.99−27.43 to 9.560.8312.4265.231.007425
T3816.81−7.39 to 40.610.9215.5845.691.007448
T3914.22−14.82 to 42.980.8414.9952.111.007901
T40−3.62−25.53 to 18.360.6310.2564.991.007758
T41−19.81−43.76 to 4.640.9413.7230.361.008205
T424.94−12.29 to 21.910.7211.8980.341.006956
T436.17−42.60 to 56.270.6033.5284.631.007107
T444.48−7.61 to 16.090.769.1078.731.007931
T45−10.23−23.89 to 3.280.9310.7853.331.008686
T4610.73−4.71 to 26.800.9112.0056.451.008086
T47−20.67e−35.59 to −5.831.0010.928.021.009068
T48−17.71e−32.53 to −3.600.9910.3613.201.008895
T494.96−9.25 to 18.870.7610.1878.561.008084

aUI: uncertainty interval.

bpd: probability of direction.

cROPE: region of practical equivalence.

dESS: effective sample size.

eStatistically significant result.

Higher Subjective Stress Is Associated With Shorter Objective Sleep Duration in Most Target Participants, but the Direction of the Temporal Association Varies

The slope estimate for the association between stress and sleep duration was negative in 86% of all iLMs fitted such that an increase in stress was associated with a decrease in sleep duration (Tables 5 and 6; Figure 6A). This association between stress and sleep duration reached statistical significance in 19 (39%) of the 49 participants (pd>0.975); of these 19 participants, 18 (95%) showed a negative association. Of note, the only participant who showed a significant positive association (T15, for the association between sleep duration and stress the day after) also had no usable actigraphy data over the full spring semester due to a technical issue with their wristband, and their estimated positive slope should therefore be interpreted with caution considering the structured missingness in their data. No other participant in the target sample showed this kind of systematic missingness in either the actigraphy or survey data streams (refer to Figure S1 in Multimedia Appendix 1).

Of the 19 participants who showed a statistically significant relationship between stress and sleep duration, 8 (42%) showed only the stress-then-sleep phenotype, that is, days with shorter sleep durations were preceded by higher stress the day before (Figure 6, in green) but not vice versa; 5 (26%) showed only the sleep-then-stress phenotype, that is, nights with shorter sleep duration were followed by increased stress the day after (Figure 6, in purple); and 6 (32%) showed bidirectional effects such that nights with shorter sleep duration were preceded by increased stress the day before as well as followed by increased stress the day after. Among participants who showed a significant association between today’s stress levels and sleep duration later that night (14/49, 29%), a 1-point increase in a 5-point perceived stress scale was associated with shorter subsequent sleep duration of a median 17 (range 11-33) minutes across participants. Among participants who showed a significant association between today’s stress levels and last night’s sleep duration (11/49, 22%), a 1-point increase in a 5-point perceived stress scale was associated with shorter previous sleep duration of a median 18 (range 10-38) minutes across participants. These effects would compound to more substantial reductions in sleep duration with greater increases in daily stress.

Individual slope estimates of the association between sleep duration and stress showed no clear pattern of association with individuals’ mean sleep duration or the number of daily observations that went into the model (see Figure 6B for mean sleep duration and number of daily observations). Individuals with higher mean stress tended to have a larger absolute slope estimate (see Figure 6B for mean stress), perhaps because participants with very low stress levels have little variance to be modeled.

Table 5. Target sample results of individual-level linear models assessing sleep duration associated with stress the day before (all individual-level models included the day of the week as a covariate, but the table only shows model parameters for the main predictor, stress the day before).
Target participantSlope (median of the posterior distribution)95% UIapdbROPEc (+/−)% UI in ROPER-hatESSd
T1−17.39e−30.84 to −4.230.999.099.641.007920
T2−25.47e−38.71 to −12.521.009.940.001.007532
T3−11.75−36.19 to 12.930.8313.6856.251.007497
T4−17.88e−31.13 to −4.480.998.255.451.007531
T5−6.59−17.46 to 4.170.897.2955.091.008189
T6−12.27−26.09 to 1.720.969.9836.821.008310
T70.37−7.96 to 8.400.534.8278.461.007568
T8−3.97−31.88 to 24.480.6016.8978.291.009005
T9−12.75−39.38 to 13.840.8314.6856.531.006773
T10−16.42e−29.99 to −2.960.9910.1916.551.008429
T11−16.79−34.71 to 1.640.9611.9129.511.008051
T12−4.08−16.42 to 8.220.746.7365.811.007427
T13−9.18−22.63 to 4.300.9110.4457.361.008887
T14−10.01−34.82 to 15.030.7912.8458.661.006569
T156.40−8.58 to 21.040.807.3354.531.008457
T16−4.81−28.89 to 19.490.6515.4678.601.007154
T170.47−15.28 to 15.700.5211.1988.721.007480
T182.55−17.09 to 22.650.6011.7478.351.008255
T19−33.47e−50.42 to −16.441.0012.280.001.007885
T200.66−12.06 to 13.070.558.2984.761.007970
T21−16.43e−27.28 to −5.511.007.883.931.008275
T22−8.13−22.65 to 6.560.868.0849.731.008495
T23−16.85−36.46 to 2.270.969.3019.971.006432
T24−20.04e−35.95 to −4.060.9910.9211.061.008168
T25−25.95e−39.11 to −13.251.009.440.001.007895
T26−7.07−14.59 to 0.610.975.6334.561.008812
T27−7.98−28.47 to 12.740.7814.8476.271.008484
T280.77−8.97 to 10.580.567.2889.441.008063
T29−16.06e−27.87 to −3.961.008.528.741.007850
T30−11.06e−19.45 to −2.631.005.929.271.008544
T317.99−9.54 to 25.470.8113.6174.601.008993
T32−15.49−33.63 to 3.450.9510.8830.231.009197
T33−15.60−33.42 to 2.040.9610.6928.001.007358
T34−20.70e−32.87 to −8.371.009.070.791.007973
T350.24−7.97 to 8.630.525.7587.051.008332
T36−11.30e−22.46 to −0.280.987.7025.161.006861
T37−14.13e−28.07 to −0.100.989.3223.841.007889
T38−26.90e−48.84 to −5.170.9915.9814.281.007520
T39−13.52−31.21 to 4.220.939.2029.791.007380
T40−3.02−12.06 to 5.950.754.3959.481.007465
T4115.91−5.36 to 37.060.9312.4535.811.007703
T42−13.10−41.31 to 15.650.8220.7771.601.008825
T43−14.40−35.39 to 5.800.9214.0648.561.007357
T44−6.76−15.22 to 1.430.946.4746.991.008141
T45−5.39−20.66 to 10.170.7512.1381.791.008410
T46−7.56−17.10 to 2.050.946.9844.731.007513
T47−2.84−14.49 to 8.840.698.3083.361.008012
T48−9.00−20.33 to 2.120.957.5939.171.008326
T49−7.55−18.29 to 3.360.927.8552.521.007613

aUI: uncertainty interval.

bpd: probability of direction.

cROPE: region of practical equivalence.

dESS: effective sample size.

eStatistically significant result.

Table 6. Target sample results of individual-level linear models assessing sleep duration associated with stress the day after (all individual-level models included the day of the week as a covariate, but the table only shows model parameters for the main predictor, stress the day after).
Target participantSlope (median of the posterior distribution)95% UIapdbROPEc (+/−)% UI in ROPER-hatESSd
T1−13.23−29.23 to 2.910.959.0929.611.005797
T2−5.24−18.80 to 8.680.779.9476.741.008875
T3−11.77−34.81 to 11.560.8513.6856.471.007338
T4−16.22e−32.32 to −0.570.988.2515.111.008021
T5−8.21−18.99 to 2.430.947.2942.561.007377
T6−11.94−25.88 to 1.900.969.9837.931.008926
T74.12−4.28 to 12.640.844.8256.731.008095
T8−7.79−33.38 to 17.750.7316.8977.041.008068
T9−11.98−39.16 to 15.540.8014.6857.801.008224
T10−19.06e−32.23 to −5.391.0010.197.721.007881
T11−0.62−18.60 to 17.180.5311.9185.571.007375
T12−12.49−26.89 to 1.310.966.7318.851.007661
T13−13.95e−27.24 to −0.470.9810.4430.021.007455
T14−9.24−37.81 to 19.760.7312.8455.801.005908
T1515.64e1.01 to 30.350.987.3311.111.007561
T16−37.82e−62.78 to −12.781.0015.461.601.007345
T17−6.43−23.61 to 10.030.7811.1972.941.007712
T18−4.56−28.81 to 19.130.6511.7466.611.008545
T19−3.52−20.73 to 14.260.6612.2883.961.008844
T201.55−10.79 to 13.910.608.2984.361.007304
T21−14.76e−25.94 to −3.310.997.889.481.007913
T22−8.48−23.16 to 6.680.878.0847.681.008106
T23−10.36−31.70 to 10.720.839.3044.671.007312
T24−19.63e−36.73 to −2.130.9910.9214.051.007158
T25−11.10−24.15 to 2.270.959.4439.411.008495
T26−10.11e−17.83 to −2.281.005.6310.241.008767
T27−21.40e−42.43 to −0.970.9814.8425.221.008373
T282.60−7.35 to 12.040.707.2884.951.008551
T29−17.68e−29.37 to −5.971.008.523.661.008521
T30−6.95−15.37 to 1.400.955.9240.051.008895
T31−2.47−20.99 to 15.760.6013.6188.881.009079
T32−0.28−20.33 to 19.800.5110.8876.021.008377
T33−3.11−22.10 to 16.050.6210.6973.591.007235
T34−17.71e−29.99 to −5.331.009.076.431.008398
T35−7.43−15.50 to 0.750.965.7532.791.008137
T36−8.27−20.14 to 3.430.927.7045.841.006671
T37−10.86−25.05 to 3.130.949.3241.211.007458
T38−17.78−42.09 to 7.020.9315.9843.951.008022
T39−15.79−33.41 to 2.060.969.2021.491.007141
T40−7.11−15.56 to 1.260.954.3924.881.007108
T41−15.15−36.52 to 5.960.9212.4539.481.008726
T429.05−20.92 to 38.930.7220.7779.251.008862
T43−7.80−29.05 to 14.030.7614.0672.401.007545
T44−5.63−14.57 to 3.440.896.4757.661.008151
T45−1.63−19.16 to 16.160.5812.1386.411.008594
T46−3.81−13.64 to 5.680.796.9875.801.008400
T47−8.61−21.25 to 3.950.918.3047.731.007590
T48−6.65−17.83 to 4.770.877.5956.891.007442
T4910.06−1.66 to 22.090.967.8534.471.008521

aUI: uncertainty interval.

bpd: probability of direction.

cROPE: region of practical equivalence.

dESS: effective sample size.

eStatistically significant result.

Figure 6. Higher subjective stress associates with shorter objective sleep duration in most individuals. (A) Estimated slopes (corresponding to the median of the posterior distribution) from the individual-level models that assess sleep duration associated with stress the day before (triangles) and with stress the day after (circles) are plotted along the y-axis ordered by participant (x-axis). Statistically significant slope estimates are shaded green (day before) or purple (concurrent). Error bars show 95% uncertainty intervals, and shaded density plots show the full posterior distributions of the slopes. (B) Slope estimates from subpart A are plotted against each participant-level estimate across the study period.

Person-Specific Estimates Get Attenuated in Group-Based Modeling

A comparison of the estimates obtained through the iLM and those of an MLM demonstrates that individual-level estimates get systematically attenuated in a group-based approach when there is between-person heterogeneity in the effects (Figure 7). When there was a strong effect and small between-person variability in the tested associations, as with the association between sleep duration and concurrent sleep quality, the iLMs provided slope estimates nearly identical to those estimated through an MLM (Figure 7A). However, for associations that showed a weaker effect and greater degree of between-person variability, group-level approaches systematically flatten individually tailored effect sizes or even reverse the sign of the association (Figure 7B). We observed this in the lead-lag associations between stress and sleep duration (as highlighted with asterisks in Figure 7) and to some degree in the lagged association between sleep quality and sleep duration.

Figure 7. Estimates of the intercepts and slopes from the individual-level linear models (iLMs; x-axis) for each participant are compared to the random effects estimated from a group-based multilevel linear model (MLM; y-axis) and presented separately for (A) associations between sleep duration and sleep quality and (B) associations between stress and sleep duration (bottom row). Symbol shading signifies statistically significant slopes in the iLMs. Dashed diagonal lines represent identical estimates between the individual- and group-based approaches. *Attenuation of individual estimates in the MLM compared to the iLMs.

Examining Raw Within-Individual Data Informs the iLM Results

A closer look at individual participants’ data reveals important considerations for the application and interpretation of the iLMs (Figure 8). As with other statistical models, the iLM is unlikely to detect stable associations for participants with too little variability in their data; for instance, participant T45 had consistently low stress levels over the course of the year, with occasional, small increases in stress tied to periods with increased academic demands (eg, ahead of midterm and final examinations periods). This participant’s individual linear models showed null results for both directions of stress-sleep associations (pd<0.975). Meanwhile, participant T29 also had low baseline stress levels, but they presented more frequent and substantial rises in stress throughout the year. Participant T29’s iLMs showed bidirectional negative associations between stress and sleep duration (pd>0.975).

While variability in daily observations over time is necessary to detect linear associations within the iLM, variability alone is not sufficient. Participant T10 showed substantial fluctuations in stress and sleep duration throughout the year, and their iLMs found bidirectional negative associations between stress and sleep duration (pds>0.975). Meanwhile, participant T16 also presented substantial variability in stress and sleep duration, and while their iLM detected a significant association between sleep duration and stress the day after (pd=1.00), no association was detected in the opposite direction (pd=0.65).

Figure 8. Intensive within-individual longitudinal data reveal differences among individuals. Results are shown for individual-level models testing the association between sleep duration and stress the day before (green) and between sleep duration and stress the day after (purple). Column 1 shows the models’ estimated slopes (computed as the median of the posterior distribution) and uncertainty metrics. Symbol shading signifies statistically significant slopes. Error bars show 95% uncertainty intervals (UIs). Shaded density plots show the full posterior distributions of the slopes; gray shaded areas show the regions of practical equivalence (ROPEs). Column 2 shows the models’ predicted sleep duration as a function of stress; shading around the lines indicates 95% UIs. The time series panels in column 3 show daily observations of actigraphy-derived sleep duration and survey-based perceived stress. Gray dashed lines show the participant’s mean value across the study period. Vertical lines indicate landmark events (labeled) in the academic calendar. Gray shading indicates missing data during the school terms or the winter break, which were excluded from the individual-level linear models. Dur.: duration; E: examinations period; n.s.: not statistically significant; pd: probability of direction; R: reading period; SB: spring break; sig.: statistically significant; TB: Thanksgiving break; WB: winter break.

Principal Findings

Stress levels and sleep duration interact in an individual’s daily life, but research has yielded mixed findings regarding the temporal directionality of their associations, with changes in stress preceding changes in sleep, changes in sleep preceding changes in stress, or both. Here, we leveraged a novel individual-level linear regression modeling iLM framework to obtain precision estimates of day-to-day associations between self-reported stress levels and actigraphy-derived sleep duration in a sample of first-year college students studied continuously for a full academic year. While most of the participants (45/49, 92%) showed a negative association between daily stress levels and sleep duration, the temporal direction of the association varied, with all types of lead-lag association previously reported at the group level present within distinct individuals in our sample.

In agreement with prior literature, our results within individuals confirm that stress levels and sleep duration are closely and inversely related in daily life [10-19]. Nearly four-tenths (19/49, 39%) of the participants—each considered an independent test of the association—showed a statistically significant effect (in either temporal direction), revealing that day-to-day changes in stress levels or sleep duration can reliably predict one another in the real world in a substantial portion of the sample. The slope estimate for the association between stress and sleep duration was negative in 86% of the fitted models. Within the estimated slopes that reached statistical significance, all but one were negative. This suggests that, for most individuals, increased stress levels are associated with shorter rather than longer sleep duration in the surrounding days, consistent with findings showing that periods of heightened stress levels coincide with periods of reduced sleep [11-14]. Critically, we provide a framework to obtain individually tailored estimates of these day-to-day associations. The individual-level slope estimates ranged from 10 to 38 minutes in shorter sleep duration per 1-unit increase in a 5-point perceived stress scale, suggesting that a change in stress levels can be associated with substantial changes in sleep duration, especially when daily stress levels increased by several units. It should be noted that while negative associations between sleep duration and stress levels predominated in our sample, it is possible that some individuals in the wider population show positive associations but were not captured in our study.

Our precision approach further revealed that the temporal directionality of the association between stress and sleep duration varied from person to person, representing all patterns of results reported by prior, group-level studies. For some of the participants (8/49, 16%), heightened stress during the day associated with shorter sleep later that night but not vice versa, in agreement with group results reported in the studies by Marcusson-Clavertz et al [15] and Slavish et al [16]; for others (5/49, 10%), shorter sleep associated with heightened stress the next day but not vice versa, in agreement with group results in the study by Sin et al [17]; and yet others (6/49, 12%) showed both directions of association, in agreement with group results in the studies by Doane and Thurston [18] and Yap et al [19]. Daily psychological and behavioral experiences such as perceived stress and sleep duration thus seem to interact in person-specific ways, rather than being uniform across the population.

For individuals showing the stress–then–reduced-sleep phenotype, experiences of heightened stress (eg, due to an impending final examination or social conflict) might elicit hyperarousal and rumination [13,51-53], as well as behaviors aimed at mitigating the source of stress (eg, studying or socializing with friends late into the night), all of which can delay sleep and reduce its overall duration. Moreover, for those showing the reduced-sleep–then–stress phenotype, shortened sleep durations might enhance their sensitivity to (and undermine their ability to cope with) academic, interpersonal, or other stressors and thus make them more likely to experience heightened stress levels [10,54,55]. For some individuals, both patterns of effect might occur, with changes in stress levels and sleep duration reinforcing one another and resulting in chains of days with heightened stress and nights of short sleep that succeed one another.

Critically, our results suggest that group-level studies might report inconsistent findings, at least partly, because the dynamic interaction between daily stress levels and sleep duration varies from person to person. When data are aggregated at the group level, individual phenotypes might be obscured, and the resulting group-level estimates are suggestive of generalized effects when in fact they might only apply to a fraction of the sample. Even when hierarchical group models allow for fitting individual estimates, these are biased by the group and tend to attenuate (or shrink) the estimation of individual effects [26]. A comparison of individual slope estimates of stress-sleep associations derived from our iLMs and those derived from an MLM with random intercepts and slopes starkly demonstrated this group bias: the group MLM estimated individual slopes that were systematically attenuated or even reversed sign compared to those estimated by our iLMs.

These results demonstrate the utility of individual-level modeling for characterizing real-world behavioral and psychological dynamics [27-29,34]. Our approach leverages mobile and wearable technology and provides a fit-for-purpose methodology that can turn these devices’ large-scale longitudinal measurements into meaningful insights. The iLM’s model specification is parsimonious by design and easy to interpret, including a single linear term for the main predictor of interest and a day-of-the-week covariate to account for the weekly structure in the outcome variable. Diagnostic checks confirmed that this simple model specification was powerful enough to capture real-world, stable linear associations between psychological phenomena and objective behaviors, while accounting for the time-related dependencies in the daily observations. Individual tailoring is achieved by fitting only 1 person’s data within a model, but the model specification remains identical across individuals, allowing for direct between-person comparisons of results, including estimating the relative prevalence of different phenotypes in the group.

The iLM framework is readily applied to a single individual’s data, making it useful for multiple real-world purposes beyond fundamental research that are increasingly gaining interest in the fields of consumer health informatics and digital health [21,31,32]. The iLM can be applied to data collected through personal devices for self-monitoring as well as for precision approaches in health care settings, where clinicians might use a patient’s data to triage intervention plans. Taking these results as an example, stress management interventions might be first prioritized among individuals for whom heightened stress precedes shortened sleep, while sleep interventions might be prioritized among individuals for whom shortened sleep precedes heightened stress. Moreover, this work might inform a growing body of research and products combining multiple data streams from wearables and smartphones along with machine learning techniques to predict experiences of stress [56,57]. Although prediction was not the focus of our work, understanding the person-specific association between stress and sleep duration, as well as the weekly behavioral patterns revealed by our actigraphy and survey data and individualized approach, could potentially contribute to the identification of periods when individuals are more likely to experience stress so that timely interventions can be offered.

The iLM offers a simple yet powerful precision framework for the estimation of real-world psychological and behavioral associations within the individual, but the results should be interpreted carefully in light of its assumptions and limitations. First, the iLM’s assumptions of linear, stable associations between the predictor and outcome variables are a deliberate attempt to simplify real-world behavioral and psychological dynamics that are highly complex. In the context of this study, these features allowed us to estimate college students’ day-to-day stress-sleep associations that are stable across the fluctuating demands on students within the school semesters as well as straightforward to interpret. However, it is possible that the association between stress and sleep duration is context dependent, varying as a function of the specific source of stress experienced by the individual (eg, academic vs interpersonal) and the broader seasonal demands (eg, whether school is in session). In fact, given the possibility of the latter, we decided a priori to exclude data collected during the winter break from our models. Future research could examine how these contextual demands influence stress-sleep associations, as well as explore nonlinear associations or cumulative effects over time.

Our analyses leveraged leading and lagging patterns in each individual’s time series of stress and sleep duration measures to ascertain the temporal directionality of their association (eg, stress during the day as a predictor of subsequent sleep duration later that night), but we did not implement a controlled experimental manipulation and cannot establish a causal relationship. While our use of intensive longitudinal data collected in the real world grants our results ecological validity, it also exposes them to confounders; for example, it is possible that a significant association between short sleep and higher stress the next day could be explained by the anticipated demands of the next day, such as an examination. Rather than short sleep duration causing higher stress the next day, the examination might be the primary cause behind both the short sleep (staying up late to prepare) and the stress reported the next day (heightened stress during test taking).

While our current intensive longitudinal data set and individual-level modeling framework passed sanity checks and diagnostics that confirmed data quality and adequate model specification, researchers applying our framework to other data sets and research questions should scrutinize the appropriateness of the data and the model before interpreting the results. Mobile and wearable technologies enable the collection of large behavioral data sets over time, but quantity does not guarantee quality, and long study periods require extra vigilance to ensure that participants remain compliant over time. Quality checks should confirm that the data collected are capturing expected real-world behavior (eg, as suggested by the intuitive changes we observed in students’ behavior between school terms and breaks as well as between weekdays and weekends). Even if the available data are substantial, and participant compliance is high, small variability in the metrics under study could still impede obtaining meaningful estimates of their associations, as demonstrated by participants with minimal fluctuations in stress levels over the course of the academic year. Moreover, investigators should be careful to identify appropriate uses, sanity checks, and interpretations of the iLM for their population of study; for example, part of our iLM validation process included testing the expected positive association between objective sleep duration (measured via the actigraphy wristband) and the participant’s subjective rating for the same sleep event (reported via a daily smartphone survey). While we expect that generally healthy participants will tend to rate nights of shorter-than-usual sleep duration as lower quality, it might not always be advisable to assume a simple linear association between objective sleep duration and subjective sleep quality, especially when modeling data from patients with sleep and psychiatric disorders.

Conclusions

Our novel iLM framework leveraged intensive longitudinal data from mobile and wearable devices to obtain individually tailored estimates of day-to-day associations between subjective stress levels and objective sleep duration. While stress and sleep duration were inversely related in most of the participants (45/49, 92%), the iLM revealed that the temporal direction of these associations is person specific, identifying a variety of individual phenotypes that may account for the diverse group-level findings reported in prior literature. Our results demonstrate the utility of individual-level modeling approaches for the assessment of behavioral and psychological associations in the real world. An individualized approach offers a foundation for the characterization of life dynamics at both the individual and group levels, as well as for the development of precision health and well-being interventions tailored to the individual.

Acknowledgments

The authors thank Laura Farfel, Marisa Marotta, Erin Phlegar, Lauren DiNicola, and Arpi Youssoufian for their help collecting data. Timothy O’Keefe, Harris Hoke, and Lily Jeong provided valuable assistance in neuroinformatics support. Kenzie W Carlson provided support with Beiwe. Katherine Miclau, Amira Song, Emily Iannazzi, and Hannah Becker helped with the actigraphy quality control procedure. This work was supported by a generous gift from Kent and Liz Dauten, National Institute of Mental Health grants (U01MH116925 and DP2MH103909), a grant from the National Institutes of Health (T90DA022759), and the Sackler Scholar Program in Psychobiology.

Data Availability

The data sets generated during this study are not publicly available due to concerns related to participant identifiability but may be available from the corresponding author on reasonable request.

Authors' Contributions

GCIII, J-PO, JTB, and RLB designed the research. GCIII, J-PO, and RLB performed the research. CMVB, GCIII, HR-E, and RLB analyzed the data. PM provided statistical support. CMVB and RLB wrote the paper, and all other authors reviewed the final manuscript.

Conflicts of Interest

J-PO is a cofounder and board member of Phebe Health, a commercial entity that operates in digital phenotyping. JTB has received consulting fees from Verily Life Sciences as well as consulting fees and equity from Mindstrong for work unrelated to this study. RLB has received consulting fees from Pfizer, Roche, Alkermes, and Cognito for work unrelated to this study. All other authors declare no other conflicts of interest.

Multimedia Appendix 1

Additional figures show participant-level missing data, comparison between Bayesian and frequentist individual-level linear model estimates, and group-level sleep and stress metrics in the target sample.

DOCX File , 679 KB

  1. Dyson R, Renk K. Freshmen adaptation to university life: depressive symptoms, stress, and coping. J Clin Psychol. Oct 2006;62(10):1231-1244. [CrossRef] [Medline]
  2. Ross SE, Niebling C, Heckert TM. Sources of stress among college students. Coll Stud J. 1999;33(2):312-318.
  3. Taylor ZE, Doane LD, Eisenberg N. Transitioning from high school to college: relations of social support, ego-resiliency, and maladjustment during emerging adulthood. Emerg Adulthood. Oct 21, 2013;2(2):105-115. [CrossRef]
  4. Bose M, Oliván B, Laferrère B. Stress and obesity: the role of the hypothalamic-pituitary-adrenal axis in metabolic disease. Curr Opin Endocrinol Diabetes Obes. Oct 2009;16(5):340-346. [FREE Full text] [CrossRef] [Medline]
  5. Kendler KS, Hettema JM, Butera F, Gardner CO, Prescott CA. Life event dimensions of loss, humiliation, entrapment, and danger in the prediction of onsets of major depression and generalized anxiety. Arch Gen Psychiatry. Aug 01, 2003;60(8):789-796. [CrossRef] [Medline]
  6. Luyster FS, Strollo PJJ, Zee PC, Walsh JK, Boards of Directors of the American Academy of Sleep Medicinethe Sleep Research Society. Sleep: a health imperative. Sleep. Jun 01, 2012;35(6):727-734. [FREE Full text] [CrossRef] [Medline]
  7. Pêgo JM, Sousa JC, Almeida OF, Sousa N. Stress and the neuroendocrinology of anxiety disorders. Curr Top Behav Neurosci. 2010;2:97-117. [CrossRef] [Medline]
  8. Rosengren A, Hawken S, Ounpuu S, Sliwa K, Zubaid M, Almahmeed WA, et al. INTERHEART investigators. Association of psychosocial risk factors with risk of acute myocardial infarction in 11119 cases and 13648 controls from 52 countries (the INTERHEART study): case-control study. Lancet. Sep 2004;364(9438):953-962. [CrossRef] [Medline]
  9. Zhang J, Paksarian D, Lamers F, Hickie IB, He J, Merikangas KR. Sleep patterns and mental health correlates in US adolescents. J Pediatr. Mar 2017;182:137-143. [CrossRef] [Medline]
  10. Goldstein AN, Walker MP. The role of sleep in emotional brain function. Annu Rev Clin Psychol. 2014;10:679-708. [FREE Full text] [CrossRef] [Medline]
  11. Kim EJ, Dimsdale JE. The effect of psychosocial stress on sleep: a review of polysomnographic evidence. Behav Sleep Med. Oct 29, 2007;5(4):256-278. [FREE Full text] [CrossRef] [Medline]
  12. Lund HG, Reider BD, Whiting AB, Prichard JR. Sleep patterns and predictors of disturbed sleep in a large population of college students. J Adolesc Health. Feb 2010;46(2):124-132. [CrossRef] [Medline]
  13. Sadeh A, Gruber R. Stress and sleep in adolescence: a clinical-developmental perspective. In: Carskadon MA, editor. Adolescent Sleep Patterns: Biological, Social, and Psychological Influences. Cambridge, UK. Cambridge University Press; 2002;236-253.
  14. Van Reeth O, Weibel L, Spiegel K, Leproult R, Dugovic C, Maccari S. Interactions between stress and sleep: from basic research to clinical situations. Sleep Med Rev. Apr 2000;4(2):201-219. [FREE Full text] [CrossRef]
  15. Marcusson-Clavertz D, Sliwinski MJ, Buxton OM, Kim J, Almeida DM, Smyth JM. Relationships between daily stress responses in everyday life and nightly sleep. J Behav Med. Aug 15, 2022;45(4):518-532. [FREE Full text] [CrossRef] [Medline]
  16. Slavish DC, Asbee J, Veeramachaneni K, Messman BA, Scott B, Sin NL, et al. The cycle of daily stress and sleep: sleep measurement matters. Ann Behav Med. May 06, 2021;55(5):413-423. [FREE Full text] [CrossRef] [Medline]
  17. Sin NL, Almeida DM, Crain TL, Kossek EE, Berkman LF, Buxton OM. Bidirectional, temporal associations of sleep with positive events, affect, and stressors in daily life across a week. Ann Behav Med. Jun 10, 2017;51(3):402-415. [FREE Full text] [CrossRef] [Medline]
  18. Doane LD, Thurston EC. Associations among sleep, daily experiences, and loneliness in adolescence: evidence of moderating and bidirectional pathways. J Adolesc. Feb 25, 2014;37(2):145-154. [CrossRef] [Medline]
  19. Yap Y, Slavish DC, Taylor DJ, Bei B, Wiley JF. Bi-directional relations between stress and self-reported and actigraphy-assessed sleep: a daily intensive longitudinal study. Sleep. Mar 12, 2020;43(3):a. [FREE Full text] [CrossRef] [Medline]
  20. Harari GM, Lane ND, Wang R, Crosier BS, Campbell AT, Gosling SD. Using smartphones to collect behavioral data in psychological science: opportunities, practical considerations, and challenges. Perspect Psychol Sci. Nov 2016;11(6):838-854. [FREE Full text] [CrossRef] [Medline]
  21. Onnela JP, Rauch SL. Harnessing smartphone-based digital phenotyping to enhance behavioral and mental health. Neuropsychopharmacology. Jun 2016;41(7):1691-1696. [FREE Full text] [CrossRef] [Medline]
  22. Torous J, Kiang MV, Lorme J, Onnela JP. New tools for new research in psychiatry: a scalable and customizable platform to empower data driven smartphone research. JMIR Ment Health. May 05, 2016;3(2):e16. [FREE Full text] [CrossRef] [Medline]
  23. Sano A, Taylor S, McHill AW, Phillips AJ, Barger LK, Klerman E, et al. Identifying objective physiological markers and modifiable behaviors for self-reported stress and mental health status using wearable sensors and mobile phones: observational study. J Med Internet Res. Jun 08, 2018;20(6):e210. [FREE Full text] [CrossRef] [Medline]
  24. Vidal Bustamante CM, Coombs 3rd G, Rahimi-Eichi H, Mair P, Onnela JP, Baker JT, et al. Fluctuations in behavior and affect in college students measured using deep phenotyping. Sci Rep. Feb 04, 2022;12(1):1932. [FREE Full text] [CrossRef] [Medline]
  25. Wang R, Chen F, Chen Z, Li T, Harari G, Tignor S, et al. StudentLife: assessing mental health, academic performance and behavioral trends of college students using smartphones. In: Proceedings of the 2014 ACM International Joint Conference on Pervasive and Ubiquitous Computing. 2014. Presented at: UbiComp '14; September 13-17, 2014; Seattle, WA. [CrossRef]
  26. Raudenbush SW, Bryk AS. Hierarchical Linear Models: Applications and Data Analysis Methods. Thousand Oaks, CA. SAGE Publications, Inc; 2002.
  27. Barlow DH, Nock M, Hersen M. Single Case Experimental Designs: Strategies for Studying Behavior for Change. Boston, MA. Pearson/Allyn and Bacon; 2009.
  28. Haynes SN, Mumma GH, Pinson C. Idiographic assessment: conceptual and psychometric foundations of individualized behavioral assessment. Clin Psychol Rev. Mar 2009;29(2):179-191. [CrossRef] [Medline]
  29. Molenaar PC. A manifesto on psychology as idiographic science: bringing the person back into scientific psychology, this time forever. Meas Interdiscip Res Perspect. Oct 2004;2(4):201-218. [CrossRef]
  30. Piccirillo ML, Rodebaugh TL. Foundations of idiographic methods in psychology and applications for psychotherapy. Clin Psychol Rev. Jul 2019;71:90-100. [CrossRef] [Medline]
  31. Dunn J, Runge R, Snyder M. Wearables and the medical revolution. Per Med. Sep 2018;15(5):429-448. [FREE Full text] [CrossRef] [Medline]
  32. Fernandes BS, Williams LM, Steiner J, Leboyer M, Carvalho AF, Berk M. The new field of 'precision psychiatry'. BMC Med. Apr 13, 2017;15(1):80. [FREE Full text] [CrossRef] [Medline]
  33. Scala JJ, Ganz AB, Snyder MP. Precision medicine approaches to mental health care. Physiology (Bethesda). Mar 01, 2023;38(2). [FREE Full text] [CrossRef] [Medline]
  34. Wright AG, Woods WC. Personalized models of psychopathology. Annu Rev Clin Psychol. May 07, 2020;16:49-74. [CrossRef] [Medline]
  35. Onnela JP, Dixon C, Griffin K, Jaenicke T, Minowada L, Esterkin S, et al. Beiwe: a data collection platform for high-throughput digital phenotyping. J Open Source Softw. Dec 2021;6(68):3417. [CrossRef]
  36. Rahimi-Eichi H, Coombs III G, Vidal Bustamante CM, Onnela JP, Baker JT, Buckner RL. Open-source longitudinal sleep analysis from accelerometer data (DPSleep): algorithm development and validation. JMIR Mhealth Uhealth. Oct 06, 2021;9(10):e29849. [FREE Full text] [CrossRef] [Medline]
  37. Pickup M. Introduction to Time Series Analysis. Thousand Oaks, CA. SAGE Publications, Inc; 2015.
  38. Muth C, Oravecz Z, Gabry J. User-friendly Bayesian regression modeling: a tutorial with rstanarm and shinystan. Quant Method Psychol. 2018;14(2):99-119. [CrossRef]
  39. McElreath R. Statistical Rethinking: A Bayesian Course with Examples in R and Stan. Boca Raton, FL. CRC Press; 2018.
  40. Kruschke JK, Liddell TM. The Bayesian New Statistics: hypothesis testing, estimation, meta-analysis, and power analysis from a Bayesian perspective. Psychon Bull Rev. Feb 7, 2018;25(1):178-206. [CrossRef] [Medline]
  41. R Core Team. R: a language and environment for statistical computing. R Foundation for Statistical Computing. 2019. URL: https://www.R-project.org/ [accessed 2024-04-04]
  42. Stan Development Team. The Stan Core Library. 2018. URL: http://mc-stan.org [accessed 2024-04-04]
  43. Goodrich B, Gabry J, Ali I, Brilleman S. rstanarm: Bayesian applied regression modeling via Stan. R package version 2.21.4. URL: https://mc-stan.org/rstanarm/ [accessed 2024-03-17]
  44. Kay M. tidybayes: tidy data and Geoms for Bayesian models. GitHub. 2023. URL: http://mjskay.github.io/tidybayes/ [accessed 2024-04-04]
  45. Makowski D, Ben-Shachar MS, Lüdecke D. bayestestR: describing effects and their uncertainty, existence and significance within the Bayesian framewor. J Open Source Softw. Aug 2019;4(40):1541. [CrossRef]
  46. Gelman A, Rubin DB. Inference from iterative simulation using multiple sequences. Statist Sci. Nov 1, 1992;7(4):457-472. [CrossRef]
  47. Gelman A, Carlin JB, Stern HS, Rubin DB, Vehtari A, Rubin DB. Bayesian Data Analysis, Third Edition. Boca Raton, FL. CRC Press; 2013.
  48. Makowski D, Ben-Shachar MS, Chen SH, Lüdecke D. Indices of effect existence and significance in the Bayesian framework. Front Psychol. 2019;10:2767. [FREE Full text] [CrossRef] [Medline]
  49. Kruschke JK. Rejecting or accepting parameter values in Bayesian estimation. Adv Method Pract Psychol Sci. May 08, 2018;1(2):270-280. [CrossRef]
  50. Cohen J. Statistical Power Analysis for the Behavioral Sciences Second Edition. New York, NY. Routledge; 1988.
  51. Drake CL, Pillai V, Roth T. Stress and sleep reactivity: a prospective investigation of the stress-diathesis model of insomnia. Sleep. Aug 01, 2014;37(8):1295-1304. [FREE Full text] [CrossRef] [Medline]
  52. Harvey AG, Tang NK, Browning L. Cognitive approaches to insomnia. Clin Psychol Rev. Jul 2005;25(5):593-611. [CrossRef] [Medline]
  53. Kalmbach DA, Cuamatzi-Castelan AS, Tonnu CV, Tran KM, Anderson JR, Roth T, et al. Hyperarousal and sleep reactivity in insomnia: current insights. Nature Sci Sleep. Jul 2018;10:193-201. [CrossRef]
  54. Minkel JD, Banks S, Htaik O, Moreta MC, Jones CW, McGlinchey EL, et al. Sleep deprivation and stressors: evidence for elevated negative affect in response to mild stressors when sleep deprived. Emotion. Oct 2012;12(5):1015-1020. [FREE Full text] [CrossRef] [Medline]
  55. Zohar D, Tzischinsky O, Epstein R, Lavie P. The effects of sleep loss on medical residents' emotional reactions to work events: a cognitive-energy model. Sleep. Jan 2005;28(1):47-54. [CrossRef] [Medline]
  56. Vos G, Trinh K, Sarnyai Z, Rahimi Azghadi M. Generalizable machine learning for stress monitoring from wearable devices: a systematic literature review. Int J Med Inform. May 2023;173:105026. [FREE Full text] [CrossRef] [Medline]
  57. Razavi M, Ziyadidegan S, Jahromi R, Kazeminasab S, Baharlouei E, Janfaza V, et al. Machine learning, deep learning and data preprocessing techniques for detection, prediction, and monitoring of stress and stress-related mental disorders: a scoping review. JMIR Preprints. [FREE Full text] [CrossRef]


DPSleep: deep phenotyping of sleep
ESS: effective sample size
iLM: individual-level linear model
MCMC: Markov chain Monte Carlo
MLM: multilevel linear model
pd: probability of direction
ROPE: region of practical equivalence
UI: uncertainty interval


Edited by A Mavragani; submitted 26.10.23; peer-reviewed by R Meng, G Vos; comments to author 05.12.23; revised version received 10.01.24; accepted 07.03.24; published 30.04.24.

Copyright

©Constanza M Vidal Bustamante, Garth Coombs III, Habiballah Rahimi-Eichi, Patrick Mair, Jukka-Pekka Onnela, Justin T Baker, Randy L Buckner. Originally published in JMIR Formative Research (https://formative.jmir.org), 30.04.2024.

This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Formative Research, is properly cited. The complete bibliographic information, a link to the original publication on https://formative.jmir.org, as well as this copyright and license information must be included.