Anaerobic Membrane Bioreactors (AnMBRs) for Wastewater Treatment: Recovery of Nutrients and Energy, and Management of Fouling

: Anaerobic membrane bioreactor (AnMBR) technology is emerging as an alternative to conventional anaerobic treatment due to its complete biomass retention, short start-up time, high efﬂuent quality, and small footprint. This paper provides a general overview of the application of AnMBRs for industrial and municipal wastewater treatment. The potential beneﬁts of AnMBRs are discussed, such as the degradation of organic matter for energy production, the concentration of nutrients for subsequent reclamation, or the effective removal of organic contaminants for water reuse. To explore the technology for energy-neutral wastewater treatment, the recovery of methane, hydrogen, and ethanol is summarized, highlighting the problems of dissolution of methane in permeate and competition between sulfate-reducing bacteria and methanogens for organic matter. Recovery of water and nutrients for reuse, e.g., for algae production, is reported. Since membrane fouling remains a challenge in membrane operation and leads to increased operation and maintenance costs, methods to reduce fouling are highlighted. Future research prospects related to the application of AnMBR in resource recovery plants and fouling management are emphasized.


Introduction
Anaerobic membrane bioreactors (AnMBRs) combine anaerobic biological processes and solid-liquid separation by membranes.Complete biomass retention can be achieved by using microfiltration (MF) or ultrafiltration (UF) modules with membranes made of polymers, ceramics, and metals.This allows solid retention time (SRT) long enough for slow-growing methanogens to develop.As a result, the start-up time of AnMBRs can be several times shorter (<2 weeks) than in conventional anaerobic reactors that retain biomass in the form of granules or biofilm [1].
In AnMBRs, submerged configuration (Figure 1A) and external (side-stream) configuration (Figure 1B) are used.In the submerged configuration, where the membrane is located inside the reactor, less energy is consumed and operating conditions, including permeate flux, are milder due to lower velocities.The external configuration with integrated membrane filtration in an external loop provides higher fluxes and easier membrane replacement; however, energy consumption is higher and biomass activity may be reduced due to the high cross-flow velocity.Ten of eleven pilot-scale AnMBRs used systems consisting of an anaerobic reactor and an external membrane tank [2].In conventional AnMBRs, the membrane modules are accompanied by bioreactors such as a completely stirred tank reactor, an up-flow anaerobic sludge blanket reactor, an expanded granular sludge bed reactor, or an anaerobic fluidized-bed membrane bioreactor [3].The main factor limiting the widespread use of AnMBRs on a large scale is membrane fouling, which leads to flux decline.Due to the high viscosity, high mixed liquor suspended solids (MLSS) concentration, long SRT, and often long hydraulic retention time (HRT) required to treat complex wastewater, membrane fouling is more prevalent in AnMBRs than in aerobic MBRs.As a result, permeate flux in AnMBRs (5-12 L/(m 2 •h)) is significantly lower than in aerobic MBRs (20-30 L/(m 2 •h)) in full-scale facilities [4,5].In general, the reasons for membrane fouling are the deposition of sludge particles and the adsorption of dissolved organic matter on the membrane surface.This decreases the permeability of the membrane, increases the frequency of membrane cleaning, and thus shortens the membrane life.Fouling in AnMBRs is affected by (1) sludge properties (MLSS, the amount of soluble microbial products (SMP) and extracellular polymers (EPS), particle size distribution, microbial species composition), which is influenced by substrate characteristics (mainly soluble/particulate COD) and bioreactor operation (SRT, organic loading rate (OLR), food to microorganism ratio (F/M), temperature); (2) membrane properties (material, pore size, hydrophobicity, surface charge, roughness); and (3) membrane operation (flux, cleaning, shear rate) [6].Among the major energy-consuming activities in AnMBRs (operation of the biological reactor, fouling control, liquid circulation between and within reactors, operation of pumps), energy expenditure to fouling control is considered the largest energy consumer in AnMBRs [2,7].For example, over 70% of the energy requirement is used for fouling control when biogas sparging is used [2].Therefore, The main factor limiting the widespread use of AnMBRs on a large scale is membrane fouling, which leads to flux decline.Due to the high viscosity, high mixed liquor suspended solids (MLSS) concentration, long SRT, and often long hydraulic retention time (HRT) required to treat complex wastewater, membrane fouling is more prevalent in AnMBRs than in aerobic MBRs.As a result, permeate flux in AnMBRs (5-12 L/(m 2 •h)) is significantly lower than in aerobic MBRs (20-30 L/(m 2 •h)) in full-scale facilities [4,5].In general, the reasons for membrane fouling are the deposition of sludge particles and the adsorption of dissolved organic matter on the membrane surface.This decreases the permeability of the membrane, increases the frequency of membrane cleaning, and thus shortens the membrane life.Fouling in AnMBRs is affected by (1) sludge properties (MLSS, the amount of soluble microbial products (SMP) and extracellular polymers (EPS), particle size distribution, microbial species composition), which is influenced by substrate characteristics (mainly soluble/particulate COD) and bioreactor operation (SRT, organic loading rate (OLR), food to microorganism ratio (F/M), temperature); (2) membrane properties (material, pore size, hydrophobicity, surface charge, roughness); and (3) membrane operation (flux, cleaning, shear rate) [6].Among the major energy-consuming activities in AnMBRs (operation of the biological reactor, fouling control, liquid circulation between and within reactors, operation of pumps), energy expenditure to fouling control is considered the largest energy consumer in AnMBRs [2,7].For example, over 70% of the energy requirement is used for fouling control when biogas sparging is used [2].Therefore, it is important to optimize the fouling reduction methods to make AnMBRs energy efficient.However, since no energy is required for aeration, the energy demand of AnMBRs in secondary wastewater treatment is still low [8].
Due to high effluent quality, energy production, low sludge production, low impact of influent fluctuations on reactor performance, and small footprint, AnMBRs have been used to treat various industrial wastewater.Municipal wastewater is not considered suitable for anaerobic treatment due to its low organic load.Although there are still some challenges to overcome to make AnMBR technically and economically feasible, including low methane yield, high methane loss in wastewater, and high capital requirements [9], the application of AnMBR for municipal wastewater treatment is close to full-scale implementation [10].
Especially since AnMBRs allow wastewater to be treated at psychrophilic temperatures where increased methane solubility results in energy losses [11].Other reasons that anaerobic treatment was rarely used for municipal wastewater were the difficulties in retaining the slow-growing methanogenic microorganisms when treating low-strength wastewater at short HRT and in meeting the effluent standards in terms of nitrogen.The introduction of a membrane section leading to the size exclusion of solids and their complete retention allows independent control of SRT and HRT, resulting in methanogens being retained in the biomass at short HRT [12].This property allows expanding the application of AnMBRs in the treatment of municipal wastewater.In anaerobic processes, nutrients are partially used for biomass growth and converted to soluble forms (ammonia and phosphate), resulting in high concentrations in the effluent.Subsequently, recovery of the nutrients (e.g., for fertilizer production) or downstream treatment is required if the effluent is to be reused.Since most organic matter is converted to methane, conventional nitrification/denitrification is not effective for AnMBR effluents.Anaerobic ammonia oxidation (Anammox), ion exchange, or use as fertilizer can be employed [13].Phosphorus can be used as fertilizer after chemical precipitation.In addition, AnMBRs have a high potential for water reuse because they remove a wide range of trace organic pollutants [14,15].
The literature highlights the benefits of AnMBRs, such as effective degradation of organic compounds to produce methane-rich biogas for resultant energy production, effective removal of organic micropollutants for water reuse, and concentrating nutrients for subsequent recovery.Despite the demonstrated efficient and stable wastewater treatment even under psychrophilic conditions, there are still critical limitations, such as membrane fouling and high capital and operating costs, that hinder the widespread adoption of AnMBRs.This paper addresses the improvement of anaerobic digestion of wastewater using AnMBRs, with special attention to the recovery of not only methane but also hydrogen and methanol.In addition, the recovery of water, nitrogen, and phosphorus is discussed.As an example of integrated methods to improve the sustainability of wastewater treatment, the coupling of bioelectrochemical technology and membrane technology with AnMBRs-microbial fuel cells (MFCs) as one of the representatives, is reviewed.Some obstacles to the application of AnMBRs are discussed, including temperature limitations, low nutrient removal efficiency, membrane fouling, problems with dissolution of methane in the permeate, and competition for organic matter between sulfate-reducing bacteria and methanogens.New methods to reduce fouling are presented.Future research perspectives for the development of AnMBR technology are proposed.

