Introduction

Textile industries are using dyes in their process production. These dyes are very toxic to the environment ecosystem1,2. Textile industries discharge wastewater effluent directly into the environment. These wastewater effluents contain complex structured compounds that are difficult to biodegrade. These complex structured organic substances are toxic which makes dyes a threat to the human body. Researchers have developed some methods to tackle this problem. Methods are adsorption3, coagulation4,5, flocculation6. Photocatalysis is also a method that uses a photocatalyst material that is activated in the sunlight. These materials are stable, abundant, safe, and highly preferred as they are sustainable, non-hazardous, and economical. Metal oxides have been used in various applications such as electronics, catalysts, and biomedicine7,8. Many metal oxides (eg., TiO28, ZnO9, Fe2O310, and WO311) have properties such as nontoxicity, high activity, chemical stability, and low cost and have been used as a photocatalyst material for dye degradation. Catalytic mechanisms of these materials have also been documented12. Nowadays magnesium oxide (MgO) has caught attention in various applications such as catalytic13, electronics14, and biomedical15 because of its unique physicochemical properties, low toxicity, and inexpensive properties. The application of MgO is very widespread in various fields such as adsorption11, catalysis16, antibacterial material17, paint18, and superconductors19. Researchers have made some attempts13,14,20,21,22,23,24 to use MgO as a photocatalyst material for the degradation of various dyes in aqueous solution.

Organic complex structured compounds such as methylene violet (MV), methyl orange (MO), methylene blue (MB), and rhodamine B (RhB) are the most hazardous and important dyes effluent from the textile industry25,26,27,28. Most of the researchers use one of these dyes to evaluate the photocatalysis process. But more importantly, in the real-world scenario effluent from the textile industry contains a mixture of dyes so a mixture of dyes is more relevant to consider for photocatalysis. Some of the researchers have tried a mixture of dyes (binary dye) to evaluate the photocatalysis activity by using different combinations of dyes e.g. MO/RhB29, MO/MB29,30, and MB/RhB31. Furthermore, one thing is to be noted the textile industry effluent contains a mixture of dyes with different individual dye concentrations at variable pH. So, this concentration and pH of effluent are also important parameters to consider while designing any catalyst material. The amount of catalyst and time of catalysis are the other important parameters because they are directly associated with the effectivity of photocatalysts.

Conventionally, these process parameters are analyzed by holding a parameter constant while varying other parameters. The holding of a parameter at an unspecified constant level does not show the combined effect of all the parameters involved. This method is very time-consuming and requires a lot of experiments to optimize all parameters. By together optimizing all the influencing parameters using statistical experimental design, such as Response Surface Methodology (RSM)7, these limitations of the conventional technique can be avoided. Using statistical experimental design approaches in the development of photocatalytic processes can lead to several benefits, including improved photocatalytic activity, reduced process variability, closer confirmation of the output response to nominal and target requirements, and reduced development time and overall costs. Many researchers have used this Response Surface Methodology a statistical experimental design approach to optimize and understand the behavior of process parameters32,33. It is well well-established method and widely reported for photocatalysis experiments. However, it has not been explored for MgO as a photocatalyst for the degradation of binary dye.

This research article is related to the use of Magnesium Oxide (MgO) as a photocatalyst material for the degradation of a mixture of dyes (Binary dye). A mixture of Methylene Blue (MB) and Methyl Violet (MV) is used for this study because a mixture of dyes is more relevant in the case of textile effluent. Furthermore, the effect of process parameters is also analyzed and optimized with the help of Response Surface Methodology (RSM). Five parameters (Factors) such as pH of the solution, irradiation time, catalyst dosage, initial MB dye concentration, and initial MV dye concentration are selected for this study. To analyze these parameters, the experiments are designed with the help of Central Composite Design (CCD) by Design Expert (version 13) software. The quality of fitting of the model and the effect of individual and interaction of parameters are evaluated by analysis of variance (ANOVA). The parameters are optimized for the highest photoactivity and also validated by experiment.

Material and methods

