Introduction

Dairy industries, similar to other agro-industries, generate enormous volume of wastewater up to 0.2–10 L per liter of processed milk (Vourch et al. 2008) primarily from the cleaning and washing operations in the milk-processing plants (Ramasamy et al. 2004), and the wastewater has been characterized by its non-stable pH characteristic due to the use of acid and alkaline cleaners and sanitizers in dairy industry (Baskaran et al. 2000), high COD, biochemical oxygen demand (BOD), and nutrients such as nitrogen, phosphorus, and potassium concentrations (Ayhan Şengin and Özacar 2006; Banu et al. 2008), and high levels of dissolved or suspended solids including fats, oils, and grease (Farizoglu and Uzuner 2011; Praneeth et al. 2014). Uncontrolled discharge of dairy wastewater along with high organic matter and nutrients causes serious pollution problems in water bodies and biodiversity such as algae and bacteria growth, resulting in oxygen depletion and, eventually, suffocating the rivers leading to the gradual disappearance of fish. Therefore, the need to treat highly polluted dairy effluents by various processes is indispensable (Perle et al. 1995; Banu et al. 2008; Deshpande et al. 2012).

The dairy wastewater can be treated using biological and physicochemical methods. Conventional anaerobic treatment requires high energy for aeration (Wheatley 1990), and aerobic treatment needs additional treatment to achieve discharge limits that are often used for treating such wastewater (Ayhan Şengin and Özacar 2006; Banu et al. 2008; Kushwaha et al. 2010a; Karadag et al. 2015; Dabrowski et al. 2017). On the other hand, physicochemical processes, such as coagulation–flocculation (Kushwaha et al. 2010a; Loloei et al. 2014), electrochemical treatment (Ayhan Şengin and Özacar 2006; Tchamango et al. 2010; Kushwaha et al. 2010b; Bazrafshan et al. 2013), nanofiltration (Turan 2004; Luo et al. 2012; Andrade et al. 2014; Chen et al. 2018), and reverse osmosis (Turan 2004; Balannec et al. 2005; Vourch et al. 2008), are used for removal of colloidals and SS in dairy wastewater. Fenton and EF processes are also alternative physicochemical treatment processes to treat dairy wastewater (Yavuz et al. 2011; Davarnejad and Nikseresht 2016).

In Fenton process, hydrogen peroxide is catalyzed by ferrous ions to produce hydroxyl radicals (OH·) where the OH· is involved in the breakdown of organic matters in the wastewater (Fenton 1896; Zhang et al. 2006; Bautista et al. 2008). Oxidation reactions initiated by hydroxyl radical lead to the ultimate decomposition of organic molecules into CO2 and H2O, which makes these processes “environmental-friendly” processes (Weast 1969; Ayoub et al. 2010; Cheng et al. 2016). The EF process is an indirect electrochemical oxidation that employs OH radical generated by the Fenton reaction to oxidize organic compounds. The process is based on the electrochemical in situ production of the Fenton’s reagent, either or both of H2O2 and Fe2+ (Oturan et al. 2000). The EF increases the degradation of organic matters in a highly strong wastewater (Qiang et al. 2003; Chang et al. 2004; Davarnejad and Nikseresht 2016). However, there are only a few studies which investigated the treatment of dairy wastewater using Fenton and EF processes so far. Yavuz et al. (2011) investigated treatment of dairy wastewater by electro-coagulation (EC) and EF processes and succeeded 79.2% COD removal at optimum conditions. On the other hand, Davarnejad and Nikseresht (2016) treated dairy wastewater by EF process results with 93.9% COD and 97.3% color removal efficiencies.

The present study investigates dairy wastewater treatment by Fenton and EF processes and aims: (1) to develop mathematical model and to optimize operating conditions on COD, orthophosphate, color and SS removal, (2) to evaluate the effects and interactions of process variables: H2O2/COD ratio, H2O2/Fe2+ ratio, initial pH, reaction time for Fenton process and H2O2/COD ratio, current density, initial pH, and reaction time for EF process. Optimizations of Fenton and EF processes were carried out by RSM approach using BBD to develop a mathematical model and to study the interactive effects of studied parameters.

