Introduction

Insomnia is a prevalent health issue characterized by difficulty initiating or maintaining sleep or early-morning awakening, accompanied by dissatisfaction with sleep quantity or quality and clinically significant daytime impairment, which can severely impact an individual’s daily functioning and overall quality of life1. Chronic sleep problems may also increase the risk of cardiovascular disease, metabolic syndrome, and cognitive decline2. Healthcare workers are frequently exposed to prolonged work hours, rotating shifts, and heightened psychological stress, placing them at increased risk for sleep disturbances3. Evidence-based data suggest a high prevalence of insomnia symptoms among healthcare professionals, with several meta-analyses and large-scale studies indicating that approximately 36.1–43.7% of healthcare workers report clinically significant insomnia symptoms4,5. Such impaired sleep can adversely impact cognitive functioning, decision-making, and overall job performance, ultimately affecting patient safety and care quality6.

In parallel, gastrointestinal (GI) symptoms, which include abdominal pain, bloating, and altered bowel habits, are also prevalent among healthcare workers. The prevalence of these symptoms often exceeds the rates observed in the general population7. Studies have reported that up to 31–48% of healthcare workers may experience frequent GI complaints, potentially linked to irregular meal patterns, limited time for breaks, high psychological demands, and disruption of circadian rhythms due to shift work8. These GI symptoms not only reduce quality of life but may also compromise the ability to deliver optimal patient care9.

While substantial research has documented the association between poor sleep and GI symptoms in the general population10, evidence specifically targeting healthcare workers remains limited. A few studies have hinted at this relationship in certain subgroups, such as nurses, but most have not systematically accounted for relevant confounders, including anxiety, depression, and shift work frequency. These factors are known to be common and impactful in high-stress medical environments9,11. Moreover, previous investigations often focused on either insomnia or GI disturbances independently, rather than examining their concurrent interplay in this occupational cohort12. Given the prevalence of gastrointestinal symptoms and insomnia among healthcare workers and their known correlation in the general population, this study aims to explore the relationship between gastrointestinal symptoms and insomnia in healthcare workers.

Materials and methods

This study received formal approval from the Medical Ethics Committee of Quanzhou City First Hospital, approval number: 2023[185]. All methods were carried out in accordance with the Declaration of Helsinki and relevant guidelines and regulations. Written informed consent was obtained from all participants.

Study design and participants

This cross-sectional study was conducted from August 25 to November 30, 2023. We used a convenience sampling approach to recruit healthcare workers from 6 public hospitals in Quanzhou. For the purposes of this study, “healthcare workers” included doctors (both clinical physicians and those working in medical technology departments), nurses, and other allied health professionals. The complete questionnaire is provided in Supplementary Materials. Inclusion criteria: (1) Healthcare worker; (2) Age between 18 and 65, no gender restrictions. Exclusion criteria: (1) History of gastrointestinal malignancy; (2) History of gastrointestinal surgery (excluding colorectal polypectomy); (3) Evidence of peptic ulcer or erosive esophagitis within the last six months on endoscopy; (4) Chronic pancreatitis, inflammatory bowel disease, or bowel obstruction; (5) Severe organ damage and complications (such as cirrhosis, uremia) and severe cardiovascular, respiratory, or endocrine disease; (6) History of malignancy in other systems or organs; (7) Autoimmune diseases such as systemic lupus erythematosus and ankylosing spondylitis; (8) Long-term use of sleeping pills, anti-anxiety, or antidepressant medication; (9) Pregnant or breastfeeding women.

