Introduction

The dramatic increase in the global population and hence projects will exceed 9 billion in 2050, which will cause energy shortages and negative effects on the environment due to huge fossil fuel consumption and hence the emission of greenhouse gases1,2. Researchers have focused on reducing the requirements of fossil fuels, reducing greenhouse gas emissions, and conserving environmental sustainability3,4,5,6. Huge quantities of Azo dye are lost during textile industries and other industries, such as pharmaceuticals, cosmetics, food, and paper printing, which lose approximately 10 to 15% of consumed Azo dyes7,8. A large amount of wastewater is produced every day because textile industries use several hundred thousand gallons of water every day, which contains many dyes and some heavy metals that cause environmental problems9,10. Due to the huge usage of Azo dyes in different industries, Azo dyes are the major compounds of effluents11. The occurrence of Azo dyes in aquatic bodies can cause serious disorders and adversely affect human health12. Azo dyes cause carcinogenic and mutagenic activities and can cause allergic reactions13. Azo dye treatments are a major challenge because they encompass aromatic rings, azonic linkages, and amino groups, which cause multiple damage to the receiving environment14. A variety of microorganisms (algae, yeast, fungi, and bacteria) have been investigated for their potential for textile dye bioremediation15,16. Algae are used in bioremediation for the following reasons, high growth rates17,18, having the ability to sequester CO217,19, algal growth is not affected by stress conditions19, no competition with food crops18, can grow in wastewater and seawater, and can be used in wastewater treatment with both live and dead algae18,20.

The efficacy of various algal strains in dye degradation potential has already been shown21. Industrial textile wastewater contains necessary nutrients for algae cultivation, including organic dyes as potential sources of carbon, nitrates, and metals as micronutrients22. Therefore, textile wastewater seems to be a promising and inexpensive microalgal growing medium23,24. Despite their adverse effects on fish, azo dyes in wastewater do not obstruct the progress of certain algal species. However, a few other algal strains in water are very sensitive to azo dyes25. In contrast to bacteria, Liu et al.26 showed a greater impact of the marine alga Shewanella in decolorizing azo dyes even in saline environments. Algal bioremediation seems to have become a promising technology for the treatment of textile wastewater27. Since algae are photosynthetic, they obtain energy from sunlight, carbon dioxide, and wastewater nutrients and perform photosynthesis processes28. Algae can consume coloured water during their growth, potentially decolorizing dye-contaminated wastewater, and the resulting algal biomass can be processed further for bioenergy and algal-based bioproduct production. Algae fulfil most of the criteria for an applicable dye elimination tool and have the possibility to serve as an encouraging dye removal method in the future29.

However, microalgae have recently gained considerable attention because of their capacity for carbon dioxide fixation and bioremediation of textile wastewater6. Microalgae can be used simultaneously, first for the bioremediation of textile wastewater and then to accumulate lipids30. Some microalgae biomasses contain up to 70% total extractable lipids (g/g dry weight). Biodiesel is derived from lipids produced by microalgae through the transesterification process31. Therefore, biodiesel can be used as an environmentally friendly, sustainable fuel in electricity production and can meet the energy needs of the textile sector32. Microalgae can use carbon dioxide from the diesel generator atmosphere and organic dyes to photosynthesize it into carbohydrates33. Compared with other organic diesel raw materials, microalgae have certain advantages, as their growth rate is rapid, they can be developed approximately everywhere, including sewage, wastewater, saltwater, and arid land, and they do not need fertile agricultural land. Microalgae production is not seasonal and can be harvested daily. Its waste can be used as feed for animals or for other purposes34. Various microalgae are considered to have a strong effect on the growth of biomass and the metabolism of fatty acids and lipids35. Microalgal oils can be transformed using current technologies into jet fuel, gasoline, and diesel31. Many microalgae organisms can be stimulated to produce large amounts of lipids, which leads to high oil production36. The most effective stress factor that influences microalgae lipid yield is nitrogen starvation, and the total lipid content of microalgae increases from 25.5 to 45.7% (g/g) under stress conditions37. Total and triacylglycerol lipid concentrations were increased when algae biofilms were grown on porous membrane material under nitrogen starvation38. The most critical factor that affects microalgal metabolism is pH39. In accordance with the pH changes, the production of lipids and biomass changes40.

Microalgae, Chlorella vulgaris FACHB-8 and Chlorella sp. FACHB-31 have been used to remediate anaerobically treated swine wastewater (ADSW), and production biodiesel production, the results showed that both strains were good candidates for biodiesel production and bio-remediate of wastewater41.

The objectives of this work were to evaluate the capacity of the live alga Scenedesmus obliquus to biodegrade dye (methyl red) and to determine the production of lipids by the algal biomass for future possible applications in biodiesel production and statistical optimization of process variables by face-centered central composite design (FCCCD) for biodegradation of methyl red by Scenedesmus obliquus. SEM and FTIR analyses were used to characterize the biomass. GC–MS analysis was also used to determine the profile of the lipids.

Material and methods

Material

Scenedesmus obliquus microgreen alga was acquired from the “Microbial Biotechnology Department, Genetic Engineering and Biotechnology Research Institute (GEBRI), University of Sadat City, Egypt”. Methyl red was obtained from Sigma–Aldrich, formula as shown in Fig. 1

Figure 1
figure 1

Formula of methyl red (Azo dye).

Alga culture

S. obliquus was grown on a modified Bischoff and bold42 basal medium (all components were purchased from sigma Sigma-Aldrich in Egypt)42.

