Sie sind auf Seite 1von 7

IJCSES International Journal of Computer Sciences and Engineering Systems, Vol. 5, No.

4, October 2011
CSES International © 2011 ISSN 0973-4406

Adaptive Direct Inverse Neural Network Control for


Nonlinear System
Ayachi ERRACHDI1, Ihsen SAAD2 and Mohamed BENREJEB3
University of El Manar, Tunis, Tunisia
LARA Automatique, ENIT, BP 37, Le Belvédère, Tunis 1002, Tunisia
1
errachdi_ayachi@yahoo.fr; 2ihsen.saad@enit.rnu.tn; 3mohamed.benrejeb@enit.rnu.tn

Abstract: In this paper is proposed an on-line method for Direct Inverse Control (DIC) based on Neural Network (NN) for
nonlinear system. The corresponding algorithm uses a variable learning rate. The proposed method is dependent on the
availability of the inverse model of the system. This obtained on-line inverse model will be used as a controller. This latter is
used in series with the process. The robustness of the proposed inverse model neural network control strategy is investigated
in the case of noisy nonlinear system. From the experiments, it is showing that the performance of the on-line DIC is much
better than the off-line DIC. Two different reference command signals are used to test the control system performance, and
it is noted that an excellent tracking response is exhibited in the presence of disturbance.
Keywords: Nonlinear systems, neural network, variable learning rate, model inversion, direct inverse control.

1. INTRODUCTION conventional controllers, thus in these papers [1]-


In recent years, there has been a significant increase [27] the DIC is used in off-line system control.
in the number of control system techniques that are Indeed, two steps are applied. The first step is to
based on nonlinear concepts. However, most of prepare the inverse model in an off-line phase. The
these control system depend heavily on the exact second step is to use the obtained inverse model
knowledge of the system’s dynamic model [1]. One in system control strategy. Nevertheless, when the
such method is the neural network control which reference command signal change suddenly or
well applied since the 80s [2]. Neural networks have when the system is very complex, the inverse
the advantages to learn sufficiently accurate models model can’t help the system control to find the
[3-8] and provide good nonlinear control when suitable control law. In consequence, this strategy
model equations are not known or only partial state is lack of robustness. Therefore, the aim of this
information is available [9]. In process control paper is to apply an adaptive strategy of system
applications, NN can be incorporated in the control control based on model inversion. Indeed, in this
strategy via either the direct or indirect methods paper an on-line inverse model is proposed. This
[1]. In the direct method that is proposed in this inverse model is based on neural network using
paper, a NN is trained to represent the on-line variable learning rate η. The obtained inverse
inverse dynamics of the system. model is used on-line in series with process. The
robustness of the proposed control strategy is
In different fields, such as the steel pickling investigated in the case of noisy nonlinear system.
process [1], the continuous stirred reactor [9]-[14], From the experiments, it is showing that the
the magneto rheological damper [15], the twin rotor performance of the on-line DIC is much better than
[16], the induction motor [17], the robot manipulator the off-line DIC.
[18], the discrete and continuous nonlinear systems
[19]-[25], the gas diffusion [26] and the power The paper is organized as follows. In second
tracking for wind energy [27], the DIC is applied. section, the presentation of the on-line method to
find an inverse model using neural network is
Due to the highly nonlinear dynamic behavior detailed. The procedure for obtaining an on-line
of some system, it is so difficult to control by direct inverse control is developed in the third
Manuscript received August 25, 2011
section. Examples are provided in section 4, and
Manuscript revised December 15, 2011 conclusions are given in section 5.
290 IJCSES International Journal of Computer Sciences and Engineering Systems, Vol. 5, No. 4, October 2011

2. ON-LINE NEURAL INVERSE MODEL


uˆ ( k ) = λs  zlT S( Wx ) (5)
On the basis of the input and output relation of a
Network learning or training is the process of
system, the above nonlinear system can be
weighting adjustment based on the input/output
expressed by a NARMA (Nonlinear Auto-
data. Training algorithms are generally based on
Regressive Moving Average) model [28], that is
the minimization of an error function that is the
given by the following form:
function of the vector of weights to be adjusted.
y( k + 1) = f ( y( k ),..., y( k − N y + 1), u( k ),..., u( k − N u + 1)) (1) Generally, these algorithms include the Gauss
where f is a nonlinear mapping, u(k) and y(k) are Newton based Levenberg Marquardt method [29],
the input and output vector, Nu and Ny are the the recursive estimation method, the gradient
maximum input and output lags, respectively. descent algorithm and the least-squares algorithm.

