Introduction

For the majority of the world, there exists inadequate wastewater collection and treatment to enable safe transport of the wastewater from industrial and domestic sources to a centralized sewage treatment facility. This absence leads to discharge of untreated, contaminated wastewater into water bodies. For example, a 2015 study estimated that in India, 62% of the total sewage was discharged directly into nearby water bodies.1 Worldwide, it was estimated that almost one-fifth of all urban citizens (over 700 million people) live without an effective toilet, among which 100 million people practice open defecation and 600 million people rely on toilets that do not fulfill minimum requirements of hygiene, safety, or privacy.2 It is further estimated that 37.4% of India’s urban population lack access to safe, private toilets.2 Even in those areas that have toilets, the untreated/partially treated wastewater makes its way, to local water bodies causing a variety of water pollution problems. Inadequate and unsafe discharge of untreated domestic/municipal wastewater has resulted in contamination of 75% of all surface water across India.3 In urban India, 37% of human excreta generated are unsafely disposed, imposing significant effects on public health, loss of working days, and environmental costs, which results in loss of national revenues.3 The cost of inadequate sanitation for India was estimated as $54 billion or 6.4% of the country’s GDP in 2006.4

Distributed water contamination from septage, i.e., from a network of septic tanks, can be counteracted with decentralized treatments. The technology proposed in this study, constructed wetlands with the subsurface flow, have evolved towards direct treatment technology for domestic wastewater in the last few decades.5 The operational and maintenance costs of wetlands are low when compared to conventional treatment systems as they require low or almost no energy input.5 These wetlands are demonstrably effective, with a log10 reduction in bacteria (recorded at 0.5–3).6 A key drawback of constructed wetlands is the inconsistency in pathogen removal efficiency between different types of wetlands, between wetlands of the same design and between runs on same wetlands.7,8,9 Discharge from wetlands tends to require additional treatment. Disinfection of water can be achieved with oxidants, chlorination (chlorine, hypochlorite) and ozonization.10,11 Disinfection chemicals, chlorine, and other oxidants (hypochlorite and hypochlorous acid) can be electrochemically produced in-situ by oxidation of the chloride indigenously present in the wastewater by using dimensionally stable anodes.12 This prevents the need for supply and storage of such chemicals. Electrochemical treatment has also been shown to lower the Biological oxygen demand (BOD), chemical oxygen demand (COD), and nitrogen concentration,13 and has been extensively described for industrial and domestic wastewater for a variety of purposes, including electrocoagulation, electrooxidation, electrodisinfection, electroflotation, and electrosorption.13,14,15,16,17,18,19,20,21,22,23

In this study, we demonstrate a second stage constructed wetland with the vertical subsurface flow in tandem with an electrochemical cell (EC). The EC contains a cation exchange membrane (CEM) to separate flow between the cathode and anode chambers. In the anode chamber, the acidic conditions (5–6) and chlorination effectively disinfects the septage.24,25 This novel concept for decentralized wastewater treatment for households and community toilets was developed to treat septic tank effluent, and laboratory, single household (SHH) and community toilet scale.

Results and discussion

Laboratory scale trials

The purpose of the lab scale trials was to test the efficacy of the EC on real septage under different conditions of the flow path (anodic/cathodic disinfectant generation), charge per liter and residence time in holding tank.

The charge needed per volume of neutral wastewater (Table 1) to reach pH < 3 (anodic) and pH > 9 (cathodic) was established as 2880 and 2826 C L−1 (Coulomb per liter) in anodic passage (Abatch) and cathodic passage (Cbatch), respectively (Fig. 1). The target pH was obtained after 70 and 15 min for Abatch and Cbatch, respectively (Table ST1 & ST2). Electrochemical oxidation of water at the anode resulted in oxygen and proton production, with reduction of water at the cathode results in hydrogen gas and hydroxide ions. Protons and other cations migrate through the CEM in order to close the circuit. The presence of the cation selective membrane was crucial to obtain the pH gradient. With respect to disinfection, a log10 reduction in the coliform count in both anode effluent and cathode effluent was observed at pH < 2.7 and pH > 10.2, measured at a count of 5.0 ± 0.8 (Fig. 1). This implies that passage through anode (Abatch) or cathode (Cbatch) can have a similar outcome.

