Abstract
Waste water is a contaminated water consisting of water and impurities. Many factors affect the treatment plants; these includes physical, chemical properties and biological properties. The conventional controllers are being used for the waste water treatment processes. In the present paper, benchmark simulation model (BSM) provided by Alex et al. [Benchmark Simulation Model No. 1 (BSM1). Industrial Electrical Engineering and Automation. Lund University, Prepared by the IWA Task group on Benchmarking of Control Strategies for WWTPs, (2008)] has been considered for the fuzzy logic control. BSM model consists of five reactors in series and one clarifier. It is described as multivariable and nonlinear process with 13 variables in each reactor. The first two reactors are of anaerobic, and next three reactors are of aerobic. The objective is to control the dissolved oxygen (DO) in the fifth reactor using KLa5, mass transfer coefficient, i.e., air flow rate as the manipulated variable. The present fuzzy logic controller (FLC) design is based on Mamdani, IF..THEN.. rules. The performance of Fuzzy logic controller has been evaluated using MATLAB and Simulink Tool box. The FLC has been found to be superior than conventional PID controller i) for various set point changes for dissolved oxygen (DO) control, ii) for disturbance in the fresh feed concentrations and iii) for disturbances in KLa3 of reactor 3 and KLa4 of reactor 4.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
Introduction
Waste water treatment plants are large-capacity and nonlinear systems. Waste water is the result of substances been dissolved or suspended in water. Many control strategies have been proposed in the literature for the control of waste water treatment plants. Fuzzy logic is a powerful methodology with many applications. Angeline Rajathi and P. Subha Hency Jose [2] discussed soft computing techniques like backpropagation network and fuzzy logic. They are used to provide optimum current, optimum reaction time and color removal efficiency based on pH and conductivity measurements. Adama Traoré et al., [3] have provided the fuzzy control strategy that is based on simple online data (influent and recycle flows) and daily analytical values of the sludge volume index (SVI). It has reduced sludge height variations and thus increased the settling process efficiency. The developed controller has been applied to the Cassà de la Selva activated sludge Waste Water Treatment Plant (WWTP) in Spain. Carlos Alberto Coelho Belchiora et al., [4] presented adaptive fuzzy controller (AFC) design methodology of data-driven controller; it uses the Lyapunov synthesis approach with a parameter projection algorithm for DO control in WWTP. Catalin Simion et al., [5] provided the decision support system based on fuzzy control for a waste water treatment plant. Esra Yel and Sukran Yalpirb [6] discussed the prediction of primary treatment effluent parameters by fuzzy inference system (FIS) approach. Fernando et al., [7] presented the fuzzy modeling on wheat productivity under different doses of sludge and Sewage Effluent.
G.Vijayaraghavan and M.Jayalakshmi [8] presented a quick review on applications of fuzzy logic in waste water treatment. Kaleeswari, et al., [9] discussed the influencing factors on water treatment plant performance analysis using fuzzy logic technique. R. Maachou, et al. [10], presented the control of recycle sludge in activated sludge process using adaptive neuro-fuzzy logic controller (ANFIS). Md. Pauzi Abdullah [11] discussed the development of new water quality model using fuzzy logic system for Malaysia. O.C. Pires et al., [12] presented the fuzzy-logic-based expert system for diagnosis and control of an integrated waste water treatment. P. Ramdewor, et al., [13] and Soneechur presented the simulation of the nitrification process in waste water treatment using fuzzy logic. S.N. Saranya, et al., [14] provides the prediction of paper mill waste water treatment process parameters in sequencing batch reactor using fuzzy logic technique. Tawanda Mushiri et al. [15], discussed careful selection of memberships and setting the right rules of fuzzy logic control; it is possible to bring any waste water pH to neutrality in an acceptable time, regardless if the waste is strong base nature or strong acidic or not.
In the above literature review, we find that the benchmark simulation model has not been considered for the design of fuzzy logic controller. In fuzzy logic method, the controller design is based on fuzzy rules, which are based on the human reasoning.
Figure 1 describes the implementation of fuzzy logic controller, similar to the conventional PID controller.
Objectives of the present work are as follows:
* Study of the multivariable dynamic model of waste water treatment plant with the help of benchmark simulation model 1 (BSM1),
* Design of a fuzzy logic controller using Mamdani rules and.
* Performance evaluation of fuzzy logic controller for waste water treatment plant using MATLAB and Simulink Toolbox.
Mathematical Model of a Waste Water Treatment Plant
The benchmark simulation model is relatively with a simple layout as shown in Fig. 2. The first part of BSM1 is also a biological or biochemical activated sludge reactors system, which is comprised of five-compartments or reactors; two of them are anoxic tanks and the following three are aerobic tanks. The second part of BSM1 is a secondary settler. Reactors 1 and 2 are unaerated but fully mixed, Reactors 3, 4 and 5 are aerated.
For the open-loop case, the oxygen transfer coefficients (KLa), i.e., air flow rate, are fixed. For Reactors 3 and 4, the coefficients KLa3 and KLa4 are set to be a constant at 240 d−1 (10 h−1), respectively, which means the air flow rate of the blower is constant. For reactor 5, the coefficient, KLa5 is selected as manipulated variable for maintaining the DO concentration at a level of 2g/m3
The BSM1 model has been selected to describe the biological phenomena taking place in the biological reactor and a double-exponential settling velocity function has been selected to describe the secondary settler which is modeled as a 10-layer non-reactive unit, i.e., no biological reaction. In the activated sludge waste water treatment system, the concentration of DO in the aeration tank is the most important variable in the process. Actually, the DO concentration has a direct impact on the effluent quality with respect to total nitrogen (Ntot), nitrate nitrogen (SNO) and ammonia (SNH). Therefore, the study of DO control has its important practical significance and prospect for application.
The waste water treatment plant is designed for an average influent dry-weather flow rate of 18,446 m3.d−1 and an average biodegradable COD in the influent of 300 g.m−3. Its hydraulic retention time based on average dry weather flow rate and total tank volume, i.e., biological reactor + settler of 12,000 m3, is 14.4 h. The biological reactor volume and the settler volume are both equal to 6,000 m3. The wastage flow rate equals 385 m3.d−1. This corresponds to a biomass sludge age of about 9 days based on the total amount of biomass present in the system. The waste water treatment plant is described by 13 variables as given in Table 1.
List of Processes
Generally, eight basic processes are used to describe the biological behavior of the system.
j = 1, Aerobic Growth of Heterotrophs
j = 2, Anoxic Growth of Heterotrophs
j = 3, Aerobic growth of Autotrophs
j = 4, Decay of Heterotrophs
j = 5, Decay of Autotrophs
j = 6, Ammonification of soluble organic nitrogen
j = 7 Hydrolysis of entrapped organics
j = 8, Hydrolysis of entrapped organic nitrogen
Observed Conversion Rates
The observed conversion rates (ri) that result from combination of the above basic processes are given below.
SI (i = 1)
SS (i = 2)
SI (i = 3)
XS (i = 4)
XB,H (i = 5)
XB,H (i = 6)
XP (i = 7)
SO (i = 8)
SNO (i = 9)
SNH (i = 10)
SND (i = 11)
XND (i = 12)
SALK (i = 13)
Tables 2 and 3 provide stoichiometric parameters and kinetic parameters of the process.
General Mass Balance Equations for Benchmark Simulation Model
Number of reactors: 5
Non-aerated reactors: 2
Aerated Reactors:
1. Reactors 3 and 4 are with a fixed oxygen transfer coefficient (KLa3 = KLa4 = 10 h−1 = 240d−1).
2. Reactor 5: the dissolved oxygen concentration (DO) is controlled at a level of 2 g.m−3 by manipulation of the KLa5.
For each Reactor:
-
1.
Flow rate: Qk
-
2.
Concentration: Zk
-
3.
Volume:
-
4.
Non-aerated Reactors: V1 = V2 = 1,000m3
-
5.
Aerated reactors: V3 = V4 = V5 = 1,333 m3
Reaction rate: rk.For k = 1 (Reactor 1)
For k = 2 to 5 (Reactors 2 to 5)
where the saturation concentration for oxygen is.
S0* = 8 g.m−3.
Miscellaneous equations are.
Za = Z5; Zf = Z5;Zw = Zr;
Qf = Q5−Qa = Qe + Qr + Qw = Qe + Qu.
Design of a Fuzzy Logic Controller
Fuzzification
The fuzzy logic control block diagram ( Fuzzy toolbox of MATLAB) is shown in Fig. 3. As a first step of design, fuzzification is carried out with two inputs as error and error rate in DO concentration. The first input variable, Error consists of five fuzzy sets as shown in Fig. 4 and they are named as VHIGH, HIGH, NORMAL, LOW, and VLOW. These fuzzy sets are in triangular shape.
Error rate for DO concentration consists of 3 fuzzy sets named as LOW, ZERO and HIGH as shown in Fig. 5. The seven fuzzy sets for manipulated variable, KLa5, are given in Fig. 6 and named as HDECREASE, DECREASE, LDECREASE, NO CHANGE, LINCREASE, INCREASE and HINCREASE.
Total seven rules are developed based on the knowledge of the process. They are written as.
-
1.
If (Error is VHIGH), then (KLa5 is
HDECREASE).
-
2.
If (Error is VLOW), then (KLa5 is
HINCREASE).
-
3.
If (Error is HIGH), then (KLa5 is
DECREASE).
-
4.
If (Error is LOW), then (KLa5 is
INCREASE).
-
5.
If (Error is NORMAL) and (Error_rate is LOW), then (KLa5 is LDECREASE).
-
6.
If (Error is NORMAL) and (Error_rate is HIGH), then (KLa5 is LINCREASE).
-
7.
If (Error is NORMAL) and (Error_rate is ZERO), then (KLa5 is NO CHANGE).
Defuzzification
The most efficient centroid method is used for defuzzification.
Results and Discussion
The Simulink block diagram (combined form) for the performance evaluation of fuzzy logic control, PID control and open loop is given in Fig. 7. The PID controller parameters are Kc = 25, KI = 1250 and Kd = 0.025[1]. The scaling factor for fuzzy logic controller is obtained as: 1.5 for error, 0.001 for error rate and 3000 for the controller output, KLa5. They are obtained by trial and error method.
The performance of fuzzy logic controller and PID controller have been evaluated for different a) set point changes in DO concentration, b) disturbances in feed concentrations (soluble substrate concentration, Ss) and c) for the step disturbances in KLa3 and KLa4 of Reactors 3 and Reactor 4, respectively.
The responses of fuzzy logic and PID controllers and open loop (i.e., manual control) have been studied at initial steady-state condition of 2.0 g/m3 of DO and are shown in Fig. 8. It shows all the three responses converging to 2.0 g/m3 of DO and remaining at the steady state with some unsteady-state behavior. The control actions in KLa5 of fuzzy logic controller and PID controller are given in Fig. 9,
The regulatory response of both fuzzy logic and conventional PID controllers and open-loop response for the step disturbance from 69.5 to 76.5 g/m3 (+ 10%) in soluble substrate concentration, Ss, in feed is shown in Fig. 10. The fuzzy controller provides faster rejection of disturbance and maintains the set point of 2.0 (with small offset) than PID controller. Open-loop method leads to divergence to 2.15 g/m3 of DO.
The closed responses of fuzzy logic controller and PID responses for two set point changes of 2.5 and 1.5 are shown in Fig. 11. As from the Fig. 11, it is observed that for PID controller deviation is very high compared to fuzzy logic controller. The fuzzy logic controller shows faster response than PID controller. The manipulated variable, KLa5, for both fuzzy logic and PID, is given Fig. 12 and obtained as smooth for implementation.
Figures 13 and 14 show the regulatory responses of fuzzy logic controller, PID control and open-loop response for the step disturbance in KLa3 and KLa4 from 240 to 192 (− 20%) in Rector 3 and Reactor 4, respectively. Without control actions in Reactor 3 and Reactor 4 i.e., fixed values of KLa3 and KLa4, as expected divergence in DO in case of change in KLa3 is more than that of change in KLa4 as the KLa3 effecting is all three reactors.,; Reactor 3, Reactor 4 and Reactor 5 and KLa4 effecting only two reactors; Reactor 4 and Reactor 5. Fuzzy controller response is faster than that of PID controller.
Conclusions
The knowledge-based fuzzy logic controller is designed for DO control in the Reactor 5 of waste water treatment Plant. It is found that fuzzy logic controller performance is better than PID controller for various set point changes and disturbances in feed concentration and in KLa3 and KLa4 of Reactors 3 and 4, respectively. Hence, fuzzy logic controller is superior for the control of waste water treatment plant in place of existing PID controllers.
References
J. Alex, L. Benedetti, J. Copp, K.V. Gernaey, U. Jeppsson, I. Nopens, M.-N. Pons, L. Rieger, C. Rosen, J.P. Steyer, P. Vanrolleghem, S. Winkler benchmark simulation model No. 1 (BSM1). Industrial electrical engineering and automation. Lund University, Prepared by the IWA Task group on Benchmarking of Control Strategies for WWTPs, April (2008)
A. Rajathi, P.S.H. Jose, Comparison of back propagation network and fuzzy logic for electrocoagulation process to treat dye waste water. Int. J. Chem. Tech. Res. 10(6), 622–630 (2017)
A. Traoré, S. Grieu, F. Thiery, M. Polit, J. Colprim, Control of sludge height in a secondary settler using fuzzy algorithms. Computers Chem. Eng. 30(8), 1235–1242 (2006)
C.A.C. Belchior, R.A.M. Araújo, J.A.C. Landeck, Dissolved oxygen control of the activated sludge wastewater treatment process using stable adaptive fuzzy control. Comput. Chem. Eng. 37, 152–162 (2012)
Catalin Simion, Oana Chenaru, Gheorghe Florea, José ignacio Lozano, Samir Nabulsi, Maria Reis, Joana Cassidy, Decision Support System based on Fuzzy Control for a Wastewater Treatment Plant. International Journal of Environmental Science. Vol.1 (2016)
E. Yel, S. Yalpirb, Prediction of primary treatment effluent parameters by fuzzy inference system (FIS) approach. Procedia Computer Sci. 3, 659–665 (2011)
Fernando F. Putti, Ana C. B. Kummer, Helio Grassi Filho, Luís R. A. Gabriel Filho, Camila P. Cremasco Fuzzy Modeling on Wheat Productivity Under Different Doses of Sludge and Sewage Effluent, Journal of the Brazilian Association of Agricultural Engineering ISSN: 1809–4430 (on-line)
G. Vijayaraghavan, M. Jayalakshmi, A quick review on applications of fuzzy logic in waste water treatment. Int. J. Res. Appl. Sci. Eng. Technol. 3 (2015)
K. Kaleeswari, T. Johnson, C. Vijayalakshmi, Influencing factors on water treatment plant performance analysis using fuzzy logic technique. Int. J. Pure Appl. Math. 118(23), 29–37 (2018)
R. Maachou, A. Lefkir, A. Khouider and A. Bermad, A control of recycle sludge in activated sludge process using adaptive neuro-fuzzy logic controller (ANFIS). Proceedings of the 14th International Conference on Environmental Science and Technology Rhodes, Greece, 3–5 September (2015)
Md. P. Abdullah, S. Waseem2, V.R. Bai and I.U. Mohsin, Development of new water quality model using fuzzy logic system for Malaysia. Open Environ. Sci., 2, 101–106 (2008)
O.C. Pires, C. Palma, I. Moita, J.C. Costa, M.M. Alves and E.C. Ferreira, A fuzzy-logic based expert system for diagnosis and control of an integrated wastewater treatment. 2nd Mercosur Congress on Chemical Engineering 4th Mercosur Congress on Process Systems Engineering
P. Ramdewor, V. Soneechur, S. Krishna, and S. Pudaruth, Simulation of the nitrification process in wastewater treatment using fuzzy logic. International Conference on Machine Learning and Computer Science (IMLCS'2013) Kuala Lumpur, Malaysia (2013)
S.N. Saranya, S. Lakshmana Kumar, R. Raj Jawahar, Prediction of paper mill wastewater treatment process parameters in sequencing batch reactor using fuzzy logic technique. Int. J. Recent Technol. Eng. (IJRTE) ISSN: 2277–3878, Vol.8 Issue-5, January (2020)
T. Mushiri, K. Manjengwa, C. Mbohwa, Advanced fuzzy control in industrial wastewater treatment (pH and temperature control). Proceedings of the World Congress on Engineering 2014 Vol I, WCE, July 2 - 4, London, UK (2014)
Acknowledgements
This paper is a revised and expanded version of an article entitled, "Control of Waste Water Treatment Plant using Fuzzy Logic Controller" presented in '36th National Convention of Chemical Engineers' hosted by Durgapur Local Centre of The Institution of Engineers (India) held through online during March 6–7, 2021.
Funding
The authors declare that no funds, grants, or other support were received for this work.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The authors have no relevant financial or non-financial interests to disclose.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
Yelagandula, S., Ginuga, P. Control of a Waste Water Treatment Plant Using Fuzzy Logic Controller. J. Inst. Eng. India Ser. E 103, 167–177 (2022). https://doi.org/10.1007/s40034-022-00241-9
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s40034-022-00241-9