Lyapunov-Based Dynamic Neural Network for Adaptive Control of Complex Systems

In this paper, an adaptive neuro-control structure for complex dynamic system is proposed. A recurrent Neural Network is trained-off-line to learn the inverse dynamics of the system from the observation of the input-output data. The direct adaptive approach is performed after the training process is achieved. A Lyapunov-Base training algorithm is proposed and used to adjust on-line the network weights so that the neural model output follows the desired one. The simulation results obtained verify the effectiveness of the proposed control method.


Introduction
For several decades, the problem of adaptive control of complex dynamic systems causes the interest of automation specialists.The use of Proportional-Integral-Derivative (PID) controllers is simple to perform, that give poor performance if there are uncertainties and nonlinearities in the system to be controlled.In several references like [1][2][3], neural networks are presented as tools to solve control problems due to their ability to model systems without analyzing them theoretically and their possessions a great capacity for generalization, which gives them a good robustness to noise [4].
Several strategies of the neural adaptive control exist which we quote: direct adaptive neural control, indirect adaptive neuronal control, adaptive neural internal model control, adaptive depth control based on feedforward neural networks, robust adaptive neural control, Feedback-Linearization based neural adaptive control, adaptive neural network model based nonlinear predictive control [5][6][7][8][9][10][11][12][13].Each strategy has neural adaptive control architecture, the algorithms used during the calculation of the parameters and stability conditions.It has three types of neural adaptive control architectures.The first type of architecture consists of a neural controller and a system to be controlled.The second type of neural architecture includes a controller, a system to be controlled and his neural model.The third type of architecture is composed of a neuronal controller, one or more robustness filter, a system to be controlled and his neural model.
The adjustment of the model parameters and the con-troller is performed by neural learning algorithms that are based on the choice of the criterion to minimize, a minimization method and the theory of Lyapunov for stability and borniture of all signals existing.Several minimization methods exist which are presented: simple gradient method, gradient method with variable pitch, Newton method and Levenberg-Marquardt method [14].The contribution of this paper is to propose an adaptive Lyapunov-Based control strategy for complex dynamic system.The control structure takes advantage of Artificial Neural Network (ANN) learning and generalization capabilities to achieve accurate speed tracking and estimation.ANN-Based controllers lack stability proofs in many control structure applications and tuning them in a cascaded control structure is a difficult task to undertake.Therefore, we proposed a Lyapunov stability-Based adaptation technique as an alternative to the conventional gradient-Based and heuristic tuning methods.Thus, the stability of the proposed approach is guaranteed by Lyapunov Stability direct method unlike many computational intelligence-Based controllers.
The different sections of this paper are organized as follows: in Section 2, we present the considered recurrent neural network and the proposed Lyapunov learning algorithm used for updating the weight parameters of the model system.
The proposed adaptive control approach training while a Lyapunov Stability-Based adaptation algorithm is detailed in Section 3. Numerical results are reported and discussed in Section 4, and a conclusion is drawn in Section 5.

Neural Network Modeling Approach
Neural network modeling of a system from samples affected by noise usually requires three steps.The first step is the choice of neural network architecture, that is to say, the number of neurons in the input layer which is a function of past values of the input and output, the number of hidden neurons, the number of neurons in the output layer neurons and the organization of them.The work [15,16] show that every continuous function can be approximated by a neural network with three layers, the activation functions of neurons are respectively the sigmoid function for hidden layer neurons and linear function for neurons in the output layer.There are two types of architectures of multilayer neural networks: neural networks, non-curly (static networks) and neural networks curly or recurrent (dynamic networks).Neural networks are non curly most used in the identification and control systems [17].They may not be powerful enough to model complex dynamic systems with respect to neural networks curly.Different types of recurrent neural networks have been proposed and have been successfully applied in many fields [18][19][20][21][22][23][24][25].The structure of fully connected recurrent neural networks which was proposed by Williams and Zipser [26], is most often used [27,28] because of its generality.The second step is learning or in other words, estimating the parameters of the network from examples of input-output system identification.The methods of learning are numerous and depend on several factors, including the choice of error function, the initialization of weights, and the selection of the learning algorithm and the stopping criteria of learning.Learning strategies were presented in several research works that we cite [29][30][31].The third step is the validation of the neural network obtained using the testing criteria for measuring performance.Most of these tests require a data set that was not used in learning.Such a test set or validation should, if possible, cover the same range of operation given that all learning.

Architecture of the Recurrent Neural Network
In this work, we consider a recurrent neural network (Figure 1) for identification of complex dynamic systems to a single input and single output.The architecture of these networks is composed of two parts: a linear model the linear behavior of the system and a non-linear approach to nonlinear dynamics.where: is the output of the neural network at time , k and y are respectively the input and output system to identify,  

ctions of neurons,
h the number of neurons in the hidden layer respectively of the model and controller, n The coefficients of the vector of parameters of the neural model are decomposed into 7 groups, formed respectively by: the weights between neurons in the input layer and neurons in the hidden layer,  the bias of neurons in the hidden layer, the weights between neurons in the hidden layer neurons and output layer, the weights between neurons in the hidden layer, The vector of parameters of the neural model is de-fined as: The output of neural model is given by: such as: The neural model of the system can be expressed by the following expression:

