Introduction

The nitrification and denitrification processes are of high importance in wastewater treatment plants because of the ammonia toxicity, oxygen demand, algae bloom and eutrophication in water bodies14,16,17. Insufficiently treated sewage are carrying plenty of nutrients and micropollutants that pose serious threats to receiving rivers34.

Another issue is the excess sludge which is generated from the biological treatment of wastewaters and must be disposed of in a safe and cost-effective manner for example in agricultural products15,23.

Reducing the nutrients and excess sludge in biological processes can be done by various techniques and methods. Some of these techniques consist of oxic-settling-anaerobic (OSA) process18,28, oxidation of the sludge by chlorine and ozone5,11. OSA technique is also a suitable solution for enhancement organic matter and nutrient (N & P) pollutants removal which significantly reduces biological excess sludge. This technology usually includes an aeration tank, a settling tank, and an anoxic/anaerobic tank in the return activated sludge line of the aerobic systems1,33,35,37.

Furthermore, some of the methods include the modified Ludzack-Ettinger (MLE) and integrated fixed-film activated sludge (IFAS)6,26. The IFAS technology increases the solid retention time without overloading the settling tank with solids and without the need to expand the aeration tank4,39. Combined with, OSA system enhances nitrification and denitrification and decreasing the excess sludge production and increases efficiency of IFAS process20.

Chudoba et al.8 compared the sludge yield of an OSA process with that of a CAS process and found that reduction of sludge yield from 0.48 to 0.13, the in the OSA system caused its reduction from 20 to 60%. The SVI was much lower and the ORP of -250 mV in the anaerobic tank showed a reduction of 36% in comparison with the ORP of + 100 mV. The OSA process had the excess sludge reduction of 58% compared with that of the CAS system8.

In Saby et al.25 also conducted similar research with CAS-OSA system. In his research ORP values in the anoxic and aerobic tanks were -250 mV and + 100 mV, respectively. The results revealed that the OSA process produced much less excess sludge than the control system25. Another researcher studied the OSA process for the reduction of biological sludge and found that the MLSS in a CAS-OSA process was reduced from 3000 mg/L to 2500 mg/L as the cellular mass production coefficient was reduced from 0.52 to 0.2 g biomass/g COD after 50 days with an ORP of -250 mV10.

In Vitanza et al.29 proved with his research on OSA technique in an anaerobic stage of the CAS system, that besides the good efficiency of the OSA system in the removal of COD, BOD, and nitrogen, the mass production coefficient (Y) was reduced from 0.6 to 0.4 g biomass/g COD. The ORP value was -160 mV while the COD, ammonia nitrogen, and phosphorus removal efficiencies were 76%, 82.5%, and 28%, respectively29. Also in research from Vitanza et al.30 observed the reduction of the excess sludge production in OSA technique of 49.6 ± 20.7% compared to the CAS system. Martins et al.18 research from 2020 has proven that better wastewater treatment performance was achieved using the OSA system (BOD5: 87%, TKN: 92%, NH4+–N: 94%) when compared with the CAS system (BOD5: 76%, TKN: 74%, NH4+–N: 78%), considering the organic matter and nitrogen removal rates.

In Corsino et. al.9. performed studies about the coupling of the OSA process with a thermal treatment at moderate temperature. The combination of the OSA process with the thermic treatment at moderate temperature (35 °C) enabled a very high efficiency of sludge minimization (80%), but lower nutrient reduction. Those research show a great potential for modification of oxic-settling-anaerobic technique.

The aim of this study was to investigate the performance of the new upgraded IFAS-OSA system in removing nitrogen, phosphorus, chemical oxygen demand (COD), and reducing excess sludge. The novelty of this study was the development of a new modified IFAS-OSA system for the first time by adding an anoxic sludge holding tank (ASHT) to the return sludge line of the system.

Materials and methods

Laboratory-scale IFAS, and IFAS-OSA systems

