Background

Constipation is a very common intestinal problem. Previous studies have indicated that the incidence of constipation in the population studied, according to the Rome IV diagnostic criteria, is in the range of 7.9–8.6% and that the prevalence is lower in males than that in females [1]. Constipation increases the social burden and reduces the living standards of an individual [2]. Moreover, individuals with constipation have an elevated risk of death [3]. Thus, the treatment of constipation has attracted considerable attention and individuals with constipation are increasingly looking to modify their diets to relieve constipation.

Dietary factors are closely related to constipation [4]. The inflammatory potential of a diet refers to its potential to cause inflammation [5]. As a person’s daily diet contains various food types and dietary nutrients, specific interactions between these substances may exist, and the cumulative effect may impact the level of inflammation in the body [6]. A diet may be pro-inflammatory or anti-inflammatory. A pro-inflammatory diet can promote the onset of disease and its exacerbation, including colorectal cancer, constipation, and metabolic syndrome [3, 7, 8]. In addition, a pro-inflammatory diet can increase the levels of inflammatory markers. The intake of fruits, vegetables, and seafood may decrease the inflammatory markers; however, the intake of high-carb and high-fat diets has been linked to higher levels of these inflammatory markers [9, 10]. The higher the dietary inflammatory index (DII) and score, the greater the pro-inflammatory effect; the lower the DII and energy-dietary inflammation index (E-DII) score, the greater the anti-inflammatory effect. The intake of fewer fruits and vegetables [11, 12], and low intake of dietary fibre, water, and energy can lead to constipation [13, 14]. Moreover, Tan et al. showed that chronic intestinal inflammation and constipation caused by high-fructose and high-fat foods led to disruption in intestinal microbiota and microbial metabolites [15].

DII is objective index to assess the inflammatory potential of the diet [6, 16]. A high DII diet induces an inflammatory response, whereas a low DII diet contributes to an increase in the anti-inflammatory effect. DII is positively correlated with dietary inflammatory markers and is commonly used to measure the level of diet-borne inflammation [17, 18]. An increase in DII causes an imbalance in the intestinal flora and leads to abnormal intestinal health [19, 20]. Mice fed a diet high in fat or fructose had elevated levels of bacteria associated with inflammation [15]. Regardless of the fat content in the diet, high sugar diet exposure can alter the composition of the gut microbiota and induce gastrointestinal inflammation.Solid high-fat, high-sugar diet intake induces more significant changes in the gut microbiota than liquid sucrose [21]. When these two diets are not digested properly, they may cause an imbalance in the intestinal flora, potentially leading to inflammation [15]. This may be related to the fact that a pro-inflammatory diet affects the gut microbiota, which in turn affects gastrointestinal motility by regulating the brain–gut axis, affecting stool excretion [22,23,24]. However, no previous studies extensively examined the relationship between DII and constipation. E-DII adjusted the energy intake on the basis of DII. The E-DII is calculated based on the intake per 1,000 kcal consumed. Increasing the energy-adjusted DII score was a better predictor of dietary inflammation [6]. The higher the score of E-DII, the more pro-inflammatory components in the diet [25]. Although the relationship between inflammation and constipation has been studied, no studies have evaluated the relationship between DII and E-DII and constipation at the same time [19, 20]. Therefore, this study investigated the relationship between DII and constipation and the relationship between E-DII and constipation in adults in the United States (US).

Methods

Study cohort

The National Health and Nutrition Examination Survey (NHANES) is a cross-sectional study survey of the non-hospitalized population in US by the National Centers for Health Statistics of the Centres for Disease Control and Prevention (CDC). This study was conducted to further observe the relationship between dietary inflammation and constipation among US adults. We analysed data from the NHANES database for three periods: 2005–2006, 2007–2008, and 2009–2010. Data from the study population were collected at 2-year intervals and a stratified multi-stage approach was used to obtain representative data. All participants signed consent forms for participation in this study. The Ethics Review Committee of the CDC approved the creation and use of NHANES data.

Definition of constipation

We assessed constipation using the Bristol Stool Form Scale (BSFS). The constipation report was obtained through face-to-face interviews at the mobile examination centre (MEC). The BSFS has been used to define constipation in several studies because it is correlated with intestinal transit time [14, 26]. In the BSFS, stool consistency is categorised into seven types. Type 1 (separate hard lumps, like nuts) and Type 2 (sausage-like lumpy) are classified as constipation.

Dietary inflammatory index