Proposed Lyapunov-Base Learning Algorithms
Several Lyapunov stability-based ANN learning techniques are also proposed to insure the ANNs' convergence and stability [32,33].In this section we present three learning procedures of neural network.Theorem 1.The learning procedure of a neural network can be given by the following equation: such as: is the Euclidean norm.

Proof:
Considering the following quadratic criterion: The learning procedure is to adjust the coefficients of the neural networks considered by minimizing the criterion   r J k ; it is necessary to solve the equation: therefore: According to reference [34], the difference in error due to learning can be calculated by: The term

 
e k  is then written as follows: e k e k e k e k w k w k Therefore: The parameters (20)  ,  ,  are chosen so that the neural model of the system must be stable.In our case, the stability analysis is based on the famous Lyapunov approach [35].It is well known that the purpose of identification is to have a zero gap between the output of the system and that of the neural model.Three Lyapunov candidate functions are proposed: The first candidate Lyapunov function is defined by: The function satisfies the following conditions: The neural model is stable in the sense of Lyapunov if or simply .
The term is given by the following equation: From Equation (22), may be as follows: From the above equations, we obtain: like: The proposed neural model is stable in the sense of Lyapunov if and only if: noting that: Therefore, we will have: The stability condition becomes: The second candidate Lyapunov function is: Copyright Given that: Using Equations ( 19) and (20), the above relation becomes: ) Then the second stability condition is: The third and last candidate Lyapunov function is: The term is as follows: The third stability condition is: therefore: To meet the three conditions of stability of Lyapunov candidate functions proposed parameters  ,  and  must verify: then: The parameters of the neural network can be adjusted using the following equation: ( )

Proof:
Using the following Lyapunov function: The learning procedure of the neural network is stable if: Using the above equation, we can write: such as 0 r  therefore: For Equation ( 45) has a unique solution requires that: then: The term can be written as follows: For a very small variation, we can write Equation ( 48): therefore: The updating of the neural network parameters can be made by the following equation: From Equations ( 14) and ( 41), we can write: ( ) The choice of initial synaptic weights and biases can affect the speed of convergence of the learning algorithm of the neural network [36][37][38][39][40][41][42][43][44][45][46][47].According to [48], the weights can be initialized by a random number generator with a uniform distribution between   and  or a For weights with uniform distribution: For weight with a normal distribution: where: 2.29 s 

Organizational of the Learning Algorithm of Neural Model
The proposed Lyapunov-Based used to training dynamic model of the system is presented by the flowchart in Fig- ure 2, reads as follows: Step 1: We fix the desired square error 0  , the parameters , the number of samples , the maximum number of iterations itr , the number of neurons in the first hidden layer .
 , , , The weights are initialized by a random number generator with a normal distribution between   and  . where: Initialize: -the output of the neural network -the vector of outputs of the hidden layer: -the vector potentials of neurons in the hidden layer: -the input vector of the neural network: Step 2: initialize: Step 3: and the desired value for output   y k .

Step 4:
Calculate the output of the neural network   ˆ, y i k .
Step 5: Calculate the difference between the system output and the model   , e i k .
Step 6: Calculate the square error   , r J i k .
Step 7: Adjust the vector of network parameters   , w i k using one of the three following relations: 1, 1, Step 8: Otherwise, increment i and return to Step 4.
Step 9: Save: -the weights of the network at time : Calculating the difference between the system output and the model   -the output of the neural network: -the vector of outputs of the hidden layer: -the vector potentials of neurons in the hidden layer: Step 10: Otherwise, increment and return to Step 2. k Step 11: Stop learning.The flowchart of this algorithm is given in Figure 2.

Validation Tests of the Neuronal Model
The neuronal model obtained from the estimation of its parameters is valid strictly used for the experiment.So check it is compatible with other forms of input in order to properly represent the system operation to identify.Most static tests of model validation are based on the criterion of Nash, on the auto-correlation of residuals, based on cross-correlation between residues and other inputs to the system.According to [49], the Nash criterion is given by the following equation: N is the number of samples.In [50][51][52], the correlation functions are: -autocorrelation function of residuals: -crosscorrelation function between the residuals and the previous entries: Ideally, if the model is validated, the results of correlation tests and the Nash criterion following results: Typically, we verify that and the functions    with a confidence interval 95%, that is to say that:

Adaptive Control of Complex Dynamic Systems
In this section, we propose a structure of neural adaptive control of a complex dynamic system and three learning algorithms of a neuronal controller.

Structure of the Proposed Adaptive Control
In this work, the architecture of the proposed adaptive control is given in Figure 3.
The considered neural network is first trained off-line to learn the inverse dynamics of the considered system from the input-output data.The model following adaptive control approach is performed after the training process is achieved.The proposed Lyapunov-Base training algorithm is used to adjust the considered neural network weights so that the neural model output follows the desired one.

Learning Algorithms of Neural Controller
Three learning algorithms of the neural controller are proposed.
Theorem 4. Learning the neuronal controller may be effected by the following equation: with: r is the reference signal., , , are the weight of the neuronal controller.

