Introduction

It is estimated that over 20% of the general population have sleep problems, and more than 8% suffer from chronic sleep disturbance1,2. Sleep disturbance can be categorized into insomnia, or sleep disorders such as intrinsic or extrinsic dyssomnias, and parasomnias3 and have been found to be associated with a wide range of impairments in physical and mental health, as well as in social and emotional function1,4. Associations described with physical disorders have included diabetes5, cardiovascular diseases4, and impaired liver function6,7, although these have focused on moderate or severe sleep apnea rather than wider sleep disturbance.

Functional dyspepsia, affecting about 20% of the population8, is a common gastrointestinal disorder with symptoms of bothersome postprandial fullness, early satiation, epigastric pain, or gastric burning for the last 3 months without evidence of metabolic or structural diseases9. Previous research has suggested disrupted sleep quality in patients with dyspepsia compared to healthy controls, with published odds ratios ranging from 1.7 to 3.410,11,12,13,14. However, some studies have not found this association15 and others have found sleep apnea to be associated with irritable bowel syndrome rather than dyspepsia16,17,18. In addition, most research in this area has involved cross-sectional or case–control designs, providing limited information on the direction of causality.

We therefore aimed to compare the prospective risk of functional dyspepsia between patients with and without diagnosed sleep disturbance using a nationwide database of health service utilization. Interactions of depression and incident dyspepsia were also investigated to clarify further the association of interest.

Results

Comparisons of characteristics in patients with or without sleep disturbances

Table 1 compares demographic characteristics, comorbidities, and medications between the 36,044 patients identified with sleep disturbance (758 apnea, 35,286 non-apnea) and the 66,768 matched controls. The mean age of the sleep disturbance cohort was 52.2 years, and that of the control cohort was 52.0 years. Among those with sleep disturbance, the mean age of those in the apnea subgroup were slightly younger, with more than half under 50 years of age. Males predominated in the apnea subgroup, and females in the non-apnea subgroup. Compared with the control cohort, comorbidities and medications of interest were more common in the sleep disturbance cohort. Mean follow-up durations were 9.76, 9.16 and 9.71 years for the apnea subgroup, non-apnea subgroup, and control cohorts, respectively.

Table 1 Comparison of cohort characteristics.

Cumulative incidences of dyspepsia in patients with or without sleep disturbances

As indicated in Fig. 1, the cumulative incidence of dyspepsia in patients with sleep disturbance was approximately 10.5% higher than that in matched controls (log-rank test p < 0.001). The overall incidence density of dyspepsia was significantly higher in both the apnea and non-apnea subgroups compared to the control cohort (18.9, 210, and 6.73 instances per 1000 person-years, respectively (Table 2)).

Figure 1
figure 1

Kaplan-Meir method determined cumulative incidence of Dyspepsia compared between sleep disorder cohorts and comparisons without sleep disorder.

Table 2 Comparisons of incidence densities and hazard ratios of dyspepsia in exposed and control cohorts.

Risks of dyspepsia in patients with or without sleep disturbances stratified by comorbidities

Hazard ratios were significantly elevated for both sleep disorder groups within almost all strata (age, gender, most comorbidities, and with or without sleeping pills) after adjustment (Table 2). Only patients with sleep apnea comorbid with depression, obesity, heart failure, and no benzodiazepine (BZD) use did not have significantly elevated risks of dyspepsia.

Risks of dyspepsia by subtypes of sleep disorders

Significantly higher risks of dyspepsia were also found for all subtypes of non-apnea disturbance compared to controls (Table 3). Our sensitivity analysis, excluding incident dyspepsia within the 12 months after the index date, supported the robustness of our primary finding.

Table 3 Incidence rates and hazard ratios for dyspepsia by subtypes of sleep disorders.

Further analyses on risks of dyspepsia categorized by sleep disturbances and comorbidities

Patients with both sleep disorder and depression had the highest risk of dyspepsia (aHR 5.38, 95% CI 4.93 ~ 5.88), while non-depressed patients with sleep disorder still exhibited a significantly elevated risk of developing dyspepsia (aHR 4.07, 95% CI 3.92 ~ 4.24) (Table 4). Patients that had both sleep disturbance and obesity, heart failure, or no BZD use had higher risks of functional dyspepsia than those with comorbidities but without sleep disturbance (Table 4).

Table 4 Further analyses on risks of dyspepsia categorized by with or without sleep disturbances and comorbidities.

