Introduction

Increases in world population and new patterns of consumption have resulted in huge production of wastes that are usually discarded in sanitary landfills, since this is relatively simple and inexpensive (Azni 2009). Landfill leachate wastewater can be generated from precipitation, surface run-off, infiltration or intrusion of groundwater percolating though the landfill (Li et al. 2011). Various types of pollutants can be found in sanitary landfill leachate such as organic and inorganic compounds, toxic and heavy metals (Fernandes et al. 2015). Due to its complex and recalcitrant composition, the sanitary landfill leachate represents a significant source of pollutants. Discharge of the landfill leachate into the environment can have a detrimental effect on aquatic life, cause infertility of soil and mutagenic effect on humans as well as affecting the ecological balance. The treatment of landfill leachate wastewater is difficult due to the discharge standards, variable composition and its high pollutant load. Several treatment methods have been used to treat the landfill leachate, such as biological processes (Li et al. 2017; Zhang et al. 2016; Robinson. 2017), membrane processes (Ahn et al. 2002), coagulation and flocculation methods (Wang et al. 2015; Liu et al. 2012), flotation methods (Adlan et al. 2011), adsorption and chemical precipitation (Hur and Kim 2000; Erabee et al. 2017), osmosis (Iskander et al. 2017), chemical oxidation (Derco et al. 2010), Fenton and electrochemical (Vallejo et al. 2012), advanced oxidation techniques Hu et al. 2011; Zhang et al. 2012; Chys et al. 2015) and electro-Fenton (Zhang et al. 2014). However, these methods are found to have certain shortages such as operating cost, transfer of one phase to another, lower pollutant removal efficiency and decreasing the process performance. Thus, it is essential to design and develop an economic and effective treatment method for removing pollutants from landfill leachate wastewater.

Electrochemical processes have shown high effectiveness in eliminating persistent pollutants from landfill leachate wastewater (Ricordel and Djelal 2014; Panizza et al. 2010) and have some advantages such as energy efficiency, versatility and cost-effectiveness (Juttner et al. 2000). Among the electrochemical methods, electrocoagulation process appears to be the most effective substitution for the conventional coagulation and flotation process as it can deal with pollutants with a variety of compositions (Wang et al. 2009; Butler et al. 2017).

Electrocoagulation is a simple process in terms of its equipment setup and easy-to-handle methodology, high efficiency with production of less sludge (Kalyani et al. 2009; Sharma and Chopra 2017). It can be operated at ambient temperature and pressure. Electrocoagulation is an electrolytic process involving the dissolution of the sacrificial anodes, made of aluminium (Al), upon application to a current between the two electrodes to supply ions to the wastewater, allowing suspended, emulsified or dissolved contaminants to form agglomerates (Fernandes et al. 2015). The coagulating ions are produced in situ and the successive stages for current theory of electrocoagulation are described as follows: firstly, the formation of coagulants induced by the electrolytic oxidation of the sacrificial anode followed by generation of metal hydroxides; secondly, destabilization of the contaminants and particulate suspension and breaking of emulsions; and lastly, the aggregation or coalescence of the destabilized phases to form larger and separable agglomerates (Moreno-Casillas et al. 2007). Hydrogen (H2) bubbles that evolve from the cathode surface are adsorbed onto the suspended particles. The separation of the solid matter is achieved either by flotation upon the adsorption of H2 bubbles, or allowing the solid to settle down due to its higher density which the buoyant force produced by the H2 bubbles is insufficient to lift the suspended solid (Zodi et al. 2009). The mechanism of electrocoagulation process depends on the chemistry of the aqueous medium, especially the conductivity. The mechanism of ion formation is proposed as in Eqs. (1)–(4) below using aluminium electrode (Fernandes et al. 2015).

Anodic reaction:

$${\text{Al}}_{{\left( {\text{s}} \right)}} \to {\text{Al}}_{{\left( {\text{aq}} \right)}}^{3 + } + 3{\text{e}}^{ - }$$
(1)

Cathodic reaction:

