Introduction

Industrial wastewater is one of the significant sources of environment pollution that wastewater treatment should be designed especially for the particular type of produced effluent (Shi and Qian 2009). Numerous treatment methods such as biological systems (Pirsaheb et al. 2015; Amini et al. 2013; Asadi et al. 2012a, b; Pirsaheb et al. 2009), photocatalytic degradation (Shahrezaei et al. 2012), coagulation and electrocoagulation (Abbasi et al. 2020; Zinatizadeh et al. 2017; Birjandi et al. 2013), adsorption process (Sharafi et al. 2015) and membrane technology (Gholami et al. 2018; Zinadini et al. 2017; Rahimi et al. 2016; Abou-Elela and El-Khateeb 2015) have been used to remove pollutants from different industrial effluents. Besides, natural treatment systems have been extensively studied for wastewater treatment as a cost-effective process, although their retention time is relatively long due to weak energy dissipation (Mansouri et al. 2012).

Among biological treatment systems used, some are conventionally applied including activated sludge (AS), trickling filter (TF), rotating biological contactor (RBC), fluidized bed bioreactor (FBBRs), biological nutrient removal (BNR), membrane bioreactors (MBRs) (Grady et al. 1999). MBR is a wastewater treatment technology combining membrane separation process with conventional activated sludge (CAS) treatment process that can be used for producing high quality effluent (Stephenson et al. 2000). Some of the advantages of MBR are high biomass concentrations, less space requirement rather than traditional systems, lower hydraulic retention time, lower biosolids, high effluent quality, good disinfection capability and higher volumetric loading (Shon et al. 2011).

Microfiltration (MF) and ultrafiltration (UF) are two types of membrane processes that expansively used in MBR (Ho and Sirkar 2012). UF takes away all microbiological species deleted by MF (partial deletion bacteria) along some viruses (but not a certain obstacle to viruses) and humic materials. Membrane fouling is a main obstacle which restricts wide using MBR. In addition, further membrane cleaning and associated costs are also of high concern for MBR users. Recognizing fouling mechanisms is substantial for controlling membrane fouling, including the characteristics of the constituents causing membrane fouling and fouling factors (Stephenson et al. 2000). The membrane fouling in MBR can be attributed to membrane pore constriction, pore blocking as well as cake layer formation by sludge particles, colloids and solutes. Generally, reversible fouling is because of cake layer formation, while irreversible fouling is due to pore blocking (Meng et al. 2009).

Metal ions have a considerable role in the formation of fouling layers, bridging the deposited cells, and biopolymers result in a dense cake layer (Costa et al. 2006). Bound extracellular polymeric substances (EPSs), soluble microbial products (SMPs) and biomass secretion exist in the MBR systems regarded as the main foulants. SMP and EPS can accumulate on the membranes or penetrate into membrane pores. EPS in both bound and soluble form is currently recognized as the predominant cause of membrane fouling in MBRs. Bound EPS involves proteins, polysaccharides, nucleic acids, lipids, humic acids, etc., located at or outside the cell surface. SMP can be described as the pool of organic compounds releasing into solution from substrate metabolism (usually with biomass growth) and biomass decay (Barker and Stuckey 1999).

The factors affecting membrane fouling can be categorized into four groups: membrane materials, biomass characteristics, feed characteristics and operating conditions. The intricate interactions between these aspects make more difficult the understanding of membrane fouling (Le-Clech et al. 2006). Aeration (Trussell et al. 2007), solid retention time (SRT) (Rosenberger et al. 2006), hydraulic retention time (HRT) (Laspidou and Rittmann 2002), food-to-microorganism ratio (F/M) (Cicek et al. 2001, Trussell et al. 2006), temperature (Morgan-Sagastume and Allen 2005), coarse bubble (Fane et al. 2005), dissolved oxygen (DO) (Min et al. 2008) and other operational parameters all have various influences on membrane fouling (Dufresne et al. 1997). The modified membranes by TiO2 (Bae and Tak 2005), –NH2 (Yu et al. 2005a), –COOH (Yu et al. 2005b) and magnetic nanoparticle (Zinadini et al. 2014) can be more hydrophilic than unmodified membranes due to higher affinity of metal oxides and hydrophilic groups (–NH2, –COOH) to water. The membrane permeability of aerobic granular sludge membrane bioreactor (AGMBR) was more than 50% higher than conventional MBR, while AGMBR had more severe irreversible fouling (Li et al. 2005).