Anaerobic Membrane Bioreactors-Wastewater Treatment and Biogas Production
AnMBRs can achieve excellent COD removal (>99%) and biogas production at OLR up to 40 kg COD/(m 3 •d), making their potential comparable to that of high-rate up-flow anaerobic sludge blanket reactors [16].

Industrial Wastewater
AnMBRs have been used to treat various industrial wastewater with high organic load, for example, from food processing [17][18][19][20][21], the paper industry [22], textile production [23], or pharmaceutical wastewater [24].Since the use of AnMBRs for the treatment of industrial wastewater has been extensively covered in numerous reports, some examples of such applications are listed in Table 1.
The data presented indicate the possibility of energy-positive treatment of food wastewater with AnMBRs.In the treatment of meat-processing wastewater, the permeate flux was stable at an OLR between 0.4 and 1.3 kg COD/(m 3 •d); increasing the OLR to 3.2 kg COD/(m 3 •d) resulted in unrecoverable fouling.Methane yields were 33-38% of influent COD and the system produced a net energy benefit of 0.16-1.82kWh/m 3 [19].From the leachate of food waste stabilization at 21-22 • C, 86 ± 3% of COD was removed at an HRT of 13 d and an SRT of 75 d; biogas recovery was 850 kWh/t [25].[28] The high efficiency of food processing wastewater treatment in AnMBR is due to the fact that this system easily adapts to lipids by stimulating biomass growth and activity.Increasing the oleate-Na from 0 to 2 g/L decreased the total organic carbon (TOC) removal for a few days and then recovered to over 90% [29].These fluctuations were consistent with biogas and methane production (which were maintained at 0.61 and 0.41 L/g COD, respectively).Increasing oleate-Na to 4 g/L reduced TOC removal to 62% and biogas production to 0.083 L/g COD due to accumulation of volatile fatty acids (VFAs) and inhibition of Methanosarcina.
Although numerous case studies indicate the excellent performance of AnMBRs and the ease of adaptation of the microorganisms to environmental conditions, it should be considered that some toxic compounds may cause deflocculation of the sludge, leading to deterioration of the membrane flux.In this case, pretreatment may be necessary [26].

