Introduction

The indisputable world population growth is causing an augmentation in the consumption of meat and dairy products (Huber et al. 2010). Consequently, the livestock farming practices have become more intensive to fulfill the dietary requirement. Intensive livestock farming systems inevitably lead to increased generation of wastewater. Livestock wastewater contains high amount of nutrients, organic pollutants, suspended solids, xenobiotics, and pathogenic microorganisms and has negative environmental consequences along with human health concerns if discharged untreated (Burkholder et al. 2007; Greger and Koneswaran 2010; Wang et al. 2011; Hu et al. 2017; Shim et al. 2021). Treatment of high pollutant-laden livestock wastewater is therefore of utmost importance considering human and environmental health and to meet up the elevating demand for safe and clean water globally.

Up till now, various biological, physical, and chemical treatment methods have been applied for high-strength livestock wastewater remediation; however, still there is a need of processes that can degrade the organic matters in wastewater effectively. Highly polluted waste streams like livestock wastewater generally use biological treatment methods to stabilize the organic matter either aerobically or anaerobically. Among the biological treatment methods, anaerobic digestion is the most commonly employed to comply with the wastewater treatment goals (Kranert et al. 2012). Although anaerobic digestion has the advantage of producing green energy in the form of biogas (Afazeli et al. 2014), nutrients (nitrogen and phosphorus) cannot be removed effectively (Shi et al. 2018). Moreover, anaerobic digestion requires extortionate retention time and large spaces for the effective stabilization of wastewater (Adekunle and Okolie 2015). Further, a reduction in process performance may be observed due to the presence of non-biodegradable or slowly degradable compounds like antibiotics in livestock wastewater (Álvarez et al. 2010). Considering the above, electrochemical treatment technologies can be an effective alternative to overcome the drawbacks of conventional biological treatment processes (Bejan et al. 2005).

Electrochemical treatment of waste streams is not a new invention of modern science. It has been practiced since before the last century. Michael Faraday is called the pioneer of electrolytic treatment technology as he first mentioned the principle of electrolysis in 1820 (Chen et al. 2005). The process occurs in an electrolytic or a salt solution that helps to transfer the ions between two electrodes. After applying electric current, the positive ions shift toward the cathode, whereas the negative ions advance toward the anode. At the initial developmental stages, the primary focus of the process was to deodorize and disinfect the sewage wastewater (Vik et al. 1984). The application of electrochemical processes in sewage wastewater treatment was first mentioned in England in 1889 (Comninellis and Chen 2010). As time passes, electrolytic treatment has become more popular due to several benefits in treating highly polluted and complex municipal, industrial, and agro-industrial wastewaters. The benefits of electrolytic treatment of wastewater include (a) electrons, the sole facilitators of the treatment process, are inherently clean reagents and perform as heterogeneous catalysts, (b) cost-effectiveness, (c) simple in design, (d) could be energy efficient based on application, (e) versatility and flexibility, and (f) ability to treat a diverse array of pollutants (organic, inorganic, and biochemical) (Rajeshwar et al. 1994; Ibanez et al. 2014).

Electrochemical removal of pollutants from livestock waste streams including swine, dairy, and poultry is well illustrated in the literature. The major electrochemical technologies employed for the treatment of highly polluted livestock wastewater are electrocoagulation, electrooxidation, and electro-disinfection. The electrolytic treatment of livestock wastewater has recently drawn the interest of researchers due to the growing importance of the post-treatment of the anaerobically digested effluents. Considering the significance of the context, this review is focused on the electrochemical treatment of high-strength effluents from livestock farms. To be more specific, this review discusses the status of contemporary electrolytic treatment technologies for the remediation of livestock wastewater and provides fundamental information on treatment approaches, process design and operational parameters, economic feasibility, scaling-up consideration, and a direction for future studies in this field.

Technologies for electrochemical treatment of livestock wastewater

Electrocoagulation

Electrocoagulation enables in situ generation of coagulants during the treatment process when the electric current is passed through sacrificial metal anode materials such as aluminum (Al), iron (Fe), mild steel, and stainless steel (Mook et al. 2014; Lourinho and Brito 2021). Through the introduction of electric current, electro-dissolution of sacrificial anodes takes place and highly charged metal cations are produced which ultimately play the role of actual coagulation agents and remove pollutants from waste streams. Electricity from a direct current source is therefore considered as the main driving force for the solicited chemical reactions in electrocoagulation. The generalized and electrode-specific reactions that occur during electrocoagulation are shown in Table 1 (Eqs. 1–11) (Mollah et al. 2004; Liu et al. 2010; Kabdaşlı et al. 2012; Sahu et al. 2014; Moussa et al. 2017).

Table 1 General and electrode-specific chemical reactions in the electrocoagulation process

Metal cations (M+) are generated due to the oxidation of metal (M) anode. Depending on the total cation concentration and pH, the highly charged synthesized M+ react further and generate metal polymeric hydroxides near the anode. The overall mechanism of the electrocoagulation process was elucidated by Mollah et al. (2004) (Fig. 1). The ionic strength of the solution increases with treatment time, and the colloidal particles having negative charges showed strong affinity toward the anode due to electrophoresis. The particles are aggregated as the electrostatic interparticle repulsion is minimized due to the electrical double-layer compression (Moussa et al. 2017) and mutual collision of electrogenerated hydroxides neutralizes the charges of the colloidal particle (Barrera-Díaz et al. 2011). The mechanism of vanquishing the electrostatic repulsive barrier and authorizing aggregation of particles is denoted as coagulation. The flocs formed due to coagulation generally have high absorption capacity and hence can entrap the pollutants (sweep coagulation) or make a bond with them before removal either through flotation or sedimentation (Ghernaout et al. 2009). On the other hand, simultaneous evolution of hydrogen takes place at the cathode and produces bubbles (Linares-Hernández et al. 2009), which may enable the formed flocs to float on the surface of the treated solution. The main steps of electrocoagulation are shown in Fig. 2. Studies reported that iron anode generally performs better in alkaline conditions, while aluminum anode shows better results in neutral or weakly acidic conditions (Inan et al. 2004; Can et al. 2006). However, depending on wastewater pH, operating conditions, pollutant types and concentration, and electrode materials, the main mechanism of the electrocoagulation may change during the treatment process, and sometimes other electrochemical and chemical phenomena may also occur.

Fig. 1
figure 1

General mechanism of electrocoagulation processes. With the introduction of electric current from an external direct power source, the anode material oxidizes, while the cathode undergoes reduction and reductive deposition of the material takes place. Reprinted from Journal of Hazardous Materials, Vol. 114 (1-3), Mollah et al., Fundamentals, present and future perspectives of electrocoagulation, pp. 199-210, Copyright (2004), with permission from Elsevier

Fig. 2
figure 2

Adapted from Thirugnanasambandham et al. 2015 and Moussa et al. 2017

Major steps involved in the electrocoagulation of wastewater. The overall electrocoagulation process is an association of electrochemistry, coagulation, and floatation. Anode dissolution, OH ions and H2 gas production, and coagulant formation belong to electrochemistry. Target pollutants are removed from the waste stream during coagulation and flotation via destabilization of repulsive forces.

