#### Abstract

In wastewater treatment plants (WWTPs), the dissolved oxygen is the key variable to be controlled in bioreactors. In this paper, linear active disturbance rejection control (LADRC) is utilized to track the dissolved oxygen concentration based on benchmark simulation model number 1 (BSM1). Optimal LADRC parameters tuning approach for wastewater treatment processes is obtained by analyzing and simulations on BSM1. Moreover, by analyzing the estimation capacity of linear extended state observer (LESO) in the control of dissolved oxygen, the parameter range of LESO is acquired, which is a valuable guidance for parameter tuning in simulation and even in practice. The simulation results show that LADRC can overcome the disturbance existing in the control of wastewater and improve the tracking accuracy of dissolved oxygen. LADRC provides another practical solution to the control of WWTPs.

#### 1. Introduction

Wastewater treatment plants (WWTPs) are a class of nonlinear, uncertain, and time-delay systems. Influent flow rate, contaminant concentrations, amount of pollutants, and other uncertain factors make the control of wastewater a big challenge. Additionally, an increasing discharge standard of sewage drives people to propose more efficient and practical approaches to improve the control of wastewater.

For the control and simulation of WWTPs, in general, a mathematical model describing the biochemical process is of necessity. Benchmark simulation model number 1 (BSM1) has been proposed by Working Groups of COST Actions 682 and 624 [1, 2]. It is a benchmark model for WWTPs with realism and accepted standards. It defines the plant layout, simulation, influent loads, test procedures, and evaluation criteria [3–5], and the model could well simulate the main process of wastewater treatment and any control strategy could be tested and compared on BSM1. It is a better way to make a simulation study on the control of wastewater treatment process on BSM1.

On BSM1, many manipulated variables, such as the dissolved oxygen concentration, ammonia concentration, internal recycle flow rate, and external carbon dosing rate [1, 2], are involved. BSM1 mainly simulates the activated sludge process. Dissolved oxygen level, a key factor of activated sludge process, plays a significant role in the behavior of the heterotrophic and autotrophic microorganisms living in the activated sludge. Proper level of the dissolved oxygen should be supplied for organic matter degradation and nitration; however, excessive dissolved oxygen will increase the pollution concentration and decrease the denitrification process [6–9]. In other words, wastewater effluent quality depends greatly on the level of dissolved oxygen. Additionally, effective control of the dissolved oxygen level could reduce the operational cost of the wastewater treatment [10]. Therefore, the control of dissolved oxygen concentration is important, effective, and widely studied in WWTPS.

PID is firstly involved in WWTPs for the control of dissolved oxygen and it is still widely used in practice [11–14]. Only 3 parameters and the simple structure make the controller easily applied in many occasions. In order to make the dissolved oxygen concentration stably near the expectations, reject disturbances in WWTPs and make the effluent satisfied with the requirements; the proportion parameter of the controller has to keep large. However, large proportional parameter easily results in high frequency oscillations, which also increase the costs or even destabilize the closed-loop system. Additionally, all kinds of disturbances existing will degrade the performance of the closed-loop systems. In the last decades, various control algorithms have been proposed to control the dissolved oxygen, such as model predictive control (MPC) [7, 10, 15, 16], fuzzy control [6, 17], and neural network control [8, 9, 18, 19]. The MPC has been widely applied in industrial processes, especially the fruitful linear MPC business software packages. However, WWTPs are typical nonlinear systems, and few successful MPC applications exist in nonlinear systems [20]. Moreover, no clear physical interpretation and high amount of computation always hinder MPC’s applications [20]. Similarly, the fuzzy rules and nonlinear mapping network also require a lot of data for training in fuzzy control and neural networks. In addition, fuzzy rules, the number of nodes of neural networks, and the weight value of neural networks are difficult to get for achieving good performance.

