Background

Insomnia, which affects 10 to 15% of the general population [1], is characterized by dissatisfaction with sleep quality or duration and difficulty initiating or maintaining sleep, and is accompanied by daytime functioning deficits [2, 3]. Insomnia has several detrimental consequences, including fatigue, low work productivity, and reduced neurocognitive functions [4]. Additionally, insomnia is a risk factor for major depressive disorder, anxiety disorders, substance use problems, hypertension, diabetes and other morbidities [5]. A bidirectional relationship may exist between insomnia, anxiety and depression, whereby insomnia may predict and be predicted by anxiety and depression [6]. In addition, sleep disturbances influencing global functioning are associated with increased risk for cause-specific work disability, subsequent disabling mental disorders and various physical illnesses [7, 8]. Persistent insomnia over six years is associated with increased risk for all-cause and cardiopulmonary mortality relative to intermittent insomnia or lack of insomnia [2, 9]. Given the severe health consequences of insomnia, there is an urgent need for feasible, acceptable and effective interventions to alleviate insomnia symptoms.

In this context, cognitive behavioral therapy for insomnia (CBT-I) is considered the first-line therapy for all patients with insomnia, including those with coexisting conditions [2, 10, 11]. CBT-I is a directive, sleep-focused and time-limited psychotherapeutic method designed to modify behavioral and thinking patterns that are presumed to exacerbate or perpetuate insomnia [2, 10]. CBT-I is equally effective for treating insomnia in the short term, but its effect is more durable than medications [2, 12]. With recent developments in internet technology, an innovative and interactive solution has been developed to deliver digital CBT-I (dCBT-I) via online platforms and digital media. dCBT-I is non-inferior ineffectiveness compared to face-to-face delivery of CBT [13,14,15,16], and it is remotely and rapidly accessible [17]. In a randomized controlled trial, we found that dCBT-I is as effective as face-to-face individual CBT-I in decreasing sleep onset latency and improving sleep efficiency in patients with insomnia, but dCBT-I is superior in decreasing use of sleep medication and improving daytime function [18]. Additionally, clinical studies indicate that dCBT-I is effective in decreasing insomnia severity and improving sleep quality in insomnia and other comorbid mental disorders [17, 19, 20].

In real-world settings, it remains unclear how effective dCBT-I may be in patients with a chief complaint of insomnia or dissatisfaction with sleep quality, assessed by a sleep clinic in a psychiatric hospital. The current study focused on patients diagnosed with insomnia, or insomnia comorbid with anxiety, or with depression or anxiety disorders, which are the most common insomnia-related mental health complaints in the clinic. Participating patients via a mobile app reported self-assessment measures and current treatments, which comprised dCBT-I monotherapy, medication alone, combined medication and dCBT-I or no treatments. This study aimed (1) to investigate the demographic and clinical characteristics and treatments of individuals with insomnia complaints across different diagnostic categories, (2) to examine the relative efficacy of dCBT-I monotherapy and other treatments between baseline and 8-week and 12-week follow-up time points in respective insomnia, anxiety and depression groups.

Methods

Data source

This retrospective observational study examined clinical data from a mobile app named Good Sleep 365 Days which was developed to record demographic information, perform self-reported assessments and deliver programmed dCBT-I and professional consulting. The present study was carried out in the Sleep Health Project in Zhejiang Province, China. 7,223 patients with a chief complaint of insomnia or dissatisfaction with sleep quality were recruited from a sleep clinic. All subjects provided online informed consent before participation. This study was approved by the local research ethics committee in accord with the Declaration of Helsinki and registered at the Chinese Clinical Trial Registry (ChiCTR1900022699).

Study design