The IFAS reference system consisted of an automatic control system, a feeding tank, an equalization tank, a 72-L anoxic tank, a 144-L aeration tank, a sedimentation tank, an excess sludge tank, and an effluent tank. The modified IFAS-OSA system consisted of all the above-mentioned modules, however, it was extended with an additional anoxic sludge holding tank installed after excess sludge tank, before the effluent tank. In order to provide dissolved oxygen (4–6 mg/L DO), fine bubble diffusers were installed at the base of the aeration tanks. Aquarium pumps were used to achieve a complete mix in the bioreactors. In Fig. 1a,b schematic chart of the original treatment plant and the laboratory-scale IFAS-OSA system are presented.

Figure 1
figure 1

(a, b) The original plant setup and the experimental set-up; a: The original system, b: New upgraded IFAS-OSA system (created in Microsoft Word and Paint, link versions 2010&2013).

Media characteristics

The \({\mathrm{K}}_{3}\) media made of polyethylene with the bulk specific surface area of 584 m2/m3 and specific biofilm surface area of 325 m2/m3 at filling ratio of 50% were installed in the aerobic bioreactors in the fixed and attached operating mode.

Wastewater characteristics

Urban wastewater was supplied from Choneybeh wastewater treatment plant and well homogenized in a feeding tank. The characteristics of the wastewater are shown in Table 1.

Table 1 The characteristics of the wastewater used in this study.

Start-up and operation of the bioreactors

To start up the IFAS and the modified IFAS-OSA bioreactors, the Qin (influent flows) of the systems were adjusted to 18 L/h in order to achieve 4 h HRTs in the aeration tanks, and 4 h HRT in the ASHT of the IFAS-OSA system. Then 1000 ml of the seed collected from the return activated sludge (RAS) line of Choneybeh wastewater treatment plant was added to the bioreactors. The seed sludge was mixed with wastewater being treated, so the process of biological decomposition takes place more rapidly. Simultaneously, the wastewater was injected into the systems. The bioreactors were operated in parallel mode for 60 days allowing the microorganisms to adapt, grow, and reproduce on the fixed media (K3) creating attached biofilms. A returned activated sludge (RAS) flow rate of 80% Qin (Qin is the influent flow rate) was applied to the IFAS and the upgraded IFAS-OSA system.

The analytical methods

Physical–chemical analyses

After reaching steady state conditions in the IFAS and IFAS-OSA bioreactors, the main sampling and analyses were started. Chemical oxygen demand (COD) and total suspended solids (TSS) were measured according to the 5220B and 2540B methods, respectively, while the mixed liquor suspended solids (MLSS) was measured according to the 2540E method. Temperature and pH were measured by a pH meters (InoLab-Series WTW pH 720, Germany). DO was measured by a DO meters (Oxi 3210 SET 1, WTW, Germany). The total nitrogen and phosphorus were measured by a HACH DR5000 spectrophotometer (Merck, Germany) using the standard methods. All the above methods were extracted from standard methods for water and wastewater examination (APHA 2014). Total attached solid (TAS) was measured according to Kim et al.17.

Microbial analyses

Fungal media preparations

The Sabouraud Dextrose Agar (SDA) media (Merck, Germany) was composed of dextrose (40 g/L), casein peptone (10 g/L), agar (15 g/L), distilled water (1000 mL), and chloramphenicol (0.05 mg/L). This media was used for isolation of filamentous fungi and yeasts. The differentiating media CHROMagar Candida (Paris, France) and Urease (Merck, Germany) were used for identification. All the media were prepared according to manufacturer ‘s procedure. Slide cultures were prepared for filamentous fungi and yeasts.

Isolation and identification of the fungi

During the experiment, fungal samples were gathered each day from the sampling sites. 1 ml of the mixed wastewater samples of each site (immediately after collection) was aseptically pipetted into 4 Sabouraud Dextrose Agar (SDA) media (Merck, Germany). Afterward, all the petri dishes were incubated at room temperature for 48–72 h and identification processes were performed on them. The average number of colonies (CFU/ml) was calculated. The fungal isolates were identified at the genus and/or species levels (36; 31).

Molecular analysis