There are several advantages associated with the electrocoagulation treatment, which include simple reactor designs, faster reactions without the addition of chemical coagulants and oxidants, no need of microorganisms, and reduced sludge production. However, the requirement of a minimum level of conductivity and wastewater pretreatment steps like equalization, pH adjustment, etc., to ensure efficient process operation are some of the drawbacks mentioned in previous studies (Mollah et al. 2004; Kabdaşlı et al. 2012). In addition, the rapid consumption of electrodes due to oxidation, electrode passivation, periodical replacement of electrodes, and electricity consumption may lead to high operational costs. Most electrocoagulation studies were performed in small-scale batch reactors for a shorter duration of time; therefore, the performance of full-scale electrocoagulation processes in long runs requires further studies.

Electrooxidation

In electrooxidation, organic pollutants from waste streams which are difficult to treat using conventional biological and chemical methods can be easily removed (Drogui et al. 2007). Anodic oxidation during the treatment is performed either by electrochemical combustion or by electrochemical conversion (Comninellis and Pulgarin 1993). The electrooxidation process is generally classified as (a) direct anodic oxidation and (b) indirect anodic oxidation. Deng and Englehardt (2007) demonstrated the pollutant removal pathways in direct and indirect anodic oxidation (Fig. 3).

Fig. 3
figure 3

Pollutant removal pathways in electrochemical indirect and direct oxidation. Electrochemically generated mediators perform the oxidation process during indirect oxidation, while pollutants are oxidized on the electrode surface during direct oxidation. Reprinted from Waste Management, Vol. 27 (3), Deng Y. and Englehardt J. D., Electrochemical oxidation for landfill leachate treatment, pp. 380-388, Copyright (2007), with permission from Elsevier

In the case of direct anodic oxidation, direct oxidation of the pollutants takes place at the anode surface via physical and chemical adsorption of active oxygen as hydroxyl radicals (°OH) and oxygen in the oxide lattice (MOx+1), respectively (Comninellis 1994). The overall mechanism of direct anodic oxidation is presented in Table 2 through Eqs. 12–17. Organic pollutants in the wastewater are oxidized completely when reacted with °OH (Eq. 13) (Mook et al. 2012). Hydroxyl radicals are electrophilic in nature and can react promptly and non-selectively with organic compounds rich in electrons (Stasinakis 2008). The chemical absorption occurs at the dimensionally stable electrodes, viz. iridium (IV) oxide (IrO2), lead (IV) oxide (PbO2), ruthenium (IV) oxide (RuO2), tin (IV) oxide (SnO2), etc., where the MOx+1 reacts with organic materials (Mook et al. 2014) (Eq. 15). In addition, molecular oxygen (O2) can be formed due to electrolysis of H2O (parasitic reaction) during direct anodic oxidation (Drogui et al. 2007) which is an influencing factor governing the treatment efficiency of the process. The production of O2 results in reduced process performance. To tackle this, anodes such as boron-doped diamond film on titanium (Ti) electrodes and valve metal (DiaChem) electrodes are found to be helpful (Troster et al. 2002; Chen et al. 2003; Chen 2004). Both the Ti/boron-doped diamond and DiaChem electrodes possess higher oxygen evolution overpotential and prioritize direct anodic oxidation over oxygen evolution at increased current density. Martinez-Huitle and Ferro (2006) denoted °OH and MOx+1 generation, anode material characteristics, and applied electric current as the main factors determining the technical performance of the direct anodic oxidation process. Moreover, it is also visible from Eqs. 16–17 that physically and chemically adsorbed °OH increases O2 formation and thus highlights the significance of adding oxidizing agents to improve the overall oxidation efficiency.

Table 2 General chemical reactions in the direct anodic oxidation

On the other hand, oxidizing agents including chlorine (Cl2), hypochlorite ion (OCl), hydrogen peroxide (H2O2), ozone (O3), and peroxodisulfate (O8S22–) are commonly used as mediators in indirect anodic oxidation (Canizares et al. 2002, 2005). Chlorine and hypochlorite are usually employed to remove oxidizable pollutants as oxide electrodes are quite active in terms of Cl2 formation (Feng et al. 2003; Bersier et al. 2008). However, the application of oxidizing agents during indirect anodic oxidation can produce mutagenic and carcinogenic by-products [organic chlorinated intermediates (RCl)] (Bergmann and Rollin 2007; Maljaei et al. 2009). The reactions below depict the organic pollutants (R) degradation mechanism during indirect anodic oxidation with chlorine (Table 3; Eqs. 18–22) (Mook et al. 2012):

Table 3 General chemical reactions in indirect anodic oxidation

Apart from removing organic pollutants, direct and indirect anodic oxidation are also found to be effective in removing both free ammonia (NH3) and ionized ammonium (NH4+) from wastewater (Table 4). Ammonia removal through direct anodic oxidation may occur at the electrode–liquid interface (Kapałka et al. 2010), while ammonia can also be removed via indirect oxidation (Anglada et al. 2009). However, the mechanism of ammonia removal through electrooxidation has not been fully explored. At alkaline conditions (pH > 9), anodic adsorption of NH3 takes place in the reaction zone nearby the electrode surface and is oxidized directly to nitrogen gas (N2) through a three-electron exchange, whereas at acidic conditions (pH < 7), although the dominant nitrogen species exist as NH4+ in liquid, it is difficult to mineralize the ammonia ions. Considering this, Gerischer and Mauerer (1970) suggested an ammonia removal mechanism which is now widely accepted by researchers. According to their suggested mechanism, deprotonation of NH3 is done by hydroxide (OH) in three steps: generation of H2O molecule and release of electron → absorption of M(°NHa) and M(°NHb) → formation of N–N (dimeric) species (Eqs. 23–26). The dimeric nitrogen species finally deprotonated to N2, desorbed, and then released (Eq. 27). Studies reported that the deprotonated M(°N) formed during this process is poisonous and can cause a blocking effect at the active sites in electrode surface (Bonnin et al. 2008).

Table 4 General mechanism of ammonia removal in electrooxidation process

Furthermore, the ammonia from waste streams may also be removed by indirect oxidation via generation of hypochlorite (HOCl) during anodic oxidation of Cl (Cabeza et al. 2007; Zhang et al. 2010; Panizza and Martinez-Huitle 2013). Li and Liu (2009) mentioned that, due to slow indirect oxidation of °OH, ammonia removal during the treatment is mainly attributed to the indirect oxidation of HOCl. The overall ammonia removal mechanism during indirect oxidation is depicted in Eqs. 28–32. The oxidation of chloride ions (Cl) forms HClO which reacts further with free NH3 or NH4+ through breakpoint chlorination to generate chlorinated by-products of ammonia. The derivatives are hydrolyzed further and produce completely oxidized products such as N2, H2O, Cl, and H+. However, nitrogen trichloride (NCl3) and nitrate (NO3) as intermediates and products, respectively, may be formed depending on the pH and ionic properties of the wastewater (Jafvert and Valentine 1992; Chiang et al. 1995; Li and Liu 2009). In general, the electrochemical reactions in an electrooxidation process mainly rely on the experimental conditions, and more precisely, the characteristics of the electrodes used during the treatment. Electrochemical oxidation can further be advantageously coupled with conventional biological livestock wastewater treatment processes. Hence, further studies can be directed toward evaluating the performance of these combined processes.