Municipal Wastewater
Despite low organic strength, heavy membrane fouling, and inefficient energy recovery, AnMBRs have emerged as a potential treatment technology for municipal wastewater because they completely retain anaerobic microorganisms, producing a high-quality effluent and generating energy that partially compensates for its consumption.Another advantage is the low biosolid production; regardless of temperature (between 8 and 30 • C), it was 0.051 g VSS (volatile suspended solids)/g COD removed [30] or 0.04-0.09g VSS/g COD [8].There are numerous literature data on the efficiency of AnMBRs for treating municipal wastewater (Table 2); however, the energy potential of low organic strength wastewater, which is required to evaluate the energy independency of AnMBRs, is not well documented.Researchers indicate that AnMBRs could be energy neutral or even positive despite the 0.08-0.35kWh/m 3 required for fouling control [8].
In general, AnMBRs are able to remove more than 85% COD and 99% of total suspended solids (TSS), while the removal of total nitrogen (TN) or total phosphorus (TP) is usually negligible, and therefore downstream treatment is required if the effluent is to be reused [1].Hydrolysis of particulate organic matter accumulated in the membrane and cell decay can increase TN and TP levels [31].In terms of COD, TSS, and the number of pathogens, the effluents meet the more stringent discharge standards than conventional anaerobic treatment [32], while the low removal of TN and TP could be beneficial if the effluents are to be used for agriculture or irrigation.To increase the performance of AnMBR, it was equipped with a forward osmosis membrane, which removed >96% of organic carbon, almost 100% of TP, and 62% of ammonia nitrogen; methane production was 0.21 L CH 4 /g COD removed [33].
The use of AnMBRs in domestic wastewater treatment is very promising at low and ambient temperatures.Efficient COD removal (>90%) and consumption of 70% of the influent COD for methane production were achieved even at temperatures of 9-11 • C [2].Similarly, at psychrophilic conditions (18 • C), 90% COD removal was achieved without the need for membrane cleaning during three years of continuous operation [34].Although the performance of both AnMBR configurations used for municipal wastewater treatment is similar in terms of COD removal efficiency and biogas productivity, their fouling potentials differ significantly.Despite over 91% COD removal and methane yield of 160 L CH 4 /kg COD removed in external and submerged AnMBRs, VFA accumulation was observed in the submerged AnMBR [37].This was because more SMP and EPS were obtained in the mixed liquor and cake layer when the membrane was submerged in the fermenter, which increased the resistance of the cake layer and the fouling rate.Fouling was mainly caused by the deposition of low molecular weight biopolymers.In conclusion, external AnMBRs have better biomass quality and lower fouling tendency, making them a better solution for municipal wastewater treatment.
Another challenge related to the energetic effectiveness of AnMBRs arises from the low COD/sulfate ratio of the wastewater.The sulfate present in the influent reduces the available COD for methane production as the sulfate-reducing bacteria outcompete the methane-producing Archaea for the substrate.At a sulfate concentration >99 mg/L, methane yield (0.08-0.15 L CH 4 /g COD) was lower than at low-sulfate concentrations, where it reached 0.22 L CH 4 /g COD [2].The importance of the COD/sulfate ratio is greatest at low COD (<300 mg/L) [8].According to Lei et al. [8], the use of AnMBRs for the treatment of low-sulfate wastewater or municipal wastewater other than sulfate-rich provides cost savings of up to 28%.
AnMBRs show high efficiency in treating streams with high solids content.Their use has been studied for the treatment of sewage sludge under mesophilic (35 • C) and thermophilic (55 • C) conditions [38].A reduction of digester volume was possible, compared to conventional anaerobic systems due to efficient treatment at OLRs of 6.4 and 4.6 kg COD/(m 3 •d) at 55 and 35 • C, respectively.Temperature differences distributed the inert COD to the soluble and particulate fractions.At 55 • C, a higher permeate flux was achieved due to lower viscosity.However, higher SRT increased irreversible fouling.

