# A Predictive Neural Network-Based Cascade Control for pH Reactors

Authors: Mujahed AlDhaifallah; Shebel Alsabbah; Iqbal Mujtaba
Journal: Mathematical Problems in Engineering
 (2016)

---

## Abstract

This paper is concerned with the development of predictive neural network-based cascade control for pH reactors. The cascade structure consists of a master control loop (fuzzy proportional-integral) and a slave one (predictive neural network). The master loop is chosen to be more accurate but slower than the slave one. The strong features found in cascade structure have been added to the inherent features in model predictive neural network. The neural network is used to alleviate modeling difficulties found with pH reactor and to predict its behavior. The parameters of predictive algorithm are determined using an optimization algorithm. The effectiveness and feasibility of the proposed design have been demonstrated using MatLab.


---

## Body

## 1. Introduction

The predictive neural network control (PNNC) is a straightforward application of neural networks to nonlinear control [1–3]. It is a combination of the main features of neural network (NN) with model predictive control (MPC). MPNNC is applied to industrial processes which usually contain extreme nonlinear dynamics. It aims to predict the behavior of the process with the existence of moving reference trajectory and disturbances by minimizing a certain cost function that takes into account the future output prediction errors [4].The classical feedback control structures are not very efficient with industrial applications that contain complex nonlinearities. Hence, to enhance the stability of the controlled plant at different reference trajectories and to modify the dynamic features by reducing the settling time, a cascade control structure could be developed with a slave control loop faster but less accurate than the master one [5, 6]. This control scheme would modify the overall performance of the controlled plant when comparing with the conventional control structures.The chosen case study in this paper is the pH reactors. The difficulty of controlling pH processes resides in the nonlinear dynamics and parameter uncertainties of such processes. This behavior is due to the logarithmic relationship between the hydrogen ions concentrations [H+] and the pH value [1].This paper illustrates feasible control of the pH titration plant using predictive and intelligent-based techniques. It also investigates the performance of predictive neural network controller in cascaded structure against the more traditional single loop fuzzy PI controllers. As conclusion, the proposed cascaded structure and the MPNN controller have outperformed the conventional ones. Simulation results have been obtained using MatLab/Simulink. These results demonstrate the feasibility and effectiveness of the proposed design.This paper is structured as follows: in Section2 the theoretical background of classical, neural network-based model predictive control algorithms and the cascade control structure are presented. In Section 3 the modeling and control of pH reactor are represented as a case study. Performance of the proposed controller, interpretation of results, and conclusions are presented in Sections 4, 5, and 6.


## 2. Preliminaries

### 2.1. Neural Network-Based Modeling and Control

To overcome the difficulties in the mathematical modeling of pH reactors in titration processes, many techniques would be used and have the capabilities to meet such demand. In our case, a data-based predictive neural network model is utilized.Neural networks have been increasingly used in the chemical process industry [7], especially for modeling and control of some complex nonlinear processes where process understanding is limited [5]. For example, in the 90s of the last century, many researchers have explored the integration of process knowledge into black box models to provide “grey box” or “hybrid” models [8, 9]. Over the years, there has been a tremendous amount of research focusing on modeling and control of pH chemical reactors with different control strategies [7–11]. A few of these researches undertaken over the past 5 years include nonlinear-based control; fuzzy control with genetic algorithm; adaptive heuristic control; PID-fuzzy control; and nonlinear generalized predictive control [7].In this paper, a predictive neural network (PNN) model based on the experimental data is developed to study the performance of pH reactors in titration processes under different operating parameters such as the fluctuation in feed flow rate of acid and nonstationary pH setpoint. The proposed model was found to be capable of predicting accurately the unseen data of the titration process. The prediction error between the NN predictions and experimental data was found to validate our approach, as will be seen later.The three steps involved in the development of NN model are the following:(a)
Generation of input-output data to train the network: these data should contain all the relevant information about the dynamics of pH reactors. The input was given to the conventional model of the pH reactor and from the conventional model, the input and output were sampled for 0.02 sampling instants and the required sampled data are obtained to train the network.
(b)
The sigmoid activation function of a feed forward network was selected based on the trials with different structures of multilayer perceptron.
The NN topology selected here consists of 4 neurons in the input layer, 7 neurons in the hidden layer, and one neuron in the output layer. Hence it is selected as optimal architecture of NN (lowest error), Figure1. The back propagation algorithm is used in the modeling of pH reactor as a training algorithm. Before training the process weights are initialized to small random numbers. The weights are adjusted till error gets minimized for all training sets. When the error for the entire set is acceptably low, the training is stopped. Table 1 shows the parameters used in developing the NN-based model for the pH reactor.
(c)
Model validation: the final step is the validation. It aims to evaluate the model performance using training and test data. The input and target were presented to the network and the network was trained using Levenberg-Marquardt algorithm.Table 1
NN parameters for modeling of pH reactor.
Parameters
Values
Input neurons
4
output neurons
1
Hidden layer neurons
7
Number of hidden layer
7
Activation function
Sigmoidal
Training algorithm
Levenberg-Marquardt
Iteration
10000
Architecture
Feedforward
Initial weights
1Figure 1
NN model of pH reactor.