Discussion

To our knowledge, this is the first study to investigate the risk of functional dyspepsia associated with sleep disturbances, taking advantage of a population-based dataset derived from a universal health insurance system. We found that risks of functional dyspepsia were significantly higher in patients with sleep disturbances, and that this applied to both the apnea and non-apnea subgroups. These associations remained significantly elevated, following a variety of adjustments and stratifications for demographic factors, comorbidities, and medication use. Further analysis showed that this risk was most elevated in the subgroup of patients with both sleep and depressive disorders.

The associations of interest are consistent with previous cross-sectional and case control studies reporting disrupted or impaired quality of sleep among patients with dyspepsia11,14,19,20,21. However, some studies have suggested stronger associations of dyspepsia with irritable bowel syndrome rather than functional dyspepsia16,17,18 which we did not specifically investigate and would need further research. Our findings help to infer the direction of causation through the prospective design, although the opposite direction of causation (dyspepsia causing sleep disturbance) might also co-explain the cross-sectional relationship and would again need further specific investigation. It is possible that some cases of dyspepsia predate the onset of sleep disturbance despite being diagnosed later; however, this would predict an early divergence in incidence rates that was not sustained over follow-up; this is not apparent in the analysis of cumulative incidence displayed in Fig. 1.

Causal pathways between sleep disturbance and functional dyspepsia remain unclear, but plausible mechanisms include the chronic effects of sleep disturbance on gastrointestinal functions, including hypersensitivity to physiological stimuli, dysfunctions in autonomic nervous regulation, and/or alterations in neuroendocrine responses20,22. These will be considered and discussed in the following paragraphs.

First, visceral sensitivity may be altered due to disruptions of circadian rhythm in patients with sleep disturbances resulting in unpleasant abdominal sensations11,12,13,16,23. For example, Zhen et al. described bowel disturbances being significantly higher in rotating shift nurses compared to regular day nurses and that bowel symptom scores correlated with sleep disturbances positively24. Previous research has also shown that disruption of Stage 4 or slow-wave (deep) sleep, or the loss of rapid eye movement (REM) sleep, results in hyperalgesia or emergence of abdominal symptoms, such as nausea or cramping in healthy volunteers15,25,26,27, and in patients with functional dyspepsia12 or gastroesophageal reflux disease28. In addition, poor sleep quality (i.e. increased awakenings or altered sleep stages) has been found to be associated with gastrointestinal symptoms the next day among women with irritable bowel syndrome29,30. Other clinical studies have found that melatonin is helpful in reducing pain symptoms of irritable bowel syndrome without affecting colonic motility, and have suggested that this might be due to the restoration of circadian rhythms16,31. Although the focus has been more on irritable bowel syndrome than dyspepsia, it is plausible that adverse effects of poor sleep may influence both upper and lower gastrointestinal tracts10 and that routine clinical diagnoses obtained from administrative databases may overlap across the two conditions.

Second, gastric motility might be affected by autonomic dysregulation due to reduced sleep efficiency or increased proportions of REM sleep and intrusions during non-REM sleep10,18,20,32. These changes may indicate more nocturnal autonomic arousals20,33 with similar autonomic effects to waking20, as evidenced by increased sympathetic activity20, elevated cortisol and adrenocorticotropic hormone, or diminished vagal output33, leading to decreased migrating motor complexes in the duodenum19. However, since previous research has only described self-reported gastrointestinal discomfort after poor sleep on the preceding night10,19,20,29, direct evidence is lacking on whether long-term dysregulation of the autonomic nervous system during sleep might induce visceral motor abnormalities leading to dyspepsia34.

Third, sleep disturbance has been found to be associated with alterations in brain regions such as the raphe nuclei, implicated in the release of serotonin, and regulation of circadian rhythm35, or the locus coeruleus, implicated in noradrenergic mediated physiological responses to stress and arousal20,36. These brain regions also receive afferent neuroendocrine signals from the enteric nervous system mediated by ascending serotonergic, cholinergic, or noradrenergic pathyways20, as well as having descending projections that terminate in the dorsal horn to regulate pain sensations. As a neurotransmitter in descending myenteric interneurons, serotonin is responsible for enhancing acetylcholine and calcitonin gene-related peptide release in prokinetic pathways37. Interference with such pathways might block the initiation of reflexes within the enteric nervous system and affect gut motility. However, over-stimulation of such pathways would also cause hypersensitivity and bowel discomfort such as nausea, pain, or bloating.