Electro-disinfection

Disinfection is one of the most commonly used wastewater treatment processes for the efficient removal of various pathogenic microorganisms. Among different water disinfectants, the application of chlorine or chlorine compounds has been considered a common approach (Hossain et al. 2014). However, excessive addition of chlorine in the presence of natural organic matter leads to residual carcinogenic chloroform generation in the water (Ghernaout et al. 2011). Although other disinfection techniques, viz. ozonation, advanced oxidation, ultraviolet radiation, and solar photo-fenton, are effective in terms of instant disinfection (Hijnen et al. 2006; Gilboa and Friedler 2008; Lee et al. 2011; Ferro et al. 2015; Al-Qodah et al. 2018; Maniakova et al. 2021), these treatment methods are generally costly and often show reduced treatment efficiency after completion of the process. Rutala and Weber (2008) stated a set of criteria of a perfect disinfectant process which includes removal of a wide range of pathogens within a short time, safe for human health, should not produce harmful by-products during or after treatment, easily applicable, cost-effective, high water solubility, non-corrosive for the equipment, and safe to dispose. Considering the above-mentioned aspect, electrochemical disinfection has gained more attention among researchers in recent years (Simas et al. 2019). The process has advantages including abatement of an extended range of microorganisms, nominal chemical usage, no issues with storage, space-saving, easy operation, and low maintenance cost (Schmalz et al. 2009).

During electrochemical disinfection of wastewater, influent flows through a disinfection chamber equipped with electric current-charged electrodes (Diao et al. 2004). The most influencing parameters of the electro-disinfection process are reactor configuration, electrodes, electrolyte composition, microorganisms, current density, and pH (Chen 2004; Kerwick et al. 2005; Jeong et al. 2007, 2009; Schmalz et al. 2009). According to Mook et al. (2014), the setups of the electrochemical disinfection treatment process can be divided into two groups: (a) direct electrolyzer and (b) mixed oxidants generator. In a direct electrolyzer, oxidants are produced directly from the wastewater using the electrolyzer, while strong oxidizing species such as active chlorine (Cl2, HOCl, and OCl), chlorine dioxide (ClO2), O3, H2O2, and other short-live radicals are fabricated from the supplied concentrated brine solution in the mixed oxidants generator (Diao et al. 2004; Kerwick et al. 2005; Jeong et al. 2007). The reactions that take place in different electro-disinfection processes are exhibited in Table 5 (Eqs. 33–41). In the field of electrochemical disinfection of waste streams, electro-chlorination is regarded as one of the most popular methods. Details of electro-chlorination can be obtained from the study conducted by Cotillas et al. (2013). However, Jeong et al. (2009) reported that active chlorine and reactive oxygen species produced during wastewater oxidation possessed higher disinfection ability than that of electro-chlorination. For water where low or zero Cl concentration is needed, electrochemical production of O3 (electro-ozonation) may serve as an alternative disinfection process. Ozone can be produced during electrolysis applying high O2 overvoltage and current density in a low temperature (Ghernaout and Ghernaout 2010). Kraft (2008) mentioned that a simple ‘sandwich’ electrode assembly configuration comprised of diamond anode/screen-printed electrode/cathode may improve the electrochemical O3 production during the treatment. On the other hand, H2O2, unlike other electro-disinfectants, can be generated at the cathode using the O2 present in wastewater as the reactant (Ghernaout and Ghernaout 2010) (Eq. 41), whereas the application of electrolytically produced H2O2 is still limited due to its lower oxidation potential.

Table 5 Mechanism of the major electro-disinfection processes

For the past few years, wastewater treatment system including livestock has been reinvested from the circular economy perspective, where sustainable use and reuse of water has been considered along with other aspects like biogas production and by-products transformation. Due to the abundance of zoonotic pathogens in wastewater, it is of utmost importance to disinfect the wastewater before reuse and thus highlight the salience of electrochemical disinfection as an eco-friendly and sustainable process.

Factors affecting electrochemical treatment of livestock waste streams

The performance of any electrochemical treatment process depends on the design and operational parameters (Moussa et al. 2017). Design parameters include electrode material, interelectrode gap, electrode arrangement, and mode of operation of the reactor, while operational parameters such as current density or voltage, electrolyte concentration, pH, conductivity, temperature, operation time, and mixing speed play key roles in electrochemical reactions and regulate the performance of the treatment process (Hakizimana et al. 2017; Al-Qodah and Al-Shannag 2017). The detail of the design and operation parameters will be discussed below.

Reactor design parameters

Electrode material

The efficiency of electrochemical treatment is governed by the electrode material. Electrodes used in the treatment process can be classified into two types, including sacrificial electrodes and insoluble electrodes. Sacrificial electrodes are generally fabricated using polyvalent metallic materials. Metals such as Al and Fe are most widely used as sacrificial electrodes in the electrochemical treatment of wastewater to avail the benefits of multivalent ions coagulating properties. Some other metals such as silver (Ag), arsenic (As), barium (Ba), calcium (Ca), cadmium (Cd), cesium (Cs), magnesium (Mg), sodium (Na), silicon (Si), strontium (Sr), and zinc (Zn) can also be used as sacrificial electrodes. In addition, mild steel and stainless steel electrodes are utilized by the researchers due to their ability to perform electrocoagulation and because they are anodically soluble (Sahu et al., 2014). On the other hand, dimensionally stable anodes including SnO2, PbO2, graphite, nickel (Ni), etc., and boron-doped diamond electrodes are insoluble, easily available, and cost-effective (Al-Qodah and Al-Shannag 2017). Insoluble electrodes possess greater chemical resistance and show higher treatment efficiency. Furthermore, Comninellis (1994) proposed a simple classification considering the role of insoluble electrodes on oxygen evolution reaction where carbon, graphite, platinum (Pt), IrO2, and RuO2 were denoted as active anodes and antimony doped tin oxide (Sb:SnO2), PbO2, and boron-doped diamond were posited as inactive anode.

In general, the application of both dimensionally stable and sacrificial electrodes is evident from previous studies in terms of electrochemical treatment of swine wastewater (Table 6), whereas sacrificial electrodes are mostly used in dairy wastewater treatment (Table 7). The majority of the electrolysis of poultry manure studies employed insoluble electrodes such as Ti/Pt-IrO2 and Pt/Ti-IrO2 (Table 8). The physical and chemical properties of the sacrificial and insoluble electrodes are different in nature. While selecting electrodes, characteristics such as ion size and charge, oxidation potential, migration speed in the solution along with cost-effectiveness, regeneration competence, and toxicity or environmental impact are needed to be considered (Gürses et al. 2002; Moreno-Casillas et al. 2007; Al-Shannag et al. 2015). Moreover, as metal hydroxide plays a crucial role in electrochemical treatment, the polarity of the hydroxide bond and its structure and size have a significant effect on the adsorption capability of a specific hydroxide (Ghazouani et al. 2019; Chezeau et al. 2020). It is therefore highly important to consider the above-mentioned properties in the selection of electrode material for designing an efficient electrochemical treatment process. Recently, the application of dimensionally stable electrodes having a layer of precious metal oxide on titanium (Ti/PbO2, Ti/RuO2, Ti/IrO2, and Ti/IrO2–Ta2O5–Pt) in treating livestock waste streams has increased in comparison with other electrodes because of their high resistance against corrosion and conductivity. In addition, although not evident the performance of 3D electrodes fabricated from nanomaterials can also be tested in the electrolytic treatment of livestock waste streams. Most of the studies until now were conducted in small-scale reactors for comparatively shorter durations, so the performance of different electrode materials in treating livestock waste streams in long runs requires further studies.