Table 1 Charge requirement for electrolysis to achieve desired pH gradient and percentage reduction of parameters during batch and continuous lab scale experiments
Fig. 1
figure 1

Variation of anode and cathode effluent pH of Abatch (■) and Cbatch (), respectively, with charge and effect of pH change on the coliform count in anode and cathode effluent of Abatch (■) and Cbatch (), respectively

The coliform disinfection observed in the septage at pH < 3 in anolyte is most likely due to the acidic pH in combination with chlorine and reactive oxygen species generation.26,27 Hypochlorous acid penetrates the bacterial cell membrane and damages the bacterial cell internally. Protons destroy the amino-acid bonds in nucleic acids, dysregulate the pH in the cytoplasm and precipitate proteins.28 In the catholyte, coliform removal at pH > 9 was most likely due to inactivation at alkaline conditions potentially in combination with free ammonia (52 ± 4 to 130 ± 4 mg NH3-N/L).

In the anode chamber, the COD reduction was expected to occur due to direct and indirect oxidation of the organic matter at the surface of the anode and in the electrolyte.29,30 Total ammoniacal nitrogen (TAN) removal can occur due to different mechanisms. First, migration of the NH4+ across the membrane into the cathode chamber allows volatilization as ammonia (NH3) at a high pH (e.g., >9).31 Second, The decrease of ammonia is also possibly due to its decomposition by hypochlorite generated from chloride, to produce nitrate and nitrogen gas or/and due to partial decomposition to nitrogen by the OH radicals.32 Finally, ammonium reduction is also possible due to possible direct oxidation of ammonium at the Ti/IrO2 and Ti/RuO2 anode33 (Figure SF1). The ortho-phosphate reduction was low (39 ± 2%), due to sedimentation and/or adsorption at the anode surface.

In the cathode chamber, COD reduction can be associated with coagulation at higher pH and subsequent sedimentation. Total Kjeldahl nitrogen (TKN) reduction was due to the reduction of organic nitrogen (Figure SF2). The increase in the TAN values could be related to the release of TAN during degradation of organic nitrogen, whereas the overall decrease of TKN indicates some possible NH3 volatilization. The decrease in the ortho-phosphate was likely due to local precipitation in the proximity of the cathode caused by a locally high pH, although the precipitate could not be visually/microscopically observed in these experiments.

During the second phase of the batch lab scale tests, passage of the wastewater through one compartment (anode or cathode) was followed by passage through the other electrode compartment (cathode or anode) to neutralize the pH. The amount of charge supplied to achieve the target pH in the anode to cathode configuration (ACbatch) and cathode to anode configuration (CAbatch) was 5004 and 6171 C L−1, respectively (recirculation flow rate = 0.48 L/h). The log reduction in coliform counts achieved by electrolysis during anode to cathode passage (ACbatch) and cathode to anode passage (CAbatch) of septage was 5.0 ± 1.2 and 6.0 ± 1.0, respectively. The energy consumption for the ACbatch and CAbatch mode was 28 and 35 Wh L−1, respectively. The higher energy investment during CA mode relates to higher precipitation leading to increased ohmic resistance. The impact on other parameters is shown in Table 1.

It was observed that COD removal in ACbatch mode was almost double that achieved in CAbatch mode (Table 1, ST3 & ST4), while removal in TKN, TAN, and ortho-phosphate was higher in CAbatch mode. However, the reduction of COD, TKN, and TAN occurs in the anode chamber to a greater extent than in the cathode chamber during the flow (Table 2). Hence, in order to maximize the recovery of nutrients from the disinfected septage and minimize scaling (e.g., P-precipitates), the anode to cathode passage flow pattern appears preferable. With respect to disinfection, either of the two flow patterns could be chosen as the log10 reduction is similar. However, anode to cathode passage flow pattern (AC) is preferable, as there exists an opportunity to hold the septage at acidic conditions (pH < 3), at which the survival of bacteria is least (7.5%) in comparison to survival at alkaline conditions (pH > 9) (66.11%).34 Additionally, the energy consumption for the anode to cathode passage flow mode is low.

