You are on page 1of 6

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/334236564

Deep MLP neural network control of bioreactor

Conference Paper · March 2019


DOI: 10.1109/IREC.2019.8754572

CITATIONS READS

0 21

2 authors:

Latifa Belhaj Salah Fathi Fourati


Ecole Nationale d'Ingénieurs de Sfax Institut Préparatoire aux Etudes d'Ingénieurs de Sfax
4 PUBLICATIONS   0 CITATIONS    23 PUBLICATIONS   137 CITATIONS   

SEE PROFILE SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Deep MLP for systems modeling View project

All content following this page was uploaded by Fathi Fourati on 17 August 2019.

The user has requested enhancement of the downloaded file.


The 10th International Renewable Energy Congress (IREC 2019)

Deep neural control of bioreactor


Latifa Belhaj Salah Fathi Fourati
National engineering school Sfax Preparatory Institute of Engineers of Sfax
Tunisia Tunisia
Latifa.belhadjsalah@enis.tn Fethi.Fourati@ipeis.rnu.tn

Abstract— The paper deals with control of a bioreactor using In this paper, we train in deep learning mode a feed-forward
deep learning feed-forward neural networks. In this work neural network to control a bioreactor for wastewater
different multilayer perceptron (MLP) structures have been treatment. The goal of this work is to improve the
trained to emulate the inverse dynamics of the bioreactor and performance of the considered bioprocess.
then used as neural controllers to achieve neural control The paper is organized as follows: In section 2, we present
strategies of the considered bioreactor. Simulation results show
the considered bioreactor. In section 3, we describe the used
that a feed-forward neural network with an input layer, two
hidden layers and an output layer gives improved neural controller. In section 4, we show the bioreactor control
performances. strategy. In section 5 we present the simulation results.
Finally, in section 6, we give a conclusion.
Keywords— Bioreactor, MLP neural network, deep learning,
neural modeling, neural control.
II. BIOREACTOR MODEL
The considered model of bioreactor is continuous one. It is
I. INTRODUCTION
characterized by a constant volume where the biological
Biological treatment of wastewater is the process that allows reaction concerns a biomass X and a substrate S. The
the degradation of pollutants through the action of dynamic model is defined by the following equations [9 and
microorganisms. It is an important process to protect the 10]:
environment.
Bioreactors give biological solutions to solve such problems. 𝜇(𝑆) 𝑄
In fact, to reduce and eliminate polluting loads, bioreactors 𝑆̇ = − 𝑋 + (𝑆𝑖𝑛 − 𝑆)
{ 𝑌 𝑉
for wastewater treatment are part of the reintroduction and 𝑄
the reuse of treated water into the environment. 𝑋̇ = 𝜇(𝑆)𝑋 − 𝑋 .
𝑉
A bioreactor is a system containing organic waste dissolved (1)
in water, reduced and digested by bacteria. It is considered as
a complex system whose modeling and control are difficult In all phases, the volume V is perfectly homogenous in which
tasks. a microbiological reaction occurs where biomass X grow on
Several intelligent techniques especially neural network a substrate S which is converted into a product P.
approaches have been used to solve this kind of problems. 𝑆𝑖𝑛 is the input substrate concentration (in mg/l)
Neural networks are a very interesting alternative to classical 𝑆
𝜇(𝑆) = 𝜇𝑚𝑎𝑥 presents the reaction speed.
modeling and control techniques thanks to their ability to 𝑆+𝐾𝑠
approximate non-linear relationships without prior Y is the conversion coefficient.
knowledge of the model structure [14 and15]. 𝑄 is the flow input and the flow output of the bioreactor.
𝑄
In [14] for controlling a bioreactor, authors propose to use the 𝐷 = 𝑈 = ∈ [0, 𝐷𝑚𝑎𝑥] presents the dilution rate that we
𝑉
adaptive command to adjust certain parameters to maintain defined here as the control input [9 and 10].
the process performance when the model parameters change.
In [7] authors propose to use the feedback linearization
method based on a non-linear autoregressive neural network III. NEURAL CONTROLLER
(Narma-L2) to control a bioreactor. The simulation results
prove the effectiveness of this command compared to the Neural networks are characterized by their ability to learn
inverse neural control. automatically nonlinear input-output relationships from data.
In [16 and 17], to treat cheese whey wastewater, the authors They have been successfully applied to the identification,
propose the use of membrane bioreactors, which are a modeling and control of dynamic systems [1, 2, 3, 4, 5 and
combination of activated sludge units and membrane 6].
filtration for biomass retention. The deep multilayer feed forward neural network with an
In [18] authors prove the performance of a nonlinear adaptive input layer, an output layer, and n hidden layer has the ability
controller for the wastewater treatment plant. to take with the non-linearity of the process to control the
The 10th International Renewable Energy Congress (IREC 2019)
bioreactor. It can be used as solution to control such system Here, the input I(k) vector of the controller is :
[8, 12 and 13].
I(k)=(Y(k+1) Y(k))T=(S(k+1) S(k) X(k+1) X(k))T
A. Neural controller structure
Figure 1 present the architecture of a multilayer feed forward The output vector O(k) (control law) is:
neural network [3, 8 and 12].
O(k)=U(k)=D(k)
C. learning algorithm
The neural network is formed in order to minimize the
quadratic error criterion E(k) (2) between the input bioreactor
U(k) and the output estimated by the neural network Û(k).
1
̂(𝑘))2
𝐸(𝑘) = (𝑈(𝑘) − 𝑈 (2)
2

The neural network is governed by the following equations:


𝑛
Fig. 1. Architecture of a multilayer feed-forward neural network 𝐼𝑖1 (𝑘) = ∑𝑙=1
𝐼 𝐼
𝑤𝑙,𝑖 (𝑘 − 1)𝐼𝑙 (𝑘) (3)

The previous neural network is composed with an input layer, 𝐼𝐼11 (𝑘) = 𝑓(𝐼𝑖1 ) (4)
n hidden layer, and an output layer. The activation function
𝑛 2
of the hidden and the output units is the sigmoidal one. 𝐼𝑖𝑖2 (𝑘) = ∑𝑖=1
ℎ 𝐼
𝑤𝑖,𝑖𝑖 (𝑘 − 1)𝐼𝑖11 (𝑘) (5)
𝐼𝑙 (𝑘) presents the l th input unit of the network and 𝑂𝑚 (𝑘) is
the m th network output. 𝐼𝑖1 (𝑘) presents the input of the i th 𝐼𝑖𝑖22 (𝑘) = 𝑓(𝐼𝑖𝑖2 (𝑘)) (6)
first hidden layer unit. 𝐼𝑖11 (𝑘) is the output of the i th first
hidden layer unit. 𝐼𝑖𝑖2 (𝑘) is the input of the ii th second hidden 𝑛
𝐼𝑖..𝑖𝑖
𝑛ℎ
𝑛−1
(𝑘) = ∑𝑖..𝑖=1 𝐼 𝑛
𝑤𝑖..𝑖,𝑖..𝑖𝑖
(𝑛−1)(𝑛−1)
(𝑘 − 1)𝐼𝑖..𝑖 (𝑘) (7)
layer unit. 𝐼𝑖𝑖22 (𝑘) presents the total output of the ii th second
𝑛−1
hidden layer unit.. 𝐼𝑖..𝑖 (𝑘) presents the input of the i..i th 𝑛𝑛 𝑛
(𝑛−1)(𝑛−1)
𝐼𝑖..𝑖𝑖 (𝑘) = 𝑓(𝐼𝑖..𝑖𝑖 (𝑘)) (8)
(n-1th) hidden layer unit. 𝐼𝑖..𝑖 (𝑘) is the output of the
𝑛
i..i th (n-1th) hidden layer unit. 𝐼𝑖..𝑖𝑖 (𝑘) is the input of i..ii th 𝑠 (𝑘)
𝐼𝑚 𝑛
= ∑𝑖..𝑖𝑖=1
𝑛ℎ
𝑂
𝑤𝑖..𝑖𝑖,𝑚 𝑛𝑛
(𝑘 − 1)𝐼𝑖..𝑖𝑖 (𝑘) (9)
𝑛𝑛
(n th) hidden layer unit. 𝐼𝑖..𝑖𝑖 (𝑘) presents The output of the
𝑠 (𝑘)
i..ii th (n th) hidden layer unit. 𝐼𝑚 presents the input of 𝑠
𝑂𝑚 (𝑘) = 𝑓(𝐼𝑚 ) (10)
the m th output layer unit.
𝑂 𝐼 𝐼2 𝐼𝑛
𝑤𝑖..𝑖𝑖,𝑚 (. ), 𝑤𝑙,𝑖 (. ), 𝑤𝑖,𝑖𝑖 (. ), 𝑤𝑖..𝑖,𝑖..𝑖𝑖 (. ) are the weights of the Where 𝑛ℎ , 𝑛𝐼 , 𝑛ℎ1 , 𝑛ℎ𝑛−1 , 𝑛ℎ𝑛 present the number of units
links, respectively between, the i..ii th (n th) hidden layer and respectively in the first hidden layer, the input layer, the
the output layer, the input layer and the first hidden layer, , second hidden layer, the (n-1)th hidden layer, the nth hidden
the first hidden layer and the second hidden layer, and the (n- layer.
1) th hidden layer and the n th hidden layer.
B. Neural controller training f is a sigmoidal function :
The Training structure used is similar to an offline learning 1
to reproduce the inverse dynamics of the process. Figure 2 𝑓(𝑥) = (11)
1+𝑒 −𝑥
shows the training method of the neural controller.
The learning step consists of adjusting the connection
weights using the back propagation algorithm minimizing
criterion (2) by the gradient method.

𝑤(𝑡) = 𝑤(𝑡 − 1) + ∆𝑤 (12)

and

𝜕𝐸𝑘
∆𝑤 = −𝜀 (13)
𝜕𝑤

Where 𝜀 is the learning rate.

Fig. 2. Training structure of the controller.


The 10th International Renewable Energy Congress (IREC 2019)

IV. BIOREACTOR CONTROL STRATEGY

After the training step, the neural controller is able to give the
control action U (k) to the system. The control structure of
the bioreactor is constituted by the considered neural network
which is placed in cascade with the bioreactor.
Figure 3 presents the bioreactor neural control bloc diagram.

Fig. 5. Evolution of the control action of the bioreactor.

Here

Et = 3.0872

The evolution of the bioreactor output and the control action


Fig. 3. Bioreactor neural control bloc diagram. using a neural controller with two hidden layer are given in
Figure 6 and Figure 7 respectively.
V. SIMULATION RESULTS

We consider three neural network structures, network


constituted with one single hidden layer, network with two
hidden layers and network with three hidden layers.
In order to compare the neural control strategy using different
neural controller structures we consider the performance
error criterion (14):
1

400
Et  k 1
( S ref  S (k )) 2 (14)
400
The evolution of the bioreactor output and the control action
using a neural controller with one hidden layer are given in
Figure 4 and Figure 5 respectively.

Fig. 6. Evolution of the bioreactor substrate output.

Fig. 4. Evolution of The bioreactor substrate output.


The 10th International Renewable Energy Congress (IREC 2019)

Fig. 9. Evolution of the control action of the bioreactor.


Fig. 7. Evolution of the control action of the bioreactor
Here
Et= 3.5767
Here
Et =2.0818 From the previous results, we remark that the error criterion
is lower in the case of the neural controller constituted with
The evolution of the bioreactor output and the control action two hidden layer.
using a neural controller with three hidden layer are given in
Figure 8 and Figure 9 respectively.
VI. CONCLUSION
In this work we have achieved a bioreactor control using a
feed-forward neural network that is a multilayer perceptron
(MLP) type, in deep learning mode. Simulation results show
that a neural network structure with two hidden layers gives
better performances for the bioreactor. In fact, the chosen
performance error criterion Et presents a smaller value and
the bioreactor output seems more stable in this case. In the
future we hope to achieve an adaptive deep neural control to
improve the bioreactor performances.

References
[1] K. Hornik, M. Stinchcombe and H. White, Multilayer feedforward
networks are universal approximators, Neural Networks, vol.2, pp.359-
366, 1989.
[2] K. S. Narendra, and S. Mukhopadhyay, Adaptive Control Using
Neural Networks and Approximate Models, IEEE Transactions on
Neural Networks, vol.8, pp.475-485, 1997.
[3] K.J. Hunt, D. Sbarbaro, R. Zbikowski and P.J.Gawthrop, Neural
Fig. 8. Evolution of the bioreactor substrate output. Networks for Control System - A Survey, Automatica, vol.28,
pp.1083-1112, 1992.
[4] D. Psaltis, A. Sideris and A. A. Yamamura, A multilayer neural
network controller, IEEE Control Systems Magazine, vol. 8, pp.17-21,
1988.
[5] W. Li and J.J.E. Slotine, Neural network control of unknown
nonlinear systems, American Control Conference, Pittsburgh, vol.2,
pp.1136-1141, 1989.
[6] F. Fourati, S. Baklouti, H. Moalla and M. Chtourou, Control of a
bioreactor for wastewater treatment, International Journal of Research
and Reviews in Soft and Intelligent Computing , vol.1, pp.2046-6412,
2011.
[7] D. Dochain, J.P. Babary, and N. Tali-Maamar. Modelling and adaptive
control of nonlinear distributed parameter bioreactors via orthogonal
collocation. Automatica, vol.28, pp.873–883, 1992.
The 10th International Renewable Energy Congress (IREC 2019)
[8] D.T. Pham, X. Liu, Neural Networks for Identification, Prediction and [14] Zhao H, Hao OJ, McAvoyTJ.Approaches to modelling nutrient
Control, Springer, London, 1995. dynamics:ASM2, simplified model and neural nets. Water Sci Technol
[9] M. A. Henson and D. E. Seborg, Adaptive nonlinear control for pH vol.39, pp.227–234, 1999.
neutralization process, IEEE Transactions on Control Systems [15] Yu DL, Gomm JB. Implementation of neural network predictive
technology, vol.2, pp.169 -182, 1994. control to a multivariable chemical reactor. Control Eng Pract vol.11,
[10] G.P. Reddy, V. R. Kumar and B. Spandana , Pseudo dynamic model pp.1315–1323, 2003.
reference nonlinear control of a continuous bioreactor with input [16] Hasar, H., Kinaci, C., Empirical model representing microbial activity
multiplicities. IMECS 2009, March 18-20, Hong Kong. in a submerged MBR treating strengh wastewater. Desalination
[11] J. Harmand, Contribution à l'analyse et au contrôle des systèmes vol.170, pp.161-167, 2004.
biologiques application aux bioprocédés de dépollution. Habilitation à [17] Pavlova, K., Simova, E., Beshkova,D., Tamamdjiev, A., Frengova, G.,
diriger des recherches, Université de C. Bernard, 2004, Lyon. Grigorova, D., Bioconversion of the lactose in whey ultrafiltrate by
[12] D. Psaltis, A. Sideris, A.A. Yamamura, A multilayer neural network cultivation of kluyveromyces marxianus var lactis MC5, Biotechnol.
controller, IEEE Control Systems Magazine vol.8, pp.17–21, 1988. Equipment vol.9, pp.33-42, 1995.
[13] T. Zhang and M. Guay. Adaptive nonlinear observers of microbial [18] L.Mailleret, O.Bernard, J.Steyer, Nonlinear adaptive control for
growth processes. Journal of Process Control, vol.12, pp.633–643, bioreactors with unknown kinetics, Automatica vol.40, pp.1379 –
2002. 1385, 2004.

View publication stats

You might also like