Table 6 Studies on electrochemical treatment of swine wastewater
Table 7 Studies on electrochemical treatment of dairy wastewater
Table 8 Studies on electrochemical treatment of poultry manure

Interelectrode gap

The interelectrode gap is an important design parameter that affects the performance of the electrochemical treatment process. In livestock wastewater treatment, most of the studies maintained interelectrode gaps of 1–2.5 cm (Tables 6 and 7). However, a higher interelectrode gap of 6 cm was reported in studies focused on the electrochemical treatment of poultry manure (Table 8) (Yetilmezsoy et al. 2009; Wang et al. 2015b, 2020). During treatment, it regulates the mobility of the ions through electrostatic attraction, influent residence time, and swirling velocity and ultimately influences removal efficiency of the treatment process (Asselin et al. 2008; Nasrullah et al. 2012; Khandegar and Saroha 2013b). The reactions that occurred in the electrolytic reactor are generally inversely proportional to the interelectrode gap (Cho et al. 2010). A narrow interelectrode gap results in the solids coagulation and colloidal materials adsorption on the electrodes, thus affecting the water flow in the reactor (Daneshvar et al. 2004), whereas a large distance between the electrodes will definitely hinder the electrolytic reaction due to a decrease in electrostatic attraction and an increase in ion mobility. The interelectrode gap also determines the amount of energy needed in the electrochemical treatment. A trivial spacing between electrodes results in low power consumption, while an increase in energy consumption is observed with the increase in the interelectrode gap (Bayramoglu et al. 2007). Several studies reported that a distance approximately 1 cm or in the range of 0.5–2 cm can minimize the solution agitation between the electrode and remove pollutants efficiently from wastewater (Chen et al. 2000; Mollah et al. 2001; Kim et al. 2003; Kobya et al. 2003, 2006; Daneshvar et al. 2006; İrdemez et al. 2006; Costa and Olivi 2009; Liu et al. 2009; Wang et al. 2009; Ghahremani et al. 2012; Benazzi et al. 2016; Melchiors et al. 2016; Zakeri et al. 2021).

Another important aspect of having an appropriate interelectrode gap is its influence on the ohmic potential drop or IR drop. The ohmic potential drop indicates the difference in potential needed for transferring the ions through the solution. This drop-in IR takes place due to solution resistance (Vasudevan et al. 2011) and has a significant influence on the reactor performance. IR drop can be expressed as

$$ \eta _{{{{IR}}}} { = }\frac{{{{ID}}}}{{{{Ak}}}} $$
(42)

where I indicates the electrical current (A), D denotes the interelectrode gap (m), A represents the active anode surface area (m2); and k signifies the specific conductivity (mS/m). From Eq. (42), it can be said that an increase in the interelectrode gap increases the IR drop. Hence, the applied voltage should be augmented to uphold a constant current input to the reactor. Therefore, an optimum interelectrode gap should be maintained to prevent the rise in IR drop and thus to achieve maximum removal efficiency of the pollutants during electrolysis. Further studies are still needed to determine the electrode-specific optimal interelectrode gap.

Electrode arrangements

Electrochemical treatment processes are generally comprised of plate electrodes, and the solution (influent) circulates through interelectrode space (Chen 2004). Studies reported that the electrodes in an electrochemical system can be arranged in either monopolar or bipolar systems (Fig. 4) and the influent inside the reactor can circulate in either vertical or horizontal direction. In the monopolar-series arrangements (Fig. 4a), all the anodes are connected with each other, and likewise, all cathodes are also coupled with each other, resulting in identical electric current and stabilizing the voltage. This arrangement shows a relatively low difference in potential as the current is distributed between the electrodes (Moussa et al. 2017). In this configuration, each pair of anode and cathode epitomizes a small electrolytic of equal voltage and additive current. In terms of bipolar-series systems (Fig. 4b), the two outermost anode and cathode (monopolar) are connected to an external electric power supply and internal electrodes are bipolar. The internal bipolar electrodes possess antithetical charges on its two sides. The positive side is for metal oxidation, and the cathodic reaction takes place on the negative side (Mollah et al. 2001; Demirci et al. 2015).

Fig. 4
figure 4

Electrode arrangements (a) monopolar and (b) bipolar. In general, the monopolar arrangement of electrodes has lower removal efficiency and operational cost than that of the bipolar arrangement. Reprinted from Separation and Purification Technology, Vol. 61 (3), Drogui et al., Electrochemical removal of pollutants from agro-industry wastewaters, pp. 301-310, Copyright (2008), with permission from Elsevier

It is evident from the earlier studies on livestock wastewater that the difference in electrode arrangement will lead to contrasting results (Tables 6, 7, and 8). Contrary to bipolar electrode systems, monopolar electrode system requires a lower voltage and a higher current. Hence, while arranging the electrodes response parameters such as yield and efficiency are needed to be considered along with the cost of the electrochemical treatment process. In general, the monopolar electrode arrangement is more beneficial for the studies focused on treatment efficiency and cost management due to its low energy requirement (Naje and Abbas 2013). On the other hand, bipolar arrangement is more suitable if the treatment objective is to obtain the maximum yield (Bayramoglu et al. 2007). However, Laridi et al. (2005) reported a marginally higher treatment cost during electrolysis of liquid swine manure in monopolar electrode arrangement (0.29 USD/1000 L) than the bipolar arrangement (0.24 USD/1000 L). Although the treatment cost in the monopolar electrode system was a bit higher, the cost-effectiveness ratio for both the electrode systems was almost similar. In addition, the pH values of the discharged effluent were close to neutral in monopolar arrangement of electrodes. Therefore, it can be said that energy consumption and treatment objective together with maintenance cost should be given due consideration at the time of electrode arrangement.

Electrode shape and orientation