### 2.2. Classical Model-Based Predictive Control (MPC)

The scheme of classical MPC is shown in Figure2. It consists of the plant model and the optimization block. It is one of several different model-based control techniques that are associated with the same idea, as it is.Figure 2
The scheme of classical MPC.Its target is to predict the future behavior of the process over a certain time horizon using the dynamic model and obtaining the control actions to minimize a certain criterion:(1)
J
k
,
u
k
=
∑
j
=
N
1
N
2
y
k
+
j
-
y
r
k
+
j
2
+
λ
∑
j
=
1
N
u
u
k
+
j
-
1
2
,where y
(
k
+
j
) is process output, y
r
(
k
+
j
) is reference trajectory, and u
(
k
+
j
) is the control output. It presents the j-step ahead predictions. N
1 and N
2 are the limits prediction horizon of the controlled variable. N
u is the prediction horizon of the reference signal; it is used to reduce the computational load of the method. λ is the weight of the control output [1].Only the first control signal of the calculated sequence is applied to the controlled process at each sampling period. At the next sampling time the procedure is repeated. This is known as the receding horizon concept [1, 2].The process input and output constraints are as given in(2)
u
m
i
n
≤
u
≤
u
m
a
x
Δ
u
m
i
n
≤
Δ
u
≤
Δ
u
m
a
x
y
m
i
n
≤
y
≤
y
m
a
x
Δ
y
m
i
n
≤
Δ
y
≤
Δ
y
m
a
x
.MPC algorithms are considered to be robust ones in industrial control applications because of their ability to handle constraints.


### 2.3. Model Predictive Neural Network Control (MPNNC)

Figure3 shows the neural network (NN) as a function approximator. It has been applied very successfully in the identification and control of dynamic systems [5]. The unknown function corresponds to a controlled plant, and the neural network is the identified plant model.Figure 3
NN as a function approximator.The difference between plant output and the NN output is the prediction error which is used as the NN training signal. NN uses previous inputs/outputs to predict future values of the plant output.Levenberg-Marquardt (LM) algorithm is used as an iterative technique to train the net. It locates the minimum of a function that is expressed as the sum of squares of nonlinear functions. The NN can be trained offline in batch mode, using data collected from the operation of the plant [1].


### 2.4. Cascade Control Structure

Cascade control is a multiloop scheme commonly used in chemical plants [6] that can improve control performance of a system, when disturbances affect the control input. It consists of outer (master, C1) and inner (slave, C2) loop as shown in Figure 4. Inner and outer control loops are formed each with an individual feedback controller. The major benefit from using cascade control is that disturbances arising within the secondary loop are corrected by the secondary controller before they can affect the value of the primary controlled output.Figure 4
Cascade block diagram.The slave controller (C2) is tuned from model parameters (P2), while the master controller (C1) is tuned with the inner loop in operation from model parameters (P1).


## 2.1. Neural Network-Based Modeling and Control

