Introduction

Acute respiratory syndrome coronavirus-2 (SARS-CoV-2) was first reported in December 2019 in Wuhan, China. The extremely high transmission rate of this strain of SARS-CoV-2 led to the global pandemic of the coronavirus disease 2019, also known as COVID-19 [1]. Globally, as of 18 November 2022, there have been 633,601,048 confirmed cases of COVID-19, including 6,596,542 deaths, reported to WHO [2].

Characteristic clinical manifestations of COVID-19 include fever, dry cough, and fatigue, often with pulmonary involvement. In severe cases of the disease, rising levels of cytokines (IL-2, IL-7, IL-10), granulocyte colony-stimulating factor (G-CSF), monocyte chemotactic protein (MCP), and TNF-a have been observed. For this reason, the inflammatory cascade that causes this cytokine storm is a critical factor in the cause of the acute respiratory syndrome and extrapulmonary organ failure, which shows the importance of the immune system in developing this disease [3, 4]. Fighting new emerging viruses has always been a challenge. However, there is growing evidence for the essential role of nutrition in maintaining an optimum immunity against this pathogenic infection [3, 5]. According to the nutritional guidelines set by the World Health Organization for adults, eating a balanced diet rich in vitamins, minerals, dietary fiber, proteins, and antioxidants helps prevent disease [6].

Macronutrients, including proteins, carbohydrates, and fatty acids, supply the necessary energy for tissue growth and function [7]. Immune modulation by macronutrients has been studied in laboratory animals and human interventional studies testing the effect of their intake on immune outcomes. Proteins represent essential macronutrients for the immune system. Amino acids are essential for synthesizing immune proteins, including antibodies and cytokines that mediate immune responses [8]. One of the crucial aspects of the impact of macronutrients on the immune system is taking part in immune distinction. Carbohydrates define cell surface molecules that can be identified as antigens by Toll-like receptors (TLRs) [9]. Fatty acids are essential energy sources, are components of cell membranes and modulate cell operation by acting as signaling molecules that regulate gene expression [10]. They can also affect the function of immune cells by being used as precursors for synthesizing lipid compounds involved in regulating immune responses and inflammatory pathways [10, 11].

Most studies have investigated the effect of the COVID-19 pandemic on nutritional intake, and according to our knowledge, no study has investigated the role of the intake of macronutrients in the incidence and severity of COVID-19 applying advanced mathematical approaches. Considering the importance of macronutrient intake in the immune system function, we aimed to investigate the effect of macronutrient intake on the incidence and severity of COVID-19 by dynamical system models. In terms of clinical implications, the results of this study may lead to dietary guidelines and policies which may prevent from such pathogenic infections in the future.

Materials and methods

Study design

In this cohort study, the study population were recruited from Mashhad stroke and heart atherosclerotic disorder (MASHAD) study, a cohort of 9704 individuals aged 35–65 [12]. The MASHAD study started in 2007, and participants were followed-up after ten years. To determine the COVID-19 incidence, data of all PCR-positive patients from all related medical centers in Mashhad were recorded from February 2020 to June 2022 (n = 405,398). To determine the incidence of COVID-19 in the population of MASHAD study, we merged the COVID-19 data with the subjects in the first phase of MASHAD study, who were still living in Mashhad, based on the follow-up data of MASHHAD study. The MASHAD study population were 48–78 years at the time of COVID-19 pandemic. Among 8192 subjects, 893 were identified with a positive PCR test. After excluding the records with incomplete dietary intake data, 1957 were remained. Among the 1957 subjects, 193 were COVID-19-positive (Fig. 1). To determine the severity of COVID-19, hospital data were recorded based on the hospital information system (HIS).

Fig. 1
figure 1

Flow diagram of study design

Dietary intake assessment

A 24-h dietary recall was applied to assess dietary intakes in the first phase of MASHAD study. An experienced nutritionist administered the questionnaire. Besides, the demographic characteristics were also recorded. Diet plan 6 software (Forestfield Software Ltd., Horsham, West Sussex, UK) was applied to analyze the energy and nutrient intakes. Macronutrient intakes were all adjusted for energy.

Statistical analysis