Methane Production and Recovery
Biogas produced in AnMBRs typically contains 70-88% methane, 3-15% carbon dioxide, and 0-15% nitrogen; however, 80-90% methane has also been observed [26].Biogas production ranges from 0 to 220 L/d in pilot-scale plants, while it can be as high as 800 Nm 3 /d in full-scale facilities [39].It has been demonstrated that for energy-efficient AnMBR performance and for energy recovery, the OLR should be 0.43-0.90kg COD/(kg VSS•d) and the SRT should be 50 d to infinity [40].To achieve energy-neutral operation, the fluxes should be between 8.3 and 9.5 L/(m 2 •h) at 35 • C and between 6.0 and 6.7 L/(m 2 •h) at 25 • C.
The AnMBRs, where HRT and SRT are decoupled, physically retaining the solids prevents the loss of methane bound to the biomass particles [41].This results in greater transfer of dissolved methane to the reactor headspace and concentrations of dissolved methane approaching thermodynamic equilibrium.Even at this equilibrium, large amounts of dissolved methane can be lost due to the large volume of water flowing through the system.For example, the dissolved methane concentrations that were 1.009 times the thermodynamic equilibrium concentration resulted in a loss of 43% of the total methane produced as dissolved methane in the effluent [42].Methane losses via permeate can reach 24-58% [43], 45% [44], 63% [11], or 67% [45] of the total methane produced.
The loss of methane due to its solubility in wastewater is particularly important in the treatment of low-strength municipal wastewater due to the high methane solubility in the effluent and process limitations due to inhibiting substances [5].The presence of dissolved methane in the permeate contributes to global warming, as the greenhouse effect of methane is about 25 times higher than that of carbon dioxide [46], and reduces the energy efficiency of the process, thus reducing the advantage of AnMBRs as energy-efficient systems.Compared to high-rate activated sludge with anaerobic digestion, conventional activated sludge with anaerobic digestion, and an aerobic MBR with anaerobic digestion for domestic wastewater treatment at 15 • C, AnMBRs had the highest impact on global warming [47].
Methane loss is related to OLR.Dissolved methane was only 3.4-11% of the input COD [19].Its lowest accumulation was observed at the highest OLR of 3.2 kg COD/(m 3 •d), where the biogas production rate was the highest.Dissolved methane in AnMBR effluent accounted for 25-67% of the total methane content at temperatures of 15-25 • C [8].According to Henry's law, the solubility of methane increases with decreasing temperature, which makes psychrophilic treatment more difficult.The dissolved methane was 1.5 times higher at 15 • C than at 35 • C [1].
Large differences in biogas production in different municipal wastewater treatment reactors (from 0.128 to 0.90 L/(L reactor •d)) result from the fact that dissolved methane in the permeate was not considered in some studies [8].To achieve energy-neutral or energypositive wastewater treatment and reduce greenhouse gas emissions through the use of AnMBRs, the dissolved methane must be captured with minimal energy input.Without these treatments, methane dissolution in the permeate is still a critical limiting factor for the use of AnMBRs for low-strength wastewater.
Methods for removing or recovering dissolved methane from anaerobic permeates include biological oxidation, aeration, air stripping, and membrane-based recovery.
Biological oxidation uses methane-oxidizing bacteria.They were used in a down-flow hanging sponge (DHS) reactor inoculated with activated sludge [48].To provide oxygen, the aeration rate was 3.8-10 m 3 air /(m 3 •d).With the lowest aeration and an HRT of 2 h, 95% methane removal was achieved at a rate of 0.2 kg CH 4 /(m 3 •d).At the highest aeration and an HRT of 0.5 h, the efficiency decreased to 60%, but the removal rate increased to 0.55 kg CH 4 /(m 3 •d).Methane oxidation occurred preferentially over ammonium oxida- tion.Aeration is usually provided by vacuum-packed towers, bubble columns, or forced draft aerators [49].
Membrane-based recovery of dissolved methane from anaerobic permeates is one of the solutions.It is based on the use of a dense membrane that separates the dissolved gas from the liquid.Although this recovery has been shown to be effective, the operating costs are higher for commercial processes than for conventional gas-stripping systems [8].Membrane contractors (MC) are used, which achieve efficiencies close to 99% for short-term operation.For long-term operation, mass-transfer resistances must be reduced [50].Hollow-fiber MC resulted in removal of more than 98.9% of dissolved methane [49].For methane recovery, non-porous and microporous membranes were compared.Since AnMBR permeates have a very low residual organic content due to their higher COD removal efficiency, the use of microporous membranes is more effective as they can achieve recovery of up to 98.9% dissolved methane [11].Among the proposed solutions for dissolved methane recovery, vacuum MCs are considered the most energy-efficient process.They require 0.009 kWh/m 3 of energy [11].
To simplify the system and reduce the capital and operating costs of the AnMBr system, the removal of dissolved methane should be combined with the removal of nitrogen, which is described in Section 4.

Ethanol Production
Apart from methane, ethanol serves as a renewable fuel that can be used as an alternative to traditional fossil fuels.In the ethanol production system, a permselective membrane aims to separate the cells from the medium, thus increasing the concentration of biomass in the bioreactor, improving the removal of the inhibitor, or recovering the product.Mainly MF and UF membranes are used.The ethanol yield (92.7% of theoretical yield with a productivity of 20 g/(L•h)) from glucose was higher in AnMBRs than in conventional systems [51].High concentration of the product (ethanol) may inhibit the process; it was removed in the membrane system.Tapioca hydrolysate, wood hydrolysate, lactose, and thin stillage wastewater have also been used effectively [51,52].
The possibility of in situ integration of pervaporation into the fermentor by using an ethanol-selective membrane on the wall surface of the bioreactor was investigated [53].In this system, ethanol is selectively removed from the bioreactor through the membrane wall surface, which minimizes water consumption.Different membranes were tested.For example, a silicalite membrane was used to obtain an 85% (v/v) ethanol solution.Among the membranes used, the ethanol-water separation factors were in the following order: polydimethylsiloxane (PDMS) < poly(1-trimethylsilyl-1-propyne) (PTMSP) < composite membranes < zeolite membranes.Zeolite membranes are more expensive than polymer membranes (PDMS, PTMSP), but have higher separation efficiency and flow rate.