To overcome the difficulties in the mathematical modeling of pH reactors in titration processes, many techniques would be used and have the capabilities to meet such demand. In our case, a data-based predictive neural network model is utilized.Neural networks have been increasingly used in the chemical process industry [7], especially for modeling and control of some complex nonlinear processes where process understanding is limited [5]. For example, in the 90s of the last century, many researchers have explored the integration of process knowledge into black box models to provide “grey box” or “hybrid” models [8, 9]. Over the years, there has been a tremendous amount of research focusing on modeling and control of pH chemical reactors with different control strategies [7–11]. A few of these researches undertaken over the past 5 years include nonlinear-based control; fuzzy control with genetic algorithm; adaptive heuristic control; PID-fuzzy control; and nonlinear generalized predictive control [7].In this paper, a predictive neural network (PNN) model based on the experimental data is developed to study the performance of pH reactors in titration processes under different operating parameters such as the fluctuation in feed flow rate of acid and nonstationary pH setpoint. The proposed model was found to be capable of predicting accurately the unseen data of the titration process. The prediction error between the NN predictions and experimental data was found to validate our approach, as will be seen later.The three steps involved in the development of NN model are the following:(a)
Generation of input-output data to train the network: these data should contain all the relevant information about the dynamics of pH reactors. The input was given to the conventional model of the pH reactor and from the conventional model, the input and output were sampled for 0.02 sampling instants and the required sampled data are obtained to train the network.
(b)
The sigmoid activation function of a feed forward network was selected based on the trials with different structures of multilayer perceptron.
The NN topology selected here consists of 4 neurons in the input layer, 7 neurons in the hidden layer, and one neuron in the output layer. Hence it is selected as optimal architecture of NN (lowest error), Figure1. The back propagation algorithm is used in the modeling of pH reactor as a training algorithm. Before training the process weights are initialized to small random numbers. The weights are adjusted till error gets minimized for all training sets. When the error for the entire set is acceptably low, the training is stopped. Table 1 shows the parameters used in developing the NN-based model for the pH reactor.
(c)
Model validation: the final step is the validation. It aims to evaluate the model performance using training and test data. The input and target were presented to the network and the network was trained using Levenberg-Marquardt algorithm.Table 1
NN parameters for modeling of pH reactor.
Parameters
Values
Input neurons
4
output neurons
1
Hidden layer neurons
7
Number of hidden layer
7
Activation function
Sigmoidal
Training algorithm
Levenberg-Marquardt
Iteration
10000
Architecture
Feedforward
Initial weights
1Figure 1
NN model of pH reactor.


## 2.2. Classical Model-Based Predictive Control (MPC)

The scheme of classical MPC is shown in Figure2. It consists of the plant model and the optimization block. It is one of several different model-based control techniques that are associated with the same idea, as it is.Figure 2
The scheme of classical MPC.Its target is to predict the future behavior of the process over a certain time horizon using the dynamic model and obtaining the control actions to minimize a certain criterion:(1)
J
k
,
u
k
=
∑
j
=
N
1
N
2
y
k
+
j
-
y
r
k
+
j
2
+
λ
∑
j
=
1
N
u
u
k
+
j
-
1
2
,where y
(
k
+
j
) is process output, y
r
(
k
+
j
) is reference trajectory, and u
(
k
+
j
) is the control output. It presents the j-step ahead predictions. N
1 and N
2 are the limits prediction horizon of the controlled variable. N
u is the prediction horizon of the reference signal; it is used to reduce the computational load of the method. λ is the weight of the control output [1].Only the first control signal of the calculated sequence is applied to the controlled process at each sampling period. At the next sampling time the procedure is repeated. This is known as the receding horizon concept [1, 2].The process input and output constraints are as given in(2)
u
m
i
n
≤
u
≤
u
m
a
x
Δ
u
m
i
n
≤
Δ
u
≤
Δ
u
m
a
x
y
m
i
n
≤
y
≤
y
m
a
x
Δ
y
m
i
n
≤
Δ
y
≤
Δ
y
m
a
x
.MPC algorithms are considered to be robust ones in industrial control applications because of their ability to handle constraints.


## 2.3. Model Predictive Neural Network Control (MPNNC)

Figure3 shows the neural network (NN) as a function approximator. It has been applied very successfully in the identification and control of dynamic systems [5]. The unknown function corresponds to a controlled plant, and the neural network is the identified plant model.Figure 3
NN as a function approximator.The difference between plant output and the NN output is the prediction error which is used as the NN training signal. NN uses previous inputs/outputs to predict future values of the plant output.Levenberg-Marquardt (LM) algorithm is used as an iterative technique to train the net. It locates the minimum of a function that is expressed as the sum of squares of nonlinear functions. The NN can be trained offline in batch mode, using data collected from the operation of the plant [1].