Using a retrospective design, data were collected from November 2016 to April 2021. Figure 1 schematically illustrates the patient visit process. In the prediagnosis step, participants were trained on how to use the app by a research assistant in a clinic waiting room. Then they were interviewed by experienced psychiatrists. Participants were eligible for inclusion if they were above 18 years of age, and diagnosed with insomnia, anxiety disorders, or anxiety comorbid with insomnia or depression according to criteria of the International Classification of Diseases Tenth Revision (ICD-10), and fully completed the baseline demographic information. Demographic information including age, sex, educational level and employment status was recorded. Clinical data collected included illness duration, family history of insomnia, history of taking psychotropic medications, the effect of stressful life events and current treatments. The question for family history of insomnia was: “Do any of your immediate family members presently have or ever had sleep difficulties?” A family history of insomnia was defined as a report of at least one first-degree, biological relative (sibling, child, or parent) with past or current insomnia.

Fig. 1
figure 1

Patient visit process. Participants were trained individually on how to use the app by a research assistant. Patients were included in this study if they were interviewed with a psychiatrist and diagnosed with insomnia, anxiety disorders, or anxiety comorbid with insomnia or depression. Treatment plans were delivered to patients via the mobile app

The mobile app has a series of validated and established patient self-report instruments. The Pittsburgh Sleep Quality Index (PSQI) was used to assess the multifactorial construct of self-perceived sleep quality. The Epworth Sleepiness Scale (ESS) was used to measure each participant’s daytime sleepiness. The severity of depression and anxiety were assessed using the Patient Health Questionnaire (PHQ-9) and the Generalized Anxiety Disorder 7-Item Scale (GAD-7), respectively. The Patient Health Questionnaire Somatic Symptom Severity Scale (PHQ-15) was used to assess somatic symptom severity. The components of dCBT-I include sleep hygiene, sleep restriction, relaxation techniques, stimulus control and cognitive restructuring [21]. The app had videos of each training session. See Supplementary Materials for further details. Homework was assigned to participants to allow time to practice these skills between sessions. Messages were automatically sent via the app to remind participants to complete the tasks. The treatment effect for insomnia was reassessed via the mobile app. dCBT-I consisted of 8 weekly sessions, and the cognitive and behavioral components were assigned appropriately based on online self-assessment reports during 8-week to 12-week follow-up measures.

Primary outcomes

Total PSQI scores were assessed as primary outcomes. Supplementary Fig. 1 represents the steps for data screening. A final set of 6,002 participants was included in the analysis. A subset of individuals had data available at both 8- and 12-week follow-up. 509 participants completed the self-report PSQI scale.

Statistical analysis

We performed statistical analysis by using chi-square tests for categorical variables (sex, educational level, employment status and family history of insomnia), analysis of variance (ANOVA) for age and non-parametric Kruskal-Wallis tests for other clinical characteristics between patient groups. Data distribution was assessed using Shapiro-Wilk test, and P < .05 indicated that a variable was not normally distributed. The non-parametric Friedman test for repeated measures was used to compare total PSQI scores assessed at baseline, 8-week, and 12-week follow-up. We used G*Power v3.1.9 to estimate the sample size required. We found that with 3 observation times among 1 group and projected medium effect size (d = 0.30), more than 19 for an ANOVA with repeated measures are needed with α = 0.05. Consequently, we adopted a sample size for the treatment group of n  19 for further analysis.

For post hoc analyses, Wilcoxon signed-rank tests were used for non-parametric paired comparisons, and Wilcoxon rank-sum tests were used for unpaired experimental measures. The two-way Wald-type statistic (WTS) was conducted to compare differences in primary outcomes for the factors of time and treatments using the R package nparLD [22]. Relative treatment effect (RTE) was reported as a measure of effect size. RTE represents a probability that a randomly drawn observation from a particular group has a more significant value than that from the combined mean distribution [23]. RTE is a probability value between 0 and 1, with 0.5 signifying no effect and 0 and 1 signifying complete separation of the two groups. P values were corrected for multiple comparisons using the false discovery rate (FDR) procedure, and PFDR < 0.05 were declared to be statistically significant. Python 3.6.5 and R version 3.6.1 were used to perform the analyses.

Results

Characteristics of participants