Generally, it is difficult to determine an inverse In this work, Descent Gradient (DG) method, a
model for a complex nonlinear system using version of the back propagation algorithm is used
conventional methods. Recently, the artificial neural for training the NN. The objective of this algorithm
network [1]-[27] has been effectively applied to find is to minimize the sum of the squares of the errors
the inverse model of complex systems because of Jmi.
its great learning and creation functions. In this 1 N 1 N
section, the structure of neural inverse model is J mi = ∑
2 k =0
( emi ( k ))2 = ∑ (u( k ) − uˆ ( k ))2
2 k =0 (6)
studied and showed in figure 1.
The derivative of (Jmi) with respect zl and wlj
The network is fed with past inputs, past
gives the equation for updating the synaptic
outputs and present outputs. The network then
weights of inverse model:
predicts the controller output u(k). The final
network representation of the inverse model is zl ( k ) = zl ( k − 1) + ηλs '( hl )S( Wx )emi ( k )
given by: (7)
wlj ( k ) = wlj ( k − 1) + ηλs '( hl )S '( Wx )zl xT emi ( k )
−1
u( k ) = f ( y ( k + 1),..., y ( k − N y ), u( k − 1),..., u( k − N u ))
(2)
The Recurrent Neural Network (RNN) used in
the nonlinear system identification and control is a
multilayer neural network with tapped delay lines
of both input and output. The delay elements are
used to introduce delayed inputs and outputs that
are then fed to a static network as the regressor
vector so that the predicted RNN out will follow
the target output.
The output of the lth node, of the hidden layer,
is given by the following equation, l = 1,..., N1:

 N0 
s( hl ) = s  ∑ wlj x j  (3)
 j =1 
Figure 1: Inverse Neural Network Model
The output of the inverse neural network model
uˆ ( k ) is given by the following equation.
2.1. The Proposed Algorithm
 N1  N0   The DIC is well applied in off-line control [1]-[27].
uˆ ( k ) = λs  ∑ s  ∑ wlj x j  zl  Nevertheless, these kinds of strategies control prove
 l=1 j =1 
    its ineffectiveness and its inability when the system
 N1  (4) parameters unknown or change suddenly. To ovoid
= λs  ∑ s( hl )zl  this problem, an on-line control algorithm is
 l=1 
proposed. Indeed, to find the parameters of the
or in the compact form: inverse RNN model in each moment two steps are
Adaptive Direct Inverse Neural Network Control for Nonlinear System 291

called. The first step is to find the initialization by application of the method of [32]
parameters in off-line learning step using M ∆u( k + 1)  ∆uˆ ( k + 1) then we obtained :
observations (M<<N).
The second step is to find the inverse parameters ∆emi ( k + 1)  −∆uˆ ( k + 1) = −λ∆s( hl ) = −ηρ( k )emi ( k ) (11)
model at time (k + 1) when a new input/output data
with
(u (k+1), y (k+1)) has received. In this step, the gap
( k + 1)
emi = u( k + 1) − uˆ ( k + 1) between the actual input u(k+1) ρ( k ) = λ 2 s '2 ( hl ) ST ( Wx )S( Wx ) + zlT S '( Wx )S( Wx )zl x T x  (12)

and the estimated one uˆ ( k + 1) is evaluated. If this gap from where :


is higher than the given threshold (ε) a new other emi ( k + 1) = [1 − ηρ( k )] emi ( k ) (13)
data is received else an update of the synaptic is
necessary. To ensure convergence, i.e., lim emi ( k ) = 0 , it is
k →∞

necessary that emi ( k ) < 1 is satisfied. This condition


Algorithm
proves that 0 < η < 2ρ−1 ( k ) and is necessary to have
Step 1: Initialization: a variable learning rate. The fastest training occurs
For M observations (M<<N), an inverse RNN model when the learning is η( k ) = ρ−1 ( k ) .
given by:
The obtained learning rate is variable because
uˆ ( k ) = λs  ZlT S( Wx ) (8) ρ(k) depends on the neural input vector x, depends
Step 2: Structure: on wlj and depends on zl.

At time instant (k+1), is introduced a new data 3. DIRECT INVERSE CONTROL FOR
(u(k+1)
, y
), if e < ε is satisfied then the model
(k+1) ( k + 1) NONLINEAR SYSTEM
mi