The overgrowth of filamentous bacteria resulted in the sharp increase in bound EPS concentration and then induced the increase in sludge viscosity and sludge hydrophobicity (Su et al. 2008). Addition of an optimum calcium concentration as coagulants could induce lower SMP concentration led to cake layer resistance and decreasing pore blocking resistance (Kim and Jang 2006). In fact, mixed liquor suspended solids (MLSS) or biomass concentration has a complex interaction with MBR fouling. Substrate type or feed water composition affects the formation and elimination of SMP. McAdam et al. (2007) observed that carbon substrate had a great influence on floc stability (McAdam et al. 2007). The lower EPS concentrations at the higher protein-to-carbohydrate ratios (4/1 and 8/1) caused smaller flocs leading to higher cake resistance and higher fouling rates (Arabi and Nakhla 2008).

In this study, the performance of an activated sludge followed by membrane process (AS-MP) with MF and UF membranes treating three different wastewaters (with biological oxygen demand to chemical oxygen demand (BOD5/COD) ratios of 0.36, 0.65 and 0.83) at different operating conditions (HRT and operating pressure) was investigated. In this regard, the AS-MP system was operated at different HRTs 4–20 h with biomass concentration of 7000–8000 mg/l and constant chemical oxygen demand (COD) ~ 1000 mg L‒1. The performance of a commercial polyvinylidene fluoride (PVDF) MF membrane and a synthetic ZnFe2O4/SiO2 embedded polyether sulfone (PES) UF membrane under optimal operating pressure was compared, and the best membrane was recognized to treat three different wastewaters. Total chemical oxygen demand (TCOD) removal efficiency, sludge volume index (SVI), turbidity, feed flux (Jfeed) and flux recovery ratio (FRR) were measured and calculated as process responses. ZnFe2O4/SiO2 is a magnetic, non-toxic and low-cost nanoparticle which induced higher hydrophilicity to the membrane surface. This affected the pure water flux, hydrophilicity and antifouling properties of the fabricated membranes. Usually, the magnetic polymer composites can be tailored to exhibit some new properties such as good film forming and processing properties, besides electrical, magnetic and optical properties (Zinadini et al. 2014).

Materials and methods

Wastewater characteristics

The characteristics of three different wastewaters used in this study including soft drink, pineapple fruit juice and amoxicillin wastewaters are shown in Table 1. These wastewaters were stored in cool room to avoid any changes in their characteristics. Supplementary nutrients such as nitrogen (NH4Cl) and phosphorous (KH2PO4) were added to wastewaters to give a ratio of COD/N/P of 100:5:1.

Table 1 Wastewaters characteristics

Seed sludge preparation

The seeding source of the reactor was the sludge taken from aerobic sludge digester of Faraman industrial estate, Kermanshah, Iran. Mixed liquor suspended solids concentration of the seed was initially measured as 7000–8000 mg/l.

Membrane separation section

In this work, in order to evaluate the effect of feed composition on membrane fouling, a commercial MF membrane (with a thickness of 125 µm and nominal pore size of 0.22 µm obtained from Millipore Corporation) and high-performance synthetic ZnFe2O4/SiO2 nanoparticles embedded polyether sulfone (PES) ultrafiltration (UF) membrane were applied. The UF membrane was prepared via wet phase inversion method using casting solutions involving PES (15 wt%), PVP (1 wt%) and 0.5 wt% ZnFe2O4/SiO2 magnetic nanoparticles in dimethylacetamide (DMAc) as solvent. The coagulation bath during phase inversion was exposed to magnetic field (0.1 Tesla) in order to migration of hydrophilic nanoparticles on the membrane surface and inducing antifouling capability. A complete description of the procedure has been presented elsewhere (Zinadini et al. 2014).

AS-MP setup

The AS-MP used in this study, as shown in Fig. 1, consisted of a plexiglass aeration tank with a working volume of 3 L (the total volume of aeration tank was 4 L with 13 cm inner diameter and 30 cm height) and a sedimentation tank (the total volume of sedimentation tank was 3.5 L with 10 cm inner diameter and 50 cm height). Synthetic wastewater kept in a polyethylene tank was fed to the reactor by a peristaltic pump (PD5201, Heidolph, Germany) at desired flow rates. The reactor was aerated using an air pump and several porous diffusers. The dissolved oxygen (DO) concentration in the bioreactor was 2.5–4 mg/L. A sedimentation tank was placed after the aeration tank to provide the required biomass concentration in the system by recycling activated sludge using a centrifuge pump. The treated wastewater at the top of the settling tank was discharged from the tank as final effluent. The reason of the use of settling tank was to study the effects of soluble matters from different wastewaters on the membrane performance. The bioreactor was tested at different levels of HRTs. After reaching steady-state conditions, a sample of effluent was taken from the sedimentation tank to do the filtration process using the commercial microfiltration (MF) and synthesized ultrafiltration (UF) membranes. The synthesized ultrafiltration (UF) and commercial microfiltration (MF) membranes were put on rigid sponge and placed in the dead-end stirred cell. The cell was fitted with a pressure gauge. Pressurized nitrogen gas was used to force the liquid through the membrane.

Fig. 1
figure 1