Materials and methods

Dairy wastewater

The dairy wastewater was taken from wastewater treatment plant of a dairy factory in Istanbul where milk, yogurt, and butter are the main products. The characterization of raw dairy wastewater is given in Table 1.

Table 1 Characteristics of raw dairy wastewater

Samples were stored in containers and kept at 4 °C until Fenton and EF applications. All dairy wastewater samples were preserved and analyzed according to the standard methods (APHA 2005).

Experimental setup and procedure

The schematic view of Fenton and EF systems are presented in Fig. 1. In Fenton oxidation process, 35% H2O2 solution with a density of 1.13 kg/L and 10 g/L stock solution of Fe2+ by dissolving FeSO4∙7H2O in pure water were prepared, and 500 mL of wastewater was used for each experimental test. In the first step of Fenton oxidation process, pH of dairy wastewater was adjusted to the desired value by addition of 6 N H2SO4 or 6 N NaOH. The necessary amount of the FeSO4∙7H2O was supplemented from the stock solution, and then desired volume of H2O2 solutions was added to initiate Fenton reaction. After this step, jar test apparatus was used for a rapid mix at 200 rpm for 5 min, and then samples were gently stirred at 20 rpm for a desired amount of reaction time. To improve sludge settling rates, pH was adjusted to 7.0 and around by adding 6 N NaOH solution, leading to the precipitation of residual Fe2+ ions. Then, samples were settled for 60 min in a graduated settling column, about 200 mL of supernatant was collected, and pH of supernatant samples was adjusted to 10 and mixed at 70 °C for 10 min to eliminate residual H2O2 to prevent any interference during COD measurements (Erkan and Apaydin 2015; Gotvajn et al. 2011). COD, orthophosphate, SS, and color were analyzed in final supernatant samples by only using analytical grade chemicals.

Fig. 1
figure 1

Shematic diagrams of experimental systems for Fenton (a) and electro-Fenton (b) processes

For EF process, a laboratory-scale plexiglass reactor with 9 cm diameter and 13 cm height was manufactured. One anode and one cathode iron electrodes (comprised of two monopolar (MP) plates) with 6 cm width × 11.5 cm height, 0.1 cm thickness, and 46.2 cm2 effective area were placed 2 cm apart from each other. A valve was installed at the bottom of the reactor to discharge the precipitated material through a sludge chamber. For each test, 500-mL wastewater sample was used. Before each run, electrodes were washed with acetone and the impurities on the aluminum electrode surfaces were removed by dipping in a solution freshly prepared by mixing 100 cm3 35% HCl solution and 200 cm3 2.8% hexamethylenetetramine aqueous solution for 5 min (Gengec et al. 2012). The EF experiments were initiated by supplying a current density between 4 and 32 mA/cm2 by a DC power supply. At the end of each run, the floated and precipitated materials were collected, and the clarified effluent sample was pipetted out from the reactor and then allowed to settle for a few hours in a polyethylene flask. Finally, the clarified supernatant liquid was collected and preserved according to the Standard Methods (APHA 2005) and stored for characterization. All analyses were performed in accordance to the Standard Methods (APHA 2005). All chemicals used were analytical reagent grade.

Design of experiments and data analysis

In this study, the BBD based on RSM was used to design the set of experiments for Fenton and EF processes. RSM is fundamentally a particular set of mathematical and statistical methods for designing experiments, buildings models, determining the effect of variables, and investigating optimum operating conditions (Körbahti 2007). Statgraphics Centurion XVI.I software program was used for the statistical design of experiments and data analysis. The four operational parameters: H2O2/COD ratio (X1), H2O2/Fe2+ ratio (X2), initial wastewater pH (X3), and reaction time (X4) were optimized for Fenton process, whereas H2O2/COD ratio (X1), current density (X2), initial wastewater pH (X3), and reaction time (X4) were optimized for EF process in dairy wastewater treatment. Each independent factor was coded at three levels in the range of − 1 and + 1 determined by preliminary experiments (Table 2).