Table 2 Reduction in parameters after anode passage with subsequent cathode passage in ACbatch and after cathode passage with subsequent anode passage in CAbatch experiment

Continuous electrolysis of septage (ACcont; 0.48 L h−1; 10.4 mA/cm2) showed a reduction in COD and coliform similar to that seen in ACbatch (Table 1). TAN and ortho-phosphate reduction were significantly higher in ACcont (Table 1 & ST5) and there was no reduction in TKN.

Continuous electrolysis (8–9 mA/cm²; HRTEC = 0.42 h; HRTreservoir = 0.2 h) with AC passage of septage inoculated with Klebsiella pneumoniae, Escherichia coli, Bacillus subtilis, and Staphylococcus aureus in separate experiments (ACcont-spiked) resulted in a log10 reduction of 7.0 ± 4.0, 5.2 ± 2.0, 2.8 ± 2.0, and 8.8 ± 4.0, respectively (Fig. 2). The relatively small reduction of B. subtilis counts may be due to the formation of spores that are resistant to acidic conditions.35,36 The charge density at which the reduction was observed in the colonies of K. pneumoniae, E. coli, B. subtilis, and S. aureus was 3978, 2232, 9936, and 720 C L−1, respectively. B. subtilis showed resistance to treatment even at higher HRTEC of 0.48 and 0.75 h (Figure SF3). However, the survival of B. subtilis through the anode to cathode passage does not hinder the choice of this flow pattern, as the septage is disinfected with respect to the coliform.

Fig. 2
figure 2

Reduction in Klebsiella pneumoniae (■), Escherichia coli (), Bacillus subtilis (▲), and Staphylococcus aureus () colony count with charge

During the helminths experiments, morphological changes in the helminth eggs (loss of egg shape and cell deformation) were observed after 6 h in all cases. The eggs incubated in hypochlorite disinfectant (all pH and concentration combinations), cathode effluent and anode effluent (EChelminths) started to form globules (Fig. 3c), and the eggs content began to seep from some of the eggs (Fig. 3b2,c1,d2), indicating non-viability and decortication. Similar morphological changes were observed in the eggs incubated in septage adjusted to alkaline pH. However, the eggs incubated in septage adjusted to acidic conditions retained their shape (Fig. 3e1,e2) even after the 10th hour of incubation. The helminth eggs were morphologically similar to the control sample indicating that only the acidic conditions of septage do not have a deteriorating effect. Hence, it appears that alkaline conditions (pH > 9) contribute to the inactivation of eggs (i.e., eggs do not transform into mature larva and worms) while acidic conditions (pH ≤ 3) in combination with oxidative species, such as hypochlorite, were responsible for the non-viability of the eggs. Based on these experiments, it was determined that a minimum incubation time of 6 h in septage subjected to anodic oxidation (acidic pH containing free chlorine (0.8–1 mg/L)) is required to inactivate the helminth eggs, and thus the household and community scale (CS) reactors were designed to contain a holding/buffer tank that ensured residence of the anodic effluent for a minimum period of 6 h. Further studies are required to quantify the extent of helminth egg inactivation.

Fig. 3
figure 3

Microscopic photographs (Olympus CKX53) at 40× magnification showing morphological changes in helminths. a Control; b1,b2 anode effluent of EC at 4th and 6th hour; c1,c2 cathode effluent of EC at 4th and 6th hour; d1,d2 hypochlorite solution (1.2%) at 4th and 6th hour; e1,e2 septage adjusted to acidic pH at 4th and 6th hour

Long-term single household field trials

