Published on in Vol 7, No 4 (2020): April

Temporal Associations of Daily Changes in Sleep and Depression Core Symptoms in Patients Suffering From Major Depressive Disorder: Idiographic Time-Series Analysis

Temporal Associations of Daily Changes in Sleep and Depression Core Symptoms in Patients Suffering From Major Depressive Disorder: Idiographic Time-Series Analysis

Temporal Associations of Daily Changes in Sleep and Depression Core Symptoms in Patients Suffering From Major Depressive Disorder: Idiographic Time-Series Analysis

Original Paper

1Department of Psychiatry and Psychotherapy, Faculty of Medicine, Leipzig University, Leipzig, Germany

2Research Centre of the German Depression Foundation, Leipzig, Germany

3Institute for Applied Informatics, Leipzig, Germany

4Department of Psychiatry, Psychosomatics and Psychotherapy, Goethe-Universität Frankfurt, Frankfurt, Germany

Corresponding Author:

Noah Lorenz, MSc

Research Centre of the German Depression Foundation

Goerdelerring 9

Leipzig, 04109

Germany

Phone: 49 341 2238740

Email: noah.lorenz@medizin.uni-leipzig.de


Background: There is a strong link between sleep and major depression; however, the causal relationship remains unclear. In particular, it is unknown whether changes in depression core symptoms precede or follow changes in sleep, and whether a longer or shorter sleep duration is related to improvements of depression core symptoms.

Objective: The aim of this study was to investigate temporal associations between sleep and depression in patients suffering from major depressive disorder using an idiographic research approach.

Methods: Time-series data of daily sleep assessments (time in bed and total sleep time) and self-rated depression core symptoms for an average of 173 days per patient were analyzed in 22 patients diagnosed with recurrent major depressive disorder using a vector autoregression model. Granger causality tests were conducted to test for possible causality. Impulse response analysis and forecast error variance decomposition were performed to quantify the temporal mutual impact of sleep and depression.

Results: Overall, 11 positive and 5 negative associations were identified between time in bed/total sleep time and depression core symptoms. Granger analysis showed that time in bed/total sleep time caused depression core symptoms in 9 associations, whereas this temporal order was reversed for the other 7 associations. Most of the variance (10%) concerning depression core symptoms could be explained by time in bed. Changes in sleep or depressive symptoms of 1 SD had the greatest impact on the other variable in the following 2 to 4 days.

Conclusions: Longer rather than shorter bedtimes were associated with more depression core symptoms. However, the temporal orders of the associations were heterogeneous.

JMIR Ment Health 2020;7(4):e17071

doi:10.2196/17071

Keywords



Most patients with depression suffer from sleep disturbances, which mainly occur in the form of difficulty in initiating or maintaining sleep. Sleep disturbances have often been reported by patients and clinicians as an early sign or symptom at depression onset. This assumption has been supported by studies showing that insomnia and short sleep duration increase the risk of depression onset [1,2]. In addition, sleep disturbances are a risk factor for recurrent depression [3] and worsening symptoms of depression [4] (also see [5] or [6] for an overview). These studies indicate that sleep plays a causal role in the development of depression. This interpretation was supported by findings of studies focusing on the treatment of insomnia with cognitive behavior therapy, which has been shown to substantially reduce depression symptoms [7,8]. One study also showed that cognitive behavior therapy focused on treating insomnia symptoms was equally effective in reducing depression core symptoms as therapy focused on treating depression symptoms [9].

However, the association between sleep disturbances and depression can also be explained by a common pathogenic factor that causes both symptoms. The arousal regulation model of affective disorders describes upregulated brain arousal as such a central pathogenic factor [10], which is commonly found in patients with major depressive disorder. The withdrawal and sensation avoidance observed in major depressive disorder is considered to be an autoregulatory reaction of the individual in response to the high brain arousal. Upregulated brain arousal can also provide an explanation for other coexisting symptoms such as insomnia or anxiety. According to this concept, arousal regulation can be influenced by factors such as increasing sleep pressure via sleep deprivation, which counteracts the upregulated brain arousal, whereas extended sleep durations maintain the pathogenic factor (arousal). These assumptions were supported by an experimental study revealing that an increase in time in bed and total sleep time has negative effects on mood [11]. Even partial sleep deprivation of 2 hours was shown to have an antidepressive effect in some patients [12]. Moreover, one of the decisive interventions applied in cognitive behavioral therapy for insomnia is sleep restriction, in which patients experience a significant reduction in bedtime. Thus, consistent with sleep restriction studies in the context of depression, it is possible that this reduction in time in bed leads to an improvement in depression symptoms through the mechanism described by the arousal model. This association has already been convincingly demonstrated for patients with bipolar disorder in a time-series study design [13]. The authors investigated the temporal association between sleep and mood over the course of an average of 169 days, finding that a decrease in sleep duration was followed by an increase in mood the following day for 34% of the patients, and the same association was found between bedrest (awake in bed) and mood for 22% of the patients, with no positive cross-correlations identified for sleep duration. However, this is one of only few studies that have investigated the relationship between sleep and mood in an idiographic research design.

