Introduction

Sleep disturbances frequently present serious challenges for individuals diagnosed with epilepsy. Earlier studies indicate that people with epilepsy (PWE) experience twice the frequency of sleep disturbances compared to their healthy counterparts [1, 2]. These disruptions primarily encompass difficulties in the onset and maintenance of sleep [2], regular nighttime awakenings, and episodes of obstructive sleep apnea [3]. Consequently, PWE often experience fatigue, cognitive impairments, and increased daytime sleepiness, compounding the difficulties they encounter in managing their health [4, 5].

Numerous studies have investigated the possible pathophysiological mechanisms contributing to sleep disturbances in this population. It is widely recognized that multiple contributors may influence the onset and development of sleep disturbances, including alterations in neurotransmitter systems, neuroendocrine dysfunction, and changes in sleep architecture [6]. Additionally, the adverse effects of antiepileptic medications [7], frequent nocturnal seizures [8], poor sleep hygiene habits, and psychological factors may worsen sleep issues in PWE.

Depression frequently coexists with epilepsy, affecting more than one-third of PWE [9]. A study conducted in China reported that 28.8% of PWE suffer from depression [10]. Fiest et al., in a meta-analysis, found that depression rates in PWE are 23.1% [11]. Hospitalized PWE exhibit an even higher depression rate, exceeding 50%, compared to approximately 8% among patients in remission [12]. The combination of social isolation, dysfunction, and inappropriate use of antiepileptic medications has the potential to trigger depressive symptoms [13]. Population-based studies suggest that individuals with prior depression have an elevated likelihood of developing epilepsy, ranging from four to seven times the risk compared to the broader population [14]. The comorbidity of epilepsy and depression is often caused or induced by a combination of pathological mechanisms, such as neurotransmitter imbalance, hippocampal dysfunction, and endocrine dysregulation [15, 16].

Notably, sleep disturbances and symptoms of depression often co-occur and exhibit patterns of interaction and influence [17]. Depressed individuals commonly suffer from a variety of sleep issues, including insomnia, excessive daytime sleepiness, and disrupted sleep-wake patterns [18]. Sleep disturbances can also serve as precipitating factors in the onset and progression of depression, exerting adverse effects on emotional regulation, cognitive function, and neuroendocrine homeostasis.

Although depression and sleep disturbances have been extensively discussed in the context of epilepsy, existing studies often isolate the relationship between epilepsy and sleep or between epilepsy and depression. However, this segmented perspective may overlook the potential complex interactions among these three factors. Understanding these interactions is crucial for enhancing management strategies and improving treatment outcomes. Thus, our study aimed to evaluate the association between epilepsy and sleep disturbances among adults in the United States, specifically investigating the potential role of depression as a mediator.

Methods

Study design and participants

Our study drew on data from the National Health and Nutrition Examination Survey (NHANES), a comprehensive database initiated in 1999, which evaluates the health and nutritional status of the U.S. population [19].To ensure national representativeness, the NHANES employs a continuous multistage probability sampling method. The NHANES study was granted ethical approval by the Research Ethics Review Board of the National Center for Health Statistics, and all participants provided informed consent prior to their involvement. Furthermore, this database is publicly accessible, and no additional ethical or administrative permissions are required. We adhered to NHANES guidelines and regulations in all analyses conducted. We included participants from the NHANES data collected between January 1, 2015, and March 2020 (prepandemic), as this period encompassed the comprehensive set of variables essential for this investigation, including the utilization of prescription medications, sleep assessment, and the Patient Health Questionnaire 9 (PHQ-9). Figure 1 illustrates the diagram of the screening procedure.

Fig. 1
figure 1

Flow chart of the screening process from National Health and Nutrition Examination Survey. Abbreviations: PIR, poverty income ratio; CHD, coronary heart disease; PHQ-9, Patient Health Questionnaire-9

Antiepileptic drug use and epilepsy diagnosis

The NHANES survey assessed participants to determine if they had taken any prescription drugs in the past 30 days, querying them on the generic names of the medications, the primary reasons for their use, and any corresponding ICD-10-CM codes provided. Detailed codes and names of antiepileptic drugs are listed in Table S1. PWE were identified by their use of antiepileptic medications and the relevant ICD-10-CM codes [20, 21].

Assessment of sleep disturbance