Proof:
The control system consists of using an optimization digital non-linear algorithm to minimize the following criterion: with: The minimum of criterion The solution of Equation ( 88) calculates the weight of the neuronal controller as follows: The term defined by: Using the above equations, the relationship giving the vector   J k can be written as follows: (92) It is necessary to check the stability of this procedure to adjust the weight of the correction before applying.In this According to Equation (32), the term is written as follows:   V k  case, the candidate Lyapunov function may be as follows: For the procedure to adjust the parameters of the controller is stable, it must: The second condition for stability is obtained by the following Lyapunov function: then: From the Equation ( 35), we can write: The learning algorithm parameters of the controller are stable if: Using the following Lyapunov function: The adjustment procedure is stable if the parameters: Lyapunov-Based Dynamic Neural Network for Adaptive Control of Complex Systems 236 The third stability condition is: Assuming: Therefore: The fourth condition for stability is obtained by the following Lyapunov function: The term is as follows: For the learning algorithm is stable, it must: therefore: According to Equations ( 96), ( 105) and (109), we can write: The stability conditions can be so: The term is calculated by the following equations: Theorem 5.The procedure for adjusting the parameters of neuronal controller can be described by the following equation: Proof: From the following Lyapunov function: 116) The procedure for adjusting the parameters of the neuronal controller is stable if: such as: 1 Equation (117) becomes: If the above equation has a unique solution, the term is as follows: The equation for adjusting the parameters of the neuronal controller can be written: (121) Theorem 6.The procedure for adjusting controller parameters can be made by the following equation:

Proof:
Using the Equation (121), we may write: Flowchart of the learning algorithm of the neural controller Once the modeling phase is completed, the calculation of parameters of neuronal controller is carried through the following steps: Step 1: We fix the desired square error 0  , the parameters , the number of samples N, the maximum number of iterations , the number of neurons in the hidden layer .
 , , , where: with: Step 2: Step 3: Consider an input vector of the network and the reference signal . ) Step 4: Calculate the output of the neuronal controller Step 5: Calculate the output of the neural model   ˆ, y i k .

Step 6:
Calculating the difference between the reference signal and the output of neural model .

 
, Step 8: Adjust the vector of network parameters   , wc i k using one of the three following relations: Initialize the number of neurons in the hidden layer Step 9: Otherwise, increment i and return to Step 4.
Step 10: Save: -the weights of the network at time : -the output of the neuronal controller: -the vector of outputs of the hidden layer: -the vector potentials of neurons in the hidden layer: Step

Numerical Results and Discussion
Let consider the nonlinear system described by the following equation of state: Calculation of the release of neuronal controller       Table 3.Values of the Nash criterion of candidate neural models using Theorem 3 (α = 0.7).a random signal of zero mean and variance 1.

Neuronal model parameters
The evolution of the Nash criterion of different candidate models of the system (Tables 1-3 , 8 neurons in the hidden layer use of Theorem 3 for the learning phase, is necessary and sufficient for a neuronal model of a satisfactory precision. The autocorrelation functions of residuals and crosscorrelation between input and residuals (Figure 7) are within the confidence intervals, thus validating the use of the network chosen as a model of the system studied.
After the learning phase of the neuronal model completed, the structure proposed of neural adaptive control is applied to the system.In this case, the learning algorithm of the neural controller uses Theorem 6.The results are presented in Figures 8, 9 and 10.It appears from these figures that this control strategy provides satisfactory results.Indeed, the system follows the reference signal appropriately by responding to the objectives: rejection of disturbances, the control performance, robustness and system stability.

Conclusion
In this paper, we have proposed adaptive control structure for a complex dynamic system using a recurrent neural network.Before, the application of the proposed adaptive neuro control, the recurrent neural has been trained off-line to implement the inverse dynamic of the considered system using a proposed Lyapunov-Base system training algorithm.The simulation results obtained show the effectiveness of the recurrent neural network structure and its adaptation algorithm to simulate the inverse dynamics of the system, and to control it in closed loop with good tracking performance.

Appendixs
The calculation of the term is performed by the following equations: for the neuron in the output layer: for a neuron in the hidden layer: From the above equations, we can write: It was therefore:

Figure 1 .
Figure 1.Architecture of the considered neural network.
the bias of neuron in the output layer, back weight of neuron in the output layer, number of neurons in the input layer.
Application of the input vector   k  and the desired output   y k Calculation of the output of the neural network   ˆ, y i k Start Initialize the number of neurons in the hidden layer h n , parameters   n , the coefficients of the neural network w , the maximum number of iterations itr , squared error desired 0  Initialization:

Figure 3 .
Figure 3. Structure of the proposed adaptive control.
,n ,n , the coefficients of the neural network wc , the maximum number of iterations itr , squared error desired 0 

Figure 4 .The Figure 5 6 .Figure 5 .Figure 6 .Figure 7 .Figure 8 .Figure 9 .Figure 10 .Table 1 .
Figure 4. Flowchart of the proposed Lyapunov-Base learning algorithm of the controller neural network.with:uand are respectively the input and output system.y  is a noise such as