 Advances in Technology Innovation , vol. 1, no. 2, 2016, pp. 38 - 40 38 Copyright © TAETI Predictive Adaptive Control of an Activated Sludge Wastewater Treatment Process Ioana Nascu 1,2 , Ioan Nascu 3,* , Grigore Vlad 4 1 Department of Che mica l Engineering, Centre for Process Systems Engineering (CPSE), Impe ria l College London, U.K. 2 Artie McFerrin Department of Chemical Engineering, Texas A&M, College Station TX, USA . 3 Department of Automation, Technical University of Cluj-Napoca, Romania. 4 ICPE Bistrita, Romania. Received 22 February 2016; received in revised form 28 March 2016; accept ed 30 March 2016 Abstract This paper presents an application regarding a model based predictive adaptive controlle r used to improve the effluent quality of a conventional activated sludge wastewater treat ment process. The adaptive control scheme consists of two modules: a robust parameter estimator and a predictive controlle r. The controlle r design is based on the process model obtained by recursive estimation. The performances of the adaptive control algorithm are investigated and compared to the non-adaptive one. Both the set point tracking and the regulatory performances have been tested. The results show that this control strategy will help overcome the challenge for ma intaining the discharged water quality to meet the regulations. Keywor ds : wastewater treatment, predictive control, adaptive control, parameter estimation 1. Introduction Wastewater treatment plants (WWTPs) are key infrastructures for ensuring a proper protection of our environment. The biologica l treatment is an important part of any WWTP and the activated sludge process is the most common biotreatment process used to treat sewage and industrial wastewaters. Conventional activated sludge systems are focused on the removal of carbonaceous organic matter. These biologica l processes are nonlinear and comple x, representing a challenge fro m the control p oint of view due to the enhanced environmental regulations related to the effluent quality and the large variat ions in the influent flow rates and concentrations [1]. An overview of the activated sludge wastewater treat ment process mathe matica l modeling is presented in [2]. A variety of control strategies for WWTP were proposed in the available literature : conventional PID control, fuzzy control, predict ive and optima l control [3,4], all of them presenting good performances in a certa in operating point. The control strategy proposed in this paper takes into consideration the controller adaptation to the process parameter changes caused by high variations in the influent flow rate or concentration. The purpose of this paper is to investigate the performance of an adaptive control algorith m (A GPC) based on the Generalized Pred ictive Control (GPC) method [5]. The performances of the AGPC algorithm a re investigated on an activated s ludge wastewater treatment process . Therefore, the activated sludge process was first modeled and the model was calibrated and validated based on a comb ination of laboratory tests and plant operating measured data, available from Romanofir WWTP. 2. Process Description and Modeling The model of the process was developed based on data obtained from an operational WWTP. The biological treat ment process of this WWTP is a conventional activated sludge system with two components: a bioreactor operating under aerobic conditions and a settler (Fig. 1). A widely used model to describe the dynamics of bio logical treat ment processes is * Corresponding aut hor, Email: ioan.nascu@aut.utcluj.ro Advances in Technology Innovation , vol. 1, no. 2, 2016, pp. 38 - 40 39 Copyright © TAETI the Activated Sludge Model Nr.1 (ASM1) [6]. Since this model is comp le x, containing a large number of state variables and parameters, it is necessary to simplify it into a simp ler model, more suited for control purposes. Considering only two materia l co mponents , a soluble substrate and a particulate bio mass component , the mathemat ical mode l of the biologica l treatment process for the re moval of organic matter will be composed of a set of four non-linear differentia l equations, three equations for the aerated bioreactor and one for the settler. The process model and the sensitivity analys is are described in greater detail in [7]. Fig. 1 Biological treatment process schematic 3. Adaptive Control Algorithm The adaptive control scheme consists on two modules: a robust parameter estimator and a model based predictive controller. The controller design is based on Certainty Equivalence Princip le, the estimates of the process model para meters are used instead of the unknown true values in the control law design. The controller design is based on the process model obtained by recursive estimation. 3.1. Controller Design The GPC design procedure is we ll described in the literature [5]. The key idea is to min imize the following cost function:       uN j N Nj r jtuj jtyjtyJ 1 2 2 )]1()[([ )]()([ 2 1  (1) where: Δ is the differenc ing operator 1-q -1 , yr is the future re ference sequence and N1 - the minimu m costing horizon, N2 - the ma ximu m costing horizon, Nu - the control horizon and ρ(j) - the control-weighting sequence are the controller design parameters. 3.2. Parameter Estimation To estimate the para meters of the plant model, a version of the Standard Recursive Least Square Algorith m (RLSA) was used. The use of the basic identification scheme may lead to unstable adaptive process control. For practica l imple mentations of adaptive control strategies, this scheme must be modified in order to provide a robust parameter estimator. The para meter estimation algorithm includes data normalization, a dead zone, a forgetting factor and data prefiltering [8]. 4. Simulation Results The simu lations were carried out in the MATLAB environ ment and the closed loop controllers performances for the concentration of organic matter (SS), considered as controlled process output, were investigated. The aeration flow (W) was considered the manipulated input. The nonlinear model o f the b iologica l treat ment process was used to simu late the process dynamics. To obtain the transfer function fro m W to SS the model was linearized around the nomina l operating point (the influent organic matter concentration SSin=765mg/ l). The second operating point was considered for a lowe r influent organic matter load, SSin=300 mg/l. Performances for effluent organic matter concentration SSef which is more relevant we re determined and plotted. Fig. 2 Setpoint tracking performances. AGPC-continuous line, GPC-dotted line In Fig. 2 setpoint tracking performances of the adaptive predictive controller (A GPC) and predictive controller (GPC) for the second operating point can be compared. Performances are appreciably improved in the AGPC case (continuous line) because the estimator will correct the model para meter values and will adapt the controller to this situation. 45 50 55 60 65 70 75 80 120 121 122 123 124 125 t [ h ] S S e f [m g /l ] Advances in Technology Innovation , vol. 1, no. 2, 2016, pp. 38 - 40 40 Copyright © TAETI Fig. 3 presents the regulatory performances during simu lation tests when the disturbances are applied on the influent organic matter concentration SSin. The SS setpoint is fixed such as the regulations for the organic matter concentration in discharged water are met most of the time (SS effluent (CCO-Cr) <125 mg/ l). Also in this case AGPC has slightly improved performances. Fig. 3 Regulatory performances . AGPC- continuous line, GPC - dotted line 5. Conclusions In this paper, the performances of an adaptive model based predictive control strategies for the organic matter concentration in the effluent of the b iologica l t reat ment process of a WWTP have been evaluated. Simulation studies were based on the non -linear model, obtained from mass balance equations and they have indicated that the proposed control method performs we ll and can be easily used. Both the setpoint tracking and the regulatory performances have been investigated. The regulations for the organic matter concentration in discharged water are satisfied in a high percentage. Acknowledgement The support of the Ro manian Nat ional Authority for Scientific Research, UEFISCDI, under Grant CASEAU - 274/2014, is gratefully acknowledged. References [1] R. Katebi, M. A. Johnson, and J. Wilkie, “Control and instrumentation for wastewater treatment plants,” Springer, London, 2012. [2] U. Jeppsson, “Modelling aspects of wastewater treatment processes,” Ph.D. thesis, Dept. of Industrial Electrical Eng. And Automation, Lund University, Sweden, 1996. [3] M. A. Brdys, M. Grochowski, T. Gminski, K. Konarc za k, and M. Dre wa, “Hiera rchica l predictive control of integrated wastewater treatment systems,” Control Eng. Pract. , vol. 16, no. 6, pp. 751-767, June 2008. [4] B. Holenda, E. Do mokos, A. Rédey, and J. Faza kas, “ Dissolved oxygen control of the activated sludge wastewater treatment process using model predictive control,” Co mputers and Chemica l Engineering, vol. 32, pp. 1278-1286, 2008. [5] D. W. Clarke, C. Mohtadi, and P. Tuffs, “Generalized predictive control part 1. The basic algorithm,” Automatica, vol. 23, no. 2, pp. 137-148, 1987. [6] M. Henze, W. Gu je r, T. M ino, and M. Van Loosdrecht, “Activated sludge models ASM1, ASM2, ASM 2d and ASM3,” IWA Publishing, London, 2000. [7] S. Cristescu, I. Naşcu, and I. Naşcu, “Sensitivity analysis of an activated sludge model for a qastewater treatment plant,” Proc. International Conference on System Theory, Control and Computing, pp. 595-600, Oct. 2015. [8] I. Nascu, Adaptive control, Media mira , Cluj-Napoca, 2002. 200 250 300 350 400 118 119 120 121 122 t [ h ] S S e f [m g /l ] https://www.google.ro/search?newwindow=1&sa=N&hl=ro&biw=1476&bih=770&tbm=bks&tbm=bks&q=inauthor:%22Reza+Katebi%22&ved=0ahUKEwijnZr89rXJAhWH_Q4KHcBBCREQ9AgIajAJ https://www.google.ro/search?newwindow=1&sa=N&hl=ro&biw=1476&bih=770&tbm=bks&tbm=bks&q=inauthor:%22Jacqueline+Wilkie%22&ved=0ahUKEwijnZr89rXJAhWH_Q4KHcBBCREQ9AgIbDAJ