$$2 {\text{H}}_{ 2} {\text{O}}_{{\left( {\text{l}} \right)}} + 2{\text{e}}^{ - } \to {\text{H}}_{{2\left( {\text{g}} \right)}} + 2 {\text{OH}}_{{\left( {\text{aq}} \right)}}^{ - }$$
(2)

Chemical reaction that takes place in the aqueous medium:

$${\text{Al}}_{{\left( {\text{aq}} \right)}}^{3 + } + {\text{OH}}_{{\left( {\text{aq}} \right)}}^{ - } \to {\text{Al}}\left( {\text{OH}} \right)_{{3\left( {\text{s}} \right)}}$$
(3)

Overall reaction is given by:

$${\text{Al}}_{{\left( {\text{aq}} \right)}}^{3 + } + 3{\text{H}}_{2} {\text{O}}_{{\left( {\text{l}} \right)}} \to {\text{Al}}\left( {\text{OH}} \right)_{{3\left( {\text{s}} \right)}} + 3{\text{H}}_{{\left( {\text{aq}} \right)}}^{ + }$$
(4)

Based on the literature review, many studies on the electrocoagulation process were carried out by varying one factor while the other factors are kept constant (Chopra and Sharma 2013; Sharma and Chopra 2017). However, this approach consumes more time and response surface methodology (RSM) can be an alternative to overcome this problem. Most of the previous studies only focused on the performance of electrocoagulation process such as % COD and % color removal (Saravanan et al. 2010; Janpoor et al. 2011), but did not emphasize on the % TOC removal with power consumption. It was important to determine the power consumption of electrocoagulation process in order to determine its operating cost and feasibility. The objective of this research work is to identify the optimum operating parameters for the removal of pollutants from landfill leachate using central composite design (CCD).

RSM is used to optimize the parameters chosen for the electrocoagulation process. It is a regression analysis used to predict the value of dependent variable based on the controlled values of independent variables. Numerous experiment combinations can be generated within a short period of time, thus allowing researchers to know whether the tested parameter has a significant impact on the research work (Liu et al. 2012; Butler et al. 2017). In many technical fields, it is common that the output variable (Y) exists with a set of predicted variables or the input variables (\(X_{1} ,X_{2} , X_{3} , \ldots X_{k} )\). The output variable is a function of input variable together with the error presence in the model, usually written as \(Y = f\left( {X_{1} ,X_{2} , X_{3} , \ldots X_{k} } \right) + \in\), where \(f\) is the unknown surface response which is normally described by a first-order or second-order polynomial, while \(\in\) is the error in the model. Generally, the first- and second-order models are given as in Eqs. (5) and (6):

$$Y = \beta_{o} + \mathop \sum \limits_{j = 1}^{k} \beta_{j} X_{j} + \in$$
(5)
$$Y = \beta_{o} + \mathop \sum \limits_{j = 1}^{k} \beta_{j} X_{j} + \mathop \sum \limits_{j = 1}^{k} \beta_{jj} X_{j}^{2} + \mathop \sum \limits_{j = 1}^{k - 1} \mathop \sum \limits_{i = 2}^{k} \beta_{ji} X_{j} X_{i} + \in_{i}$$
(6)

where \(X_{i}\) and \(X_{j}\) are coded independence variables and \(\beta_{j}\), \(\beta_{jj}\), and \(\beta_{ji}\) (\(i = 1, 2, \ldots ,k;\quad j = 1,2, \ldots , k)\) are the regression coefficients. A first-order model is used to describe the flat surface, while the curve surface is described by a second-order model, or also known as a quadratic model. A quadratic model is often adequate for RSM in most cases. Besides, the knowledge of statistical fundamentals, regression modeling techniques and optimization methods is required in fitting the response surface model.

The main objective of optimization was to maximize the % color and % TOC removal while minimizing the power consumption by varying operating parameters such as current density (X1), inter-electrode distance (X2) and initial pH (X3). Design of Expert (DoE) Software (11) was used to optimize and study the combined effect of three selected parameters. Each independent variable was coded at three levels between − 1 and + 1, where the variables current density (X1), inter˗electrode distance (X2) and initial effluent pH (X3) were set in the range of 1.05–6.25A/dm2, 1.0–4.0 cm, and pH 5–11, respectively, as indicated in Table 1.