Idiographic research is based on within-subject analysis techniques. Instead of analyzing cohorts to explain variance in the population, the aim of an idiographic approach is to explain variance within individuals without seeking to generalize the results to other individuals. Such analyses require repeated measurements for the same individual. The experience sampling method or momentary ecological assessment is a promising research technique to collect repeated measures within individuals for an idiographic analysis [14]. One of the main advantages of idiographic research is that it is a more person-centered approach, since patterns within individuals can be investigated over time. For example, this method allows for investigating temporal associations with various time lags between several variables for a given individual, enabling identifying indications for cause-effect relationships of several variables within an individual [15]. Therefore, this approach can provide results with high clinical relevance, as they apply to specific individuals in specific contexts. In particular, if interindividual differences between patients are to be assumed, an idiographic research design can avoid the disadvantages of group statistics that risk blurring the relevant effects on the individual level. Molenaar et al [16] provide a more detailed discussion and comparison of interindividual and intraindividual research methodologies.

For both clinicians and individual patients, it would be highly relevant to understand how changes in sleep are related to changes in depressive symptoms. For example, if shorter bedtimes lead to a reduction in depressive symptoms in individual patients, this information can be used by both the clinician for treatment and by the patient for self-management. Idiographic time-series studies are useful to explore these questions, and some authors have shown that ecological momentary assessment in combination with time-series analysis are useful tools for this purpose [17,18].

The goal of the present study was to investigate the relationship between sleep and depression core symptoms by applying selected time-series methods on long-term collected sleep and self-rating data. We pursued three explorative aims. The first aim was to investigate the number of patients demonstrating significant temporal associations (indicating possible causal relationships) between time in bed/total sleep time and core depression symptoms. The second aim was to describe the nature of the relationship from two aspects: whether changes in sleep cause changes in depression or vice versa, and whether more or less sleep causes a reduction in depression. Finally, we sought to analyze the impact and temporal dynamics of the effects in patients with significant temporal associations by calculating the amount of variance explained in the time series and by analyzing how changes of 1 SD in a time series affect the other time series over a 10-day period.


Sensor-Based System for Therapy Support and Management of Depression Research Project

The data analyzed in this study were obtained from the research project Sensor-based System for Therapy Support and Management of Depression (STEADY), with the broad aim of developing a digital solution allowing patients to collect data on the course of their disease using smartphones and mobile sensors. To support patients in their self-management, one aim of STEADY was to identify patient-specific patterns and associations in the recorded self-ratings and digital behavior markers that can serve as a basis for patient-specific self-management. A feasibility study was carried out within the STEADY project, which was divided into three distinct study phases targeted at investigating specific modules or features of the comprehensive STEADY system. Before and after each study phase, data were collected using printed self-assessment questionnaires, including the Pittsburg Sleep Quality Index (PSQI) [19]. During the study phase, patients were supported by weekly and later monthly telephone calls. Furthermore, a monthly on-site appointment was held at the research center of the German Depression Foundation in Leipzig, Germany.

Participants

Participants of the STEADY feasibility study were primarily recruited at the Department of Psychiatry and Psychotherapy of the University of Leipzig, Germany. In addition, interested individuals could register in the study via a project-specific website. The study was approved by the local ethics committee of the University of Leipzig. Once written informed consent was obtained, participants were invited for a diagnostic interview to check for eligibility according to the following criteria. Inclusion screening criteria were at least 18 years of age, diagnosis of a recurrent depressive disorder, current depressive symptomatology reflected by a minimum of 14 points on the Inventory of Depressive Symptomatology Clinician (IDS-C) scale [20], undergoing professional treatment with regard to the diagnosis, and living in close proximity to the study center to facilitate regular study appointments. Exclusion criteria were psychiatric comorbidities (alcohol/drug addiction, schizophrenia, schizotypal and delusional disorders, borderline personality disorder), severe somatic disorders, acute suicidal behavior, pregnancy/lactation, and electronic implants.

