Abstract
In wastewater treatment processes, the concentration of dissolved oxygen affects the performance of wastewater treatment directly. It is one of the key factors that determines effluent quality of the wastewater treatment. However, a simple closed-loop control has a high-energy consumption, and it cannot guarantee the effluent quality due to large perturbations in wastewater treatment plants, such as the influent rate, the temperature, and the complex biochemical reactions. In this paper, a new disturbance rejection controller is designed to address those perturbations. Dynamics of dissolved oxygen is transformed into a controllable canonical form. Discrepancy between the dissolved oxygen dynamics and the controllable canonical form is estimated by a disturbance observer and compensated by a control law. Stability and the bound of tracking errors are obtained. Finally, numerical results on the benchmark simulation model number 1 are presented to confirm the proposed method.
Keywords
Introduction
Shortage of the fresh water and increasing demand on it are a prominent contradiction. Therefore, the demand for reclaimed water, especially for the water-lacking areas, is increasing remarkably. 1 Wastewater treatment attracts extensive attention from all over the world. 2 Various kinds of new techniques have been proposed. 3 However, a wastewater treatment process is not only a biochemical reaction. Actually, automatic control plays a vital role in maintaining the effluent quality and improving efficiency of the treatments. 4 Simultaneously, it should be pointed out that control and optimization of a wastewater treatment is a challenge, due to the complexity of a biochemical reaction, diversity of the time constants involved in a biological process, and the variability of the influent patterns. 5
To address those challenges in wastewater treatment plants (WWTPs), numerous control strategies have been put forward over the past years. Typical methods include proportional–integral–derivative (PID) control,6,7 multi-objective optimal control, 8 multivariable control,9–11 and nonlinear model predictive control (NMPC).12–14 The PID control, a commonly used approach in industrial processes, is also popular in wastewater treatment processes. However, nonlinearities and disturbances greatly degrade the performance of PID. 6 Multivariable control 9 can get satisfied effects. However, it largely depends on the accuracy of a neural network model, and the structure of neural network is determined by trial and error. 15 NMPC is designed in wastewater treatments for its advantages. For example, it simply integrates constraints into an optimization problem. 6 However, NMPC is a data-driven control, whose robustness may be deteriorated owing to uncertainties in the WWTPs. 16
Actually, if nonlinearities, uncertainties, and external disturbances—such as coupling, influent temperature, influent rate, and constituents—are considered as time-varying disturbance, desired performance can be obtained by estimating and eliminating disturbance by an advanced control algorithm. Starting from this idea, a wide variety of disturbance rejection approaches have been proposed, such as active disturbance rejection control (ADRC)17–19 and disturbance observer–based control (DOBC).20,21 For successful applications in various industrial sectors, disturbance rejection control has become a hot topic in recent years. In this paper, we also focus on the disturbance rejection control and its application on the WWTPs.
For DOBC approach, internal disturbance from processes definitely degrades system performance. Although an extended state observer (ESO) designed in ADRC is able to estimate the internal and external disturbances, an ESO still has steady-state estimation errors for a time-varying disturbance. Motivated by improving system performance, a new disturbance rejection control (NDRC) is designed to achieve satisfied dissolved oxygen (DO) concentration in WWTPs.
In NDRC, a controllable canonical form is taken as the standard dynamics. Any discrepancy between the standard form and system dynamics is considered as the generalized disturbance. Observers designed in NDRC are able to estimate the generalized disturbance effectively. Rather than depending on a concrete model of a WWTP, estimating and eliminating the disturbance in real time make the DO concentration control more reliable. In other words, by choosing proper tunable parameters of the baseline controller and the observers, the NDRC can get satisfied level of the DO concentration. In addition, clear physical explanations of those parameters are also helpful for design and use of NDRC.
The rest of this paper is organized as follows. In section “System description and problem statements,” the dynamics and control problems of the WWTPs are described. In section “Disturbance rejection control,” a disturbance rejection control, stability, and its tracking error are presented. In section “Numerical studies,” simulation results are provided to demonstrate the NDRC. Finally, conclusions are drawn in section “Conclusion.”
System description and problem statements
System description
In order to evaluate a control approach in a WWTP objectively, a benchmark simulation model number 1 (BSM1) has been developed by the International Water Association (IWA), and the layout of the BSM1 is presented in Figure 1. 22