Table 1 Coded and actual values of the variables of the design of experiments for the electrocoagulation process

Materials and methods

Materials

Landfill leachate wastewater was collected from Jeram sanitary landfill, Selangor, Malaysia. Various parameters such as pH, chemical oxygen demand (COD), total organic carbon (TOC), color and odor were analyzed and tabulated in Table 2. COD was measured by closed reflux method using potassium dichromate (Spectroquant® TR320); TOC was measured using the TOC analyzer (TOC-LCSH/CPH) and color was determined using UV/Vis spectrophotometer (Spectroquant Pharo®300). Chemicals such as K2Cr2O7, NaCl, H2SO4, NaOH, etc., were used and supplied from YEW SII SIE lab analytics supplies, Malaysia.

Table 2 Characterization of landfill leachate wastewater

Methods

Experimental setup for the electrocoagulation process is shown in Fig. 1. Experiment was carried out in a batch reactor with a capacity of 500 mL (YEW SII SIE lab analytics supplies, Malaysia). Initial COD concentration of the landfill leachate wastewater was diluted into 1500 ppm. Aluminium (Al) electrodes with dimension of 16 cm × 6 cm were used for both anode and cathode. The effective electrode surface area was 48 cm2 and the inter-electrode distance between an anode and cathode was varied from 1 to 4 cm. The pH of the landfill leachate was measured by pH meter (Elico; Model LI120) and varied from pH 5 to 11 using H2SO4 and NaOH solutions. The electrodes were connected to a direct current (DC) power supply (APLAB Ltd; Model L1606) with aid of crocodile clips for supplying constant current density, varying from 1.05 to 6.25 A/dm2. 3 g/L NaCl was added in the solution to improve the electrical conductivity of the solution and a magnetic stirrer was used at 500 rpm to increase the probability of particle collision to improve the efficiency of the electrocoagulation process. After the required experimental condition, sample was taken after 1 h of electrolysis time and the filtered using filter paper. Then, the sample was immediately analyzed for color and TOC removal. The removal of the color was determined using the UV/Vis spectrophotometer (Spectroquant® TR320) and TOC was determined using the TOC analyzer (TOC-LCSH/CPH).

Fig. 1
figure 1

Experimental setup for the electrochemical process

Analysis

Color and TOC removal (%)

The % color and % TOC removal were calculated using Eqs. (7) and (8):

$${\text{Color removal efficiency }}\left( \% \right) \, = \frac{{\left( {[{\text{Abs}}_{i} ]} \right) - \left( {[{\text{Abs}}_{t} ]} \right)}}{{{\text{Abs}}_{i} }} \times 100$$
(7)

where Abs i and Abs t are absorbance of samples at initial and reaction time t for a corresponding wavelength λmax.

$${\text{TOC removal efficiency }}\left( \% \right) \, = \frac{{\left( {[{\text{TOC}}_{i} ]} \right) - \left( {[{\text{TOC}}_{t} ]} \right)}}{{{\text{TOC}}_{i} }} \times 100$$
(8)

where TOC i is the initial of TOC and TOC t is the TOC at any reaction time, t (mg/L).

Power consumption

The power consumption for the removal of % color and % TOC from landfill leachate using the electrocoagulation process was calculated using Eq. (9):

$$P = \frac{\text{VIt}}{{V_{\text{R}} }}, \left( {\frac{\text{kWhr}}{{{\text{m}}^{3} }}} \right)$$
(9)

where \(V\) is the cell voltage (V), \(I\) is the applied current (A), \(t\) is the electrolysis time (h) and \(V_{\text{R}}\) is the volume of wastewater used (m3).

Results and discussion

Central composite design

A 3-factor and 3-level CCD was used to optimize the operating parameters of an electrocoagulation process on the responses such as the % color and % TOC removal efficiency as well as the power consumption. The total number of experiment combinations was 20, with 6 replications at the design central to determine the pure error. The total number of runs, experimental conditions, response of % color removal, % TOC removal and power consumption together with the predicted values are shown in Table 3.