Table 2 Experimental range and levels of the independent variables in Fenton and electro-Fenton processes

RSM makes possible to represent independent process parameters in quantitative form as:

$$Y = f\left( {X_{1} , X_{2} , X_{3} , \ldots , X_{n} } \right) \pm \varepsilon$$
(1)

where Y is the response (dependent parameter), f is the response function, ε is the experimental error, and X1, X2, X3,…, Xn are independent variables. In the optimization process, the responses can be related to independent factors by linear or quadratic models. A quadratic model which includes the linear model is given in Eq. (2).

$$Y = \beta_{0} + \beta_{1} X_{1} + \beta_{2} X_{2} + \beta_{3} X_{3} + \beta_{11} X_{1}^{2} + \beta_{22} X_{2}^{2} + \beta_{33} X_{3}^{2} + \beta_{12} X_{1} X_{2} + \beta_{13} X_{1} X_{3} + \beta_{23} X_{2} X_{3}$$
(2)

where β is set of regression coefficients: the intercept (β0), linear (β1, β2, β3), interaction (β12, β13, β23), and quadratic coefficients (β11, β22, β33). The experiment sets are presented in Table 3 for Fenton and EF processes.

Table 3 Removal efficiencies of the responses for Fenton and electro-Fenton processes

Analysis of variance (ANOVA) was used to obtain the interaction between the independent variables and the responses. The quality of the fit polynomial model was evaluated by R2, and its statistical significance was checked by the Fisher F test in the same program. Model terms were utilized by the P value (probability) with 95% confidence level.

Results and discussion

Statistical analysis of Fenton and EF processes

The Fenton and EF batch experiments were designed using RSM in order to understand the effect of the variables (H2O2/COD ratio, H2O2/Fe2+ ratio or current density, pH and reaction time) on four important process responses (COD, orthophosphate, color, and SS). All the factors and responses are shown in Tables 2 and 3. The experimental results for all responses analyzed by ANOVA are summarized in Table 4. As can be seen in Table 4, R2 values were over 91% indicating high coefficient of determination for actual and predicted values for COD, orthophosphate, SS, and color removal. For the Fenton process, F values of 10.91, 10.91, 12.06, and 20.52 implied significant models for COD, orthophosphate, SS, and color removal efficiencies, respectively. On the other hand, F values of COD, orthophosphate, SS, and color removal efficiencies were found 24.98, 9.31, 9.76, and 11.17 for EF process, respectively. The large F value represents a high significance of the corresponding term. The values of Prob. > F less than 0.05 imply that the model terms are significant, whereas the values greater than 0.1 indicate that the model terms are insignificant (Körbahti and Rauf 2008; Arslan-Alaton et al. 2009). Prob. > F values less than 0.0001 indicates that the terms are highly significant in all the models except orthophosphate removal for EF process.

Table 4 ANOVA results of the predicted response surface quadratic model

The approximating functions for Fenton and EF processes are presented in Eqs. 310. The first-order terms (X1, X2, X3 or X4) represent the effects of the linear main factor; the interaction effects terms (X1X2, X1X3, X1X4, X2X3, X2X4 or X3X4) and the second-order terms (X 21 , X 22 , X 23 or X 24 ) represent the interaction between the two factors and the quadratic effects in these equations, respectively. The positive sign in front of the coefficients indicates a synergistic effect, whereas the negative sign indicates an antagonistic effect (Kim 2016).