The polymerase chain reaction-restriction fragment length polymorphism (PCR–RFLP) technique was employed to perform the molecular analysis. For the PCR amplification of the target sequences using a thermal cycler machine (Bio-Rad C1000, USA), the internal spacer region (ITS) of the yeast rRNA genes and two universal primers (including ITS1 [5'-TCCGTAGGTGAACCTGCGG-3'] and ITS4 [5' -TCCTCCGCTTATTGATATGC-3']) (Bioneer, South Korea) were utilized. Msp1 enzyme (Thermo Fisher Scientific, Waltham, MA, USA) was employed to digest the PCR amplicons. In order to evaluate the presence and length of the PCR amplicons and the profile of the digested products, electrophoresis was performed in a 1.8% agarose gel (Roche, Mannhiem, Germany) which was stained with SYBR green. Afterward, using ultraviolet transillumination, the gels were detected19.

Isolation and identification of the protozoa and metazoa species

To isolate and identify the protozoa and metazoa species, the samples were collected once a week from the sampling sites. The identification (live observation) was carried out by an optical microscope (Olympus Microscopy, model: BH2, CH2) for a maximum of 3 h. All the protozoa and metazoa species were identified with an appropriate magnification. However, the staining method was used when necessary. The numbers of the observed protozoa and metazoa organisms were counted in three subsamples and then their average was calculated. For the identification of the protozoa and metazoa genera and species, several atlases and guides were used2.

Nitrogen and phosphorus mass balances

Ammonia (NH4+–N) mass balances for anoxic tank:

$$ V\frac{{dN_{AX} }}{dt} = 0 = \left( {Q_{in} )\left( {N_{in} } \right) + (Q_{RAS} } \right)\left( {N_{R} } \right) - \left( {Q_{in} + Q_{RAS} } \right)\left( {N_{AX} } \right) $$
(1)

where \(V\frac{{dN_{AX} }}{dt}\) is the ammonia (NH4+–N) rate in the anoxic tank. \({\text{Q}}_{{{\text{in}}}}\) is the influent flow. \({\text{N}}_{{{\text{in}}}}\) is the influent ammonia (NH4+–N) concentration. \({\text{Q}}_{{{\text{RAS}}}}\) is the returned activated sludge flow. \({\text{N}}_{{\text{R}}}\) is the ammonia (NH4+–N) concentration in the returned activated sludge flow. \({\text{N}}_{{{\text{AX}}}}\) is the ammonia (NH4+–N) concentration in the anoxic tank.

Ammonia (NH4+–N) mass balance for aeration tank:

$$ V\frac{{dN_{OX} }}{dt} = 0 = \left( {Q_{in} + Q_{RAS} } \right)\left( {N_{AX} } \right) - \left( {Q_{in} + Q_{RAS} } \right)\left( {N_{OX} } \right) $$
(2)

where \(V\frac{{dN_{AX} }}{dt}\) is the ammonia (NH4+–N) rate in the aeration tank. \({\text{Q}}_{{{\text{in}}}}\) is the influent flow. \({\text{Q}}_{{{\text{RAS}}}}\) is the returned activated sludge flow. \({\text{N}}_{{\text{R}}}\) is the ammonia (NH4+–N) concentration in the returned activated sludge flow. \({\text{N}}_{{{\text{OX}}}}\) is the ammonia (NH4+–N) concentration in the aeration tank.

Nitrate (NO3–N) mass balances for anoxic tank:

$$ V\frac{{dNO3_{AX} }}{dt} = 0 = \left( {Q_{in} } \right)\left( {NO_{in} } \right) + \left( {Q_{RAS} } \right)\left( {NO_{R} } \right) - \left( {Q_{in} + Q_{RAS} } \right)\left( {NO_{AX} } \right) $$
(3)