Previous literature on dyspepsia has suggested that comorbidities from other organ systems and possible underlying psychological problems, such as social stressors or depression should be considered as etiological factors14,21,38,39. Our findings that the risk of dyspepsia was significantly higher in the sleep disorder groups within almost all comorbidities indicated that, in patients with comorbidities from multiple systems, having sleep disturbance is still key to the risk of their dyspepsia. Our findings of significant associations with sleep disturbance in both people with and without previous diagnoses of depression support the importance of including sleep disturbance alone in considering the etiology of dyspepsia, in addition to the other stressors. The risk of dyspepsia was not as significantly elevated in patients without sleep disturbance, and with only obesity, heart failure, or no BZD use implying that the risk of dyspepsia was influenced much by sleep disturbance than the other conditions. Although further elucidation of underlying mechanisms is still needed, we believe the chronic direct/indirect gastrointestinal effects of sleep disturbance may be implicated, including hypersensitivity to physiological stimuli, and/or dysfunctions in autonomic nervous regulation, and/or alterations in neuroendocrine responses.

Major strengths of this study included the use of a population-based dataset large enough to detect the association of interest, as well as the cohort design with a long observation period, and exposure/outcome measures derived from recorded clinical diagnoses rather than screening instruments. However, there are key limitations which need to be considered in interpreting the findings. First, measurement of comorbid physical disorders was limited to those for which ICD-9-CM codes had been listed, since these diagnoses and records were obtained from a database set up for insurance claims rather than for research purposes (although it is important to bear in mind that recorded diagnoses are required to justify treatments received). The diagnoses were clinician- assigned and might not generalize to research diagnoses. We therefore deliberately chose relatively broad and unambiguous diagnostic groups. Second, although we had access to abundant data on medical service utilizations, information was not present on certain other risk factors associated with dyspepsia, such as dietary habits, smoking40, body mass index10,41, and psychosocial stressors39. There were therefore still some residual confounders and some potential causal pathways that we were not able to explore. Third, the accuracy of the recorded diagnosis of functional dyspepsia needs to be considered, particularly when minor gastrointestinal sensations might be amplified by comorbid mental health conditions. Nevertheless, as we mentioned earlier, all insurance claims from the NHI are scrutinized on a regular basis according to the standardized diagnostic criteria in this study. Although our current study has compensating advantages of naturalistic observations from clinical environment, with regards to the above deficiencies, further well-designed long-term cohorts with diagnoses established by diagnostic interviews or laboratory examinations may help overcome these limitations.

Conclusions

Using a large, population-based dataset, we found a raised risk of functional dyspepsia in patients with sleep disturbance, both for apnea and non-apnea subgroups. Underlying mechanisms still need further investigation; however, our findings do indicate that sleep disturbance should be identified more systematically and clinical advice/management considered to reduce the risk of functional gastrointestinal disorders.

Methods

Data source

Data were analysed from the Longitudinal Health Insurance Database 2000 (LHID 2000), a cohort of one million people (approximately 4.4% of the total population) randomly selected from the Taiwan National Health Insurance Database (NHIRD) from 2000 to 2011.The age and gender distributions of the LHID are not significantly different from Taiwan’s population of 23.75 million42. The NHIRD contains and encrypts all healthcare claim data, including diagnostic codes, medical institutions, outpatient and inpatient orders, prescriptions, and expenditures for healthcare from Taiwan’s National Health Insurance (NHI) program launched in 1995: a single-payer insurance program with near-universal coverage of more than 99% of Taiwan’s residents42. Personal information in NHIRD cannot be identified after encryption, and use of the NHIRD must be authorized and audited by the Taiwan Bureau of NHI. Diagnoses are coded by physicians according to the International Classification of Diseases, Ninth Revision, Clinical Modification (ICD-9-CM), and are reviewed by the NHI Review Committee every three months to audit the appropriateness of diagnoses and treatments claimed by clinicians. Related to our study, the accuracy and validity of gastrointestinal or ulcer-related diagnoses from the NHIRD have been found to be acceptable when comparing to diagnoses from the medical charts43. The study described here was approved by the Institutional Review Board of China Medical University in central Taiwan (CMUH-104-REC2-115). All methods were carried out in accordance with relevant regulations and guidelines. Due to the anonymity of the NHIRD, informed consent is not required from patients providing data.