$$\begin{aligned} Y_{1} & = 74.7463 + 3.6683 \, X_{1} {-}2.99835 \, X_{2} {-}16.4535 \, X_{3} + 0.376445 \, X_{4} \\ & \quad + \,0.458016 \, X_{1}^{2} {-}\,0.593164 \, X_{1} X_{2} + 4.55022 \, X_{1} X_{3} + 0.0147089 \, X_{1} X_{4} \\ & \quad + \,0.060255X_{2}^{2} + 0.282597 \, X_{2} X_{3} + 0.00334847 \, X_{2} X_{4} + 2.19349X_{3}^{2} \\ & \quad - \,0.206111 \, X_{3} X_{4} + 0.00155671 \, X_{4}^{2} \\ \end{aligned}$$
(3)
$$\begin{aligned} Y_{2} & = 34.1395 + 6.18014 \, X_{1} + 2.69831 \, X_{2} + 28.3589X_{3} {-}0.4688X_{4} \\ & \quad + \,2.5321 \, X_{1}^{2} {-}0.211929X_{1} X_{2} {-}1.38916X_{1} X_{3} {-}0.115534X_{1} X_{4} \\ & \quad {-}\,0.00752745X_{2}^{2} {-}0.639663X_{2} X_{3} {-}0.00494125X_{2} X_{4} {-}4.52198X_{3}^{2} \\ & \quad + \,0.383045X_{3} X_{4} {-}0.00622484X_{4}^{2} \\ \end{aligned}$$
(4)
$$\begin{aligned} Y_{3} & = 77.1511 + 10.7206X_{1} {-}0.522648X_{2} + 1.02041X_{3} + 0.473837X_{4} \\ & \quad {-}\,0.574871X_{1}^{2} + 0.0842057X_{1} X_{2} {-}2.27272 \, X_{1} X_{3} {-}0.171877X_{1} X_{4} \\ & \quad + \,0.000769978X_{2}^{2} + 0.15409X_{2} X_{3} + 0.000189375X_{2} X_{4} + 0.72423X_{3}^{2} \\ & \quad {-}\,0.148864X_{3} X_{4} + 0.00359654 \, X_{4}^{2} \\ \end{aligned}$$
(5)
$$\begin{aligned} Y_{4} & = 98.6258{-}0.224435X_{1} + 0.07259X_{2} {-}0.0760153X_{3} + 0.0260836X_{4} \\ & \quad {-}\,2.753X_{1}^{2} {-}0.00258057X_{1} X_{2} + 1.36537X_{1} X_{3} + 0.0911422X_{1} X_{4} \\ & \quad + \,0.00122684X_{2}^{2} {-}0.0299075X_{2} X_{3} + 0.000480125X_{2} X_{4} {-}0.117053X_{3}^{2} \\ & \quad {-}\,0.00579875X_{3} X_{4} {-}0.00200579X_{4}^{2} \\ \end{aligned}$$
(6)
$$\begin{aligned} Y_{5} & = 43.6957{-}28.8275X_{1} + 0.753469X_{2} {-}0.945905X_{3} + 0.707873X_{4} \\ & \quad - \,0.151094X_{1}^{2} + 0.553335X_{1} X_{2} + 4.01119X_{1} X_{3} + 0.321014X_{1} X_{4} \\ & \quad - \,0.0289842X_{2}^{2} + 0.108486X_{2} X_{3} + 0.000266071X_{2} X_{4} + 0.109438X_{3}^{2} \\ & \quad - \,0.193458X_{3} X_{4} {-}0.0042335X_{4}^{2} \\ \end{aligned}$$
(7)
$$\begin{aligned} Y_{6} & = 85.8009 + 10,941X_{1} {-}0.0901018X_{2} + 3.00026X_{3} + 0.187605X_{4} \\ & \quad {-}\,3.06372X_{1}^{2} + 0.133929X_{1} X_{2} {-}1.10294X_{1} X_{3} {-}0.0404406X_{1} X_{4} \\ & \quad {-}\,0.0011129X_{2}^{2} {-}0.0126036X_{2} X_{3} {-}0.00204839X_{2} X_{4} {-}0.115217X_{3}^{2} \\ & \quad {-}\,0.0419113X_{3} X_{4} + 0.000539208X_{4}^{2} \\ \end{aligned}$$
(8)
$$\begin{aligned} Y_{7} & = 129.266{-}14.8922X_{1} {-}0.459656X_{2} {-}16.4831X_{3} {-}0.291844X_{4} \\ & \quad + \,2.86025X_{1}^{2} + 0.0419375X_{1} X_{2} + 1.94128X_{1} X_{3} + 0.0340922X_{1} X_{4} \\ & \quad + \,0.0150446X_{2}^{2} {-}0.0893929X_{2} X_{3} + 0.00224562X_{2} X_{4} + 2.91843X_{3}^{2} \\ & \quad {-}\,0.0181812X_{3} X_{4} + 0.00578849X_{4}^{2} \\ \end{aligned}$$
(9)
$$\begin{aligned} Y_{8} & = 98.4464{-}0.145102X_{1} + 0.0325376X_{2} + 0.0479981X_{3} + 0.072289X_{4} \\ & \quad {-}\,0.214471X_{1}^{2} + 0.016596X_{1} X_{2} + 0.14792X_{1} X_{3} + 0.00113864X_{1} X_{4} \\ & \quad + \,0.001052X_{2}^{2} + 0.00217679X_{2} X_{3} {-}0.000603188X_{2} X_{4} + 0.00618162X_{3}^{2} \\ & \quad {-}\,0.0110127X_{3} X_{4} {-}0.00040504X_{4}^{2} \\ \end{aligned}$$
(10)