Optimization of process variables by face-centered central composite design (FCCCD)

Ten millilitres of alga at log phase were inoculated in 90 mL of medium using FCCCD to appraise the influence of four factors and investigate their optimum levels on methyl red decolorization and lipid production. Table 1 presents thirty runs with four variables, each of which varies from − 1 (low level), 0 (zero or middle level), and + 1 (high level). The selected independent factors were initial concentration of KNO3 as nitrogen source (X1: 0.5, 1, 1.5 g/L), incubation time (X2: 6, 10, 14 days), initial pH (X3: 7, 8, 9), methyl red concentration (X4: 10, 20, 30 mg/L) with an intensity of 80 μE m–2 s–1 continuous light. The relations among the four independent factors in addition to the responses (% methyl red (X4) decolorization, biomass and lipid contents were determined using the following second-order polynomial equation:

$$Y = \beta_{0} + \sum\limits_{i} {\beta_{i} X_{i} + } \sum\limits_{ii} {\beta_{ii} X_{i}^{2} } + \sum\limits_{ij} {\beta_{ij} X_{i} X_{j} }$$
(1)
Table 1 Face-centered central composite design matrix of four process variables for methyl red decolorization (%) and lipid production (%) by using Scenedesmus obliquus.

The symbol Y is the predicted methyl red decolorization (%) or lipid biosorption percentage, the linear coefficient (βi), quadratic coefficients (βii), the regression coefficients (β0), the coded values of the independent variables (Xi), and the interaction coefficients (βij).

Statistical analysis

For experimental design and statistical analysis, the software Design Expert “Version 7 for Windows” was used. STATISTICA Software “Version 8.0, StatSoft Inc., Tulsa, USA” was used to generate three-dimensional surface plots.

Analytical methods

For each trial of FCCCD, thirty millilitres of algal suspensions were centrifuged, and the filtrates were analysed with a UV–Vis Dual Beam Spectrophotometer UVS-2700 by determining the absorption variations at 430 nm wavelengths to reveal the residual concentrations of MR dye. The efficiency of the fresh alga S. obliquus for MR decolorization was verified as a percentage using the following equation:

$${\text{MR removal}} = \left( {{\text{C}}_{{1}} - {\text{C}}_{{2}} /{\text{C}}_{{1}} } \right)*{1}00$$

where C1 is the initial concentration of MR and C2 is the final concentration after treatments with algal biomass.

Dry weight estimation

After the limited time (6, 10, and 14 days) was finished, aliquots of 100 ml were centrifuged, and the residue was dried until constant weight in an oven at 60 °C.

Lipids determination

For each trial of FCCCD, one gram of algal dry weight was mixed with 50 mL of hexane and then stirred with a magnetic stirrer bar for 20 min. The residue was then separated by filtration, and the solvent was evaporated. The extracted lipid was determined as a percentage by using the following equation43:

$${\text{Lipid }}\% = \left( {{\text{G}}_{{1}} /{\text{G}}_{{2}} } \right)*{1}00$$

where G1 lipids weight, G2 dry weight.

Preparation of fatty acid methyl ester (FAME) content and analysis by GC–MS

20 mg of the lipid extract were weighted and then 0.5 N methanol KOH (2.805 gm KOH in 100 mL methanol) was added, vortexed, and heated at 50 °C for 15 min. The mixture was then cooled and vortexed to mix well. Then, 5 mL of 4 N HCl (3, 4 ml HCl in 100 mL of water) was added and vortexed. Petroleum ether and hexane 1:1, were then added. The upper layer (FAME) was transferred to another tube and dried at 40 °C. 1 mL of hexane was then added to the dried FAME. The FAMEs were then injected and analysed by GC–MS. The sample was injected into GC–MS with a silica capillary column, HP-5MS, and the carrier gas was helium. The GC–MS temperature programme was initiated at 60 °C (2 min) and then increased to 280 °C at an ionizing rate of 8 °C/min. To evaluate the different peaks, Wiley and Wiley Nist mass spectral databases were applied.

Fourier transform infrared (FTIR) spectroscopy

FTIR spectroscopy is a crucial method for assessing the changes in the active groups present in the algal biomass after and prior to MR decolorization. Dry algal biomass samples were blended with potassium bromide pellets. Then, FTIR spectra were analysed at 400–4000 cm−1 using a Thermo Fisher Nicolete IS10 spectrophotometer (USA).

Scanning electron microscopy (SEM)

To study the cell surface of S. obliquus, the dry biomass was examined with SEM after and prior to MR decolorization. Using an accelerated beam voltage of 30 keV, the gold-coated dry biomass was examined at different magnifications.

Results and discussion

In this study, the impact of four variables, namely, nitrogen source conc. (g/L), incubation time (days), initial pH level, and methyl red concentration (mg/L) on simultaneous methyl red decolorization and lipid production (as a response) using the microalga S. obliquus was investigated.

Statistical optimization of lipid production and MR removal by the fresh alga, S. obliquus

The fermentation medium contents and various environmental conditions (i.e., nutrients, pH, etc.) required for microbial growth play an incredible role in achieving maximum metabolite production44,45. The conventional strategy for culture medium optimization (single variable optimization method) has been expanded for optimization of the process, but this method not only takes a long time, is expensive and laborious, but also ignores the effects of independent factor interactions46,47.

The statistical designs of experiments have been used for the optimization of process parameters and can be performed in two key steps: first, screening of the significant variables and second, optimization of those variables. These designs have several advantages, including fewer experimental runs for multiple parameters; avoiding misinterpretation of the results that occurs with the conventional strategy; assisting in determining the optimum level of each variable; exploring the individual, quadratic, and interaction effects between different variables; and predicting the optimum conditions for maximum response48. To determine the effects of four process variables and to obtain their optimum values for maximum simultaneous lipid production and decolorization of MR using fresh alga, S. obliquus, an overall number of thirty experimental runs of FCCCD were done. Table 1 shows the observed and predicted results for both lipid production and decolorization of MR. The results indicate substantial variations in both lipid production and MR decolorization percentages by S. obliquus according to the combinations of the four variables. Based on the data collected, the percentage of methyl red decolorization varied significantly from 29.63 to 70.56%.

These results agree with those of Abou-El-Souod et al.49, in which the decolorization percentage of methyl red (20 ppm) by S. obliquus was 48.60%. The decolorization percentage of methyl red (20 ppm) by C. vulgaris was in the range of 71%21. The result demonstrated that lipid production by S. obliquus ranged from 14.52 to 21.29% of dry weight, as shown in Table 1. The lipid production percentage of dry weight S. obliquus ranged from 11 to 55%19, 15.2 to 24.4%50, 21 to 42%35, 20.4 to 25.2%51. The lipid yield percentage of dry weight Scenedesmus dimorphus was 2635, Scenedesmus rubescens ranged from 18.5 to 23.2%52, Scenedesmus quadricauda was 18.453. The highest levels of methyl red decolorization (70.56%) were obtained in run no. 16 when all the tested variables were at their central value: the nitrogen source concentration was set at 1 g/L, the incubation time (10 days), initial pH level (8), and methyl red concentration (20 mg/L). Meanwhile, the highest levels of lipid production (21.29%) were shown in run no. 13, when the nitrogen source concentration was set at 1 g/L, the incubation time (10 days), initial pH level (10), and methyl red concentration (10 mg/L). The minimum methyl red decolorization (29.63%) was obtained in run no. 1 when the nitrogen source concentration was set at 0.5 g/L, the incubation time (6 days), initial pH level (7) and the methyl red concentration was 10 mg/L. The minimum lipid production was 14.58% when the nitrogen source concentration was set at 0.5 g/L, the incubation time (6 days), initial pH level (9) and methyl red concentration (30 mg/L).

Multiple regression analysis and ANOVA for methyl red decolorization by fresh S. obliquus

The FCCCD results for methyl red decolorization by fresh S. obliquus were analysed statistically, employing multiple regression analysis and analysis of variance (ANOVA), and the results of the analyses are presented in Tables 2, 3. Statistical regression analysis data such as adj R2 value, coefficient (R2) value, predicted R2 value, the main influence of each variable, lack of fit, F-value, and probability P-value were investigated to determine the model reliability. Individual, interactions and quadratic effects of the different variables were also evaluated.

Table 2 ANOVA for FCCCD results for methyl red decolorization (%) by using Scenedesmus obliquus.
Table 3 ANOVA for FCCCD results for lipid production (%) by using Scenedesmus obliquus.

The model determination coefficient (R2) for methyl red decolorization by fresh S. obliquus was 0.9944, meaning that 99.44% of the variance in methyl red decolorization was explained by the independent aspects used, and the model could not elucidate just 0.56% of the overall variance. A regression model with a high R2 value above 0.9 is considered to have the strongest significant correlation54,55. In addition, the Adj R2 value of the methyl red decolorization % by fresh S. obliquus (Adj R2 0.9893) was very high, which verified that the model is very significant, as shown in Table 2. On the other hand, there is reasonable agreement between the predicted R2 value of 0.9819 and the Adj R2 value of 0.9893, meaning a strong agreement between the predicted and experimental values of methyl red decolorization percentages. The model used in this study is therefore appropriate to predict methyl red decolorization by fresh S. obliquus in the range of independent parameters.

A considerably small value of the coefficient of variation % (C.V. = 1.86%) displays the high accuracy and consistency of the experimental values of methyl red decolorization percentages56. Adequate precision determines the level of noise; a level higher than 4 is superior and implies model consistency. The current adequate precision ratio for methyl red decolorization by the fresh S. obliquus model is 53.34, which implies model reliability. The standard deviation (SD) of methyl red decolorization by the fresh S. obliquus model was 1.09. The PRESS (expected residual sum of squares) value was 57.76, and the mean value of the methyl red decolorization model was 58.30 (Table 2).

The ANOVA of the regression model of methyl red decolorization indicates that the model terms are highly significant, as is apparent from the F (Fisher’s variance) value (F value = 483.09) and a very minor probability value [P-value˂ 0.0001] (Table 3). P-values were manipulated as a tool to evaluate the significance of each variable. In this study, the variables with P-values of less than 0.05 were found to have significant effects57,58. Meanwhile, the lack of fit for methyl red decolorization % was not significant (P-value = 0.4053 and F-value = 1.31) (Table 3).

The negative coefficient values of the linear, mutual interactions and quadratic effects of the selected process variables denote an antagonistic correlation among the selected process parameters and methyl red decolorization by fresh S. obliquus (the variables exert a negative effect). However, the positive coefficient values indicate a synergistic correlation between the selected process parameters and methyl red decolorization by fresh S. obliquus. It can be investigated from the values of coefficients that the linear coefficients of X1, X2, X3, and X4 are highly significant. The P-values of the coefficients indicate that the relations between X1, and X2; X1X3; X1X4; X2X3; X2X4; X3X4; X12, X22, X32, and X42 had a very significant impact on methyl red decolorization (P-value < 0.05).

The polynomial regression equation expressed in terms of coded levels of the variables reveals the mathematical relationships between the independent variables and can be used to make predictions of methyl red decolorization by S. obliquus (Y) for given levels of each variable. The mathematical relationship is assumed by the following polynomial equation of the second order:

$$\begin{aligned} {\text{Y}} & = {7}0.{3}0 + 0.{\text{81X}}_{{1}} + {2}.{\text{44X}}_{{2}} + {1}.{3}0{\text{X}}_{{3}} + {1}.{\text{64X}}_{{4}} \hfill \\ & \quad - { 2}.{\text{32X}}_{{1}} {\text{X}}_{{2}} - {1}.{\text{39X}}_{{1}} {\text{X}}_{{3}} - {1}.{5}0{\text{X}}_{{1}} {\text{X}}_{{4}} - { 3}.{\text{36X}}_{{2}} {\text{X}}_{{3}} - {4}.{\text{35X}}_{{2}} {\text{X}}_{{4}} \hfill \\ & \quad- {1}.{\text{87X}}_{{3}} {\text{X}}_{{4}} - { 4}.{4}0{\text{X}}_{1}{^{2}} - {5}.{\text{12X}}_{2}{^{2}} - { 4}.{\text{64X}}_{3}{^{2}} - { 5}.{\text{84X}}_{4}{^{2}} \hfill \\ \end{aligned}$$

where Y is the predicted value of methyl red decolorization % by vital S. obliquus. X1 is the coded value of the nitrogen source conc., (g/L), X2 is the coded value of incubation time (days), X3 is the coded value of initial pH level, and X4 is the coded value of methyl red concentration (mg/L).

The summary fit results in Table 3 demonstrate that the quadratic polynomial model has the most significant model terms with a very low P-value < 0.0001 and a nonsignificant lack of fit with a high probability value (P-value = 0.4053) and F-value = 1.09.

Multiple regression analysis and ANOVA for lipid production by fresh S. obliquus

Multiple regression analysis and analysis of variance (ANOVA) were used to analyse the FCCCD results for lipid production by fresh S. obliquus. The results are shown in Tables 4, 5. The model determination coefficient (R2) for lipid production by fresh S. obliquus was 0.9978, meaning that 99.78% of the variance in lipid production was explained by the independent factors used, and the model could not elucidate just 0.22% of the overall variance. In addition, the Adj R2 value of lipid production by fresh S. obliquus (Adj R2 0.9958) was very sharp, which verified great model significance, as shown in Table 4. On the other hand, there was reasonable agreement between the predicted R2 value of 0.9938 and the Adj R2 value of 0.9958, indicating great harmony between the predicted and experimental values of lipid production by the fresh alga S. obliquus. The model used in this study is therefore appropriate to predict lipid production by fresh S. obliquus in the range of independent parameters.

Table 4 Fit summary of the experimental results of CCD for methyl red decolorization (%) by using Scenedesmus obliquus.
Table 5 Fit summary for experimental results of CCD for lipid production (%) by using Scenedesmus obliquus.

A considerably small value of the coefficient of variation % (C.V. = 0.80%) displays the high accuracy and consistency of the experimental values of lipid production. The current adequate precision ratio for lipid production by the fresh S. obliquus model is 64.67, which implies the high precision and reliability of the model. The Std. Dev. of lipid production by the fresh S. obliquus model was 0.15. The PRESS value was 0.94, and the mean value of the lipid production model was 18.42 (Table 4).

The ANOVA of the regression model of lipid production indicates that the model terms are highly significant, as is apparent from the F (Fisher’s variance) value (F-value = 483.09) and a very minor probability value [P-value˂ 0.0001] (Table 5). Meanwhile, the lack of fit for lipid production was not significant (P-value = 0.9157 and F-value = 0.37) (Table 5).

It can be seen from the coefficients that the linear coefficients of X1, X2, X3, and X4 are highly significant. The P-values of the coefficients indicate that the relationships between X1 and X3; X1X4; X2X4; X3X4; X12, X22, X32, and X42 had a very significant impact on lipid production (P-value < 0.05). The P-value of coefficients indicates that the relations between X1 and X2 and X2X3 had a nonsignificant impact on lipid production (P-value ˃ 0.05).

Table 5 shows the fit summary results, which indicate that the quadratic polynomial model has the most significant model terms with a very low P-value < 0.0013 and a nonsignificant lack of fit with an elevated probability value (P-value = 0.9157) and an F-value = 0.37. The quadratic polynomial model has the highest R2(0.9978), adjusted R2(0.9958), and predicted R2 (0.9938).

The polynomial regression equation in terms of coded levels of the variables indicates the mathematical relations between the independent variables and can be used to make predictions of lipid production by S. obliquus (Y) for given levels of each variable. The mathematical relationship is assumed by the following polynomial equation of the second order:

$$\begin{aligned} {\text{Y}} & = 20.50 \, + \, 0.34{\text{ X}}_{1} + 0.16{\text{ X}}_{2} - 0.09{\text{ X}}_{3} - \, 2.02{\text{ X}}_{4} \hfill \\ & \quad + 0.05{\text{ X}}_{1} {\text{X}}_{2} + 0.11{\text{ X}}_{1} {\text{X}}_{3} - 0.39{\text{ X}}_{1} {\text{X}}_{4} + \, 0.03{\text{ X}}_{2} {\text{X}}_{3} \hfill \\ & \quad + \, 0.10{\text{ X}}_{2} {\text{X}}_{4} - 0.09{\text{ X}}_{3} {\text{X}}_{4} - 1.45{\text{ X}}_{1}{^{2}} - 1.25{\text{ X}}_{2}{^{2}} + 0.46{\text{ X}}_{3}{^{2}} - \, 1.23{\text{X}}_{4}{^{2}} \hfill \\ \end{aligned}$$

where Y is the predicted value of lipid production by vital S. obliquus. X1: is the coded value of the nitrogen source conc. (g/L), X2 is the coded value of the incubation time (days), X3 is the coded value of the initial pH level, and X4 is the coded value of the methyl red concentration (mg/L).

The adequacy of the model fit for methyl red decolorization (%) by using S. obliquus results

The normal probability plot of internally studentized residuals (NPP) is an important statistical tool for detecting the appropriateness of the model and clarifying whether a set of data is normal or deviates from normality59,60. Figure 2A shows the NPP of internally studentized residuals for methyl red decolorization (%) by using S. obliquus results in data analysis, which indicates that the residuals are normally disseminated; they are located along the straight diagonal line of the normal distribution of methyl red decolorization (%) by using S. obliquus, which reveals suitability of the model, and the predicted results of methyl red decolorization (%) by using S. obliquus were well fitted with the experimental results. Figure 2B shows the predicted values of methyl red decolorization (%) by using S. obliquus versus the internally studentized residuals as determined by a second-order polynomial equation. Figure 2B shows that the residual data is distributed equally above and below the x-axis, confirming the validity of the model.

Figure 2
figure 2

(A) Normal probability plot of internally studentized residuals, (B) plot of internally studentized residuals versus predicted values of methyl red decolorization (%) by using Scenedesmus obliquus as determined by a second-order polynomial equation.

The adequacy of the model fit for lipid production (%) by using S. obliquus

Figure 3A displays the graph of the box-Cox plot of the model alteration of lipid production (%) by using S. obliquus determined by a second-order polynomial equation. As shown in Fig. 3A, the best value of lambda (λ = 0.46) is located between the two vertical red lines so that no data alteration is necessitated. The red lines indicate the minimum and maximum 95% confidence interval values. Figure 3B presents a plot of predicted versus experimental (actual) values of lipid production (%) by using S. obliquus. The graph shows the points adjacent to the diagonal line, revealing a good correlation between the predicted and actual experimental values.

Figure 3
figure 3

(A) Box–Cox plot of model transformation and (B) plot of predicted versus actual values of lipid production (%) by using Scenedesmus obliquus as determined by a second-order polynomial equation.

Three-dimensional surface plots to imagine the effects of independent process factors on methyl red decolorization by using S. obliquus

The three-dimensional (3D) surface plots were generated to recognize the optimum conditions for the highest percentage of methyl red decolorization by using S. obliquus and to visualize the effects of the interactions between the selected process factors on the percentage of methyl red decolorization. 3D graphs for the four variables combined in pairs (nitrogen sources conc. (X1), incubation time (X2), initial pH level (X3) and methyl red concentration (X4) were created by plotting the percentage of methyl red decolorization on the Z-axis versus two process factors, while other independent process factors were fixed at their center levels. The 3D graph (Fig. 4) illustrates the effect of the nitrogen source conc. (X1) and incubation time (X2) on methyl red decolorization on the Z-axis, whereas the initial pH level (X3) and methyl red concentration (X4) were maintained at their center levels.

Figure 4
figure 4

Three-dimensional surface plot for methyl red decolorization (%) by using Scenedesmus obliquus, showing the interactive effects of the tested variables.

Figure 4A shows that methyl red decolorization increases with increasing nitrogen source conc., and incubation time. The highest percentage of methyl red decolorization was apparently placed close to the central level of the nitrogen source concentration and incubation time. The center level nitrogen (X1) causes a high degradation value of methyl red by S. obliquus. Lower and higher concentrations of nitrogen (X1) and incubation time (X2) resulted in lower methyl red decolorization percentages. By solving the Eq. (1) and analysing Fig. 4A, the maximum methyl red decolorization predicted value of 70.56% could be achieved at the optimal predicted levels of nitrogen source conc. of 1 g/L, and incubation time of 10 days by using S. obliquus at initial pH level 8, and 20 mg/L methyl red. Figure 4B represents the influence of nitrogen concentration (X1) and initial pH (X3) levels on the methyl red decolorization percentages, where the incubation time (X2) and methyl red concentrations (X4) were maintained at their centre levels. Figure 4C denotes the influence of nitrogen concentration (X1) and methyl red concentration (X4) on the methyl red decolorization percentages. When the other two variables were at the centre levels, the high and low levels of the tested variables did not affect the methyl red decolorization percentages when using fresh S. obliquus. The influence of incubation time (X2) and initial pH (X3) on the methyl red decolorization percentages is shown in Fig. 4D. As shown in Fig. 4D, the center value of incubation time (X2) and initial pH (X3) caused the elevation of methyl red decolorization, while the other two variable factors were also at the center value. Figure 4E shows the influence of both incubation time (X2) and methyl red concentration (X4) on methyl red decolorization percentages by using fresh S. obliquus. The highest decolorization was obtained when the nitrogen concentration (X1) and initial pH (X3) were at their center values. The effect of initial pH (X3) and methyl red concentrations (X3) on the methyl red decolorization percentages by using fresh S. obliquus is shown in Fig. 4F. The low and high values of the initial pH and methyl red concentrations did not increase the percentage of methyl red decolorization when nitrogen concentration and incubation time were maintained at their center levels.

Three-dimensional surface plots to envision the effects of independent process factors on lipid production % by using S. obliquus

Figure 5 demonstrates the three-dimensional plots for lipid production percentages as a function of nitrogen source conc. (X1), incubation time (X2), initial pH level (X3), and methyl red concentration (X4). Figure 5A validates that higher and lower levels of nitrogen concentrations and incubation time decrease the lipid production percentage by S. obliquus when the initial pH is at the center value and methyl red concentrations are at lower values. Figure 5B demonstrates that the centre value of nitrogen concentrations and initial pH increased the lipid production percentage by S. obliquus when the incubation time was at the center value and methyl red concentrations were at low values. Figure 5C demonstrates the effect of nitrogen concentrations and methyl red concentrations on the lipid production percentage by S. obliquus. The results prove that the centre value of nitrogen concentrations and low value of methyl red concentrations promote the lipid production percentage by S. obliquus when two other variables are maintained at their centre levels. Figure 5D represents the effect of incubation time and pH on the lipid production percentage by S. obliquus. The results proved that when nitrogen concentrations were at center levels and methyl red at low levels, the results proved that the high and low levels of the incubation time and initial pH values decreased the lipid production percentage by S. obliquus when the nitrogen concentration was at its center level and methyl red concentrations were at their low levels. Figure 5E shows that the centre level of incubation time and low level of methyl red concentrations increase the lipid production percentage by S. obliquus at their center levels of both nitrogen concentrations and initial pH. Figure 5F denotes the effect of pH and methyl red concentrations on the lipid production percentage by S. obliquus. The results indicated that high and central levels of methyl red concentrations and high and low levels of pH decreased lipid production by S. obliquus when the nitrogen concentrations and incubation time were maintained at their center levels.

Figure 5
figure 5

Three-dimensional surface plot for lipid production (%) by using Scenedesmus obliquus, showing the interactive effects of the tested variables.

The desirability functions

One of the key targets of the experimental design analysis is to identify the optimum conditions predicted to maximize the response. Due to its simplicity, the desirability function (DF) approach has been commonly employed to determine the optimum predicted conditions for the optimization of multi-response processes61. The DF strategy is used to determine the optimum predicted conditions that can provide the "most desirable" response values. The use of DF will effectively contribute to the optimization of biotechnological processes with a reduced number of replicates. The function of desirability ranged between zero (indicating an undesirable response) and one (indicating a completely desirable response). For the optimization process, the DF option in Design Expert Software (version 7) was used. The optimum predicted conditions reached with a desirability function of 0.98 for the maximum decolorization of methyl red % and lipid production (70.15 and 20.91%; respectively) by S. obliquus (Fig. 6) were obtained by using nitrogen concentrations of 1.05 g/L medium, an incubation time of 10.82, the initial pH level of 8.11, and methyl red concentrations of 17.65 mg/L. These optimum values were confirmed experimentally, which resulted in methyl red decolorization of 70.15% and lipid production by S. obliquus of 20.91% dry weight.

Figure 6
figure 6

The optimization plot displays the optimum predicted values for the maximum methyl red decolorization (%) and lipid production (%) by using Scenedesmus obliquus and the desirability function.

Bisht et al.62 reported that one g/L sodium nitrate was added to BG11 medium to show better biomass growth and lipid productivity of Scenedesmus sp. DBTKU. The lipid contents of Chlorella sorokiniana DOE1412 were not affected by pH levels63. El‑Naggar et al.64 used Face-centered central composite design (FCCCD) to find out the optimum levels and to analyze the combined effects of initial pH, contact time, Hg2+, Remazol brilliant blue (RBB), and biomass concentrations on the biosorption process of Hg2+ and RBB dye simultaneously from the binary mixture by Gelidium corneum biomass. FCCCD design of experiments resulted in a maximum removal percentage of RBB of 89.18% which was obtained using 200 mg/L Hg2+, 100 mg/L RBB, pH 5, 4 g/L algal biomass and 180 min of contact time. As well, El‑Naggar et al.61 used a FCCCD based optimization to investigate the efficiency of the Gracilaria seaweed biomass as a sustainable biosorbent for bioremoval of methylene blue from aqueous solution. The highest bioremoval percentage of methylene blue was 94.86%, obtained under optimum experimental conditions: 6 g/L Gracilaria seaweed biomass, initial pH 8, 20 mg/L of methylene blue, 150 mg/L of Ni2+ and 180 min of contact time. On the other hand, El‑Naggar et al.59 used FCCCD to optimize the process variables levels and analyze their combined effects on Congo red dye removal percentage. The highest removal percentage of Congo red dye (97.89%) was achieved using 100 mg/L Congo red dye, 200 mg/L Pb2+, 3 g/L algal biomass, initial pH 6 and contact time was 120 min at 30 °C.

Infrared of biomass of S. obliquus

Infrared analysis of S. obliquus biomass was applied to identify the structural variation of the biomass after and before treatments with MR. Seventeen peaks were present in the control, and 18 peaks were present in the treated alga (Fig. 7). The peaks in control are 3865.48, 3745.88, 3425.69, 2926.11, 2862.46, 2395.67, 1727.31, 1654.01, 1543.1, 1449.55, 1255.7, 1140.93, 1079.21, 1044.49, 698.25, 600.85 and 478.36 cm−1, the peaks are shifted to 3910.8, 3859.69, 3747.81, 3436.3, 2929, 2388.92, 1923.09, 1654.01, 1546.96, 1449.55, 1402.3, 1315.5,1242.2, 1105.25, 683.79, 617.24, 538.16 and 479.33 cm−1 after treatments with MR.

Figure 7
figure 7

FTIR analysis of Scenedesmus obliquus biomass: (A) before and (B) after methyl red decolorization.

Peak at 3425 cm−1 assigned OH stretching of alcohols and phenols65. The peak at 3436.3 cm−1 was due to the stretching vibration of OH66. The peaks at 2926 cm−1 and 2929 cm-1 correspond to aliphatic C–H stretching67. The peak at 2395 cm−1 represents weak absorption HPO468. The peak at 2388 cm−1 denoted O–H···O–P modes (strong H-bonds)69. The peak at 1727 cm−1 was due to the stretching vibration of O–H70. The peak at 1923 cm−1 represents asymmetric stretching of alkene71. Peaks at 1664, 1546, 1543, 1255, and 1242 cm−1 correspond to amide groups72,73. The peak at 1449 cm−1 represents asymmetric CH3 bending of the methyl groups of proteins74. The peak at 1402 cm−1 represents CH3 symmetric deformation75, 1315 cm−1 amino groups76. Peaks at 1105 cm−1 represent carbohydrates77, and those at 1079 cm−1 represent phosphate groups78. The peak at 1044 cm−1 may be due to the residual 70 inorganic sulfate ions. Peaks ranged 800 to 600 represent C-Cl79. It is evident that there was due to the stretching vibration of the azo bond diminishes in 1654 cm−1, The intensity shifted after treatment by methyl red from 46.272 before treatment by methyl red to 44.541 (after treatment by methyl red), there is a new peak in the azo range (after treatment by methyl red) is 1727.31 cm−1, there is a little shift in the peak 1546 cm−1 (before treatment) to 1543 cm−1 (after treatment by methyl red) and the intensity peak shifted from 49.426 (before treatment) to 49.114 after treatment by methyl red.

Scanning electron microscopy (SEM)

SEM micrographs of S. obliquus biomass after and before treatments with MR are shown in Fig. 8. The results indicated that the untreated alga was relatively smooth and no impurities were present, but in the case of alga treated with MR, there were large amounts of impurities and shrinkage. When Chlorella sp. absorbed lower concentrations of dyes, the cell surface became less smooth80.

Figure 8
figure 8

SEM micrograph of Scenedesmus obliquus biomass: (A) before and (B) after methyl red decolorization.

Lipid’s profile

Twenty compounds appeared in the lipid extract from the alga (S. obliquus) grown with M.R., but in the case of the control, there were only 10 compounds. This was because alga was grown with methyl red under mixotrophic conditions and used the carbon present in dye as the sole carbon source, but the control alga was grown under autotrophic conditions and CO2 assimilation. The results in Figs. 9 and 10 indicate that the chemical composition of the methyl esters of fatty acids extracted from S. obliquus was grown under mixotrophic and phototrophic conditions, respectively. Compounds are present in GC–MS profiles after methylations of hexane extracts of S. obliquus were grown with methyl red (mixotrophic conditions): hexanoic acid, cyclopropane, octyl-, 2,4-decadienal, (E, E)-, 2,4-nonadienal, (E, E)-, diethyl phthalate. Nonadecane, 2-bromotetradecane, 1-chloroeicosane, 9,12-octadecanoic acid (Z, Z)-, hexadecane, 2,6,11,15-tetramethyl-, hexadecane, 2-bromo dodecane, heptadecane, 2,6,10,15-tetramethyl-, tetratriacontane, hentriacicontane, tetrapententacontane, 1,54-dibromo-, (R)-(−)-14-methyl-8-hexadecyn-1-ol, propylenegal monoleate, 2,6-bis(3,4-methylenedioxyphenyl)-3,7-dioxabicyclo (3.3.0) octan, and cyclopropanebutanoic acid, 2-[[2-[[2-[(2-pentylcyclopropyl) were met. Compounds were present after hexane extract from S. obliquus was grown under photoautotrophic conditions were diethyl Phthalate, 9,12-octadecadienoic acid (Z, Z)-, Z, Z-3,13-octadecedien-1-ol, 9-octadecenoic acid (Z)-, 2-hydroxy-3-[(1-oxohexadecyl) oxy]pr, 1-octadecyne, 13-tetradecynoic acid, methyl ester, hexanoic acid, 2-tetradecyl ester, octanoic acid, hexadecyl ester, 2-octanol, pentafluoropropionate, and tricyclo [20.8.0.0] triacontane, 1(22),7(16)-diepoxy-. Five major fatty acids in Scenedesmus dimorphus were oleic acid, linolenic acid, palmitic acid and 2-methy tetracosane 16.12%, 12.68%, 10.14%, 10.11% and 6.83%, Scenedesmus quadricauda lipids components were palmitic acid, oleic acid, linoleic acid, 3, 7, 11- trimethyl-2,4-dodecadiene and linolenic acid (16.36%, 15.60%, 11.67%, 9.67% and 6.21%, respectively81. The polyunsaturated essential fatty acid 9,12-octadecadienoic acid methyl ester (Z, Z) (linoleic acid) is present in the lipid profile of S. obliquus when grown under autotrophic conditions and that grown under mixotrophic conditions, but the percentage of contents were differ.

Figure 9
figure 9

GC–MS analysis of lipids produced by Scenedesmus obliquus before methyl red decolorization.

Figure 10
figure 10

GC–MS analysis of lipids produced by Scenedesmus obliquus after methyl red decolorization.

The maximum amount is present in the lipids of alga grown under autotrophic conditions and represents 78.26, but in the case of alga grown in mix-trophic conditions, it represents 45.92. Therefore, the lipid composition and its percentage of alga grown with MR differed from the lipid profile of the same alga when grown under autotrophic conditions. Alga grown with methyl red had a lot of different compounds in their lipid profile than those grown under photoautotrophic conditions. This could be due to alga grown with methyl red has a different metabolism for producing fatty acids. Under mixotrophic conditions, algae use methyl red as the sole carbon source. Fazal et al.30 reported that microalgae utilize dyes as a carbon source and transform them into metabolites. Microalgae also work as biosorbents because dyes can be absorbed onto their surface82. The low amount of unsaturated fatty acids in the lipid profile of alga cultivated with methyl red may be due to the nitrogen content of the dye elevating the available nitrogen to alga. When the nitrogen deficiency reached day 10, the lipid content of Scenedesmus sp. increased from 14 to 31%83. Numerous other hydrocarbons were detected in addition to fatty acids due to the algae's metabolism being distinct from that of phototrophic algae. The microgreen algae Chlorella pyrenoidosa and Chlorella vulagris degrade dyes into simple aromatic amines and decolorize dye wastewater84. Therefore, it is possible to use the fatty acids extracted from alga grown with methyl red to produce biodiesel and simultaneously remove dyes.

An engine fuelled with biodiesel containing superior oxygen content can lead to lower CO emissions with increasing blend ratio due to complete combustion in the diesel engine. An engine fuelled with biodiesel containing superior cetane number and higher lubricity is more effective.

Biodiesel with higher gross calorific value produces higher power. Biodiesel has a higher viscosity, which causes fuel flow and ignition problems in engines and decreases power output85. Lipid yields by microalgae are controlled by various culturing conditions, such as nitrogen deprivation86, harvesting times87, and pH88. Additionally, the methods and solvents used to extract lipids affect lipid yields and contents43. The oxidation state of the nitrogen source (i.e., NH4 or NO3) can promote the influence of biomass yield89. Musa et al.90 reported that the use of NO3 as a nitrogen source requires high energy and diminishes biomass yield. The results indicated that unsaturated fatty acids were more abundant than saturated fatty acids. Saturated acid components in algal biomass are in the range of 25–45%, while unsaturated fatty acid contents account for 50–55% of total fatty acids91. Xin et al.83 reported the potential production of biodiesel from lipids extracted from Scenedesmus sp. grown in wastewater treatment. Mata et al.92 stated the possible production of biodiesel from Scenedesmus obliquus that was grown in brewery wastewater. The lipid percentage of Scenedesmus obliquus grown with total wastewater was 22.7, whereas the lipid percentage of algae grew in BBM 25.251. Mata et al.92 reported that Scenedesmus sp. Z-4 displayed great potential to realize simultaneous wastewater treatment and lipid production at low temperatures. Table 6 reported the various factors affecting the decolorization of methyl red dye from aqueous solutions by using different sorbents (algae and bacteria). There was variation in factors (incubation time, pH, methyl red conc., temperature) influencing the decolorization of methyl red according to the biosorbents. The incubation times were 60 h, 20 m, 60 m, 24 h, 48 h and 6 h with the biosorbents Chara vulgaris, Neplhelium lappaceum seeds, Galactomyces geotrichum MTCC 1360, Rhodococcus strain UCC 0016, Bacillus megaterium ITBHU01 and Spirulina-C11; respectively at pH 5, 3, 7, 7.21 and 8 with Chara vulgaris, Neplhelium lappaceum seeds, Rhodococcus strain UCC 0016, Bacillus megaterium ITBHU01 and Aeromonas jandaei strain93,94,95,96,97,98,99,100; respectively. Many studies used algae to remove dyes and heavy metals from wastewater29,101,102. The lipid yields by algae can be stimulated by some factors such as ultrasonication103 and addition of iron oxide nanoparticles to the algae growth media104,105,106,107.

Table 6 Optimization factors for decolorization of methyl red dye from aqueous solutions by various biosorbents.

Conclusions

This study demonstrates a novel approach that uses the microgreen alga Scenedesmus obliquus to decolorize methyl red and produce lipids for possible transesterification to biodiesel. Experimentally, the maximum methyl red removal and lipid production were 70.015 and 20.91%; respectively. The methyl red concentration was 17.95 mg/L, nitrogen concentration was 1.05 mg/L, incubation time was 10 days, and pH was 8.11. Fresh algal biomass from S. obliquus can be used to remove methyl red from wastewater efficiently, making lipids that can be transesterified into biodiesel and solving both fuel and environmental problems. Algae can be used in simultaneous bioremediation of wastewater and production of biofuels like biodiesel that is derived from lipid content and bio-methanol that is derived from carbohydrate content. Extensive study should be required to determine the optimal conditions for production and harvesting of high lipid content algae to make algae fuel for future energy.