A type-2 fuzzy neural network-based cooperative control method for controlling dissolved oxygen (DO) and nitrate nitrogen (NO3—N) concentrations of wastewater treatment process (WWTP), wherein aeration value and internal backflow value are used as control variables, the DO and NO3—N concentrations are used as controlled variables, the method comprising the following steps:
- (1) design a type-2 fuzzy neural network (T2FNN) for controlling the DO and NO3—N concentrations, the T2FNN contains five-layers:
- an input layer, a membership layer, a rule layer, a consequent layer and an output layer, wherein:
- the input layer contains 4 input neurons and an input vector is:
- X(t)=[x1(t), x2(t), x3(t), x4(t)]T (1)
- where X(t) is the input vector of the T2FNN at time t, x1(t) is an error between a set-point and a measured value of DO concentration at time t, x2(t) is an error variation between the set-point and the measured value of DO concentration at time t, x3(t) is an error between a set-point and a measured value of NO3—N concentration at time t, x4(t) is an error variation between the set-point and the measured value of NO3—N concentration at time t, T represents a revolution of the weight matrix of the input layer and the input vector;
- the membership layer contains P membership neurons and a neuron represents an interval type-2 membership function:
- m
- _
- ij
- (
- x
- i
- (
- t
- )
- )
- =
- {
- e
- -
- 1
- 2
-
- (
- x
- i
- (
- t
- )
- -
- c
- _
- ij
- (
- t
- )
- σ
- ij
- (
- t
- )
- )
- 2
- ,
- x
- i
- (
- t
- )
- ≤
- (
- c
- _
- ij
- (
- t
- )
- +
- c
- _
- ij
- (
- t
- )
- )
- /
- 2
- e
- -
- 1
- 2
-
- (
- x
- i
- (
- t
- )
- -
- c
- _
- ij
- (
- t
- )
- σ
- ij
- (
- t
- )
- )
- 2
- ,
- x
- i
- (
- t
- )
- >
- (
- c
- _
- ij
- (
- t
- )
- +
- c
- _
- ij
- (
- t
- )
- )
- /
- 2
- (
- 2
- )
- m
- _
- ij
-
- (
- x
- i
-
- (
- t
- )
- )
- =
- {
- e
- -
- 1
- 2
-
- (
- x
- i
- (
- t
- )
- -
- c
- _
- ij
- (
- t
- )
- σ
- ij
- (
- t
- )
- )
- 2
- ,
- x
- i
-
- (
- t
- )
- ≤
- c
- _
- ij
-
- (
- t
- )
- 1
- ,
- c
- _
- ij
-
- (
- t
- )
- <
- x
- i
-
- (
- t
- )
- <
- c
- _
- ij
-
- (
- t
- )
- e
- -
- 1
- 2
-
- (
- x
- i
- (
- t
- )
- -
- c
- _
- ij
- (
- t
- )
- σ
- ij
- (
- t
- )
- )
- 2
- ,
- x
- i
-
- (
- t
- )
- ≥
- c
- _
- ij
-
- (
- t
- )
- (
- 3
- )
- where P=4M, M is a number of rule neurons, 1<M≤15, my(t) is a lower membership value of ith input to jth rule neuron at time t, mij(t) is an upper membership value of the ith input to the jth rule neuron at time t, 0<mij(t)<mij(t)≤1, e is a natural constant and e=2.7183, cij(t) is a lower center of the ith input with the jth rule neuron at time t, cij(t) is an upper center of the ith input with the jth rule neuron at time t, 1<cij(t)<cij(t)<5, σij(t) is standard deviation of the ith input with the jth rule neuron at time t, i is the number of inputs in the T2FNN and i=1, 2, 3, 4, j is the number of rule neurons and j=1, 2, . . . , M;
- the rule layer contains M rule neurons, an output of each neuron is:
- F
- j
- (
- t
- )
- =
- [
- f
- _
- j
- (
- t
- )
- ,
- f
- _
- j
- (
- t
- )
- ]
- (
- 4
- )
- f
- _
- j
- (
- t
- )
- =
- ∏
- i
- =
- 1
- 4
- m
- _
- ij
- (
- t
- )
- ,
- f
- _
- j
- (
- t
- )
- =
- ∏
- i
- =
- 1
- 4
- m
- _
- ij
- (
- t
- )
- (
- 5
- )
- where Fj(t) is firing strength of jth rule neuron at time t,fj(t) is lower firing strength of the jth rule neuron at time t, fj(t) is upper firing strength of the jth rule neuron at time t, 0<fj(t)<fj(t)≤1;
- the consequent layer contains 4 consequent neurons, an output of each neuron is:
- y
- _
- k
- (
- t
- )
- =
- ∑
- j
- =
- 1
- M
- f
- _
- j
- (
- t
- )
-
- h
- j
- k
- (
- t
- )
- ∑
- j
- =
- 1
- M
- f
- _
- j
- (
- t
- )
- ,
- y
- _
- k
- (
- t
- )
- =
- ∑
- j
- =
- 1
- M
- f
- _
- j
- (
- t
- )
-
- h
- j
- k
- (
- t
- )
- ∑
- j
- =
- 1
- M
- f
- _
- j
- (
- t
- )
-
- h
- j
- k
- (
- t
- )
- =
- ∑
- i
- =
- 1
- 4
- w
- ij
- k
- (
- t
- )
-
- x
- i
- (
- t
- )
- +
- b
- j
- k
- (
- t
- )
- (
- 6
- )
- where yk(t) is a lower output of consequent neuron with respect to kth output neuron at time t, yk(t) is an upper output of consequent neuron with respect to the kth output neuron at time t, hk j(t) is jth consequent factor with respect to the kth output at time t, wk ij(t) is a consequent weight of ith input with respect to jth rule neuron and the kth output at time t, bk j (t) is the deviation of the jth rule neuron with respect to the kth output at time t, k=1, 2;
- the output layer contains 2 neurons, an output of each neuron is:
- Δuk(t)=qk(t)yk(t)+(1−qk(t))yk(t) (7)
- where Δuk(t) is an output of kth output neuron at time t, qk(t) is a scale factor of the kth output neuron, 0<qk(t)<1;
- (2) train the T2FNN, which includes:
- 1) divide parameters of the T2FNN into global and local parameters, and define a global parameter vector and a local parameter vector as:
- Φg(t)=[cij(t),cij(t),σij(t)]
- Φl(t)=[wijk(t),bjk(t),qk(t)] (8)
- where Φg(t) is the global parameter vector at time t, Φl(t) is the local parameter vector at time t, and an objective function is:
- l
-
- (
- t
- )
- =
- α
-
- (
- t
- )
-
- l
- 1
- (
- t
- )
- +
- (
- 1
- -
- α
-
- (
- t
- )
- )
-
- l
- 2
- (
- t
- )
-
- α
-
- (
- t
- )
- =
- ❘
- "\[LeftBracketingBar]"
- l
- 1
- (
- t
- )
- ❘
- "\[RightBracketingBar]"
- ❘
- "\[LeftBracketingBar]"
- l
- 1
- (
- t
- )
- ❘
- "\[RightBracketingBar]"
- +
- ❘
- "\[LeftBracketingBar]"
- l
- 2
- (
- t
- )
- ❘
- "\[RightBracketingBar]"
-
- l
- 1
- (
- t
- )
- =
- y
- d
- 1
- (
- t
- )
- -
- y
- 1
- (
- t
- )
-
- l
- 2
- (
- t
- )
- =
- y
- d
- 2
- (
- t
- )
- -
- y
- 2
- (
- t
- )
- (
- 9
- )
- where l(t) is a composite error at time t, α(t) is an error coefficient at time t, l1(t) is the error between the set-point and measured value of DO concentration at time t, l2(t) the error between the set-point and measured value of NO3—N concentration at time t, yl d(t) is the set-point of DO concentration at time t, y2 d(t) is the set-point of NO3—N concentration at time t, y1(t) is a real value of DO concentration at time t, y2(t) is a real value of NO3—N concentration at time t;
- 2) utilize parameter cooperative strategy to optimize the global and local parameters of the T2FNN cooperatively, an updating rule of parameters is:
- Φ
-
- (
- t
- +
- 1
- )
- =
- Φ
-
- (
- t
- )
- +
- (
- H
-
- (
- t
- )
- +
- θ
-
- (
- t
- )
-
- I
- )
- -
- 1
-
- G
- l
- (
- t
- )
-
- H
-
- (
- t
- )
- =
- J
- T
- (
- t
- )
-
- J
-
- (
- t
- )
-
- G
- l
- (
- t
- )
- =
- J
- T
- (
- t
- )
-
- l
-
- (
- t
- )
-
- θ
-
- (
- t
- )
- =
- ❘
- "\[LeftBracketingBar]"
- l
-
- (
- t
- )
- l
-
- (
- t
- )
- +
- l
-
- (
- t
- -
- 1
- )
- ❘
- "\[RightBracketingBar]"
-
- θ
-
- (
- t
- -
- 1
- )
-
- J
- (
-
- t
- )
- =
- [
-
- ∂
- l
-
- (
- t
- )
- ∂
- Φ
- g
- (
- t
- )
- ,
-
- ∂
- l
-
- (
- t
- )
- ∂
- Φ
- l
- (
- t
- )
- ]
- =
- [
-
- ∂
- l
-
- (
- t
- )
- ∂
- c
- _
- ij
- (
- t
- )
- ,
-
- ∂
- l
-
- (
- t
- )
- ∂
- c
- _
- ij
- (
- t
- )
- ,
-
- ∂
- l
-
- (
- t
- )
- ∂
- σ
- ij
- (
- t
- )
- ,
-
- ∂
- l
-
- (
- t
- )
- ∂
- w
- ij
- k
- (
- t
- )
- ,
-
- ∂
- l
-
- (
- t
- )
- ∂
- b
- ij
- k
- (
- t
- )
-
- ,
-
- ∂
- l
-
- (
- t
- )
- ∂
- q
- k
- (
- t
- )
- ]
- (
- 10
- )
- where Φ(t+1) is a parameter vector at time t+1, Φ(t) is a parameter vector at time t, I is a unit matrix, H(t) is a quasi Hessian matrix at time t, Gt(t) is an error gradient vector at time t, θ(t) is an adaptive learning rate at time t and θ(t)∈(0, 1], J(t) is a Jacobian vector at time t, ∂l(t)/∂Φg(t) is a partial derivative of the composite error with respect to the global parameter vector at time t, ∂l(t)/∂Φl(t) is a partial derivative of the composite error with respect to the local parameter vector at time t, ∂l(t)/∂cij(t) is partial derivatives of the composite error with respect to lower uncertain center at time t, ∂l(t)/∂cij(t) is partial derivatives of the composite error with respect to the upper uncertain center at time t, ∂l(t)/∂σij(t) is partial derivatives of the composite error with respect to the standard deviation at time t, ∂l(t)/∂wk ij(t) is partial derivative of the composite error with respect to the consequent weight at time t, ∂l(t)/∂bk j(t) is partial derivative of the composite error with respect to the deviation at time t, ∂l(t)/∂qk(t) is partial derivative of the composite error with respect to the scale factor at time t;
- (3) design the type-2 fuzzy neural network-based cooperative control method for controlling the DO and NO3—N concentrations of the WWTP, which includes:
- 1) calculate outputs of the T2FNN according to Eq. (7);
- 2) compare a value of composite error with a pre-set threshold, if l(t)>β, go to step 3), and if l(t)≤β, go to step 4), where β is the pre-set threshold and β=0.01;
- 3) calculate updated values of parameters according to Eq. (10);
- 4) calculate control outputs at current time:
- uk(t)=uk(t−1)+Δuk(t) (11)
- where uk(t) is kth control output at time t, u1(t) is the control output with respect to an aeration value at time t, u2(t) is the control output with respect to an internal backflow value at time t, uk(t−1) is kth control output at time t−1,
- 5) enter uk(t) into the WWTP to control the DO and NO3—N concentrations, return to step 1);
- (4) use u1(t) and u2(t) to control the concentration of DO and NO3—N in the WWTP, u1(t) is the control input of the aeration value at time t, u2(t) is the control input of the internal backflow value at time t, the control results are the concentrations of DO and NO3—N in the WWTP.