Overall, 6,002 participants were included, with 1,517 [25.27%] in the insomnia group, 2,583 [43.05%] in the anxiety disorders group, 933 [15.54%] in the anxiety disorders comorbid with insomnia group and 969 [16.14%] in the depression group. Table 1 presents baseline demographic and clinical characteristics for patients with the chief complaint of unsatisfied sleep quality by specific diagnostic categories. Those four diagnostic groups exhibited statistically significant differences in demographic and clinical variables. Figure 2 shows different treatments in each diagnostic group. 19.40–26.96% of patients with insomnia complaints reported not having treatments.

Table 1 Demographic and clinical characteristics of participants with insomnia complaints
Fig. 2
figure 2

Percentage of patients with insomnia complaints in each treatment option. Med, medication. dCBT-I, digital cognitive behavior therapy for insomnia

In the insomnia group, 492 [32.43%] patients had medication alone, 260 [17.14%] patients had dCBT-I monotherapy, 356 [23.47%] had combined therapy, and 409 [26.96%] patients reported not having any treatment. See Supplementary Table 1 for characteristics of different treatment types. Compared to patients with insomnia treated with medication monotherapy and with combined therapy, patients with dCBT-I monotherapy were relatively younger [Mean age 42.19 years, standard deviation (SD) 11.85] (d = 0.30, PFDR < 0.00; d = 0.33, PFDR < 0.001, respectively) with a higher percentage of employment status [69.52%] and family history of insomnia [36.15%], and a lower percentage of long illness duration (> 12 months) [52.31%] and history of taking psychotropic medications [25.38%], and lower PSQI scores (d = 0.57, PFDR < 0.001; d = 0.62, PFDR < 0.001, respectively). The descriptive statistics of variables between different treatment options are listed in Supplementary Tables 2, 3 and 4 for anxiety disorders group, anxiety comorbid with insomnia group, and depression group, respectively. See supplementary results for more details.

Effects of dCBT-I on sleep quality in the follow-up subset

For the primary outcome - PSQI scores, 509 patients had data available at 8- and 12-week follow-up, with 97 in the insomnia group, 298 in the anxiety group, 46 in the anxiety comorbid with insomnia and 68 in the depression group. Table 2 lists the variables of different treatment options with sample size  19.

Table 2 Demographic and clinical characteristics of longitudinal subset

In the insomnia group treated with dCBT-I monotherapy, reduced PSQI scores were detected at 8- and 12-week follow-up compared to baseline (PFDR < 0.001, see Table 2), but no significant differences were found in PSQI scores between 8- and 12-week follow-up (PFDR = 0.51). Similar changes in PSQI scores were observed between baseline and 8- and 12-week follow-up in the insomnia group with combined therapy and the anxiety comorbid with insomnia group with combined therapy. In Fig. 3A, a violin plot represents the distribution of PSQI scores for different treatment types at baseline and follow-up.

Fig. 3
figure 3

Comparisons of PSQI scores at baseline and follow-up. A Violin plot of PSQI scores for each treatment in different clinical diagnoses at baseline and 8-week and 12-week follow-up. INS, insomnia group. ANX, anxiety disorder group. INS + ANX, insomnia comorbid with anxiety disorder group. Dep, depression group. B relative treatment effect (RTE) of dCBT-I (digital cognitive behavior therapy for insomnia) monotherapy and combined therapy in the insomnia group at baseline and 8-week and 12-week follow-up. C RTE of dCBT-I monotherapy, medication monotherapy and combined therapy in the anxiety disorders group at baseline, 8-week and 12-week follow-up

In patients diagnosed with anxiety disorders, significantly lower PSQI scores were achieved in each treatment group at 8- and 12-week follow-up compared to baseline (PFDR < 0.001). The further reduction of PSQI scores were detected at 12-week compared to 8-week follow-up in patients treated with CBT-I monotherapy (PFDR = 0.03) and those with combined therapy (PFDR = 0.01), but not in those receiving medication alone (PFDR = 0.15). Similarly, reduced PSQI scores were detected in the 12-week compared to 8-week follow-up in the depression group receiving combined therapy.

Relative treatment effect between treatment and time