approaches sufficiently the inverse of the This type of control system is the most classic ones
dynamic nonlinear system, else the update of the in the field of non adaptive neural control [33], but
synaptic weights is necessary. This type of its performance rely heavily on the accuracy of the
algorithm is applied with success in on-line direct model used for the design of the controller. The
model [30]. figure 2 presents the direct inverse neural network
control. r(k+1) is the reference signal and uˆ ( k ) is the
2.2. Error Analysis control signal. Nû and Ny are respectively the signal
The used learning rate (η), in all studies [1]-[27], is control delay and system output delay.
a positive constant value. Consequently is detailed The well principle of this kind of system control
that if (η) is large the learning may occur quickly is to find the inverse model in off-line step and using
but it may also become unstable. And if (η) is small, it in control strategy. But, in this paper a procedure
the learning may take a long time which slows the for obtaining an on-line DIC for nonlinear system
on-line control. In this paper, an adaptive learning which is proposed in figure 3.
rate is proposed. This algorithm was demonstrated
in off-line direct model [31, 32]. In this paper, an To let the output system follows the reference
adaptive learning rate is proposed for on-line direct signal in each moment. The control law uˆ ( k ) will
inverse neural network control. Indeed, the error be calculated and be compared to the input
between the actual input u(k) and the estimated system u (k ) . If u
( k + 1)
− uˆ ( k + 1) < ε , the output system
input uˆ ( k ) is given by the following equation. is evaluated. If the gap is higher than the threshold,
the update of the synaptic is necessary. The
∆emi ( k + 1) = ∆u( k + 1) − ∆uˆ ( k + 1) (9) proposed algorithm guaranties an adaptive control
where for nonlinear system.

∆emi ( k + 1) = emi ( k + 1) − emi ( k ) 4. EXPERIMENTAL RESULT


∆u( k + 1) = u( k + 1) − u( k ) In this section, an example with and without noise
(10)
∆uˆ ( k + 1) = uˆ ( k + 1) − uˆ ( k ) v(k) is treated to show the effectiveness of the
proposed method.
292 IJCSES International Journal of Computer Sciences and Engineering Systems, Vol. 5, No. 4, October 2011

The applied example is a nonlinear system


proposed by Narendra and Parthasarathy [34], is
given by the following equation.
y( k )y( k − 1)y ( k − 2)u( k − 1)( y ( k − 2) − 1) + u( k )
y( k + 1) = + v( k )
1 + y 2 ( k − 1) + y 2 ( k − 2)
(14)
with
u(k) = 0.325 sin(0.95k) cos(0.55k) (15)
Square (1) and sinusoidal (2) reference
command signals are used to test the control system
performance.
The figure 4 presents the on-line inverse neural
model for the nonlinear system with v(k) = 0. In the Figure 2: Inverse Direct Control
first phase of learning, a set of input-output training
data (M = 4) are used us to find the initialization
parameters of model. The obtained parameters are
used to adjust on-line the parameters of the whole
model.
In figure 5 (respectively figure 7), a correspon-
dence of the reference signal (1) (respectively the
reference signal (1)) and the plant output is noticed.
The control law (1) (respectively control law (2)) is
presented in figure 6 (respectively figure 8).
The suggested control algorithm (figure 3)
shows excellent results. The adaptation law of the
on-line DIC using neural network adjusts the
controller parameters on-line so that the plant
output tracks the reference model output (figure 5
and figure 7). In figure 5 is noticed that for the first
six seconds the plant output does not follow the
reference model. But from the seventh second we
note a correspondence between the two signals.
Figure 3: Procedure for Obtaining an On-line DIC for
From the figure 5 and 7, the developed adaptive
Nonlinear System
law guarantees the robustness and stability of all
signals in the closed loop system and ensures that
plant state tracks the state of the reference model.
In the whole design process, no constraints and
prior knowledge of the controlled plant are
required, and the stability of the convergence of the
control system can guaranteed.
The obtained inverse model, in figure 4, is
applied introducing a square reference command
signal. The output system and the reference signal
are shown in figure 5. However, the control law is
presented in figure 6.
In figure 7, another reference signals (sinusoidal
form (2)) is applied and is showing that the plant
output is follows well the sinusoidal reference
signal. The control law (2) is presented in figure 8. Figure 4: The On-line Inverse Neural Model
Adaptive Direct Inverse Neural Network Control for Nonlinear System 293

Figure 5: The Output System and the Reference Signal (1) Figure 8: The Control Law (2)

4.1. Noisy Case


In this case, v(k) ≠ 0, is a random noisy which is
added to nonlinear system given by the equation
(14). The influence of this disturbance was measured
by the Signal Noise to Ratio (SNR) which is given
by the following equation:

∑ ( y ( k ) − y )2
k =1
SNR = N
(16)
∑ ( v( k ) − v )2
k =1

where y and v are respectively the output average