Sample ascertainment

For our study cohort, we identified two groups of patients newly diagnosed with sleep disturbances (ICD-9-CM 780.5X), including insomnia or hypersomnia with sleep apnea (780.51, 780.53, 780.57), and non-apnea sleep disorders (307.4X and 780.5X, excluding 780.51, 780.53, and 780.57) between 1998 and 2001. The non-apnea subgroup was further divided into 3 groups: insomnia (780.52), sleep disturbance (780.5X, excluding 780.51, 780.53, and 780.57), and others (sleep disorders or difficulty initiating or maintaining sleep: 307.4; sleep disturbances: 780.50, 780.58 ~ 780.59; other hypersomnia: 780.54; disruptions of sleep–wake cycle: 780.55; or dysfunctions of sleep stages or arousal from sleep: 780.56). The date of the first diagnosis of any of the above sleep disturbances was defined as the index date. Patients with multiple diagnoses of sleep disturbance were included once and assigned to the first index date. Patients with a recorded diagnosis of dyspepsia (536.8) before the index date or for whom age or sex information was incomplete were excluded. The control cohort patients (those without sleep disturbances) were randomly selected from the LHID 2000 and were matched with sleep disturbance cohort patients by age (± 5 years range), gender, and index year on a 1:2 ratio, applying the same exclusion criteria. All exposed and control patients were followed from the index date until the date of receiving a diagnosis of functional dyspepsia, withdrawal from the NHI program, or the end of 2011.

Outcome and covariates

The primary outcome of our study was dyspepsia (536.8) incorporated from inpatient and outpatient records. Such diagnosis of functional dyspepsia was made by clinicians according to the Rome III and IV criteria: i.e., defining dyspepsia as any combination of four symptoms, including postprandial fullness, early satiety, epigastric pain, and epigastric burning severe enough to affect daily activities and lasted at least 3 days per week over 3 months; with an onset of 6 months in advance. The following baseline recorded diagnoses prior to the index date were also ascertained as comorbidities potentially associated with both sleep disturbance and functional dyspepsia: diabetes (250.XX), hypertension (401.XX ~ 405.XX), hyperlipidemia (272.XX), anxiety (300.00), depression (296.2X ~ 296.3X, 300.4X, 311.XX), cholecystitis (575.XX), cholelithiasis and other disorders of biliary tract (574.XX, 576.XX)9, alcoholism (291.XX, 303.XX, 305.00, 305.01, 305.02, 305.03, 790.3X and V11.3)44, stroke (430.XX ~ 438.XX), ischemic heart disease (410.XX ~ 414.XX), heart failure (428.XX), atrial fibrillation (427.31), chronic kidney disease (CKD) (580.XX ~ 589.XX), chronic obstructive pulmonary disease (COPD) (491.XX, 492.XX, 496.XX), asthma (493.XX), fatigue (780.79), and obesity (278.XX). For inclusion eligibility (as independent or dependent variables or covariates), any disease diagnosis needed to appear in at least three outpatient visits or one hospitalization. Medication that might be associated with both sleep and dyspepsia was also extracted, namely: benzodiazepines (BZD), zolpidem, aspirin, non-steroidal anti-inflammatory drugs (NSAIDs)45, steroids, proton pump inhibitors, and h2-receptor antagonists.

Statistical analysis

Demographic and clinical characteristics of patients with sleep disturbance diagnoses (apnea subgroup and non-apnea subgroup) and controls were compared using chi-squared tests for categorical variables, and student’s t-tests for continuous variables. We computed the incidence rate (per 1000 person-years) of dyspepsia for each cohort. Cox proportional hazards models were used to assess the risk of subsequent dyspepsia associated with exposure status, and hazard ratios (HRs) with 95% confidence intervals (CIs) were estimated. Multivariate models were used to adjust for age, sex, comorbidities, and medication. We also compared the cumulative incidence of dyspepsia between the exposed and control cohorts using the Kaplan–Meier method, and tested their differences by log-rank tests. Additive interactions between comorbidities and sleep disturbance as exposures were also explored. Finally, to reduce the influence of undiagnosed dyspepsia occurring prior to sleep disturbance, a sensitivity analysis excluded dyspepsia in the 12 months after index date. All statistical analyses were performed using SAS (Version 9.3; SAS Institute, Cary, NC, USA) and the significance level was set at 0.05 for two-tailed tests.