Background {#Sec1}
==========

All animals require energy to sustain basic life activities, such as survival, growth, and reproduction. Digested and absorbed, dietary nutrients are important precursors for the synthesis and metabolism of cells. Carbohydrates and fats are the main organic material sources to sustain life activities. Carbohydrates are present in all living organisms and have a variety of basic functions, providing energy for all non-photosynthetic organisms. Lipids perform many essential functions in cells. Due to their highly reduced state, they are effective energy storage molecules. They are bilayered hydrophobic units that form cells and organelle membranes, and act as effective signaling molecules to facilitate communication between cells \[[@CR1]\]. Reasonable carbohydrate and fat intake have a positive impact on human life activities, but excessive intake may be harmful to the human body, leading to diabetes, high blood pressure, and tumors \[[@CR2], [@CR3]\]. In recent years, with the prevalence of human obesity and diabetes, interest in lipid and carbohydrate metabolism has become increasingly prominent.

With the improvement in people's living standards, the dietary structure has gradually developed towards high sugar and high lipid. Continued high sugar and high lipid intake can lead to several abnormal conditions, such as obesity and type 2 diabetes. High fat and high lipid intake lead to over-nutrition, which, in turn, causes obesity. In the past 40 years, the world's obese population has increased from 105 million in 1975 to 641 million in 2014. Almost 1 in every 8 adults in the world has obesity problems; China is a country with the greatest number of obese people \[[@CR4]\]. Obesity increases the risk of type 2 diabetes, cardiovascular disease, stroke, high blood pressure, and cancers, affecting physical health. Studies have found that obesity is affected by age, diet, living environment, and genes \[[@CR5]\]. Obesity is essentially an energy balance disorder caused by excessive energy intake over energy consumption \[[@CR6]\]. Energy balance is highly regulated and complexly related to energy consumption by food sensory, nutrient intake signals, nutrient delivery and storage, eating behavior, growth, reproduction, basal metabolism, and physical activity. The integrated metabolic system inside the human body is highly complex and redundant, and it is difficult to fully elucidate the mechanisms underlying human obesity in a short period of time \[[@CR7]\]. In addition, mammalian genetic experiments take a long period of time. Therefore, many researchers are trying to study obesity-related metabolism in lower model organisms. *Caenorhabditis elegans* has been widely used to study obesity-related metabolism due to several advantages: (1) knowledge of the complete genome sequence; (2) the core genes involved in lipid and sugar metabolism pathways are highly conserved and align with higher organisms; and (3) low price, short life cycle, operability, transparent, and easy to observe \[[@CR8]--[@CR10]\].

Resveratrol, a polyphenolic plant antitoxin, is produced when plants encounter external stimuli, such as fungi and ultraviolet radiation, and plays an important role in protecting plants \[[@CR11]\]. Resveratrol has been derived from various parts of several plants, including the fruits, skin, and seeds. Numerous studies have shown that resveratrol exhibits various biological activities, such as blood fat-lowering, antioxidative, anti-aging, anti-tumor, anti-thrombosis, and immunoregulatory effects \[[@CR12]\]. In terms of lipid metabolism, resveratrol inhibits fat accumulation by reducing the synthesis of lipids and cholesterol, while promoting fat decomposition by enhancing fatty acid oxidation and glucose transport \[[@CR13]\]. Resveratrol ameliorates the abnormal lipid metabolism induced by dietary fat. The greater the concentration of resveratrol within a certain range, the better the recovery of antioxidant capacity in mice and the better the ability to improve lipid metabolism. However, after a certain range, resveratrol causes pre-oxidation in the body and does not improve hepatic redox status and lipid metabolism \[[@CR14]\].

In the present study, we evaluated the effects of sugars and lipids on the damage caused in *C. elegans* and selected the appropriate sugar and lipid concentration to model a high-sugar and high-fat diet. In addition, we explored the role of resveratrol in protecting *C. elegans* against high-sugar and high-lipid damage. Moreover, by using transcriptome sequencing technology, we studied the damage mechanism of high sucrose and high stearic acid on *C. elegans* and the repair mechanism of resveratrol.

Results {#Sec2}
=======

Effect of sugar and lipids on lifespan of N2 {#Sec3}
--------------------------------------------

Nematodes were treated with sugar at concentrations ranging from 0 to 550 mmol/L and lipid at concentrations ranging from 0 to 600 μg/mL. As shown in Fig. [1](#Fig1){ref-type="fig"}a--c and Table [1](#Tab1){ref-type="table"}, the average lifespan of nematodes treated with different concentrations of sucrose, fructose, and glucose increased initially and then decreased. Treatment with sucrose and fructose at a concentration of 5 mmol/L had a weak effect on the average lifespan of nematodes, whereas treatment with 5 mmol/L glucose significantly prolonged the average lifespan of nematodes. Treatment with 50 mmol/L sucrose, fructose, and glucose significantly prolonged the average lifespan of nematodes and delayed the onset of death. Treatment with sucrose at concentrations above 400 mmol/L significantly shortened the average lifespan of nematodes, whereas for fructose and glucose, the turning points were 500 mmol/L and 520 mmol/L, respectively. This indicates that treatment with low concentrations of sucrose, fructose, and glucose prolonged the average lifespan of nematodes, whereas when the concentration of sugar reached a certain level, the average lifespan of nematodes was significantly shortened. Among the three kinds of sugar, sucrose exhibited a relatively narrow range of concentration that prolonged the lifespan of nematodes, but glucose had a wider range of said concentration---5 mmol/L to 500 mmol/L. Fig. 1Effects of sugars and lipids on the lifespan of nematodes. **a**--**c** The effects of sucrose (**a**), fructose (**b**), and glucose (**c**) on the lifespan of nematodes. **d**--**f** The effects of stearic acid (**d**), linoleic acid (**e**), and cholesterol (**f**) on the lifespan of nematodes. Data are presented as mean ± SEM (*n* = 30). Values without a common letter are significantly different at *p* \< 0.05 Table 1The mean life span of N2 in different sugarsSucrose (mmol/L)Average life (days)Relative life rate of change (%)Fructose (mmol/L)Average life (days)Relative life rate of change (%)Glucose (mmol/L)Average life (days)Relative life rate of change (%)09.13 ± 0.41^b^09.13 ± 0.28^b^09.33 ± 0.08^d^59.14 ± 0.19^b^+  0.1459.46 ± 0.56^b^+ 3.63510.67 ± 0.14^c^+ 14.365012.13 ± 0.33^a^+ 32.845011.26 ± 0.23^a^+ 23.365011.14 ± 0.19^bc^+ 19.404007.81 ± 0.38^c^− 14.434009.26 ± 0.21^b^+ 1.5240011.37 ± 0.22^ab^+ 21.865007.64 ± 0.38^c^− 16.345009.10 ± 0.21^b^− 0.3650011.9 ± 0.28^a^+ 27.555507.61 ± 0.21^c^− 16.615509.03 ± 0.59^b^− 1.155206 ± 0.3^e^−  35.69Data are presented as mean ± SEM (*n* = 30). Values without a common letter are significantly different at *p* \< 0.05

As shown in Fig. [1](#Fig1){ref-type="fig"}d--f and Table [2](#Tab2){ref-type="table"}, the average lifespan of nematodes treated with different concentrations of stearic acid, linoleic acid, and cholesterol increased initially and then decreased. Treatment with 5 μg/mL of stearic acid and linoleic acid had a weak effect on the average lifespan of nematodes, whereas treatment with 5 μg/mL of cholesterol significantly prolonged the average lifespan of nematodes. Treatment with 50 μg/mL and 200 μg/mL of stearic acid and linoleic acid significantly prolonged the average lifespan of nematodes. As expected, high concentrations of lipid began to shorten the lifespan of nematodes. Stearic acid can prolong the average life span of nematodes by up to 31.82% at a concentration of 50 μg/mL, but it decreases the average life span severely at a concentration of 600 μg/mL. Although linoleic acid also shows a similar pattern as the other test substances, it did not decrease the average life span of nematodes at any higher concentration we used in the experiments compared to that of controls. As *C. elegans* cannot synthesize cholesterol itself, 5 μg/mL of cholesterol was added to the control medium in every experiment except in the cholesterol test, in which no cholesterol was added to the control medium. Our result showed that 5 μg/mL of cholesterol is the best concentration to prolong the average life span of nematodes. Table 2The mean life span of N2 in different lipidsStearic acid (μg/mL)Average life (days)Relative life rate of change (%)linoleic acid (μg/mL)Average life (days)Relative life rate of change (%)cholesterol (μg/mL)Average life (days)Relative life rate of change (%)010.78 ± 0.21^c^08.36 ± 0.41^c^07.64 ± 0.3^d^510.88 ± 0.24^c^+ 0.9359.11 ± 0.65^abc^+ 8.96,510.85 ± 0.26^a^+ 29.615014.21 ± 0.52^a^+ 31.82509.26 ± 0.34^ab^+ 10.835010.33 ± 0.34^ab^+ 26.0420012.11 ± 0.66^b^+ 12.342009.79 ± 0.5^a^+ 17.202009.73 ± 0.21^bc^+ 10.3650011.15 ± 0.21^c^+ 3.425008.84 ± 0.38^bc^+ 5.795009.68 ± 0.42^c^+ 10.766008.15 ± 0.36^d^− 24.406008.83 ± 0.21^bc^+ 5.606009.77 ± 0.36^bc^+ 9.96Data are presented as mean ± SEM (*n* = 30). Values without a common letter are significantly different at *p* \< 0.05

Effect of sugar and lipids on the reproductive capacity of N2 {#Sec4}
-------------------------------------------------------------

As shown in Fig. [2](#Fig2){ref-type="fig"}a, after treatment with sucrose, fructose, and glucose, the total number of eggs laid by nematodes increased initially, and then decreased along with the increase in sucrose concentration. After treatment with 400, 500, and 550 mmol/L sucrose, the number of eggs decreased by 61.57%. 65.97%, and 79.1%, respectively (Fig. [2](#Fig2){ref-type="fig"}b). Under the treatment with a low concentration of fructose, the number of eggs laid by nematodes increased with the increase in fructose concentration. However, treatment with fructose above 400 mmol/L significantly reduced the number of eggs laid by nematodes (Fig. [2](#Fig2){ref-type="fig"}c). Treatment with 0 to 50 mmol/L glucose had no effect on the egg production of nematodes. After treatment with 400, 500, and 520 mmol/L glucose, the total number of eggs laid by nematodes decreased by 36.92%, 71.62%, and 86.98%, respectively (Fig. [2](#Fig2){ref-type="fig"}d). Taken together, high concentration sugar intake exhibited significant damage to the reproductive capacity of nematodes, and the damage increased with increasing concentration. After reaching a certain level, the nematode eventually loses its reproductive ability. As described in Fig. [2](#Fig2){ref-type="fig"}b--d, the nematodes treated with control and low concentration of sugar entered the spawning period on the third day and ended the spawning on the sixth day. For concentration higher than 400 mmol/L sugar group, the spawning periods were delayed 1--2 days and some lasted 1 day more (from the 4th--5th day to 7th--8th day), except for 520 mmol/L glucose treated group, which started to lay eggs on 8th day and ended on 12th day. Delay of spawning period means inhibition of nematodes' development, which occurs most severely in 520 mmol/L glucose treated group. Moreover, the higher the concentration of sugar is, the lesser eggs the nematodes lay and the further beginning day of laying eggs. Fig. 2Effects of sugars on the reproduction capacity of nematodes. **a** The total number of offspring in the entire spawning period of the nematode under each concentration gradient. **b**, **c** The effects of sucrose (**b**), fructose (**c**), and glucose (**d**) on the reproductive capacity of nematodes

As shown in Fig. [3](#Fig3){ref-type="fig"}a, after treatment with stearic acid and linoleic acid, the total number of eggs laid by nematodes increased initially, and then, decreased along with the increase in stearic acid and linoleic acid concentration. Interestingly, cholesterol treatment at low concentrations significantly increased nematode spawning. When the cholesterol concentration was greater than 50 μg/mL, there was no significant difference in the amount of eggs laid by nematodes at any concentration. This result was similar to the lifespan of nematodes, indicating that when cholesterol is added above 50 μg/mL, the nematode's demand for cholesterol is saturated. In addition, different lipid treatments have different turning points in reducing the levels of nematode spawning. The treatment with stearic acid at a concentration of 50 μg/mL reduced the number of eggs laid, whereas linoleic acid at a concentration of 600 μg/mL only destroyed the nematode reproductive ability (Fig. [3](#Fig3){ref-type="fig"}b, c). The greater the concentration of stearic acid, the stronger was the damage. The sperm plasma membrane of nematodes is rich in cholesterol, and the survival of sperm requires the supply of exogenous cholesterol \[[@CR15], [@CR16]\]. Since the nematode does not synthesize cholesterol itself, the total amount of progeny of the nematode after treatment with cholesterol increases initially, and then, decreases slightly with the increase in cholesterol concentration (Fig. [3](#Fig3){ref-type="fig"}d). Fig. 3Effects of lipids on the reproduction capacity of nematodes. **a** The total number of offspring in the entire spawning period of the nematode under each concentration gradient. **b**--**d** The effects of sucrose (**b**), fructose (**c**), and glucose (**d**) on the reproductive capacity of nematodes. Data are presented as mean ± SEM (*n* = 30). Values without a common letter are significantly different at *p* \< 0.05

Effect of sugar and lipids on the body length of N2 {#Sec5}
---------------------------------------------------

Nematodes need to consume energy for their growth and spawning. Sugar, as a nutrient, can provide a lot of energy for the life activities of nematodes. As shown in Fig. [4](#Fig4){ref-type="fig"}a, the body length of the nematodes treated with 5 mmol/L and 50 mmol/L sucrose was similar to the body length of the nematodes in the control group. As the nematode entered the spawning period, sucrose at concentrations of 5 and 50 mmol/L promoted the growth of nematode, and the body length of nematode is 1.1-fold than that of the control, on the sixth day. This indicated that the sucrose concentration in the range of 5 to 50 mmol/L did not change the length of the nematodes; however, it can promote the growth of nematodes during the spawning period and increase the maximum length of the nematodes. In addition, high concentrations of sucrose shorten nematode length. Treatment with fructose at concentrations of 5 to 50 mmol/L had no effect on the length of the nematode, but higher concentrations of fructose significantly shortened nematode's maximum length (Fig. [4](#Fig4){ref-type="fig"}b). Treatment with 5 mmol/L glucose had no effect on the length of the nematode. During the spawning period, treatment with 50 mmol/L glucose promoted the growth of the nematode and increased the length of the nematode. Treatment with higher concentrations of glucose significantly shortened nematode length, especially for 520 mmol/L glucose treated group, which only grew up to 1/3 length of control nematodes on sixth day (Fig. [4](#Fig4){ref-type="fig"}c). Fig. 4Effects of sugars and lipids on body length of the nematode. **a**--**c** The effects of sucrose (**a**), fructose (**b**), and glucose (**c**) on the body length of nematodes. **d**--**f** The effects of stearic acid (**d**), linoleic acid (**e**), and cholesterol (**f**) on the body length of nematodes. Data are presented as mean ± SEM (*n* = 30). Values without a common letter are significantly different at *p* \< 0.05

As shown in Fig. [4](#Fig4){ref-type="fig"}d--f, compared with the length in the control group, except for treatment with stearic acid at a concentration of 600 μg/mL, there was no significant difference in the length of nematodes after treatment with the other concentrations of stearic acid. In the growing phase, the body length of the nematode grew rapidly and reached a maximum of 1.2 mm on the fourth day, after treatment with stearic and linoleic acid. Treatment with a concentration of linoleic acid above 200 μg/mL delayed the appearance of nematode aging but did not change the maximum length of the nematode (Fig. [4](#Fig4){ref-type="fig"}e). In our study, after treatment with cholesterol at the concentration of 50 μg/mL, 200 μg/mL, 500 μg/mL, and 600 μg/mL, the growth rate of nematodes was basically the same as that of the control group during the growth phase. The body length of nematodes after cholesterol treatment showed a significant difference from the third day and reached the maximum length of 1.4 mm on the fourth day, which was 1.1 times the length of the nematode in the control group.

Effects of various levels of sucrose and stearic acid orthogonal design on the lifespan of N2 {#Sec6}
---------------------------------------------------------------------------------------------

The lifespan of nematodes after treatment with different concentrations of sucrose and stearic acid is shown in Table [3](#Tab3){ref-type="table"}. Level 1 is the control group. In the case of lower sugar concentrations of 0 to 250 mmol/L, it can be seen that the lifespan of nematode only treated with 50 μg/mL stearic acid was significantly prolonged. However, at a sugar concentration of 400 mmol/L, an increase in the concentration of stearic acid exhibited a tendency to shorten the lifespan of nematodes. There was no significant difference in the lifespan of nematodes treated with different concentrations of stearic acid at a constant sucrose concentration of 400 mmol/L. In addition, in the case of treatment with constant stearic acid concentration, the lifespan of the nematode increased initially, and then, decreased with the increase in sucrose concentration. This is consistent with the previous single sucrose treatment results. We observed that co-treatment with low concentration of sugar and lipid exhibited a synergistic effect of extending the lifespan of nematodes. For example, after 50 mmol/L of sugar and 50 μg/mL of stearic acid co-treatment, the average lifespan of nematodes reached a maximum of 12.96 days, and the relative average life change rate was 31.25%. Table 3The effects of various levels of sucrose and stearic acid orthogonal design on the lifespan of nematodesLevelAverage lifespan (Days)LevelAverage lifespan (Days)LevelAverage lifespan (days)LevelAverage lifespan (days)18.91 ± 0.22^e^512.13 ± 0.41^b^97.45 ± 0.15^g^137.44 ± 0.12^g^210.19 ± 0.18^d^612.96 ± 0.39^a^108.76 ± 0.14^e^148.08 ± 0.18^efg^38.24 ± 0.36^efg^712.19 ± 0.28^b^118.82 ± 0.26^e^157.79 ± 0.25^fg^48.47 ± 0.2^ef^811.37 ± 0.16^c^128.46 ± 0.26^ef^167.88 ± 0.23^fg^The sucrose concentrations in each column were 0 μg/mL, 50 μg/mL, 200 μg/mL, and 500 μg/mL, respectively. The concentration of stearic acid in each row is 0 mmol/L, 50 mmol/L, 250 mmol/L, and 400 mmol/L. Data are presented as mean ± SEM (*n* = 30). Values without a common letter are significantly different at *p* \< 0.05

Effects of various levels of sucrose and stearic acid orthogonal design on the reproductive capacity of N2 {#Sec7}
----------------------------------------------------------------------------------------------------------

As shown in Fig. [5](#Fig5){ref-type="fig"}a, under the constant concentration of stearic acid, the total number of nematode offspring increased initially, and then, decreased with the increase of sucrose concentration, and reached a maximum at a concentration of 50 mmol/L sucrose. This was similar to the result of the treatment of nematodes with sucrose alone. Under the constant sucrose concentration, the total number of nematode offspring gradually decreased with the increase in stearic acid concentration. This result is also in accord with the former result, in which the total number of eggs of nematodes began to decrease at a concentration higher than 50 μg/mL (Fig. [3](#Fig3){ref-type="fig"}a). The decrease in the number of eggs after treatment with stearic acid began at a lower concentration than that of lifespan, and it kept such tendency even at different sucrose concentrations. In the high sucrose concentration group, stearic acid and sucrose exhibited a synergistic effect on a decrease in the number of eggs. When comparing the number of nematode offspring at each level of treatment, we found that the total number of nematode offspring in group co-treated with 400 mmol/L sucrose and 500 μg/mL stearic acid was the lowest. Fig. 5Effects of various levels of sucrose and stearic acid orthogonal design on reproduction and body length of the nematode. **a** The effects of various levels of sucrose and stearic acid orthogonal design on the reproductive capacity of nematodes. **b**--**g** The effects of various levels of sucrose and stearic acid orthogonal design on the body length of nematodes. **b**--**d** The same concentration of sucrose, different concentration of stearic acid (0 μg/mL、50 μg/mL、200 μg/mL, and 500 μg/mL, respectively) in the same figure. **b**--**d** Sucrose concentrations are 50 mmol/L, 250 mmol/L, 500 mmol/L, respectively. **e**--**g** The same concentration of stearic acid, different concentration of sucrose (0 mmol/L、50 mmol/L、250 mmol/L, and 400 mmol/L, respectively) in the same figure. E-G stearic acid concentrations are 50 μg/mL, 200 μg/mL, 500 μg/mL, respectively. Data are presented as mean ± SEM (*n* = 30). Values without a common letter are significantly different at *p* \< 0.05

Effects of various levels of sucrose and stearic acid orthogonal design on the body length of N2 {#Sec8}
------------------------------------------------------------------------------------------------

As shown in Fig. [5](#Fig5){ref-type="fig"}b, c, at 50 mmol/L and 250 mmol/L sucrose concentration, there was no significant difference in the length of nematodes treated with different concentrations of stearic acid. The maximum length of the nematode was 1.42 ± 0.083 mm and 1.39 ± 0.083 mm, respectively. At a concentration of 400 mmol/L sucrose, treatment with stearic acid at concentrations of 50 μg/mL and 200 μg/mL significantly increased nematode length, reaching 14% and 16%, respectively (Fig. [5](#Fig5){ref-type="fig"}d). In addition, treatment with 500 μg/mL stearic acid significantly inhibited nematode growth, and the maximum length of nematodes was 1.19 ± 0.088 mm (Fig. [5](#Fig5){ref-type="fig"}d). Under treatment with the same concentration of stearic acid, treatment with a low concentration of sucrose had no effect on nematode length, but high concentration of sucrose significantly shortened nematode length. In addition, at 50 μg/mL and 200 μg/mL stearic acid concentrations, treatment with 250 mmol/L sucrose increased the maximum length of nematode, increasing by 14.02% and 20.15%, respectively (Fig. [5](#Fig5){ref-type="fig"}e, f). However, at any concentration of stearic acid, treatment with sucrose at a concentration of 400 mmol/L significantly shortened the length of the nematode.

Thus, we observed that sucrose has a more dramatic effect on nematode lifespan, growth, and reproduction. Low concentration of sucrose (50 mmol/L) had no significant effect on the growth and development of nematodes, but it significantly promoted the body length of adult nematodes. At the same time, it significantly increased the number of eggs laid by nematodes and significantly prolongs the lifespan of nematodes. The medium concentration of sucrose (250 mmol/L) also promoted the growth of nematode adults, but has no significant effect on the number of eggs. However, high concentrations of sucrose (400 mmol/L) significantly reduced the number of eggs and shortened the lifespan of nematodes.

The effect of stearic acid on nematodes is less prominent than that of sucrose. It also prolonged the lifespan of nematodes at low concentrations (50 μg/mL) and worked synergistically with 50 mmol/L sucrose. Moreover, it showed inhibition of nematode reproduction ability at each gradient sucrose concentration. Furthermore, its effect on the growth and development of nematodes and adult body length was not significant. The decrease in the lifespan of nematodes after treatment with a high concentration of stearic acid (400 μg/mL) was much less than that after sucrose treatment (4.94% vs. 16.5%). However, when it is co-treated with sucrose, the growth and development of nematodes, the length of adult worms, and the number of eggs laid, are more significantly inhibited.

Effect of resveratrol on lifespan, reproductive capacity, and body length of N2 {#Sec9}
-------------------------------------------------------------------------------

Recently, the anti-aging effect of resveratrol has increasingly gained attention. In our experiment, we explored the repair effect of resveratrol on sucrose-stearic acid damage to nematodes. As shown in Fig. [6](#Fig6){ref-type="fig"}a and Table [4](#Tab4){ref-type="table"}, there was no significant difference in the average lifespan of nematodes between the 50 μg/mL and 100 μg/mL resveratrol treated groups, compared to that in the control group. This indicated that resveratrol, at concentrations below 100 μg/mL, exhibited a less prominent effect on the average lifespan of nematodes treated with sucrose-stearic acid. However, after treatment with resveratrol at the concentration of 500 μg/mL, 750 μg/mL, and 1000 μg/mL, the lifespan of nematodes was significantly prolonged in a dose-dependent manner. However, there was no significant difference between the groups treated with different resveratrol concentrations. Fig. 6Effects of resveratrol on lifespan, reproduction, and body length of the nematode. **a** The effects of resveratrol on the lifespan of nematodes. **b** The total number of offspring in the entire spawning period of the nematode under each concentration gradient. **c** The effects of resveratrol on the reproductive capacity of nematodes. **d** The effects of resveratrol on the body length of nematodes. Data are presented as mean ± SEM (*n* = 30). Values without a common letter are significantly different at *p* \< 0.05 Table 4The mean life span of sucrose-stearic acid damaged N2 in different concentrations of resveratrolResveratrol (μM)Average life (days)Relative life rate of change07.88 ± 0.23^a^0.228.21 ± 0.52^ab^+ 4.20%,0.448.22 ± 0.21^ab^+ 4.35%2.198.62 ± 0.46^b^+ 9.45%3.298.58 ± 0.31^b^+ 8.93%4.388.63 ± 0.36^b^+ 9.49%After the nematodes were synchronized, they were placed in a medium containing 400 mM sucrose and 500 μg/ml stearic acid (adding various concentrations of resveratrol). Data are presented as mean ± SEM (*n* = 30). Values without a common letter are significantly different at *p* \< 0.05

Similarly, we also examined the effect of resveratrol on the reproductive capacity of nematodes. The number of eggs laid by nematodes after treatment with different concentrations of resveratrol is shown in Fig. [6](#Fig6){ref-type="fig"}b, c. It can be seen that as the concentration of resveratrol increases, the number of eggs laid by nematodes increases initially, and then, decreases. Moreover, only resveratrol treatment at a concentration of 500 mg/mL led to significant differences in the number of eggs laid compared to those in the control group.

We determined the reparative effect of resveratrol on the sucrose-stearic acid effect to shorten the length of nematodes. Contrary to what we expected, co-treatment with different concentrations of resveratrol had a synergistic inhibitory effect on the inhibition of nematode growth, which is particularly evident in the growth phase of the nematode (Fig. [6](#Fig6){ref-type="fig"}d). In addition, we observed that resveratrol treatment at a concentration of 1000 μg/mL not only severely inhibited nematode development, but also significantly shortened the body length of adults.

Differential gene expression analysis {#Sec10}
-------------------------------------

Using Illumina sequencing technology, a survey was carried out to analyze the gene expression of nematodes treated with sucrose, stearic acid, sucrose-stearic acid, sucrose-stearic-resveratrol, and control nematodes. Reads were obtained for each sample using Illumina Hiseq X Ten sequencing. After discarding the low-quality reads, corresponding to 48 million clean reads obtained from sequencing were mapped on the reference genome of *C. elegans* (GCF_000002985.6) (Table [5](#Tab5){ref-type="table"}). High Pearson's correlation coefficients of FPKM distribution between the three biological replicates for each sample were detected (*R*^2^ = 0.93--0.99, *p* \< 0.001) (Fig. [7](#Fig7){ref-type="fig"}), reflecting the robustness of our library preparation from nematodes' RNA samples. Table 5RNA-seq raw reads and alignment statisticsSampleRaw readsClean readsEffective rate (%)Mapped readscontrol150,336,05048,764,87696.8843,352,156 (88.90%)control249,994,81248,856,70697.7245,434,034 (92.99%)control350,088,08448,972,32497.7745,512,779 (92.94%)ste-148,696,16047,424,71097.3943,953,321 (92.68%)ste-250,009,08248,789,96897.5640,675,401 (83.37%)ste-350,196,51448,923,92497.4645,264,387 (92.52%)suc-150,044,43648,988,09097.8945,545,343 (92.97%)suc-250,055,24448,774,49497.4445,533,711 (93.36%)suc-350,551,93849,389,88497.7045,949,651 (93.03%)suc-ste-150,571,89048,518,19295.9438,579,733 (79.52%)suc-ste-249,972,02448,652,74297.3644,991,273 (92.47%)suc-ste-350,202,96848,652,23296.9145,044,386 (92.58%)suc-ste-res-150,200,07048,738,07697.0944,851,851 (92.03%)suc-ste-res-250,045,55248,493,07296.9044,766,163 (92.31%)suc-ste-res-350,122,19848,604,16696.9744,858,281 (92.29%) Fig. 7Analysis of sample expression correlation after transcriptome sequencing. Each treatment group consists of three samples, including control group (control), sucrose treatment (suc), stearic acid treatment (ste),co-treatment with sucrose-stearic acid (suc-ste), and co-treatment with sucrose-stearic acid-resveratrol (suc-ste-res)

As shown in Table [6](#Tab6){ref-type="table"}, compared to those in the control group, there were 905 DEGs in the sucrose group (SUC), of which 387 genes were upregulated (2-fold change, *p* \< 0.05) and 518 genes were downregulated (0.5-fold change, *p* \< 0.05). Similarly, there were 698 DEGs in the stearic acid group (STE), including 367 upregulated and 331 downregulated DEGs. By comparing the number of DEGs, we found that group SUC contains more DEGs than group STE, which indicated that high sucrose treatment has a more pronounced effect on nematodes than high stearic acid treatment. This is consistent with the results for the previous phenotypic indicators. Unlike in the control group, there were 1014 DEGs in group SUC-STE, including 476 upregulated DEGs, and 538 downregulated DEGs. Moreover, in contrast to the sucrose-stearic acid group, there were 10 DEGs in group REV, including 5 upregulated DEGs and 5 downregulated DEGs. Table 6The differentially expressed genes listGroupComparisonDEGsNo. of upregulatedNo. of downregulatedSucroseControl vs sucrose905387518Stearic acidControl vs stearic acid698367331Sucrose- stearicControl vs sucrose-stearic1014476538ResveratrolSucrose- stearic vs sucrose-stearic-resveratrol1055

GO functional enrichment KEGG pathway analysis of DEGs {#Sec11}
------------------------------------------------------

To further elucidate the gene functions, we performed GO functional analysis of the DEGs. All DEGs were assigned to three major functional categories: biological process, cellular component, and molecular function. The DEGs of comparison groups A, B, C, and D were enriched to 27, 27, 29, and 7 subcategories, respectively (Fig. [8](#Fig8){ref-type="fig"}). The DEGs of comparison groups A, B, and C were mainly enriched to the membrane in a cellular component category, catalytic activity, and binding in molecular function category, and metabolic process, single-organism process, and cellular process in a biological process. As depicted in Fig. [8](#Fig8){ref-type="fig"}d, among the molecular function category, the DEGs of comparison D were more related to the catalytic activity (three genes), and three genes were related to the metabolic process in the biological category. Fig. 8Analysis of Gene Ontology terms. **a**--**d** Gene Ontology terms for DEGs grouped into functional categories. Comparison between sucrose and control (**a**); comparison between stearic acid and control (**b**); comparison between sucrose-stearic acid and control (**c**); comparison between sucrose-stearic acid-resveratrol and sucrose-stearic acid (**d**)

We performed KEGG enrichment analysis providing in-depth insight into the biological functions of the DEGS. By using KeggArray software, all DEGS were assigned to five specific pathways, including cellular processes, environmental information processing, genetic information processing, metabolism, and organism systems. Besides, the top 20 pathways with most aligned sequences are showed in Fig. [9](#Fig9){ref-type="fig"}. Most pathways were involved in primary metabolic processes, such as carbohydrate metabolism, amino acid metabolism, and lipid metabolism. As depicted in Fig. [9](#Fig9){ref-type="fig"}a, the genetic changes in nematodes after sucrose treatment are mainly concentrated in carbon metabolism, amino acid synthesis, and glucose metabolism signaling pathways. Stearic acid treatment led to alterations in the genes of nematodes involved in cytochrome P450-related metabolism, biosynthesis of amino acid, and fat catabolism (Fig. [9](#Fig9){ref-type="fig"}b). In addition, after sucrose and stearic acid co-treatment, the genetic changes in nematodes are mainly concentrated in carbon metabolism and amino acid synthesis (Fig. [9](#Fig9){ref-type="fig"}c). Interestingly, after resveratrol treatment of nematodes, only one gene (gst-25) was enriched into three metabolic pathways, including glutathione metabolism, drug metabolism, and metabolism of xenobiotics by cytochrome P450 (Fig. [9](#Fig9){ref-type="fig"}d). These results further indicated that nematodes underwent active metabolic processes after treatment with sucrose and stearic acid. Fig. 9KEGG pathway enrichment. **a**--**d** KEGG pathway enrichment analysis of differentially expressed genes. **a** Comparison between sucrose and control. **b** Comparison between stearic acid and control. **c** Comparison between sucrose-stearic acid and control. **d** Comparison between sucrose-stearic acid-resveratrol and sucrose-stearic acid

Discussion {#Sec12}
==========

Reasonable intake of carbohydrates and lipids is obviously especially important for health. In our study, we explored three representative sugars (sucrose, glucose, fructose), three lipids (stearic acid, linoleic acid, cholesterol), and a mixture of sugar and lipid on the lifespan, body length, and reproductive capacity, in order to explore the impact of overnutrition on health. Overall, the results indicated that low concentrations of sugars and lipids extended nematode lifespan and promoted nematode growth and development. Zheng et al. \[[@CR17]\] reported that fructose at 55 mM and 111 mM extended life to 22% and 45.7%, respectively, and fructose at 555 mM shortened the lifespan by 1.14-fold. In our study, fructose at 50 m extended life to 23.3%. Shim Y H et al. \[[@CR18]\] reported a significant decrease in the number of eggs laid by nematodes and a decrease in growth rate after blocking the supply of exogenous cholesterol. This is consistent with our findings that a certain concentration of cholesterol increases the reproductive capacity of nematodes. In general, the effect of lipids on the spawning of nematodes was not as severe as the effect of sugar. Since nematodes need to consume energy during growth and development, a certain amount of sugar and lipids was used to provide nutrients for nematode life activities. As we guessed, excessive sugars and lipids treatment severely shortened the lifespan, body length of the nematode (Additional file [1](#MOESM1){ref-type="media"}: Figure S1) and destroys its reproductive capacity. Interestingly, we found that sugar had an adverse effect on nematodes at low to medium concentrations, while lipids damaged to nematodes at moderate to high concentrations. In other words, sugar has a stronger effect on nematodes than lipids. Sequencing data also corroborated this result, because the differential genes generated by sugar treatment are significantly more than lipids (Table [6](#Tab6){ref-type="table"}). In addition, the results of orthogonal tests indicated that co-treatment with high concentrations of sucrose and stearic acid had a synergistic effect on nematode damage. We examined the effects of excess sucrose and stearic acid on intestinal autophagy in nematodes. Immunofluorescence results show nematode cells were negative with anti-Caspase (Additional file [1](#MOESM1){ref-type="media"}: Figure S6). Moreover, we further explored the mechanism of high sucrose and high stearic acid damage on *C. elegans* and the repair effect of resveratrol using transcriptome sequencing technology. After treatment with sucrose, stearic acid, and sucrose-stearic acid, a total of 905,698 and 1014 DEGS were identified, respectively. It suggests that high-sucrose and high-stearic acid treatment causes an imbalance in nematode glycolipid metabolism by altering the expression of several genes.

Over-nutrition converts fat storage and exacerbates β-oxidations of fatty acids {#Sec13}
-------------------------------------------------------------------------------

The regulation of lipid metabolism in *C. elegans* is influenced by the environment, such as temperature and nutrient deficiencies, as well as its own physiological state, including growth, reproduction, development, and aging \[[@CR19]\]. Moreover, the nematode body undergoes rapid changes to produce an adaptive response to this stimulus. In our experiments, high sugar and high fat provide excess nutrients to the nematodes. In addition to digestion and absorption to meet basic life activities, nematodes store excess energy in the form of lipid droplets. In early embryos, lipid droplets are abundant, providing precursors for membrane synthesis during rapid cell division as well as energy for cellular processes until hatching. TAGs are the major component of lipid droplets, as effective energy storage molecules due to their reduced state. During fat synthesis, diacylglycerol acyltransferase encoded by *dgat-2* catalyzes the formation of TAG from fatty acyl-CoA and diacylglycerols \[[@CR20]\]. After high-sucrose treatment and high-stearic acid treatment, nematodes convert excess nutrients into fat, by upregulating *dgat-2* genes involved in TAGs synthesis. In addition, *vit-2,* which is involved in the transfer of dietary lipids to lipid droplets, promoting fat accumulation, was upregulated after high-sucrose treatment and high-stearic acid treatment.

Fatty acids are separated from TAGs molecules, releasing energy by β-oxidations. Fatty acids need to be activated before they enter the mitochondria for oxidation, which involves four enzymes, which are acyl-CoA dehydrogenase in the mitochondria or acyl-CoA oxidase in peroxisomes, enoyl-CoA hydratase, 3-hydroxylacyl-CoA dehydrogenase, and 3-ketoacyl-CoA thiolase \[[@CR21]\]. The genes encoding these enzymes, including *acox-1*, *maoc-1*, *dhs-28*, and *daf-22*, were upregulated in our results, which indicated that high-intensity energy metabolism was being carried out in the nematode (Additional file [1](#MOESM1){ref-type="media"}: Figure S2).

Fatty acids are synthesized de novo for growth, development, spawning, and signaling molecules {#Sec14}
----------------------------------------------------------------------------------------------

The characteristic of lipid metabolism in *C. elegans* is the synthesis of fatty acids de novo from acetyl-CoA. In addition to the oxidation of fatty acids to produce acetyl-CoA, other nutrients, such as carbohydrates and amino acids, can be broken down into acetyl-CoA for de novo fatty acid synthesis. During fatty acid synthesis, the *pod-2* encoded ACC enzyme limits acetyl-CoA to malonyl-CoA transformation \[[@CR22]\]. In the second step, the de novo synthesis of the fatty acyl chain by the two-carbon subunit acetyl-CoA is accomplished by the catalysis of a fatty acid synthase encoded by fasn-1 \[[@CR23]\]. In our study, high-sucrose treatment, high-stearic acid treatment, high-sucrose, and high-stearic acid co-treatment did not affect the expression of *pod-2* and *fasn-1* genes.

Nematodes are rich in polyunsaturated fatty acids (PUFAs), produced by desaturation. There are four fatty acid desaturases that convert 18:1n-9 into a series of C18 and C20 PUFAs, including FAT1 (∆12), FAT2 (∆12), FAT3 (∆12), and FAT4 (∆5) \[[@CR24]\]. These polyunsaturated fatty acids provide precursors for the growth and reproduction of nematodes and are used to synthesize fat. *C. elegans*, which is severely deficient in polyunsaturated fatty acids, exhibits many growth, reproduction, and neurological deficits. The ∆12 desaturase fat-2 mutant contained only 1% PUFAs. These mutants grow slowly, have smaller embryos, and exhibit less coordinated motion than wild-type individuals \[[@CR25]\]. The ∆6 desaturase *fat-3* mutant contains C18 PUFAs but does not contain C20 PUFAs. Although they grew better than the *fat-2* mutant and showed a higher brood size, they showed many defects compared to the wild type \[[@CR26]\]. Fat-4 and fat-1 mutants contain different types of PUFAs and different proportions of omega-6 and omega-3, although their growth, development, and reproduction are largely unaffected \[[@CR27]\]. In our experiments, high sucrose treatment and high-stearic acid treatment significantly upregulated genes encoding desaturase, including *fat-1, fat-2*, *fat-3*, *fat-4*, and *fat-5* (Additional file [1](#MOESM1){ref-type="media"}: Figure S3)*.* This indicated that nematodes produce large amounts of PUFAs for growth and development through desaturation. The results of KEGG also demonstrated that high-stearic acid treatment leads to nematode lipid metabolism and decomposition disorders, affecting the growth and development of nematodes.

In addition to affecting the growth and development of nematodes, PUFAs are also used as signal molecules, released from the membrane by phospholipase hydrolysis and further metabolized to form signaling molecules, collectively known as eicosanoids \[[@CR28]\]. In mammals, the synthesis of eicosanoids requires the participation of cyclooxygenase, lipoxygenase, and cytochrome P450 enzymes \[[@CR29]\]. The cyp-gene family is reported to be responsible for encoding cytochrome P450s, NADPH-dependent monooxygenases that metabolize endogenous and exogenous compounds \[[@CR30]\]. Sucrose treatment, stearic acid treatment, and sucrose-stearic acid co-treatment of nematodes downregulated cyp-gene expression, such as *cyp-29A3*, *cyp-14A3*, and *cyp-35A4* and interfered with metabolism of nematodes.

Increased glucose metabolism shortens nematode life {#Sec15}
---------------------------------------------------

Monosaccharides are directly absorbed in the body's metabolism. The disaccharide or polysaccharide is hydrolyzed into glucose, which participates in glycolysis to provide energy to the body, or is stored as a glycogen. In mammals, glucose transport and absorption are mediated by GLUTs and insulin signaling. The *fgt-1* gene is associated with nematode glucose uptake, and there have been reports that RNAi-mediated knockdown of *fgt-1* extends lifespan of nematodes \[[@CR31], [@CR32]\]. Previous studies indicated that inhibition of the glycolytic enzyme, glucose phosphate isomerase 1 (GPI-1), prolongs lifespan. Feng et al. \[[@CR31]\] showed that disrupting glucose transport, by inhibiting *fgt-1*, is associated with *age-1* and *daf-2* signaling to extend nematode lifespan. These previous studies also suggested that reduced glucose metabolism promotes longevity. In our experiments, the expression of *fgt-1* and *daf-2* genes was upregulated in the sucrose treatment group and sucrose-stearic acid co-treatment group, while stearic acid treatment had no effect. This indicated that the addition of sucrose increased the metabolic burden of nematodes, resulting in a shortened life.

Genes involved in the TGF-β signaling pathway {#Sec16}
---------------------------------------------

Transforming growth factor-β (TGF-β) superfamily ligands participate in cell identify, growth, and development. In *C. elegans*, five such ligands have been identified, including *dbl-1*, *daf-7*, *unc-129*, *tig-2*, and *tig-3*. Here, we only discussed *dbl-1* and *daf-7* signaling pathway, because their function has been explained more clearly. The core components of the *dbl-1* pathway are the *dbl-1* ligand, *daf-4* and *sma-6* receptors, and *sma-2*, *sma-3*, and *sma-4* intercellular signals. Studies have shown that the lack of *dbl-1* signaling pathway leads to small body size and male tail abnormal morphology \[[@CR33]\]. In our gene expression profile, high-stearic acid treatment upregulated gene expression levels of *dbl-1*, *daf-4*, *sma-10*, and *sma-6*, and high-sucrose treatment slightly upregulated the expression of these genes, which suggested that *dbl-1* signal was enhanced. Furthermore, the expression of the intercellular signals *sma-2*, *sma-3*, and *sma-4* was upregulated after high-stearic acid treatment, whereas *sma-2* and sma-4 were downregulated in the high-sucrose treatment group (Additional file [1](#MOESM1){ref-type="media"}: Figure S4). This may be related to high-sucrose-induced shortening of nematode length. In addition, it has been reported that overexpression of the *dbl-1* gene shortens the lifespan of nematodes \[[@CR34]\]. Both high-sucrose and high-stearic acid treatment enhanced the *dbl-1* signaling pathway, which may be responsible for the shortened lifespan of nematodes caused by high sucrose and high stearic acid. *Daf-7*, a ligand for the TGF-β signaling pathway, is involved in regulating nematodes entering the dauer phase. The core components of *daf-7* pathway are *the daf-7* ligand, *daf-1* and *daf-4* receptors, *daf-8*, *daf-3*, and *daf-14* transcription factors \[[@CR35]\]. Our results indicated that high-stearic acid treatment significantly upregulated the gene expression of daf-7, but high sucrose significantly inhibited its expression, suggesting that high sucrose may cause some stress on nematodes. There was no significant change in the expression levels of receptors *daf-1* of *daf-7*, and there was a significant increase in *daf-4* expression. *Daf-8* and *daf-14* act as signaling molecules, both of which are upregulated under high-stearic acid treatment and downregulated under high sucrose treatment, similar to *daf-7* (Additional file [1](#MOESM1){ref-type="media"}: Figure S5). This indicated that high stearic acid inhibited nematodes from entering the dauer phase, while high sucrose may cause certain stress, which might promote entry of nematodes into the dauer phase.

Genes involved in the insulin signaling pathway {#Sec17}
-----------------------------------------------

The *C. elegans* insulin signaling pathway links energy metabolism with life activities, including growth, development, reproductive, longevity, and behavior \[[@CR36]\]. This fundamental pathway is regulated by insulin-like peptide (ILPs) ligands that bind to the insulin/IGF-1 transmembrane receptor (IGFR) ortholog daf-2. The main components of the *C. elegans* insulin signaling pathway include ILPs \[[@CR37]\]. Several ILPs have been shown to be involved in growth, longevity, and dauer formation of nematodes, such as *daf-28* and ins gene family. In our study, we found that sucrose treatment and stearic acid treatment, sucrose-stearic acid co-treatment, and resveratrol treatment had no effect on insulin signaling pathway-related genes (*daf-2*, *age-1*, *akt-1*, *ddl-1*, *hsf-1*, and *daf-16*), except for the lipid treatment which upregulated *daf-2*. We only evaluated the gene expression profile of a nematode before it entered the spawning stage, and more experiments are needed to further investigate how sugar and lipids affect the lifespan of the nematode. In *C. elegans*, *skn-1*, the ortholog of *Nrf-2*, downstream regulator of *daf-2*, is required for both oxidative stress resistance and anti-aging through its accumulation in the intestinal nuclei to promote the detoxication target genes \[[@CR38]\]. Stearic acid treatment significantly upregulated the expression of *ins-27*, *ins-33*, *daf-2*, and *skn-1* genes. Intriguingly, sucrose treatment and sucrose-stearic acid co-treatment significantly downregulated *skn-1* gene expression. This was also consistent with the phenotypic results where stearic acid was less harmful to nematode life, reproductive capacity, and body length, compared to sucrose. In addition, sugar and lipid treatments downregulated genes (gst gene family and ugt gene family) related to oxidative stress. Furthermore, in our gene expression profile, the *acdh-1* gene encoding the short-chain acyl-CoA dehydrogenase in mitochondria was upregulated after high glucose and high fat treatment. This may result in increased mitochondrial activity, increased rate of oxidative phosphorylation, increased metabolism, and reduced lifespan.

Resveratrol protects sugar and lipid damage to nematodes {#Sec18}
--------------------------------------------------------

The natural active substance resveratrol has been proved to have antioxidant, delay aging, antibacterial, anti-inflammatory, and other biological activities \[[@CR39]\]. However, the protective effect of resveratrol on sugar and lipid damage and its mechanism of action are still unclear. Therefore, we explored the protective effect of resveratrol using a high sugar and high lipid model in *C. elegans*. Nevertheless, a certain concentration of resveratrol can alleviate the damage of nematodes treated with high concentrations of sucrose and stearic acid.

UDP-glycosyltransferase catalyzes the transfer of glycosyl groups from activated donor molecules to receptor molecules and participates in several activities, such as detoxification, defense response, and regulation of hormone levels \[[@CR40]\]. Glutathione S-transferase reduces cellular oxidative stress. Comparing differential gene analysis of sucrose-stearic acid co-treatment group and resveratrol group, we found that the repair effect of resveratrol on damage caused by sucrose-stearic acid treatment on nematodes may be related to UDP-glycosyltransferase and glutathione S-transferase. KEGG analysis showed that the repair of resveratrol may be related to the metabolism of cytochrome P450 to foreign substances and glutathione metabolism (Fig. [9](#Fig9){ref-type="fig"}d). Our results were consistent with previous studies which reported that resveratrol acts against oxidative stress by regulating cytochromes involved in the metabolism of exogenous substances \[[@CR41]\]. Taken together, we speculated that the repair effect of resveratrol on damage due to high sucrose-stearic acid is mainly manifested in two aspects: one is to reduce the oxidative stress of cells and the other is to participate in the metabolism of exogenous substances (Additional files [2](#MOESM2){ref-type="media"}, [3](#MOESM3){ref-type="media"}, [4](#MOESM4){ref-type="media"}, and [5](#MOESM5){ref-type="media"}).

Materials and methods {#Sec19}
=====================

Material and reagents {#Sec20}
---------------------

Resveratrol (99%) was purchased from Sigma (Sigma, America). The sucrose, fructose, glucose, stearic acid, cholesterol, and linoleic acid used in the tests were of analytical grade and purchased from Sigma (Sigma, America). Stock solutions (200 mM) of resveratrol in dimethyl sulfoxide (DMSO) were stored at − 20 °C.

Animals, culture, and treatment with resveratrol {#Sec21}
------------------------------------------------

Wild type N2 strains were obtained from the Caenorhabditis Genetics Center and maintained on nematode growth medium (NGM) with concentrated *Escherichia coli* OP50 as a food resource, at 20 °C. Age-synchronized worms were generated in all experiments using the sodium hypochlorite method. Stearic acid, linoleic acid, and cholesterol (0.1 g) completely dissolved in 2 ml of ethanol and configured to 100 ml of 1 mg/ml stock solution, which was then added to different media. Resveratrol was dissolved in DMSO to a final concentration of 50 mg/mL and added at an appropriate ratio to molten agar NGM.

Life span {#Sec22}
---------

Life span analyses were performed as previously described, at 20 °C \[[@CR42]\]. L1 larvae were placed onto a sugar-containing NGM plate, resveratrol-containing NGM or a lipid-containing NGM plate, and then, the live nematodes in the plate were transferred to a fresh plate every day. The number of nematodes surviving was recorded each day until all died. The death of nematodes was defined as no reflection when gently prodded with a platinum wire. Lost nematodes and dead nematodes as they climb to the wall of the culture medium were excluded from the statistics. Each experimental group consisted of 10 nematodes.

Reproduction capacity {#Sec23}
---------------------

The reproduction capacity was analyzed as previously described. L4 larvae from the synchronized L1 generation were placed onto an individual NGM plate. Nematodes were transferred to a new medium every day until the end of reproduction. Approximately after 12 h, the number of eggs on the old medium was counted. Finally, the total amount of eggs laid by nematodes in the whole life was counted. Each experimental group consisted of 10 nematodes.

Measurements of body length {#Sec24}
---------------------------

Animals were grown at 20 °C. After the treatment of the sample, the synchronic larvae were picked from the NGM culture plate and placed under a stereomicroscope. The culture dish was rotated to make the body of the nematode closer to the scale and the length of the body was evaluated. According to the ratio of the scale to the actual length, the body length of the nematode was calculated. The length of the nematode was measured and recorded every 24 h until the sixth day. Each experimental group consisted of 10 nematodes.

Immunofluorescence {#Sec25}
------------------

Nematodes were washed twice with M9 buffer and then fixed in 4% formaldehyde (0.5 ml) for 15 min. After, add 1 ml of frozen methanol and place at − 20 °C for 5 min. Permeabilized with 0.1% Triton-X 100 for 1 h and then blocked with 5% BSA in PBS for 30 min at room temperature. Nematodes were then probed with the monoclonal rabbit anti-Caspase-3 (CST, cat 9664 s) (1:800) diluted in antibody dilution, overnight at 4 °C. Washed three times in PBSTB, and then labeled with Alexa Fluor® 488 goat anti-rabbit Igg (Invitrogen, Cat A-11070) (1:1000) for 2 h in the dark. Nematodes were then washed three times in PBSTB. Coverslips were mounted onto slides, and cell staining was visualized using a Leica SP5.

Total RNA extraction, library preparation, and RNA-seq {#Sec26}
------------------------------------------------------

Trizol method was used to extract total RNA from nematodes, including control group (control), after sucrose treatment at concentration of 400 mmol/L (suc), stearic acid treatment at concentration of 500 μg/mL (ste), co-treatment with 400 mmol/L concentration of sucrose and 500 μg/mL concentration of stearic acid (suc-ste), and co-treatment with sucrose-stearic acid-500 μg/mL resveratrol (suc-ste-res). Each group was analyzed in triplicates. Total RNA was quantified using Nanodrop spectrophotometer. The RNA of each sample that passed the quality control test was used for library construction. The cDNA library construction and sequencing on Illumina Hiseq X Ten were performed at Beijing Mega Genomic Technology (Beijing, China), following the manufacturer's standard protocol.

Analysis of RNA-seq {#Sec27}
-------------------

By filtering rRNA reads, sequencing adapters, short-fragment reads, and other low-quality reads, clean reads were obtained. The clean reads were mapped to the nematodes reference genome (National Center Biotechnology Information reference sequence: GCF_000002985.6) by Tophat v2.1.0.

In order to assess the quality of the sequencing, gene coverage and sequencing saturation were analyzed. After genome mapping, the open-source suite of the tool Cuffinks was run with a reference annotation to generate fragments per kilo base of exon per million mapped read (FPKM) values for standardized calculation of the gene-expression levels. Differentially expressed genes (DEGs) were identified using Cuffdiff software. The calculated gene expression levels could thus be used for comparing gene expression directly between the different samples. The significance threshold of the *p*-value of multiple tests was set by the false discovery rate (FDR). Fold-change in expression was also estimated according to the FPKM in each sample. Differentially expressed genes were selected using the following filter criteria: FDR ≤ 0.05 and fold-change ≥ 2.

The DEGs were subjected to enrichment analysis of Gene Ontology (GO) and Kyoto Encyclopedias of Genes and Genomes (KEGG). GO functions and KEGG pathways were analyzed by Blast2GO software (<https://www.blast2go.com/>) and Blastall software (http://[www.kegg.jp/](http://www.kegg.jp/)). (A) Comparison between sucrose and control; (B) comparison between stearic acid and control; (C) comparison between sucrose-acid and control; (D) comparison between sucrose-stearic acid-resveratrol and sucrose-stearic acid. All transcriptome data has been uploaded to NCBI. Gene Expression Omnibus accession number is GSE141668, and the URL link is [[https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE141668]{.ul}](https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE141668).

Statistical analyses {#Sec28}
--------------------

Results are expressed as mean ± SEM. Statistical significance was determined using one-way analysis of variance (ANOVA) followed by Tukey's multiple-comparison test with SPSS version 19.0. Differences were considered significant when *p* \< 0.05.

Conclusion {#Sec29}
==========

Intake of a certain amount of sugar and lipid promotes the growth and development of nematodes and prolongs their life to some extent. However, excess sugar and lipid intake disrupts the metabolism of nematodes, causing a certain degree of damage to their longevity, growth, and reproduction. Moreover, the high sugar phase causes more severe damaged than the high lipid phase, mainly due to an increase in the metabolic burden of nematodes and interference with normal metabolic function. The protective effect of resveratrol on nematodes is manifested as follows: reduction of cellular oxidative stress and participation in the metabolism of exogenous substances. Resveratrol is expected to be used to alleviate damage to the body due to over-nutrition.

Supplementary information
=========================

 {#Sec30}

**Additional file 1:Figure S1.** Body length of nematodes in the control group and sucrose (400 mM), stearic acid(500 μg/mL), sucrose and stearic acid co-treated groups (400 mM -500 μg/mL) on 6th day. Figure S2. FPKM value of different genes related to fat storage and exacerbates β-oxidations of fatty acids. Values without common letter are significantly different at *p* \< 0.05. **Figure S3.** FPKM value of different genes related to fatty acids synthesized. Values without common letter are significantly different at *p* \< 0.05. FPKM value of different genes involved in the DBL-1 signaling pathway. Values without common letter are significantly different at *p* \< 0.05. Figure S5. FPKM value of different genes involved in the DAF-7 signaling pathway. Values without common letter are significantly different at *p* \< 0.05. **Figure S6.** Immunocytochemistry images of Caspase-3 and DAPI with or without treated on 7th day. **Additional file 2:** **File S1.** Genes significantly up-regulated and down-regulated in nematodes after 400 mM sucrose treatment compared to the untreated group. **Additional file 3:** **File S2.** Genes significantly up-regulated and down-regulated in nematodes after 500 μg/mL stearic acid treatment compared to the untreated group. **Additional file 4:** **File S3.** Genes significantly up-regulated and down-regulated in nematodes after 400 mM sucrose- 500 μg/mL stearic acid treatment compared to the untreated group. **Additional file 5:** **File S4.** Genes significantly up-regulated and down-regulated in nematodes after 3.29 μM resveratrol treatment compared to the 400 mM sucrose- 500 μg/mL stearic acid treated group.

*C. elegans*

:   *Caenorhabditis elegans*

DEG

:   Differentially expressed genes

DMSO

:   Dimethyl sulfoxide

GO

:   Gene Ontology

GPI-1

:   Glucose phosphate isomerase 1

ILPs

:   Insulin-like peptide

KEGG

:   Kyoto Encyclopedias of Genes and Genomes

NGM

:   Nematode growth medium

RES

:   Resveratrol

STE

:   Stearic acid

SUC

:   Sucrose

TGF-β

:   Transforming growth factor-β

**Publisher's Note**

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Lin Zhang co-author

Supplementary information
=========================

**Supplementary information** accompanies this paper at 10.1186/s12263-020-0659-1.

This study was supported by the National Natural Science Foundation of China (grant no. 31790412).

YZ acquired the funding. XW and LZ contributed to the methodology. XW, LinZ, LeiZ, SW, WW, and JW contributed to the resources. HC and YZ supervised the study. XW wrote the original draft, and reviewed and edited the manuscript. All authors read and approved the final manuscript.

The authors declare that they do not have competing interests.