Magnesium oxide (MgO) powder was purchased from Adnano Technologies Pvt. Ltd., India. The absorption spectra of MB and MV dyes were collected using the Shimadzu UV-2600 UV–Vis spectrophotometer. MgO photocatalyst was drop cast in ethanol on a silicon wafer and Scanning electron microscope (SEM) images of MgO powder were recorded using FE-SEM Inspect™S50.

The photocatalysis experimental setup contains a visible light source, a reaction beaker, a magnetic stirrer, and a box. The reaction beaker was kept on a magnetic stirrer and a visible light source was placed above 15 cm from the upper surface of the dye solution. The visible light source was from Havells company and of 15 W power rating. The whole experimental setup was kept inside a box to avoid any type of unwanted radiation.

All the experiments were conducted in a 20 ml solution of dyes of known initial concentration, photocatalyst dosage, and pH. The pH of the dye solution was adjusted by 0.1 M HCl and 0.1 M NaCl solution. The dye aqueous solution was put in the dark for 5 h to establish the adsorption equilibrium of MB, and MV dyes on the photocatalyst surface area. After establishment, the dye solution was centrifuged at 3000rpm for 3 min to separate the photocatalyst and then analyzed by UV-visual spectrophotometer. Dye along with the photocatalyst used for analysis was again mixed with the dye solution. The dye solution was exposed to a light source. After the specified period dye solution was brought out again and was centrifuged at 3000rpm for 3 min. After this process, the mixture was again analyzed and subsequently, degradation efficiency was calculated via the following Eq. (1).

$${\text{P}}\, = \,\left( {{\text{Co}} - {\text{Ct}}} \right)/{\text{Co}}\, \times \,{1}00$$
(1)

    Where P is the degradation efficiency (%), Co is the initial concentration of the dye solution and Ct is the concentration of dye after a specific period.

The photocatalytic activity was evaluated for individual MB and individual MV dyes and a mixture of both dyes (binary dye). The initial concentration of single MB and MV dyes was 10 mg/L at natural pH and the amount of photocatalyst (MgO) used was 5 g/L. Photocatalytic activity was also evaluated for the binary mixture of MB and MV dyes. The volumetric ratio of MB and MV dyes was taken as 1:1 with 10 mg/L initial concentration of each dye. The amount of photocatalyst used was 5 g/L.

Interaction between given parameters (factors) was studied by RSM and experiments were designed by central composite design (CCD) with the help of Design Expert version 13 software. A CCD with five levels and five factors was selected. These factors were X1: Photocatalyst dosage (g/L), X2: time of exposure (minutes), X3: MB dye initial concentration (mg/L), X4: MV dye initial concentration (mg/L), and X5: pH of the dye solution. CCD can evaluate a quadratic model recognize the main effective factors interact them with a minimum number of required experiments and optimize multiple variables34,35. The ranges of factors along with the low, center, and high points can be seen in Table 1.

Table 1 Factors and their ranges for CCD matrix.

The CCD design suggested 27 individual experiments in two blocks and a small design. It is shown in Table 2. The polynomial equation [(Eq. 2)] was used for the mathematical relationship between independent parameters36,37,38. Analysis of variance (ANOVA) was used to evaluate the quality of the fitted model. The significance of the model was determined by p-value and f-value39.

$$Log_{10} (R) = \beta_{0} + \sum\nolimits_{i = 1}^{6} {\beta iXi} + \sum\nolimits_{i,j = 1}^{6} {\beta ijX1X2} + \sum\nolimits_{i = 1}^{6} {\beta iiXi2} + \varepsilon$$
(2)
Table 2 CCD matrix and responses.

Some experiments suggested by CCD (Table 2) showed combined degradation efficiency (MB and MV dyes) more than optimized values. While designing experiments by CCD, it is used to take some axial points beyond predefined ranges. Axial points are taken to observe results beyond predefined ranges and correlate them with experiments done in the range. Experiments run 24 and 26 are the axial points taken by CCD which are beyond predefined ranges. In an experiment run 24, a concentration of MB dye was taken for the axial point. As the concentration of MB dye was considerably less than the predefined range, it showed higher photodegradation efficiency than the predicted value. Experiment run 27 was also an axial point taken by CCD. CCD took time of reaction as an axial point. As the time of reaction was considerably higher than the predefined range, it showed higher photodegradation efficiency. Experiments 19 and 21 are also similar types of experiments.