where \({\text{V}}\frac{{{\text{dNO}}3_{{{\text{AX}}}} }}{{{\text{dt}}}}\) is the nitrate (NO3–N) rate in the anoxic tank. \({\text{Q}}_{{{\text{in}}}}\) is the influent flow. \({\text{Q}}_{{{\text{RAS}}}}\) is the returned activated sludge flow. \({\text{NO}}_{{{\text{in}}}}\) is the nitrate (NO3–N) concentration in the influent. \({\text{NO}}_{{\text{R}}}\) is the nitrate (NO3–N) concentration in the returned activated sludge flow. \({\text{NO}}_{{{\text{AX}}}}\) is the nitrate (NO3–N) concentration in the anoxic tank.

Nitrate (NO3–N) mass balances for aeration tank:

$$ V\left( {\frac{{dNO3_{OX} }}{dt}} \right) = 0 = \left( {Q_{in} + Q_{RAS} } \right)\left( {NO_{AX} } \right) - \left( {Q_{in} + Q_{RAS} } \right)\left( {NO_{OX} } \right) $$
(4)

where \({\text{V}}\frac{{{\text{dNO}}3_{{{\text{OX}}}} }}{{{\text{dt}}}}\) is the nitrate (NO3–N) rate in the aeration tank. \({\text{Q}}_{{{\text{in}}}}\) is the influent flow. \({\text{Q}}_{{{\text{RAS}}}}\) is the returned activated sludge flow. \({\text{NO}}_{{{\text{AX}}}}\) is the nitrate (NO3–N) concentration in the anoxic tank. \({\text{NO}}_{OX}\) is the nitrate (NO3–N) concentration in the aeration tank.

Phosphate (PO4–3–P) mass balances for anoxic tank:

$$ V\frac{{dPO4_{AX} }}{dt} = 0 = \left( {Q_{in} } \right)\left( {PO_{in} } \right) + \left( {Q_{RAS} } \right)\left( {PO_{R} } \right) - \left( {Q_{in} + Q_{RAS} } \right)\left( {PO_{AX} } \right) $$
(5)

where \({\text{V}}\frac{{{\text{dPO}}4_{{{\text{AX}}}} }}{{{\text{dt}}}}\) is the nitrate (PO4–3–P) rate in the anoxic tank. \({\text{Q}}_{{{\text{in}}}}\) is the influent flow. \({\text{Q}}_{{{\text{RAS}}}}\) is the returned activated sludge flow. \({\text{PO}}_{{{\text{in}}}}\) is the nitrate (PO4–3–P) concentration in the influent. \({\text{PO}}_{{\text{R}}}\) is the nitrate (PO4–3–P) concentration in the returned activated sludge flow. \({\text{PO}}_{{{\text{AX}}}}\) is the phosphate (PO4–3–P) concentration in the anoxic tank.

Phosphate (PO4–3–P) mass balances for aeration tank:

$$ V\left( {\frac{{dPO4_{OX} }}{dt}} \right) = 0 = \left( {Q_{in} + Q_{RAS} } \right)\left( {PO_{AX} } \right) - \left( {Q_{in} + Q_{RAS} } \right)\left( {PO_{OX} } \right) $$
(6)

where \({\text{V}}\frac{{{\text{dPO}}4_{{{\text{OX}}}} }}{{{\text{dt}}}}\) is the phosphate (PO4–3–P) rate in the aeration tank. \({\text{Q}}_{{{\text{in}}}}\) is the influent flow. \({\text{Q}}_{{{\text{RAS}}}}\) is the returned activated sludge flow. \({\text{PO}}_{{{\text{AX}}}}\) is the phosphate (PO4–3–P) concentration in the anoxic tank. \({\text{PO}}_{OX}\) is the phosphate (PO4–3–P) concentration in the aeration tank.

Determining the cellular mass production coefficient value (Yobs):

To determine the sludge production coefficient (Yobs), Eqs. 7 and 8 were used Fazelipour et al.1.

$$ {\text{dX}}/{\text{dt}} = {\text{YdS}}/{\text{dt}} $$
(7)

where dX/dt is the increase rate in the biomass concentration (MLSS) (mg/L) and dS/dt is the removal rate of the substrate (COD) (mg/L).

