You are on page 1of 10

MODEL BASED PREDICTIVE CONTROL USING NEURAL

NETWORK FOR BIOREACTOR PROCESS CONTROL

Laurentiu FRANGU, Sergiu CARAMAN, Emil CEANGA,

Department of Automatic Control and Electronics,


"Dunarea de Jos" University, Domneasca 111, 6200 Galati, Romania
phone/fax: +40 36 460 182, email: Sergiu.Caraman@ugal.ro

Abstract: This paper deals with a neural network based GPC structure for a bioprocess
control. Comparing to IMC structure, this method offers two advantages: the neural
inverting operation of the process model is eliminated and there are various
possibilities to adjust the control law properties. The GPC method is applied to a
biomass production process and to an enzymatic production process (lipase
producing). In both cases many simulation results are presented which illustrate the
validity of the method.

Keywords: predictive control, neural network, training, bioreactor, bioprocess.

1. INTRODUCTION
The capacity of the neural networks (NN) for
The complexity of the bioprocesses makes their the complex input/output models identification
control problem very difficult. The usual has stimulated their usage in the bioreactors
modeling procedures, based on kinetic control structures. One of the basic approaches,
enzymatic schemes, lead to non-linear state concerning the neural techniques in the
models, with a large number of parameters. bioprocesses control, is Internal Model Control
Moreover, the state variables that characterize (IMC) Framework (Garcia et al., 1982). Neural
the proper biosynthesis process are not network model - based IMC structure involves
accessible to the direct measurement. In the the usage of two neural networks, trained for the
basic configuration, the bioreactor has control determination of both direct and inverse models.
loops only for the physical and chemical Assuming the direct model is ideal, the
parameters of the culture environment comparison of its output to the one of the
(temperature, stirring, aeration, pH, etc.). This process allows the disturbance reconstruction.
fact has determined the development of some The inverse model is the controller, performing
specific techniques to estimate the parameters the functions of reference tracking and
and for the state observers synthesis (Bastin et disturbance rejection.
al., 1990). Since the bioprocesses have
frequently a variant character, the techniques A large class of neural network model - based
mentioned above are used in the context of the control structures could be framed in the domain
linearizing adaptive control methods (Bastin et of Model-Based Predictive Control (MBPC) (De
al., 1990) Keyser, 1991; Camacho et al., 1999). The
present paper deals with a biosynthesis process tracking, the disturbance rejection, the
control, using the Generalized Predictive modification of the control law properties by
Control (GPC) structure (Clarke et al., 1989), adjusting the parameters which appear in the
which is part of MBPC approach. Comparing to performance criterion. The fourth section deals
the IMC approach, the main arguments that with the same problems from the previous
justify the usage of GPC structure, in the section, using the GPC structure with discrete
framework of the biosynthesis processes neural command. Section 5 describes the performances
control, are given as follows: of GPC approach in a case study concerning the
optimization of the lipase biosynthesis process.
1. The neural inverting operation of the A summary and conclusions are given in the
process model, needed for the controller final section.
implementation, is eliminated. As it is well
known, the inverse neural model training is
always more difficult than the one of the 2. GENERALIZED PREDICTIVE
direct model (Bhat et al., 1990). In the case CONTROL
of the biosynthesis processes, where the
model complexity is high, the training of the From the variety of MBPC strategies, the most
inverse model (non-causative) could involve spread is GPC algorithm, illustrated in Figure 1.
difficulties and risks, especially in adaptive
context. This is the reason why in the IMC,
using neural networks approach, hybrid
models are proposed. They fructify some a
priori information regarding the model.
Thus the neural identification operates with
a "gray box" instead of a "black box"
(Aoyama et al., 1995). This solution reduces
in a certain range the difficulties of the
inverse model training, without their
elimination, whereas GPC approach Fig. 1. GPC structure
eliminates the inverse model.
2. GPC offers various possibilities for the Let us consider t the discrete current time in
control law adjustment by means of the GPC procedure. The command variation at the
following parameters: the prediction current step ∆u(t) is deduced from the condition
horizon, the control horizon, the weights of of the criterion minimization:
the error and the command. The control
feasibility requirements make these N2
instruments very useful for the control law J = ∑ δ 2 ( k ) ⋅ [ w(t + k ) − y (t + k / t )] 2 +
adjustment. k = N1
Nu −1
+ ∑ λ2 ( k ) ⋅ [ ∆u(t + k / t)] 2 (1)
The paper analyses the properties of the neural k =0
network based GPC structure for a bioprocess
control in two variants: where y(t+k/t) is k-step ahead prediction of the
system output on data up to time t; N1 and N2 -
1. using continuous command the minimum and maximum prediction
2. using discrete command. horizons; Nu - the control horizon; w(t+k) - the
future setpoint; δ(k) and λ(k) - the weighting
The paper also illustrates some results regarding coefficie nts of the errors and of the commands,
the usage of this structure to the lipase respectively. The internal model, assumed to be
biosynthesis process optimization. perfect, is used to determine the predictions -
y(t+k/t). At every step of the GPC procedure,
The structure of the paper is as it follows: the the unitary step response of the internal model in
next section contains an introduction in GPC zero initial conditions is determined. For this, it
structure. The third section presents some basic is necessary to admit that the model could be
results referring to the neural network model- linearized around the current working point. The
based control in the GPC structure, for a step response identification involves the
biotechnological process, such as: the reference following operations:
- the previous command is kept constant and J = [∆ ⋅W − ∆ ⋅ ( GU + Y free )]T ⋅ [ ∆ ⋅ W −
the free response is determined: yfree(t+k/t),
k=1,…,N2 ; − ∆ ⋅ (GU + Y free )] + ( ΛU ) T ( ΛU ) (10)
- the step response of the model is
determined: y(t+k/t), k=1,…,N2. where

