1 Introduction

Distillery is recognized as one of the most polluting industries, and waste in the form of “spent wash” is among the worst pollutants produced by distilleries both in magnitude and strength [1]. Most of the distilleries in India use cane molasses, a by-product of sugar industry as raw material. For every liter of alcohol produced, molasses-based distilleries generate 8–15 L of wastewater characterized by high Biochemical Oxygen Demand (BOD), high Chemical Oxygen Demand (COD), and high recalcitrant organics with dark color. Most of these organics are known to persist in nature [2]. This recalcitrance nature is due to the presence of melanoidin brown polymers that are having complex structure and toxicity toward biological agents, which are formed by Maillard amino-carbonyl reaction [3].

Various secondary treatment techniques have been tried for the removal of organic and recalcitrant pollutants and anaerobic digestion has gained wide acceptability due to methane recovery in the anaerobic step of the treatment. It has been found that anaerobic treatment results in 60–85% of the BOD reduction, but still substantial amount of recalcitrant organic pollutants are left behind which requires post treatment [4]. The most common post-anaerobic treatment provided to distillery spent wash is aerobic treatment through activated sludge process or aerobic lagoons and similar processes. Though the anaerobic–aerobic treatment for distillery wastewater result in notable COD reductions, they are not acceptable because of operational expenses and related economic reasons. In order to complicate the matters furthermore, refractory compounds such as polyphenols, which are toxic to microorganisms when present in high concentrations, greatly hinder the secondary aerobic biological treatment processes. Research study has also been carried out in the past to evaluate alternate options for abating the pollution potential of post-digested distillery effluent. They include physico-chemical treatment [5] and bioremediation using Pseudomonas species [6]. Studies have also been conducted on the evidence that the refractory organic compounds in anaerobically treated distillery effluent can be subjected for strong oxidants such as ozone and hydrogen peroxide [3].

Since BOD5/COD ratio of pretreated distillery wastewater is very low, further treatment by biological methods is very difficult; hence, there is a need to find out a techno-economically feasible treatment method. Hence, many researchers have made attempts to use electrochemical methods for the treatment of high strength wastewater. The electrochemical treatment is an emerging technology used for the destruction of recalcitrant organics from different simulated wastewaters [79] as well as actual wastewaters [1014]. The mechanism and application of electrochemical process for treatment of different industrial wastewater are reported by several authors [1518].

The electrochemical treatment using chloride as the supporting electrolyte was reported for the treatment of different wastewaters such as lignin and tannic acid [19], resorcinol and cresols [20, 21], tannins [22], textile dye [2326], landfill leachate [12], polyaromatic organic compounds [27], tannery [28, 29], pharmaceutical [30, 31], phenol and phenolic compounds [3235], paper mill [36], and olive mill wastewaters [37].

Reports on the electrochemical treatment of anaerobically digested distillery effluents are very meager. Among them Manisankar et al. [3] have studied electrochemical treatment of industry treated effluent in a static electrochemical cell employing two different kinds of anodes viz., graphite and titanium anodes and stainless steel cathode under varying conditions of current density between 0.15 and 0.55 A m−2. Complete decolorisation and maximum COD and BOD removal of 92 and 98.1%, respectively have been observed. Jegan et al. [38] have conducted experiment on distillery wastewater and observed 85–93.3% of COD removal for an electrolysis period of 6 h under varying flow rate using triple oxide-coated titanium as anode and stainless steel as cathode in a batch recirculation electrochemical cell.

From the above discussion, it is evident that, the treatability studies of the pretreated effluent in terms of enhancing BOD5/COD ratio and use of low cost electrodes have not been studied. Hence, it was found necessary to employ certain low cost anode materials in the electrochemical oxidation process to obtain maximum BOD5/COD ratio and COD removal efficiency with optimized energy consumption. Hence, the main objective of this study is to investigate the applicability of electrochemical treatment for COD removal and to improve BOD5/COD ratio of distillery wastewater (wastewater collected from anaerobic lagoon of existing distillery wastewater treatment plant) using aluminum electrode. Furthermore, the effect of operating factors such as electrolysis duration, pH, and current density on COD removal and improvement in (BOD5/COD) ratio were evaluated in this study.