Inclusion and exclusion criteria were checked using semistructured interviews on sociodemographic factors and medical history. Psychiatric diagnoses were established using the Structured Clinical Interview for Diagnostic and Statistical Manual of Depressive Disorders IV [21]. Depression severity was rated on the IDS-C scale [20] by trained raters. A total of 25 participants were included in the study. To be included in this current analysis, participants had to collect data over a continuous period of at least 130 days. Additionally, subjects were excluded if missing values exceeded 30% during this period. After applying these additional criteria, 22 of 25 participants were included in the present analysis.

App-Based Self-Rating and Measures

According to the goals of the project, an app was developed by the STEADY consortium to support the self-rating process. The study participants performed morning and evening self-ratings using the app. The smartphone app was programmed so that morning logs were available daily from 3 am to 3 pm and evening logs were available daily from 3 pm to 3 am. Patients were asked to fill in the morning logs directly after awakening and to fill in the evening logs right before going to bed.

Two main self-ratings were considered: daily ratings of depression core symptoms and night sleep. The former considered core symptoms addressing interest and pleasure as well as feelings of depression and hopelessness such as those used in the Two-item Health Questionnaire (PHQ-2) [22] to measure depression symptoms. In the evening log, patients rated how often they experienced the symptoms during the day on a visual analogue scale from 0 (“never”) to 10 (“all the time”). A mean of the two items was calculated and used as a measure of depression core symptoms severity, hereinafter referred to as depression core symptoms. For night sleep measurement, participants were asked to fill in a sleep diary that was integrated in the morning log consisting of “go to bed time,” “get up time,” and “time spent sleeping.” Time in bed and total sleep time were then calculated from the sleep diary as the main parameters for analysis.

Procedure

Patients were invited to the study center where they were given a general introduction to the app and the integrated morning and evening logs. Patients were instructed on how and when to fill in the logs. Monthly visits at the study center took place during the data collection period, which involved a data plausibility check (including a check for missing values), along with the opportunity to address patient questions and difficulties. Study assistants monitored the data collection process throughout this period. This involved a continuous check for missing values. When a missing value was noted, it was addressed in a phone call with the patient to obtain feedback on the reasons for missing values as a measure to reduce the occurrence of missing values.

Data Analysis

The vector autoregression (VAR) technique was applied to analyze the collected datasets [23]. The VAR technique was originally developed for research in economic sciences, but has also been used in other fields such as neuroimaging, sociology, and meteorology. A useful advantage of the VAR technique is that it allows investigating the temporal dynamics between several time series without the need of presumptions about the possible associations. In a VAR model, all of the endogenous variables are regressed onto their own time-lagged values and the time-lagged values of all other endogenous variables. An endogenous variable is a variable that can be both a determinant and an outcome. Therefore, a VAR model enables drawing conclusions about the temporal sequence of the effects to derive indications for cause-effect relationships [23].

Several steps are required when conducting a VAR analysis. One important step is to make a decision about the maximum lag. The lag length refers to the maximum number of previous observations (eg, the previous 2 days), which is then used to estimate the current observation. Lag length selection criteria can be used to determine the optimal number of lags.

In this study, we established two models with two variables each. Each model consisted of two endogenous variables: total sleep time and depression core symptoms (model 1), and time in bed and depression core symptoms (model 2). The corresponding regression equations are listed below.

Equations for model 1:

Equations for model 2:

In these models, αi, βi, γi, and δi are coefficients to be estimated; ε1 and ε2 are the error terms; and p is the number of lags considered in the model. A maximal lag length of 7 days was used. The Akaike information criterion value was used to identify the optimal number of lags for the models. To account for trends and to obtain stationarity, the time series were passed through a linear filter using the autoregressive integrated moving average methodology [24]. To test for potential cause-effect associations, Granger causality tests were conducted. This test examines whether the past values of a variable are useful to predict another variable. A variable x is considered to be causally related to a variable y if past values of y and x predict y significantly better than the past values of y alone. The principle behind the Granger test is that a cause cannot come after an effect [15]. Therefore, testing the temporal order of associations provides information on potential causal effects. To determine the impact of each endogenous variable over time, impulse response functions (IRFs) were calculated for all patients with significant Granger causality test results. An impulse response is the temporal reaction of a dynamic system to a change of a variable (eg, change of total sleep time in our analysis). Such a change is called “shock” and is normally defined as 1 SD in the time series; this definition was adopted in the present study as it has been shown to be a reliable definition of change in clinical research [18]. Furthermore, forecast error variance decomposition (FEVD) was performed to estimate the amount of variance in a variable that can be explained by another variable in a defined time period. The R package vars was used for statistical analysis [25].