Schematic structure of AS-MP used in this study

System operation procedure

The experimental conditions examined in this study are presented in Table 2. As can be seen in Table 2, three different wastewaters with different BOD5/COD ratios (0.36, 0.65 and 0.83) were selected. The AS-MP system was operated in completely stirred hydraulic regime (3-lit activated sludge (AS) system) with biomass concentration (MLSS) 7000–8000 mg/l and different hydraulic retention times (HRTs) 4–20 h to treat three various wastewaters with constant COD ~ 1000 mg/l. In the first stage, TCOD removal, sludge volume index (SVI) and turbidity at different HRTs for three wastewaters (with different BOD5/COD ratios) were measured and calculated as process responses.

Table 2 Experimental conditions

In the second stage, membrane performance in terms of feed flux (Jfeed) and flux recovery ratio (FRR) at different HRTs for three wastewaters was investigated. The operational pressure of MF and UF processes was adjusted at 10 and 30 psi, respectively. It must be noted that the main objective is to introduce a membrane bioreactor to achieve higher performance in terms of effluent characteristics and membrane fouling. In this mean, the performance of a modified UF with improved hydrophilicity and antifouling properties was compared with commercial MF membrane. It should be noted that the samples used for membrane separation were taken from clear zone of settling tank.

In the third stage, in order to investigate the effect of operating pressure on membrane fouling, the performance of membranes was examined at different operating pressures at optimal HRTs. Feed flux (Jfeed) and flux recovery ratio (FRR) were measured and calculated as responses to assess the function of the membranes at different conditions.

In the fourth stage, to investigate the effect of cake formation on membrane fouling during treatment of wastewater, first, the pure water flux of membranes was calculated at optimal pressures determined in the earlier stage for MF and UF membranes as Jw.1. Then, at optimal run of each wastewater, flux (JFeed) was calculated at adjusted pressure over long-term filtration (500 min). Due to high wash out of microorganisms in the bioreactor, this time was sufficient for thin layer cake formation on membrane surface. Finally, the pure water flux was calculated again after placing the membrane in distilled water for 20 min as Jw.2. In a steady-state situation, the values of flux feed (JFeed), flux recovery ratio (FRR) and flux reduction percent (FR%) were calculated.

In the last stage, in order to investigate the effect of wastewater type on membrane fouling during long-term filtration, 10 times of the filtration test were performed. The effluent of bioreactor at optimal run of each wastewater was passed through membranes over 60 min after this time, and a very thin cake layer was formed on membrane surface that affected on membrane permeability. In order to removal of this effects and considering of only irreversible fouling, the fouled membrane was dipped into distilled water for omitting reversible fouling about 5 min. The cleaned membrane was placed in dead-end cell again and refilled with effluent of bioreactor for more filtration. This procedure was repeated 10 times for both MF and UF membrane at optimal pressures for each wastewater. In a steady-state situation, the values of Jfeed were measured.

Parameters studied

In this study, in order to evaluate the performance of the system, different parameters as process response were measured and calculated. The parameters are: TCOD removal, SVI, Jfeed, FRR and FR.

$${\text{COD}}\; {\text{removal}} \left( \% \right) = \left( {\frac{{{\text{COD}}_{\text{in}} - {\text{COD}}_{\text{out}} }}{{{\text{COD}}_{\text{in}} }}} \right) \times 100$$
(1)
$${\text{SVI}} = \left( {\frac{{{\text{settled\;sludge\;volume }}\left( {\frac{{\rm ml}}{{\rm l}}} \right)}}{{{\text{suspended\;solids}} \left( {\frac{{\rm mg}}{{\rm l}}} \right)}}} \right) \times 1000$$
(2)
$$J_{w,1} = \,\frac{M}{A\,\Delta t}$$
(3)
$${\text{FRR}}\,(\% )\, = \,(\frac{{J_{w,2} }}{{J_{w,1} }})\, \times \,100$$
(4)
$${\text{FR}} \left( \% \right) = \left( {\frac{{{\text{The}}\;{\text{final}} \;{\text{flux}}}}{{{\text{The}}\; {\text{initial}}\;{\text{flux}}}}} \right) \times 100$$
(5)

where M (kg) is the weight of permeated water, A (m2) is the membrane area, and Δt (h) is the permeation time. Permeates were collected over a given period and weighed.

Analytical procedure

The concentrations of chemical oxygen demand (COD), biological oxygen demand (BOD), total Kjeldahl nitrogen (TKN), nitrate (NO3 ), phosphate (PO3‒4 ), sludge volume index (SVI), turbidity (Turb.) and MLSS of the system were determined by using standard methods for the examination of water and wastewater (APHA 1999). For COD, a colorimetric method with closed reflux procedure was developed. Spectrophotometer (6320D, Jenway, USA) at 600 nm was used to measure the absorbance of COD samples. The DO concentration in wastewater was determined using a DO probe. DO meter was supplied by WTW DO Cell OX 330, electro DO probe, Germany. Turbidity was measured by a turbidity meter model 2100 P (Hach Co., USA).