## 2.4. Cascade Control Structure

Cascade control is a multiloop scheme commonly used in chemical plants [6] that can improve control performance of a system, when disturbances affect the control input. It consists of outer (master, C1) and inner (slave, C2) loop as shown in Figure 4. Inner and outer control loops are formed each with an individual feedback controller. The major benefit from using cascade control is that disturbances arising within the secondary loop are corrected by the secondary controller before they can affect the value of the primary controlled output.Figure 4
Cascade block diagram.The slave controller (C2) is tuned from model parameters (P2), while the master controller (C1) is tuned with the inner loop in operation from model parameters (P1).


## 3. Case Study

pH reactor system (Figure5) is a typical chemical reactor system with extremely nonlinear dynamics. It is one of the plants that submit challenges to scientist and engineers because of the lack of understanding the dynamics of such process and the difficulty to develop a suitable control strategy.Figure 5
Schematic diagram pH reactor.


### 3.1. Modeling of Chemical Reactor

The pH reactor has two input continuously flowing streams (base and acid), and this continuity of the process gives the titration a special theme, in which the dynamics of the titrated streams are involved. Referring to literature in modeling and dynamics of pH reactors [11–13], the following equation is derived:(3)
p
H
=
log
10
⁡
-
k
Q
a
C
a
/
Q
a
+
Q
b
-
Q
b
C
b
/
Q
a
+
Q
b
+
k
Q
a
C
a
/
Q
a
+
Q
b
-
Q
b
C
b
/
Q
a
+
Q
b
2
-
4
1
0
-
14
-
1
2
1
0
-
14
,where C
a and C
b are the values of concentration for acid and base streams, respectively; Q
a and Q
b are their volumetric flow rates, respectively, and k is a constant that depends on the strength of acid entering the reactor (k
=
1, for strong acid-strong base system).For simulation purposes, we would consider the mixer is an ideal continuous stirred tank reactor CSTR. The pH model of (3) pretends that the water is at the ideal temperature. Moreover, it is assumed that composition conditions which make the ion product exactly 1014, the concentrations of the acid and base, flow rates of the water, and value for the acid dissociation constant are known.The titration curve, shown in Figure6, shows clearly the direct S-relation between the pH value as a process output and the flow of base as a control output. So, pH is considered as the master process variable to be controlled that is affected directly by Q
b as a manipulated variable.Figure 6
Titration curve of strong acid-strong base system.The specifications of the considered pH model are that the strong acid (HCL) is flowing in constant value (2 mL/sec), its concentration is equal to 0.95 mol/L, the process variable will be the flow of strong base (NaOH), and its concentration is 1.9 mol/L.


### 3.2. Cascade Control of the pH Reactor

The designed structure is the cascade one (Figure7), where the outer fuzzy PI-based control loop (C1) is chosen to enhance stability at the final state, and the MPNNC (C2) is considered as an inner loop to improve dynamics by minimization of over/under shoots area and fasten the settling time.Figure 7
Schematic diagram of intelligent-based cascade control of pH reactor (CSTR).Also, C1 is the outer (master) controller, C2 is inner (slave) controller, ADC is the analog to digital converter, DAC is the digital to analog converter,P
/
I is the pressure (3–15 psi) to current (4–20 mA) converter, F
T
T is the flow out transmitter of the product, F
T
C is the flow out controller of the product, pHT is pH transmitter, T
S
T is the temperature transmitter of steam in, F
B
C
V
i is the automatic control valve on the base stream, F
A
C
V
i is a manual-actuated control valve on the acid stream, T
S
C
V
i is the control valve on the steam in, y
1 is the master controlled variable, y
2 is the slave controlled variable, U
2 is the automatic setpoint of the slave controller, and U
1 is measured setpoint of the master controller.


#### 3.2.1. Fuzzy PI-Based Outer Loop (C1)