In the long term (60 days), SHH field trials, continuous treatment of septage (composition in Table 3) was executed in ACcont mode. Here, the household scale electrochemical reactor showed a very low log reduction of 1.6 ± 0.4 in the coliform count on average over an analysis period of 12 days. A reduction in COD of 21 ± 0.5% was observed vs. 70 ± 4% in the lab scale test (ACcont) (Table 1). TAN and ortho-phosphate concentrations were both reduced for ACbatch and ACcont while TKN did not decrease (Table 1 & ST6). The membrane and stainless-steel cathode became clogged by calcareous deposits over time (1.2 g Ca2+/day), and an accumulation of an organic layer at the anode side of the membrane was observed. The charge supplied and energy investment to treat 0.144 m3/day of septage was 2712 ± 153 C L−1and 27 ± 4 kWh/m3, respectively. This indicates that the EC by itself, as deployed here, cannot achieve treatment and disinfection.

Table 3 Average wastewater characteristics of the influent septage used for lab scale experiments, household scale trials, and community scale trials

A vertical flow constructed wetland (VFCW) at 0.5 m2 P.E. was introduced between the septic tank and the electrochemical reactor to lower the organic load on the electrochemical reactor. When taking only the wetland performance into consideration, the average COD, TKN, TAN, and ortho-phosphate reduction was 77 ± 8%, 51 ± 11%, 85 ± 5%, and 93 ± 4%, respectively. Average log reduction in CFU was only 1 ± 0.3, showing the inability of a high-rate wetland to significantly decrease bacterial pathogens.

Continuous treatment of septage (0.180 m3 day−1) by the integrated system (wetland + EC in ACcont mode with 1152 C L−1) showed a significant reduction in most of the wastewater parameters and disinfection (Table 4 & ST7). The average decrease in COD, TKN, TAN, and ortho-phosphate concentration over a trial period of 60 days was 84 ± 7%, 45 ± 14%, 84 ± 8%, and 98 ± 1%, respectively for the combined treatment. All the parameters except TKN of the treated water were below the permissible limit for the water’s discharge into inland surface water (Table 4). The log reduction in the coliform count was 6.0 ± 0.4, and the energy consumption in the EC was 16.7 ± 3 kWh/m3.

Table 4 Influent and effluent characteristics of single household EC reactor, single household integrated treatment system, and community scale treatment system

The reduction in COD, TKN, TAN, and ortho-phosphate concentration is principally achieved by VFCW while disinfection occurs in the EC. In a VFCW, organic matter is retained and degraded aerobically (oxygen supplied by the plant roots) in the top layer of the filter media.37 Aerobic conditions also facilitate the nitrification of TKN and TAN to nitrate and nitrites. The nitrate and nitrites remain intact as generally there is no anaerobic conditions in the VFCW.38 Integration of VFCW with the EC reduced the organic and mineral load on the EC, thereby reducing the amount of calcium precipitation (0.06 g Ca2+/day) between the electrodes and the membrane by 59%. Also, the energy investment for the long-term run decreased by 40%. This reduced the frequency of removing the membrane from the reactor for washing. The membrane was cleaned once in 60 days on day 33. The reactor was effectively operated for 2 months continuously after the trial run without replacement of the membrane.

Long-term field trial at community scale

For the long-term (60 days) CS trials (1.3 m3/day, 3660 ± 688 C L−1), a 40 m2 (0.4 m2/P.E.) second stage VFCW was constructed followed by a buffer tank, anodic treatment, holding time, and final cathodic treatment. The average COD, TKN, TAN, and ortho-phosphate reduction over a trial period of 60 days by the VFCW (without an EC) was 79 ± 11%, 33 ± 8%, 58 ± 16%, and 78 ± 6%. The log reduction of CFU was 2.0 ± 0.6, confirming the earlier experiments in which the high-rate VFCW did not remove coliforms. The integrated system showed average reductions of 89 ± 12%, 24 ± 10%, 70 ± 10%, and 85 ± 7% of COD, TKN, TAN, and ortho-phosphate reduction, respectively (Table ST8), which is above the reductions obtained in a similar study on combination of constructed wetlands with photocatalytic ozonation, with the exception of TKN.39 Similar to the results in the SHH integrated system, only the TKN of the treated water was well above the permissible limit. Log reduction in the coliform count by the integrated system was 4.0 ± 1. Maximum and minimum CFU reduction of log 5 and log 2 was observed over a constant current range of 20–35 A (2400–4200 C L−1). The residual free chlorine of the EC effluent was 0.94 ± 0.1 mg/L. The energy requirements for disinfection varied between 11 and 16 kWh/m3 (16 ± 3 kWh/m3).