Results and discussion

Bioreactor performance

COD removal

Table 3 presents the operating condition and the obtained results from bioreactor treating different wastewaters. To design a biological wastewater treatment system, it is most desirable to achieve higher COD removal at lower HRT. Therefore, an optimum (minimum) HRT is needed to be experimentally found. The COD removal efficiency for different wastewaters is shown in Table 3. The steady-state data were collected after several turnovers. Soft drink wastewater with BOD5/COD ratio of 0.83 was used as first substrate in the AS-MP. As can be seen in Table 3, slightly the COD removal efficiency decreased from 95.4 to 87.1% with an increase in HRT from 4 to 20 h. The relatively high BOD5/COD ratio of the soft drink wastewater indicates high biodegradability. As reported in Table 3, the highest COD removal efficiency has been achieved at the lowest HRT. It seems that during the starvation phase, soluble microbial products (SMP) are released from the microbial aggregates to the bulk phase and the released quantity increases with the starvation length. The starvation phenomenon is intensified by decreasing food-to-microorganism ratio (F/M) from 0.77 to 0.152 d−1 that is depicted in Table 3. This can accumulate SMPs which are little or very slowly biodegradable (Charmot-Charbonnel et al. 1999). In a similar research work, a decreasing trend in TCOD removal efficiency was observed with an increase in HRT from 12 to 36 h (corresponding to F/M of 0.4–0.11 d−1) (Asadi et al. 2012a).

Table 3 The operating conditions and the results obtained for treating different wastewaters

Pineapple fruit juice production wastewater with BOD5/COD ratio of 0.63 was used as second feed in AS-MP, and the treatment process data are presented in Table 3. From the results, by increasing HRT from 4 to 20 h, the response was increased from 65.7 to 81.3%. It is noted that HRTs higher than 8 h did not show significant effect.

From the literature, for the treatment of concentrated fruit juice wastewater with BOD5/COD ratio of 0.66, the maximum COD removal efficiency (98%) was obtained in a condition with an initial biomass concentration between 2000 and 3000 mg/l, initial COD loads of 20,000 mgCOD/l, aeration period of 18 h/day and retention time of 14 days (Amor et al. 2012).

Finally, amoxicillin wastewater with BOD5/COD ratio of 0.36 was used as third substrate in the AS-MP. The steady-state performance data of the AS-MP are summarized in Table 3. As can be seen in the table, an increasing trend in TCOD removal efficiency from 34 to 94% was observed with an increase in HRT from 4 to 20 h and a decreasing in F/M ratio from 0.81 to 0.18 d−1. Higher biodegradability might be expected in the wastewater treatment process where high biomass concentration was employed. Higher HRTs usually result in better removal performance in a wastewater with low BOD5/COD ratio such as amoxicillin (Isma et al. 2014). A high COD removal can be expected due to full particle retention promoting the adsorption onto the sludge flocks (Radjenovic et al. 2008). Maximum TCOD removal efficiency was found to be 94.5% at HRT of 16 h. The obtained results indicated that higher COD removal efficiency can be achieved at higher HRT due to the slight decrease in amoxicillin loading rates in the system. However, the high extent of amoxicillin loading rate was not significantly effective in biological amoxicillin removal efficiencies.

In another study, for the treatment of a pharmaceutical wastewater contaminated with amoxicillin, the optimum COD and total suspended solids (TSSs) removal efficiencies of 83.2% and 78.8% were achieved after 24 h retention time, respectively (SI and MA).

By comparing the results from different wastewaters at low HRTs (4 and 8 h) in Table 3, it is shown that as BOD5/COD ratio increases, the effect of HRT becomes less. As a result, it is recommended that the system to be operated at lower F/M for lower BOD5/COD ratios.

Effluent turbidity

The effluent turbidity of wastewater treatment plants depends on the quantity of solid matters present in the suspension state. Table 3 illustrates effluent turbidity under different HRTs for three wastewaters studied. For soft drink wastewater, by increasing HRT from 4 to 20 h, the effluent turbidity increased from 38.6 to 170 NTU. This could be due to the microbial floc disintegration at higher HRTs. Higher values of turbidity in AS-MP system could be because of cell debris during biological treatment. It is known that flocculated sludge shows more sweeping impact (Asadi et al. 2012b). These results are confirmed by SVI measurements that are discussed in next section.