In the insomnia group, for the primary outcome - PSQI scores, the main effect of time was significant (WTS = 151.18, PFDR < 0.001). At baseline, 8- and 12-week follow-up, RTEs = 0.68, 0.35, 0.34 for dCBT-I monotherapy and RTEs = 0.78, 0.40, 0.37 for combined therapy. The main effect of time was significant different in PSQI scores between patients treated with CBT-I monotherapy and those with combined therapy (WTS = 100.15, PFDR < 0.001, RTEs = 0.46, 0.52 for these two treatments). Figure 3B represents rapid improvement observed for both treatment options with a significant time effect. Significant decreases of PSQI scores at 8-week follow-up compared to baseline indicated fewer sleep problems and better sleep quality. However, there were no statistically significant differences in the PSQI scores at 8- and 12-week follow-up time points in the insomnia group with each treatment type. Neither the main effect of treatment options nor the treatment-by-time interaction were significant in the insomnia group (WTS = 1.61, PFDR = 0.41; WTS = 1.42, PFDR = 0.49, respectively).

In the anxiety group, the main effect of time was significant in the PSQI scores (WTS = 193.12, PFDR < 0.001, at baseline, 8- and 12-week follow-up RTEs = 0.79, 0.42, 0.36 for medication alone, RTEs = 0.61, 0.40, 0.37 for CBT-I monotherapy, and RTEs = 0.72, 0.43, 0.40 for combined therapy). The significant main effect of time in PSQI scores was different between each two treatment types (PFDR < 0.001). Significant treatment-by-time interaction was observed (WTS = 11.05, PFDR = 0.04). The treatment-by-time interaction in the dCBT-I monotherapy group was significantly different from that of the medication alone group (PFDR = 0.02), and that of the combined therapy group (PFDR = 0.02). The significant interaction effect indicates that the plots of PSQI scores are not parallel over the time points between the two treatment types. See Fig. 3C. However, there were no significant differences in the treatment-by-time interaction between medication alone and combined therapy (WTS = 1.65, PFDR = 0.20). No main effect of treatment types was detected in the anxiety group (WTS = 4.25, PFDR = 0.12).

Discussion

To our best knowledge, this is the most extensive real-world study to evaluate the efficacy of dCBT-I delivered via a mobile app for adults with insomnia in a single clinical setting. Our results indicated clinically meaningful reductions in PSQI scores relative to baseline in each diagnostic group with different treatment options. The current findings confirmed the efficacy of dCBT-I for improving subjective feelings on insufficient sleep in patients with insomnia, depression and anxiety disorders. Significant improvements in sleep quality at 12-week compared to 8-week follow-up were observed in the depression group receiving combined therapy and in the anxiety group treated with dCBT-I monotherapy and with combined therapy. This study was also identified the time-by-treatment interaction in the anxiety group manifesting PSQI scores differed between dCBT-I monotherapy and other treatment types over time. Notably, about one-quarter of patients with insomnia complaints did not receive the recommended treatment, which probably contributed to poor prognosis and disease progression of the disorder.

In this study, sleep quality improvement was prominent at 8-week follow-up compared to baseline in the insomnia group treated with dCBT-I monotherapy and with combined therapy, but no significant improvement was observed from 8-week to 12-week follow-up. In the anxiety group, patients receiving medication alone showed a negligible decrease in PSQI scores at 12-week follow-up compared to 8-week, whereas patients treated with combined therapy and with dCBT-I monotherapy exhibited a significant reduction in PSQI scores. Our findings suggested that the effect of dCBT-I was dissimilar to the impact of medication on the improvement of sleep quality. Previous studies have supported the endorsement CBT-I as the best available intervention for patients with insomnia, including those with coexisting mental disorders [11, 19, 20, 24]. Consistent with prior research, the current results indicate that CBT-I may be highly effective in reducing insomnia and improving sleep across a wide array of clinical populations in a real-world setting [5, 19, 24, 25]. In addition, as insomnia and anxiety disorders commonly co-occur, treatment of insomnia may prevent the exacerbation of comorbid anxiety symptoms [5, 6]. A prior study demonstrated that patients with a longer treatment duration of dCBT-I exhibited more significant improvements in reducing insomnia [14]. This study also suggested that 12-week dCBT-I compared to 8-week treatment duration could have more improvements of sleep quality in patients with anxiety. Overall, the current findings highlight the need to increase our understanding of the importance of dCBT-I in treating insomnia symptoms, especially in patients with anxiety disorders.