$$ {\text{Y}} = {\text{X}}_{0} {-}{\text{X}}/{\text{S}}_{0} {-}{\text{S}} $$
(8)

where S and S0 are the primary and ultimate substrate concentrations (mg/L), respectively. While X and X0 are the primary and ultimate biomass concentrations (mg/L), respectively.

It should be noted that temperature was maintained at 22 ± 2 ºC and the dissolved oxygen was kept in the range of 4 to 6 (mg/L) in the aeration tank.

The first-order kinetics for sludge decay without controlling the oxidation reduction potential in the ASHT were as follows (Eqs. 9 and 10):

$$ {\text{dX}}/{\text{dt}} = - {\text{bX}} $$
(9)

where X is the concentration of the biomass (mg/l) and b is the decay coefficient (d−1).

After integration, the sludge decay is expressed as:

$$ \Delta {\text{X}} = {\text{X}}_{{\text{t}}} - {\text{X}}_{0} = \left( {{1} - {\text{e}}^{{ - {\text{bt}}}} } \right) \cdot {\text{X}} $$
(10)

where ΔX is the decayed biomass (mg/l), Xt is the biomass concentration over time (mg/l), and X0 is the initial biomass concentration (mg/l)32.

Results and discussion

After reaching steady state condition, the IFAS and IFAS-OSA systems were operated in parallel mode for 60 days and their results were compared. The results are presented in the following sections.

Ammonia nitrogen (NH4 +–N), NO3–N, TN, PO4 3–P, COD, TSS, MLSS, and sludge volume index (SVI) and their removal efficiencies in the IFAS and IFAS-OSA systems

The average steady-state concentrations and standard deviations of the NH4+–N measurements are listed in Table 2. Figure 2a shows the concentration variations of ammonia nitrogen (NH4+–N) in the studied processes. The observed removal efficiencies of NH4+–N are illustrated in Table 3. The results show that the average ammonia nitrogen (NH4+-N) were 98 ± 0.2%, 97 ± 0.3% for the IFAS and IFAS-OSA systems, respectively. Accordingly, the average ammonium (NH4+–N) removal efficiency slightly decreased in the IFAS-OSA system compared with the IFAS system. In 4 h retention time in the anoxic sludge holding tank (ASHT) the biomass went under starvation process. With the destruction of biomass in the ASHT, cell protoplasm containing ammonium ions was released into the return activated sludge. In the aeration tank some of these ammonium ions were observed by assimilation process, some were oxidized by the nitrifying bacteria (nitrification process), and the remaining part was poured into the effluent7,27. Table 4 shows the examples of ammonium nitrogen removal efficiency reported in previous and the current study22,40.

Table 2 The average steady-state concentrations and standard deviations of the NH4+–N, NO3–N, TN, PO4–3–P, COD and TSS measurements in the effluents of the IFAS and IFAS-OSA.
Figure 2
figure 2

(a, b) Concentration variations of NH4+-N, NO3-N; b: TN, and PO4–3-P in the effluents of the IFAS and IFAS-OSA systems during the operation days.

Table 3 Nitrogen, phosphorus, TSS, and COD removal percentages in the effluents of the IFAS and IFAS-OSA system.
Table 4 The examples of nitrogen and phosphorus removal efficiency (%) reported in previous and the current study.

The average steady-state concentrations and standard deviations of the NO3–N measurements from the IFAS and IFAS-OSA are listed in Table 2. Figure 2a shows the concentration variations of nitrate (NO3–N) in the studied processes. As a result of adding ASHT to the return line of the upgraded system, the average NO3–N concentration in the effluent of IFAS-OSA system decreased to 5 ± 0.8 mg/L. Which indicate the increased denitrification process in the IFAS-OSA system25. According to Table 2 the average nitrate concentration decreased to 33% in the effluent of IFAS-OSA system compared with the IFAS system.