For pineapple fruit juice wastewater, the effluent turbidity was increased from 60 to 138 NTU after setting in the bioreactor by increasing HRT from 4 to 20 h. This behavior can be attributed to the dispersion of filaments from the flocs into the bulk solution that induced by filamentous bacteria which lead to a decrease in density of the floc and therefore adverse settling and higher turbidity (Ozbas et al. 2006). According to the measured effluent turbidity for amoxicillin wastewater shown in Table 3, the variation of data was between 104 and 124 NTU. Slight changes in the effluent turbidity were observed with increasing in HRT.

From the results of Table 3, for the wastewater with high BOD5/COD ratio, the biochemical reaction rate is high. This causes an increase in the effluent turbidity as HRT increases due to relative disintegration of the microbial floc.

Sludge volume index (SVI)

In this study, effluent SVI was measured as a response and its variation as a function of F/M ratio at different operating conditions. The SVI data for the three types of wastewater are shown in Table 3. Table 3 shows SVI for soft drink wastewater that indicates a reverse impact of HRT on SVI, increasing effect from 31.5 to 90.6 ml/g with an increase in HRT from 4 to 12 h and decreasing effect from 90.6 to 60.2 ml/g by further increase in HRT from 12 to 20 h. It should be mentioned that the range of SVI obtained is in the normal range for AS systems. The increase in the response could be owing to a relatively high sludge concentration, F/M ratio at HRT of 12 h was much lower than that at the initial stage and it could favor the fast growth of filamentous microorganisms. It must be noted that the size of flocs formed became smaller by increasing HRT (decreasing F/M) throughout the experiments which was associated with an increase in turbidity from the less sweeping impact. However, a decrease in SVI after an increase in HRT from 12 to 20 h was because of the smaller flocs which generates a relative denser sludge (SVI of 60 vs. 90 ml/g).

In the pineapple fruit juice wastewater (Table 3), SVI increased from the initial value of about 50 ml/g to a maximum value of 150 ml/g with an increasing in HRT from 4 to 20 h, which may be related to the filamentous bacteria community in the bioreactor. The lowest SVI was obtained at the lowest HRT (4 h), and the highest SVI was obtained at the highest HRT (20 h). As reported in Table 3, SVI values were in the range of 34–70 ml/g for amoxicillin wastewater, indicating the presence of good settling sludge. On the other hand, as mentioned earlier in “Effluent turbidity” section, the effluent turbidity was higher than 100 NTU at all operating conditions for amoxicillin wastewater which might be related to low range of SVI derived from small and dense flocs.

Performance of membrane filtration

Effect of HRT on membrane performance

It is obvious that activated sludge characteristic is an important factor on membrane fouling in MBR system. Type of wastewater and operating condition affect the sludge characteristics which in turn have a significant impact on membrane performance. The operational pressure of MF and UF processes was adjusted at 10 and 30 psi, respectively. The results are depicted in Figs. 2, 3 and 4.

Fig. 2
figure 2

Jfeed (a) and FRR (b) measured for MF membrane at constant pressure of 10 psi and Jfeed (c) and FRR (d) measured for UF membrane at constant pressure of 30 psi at different HRTs for soft drink wastewater

Fig. 3
figure 3

Jfeed (a) and FRR (b) measured for MF membrane at constant pressure of 10 psi and Jfeed (c) and FRR (d) measured for UF membrane at constant pressure of 30 psi at different HRTs for pineapple fruit juice wastewater

Fig. 4
figure 4

Jfeed (a) and FRR (b) measured for MF membrane at constant pressure of 10 psi and Jfeed (c) and FRR (d) measured for UF membrane at constant pressure of 30 psi at different HRTs for amoxicillin wastewater

FRR, JFeed, COD removal efficiency and effluent turbidity were considered as criteria to select the optimal condition for treatment of each wastewater. The runs with high FRR, JFeed and COD removal efficiency and low effluent turbidity were chosen as optimal run.

  • Soft drink wastewater

From Table 3, it is obvious that with increasing HRT from 4 to 20 h, the effluent turbidity was increased from 38.6 to 170 NTU. At this condition, JFeed was decreased from 44.8 to 19.78 kg/m2h in MF membrane and from 23.13 to 11 kg/m2h in UF membrane (Fig. 2a, c). As a result, at HRT of 4 h, the lowest effluent turbidity and the highest JFeed were obtained at both MF and UF membranes. In this research, it is assumed that the effluent turbidity affects the specific resistance of the cake. The results presented in Fig. 2b, d indicated that the lowest FRRs were obtained at HRTs of 16 and 20 h for both MF and UF membranes. This result might be due to famine condition which stimulates the release of SMP (Asadi et al. 2012a). In contrast, the highest FRR was obtained at HRTs of 4 and 12 h for MF and 4 h for UF membrane. Higher SMP concentrations in the form of carbohydrate and protein resulted in higher membrane fouling rates. Higher SMP concentrations cause higher pore blocking, and SMP aggregations serve as attachment sites for the bulk SMP. Furthermore, SMP could reduce the cake porosity seriously by filling the void spaces between the cell particles in the cake layer (Trussell et al. 2006).