Results and discussion

Scanning electron microscope (SEM) images are shown in Fig. 1. The big particle shown in Fig. 1b is an MgO particle and the background is ethanol which was used for sample preparation (drop cast). It can be concluded from the images that MgO powder partials were in specific shapes and sizes. The average size of the powder particle was 2.5 μm. X-ray diffraction is not shown here as this material was purchased from the market and the same is directly used in the present experiments.

Figure 1
figure 1

Scanning electron microscopy images of (a) a MgO particle and (b) a single particle of MgO.

The photocatalytic activity was evaluated for single MB and single MV dyes. For this purpose, the initial concentration of individual single MB dye and individual single MV dyes was 10 mg/L at natural pH and the amount of photocatalyst (MgO) was 5 g/L. MB and MV dye absorption characteristic peak was found at 663 and 587 nm respectively. The effect of photocatalysis was determined by monitoring characteristics peak. During the photocatalysis process, the intensity of the absorption peak was decreased which indicated a decrement in the concentration of dyes (Fig. 2). Figure 2a and Fig. 2b show the absorption Vs wavelength plot depicting this decrement for individual single MB and MV dyes respectively. MgO photocatalyst showed 78% degradation in 120 min when an individual single MB dye aqueous solution was used for photocatalysis (Fig. 2a). However, individual single MV dye showed an 87% degradation in 270 min (Fig. 2b). Many researches have been published to report the photocatalytic activity of MgO/modified MgO photocatalysts40,41,42,43,44,45.

Figure 2
figure 2

UV visible spectra of Photocatalysis of (a) MB dye and (b) MV dye at 5 g/L MgO powder dosage, 100 mg/L dye concentration, and natural pH.

The absorption Vs wavelength plot of individual single MB, single MV dye at a concentration of 10 mg/L, and binary solution of MB and MV dye with a volumetric ratio of 1:1 at a concentration of 10 mg/L are shown in Fig. 3a. It can be observed from the plot that after mixing both dyes in equal amounts (the volumetric ratio is 1:1), the intensity of the absorption peaks of binary dyes decreased. It indicated that the concentration of both dyes decreased. When two dyes were mixed, the amount of solvent increased because it came from both dyes. As the amount of solvent in the binary mixture of dyes increased and the amount of MB and MV dye was constant, the concentration of MB and MV dye in the binary mixture decreased.

Figure 3
figure 3

UV–visible spectra: (a) absorption spectra for a single and binary mixture of MB and MV dye (10 mg/L) and (b) absorption spectra for photocatalysis of 10 mg/L of each dye for 135 min, 5 g/L MgO nanoparticle dosage and natural pH.

The photocatalytic activity was evaluated for the binary mixture of MB and MV dyes. MB and MV dye absorption peaks were found at 663nm and 598 nm respectively. The effect of photocatalysis was determined by monitoring absorption characteristic peaks. During the photocatalysis process, the intensity of the absorption characteristics peak was decreased which indicated that the concentration of dyes was also decreasing (figure 3b). MB and MV dyes showed 93 and 88 % degradation efficiency in binary solution within 135 min respectively.

Figure 4a shows the degradation efficiency of MgO photocatalyst (C/Co) versus time plots when an individual single MB and MV dyes and binary solutions of MB and MV dyes were used for photocatalysis. Figure 4a revealed that MB dye in a binary mixture of dyes is degrading fastest whereas individual single MV dye degrades slowest. Figure 4a also revealed that both dyes are degrading faster when they are in binary dye solution. It implies that when photocatalytic reactions of both dyes take place in the binary solution then both reactions help each other to increase the rate of reaction.

Figure 4
figure 4

(a) C/Co versus time plots and (b) ln (Co/Ct) versus time plots for MB and MV single dyes and a mixture of both dyes.

L–H equation has been often used for the modelling of photocatalytic degradation. It was expressed by a first-order kinetic model [Eq. (3)].