Total nitrogen (TN) measurements from the IFAS and IFAS-OSA are listed in Table 2. Figure 2b shows the concentration variations of TN in the studied processes. The observed removal efficiencies of TN are illustrated in Table 3. The results show that the average total nitrogen (TN) removal efficiencies were 80 ± 2.5%, 86 ± 1.7% for the IFAS and IFAS-OSA systems, respectively. By returning the carbonaceous biological oxygen demand resulted from anoxic degradation in the (ASHT) to the pre-anoxic tank, the BOD/TKN ratio and the TN removal efficiency increased as a result of biological denitrification process38. Table 3 shows that the TN removal efficiency in the IFAS-OSA system increased up to 7.5%, compared with the IFAS system.

The PO4–3–P measurements from the IFAS and IFAS-OSA are listed in Table 2. Figure 2b shows the concentration variations of phosphorus (PO4–3–P) in the studied processes. The observed removal efficiencies of PO4–3–P are illustrated in Table 3. The results show that the average phosphorus (PO4–3–P) removal efficiencies were 33 ± 8.2% and 42 ± 3.6% in the IFAS and IFAS-OSA systems, respectively. From Table 3, it can be concluded that the PO4–3–P removal efficiency of the IFAS-OSA system increased up-to 27%, compared with that of the IFAS system. This increase is the result of adding an ASHT to the RAS line of the upgraded IFAS-OSA system, which led to the energy transfer mechanism in the oxidation–reduction reactions (20). Also it was assumed that the phosphorus stored by the bacteria (PA organisms). Table 5 compare present work with other biological treatments.

Table 5 The examples of nitrogen and phosphorus removal efficiency reported in the present and previous studies.

The COD and TSS measurements from the IFAS and IFAS-OSA are listed in Table 2. Figure 3 shows the concentration variations of COD and TSS in the IFAS and IFAS-OSA systems. The observed removal efficiencies of COD and TSS are illustrated in Table 3. The results show that the average COD and TSS removal efficiencies in the FAS and IFAS-OSA systems were 92 ± 0.65%, 97 ± 0.52% and 86 ± 3%, 95 ± 1.5%, respectively. The average TSS in the effluent of the IFAS-OSA system was 6 mg/L, Therefor the TSS concentration decreased by 62.5%, and the TSS removal efficiency of the IFAS-OSA system was increased up to 10.5% compared with the control system. This showed the positive effect of adding the ASHT to the return sludge line of the IFAS system22.

Figure 3
figure 3

Concentration variations of TSS and COD of the IFAS and IFAS-OSA systems during the operation days.

According to Table 2, the average COD concentration in the effluent of the IFAS-OSA system was 10 mg/L, so the COD concentration decreased by 60%, compared with the IFAS system. With the SRT of 10 days and HRT of 4 h (Table 6), the COD removal efficiency of the IFAS-OSA system was slightly increased up-to 5.4% compared with the control system. Therefore, this increase could be duo to the ASHT (longer HRT). Saby et al. in 2003 also reported that the OSA system was able to increase the COD removal efficiency (25). But in 2008, Ye et al. reported that the OSA system decreased the COD removal efficiency in HRTs of 5.5 and 7.6 h39.

Table 6 The comparison of the operational parameters, ORP levels, sludge production (Yobs), and excess sludge reduction of the IFAS and IFAS-OSA processes in the current study.

The average concentrations of MLSS and SVI measurements from the IFAS and IFAS-OSA systems are presented in Table 6. According to Table 6 the average MLSS and SVI concentrations were 3155 (mg/l), 2461 (mg/l) and 96 (ml/g), 50 (ml/g) for the IFAS and IFAS-OSA systems, respectively. The average MLSS and SVI concentrations in the IFAS-OSA system decreased by 22% and 48%, respectively compared to that of IFAS system. Also the sludge was more cohesive and the sludge settleability was improved. In 2010, Kim et al. reported that this may be due to the intracellular polymers (bridging mechanism) under anoxic conditions17.

Effects of the ASHT on oxidation–reduction potential (ORP), Observed yield coefficient (Yobs), and Excess sludge flow rate (QExcess) in the IFAS and IFAS-OSA systems