Therefore, from Table 3 and Fig. 2, HRTs of 4 and 12 h were considered as optimal runs for the MF membrane and HRT of 4 h was selected as optimal run for the UF membrane. It should be mentioned that Jfeed value was not suitable enough at HRT of 12 h in the MF membrane. However, FRR was higher compared to other runs at HRT of 12 h.

  • Pineapple fruit juice wastewater

As shown in Table 3, the effluent turbidity was increased from 60 to 138 NTU and SVI was increased from 51.5 to 155 ml/g with increasing HRT from 4 to 20 h. The reason for these observations might be the growth of filamentous bacteria with increasing HRT from 4 to 20 h. The extracellular polymeric substances (EPS) concentration usually increases as filamentous bacteria grow. This factor had negative effect on membrane fouling (Meng et al. 2007). Figure 3a, c shows that with increasing HRT from 8 to 20 h, JFeed was decreased from 30.13 to 13.55 kg/m2h and from 18.76 to 6.13 kg/m2h in the MF and UF membranes, respectively. As shown in Table 3, by increasing effluent turbidity at high HRT levels (12 h rather than HRTs 4 and 8 h), JFeed was decreased significantly for MF and UF membranes, so it can be concluded that fouling was enhanced. From Fig. 3a, c, it was concluded that the flux value is changed significantly when effluent turbidity increased from 70.2 NTU at HRT = 8 h to 110 NTU at HRT = 12 h. But in both HRT = 4 and 8 h, effluent turbidity is almost same. The more favorable COD removal efficiency was reported at HRT of 8 h (“COD removal” section). It should be mentioned that BOD5/COD is 0.63 for this wastewater which indicates an acceptable biodegradability. At HRT levels lower and higher than 8 h, COD removal efficiency was decreased. At HRT levels lower than 8 h, OLR was relatively high, while at HRTs higher than 8 h, the system experienced longer famine phase which caused an increase in releasing SMP and finally enhanced membrane fouling. Therefore, from Table 3 and Fig. 3, HRT = 8 h with appropriate COD removal efficiency, low effluent turbidity and relatively better FRR and JFeed was considered as optimal run for pineapple fruit juice wastewater in both MF and UF membranes.

  • Amoxicillin wastewater

As can be seen in Table 3 and Fig. 4a, c, the effluent turbidity was in the range of 104–124 NTU, indicating almost similar performance of the bioreactor at different conditions which caused a narrow range of JFeed, 42.5–57.3 kg/m2h and 37.3–51.1 kg/m2h, for MF and UF membranes, respectively. As the effluent COD concentration was high at HRT of 4 h rather than other HRT levels (655 mg/l corresponding 34% of COD removal efficiency), the minimum FRR (55%) was obtained in this condition for the UF membrane. In contrast, the highest FRR (78.2%) was obtained at HRT of 16 h with the lowest effluent COD concentration (57 mg/l). This showed that membrane fouling is significant at the lowest HRT. This can be explained by the high velocity of blocking materials toward the membrane surface at low HRTs (Barrios-Martinez et al. 2006). These materials are then absorbed by the membrane, and hence, fouling occurs earlier. In a similar work that MBRs were operated for treating municipal wastewater, it was reported that a difference in F/M causes a difference in the nature of foulants. High F/M ratios would change the nature of the foulant to more proteinaceous, which might be related to more severe fouling (Kimura et al. 2005). So, the lowest FRR for UF membrane observed in Fig. 4d is related to the highest F/M ratio (0.81 d−1) which can be attributed to the proteinaceous nature of the foulant.

Therefore, from Table 3 and Fig. 4, HRT value of 16 h with the highest FRR (48 and 78.2% in MF and UF, respectively) and COD removal efficiency (94.5%) was considered as optimal run for amoxicillin wastewater in both MF and UF membranes.

The effect of operating pressure on membrane fouling

In order to investigate the effect of operating pressure on membrane fouling, the performance of two membranes (commercial MF and synthesized UF membranes) was examined at different operating pressures for treatment of three wastewaters at optimal HRTs. Feed flux (Jfeed) during 60 min and flux recovery ratio (FRR) were measured and calculated as the response to assess the function of the membranes at different conditions. The results are shown in Figs. 5, 6, 7 and 8.

Fig. 5
figure 5

JFeed (a) and FRR (b) measured for MF membrane and Jfeed (c) and FRR (d) measured for UF membrane at different pressures for soft drink wastewater (HRT = 4 h)

Fig. 6
figure 6

JFeed (a) and FRR (b) measured for MF membrane at different pressures for soft drink wastewater (HRT = 12 h)

Fig. 7
figure 7