Statistical analysis was performed using the statistical package for the Social Science version 25.0 (SPSS, Chicago, IL). The Kolmogorov–Smirnov test was used to check the normality of variables; normally distributed variables were described as mean ± SD. Not normally distributed variables were described as median and IQR (interquartile range). Multiple logistic regression was applied in IBM SPSS statistics 25.0. The dependent binary variables were COVID-19 incidence and hospitalization. Macronutrients (protein, Saturated fatty acids, monounsaturated fatty acid (MUFA), polyunsaturated fatty acid (PUFA), trans fatty acids, cholesterol, starch, total sugar, fiber, non-starch polysaccharides (NSP), and water were included in the model using a backward variable selection method, by adjusting for age and sex. To avoid multicolinearity in the regression model, the linear relationship of predictors was assessed. As NSP and fiber were correlated, we only add fiber to our model. There was no linear relationship among other variables. All analyses were two-sided, and P-value < 0.05 was considered statistically significant.

Applying MedCalc software, the best cut-off value was determined for COVID-19 incidence. The optimal cut-off values were defined as the point at which the value of sensitivity + specificity – 1 was maximum. This cut-off value corresponded to the point on the ROC curve with the maximum vertical distance from the curve to the chance line and has also been defined as an accuracy indicator in clinical epidemiology. Then, we considered a four-dimensional mathematical model based on the susceptible-exposed-infectious-removed (SEIR) model in the dynamics of mineral intake for COVID-19 patients. In the differential equations of SEIR, we consider people who enter the study as susceptible people. In these equations, patients are transferred from one group to another during division, and they decrease or increase with the percentage of transfer and the amount of consumed substances over time. Then, according to the dietary macronutrient intakes, we divided the susceptible individuals into two groups; we examined these groups of patients for COVID-19 infection and hospitalization.

Based on the population dynamics, differential equations were established. Then, by OD45 numerical methods using Matlab software, the model parameters were estimated using the second error powers and other error optimization methods. Finally, the statistical model was fitted to evaluate the results obtained.

Ethical approval

All participants provided their written informed consent. The study protocol was approved by the Human Research Ethics Committee of Mashhad University of Medical Sciences (MUMS).

Results

Baseline characteristics are presented in Table 1. The results showed no significant difference between subjects with and without COVID-19, except for NSP and fiber. Dietary intakes of NSP and fiber were significantly lower in COVID-19 patients (P < 0.05).

Table 1 Evaluation of macronutrient dietary intakes in patients with and without COVID-19

As shown in Table 2, PUFA, starch, total sugar, and fiber remained in the final model.

Table 2 Multiple logistic regression analysis for determination of the predictive variables for macronutrients in COVID-19

In the crude model, unadjusted for any confounding variable, there was no significant association between macronutrients intake and the odds of COVID-19 infection. After adjusting for age and sex, intakes of starch and total sugar were significantly associated with the increased odds of COVID-19 infection (P < 0.05).

Table 3 shows the macronutrients association with odds of hospitalization due to COVID-19. In the crude model, there was a significant association between fiber intake and hospitalization (P = 0.04) as each unit increase in fiber intake decreased odds of hospitalization by 10%. This association remained statistically significant after adjusting for confounding variables (P < 0.05).

Table 3 Multiple logistic regression analysis for determination of the predictive variables for macronutrients in COVID-19

Dynamical system

The optimum cut-offs for macronutrient intake were determined using MedCalc software (Table 4). The best cut-off for cholesterol, fiber, PUFA, starch, and total sugar was 180.23 mg, 21.48 g, 13.11 g, 158.67 mg, and 79.53 mg, respectively.

Table 4 The best cut-offs for macronutrients intake using MedCalc software

To predict the effect of macronutrient intake on COVID-19, dynamics were modeled using a modified SEIR (susceptible-exposed-infected-removed) differential equation machine (Fig. 1). In this model, all participants are susceptible to COVID-19 (S). Participants who consumed the macronutrient more than the cut-off are presented as E1 and the group who consumed less than the mentioned cut-off are presented as E2. I1 is the group with a positive COVID-19 PCR, and I2 were not infected. If we consider all the participants in the modified equation model, we have the following equation:

$${\text{N}}({\text{t}}) = {\text{S}}({\text{t}}) + {\text{E}}_{1} ({\text{t}}) + {\text{E}}_{2} ({\text{t}}) + I_{1} ({\text{t}}) + {\text{I}}_{2} ({\text{t}}) + {\text{H}}({\text{t}}) + {\text{OU}}({\text{t}})$$

where COVID-19-positive patients who were hospitalized are represented with H. OU shows the patients who were managed in the outpatient setting. Considering the model above, the differential equation was solved using the numerical methods of OD45 in the Matlab software.

$$\left\{ {\begin{array}{*{20}l} {\begin{array}{*{20}c} {\begin{array}{*{20}c} {\begin{array}{*{20}c} {\dot{S} = - \left( {1 + {\text{m}}} \right)s + L} \\ {\mathop {{\text{E}}_{1} }\limits^{.} = - \left( {1 + {\text{m}}} \right){\text{E}}_{1} + \alpha s} \\ {\mathop {{\text{E}}_{2} }\limits^{.} = - \left( {\eta _{3} + {\text{m}}} \right){\text{E}}_{2} + (1 - \alpha )s} \\ \end{array} } \\ {\mathop {{\text{I}}_{1} }\limits^{.} = \gamma _{1} {\text{E}}_{1} + \gamma _{3} {\text{E}}_{2} - \left( {\beta _{1} + \beta _{2} + {\text{m}}_{1} } \right){\text{I}}_{1} } \\ \end{array} } \\ {\mathop {{\text{I}}_{2} }\limits^{.} = \gamma _{2} {\text{E}}_{1} + \gamma _{4} {\text{E}}_{2} - m{\text{I}}_{2} - \beta _{3} {\text{I}}_{2} } \\ {\dot{H} = \beta _{1} {\text{I}}_{1} - {\text{m}}_{1} H} \\ \end{array} } \hfill \\ {\begin{array}{*{20}c} {\mathop {{\text{OU}}}\limits^{.} = \beta _{2} {\text{I}}_{2} - {\text{m}}_{1} OU + \beta _{3} {\text{I}}_{2} } \\ {\dot{D} = {\text{m}}s + {\text{mE}}_{1} + {\text{mE}}_{2} + {\text{m}}_{1} {\text{I}}_{1} + {\text{m}}_{1} {\text{H}} + {\text{m}}I_{2} + {\text{m}}_{1} {\text{OU}}} \\ \end{array} } \hfill \\ \end{array} } \right.$$
(1)

The model parameters for each macronutrient are presented in Appendix 1. As illustrated in Fig. 2, the number of participants who consume cholesterol above the cut-off (E1) is decreasing, while the number of participants who use cholesterol below the cut-off (E2) is increasing. It shows that the increase in COVID-19-positive patients (I1) is more related to the group who use cholesterol above the cut-off. In fact, participants move from E1 to I1. Considering the diagram slopes, the risk of developing COVID-19 in the E1 group is 5.5 times greater than in the E2 group. The pattern of movements for total sugar is similar to cholesterol, as patients move from E1 to I1. Considering PUFA consumption, there is a sharp decrease in E1 and a nearly steady state in E2. The sharp decline in E1 justifies the sharp increase in I2. In fact, patients who consume PUFA above the cut-off are more susceptible to moving to the COVID-19-positive group. Considering fiber, the risk of COVID-19 in patients with a daily consumption of less than 21.48 g is 2.9 times greater than those with a daily fiber intake above the cu-toff (Fig. 3).

Fig. 2
figure 2

The modified SEIR (susceptible-exposed-infected-removed) model to predict COVID-19 infection and outcome. S: susceptible, E1: patients who consume the macronutrient above the cut-off, E2: patients who consume the macronutrient below the cut-off, I1: COVID-19-positive patients, I2: COVID-19-negative patients, H: hospitalized, OU: outpatient, α: Rate of transmission from S to E1, 1−α: Rate of transmission from S to E2, m: rate of death in susceptible individuals,\({\gamma }_{1}\):Rate of transmission from E1 to I1,\({\gamma }_{2}:\) Rate of transmission from E1 to I2, \({\gamma }_{3}\):Rate of transmission from E2 to I1, \({\gamma }_{4}:\) Rate of transmission from E2 to I2\(, {\beta }_{1}:\) Rate of transmission from I1 to H, \({\beta }_{2}\): Rate of transmission from I1 to OU, \({\beta }_{3}\): Rate of transmission from I2 to OU

Fig. 3
figure 3

The model parameters for each macronutrient. E1: patients who consume the macronutrients above the cut-off, E2: patients who consume the macronutrients below the cut-off, I1: COVID-19-positive patients, I2: COVID-19-negative patients, H: hospitalized, PUFA: polyunsaturated fatty acids

Discussion

This study showed that dietary fiber intake in COVID-19-infected patients was significantly lower than in the non-COVID-19 group. It was also demonstrated that dietary intake of starch and total sugar was significantly associated with increased odds of COVID-19. On the other hand, fiber intake was significantly associated with decreased odds of COVID-19-related hospitalization. The results of the dynamical system analysis also revealed that participants who consumed cholesterol, total sugar, and PUFA above the calculated cut-off had a greater chance of future risk of COVID-19. At the same time, fiber intake above the cut-off showed a protective role.

Based on our results, dietary intake of total sugar was associated with increased odds of COVID-19. Carbohydrates with high glycemic index and subsequent acute insulin response lead to an overload of mitochondrial capacity and increased production of free radicals. Also, the consumption of simple carbohydrates causes an immediate increase in inflammatory cytokines and C-reactive protein [13]. Increased inflammatory responses and oxidative stress promote dysregulation in the innate immune system, resulting in an increased risk of infections [14].

According to the study results, dietary intake of fiber was significantly lower in COVID-19 patients, and each unit increase in dietary intake of fiber was associated with 1% decrease in the odds of hospitalization due to COVID-19. Dietary fibers are important factors regarding immunomodulation and decrease inflammation. A significant decrease in hs-CRP concentration has been reported with increasing fiber consumption [15]. Dietary fiber can also have a prebiotic effect by stimulating the growth of beneficial microbes such as Lactobacillus sp. and Bifidobacterium sp. and inhibiting pathogens such as Clostridium sp. [16]. In a study conducted by Hegazy et al. [17] on 200 patients with COVID-19, daily consumption of foods containing prebiotics, less sugar, regular exercise, adequate sleep and fewer antibiotic prescriptions led to a milder disease and faster clearance of the virus. Fiber sources and prebiotics indirectly affect the immune system by changing the composition and population of the gut microbiota [18]. In addition to changes in gut microbiota composition, prebiotics and most fibers can cause significant changes in the immune system by raising the expression of anti-inflammatory cytokines while decreasing the expression of pro-inflammatory cytokines [19, 20]. In an interventional study, Zhang et al. [21] investigated the effect of a new formula of bifidobacteria strains, galacto-oligosaccharides, xylo-oligosaccharides, and resistant dextrin (SIM01) in patients with COVID-19. They observed that patients receiving SIM01 developed significantly more SARS-CoV-2 IgG antibodies by day 16 than controls, and at week 5, plasma levels of IL-6, monocyte chemoattractant protein-1 (MCP-1), macrophage colony-stimulating factor (M-CSF), TNF-α, and IL-1RA significantly decreased in SIM01 but not in the control group.

The beneficial effects of prebiotics are believed to be mainly induced by increasing short-chain fatty acids (SCFA) production and strengthening the immune system of the gastrointestinal tract. It has also been found that prebiotics such as wheat bran, fructo-oligosaccharides, and galactosaccharides are known to raise butyrate levels, thereby decreasing inflammation and improving asthma and cystic fibrosis conditions [22, 23]. It is evident that dietary fiber-mediated modulation of gut microbiota and even lung microbiota can affect immunity and decrease the severity of viral infection in both the gastrointestinal and respiratory tracts [24]. Since fibers and prebiotics are generally safe, this microbiome therapy may improve and accelerate the recovery of patients with COVID-19, with less need for hospitalization.

Considering the dynamic system results, cholesterol consumption above the daily cut-off of 180 mg was associated with an increased risk of COVID-19. Cholesterol-rich food, often provided by unhealthy diets, affects the inflammatory markers and lipoprotein metabolism, modulating the lipoprotein profile. Based on animal and human studies, a high-cholesterol diet may increase the risk of pulmonary bacterial infections. Dietary cholesterol may also aggravate viral infections [25]. Our results also showed that patients who consume PUFAs above the cut-off are more susceptible to COVID-19. Among nutrients, omega-3 PUFAs are known to resolve inflammatory responses and support the immune system. In vivo and in vitro studies support the beneficial role of omega-3 PUFAs in lessening COVID-19 complications [26]. Conversely, eicosanoids from omega-6 (ω-6) PUFAs increase inflammatory responses [27]. Generally, it should be considered that excessive intake of PUFAs may be associated with dyslipidemia, dysregulation of glucose homeostasis, and immunosuppression [26].

This study had some limitations. First, we determined the COVID-19-positive patients based on PCR-positive results performed in all related clinical sites in Mashhad. We considered all other patients without a PCR-positive result as COVID-19-negative. It should be considered that some patients affected by SARS-COV2 are asymptomatic or may not perform a PCR test. Besides, our study has not considered the frequent infections with SARS-COV2 in individuals. Besides, although 24-h dietary recall can be used to assess dietary intakes of the population, it is not the ideal instrument to investigate the association of diet as an independent variable with health outcomes. Another limitation was that we excluded subjects with dietary missing data, which may affect the generalizability of our results. It should also be noted that some medical conditions such as diabetes or impaired glucose tolerance can be related to the risk of COVID-19 and its severity that have not been included in our analytical models.

During the COVID-19 pandemic, plenty of studies have been published on dietary changes due to COVID-19 and mechanistically or clinically reviewing the importance of nutrition in preventing or managing COVID-19. There are few studies concerning the effect of nutritional intake on COVID-19 susceptibility and severity. In this study, we evaluated the impact of previous dietary intakes on COVID-19 infection during the pandemic period. Another strength point of this study was that we applied advanced dynamical system analysis methods to predict the risk of COVID-19 in the future. Although COVID-19 is now subsiding in our region, the results of this study may help prevent and better manage the future new emerging infectious disease crisis such as COVID-19.

Conclusion

Overall, this study showed that dietary fiber and NSP intake were lower in COVID-19 patients. Dietary intake of starch and total sugars were associated with increased odds of COVID-19, while fiber intake decreased the odds of hospitalization due to COVID-19. The dynamical system models showed that dietary cholesterol, PUFAs, and total sugar were associated with an increased risk of COVID-19, while fiber had a protective role.