Figure 4 shows the oxidation reduction potential (ORP) variations after reaching steady-state conditions in the IFAS and IFAS-OSA systems during the operation days. Table 6 shows the average ORP levels for the IFAS and IFAS-OSA systems in the aerobic tank, and the anoxic sludge holding tank (ASHT). The average ORP values of the IFAS and IFAS-OSA systems were + 85 ± 16 and -148 ± 14 mV. In the ASHT the ORP levels gradually decreased during the operation days. These results are consistent with the results of Wang et al. study. As the oxidant (NO3–N) decreased and the substrate was released into the solution of anoxic sludge holding tank, the ORP levels decreased gradually in the retention times of 4 h. However, due to the limited retention time in the sludge holding tank, the ORP level could not drop to—250 mV32.

Figure 4
figure 4

Variations of Yobs, ORP and QExcess in the effluents of the IFAS and IFAS-OSA systems during the operation days.

Figure 4 and Table 6 show the observed yield coefficient (Yobs) variations and the average values (Yobs) of the IFAS and IFAS-OSA processes in the bioreactors. Biomass yield coefficient (Yobs) in the IFAS and IFAS-OSA systems were 0.44 and 0.24 (gr MLSS/ gr COD), respectively. Therefore, the sludge production of the IFAS-OSA system decreased by 45%, compared to that of the IFAS system. This result is in agreement with those of the study done by Demir et al. and Vitanza et al. In their studies the biomass yield coefficient (Yobs) was reduced from 0.48 to 0.13 in the OSA process, while the sludge production was reduced from 20 to 60%[10; 29].

Figure 4 and Table 6 show the daily excess sludge variations and the average excess sludge flow rate (QExcess) of the IFAS and IFAS-OSA systems during operation. The average excess sludge (QExcess) values in the IFAS and IFAS-OSA systems were 4.5 ± 0.6 and 3.5 ± 0.4 (L/d), respectively. The data also showed that the excess sludge of the IFAS and IFAS-OSA system with SRT of 10 days and HRT of 4 h were 45 and 35 (gr/day), respectively. According to Table 6, the daily QExcess sludge in the IFAS-OSA system was decreased by 22%, compared to that of IFAS system. These findings are consistent with the results of Vitanza et al., and Saby et al. studies, which also reported excess sludge reduction efficiencies of 23.4%, and 36.8% in the OSA systems25,29. According to these findings, it can be concluded that modifying IFAS to an OSA system (IFAS-OSA) by adding an anoxic sludge holding tank (ASHT) in the return sludge line of the system with 4-h HRTs decreased the excess sludge production. Table6 shows the comparison of the operational parameters including ORP levels, sludge production coefficient (Yobs), and excess sludge reduction (QExcess) of this study with Saby study.

Filamentous fungi and yeasts in the IFAS and IFAS-OSA systems

As illustrated in Table 7 the total count of filamentous fungi and yeasts in different sites of the IFAS and IFAS-OSA systems were 1045 and 1721 (CFU/ml). The highest count of fungi in the IFAS and IFAS-OSA systems belonged to the genus Aspergillus sp. 302 (28.9%), 448 (26), and Penicillium sp. 223 (21.34), 321 (18.65), respectively, While the highest count of yeasts in the IFAS and IFAS-OSA systems were 196 (18.76) and 391(22.71), respectively. Thus, they could be the most effective genera in the biological nutrient (N & P) removal from the wastewater. This somewhat agrees with the results of Greben et al. study in 2007, who also stated that two of the six hyphomycetes isolates used for biological nitrogen removal (BNR) from the wastewater was Penicillium sp. These fungi had the ability to remove a large amount of nitrate nitrogen from the wastewater. Furthermore, in another study by Akhtar et al. the results showed that from the 9 species of fungi, Aspergillus sp. was the most effective species in the removal of NH4+–N. Different studies have also shown that various fungi have the ability to oxidize the reduced form of nitrogen3,13.

Table 7 Distribution of the total number (CFU/ml) and percentage frequency (%F) of various fungal genera and species in the IFAS and IFAS-OSA systems.