On the basis of the coefficients in Eq. (3), it can be said that COD removal efficiencies increase with an increase in H2O2/COD ratio and reaction time, but the COD removals decrease with increased H2O2/Fe2+ ratio and initial pH values in Fenton process. In the EF process (Eq. 7), the COD removal efficiencies increase with an increase in H2O2/Fe2+ ratio and reaction time but decrease with an increase in current density and initial pH. On the other hand, orthophosphate removal efficiencies in Fenton process increase with an increase in H2O2/COD ratio, H2O2/Fe2+ ratio, and initial pH, whereas the removals decrease with an increase in reaction time (Eq. 4). In the EF process, the orthophosphate removals increase with current density, initial pH, and the reaction time (Eq. 8). Color removal efficiencies increase with increase in H2O2/COD ratio, initial pH, and the reaction time in the Fenton process (Eq. 5). H2O2/Fe2+ ratio has a negative effect on color removal efficiencies in both processes.

ANOVA results and response surface plots for responses

The ANOVA tables obtained from the response surface quadratic models for COD removal with both process are shown in Table 5. As can be seen from Table 5, the comparison of the ANOVA results showed that there are highly significant interaction (P < 0.0001) between X1 (H2O2/COD ratio) and X2 (H2O2/Fe2+ ratio) within the experimental range for COD removal in Fenton process. On the other hand, X2 (current density) and X4 (time) have highly significant effect for COD removal in EF process.

Table 5 ANOVA results for the response surface quadratic model for COD removal by Fenton and electro-Fenton processes

Response surface graphs were produced by varying two of the process variables within the experimental range while holding the other factors at their central values to visualize the effect of the response variables on the dependent ones. The response surface graphs for COD removal efficiencies are presented in Figs. 2 and 3. As can be seen from Fig. 2a, a slight increase in COD removal was observed with an increase in the H2O2/COD ratio at low H2O2/Fe2+ ratio in Fenton process. As an operational approach, low H2O2/Fe2+ ratio is suggested. It is remarkable that the influence of X1 and X2 were very significant. Figure 2b shows that the influence of H2O2/COD ratio and pH on COD removal efficiency was significant, and it was observed that high COD removal efficiencies were obtained at the low H2O2/Fe2+ ratio with an increase in pH. As higher pH values results with lower chemical consumption for pH adjustment, it can be said that pH about 4 could act more acceptable and much suitable. The main effective parameters were H2O2/COD ratio, H2O2/Fe2+ ratio, and pH. As it could be observed, time was not significant on any experimental set of Fenton process. In EF process, maximum COD removal efficiency was obtained high current density and long reaction time at low H2O2/COD ratio (Fig. 3a). The effect of pH was found similar to Fenton process. H2O2/COD ratio, current density, and time were found the main operating parameter in EF process. COD removal efficiencies varied between 23.9–56.6 and 32.6–67.0% for Fenton and EF processes, respectively.

Fig. 2
figure 2

Response surface graphs for the Fenton process for COD removal efficiency a H2O2/COD ratio vs. H2O2/Fe2+ ratio, b H2O2/COD ratio vs. pH, c H2O2/COD ratio vs. time, d H2O2/Fe2+ ratio vs. pH, e H2O2/Fe2+ ratio vs. time, f pH vs. time