Hydrogen Production
Maintaining high cell density and decoupling SRT from HRT in AnMBRs help to improve hydrogen production.Hydrogen production can be achieved by inhibiting the methanogenesis phase, e.g., by manipulating hydrogen partial pressure, pH control, chemical inhibition, and promoting ferric-reducing conditions [20].The hydrogen content in biogas can be as high as 62.6% [54].
The addition of iron and sulfur significantly affects dark fermentation for hydrogen production.Under mesophilic conditions in AnMBR, hydrogen production of 41.6 L/d was 1.59 times higher at 10.9 mg FeSO 4 /L than at 2.7 mg FeSO 4 /L [54].
The effect of OLR on hydrogen production was studied in an OLR range of 4-30 kg COD/(m 3 •d) [55].Hydrogen yield was the highest at 22 kg COD/(m 3 •d).Hydrogen production in the AnMBR was 50% higher than in the CSTR, which was found to be overloaded.The results suggest that the AnMBR is preferable when operated near the OLR, which causes overloading in terms of substrate utilization.When brewery wastewater was treated in the submerged AnMBR, increasing the OLR from 30 to 60 kg COD/(m 3 •d) decreased the hydrogen production rate and yield due to the shift of metabolism to solventogenesis [56].
Regarding the effect of SRT on hydrogen production, it increased with increasing SRT; however, at an SRT of 90 d, it began to decrease [57].This decrease was attributed to the low VSS/TSS ratio, a shift in metabolism to lactate, and a negative effect of EPS accumulation on microbial growth.It may also be caused by the formation of inhibitory by-products such as short-chain VFAs, alcohols, and the development of hydrogen-consuming microorganisms [58].
The instability of the process and the low hydrogen yield due to the incomplete conversion of the substrates hinder the introduction of biohydrogen production plants on an industrial scale.In this context, other membrane-based technologies besides AnMBRs are suitable to achieve high-rate biohydrogen production.These include microbial electrolysis cells (MECs) and downstream membrane-based technologies, such as electrodialysis (ED) [59].

Bioelectrochemical Processes Using Microbial Fuel Cells
Bioelectrochemical systems are represented by microbial fuel cells (MFCs).MFCs use electrochemically active microorganisms that donate electrons directly to an anode to oxide substrates, thereby generating electricity from energy contained in wastewater.Although MFCs have been extensively studied for municipal wastewater treatment, they were found to be insufficient to meet stringent wastewater quality requirements [60].Therefore, MFCs have been combined with MBRs to generate electricity and treat wastewater.MBRs improve pollutant removal, while the electricity generated by MFCs reduces energy consumption during MBR operation.This integration leverages the advantages of both technologies to obtain better effluent, reduce membrane fouling, and create an energy-neutral system [61,62].The maximum power density varies widely, reaching about 0.38 W/m 2 anode area [62].
The MFC can serve as a pretreatment or post-treatment of the MBR (external configuration), or the MFC can be directly immersed in the MBR or vice versa.External configurations represent two-stage systems where wastewater is processed from one stage to another.In the internal system, the anode chamber of the MFC is immersed in the MBR, while the cathode chamber consists of an aeration tank of the MBR [63].For example, the MFC was combined with a fluidized-bed AnMBR (external configuration), where >94% COD and 80% ammonia were removed from municipal wastewater.To achieve a more compact design, better treatment efficiency, and less membrane fouling, the internal configuration is a more common solution.MBR modules were inserted into the anode or cathode chamber of the MFC to filter the water treated by the MFC [62].For example, in two dual-chamber MFCs immersed in the MBR, simultaneous nitrification and denitrification occurred in the bio-cathode, achieving 84.3% of nitrogen removal [64].
In the treatment of domestic wastewater, the MFC-fluidized-bed AnMBR achieved 92.5% COD and almost complete TSS removal at a constant high permeate flux of 16 L/(m 2 •h); the energy of the methane produced was negligible (0.005 kWh/m 3 ) [65].In a system consisting of an AnMBR placed in the anaerobic cathode chamber of an MFC, the removal efficiencies of COD and nitrate were 91.6% and 94.8%, respectively, the electricity generated was 0.132 V, and the maximum power density was 1.16 W/m 3 net cathodic chamber [66].In the treatment of municipal wastewater, the optimum OLR was 6.25 kg COD/(m 3 •d) at an HRT of 1.9 h; the voltage and power were 0.13 V and 91 mW/m 3 , respectively [67].
To increase the energy production and pollutant removal efficiency, and to make the MFC-MBR system more compact and economical, some modifications were proposed.For example, in the system with the MF membrane modified with reduced graphene oxide 96.6%, 95.8%, and 94.7% of COD, ammonia, and TN removal were achieved, respectively, with electricity production of 349 mW/m 2 [68].To reduce the use of precious metals cathode catalyst and thus minimize the operating cost, electrodes were modified with a carbon foam-Fe-Co catalyst, C-Mn-Fe-O catalyst, polyaniline phytic acid, polypyrrole, and anthraquinone/polypyrrole composite [62].Finally, some methods to reduce membrane fouling have been reported: electrostatic repulsion of the electric field force, the strong oxidation of hydrogen peroxide in cathode area, scrubbing effect of granular activated carbon or bubbles, and electrocoagulation at anode [69].