Sleep parameter data were obtained from the “Sleep Disorders” dataset of the NHANES questionnaire [22]. Participants reported their typical nightly sleep hours on weekdays or workdays. Sleep duration was categorized as short (< 7 h), normal (7–9 h), or long (> 9 h) based on these reports [23]. Participants were also asked whether they had informed a doctor about their sleep difficulties, which was used to assess the presence of trouble sleeping. Table 1 outlines the calculation of a sleep quality score, incorporating sleep duration, trouble sleeping, snoring, snorting, or stopping breathing, and excessive daytime sleepiness as metrics. Scores ranged from 0 to 5, with lower scores indicating poorer sleep quality [24]. A sleep quality score below 2 points indicated the presence of sleep disturbances [25].

Table 1 Definition of sleep quality score

Assessment of depression

Depression data were derived from the “Mental Health - Depression Screener” dataset within the NHANES questionnaire. Depression severity was assessed using the PHQ-9 questionnaire, a reliable and validated diagnostic tool designed to evaluate mood disorders based on diagnostic criteria for depression [26]. The questionnaire consists of nine questions, each scored on a scale of 0 to 3, resulting in a total score ranging from 0 to 27. A higher cumulative score signifies increased severity of depression [27, 28].A PHQ-9 total score ≥ 10 is considered indicative of major depressive disorder (MDD) [29].

Potential covariates

Demographic covariates were gathered through household interviews, while health-related covariates were assessed at Mobile Examination Centers (MEC). Age was stratified as < 40, 40–60, and > 60 years. Race categories were defined as Mexican American, non-Hispanic White, non-Hispanic Black, other Hispanic, and other races. Educational attainment was categorized into three groups: less than high school, high school graduate, and beyond high school. Marital status was classified as never married, married or living with a partner, and widowed, divorced, or separated. Poverty income ratio (PIR) was categorized as < 2 (low-income) and ≥ 2 (moderate to high-income).Participants reporting having smoked at least 100 cigarettes in their lifetime were classified as smokers. Hypertension was determined by clinical diagnosis, ongoing treatment with hypertension medication, or blood pressure readings above 140 mmHg for systolic or 90 mmHg for diastolic pressure measured during the physical assessment. Average blood pressure was calculated from up to three readings taken at different times. The presence of diabetes was confirmed using any of the following criteria: (1) hemoglobin A1C levels at or above 6.5%, or fasting blood glucose levels equal to or exceeding 126 mg/dL [30]; (2) physician-diagnosed diabetes, or use of anti-hyperglycemic medication or insulin. Diagnosis of coronary heart disease (CHD) and asthma was determined based on participants’ responses to whether they had ever been diagnosed with these conditions.

Statistical analysis

Given the complex multistage sampling strategy of NHANES, the data were combined and adjusted using the wtmec2 year weighting factor. Baseline characteristics were compared using t-tests for continuous variables and chi-square tests for categorical variables.Continuous data were presented as mean (standard deviation), and categorical data as weighted numbers (weighted percentages). To investigate the association between epilepsy and sleep disturbances, we utilized weighted univariate and multivariate logistic regression analyses. Three models were employed: Model 1, with no covariate adjustments; Model 2, adjusted for age, sex, race, education, marital status, and PIR; and Model 3, which included adjustments for all covariates. Mediation analyses were conducted to explore whether depression mediates the link between epilepsy and sleep disturbance. Subgroup and interaction analyses were employed to investigate associations between epilepsy and various covariates.Findings were presented as odds ratios (ORs) with 95% confidence intervals (CIs). All statistical procedures were conducted using R Studio (version 4.3.2), with a significance level set at P < 0.05.

Results

Population characteristics

Descriptive statistics of the study are detailed in Table 2. Following a sequence of screening processes, 10,093 individuals were selected from the NHANES database (January 1, 2015 - March 2020), representing a sample of 187,353,423 individuals in the general population. Among these individuals, 73 (weighted count 1,002,936) were diagnosed with epilepsy, while 10,020 (weighted count 186,350,487) were not. Compared to the control group, PWE significantly more frequently experienced MDD (18.84% vs. 7.57%, P = 0.003) and sleep disturbances (47.17% vs. 15.48%, P < 0.001). Additionally, there were statistically significant differences in terms of PIR, prevalence of hypertension, diabetes, and asthma, as well as PHQ-9 scores between individuals with and without epilepsy (P < 0.05).