The outer controller has been chosen to be accurate but slower than inner controller and designed to enhance the stability of the overall dynamic response of the pH. The structure of the proposed fuzzy PI (C1) is shown in Figure8.Figure 8
The structure of PI controller with fuzzy adaptation (outer loop).The goal of the proportional gain in fuzzy system (K
F
P) is to maintain stability. But the integral gain (K
F
I) is used to ensure low oscillations.Table2 shows the fuzzy rule base for proportional gain K
F
P and integral time T
F
I
(
=
1
/
K
F
I
) where five fuzzy triangular sets were considered for the error as a measure of the difference between the process output and its reference trajectory. Likewise, three triangular sets were considered for the output variables. For each case, five fuzzy rules were considered (Table 2).Table 2
Fuzzy rule base (K
F
P, T
F
I).
Error∖gain
Low (L)
Medium (M)
High (H)
Negative high
NH
X
Negative medium
NM
X
Zero
ZR
X
Positive medium
PM
X
Positive high
PH
X


#### 3.2.2. MPNN-Based Inner Loop (C2)

The MPNN has been proposed in the inner loop to be faster than outer one (fuzzy PI-based one). It aims to modify the dynamics of the overall response of the plant and to upgrade the reference trajectory (SP2) of the slave controlled variable (y
2). The NN plant model is trained using the Levenberg-Marquardt algorithm. The training data were obtained from the nonlinear model of the pH reactor (see (3), Figure 6). The predictions are used by a numerical optimization program to determine the control signal that minimizes performance criterion over the specified horizon. The controller block was implemented in Simulink. Constraints and parameters values are 0
≤
u
≤
0.02, 354
≤
y
p
≤
365, N
1
=
1, N
2
=
7, N
u
=
3, and λ
=
0.5.


## 3.1. Modeling of Chemical Reactor

The pH reactor has two input continuously flowing streams (base and acid), and this continuity of the process gives the titration a special theme, in which the dynamics of the titrated streams are involved. Referring to literature in modeling and dynamics of pH reactors [11–13], the following equation is derived:(3)
p
H
=
log
10
⁡
-
k
Q
a
C
a
/
Q
a
+
Q
b
-
Q
b
C
b
/
Q
a
+
Q
b
+
k
Q
a
C
a
/
Q
a
+
Q
b
-
Q
b
C
b
/
Q
a
+
Q
b
2
-
4
1
0
-
14
-
1
2
1
0
-
14
,where C
a and C
b are the values of concentration for acid and base streams, respectively; Q
a and Q
b are their volumetric flow rates, respectively, and k is a constant that depends on the strength of acid entering the reactor (k
=
1, for strong acid-strong base system).For simulation purposes, we would consider the mixer is an ideal continuous stirred tank reactor CSTR. The pH model of (3) pretends that the water is at the ideal temperature. Moreover, it is assumed that composition conditions which make the ion product exactly 1014, the concentrations of the acid and base, flow rates of the water, and value for the acid dissociation constant are known.The titration curve, shown in Figure6, shows clearly the direct S-relation between the pH value as a process output and the flow of base as a control output. So, pH is considered as the master process variable to be controlled that is affected directly by Q
b as a manipulated variable.Figure 6
Titration curve of strong acid-strong base system.The specifications of the considered pH model are that the strong acid (HCL) is flowing in constant value (2 mL/sec), its concentration is equal to 0.95 mol/L, the process variable will be the flow of strong base (NaOH), and its concentration is 1.9 mol/L.


## 3.2. Cascade Control of the pH Reactor

The designed structure is the cascade one (Figure7), where the outer fuzzy PI-based control loop (C1) is chosen to enhance stability at the final state, and the MPNNC (C2) is considered as an inner loop to improve dynamics by minimization of over/under shoots area and fasten the settling time.Figure 7
Schematic diagram of intelligent-based cascade control of pH reactor (CSTR).Also, C1 is the outer (master) controller, C2 is inner (slave) controller, ADC is the analog to digital converter, DAC is the digital to analog converter,P
/
I is the pressure (3–15 psi) to current (4–20 mA) converter, F
T
T is the flow out transmitter of the product, F
T
C is the flow out controller of the product, pHT is pH transmitter, T
S
T is the temperature transmitter of steam in, F
B
C
V
i is the automatic control valve on the base stream, F
A
C
V
i is a manual-actuated control valve on the acid stream, T
S
C
V
i is the control valve on the steam in, y
1 is the master controlled variable, y
2 is the slave controlled variable, U
2 is the automatic setpoint of the slave controller, and U
1 is measured setpoint of the master controller.


