A Fast Predicating of Nutrient Removal Efficiency in Five Steps Sequencing Batch Reactor System Using Fuzzy Logic Control Model ()
1. Introduction
Conventional control methods are powerful when good analytical mathematical models are available to support their development and operation. This situation is uncommon in real processes. Particularly, the real-time control of wastewater treatment plants (WWTP) is a difficult but essential task, due to the lack of accurate dynamical models describing the process and reliable on -line instrumentation (Olsson and Newell, 1999). However, WWTP can be properly operated by specialized people, having knowledge about the process, though in practice, this know-how is essentially qualitative, empirical, and incomplete. The operation of a WWTP represents therefore a knowledge intensive task. In this regard, a system capable of giving all the possible information about the state of the process must be available in order to establish the basis of a diagnosis system integrating all the possible knowledge. This requirement is an important step to have successful control.
Decisions(Patry and Chapman, 1989). Applications of knowledge-based systems to activated sludge processes are being widely studied (Chapman et al., 1989, Barnett et al., 1992). Most of systems are off-line KnowledgeBased Expert Systems (KBES) mainly diagnostic and advising tools to help process Operators. An activated sludge wastewater treatment plant can be classified as a complex system due to its nonlinear dynamics, large uncertainty in uncontrolled inputs and in the model parameters and structure, multiple time scale of the dynamics, and multi input-output structure. Some KBES have been designed with the main purpose of online supervision, though the emphasis on real-time supervisor control is usually absent. Many researchers have studied the Operation characteristics and parameters of step feeding process by theoretical analysis and computer simulation S. Fujii, 1996. L. Larrea, A. Larrea, 2001. G. Zhu 2006. Some practical experiences were also drawn from extended; renewed or retrofitted Conventional activated sludge process, J. Fillos, 1996. S. Schlegel, 1992. E. Gorgun, 1996. S. Wang, 2006. During the last two decades, there were a variety of applications of fuzzy logic control in wastewater treatment plants to optimize operation and performance of bioprocesses. Fuzzy logic provides a language with a syntax and semantics to translate qualitative knowledge into numerical reasoning. In most engineering problems, information about the probabilities of various risk items is only vaguely known. The term computing with words has been introduced by Zadeh (1996) to explain the notion of reasoning linguistically rather than with numerical quantities. Fuzzy rule -based modeling is one of techniques that make use of human knowledge and deductive processes where the experience of operator is assisted to manage and operate biological wastewater treatment plant satisfactorily using operational observations. It is important to develop computer operational decision support systems that are able to play a similar role to the expert in daily operation in minimizing cost and increase performance of wastewater treatment processes. The control objective and parameters ranged from aeration T. J. Ferrer, 1998. T. Kalker, 1999. M. Fiter, 2005. Effluent suspended solid Y. Tsai, 1996. External carbon addition M. Yong, 2006 [17], and loading rate E. Murnleitner, 2002, to nitrification in Sequencing Batch Reactor (SBR) process Y. Peng, 2003, and dissolved oxygen concentration A. Traoré, 2004. A fuzzy control strategy was applied by Meyer et al. (2003) for the control of aeration in wastewater treatment plants with pre-denitrfication. The implementation of expert systems based on fuzzy logic rules are described elsewhere (Carrasco et al., 2002; Puñal et al., 2002). Recently, especially attention to the expert supervision and control of anaerobic digestion processes is reported (Flores et al., 2000; Polit et al., 2002). Fuzzy control algorithms have been widely applied to pursue better effluent quality and higher economic efficiency on aerobic biological treatment processes (Irene et al., 2008; Wu et al., 2007; Murnleitner et al., 2002. Marsili-Libelli (2006) developed fuzzy pattern recognition to control SBR switching. The switching strategy was from the indirect observation of process state through simple physicochemical measurements and the use of an inferential engine to determine the most appropriate switching schedule. In this study, fuzzy rule based model is developed to predict the maximum removal efficiency of COD, NH4-N, PO4-P and NO3-N and minimize hydraulic retention time in each stage, Anaerobic-Anoxic (1)-Aerobic (1)-Anoxic (2)-Aerobic (2), of SBR system whereas the hydraulic retention time have direct influence on energy and operation cost of wastewater treatment plant. The fuzzy model is built based on if-then rules for hydraulic retention time and removal efficiency of COD, NH4-N, PO4-P and NO3-N based on experimental data that collected from the literature.
Fuzzy control law: The features of the fuzzy logic toolbox of MATLAB® constitute a support for the easy implementation of the set of rules, these being the main part of the control law developed in this study. The fuzzy methodology applied was Mamdani’s fuzzy inference method (Mamdani and Assilian, 1975). In this method, the first and the second part of the fuzzy inference process consist in the fuzzification of the inputs and application of fuzzy operators. Based on acquired knowledge on the process, a set of rules handling the regulation of the COD, NH4-N, PO4-P and NO3-N removal efficiency in dependence on the hydraulic retention times of the reactors was set up. The output of the control law was the COD, NH4-N, PO4-P and NO3-N removal efficiency. The first step to build the control law was the translation of possible values of the different inputs and output variables into linguistic labels given by membership functions. The system configuration of RsFLC is shown in Figure 1.
2. Material and Methods
The experimental set up was fermenter (Bioflo IIC, New Brunswick) with a 5 L working volume was used as the SBR. The fermenter was microprocessor controlled for aeration, agitation, pH and dissolved oxygen (DO).
Figure 1. System configuration of RsFLC.
Aeration was provided by using an air pump and a sparger. Agitation speed was varied between 25 and 300 rpm. The pH, DO and ORP of the nutrient medium were continuously monitored by the relevant probes. The fermenter was used to investigate the effectiveness of Hydraulic retention time on the removal efficiency of COD, NH4-N, PO4-P and NO3-N. The effect of Hydraulic retention time on removal efficiency at constant sludge age (10 days) is shown in Table 1.
2.1. Fuzzy Rule Based Modeling
In fuzzy rule-based modeling, the relationships between variables are represented by means of fuzzy if-then rules of the form “If antecedent proposition then consequent proposition”. The antecedent proposition is always a fuzzy proposition of the type “x is A” where x is a linguistic variable and A is a linguistic constant term. The proposition’s truth-value (a real number between 0 and 1) depends of degree of similarity between x and A.
Depending on the form of the consequent proposition, two main types of rule-based fuzzy models are commonly used:
• Linguistic fuzzy model: Both antecedent and the consequent are fuzzy propositions (e.g., Mamdani model).
• Takagi-Sugeno (TS) fuzzy model: the antecedent is a fuzzy proposition; the consequent is a crisp function.
The linguistic model (Zadeh, 1973; Mamdani, 1977) has the capacity to capture qualitative and highly uncertain knowledge in the form of if–then rules:
Ri: If x is Ai then y is Bi; i = 1, 2, …, K (1)
![](https://www.scirp.org/html/9-8101160\d9c396b6-a2e0-4f33-b9c8-84e866bf30c5.jpg)
Table 1. Expeimental data of removal efficiency and hydraulic retention time of five step SBR system at (COD/N/P = 100/5/1.5).
where, x is the input (antecedent) linguistic variable and Ai is the antecedent linguistic constants (the qualitatively defined functions). Similarly, y is the output (consequent) linguistic variable and Bi is the consequent linguistic constants. The values of x and y and Ai and Bi are fuzzy sets defined in the domains of their respective base variables. The linguistic terms Ai and Bi are usually selected from sets of predefined terms, such as small, medium, large. The rule base R = {Ri/i = 1, 2, …, K} and the sets A and B constitute the knowledge base of the linguistic model. Each rule is regarded as a fuzzy relation (fuzzy restriction on the simultaneous occurrences of values x and y): Ri (X × Y) → [0,1]. This relation can be computed in two basic ways-by using:
• Fuzzy implications or
• Fuzzy conjunctions (Mamdani method). In this study, the Mamdani method was used, in which conjunction AΛB is computed by a minimum operator (a t-norm):
Ri = Ai × Bi
i.e.,
(2)
The minimum operator is computed on the Cartesian product space of X and Y, i.e., for all possible pairs of x and y. The fuzzy relation R represents the entire model Equation (1) and is given by the disjunction (union or maximum, i.e., s-norms) of the K individual rule’s relations, Ri:
(3)
Now the entire base is encoded in the fuzzy relation R and the output of the linguistic model can be computed.
By the max-min composition (°):
y = xoR (4)
Suppose an input fuzzy value x = A¢, which has the output value B¢ given by the relational composition:
(5)
By substituting Equation (2) into Equation (5), get:
(6)
Equation (6) can be written as follow:
(7)
Equation (7) represents the output fuzzy Set of the linguistic model.
The most common methods used for defuzzification are: Yager (1980) centroidal method, is always used for defuzzification due to its simplicity, that can be determined as:
• Yager (1980) centroidal method, is always used for defuzzification due to its simplicity, that can be determined as:
(8)
where:
a and b = The lower and upper limits of the integral which determines the validity domain of the membership function
y = The centroidal distance from the origin;
• Chen (1985) ranking method
• Bertoluzza et al. (1995) method and
• Tran and Duckstein (2002) method
The above algorithm is the Mamdani inference that used as (SISO) single input and single output. It can be extended to Multiple Inputs and Single Output (MISO) and Multiple Outputs (MIMO). The MIMO model is a set of MISO models.
In the case of MIMO model Ri becomes as follow:
(9)
The above model is the special case of Equation (1), as the set Ai and Bi is obtained by the Cartesian product of fuzzy sets:
Aij = Ai1 × Ai2 × Ai3 × …… × Aip (10)
Bik = Bi1 × Bi2 × Bi3 × ….... × Bip (11)
Hydraulic retention time modeling: The data collected for 17 operating conditions as shown in Table 1 were used for developing a fuzzy rule-based model. The efficiency of multi-tank was assessed based on COD, NH4-Nand PO4-P and NO3-N removal efficiency. The control parameters of MIMO model are Anaerobic HRT, Anoxic step one HRT, Aerobic step one HRT, Anoxic step two HRT and Aerobic step two HRT were defined by qualitative scales as shown in Figure 2.
The variability in the input control parameters was used for fuzzification. A Hydraulic retention time were expressed by low, small medium, medium, high and very high scale in each tank (anaerobic, anoxic, aerobic, anoxic and aerobic).
The response of the model is the removal efficiency of COD, NH4-N, PO4-P and NO3-N and for COD and NO3-N output, a six granularity scale (very low (V.L),
low(L), small medium (S.M), medium(M), high (H), very high(V.H)) while for NH4-N and PO4-P output, a five granularity scale (low(L), small medium (SM), medium(M), high (H), very high(V.H)) were used as shown in Figure 2. The fuzzy rule based model was developed with seventeen rules based on the collected data under each operating condition and expert judgment as shown in Table 2.
3. Results and Discussion
3.1. Fuzzy Control Application
The Mamdani inference was established based on 17 fuzzy linguistic rules as shown in Figure 3(b). The defuzzified results and graphical outputs can be derived as shown in Figures 3(a)-(c) whereas Figure 3 illustrates an example of the surface viewer screen obtained from the fuzzy logic toolbox. Twoor three-dimensional graphic results of variables can be plotted and compared. The relationships between the nutrient concentrations of five step SBR system and the hydraulic retention time inputs of the model can be obtained as shown in Figure 4. Figure 4 is shows that COD, NH4-N, PO4-P and NO3-N
![](https://www.scirp.org/html/9-8101160\a3e992c8-2bd4-4320-8a83-6a2b09e729ff.jpg)
Table 2. Fuzzy rule based model for hydraulic retention time and removal efficiency in SBR system at constant sludge age (MIMO model).
(a)
(b)
(c)
Figure 3. Fuzzy inference system (a) FIS editor screen; (b) Rule editor of matlab-fuzzy and (c) Rule viewer screen to obtain defuzzified results.
Figure 5. Overall nutrient percent removal at different hydraulic retention time of the anaerobic step.
Figure 6. Overall nutrient percent removal at different hydraulic retention time of the anoxic step I.
Figure 7. Overall nutrient percent removal at different hydraulic retention time of the oxic step I.
Figure 8. Overall nutrient percent removal at different hydraulic retention time of the anoxic step II.
Figure 9. Overall nutrient percent removal at different hydraulic retention time of the oxic step II.
removal efficiency of the system with the inputs Anaerobic, Anoxic, Aerobic, Anoxic and Aerobic hydraulic retention time of the model. Figure 3(c) shows the results of applied rules and their corresponding outputs according to the mass center of variables. Using the interface, defuzzified values for output variables can be derived changing input values manually. Different output values can be obtained through the rule viewer according to the given input values.
It is not flexible to get defuzzified output values for all the real input values using the interface. For that reason, a program is written using MATLAB codes to drive defuzzified output results in accordance with real input values.
3.2. Comparison with Experimental Data
The comparison results of Fuzzy logic model with Experimental data are shown in Figures 5-9. The results show that Fuzzy logic Control model is a good tool that can be used in Prediction Removal efficiency of five step SBR system whereas the comparison results indicated that the FLC model have a good convergence performance and the predictions of outflow nutrient removal efficiency coincided well with the experimental values.
4. Conclusions
Fuzzy logic model was built based on if-then rules (from collection data) for COD, NH4-Nand PO4-P and NO3-N removal efficiency and hydraulic retention time in each step of five step SBR process. A control law based on fuzzy logic features was developed and validated for Hydraulic retention time in Anaerobic/Anoxic/Aerobic/ Anoxic/Aerobic tank of SBR wastewater process. The controlled variables was the Hydraulic retention times in the Anaerobic/Anoxic/Aerobic/Anoxic/Aerobic tank respectively and the output variables was the COD, NH4-N, PO4-P and NO3-N removal efficiency. The model provides a new tool for control hydraulic residence time effects on biological nutrient removal efficiency in five -step sequencing batch reactor.
Nomenclature
a: The lower limits of the integral of the membership function
b: The upper limits of the integral of the membership function
COD: Chemical oxygen demand Concentration
FIS: Fuzzy Inference system
FLC: Fuzzy Logic Control
i,j,k: subscript symbols
H: High Value
HRT: Hydraulic Retention time
L: Low value
M: Medium
MIMO: Multi Input Multi Output model
MISO: Multi Input Single Output Model
NH4-N: Ammonia Nitrogen Concentration
NO3-N: Nitrate Nitrogen Concentration
PO4-P: Poly Phosphate concentration
SM: Small medium value
V.H: Very High Value
VL: very low value
y: The centroidal distance from the origin in output membership function.
NOTES