Performance modeling of wastewater treatment systems has now become an attractive area of investigation for the design, analysis, and optimization of operations. Mathematical modeling of membrane bioreactor (MBR) treatment is a powerful tool for predicting effluent quality. In this study, a bioreactor coupled with a membrane filtration process (MBR) was employed to treat municipal wastewater. An experimental design based on the response surface methodology (RSM) was applied to investigate the effects of operating conditions, such as hydraulic retention time (HRT), aeration rate (AR), and transmembrane pressure (TMP), on the removal efficiencies of chemical oxygen demand (COD), total suspended solids (TSS), and total nitrogen (TN). The results demonstrated a strong agreement between experimental data and model predictions. Furthermore, the RSM results display the effects of the operating parameters and their interactive effects on pollution removal. The maximum removal efficiency was achieved, exhibiting 95% of COD, 99.7% of TSS, and 93% of TN. These findings provide the effective use of statistical modeling to enhance MBR process performance, achieving sustainable and energy-efficient conditions.

  • MBR modeling and operational parameters control are presented.

  • The use of RSM in external MBR should be encouraged.

  • A new framework was proposed to pursue a good practice for MBR modeling.

  • Integrated MBR modeling applications to real case studies are needed.

Stringent effluent standards imposed by regulatory authorities highlight the need to develop a sustainable and environment-friendly treatment process (Shakir et al. 2017). The quality of urban wastewater varies with time and along the sewage network (Thomas & Thomas 2022). As a result of the increase in the volume and wastewater pollution level, treatment costs also increase (Pajares et al. 2019). Biological methods have been widely adopted in wastewater treatment with the advantages of being more cost-efficient, having more footprint requirements and higher specific biomass activities (Gukelberger et al. 2020). One of the alternative technologies for wastewater treatment is the use of membrane biological reactors. It is a combination of biological processes with membrane filtration that is called membrane bioreactor (MBR) (Krzeminski et al. 2017). Biological wastewater treatment combining membrane filtration has been the focus of research worldwide (Ji et al. 2023; Khan et al. 2024). In this case, the degradation of biomass occurs inside the bioreactor tank, while the separation of treated wastewater from microorganisms is completed in a membrane module (Rahman et al. 2023). As more stringent effluent standards are expected, and the costs of membrane and membrane process continue to fall, the full-scale applications of MBR in domestic and industrial wastewater treatment become increasingly widespread (Praveen et al. 2019; Du et al. 2020; Global Membrane Bioreactor (MBR) Market 2021). The global MBR market has experienced significant growth in recent years and is projected to continue expanding (Al-Asheh et al. 2021). It was reported that 8.4% of the compound annual growth rate (CAGR) was expected for the MBR market. Recent reports showed that the market size of MBR was valued at approximately 4.2 billion USD in 2024 and is expected to reach 8.9 billion USD by 2033. Table 1 presents a regional breakdown of the MBR market (Jijingi et al. 2024; IMARC Group 2033).

Table 1

Regional breakdown of the MBR market (Jijingi et al. 2024; IMARC Group 2033)

RegionMarket size (2024, USD Billion)Projected market size (2033, USD Billion)CAGR (%)
Asia-Pacific 1.8 4.0 8.4 
Europe 0.9 1.8 7.8 
North America 1.0 2.0 7.5 
Latin America 0.4 0.9 8.0 
Middle East and Africa 0.2 0.4 7.0 
RegionMarket size (2024, USD Billion)Projected market size (2033, USD Billion)CAGR (%)
Asia-Pacific 1.8 4.0 8.4 
Europe 0.9 1.8 7.8 
North America 1.0 2.0 7.5 
Latin America 0.4 0.9 8.0 
Middle East and Africa 0.2 0.4 7.0 

However, membrane biofouling is a significant concern of membrane technology and should be seriously considered (Sahaa et al. 2023). Biofouling reduces the membrane's flow and affects the quality of permeate while using more energy and shortening the life of the membrane (Wu et al. 2020). Operational parameter optimization can reduce membrane fouling, improve membrane properties, and tweak hydrodynamics near the membrane surface (Irfan et al. 2022). Optimization of operational parameters has an essential role in biological wastewater treatment (Waqas et al. 2023) and can help increase the bioreactor's performance efficiency (Díaz et al. 2023). Experimental limitations in optimizing membrane performance can be overcome by applying the statistical method which is well known as response surface methodology (RSM) (Kumari & Gupta 2019).

RSM uses statistics and mathematics to model the behavior of the response variable (related to the properties of the studied product) in the function of two or more extraction variables (Thomareis & Dimitreli 2022). The response is in effect modeled by factorial techniques and ANOVA, but these are extended for more detailed modeling of the effects. It combines the design of experiments, regression analysis, and optimization methods in a general-purpose strategy to optimize the expected value of a stochastic response (Kacem et al. 2024). The method has been applied successfully in various fields. Yan et al. (2023) worked on a novel heliostat-based combined cooling, heating, and power (CCHP) system based on heliostats, which uses 3E analysis (energy, exergy, and economic analysis) and multi-criteria optimization with RSM to improve performance and sustainability. In the geotechnical engineering field, Erzin & Tuskan (2019) studied an advanced predictive model, neural networks have been utilized to forecast the factor of safety against soil liquefaction and predict standard penetration test (SPT) values, as demonstrated in studies conducted by Erzin & Tuskan (2017). Similarly, many studies integrated methodologies such as AHP-VIKOR (Tuskan & Basari 2023) and Monte Carlo simulations (Tuskan & Erzi̇n 2024) have been applied to improve slope stability. Manimaran et al. (2022) reported that RSM coupled with genetic algorithms (GAs) proved to be a modern and highly efficient approach for optimizing biodiesel production from okra.