### 3.2.1. Fuzzy PI-Based Outer Loop (C1)

The outer controller has been chosen to be accurate but slower than inner controller and designed to enhance the stability of the overall dynamic response of the pH. The structure of the proposed fuzzy PI (C1) is shown in Figure8.Figure 8
The structure of PI controller with fuzzy adaptation (outer loop).The goal of the proportional gain in fuzzy system (K
F
P) is to maintain stability. But the integral gain (K
F
I) is used to ensure low oscillations.Table2 shows the fuzzy rule base for proportional gain K
F
P and integral time T
F
I
(
=
1
/
K
F
I
) where five fuzzy triangular sets were considered for the error as a measure of the difference between the process output and its reference trajectory. Likewise, three triangular sets were considered for the output variables. For each case, five fuzzy rules were considered (Table 2).Table 2
Fuzzy rule base (K
F
P, T
F
I).
Error∖gain
Low (L)
Medium (M)
High (H)
Negative high
NH
X
Negative medium
NM
X
Zero
ZR
X
Positive medium
PM
X
Positive high
PH
X


### 3.2.2. MPNN-Based Inner Loop (C2)

The MPNN has been proposed in the inner loop to be faster than outer one (fuzzy PI-based one). It aims to modify the dynamics of the overall response of the plant and to upgrade the reference trajectory (SP2) of the slave controlled variable (y
2). The NN plant model is trained using the Levenberg-Marquardt algorithm. The training data were obtained from the nonlinear model of the pH reactor (see (3), Figure 6). The predictions are used by a numerical optimization program to determine the control signal that minimizes performance criterion over the specified horizon. The controller block was implemented in Simulink. Constraints and parameters values are 0
≤
u
≤
0.02, 354
≤
y
p
≤
365, N
1
=
1, N
2
=
7, N
u
=
3, and λ
=
0.5.


## 3.2.1. Fuzzy PI-Based Outer Loop (C1)

The outer controller has been chosen to be accurate but slower than inner controller and designed to enhance the stability of the overall dynamic response of the pH. The structure of the proposed fuzzy PI (C1) is shown in Figure8.Figure 8
The structure of PI controller with fuzzy adaptation (outer loop).The goal of the proportional gain in fuzzy system (K
F
P) is to maintain stability. But the integral gain (K
F
I) is used to ensure low oscillations.Table2 shows the fuzzy rule base for proportional gain K
F
P and integral time T
F
I
(
=
1
/
K
F
I
) where five fuzzy triangular sets were considered for the error as a measure of the difference between the process output and its reference trajectory. Likewise, three triangular sets were considered for the output variables. For each case, five fuzzy rules were considered (Table 2).Table 2
Fuzzy rule base (K
F
P, T
F
I).
Error∖gain
Low (L)
Medium (M)
High (H)
Negative high
NH
X
Negative medium
NM
X
Zero
ZR
X
Positive medium
PM
X
Positive high
PH
X


## 3.2.2. MPNN-Based Inner Loop (C2)

The MPNN has been proposed in the inner loop to be faster than outer one (fuzzy PI-based one). It aims to modify the dynamics of the overall response of the plant and to upgrade the reference trajectory (SP2) of the slave controlled variable (y
2). The NN plant model is trained using the Levenberg-Marquardt algorithm. The training data were obtained from the nonlinear model of the pH reactor (see (3), Figure 6). The predictions are used by a numerical optimization program to determine the control signal that minimizes performance criterion over the specified horizon. The controller block was implemented in Simulink. Constraints and parameters values are 0
≤
u
≤
0.02, 354
≤
y
p
≤
365, N
1
=
1, N
2
=
7, N
u
=
3, and λ
=
0.5.


## 4. Results