Layout of the BSM1.
The BSM1 can be divided into two parts. One is a biochemical reactor, which is composed of a five-compartment activated sludge reactor consisting of two anoxic tanks (V1 = V2 = 1000 m3) followed by three aerobic tanks (V3 = V4 = V5 = 1333 m3). The other part is a secondary clarifier (V = 6000 m3). It is divided into 10 layers evenly. Top layer outputs the water that satisfies the discharge standard, and the bottom layer outflows the waste.
The DO concentration in the fifth tank directly affects the effluent quality, and it is critical to regulate it at an appropriate level. Dynamics of the DO concentration in the fifth tank is 22
where Q4 is the effluent flow rate of the fourth biological reactor, SO,4 denotes the DO concentration of the fourth biological reactor, KLa5 is the oxygen transfer coefficient of the fifth biological reactor,
where XB,A and XB,H represent the active autotrophic biomass and the active heterotrophic biomass of the fifth biological reactor, respectively; SS is the readily biodegradable substrate of the fifth biological reactor; and SNH denotes the NH4+ and NH3 nitrogen of the fifth biological reactor. The other parameters are listed in Tables 1 and 2. 23
Stoichiometric parameters
COD: Chemical Oxygen Demand
Kinetic parameters.
Problem statements
The DO concentration in a WWTP, to a great extent, determines the effluent quality. From equation (1), it can be seen that DO concentration is affected by numerous factors, such as the flow rate, constituents of the wastewater, biological activities, and nitrate concentration. However, in practice, those factors are usually unknown, nonlinear, and strongly coupled. Therefore, how to design and realize an effective control on a WWTP is a big challenge. Therefore, the control objective is to maintain the DO concentration in the fifth tank at an ideal level, even if uncertainties—such as the flow rate, constituents of the wastewater, and biological activities—exist.
Disturbance rejection control
In order to address the challenge, an NDRC approach is designed.
Consider a general n-order nonlinear system
where
Let
then system (5) can be rewritten as
By solving equation (6), we have
Clearly, the system output can be decoupled from both the internal and external disturbances, if u+D=0.
Control law design
In this paper, a disturbance rejection control law u is designed as 24
where u0 is designed to stabilize the system and track the reference;
Remark 1
When substituting equation (8) into (6), we can get a controllable canonical form (9), and
where
The state observer can be designed as
where
Meanwhile, the disturbance observer can be selected as 25
where
Remark 2
The disturbance defined in NDRC is the difference between practical system dynamics and the controllable canonical form. The estimation error is bounded, and the control scheme of an NDRC system is shown in Figure 2. 24

Control scheme of an NDRC system.
Stability and tracking error
Definition
A system is considered to be input-to-state stable if there are a class
Consequently, we have Lemma 1.
Lemma 1
If we choose a proper parameter vector
According to Lemma 1, closed-loop system (9) is input-to-state stable. Next, the tracking error is analyzed on the basis of an input-to-state stable closed-loop NDRC system. For the input-to-state stable system (9), let tracking error be e = yr − y, we have
Thus
Here
For
Therefore
Substituting equation (14) into (13), we obtain
If we define
From equations (12) and (16), we have
Equation (17) represents the closed-loop tracking error system, and it can be rewritten as
where
Since
Lemma 2
For the tracking error system (18), if
where
and −λ1, −λ2,&, −λn are the eigenvalues of matrix
From Lemma 2, we can see that, for the input-to-state stable closed-loop system (9), its tracking error is bounded. In addition, the following remarks have been made.
Remark 3
If controller parameters are selected properly, −λ1, −λ2,&, −λn are distinct. The system matrix
Remark 4
According to Wei,
24
the parameters
Numerical studies
In this section, numerical simulations are performed on the BSM1 in dry, rainy, and stormy days.
Controller design
Based on section “Disturbance rejection control,” a disturbance rejection control law can be designed as
A state observer can be designed as
The disturbance observer can be selected as
where
Simulation design
Two cases are considered to demonstrate the approach. The first case is the constant tracking response, and the second case is the varying setting value response. Based on the responses of the two cases, the difference among proportional–integral (PI) control, self-organizing fuzzy control (SOFC), and NDRC can be seen clearly. In both cases, the parameters of NDRC are set to be l1 = 10,000, l2 = 300, and a1 = 1500. The parameters of PI are taken the same as in Copp’s 23 work, that is, kp = 25 and ki = 12,500. Closed-loop performance is evaluated by the integral of the absolute error (IAE), the integral of the squared error (ISE), and the maximal deviation from the set point (DEVmax) 23
where the tracking error e = yr − y.
Simulation results
In this section, simulation results have been presented.
Case 1: constant DO set value
In this case, the DO concentration is set to be 2 mg/L and the simulation time is 14 days. PI is commonly used in the process control, and the SOFC proposed by Qiao et al. 27 is also considered in BSM1. In order to evaluate the closed-loop performance, the DO concentrations regulated by NDRC, PI, and SOFC 27 are compared.
As shown in Figure 3, in dry weather, it is obvious that NDRC has a better tracking response than PI. From KLa5 curves given in Figure 4, we can see clearly that, with similar control energy, NDRC is able to achieve much better tracking response. In other words, NDRC needs much lower energy than PI when they achieve similar tracking performance. Figure 5 illustrates that disturbance estimator is able to estimate disturbance precisely.

Tracking responses in dry days.

Control signals of PI and NDRC in dry days.