JFeed (a) and FRR (b) measured for MF membrane and Jfeed (c) and FRR (d) measured for UF membrane at different pressures for pineapple fruit juice wastewater (HRT = 8 h)

Fig. 8
figure 8

JFeed (a) and FRR (b) measured for MF membrane and Jfeed (c) and FRR (d) measured for UF membrane at different pressures for amoxicillin wastewater (HRT = 16 h)

From the results obtained for the MF membranes, the flux showed an increasing trend with an increase in pressure from 5 to 15 psi which was due to higher permeation of the membrane at the enhanced driving force provided by the pressure. However, further increase in the pressure to 20 psi caused a slight decrease in the response which can be attributed to concentration polarization that occurs faster at high driving force (Lee et al. 1984).

To assess irreversible fouling in the MF membrane, FRR for different pressure conditions and wastewaters is presented in Figs. 5, 6, 7 and 8b. From the results, a significant decrease in FRR obtained when pressure increased from 5 to 10 psi for all wastewaters. This may be justified by pollutants penetration into membrane pores which increased irreversible fouling, whereas increase in the pressure from 10 to 15 psi improved FRR remarkably.

Based on the obtained results of FRR, 10 psi was not favored pressure. The lower and higher pressure values resulted in better FRR. As a fact, at pressure values lower than 10 psi, tiny particles were not forced to penetrate to membrane porosities, resulting in higher FRR value, while higher pressure values (≥ 10 psi) caused the formation of cake layer rapidly on the surface of membrane which this cake layer acts as a protective barrier to penetrate tiny particle and finally an increase in FRR was observed.

As a result, 15 psi pressure was found as the optimal operating pressure for MF membrane. In parallel, the synthesized UF membrane was tested under different operating pressures and the results were almost similar to those obtained for the MF membrane. From the results presented for Jfeed and FRR in Figs. 5, 6, 7 and 8c, d, maximum flux and FRR were obtained at 30 psi for wastewaters.

Table 4 summarizes the quality of filtered effluent in terms of COD and turbidity. From the results, soluble chemical oxygen demand (sCOD) removal efficiency was not influenced by MF and UF filtration and sCOD concentration for the filtered effluent was almost similar to the centrifuged sample. In contrast, turbidity was decreased with applying MF and UF membranes relative to the centrifuged sample.

Table 4 COD and turbidity in the different conditions for the optimal runs

Long-term performance of the MF and modified UF membranes used for different wastewaters

In our study, the supernatant of settling tank was passed through membranes. As wash out of microorganisms at high concentration of MLSS is considerable, therefore, very thin cake layer on membrane surface can be formed.

In this stage, to investigate the effect of cake formation on membrane fouling during treatment of different wastewaters, a long-term experiment (500 min) with the bioreactor effluent was carried out in the dead-end setup at adjusted pressure of 15 and 30 psi for MF and UF membranes, respectively. Due to high wash out of microorganisms in the bioreactor, this time was sufficient to thin layer cake formation on membrane surface. Also, the variations of flux through membranes (JFeed) as a function of time are depicted in Figs. 9 and 10. The flux is first decreased with an increase in time and finally become constant, leading to a time-independent filtration. The results of flux reduction percent (FR%) and flux recovery ratio (FRR) are presented in Tables 5 and 6. As shown in Fig. 9 and Table 5, for MF membrane, the highest flux decline for soft drink wastewater was observed at HRT of 4 h (FR% of 60.7), while the lowest reduction in the flux for the soft drink wastewater was obtained at HRT of 12 h (FR% = 11.3). The results showed that FRR for pineapple fruit juice wastewater was severely decreased. The higher FRR indicates the better antifouling property for the membrane. The FRR for the pineapple fruit juice wastewater at HRT of 8 h (25.3%) was lower than the FRR obtained for other wastewaters. In the best case, the flux recovery percentage for soft drink wastewater at both HRT of 4 and 12 h was 87%. The flux profiles for all runs showed the same trend of flux decrease with time. The decrease in the flux during membrane operation is commonly attributed to the thin cake layer formation on the membrane surface. Under the similar operating conditions with the same type of membrane materials, the fouling values are correlated with different biomass characteristics in membrane fouling. The total membrane resistance increased thereafter, likely due to cake formation and biofouling (Chang et al. 2002).

Fig. 9
figure 9

The results of Jfeed during long-term filtration in the MF membrane at constant pressure of 15 psi for three types of wastewater

Fig. 10
figure 10

The results of Jfeed during long-term filtration in the UF membrane at constant pressure of 30 psi for three types of wastewater

Table 5 The results of FRR% and FR% during long-term filtration in the MF membrane at constant pressure of 15 psi for three types of wastewater
Table 6 The results of FRR% and FR% during long-term filtration in the UF membrane at constant pressure of 30 psi for three types of wastewater