Figure9 shows predicted plant output using predictive neural network when comparing with the real plant one.Figure 9
Performance of model-based predictive NN.It is clear that the performance of the predictive neural network control (PNNC) is robust enough, since the predicted NN output well follows the real plant output referring to the same input function. The prediction error between the plant output and the NN output is used as the neural network training signal (Figure3). Also, a random reference signal (as input function) is connected to the optimization block in the PNNC.Figure10 demonstrates the simulation results obtained from implementation of the design shown in Figure 7.Figure 10
Dynamics of PNNC with cascade structure.And hereby, to validate our design, the cascaded structure was compared with single feedback control structures, and the results are as given in Figure11.Figure 11
Dynamics of cascade structure of MPNN and fuzzy PI with convenient fuzzy PI one.It has well been noted that the cascade MPNN-based structure (Figure10) provides enhanced stability and modified dynamics when comparing with conventional (single-feedback) intelligent-based one, Figure 11.The simulation results in Figures10 and 11 are achieved at two operational modes of pH reactor, acidic solution when pH is equal to 13 and basic one when pH is equal to 4.5. And so, the nonlinear regions in the titration process and the linear ones, seen in Figure 5, are covered. Both cases aim to validate the proposed control philosophy (predictive NN-based cascade control) at two extreme and opposite operating conditions.


## 5. Interpretation of Results

The quantitative performance values, integration of absolute error (IAE), for the MPNN in cascade design and fuzzy PI controllers are calculated as given in(4)
I
A
E
=
∫
0
T
e
·
d
t
.The control performance of pH has been verified once with injection of acid stream flow rate as disturbance (rows 2 and 3) and also with submitting a nonstationary setpoint (rows 4 and 5).It is well noted from Table3 that when computing the IAE with single feedback design, it is found (as an example = 17.650) but for cascade structure it is equal to 3.333. So, it could be concluded that the single feedback design (column 4) is worse than that of cascade structure (column 3).Table 3
The integral of the absolute error (IAE) for the control methods.
IAE
Process
Disturbance
MPNN controller(cascade structured)
Fuzzy PI(single feedback)
pH reactor
Acid stream flow rate
3.333
17.650
Acid stream flow rate
5.077
20.656
Setpoint
8.598
14.190
Setpoint
9.022
15.169


## 6. Conclusions and Future Work

### 6.1. Conclusions

This paper has demonstrated the usefulness and effectiveness of applying neural networks in a model-based control strategy to control a pH reactor.Both the model predictive neural network as a master control loop and fuzzy PI controllers as slave one have been implemented in cascade structure (Figure6). The controller performance under multiple changes in setpoint as well as the effect of fluctuation in acid stream as a disturbance has been investigated.Comparison of performance with the conventional single feedback fuzzy PI controller indicated that cascade structure was more robust than the single feedback controller and gave better results in cases involving disturbances (Figures10 and 11, Table 3).Presented results confirm the known fact, with the chemical pH reactor, and when disturbances affect the control input, the cascade control structure can improve control performance in transient and steady-state conditions.


### 6.2. Suggestions for Future Work

(i)
A rational controller could be added to manage the percentage in variation of base stream with respect to acid stream (e.g., weak or strong). Thus, the dynamics shown in Figure10 can be further modified.
(ii)
The proposed cascade structure and predictive NN-based controller could be realized using digital signal processor (DSP).


## 6.1. Conclusions

This paper has demonstrated the usefulness and effectiveness of applying neural networks in a model-based control strategy to control a pH reactor.Both the model predictive neural network as a master control loop and fuzzy PI controllers as slave one have been implemented in cascade structure (Figure6). The controller performance under multiple changes in setpoint as well as the effect of fluctuation in acid stream as a disturbance has been investigated.Comparison of performance with the conventional single feedback fuzzy PI controller indicated that cascade structure was more robust than the single feedback controller and gave better results in cases involving disturbances (Figures10 and 11, Table 3).Presented results confirm the known fact, with the chemical pH reactor, and when disturbances affect the control input, the cascade control structure can improve control performance in transient and steady-state conditions.


## 6.2. Suggestions for Future Work

(i)
A rational controller could be added to manage the percentage in variation of base stream with respect to acid stream (e.g., weak or strong). Thus, the dynamics shown in Figure10 can be further modified.
(ii)
The proposed cascade structure and predictive NN-based controller could be realized using digital signal processor (DSP).



---

*Source: 5638632-2016-08-23.xml*