In the case of MBRs, numerous studies have focused on optimizing the operating conditions of membrane processes. These studies have employed RSM to examine the effects of process conditions on filtration membrane removal efficiency and to optimize hydrodynamics for cake layer biofouling control (Yang et al. 2017; Askari et al. 2018). RSM involves simultaneous variations of many operational parameters over a set of experimental runs and enables the elucidation of the operational conditions which are optimized by evaluating their relative significance even in the presence of complex interactions (How et al. 2023). These operational parameters can alter microorganism properties and optimize system performance parameters such as hydraulic retention time (HRT), sludge retention time (SRT), and transmembrane pressure (TMP), which influence microbial activity and membrane biofouling potential (Hee-deung et al. 2015). Recent studies have depicted that HRT and SRT significantly affect biodegradation and micropollutant removal in membrane systems (Kitanou et al. 2019). Statistically designed experimental plans allow for the optimization of operational parameters by analyzing the results obtained from bench-scale tests (Tibi et al. 2021).

In this study, RSM based on a Box–Behnken design (BBD) was applied to investigate the effects of operational parameters such as HRT, aeration rate (AR), and TMP on membrane permeability. Experiments under variable operational parameters were conducted and evaluated by comparing the system performances observed experimentally with those predicted by the quadratic model obtained.

Wastewater preparation and bioreactor acclimatization

The laboratory-scale MBR was fed with domestic wastewater. Wastewater composition and characteristics, listed in Table 2, are within the standard limits of the World Health Organization (WHO) and US EPA (WHO 2006). Total suspended solids (TSS) (397–457 mg/L), biological oxygen demand (BOD5) (275–470 mg/L), and chemical oxygen demand (COD) (527–647 mg/L) are considerably deviated from their prescribed limits, indicating the high level of contamination.

Table 2

Influent characteristics for the MBR employing an ultrafiltration membrane treatment

ParameterInfluent concentrationDischarge standardsaReuse standardsb
Temperature (°C) 21.5–27 <30 35 
pH value 7.5–8.5 5.5–9.5 8.4 
COD (mg/L) 527–647 250 100 
TSS (mg/L) 397–457 150 <50 
TN (mg/L) 53–71 40 <5 
ParameterInfluent concentrationDischarge standardsaReuse standardsb
Temperature (°C) 21.5–27 <30 35 
pH value 7.5–8.5 5.5–9.5 8.4 
COD (mg/L) 527–647 250 100 
TSS (mg/L) 397–457 150 <50 
TN (mg/L) 53–71 40 <5 

aMoroccan pollution standards – specific limits for domestic discharge.

bThese are the maximum permissible values according to the Directive FAO and Water reuse standard for irrigation and land watering, Morocco.