Very few works have been conducted to evaluate the role of electrode shape and orientation on the performance of the electrochemical treatment process. The rectangular-shaped electrodes are generally used in the electrochemical treatment of wastewater. Some studies used circular and cylindrical geometries and punched-holes-type electrodes (Logan 2005; Tran et al. 2009; Daghrir et al. 2014; Nassef 2014; Guitaya et al. 2015; Khandegar and Saroha 2016; Hakizimana et al. 2017; Al-Rubaiey and Al-Barazanjy 2017; Khandegar et al. 2018; Avancini Dias et al. 2019; Mohammadi et al. 2019). Circular-shaped electrodes embedded in insulation material are commonly used in laboratory-scale studies for kinetic measurements, while in technical applications disk-shaped electrodes are more preferable (Muddemann et al. 2019). On the other hand, punched-holes electrodes possess discharge current and subsequently higher collection efficiency is observed in comparison with the plane electrodes. Such phenomenon is subjected to the higher electric field density at the border of punched-holes electrodes, which is 1.2 times higher than the plane electrodes (Kuroda et al. 2003). Regarding electrode orientation, electrodes in the electrochemical system are generally installed vertically with a few cases of horizontal orientation (Harif et al. 2012). Muddemann et al. (2019) reported that electrodes having expanded metal shape are generally fixed horizontally adjacent to the bottom of the electrochemical reactor. Moreover, Fouad et al. (2009) observed a higher mixing efficiency when electrodes are settled in the horizontal direction in a batch reactor. In the electrochemical treatment of livestock wastewater, rectangular electrodes are mostly used in the vertical orientation; however, the shape and orientation of the electrode should be taken into account at the time of designing the treatment process.

Mode of operation

The electrochemical treatment process is often designed considering a specific purpose. Along with the form of the reactants and products, the operational mode of the reactor is also considered an important design parameter (Walsh and Mills 1994). Holt et al. (2005) classified the operational modes of an electrochemical reactor considering three major aspects, viz. batch versus continuous operation, feed flow direction, and method of aggregated pollutants separation.

Batch system reactors are convenient to study the time-dependent behavior of the treatment process with a constant feed working volume per treatment without any feed and product stream (Fig. 5a) and thus serve as a basis of continuous operation of electrochemical reactors through optimization of the process parameters, whereas continuous systems are known for inherent dynamic operations and stability (Fig. 5b). Hence, it is easy to study the thermodynamic and kinetic considerations using mathematical modeling in the continuous operation mode of electrochemical reactors. Moreover, the effect of influent load on reactor performance can be studied at different flow regimes. The electrode response concerning floc formation and its dissolution in the liquid can also be observed in continuous mode along with electrode passivation and corrosion over time (Mahesh et al. 2006a, b; Petsriprasit et al. 2010). Levenspiel (1998) mentioned that continuous process operation is more beneficial and cost-effective to treat large volumes of wastewater than batch systems. The second aspect considers the direction of feed flow (horizontal or vertical) (Jiang et al. 2002). In the electrolytic treatment of livestock wastewater, generally feed flow is horizontal, while the third aspect deliberates to the process related to the separation process of accumulated flocs. The accumulated pollutants during the electrochemical treatment can be separated using either in situ flotation or precipitation or downstream separation process such as centrifugation (Al-Qodah and Al-Shannag 2017). Not too many studies related to the electrolytic treatment of livestock wastewater have been carried out using continuous operation (Aitbara et al. 2014, 2021; Benazzi et al. 2016; Bassala et al. 2017; Chakchouk et al. 2017; Eulmi et al. 2019; Shim et al. 2020), while most of the studies have been conducted in batches. A few electrochemical studies on continuous operation have also been performed in conjunction with other treatment processes, but mostly on swine wastewater (Liu et al. 2011a; Diaz and Botte 2012; Lahav et al. 2013; Han et al. 2015; Wang et al. 2019b; Shim et al. 2020). Although there is a lack of understanding in the mechanistic perspective of the electrochemical treatment process due to the absence of an appropriate empirical or systematic approach, the selection of operational mode of the reactor during electrolysis of livestock wastewater solely depends on the primary objective of the treatment process.

Fig. 5
figure 5

Reactors used in electrochemical livestock wastewater treatment. (a) Batch reactor used for pollutants removal from dairy wastewater during electrolysis. Reprinted from Journal of Electroanalytical Chemistry, Vol. 775, Davarnejad R. and Nikseresht M., Dairy wastewater treatment using an electrochemical method: Experimental and statistical study, pp. 364-373, Copyright (2016), with permission from Elsevier. (b) Electrochemical removal of pollutants from swine wastewater using continuous flow reactor. Reprinted from Journal of Hazardous Materials, Vol. 180 (1-3), Cho et al., Effects of electric voltage and sodium chloride level on electrolysis of swine wastewater, pp. 535-541, Copyright (2010), with permission from Elsevier

Reactor operational factors

Current density

Current density is a key operational factor that strongly influences the performance of electrochemical treatment of waste streams (Hakizimana et al. 2017). Current density explains the ratio between electric current (I) and effective surface area of the electrode (A) and can be directly manipulated. This operational parameter regulates both the amount of coagulant input and gas bubbles’ generation rates and thus significantly affects the solution mixing and mass transfer at the electrode, simultaneously (Sahu et al. 2014). Hakizimana et al. (2017) reported the amount of electrical energy consumed (P) during electrochemical treatment as a function of operating time (t), potential (U), and electric current (I) (Eq. 43):

$${\text{P}}= \, \underset{0}{\overset{\text{t}}{\int }}{\text{U.I.dt}}$$
(43)

In general, the electrochemical treatment of wastewater can be carried out in two different ways. In the first mode (for electrocoagulation) where sacrificial electrodes are used, the treatment process is conducted by controlling and/or varying the applied current through the electrodes. Current density can be varied as a function of coagulant dosage during electrocoagulation which is dependent on the amount of electricity that passed through the treatment solution. However, in the second mode (for electrooxidation and electro-reduction processes) where insoluble electrodes are employed, mainly cell voltage is controlled (Ruotolo and Gubulin 2011). It is worth mentioning that applying a very high level of current could initiate secondary reactions and ultimately decreases the treatment efficiency by reversing the colloidal charges and redispersing them (Harif et al. 2012). This phenomenon can also reduce the lifetime of electrodes. Harif and Adin (2011) developed a conceptual model to predict the floc evaluation rate and structure under different applied currents (Fig. 6). Moreover, Liu et al. (2010) mentioned that the influent pH, temperature, and flow rate can influence the optimal current density of a treatment process and consistently encompasses a trade-off between operational costs and effective use of sacrificial electrodes. The current supply during electrochemical treatment limits the release amount of Al3+ or Fe2+ ions from the respective electrodes. Sahu et al. (2014) suggested that the current density should be maintained between 2 and 2.5 mA/cm2 with some periodical cleaning of electrode surface for the efficient and longer operation of an electrochemical treatment process without any major maintenance. However, in terms of electrochemical treatment of livestock wastewater a wide range of current density has been reported (Tables 6, 7, and 8). For sacrificial electrodes, the current density varied between 0.5 and 56 mA/cm2, while a current density of as low as 0.004 mA/cm2 was reported for insoluble electrodes (Won et al. 2016). Further studies can be done to determine electrode-specific optimal current density for a particular livestock waste stream.

Fig. 6
figure 6

Conceptual model for floc evaluation rate and structure prediction under high and low applied current situations. Along with affecting the surface charge of the generated stable sweep flocs, the amount of applied current governs the formation and size of flocs in a colloidal suspension via maintaining a subtle balance between the precipitates of metal hydroxide precursors at the early stages of the treatment process and generation of bubbles in the solution. The surface charge of the flocs also plays an important role in determining the precursor particles bonding strength, collision efficiency, and floc structure. Reprinted from Water Research, Vol. 45 (18), Harif T. and Adin A., Size and structure evolution of kaolin–Al(OH)3 flocs in the electroflocculation process: A study using static light scattering, pp. 6195-6206, Copyright (2011), with permission from Elsevier