The organics were mostly removed by the VFCW, similar to the SHH trials, while disinfection was achieved by the EC unit supporting the conclusion that EC disinfection is effective on secondary wastewater effluents,40 albeit at lower levels than observed in the SHH scale reactor. In the EC, calcareous precipitates accumulated over time on the cathode side surface of the membrane while an organic charred layer formed on the anode side surface of the membrane, decreasing the current developed due to increased membrane resistance. The voltage–current behavioral data, recorded over a period of 290 h as shown in Figure SF4, revealed a gradual drop in the current due to increased voltage after 195 h. This increase required cleaning of the EC approximately every 9 days. After 2 cleaning cycles, the membrane showed physical damage, in particular the detachment of the membrane polymer from the cellulosic backbone within the membrane. Whereas the cathodic fouling may be a benefit, as it will consist of inorganic precipitates including phosphates, as evidenced by the decrease in P in the effluent, it also caused a gradual degeneration of the membrane. The fouling on the anodic side surface of the membrane is likely due to sorption of incoming organics. It will thus be key to define operational parameters minimizing membrane damage and investigate a range of membranes. More stable operation could also lead to lower average power consumption.

The CS achieved on average a lower treatment percentage than the SHH. The average energy requirements per m3 of wastewater treated (16 ± 3 kWh/m3) was slightly lower for CS than for SHH and was as low as 11 kWh/m3. At present, the investment and operational costs of the SHH and CS systems are still high due to high energy consumption and the cost of the materials used in this research (CEM and MMO electrodes). As a result, future research will need to focus on lowering the energy costs and material costs.

In conclusion, the most effective operation was observed in the AC flow pattern through the EC during electrolysis, rather than the CA flow pattern. The former achieves a higher percentage reduction in wastewater parameters (COD, TKN, TAN, and ortho-phosphate concentration), and achieves disinfection of coliforms and helminth eggs. The disinfection of water is due to the combined effect of acidic pH and the oxidative species generated at the anode during electrolysis. The minimum incubation time of septage subjected to anodic oxidation (acidic pH containing free chlorine (0.8–1 mg/L)) required to inactivate the helminths eggs was 6 h. The integrated SHH and CS treatment systems seem to be promising systems that can be integrated with the existing septic tank for SHHs and the community to provide water treatment and disinfection. Further optimization of the design of the CS EC reactor is needed, together with research into membrane alternatives and operational parameters for the continuous process. Although potential disinfection byproducts (DBP) need to be identified, we anticipate limited production based on earlier work by the Hoffman group41 and the fact that the applied charge in our process was considerably lower than the cases where DBPs were detected.

Materials and methods

Influents and analysis

For the lab and household scale experiments, septage was obtained from a septic tank connected to a SHH toilet (four users) located in BITS-Pilani K K Birla Goa Campus. Sampling and analysis of septage was performed over a period of 4 months during which 25 influent samples were analyzed for COD (closed reflux, colorimetric method), TKN (macro-Kjeldahl method), total ammonia nitrogen (titrimetric method), ortho-phosphate (vanadomolybdophosphoric acid colorimetric method), chloride (Mohr’s titration), free chlorine (DPD photometric method), and coliform forming units (standard total coliform fermentation technique).42