$${\text{ln }}\left( {{\text{C}}_{{\text{o}}} /{\text{C}}_{{\text{t}}} } \right)\, = \,{\text{kt}}$$
(3)

Here Co is the initial concentration, Ct is the concentration of dye solution after the t time-period of light illumination for the photocatalytic experiment., and k (min−1) is the rate constant of the photocatalytic reaction. Empirical data was fitted for single MB and MV dye with and without photocatalyst along with MB and MV dyes in binary dye solution. Figure 4b shows (Co/Ct) versus time graph with rate constant of reaction. The reaction rate constant for MB dye in the binary mixture of dyes is the highest whereas the same is the lowest in the case of single MV dye solution.

The electron (e) and hole (h+) were generated by the ejection of electrons from the valance band to the conduction band when the MgO catalyst powder was illuminated. These electrons and holes migrate to the surface of the MgO catalyst powder particle and make an active site for advanced oxidation reactions. Free radicals are generated by the interaction of e- and h+ with the H2O and O2 molecules at active sites. The HOO free radical was generated by the reduction reaction of superoxide anon (O2). Now, the HOO free radical reacts with e and hole h+ and generates H2O and it consumes free energy and releases the hydroxyl radicals. Moreover, this h+ in the valance band reacts with H2O molecule and generates hydroxyl radicals46. These generated hydroxyl radicals attack on dye molecule break down the structure of the dye molecule and produce H2O and other byproducts47.

CCD was used to design experiments to study the influences of selected parameters (factors). The experiments along with their degradation efficiencies are shown in Table 2. The degradation activity and parameters fitted in Eq. (2) by software and analyzed by Analysis of variance (ANOVA) to evaluate the quality of the fitted equation. The significance of the fitting was determined by p-value and f-value. Table 3 illustrates the five‐factor CCD matrix and fitting results of the degradation of the binary dye solutions.

Table 3 ANOVA for a quadratic model with log10 transformation for photocatalysis of binary dye mixture.

To find the influencing factors and the interactions between factors, analysis of variance (ANOVA) was used48,49,50. In Table 3, p-values and f-values are indicated for individual coefficients in the equation. A p‐value less than 0.0001 shows the significant effect and statistical significance of results at a 95% confidence level. Whereas, the F-values for the model are 114.62 and 191.48 for MB and MV dye in binary solution respectively. The lack of fit (LOF) of the Fitted models for photodegradation of binary dye with MgO as photocatalyst is not significant which indicates the reliability of the fitted model and all values indicate that the model is perfectly fitted and can be used for further analysis.

The values of adjusted and predicted R2 were evaluated (Table 4) and found around 0.98 and 0.83, and 0.99 and 0.90 for MB and MV dyes (respectively) in the binary solution. This is an indication of a good relation between the observed and predicted values. The signal‐to‐noise ratio (adequate precision) was 39.8 and 62.5 for MB and MV respectively. The final fitted equation for MB dye degradation is shown in Eq. (4) in terms of coded factors. Whereas, Eq. (5) shows the fitted equation for the degradation of MV in the binary solution in terms of coded factors.