Accurate information regarding dietary intake was collected during two 24-h period. Each participant was interviewed twice, and dietary recalls were collected on both occasions [27]. The DII is a review of thousands of articles discussing the effects of 45 dietary components on inflammation [6]. A greater pro-inflammatory effect reflects a higher score, while a greater anti-inflammatory effect is represented by a lower score [6]. However, only 28 available dietary component results could be extracted from the NHANES database [28]. Previous studies have shown that using 28 dietary components for predictions did not affect the results [5]. In the NHANES, DII was calculated using 28 food parameters: energy, protein, total fat, fibre, cholesterol, monounsaturated fatty acids, saturated fat, polyunsaturated fatty acids, n-6 fatty acids, n-3 fatty acids, niacin, thiamine, riboflavin, vitamin B12, vitamin B6, vitamin C, vitamin A, vitamin E, Vitamin D, ferrum, magnesium, zinc, selenium, folic acid, beta-carotene, caffeine, alcohol, and carbohydrates. The specific DII calculation methods have been previously described [29,30,31]. E-DII scores were measured by calculating DII per 1000-kilocalorie consumption and employed the same scoring procedure [32]

Covariates

The following variables were included in this study: ethnicity (non-Hispanic white, non-Hispanic black, or others); age (years) (< 45, 45–65, and ≥ 65); sex; marital status (single, married, or living with a partner); income-poverty ratio (%) (< 2, ≥ 2, or not recorded); education (< high school, high school, or > high school); alcohol consumption status (never, former, or current); smoking status (never, former, or current); physical activity (MET-min/week: < 500, ≥ 500, or not recorded); body mass index (BMI: < 25, 25–30, ≥ 30 kg/m2); depression; diabetes; hypertension; and intake of tea, coffee, moisture, plain water, tap water, bottled water, dietary fibre, and energy.

Statistical analysis

We applied the weights suggested by the CDC. These weights consider sampling bias, resulting in more accurate information. Continuous variables are presented as median (Q1–Q3), whereas categorical variables are presented as percentage (95% CI).

The basic characteristics are shown for the study population (Tables 1 and 2). To clarify the relationship between DII and E-DII and constipation, we used three different logistic regression models. DII and E-DII are increased by one unit (one standard deviation), and Q1 was used as a reference to observe differences between the odds ratios (ORs) and 95% CI for Q2, Q3, and Q4 and the difference between the results for both sexes. Model I was not adjusted for covariates; Model II was adjusted for three confounders – age, sex, and ethnicity; and Model III was adjusted for age; sex; ethnicity; education; marital,smoking; BMI; income-poverty ratio; physical activity; depression; hypertension; tea; coffee; moisture; tap water; and bottled water.

Table 1 Population characteristics by DII, weighted
Table 2 Population characteristics by E-DII, weighted