Table 2 Characteristics of the participants in the NHANES

Weighted logistic regression

We performed weighted univariate and multivariate logistic regression analyses to examine the relationship between epilepsy and sleep disturbance. As shown in Table 3; Fig. 2, the fully adjusted model (Model 3) revealed a robust and statistically significant association between epilepsy and sleep disturbance (OR = 3.67, 95% CI = 1.68–8.04). Model 3 also indicated a significant relationship between MDD and the occurrence of sleep disturbances (OR = 3.32, 95% CI = 2.68–4.11).

Table 3 Associations of sleep disturbance with epilepsy and depression
Fig. 2
figure 2

Mediational models. Abbreviations: ACME, average causal mediation effects; ADE, average direct effects; PM, proportion mediated.*indicates P < 0.01

Mediation analyses

The study evaluated the intermediary role of depression in the relationship between epilepsy and sleep disturbance through a mediation analysis. As depicted in Table 4, mediation effects were observed across all models. Specifically, in Model 1, the mediating impact represented 26.5% of the overall relationship between epilepsy and sleep disturbances (indirect effect = 0.053, 95% CI = 0.007–0.020, P < 0.001). In Model 2, with additional adjustments for age, sex, race, education level, marital status, and PIR, the mediation effect constituted 25.4% of the relationship (indirect effect = 0.049, 95% CI = 0.006–0.020, P < 0.001). With all covariates adjusted, the mediation effect comprised 23.0% of the total relationship (indirect effect = 0.037, 95% CI = 0.004–0.015, P < 0.001).

Table 4 Depression mediating the association between epilepsy and sleep disturbance

Stratified analyses and interaction analyses

Subgroup analysis elucidated the heterogeneity in the association between epilepsy and sleep disturbances across various demographic strata (Fig. 3). Notably, substantial disparities were identified among subgroups delineated by sex, age, race, educational level, marital status, PIR, smoking status, and the presence of hypertension, diabetes, CHD, and asthma (all P < 0.05). Specifically, significant differences were detected among males, females, those younger than 40 years, individuals aged 40–60 years, Mexican Americans, non-Hispanic whites, non-Hispanic blacks, individuals with education beyond high school and those with education lower than high school, those who were married or living with a partner, those with a PIR lower than 2, smokers, and those not suffering from hypertension, diabetes, CHD, or asthma. In the analysis of the interaction effects on subgroups, age (P = 0.049) and hypertension (P = 0.045) were found to interact with epilepsy. Participants under 40 years of age (OR = 3.50, 95% CI = 1.17–10.47, P = 0.025) and those aged 40–60 years (OR = 4.22, 95% CI = 1.90–9.34, P < 0.001) had a higher risk of sleep disturbance compared to those over 60 years old. Participants without hypertension (OR = 4.45, 95% CI = 2.05–9.68, P < 0.001) showed a higher risk of sleep disturbance compared to those with hypertension.

Fig. 3
figure 3

Subgroup analysis of the association between epilepsy and sleep disturbance. Eachstratification was adjusted for sex, age, race, education level, marital status, PIR, smoking status, hypertension, diabetes, CHD and asthmaexcept the stratification factor itself. Abbreviations: PIR, poverty income ratio; CHD, coronary heart disease

Discussion

Our research investigated the connection between epilepsy and sleep disturbances using NHANES data. After adjusting for all confounders, we revealed a higher prevalence of sleep disturbance in PWE, which was consistent with prior research [31, 32]. Furthermore, mediation models highlighted that depression was significantly correlated with sleep disturbances in the adult American population.

A multitude of studies have documented a significant link between depressive states and disruptions in sleep [33]. Lin et al. identified several shared genetic variations, including MEIS1, OLFM4, and HEXIM1, that link MDD with insomnia [34]. Zhao et al. conducted research on 3,275 MDD patients at 32 different sub-centers, uncovering that more than 70% suffered from sleep disturbances [35]. Our data reaffirmed this association. In a retrospective and prospective collaborative study, it was found that higher depression scores could predict sleep disturbances in PWE [36]. Some researchers believe that depression, rather than epilepsy itself, is the main cause of sleep disturbances [37], which contradicts our findings. We identified epilepsy as an important contributing factor to sleep disturbances, with depression mediating approximately 23.0–26.5% of the relationship between epilepsy and sleep disturbances across various mediation models.