Missing Values

Missing values occurred occasionally in the time series whenever a patient forgot to fill in the morning or evening logs. Since the applied analysis method cannot handle missing data, imputation methods were used to estimate missing values. In a given time series, missing values are estimated on the basis of the respective time series itself to avoid sham correlations between different time series. For this purpose, the Kalman smoothing imputation method was applied using the R package imputeTS [26].


Demographics and Clinical Characteristics

Data of 22 participants (15 women, 7 men) were analyzed in this study. On average, data for 173 days (range 143-205) per participant were available. Participants were aged between 21 and 67 years (median 43.5) and had a mean IDS-C baseline score of 27.27 (SD 8.5), corresponding to a moderate severity of depression, and a mean PSQI baseline score of 8.95 (SD 4.62). Nineteen of the 22 participants (86%) were taking antidepressant medication and had already undergone psychotherapy or were in psychotherapy at the time of the study. Table 1 summarizes all demographic and clinical characteristics at the individual patient level.

Table 1. Demographic and clinical characteristics.
PatientData collection period (days)SexAge (years)Employment statusOther psychiatric disordersPSQIaIDS-Cb
T1cT2dT1T2
1201F41HousewifeAnxiety disorder/ agoraphobiae112414
2150F50Full timeGeneralized anxiety disorder, May 2017-present12132330
3174M54Incapacity for work due to illnessGeneralized anxiety disorder463921
4179F33Part timeNone591718
5172F43Full timeNone5467
6205F60Partial retirementNone1093434
7199F44Self-employed/ freelanceNone46716
8150F45Full timePain disorder, 2010-present1814927
9188F38Full timeNone10181838
10156F33Full timeNone771110
11203M42Self-employed/ freelanceNone23199
12170M21StudentNone10101115
13154M53Partial retirementNone22204444
14160F48Self-employed/ freelanceNone75156
15143M50PrivateerNone773136
16150F35Sick leaveNone372225
17199F32Full timeNone923
18179F53Part timeTrichotillomania851517
19178F27StudentAttention deficit and hyperactivity disorder152016
20173F67Pension/early retirementNone10122920
21178M26Part timeNone79514
22151M62Incapacity for work due to illnessNone16174539

aPSQI: Pittsburg Sleep Quality Index score.

bIDS-C: Inventory of Depressive Symptomatology Clinician Rating.

cT1: before the study phase.

dT2: after the study phase.

e—: data not available.

Granger Causality Results

Granger causality tests were performed to investigate the temporal order of associations and to test for potential causal effects. In total, 11 patients showed significant Granger causal associations at a significance level of 5%. For 3 patients, time in bed Granger caused depression core symptoms (positive association), meaning that more time in bed was followed by more severe depression. In 3 patients, this association had a reversed temporal order, meaning that more depression core symptoms were followed by more time in bed. In one patient, depression core symptoms Granger caused time in bed (negative association), meaning that more depression core symptoms were followed by less time in bed. In 3 patients, total sleep time Granger caused depression core symptoms (positive association), meaning that more total sleep time was followed by more depression, whereas this temporal order was reversed in 2 patients (ie, more depression core symptoms were followed by greater total sleep time). In 3 patients, total sleep time Granger caused depression core symptoms (negative association), meaning that more total sleep time was followed by less depression core symptoms, and this temporal order was reversed for 1 patient. Figure 1 shows the raw time series (time in bed and depression core symptoms) of patient 2 as an example. Table 2 summarizes all of the statistically significant Granger causality test results.

Figure 1. Raw time-series data of patient 2.
Table 2. Granger causality test results.
Causality testPositive association (n)Negative association (n)Total (n)
Time in bed (TIB)



TIB Granger causes depression core symptoms303

Depression core symptoms Granger causes TIB314

Mutual causality000
Total sleep time (TST)