Pollution loads are assumed to be all of domestic origin. As shown, the wastewater characteristics can represent the medium–strength urban wastewater seen in Morocco and in most cities around the world (Bruursema 2011; MDCE Ministère Délégué Chargé de l'Eau 2014). Furthermore, these values exceed the specific limit values of Moroccan domestic discharge and the reuse standards, hence the necessity for wastewater treatment (Kitanou et al. 2018, 2021a).

Bioreactor setup

Experiments were performed in a laboratory-scale MBR pilot system using a UF membrane. A schematic diagram of the experimental facility is shown in Figure 1, which mainly consists of three components: an anoxic tank, an aeration tank, a UF membrane module and for chemical membrane cleaning a cleaning tank. The detailed design and operating parameters are shown in Tables 3 and 4.
Table 3

Summary of membrane properties used in MBR configuration

Membrane module materialCeramic
Membrane length 1,178 cm 
Diameter of the channels 6 mm 
Membrane area 0.45 m2 
Pore size 0.035 μm 
Maximum transmembrane pressure (TMP) 1.15 bar 
Membrane module materialCeramic
Membrane length 1,178 cm 
Diameter of the channels 6 mm 
Membrane area 0.45 m2 
Pore size 0.035 μm 
Maximum transmembrane pressure (TMP) 1.15 bar 
Table 4

Main characteristics and operating parameters of the MBR system

Aeration tank volume 40 L 
Hydraulic retention time (HRT) 7–15 h 
pH 6.5–8 
Temperature in aeration tank 15–25 °C 
Aeration rate 300–700 NL−1 
Dissolved oxygen 3.5–5.5 mg/L 
MLSS 7–15 g/L 
Transmembrane pressure (TMP) 0.35–1.15 bar 
Aeration tank volume 40 L 
Hydraulic retention time (HRT) 7–15 h 
pH 6.5–8 
Temperature in aeration tank 15–25 °C 
Aeration rate 300–700 NL−1 
Dissolved oxygen 3.5–5.5 mg/L 
MLSS 7–15 g/L 
Transmembrane pressure (TMP) 0.35–1.15 bar 

MLSS, mixed liquor suspended solids.

Figure 1

Schematic diagram and picture of the experimental ultrafiltration MBR. P1: membrane inlet pressure sensors; P2: retentate outlet pressure sensors; P3: permeate outlet pressure sensors.

Figure 1

Schematic diagram and picture of the experimental ultrafiltration MBR. P1: membrane inlet pressure sensors; P2: retentate outlet pressure sensors; P3: permeate outlet pressure sensors.

Close modal

Membrane characterization and operations

The ultrafiltration membrane employed in the study is ceramic tubular (Membralox®) allowing the separation of the treated effluent and the purifying biomass, it is placed outside the bioreactor. The membrane characteristics are listed in Table 3. Ceramic ultrafiltration (UF) membranes are by far widely used through the physical removal of particles from liquid in the size range of 0.01–10 μm, because of their potential advantages including chemical and thermal stability, physical strength, and a longer operational life (Mancha et al. 2014). The membrane was cleaned following the manufacturer's recommendation. Before starting the membrane's chemical cleaning, the biological section was isolated from the membrane filtration section. Membrane cleaning was done altering a solution of NaOH and a solution of citric acid. The solutions were prepared and put in the cleaning tank, each solution was recirculated through the membrane for about 20 min and was preceded and followed by a water rinse. The pressure is measured using pressure sensors and gauges installed at the outlet of the recirculation pump, just before the inlet of the membrane module, at the outlet of the membrane module, and within the permeate collection circuit.

Bioreactor operation

The bioreactor was inoculated with 15 L of secondary aerobic sludge (15–25 °C) from the wastewater treatment plant (WWTP), without previous acclimatization to psychrophilic conditions. The initial concentration of sludge in the bioreactor was around 10 g/L of TSS. Then, the reactor was fed with wastewater from the same WWTP.

The seed sludge was obtained from an activated sludge taken from a WWTP situated in the National Office of Electricity and Drinking Water (ONEE) in Rabat, Morocco. During the start-up period, the bioreactor was operated for 37 days and the RSM tests were carried out on the experimental data over this period.

The bioreactor was operated continuously to assess the long-term treatment efficiency of the MBR at psychrophilic (15–25 °C) temperature (Kitanou et al. 2017). Because, in addition to the heat of biological reaction, pumping operations in MBRs can provide additional benefit in raising the reactor temperature to both increase biotreatment efficacy and reduce liquid viscosity and the energy input of crossflow ultrafiltration could also raise temperatures in MBRs to the optimum.

Sampling and analytical methods

The influent, mixed liquor, and permeate samples were collected and analyzed periodically in accordance with the standard methods. Quality parameters such as COD (Hach DR2800 Spectrophotometer) and TSS were determined following sample filtration through 0.45 μm. Total nitrogen (TN) and total phosphorous (TP) were measured with reagent kits (HACH DR4000, USA) (APHA (American Public Health Association), AWWA (American Water Works Association) & WEF (Water Environment Federation) 2005; WHO 2006; Rodier et al. 2009).

Experimental design by the RSM method

Response surface design is an aggregation of mathematical and statistical approaches accommodating by examining the effectiveness of various operational parameters. This approach is used to establish second-degree mathematical models to examine a phenomenon whose responses lie on a surface. The application of RSM to design optimization reduces the cost of expensive analysis methods and their associated numerical noise. The response variable can be represented graphically (contour plots or three-dimensional space) to help visualize the response surface's shape. The RSM principle is based on two fundamental concepts: selecting the approximate model and evaluating the response. The selection of an approximate model is helpful to obtain the optimized solution at the expense of minimum experimentation. The objective of the design of experiments (DOEs) is the selection of the points where the response should be evaluated (Benalla et al. 2022).

The BBD stands out as an efficient design approach, simplifying the optimization of crucial parameters through a limited set of trials, all the while enabling the investigation of interactions among these parameters. The BBD involves a factorial combination of a minimum of three parameters organized in a partially blocked design. Within each block, one component remains constant, while the others fluctuate across four distinct combination values within specified lower and upper bounds. To achieve this, a three-level scale was utilized: the lowest level (−1), the middle level (0), and the highest level (+1) (Myers et al. 2016). The summation of the series of experimental designs N can be assessed using Equation (1) (Waqas et al. 2022):
(1)
where k is the number of input factors. The terms 2k, 2k, and Nc represent the factorial points, the axial points, and the center points, respectively.
A quadratic polynomial model was used in this study, as presented in Equation (2):
(2)
In this equation, the response obtained by the experiments is denoted by Y, b0 represents the intercept, bi represents the regression coefficients for the linear terms, bii represents the regression coefficients for the fully quadratic terms, bij represents the regression coefficients for the terms, highlighting the interaction, and n designates the number of factors Xi taken into account in the model.

Table 5 presents the input control factors corresponding to the process variable codes. The initial parameters were HRT (X1), AR (X2), and TMP (X3). The responses examined were COD (Y1), TSS (Y2), and TN (Y3). In this study, 17 series of experiments, as illustrated and described in Table 6 and generated using the BBD approach in Design-Expert 13 software, were meticulously conducted.

Table 5

Independent variables and their levels used for the Box–Behnken model

FactorNameUnitsMinimumMaximumCoded lowCoded highMean
HRT X1 15 −1 ↔ 7.00 +1 ↔ 15.00 11.00 
Aeration rate X2 NL/h 300 700 −1 ↔ 300.00 +1 ↔ 700.00 500.00 
TMP X3 bar 0.35 1.5 −1 ↔ 0.35 +1 ↔ 1.50 0.9250 
FactorNameUnitsMinimumMaximumCoded lowCoded highMean
HRT X1 15 −1 ↔ 7.00 +1 ↔ 15.00 11.00 
Aeration rate X2 NL/h 300 700 −1 ↔ 300.00 +1 ↔ 700.00 500.00 
TMP X3 bar 0.35 1.5 −1 ↔ 0.35 +1 ↔ 1.50 0.9250 
Table 6

Box–Behnken design matrix

RunX1X2X3
11 500 0.925 
500 1.5 
15 500 0.35 
11 700 1.5 
700 0.925 
11 500 0.925 
15 500 1.5 
15 300 0.925 
11 500 0.925 
10 500 0.35 
11 11 300 1.5 
12 300 0.925 
13 15 700 0.925 
14 11 300 0.35 
15 11 500 0.925 
16 11 700 0.35 
17 11 500 0.925 
RunX1X2X3
11 500 0.925 
500 1.5 
15 500 0.35 
11 700 1.5 
700 0.925 
11 500 0.925 
15 500 1.5 
15 300 0.925 
11 500 0.925 
10 500 0.35 
11 11 300 1.5 
12 300 0.925 
13 15 700 0.925 
14 11 300 0.35 
15 11 500 0.925 
16 11 700 0.35 
17 11 500 0.925 

MBR treatment performances

Table 7 summarizes the MBR performance employing the ultrafiltration membrane for domestic wastewater treatment. The domestic wastewater used as the aeration tank feed contained a high number of organics. Therefore, microorganisms undertaking the removal of the organics were expected to dominate the biofilm. The carbonaceous bacteria biodegraded the readily available substrate (organic pollutants) (Aziz et al. 2024).

Table 7

Effluent characteristics for the MBR using UF membrane in the post-treatment

Treated water
Biological tank effluent (mg/L)Biological (%) removal efficiencyUF effluent (mg/L)UF (%) removal efficiency
TSS 39.3 89.4 4.5 99.7 
COD 59.5 74.1 36.7 95 
TN 25.4 53 3.9 92.7 
TP 2.51 69.8 1.6 81 
Treated water
Biological tank effluent (mg/L)Biological (%) removal efficiencyUF effluent (mg/L)UF (%) removal efficiency
TSS 39.3 89.4 4.5 99.7 
COD 59.5 74.1 36.7 95 
TN 25.4 53 3.9 92.7 
TP 2.51 69.8 1.6 81 

The results show significantly higher removal efficiencies for the COD, TN, and TSS of 95, 99.7, and 92,7%, respectively.

This study used a single bioreactor for organics and nutrient removal. Hence, the oxidation of organic matter, nitrification, and denitrification occurred in two separate tanks (Figure 1). Denitrification can also occur in the aeration tank when the aerators are in the interruption phase, the competition between heterotrophic nitrification and aerobic denitrification for COD reduces the TN's removal efficiency (Zhang et al. 2023). The higher efficiency for COD and TN can be attributed to carbonaceous and ammonia-oxidizing bacteria (Mao et al. 2020).

The MBR achieved higher removal efficiency for TSS due to the membrane separation. The results showed that the TSS value substantially diminished from 39.3 to 4.5 mg/L in the MBR permeate attributes to 99.7% removal efficiencies (Table 7). Replacement of the secondary settling tank with the membrane separation enabled the system to achieve removal efficiency not too dependent on the sludge settling characteristics (Pelaz et al. 2018). Detached sludge from the biofilm could readily be removed from the bioreactor. Removing suspended biomass flocs resulted in higher nitrogen and phosphorous removal efficiencies (Kitanou et al. 2021b). The solid-liquid separation process ensured high effluent quality in organics and nutrients. These results indicate that the bioreactor is an excellent choice for domestic and industrial wastewater treatment due to its high microbial activity and flexible operating parameters. Furthermore, the MBR is very attractive to treat wastewater in the open-air canal of wastewater distribution networks where installation of the system is possible, and the issue of a large footprint is less important.

Statistical analysis and model development

The three-level BBD was used to perform the analysis with 17 experimental sets, for evaluating the effects of the three main independent parameters on the efficiency of the wastewater treatment process. The three-factor BBD matrix showing the independent variable and response is presented in Table 8.

Table 8

Box–Behnken design matrix for the independent variable and response of membrane permeability at three-factor levels

RunX1X2X3Y1Y2Y3
11 500 0.925 81.1 85.2 86.9 
500 1.5 82 88 94 
15 500 0.35 95 93.8 94.3 
11 700 1.5 81.2 88.4 91.2 
700 0.925 76.84 76.69 82.48 
11 500 0.925 81 85 86.67 
15 500 1.5 97.9 97.45 99.89 
15 300 0.925 97.8 98 98.9 
11 500 0.925 83 87 89 
10 500 0.35 77 78.8 79.9 
11 11 300 1.5 84.5 93.4 99.65 
12 300 0.925 79 82 87.2 
13 15 700 0.925 90.1 90.9 94 
14 11 300 0.35 80.3 82 83.6 
15 11 500 0.925 81.54 85.4 87 
16 11 700 0.35 77.1 76.9 78.3 
17 11 500 0.925 81.2 85 86.7 
RunX1X2X3Y1Y2Y3
11 500 0.925 81.1 85.2 86.9 
500 1.5 82 88 94 
15 500 0.35 95 93.8 94.3 
11 700 1.5 81.2 88.4 91.2 
700 0.925 76.84 76.69 82.48 
11 500 0.925 81 85 86.67 
15 500 1.5 97.9 97.45 99.89 
15 300 0.925 97.8 98 98.9 
11 500 0.925 83 87 89 
10 500 0.35 77 78.8 79.9 
11 11 300 1.5 84.5 93.4 99.65 
12 300 0.925 79 82 87.2 
13 15 700 0.925 90.1 90.9 94 
14 11 300 0.35 80.3 82 83.6 
15 11 500 0.925 81.54 85.4 87 
16 11 700 0.35 77.1 76.9 78.3 
17 11 500 0.925 81.2 85 86.7 

RSM model optimization

A quadratic polynomial is established to identify the relationship between response Yi and the various factors. The regression equations for COD (Y1), TSS (Y2), and TN (Y3) are, respectively, as follows:

From these equations, it can be concluded that variables X1 and X3 positively influence the response. Furthermore, the coefficients associated with X3 for Y1 surpass those obtained for Y2, closely followed by Y3. Similarly, the coefficients associated with X1 for Y3 are higher than those obtained for Y2, followed by Y1, as the regression coefficients assigned to them are all positive. On the other hand, variable X2 has a negative effect on all three responses, with an identical coefficient for each. Interactions (X1X2 and X2X3) appear to have non-significant effects on all three responses as their coefficients are nearly zero. X1X3 interaction shows a significant effect for responses Y2 and Y3, while its effect on Y1 is negligible. Quadratic effects seem to have negligible repercussions. It is important to note that positive values represent a favorable effect on optimization, while negative values indicate an inverse relationship between the factor and the response (Zait et al. 2022; Addar et al. 2023).

This is supported by the overall results of the analysis of variance (ANOVA), which assesses the descriptive quality of the model (Table 9). The ANOVA results demonstrate that the RSM models developed for the three responses (Y1, Y2, and Y3) are statistically significant. The high F-values and very low P-values (<0.0001 for Y1 and Y3, <0.0002 for Y2) indicate that the models effectively explain the variability in the responses based on the independent variables under investigation. The analysis of lack of fit (LOF) and pure error (PE) further confirms the reliability of the experimental design and replicates, as evidenced by consistent PE values. While the quadratic model fits Y1 well, the LOF results for Y2 and Y3 suggest areas for potential improvement though they do not undermine the model's applicability. These results highlight the balance between model complexity and practical use, with the quadratic model providing a reasonable and interpretable representation of the system. Compared with similar studies in the field, our results show low LOF and PE values, indicating that the RSM model provides a good fit for the data and delivers reliable results. This aligns with previous research employing RSM for optimizing wastewater treatment processes (Syahira & Norhaliza 2024). These results confirm the use of RSM in optimizing operational conditions in MBRs and elucidating the complex interactions among control variables.

Table 9

ANOVA results of the quadratic model for Y1, Y2, and Y3

ResponseSum of squaresDegree of freedomMean squareF-valueP-valueR2Lack of fitPure error
Y1 768.12 85.35 130.36 < 0.0001 0.9941 0.91 0.682 
Y2 653.46 72.57 25.04 0.0002 0.9699 8.16 0.712 
Y3 683.85 75.98 29.86 < 0.0001 0.9746 4.78 0.972 
ResponseSum of squaresDegree of freedomMean squareF-valueP-valueR2Lack of fitPure error
Y1 768.12 85.35 130.36 < 0.0001 0.9941 0.91 0.682 
Y2 653.46 72.57 25.04 0.0002 0.9699 8.16 0.712 
Y3 683.85 75.98 29.86 < 0.0001 0.9746 4.78 0.972 

To confirm that the model correctly describes the variations in responses, we need to ensure that the residuals are not locally abnormally high. The normality of the distribution of the residuals is an important assumption of the least squares method. Given the number N of trials in a design, Henry's graphical method is generally used (Figure 2). Each point in Figure 2 represents the value of the residual at a point in the experimental design. If the residuals follow a normal distribution, the points are almost aligned in a ‘gausso-arithmetic’ graph. The horizontal scale of this graph is linear (residuals) and the y-axis is graduated so that the distribution function of a random variable which follows a Gaussian distribution (a normal distribution) is represented by a straight line (Stéphanie 2024).
Figure 2

Design-expert plot; normal plot of residuals of COD, TSS, and TN.

Figure 2

Design-expert plot; normal plot of residuals of COD, TSS, and TN.

Close modal

Moreover, RSM models are often linear or quadratic approximations that may not capture all the non-linearities or complex behaviors of the MBR system. They are generally only valid in the region where the variables are studied and extrapolations outside this region can lead to incorrect predictions (Myers et al. 2016; Ghattas & Manzon 2023). RSM results can be influenced by unaccounted variables, such as variations in ambient temperature or fluctuations in feed water quality.

Process analysis

Experimental results were evaluated using RSM with a BBD. The response surface plots presented in Figures 35 highlight the influence of interactions between the three key parameters, namely HRT (=time spent) (X1), AR (oxygen flow) (X2), and TMP (X3), on the three responses examined, namely COD (Y1), TSS (Y2), and TN (Y3), within the MBR process. The coloration of the surfaces obtained varies from blue (minimum retention) to red (maximum retention).
Figure 3

3D response surfaces showing the effect of interaction between the three parameters (X1X2X3) on the response (Y1).

Figure 3

3D response surfaces showing the effect of interaction between the three parameters (X1X2X3) on the response (Y1).

Close modal
Figure 4

3D response surfaces showing the effect of interaction between the three parameters (X1X2X3) on the response (Y2).

Figure 4

3D response surfaces showing the effect of interaction between the three parameters (X1X2X3) on the response (Y2).

Close modal
Figure 5

3D response surfaces showing the effect of interaction between the three parameters (X1X2X3) on the response (Y3).

Figure 5

3D response surfaces showing the effect of interaction between the three parameters (X1X2X3) on the response (Y3).

Close modal

TMP and HRT in the plant have significant impacts on COD. In addition, the effect of HRT in the plant is more marked than that of TMP. At the same time, the influence of the AR is more moderate, resulting in a reduction as COD increases. In addition, the interaction between HRT in the plant and the AR has a noticeable impact, especially in the upper rather than the lower limits. Other interactions have more modest effects. Under optimum conditions, COD reduction can reach up to 96%.

Both operational parameters TMP and HRT exert substantial influences on the TSS. It is particularly important to note that the predominant effect of HRT is more marked than that of TMP, with a significant interaction between these two parameters. In parallel, the influence of the AR is moderate, manifested by a decrease in TSS concentration as it increases. In addition, the other interactions show more modest effects. Under optimal conditions, a reduction in TSS concentration of up to 95% is possible.

The TMP and HRT have significant impacts on TN. Furthermore, the effect of HRT is more pronounced than that of TMP. Concurrently, the influence of the AR is more moderate, leading to a reduction as TN increases. Moreover, the interaction between HRT and TMP is highly significant. The remaining interactions exhibit more modest effects.

The concept of desirability was introduced by Harrington (1965) and subsequently developed, in particular by Derringer & Suich (1980). It is based on the transformation of all the responses obtained from different measurement scales into an identical dimensionless desirability scale (individual desirability). The values of the desirability function are between 0 and 1.

Numerical optimization enables a desirable value to be selected for each factor and each response. Thus, the possible optimizations that can be selected are within a range, maximum, minimum, and objective. Under these conditions (Figure 6 and Table 10), the maximum removal efficiency of Y1, Y2, and Y3 reached 95.88, 97.04, and 98.32%, respectively for X1, X2, and X3 values of 15, 552, and 1.5, respectively. Desirability was 95.4%.
Table 10

Response optimization by BBD

X1X2X3Y1Y2Y3Desirability
MBR 15 552 1.5 95.883 97.024 98.317 0.954 Selected 
X1X2X3Y1Y2Y3Desirability
MBR 15 552 1.5 95.883 97.024 98.317 0.954 Selected 
Figure 6

Optimum conditions for the three responses (Y1Y2Y3).

Figure 6

Optimum conditions for the three responses (Y1Y2Y3).

Close modal

The use of RSM in MBR processing has several advantages and disadvantages. RSM optimizes operational conditions such as HRT, AR, and TMP to enhance MBR performance (Hee-deung et al. 2015; Kitanou et al. 2019; How et al. 2023). Using experimental designs like the BBD, the number of required experiments number is reduced, saving time and resources. RSM develops mathematical models that describe the relationships between independent variables and responses, allowing for the prediction of system performance (Myers et al. 2016). It also facilitates the visualization of the impact of control variables on responses through response surface plots and contour plots, enhancing the understanding of interactions between factors (Thomareis & Dimitreli 2022; Kacem et al. 2024). Additionally, RSM identifies and quantifies the interactions between independent variables, which is crucial for understanding the complex behavior of MBR systems (Mohan et al. 2022).

This study applied RSM to optimize the performance of a biological reactor coupled with external membrane ultrafiltration. The MBR was a successful biological treatment process to achieve high pollution removal efficiency, exhibiting 95% COD, 99.7% TSS, and 93% TN, removal efficiencies. The RSM results demonstrated the effects of the operating parameters and their interactive effects on pollution removal. By applying RSM, the optimum region for the bioreactor operating conditions was located. The optimum conditions reached an HRT of 15 h, an AR of 552 NL/h, and a TMP of 1.5 bar. The results demonstrated good agreement between experimental and model predictions. It is evident that RSM is an efficient statistical optimization approach that can help to distinguish between the most important operational parameters at the cost of minimum time and effort. Developing the membrane biological reactor system can significantly enhance the effluent quality to satisfy stringent regulations. It can serve as a promising alternative water in reuse irrigation to develop a sustainable environment.

All relevant data are included in the paper or its Supplementary Information.

The authors declare there is no conflict.

Addar
F. A.
,
Mohamed
I.
,
Kitanou
S.
,
Tahaikt
M.
,
Elmidaoui
A.
&
Taky
M.
(
2023
)
Performance of three anion-exchange membranes in fluoride ions removal by electrodialysis
,
Water Sci. Technol.
,
2023
,
1
14
.
doi:10.2166/wst.2023.423
.
Al-Asheh
S.
,
Bagheri
M.
&
Aidan
A.
(
2021
)
Case studies in chemical and environmental engineering, membrane bioreactor for wastewater treatment: a review
, Case Studies in Chemical and Environmental Engineering (CSCEE),
4
,
100109
.
https://doi.org/10.1016/j.cscee.2021.100109
.
APHA (American Public Health Association), AWWA (American Water Works Association) & WEF (Water Environment Federation)
(
2005
)
Standard Methods for the Examination of Water and Wastewater
.
Washington, DC, USA: American Public Health Association
, p.
54
.
Askari
N.
,
Farhadian
M.
&
Razmjou
A.
(
2018
)
Simultaneous effects of pH, concentration, pressure on dye removal by a polyamide nanofilter membrane; optimization through response surface methodology
,
Environ. Nanotechnol. Monit. Manage.
,
10
,
223
230
.
Aziz
Z. S.
,
Jazza
S. H.
,
Dageem
H. N.
,
Banoon
S. R.
,
Balboul
B. A.
&
Abdelzaher
M. A.
(
2024
)
Bacterial biodegradation of oil-contaminated soil for pollutant abatement contributing to achieve sustainable development goals: a comprehensive review
,
Results Eng.
,
22
,
102083
.
Benalla
S.
,
Addar
F. Z.
,
Tahaikt
M.
,
Elmidaoui
A.
&
Taky
M.
(
2022
)
Heavy metals removal by ion-exchange resin: experimentation and optimization by custom designs
,
Desalin. Water Treat.
,
262
,
347
358
.
doi:10.5004/dwt.2022.28607
.
Bruursema
T.
(
2011
)
The American National Standards help in evaluating and approving water reuse treatment technologies: the new NSF 350 and 350-1
. In:
Plumbing Systems & Design
.
Michigan, USA: American Society of Plumbing Engineers Publishers (ASPE)
, pp.
15
22
.
Derringer
G.
&
Suich
R.
(
1980
)
Simultaneous optimization of several response variables
,
J. Quality Technol.
,
12
,
214
219
.
Du
X.
,
Shi
Y.
,
Jegatheesan
V.
&
Haq
I. U.
(
2020
)
A review on the mechanism, impacts and control methods of membrane fouling in MBR system
,
Membranes
,
10
(
2
),
24
.
https://doi.org/10.3390/membranes10020024
.
Erzin
Y.
&
Tuskan
Y.
(
2017
)
Prediction of standard penetration test (SPT) value in Izmir, Turkey using radial basis neural network
,
Celal Bayar Univ. Fen Bilim. Derg.
,
13
,
433
439
.
Erzin
Y.
&
Tuskan
Y.
(
2019
)
The use of neural networks for predicting the factor of safety of soil against liquefaction
,
Sci. Iran. Trans. A Civil Eng.
,
26
,
2615
2623
.
Ghattas
B.
&
Manzon
D.
(
2023
)
Machine learning alternatives to response surface models
,
Mathematics
,
11
(
15
),
3406
.
https://doi.org/10.3390/math11153406
.
Global Membrane Bioreactor (MBR) Market
(
2021
). .
Gukelberger
E.
,
Atiye
T.
,
Mamo
J. A.
,
Hoevenaars
K.
,
Galiano
F.
,
Figoli
A.
,
Gabriele
B.
,
Mancuso
R.
,
Nakyewa
P.
,
Akello
F.
,
Otim
R.
,
Mbilingi
B.
,
Adhiambo
S. C.
,
Lanta
D.
,
Musambyah
M.
&
Hoinkis
J.
(
2020
)
Membrane bioreactor–treated domestic wastewater for sustainable reuse in the Lake Victoria region
,
Integr. Environ. Assess. Manage.
,
16
,
942
953
.
https://doi.org/10.1002/ieam.4281
.
Harrington
E. C.
(
1965
)
The desirability function
,
Ind. Qual. Control
,
21
,
494
498
.
Hee-deung
P.
,
N-soung
C. I.
&
Kwang-jin
L.
(
2015
)
Principles of Membrane Bioreactors for Wastewater Treatment – Waste Activated Sludge
.
Oxford, UK
:
Taylor & Francis
.
How
W.
,
Kang
C.
,
Min
S.
,
Carrera
P.
,
Siddiqui
M. A.
,
Chen
G.
&
Wu
D.
(
2023
)
Self-forming dynamic membrane bioreactors (SFDMBRs) for wastewater treatment
. In: Dennis, S. (ed.)
Current Developments in Biotechnology and Bioengineering
, Amsterdam, The Netherlands: Elsevier
, pp.
293
311
.
IMARC Group
(
2025
)
Membrane Bioreactor (MBR) – Market Report by System Configuration, Membrane Type, Application and Region, IMARC Group Edition
, Noida, India.
Irfan
M.
,
Waqas
S.
,
Arshad
U.
,
Khan
J. A.
,
Legutko
S.
,
Kruszelnicka
I.
,
Ginter-Kramarczyk
D.
,
Rahman
S.
&
Skrzypczak
A.
(
2022
)
Response surface methodology and artificial neural network modelling of membrane rotating biological contactors for wastewater treatment
,
Materials (Basel)
,
15
(
5
),
1932
.
doi:10.3390/ma15051932
.
Ji
K.
,
Liu
C.
,
He
H.
,
Mao
X.
,
Wei
L.
,
Wang
H.
,
Zhang
M.
,
Shen
Y.
,
Sun
R.
&
Zhou
F.
(
2023
)
Research progress of water treatment technology based on nanofiber membranes
,
Polymers
,
15
(
3
),
741
.
https://doi.org/10.3390/polym15030741
.
Jijingi
H. E.
,
Kazemi Yazdi
S.
,
Abdalla Abakar
Y.
&
Emma Etim
E.
(
2024
)
Evaluation of membrane bioreactor (MBR) technology for industrial wastewater treatment and its application in developing countries: a review
,
Case Stud. Chem. Environ. Eng.
,
10
,
100886
.
Kacem
S. B.
,
Clematis
D.
&
Elaoud
S. C.
(
2024
)
Response surface methodology for low-energy consumption electro-Fenton process for xanthene dye electrochemical degradation
,
J. Appl. Electrochem
,
54, 1009–1021
.
Khan
M. J.
,
Wibowo
A.
,
Karim
Z.
,
Posoknistakul
P.
,
Matsagar
B. M.
,
Wu
K. C.-W.
&
Sakdaronnarong
C.
(
2024
)
Wastewater treatment using membrane bioreactor technologies: removal of phenolic contaminants from oil and coal refineries and pharmaceutical industries
,
Polymers
,
16
(
3
),
443
.
https://doi.org/10.3390/polym16030443
.
Kitanou
S.
,
Qabli
H.
,
Zdeg
A.
,
Taky
M.
&
Elmidaoui
A.
(
2017
)
Performance of external membrane bioreactor for wastewater treatment and irrigation reuse
,
Desalin. Water Treat.
,
78
,
19
23
.
Kitanou
S.
,
Tahri
M.
,
Bachiri
B.
,
Mahi
M.
,
Hafsi
M.
,
Taky
M.
&
Elmidaoui
A.
(
2018
)
Comparative study of membrane bioreactor (MBR) and activated sludge processes in the treatment of Moroccan domestic wastewater
,
Water Sci. Technol.
,
78
,
1129
1136
.
Kitanou
S.
,
Taky
M.
&
Elmidaoui
A.
(
2019
)
Performance of an ultrafiltration membrane bioreactor (UF-MBR) in wastewater treatment
,
Desalin. Water Treat.
,
157
,
393
398
.
Kitanou
S.
,
Ayyoub
H.
,
El-Ghzizel
S.
,
Belhamidi
S.
,
Taky
M.
&
Elmidaoui
A.
(
2021a
)
Membrane bioreactor for domestic wastewater treatment: energetic assessment
,
Desalin. Water Treat.
,
240
,
55
62
.
Kitanou
S.
,
Ayyoub
H.
,
Touir
J.
,
Zdeg
A.
,
Benabdallah
S.
,
Taky
M.
&
Elmidaoui
A.
(
2021b
)
A comparative examination of MBR and SBR performance for municipal wastewater treatment
,
Water Pract. Technol.
,
16
(2), 582–591
.
Krzeminski
P.
,
Leverette
L.
,
Malamis
S.
&
Katsou
E.
(
2017
)
Membrane bioreactors – a review on recent developments in energy reduction, fouling control, novel configurations, LCA and market prospects
,
J. Membr. Sci.
,
527
,
207
227
.
https://doi.org/10.1016/j.memsci.2016.12.010
.
Mancha
E.
,
Walker
W. S.
,
Sutherland
J.
,
Seacord
T.
&
Hugaboon
D.
(
2014
)
Alternatives to Pilot Plant Studies for Membrane Technologies
.
Austin, TX, USA: Texas Water Development Board
.
Mao
X.
,
Myavagh
P. H.
,
Lotfikatouli
S.
,
Hsiao
B. S.
&
Walker
H. W.
(
2020
)
Membrane bioreactors for nitrogen removal from wastewater: a review
,
J. Environ. Eng.
,
146
,
03120002
.
MDCE. Ministère Délégué Chargé de l'Eau
(
2014
)
Préservation de la qualité des ressources en eau et lutte contre la polltion: valeurs Limites de Rejet à respecter par les déversementsvb- Normes de pollution
.
Rabat, Morocco
:
MDCE
.
Mohan
T. R.
,
Mohan Kumar
M. S.
&
Lakshminarayana
R.
(
2022
)
An integrated hydrodynamic-biokinetic model to optimize the treatment processes in a laboratory-scale, pilot-scale, and full-scale bioreactor
, Journal of Water Process Engineering,
49
,
103
108
.
Myers
R. H.
,
Montgomery
D. C.
&
Anderson-Cook
C. M.
(
2016
)
Response Surface Methodology: Process and Product Optimization Using Designed Experiments
, 4th edn., Hoboken, NJ, USA: John Wiley & Sons, p.
856
.
Pelaz
L.
,
Gómez
A.
,
Letona
A.
,
Garralón
G.
&
Fdz-Polanco
M.
(
2018
)
SBR process for the removal of nitrogen from anaerobically treated domestic wastewater
,
Water Sci. Technol.
,
77
,
1
10
.
Praveen
P.
,
Xiao
W.
,
Lamba
B.
&
Loh
K. C.
(
2019
)
Low-retention operation to enhance biomass productivity in an algal membrane photobioreactor
,
Algal Res.
,
40
, 101–487.
https://doi.org/10.1016/j.algal.2019.101487
.
Rahman
T. U.
,
Roy
H.
,
Islam
M. R.
,
Tahmid
M.
,
Fariha
A.
,
Mazumder
A.
,
Tasnim
N.
,
Pervez
M. N.
,
Cai
Y.
,
Naddeo
V.
&
Islam
M. S.
(
2023
)
The advancement in membrane bioreactor (MBR) technology toward sustainable industrial wastewater management
,
Membranes (Basel)
,
13
(
2
),
181
.
doi:10.3390/membranes13020181
.
Rodier
J.
,
Legube
B.
&
Merlet
N.
(
2009
)
Analyse de l'eau
, 9ème edn., Paris, France: Dunod, p.
1579
.
Sahaa
P.
,
Sasikumar Jampa
S.
,
Kumar Sinha
M.
&
Khuntia
S.
(
2023
)
Hybrid membrane process for water treatment: a short review
,
AQUA – Water infrastruct. Ecosyst. Soc.
,
72
(
5
),
608
.
doi:10.2166/aqua.2023.097
.
Shakir
E.
,
Zahraw
E.
&
Al-Obaidy
Z.
(
2017
)
Environmental and health risks associated with reuse of wastewater for irrigation
,
Egypt. J. Pet.
,
26
(
1
),
95
102
.
Stéphanie
M. V. d. B.
(
2024
)
Analysing Data Using Linear Models – With Applications in R
, Enschede, The Netherlands: University of Twente, pp.
55
62
.
Thomareis
A. S.
&
Dimitreli
G.
(
2022
)
Techniques Used for Processed Cheese Characterization
, Amsterdam, The Netherlands: Elsevier, pp.
295
349
.
Thomas
O.
&
Thomas
M. F.
(
2022
)
UV-Visible Spectrophotometry of Waters and Soils
, 3rd edn.
Amsterdam, The Netherlands: Elsevier
, pp.
347
383
.
Tuskan
Y.
&
Basari
E.
(
2023
)
Evaluation of sustainable slope stability with anti-slide piles using an integrated AHP-VIKOR methodology
,
Sustainability
,
15
,
12075
.
https://doi.org/10.3390/su151512075
.
Tuskan
Y.
&
Erzi̇n
Y.
(
2024
)
Application of Monte Carlo simulation technique for slopes stabilized with piles
,
AKU J. Sci. Eng.
,
24
,
015603
,
117–125. https://doi.org/10.35414/akufemubid.1287644
.
Waqas
S.
,
Harun
N. Y.
,
Bilad
M. R.
,
Samsuri
T.
,
Nordin
N. A. H. M.
,
Shamsuddin
N.
,
Nandiyanto
A. B. D.
,
Huda
N.
&
Roslan
J.
(
2022
)
Response surface methodology for optimization of rotating biological contactor combined with external membrane filtration for wastewater treatment
,
Membranes
,
12
(
3
),
271
.
https://doi.org/10.3390/membranes1203027
.
Waqas
S.
,
Harun
N. Y.
,
Sambudi
N. S.
,
Abioye
K. J.
,
Zeeshan
M. H.
,
Ali
A.
,
Abdulrahman
A.
,
Alkhattabi
L.
&
Alsaadi
A. S.
(
2023
)
Effect of operating parameters on the performance of integrated fixed-film activated sludge for wastewater treatment
,
Membranes
,
13
(
8
),
704
.
https://doi.org/10.3390/membranes13080704
.
WHO
(
2006
)
Guidelines for the Safe Use of Wastewater, Excreta and Greywater
, Vol.
1
.
Geneva, Switzerland
:
World Health Organization
, p.
114
.
Wu
Y.
,
Xia
Y.
,
Jing
X.
,
Cai
P.
,
Igalavithana
A. D.
,
Tang
C.
,
Tsang
D. C. W.
&
Ok
Y. S.
(
2020
)
Recent advances in mitigating membrane biofouling using carbon-based materials
,
J. Hazard. Mater.
,
382
,
120976
.
doi:10.1016/j.jhazmat.2019.120976
.
Yang
M.
,
Yu
D.
,
Liu
M.
,
Zheng
L.
,
Zheng
X.
,
Wei
Y.
,
Wang
F.
&
Fan
Y.
(
2017
)
Optimization of MBR hydrodynamics for cake layer fouling control through CFD simulation and RSM design
,
Bioresour. Technol.
,
227
,
102
111
.
Zait
M.
,
Addar
F. Z.
,
Elfilali
N.
,
Tahaikt
M.
,
Elmidaoui
A.
&
Taky
M.
(
2022
)
Analysis and optimization of operating conditions on ultrafiltration of land leachate using a response surface methodological approach
,
Desalin. Water Treat.
,
257
,
64
75
.
doi: 10.5004/dwt.2022.28399
.
This is an Open Access article distributed under the terms of the Creative Commons Attribution Licence (CC BY-ND 4.0), which permits copying and redistribution with no derivatives, provided the original work is properly cited (http://creativecommons.org/licenses/by-nd/4.0/).