Due to the important role of the Candida species as an indicator in the purification process, the PCR result of the Candida species is demonstrated. Using classical and molecular identification techniques, 36 (90%) isolates of C. albicans, 3 (7.5%) isolates of C. glabrata, and one (2.5%) isolate of C. kefyr were identified in the IFAS system, and 73 (89%) isolates of C. albicans, 6 (7%) isolates of C. glabrata, and 3 (4%) isolate of C. kefyr were identified in the IFAS-OSA system.

Protozoa and metazoa species in the IFAS and IFAS-OSA systems

Protozoa and metazoa quantities of the IFAS and IFAS-OSA systems in different ecological groups changed considerably from April to June. According to Table 8 the highest average number (Indiv/Cm3) of protozoa species detected in the IFAS and IFAS-OSA systems were: Euglypha acanthophora (427, 469), Vorticella convallaria (410, 476), Aspidisca crenata (350, 383), Vorticella infusionum (305, 343), Acineria uncinata (307, 328), Euplotes Charon (297, 354), Arcella vulgaris (252, 284), Colpidium campylum (195, 228), Pyxidicula operculata (194, 229), Acineria incurvata (181, 213). Although some studies have shown a high level of correlation between nitrogen removal efficiency and protists, such correlation has not been found yet for all kinds of protozoa and metazoa species24. In this research, there was no correlation between the ecological groups and total nitrogen (TN) concentration in the IFAS and IFAS-OSA bioreactors. However, a low level of correlation between total nitrogen (TN) concentration and the trophic groups of protists was detected. Thus omnivorous and bacterivorous numbers showed a weak positive correlation with total nitrogen (Fig. 5a, b). The current study also showed that there is no correlation between the variations in the concentration of nitrogen in the IFAS and IFAS-OSA bioreactors and the changes in the quantity of most recovered protozoa and metazoa species. According to the quantitative analyses, the activated sludge of the IFAS and upgraded IFAS-OSA bioreactors belonged to the first quality class in the Sludge Biotic Index (SBI) and is described as stable and well-colonized with a high biological activity21.

Table 8 Distribution of the protozoa and metazoa genera and species (Indiv/Cm3) in the IFAS and IFAS-OSA systems.
Figure 5
figure 5

(a, b) Correlation between the trophic groups of protists and TN concentrations.

Additionally the respirometric analysis was conducted on dedicated device (BioCargo laboratory respirometer, GIG, EMAG SERWIS, Poland) in order to show proper physiological state of activated sludge and its high biological activity. The control of respiratory activity of the activated sludge and the determination for OUR sludge value in the endogenous state, showed no negative correlation between TN and activated sludge analysis. Such approach using SBI and respirometric analysis allows to obtain full scope of biological system operation12.

Total cost and energy analyses

Table 9 shows the comparison of total cost and energy analyses (per month and per year) of the present work with other literature. AS illustrated in Table 9 total Cost of IFAS-OSA system per year was decreased by 21.98% compared with that of the IFAS system. Total Cost of IFAS-OSA system per year was decreased by 35.63% compared with that of the MLE-OSA system.

Table 9 Comparison of cost and energy analyses of the present study with other literature.

Conclusions

The new upgraded IFAS-OSA system with SRT of 10 days and HRT of 4 h in the ASHT, demonstrated the better performance in the removal of total nitrogen, phosphorus, COD, and reduction of excess sludge compared to that of the control system. The average TN removal efficiencies were 80 ± 2.5%, 86 ± 1.7%, while the average PO4-P removal efficiencies were 33 ± 8.2% and 42 ± 3.6% in the IFAS and IFAS-OSA systems. COD removal efficiencies were 92 ± 0.65%, 97 ± 0.52%, respectively. Biomass yield coefficient (Yobs) in the IFAS and IFAS-OSA systems were 0.44 and 0.24 (gr MLSS/ gr COD). Hence, sludge production decreased by 45%.The new upgraded IFAS-OSA system also showed a better performance for sludge settleability. According to the findings, this research provided the new foundation for future studies on specific species of protists, fungi and their effects on biological nutrient removal processes.