Epilepsy patients are at an elevated risk of experiencing sleep disturbances. Due to the considerable risks posed by comorbid conditions, extensive research has been conducted into the causes of the concurrent presence of epilepsy and sleep disorders, as well as the exploration of preventive measures [38]. Our study revealed that the prevalence of sleep disturbances among epilepsy patients was strikingly high at 47.17%, significantly exceeding that observed in the control group. A cross-sectional study indicated that 50.4% of epilepsy patients reported suffering from insomnia [39]. In a meta-analysis encompassing 25 original studies, Bergmann et al. revealed that epilepsy patients had notably higher Pittsburgh Sleep Quality Index scores than their counterparts [40]. Epileptic seizures often manifest during sleep, and recurrent episodes can disrupt sleep microstructure, hindering the progression from light to deep sleep stages, thus impacting both the quality and duration of sleep [41]. Certain antiepileptic drugs such as barbiturates and phenytoin may directly alter sleep patterns, induce drowsiness, reduce sleep quality, or trigger other related issues [42, 43].

Through subgroup analysis and interaction tests, we identified significant interactions between age, hypertension, and epilepsy regarding sleep disturbances. Our study findings indicate that epilepsy significantly increases the risk of sleep disturbance in individuals aged ≤ 60 years, whereas the association is not evident in individuals aged > 60 years. Possible explanations include age-related alterations in sleep architecture, coupled with the influence of physiological changes and comorbid chronic conditions [44, 45].It is important to recognize that although our findings reveal that the likelihood of sleep disturbances in epilepsy patients without hypertension is 4.45 times higher than in patients without epilepsy, this association is weakened among patients with hypertension. One must be cautious in interpreting these observations. Certain antihypertensive medications, including Alpha-2 agonists, can regulate the sleep structure of patients [46]. Additionally, hypertension often coexists with cardiovascular and cerebrovascular diseases [47, 48], obesity [49], and multiple comorbidities [50], potentially contributing to an elevated prevalence of sleep disturbances among hypertensive individuals, irrespective of epilepsy diagnosis. Moreover, elevated blood pressure can result in compromised regulation of cerebral blood flow [51] and perturb the equilibrium of neurotransmitters in the brain, thereby disrupting typical sleep patterns. Hence, the link between epilepsy, hypertension, and sleep disturbances may be attributed to a shared pathophysiological mechanism rather than a direct causal link.

Our study utilized a large dataset representing a national population sample to confirm that depression is a significant factor contributing to sleep disturbances in PWE. Additionally, we investigated the effects of multiple factors such as age, racial background, and the presence of hypertension. Disturbances in sleep can profoundly affect the well-being of individuals with epilepsy and have been associated with a wide range of health concerns, as indicated by prior research [52, 53]. Addressing depressive symptoms may lead to improvements in sleep quality and, consequently, promote the overall health and well-being of individuals in this patient population.

Despite the findings, our research is subject to constraints. Primarily, the cross-sectional design prevents the determination of cause-and-effect relationships between epilepsy, depressive symptoms, and sleep disturbances. Furthermore, our selection criteria, based on pre-existing data, may not fully represent the entire epilepsy patient population. Some individuals may not have undergone standardized antiepileptic medication therapy, and some patients with a history of epilepsy did not take antiepileptic medications within the last 30 days of the survey. Additionally, the study did not consider the impact of antiepileptic drugs on sleep and depression, nor did it include key variables such as epilepsy duration, types of seizures, and seizure frequency, which were absent due to insufficient NHANES data. Another limitation arises from our reliance on self-reported assessments of sleep disturbances, lacking objective measures such as actigraphy or polysomnography, potentially introducing reporting bias. Furthermore, the use of the PHQ-9 for diagnosing depression lacks clinical confirmation. These limitations should be considered and addressed in future research.

Conclusion

This investigation reveals a strong correlation between epilepsy and the occurrence of sleep disturbances. The role of depression as a key factor in this correlation underscores the intricate links between epilepsy, psychological health, and sleep disturbances. Despite these insights, additional research is necessary to determine causal relationships and to explore the potential mechanisms. Furthermore, expanded prospective studies are required to confirm these observations and to guide the development of more precise strategies for enhancing sleep and overall health in the epileptic population.