Data were collected via an online platform, Wenjuanxing (https://www.wjx.cn), which is widely used for academic and clinical research in China13. The questionnaire for this study was hosted at: https://www.wjx.cn/vm/wvkZGfj.aspx. The study team collaborated with the administrative offices of the participating hospitals to disseminate the survey link and/or a Quick Response (QR) code to eligible individuals through departmental email lists, hospital intranet portals, and dedicated WeChat groups. Upon accessing the online link or QR code, participants were presented with an introductory page outlining the study objectives, confidentiality statements, and an electronic consent form. Only those who confirmed consent were directed to the main questionnaire. All participants completed the questionnaire using their mobile phones or personal computers. Duplicate submissions were minimized by restricting each participant’s unique survey link/QR code access.

Assessment of insomnia

The Insomnia Severity Index (ISI) is used to assess the severity of insomnia symptoms. This scale consists of seven items, each evaluating the severity and impact of insomnia symptoms on daily life over the past two weeks. Each item is rated from 0 (no problem) to 4 (very severe problem). The total score ranges from 0 to 28, with higher scores indicating more severe insomnia symptoms. In accordance with the original ISI validation studies, scores are conventionally stratified as follows: normal (0–7), sub-threshold insomnia (8–14), moderate insomnia (15–21), and severe insomnia (22–28)14. For the present study, and consistent with the recommendation for community samples in the 2023 European Insomnia Guideline15, we defined insomnia for primary analyses as ISI ≥ 10.

Assessment of gastrointestinal symptoms

The Gastrointestinal Symptom Rating Scale (GSRS) is commonly used to evaluate the severity of symptoms in patients with functional gastrointestinal disorders (e.g., functional dyspepsia, irritable bowel syndrome). The GSRS, developed by Svedlund et al. in 1988, assesses multiple aspects of gastrointestinal symptoms, including reflux, abdominal pain, bloating, constipation, and diarrhea. Designed as a self-assessment scale, it allows patients to evaluate the severity of their symptoms based on recent experiences16. A higher GSRS score indicates more severe gastrointestinal symptoms. Details on how the GSRS is calculated are provided in the Supplementary Materials.

Covariates

Covariates considered in this study included age, gender, marriage, body mass index (BMI), education, monthly salary, smoking status, drinking status, weekly night shift count, comorbidity, family history of cancer, profession, department, unhealthy diet, weekly exercise frequency, anxiety, depression, and somatic symptom disorder. BMI was calculated as weight in kilograms divided by height in meters squared (kg/m2). Smoking was defined as a habit of smoking more than one cigarette daily. Drinking was defined as a habit of drinking alcohol more than once a week17. Comorbidity were defined as having hypertension, diabetes, or heart disease. An unhealthy diet was defined as frequently consuming barbecued or fried foods (≥ 1 time/week) or preferring salty flavors; otherwise, it was considered a healthy diet. Anxiety was defined as a total score of ≥ 5 on the Generalized Anxiety Disorder Scale (GAD-7). This scale consists of seven items to assess the frequency of anxiety symptoms over the past two weeks. Each item is rated from 0 (never) to 3 (almost every day), and the total score ranges from 0 to 21, with higher scores indicating more severe functional impairment due to anxiety. Scores of 5–9 and ≥ 10 represent mild and moderate-to-severe anxiety symptoms, respectively18. Depression was defined as a total score of ≥ 5 on the Patient Health Questionnaire-9 (PHQ-9)19. The scale assesses the degree of depressive symptoms experienced over the past two weeks, with each item rated from 0 (never) to 3 (almost every day). The total score ranges from 0 to 27, with higher scores indicating more severe depressive symptoms. Prior literature indicates scores of 5–9 represent mild depressive symptoms, and scores ≥ 10 represent moderate-to-severe depressive symptoms20. Somatic symptom disorder (SSD) was defined as a total score of ≥ 30 on the Self-reported Somatic Symptom Scale-China (SSS-CN)21. In clinical practice, SSD can be divided into mild, moderate, and severe levels based on scale scores: mild (30–39 points), moderate (40–59 points), and severe (over 60 points).

Statistical analysis

The sample size was calculated using G*Power software (Version 3.1.9.7, Heinrich-Heine-Universität Düsseldorf, Germany) based on logistic regression. A minimum of 221 participants was required to achieve 80% statistical power (α = 0.05) to detect an odds ratio of 1.5 for the association between gastrointestinal symptoms and insomnia22. The calculation assumed a baseline probability of 0.4 for the insomnia at the mean value of the GSRS score and an increase to 0.5 with one standard deviation increase in the independent variable, accounting for an R-squared of 0.1. The achieved power was 79.8%. All analyses were conducted using R statistical software (version 4.2.1; http://www.R-project.org, The R Foundation) and Free Statistics software (version 1.9; Beijing, China, http://www.clinicalscientists.cn/freestatistics)23. Continuous variables were expressed as mean ± standard deviation (SD) for normally distributed data or as median (interquartile range) for skewed data. Categorical variables were described as counts (percentages). Between-group differences were compared using the independent samples t-test, chi-square test, and Mann–Whitney U test, as appropriate. The relationship between gastrointestinal symptoms and insomnia was analyzed using univariate and multivariate logistic regression. The covariates included in the model were determined based on clinical expertise, univariate screening results (P-value < 0.05), or whether they led to a change in the effect estimate > 10%. Interactions between subgroups were examined through likelihood ratio tests. A P-value < 0.05 was considered statistically significant.

Results

Baseline characteristics of the study population

The online survey recruited 380 participants. After excluding three participants who met the exclusion criteria, two who were missing GSRS data, and three who were missing covariate data (age, smoking status, and drinking status), 372 participants were included in our analysis (Fig. 1). Table 1 presents the clinical characteristics of the study population based on insomnia symptoms. The participants had an average age of 37.8 ± 8.0 years, and 159 (42.7%) were male. At baseline, participants with insomnia symptoms had more weekly night shifts count, higher rates of anxiety, depression, and SSD, and nurses were more prone to insomnia than doctors.

Fig. 1
figure 1

Flowchart of the participant selection process.

Table 1 Baseline characteristics of the study participants.

Effect of gastrointestinal symptoms on the risk of insomnia in healthcare workers

Univariate analysis revealed that the weekly night shifts count, education, profession, anxiety, depression, SSD, and GSRS total score were associated with insomnia risk (Table 2). The results of the multivariate logistic regression analysis are shown in Table 3. In the unadjusted model, the GSRS total score was positively correlated with insomnia risk (OR 1.18; 95% CI 1.12–1.25). In Model 1, after adjusting for age and gender, the results remained consistent (OR 1.18; 95% CI 1.12–1.25). Model 2, which adjusted for variables in Model 1 as well as anxiety, depression, SSD, and weekly night shift count (these confounders were selected based on their association with the outcomes of interest or a change in effect estimate of more than 10%), still showed a positive correlation (OR 1.10; 95% CI 1.03–1.16). Model 3, which adjusted for the variables in Model 2 plus marriage, BMI, education, monthly salary, smoking status, drinking status, comorbidity, family history of cancer, profession, department, unhealthy diet, and weekly exercise Frequency, still demonstrated a positive correlation (OR 1.07; 95% CI 1.00–1.15).

Table 2 Association of covariates and insomnia.
Table 3 Association between GSRS total score and insomnia.

Subgroup analysis

In this study, we performed stratified analyses and interaction tests to determine whether the association between the GSRS total score and insomnia incidence was consistent across several subgroups. When stratified by age, gender, anxiety, depression, SSD, and profession, a consistent positive correlation was observed, and no significant interactions were found in any subgroup (Fig. 2). This indicates that the impact of gastrointestinal symptoms on insomnia outcomes is stable and not influenced by changes in covariates.

Fig. 2
figure 2

Subgroup analyses for the association of GSRS total score and insomnia. GSRS Gastrointestinal Symptom Rating Scale, SSD somatic symptom disorder. Adjusted for gender, age, BMI, marriage, education, profession, department, hospital grade, monthly salary, comorbidity, smoking status, drinking status, unhealth diet, weekly night shift count, weekly exercise frequency, anxiety, depression, SSD.

Discussion

This study examined the association between gastrointestinal symptoms and insomnia among healthcare workers and found a significant positive correlation between the two. That is, an increase in the severity of gastrointestinal symptoms was associated with a higher risk of insomnia. This finding complements existing literature on the relationship between gastrointestinal symptoms and insomnia in both general and specific populations while providing new insights into this relationship in the unique occupational group of healthcare workers.

Association between gastrointestinal symptoms and insomnia

A growing body of research has consistently highlighted the co-occurrence of GI symptoms and sleep disturbances in both community and occupational settings. For example, Gastrointestinal distress has been positively correlated with sleep disturbances, with pain, discomfort, and nocturnal gastrointestinal events potentially disrupting sleep continuity24. Additionally, One study examined the combined effects of psychological stress and insufficient sleep on GI function, revealing that elevated stress markers and reduced sleep duration significantly predicted GI complaints among office workers25. Although this study did not specifically target healthcare professionals, the high-pressure work environment and irregular schedules it described mirror those experienced by clinical staff, implying a similar pathophysiological trajectory in which stress-induced autonomic dysregulation could potentiate GI dysfunction and sleep impairment.

Notably, other investigations have identified specific disorders, such as irritable bowel syndrome (IBS), as being significantly intertwined with both insomnia and nonrestorative sleep26. One plausible mechanism is that inflammatory and nociceptive processes associated with IBS can heighten nocturnal arousal, leading to frequent awakenings and unrefreshing sleep. Conversely, chronic insufficient sleep may worsen GI symptoms by amplifying systemic inflammation and stress hormone levels, thus perpetuating a “vicious cycle” of exacerbated GI distress and cumulative sleep loss27. Taken collectively, these studies reinforce the notion that GI symptoms and sleep disturbances are linked by shared biopsychosocial factors, including autonomic dysfunction, heightened nociception, maladaptive coping mechanisms, and anxiety. They also underscore the need to move beyond viewing GI disturbances and insomnia as isolated conditions and instead regard them as mutually reinforcing domains, particularly in occupations (such as healthcare) where stress and irregular schedules further amplify this bidirectional interaction.

The uniqueness of gastrointestinal symptoms and insomnia in healthcare workers

In contrast, studies focusing on healthcare workers are relatively scarce. Our findings align with a study of South Korean nurses, which found that long working hours and night shifts could lead to poor sleep quality and digestive system problems among nurses11. Moreover, due to their high-stress work environment and irregular working hours, healthcare workers are more prone to gastrointestinal symptoms like indigestion and stomach pain, further exacerbating insomnia28. This underscores that the relationship between gastrointestinal symptoms and insomnia may differ in healthcare workers compared to the general population, especially given the role of work-related stress and lifestyle factors.

Furthermore, the persistent mental stress and emotional burden faced by healthcare workers may also be a key factor. Stress and emotional issues are common triggers of gastrointestinal symptoms and major contributors to insomnia. Our univariate analysis showed that anxiety, depression, and SSD were associated with insomnia risk. Previous research demonstrated that short sleep duration and poor sleep quality significantly affected the mental health of military healthcare workers29. Another study revealed that sleep disorders are closely related to the mental health issues of healthcare workers, particularly during the COVID-19 pandemic, where healthcare workers with sleep disorders had 3.74 times the risk of psychological problems compared to those without sleep disorders30. When facing gastrointestinal symptoms and insomnia, healthcare workers may need to emphasize stress management and emotional regulation due to the unique nature of their occupational stress.

This study focused on doctors and nurses, revealing that 48.7% of nurses experienced insomnia compared to 37.1% of doctors, which aligns with prior evidence indicating that rotating shift schedules contribute to disturbed sleep and poor recovery4. Additionally, nurses exhibited significantly higher GSRS scores. These findings underscore the greater health challenges nurses face in high-intensity, shift-based work environments. Frequent night shifts disrupt circadian rhythms and reduce sleep quality, leading to gastrointestinal dysfunction. Moreover, the high-stress clinical environment, characterized by long hours and heavy workloads, further exacerbates these symptoms among nurses31. In contrast, while doctors also endure high stress and long working hours, they typically have fewer shifts and concentrate more on diagnosis and decision-making, which may help mitigate some insomnia and gastrointestinal issues. Nevertheless, emergencies and extended hours continue to pose significant health risks for doctors32. Furthermore, the predominantly female nurse population contributes to these disparities, as research indicates that females are more susceptible to insomnia and gastrointestinal symptoms33.

Exploring the mechanisms of gastrointestinal symptoms and insomnia

While this study did not directly investigate the biopsychosocial mechanisms between gastrointestinal symptoms and insomnia, our findings align with existing literature regarding the gut-brain axis and the impact of stress responses on sleep. The possible mechanisms include: (1) Gut-Brain Axis and Neuroimmune Modulation: Emerging research emphasizes the pivotal role of the gut-brain axis, a bidirectional communication network involving the enteric nervous system, central nervous system, and gut microbiota, in maintaining the homeostasis of both GI and sleep functions34. Alterations in gut microbial composition can trigger neuroimmune responses, leading to increased production of proinflammatory cytokines and changes in neurotransmitter availability (e.g., serotonin, gamma-aminobutyric acid)35. These mediators not only modulate local GI motility and sensation but may also disrupt sleep architecture and circadian regulation. Furthermore, chronic low-grade inflammation has been implicated in both GI disorders (e.g., irritable bowel syndrome) and insomnia, underscoring a shared inflammatory pathophysiology that heightens perceived pain or discomfort, disrupts autonomic balance, and ultimately degrades sleep quality36. (2) Psychosocial Stress and hypothalamic–pituitary–adrenal (HPA) Axis Dysregulation: Healthcare workers, particularly those in high-acuity clinical environments, frequently encounter prolonged work-related stressors such as demanding schedules, critical patient care, and emotional labor37. This chronic stress can upregulate the HPA axis, leading to elevated cortisol levels that persist well beyond the work shift38. Elevated cortisol and sustained sympathetic hyperarousal are known to impair the restorative aspects of sleep, resulting in difficulty initiating and maintaining sleep, fragmented sleep cycles, and nonrestorative sleep39. Concurrently, these hormonal and autonomic shifts may compromise GI motility and increase visceral hypersensitivity, exacerbating symptoms such as pain, bloating, and reflux. Over time, this cyclical pattern of stress-related GI distress and sleep disruption can reinforce maladaptive behaviors, such as the use of stimulants, unhealthy dietary patterns, and insufficient relaxation. These behaviors further exacerbate both insomnia and GI dysfunction40. (3) Circadian Rhythm Disruption and Gastrointestinal Dysregulation: Irregular work hours and night shifts are hallmarks of many healthcare professions. Such schedules can dramatically disturb circadian rhythms by misaligning an individual’s internal clock with environmental light–dark cycles41. Circadian misalignment influences melatonin secretion, core body temperature rhythms, and peripheral clock gene expression in tissues including the GI tract42. Under normal conditions, circadian regulation helps synchronize GI motility, digestive enzyme secretion, and nutrient absorption with feeding times. However, night shift work disrupts these processes, precipitating erratic GI activity and potentially leading to symptoms such as constipation, diarrhea, and reflux. Meanwhile, the misalignment also impairs sleep initiation and maintenance, creating a dual burden on the individual43. (4) Psychological and Behavioral Components: In addition to biologically mediated mechanisms, psychological factors such as anxiety, depression, and somatization can intensify the association between insomnia and GI symptoms. Individuals with heightened anxiety or depressive symptoms often exhibit increased attentional bias toward bodily sensations, perceiving GI discomfort or pain more intensely44. This can precipitate a cycle in which nighttime ruminations about work stress or physical discomfort amplify pre-sleep arousal and worsen insomnia, in turn fueling further GI distress the following day45. Over extended periods, negative affect and poor sleep quality can lower stress tolerance, further accelerating the dysregulation of both GI and sleep systems46.

Limitations and future research directions

This study has several limitations. First, we employed convenience sampling through hospital e-mail lists, intranet notices, and WeChat groups. Although this approach facilitated rapid, anonymous recruitment, the sampling frame was indeterminate and a precise response rate could not be calculated, which may limit the representativeness of the findings. Second, the cross-sectional design precludes any inference of causality. Third, reliance on self-reported questionnaires may introduce recall and social-desirability biases. Fourth, the study was conducted in a single geographic region, so it may not capture variations in work environments and stressors experienced by healthcare professionals elsewhere. Future studies should adopt probability-based, multi-centre longitudinal designs to clarify causal relationships and to further elucidate the biopsychosocial mechanisms linking gastrointestinal symptoms and insomnia—particularly in high-stress clinical settings.

Conclusion

This study found a significant positive correlation between gastrointestinal symptoms and insomnia among healthcare workers. This finding highlights the health challenges healthcare workers face, particularly the close link between gastrointestinal health and sleep quality in high-stress work environments.