We calculated the value of the trend test in the models and the OR (95% CI) for the association between each continuous variable and constipation. We then examined the relationship between each variable and constipation using univariate analysis. Furthermore, to observe the relationships more intuitively, we examined the trends in both constipation and continuous variables using smooth curve fitting. We used the multiple imputation method to construct a logistic regression model. We used R and the Empower package (The R Foundation; http://www.r-project.org; version 4.2.0) for the statistical analyses, and a P value < 0.05 was considered as statistically significant.

Results

Baseline characteristics of the participants

Originally, 31,034 participants were drawn from the survey population. After excluding the participants under the age of 20 years, 17,132 were finally included in the study. After further screening, we excluded the participants without data on stool consistency (n = 2513) and DII (n = 1860). Pregnant females (n = 359) were also excluded because they are prone to constipation due to changes in the gastrointestinal tract [33]. Since including pregnant females would reduce the reliability of the findings, most studies that reported constipation in the literature excluded them [14, 34]. Ultimately, 12,400 individuals were retained for further analysis. The flowchart of the participant selection is shown in Fig. 1. Tables 1 and 2 list the characteristics of the weighted population; 48.3% of the participants were males. In total, 7.1% of the participants had constipation. The results showed that dietary intake decreased gradually as DII and E-DII increased.

Fig. 1
figure 1

Flow diagram of selection. Notes: The NHANES database had a total of 31034 participants from 2005–2010. Then, we screened out people who were 20 years or older (n = 17,132). Next, the following participants were further excluded: lacking data on stool consistency (n = 2513), lacking data on DII (n = 1860), and pregnant women (n = 359). Ultimately, data on 12400 participants were retained. Abbreviations: NHANES, National Health and Nutrition Examination Survey; DII, dietary inflammatory index

DII and constipation

From the smooth curve-fitting graph in Supplementary Figs. 1 and 2, DII and E-DII and constipation can be intuitively understood to possess a non-linear relationship. This relationship was further explored using three multiple-regression models (Tables 3 and 4). Logistic regression showed a positive correlation between DII and constipation (1.23, 1.16–1.30 in Model I; 1.13, 1.07–1.20 in Model II; and 1.13, 1.07–1.20 in Model III). There are similar trends in E-DII and constipation (1.22, 1.17–1.29 in Model I; 1.11, 1.05–1.17 in Model II; and 1.09, 1.03–1.17 in Model III). In Model III, the overall prevalence in Q4 was significantly higher than that in Q1 (DII regression model: 1.79, 1.30–2.47; P value for trend < 0.001; E-DII regression model: 1.75, 1.25–2.46; P value for trend = 0.001). In model III, this trend was observed in both sexes (DII regression model: 2.04, 1.39–3.00; P value for trend = 0.001 for males and 1.86, 1.08–3.22; P value for trend = 0.013 for females; E-DII regression model: 2.20, 1.39–3.47; P value for trend = 0.003 for males and 1.80, 1.06–3.06; P value for trend = 0.018 for females). This correlation was also observed after multiple imputations (Supplementary Tables 1 and 2).

Table 3 Association of DII with constipation, weighted
Table 4 Association of E-DII with constipation, weighted

Univariate analysis

The crude associations between constipation and demographic characteristics, smoking, alcohol consumption, physical activity, depression, diabetes, hypertension, and dietary intake are presented in Table 5. Several factors, including depression, non-Hispanic black ethnicity, and other ethnicities, influence the increased incidence of constipation. However, the incidence of constipation is reduced in males; it is also reduced in the people being married or living with a partner, with high income–poverty ratio, ≥ high school education, smoking, drinking, BMI ≥ 25 kg/m2, physical activity ≥ 500 MET-min/week, diabetes, and hypertension.

Table 5 Crude association of constipation with demographics, smoking, alcohol, physical activity, depression, diabetes, hypertension, and dietary intake

Discussion

This study extensively analysed the relationship between changes in DII and E-DII and the incidence of constipation. The analysis of 12,400 participants concluded that DII is positively associated with the incidence of constipation. Both DII and E-DII in the highest quartile significantly increased the incidence of constipation compared to those in the lowest quartile.

The effect of DII and E-DII on the gastrointestinal system have been examined in many studies. A previous case–control study [35] showed that the pro-inflammatory effect of diet on colorectal adenomas was non-significant (1.07; 0.97–1.19; P = 0.18). An anti-inflammatory diet has been reported to increase the frequency of faecal excretion and the amount and variety of gut microbiota [19]. A prospective study of patients aged 20–40 years with constipation [36] showed that, after 4 weeks of oral administration of lactis V9, the constipation symptoms improved, the anti-inflammatory cytokines increased, and the pro-inflammatory cytokines decreased. In a case–control study, a one-unit increase in DII was associated with a 10% increase in the likelihood of colorectal cancer and a 65% increase in the fourth quantile compared with the first quantile in a logistic regression model adjusted for multiple latent variables [37]. In another study, the DII score in the diet was divided into four groups from low to high according to the quartile, demonstrating that more stool passed in groups with lower scores [38]. The results of these studies demonstrate that DII is correlated with gastrointestinal diseases.

Several studies have shown a relation between dietary inflammatory potential and constipation. The Mediterranean diet pattern, which is characterized by high coarse grains and high fruit intake, is considered an anti-inflammatory diet [39, 40]. A study [41] of six Mediterranean countries showed a significant inverse association between the Mediterranean Diet Quality Index and functional constipation in teenagers and children. Herbs and spices are also part of the anti-inflammatory diet pattern [42]; for instance, ginger positively affects constipation [43, 44]. In a study investigating constipation relief, oral Chinese medicines containing ingredients such as plantains and sesame seeds were as effective as lactulose [45]. A previous cross-sectional study [3] showed that elevated DII is associated with constipation. After adjusting for various confounding factors, the results of that study revealed a relationship between the fourth-class DII group and constipation. When the group with the lowest DII value was used as the reference group, the effect values and confidence intervals of the second, third, and fourth groups in the study were 1.208 (0.938–1.555), 1.305 (1.018–1.675), and 1.671 (1.332–2.097), respectively.

DII and constipation showed a non-linear relationship in our study. After adjusting for multiple factors, the regression analysis results imply that the incidence of constipation increases with the increase in DII and E-DII, regardless of whether DII and E-DII were continuous or categorical variables. In the regression models, the incidence of constipation was highest in the highest group of the fourth class; the results were the same for both males and females. Therefore, DII and E-DII can facilitate the identification of people who are prone to constipation. This may be attributed the fact that an increase in DII and E-DII can increase stool hardness, leading to constipation. Combining the findings of this study with previous findings, it can be concluded that the increase in DII and E-DII aggravates the dysregulation of intestinal flora and increases stool stiffness, thus causing constipation.

This study findings can be used as a reference for clinical research and the development of public health policies. While this study cannot prove causality, the results suggest that nutritionists and dieticians can recommend the increase in the intake of anti-inflammatory diets to prevent constipation. In addition, this study expands the existing clinical research on DII and E-DII and constipation.

Several mechanisms may explain the effect of DII and E-DII on constipation. A cross-sectional study [20] showed that the types and levels of gut microbes had been linked to changes in inflammatory cytokines caused by diet. A high-fat diet is pro-inflammatory [46]. Transplanting microorganisms from mice on a high-fat diet significantly increased intestinal penetration of CD3+ T cells and macrophages, promoting an intestinal microbial imbalance [47]. In addition, dysbiosis of the gut microbiota is associated with constipation [48]. Gastrointestinal microbes affect gastrointestinal movement, food digestion, and absorption by regulating the brain–gut axis [49, 50], which is the interaction between the brain and gut. This two-way feedback pathway plays an important role in the homeostasis of the gastrointestinal tract and central nervous system, including a variety of mechanisms of the nervous, endocrine, and immune systems [51]. These mechanisms can regulate physiological processes such as immune and inflammatory responses, as well as visceral pain, neurobehavior, intestinal barrier function, and intestinal movement, thereby affecting intestinal health [23]. When the brain–gut axis is tense or unstable, abnormal intestinal dynamics may occur, leading to the retention of food in the gut for a longer time, thus promoting the growth and reproduction of harmful bacteria and causing intestinal inflammation [52]. Intestinal inflammation can cause damage to the intestinal wall and may also affect the intestinal mucosal barrier and the balance of intestinal flora to affect intestinal peristalsis and defecation function, leading to constipation [15]. In addition, a disorder of the brain–gut axis may also lead to an imbalance of intestinal hormones, such as the abnormal secretion of gastrin, enterocapsin, and 5-hydroxytrytamine. These hormones play an important role in regulating intestinal peristalsis and defecation, further aggravating constipation [53].

This strengths of this study lie in the use of data from the NHANES, and its comprehensiveness allowed us to account for a wide range of potential confounders; thus, increasing the validity of our findings. Second, to avoid the diminished efficacy and bias of statistical tests associated with the direct exclusion of missing values, we used multiple interpolation and sensitivity analyses to calculate missing data. The use of the E-DII to assess the inflammatory potential of the diet strengthened our exposure assessment. In addition, this study had many participants and used weighted analyses from a representative population from the US.

Despite the strengths of our study, some limitations should be acknowledged. First, the cross-sectional nature of the NHANES data precludes the establishment of causality; prospective studies are needed to confirm the temporal relationship between the dietary inflammatory potential and constipation. Secondly, as dietary intake information was obtained based on participants' recall ability, there may be some degree of measurement error and recall bias in the self-reported dietary data and constipation assessment. Third, although the DII is still used as reported in many studies [5, 54,55,56,57], the methods for detecting potential dietary inflammation are constantly being updated, and future research needs to incorporate various dietary assessments to provide a more comprehensive assessment of long-term dietary inflammatory potential. Finally, our analysis focused on a limited number of covariates, and the potential influence of other unmeasured factors, such as medication use or specific medical conditions, cannot be ruled out.

Although we explored the relationship between DII, E-DII, and constipation, many directions are worth studying in this field in the future. First, to study the effects of DII and E-DII on constipation in chronic diseases such as diabetes, hypertension, and heart disease, as well as the elderly and long-term bedridden patients, these studies are crucial to highlight the significance of employing a healthy diet to regulate constipation in these specific populations. Second, more prospective studies of the relationship between dietary intake and constipation are needed to determine a possible causal relationship. Third, the inclusion of intestinal flora and intestinal inflammation in the relevant studies of constipation is helpful to discover the internal mechanism of constipation.

Conclusions

The results of this study confirm that the prevalence of constipation in the population is positively correlated with DII, further showing that increased intake of pro-inflammatory diets may increase the incidence of constipation. This may be related to the fact that a pro-inflammatory diet affects the gut microbiota, which in turn affects gastrointestinal motility by regulating the brain–gut axis and affecting stool excretion [23, 47, 51]. The results were also consistent between the sexes. The findings of this study could facilitate the treatment of constipation. However, more prospective studies are required to trace the specific relationship and underlying mechanisms.