Electrical conductivity

The higher ionic strength results in an increment in current density in the same cell voltage, or an increase in influent electrical conductivity at a constant current density decreases the cell voltage (Song et al. 2002; Kobya et al. 2003). Therefore, it is essential to examine the effect of influent electrical conductivity on pollutants removal in the electrochemical treatment of waste streams. The type and concentration of electrolytes are the main determinants of influent conductivity in a treatment process. Different types of salts such as sodium chloride (NaCl), barium chloride (BaCl2), potassium chloride (KCl), sodium sulfate (Na2SO4), and potassium iodide (KI) have been added as electrolytes during the treatment process. NaCl is the most commonly used electrolyte to increase electrical conductivity. The addition of NaCl in a treatment process provides an abundant number of Cl that produce Cl at the anode and instantly form HOCl by reacting with water. The formed HOCl then reacts with NH3 present in the solution and produces N2 gas. Moreover, NaCl significantly minimizes the antagonistic effect of other anions like bicarbonate (HCO3−) and sulfate (SO42−) which can decrease the current efficiency by promoting calcium ion (Ca2+) and magnesium ion (Mg2+) deposition and oxide layer formation (Chen 2004). Holt et al. (2005) recommended that for effective and efficient electrochemical treatment of wastewater, Cl concentration should be maintained well over 200 mg/L (0.02%). Furthermore, the production of Cl during electrochemical treatment can also contribute to water disinfection. Future studies need to ascertain an optimum dose of electrolytes for efficient operation of electrochemical livestock wastewater treatment processes.

Temperature

Temperature is another process parameter that regulates the pollutant removal efficiency in the electrochemical treatment of waste streams (Sahu et al. 2014). However, none of the studies related to electrolysis of livestock wastewater have studied the effect of temperature on pollutant removal. Electrochemical treatment of livestock wastewater is generally performed at room temperatures (from 18 to 27 °C) (Ghahremani et al. 2012; Valente et al. 2012; Aitbara et al. 2014; Rahman and Borhan 2014; Han et al. 2015; Benaissa et al. 2016; Huang et al. 2018b). Han et al. (2015) found that minor fluctuations in temperatures (20.8 ± 3.4 °C) did not have any significant effect on turbidity removal from anaerobically digested swine wastewater. Vasudevan et al. (2009) studied the phosphate removal from high-strength synthetic wastewater through electrochemical treatment at different temperatures ranging from 20 to 60 °C and reported a decrease in removal efficiency at a low temperature (20 °C). They also mentioned that a decrease in the dissolution rate of the sacrificial anode at low temperatures might lead to a reduction in phosphate removal efficiency. Although it is well known that an increase in temperatures augments mass transfer and collision kinetics of the particles, Katal and Pahlavanzadeh (2011) observed a decrease in chemical oxygen demand (COD) and phenol removal efficiencies in electrochemical treatment of paper mill wastewater. They stated that such phenomena occurred due to the constriction of the large pores of aluminum hydroxide (Al(OH)3) gel at a high temperature. This constriction results in dense flocs formation, which are deposited on the electrode surface rather than floating in the system (Chen 2004). Such contradictory results necessitate the significance of studying the role of temperature in the electrochemical removal of pollutants from livestock wastewater. Further studies should be focused on the effect of temperature on pollutants removal during electrolysis of livestock wastewater, specifically increasing the temperature to enhance chemical reaction.

pH

The initial pH of the influent is an important operational parameter that affects the performance of the electrochemical treatment of wastewater. The pH regulates the ionic conductivity of the wastewater along with influencing the electrode dissolution and OH speciation and controls the zeta potential of colloidal particles during electrolysis (Sahu et al. 2014). In fact, the type and amount of coagulant released to the influent are governed by the OH speciation which ultimately determines the coagulation pathway. The coagulation mechanism explains the interaction between coagulant and pollutant particles in an electrochemical treatment. Therefore, it is important to maintain an optimum pH to achieve maximum removal efficiency of the pollutants during the treatment process. Although a theoretical perspective explains the relationship between pH and treatment efficiency of the electrochemical process, at acidic pH metal cations and ion-complexes in wastewater neutralize the superficial charges of colloidal particles, and a reduction in solubility can be observed. On the other hand, cations and ion-complexes are fully hydrolyzed to produce precipitates (amorphous hydroxides) and lead to adsorption/interparticle bridging and sweep coagulation at neutral or slightly alkaline pH (5–9) (Lourinho and Brito 2021). During electrolysis, livestock wastewater using sacrificial electrodes, particulate, and dissolved organic matter removal process can be explicated by the latter mechanism (Jiménez et al. 2012; Marriaga-Cabrales and Machuca-Martínez 2014). Hence, the efficacious electrochemical livestock wastewater treatment can be performed at a pH range of 6–8 (Tak et al. 2015). Depending on the type of wastewater and target pollutant, however, this range should be experimentally optimized.

Treatment time

Another significant operating factor in the electrolysis of wastewater is treatment time. According to Faraday’s law, theoretically, the duration of the experiment influences the amount of electrode dissolution and cation production from the electrodes during the electrochemical treatment process (Şengil and Özacar 2006; Drouiche et al. 2009). Destabilization and accumulation are the two major processes involved in electrolysis (Bazrafshan et al. 2012). The first step is generally short, while the second one requires a relatively long time. As the treatment time increases, both the electrode and energy consumption increases along with the treatment and maintenance cost which indicates the significance of the treatment duration (Tir and Moulai-Mostefa 2008). Moreover, electrolysis time also governs the treatment efficiency of the process by regulating the current density and pH of the influent (Abdel-Gawad et al. 2012). The mixing of influents in the reactor is also affected by the electrolysis time (Tak et al. 2015). With the increase in reaction time, hydrogen bubble production at the cathode intensifies. A rise in bubble production improves the influent mixing capacity and enhances the cell flotation ability, floc formation rate, and growth of aggregates and, consequently, escalates the removal efficiencies of the pollutants (Mouedhen et al. 2008; Uğurlu et al. 2008; Zaroual et al. 2009; Kabdaşlı et al. 2012). In the case of electrochemical treatment of swine and dairy wastewater, treatment durations between 30–90 and 30–120 min, respectively, were found to be sufficient when sacrificial electrodes were used, while a much higher treatment time was reported by the studies conducted with dimensionally stable electrodes. Studies also reported the phenomenon of time-dependent pollutant removal equilibrium (Laridi et al. 2005; Han et al. 2015). Therefore, longer reaction times may improve removal efficiency during electrochemical treatment until achieving equilibrium.

Mixing speed