value and noise average value.
In this section SNR is 10%. In figures 9 and 10,
Figure 6: The Control Law (1) the noisy system output and the two references
signals ((1) and (2)) are presented.

Figure 9: The Noisy Output System and the Reference Signal


Figure 7: The Output System and the Reference Signal (2) (1)
294 IJCSES International Journal of Computer Sciences and Engineering Systems, Vol. 5, No. 4, October 2011

Inverse Model-based Controller for the Control of a


Steel Pickling Process. Computers & Chemical
Engineering, pp. 2110-2119, 2005.
[2] J. Richalet, A. Rault, J. L. Testud and J. Papon,
Model Predictive Heuristic Control: Applications
to Industrial Processes, Automation 14(5), 413-428,
1978.
[3] Gowrishankar and P. S. Satyanarayana, “Recurrent
Neural Network Based Bit Error Rate Prediction for
802.11 Wireless Local Area Network”, IJCSES, 2(3),
2008, 171-177.
[4] M. A. M. Abdeen and H. Hodhod, Experimental
Investigation and Development of Artificial Neural
Network Model for the Properties of Locally Produced
Light Weight Aggregate Concrete. Engineering, 2010,
2, 408-419.
Figure 10:The Noisy Output System and the Reference Signal [5] M. C. Hwang, “Adaptive Neural Network Impedance
(2) Control for Robotic Manipulators Driven by Current-
Fed Induction Motors “, IJCSES, 3(2), 2009, 143-149.
In these two figures, the plant output follows [6] G. S. Uttreshwar, and A. A. Ghatol, “Hepatitis B
the reference signals ((1) and (2)) although the Disease Diagnosis Using Artificial Neural Network”,
disturbances which injected in the output of the IJCSES, 3(4), 2009, 325-333.
system. In these two examples, the results [7] Hossam Hodhod and Mostafa A. M. Abdeen,
simulation proves that the suggested algorithm is Experimental Comparative and Numerical Predictive
Studies on Strength Evaluation of Cement Types:
able to control all nonlinear system. Effect of Specimen Shape and Type of Sand.
Furthermore, the parameters of the controller Engineering, 2010, 2, 559-572.
like learning rate can be adjusted on-line with the [8] N. Tang, L. Chunxiu, and S. Zuoliang, “Artificial
other parameters. This avoids the divergence of the Neural Networks Model on the Heating Performance
developed algorithm and allows a robustness, of the Seawater Desalination Brine by Solar Energy”,
IJCSES, 4(2), 2010, 89-93.
flexibility and stability of the on-line DIC in each
time. [9] D. C. Psichogios and L. H. Ungar, Direct and Indirect
Model-based Control using Artificial Neural
Networks. Industrial and Engineering Chemistry
5. CONCLUSION Research, 30, 2564, 1991.
In many cases of direct inverse control strategies, it [10] M. A. Hussain, Review of the Applications of Neural
is ever impossible to obtain a suitable process model Networks in Chemical Process Control-simulation
due to the complexity of the underlying process and and on-line Implementation. Artificial Intelligence in
Engineering, 13, 55, 1999.
the lack of knowledge of its critical. A promising way
to overcome these problems is to use on-line inverse [11] M. A. Hussain and L. S. Kershabaem, Implementation
of Inverse-model-based Control Strategy using Neural
neural networks of the inverse process. In this
Networks on a Partially Simulated Exothermic
investigation an adaptive model inversion control Reactor. Transactions of the Institution of Chemical
approach has been developed. An accurate dynamic Engineers (Part A), 20, 1039, 2000.
model has been simulated and used as the plant and [12] M. A. Hussain, Adaptive Inverse Model Control of a
nonlinear model has been developed. Two different Continuous Fermentation Process using Neural
reference command signals (square and sinusoidal) Networks. In I. M. Mujtaba, & M. A. Hussain (Eds.),
are used to test the control system performance, and Application of Neural Networks and other Learning
it is noted that an excellent tracking response is Technologies in Process Engineering (pp. 199-216).
London: Imperial College Press, 2001.
exhibited in the presence of disturbance. Future work
is directed to extend this control design to [13] D. B. Anuradha, G. P. Reddy and J. S. N. Murthy,
Direct Inverse Neural Network Control of q
multivariable nonlinear time-varying system.
Continuous Stirred Tank Reactor (CSTR). Proceedings
of the International MultiConference of Engineers and
REFERENCES Computer Scientists, 3, 2009.
[1] W. Daosud, P. Thitiyasook, A. Arpornwichanop, P. [14] R. Suja Mani Malar and T. Thyagarajan, Artificial
Kittisupakorn and M.A. Hussain, Neural Network Neural Networks based Modeling and Control of
Adaptive Direct Inverse Neural Network Control for Nonlinear System 295

