Abstract
This study presents the development of sliding mode control (SMC) using the diagonal recurrent neural network (DRNN) for nonlinear systems. Firstly, the SMC for linear systems is developed for nonlinear coupled tank system. Second, the DRNN is used to design the equivalent part of the SMC law, which is performed to approximate the dynamics of a controlled process. Third, the sliding surface for the switching control is developed using the DRNN. The DRNN parameters are tuned using Lyapunov function to achieve the controlled process stability. For the developed scheme, discontinuous signum function is used to compensate the chattering phenomenon. The developed scheme is applied for controlling the uncertain nonlinear coupled tank system. The simulation results indicate that the developed scheme can respond to the effects of system uncertainties compared to other existing schemes.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
Most practical dynamic systems have uncertain effects such as parameter uncertainties, external disturbances, model nonlinearities and structure uncertainties. These challenging problems cannot be covered using linear and conventional controllers. Subsequently, it is essential to develop robust control schemes for solving such problems and to obtain certain performance requirements [1,2,3]. In recent years, robust adaptive schemes based on trajectory tracking have attracted great attention for nonlinear systems such as adaptive probabilistic Takagi–Sugeno–Kang (TSK) fuzzy controller [4], adaptive interval type-2 TSK fuzzy controller [5], adaptive sliding mode control (SMC) [6] and SMC based on proportional-integral-derivative (PID) and proportional-integral (PI) sliding surface, respectively [7, 8].
SMC approach is a class of the variable structure control schemes, which is a nonlinear robust controller that is able to respond insensitivity to structure uncertainties, rejection of an external disturbance, fast and good transient response, and stable control system [9]. SMC contains a switching control law that moves the states of the plant from any initial value on the sliding surface, which is set by the user in the switching surface and to preserve the system states on a desired sliding surface [10, 11]. However, the SMC includes the following problems: (1) it is necessary to obtain the precise mathematical model for the controlled process to design the SMC [9]. This problem decreases the performance of the controller in some control applications. (2) chattering phenomenon, which is an inherent problem in the design of SMC [10]. This problem also decreases the SMC performance. (3) uncertainty bounds, which are required for designing the switching control law of SMC [11]. To avoid such problems, several researchers proposed several approaches for solving the chattering problems such as approximating the discontinuous switching control law by using saturation function [12], using low pass filter [13], using variable structure adaptive control [14] and using adaptive intelligent technique [15]. On the other hand, some researchers used the adaptive control schemes using Lyapunov theory such as genetic algorithm [16], event-triggering dissipative control [17] and other schemes for complex industrial systems [18] to handle the problem of knowing the perfect mathematical model of the controlled process. In [19], SMC with a bound estimation was introduced for controlling robot manipulator to solve the problem of the uncertainty bounds.
In recent years, several researchers have integrated the SMC with intelligent techniques such as fuzzy logic systems (FLSs) [20] and neural networks (NNs) [9, 11, 21,22,23,24,25,26,27,28,29]. In [10], the fuzzy SMC with PI sliding surface for linear system was introduced. SMC law requires a precise knowledge about the controlled process. Moreover, the FLS was proposed to compensate the chattering phenomenon. In [9], an adaptive radial basis function NN (RBFNN)-based SMC for nonlinear plants was introduced. RBFNN was performed to approximate the unknown parameters of the controlled process. Also, the problem of chattering is solved based on a smooth continuous control action. In [11], a NN-based SMC for rotating stall and surge in axial compressors was introduced. The adaptive NN was used to avoid the problem of obtaining a precise mathematical model for the controlled process. In [25], a recurrent NN (RNN) based fuzzy SMC was introduced for 4-degree freedom remotely operated vehicle. The model uncertainties were compensated and estimated using RNN. On the other hand, the chattering phenomenon was handled using FLS as a switching term. In [29], NN was proposed to approximate the unknown continuous uncertainties and disturbance for an autonomous surface vehicle where the uncertainty bounds for the sliding surface was compensated using Lyapunov theory.
1.1 Motivation
In this paper, SMC based on diagonal RNN (DRNN) is introduced for uncertain nonlinear systems. The developed controller is motivated from the previous published works in [9,10,11, 21,22,23,24,25,26,27,28,29] to cover the disadvantages of the work in [10]. First, the SMC in [10], which was designed to linear systems is developed to uncertain nonlinear system (coupled tank system as a benchmark in this paper). Second, the NN in [9, 11, 21,22,23,24,25,26,27,28,29], which was used to approximate the unknown controlled system is developed to DRNN as the first time that used with SMC based on the authors’ best knowledge. DRNN is a type of NN, which belongs to the partially connected RNNs [30]. DRNN was introduced to identify nonlinear systems, which have a superior modeling accuracy compared with other NN techniques [31].
In this paper, the SMC is designed based on the DRNN. The SMC law consists of two terms; the first one is the equivalent control law, which is performed based on the DRNN. The nonlinear controlled system is approximated using DRNN. The second part is the switching control signal, which is dependent on the sliding surface. The sliding surface is performed based on DRNN. For the proposed controller, the discontinuous signum function is used to compensate the chattering problem. The updating weights of DRNN are obtained using Lyapunov function to guarantee the controlled system stability. The proposed scheme is designed for controlling uncertain nonlinear coupled tank system. The simulation results indicate that the developed controller can respond to the effects of system uncertainties and external disturbances compared to other existing schemes.
1.2 Novelties and contributions
The main contributions of this study are summarized as:
-
1.
Design a novel SMC based on the DRNN for nonlinear systems that is motivated from previous works.
-
2.
Developing the sliding surface based on DRNN.
-
3.
Updating the DRNN weights using Lyapunov function to achieve the controlled system stability.
-
4.
The problem of the knowledge of the controlled system and chattering phenomenon are compensated.
The remainder of this paper is organized as: Sect. 2 presents the problem formulation. The second order SMC for nonlinear coupled tank system is introduced in Sect. 2. The proposed SMC based on the DRNN is presented in Sect. 3. The updating algorithm for the DRNN parameters using Lyapunov function is presented in Sect. 4. Simulation results for the coupled tank system is presented in Sect. 5. Finally, conclusions are given in Sect. 6.
2 Problem formulation
Figure 1 shows the coupled tank system, which is used in this paper as a benchmark. It is considered as one of the hydraulic control systems in industrial applications [32, 33]. The function of the controller is controlling the destination tank level (\({L}_{1}\)) by varying the pump (\(P\)) flow using valve 1 or by valve 2, which is considered as a disturbance.
The relation between the pump supply voltage (\(u\)) and the input flow (Q) is given as [32]:
The destination tank can be filled from the source tank by opening the valve 1 placed after the pump, which changes the incoming flow. The output flow (\({Q}_{2}\)) can change using valve 2, which inserted below the destination tank. Consider \({Q}_{1}=Q\) for the level control case, we obtain the following using the flow equilibrium equation [32]:
Finally, the mathematical model of the coupled tank system is given as [32]:
The above equation can be rewritten as the following considering \({x}_{a}=\left(\frac{}{}{0pt}{}{{x}_{a1}}{{x}_{a2}}\right)\), \({x}_{a1}= {L}_{1}\) and \({x}_{a2}= {L}_{2}\)
Using the above equation, the nonlinear model of the coupled tank system is obtained as:
where
\({f}_{1}\left({x}_{a}\right)=\frac{{- C}_{2}{D}_{2}}{{A}_{d}}\sqrt{2g \left({x}_{a1}-{x}_{a2}\right)}\), \(C= {K}_{t}\), \({f}_{2}\left({x}_{a}\right)=\frac{{C}_{2}{D}_{2}}{{A}_{s}}\sqrt{2g \left({x}_{a1}-{x}_{a2}\right)}- \frac{{C}_{3}{D}_{3}}{{A}_{s}}\sqrt{2g{x}_{a2}}\) and \(B= \frac{{K}_{g}}{{A}_{d}}\).
The nonlinear model, which is described in Eq. (5), can be modified by considering parameter uncertainties. Therefore, the nonlinear model is given as:
where \({f}_{1n}\left({x}_{a}\right)\), \({f}_{2n}\left({x}_{a}\right)\) represent the nominal values of the nonlinear functions; \({f}_{1}\left({x}_{a}\right)\) and\({f}_{2}\left({x}_{a}\right)\), respectively. \(\Delta {f}_{1}\left({x}_{a}\right)\) and \(\Delta {f}_{2}\left({x}_{a}\right)\) represent the parameter uncertainties of the nonlinear functions \({f}_{1}\left({x}_{a}\right)\) and\({f}_{2}\left({x}_{a}\right)\), respectively. \({E}_{1}(t)\) and \({E}_{2}(t)\) represent the unknown external perturbations. It is assumed that all the uncertainties can be given as:
Therefore, Eq. (6) can be rewritten as:
3 Second order sliding mode control
In this section, the second order SMC (SOSMC), which is applied previously [8, 10], is developed to applied to uncertain nonlinear coupled tank system as described in Eq. (8). The PI sliding surface is chosen as [10]:
where \(e\left(t\right)= {x}_{d1}- {x}_{a1}\) is the tracking error, \({x}_{d1}\) is the desired level and \({x}_{a1}\) is the actual level of the coupled tank system defined by Eq. (8). The parameters; \({k}_{1}\) and \({k}_{2}\) are the proportional and integral positive gains, respectively for the PI sliding surface.
The main goal of the SOSMC is to make the output of the system; \({x}_{a1}\) to successfully track a given desired signal; \({x}_{d1}\) under the effect of system uncertainties. Therefore, the sliding surface; \(S\left(t\right)\) and the time derivative of the sliding surface; \(\dot{S}\left(t\right)\) should equal zero to make the tracking error kept on the sliding surface [10]. The total control law of the SOSMC consists of two parts, which is given in Eq. (10); the first is the equivalent control term; \({u}_{eq}\left(t\right)\) and the other is the switching control term; \({u}_{sw}\left(t\right)\).
The equivalent control term; \({u}_{eq}\left(t\right)\) is obtained as the solution of \(\dot{S}\left(t\right)=0\) under nominal system dynamic model (\({\rho }_{1}\left(t\right)={\rho }_{2}(t)=0\)). The time derivative of sliding surface, which is described in Eq. (9) is obtained as:
Putting \(e\left(t\right)= {x}_{d1}- {x}_{a1}\) and \(\dot{e}\left(t\right)= {\dot{x}}_{d1}- {\dot{x}}_{a1}\), Eq. (11) can be rewritten as:
Substitute \({\dot{x}}_{a1}\) from Eq. (8) into Eq. (12), we get the following:
Putting \(\dot{S}\left(t\right)=0\) and \({\rho }_{1}(t)=0\), the equivalent control term; \({u}_{eq}(t)\) is obtained as:
The above equation shows \({u}_{eq}\left(t\right)\), which provides the desired performance for the controlled system. The switching control term; \({u}_{sw}\left(t\right)\) should be obtained to compensate the effect of the system uncertainties such as external disturbances and parameters variations. Lyapunov function; \(V\left(t\right)\) is chosen to design the switching control term; \({u}_{sw}\left(t\right)\) as follow:
The time derivative \(\dot{V}\left(t\right)\) is obtained as:
By Substituting Eqs. (10 and 13) into Eq. (16), we get the following:
By Substituting Eq. (14) into Eq. (17), we get the following:
The above equation can be rearranged as:
The switching control signal; \({u}_{sw}(t)\) can be selected as:
where \({k}_{r}\) is the switching control gain and \(sign(\cdot )\) denotes sign function that defined as [10]:
By Substituting Eq. (20) into Eq. (19), we get the following:
By using \(\left|S(t)\right|=S\left(t\right)sign(S\left(t\right))\), the above equation is rewritten as:
To achieve controlled system stability using SOSMC and the reaching condition \(\dot{V}\left(t\right)\) < 0 is satisfied, the switching control gain; \({k}_{r}\) must be selected as:
Therefore, the total control law of the SOSMC is given as:
The block diagram of the SOSMC scheme is shown in Fig. 2. The SOSMC law that is given in Eq. (26) can compensate the chattering problem where the switching control part contains the discontinuous signum function. Moreover, the witching control gain; \({k}_{r}\) is concerned with the boundaries of unknown uncertainties (as indicated by the stability condition in Eq. (25)), and it is required to know the precise mathematical model of the controlled uncertain system as it appears in the control signal.
4 SMC based on diagonal recurrent NN
In this section, the structure of DRNN is presented. Then, the development of SMC based on DRNN is introduced.
4.1 Structure of DRNN
The structure of the DRNN is shown in Fig. 3. It consists of three layers; input layer, hidden layer, and output layer [30]. The input vector for the DRNN is \({\varvec{Z}}\left(t\right)={\left[{z}_{1}\left(t\right) {z}_{2}\left(t\right) \cdots {z}_{P}(t)\right]}^{T}\), the hidden weight matrix for the hidden layer is represented by Eq. (27) and the diagonal weight vector for the hidden nodes is represented as \({{\varvec{W}}}^{{\varvec{D}}}={\left[{w}_{1}^{D} {w}_{2}^{D} \cdots {w}_{R}^{D}\right]}^{T}\). The output weight vector for the output layer is represented as \({{\varvec{W}}}^{{\varvec{O}}}={\left[{w}_{1}^{O} {w}_{2}^{O} \cdots {w}_{R}^{O}\right]}^{T}\). \(P\) and \(R\) denote the number of inputs and the number of nodes in hidden layer, respectively.
For any recurrent neuron, the output \({m}_{r}(t)\) at any \(t\) time and sampling period \(T\) is obtained as follows:
where \(\sigma \) is constant. The DRNN output; \({O}_{DRNN}(t)\) is given as:
where \(\left(t\right)={\left[{m}_{1}\left(t\right) {m}_{2}\left(t\right) \cdots {m}_{R}(t)\right]}^{T}\).
4.2 Proposed structure
The approximation ability of the DRNN is used to propose the SMC based on DRNN (SMC-DRNN), where the equivalent control term of SMC law, which depends on the dynamic model of a controlled system, is approximated using DRNN. Equation (13) can be rearranged as follows:
where \({f}_{d}\left({{\varvec{x}}}_{A}\right)\) represents an unknown uncertain nonlinear function and is defined as:
where \({{\varvec{x}}}_{A}={[ e\left(t\right) {\dot{x}}_{d1}\left(t\right) {x}_{a1}(t) {x}_{a2}\left(t\right)]}^{T}\). The function; \({f}_{d}\left({{\varvec{x}}}_{A}\right)\) can be universally approximated using the DRNN as:
where \({{\varvec{W}}}_{d}^{O}(t)={\left[{w}_{d1}^{O}(t) {w}_{d2}^{O}(t) \cdots {w}_{dR}^{O}(t)\right]}^{T}\) is the output weight vector of the DRNN, which approximate the function; \({f}_{d}\left({{\varvec{x}}}_{A}\right)\) and \({{\varvec{M}}}_{{\varvec{d}}}(t)={\left[{m}_{d1}\left(t\right) {m}_{d2}\left(t\right) \cdots {m}_{dR}(t)\right]}^{T}\) is the input vector for the output layer and it is obtained as the following where \(R\) is the number of nodes in hidden layer of DRNN, which approximate the function; \({f}_{d}({{\varvec{x}}}_{A})\):
where \({{\varvec{W}}}_{d}^{D}(t)={\left[{w}_{d1}^{D} {w}_{d2}^{D} \cdots {w}_{dR}^{D}\right]}^{T}\) is the diagonal weight vector for the hidden layer of DRNN, which approximate the function; \({f}_{d}\left({{\varvec{x}}}_{A}\right)\) and \({{\varvec{W}}}_{d}^{I}\) is the weight matrix for the hidden layer of DRNN, which is given as:
Therefore, the equivalent control part; \({u}_{eq-DRNN}\left(t\right)\) for the proposed SMC-DRNN is obtained as the following by substituting Eqs. (34–36) into Eq. (14):
On the other hand, the switching control part for the proposed SMC-DRNN is developed, where the function of the sliding surface; \(S(t)\) is designed based on DRNN. Therefore, the proposed sliding surface; \({S}_{DRNN}(t)\) is obtained as follows:
where \({{\varvec{W}}}_{s}^{O}(t)={\left[{w}_{s1}^{O}(t) {w}_{s2}^{O}(t) \cdots {w}_{sM}^{O}(t)\right]}^{T}\) is the output weight vector of the DRNN, which approximate the sliding surface; \({S}_{DRNN}\left(t\right)\) and \({{\varvec{M}}}_{{\varvec{s}}}(t)={\left[{m}_{s1}\left(t\right) {m}_{s2}\left(t\right) \cdots {m}_{sD}(t)\right]}^{T}\) is the input vector for the output layer where \(D\) is the number of nodes in hidden layer of DRNN, which approximate the sliding surface; \({S}_{DRNN}\left(t\right)\). \({{\varvec{x}}}_{s}=\) \({[ e\left(t\right) \int e\left(t\right)]}^{T}\) is the input vector, \({{\varvec{W}}}_{s}^{D}(t)={\left[{w}_{s1}^{D} {w}_{s2}^{D} \cdots {w}_{sD}^{D}\right]}^{T}\) is the diagonal weight vector for the hidden layer of DRNN, which approximate the sliding surface; \({S}_{DRNN}\left(t\right)\) and \({{\varvec{W}}}_{s}^{I}\) is the weight matrix for the hidden layer of DRNN, which is given as:
Therefore, the switching control term for the proposed SMC-DRNN; \({u}_{sw-DRNN}\left(t\right)\) is obtained as follows:
Therefore, the total control law of the proposed SMC-DRNN is given as:
Figure 4 indicates the block diagram of the developed SMC-DRNN. The total control law of the proposed scheme; \({u}_{DRNN}\left(t\right)\) consists of two terms; the first term is the equivalent control term; \({u}_{eq-DRNN}\left(t\right)\), which performed using the DRNN to approximate the dynamics of the controlled system to compensate the problem of the precise knowledge of the mathematical model for the controlled process. The other part is the switching control term; \({u}_{sw-DRNN}\left(t\right)\), which depends on the sliding surface that designed based on the DRNN to compensate the problem of chattering. The weights of the DRNNs are tuned using the Lyapunov function to achieve the controlled system stability. In the next section, the updating algorithm is introduced in detail.
5 Updating algorithm based on Lyapunov function
In this section, the weights of the DRNN are updated online using Lyapunov function to achieve the coupled tank system stability. The weight vectors; \({{\varvec{W}}}_{d}^{I}\), \({{\varvec{W}}}_{d}^{D}\) and \({{\varvec{W}}}_{d}^{O}\) for the DRNN, which approximate the equivalent control term and the weight vectors; \({{\varvec{W}}}_{s}^{I}\), \({{\varvec{W}}}_{s}^{D}\) and \({{\varvec{W}}}_{s}^{O}\) for the DRNN, which approximate the sliding surface are updated online. The weight adjustment rule is derived using the Lyapunov stability criterion. The error at the \(\varrho \) th instant between the plant output; \({x}_{a1}(\varrho )\) and the reference input; \({x}_{d1}(\varrho )\) is referred to as \(e\left(\varrho \right)= {x}_{d1}(\varrho )- {x}_{a1}(\varrho )\), which is utilized to adjust the weight vectors of the DRNN. The following is the derivation of the weight adjustment rule using the Lyapunov stability criteria:
First, a scalar function; \({V}_{L}(X)\) should be selected, where \(X\) represents an argument vector, and \({V}_{L}(X)\) is positive definite for all initial conditions of its arguments, except when they are all simultaneously equal to zero [31]. A system is considered asymptotically stable if it satisfies both conditions described by Eqs. (45) and (46).
The controlled system is asymptotically stable if both conditions are satisfied. To establish the basis for the weight learning algorithm, we can express the generalized form of the weight update equation as follows:
where \({\mathbb{N}}\left(\varrho \right)\) represents a generalized weight vector, which denotes (\({{\varvec{W}}}_{d}^{I}\),\({{\varvec{W}}}_{d}^{D}\), \({{\varvec{W}}}_{d}^{O}{{\varvec{W}}}_{s}^{I}\), \({{\varvec{W}}}_{s}^{D}\) and\({{\varvec{W}}}_{s}^{O}\)). Here, \(\Delta {\mathbb{N}}\left(\varrho \right)\) represents the necessary weight adjustment to be made and \(\eta \) represents the learning rate. Let \(\varepsilon (\varrho )\) be the cost function, which is a function of the error; \((\varrho )\). It is defined as:
The positive definite Lyapunov function is chosen as:
The time derivative of \({V}_{L}\left(\varrho \right)\) in discrete form is determined as:
Theorem:
For Lyapunov function, \({V}_{L}\left(\varrho \right)=\frac{1}{2}{[(e(\varrho ))}^{2}+{({\mathbb{N}}\left(\varrho \right))}^{2}]>0,\) condition \({\Delta V}_{L}\left(\varrho \right)={V}_{L}\left(\varrho +1\right)-{V}_{L}\left(\varrho \right)\le 0\) is satisfied if and only if
Proof
By substituting Eq. (49) into Eq. (50), we get the following:
The above equation can be rearranged as:
Let \(\Delta e\left(\varrho \right)=e(\varrho +1)-e(\varrho )\) and \(\Delta {\mathbb{N}}\left(\varrho \right)={\mathbb{N}}\left(\varrho +1\right)-{\mathbb{N}}\left(\varrho \right)\) and putting them in Eq. (54), we get the following:
The above equation can be written as:
For a very small change, Eq. (56) can be written as:
From the above equation, let the following:
where \(\delta \ge 0\) in order to make \({\Delta V}_{L}\left(\varrho \right)\le 0\). Therefore, the above equation becomes as:
Consider a general quadratic equation: \(a{z}^{2}+bz+c=0\), then the roots of it are given by
Comparing the general quadratic equation and Eq. (59), it can be seen that \(\Delta {\mathbb{N}}\left(\varrho \right)\) acts as \(z\) in the general quadratic equation and values \(a\), \(b\) and \(c\) in Eq. (59) are obtained as:
To have a single unique of quadratic equation, term \(\sqrt{{b}^{2}-4ac}\) must be equal zero, so, putting values of \(a\), \(b\) and \(c\) in \(\sqrt{{b}^{2}-4ac}=0\), we get the value of \(\delta \) as:
Since \(\delta \ge 0\), which means
Therefore, the unique root of Eq. (59) will be given as:
So, Eq. (51) is proved. By substituting Eq. (64) to Eq. (47), we get the following generalized form of the weight update equation:
The following algorithm shows the pseudo-code for the proposed controller.
6 Simulation results
The developed SMC-DRNN is applied to the nonlinear coupled tank system in this section. To show the robustness of the developed SMC-DRNN, the simulation results of the proposed scheme are compared with other existing schemes such as an adaptive radial basis function neural network estimator-based SMC (ARBFNNE-SMC) [9], which used RBFNN to estimate the dynamics of the controlled system and a PID sliding mode control (PID-SMC), which is designed previously for a coupled tank system [32]. The comparisons are done by measuring some performance indices for all controller such as the mean absolute error (MAE) and the root mean square error (RMSE), which are defined as [34, 35]:
where \(N\) is the total number of iterations.
6.1 Task 1: Normal case
In this task, the performance of the coupled-tank system under three different set-points, namely 0.5 m, 0.3 m, and 0.55 m is presented. Figure 5 indicates the output response for the proposed SMC-DRNN, ARBFNNE-SMC and PID-SMC. The performance of the developed SMC-DRNN is better than other schemes in which it has less settling time and overshoot than other controllers. Figure 6 indicates the MAE for all schemes. The MAE for the developed SMC-DRNN is less than those obtained for other schemes. So, the developed SMC-DRNN scheme can track the change of desired output with good performance compared with other schemes.
6.2 Task 2: Uncertainty due to an external disturbance
This task aims to demonstrate how the uncertainty resulting from external disturbance in the water level of the destination tank affects the coupled-tank system. Figure 7 depicts the response of the system with adding external disturbance; \(\Delta {L}_{1}=0.02 {\text{m}}\) after at \(\varrho =150\) of simulation. The results indicate that the developed SMC-DRNN has a better performance with less settling time and an overshoot after adding the disturbance value compared with other schemes. Additionally, Fig. 8 displays that the MAE for the developed SMC-DRNN is less than those obtained with other controllers. Therefore, the developed SMC-DRNN can handle the effect of uncertainties due to an external disturbance.
6.3 Task 3: Uncertainty in the system parameters
This task demonstrates how introducing uncertainty in the system parameters; \({A}_{d}\) and \({C}_{2}\) affects the performance of the system. Figure 9 shows the output of the coupled-tank system when the uncertainty values; \({A}_{d}=0.01\) and \({C}_{2}=0.15\) are added at \(\varrho =150\) of simulation. Figure 10 shows the MAE for the developed SMC-DRNN and other schemes. It is seen from the results that the developed SMC-DRNN can handle the effect of the uncertainties due to the variations in system parameters compared to other controllers.
6.4 Task 4: Uncertainty due to external disturbance and parameters variations
This task demonstrates the impact of introducing uncertainty in the system parameters; \({A}_{d}\) and \({C}_{2}\), as well as the uncertainty resulting from adding external disturbance in the destination tank level. Figure 11 indicates the response of the system after adding uncertainties values; \({A}_{d}=0.01\), \({C}_{2}=0.15\) and \(\Delta {L}_{1}=0.02 {\text{m}}\) at \(\varrho =150\) of simulation. The results indicate that the performance of the developed SMC-DRNN after adding the uncertainty values is better than other controllers in which the settling time and the overshoot for the developed controller are less than those obtained for other schemes. On the other hand, the MAE for the developed SMC-DRNN is less than other schemes as shown in Fig. 12. So, the developed SMC-DRNN can reduce the effect of uncertainties due to the variations in system parameters and external disturbance compared with other controllers.
6.5 Task 5: Uncertainty due to external noise
This task demonstrates the performance of the proposed SMC-DRNN under the effect of uncertainty due to applying random external noise on the system output. Figure 13 shows the system output for the proposed SMC-DRNN and other controllers. Figure 14 shows the MAE for all controllers. The MAE for the proposed SMC-DRNN is less than other controllers. Therefore, the proposed SMC-DRNN can reduce the effect of external random noise.
Tables 2 and 3 present the MAE and RMSE values, respectively, for the proposed SMC-DRNN and other existing schemes; ARBFNNE-SMC [9] and PID-SMC [32]. It is clear that the MAE and RMSE values for the developed SMC-DRNN are less than those obtained for ARBFNNE-SMC [9] and PID-SMC [32] for all simulation tasks. Therefore, the robustness of the developed SMC-DRNN is better than ARBFNNE-SMC [9] and PID-SMC [32] to handle the effect of system uncertainties due to variations of the system parameters, external disturbance and external random noise.
Table 4 lists the computation time and space complexity of the proposed SMC-DRNN algorithm and other compared algorithms in terms of sliding surface, equivalent control part and sliding surface parameters. It is clear that the computation time for the proposed SMC-DRNN controller is approximately equals the computation time for the ARBFNNE-SMC [9]. The proposed SMC-DRNN uses nonlinear sliding surface, which is designed based on DRNN while the other controllers use linear sliding surface. The proposed SMC-DRNN uses the DRNN to represent the equivalent control part. On the other hand, the ARBFNNE-SMC [9] uses an ARBFNN to represent the equivalent control.
7 Conclusions
In this paper, SMC based-DRNN is introduced for uncertain nonlinear coupled tank system. The control law for the developed scheme consists of two items; the first item is the equivalent control term, which is performed using the DRNN to approximate the dynamics of the coupled tank system. So, the problem of obtaining the precise mathematical model for the controlled process to design the SMC is compensated. The other part of the control law for the developed scheme is the switching control term, in which the sliding surface is performed using the DRNN. The discontinuous signum function is used for the switching control term. Therefore, the problem of chattering is compensated. The updating weights of the DRNN are obtained using Lyapunov function to guarantee the controlled system stability. The simulation results including the system uncertainties due to the effect of variations of system parameters and an external disturbance for the proposed controller are compared with other existing schemes to show the robustness of the developed scheme. The compressions are done by measuring the MAE and RMSE for the developed SMC-DRNN and other schemes. The simulation results indicate that the proposed controller can handle the effects of system uncertainties and external disturbances compared to other existing schemes.
Finaly, the proposed SMC-DRNN improved the performance of the controlled system, and it can handle the problem of knowing the perfect mathematical model of the controlled process by using DRNN, which is used to represent the equivalent control part. Also, the proposed controller handles the problem of the chattering by using DRNN to represent the sliding surface and discontinuous signum function. On the other hand, the author uses a constant number of neurons in the hidden layer of DRNN. The performance of the DRNN depends on the number of neurons in the hidden layer and the structure of the network. Therefore, in the future work, the author will develop the structure of the DRNN by using self-organizing algorithms to learn or update the structure of the DRNN.
Data availability
No datasets were generated or analyzed during the current study.
References
El-Nagar AM (2016) Embedded intelligent adaptive PI controller for an electromechanical system. ISA Trans 64:314–327
Khater AA, El-Nagar AM, El-Bardini M, El-Rabaie NM (2019) Online learning of an interval type-2 TSK fuzzy logic controller for nonlinear systems. J Frankl Inst 356(16):9254–9285
El-Nagar AM, El-Bardini M (2014) Practical realization for the interval type-2 fuzzy PD+ I controller using a low-cost microcontroller. Arab J Sci Eng 39:6463–6476
Shaheen O, El-Nagar AM, El-Bardini M, El-Rabaie NM (2020) Stable adaptive probabilistic Takagi–Sugeno–Kang fuzzy controller for dynamic systems with uncertainties. ISA Trans 98:271–283
El-Nagar AM (2019) Practical implementation for stable adaptive interval A2–C0 type-2 TSK fuzzy controller. Soft Comput 23:9585–9603
Chenglong D, Fanbiao L, Chunhua Y (2019) An improved homogeneous polynomial approach for adaptive sliding mode control of Markov jump systems with actuator faults. IEEE Trans Automat Control 65:955–969
Eker I (2006) Sliding mode control with PID sliding surface and experimental application to an electromechanical plant. ISA Trans 45:109–118
Eker İ (2012) Second-order sliding mode control with PI sliding surface and experimental application to an electromechanical plant. Arab J Sci Eng 37:1969–1986
Moawad NM, Elawady WM, Sarhan AM (2019) Development of an adaptive radial basis function neural network estimator-based continuous sliding mode control for uncertain nonlinear systems. ISA Trans 87:200–216
Shaalan AS, El-Nagar AM, El-Bardini M, Sharaf M (2020) Embedded fuzzy sliding mode control for polymer extrusion process. ISA Trans 103:237–251
Moghaddam JJ, Farahani MH, Amanifard N (2011) A neural network-based sliding-mode control for rotating stall and surge in axial compressors. Appl Soft Comput 11(1):1036–1043
Cheng NB, Guan LW, Wang LP, Han J (2011) Chattering reduction of sliding mode control by adopting nonlinear saturation function. Adv Mater Res 143:53–61
Tseng ML, Chen MS (2010) Chattering reduction of sliding mode control by low pass filtering the control signal. Asian J Control 12:392–398
Yu H, Lloyd S (1997) Variable structure adaptive control of robot manipulators. IEE Proc-Control Theory Appl 144(2):167–176
Yau HT, Chen CL (2006) Chattering-free fuzzy sliding-mode control strategy for uncertain chaotic systems. Chaos Solitons Fractals 30:709–718
Yusof R, Rahmanb R, Khalida M, Ibrahim M (2011) Optimization of fuzzy model using genetic algorithm for process control application. J Frankl Inst B 348(7):1717–1737
Jianxing L et al (2019) Event-triggering dissipative control of switched stochastic systems via sliding mode. Automatica 103:261–273
Wu L, Mazumder SK, Kaynak O (2018) Sliding mode control and observation for complex industrial systems—part II. IEEE Trans Ind Electron 65:830–833
Su CY, Leung TP (1993) A sliding mode controller with bound estimation for robot manipulators. IEEE Trans Robot Autom 9(2):208–214
Yu X, Kaynak O (2009) Sliding-mode control with soft computing: A survey. IEEE Trans Ind Electron 56:3275–3285
Hsu C (2013) Adaptive neural complementary sliding-mode control via functional linked wavelet neural network. Eng Appl Artif Intell 26(4):1221–1229
Liu H, Zhang T (2012) Adaptive neural network finite-time control for uncertain robotic manipulators. J Intell Robot Syst 134(6):1–15
Huang S, Huang K, Chiou K (2003) Development and application of a novel radial basis function sliding mode controller. Mechatronics 13:313–329
Sun T, Pei H, Pan Y, Zhou H, Zhang C (2011) Neural network-based sliding mode adaptive control for robot manipulators. Neurocomputing 74(14):2377–2384
Yang M, Sheng Z, Yin G, Wang H (2022) A recurrent neural network based fuzzy sliding mode control for 4-DOF ROV movements. Ocean Eng 256:111509
Zhao Z, Jin X (2022) Adaptive neural network-based sliding mode tracking control for agricultural quadrotor with variable payload. Comput Electr Eng 103:108336
Razmi H, Afshinfar S (2019) Neural network-based adaptive sliding mode control design for position and attitude control of a quadrotor UAV. Aerosp Sci Technol 91:12–27
Xia R, Chen M, Wu Q, Wang Y (2020) Neural network based integral sliding mode optimal flight control of near space hypersonic vehicle. Neurocomputing 379:41–52
Jiang T, Yan Y, Wu D, Yu S, Li T (2022) Neural network based adaptive sliding mode tracking control of autonomous surface vehicles with input quantization and saturation. Ocean Eng 265:112505
Elkenawy A, El-Nagar AM, El-Bardini M, El-Rabaie NM (2020) Diagonal recurrent neural network observer-based adaptive control for unknown nonlinear systems. Trans Inst Meas Control 42(15):2833–2856
Kumar R, Srivastava S, Gupta JRP, Mohindru A (2018) Diagonal recurrent neural network based identification of nonlinear dynamical systems with Lyapunov stability based adaptive learning rates. Neurocomputing 287:102–117
Ahmed RHIF, Kardous Z, Braie KNB (2012) A PID sliding mode control design for a coupled tank. In: International conference CRATT, pp 1–6
El-Nagar AM, El-Bardini M (2014) Derivation and stability analysis of the analytical structures of the interval type-2 fuzzy PID controller. Appl Soft Comput 24:704–716
Khater AA, El-Nagar AM, El-Bardini M, El-Rabaie NM (2020) Online learning based on adaptive learning rate for a class of recurrent fuzzy neural network. Neural Comput Appl 32:8691–8710
Zaki AM, El-Nagar AM, El-Bardini M, Soliman FAS (2021) Deep learning controller for nonlinear system based on Lyapunov stability criterion. Neural Comput Appl 33:1515–1531
Funding
Open access funding provided by The Science, Technology & Innovation Funding Authority (STDF) in cooperation with The Egyptian Knowledge Bank (EKB).
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
There is no conflict of interest between the authors to publish this manuscript.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
El-Nagar, A.M., Abdo, M.I. Development of sliding mode control based on diagonal recurrent neural network for coupled tank system. Neural Comput & Applic (2024). https://doi.org/10.1007/s00521-024-09849-x
Received:
Accepted:
Published:
DOI: https://doi.org/10.1007/s00521-024-09849-x