In this study, individuals with insomnia complaint treated with dCBT-I monotherapy had a higher percentage of family history of insomnia compared to individuals receiving other treatment options in respective insomnia, anxiety, and depression groups. Previous studies have reported that insomnia is heritable and tends to aggregate in families [26,27,28]. More than a third of individuals with an insomnia complaint have a first- or second-degree relative with a current or past sleep problem which indicates the existence of a familial vulnerability to insomnia [27]. Family and personal history of insomnia are considered as predisposing factors for insomnia [28]. Notably, CBT-I effectively prevents the onset of insomnia, offsetting vulnerability factors and improving functional outcomes in adolescents with a family history of insomnia [29]. In line with previous findings, the current results support the status of CBT-I as a significant intervention for patients with insomnia complaints with a family history of insomnia. Additionally, CBT-I delivered in general primary care effectively improves sleep onset and maintenance in patients with chronic insomnia [30]. Due to accelerating technological improvements, dCBT-I can be an increasingly cost-effective and highly accessible intervention to improve sleep efficiency [31].

Consistent with prior studies, the current findings indicate that dCBT-I monotherapy, medication alone and combined therapy have significant effects on improving sleep quality for patients with insomnia complaints in a short term [2, 10]. Psychological and pharmacological therapies have complementary roles in the treatment of insomnia, whereas CBT-I may result in sustained long-term benefits for patients with insomnia [2, 15, 25, 32]. CBT-I is essential to alter factors that exacerbate or perpetuate insomnia [11, 12, 21]. In addition, dCBT-I is as clinically effective as conventional CBT-I, with equal or superior efficacy to hypnotics but fewer side effects and longer-lasting benefits following the discontinuation of treatment [17, 25]. Moreover, digital health applications represent a promising direction to reduce barriers and problems of delivering adequate treatments for sleep problems. As a potential therapeutic advantage, the prolonged beneficial effect of dCBT-I for insomnia symptoms should be investigated further in future research work.

Although the strengths of our analysis included a large clinical population over several years in a real-world study, several limitations must be acknowledged. First, we did not take into account the physical health status of patients in this study. The association between sleep and physical health is complex, and it is difficult to interpret the effects of health adjustments and separate insomnia from comorbid conditions. Second, this study focused on sleep quality in patients with insomnia complaints and self-reported measures for sleep disturbances and mood disorders. In future studies, it will be advantageous to include evaluation for insomnia severity and objective assessment measures, including polysomnography and actigraphy. Third, participants in the current study were recruited from a sleep clinic in a psychiatric hospital. The future study combined with participants recruited from a general hospital may make the findings more comprehensive. Fourth, this study did not account for socioeconomic status, social media use and physical exercise. In this regard, considering the accessibility of mobile phones, higher social media use at bedtime is associated with poorer sleep outcomes, including shorter sleep duration and poorer sleep quality [33]. Fifth, an unexplored possibility for this study that is relevant for some of these study limitations is the possibility of including include digital technologies such as fitness trackers, augmented reality or virtual reality digital health tools in interventions to combat insomnia. Sixth, attrition rate was relatively high in this real-world study, but comparable to other smartphone apps real-world research [34]. Strategies to improve treatment engagement should be considered, including providing person-to-person feedback, tailoring messages to maintain users’ interests, and incentivizing the adherence to treatment [35, 36].

Conclusion

Via a large clinical population in a real-world setting, this study found that dCBT-I was effective and accessible for improving sleep quality for patients with insomnia complaints, especially those younger and with a family history of insomnia. The current findings also highlight the need to increase our understanding of the importance of dCBT-I for reducing insomnia in patients with anxiety disorders, as longer treatment duration resulted in more remarkable symptom improvement. Our findings provide the evidence for dCBT-I efficacy as mono- or combined therapy in insomnia, and treatment for helping to guide personalization of treatment in clinical practice.