As a matter of fact, the control of dissolved oxygen in WWTPs is a typical nonlinear and strong couplings process. It is affected by other variables, such as nitrate and nitrite nitrogen, ammonia nitrogen, and the internal effluent. If all factors affecting the control effect of dissolved oxygen can be viewed as disturbances, the core of dissolved oxygen control is the problem of disturbance rejection.

Linear active disturbance rejection controller (LADRC) is a promising way to solve the disturbance rejection problem. In LADRC structure, the external unknown disturbance and the internal uncertainty dynamics are treated as only a generalized disturbance, which can be estimated and compensated by designing an extended state observer in real time. Therefore, the closed-loop system has great disturbance rejection ability. Professor Han firstly proposed active disturbance rejection control (ADRC), which is taking full advantage of control errors to suppress the control errors [21–23], and it is composed of tracking differentiator (TD), extended state observer (ESO), and nonlinear PID. However, there are 12 parameters in ADRC, which results in a difficult tuning process. With an attempt to simplify the tuning process and make ADRC more practical, LADRC is proposed with linearizing the ESO and TD by Gao in 2003. By this simplification, LADRC only has 3 parameters for tuning [24]. LADRC has lots of successful applications [25–28]. Simulation and experimental results prove that LADRC has nice performance and strong robustness to disturbances. In WWTPs, the variables except the dissolved oxygen can be regarded as the internal uncertain dynamics, while the influent can be regarded as the external unknown disturbance, which could be estimated and compensated by the linear extended state observer (LESO). Therefore, LADRC may have good effect in the control of dissolved oxygen. However, the ability of LADRC to overcome the disturbance of WWTPs and how to choose proper LADRC parameters for the control of dissolved oxygen are unclear. Both of them are worth making a further research in theory and practice for WWTPs. For this purpose, some theoretical analysis and simulation researches are fulfilled.

This paper is organized as follows. Section 2 presents the basic structure of BSM1, the dissolved oxygen control strategy, and the design approaches of LADRC. Section 3 presents the results of simulation, the steps of parameters tuning, and related analysis. Finally, conclusions are given in Section 4.

#### 2. Benchmark Simulation Model Number 1 and Its Control Strategy

##### 2.1. The BSM1 Introduction

BSM1 layout can be divided into two parts, which includes 5 activated sludge reactors and a secondary settler. General structure of BSM1 is shown in Figure 1. Five activated sludge reactors are called bioreactors which are composed of 2 anoxic tanks (Units 1 and 2) and 3 aerobic tanks (Units 3–5). The activated sludge model number 1 (ASM1) has been selected to describe the biological phenomena taking place in biological reactors [29, 30]. Thus, the model includes oxidizing reactions, nitrification, and denitrification for removing biological nitrogen. Behind the reactors, there is a secondary settler, which is composed of 10 layers. The 6th layer is the feed layer, through which the wastewater is from the bioreactors to the secondary settler. At last the treated wastewater comes out of the 10th layer and parts of the sludge from the 1st layer go back to Unit 1 through the external recycle. In the secondary settler, there is no biochemical reaction, just physical deposition. The double-exponential settling velocity function has been selected to describe the secondary settler [31, 32].

In ASM1, there are 13 state variables (including 6 particulate components and 7 soluble components), 8 basic processes, 5 stoichiometric parameters, and 14 kinetic parameters. All the variables, processes, and parameters describe the oxidizing reactions, nitration reactions, and denitrification reactions. Reactions in each bioreactor about 13 state variables follow mass balancing: where is the bioreactor number, is the state variables, is the influent, is the volume of the bioreactor, is the observed conversion rates, and is from 1 to 13. is the core parameter in ASM1, which reflects the relationship among variables. BSM1 is built with Matlab/Simulink, including 5 bioreactors, a secondary settler, and a time-delay unit. The simulation data of dry weather, rainy weather, and stormy weather on benchmark of WWTPs on 14 days is provided to test the model. Only the dry weather data present in Figure 2 is used in this paper, because the data of dry weather, rainy weather, and stormy weather is the same except the last 2 two days.