Wastewater Treatment with the AnMBR-Recovery of Nutrients and Water and Removal of Nutrients
Although AnMBRs can efficiently remove TSS and soluble COD, it is unable to process soluble nutrients.Approximately 60-80% of the nitrogen and phosphorus are released to the permeate as ammonium and phosphate, respectively [70].According to Dai et al. [71], AnMBR can remove only 10% of TN.In particular, AnMBR permeates derived from the treatment of industrial wastewater (e.g., from the food industry) contain low COD and TSS concentrations but advantageously high nutrient concentrations (e.g., 317-403 mg N/L, 23-213 mg P/L [25]), which can be reused for landscape or liquid fertilizers.
Simultaneous removal of nitrogen and phosphorus was achieved by dynamic adsorption through a strongly basic anion exchange resin [73].The total adsorption capacity for phosphorus was 85.4%.The removal of phosphorus was higher than that of nitrogen.It was assumed that ammonium ions and ammonia were not adsorbed onto the anion exchange resin.The small decrease in nitrogen concentration was probably caused by the presence of microorganisms in the wastewater.When adsorbed on natural zeolite, an ammonium exchange capacity of 3.6 mg N/g zeolite at 50 mg NH 4 + -N/L was observed [75].For complete ammonium recovery, ammonia stripping, which is a desorption process, can be coupled with adsorption; ammonium ions are converted to gaseous ammonia at higher temperatures and pH [9].For phosphate ions, low pH (<2.13) affects phosphate adsorption because orthophosphoric acid dominates phosphate and causes dissolution of adsorbents [9].It has been reported that the desorbing solutions containing concentrated nutrients after adsorption can be directly used in agriculture or in the production of nutrient-based solids by chemical precipitation [77].
Precipitation of struvite, a slow-release fertilizer suitable for crops in soils with relatively low pH, is known as an existing nutrient recovery technology [74].Recovery is limited by the phosphorus concentration in wastewater; effective struvite precipitation could only be achieved at >100 mg P/L.Moreover, struvite precipitation is limited by toxic heavy metal ions and emerging organic contaminants in wastewater.Instead, phosphorus is effectively recovered by chemical precipitation with FeCl 3 [78].
Effluents from AnMBRs were treated in photobioreactors to remove or recover nutrients and recover water.Simultaneous removal of soluble organics (65%) and nitrogen (39%) was achieved [76].By applying microalgae cultivation in field photobioreactors fed with nutrient-rich effluent (55.2 ± 15.6 mg N/L (ammonium), phosphate 6.8 ± 1.7 mg P/L (phosphate)) from an AnMBR fed with pre-treated wastewater, the nutrient concentration met the effluent standards [79].In a membrane photobioreactor (MPBR) with a mixed culture of eukaryotic microalgae, higher nitrogen and phosphorus recovery rates were reported with a 10 cm light path compared to a 25 cm light path [80].
As membrane-based water and nutrient recovery, MF and UF with ceramic membranes were used for filtration of the liquid fraction of digestate to produce a permeate that serves as a source of water, nutrients, and microcomponents for cultivation of Chlorella vulgaris.The initial ammonium concentration in the culture medium most strongly influenced the growth of the microalgae [81,82].
To improve nutrient recovery efficiency and product quality, alternative processes with better selectivity have been developed.These include forward osmosis (FO), membrane distillation (MD), and electrodialysis (ED) [74].In FO, a semipermeable membrane is placed between two solutions of different concentrations.FO uses the difference in osmotic pressure instead of hydraulic pressure to increase the permeation of water through the membrane.Ammonia removal of about 62% has been reported in FO [33].MD is a thermally driven process that uses a microporous hydrophobic membrane to separate the aqueous feed stream from the distillate.At MD, only the vapor molecules of the feed pass through the pores of the membrane.MD achieves over 96% ammonia recovery.Because ED arranges ion-exchange membranes alternately in a direct current field, which is a driving force, it can selectively fractionate nutrients from wastewater into high-value products.ED selectively separates phosphate from wastewater containing various ions, achieving a phosphate concentration factor of up to 7 [74].
In MD with a hollow-fiber membrane operation for domestic wastewater treatment, increasing the temperature difference increased the permeate flux and decreased the rejection of ammonia nitrogen [83].Organic matter and phosphate rejection was >90%, regardless of the transmembrane temperature.Long-term operation (over 50 d) at a transmembrane temperature of 30 • C and pH of 5.5 resulted in efficiencies of 98.7%, 98.1%, and 90.5% of ammonium nitrogen, phosphate, and dissolved organic carbon (DOC), respectively.However, progressive biofouling was reported, which significantly reduced the permeate flux.In MD for treating effluent from a thermophilic AnMBR, COD and ammonia removal exceeded 90% [72].In an integrated system of moving sponge-AnOMBR/MD for treating municipal wastewater, NH 4 + -N rejection was found to be 98% at an effluent concentration of 0.95 mg/L [84].In MD, almost complete rejection of phosphorus was observed [85].A two-stage process was used for water and ammonia recovery [86].In the first stage, monoammonium phosphate and diammonium phosphate solutions were used as the reusable ammonia absorbents.The ammonia removal efficiency was about 81% and the recovered ammonia solution was 1.05 mol/L.The water recovered in the second stage could be used as industrial or agricultural water.To expand the low application of MD in full-scale facilities worldwide, research is being conducted to produce membranes with high permeability, high hydrophobicity, excellent mechanical strength, low fouling rate, low thermal conductivity, and high liquid inlet pressure.Great expectations are placed on graphene-based nanomaterials such as graphene oxide and reduced graphene oxide [87].
An effective method of nitrogen recovery downstream of AnMBR treatment can be partial nitritation/nitrification combined with anaerobic ammonium oxidation (Anammox), a process that converts ammonium and nitrite to nitrogen gas.This technology has become increasingly important as a cost-effective approach to nitrogen recovery in contrast to conventional nitrification/denitrification processes.In this autotrophic process, NH 4 + acts as an electron donor, so no additional carbon source/electron donor is required for denitrification.The nitrogen removal efficiency of Anammox-based processes in AnMBR permeate treatment can exceed 90% [88,89].Nitrogen removal can also be combined with methane production.By using a membrane-based process combining anaerobic digestion and nitritation-Anammox under ambient temperature to treat municipal wastewater, a stable methane yield (0.223 L CH 4 /g COD removed ) was achieved with a TN removal efficiency of 81% [71].However, when the nitritation-Anammox process is operated, the methane composition in the biogas is lower than other types of AnMBRs due to the accumulation of produced N 2 [90].On the other hand, if a post-Anammox process is added, the remaining dissolved methane can be used for denitrification.This can both solve the problems caused by dissolved methane in effluent and help to remove the nitrate nitrogen produced in the Anammox process, thus removing organic matter and nitrogen simultaneously [71].In addition, the feed for the Anammox-AnMBR process is rich in ammonia, which can inhibit methane production.Therefore, further studies are needed to maximize methane yield from these systems.
For the simultaneous removal of nitrogen and dissolved methane, methane oxidation combined with denitrification, using methane and nitrate as electron donor and acceptor, respectively, is considered a reliable control process.A mixing ratio of 20% methane at a pressure of 0.003 atm was used in the treatment of domestic wastewater [91].At HRT of 4 h, the nitrate concentration was reduced fivefold, and a methane concentration of 3.3 mg/L was detected in the effluent.The presence of Methylocystis capable of oxidation of methane associated with denitrification, Methylococcus capable of methane oxidation, and Escherichia capable of nitrate reduction, showed microbial syntrophy between methanotrophs and denitrifiers in the treatment of diluted wastewater.Similarly, the methane and nitrogen metabolic pathway with synergism of the nxrAB, narGHI, nasAB, pmo-amoABC, and mmo genes with the dominant dissimilatory reduction pathway enabled 95% nitrogen removal [92].In such systems, a low O 2 /CH 4 ratio favored the growth of methanotrophs and heterotrophic nitrification-aerobic denitrification bacteria and allowed ammonia removal rates up to 95 mg/(L•d) [93].