Disturbance and its estimation (I).
Performance indexes in dry weather are listed in Table 3. Compared to SOFC, 27 there is a 55.6% decrease in IAE, DEVmax has dropped by 55.5%, and the ISE is reduced by 84.7%. In addition, by comparison with PI, performance is improved more significantly. IAE, DEVmax, and ISE fall by 96.8%, 29.0%, and 99.9%, respectively. The data given in Table 3 show that NDRC is the best method.
Comparisons of DO tracking performance in dry days.
DO: dissolved oxygen; IAE: integral of the absolute error; ISE: integral of the squared error; DEVmax: maximal deviation from the set point; NDRC: new disturbance rejection control; SOFC: self-organizing fuzzy control; PI: proportional–integral.
As to the effluent, NDRC also satisfies the requirements. For instance, NH is 2.4 mg/L, Ntot is 16.8 mg/L, total suspended solids (TSS) is 13.0 mg/L, 5-day biochemical oxygen demand (BOD5) is 2.7 mg/L, and COD is 48.2 mg/L. Therefore, NDRC is effective in WWTPs.
For rainy and stormy conditions, simulations are also performed. Numerical results are shown in Figures 6–11.

Tracking responses in rainy days.

Control signals of PI and NDRC in rainy days.

Disturbance and its estimation (II).

Tracking responses in stormy days.

Control signals of PI and NDRC in stormy days.

Disturbance and its estimation (III).
As shown in Figures 6 and 9, in rainy and stormy days, NDRC has superior tracking responses. KLa5 curves given in Figures 7 and 10 describe that NDRC needs much less energy than PI when they achieve similar tracking performance. Figures 8 and 11 present that disturbance estimator is able to estimate disturbance precisely. Performance indexes in rainy and stormy days are displayed in Table 4.
Comparisons of DO tracking performance in rainy and stormy days.
DO: dissolved oxygen; IAE: integral of the absolute error; ISE: integral of the squared error; DEVmax: maximal deviation from the set point; NDRC: new disturbance rejection control; SOFC: self-organizing fuzzy control; PI: proportional–integral.
As shown in Table 4, IAE, ISE, and DEVmax of NDRC are better than those of PI and SOFC in rainy and stormy days. Therefore, compared to both PI and SOFC, NDRC is the most suitable approach.
Case 2: varying DO set value
Furthermore, to validate NDRC, varying DO set points are taken into consideration. According to Copp, 23 data in rainy weather contain 1 week’s dry weather influent data and a long rainfall event during the second week. Stormy weather is a combination of dry weather with two stormy events. Therefore, in this case, rainy and stormy conditions are taken to test the closed-loop performance.
Varying DO set points are taken the same as those utilized in Qiao et al.’s 27 work, and tracking performance is shown in Figure 12. Quantitative comparisons have been listed in Table 5.
Comparisons of DO tracking performance in rainy days (varying set points).
DO: dissolved oxygen; IAE: integral of the absolute error; ISE: integral of the squared error; NDRC: new disturbance rejection control; SOFC: self-organizing fuzzy control; PI: proportional–integral.

Tracking responses in rainy days (varying set points).
The results presented in Figure 12 show that NDRC can track the varying set points much better than PI. Indexes shown in Table 5 reveal that, by comparison, NDRC is the best approach among the three approaches listed in Table 5. It means that NDRC has much stronger disturbance rejection ability, and it is able to achieve superior performance in this case.
In Qiao et al.’s 27 work, only the control results in rain weather are provided. In order to illustrate the tracking ability of NDRC, stormy weather is also considered. The simulation results are given in Figure 13.

Tracking responses in stormy days (varying set points).
The results shown in Figure 13 demonstrate that, compared to PI, NDRC can achieve better performance for the varying set value tracking in stormy days. Performance indexes are provided in Table 6. From those values, similar conclusion can be drawn that, in stormy days, NDRC still has much stronger disturbance rejection ability than PI.
Comparisons of DO tracking performance in stormy days (varying set points).
DO: dissolved oxygen; IAE: integral of the absolute error; ISE: integral of the squared error; NDRC: new disturbance rejection control; PI: proportional–integral.
Discussion
Generally speaking, the DO concentration of a WWTP is difficult to control due to its nonlinear, uncertainties, and couplings. Observers utilized in this paper are capable of estimating system states and disturbance more accurately, and the control law designed is able to compensate the disturbance more effectively. NDRC, by comparison, has much stronger disturbance rejection ability, and it is able to improve the closed-loop performance greatly. In addition, compared to the SOFC proposed by Qiao, 27 adjustable parameters of NDRC are clearer in physical backgrounds, which is useful to select the tunable parameters, and it is easier to obtain a group of suitable parameters.
Conclusion
In this paper, an NDRC has been designed for DO concentration control in a WWTP. With the help of observers, the time-varying disturbance in a WWTP can be estimated, and the system dynamics can be approximately transformed into an LTI system with controllable canonical form. Based on a commonly accepted platform BSM1, PI, SOFC, and NDRC are simulated under the same conditions to get unbiased comparison results. Both constant tracking responses and varying set values’ responses under different weathers have been presented. From the simulation results, it is obvious that the NDRC is able to obtain more satisfactory performance for its advantage on disturbance estimation and rejection. However, it still needs to be verified in a real WWTP, and it is our future work.
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by the Key Program of Beijing Municipal Education Commission (grant no. KZ201810011012) and the National Natural Science Foundation of China (grant no. 61873005).