Figure 10 shows typical flux versus time profiles for the modified UF membrane. The flux for all runs declined with operating time due to membrane fouling. From Table 6, the highest flux decline and FRR for the pineapple fruit juice wastewater were observed at HRT of 8 h (FR = 57.8% and FRR = 91.1%). In both MF and UF membranes, the flux declined very rapidly in the first 40 min of the batch filtration tests. The initial sharp decline in permeate flux was mainly because of pore clogging and cake layer formation on the membrane surface. The drastic reduction in permeate flux might be caused by EPS that filled the void spaces between the cell particles in the cake layer (Hong et al. 2002).

The cross-flow module is the approach which is practiced in industry for the membrane filtration. In this method, the shear stress applied by the cross-flow regime avoids biofilm accumulation on the membrane surface. Therefore, in this stage, in order to stimulate the same condition in the dead-end system, the membrane was intermittently washed by pure water during a long-term filtration. The variations of flux (JFeed) are depicted in Figs. 11 and 12. From the figures, the changes in the flux were not significant for different wastewaters in both MF and UF membranes.

Fig. 11
figure 11

The results of Jfeed during intermittent filtration of MF membrane at constant pressure of 15 psi for three types of wastewater

Fig. 12
figure 12

The results of Jfeed during intermittent filtration of UF membrane at constant pressure of 30 psi for three types of wastewater

As a conclusion on the effect of wastewater type on the performance of the MF and UF membranes, Jfeed and FRR data at the optimum conditions for different wastewaters are compared in Fig. 13.

Fig. 13
figure 13

JFeed (a) and FRR (b) measured for MF membrane at pressures of 15 psi and Jfeed (c) and FRR (d) measured for UF membrane at pressures of 30 psi for type of wastewater

As can be seen in Fig. 13a, c, pineapple fruit juice wastewater has shown the lowest flux compared to the other wastewaters. The presence of some minerals such as Zn, As, Mg, Na, P, K and Al in pineapple juice has been reported by Sairi et al. (2004). Some cations can participate in biological precipitation and contribute to inorganic fouling. This could be result in more integrated sludge and fouling effect (Costa et al. 2006). However, FRR in UF membrane for pineapple fruit juice wastewater is highly relative to soft drink and amoxicillin wastewaters. The reason that can be given is that the particles present in pineapple fruit juice wastewater are smaller than MF membrane pores and can penetrate into the membrane pores and cause a considerable drop in FRR in the MF, while there was no any adverse impact on FRR in the UF.

From Fig. 13a, b, soft drink wastewater had the maximum feed flux (Jfeed) and FRR. It might be attributed to low turbidity of the feed and not interactive SMP with MF membrane composition, whereas this wastewater showed a lower Jfeed and FRR in the UF membrane, implying an effective interaction between the residual SMP and the UF membrane composition.

Table 7 summarizes the results for MF and UF membranes with different wastewaters composition. As a conclusion, both membranes (commercial MF and synthesized UF membranes) showed the same performance in terms of COD removal efficiency and effluent turbidity (Table 4). But, in terms of membrane performance parameters (flux and FRR), MF membrane showed better performance for soft drink wastewater due to higher Jfeed and FRR at lower operating pressure (15 psi) compared to the UF membrane. For pineapple fruit juice wastewater, despite the prepared UF membrane had lower Jfeed at higher operating pressure relative to the MF membrane, it is preferred for pineapple fruit juice wastewater due to its remarkable high FRR which is along with less operational cost for the membrane cleaning. Both membranes showed almost same performance for amoxicillin wastewater.

Table 7 FRR and JFeed measured for MF and UF membranes for type of wastewater

Conclusion

Three wastewaters with different BOD5/COD ratios (soft drink (0.83), pineapple fruit juice (0.63) and amoxicillin (0.36)) were successfully treated in AS-MP system. The optimal HRT obtained for soft drink, pineapple fruit juice and amoxicillin wastewaters was 4, 8 and 16 h, respectively. According to the obtained data of FRR and Jfeed, 15 and 30 psi were found as the optimal operating pressure for MF and UF membranes, respectively. From the results, sCOD removal efficiency was not influenced by MF and UF filtration, while turbidity was decreased with applying MF and UF membranes. As a conclusion, both membranes (commercial MF and synthesized UF membranes) showed the same performance in terms of COD removal efficiency and effluent turbidity. But, in terms of membrane performance parameters (flux and FRR), MF membrane showed better performance for soft drink wastewater due to higher Jfeed and FRR obtained at lower operating pressure (15 psi) compared to the UF membrane. For pineapple fruit juice wastewater, despite the prepared UF membrane had lower Jfeed at higher operating pressure relative to the MF membrane, it is preferred for pineapple fruit juice wastewater due to its remarkable high FRR which is along with less operational cost for the membrane cleaning. Both membranes showed almost same performance for amoxicillin wastewater.