The flow-weighted average values of the effluent concentrations, such as chemical oxygen demand (COD), biochemical oxygen demand (BOD), ammonium (), total nitrogen (TN), and total suspended solids (TSS) [1, 2], should be within the limits given in Table 1. The quality of processed wastewater called effluent quality (EQ) from the 10th layer can be described by [31] where is the nitrate and nitrite nitrogen. Accordingly, the influent quality (IQ) can be calculated as

##### 2.2. Control Strategy

In BSM1, the control of nitration reactions and denitrification reactions is important. Two factors affect the reactions. The first is the concentration of dissolved oxygen for the activated sludge process, because adequate oxygen level is good for the growth of autotrophic bacteria to reduce ammonia nitrogen to be nitrate. The other factor is the level of nitrite and nitrate in anoxic tanks. Primary control objectives have been given in Table 2 and Figure 3 shows the control structure of BSM1.

Based on ASM1, the dissolved oxygen concentration in aerated sections is the key factor, which affects the process of the biochemical reactions. The dissolved oxygen concentration is manipulated by the oxygen transfer coefficient, which determines the reaction rate of the whole 13 state variables. Excessive dissolved oxygen concentration leads to increase of COD and BOD of the wastewater. On the contrary, if the dissolved oxygen concentration is relatively low, the nitration reaction is inhibited and the removal of ammonia nitrogen in the wastewater will be incomplete. The TN and cannot meet the effluent requirement. Moreover, in aerated sections, keeping the proper dissolved oxygen concentration in Unit 5 is of great importance. First, the effluent quality on 7 soluble components depends on the wastewater from Unit 5, and they will not be changed in secondary settler. Second, parts of the excessive dissolved oxygen from Unit 5 to anoxic sections through the internal recycle constrain the denitrification reactions, so the control of feedback influent () will keep the dissolved oxygen in a proper value in the internal recycle. In addition, controlling the oxygen transfer coefficient in Units 3–5 is less efficient to control the oxygen transfer coefficient in Unit 5 and make the oxygen transfer coefficient in Units 3 and 4 fixed. Therefore, the proper dissolved oxygen concentration in Unit 5 is the key factor in the whole BSM1 system.

Equation (1) covers 13 state variables that meet mass balancing. However, considering the influence of the oxygen transfer coefficient (), the equation of the oxygen () in Unit 5 is where is the volume of Unit 5, is the fluent of Unit 4, is fluent of Unit 5, is the observed conversion rates of the oxygen, and is the oxygen transfer coefficient.

##### 2.3. Designing the LADRC

In BSM1, (4) can be written as a first order plant where Let Here, is referred to as the external unknown disturbance and the internal uncertain dynamics. is the compensating factor of the plant. Let , and then (5) can be written as where The state space model (8) can be written as a compact form where The linear extended state observer (LESO) is designed as where is the estimate of . can be obtained using the pole placement technique, and let The two observer poles should be placed at : Then, and can be placed at and . Therefore, LESO is The PD controller is where the gain can be defined as the function of closed-loop natural frequency [24]. The control scheme of dissolved oxygen in BSM1 by LADRC is given in Figure 4.

#### 3. Simulation Results and Discussions

##### 3.1. LADRC Parameter Tuning

In (15) and (16), 3 parameters, , , and , are tunable parameters of LADRC. Integral of absolute error (IAE), integral of squared error (ISE), and variance of error (VAR) are calculated to evaluate the control of LADRC on BSM1 [2]. The optimal LADRC tuning steps are given below.

*Step 1. *In (4) and (5), can be set to be 1 (if the plant is unknown, could be acquired by simulation).

*Step 2. *A common rule is to choose [24]. Based on this rule, we may get a set of and that can stabilize the systems. (a)Fixing , increasing and decreasing , we can find several groups of stable parameters named class A.(b)Fixing , increasing and decreasing , we can find another class B.(c)Comparing A and B, we may find the relationship between and .(d)Changing both and on this relationship, we may find other groups of stable parameters.