Fouling Control
Although AnMBRs are considered promising systems for wastewater treatment and energy recovery, the energy requirement for fouling control still needs to be reduced to achieve an energy-neutral system.The energy demands for fouling control are a significant barrier to energy-neutral wastewater treatment, especially for low organic strength wastewater.Domestic wastewater, for example, typically generates a grid electricity output of 0.15 to 0.3 kWh/m 3 of treated wastewater [94].
AnMBRs routinely use biogas sparging for fouling control, because biogas bubbles generate turbulence that greatly reduces the attachment of small flocs to the membrane and prevents the formation of a cake layer, thereby reducing membrane fouling [90].In submerged systems, biogas sparging consumes 0.03-5.7 kWh/m 3 of treated wastewater, whereas in external systems, it consumes 0.23-16.52kWh/m 3 of treated wastewater, depending on cross-flow velocity and biomass concentration [94].However, much lower values of energy demand for membrane fouling control (0.08-0.35 kWh/m 3 ) are reported, even when biogas sparging is used as the main fouling control measure [8].When biogas sparging is used, the membrane fouling rate is significantly reduced to 0.25 kPa/d [8].
In addition to biogas sparging, rotating membrane and particle sparging have also been used as scouring methods [2].In the rotating membrane systems, the rotation of the membrane module creates turbulence that reduces the deposition of fouling materials on the membrane surfaces.The energy requirement for fouling control was in the order of gas sparging > particle sparging > rotating membrane AnMBR [2].
In particle sparging AnMBRs (called anaerobic fluidized membrane bioreactors), fluidizing granular activated carbons (GACs) serve as carriers for microorganisms and as a medium for scouring the membrane surface.The fluidized AnMBR operated continuously for 485 days (fluxes of 4.1 to 7.5 L/(m 2 •h)) without requiring chemical cleaning of the membranes treated primary-settled domestic wastewater.Operational energy requirement for fouling control in these reactors (0.23 kWh/m 3 ) could be met with primary and secondary methane production [30].Fluidized GAC resulted in 55-120% longer membrane run times between chemical cleanings and reduced energy demands by 98-99% compared to conventional membranes [95].The addition of bamboo charcoal to the AnMBR lowered the SMP content by about 62.73 mg/L and decreased the membrane resistance [74].
Newly developed configurations for membrane fouling mitigation include forward osmosis (FO) used in AnMBR systems (known as anaerobic osmotic membrane bioreactor (AnOMBR)), placement of a membrane module at the top of the UASB reactor and recirculation between these two zones, and a hybrid gas-lift AnMBR that allows two-phase (gas-liquid) flow through the membrane [10].
One of the methods to reduce fouling is the addition of coagulants as flow enhancers, which decreases the content of COD, proteins, and carbohydrates [8].In the treatment of domestic wastewater, the highest flow rate of 17 L/(m 2 •h) was achieved by adding 26 mg FeCl 3 /L [2].However, the use of coagulants reduced the methane yield by 24% due to organic removal by coagulation.
The new achievement in improving fouling management in the AnMBR operation is the addition of biochar.The biochar was added to the AnMBR during the treatment of pharmaceutical wastewater.In the biochar-amended AnMBR, adsorbable organic halogens were effectively removed, and more COD was converted to methane.A 56% decrease in the average transmembrane pressure difference (TMP) indicated fouling mitigation by a significant reduction in EPS [96].Due to the promotion of VFA degradation by biochar, COD removal efficiency and COD conversion to methane increased by more than 12.5% at 10 • C [97].Adsorption of hydrophobic dissolved organic matter extended the membrane operating time by more than 200%.In addition to biochar, waste yeast was added as fouling reducer [98].
To control fouling and reduce energy demand, the concentration of MLSS should be optimized.For example, the required specific gas demand increased from 0.25 to 0.5 Nm 3 /(m 2 •h) with the increase in MLSS concentration in the membrane tank from 23 to 28 g/L at a critical flux of 14 L/(m 2 •h) [99].MLSS concentration is also strongly influenced by temperature, as low temperature usually leads to the low hydrolysis rate of suspended solids in the influent.In addition, a longer SRT favors a higher viscosity of the mixed liquor due to a significant increase in MLVSS concentration [1].
Biomass entrapment technologies (in biocarriers or biospheres) are also a viable solution to reduce fouling, as they increase the particle size of the sludge and reduce the content of EPS and SMP in the mixed liquor [100].
Methods of fouling control include selecting membranes to improve their hydrophilicity and enhance their antifouling properties.Although polymeric membranes are widely used in AnMBRs, they are not stable against chemicals when recovery or maintenance cleaning is performed with strong oxidants such as chlorine.Recently, the use of ceramic membranes in AnMBRs has attracted much interest due to their low fouling tendency, good structural integrity, and strong chemical resistance compared to polymeric membranes [4,101].Reduction of membrane fouling can be achieved by developing new types of membranes or modifying the membrane surface by ultra-violet light, gamma irradiation, or nanotechnology techniques [102].These modifications are all based on altering the chemical or physical interaction with the membrane surface, thereby increasing the hydrophilic surface properties.