Fig. 3
figure 3

Response surface graphs for the electro-Fenton process for COD removal efficiency a H2O2/COD ratio vs. current density, b H2O2/COD ratio vs. pH, c H2O2/COD ratio vs. time, d current density vs. pH, e current density vs. time, f pH vs. time

The ANOVA results for orthophosphate removal are given in Table 6 for Fenton and EF processes. In terms of orthophosphate removal, the X2X3, X3X4 have highly significant effects on Fenton process (P < 0.0001), whereas the only X4 has highly significant effect on orthophosphate removal in EF process (P < 0.0001).

Table 6 ANOVA results for the response surface quadratic model for orthophosphate removal by Fenton and electro-Fenton processes

Figures 4 and 5 show the effects of dependent variables on orthophosphate removal efficiencies. As seen from Fig. 4, H2O2/COD ratio was kept on a central value at high initial pH. On the other hand, orthophosphate removal efficiencies increased with an increase in reaction time, and H2O2/Fe2+ ratio did not have a remarkable influence on orthophosphate removal. In EF process, orthophosphate removal efficiencies increased with an increase of current density, pH and time, whereas the influence of H2O2/COD ratio was not significant, and it should be kept central point. Orthophosphate removal efficiencies were found higher than 94% for both processes.

Fig. 4
figure 4

Response surface graphs for the Fenton process for orthophosphate removal efficiency a H2O2/COD ratio vs. H2O2/Fe2+ ratio, b H2O2/COD ratio vs. pH, c H2O2/COD ratio vs. time, d H2O2/Fe2+ ratio vs. pH, e H2O2/Fe2+ ratio vs. time, f pH vs. time

Fig. 5
figure 5

Response surface graphs for the electro-Fenton process for orthophosphate removal efficiency a H2O2/COD ratio vs. current density, b H2O2/COD ratio vs. pH, c H2O2/COD ratio vs. time, d current density vs. pH, e current density vs. time, f pH vs. time

For color removals, the ANOVA results showed that the X1X3, X1X4, and X3X4 have highly significant effects on color removal in Fenton process (Table 7), whereas X1 and X 21 have highly significant effects on color removal in EF process.

Table 7 ANOVA results for the response surface quadratic model for color removal by Fenton and electro-Fenton processes

The effect of operational parameters on color removal is shown in Figs. 6 and 7 for Fenton and EF processes, respectively. From Fig. 6, maximum color removal efficiency could be obtained at high H2O2/COD ratio and H2O2/Fe2+ ratio for Fenton process. The pH value could hold central value. The effect of time was not considerable after a specific time, and there was no need for longer experimental time. In EF process, best color removal efficiency could be seen for central point of H2O2/COD ratio and low pH value. Current density and reaction time were not remarkably effective on color removal.

Fig. 6
figure 6

Response surface graphs for the Fenton process for color removal efficiency a H2O2/COD ratio vs. H2O2/Fe2+ ratio, b H2O2/COD ratio vs. pH, c H2O2/COD ratio vs. time, d H2O2/Fe2+ ratio vs. pH, e H2O2/Fe2+ ratio vs. time, f pH vs. time

Fig. 7
figure 7

Response surface graphs for the electro-Fenton process for color removal efficiency a H2O2/COD ratio vs. current density, b H2O2/COD ratio vs. pH, c H2O2/COD ratio vs. time, d current density vs. pH, e current density vs. time, f pH vs. time

SS removal is one of the most important parameters for chemical and electrochemical treatment. For this reason, SS removal efficiencies were modeled for each experimental run. As seen from the ANOVA result in Table 8, X 21 and X1X4 have high significant effect on SS removal efficiencies for the Fenton process (P < 0.0001), whereas X 22 , X 23 , and X 24 have high significant effect on the SS for EF process.

Table 8 ANOVA results for the response surface quadratic model for SS removal by Fenton and electro-Fenton processes

The effects of variables on SS removal efficiencies are given in Figs. 8 and 9.