*Step 3. *By comparison with the value of IAE, ISE, and VAR, optimal parameters can be found easily.

According to the steps described above, several groups of simulation are performed, and several results can be found. (1)Dissolved oxygen concentration in Unit 5 could keep near 2g(-COD)/m^{3} (see Figure 5(a)) when nearly , , and .(2)If , the concentration of the dissolved oxygen fluctuates greatly (see Figure 5(b)).(3)If , the disturbance is larger than the controlled signal. Performance of the closed-loop system degrades (see Figure 5(c)).(4)If is decreased, must be increased to keep the performance (see Table 3).

Parts of simulation results are present in Figure 5. The performance of closed-loop system and the EQ values are shown in Table 3. Comparing groups , one may find that as long as the dissolved oxygen concentration in Unit 5 keeps near 2g(-COD)/m^{3}, the EQ values are almost the same.

**(a)**

**(b)**

**(c)**

In Table 3, the optimal parameters are shown in group . In fact, the performances of the groups look the same in Figure 5. When the parameters are chosen as group , the variation of and is shown in Figure 6, which gives out the comparison with virtual reference feedback tuning (VRFT) [19]. The change of wastewater quality is given in Table 4. Apparently, the wastewater quality has been improved greatly.

##### 3.2. Analysis of LADRC Parameters to BSM1

In Section 2.3, LADRC is designed based on BSM1. LESO is the key part of LADRC, which can actively estimate two states, and . The estimation errors and can be defined by According to (12) and (13), LESO can be rewritten as Then, the differential errors are When the states go into steady, that is and are almost zero, we have, The errors are obtained as which can be rewritten as where and . If , will tend to zero and will also tend to zero. In other words, LESO could estimate the and effectively. From Section 2.3, can be described by where and are the parameters of BSM1, is the basic process of aerobic growth of heterotrophs, and is the basic process of aerobic growth of autotrophs: where is the readily biodegradable substrate in Unit 5, is the active heterotrophic biomass in Unit 5, is the nitrogen in Unit 5, and is the active autotrophic biomass. Then the differential of is where and include the controlled state variable . For the wastewater process being a large time-delay system, it is reasonable to let in be a small variable in , where leads to zero. At the same time, another variable could be estimated by a 14-day period of stabilization in closed-loop using dry weather inputs [4]. Through the simulation and calculation, is described in Figure 7 with about 0.2.

If the parameter meets , should exceed 160. In Section 3.1, if the parameter , the fluctuate of the dissolved oxygen concentration becomes large. Therefore, the optimal parameters are and . This is nearly 14 times the . This also confirms the data given in Table 3 and the analysis above.

#### 4. Conclusions

In this paper, the control of dissolved oxygen in WWTPs is considered. The process of wastewater treatment is full of nonlinear, uncertain, and strong couplings. A robuster and more practical control strategy is in great need. As a result of the simple structure, nice disturbance rejection performance, and easy tuning approach, LADRC is employed.

For the control of dissolved oxygen in WWTPs, optimal LADRC parameters tuning approach is obtained by simulations. Estimation capacity of the linear extended state observer is analyzed, which also provides a valuable guidance to choose parameters of LADRC for the control of dissolved oxygen. Simulation results confirm that LADRC is able to get a nice performance.

Although the study is performed by simulation, it can be viewed as an essential step before implementing LADRC in a real plant, since BSM1 is a common framework to test control strategies for WWTPs. LADRC will probably be a more practical and promising solution to the control of wastewater treatment processes.

#### Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

#### Acknowledgments

This work is supported by National Natural Science Foundation of China (51179002), Beijing Natural Science Foundation (4112017), the Importation and Development of High-Caliber Talents Project of Beijing Municipal Institutions (YETP1449).