The coliform count was estimated by 10-fold serial dilutions of the sample in saline (0.85%). Each dilution was inoculated in MacConkey broth containing Durham tubes. The tubes were then incubated for 24–48 h at 44 °C. Positive tubes (showing gas production) were selected and the corresponding numbers of coliform were obtained from the most probable number (MPN) tables. As a confirmatory test, the sample from the positive tubes was plated on the MacConkey agar and EMB agar, and incubated for 24–36 h at 37 °C. The number of colonies were then counted.

The viability of helminth eggs prior to and after the experiment was confirmed by microscopic observation.43 The extraction of the eggs from the samples in which they were incubated was done by floatation–sedimentation method.

For full-scale deployment, the wetland was integrated to the CS septic tank (6 m3) located within the BITS-Pilani Goa Campus, and samples were taken once every 5 days and analyzed for the same parameters as described above.

The precipitate from the surface of the stainless-steel cathode in the EC collected after 12 days running of EC reactor alone and after 33 days running of the household scale integrated system was analyzed by SEM. SEM photos and elemental analysis was done by field emission gun scanning microscope (Quanta FEG-250) coupled with energy dispersive spectroscopy (EDAX, Ametek 174422 Smart Insight) operated at 10 kV.

Laboratory scale experiments

A plate-and-frame EC was used as described earlier.44 The anode and cathode chambers had internal dimensions of 8 × 8 × 2 cm3. A CEM (Ultrex CMI7000, Membranes International Inc.) was placed in between the two frames and the two frames were in turn sandwiched between two end plates. An IrOx MMO mesh (8 × 8 cm2) was used as anode (Magneto, The Netherlands), stainless steel mesh (SS 316, 600 Micron, 8 × 8 cm2) was used as the cathode. Power was supplied by a GPS-4303 (GW Instek) DC regulated power supply. Peristaltic pumps (Flowtech-NFP01, India) with flow rate range of 0.6–100 mL/min were used to recirculate sample. Working volume in each chamber was 100 mL.

Initial batch experiments

Initial experiments were executed in batch mode. First, 500 mL septage and 500 mL of 10 mM sodium sulfate solution were recirculated through the anode chamber and cathode chamber, respectively, at a rate of 0.9 L h−1 (Fig. 4). Electrolysis was carried out at constant currents ranging from 0.064 to 1.2 A for 45 min, with current doubled at each 5 min interval. The relationship between current and voltage was established and the development of pH gradient across the membrane confirmed. A similar experiment was performed with 500 mL septage recirculated over the cathode while 500 mL of a 10 mM sodium sulfate solution was recirculated over the anode.

Fig. 4
figure 4

Schematic representation of experimental setup showing recirculation of septage through anode chamber and salt solution through cathode chamber for run Abatch

Batch tests

Batch tests were performed at constant current to investigate the charge needed to achieve a septage pH of <3 and >9 in the anode and cathode, respectively. In the first test (Abatch), 500 mL septage and 500 mL of a 10 mM sodium sulfate solution were recirculated through the anode chamber and cathode chamber, respectively (Fig. 4). In the next test (Cbatch), 500 mL septage and 500 mL of a 10 mM sodium sulfate solution were circulated through the cathode chamber and anode chamber, respectively. The batch was run until the desired pH was reached and batch time for Abatch and Cbatch was 80 and 30 min, respectively. Samples were collected for analysis at regular intervals. The circulation flow rates in all test were constant, mentioned previously. The current density range Abatch and Cbatch was 7 ± 1 and 31 ± 1 mA/cm2, respectively.

In the second phase of batch electrolysis experiments, experiments were carried out at a constant voltage (20 V, 8.7–12.7 mA/cm2). For a first test (ACbatch), 6 L septage was recirculated (0.48 L h−1) by first passing through the anode chamber and then through the cathode chamber via a reservoir (working volume—0.2 L) (Fig. 5). The pH change of the anode chamber effluent and cathode chamber effluent was noted and samples of both effluents were collected at regular time intervals (2 h) and analyzed (COD, TKN, TAN, ortho-phosphate, and coliform). The duration of the batch was 14 h. A similar experiment was repeated with septage (0.7 L) first passed through cathode and then through anode chamber via the reservoir at same recirculation rate (0.48 L h−1) and current density of 12.5 mA/cm2 (CAbatch). The duration of a batch was 2 h and sampling done at every 15 min.