Fig. 8
figure 8

Response surface graphs for the Fenton process for SS removal efficiency a H2O2/COD ratio vs. H2O2/Fe2+ ratio, b H2O2/COD ratio vs. pH, c H2O2/COD ratio vs. time, d H2O2/Fe2+ ratio vs. pH, e H2O2/Fe2+ ratio vs. time, f pH vs. time

Fig. 9
figure 9

Response surface graphs for the electro-Fenton process for SS removal efficiency a H2O2/COD ratio vs. current density, b H2O2/COD ratio vs. pH, c H2O2/COD ratio vs. time, d current density vs. pH, e current density vs. time, f pH vs. time

Process optimization

The optimum operating conditions obtained from ANOVA tests are presented in Table 9. Under the optimum conditions, the optimum COD removal efficiencies of model prediction were 70 and 75% for Fenton and EF, respectively. In order to control the optimization, the actual experimental processes were conducted at these optimum operating conditions, and COD removal efficiencies were obtained as 65.5 and 72% for Fenton and EF, respectively. The prediction of model for COD removal was in the confidence interval. The optimum orthophosphate, color, and SS removal efficiencies of model prediction were 100% for both Fenton and EF processes. At the end of the laboratory experiments, orthophosphate removal efficiencies were 90 and 88%, color removal efficiencies were 92.5 and 93%, and SS removal efficiencies were 95 and 92% for Fenton and EF process, respectively. The experimental results for orthophosphate, color, and SS removals were consistent with the predicted values.

Table 9 Optimum operating conditions and model prediction and experimental results at optimum conditions

Since pH leads to the production of hydroxyl radicals (∙OH) and the concentration of ferrous ions in the solution, it plays a vital role in both processes (Mohajeri et al. 2010). During the processes, H2O2 is catalyzed by ferrous ions to produce ∙OH for degradation of organic matters in the wastewater (Zhang et al. 2007; Mohajeri et al. 2010). On the other hand, the electrical current causes the dissolution of metal electrodes into wastewater in EF process. The dissolved metal ions, at an appropriate pH, can form wide ranges of coagulated species and metal hydroxides that destabilize and aggregate the suspended particles or precipitate and adsorb dissolved contaminants (Bazrafshan et al. 2013). In the literature, there are several studies related to dairy wastewater treatment by EC process using aluminum and iron electrode (Sengil and Ozacar 2006; Tchamango et al. 2010; Kushwaha et al. 2010b; Bazrafshan et al. 2013). As aforementioned, however, there are only a few studies for the treatment of dairy wastewater using Fenton and EF processes. Yavuz et al. (2011) investigated treatment of dairy wastewater by EC and EF processes and found 79.2% COD removal efficiency at current density of 15 mA/cm2, natural pH (6–7) and 3000 mg/L H2O2 concentration. On the other hand, Davarnejad and Nikseresht (2016) studied dairy wastewater treatment using EF process and 93.9% COD removal efficiency and 97.3% color removal efficiency were achieved at 55.1 mA/cm2 current density, 7.48 pH, 0.907 mL/L H2O2/Fe2+ molar ratio, and 86 min reaction time.

Conclusion

In this study, BBD and RSM were adopted to model and to optimize the performance of Fenton and EF processes, and COD, orthophosphate, SS, and color removal efficiencies by Fenton and EF process were determined. The RSM approach was also applied to find the optimum operating parameters for these responses. According to the ANOVA results, the RSM could be used to navigate the design space with high regression coefficient value above 91% for all the responses. COD removal efficiencies were 65.5 and 72% at the optimum operating conditions for Fenton and EF processes. The orthophosphate, SS, and color removal efficiencies were over 88, 92, and 92.5% for both processes, respectively. According to the overall results, it can be concluded that the EF process was found as a much suitable treatment method for dairy wastewater. Contrary to Fenton process, extra consumption of chemicals can be avoided by EF process. The results also indicated that the RSM was a powerful technique for optimizing the operational conditions of Fenton and EF processes for the removal of COD, orthophosphate, SS, and color from dairy industry wastewater.