Since
W = [ w(t + N 1 / t), w( t + N1 + 1 / t ),..., w( t + N 2 / t )] T
(11)
y( t + k / t) = y free (t + k / t ) + y forced (t + k / t ) (2)
∆ = diag[δ (1),..., δ ( N 2 − N1 + 1)] (12)
with
Λ = diag[λ (1),..., λ ( N u )] (13)
k
y forced (t + k / t) = ∑ g i ⋅ ∆u(t + k − i / t ) ,
i =1 From the condition of the criterion
k = 1,..., N 2 (3) minimization, the following control law is
results obtained:

k
U = [ G T ⋅ ∆2 ⋅ G + Λ2 ⋅ I ) −1 ⋅ ∆ ⋅ G(W − Y free ) (14)
∑ g i ⋅ ∆u(t + k − i / t ) = y(t + k / t) − y free (t + k / t )
i =1
(4) Only the first component of the vector U,
∆u(t/t)≡∆u(t), is applied. Shifting to the future
where gi represent the step response coefficients the prediction and control horizons, the next step
in zero initial conditions. of the algorithm is prepared. Then, the algorithm
operations are repeated.
Replacing consecutively in relation (4) k with
(1,2,…,N 2 ) the values g 1,g2 ,…,g N2 are obtained.
Within the prediction horizon [N1 ,N2 ], the 3. STABILIZATION AND TRACKING
linearized model can be written as it follows: REGIME OF A BIOREACTOR
CONTROLLED BY GPC ALGORITHM
Y = GU + Y free (5)
3.1 The neural model of the bioprocess
where
For testing the GPC algorithm, the bioprocess
presented in (Aoyama et al., 1995) has been
Y = [ y(t + N1 / t ), y( t + N1 + 1 / t ),..., y (t + N 2 / t )] T
considered. In the paper mentioned above the
(6) performances of the IMC procedure was
determined. This alternative has permitted to
U = [ ∆u (t / t ), ∆u(t + 1 / t),..., ∆u (t + N u − 1 / t)] T draw some comparative conclusions regarding
(7) the two control procedures. The process takes
place in a continuous stirred bioreactor and it is
Y free = [ y free ( t + N1 / t ), y free (t + N 1 + 1 / t ),... described by the following equations:
..., y free (t + N 2 / t )]T (8)
X& = (µ − D) ⋅ X (15)

 g N1 g N1−1 ... 0  1

g N +1 g N1 ... 0
 S& = D ⋅ ( S f − S ) − ⋅µ ⋅ X (16)