Fig. 5
figure 5

Schematic diagram of setup showing flow path of the septage during experiment ACbatch

Continuous experiments

In the next set of experiments, continuous electrolysis experiments were conducted. In the first continuous experiment (ACcont), septage was passed first through the anode chamber and then through the cathode chamber via reservoir (working volume—0.1 L) at 0.48 L h−1 (HRTEC = 0.42 h, HRTreservoir = 0.2 h). Electrolysis carried out at constant current (0.5 A; 10.4 mA/cm2). Influent and effluent samples were collected at every 1 h for 9 h and analyzed for COD, TKN, TAN, ortho-phosphate, and coliform.

Continuous spiked septage experiments

In the next set of continuous experiments (ACcont-spiked), septage inoculated and incubated with pathogens (B. subtilis, E. coli, K. pneumoniae, S. aureus) prior to electrolysis was used as influent. To obtain the spiked septage, the culture was pre-grown in specific media (Nutrient broth, EMB broth, MacConkey broth and Mannitol salt broth for B. subtilis, E. coli, K. pneumonia, and S. aureus, respectively) and incubated overnight at 37 °C in a shaker. The OD600 of the culture was determined with spectrophotometer (Merck, Spectroquant Pharo 100), and used to adjust inoculum density to 5 × 109 cells mL−1. This spiked septage (containing single culture) was then subjected to electrochemical treatment. The effluent sample was collected at regular intervals and analyzed for colony count to determine disinfection. The samples collected were serially diluted in saline solution and spread plated on the agar plates with media specific to the culture. Non-diluted sample was also plated. After incubation, the plates were observed for the colonies and counted using colony counter. Independent experiments were conducted for each spiked septage. The experiment was repeated for electrolysis of septage spiked with B. subtilis at HRTEC = 0.5 and 0.8 h. All spiked septage electrolysis carried out at 20 V constant voltage, variable current 0.3–0.7 A and flow rate—0.48 L h−1.

Helminths experiment

The septic tank water was analyzed for helminths presence. Due to the low number of helminths in this wastewater, the eggs (Ascaris suum) were ordered from RTI International (NC, USA) and used to conduct the experiments to validate their inactivation by EC. The viability of the eggs was assessed before each experiment and characterized as potentially viable and non-viable.45 The 0.2 µl egg suspension (approx. 100 eggs) was inoculated in anode effluent (5 mL; pH 2.7) and cathode effluent (5 mL; pH 10.4) obtained after electrolysis of septage at constant current (0.6 A). The pH of anode and cathode effluent after inoculation were 3.0 and 10.5, respectively. The eggs were allowed to stay in the mentioned fluids for 10 h. Sampling was done every hour and samples were observed microscopically for morphological changes in the eggs to qualitatively determine their viability. Tap Water was used as a control. The procedure was repeated with the septic tank water whose pH was adjusted to acidic (2.5) and alkaline (11) manually with 0.05 M H2SO4 and 0.1 M NaOH respectively and also septage added with hypochlorite disinfectant (household) at different concentrations and respective pH (0.02 M; 11.8, 0.17 M; 12, 0.34 M; 12.2, 0.51 M; 12.4, 0.68 M; >12.5, 0.85 M; 13).

In another helminths experiment (EChelminths), septage spiked with helminths eggs was filled in the anode (100 mL) and cathode chamber (100 mL) of the lab scale EC and electrolyzed at constant current (0.6 A) for 30 min. The sample from both the chambers were collected after electrolysis. Helminths eggs in the collected samples were extracted by floatation/sedimentation method. Extracts containing eggs were allowed to stay for 10 h and observed every hour microscopically.

Household scale treatment system