Moderate mixing speed is generally employed to maintain steady conditions, restrict concentration gradient formation, and increase the mobility of the ions generated from anodic oxidation inside the electrochemical reactor during electrolysis (Naje et al. 2017). Proper mixing of influent also increases the mobility of the ions generated from anodic oxidation and attribute to early floc formation; consequently, the recovery efficiency of the pollutants improves. However, an optimal mixing speed should be maintained during the treatment process as flocs can collide and degrade if higher mixing speed is applied and ultimately hinders the process performance (Bayar et al. 2011; Khandegar and Saroha 2012, 2013a, 2014; Lekhlif et al. 2014; Khaled et al. 2019). In addition, a lower mixing speed can decrease the removal efficiency of the pollutants at a specific time due to reduced ion mobility. It is worth mentioning that mixing speed in electrochemical treatment of livestock wastewater has been rarely optimized. Bhushan and Kulkarni (2016) performed electrochemical treatment of dairy wastewater in batches using mixing speeds of 50, 100, 150, and 200 rpm. They reported the mixing speed of 150 rpm as an optimal for efficient removal of COD and biological oxygen demand (BOD). During electrochemical treatment of livestock wastewater, mixing speeds were commonly varied from 50 to 300 rpm, whereas higher mixing speeds of 500 and 800 rpm were also found in the existing literature (Tchamango et al. 2010; Borbón et al. 2011; Benaissa et al. 2016; Majlessi-Nasra et al. 2020). The information presented above thus highlights the significance of optimizing mixing speeds for efficient removal of pollutant from livestock waste streams.

Pollutant removal from livestock waste streams by electrochemical treatment

Reactor design and operational conditions are the determining factors governing the pollutants removal efficiency from livestock waste streams, which is apparent from past studies. Despite using the same electrode material, differences in design and operational parameters lead to significant variations in the process performance. Summary of the studies on the electrochemical treatment of livestock wastewater for the past two decades is presented in Tables 6, 7, and 8.

In the case of swine wastewater, the majority of the studies used laboratory-scale batch reactors, while continuous operations were generally performed in association with other treatment technologies (Liu et al. 2011b; Diaz and Botte 2012; Lahav et al. 2013; Mores et al. 2016b; Wang et al. 2019b). Han et al. (2015) used nanofiltration to reclaim nutrients from swine farm-originated biogas digestion slurry where electrolysis was employed as a pretreatment method. Another study reported the effectiveness of electrochemical treatment as a final polishing treatment of swine wastewater (Shim et al. 2020). The deodorization potential of electrochemical treatment has also been evident from earlier studies (Bejan et al. 2005; Ding et al. 2021). Electrocoagulation and electrooxidation are mainly used to treat swine wastewater electrochemically (Table 6). During electrocoagulation of swine wastewater, based on operational conditions COD, BOD, total organic carbon (TOC), soluble total organic carbon (STOC), ammonia nitrogen (NH3-N), and total phosphorus removal efficiencies generally varied in the range of 65.2–80, 50–87.3, 69–85, 94–96.1, 56.3–100, and 78.2–100%, respectively. Regarding NH4+, total nitrogen, orthophosphate, and color, the removal efficiencies were found to be 87, 61, 96, and 97%, respectively. However, lower removal efficiencies as low as 10–11.5% have also been observed for BOD, total nitrogen, and NH4+ (Mores et al. 2016a; Chen et al. 2021a, b). On the other hand, electrooxidation demonstrated much effective (around 90–100%) removal of pollutants from swine wastewater. Furthermore, effective removal of microorganisms from swine wastewater via electro-disinfection has been described in studies carried out by Bejan et al. (2007), Simas et al. (2019), and Shim et al. (2020). Considering the removal efficiencies of the pollutants, electrooxidation of swine wastewater appeared as an efficient treatment technology.

In the electrochemical treatment of dairy wastewater, most of the studies employed electrocoagulation to remove pollutants from the waste streams. Studies showed that COD, BOD, TOC, total nitrogen, total phosphorus, turbidity, and color removal efficiencies usually lie in the range of 70–98, 78–97.9, 60–81, 81–100, 81–98, 90–100, and 87.5–94.9%, respectively, depending on the experimental conditions (Table 7), whereas Smoczynski et al. (2013) and Chezeau et al. (2020) found lower turbidity (40%) and total nitrogen (10%) removal efficiencies, respectively, in their studies. Although limited studies applied electrooxidation technology for treating dairy wastewater, due to higher effectiveness and ease of application, control electrooxidation processes seem to gain more attention recently (Markou et al. 2017). Electro-oxidative removal of COD, BOD, total phosphorus, turbidity, and color commonly ranged between 75 and 97, 81 and 98, 81 and 98, 84 and 100, and 90 and 95%, respectively (Table 7). Nonetheless, lesser removal of COD (32%), total nitrogen (19%), and turbidity (70%) was also reported in previous studies (Ihara et al. 2006; Stylianou et al. 2020; Turan 2021). None of the studies reported microorganism removal potential of electrochemical treatment in dairy wastewater.

On the other hand, electrochemical oxidation is mainly employed in treating poultry manure (Table 8). All the studies used electrooxidation in combination with microalgae cultivation for removing pollutants from poultry manure except Yetilmezsoy et al. (2009). The study conducted by Yetilmezsoy et al. (2009) employed electrocoagulation for COD removal and decolorization of pretreatment poultry manure. They observed around 90 and 92% of COD and color removal, respectively, from poultry manure using Al electrodes. Although a similar COD removal (86%) was found when using Fe electrodes, the color removal efficiency was reduced to half (46%). On the other hand, Wang et al. (2015a) combined electrooxidation with microalgae cultivation for efficient removal of NH4+, turbidity, total phosphorus, and inorganic carbon as a pretreatment of anaerobically digested poultry manure using Ti/Pt-IrO2 electrodes, and the removal efficiencies ranged from 96.6 to 100%, except TOC (81.5%). Moreover, Ti/Pt-IrO2 electrodes were also found to be effective in removing all the bacteria from poultry manure (Wang et al. 2015a, 2017). On the contrary, Pt/Ti-IrO2 electrodes showed reduced removal efficiency of pollutants during electro-oxidative treatment of poultry manure (Wang et al. 2015b, 2020). Compared to studies on the electrolytic treatment of swine and dairy wastewater, very few studies were found in the available literature that applied electrochemical technologies to treat poultry manure. Therefore, electrochemical treatment of poultry manure still requires further investigation.

Economic perspective

The operating cost of any treatment process is the most important factor that must be taken into account as it determines the potentiality of the process upscaling (Vasudevan et al. 2012; Bazrafshan et al. 2015; Hashim et al. 2017). Electrochemical treatment processes therefore need to be cost-effective to ensure its large-scale applicability as there are many alternatives available for the treatment of high-strength livestock wastewater (Butler et al. 2011). In fact, the fluctuating energy prices worldwide and the utilization of electric current as the main operating parameter may epitomize a serious drawback that can discourage the full-scale application of electrochemical treatment processes (Moussa et al. 2017). Considering this, optimization of the electrochemical treatment process is a crucial step to demonstrate its cost-effectiveness before any large-scale application. Despite numerous publications on the electrolysis of livestock wastewater, systematic studies pertaining to process optimization are generally scarce.