Table 3 Experimental design matrix and response based on the experimental runs and predicted values on the color removal (%), TOC removal (%) and power consumption proposed by the CCD

Evaluation of experimental results with design of experiments

The % color removal (Y1), % TOC removal (Y2) and power consumption (Y3) are the function of operating parameters such as current density (X1), inter-electrode distance (X2) and initial pH (X3) at constant electrolysis time of 1 h. The quadratic model regression equations were obtained from Design Expert Software as shown in Eqs. (10), (11) and (12):

$$\begin{aligned} Y_{1} = \, & 64.59 \, + \, 9.68X_{1} {-} \, 4.95X_{2} \, {-} \, 3.55X_{3} \, {-} \, 1.45X_{1} X_{2} \, {-} \, 0.85X_{1} X_{3} \, \\ & \quad {-} \, 0.15X_{2} X_{3} {-} \, 5.23X_{1}^{2} {-} \, 1.08X_{2}^{2} {-} \, 7.98X_{3}^{2} \\ \end{aligned}$$
(10)
$$\begin{aligned} Y_{2} = \, & 46.87 \, + \, 6.36X_{1} {-}5.42X_{2} \, {-} \, 3.36X_{3} \, {-} \, 0.2X_{1} X_{2} \, {-} \, 0.93X_{1} X_{3} \, \\ & \quad + \, 0.74X_{2} X_{3} {-} \, 1.30X_{1}^{2} {-} \, 6.05X_{2}^{2} {-} \, 8.18X_{3}^{2} \\ \end{aligned}$$
(11)
$$\begin{aligned} Y_{3} = \, & 28.66 \, + \, 8.64X_{1} + \, 8.27X_{2} \, {-}2.17X_{3} \, + \, 3.57X_{1} X_{2} \, + \, 0.21X_{1} X_{3} \, \\ & \quad + \, 0.02X_{2} X_{3} {-} \, 10.39X_{1}^{2} {-}0.37X_{2}^{2} {-}2.14X_{3}^{2} \\ \end{aligned}$$
(12)

Experimental data were analyzed by sequential model sum of squares and model summary statistics to obtain the most suitable models among various models such as linear, interactive, quadratic and cubic. The results are tabulated in Tables 4, 5 and 6 for the % color removal, % TOC removal and power consumption, respectively. From Tables 4, 5 and 6, it can be seen that quadratic model gives the highest R2, adjusted R2 and predicted R2 values when compared to the other models after excluding the cubic model. The cubic model cannot be used for further modeling of experimental data because it was found to be aliased. An aliased model was a result of insufficient experiments run to independently estimate all the terms of the model. Thus, not all parameters can be estimated and it is unwise for further studying an aliased model. The highest order polynomial from the sequential model sum of squares, quadratic model, was selected for modeling the treatment of landfill leachate using electrocoagulation process where the additional terms are significant and the model is not aliased.

Table 4 Sequential model sum of squares and model summary statistics for percentage color removal (%)
Table 5 Sequential model sum of squares and model summary statistics for percentage TOC removal (%)
Table 6 Sequential model sum of squares and model summary statistics for power consumption, kWhr/m3

Adequacy of the model tested for % color removal, % TOC removal and power consumption