2 Materials and methods

2.1 Wastewater

In this study, distillery wastewater was collected from the anaerobic lagoon of distillery wastewater treatment plant. It was subjected to treatability studies in the electrochemical batch reactor. The wastewater was analyzed for various parameters such as pH, suspended solids, COD, BOD, and chlorides. The characteristics are shown in Table 1. It can be seen that the solids concentration is very high, and the COD and BOD5 values varied in the range of 42,240–46,440 and 6,757–8,600 mg L−1, respectively, which indicate that the wastewater contains high amount of organics. The initial (BOD5/COD) ratio was found to be very low in the range of 0.15–0.19, which suggests that there is a presence of recalcitrant nature of organics in the wastewater.

Table 1 Characteristics of distillery wastewater

2.2 Electrochemical reactor setup

Electrochemical oxidation experiments were conducted in a plexi-glass laboratory scale batch reactor of working volume 1.5 L with dimensions 13.5 cm × 19 cm × 14.5 cm. The aluminum plate of size 5 cm × 5 cm was used as both anode and cathode electrode. The electrodes were placed at a fixed distance of 2 cm apart by the head plate of the reactor. The experimental setup is shown in Fig. 1. A direct current power supply unit (Textronix-35D, 0–10 A, 1–15 V) was used for current supply. The reactor was operated under completely mixed condition facilitated by a magnetic stirrer to avoid concentration gradients. The samples were collected at regular time interval from the sampling port provided in the reactor, and the samples were analyzed for various parameters. All the analytical procedures followed the standard methods for examination of water and wastewater [39]. The experiments were conducted to study the effect of the three operating conditions viz., electrolysis duration (ED), pH, and current density (CD).

Fig. 1
figure 1

Schematic diagram of electrochemical reactor setup

2.3 Electrolysis experiments

The batch studies were conducted at the existing pH of the post-methanation distillery wastewater to find the optimum electrolysis duration at which maximum COD removal takes place. At the optimum electrolysis duration, further experimental runs were conducted at pH of 3, 5, 7, and 9. The optimum pH, which resulted in maximum COD removal, was fixed up for further experiments with varying current densities. Thus, all the experimental conditions such as duration of electrolysis, pH, and current density were optimized on the basis of maximum percent COD removal efficiency.

3 Mechanism of electrochemical oxidation

Two important features of the electrochemical process are converting non-biocompatible organics into biocompatible compounds, and oxidation of organics into CO2 and H2O. The degradation of organics and toxic materials present in the wastewater in an electrochemical process is achieved by direct or indirect oxidation. In the direct oxidation technique, pollutants are destroyed directly at the anode. The indirect oxidation process utilizes strong oxidizing agent such as chlorine/hypochlorite generated in situ during electrolysis for the oxidation of pollutants. Chlorides present in wastewater act as supporting electrolyte, and it generates strong oxidizing agents such as chlorine/hypochlorite during the process and used for the mineralization of organic pollutants. Both hypochlorite and free chlorine can react as oxidizing agents, and they lead to the following oxidation. The off-gases from the cell are collected and tested by passing the gas through lime water. It turned milky indicating the formation of CO2 during electrolysis [24, 4042]. The reactions involved are

$$ {\text{C}}_{a} {\text{H}}_{b} {\text{N}}_{c} {\text{O}}_{d} + \left[ {\text{O}} \right] \to a{\text{CO}}_{ 2} + b/ 2 {\text{ H}}_{ 2} {\text{O}} + c/ 2 {\text{ N}}_{ 2} $$
(1)
$$ {\text{Organic matter}} + {\text{OCl}}^{ - } \to {\text{CO}}_{ 2} + {\text{H}}_{ 2} {\text{O}} + {\text{Cl}}^{ - } + {\text{product}} . $$
(2)