Future Perspectives of AnMBRs
Further development of advanced and efficient treatment technologies such as An-MBRs is critical for sustainable wastewater treatment, recovery of water, nutrients, and energy, and reduction of the environmental footprint.Although AnMBRs are already widely used in wastewater treatment, their full-scale application is limited, mainly due to the drawbacks of the technology described in this paper.To expand the application potential of AnMBRs for various wastewaters, further research should be conducted to develop the best strategies to optimize biogas production and dissolved methane recovery in AnMBRs to increase net energy production.
Another approach could be to research and develop new antifouling membranes and fouling control methods.Great efforts should be made to produce or modify membranes to reduce their cost and improve their antifouling properties.In addition, anaerobic dynamic membrane bioreactors should be developed as a new technology due to the ease of membrane fouling control and low energy consumption [12].Although cake layer formation is the main factor for fouling and its filtration resistance accounts for more than 80% of the total value, it could serve as an additional filter (referred to as dynamic membrane or secondary membrane) [103].For this application, instead of MF/UF membranes, cheap support materials (such as meshes, woven or non-woven filter cloths) could be used on which a cake layer is formed.However, their stability and cleaning strategies still need to be verified.

Conclusions
AnMBR technology is considered promising for industrial and municipal wastewater treatment because it generates little sludge, produces high-quality effluents at high OLR, recovers water, nutrients, and energy, and minimizes bioreactor size by separating HRT and SRT and fully retaining slow-growing microorganisms.However, widespread use of this technology is hindered primarily by membrane fouling and difficulties in controlling nitrogen and dissolved methane in the permeate.With respect to membrane fouling and the energy used to control it, fabrication of membranes from materials with improved antifouling properties, modification of the membrane surface, entrapment of biomass, addition of biochar, and development of cleaning strategies have been mentioned as solutions that can significantly reduce pore blocking.In addition, taking advantage of the cake layer acting as a secondary membrane (dynamic membrane) for solids rejection appears to be a promising solution for fouling control.To prevent the accumulation of dissolved methane in the permeate, which increases methane emission to the atmosphere and reduces the energetic benefits, biological oxidation, air stripping, and membrane-based recovery are mentioned as possible solutions.However, combining methane and nitrogen removal in methane-based denitrification was highlighted as the most reliable method to simplify the system and reduce its cost.Integrating microalgae growth with AnMBRs was indicated as a method to increase economic feasibility, which can produce high-quality effluents for water reuse by removing nutrients and can be used for biofuel production.

Table 1 .
Examples of AnMBR applications for the treatment of industrial wastewater.

Table 2 .
Examples of AnMBR applications for the treatment of municipal wastewater.