Continuous Stirred Tank Reactor. American J. of [25] G. Puscasu and V. Palade, An Improved Inverse
Engineering and Applied Sciences 2(1) : 229-235, 2009. Neural Control Structure for Nonlinear Dynamic
[15] P. Q. Xia, An Inverse Model of MR Damper using Systems. 0-7803-5682-9/99/$10.00@ IEEE 1999.
Optimal Neural Network and System Identification. [26] J. Lobato, P. Canizares, M. A. Rodrigo, C. G. Piuleac,
Journal of Sound and Vibration 266, 1009-1023, 2003. S. Curteanu and J. J. Linares, Direct and Inverse
Networks Modelling Applied to Study the Influence
[16] A. Rahideh, H. M. Shaheed and A. H. Bajodah,
of the Gas Diffusion Layer Properties on PBI-based
Adaptive Non-linear Model Inversion Control of a
PEM Fuel Cells. Int. Journal of Hydrogen Energy, pp. 1-
Twin Rotor Multi-input Multi-output System using
9, 2010.
Artificial Intelligence. J. Aerospace Engineering, JAERO
155, 343-351, 2007. [27] M. Bayat, M. Sedighizadeh and A. Rezazadeh, Wind
Energy Conversion Systems Control using Inverse
[17] J. Zilkova, J. Timko and P. Girovsky, Nonlinear Neural Model Algorithm. International Journal of
System using Neural Networks. Acta Polytenica Engineering and Applied Science (IJEAS), 2(3), 40-46, 2010.
Hungarica, 3(4), 2006.
[28] M. Korenberg, S. A. Billings, Y. P. Liu and P. J. Mcllory,
[18] Y. Gao and M. J. Er, Online Adaptive Fuzzy Neural Orthogonal Parameter Estimation Algorithm for
Identification and Control of a Class of MIMO Nonlinear Stochastic Systems. International Journal of
Nonlinear Systems. 15th Triennial World Congress, Control, 48(1), 193-210, 1988.
Barcelona, Spain, IFAC 2002. [29] M. T. Hagan and M. Menhaj, Training Feedforward
[19] G. L. Plett, Adaptive Inverse Control of Linear and Networks with Marquardt Algorithm. IEEE
Nonlinear Systems using Dynamic Neural Control Transaction on Neural Networks, 5(6): 989-993, 1994
Networks. IEEE Trans. Neural Network, 14(2): 360-376, [30] A. Errachdi, I. Saad and M. Benrejeb, On-line
2003. Identification Method Based on Dynamic Neural
[20] B. Widrow, Adaptive Inverse Control. IFAC Adaptive Network. International Review of Automatic Control,
Systems in Control and Signal Processing, Lund, Sweden, 3(5): 474-479, 2010.
1986. [31] A. Errachdi, I. Saad and M. Benrejeb, Neural
Modelling of Multivariable Nonlinear System.
[21] P. Borne, M. Benrejeb et J. Haggège, Les réseaux de
Variable Learning Rate Case. 18th Mediterranean
neurones. Présentations et applications. Editions Technip,
Conference on Control and Automation, 557-562, 2010.
2007.
[32] D. Sha and V. B. Bajic, On-line adaptive Learning Rate
[22] M. Salem, D. E. Chaouch et M. F. Khelfi, Commande BP Algorithm for MLP and Application to an
Neuronale Inverse des systèmes non linéaires. 4th Identification Problem. Journal of Applied Computer
International Conference Computer Integrated Science, 7(2), 67-82, 1999.
Manufacturing CIP’ 2007.
[33] I. Rivals, P. Léon, D. Gérard and C. Daniel, Real-time
[23] G. Debbache, A. Bennya and N. Golea, Neural Control of an Autonomous Vehicle: A Neural
Networks-based MRAC Control of Dynamic Network Approach to the Path Following Problem.
Nonlinear System. Int. J. Appl. Math. Comput. Sci., 5th International Conference on Neural Networks and
16(2): 219-232, 2006. their Applications. 1993.
[24] A. M. Denai, F. Palis and A. Zeghbib, ANFIS based [34] K. S. Narendra and K. Parthasarathy, Identification
Modelling and Control of Non-linear Systems. A and Control of Dynamical Systems using Neural
tutorial. IEEE International Conference on Systems, Man Networks. IEEE Transactions on Neural Networks, 1 (1):
and Cybernetics, 2004. 4-27, 1990.

Das könnte Ihnen auch gefallen