G= 1  YX / S
 M 
(9)
M M M
 
 g N 2 g N 2 −1 ... g N2 − N u −1  P& = − D ⋅ P + (α ⋅ µ + β ) ⋅ X (17)

Using the model (5) in equation (1), a quadratic with


form for the performance criterion, with respect
to U, is obtained: µ max ⋅ (1− P / Pm ) ⋅ S
µ= (18)
Km + S + S 2 / Ki
where

X = cell mass concentration (5.9956 g/l at the


steady-state);
P = product concentration (19.1267 g/l at the X(k-1)
steady-state);
S = substrate concentration in the culture S(k-1)
(5.0109 g/l at the steady-state); DXm(k)
S f = feed substrate concentration in the culture P(k-1)
(20.0 g/l at the steady-state);
D = dilution rate (0.202 l/h at the steady-state); D(k-1)

µ = specific growth rate [l/h] given by (18),


which includes the inhibition due to the
substrate and the reaction product;
YX/S = cell mass yield (0.4 g/g); Fig. 3: The neural network structure
α = kinetic parameter (2.2 g/g);
β = kinetic parameter (0.2 l/h);
µmax = maximum specific growth rate (0.48 l/h); 0.3
0.2

D, DX
Pm = product saturation constant (50 g/l);
0.1
Km = substrate saturation constant (1.2 g/l); 0
Ki = substrate inhibition constant (22 g/l). -0.1
0 5 10 15 20
Time (h)
The non-linear behavior of the process clearly 20
results from its static characteristic presented in
X, S, P

Figure 2. 10

0
0 5 10 15 20
Time (h)

Fig. 4. Transient data used for neural network


training

0.25
0.2
D

0.15
0.1
0.05
0 5 10 15 20
Time (h)
30

Fig. 2. The static characteristic of the process 20


X, S, P