$${\text{Log}}_{{{1}0}} \left( {{\text{R}}_{{1}} } \right)\, = \,{1}.{84}\, + \,0.{\text{2766X1}}\, + \,0.{\text{3312X2}}{-}0.{1}0{\text{48X3}}{-}0.0{\text{173X4}}\, + \,0.0{2}0{\text{1X5}}{-}0.{\text{1983X1X2}}{-}0.0{\text{937X1X5}}\, + \,0.{\text{1248X2X3}}\, + \,0.0{\text{619X2X4}}\, + \,0.{\text{2544X3X4}}\, + \,0.{\text{1744X3X5}}\, + \,0.{\text{2148X4X5}}{-}0.{\text{1341X1}}^{{2}} {-}0.{\text{1229X2}}^{{2}} \, + \,0.0{\text{277 X4}}^{{2}} \, + \,0.0{2}0{\text{6 X5}}^{{2}}$$
(4)
$${\text{Log}}_{{{10}}} \left( {{\text{R}}_{{2}} } \right)\,{ = }\,{1}{\text{.87}}\,{ + }\,{0}{\text{.1396X1}}\,{ + }\,{0}{\text{.2870X2{-}0}}{\text{.0435X3}}\,{ + }\,{0}{\text{.0143X4{-}0}}{\text{.0019X5{-}0}}{\text{.1759X1X2}}\,{ + }\,{0}{\text{.0241X1X3{-}0}}{\text{.0229X1X5}}\,{ + }\,{0}{\text{.0436X2X3{-}0}}{\text{.0222X2X4}}\,{ + }\,{0}{\text{.1925X3X4}}\,{ + }\,{0}{\text{.1502X3X5}}\,{ + }\,{0}{\text{.2032X4X5{-}0}}{\text{.0637 X1}}^{{2}} {\text{{-}0}}{\text{.1254 X2}}^{{2}} \,{ + }\,{0}{\text{.0210X4}}^{{2}} \,{ + }\,{0}{\text{.0156X5}}^{{2}}$$
(5)

where R1 and R2 are the degradation efficiency of MB and MV dyes in a binary mixture of dyes. Figure 5 illustrates the correlation between predicted and experimental MB and MV dye degradation efficiency. These plots show that all points are in a straight line and indicate a good correlation between predicted and actual values of degradation.

Table 4 Model fitting statistics.
Figure 5
figure 5

Predicted vs. actual photodegradation efficiency of (a) MB dye and (b) MV dye.

Three‐dimensional response surface plots are used to demonstrate and analyze the combined effects of independent variables. They are also used to identify the major interactions between variables on photocatalytic degradation. The three‐dimensional (3D) surface response was plotted against two factors with other factors being constant (Figs. 6, 7, and 8).

Figure 6
figure 6

3D plots showing the influence of photocatalyst dosage and period of photocatalysis reaction on (a) MB dye and (b) MV dye degradation efficiencies.

Figure 7
figure 7

3D plots showing the influence of concentrations of dyes on (a) MB dye and (b) MV dye degradation efficiencies.

Figure 8
figure 8

3D plots showing the influence of pH of solution on (a) MB dye and (b) MV dye degradation efficiencies.

Figure 6 shows the influence of irradiation time and photocatalyst dosage on photocatalytic activity in binary solution. Figure 6a specifically shows the behavior of MB dye degradation efficiency and the influence of these parameters. It is observed that irradiation time has a positive effect on degradation efficiency, which means as much as the irradiation time is high, degradation efficiency will be higher. Furthermore, photocatalyst dosage also has a similar positive effect on photocatalytic activity. Figure 6b shows the influence of photocatalyst dosage and irradiation time on the degradation efficiency of MV dye in binary solution. The influence of the discussed parameters is similar to the case of MB dye degradation efficiency. The positive influence of irrigation time is easily justified because it is similar to photocatalysis reaction time. However, the positive influence of photocatalyst dosage is due to increased surface area promoting the photocatalytic reaction by increasing radical generation51. On comparing both plots (Fig. 6 a and b) it is observed that photocatalyst dosage has a higher influence on the degradation activity of MV dye.

Figure 7 shows the influence of individual dye concentrations (MB and MV dye) in binary dye on photocatalytic activity. Figure 7a shows this influence, it can be observed that the MB dye degradation activity in binary solution is high when the individual dyes are very high or very low. Furthermore, when the concentrations of individual dyes are very low, the degradation activity is greater than the activity of a highly concentrated binary solution. Similar types of observations are also seen in the case of individual MV dye degradation efficiency in the binary solution (Fig. 7b). This is because higher concentration leads to more dye molecules. The ratio of reaction sites to dye molecule is low which lowers the degradation efficiency in the predefined time range. Degradation efficiency will be higher if reaction time is high. The ratio of reaction sites and dye molecule is low when the initial concentration is low, which leads to high degradation efficiency51 When both are compared it is found that all influences are higher in the case of individual MV dye degradation efficiency in binary solution.