TST Granger causes depression core symptoms336

Depression core symptoms Granger causes TST213

Mutual causality000

Impulse Response Function

IRFs were calculated to analyze the impact of a change in the two sleep variables on depression core symptoms and vice versa over time. Figure 2 provides an example of the IRF for patient 2, showing the impact of a change (1 SD) in depression core symptoms on time in bed during a 10-day period.

Figure 2. Impulse response function for patient 2. Impulse represents depression severity, response is time in bed, time horizon = 10 days; the dashed line indicates the 95% CI.

In this case, a change in depression core symptoms led to a significant increase in time in bed the following 2 days. At day 2, the effect reached its peak with an increase of 12.86 minutes in bed. At day 3, the impact was no longer significant based on a confidence interval exceeding 0. IRF coefficients can be cumulated to calculate the total impact of a change (1 SD) in a variable over time. For patient 2, a change in depression core symptoms of 1 SD led to a total increase in time in bed of 27.64 minutes during a 10-day period. Table 3 summarizes the cumulated IRF results for all patients with significant Granger causality test results.

Table 3. Cumulative resultsa of impulse response analysis for all patients with significant Granger causality test results.
Granger causality lagb 0lag 1lag 2lag 3lag 4lag 5lag 6lag 7lag 8lag 9lag 10
TIBc Granger causes depression










Patient 30.060.290.510.530.530.530.520.520.520.520.52

Patient 60.020.250.310.320.320.310.310.310.310.310.31

Patient 200.440.891.001.021.031.031.031.031.031.031.03

Mean0.170.470.600.620.630.620.620.620.620.620.62
Depression Granger causes TIB










Patient 100.007.469.179.359.349.339.339.339.339.339.33

Patient 110.008.429.449.729.789.799.799.799.799.799.79

Patient 140.0012.7413.3313.5513.5713.5713.5713.5713.5713.5713.57

Patient 190.00–7.16–20.71–22.59–23.64–23.81–23.66–23.63–23.60–23.60–23.60

Mean0.008.9513.1613.8014.0814.1314.0914.0814.0714.0714.07
TSTd Granger causes depression










Patient 60.060.270.320.320.320.320.320.320.320.320.32

Patient 70.09–0.16–0.13–0.14–0.14–0.14–0.14–0.14–0.14–0.14–0.14

Patient 140.08–0.11–0.10–0.10–0.10–0.10–0.10–0.10–0.10–0.10–0.10

Patient 19–0.17–0.46–0.48–0.49–0.49–0.49–0.49–0.49–0.49–0.49–0.49

Patient 20–0.240.200.230.230.230.230.230.230.230.230.23

Patient 210.360.09–0.03–0.10–0.25–0.40–0.40–0.35–0.30–0.27–0.24

Mean0.170.220.220.230.260.280.280.270.260.260.25
Depression Granger causes TST










Patient 20.009.2820.8827.4428.4427.7927.2327.4928.0328.4428.55

Patient 110.009.1110.2410.5710.6310.6410.6510.6510.6510.6510.65

Patient 220.00–9.46–9.36–9.37–9.37–9.37–9.37–9.37–9.37–9.37–9.37

Mean0.009.2813.4915.7916.1515.9315.7515.8416.0216.1516.19

aValues are expressed in minutes (TIB and TST) or units on the depression scale (depression).

bLag numbers correspond to days.

cTIB: time in bed.

dTST: total sleep time.

Variance Decomposition

Table 4 summarizes the results of the FEVD analysis over a period of 10 days for all patients with significant Granger causality test results. As an example, in patient 20, 6.4% of the variance in depression core symptoms at lag 1 (the day following night sleep) could be explained by time in bed. The following day (lag 2), the percentage increased to 12.4%. At day 3 (lag 3), a peak was reached with 12.7% of the variance explained. The mean FEVD results were calculated for each temporal association across patients with respective significant Granger causal associations. On average, 10% and 6% of the variance in depression core symptoms could be explained by time in bed and total sleep time, respectively, and 3% of variance in time in bed and in total sleep time could be explained by depression core symptoms.

Table 4. Explained variance in depression core symptoms and time in bed at different time lags for all patients with significant Granger causality test results.
Granger causalitylaga 1lag 2lag 3lag 4lag 5lag 6lag 8lag 9lag 10
TIBb Granger causes depression









Patient 30.000.070.120.120.120.120.120.120.12