Laridi et al. (2005) compared electrochemical and chemical treatment processes of liquid swine manure. They reported that the cost of electrochemical treatment was less than 0.30 USD/1000 L of swine manure, while a much higher cost (1.64 USD/1000 L) was involved in chemical treatment of swine manure. Based on their analysis and comparison, the electrochemical treatment appeared to be a more cost-efficient and eco-friendly process. Ikematsu et al. (2007) showed a comparison among the operating costs of different treatment methods for treating 1,000 L of swine wastewater. They found that electrolytic treatment of swine wastewater is the most cost-effective one in terms of treatment time and area required for treatment. Subsequently, Geraldino et al. (2015) employed a response surface methodology (RSM) using full experimental planning with three variables (pH, electric current intensity, and electrolytic reaction time) and three levels (+ 1, 0, − 1) to optimize and ascertain the interactions of important process parameters on the turbidity, color, and COD removal efficiency of dairy wastewater. They delineated that RSM was a suitable method for optimizing the operational parameters to maximize the pollutants removal efficiencies along with minimum operating costs. Furthermore, Kuokkanen et al. (2015) reported an operating cost of 0.36 USD/1000L of electrolytic treatment of dairy wastewater. The following equations can be used to calculate the energy consumption and operating cost of electrochemical treatment of wastewater using sacrificial electrodes (Eqs. 4445) (Geraldino et al. 2015):

$${\text{C}}_{\text{en}}=\frac{{\text{U.i.t}} }{\text{V}}$$
(44)

where Cen is the electric energy consumption (kWh/m3), U is the voltage (V), i is the DC current (A), t is the treatment time (h), and V is the volume of treatment sample (L).

$${\text{C}}_{\text{op}}={\text{a.C}}_{\text{en}}+{\text{b.C}}_{\text{el}}$$
(45)

where Cop is the operating cost, a is the energy cost, Cen is the energy consumption, b is the electrode cost, and Cel is the electrode consumption.

Rodriguez et al. (2007) denoted the electrochemical treatment process as a more economically as well as technologically convenient process than that of conventional processes like chemical precipitation. Liu et al. (2011a) conducted an experiment to enhance the recovery of nutrients from swine wastewater through recycling of electrochemically dissolved struvite. They mentioned that the combined total cost of chemical and energy consumption was 11.34 USD/1000 L when electrolytically dissolved struvite was used for crystallization, whereas the cost was 32.40 USD/1000 L during chemical precipitation of struvite. Wang et al. (2019a) also stated that orthophosphate recovery from swine wastewater using struvite precipitation electrolyzer would be more cost-effective and technically superior.

A detailed economic analysis of the electrochemical treatment process is necessary to determine the feasibility of the treatment process and can provide a realistic evaluation in comparison with other available treatment methods. The cost of electrolysis is mainly dependent on energy consumption and electricity price. With the increase in treatment time, the current density and energy consumption increase. The application of a sustainable renewable energy source such as photovoltaic solar cells could significantly minimize the treatment cost (Mook et al. 2014). Further studies on the prospective utilization of renewable energy sources in the electrolysis of livestock wastewater along with optimized operation conditions are therefore needed to develop an economically viable treatment process.

Scaling up

There are factors such as essential, systematic, and successiveness that are needed to be considered to scale up the primary laboratory-scale electrochemical processes to full industrial scale (Al-Qodah and Al-Shannag 2017). Essential factors include the final product, process optimization, transferring the process from the laboratory-scale to the pilot-scale, and finally to the full-scale (Den and Huang 2006). Holt et al. (2005) reported that there is a lack of a systematic approach to scale up the electrochemical treatment process from the laboratory to the industrial scale, whereas recently, a few pilot-scale studies had been conducted on electrolytic livestock wastewater treatment (Shim et al. 2020; Ding et al. 2021). Den and Huang (2006) suggested a framework comprising experimental assessment and model simulation for the electrochemical process scale-up (Fig. 7). In their framework, they mentioned that while scaling up an electrochemical treatment process, the reactor capacity and components in the pilot-scale plant should be geometrically similar to the laboratory-scale process to avoid possible hydrodynamic variation.

Fig. 7
figure 7

Copyright Clearance Center, Inc

Framework for scaling up of electrochemical process based on the experimental observations and model simulation. The framework outlined in the figure can be utilized as a functional tool for the priority assessment of electrochemical treatment process scale-up. Republished with permission of American Society of Civil Engineers (ASCE), from Journal of Environmental Engineering, Den W. and Huang C., volume 132, edition 12 and year 2006; permission conveyed through

Shim et al. (2020) designed, constructed, and operated a pilot-scale novel integrated treatment process for pollutants removal and nutrient recovery from swine wastewater simultaneously. In that integrated process, the electrochemical treatment was performed as a final polishing treatment prior to the discharge of effluent to the natural environment (Fig. 8). The electrochemical reactor used in that study consisted of five electrolytic cells with a total treatment capacity of 833.3 L. Ding et al. (2021) evaluated the applicability of electrochemical H2S mitigation in a pilot-scale field test using laboratory-scale results and observed reduction efficiencies of 84% and 63.5% in hydrogen sulfide (H2S) concentration employing low carbon and stainless steel electrodes, respectively. In both studies, the pilot-scale processes were developed based on the laboratory-scale studies conducted earlier. A recent study on electrochemical treatment of cattle wastewater also highlights the importance of pilot-scale studies in verifying the laboratory-scale data (Stylianou et al. 2020). Results obtained from pilot-scale plants can provide important insights and help develop a better understanding of the treatment process in in situ conditions and thus encourage further full industrial-scale setups.

Fig. 8
figure 8

Pilot-scale swine wastewater treatment process comprised of biological treatment unit, struvite crystallization process, and electrochemical treatment system. Note that the integrated swine wastewater treatment unit applies electrochemical oxidation as a final polishing process. The electrochemical treatment unit decolorizes and disinfects the waste stream prior to dispense into the aquatic ecosystems. Reprinted from Shim et al. (2020) with permission from the multidisciplinary Digital Publishing Institute (MDPI) under an open access Creative Commons CC BY 4.0 License

Conclusion

High polluted livestock waste streams are known to have a deleterious effect on the environment. For the past couple of decades, treatment of livestock wastewater using electrochemical processes has attracted researchers around the globe. Electrocoagulation and electrooxidation are the commonly employed electrochemical techniques in the field of livestock wastewater treatment, while electro-disinfection is applied as a polishing treatment. Pollutants removal efficiency is mainly controlled by the reactor design and operational factors. Up till now, most of the studies on the electrolytic treatment of livestock waste streams have been conducted in batches at room temperatures (from 18 to 27 °C), while a few studies have been carried out using continuous operation. This review signifies the need of extensive research considering this aspect to make the electrochemical processes efficient and reliable for treating highly polluted livestock waste streams. Moreover, although a few pilot-scale studies are found in the literature, there are no studies on the full-scale electrochemical treatment of livestock wastewater. Multi-parameter optimization of the operational factors based on response surface methodology and artificial neural network, and simultaneous production of hydrogen can help scale up the process and thus prove the effectiveness of electrochemical technologies on the industrial scale. In addition, integration of electrochemical process with biological and/or other treatment technologies either as a pretreatment method or polishing step may further improve its performance and reveal the applicability of the electrochemical treatment processes in the long run. To sum up, based on the evidence presented and discussed in this review, it can be said that electrochemical treatment of livestock waste streams is a promising remedial approach to solve some of the environmental issues faced by the livestock industries.

Conflicts of interest

The authors declare no conflict of interest.