A SHH treatment system was set up, consisting of a single toilet, septic tank (1500 L), 2nd stage VFCW (3 m2 area), buffer tank (1200 L), and electrochemical reactor with buffer tank (117 L). The electrochemical reactor consisted of a cylindrical buffer tank (100 L) on top of which the EC was mounted. The same materials as previously were used for the electrodes and membrane (30 × 15 cm2). The CEM was held by a frame built in within the reactor dividing the cell into 2 chambers of equal volume (8.5 L). Distance between the electrodes was ≤5 mm. The cylindrical buffer tank had baffles that prevented dead pockets and water short-circuiting and ensured the stipulated retention of water (Fig. 6, SF5). The VFCW was designed according to the second stage of classical French two stage VFCW (Table 5, Figures SF6 and SF7).37 The wetland planted with Canna indica, was operated for 5 days prior to its integration to the EC, during which septage was passed daily through the wetland (0.2 m3 day−1 approx.). The septage was distributed evenly over the wetland surface and allowed to percolate from the top to the bottom of the filter media, to allow the growth of the plants and to initiate the formation of microbial community in the upper layer of the filter media. The overall water flow path was from the toilet into the septic tank, into the VFCW, to the buffer tank, to the EC reactor and finally discharged for use.

Fig. 6
figure 6

Schematic cross-sectional diagram of the single household electrochemical reactor showing upper reactive cell, bottom holding tank with baffles, and the wastewater flow path

Table 5 Filter media design details showing the size of particles for the vertical flow constructed wetland

Sampling was done before and after treatment (VFCW and EC) and analyzed. Electrolysis was carried out at constant current (average = 4.4 A). Feed to the EC from the reservoir was intermittent, 7.5 L h−1 for 30 min in an hour with a peristaltic pump (NFP-03, Flowtech, India with flow rate range 0.8 mL to 3.6 L min−1) otherwise, at this small scale the pumps would suffer from clogging. The HRT in wetland and EC reactor was 6 ± 2 min and 15 h (2 h in EC, 13 h in buffer tank) respectively.

Community scale treatment system

A CS treatment system was a direct scale-up of the above mentioned SHH treatment system setup in BITS-Pilani Goa Campus premises, but with a considerably modified EC. The system consisted of a septic tank (20 m3), VFCW (40 m2 area), 2 reservoirs (2 m3 each), electrochemical reactor with holding tank (54 L EC + 1200 L). The CS EC reactor was redesigned as a flat plate system with external holding tank/sump (Figure SF8 & SF9). The EC consisted of three frames, two outer frames with one lateral side closed and one central frame with both lateral sides open. The central frame was sandwiched on either side by outer frames. Inner dimension of each chamber is 30 (L) × 7 (W) × 90 (H) cm3. The central frame was separated from the outer two frames on its either side by CEM (Ultrex CMI7000, Membranes International Inc.) thereby creating three chambers (two outer anode chambers and one central cathode chamber) of internal dimension 30 × 7 × 90 cm3 giving volume of 18.9 L each. Every chamber had an inlet at the bottom and outlet at the top on opposite side walls of the frame. Total volume of the reactor was 54 L. Two stainless steel plates (29 × 89 cm2, thickness—1.5 mm) in the central chamber and one IrOx MMO mesh (29 × 89 cm2, thickness—1.5 mm) in each outer chamber formed the cathode and anode electrode, respectively. The sump/holding tank which was connected through piping to the main EC is a simple baffled rectangular tank (1200 L) that ensures retention of water for a stipulated time in the holding tank (Figure SF8).

The explained system was connected to two blocks of toilets (24 toilets in total) in the male student hostel located within the BITS-Pilani Goa Campus. The wetland was operated 1 month prior to its integration to the CS EC reactor. The system was run continuously (1.5 m3/day) with induction motor pump with manual flow rate control and sampling was done after every stage in the treatment system, EC was run in constant current mode (average = 30 A). Sampling was done once in 3 days for 60 days. The wetland was never backwashed for both the integrated systems (SHH and CS).

Data availability

All data generated and analyzed during this present study are included in this article (and its supplementary information file).