Patient 60.000.040.050.050.050.050.050.050.05

Patient 200.060.120.130.130.130.130.130.130.13

Mean0.020.080.100.100.100.100.100.100.10
Depression Granger causes TIB









Patient 100.030.030.030.030.030.030.030.030.03

Patient 110.020.020.020.020.020.020.020.020.02

Patient 140.030.030.030.030.030.030.030.030.03

Patient 190.000.010.040.040.040.040.040.040.04

Mean0.020.020.030.030.030.030.030.030.03
TSTc Granger causes depression









Patient 60.000.040.040.040.040.040.040.040.04

Patient 70.000.020.020.020.020.020.020.020.02

Patient 140.010.030.030.030.030.030.030.030.03

Patient 190.010.040.040.040.040.040.040.040.04

Patient 200.020.080.080.080.080.080.080.080.08

Patient 210.090.130.140.140.150.160.160.160.16

Mean0.020.060.060.060.060.060.060.060.06
Depression Granger causes TST









Patient 20.000.020.040.050.050.050.050.050.05

Patient 110.000.020.020.020.020.020.020.020.02

Patient 220.000.030.030.030.030.030.030.030.03

Mean0.000.020.030.030.030.030.030.030.03

aLag numbers correspond to days.

bTIB: time in bed.

cTST: total sleep time.


In this study, idiographic analyses were applied on time-series data of self-reported sleep and depression ratings in 22 patients with major depressive disorder. Data were collected on a daily basis with a smartphone app across 143-205 days per subject. Significant Granger causal associations were found in 11 of 22 patients regarding the associations between time in bed or total sleep time and depression core symptoms.

The first aim of this study was to determine the number of patients for whom temporal associations could be found to indicate a causal relationship. In 7 patients, temporal associations between time in bed and depression core symptoms were found to exhibit a causal relationship, and causal associations were found between total sleep time and depression core symptoms in 9 patients.

The second aim of the study was to evaluate whether changes in sleep or changes in depression core symptoms are primarily responsible for causing changes in the other variable, and whether more or less sleep causes a reduction in depression core symptoms. The analysis revealed high heterogeneity in these associations among patients. One source of heterogeneity was related to the temporal order of the associations, and hence the direction of a possible causal relationship (Granger causality). Concerning time in bed, the direction of the association was quite equally distributed: time in bed Granger caused depression core symptoms in 3 patients, whereas depression core symptoms Granger caused time in bed in 4 patients. With regard to total sleep time, the association was more homogenous toward total sleep time being the cause rather than the effect: total sleep time Granger caused depression core symptoms in 6 patients, whereas the temporal order was reversed in 3 patients.

A different source of heterogeneity concerns the nature of the relationship (eg, if more sleep or depression core symptoms causes a reduction or an increase in the other variable). The association between time in bed and depression core symptoms was positive in 6 patients, meaning that longer time in bed/more depression core symptoms led to an increase in depression core symptoms/time in bed, whereas this association was negative in 1 patient, meaning that more depression core symptoms led to a decrease in time in bed. A more homogenous pattern was found with regard to the association between total sleep time and depression core symptoms: The association was positive in 5 patients, meaning that longer total sleep time/more depression core symptoms led to more depression core symptoms/longer total sleep time, and the association was negative in 4 patients, meaning that longer total sleep time/depression core symptoms led to a decrease in depression core symptoms/total sleep time.

The third aim was to analyze the impact and temporal dynamics of the effects identified. Variance decomposition revealed that, on average, the largest proportion of explained variance was in the association between time in bed and depression core symptoms, with an average 10% of depression core symptoms being explained by time in bed. The second largest proportion concerned the association between total sleep time and depression core symptoms with 6% of the variance in depression core symptoms being explained by total sleep time. Explained variance was small in associations with a reversed temporal order: 3% of the variance in total sleep time and 3% of the variance in time in bed could be explained by depression core symptoms. Impulse response analysis revealed that changes of 1 SD in a variable (eg, total sleep time) had the greatest impact on the other variable (eg, depression core symptoms) in the following 2 to 4 days.

An advantage of our analysis is that it allows the possibility to make statistical claims on an individual level owing to the use of time series. This would be particularly useful for a clinician since it would be highly relevant to know whether a temporal association between sleep and depression exists in a certain patient and whether it is more likely that sleep changes cause changes in depression or vice versa. If patients are willing to share such data with a clinician [27], it could be used for treatment decisions. For example, if the data suggest that a longer time in bed worsens depressive symptoms, therapeutic sleep restriction or long-term mild sleep restriction might be a promising intervention. This knowledge could also be used by the patients themselves for self-management activities.