The COD removal occurs only in the presence of chlorides in the bulk solution because of the reaction between the generated chlorine/hypochlorite and the organic molecules. The indirect electrochemical treatment involves the application of an electrical current to the wastewater containing chloride to convert chloride to chlorine/hypochlorite, and then it oxidizes the pollutants. The hypochlorous acid and hypochlorite ion can decompose organic matter because of their high oxidative potentials [43].

$$ {\text{At anode:}}{\text{ 2Cl}}^{ - } \to {\text{Cl}}_{ 2} + 2{\rm e}^{ - } $$
(3)
$$ {\text{At cathode:}}{\text{ 2H}}_{ 2} {\text{O }} + 2{\rm e}^{ - } \to {\text{H}}_{ 2} + 2 {\text{OH}}^{ - } $$
(4)
$$ {\text{Bulk solution:}}{\text{ Cl}}_{ 2} + {\text{H}}_{ 2} {\text{O}} \to {\text{HOCl}} + {\text{H}}^{ + } + {\text{Cl}}^{ - } $$
(5)
$$ {\text{HOCl}} \to {\text{ H}}^{ + } + {\text{OCl}}^{ - } . $$
(6)

In addition, electrocoagulation also occurs during electrochemical treatment of wastewater. Electrocoagulation is a complex and interdependent process. A sacrificial metal anode is used to produce coagulating agent to dose the polluted water, and electrolytic gases (mainly hydrogen at the cathode) are generated. Electrochemistry, coagulation, and hydrodynamics form the basis of electrocoagulation [44, 45]. The most widely used electrode materials in electrocoagulation process are aluminum and iron, sometimes steel. The electrical current causes the dissolution of metal into wastewater. The metal ions, at an appropriate pH value, can form wide ranges of coagulated species and metal hydroxides, or precipitate and adsorb dissolved contaminants [46]. In case of aluminum as electrode, the reactions are

$$ {\text{At anode:}}{\text{ Al}} \to {\text{Al}}^{ 3+ } + 3{\rm e}^{ - } $$
(7)
$$ {\text{At cathode:}}{\text{ 3H}}_{ 2} {\text{O}} + 3{\rm e} \to 3/ 2 {\text{ H}}_{ 2} + 3 {\text{OH}}^{ - } . $$
(8)

Al3+ and OH ions generated by electrode reactions (7) and (8) react to form various monomeric species such as Al(OH)2+, Al(OH) +2 , Al2(OH) 4+2 , Al(OH) 4 , and polymeric species such as Al6(OH) 3+15 , Al7(OH) 4+17 , Al8(OH) 4+20 , Al13O4(OH) 7+24 , Al13(OH) 5+34 , which transform finally into Al(OH)3. During electrocoagulation process, metal hydroxides formation occurs, and the flocs have a larger surface area, which is beneficial for a rapid adsorption of soluble organic compounds and trapping of colloidal particles. Finally, these flocs are removed easily from aqueous medium by sedimentation or flotation [4749].

4 Results and discussion

4.1 Effect of electrolysis duration

The initial sets of experiments were conducted at the existing wastewater pH of 7.95 without any pH adjustment and at a current density of 0.03 A cm−2 (amounting to total current of 0.75 A). It is evident from Fig. 2, that maximum of 48.76% COD reduction has been achieved in 120 min of electrolysis duration. The experiment was continued for 3 h, and there was slight decline in COD removal. This may be due to the exhaustion of hypochlorite (HClO3 ) and free chlorine generation in situ in the reactor (indirect oxidation), and second, due to deposition of toxic metals/materials on the anode (direct oxidation) which might have further prevented COD removal. It can be observed that BOD5/COD ratio increased from 0.17 to 0.58 at 120 min, suggesting increase in biodegradability with an increase in electrolysis duration. In this experiment, the COD reduced from initial concentration of 42,240 to 21,640 mg L−1 while the BOD increased from the initial value of 7,520 to 12,616 mg L−1 at optimum electrolysis duration of 120 min. The increase in BOD concentration is attributed to the fact that some of the organics have broken down into smaller fragments, which are more biodegradable than parent compounds [31].

Fig. 2
figure 2