The significance and adequacy of the model was analyzed by the analysis of variance (ANOVA) and the results for % color removal, % TOC removal and power consumption are given in Tables 7, 8 and 9, respectively. The F test of the quadratic models gives a small P value (< 0.05), which indicates that all the models were significant and could be used to predict the outcome for the electrocoagulation process. From Table 7, it can be seen that for the % of color removal, the linear coefficient of the current density (X1), inter-electrode distance (X2) and initial pH (X3) and the quadratic coefficient of current density (\(X_{1}^{2}\)) and initial pH (\(X_{3}^{2}\)) were significant, with p value less than 0.05. For the % TOC removal, it can be observed from Table 8 that the linear coefficient of current density (X1), inter-electrode distance (X2), initial pH (X3), interaction effect of current density (X1) with inter-electrode distance (X2), current density (X1) with initial pH (X3) and inter-electrode distance (X2) with initial pH (X3) and quadratic coefficient of current density (X1), inter-electrode distance (\(X_{2}^{2}\) and initial pH (\(X_{3}^{2}\)) were significant variables. For the power consumption from Table 9, the linear effect of current density (X1), inter-electrode distance (X2) and initial pH (X3), interaction effect of current density (X1) with inter-electrode distance (X2) and the quadratic effect of the current density (\(X_{1}^{2}\)) were found to be significant. “Adeq Precision” measures the signal-to-noise ratio; it was desirable to obtain a value greater than 4. The signal-to-noise ratio was 22.01, 214.61 and 18.60 which is greater than 4 for the % color removal, % TOC removal and power consumption, respectively. Thus, the second-order model can be used to navigate the design space. Adequacy check is crucial to make sure the approximation model can give adequate approximation to prevent poor and misleading result.

Table 7 ANOVA of the second-order polynomial equation for percentage color removal, (%)
Table 8 ANOVA of the second-order polynomial equation for percentage TOC removal (%)
Table 9 ANOVA of the second-order polynomial equation for power consumption, (kWhr/m3)

Experimental versus predicted

The comparison between experimental and predicted value is shown in Table 3 and Fig. 2a–c. From Fig. 2, it can be seen that the model-predicted values matched the experimental data in which all the points are closed to the diagonal line. The ANOVA analysis showed that all the three quadratic models were significant (p < 0.05) and can be used to predict the % of color removal, % TOC removal, and also power consumption. The quality of predicted points was verified by the R2 value, where the R2 values were 0.97, 0.99 and 0.96 for % of color removal, % TOC removal and power consumption, respectively.

Fig. 2
figure 2

Plot for relationship between experimental and predicted value for a % color removal, b % TOC removal and c power consumption

Combined effect of operating parameters for % color removal, % TOC removal and power consumption

The effect of operating parameters in estimating the maximum % color removal, % TOC removal and minimum of power consumption with respect to each variable and the impact of each operating parameter on the output are discussed as following. The electrolysis time for the electrocoagulation process was 1 h and the initial COD concentration of the leachate is diluted to 1500 ppm to visualize a better and clearer result.

Combined effect of current density (X 1) and inter-electrode distance (X 2)

The combined effect of current density (X1) and inter-electrode distance (X2) on % color and % TOC removal with power consumption was tested by varying X1 from 1.05 to 6.25 A/dm2 and X2 from 1 to 4 cm and the results are tabulated in Table 3 and plotted in Fig. 3a–c. From Fig. 3a, b, it can be observed that the % color removal and % TOC removal were increased as the current density increased, but after the optimum value, further increase in current density does not help in improving the removal of % color and TOC (Kalyani et al. 2009). The increase in current density resulted in the production of large amount of Al3+ ions via anodic metal dissolution, more H2 bubbles was formed at the cathode, which are profitable for the separation or flotation process (Ozyonar and Karagozoglu 2015). From Fig. 3c, it can be seen that the increase in current density caused an increase in the power consumption. This is because, an increase in current density caused an increase in cell voltage, which had a direct impact on the power consumption of the electrochemical process. Since a proportional relationship was established between the current density and power consumption, it is necessary to identify the optimum value of current density to reduce the power consumption and operating cost (Heidmann and Calmano 2008).

Fig. 3
figure 3

Combined effect of current density (X1) and inter-electrode distance (X2) on a % color removal, b % TOC removal and c power consumption

Inter-electrode distance (X2) was varied from 1 to 4 cm in order to study its effect on the % color removal, % TOC removal and power consumption. From Fig. 3a, b, it was seen that the % color removal and % TOC removal was decreased as the inter-electrode distance increased from 1 to 4 cm at any value of current density in the range of 1.05–6.25 A/dm2. This is because there is an increased in ohmic voltage drop as the distance between the anode and cathode was increased (Khandegar and Saroha 2013). Besides, Faraday’s law also stated that the amount of oxidized metal decreased as the gap between the electrodes was increased. However, Fig. 3c shows that the power consumption increased as the inter-electrode distance increased. This was due to the fact that there is more resistance offered when the electrodes gap increase and power consumption is directly proportional to the cell voltage (Ricordel and Djelal 2014).

Combined effect of initial pH (X 3) and current density (X 1)

Initial pH of the landfill leachate (X3) was adjusted in the range of pH 5–11 to investigate the impact of the pH on the % color removal, % TOC removal and power consumption. The result is given in Table 3 and plotted in Fig. 4a–c. From Fig. 4a, b, it can be seen that the % color and % TOC removal were increased at effluent pH from 5 to 7.5; however, further increase in pH from 7.5 to 11 decreased the removal efficiency. This can be explained by the formation of aluminium species formed in the reaction. For the Al electrodes in acidic medium, monomeric hydroxometallic cation Al(OH)3 is formed. At neutral medium, both polymeric hydroxometallic cations and metal hydroxides precipitates coexist while at higher pH or alkali medium, the net charge on the surface of the amorphous metal hydroxide precipitate changes from positive to negative and the polymeric cations will only remain in the solution. More OH can be formed in neutral condition compared to acidic and alkaline mediums in the electrocoagulation process (Modirshahla et al. 2007; Kobya et al. 2003). However, from Fig. 4c, it can be seen that the initial pH of the leachate had no impact on the power consumption for the electrocoagulation process. This is because the conductivity of the landfill leachate did not change as a result of pH adjustment; thus, 3 g/L of NaCl or mediator has been added in before starting the experiment.

Fig. 4
figure 4

Combined effect of initial pH (X3) and current density (X1) on a % color removal, b % TOC removal and c power consumption

Optimization

The main objective of this study is to determine the optimal operating parameters for the maximum % color and % TOC removal with the minimum of power consumption from landfill leachate wastewater using the electrocoagulation process. The results were optimized using the regression equation of RSM based on CCD. While optimizing, all the input variables such as current density (X1), inter-electrode distance (X2) and initial pH (X3) were selected as within the range while the output variables such as % color removal and % TOC removal were maximized with power consumption minimized. The optimized operating parameters are as following: current density (X1)—5.25 A/dm2, inter-electrode distance (X2)—1 cm and initial pH (X3)—7.83 with expected result of color removal to be 74.57%, TOC removal of 51.74% and 14.80 kWh/m3 for power consumption. A mean value of 75.20% for color removal, 50.90% for TOC removal and 13.75 kWh/m3 for power consumption was obtained experimentally, which is closed to the predicted result. From the expected and actual result, it can be said that there was good correlation between them which indicates that the central composite design could be effectively used to optimize the electrocoagulation process parameters.

Instrumental analysis

The absorption spectra of before and after treatment of electrocoagulation process were analyzed using the UV/Vis spectrophotometer (Spectroquant Pharo®300) to study the color removal rate from landfill leachate wastewater. The absorbance spectrum for the landfill leachate effluent had an absorbance peak at 284 nm which belongs to the coloring agent. From Fig. 5, it can be seen that there was reduction in absorbance of peak with increasing electrolysis time. It might be attributed that, the color of the landfill leachate wastewater was continuously reduced with increasing electrochemical reaction time.

Fig. 5
figure 5

Spectra of landfill leachate wastewater, recorded before and after the electrocoagulation process at different electrolysis times

Conclusion

This study investigated the removal of % color and % TOC using electrocoagulation process in a real landfill leachate wastewater. An empirical relationship between the output and independent variables was obtained based on the experimental data and it was expressed by the quadratic model using RSM. The results showed that, the maximum % color removal, % TOC removal and minimum of power consumption were 74.57, 51.75 and 14.80 kWh/m3, respectively, obtained at the optimum conditions of current density (X1) of 5.25 A/dm2, inter-electrode distance (X2) of 1 cm and initial effluent pH of 7.83. Based on the experimental results, an empirical relationship between the response and independent variables was obtained and expressed by the second-order polynomial equation. The ANOVA analysis showed a high coefficient of determination value, thus ensuring a satisfactory adjustment of the second-order regression model with the experimental data. This technology could be used effectively for the removal of pollutants from industrial effluents and wastewater.