Acknowledgments

This study was supported by a grant of the Federal Ministry of Education and Research of Germany (project number 13GW0162B/13GW0162A). The authors assume all responsibility for the content of this publication.

Conflicts of Interest

NL is the founder and shareholder of the company mementor GmbH that developed an online sleep training app to treat insomnia. The remaining authors declare no conflicts of interest.

  1. Hertenstein E, Feige B, Gmeiner T, Kienzler C, Spiegelhalder K, Johann A, et al. Insomnia as a predictor of mental disorders: A systematic review and meta-analysis. Sleep Med Rev. Feb 2019;43:96-105. [CrossRef] [Medline]
  2. Fernandez-Mendoza J, Shea S, Vgontzas AN, Calhoun SL, Liao D, Bixler EO. Insomnia and incident depression: role of objective sleep duration and natural history. J Sleep Res. Aug 2015;24(4):390-398. [CrossRef] [Medline]
  3. Lee E, Cho HJ, Olmstead R, Levin MJ, Oxman MN, Irwin MR. Persistent sleep disturbance: a risk factor for recurrent depression in community-dwelling older adults. Sleep. Nov 01, 2013;36(11):1685-1691. [FREE Full text] [CrossRef] [Medline]
  4. Maglione JE, Ancoli-Israel S, Peters KW, Paudel ML, Yaffe K, Ensrud KE, et al. Study of Osteoporotic Fractures Research Group. Subjective and objective sleep disturbance and longitudinal risk of depression in a cohort of older women. Sleep. Jul 01, 2014;37(7):1179-1187. [FREE Full text] [CrossRef] [Medline]
  5. Bao Y, Han Y, Ma J, Wang R, Shi L, Wang T, et al. Cooccurrence and bidirectional prediction of sleep disturbances and depression in older adults: Meta-analysis and systematic review. Neurosci Biobehav Rev. Apr 2017;75:257-273. [CrossRef] [Medline]
  6. Alvaro PK, Roberts RM, Harris JK. A Systematic Review Assessing Bidirectionality between Sleep Disturbances, Anxiety, and Depression. Sleep. Jul 01, 2013;36(7):1059-1068. [FREE Full text] [CrossRef] [Medline]
  7. Lorenz N, Heim E, Roetger A, Birrer E, Maercker A. Randomized Controlled Trial to Test the Efficacy of an Unguided Online Intervention with Automated Feedback for the Treatment of Insomnia. Behav Cogn Psychother. May 2019;47(3):287-302. [CrossRef] [Medline]
  8. Christensen H, Batterham PJ, Gosling JA, Ritterband LM, Griffiths KM, Thorndike FP, et al. Effectiveness of an online insomnia program (SHUTi) for prevention of depressive episodes (the GoodNight Study): a randomised controlled trial. Lancet Psychiatry. Apr 2016;3(4):333-341. [CrossRef]
  9. Blom K, Jernelöv S, Kraepelien M, Bergdahl MO, Jungmarker K, Ankartjärn L, et al. Internet treatment addressing either insomnia or depression, for patients with both diagnoses: a randomized trial. Sleep. Feb 01, 2015;38(2):267-277. [FREE Full text] [CrossRef] [Medline]
  10. Hegerl U, Hensch T. The vigilance regulation model of affective disorders and ADHD. Neurosci Biobehav Rev. Jul 2014;44:45-57. [CrossRef] [Medline]
  11. Reynold AM, Bowles ER, Saxena A, Fayad R, Youngstedt SD. Negative Effects of Time in Bed Extension: A Pilot Study. J Sleep Med Disord. Aug 28, 2014;1(1):1002. [FREE Full text] [Medline]
  12. Giedke H, Wormstall H, Haffner H. Therapeutic sleep deprivation in depressives, restricted to the two nocturnal hours between 3:00 and 5:00. Prog Neuro-Psychoph. Jan 1990;14(1):37-47. [CrossRef]
  13. Bauer M, Grof P, Rasgon N, Bschor T, Glenn T, Whybrow PC. Temporal relation between sleep and mood in patients with bipolar disorder. Bipolar Disord. Apr 2006;8(2):160-167. [CrossRef] [Medline]
  14. Bolger N, Davis A, Rafaeli E. Diary methods: capturing life as it is lived. Annu Rev Psychol. 2003;54:579-616. [CrossRef] [Medline]
  15. Granger CWJ. Investigating Causal Relations by Econometric Models and Cross-spectral Methods. Econometrica. Aug 1969;37(3):424. [CrossRef]
  16. Molenaar PC, Campbell CG. The New Person-Specific Paradigm in Psychology. Curr Dir Psychol Sci. Apr 2009;18(2):112-117. [CrossRef]
  17. van der Krieke L, Emerencia AC, Bos EH, Rosmalen JG, Riese H, Aiello M, et al. Ecological Momentary Assessments and Automated Time Series Analysis to Promote Tailored Health Care: A Proof-of-Principle Study. JMIR Res Protoc. Aug 07, 2015;4(3):e100. [FREE Full text] [CrossRef] [Medline]
  18. Rosmalen JGM, Wenting AMG, Roest AM, de JP, Bos EH. Revealing causal heterogeneity using time series analysis of ambulatory assessments: application to the association between depression and physical activity after myocardial infarction. Psychosom Med. May 2012;74(4):377-386. [CrossRef] [Medline]
  19. Buysse DJ, Reynolds CF, Monk TH, Berman SR, Kupfer DJ. The Pittsburgh sleep quality index: A new instrument for psychiatric practice and research. Psychiatry Res. May 1989;28(2):193-213. [CrossRef] [Medline]
  20. Rush AJ, Gullion CM, Basco MR, Jarrett RB, Trivedi MH. The Inventory of Depressive Symptomatology (IDS): psychometric properties. Psychol Med. Jul 09, 2009;26(3):477-486. [CrossRef] [Medline]
  21. First MB, Gibbon M. The Structured Clinical Interview for DSM-IV Axis I Disorders (SCID-I) and the Structured Clinical Interview for DSM-IV Axis II Disorders (SCID-II). In: Comprehensive Handbook Of Psychological Assessment, Volume 2: Personality Assessment. Hoboken, NJ. John Wiley & Sons; 2004:134-143.
  22. Löwe B, Kroenke K, Gräfe K. Detecting and monitoring depression with a two-item questionnaire (PHQ-2). J Psychosom Res. Feb 2005;58(2):163-171. [CrossRef] [Medline]
  23. Brandt PT, Williams JT. Multiple time series models. In: Quantitative Applications In The Social Sciences. Thousand Oaks, CA. Sage Publications Inc; 2020.
  24. Box GEP, Jenkins GM, Reinsel GC, Ljung GM. Time Series Analysis: Forecasting And Control (Wiley Series In Probability And Statistics). Hoboken, NJ. John Wiley & Sons; 2020.
  25. Pfaff B, Stigler M. Cran Network. URL: https://cran.r-project.org/web/packages/vars/vars.pdf [accessed 2019-11-15]
  26. Moritz S, Bartz-Beielstein T. imputeTS: Time Series Missing Value Imputation in R. R Journal. 2017;9(1):207. [CrossRef]
  27. Hartmann R, Sander C, Lorenz N, Böttger D, Hegerl U. Utilization of Patient-Generated Data Collected Through Mobile Devices: Insights From a Survey on Attitudes Toward Mobile Self-Monitoring and Self-Management Apps for Depression. JMIR Ment Health. Apr 03, 2019;6(4):e11671. [FREE Full text] [CrossRef] [Medline]


FEVD: forecast error variance decomposition
IDS-C: Inventory of Depressive Symptomatology Clinician
IRF: impulse response function
PHQ-2: Two-item Health Questionnaire
PSQI: Pittsburg Sleep Quality Index
STEADY: sensor-based system for therapy support and management of depression
VAR: vector autoregression


Edited by G Eysenbach; submitted 15.11.19; peer-reviewed by E Lee, M Spiliopoulou, M Lang; comments to author 08.12.19; revised version received 04.01.20; accepted 25.03.20; published 23.04.20.

Copyright

©Noah Lorenz, Christian Sander, Galina Ivanova, Ulrich Hegerl. Originally published in JMIR Mental Health (http://mental.jmir.org), 23.04.2020.

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 Mental Health, is properly cited. The complete bibliographic information, a link to the original publication on http://mental.jmir.org/, as well as this copyright and license information must be included.