Variation of COD removal efficiency and BOD5/COD ratio as a function of electrolysis duration

4.2 Effect of pH

In order to know the effect of wastewater pH on performance of electrolysis, individual experiments were conducted at varying wastewater pH of 3, 5, 7, and 9 with a constant current density of 0.03 A cm−2 (0.75 A). Based on the previous experiment the electrolysis duration was fixed at 120 min. The pH of wastewater was adjusted using NaOH or H2SO4 to get the desired pH throughout each run. As seen from Fig. 3, there was considerable effect on COD removal with varying wastewater pH. The maximum COD reduction of 70.51% was observed at wastewater pH 3, and the minimum COD reduction of 50.2% was observed at wastewater pH 9. At wastewater pH of 7 and 5, the COD removal rates were 53.42 and 66.71%, respectively. This shows that acidic condition is more favorable for the treatment of distillery wastewater. During this experiment at wastewater pH of 3, the COD reduced from 44,700 to 13,180 mg L−1 while BOD increased from 8,600 to 9,015 mg L−1. The BOD5/COD ratio exhibited an analogous optimum increase from 0.19 to 0.68 at pH 3 as shown in Fig. 4. It is observed that the COD removal rate and BOD5/COD ratio decreases with increase in pH of the solution. The reason may be due to the decreased production of chlorine/hypochlorite at higher pH condition, because of the formation of chlorate and perchlorate, which is according to the following equations.