10
A structure with three layers has been proposed
0
as internal neural model: four input neurons, 0 5 10 15 20
Time (h)
seven sigmoidal neurons in the hidden layer and
one linear neuron as output layer (Figure 3). The Fig. 5. Steady - state data used for neural
neural network output is the biomass increment. network training
For the neural network training both the
transient and the quasi - steady state data were The validation of the neural network training has
used. The transient data have been obtained by been made with test data, which were not used
integrating the differential equations (15) - (17), during the training (Figure 6). We can see that
considering the randomly varying dilution rate the network leads to a very good approximation,
within range ±50% around the steady-state value the difference between the process output and
(Figure 4). The quasi - steady state data has been the model being almost imperceptible.
obtained by integrating equations (15) - (17)
considering different values of the dilution rate The testing of the process described by the
D (Figure 5). equations (15)-(17) and of the neural model with
a multi-step sequence shows that the - the command D should not exceed the
approximation is very good for the biomass admissible interval.
values within the range [3.5-8] g/l (Figure 7).
For values of the biomass that exceed the Further on, the following parameters of the
domain of the training set (e.g. less than 3.5 g/l), predictive controller were successively varied:
the error of the neural network model output 1. The prediction horizon (N2 ) (the other
becomes larger (Figure 7). parameters were kept constant to the values:
Nu =1, λ=10 and δ=1. In Figure 8 it can be
6.25 seen that the process output reaches the
Process output
6.2
Model output setpoint more slowly and the command has
smaller variations as the prediction horizon
6.15
increases.
Biomass (g/l)

6.1 2. The control horizon (Nu ) (the other


6.05
parameters were kept constant to the values:
N2 =8, λ=10 and δ=1. Figure 9 shows that
6
the increasing of the control horizon value
5.95 leads to the increasing of the stabilization
5.9
speed of the process output to the setpoint.
0 0.5 1 1.5 2 2.5 3. The penalty factor of the command
variations (λ-parameter, λ(k)=λ); the other
Time (h)

Fig. 6. The validation of the neural network parameters were kept constant to the values:
N2 =4, Nu =1 and δ=1 - Figure 10.
4. The penalty factor of the future errors,
5.5
Process output
Model output
which interfere in the criterion minimization
5 (δ-parameter, δ(k)=δ); the other parameters
4.5 were kept constant to the values: N2 =4,
Nu =1 and λ=10 - Figure 11.
Biomass (g/l)

3.5

3 6
N2=4
2.5 N2=8
5.8 N2=12
2 N2=16
5.6
Biomass (g/l)

1.5
0 50 100 150 200
Time (h)
5.4

Fig. 7. The process and model response when


5.2
the input is a multi-step sequence
5
3.2 The performances of the closed-loop system
4.8
0 2 4 6 8 10
Time (h) (a)
The control objective is to maximize the output
rate of biomass per unit volume of culture. To 0.55
reach the optimum, the controller has to keep the 0.5
process in a functioning point (D, X),
0.45
determined from the static characteristic (Figure
Dilution rate (l/h)

0.4
2). Consequently, the performances of the
closed-loop system were studied through 0.35
variations around the chosen steady functioning 0.3
point. 0.25

0.2
A step setpoint from 6 to 5 l/h has been applied
to the system presented in Figure 1. For the 0.15
0 2 4 6 8 10
Time (h) (b)
choice of the step value, the following issues
were taking into account:
- the working point has to lie in the range Fig. 8. The influence of N2 -parameter on the
where the neural model has been trained; process (a -output and b - command)
6
increases or δ decreases, the overshot and the
Nu=1
Nu=2
transient time become larger.
5.8 Nu=3
Nu=4
6
5.6 delta=1.2
Biomass (g/l)

delta=1
5.8 delta=0.8
5.4 delta=0.6
5.6

Biomass (g/ l)
5.2
5.4

5 5.2

0 2 4 6 8 10 5
Time (h) (a)
4.8
0.55
4.6
0.5 0 2 4 6 8 10
Time (h) (a)
0.45
Dilution rate (l/h)

0.4 0.55
0.5
0.35
0.45

Dilution rate (l/h)


0.3 0.4

0.25 0.35
0.3
0.2
0 2 4 6 8 10 0.25
Time (h) (b)
0.2
Fig. 9. The influence of Nu -parameter on the 0.15
process (a - output and b - command) 0.1
0 2 4 6 8 10
Time (h) (b)
6
lambda=5
lambda=10
Fig. 11. The influence of δ-parameter on the
5.8 lambda=15 process (a - output and b - command)
lambda=20
5.6
Biomass (g/ l)

5.4
3.3 Tracking performances of the closed-loop
system
5.2

5 The tracking pr operties of the system presented


4.8
in Figure 1 were tested applying a quasi-periodic
signal as setpoint. Taking into account the long
4.6
0 2 4 6 8 10 duration of the considered bioprocess, the test
Time (h) (a) signal frequency was chosen small enough so
0.55
that the predictive algorithm could track the
0.5
setpoint variations (Figure 12).
0.45
The system output magnitude varies within the
Dilution rate (l/h)

0.4
0.35
range [2-8] g/l. These values are outside the
0.3
domain where the neural model has a good
0.25
behavior. The range [2-8] g/l was chosen to
0.2
represent both zones: a good training zone and a
0.15
poor training one. The increasing of the biomass
0.1
concentration over 8 g/l leads to unfeasible
0 2 4 6 8 10 values for the command (less than 0). When the
Time (h) (b)
setpoint values are within the range [2-3] g/l,
significant errors appear between the setpoint
Fig. 10. The influence of λ-parameter on the
and the process output. This is due to the fact
process (a - output and b - command)
that within this range, the neural model does not
approximate accurately enough the process
Figures 10 and 11 show the influence of λ and δ
output, as indicated in Figure 7.
- parameters on the process output: as λ
8 6

7 5.8

6 5.6

Biomass (g/l)
Biomass (g/l)

5
5.4

4
5.2

3 Process output
Setpoint 5

2 0 1 2 3 4 5
0 10 20 30 40 50 60
Time (h) Time (h)
(a)
Fig. 14: The system behavior when µ-parameter
0.8 was modified
0.7

0.6
In both cases the control system rejected very
well the disturbances.
Dilution rate (l/h)

0.5

0.4 4. GPC STRUCTURE WITH DISCRETE


0.3 COMMAND
0.2
In many cases, the actuating equipment of the
0.1
commands of a bioreactor can not track
0 accurately the command u(t) of the controller.
0 10 20 30 40 50 60
Time (h) (b) Moreover, this equipment is often conceived to
modify in steps the dilution rate so that the
Fig. 12. The tracking behavior of the system variable D(t) can take only a reduced number of
(a -output and b - command) discrete values. In this case, the command
variation ∆u(t) is found out from the criterion
3.4 Disturbances rejection by the closed-loop
(1) minimization, searching through all the
system
possible combinations of the discrete
Two kind of disturbances were considered, commands, on the control horizon - Nu .
affecting the feed substrate concentration (S f ) Obviously, for large values of the Nu parameter,
and the specific growth rate (µ): the computing time necessary to determine the
optimal command could become prohibitive.
1. A pseudo-random disturbance has been For the bioprocess described in the previous
added to S f , ranging within ±25% interval section, the dilution rate was considered to take
(Figure 13). five possible values: {0; 0.05; 0.1; 0.15; 0.2}.
For Nu =1, in Figures 15, 16 and 17 the closed
loop performances of the system, when the
6
Open loop prediction horizon (N2 ) takes the respective
Closed loop
values 8, 12 and 16, are illustrated. Figure 17
5.995 shows that the performances are satisfactory,
even when using a reduced number of command
Biomass (g/l)

5.99 commutations.

5.985 7.2

7
5.98
0 2 4 6 8 10 6.8
Biomass(g/l)

Time (h)

6.6
Fig. 13. Open-loop and closed-loop system
behavior when S f is disturbed 6.4

2. After 2.5 hours, the value of µ-parameter 6.2

was increased with 50% (Figure 14). 6


0 10 20 30 40 50 60
Time (h) (a)
0.2 0.2

0.15 0.15

Dilution rate (l/h)


Dilution rate (l/h)

0.1 0.1

0.05
0.05

0
0 10 20 30 40 50 60 0
Time (h) 0 10 20 30 40 50 60
(b) Time (h) (b)

Fig. 15: The process behavior for N2 =8 (a - Fig. 17: The process behavior for N2 =16 (a -
output, b - discrete command) output, b - discrete command)

7.2

5. GPC OF LIPASE BIOSYNTHESIS


7
PROCESS
6.8
Biomass(g/l)

The lipase biosynthesis process is a very


6.6
complex one, due to the simultaneous existence
6.4 of more culture phases: liquid phase, organic
phase, cellular phase and gaseous phase. The
6.2
model describing this behavior is highly non-
6
0 10 20 30 40 50 60
linear and consists in the following differential
Time (h) (a) equations (Selisteanu, 1999):

0.2 S&1 = −η ⋅ X + D (19)

0.15 S& 2 = η − µ ⋅ (Y + S 2 ) (20)


Dilution rate (l/h)

0.1 X& = µ ⋅ X (21)

0.05 L& in = ν p − ν ex − µ ⋅ Lin (22)

0
0 10 20 30 40 50 60 L& ex = ν ex ⋅ X (23)
Time (h)
(b)
where
Fig. 16: The process behavior for N2 =12 (a -
output, b - discrete command) X = biomass concentration [g/l];
S 1 , S2 = extracellular and intracellular substrate
7.2 concentration [g/l];
Lex, Lin = extracellular and intracellular lipase
7
concentration [g/l];
6.8 η = specific absorption rate of the substrate [h-1 ];
Biomass(g/l)

µ = specific growth rate of the biomass [h-1 ];


νp = internal lipase production rate [h-1 ];
6.6

6.4 νex = lipase exhaust rate [h-1 ].

It has been considered the Monod forme for η, µ


6.2

6
0 10 20 30 40 50 60
and νex, and Haldane forme, multiplied by µ, for
Time (h) (a) νp :
η * ⋅ S1
η= (24) S1/X
K M + S1 10 X
1

µ* ⋅S2
µ= (25) 6
K M + S2
2
4

ν ex * ⋅ Lin
ν ex = (26) 2
K ex + L in
0
0 5 10 15 20
Time (h) (a)
ν p * ⋅ ( S1 / X )
νp = ⋅µ (27)
K p + S1 / X + K i ⋅ ( S1 / X ) 2 180
2
F*10
160 Lex
where the parameters' values are: 140

η* =0.21h-1 , KM1 =0.11g/l, µ* =0.25h-1 , 120

KM2 =0.25g/l, νp =123u/mg,


*
Kp =0.26g/g, 100

Ki =22.2g/g, νex =4.09h ,


* -1
Ke x=19.5u/mg, 80

Y=1.16g/g. 60
40
The model is only valid for the biomass and 20
substrate concentration values within the range 0
0 5 10 15 20
[0-8] g/l. The goal of the process control is to Time (h) (b)
maximize the final lipase production.
Fig. 18. a - biomass and S 1 /X ratio evolution, b -
The maximum lipase production could be the lipase and the command evolution
obtained in two ways (Montesinos et al., 1993):
- keeping the extracellular substrate (S1 ) to a
certain level (Selisteanu, 1999); 6. CONCLUSIONS
- keeping the S 1 /X ratio to a constant value,
which depends on the model parameters. GPC structure offers good results in both cases
For the above mentioned values of the presented in the paper: a biomass production
process parameters, the optimal value of the process and a lipase production one. Comparing
S 1 /X ratio is 0.15. to IMC structure, this method offers two
advantages: the neural inverting operation of the
The second variant has been adopted, where process model is eliminated and there are
GPC algorithm controls the S 1 /X ratio. The various possibilities to adjust the control law
control strategy is illustrated in Figure 18 (N2 =8, properties, in order to satisfy the requirements of
Nu =2, λ=0.5 and δ=1). At the beginning, the the control feasibility.
process works in open loop, with D=0. The
biomass in the bioreactor growths on the behalf GPC structure with discrete command leads also
of the initial substrate. When S 1 /X becomes to good results. In this case a searching
smaller then 0.15, the system switches to closed- procedure for the optimal discrete command is
loop control. The controller becomes active and used. This procedure could lead to a large
controls the S 1 /X ratio, to the setpoint value 0.15. computing time, so the control horizon should
After 22 hours, when X increases over 8 g/l, the be limited (Nu ≤ 2).
process is stopped.
REFERENCES
In Figure 18 one can observe the two
functioning regimes of the bioreactor: Aoyama, A., Venkatsubramanian, V., (1995).
- open-loop (0<t<14h); Inter-nal Model Control Framework Using
- closed-loop (14h<t<22h). In this case, the Neural Networks for the Modeling and
system works in tracking regime as the Control of a Bioreactor. Engng. Applic.
output variable X(t) tracks the variable Artif. Intell., Vol. 8, No. 6, pp. 689-701,
setpoint X* (t)=S 1 (t)/0.15. Elsevier Science Ltd., Great Britain.
Bastin, G. and D. Dochain (1990). On-line European Control Conference, Grenoble,
Estima-tion and Adaptive Control of France, pp. 1753 - 1758.
Bioreactors, pp. 375, Elsevier. Garcia, C., E. and Morari, M., (1982). Internal
Bhat, N. and Mcvoy, T., J. (1991). Use of Model Control. A Unifying Review and
Neural Nets for Dynamic Modeling and Some New Results. Ind. Engng. Chem.
Control of Chemical Process System. Process Des. Dev. 25, 403-411.
AIChE J. 37, 1065-1081. Montesinos, J., L., Campmajo, C., Iza, J.,
Camacho, E., F., Bordons, C., (1999). Model Valero, F., Lafuente, J., and Sola, V.,
Predictive Control, Springer-Verlag, (1993). Software Development to
London. Fermentation Gas Analysis Using Gas
Clarke, D., W. and Mohtadi, C., (1989) Spectrometer. Biotechnology techniques,
Properties of Generalized Predictive Vol. 7, pp. 429-434.
Control. Automatica, 25 (vol. 6), 859-875. Selisteanu D., (1999). Automatic Control of the
De Keyser, R., (1991). Basic Principles of Enzymatic Bioreactor, PhD Thesis,
Model Based Predictive Control, Proc. of University of Craiova, Romania, pp. 65 -
68, 161 - 164.

You might also like