Figure 8, shows the influence of the pH of the dye binary solution. Figure 8a shows that the basicity of the solution supports the degradation activity of individual MB dye in binary solution. Whereas, an acidic solution is good for MV dye degradation activity in binary solution. This is because the compound effect of surface electrical charge characteristics of the catalyst dictates the ionization state of the catalyst surface52.

The degradation of dyes was optimized for constraints shown in Table 5. As indicated in the table the degradation activity of both dyes in the binary solution is highly desirable.

Table 5 Table of constraints for optimization of photocatalytic degradation of a binary mixture of dye.

These constraints and desirable were used to optimize the photocatalytic process through discussed software. This analysis results in Fig. 9. Figure 9 shows profiles of predicated values and desirability functions for degradation of MB and MV dyes in binary solution and indicates the levels of each variable (X1, X2, X3, X4, and X5) in the model and the degradation percentage and desirability function value. The results illustrated in Fig. 8 indicate that the maximum photodegradation of MB and MV using MgO powder as a photocatalyst is 99.36 and 97.29% when 6.76 g/L of catalyst is used for photocatalysis for 152 min while individual concentrates of MB and MV dyes are 8.21 mg/L and 11.8 mg/L respectively moreover the pH of binary solution is 6.43.

Figure 9
figure 9

Profiles of desirability and photocatalysis degradation of binary dye mixture.

Optimization study suggested the value of parameters for high degradation efficiency. These values were used for the validation of the optimization study by experiments. The experiments were performed and the results are displayed in Fig. 10. Photocatalytic degradation efficiency on optimum values is 85% and 80% for MB and MV dyes respectively in binary solution. Whereas predicted photocatalytic degradation efficiency is 99.36 and 97.29%. Absorption spectra (Fig. 10a) show that dyes are degradating. Figure 10b shows how MB and MV dyes degrade over time. Maximum photocatalytic degradation efficiency predicated by CCD is marked as a line in Fig. 10b. It can be seen that values are in close agreement with the predicted values. Table 6 shows the comparative study of recently published research articles related to the photocatalysis of textile dye through MgO as a catalyst material. None of the research articles was found related to the binary dye degradation through MgO photocatalyst.

Figure 10
figure 10

Photodegradation of a mixture of dyes at optimum parameter (a) UV- spectra, (b) C/Co vs. time.

Table 6 Comparative study of recently published research articles with present work.

Conclusions

MgO showed high photodegradation efficiency with both MB and MV dyes. The photocatalysis activity of a binary mixture of MB and MV dyes was also examined. MgO shows remarkable photodegradation efficiency of 97% and 88% for MB and MV dye respectively in a binary solution of dyes. The dye mixture degradation reaction follows first-order reaction kinetics according to the L–H model. The influence of process parameters was also evaluated with the help of CCD based on response surface methodology. Five factors (photocatalyst dosage (g/L), time of exposure (min), MB dye initial concentration (mg/L), MV dye initial concentration (mg/L), and pH of the dye solution) were selected for the study. The CCD technique suggested a minimum number of experiments to study the interaction of parameters. The CCD suggested 27 experiments to observe the influence of these parameters on photodegradation. These experiments were performed and the influence was evaluated. Experimental results were fitted to log10 transformation of a polynomial to observe the influence. This study suggested that photocatalytic dosage and irradiation time have a positive influence on photocatalytic activity. Whereas the initial concentration of both dyes and pH of binary dye solution has such an influence that the photocatalytic activity is highest at the highest and lowest values. The photocatalytic process was also optimized for maximum photodegradation efficiency by CCD. The CCD suggested optimum values for parameters: photocatalyst dosage of 6.76 g/L, time of exposure of 151 min, MB dye initial concentration of 8.2 mg/L, MV dye initial concentration of 11.80 mg/L, and pH of 6.4. Furthermore, CCD suggested 99.36 and 97.29% of photodegradation efficiencies for MB and MV dyes respectively on optimum parameters. Experiments were also conducted on optimum values suggested by CCD to validate optimization. The validation experiment showed 85 and 80% photodegradation efficiencies for MB and MV dye in binary solution. It can be seen that the values are in close agreement with the predicted values.