$$ 6 {\text{HOCl}} + 3 {\text{H}}_{ 2} {\text{O}} \to 2 {\text{ClO}}_{3}^{ - } + 4 {\text{Cl}}^{ - } + 1 2 {\text{H}}^{ + } + {\raise0.7ex\hbox{$3$} \!\mathord{\left/ {\vphantom {3 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}{\text{O}}_{ 2} + 6{\rm e}^{ - } $$
(9)
$$ {\text{ClO}}_{3}^{ - } + {\text{ H}}_{ 2} {\text{O}} \to {\text{ClO4}}^{ - } + 2 {\text{H}}^{ + } + 2{\rm e}. $$
(10)
Fig. 3
figure 3

Effect of pH on COD removal

Fig. 4
figure 4

Effect of pH on BOD5/COD ratio

Another reason may be that at acidic pH condition, the chlorine is present in the solution in the form of hypochlorous acid, which is having higher oxidation potential (E 0 = 1.49 V) than that of hypochlorite ion (E 0 = 0.94 V) and the hypochlorite prevalent in alkaline pH condition [43, 50, 51].

4.3 Effect of current density

An important operational variable of the electrochemical degradation process is the current density, which is the current input divided by the surface area of the electrode. In order to study the effect of varying current density on COD reduction and BOD5/COD ratio, experiments were done at different current densities of 0.01, 0.02, and 0.03 A cm−2 (amounting to a current of 0.25, 0.5, 0.75 A, respectively). The experiment was conducted for 120 min keeping constant electrode surface area and constant pH of 3. The experimental results of COD removal and BOD5/COD ratio are shown in Figs. 5 and 6, respectively. From Fig. 5, it can be seen that the maximum COD removal of 72.3% was observed at an applied current density of 0.03 A cm−2. For initial 30 min, the COD removal was rapid and later on it was gradual. While at current density of 0.01 and 0.02 A cm−2 the COD removal was gradual and at the end of electrolysis duration it was 38.7 and 54.5%, respectively. The COD values reduced from initial concentration of 46,440–12,860 mg L−1 and the BOD increased from initial value of 6,757–8,820 mg L−1 at 0.03 A cm−2. Increasing current density led to the increase in COD reduction following Faraday’s law [52], because of the increased production of chlorine/hypochlorite at higher current densities. The decrease of COD is attributed to the destruction of organic contaminants in wastewater, when the electro-oxidation was implemented. From Fig. 6 it is observed that there was an increase in BOD5/COD ratio from 0.15 to 0.68 at current density of 0.03 A cm−2 and further increase in current density had caused faster dissolution of anode material; hence, operating current density was not increased beyond 0.03 A cm−2, which is equivalent to a current of 0.75 A [31, 53]. The reason is that increasing current density, increases the overall potential required for the generation of chlorine/hypochlorite. At the same time, the performance of the reactor will be affected under different current densities while altering the other operating conditions simultaneously, as similar observation made by Rajkumar et al. [43]. In the treatment process the electro-oxidation of organic contaminants can occur directly on anodes by generating physically adsorbed active oxygen (adsorbed hydroxyl radicals, OH) or the chemisorbed active oxygen (oxygen in the oxide lattice, MOx+1). The physically adsorbed active oxygen can cause the complete combustion of organic compounds (R), and the chemisorbed active oxygen can participate in the formation of selective oxidation products as shown in Eqs. 3 and 4. In general, OH is more effective for pollutant oxidation than O in MOx+1 [42]. The performance of electrochemical reactor at an optimum pH of 3 and current density of 0.03 A cm−2 is shown in Table 2.

$$ {\text{R}} + {\text{MO}}_{x} \left( {{\text{OH}}^{ - } } \right)_{z} \leftrightarrow {\text{CO}}_{ 2} + z{\text{H}}^{ + \, } + z{\rm e}^{ - } + {\text{MO}}_{x} $$
(11)
$$ {\text{R }} + {\text{ MO}}_{x + 1} \leftrightarrow {\text{RO}} + {\text{MO}}_{x} . $$
(12)
Fig. 5
figure 5

Effect of current density on COD removal at wastewater pH 3

Fig. 6
figure 6

Effect of current density on BOD5/COD ratio at wastewater pH 3

Table 2 Performance of electrochemical treatment (ECT)

4.4 Anodic efficiency and energy consumption

The anode efficiency of electrochemical treatment has been calculated in terms of kg COD removed per hour per ampere per square meter area of electrode (kg COD h−1 A−1 m−2) and the energy consumption in terms of kilowatt hour per kilogram of COD removed (kWh kg−1 COD removal) and the results are presented in Table 3. This study was conducted at the wastewater pH of 3 and the current applied was 0.25, 0.5, and 0.75 A. The maximum anodic efficiency of 21.58 kg COD h−1 A−1 m−2 and the minimum energy consumption of 0.084 kWh kg−1 COD removal was observed at pH 3 and applied current of 0.25 A. The anodic efficiency at 0.25 A is 1.6 times more than that at a current of 0.75 A. Under similar conditions at pH 3, the energy consumption increased 3.8 times with increase in current from 0.25 to 0.75 A. This is in comparison with the studies made by Deshpande et al. [31] on electrochemical oxidation of pharmaceutical effluent. It is evident that increase in current density has actually resulted in decrease in anodic efficiency and increase in energy consumption.

Table 3 Anodic efficiency and energy consumption at varying current density

4.5 Kinetic studies

In the electrochemical process, either direct or indirect oxidation process destroys the pollutants. It is generally observed that the direct oxidation of organic compounds at the surface is very difficult and the rate of reaction is too slow. Furthermore, pseudo first-order reaction kinetics was reported for most of the organic pollutants with chloride as supporting electrolyte. In indirect electrochemical oxidation process, the COD removal rate is proportional to the concentration of organic compound (pollutant) and also to the chlorine/hypochlorite concentration because the indirect oxidation is mediated by chlorine/hypochlorite. Therefore, the kinetics for COD removal is given as [54]:

$$ {\text{d}}\left[ {\text{COD}} \right]/{\text{dt}} = \, - {\text{K}}\left[ {\text{COD}} \right]{\text{Cl}}_{ 2} . $$
(13)

Electrochemical treatment involves the application of an electrical current to the effluent to convert chloride to chlorine and hypochlorite. The chlorine and hypochlorite will oxidize the organic compound and then get reduced to a chloride ion. The process is then repeated in a catalytic fashion. Therefore, the concentration of chlorine/hypochlorite during the electrolysis is assumed to be constant and the above equation can be rewritten as a pseudo first-order equation [36].

$$ \begin{aligned} {\text{d}}\left[ {\text{COD}} \right]/{\text{dt }} & = - {\text{K}} \cdot \left[ {\text{COD}} \right] \\ {\text{d}}\left[ {\text{COD}} \right]/\left[ {\text{COD}} \right] \, & = - {\text{K}} \cdot {\text{dt}} .\\ \end{aligned} $$
(14)

Upon integrating from t = 0 to t = t results in

$$ { \ln }\left[ {{\text{COD}}_{\text{\it t}} /{\text{COD}}_{0} } \right] = - {\text{ k}} \cdot {\text{t}} $$
(15)

where k = 0.4343 K.

The slope of the plot ln [COD t /COD0] versus time gives the value of reaction rate (k) in min−1. Here, the COD0 is the initial COD and COD t is COD at time ‘t’ in mg L−1.

The pseudo first-order plots of ln [COD t /COD0] versus time for different wastewater pH and different current density for aluminum electrode are presented in Figs. 7 and 8, respectively. Table 4 provides reaction rate (k) and respective coefficient determination (R 2) values for different pH and current density. From Fig. 7, it is observed that as the pH increases from 3 to 9, the reaction rate (k) decreases from 0.011 to 0.0063 (min−1) gradually. The maximum reaction rate (k) was observed at acidic pH of 3 and minimum at pH 9. As the pseudo first-order rate constant (k) was calculated based on COD removal, the values of coefficient of determination (R 2) are above 0.95 for different wastewater pH of 3–9. The reaction rate data reveal that distillery wastewater degrade easily at acidic pH than at higher pH values. Figure 8 shows the plots of ln [COD t /COD0] versus time for different current densities 0.01, 0.02, and 0.03 A cm−2 (which is equivalent to applied current of 0.25, 0.5, and 0.75 A, respectively). It is observed that the reaction rate (k) increases from 0.0035 to 0.0102 (min−1) as the current density increases from 0.01 to 0.03 A cm−2. The maximum reaction rate was observed at current density of 0.03 A cm−2 and minimum at 0.01 A cm−2. The coefficients of determination (R 2) values obtained are above 0.95. It shows that higher current density strongly influences on faster degradation of distillery waste. Chiang et al. [12] found that the chlorine/hypochlorite production rate is improved by increasing current density during electrolysis. Therefore, enhancing effect of current density is attributed to the improvement of chlorine/hypochlorite production rate that enhances the indirect oxidation effect during electrolysis.

Fig. 7
figure 7

Effect of pH on reaction rate

Fig. 8
figure 8

Effect of current density on reaction rate

Table 4 Effect of pH and current density (CD) on reaction rate (k)

4.6 Instantaneous current efficiency

The instantaneous current efficiency (ICE) was determined for the entire experimental batch studies carried out during the present work. The ICE is defined as the ratio of the current stoichiometrically required for the oxidation of organics to that of total consumption. This has been calculated in terms of COD variation as given in Eq. 16 [24, 27, 33, 55].

$$ \begin{aligned} {\text{ICE (\% )}} & = & \left\{ {{\frac{{({\text{COD}})_{\it t} - ({\text{COD}})_{{\it t + \Updelta \it t}} }}{8 \times I \times \Updelta t}}} \right\}F \times V \times 100 \\ {\text{ICE }}\left( \% \right) \, & = \, \left( {\text{Decrease in COD}} \right) \, \times \, \left( {\text{volume of solution}} \right)/\left( {\text{mass of oxygen equivalent to electricity}} \right) \\ \end{aligned} $$
(16)

where COD t and COD(tt) are the COD values at times t and t + Δt (in grams of O2 per liter), respectively, I is the current in amperes, F is the Faraday’s constant 26.8 Ah, and V is the volume of electrolyte in liters [55]. Figures 9, 10, and 11 show the variation of ICE for the three sets of experimental conditions viz., electrolysis duration, pH, and current density. A common trend observed among all the plots is that, the ICE values have increased sharply during first 30 min and drop rapidly during further course of electrolysis. The probable cause for the decrease of ICE may be attributed to the growth of an adherent passivating film on the anode surface that might have poisoned the electrode or by production of stable intermediates that cannot be further oxidized by direct electrolysis [27]. Another possibility is that the decrease of ICE may be attributed to the adsorption of melanoidin, a polymeric material present in the distillery effluent, on the electrode surface or due to the formation of passivation film on the electrode surface by reaction between the metallic chloride and calcium or magnesium salts present in wastewater [3]. The ICE values in the first 30 min of treatment are higher than those in the last 90 min in all which indicates that the degradation during the first 30 min of treatment mainly contributes to the whole period.

Fig. 9
figure 9

Variation of instantaneous current efficiency (ICE) with respect to time as function of electrolysis duration

Fig. 10
figure 10

Variation of ICE as a function of controlled pH

Fig. 11
figure 11

Variation of ICE as a function of current density

4.7 Regression analysis

For the results obtained during the present study, multiple regression analysis was done using the software Regress version 3.0. Linear regression analysis was performed for BOD5/COD ratio and percent COD removal for electrochemically oxidized effluent. This analysis was intended to check the applicability of the experimental data in predicting the BOD5/COD ratio and percent COD removal also to identify the variables that contributes significantly to increase the (BOD5/COD) ratio and percent COD removal.

4.7.1 Regression model—linear

In each of the regression models the dependent variable is BOD/COD ratio (Y 1) and percent COD removal (Y 2) of electrochemically oxidized effluent, while the independent variables considered was duration of electrolysis (X 1) in minutes, voltage applied (X 2) in volts, and current density during electrolysis (X 3) in A cm−2. The data set consisted of 15 data points (n = 15). The models are mathematically expressed in Eqs. 17 and 18, as follows:

$$ Y_{1} = A_{0} + A_{1} X_{1} + A_{2} X_{2} + A_{3} X_{3} $$
(17)
$$ Y_{2} = B_{0} + B_{1} X_{1} + B_{2} X_{2} + B_{3} X_{3} $$
(18)

where A 0 and B 0 are constants and A 1, A 2, A 3, B 1, B 2, B 3 are the regression coefficients. The estimated linear model interrelating BOD5/COD ratio with the controlling parameters is presented in Eq. 19, which has correlation coefficient (R 2) of 0.86. From the model, the most significant controlling parameter of the system affecting BOD5/COD ratio is the current density (X 3) and the least significant parameter is the electrolysis duration (X 1).

$$ Y_{ 1} = 0.0 2+ 0.00 2X_{ 1} + 0.0 1 1X_{ 2} + 4. 9 4 5X_{ 3} . $$
(19)

The estimated linear model interrelating percent COD removal with the controlling parameters is given in Eq. 20, which has correlation coefficient (R 2) of 0.93. From the model, the most significant controlling parameter of the system affecting percent COD removal is the current density (X 3) and the least significant parameter is the voltage applied (X 2).

$$ Y_{2} = 13.91 + 0.372X_{1} + 1.11X_{2} + 24.806X_{3} . $$
(20)

Figures 12 and 13 show the linear plots of observed versus predicted values of BOD5/COD ratio and percent COD removal, respectively.

Fig. 12
figure 12

Linear regression plot of actual and predicted values of BOD5/COD ratio

Fig. 13
figure 13

Linear regression plot of actual and predicted values of percent COD removal

The models adequacy checking is an important part of the data analysis procedure in which the approximating model would give poor or misleading results if it were an inadequate fit. The residual plots should always be examined for the approximating models. Actual values are the measured response data for particular run, and the predicted values evaluated from the model and generated by using the approximating functions. From the figures the correlation coefficients R 2 and \( R_{\text{adj}}^{2} \) evaluated for BOD5/COD ratio was found to be 0.86 and 0.82, respectively, and for percent COD removal was 0.93 and 0.92, respectively.

4.7.2 Regression model—nonlinear

In the regression model the dependent variables BOD5/COD ratio (Y3) and percent COD removal (Y 4) of electrochemically oxidized effluent was regressed on duration of electrolysis (X 1), voltage applied (X 2), and current density (X 3). The models are mathematically expressed in Eqs. 21 and 22 as follows:

$$ Y_{3} = A_{0 \, } X_{1}^{{A_{1} }} X_{2}^{{A_{2} }} X_{3}^{{A_{3} }} $$
(21)
$$ Y_{4} = B_{0 \, } X_{1}^{{B_{1} }} X_{2}^{{B_{2} \, }} X_{3}^{{B_{3} }} . $$
(22)

The correlation matrix gave the values of the regression coefficients of the nonlinear models. The estimated nonlinear model interrelating BOD5/COD ratio with the controlling parameters is given in Eq. 23, which has correlation coefficient (R 2) of 0.90. From the model, the most significant controlling parameter of the system affecting BOD5/COD ratio is the current density (X 3) and the least significance parameter is the voltage (X 2) applied.

$$ Y_{{ 3 }} = - 2. 1 9 5 X_{1}^{0.00 8} X_{ 2}^{0.00 5} X_{ 3}^{ 2. 2 5} . $$
(23)

The estimated linear model interrelating percent COD removal with the controlling parameters is given in Eq. 24, which has correlation coefficient (R 2) of 0.93. From the model, the most significant controlling parameter of the system affecting percent COD removal is the current density (X 3) and the least significant parameter is the electrolysis duration (X 1).

$$ Y_{{ 4 }} = 1 5.0 6 6 X_{1}^{0. 3 4 3} X_{2}^{ 1. 7 4 9} X_{3}^{ 1 2. 2 3} . $$
(24)

Figures 14 and 15 show the nonlinear plots of observed versus predicted values of BOD5/COD ratio and percent COD removal, respectively. From the figures the correlation coefficients R 2 and \( R_{\text{adj}}^{2} \) evaluated for BOD5/COD ratio was found to be 0.90 and 0.92, respectively, and for percent COD removal was 0.93 and 0.97, respectively. The results indicate that the nonlinear regression models gave the best results when compared with the linear models.

Fig. 14
figure 14

Nonlinear regression plot of actual and predicted values of BOD5/COD

Fig. 15
figure 15

Nonlinear regression plot of actual and predicted values of percent COD removal

5 Conclusions

Based on the findings of this study, the electrochemical technique can be effectively used for the pretreatment of distillery effluent using aluminum electrode. The electrolytic efficiency was primarily based on the efficiency of COD removal and improvement in BOD5/COD ratio. The efficiency of aluminum electrode in terms of COD removal was 72.3% at 120 min of electrolysis duration, at a current density of 0.03 A cm−2 and wastewater pH of 3. There was an improvement in biodegradability of wastewater with BOD/COD ratio increased from 0.16 to 0.68. The maximum anodic efficacy of aluminum electrode for COD removal observed was 21.58 kg COD h−1 A−1 m−2 and the minimum energy consumption observed was 0.084 kWh kg−1 COD removed. The COD removal followed pseudo first-order kinetics and it was affected by the operating parameter mainly at pH 3 and current density of 0.03 A cm−2. The linear and nonlinear regression models reveal that that percent COD removal and improvement in BOD5/COD ratio are more influenced by applied current density. Correlation coefficients R 2 and \( R_{\text{adj}}^{2} \) of the observed and the predicted values of percent COD removal for linear model are 0.93 and 0.92, respectively, and for nonlinear model are 0.93 and 0.97, respectively. This reveals that the nonlinear regression model gives better correlation for percent COD removal. The ICE was found to be increase in ICE during first 30 min and sudden drop for further course of electrolysis. The decrease of ICE may be attributed to the growth of an adherent passivation film on the anode surface that might have poisoned the electrode or by production of stable intermediates that cannot be further oxidized by direct electrolysis. Although all organic contaminants of wastewater were significantly reduced during this study still COD and BOD were found to be high. It was found that the one step treatment by electrochemical process was not sufficient and further treatment by appropriate biological method is required to bring down the pollutant concentration within the statutory limits of effluent disposal.