# RBF Neural Network of Sliding Mode Control for Time-Varying 2-DOF Parallel Manipulator System

Authors: Haizhong Chen; Songlin Wo
Journal: Mathematical Problems in Engineering
 (2013)

---

## Abstract

This paper presents a radial basis function (RBF) neural network control scheme for manipulators with actuator nonlinearities. The control scheme consists of a time-varying sliding mode control (TVSMC) and an RBF neural network compensator. Since the actuator nonlinearities are usually included in the manipulator driving motor, a compensator using RBF network is proposed to estimate the actuator nonlinearities and their upper boundaries. Subsequently, an RBF neural network controller that requires neither the evaluation of off-line dynamical model nor the time-consuming training process is given. In addition, Barbalat Lemma is introduced to help prove the stability of the closed control system. Considering the SMC controller and the RBF network compensator as the whole control scheme, the closed-loop system is proved to be uniformly ultimately bounded. The whole scheme provides a general procedure to control the manipulators with actuator nonlinearities. Simulation results verify the effectiveness of the designed scheme and the theoretical discussion.


---

## Body

## 1. Introduction

The past several decades have seen a rapid increase in parallel manipulators connected to the control system. It is well known that parallel manipulators with high rigidity are of generally higher accuracy and of lower error accumulation than similarly sized serial manipulators. Their closed kinematics structure allows them to obtain high structural stiffness and perform high-speed motions. The inertia of its mobile parts is reduced, since the actuators of a parallel manipulator are often fixed to its base and the end effectors can perform movements with higher accelerations. Adaptive tracking control for a class of nonlinear systems is given in [1–3], and in [4] a design of the sliding mode surface integral algorithm is proposed to inhibit the steady-state error and enhance the robustness. In [5, 6] sliding mode control (SMC) with low-pass filter is used to keep trajectory tracking accurately.It is known that SMC has the intrinsic nature of robustness, good transient fast response, and insensitivity to the variation of plant parameters and external disturbances in [7]. Thus, the SMC is considered as an effective approach for the control of many systems such as uncertain nonlinear systems in [8], discrete-time nonlinear systems in [9], and singular stochastic hybrid systems in [10–12]. The control process of SMC consists of two parts; one part is continuous and the other discontinuous. When the system reaches the sliding mode, the system with variable structure control is insensitive to the external disturbances and the variations of the plant parameters, and it has been widely applied to the manipulator system due to its operation characteristics for the sake of fastness, robustness, and stability in large load variations. All those merits are gotten at the cost of the chattering. Furthermore, in many time-variable systems, parameters and perturbation upper bounds are often uncertain, so switching control gain should be as high as possible to keep stable [13–16]. The control algorithm in [17–20] reduces the reaching phase extremely and achieves better robustness than SMC. However, in [17] with disturbance observer based on SMC, the algorithm assumes that the disturbance is produced by a linear exogenous system, but in fact it is difficult to accurately predict the uncertainty and disturbance of the time-variable system. In [18–20], the adaptive sliding mode control (ASMC) algorithm is proposed with the switching gain excessive the SMC values, which brings the more serious chattering problems. So the appropriate switching gain is the key to the accurate control in time-variable system.Motivated by the above observations, we propose a new approach to using RBF neural network to estimate the actuator nonlinearities and their upper boundaries for the switching gain. In this paper, we aim to solve these problems by focusing on the accurate tracking problem of the uncertain mechanical system. Our research begins with a time-variable SMC (TVSMC) algorithm with the dynamics of the manipulator. The main characteristics of such a TVSMC algorithm are discussed. To deal with the finite static error brought by the continuous approximation of the TVSMC algorithm, the RBF neural network is utilized, a novel Lyapunov function is introduced, and then a new time-variable stability criterion is presented. In the numerical simulation, the RBF TVSMC algorithm and the TVSMC algorithm are compared after being tested.


## 2. System Model

The 2-degree-of-freedom parallel manipulator (2-DOF parallel manipulator) is made up of three groups of two links in one platform, in which one group has a base of open chain mechanism, respectively, installed by the AC servo motor and a speed reducer drive shown in Figure1 and coordinate in Figure 2. The 2-DOF parallel manipulator system can be described by Laugrange’s equations [21, 22]:
(1)Jθ⃛+Bθ¨+Wθ˙=U+Ud.Figure 1
Structure of 2-DOF parallel manipulator.Figure 2
Coordinate of 2-DOF parallel manipulator.In (1),θ∈R3stands for a displacement angle of generalized coordinates,Jfor the symmetric and positive-definite inertia matrix,Bfor a damping coefficient matrix,Wfor a stiffness coefficient matrix,Ufor a voltage vector of generalized control input, andUdfor a damping voltage vector of external disturbance.DefiningJ=J^+ΔJ,B=B^+ΔB, andW=W^+ΔW, the superscript(∧)stands for the nominal value, and the notation(Δ)represents the uncertainty. According to the structural feature, the effect caused by the model uncertainties can be merged into the disturbance term, which then can be regarded as the lumped disturbance in the following form:
(2)d=Ud-ΔWθ˙-ΔBθ¨-ΔJθ⃛.From (2), it is assumed that the lumped disturbance is bounded by a upper bound; that is,∥d∥∞≤dmax, wheredmax∈R+is a constant scalar and∥·∥∞is the infinite norm of a vector.J^˙-2B^is a skew-symmetric matrix (see details in [23, 24]).So (1) can be rewritten as
(3)J^θ⃛+B^θ¨+W^θ˙=U+d.


## 3. TVSMC Design and Parameter Setting

In this paper, we will address the tracking control problem of the system in (3). For the desired trajectory with the system states ofθd,θ˙d, andθ¨d, a controllerufor the system is designed so that the system statesθd,θ˙d, andθ¨dcan track the desired trajectory in the presence of parametric uncertainty and external disturbance.For the given trajectory, the tracking error and tracking angle are defined as(4)E=θ-θd,E˙=θ˙-θ˙d,E¨=θ¨-θ¨d,
with the initial tracking error satisfyingE(0)≠03×1,E˙(0)≠03×1, andE¨(0)≠03×1, where the subscript denotes the appropriate dimensions of the matrix.In order to derive the SMC algorithm, the switching surface can be chosen as(5)S=[s1s2s3]T=CE,
whereC∈R3×3is the matrix with strictly positive every elements andE=(EE˙E¨)T. The switching surface is then determined byS=03×1, which is the desired dynamics.The input of SMC algorithm is set as(6)U=ueq+un.In (6),ueqis the equivalent control. The equivalent control of the ideal sliding mode is obtained onS=0withS˙=0; it can be gotten as
(7)ueq=-(J^(C1E˙+C2E¨)-B^(C1E+C2E˙)+(J^θ⃛d+B^θ¨d+W^θ˙d)).unis the switching control:
(8)un=-γ·sign(S).γ=diag(γ1,γ2,γ3)∈R3×3is the switching gain matrix with the elementsγi>dmax, and thesign(S)=(sign(s1)sign(s2)sign(s3))T presents the sign function.Theorem 1.
Considering the system in (3) under the lumped disturbance with an upper boundary ofdmax, by adopting the time-varying sliding mode function in (5) and the corresponding input control in (6), ifγi>dmax, then the controlled system is stable.Proof.
Consider the following Lyapunov function:(9)V=12STJ^S.
DifferentiatingVwith respect to time yields
(10)V˙=STJ^S˙+12STJ^˙S=STJ^(C1E˙+C2E¨+E⃛)+12STJ^˙S=ST(U+d+J^(C1E˙+C2E¨)-B^E¨-W^E˙-J^θ⃛d-B^θ¨d-W^θ˙d)+12STJ^˙(C1E+C2E˙+E¨)=ST(U+d+J^(C1E˙+C2E¨)+B^(C1E+C2E˙)-(J^θ⃛d+B^θ¨d+W^θ˙d)).
U
=
u
eq
+
u
nis substituted in Lyapunov function, and forJ˙-2Bis a skew-symmetric matrix such that(1/2)ST(J^˙-2B^)S=0. The time derivative ofVwill be
(11)V˙=ST(-γsign(S)+d)=∑i=13(-γi·|si|+disi)≤-∑i=13(γi-dmax)|si|<0.
AsVis positively defined andV˙<0, according to the Lyapunov stability theory, the TVSMC is stable. And Figure 3 is gotten.Phase locus and sliding mode function.
(a)
Phase locus
(b)
Sliding mode function


## 4. RBF SMC Algorithm Design

From Figure3(b), the process of SMC action is divided into two states: one is the reaching state and the other is the sliding state. Then reaching state will be joined to the sliding state inside the sliding tranche with bandwidth2γsurrounding the sliding surface, in a finite time limited by the switching frequency. The system adopts the dynamic of the surface and reaches the equilibrium point. In a short phrase, the switching gain depends onγ. Consider the following saturation function to replace the sign function to decrease chattering:
(12)sat(S)={S|S|∞+δ,|si|≤δ,sign(S),otherwise.In (12)δis tiny positive number and is also the boundary layer thickness, which can reduce the chattering if appropriately chosen.On the other hand, radial basis function neural network based on controller design is one of the popular methods of high precision control. In the SMC based controller, the RBF NN is used to approximate the upper boundary of lumped disturbance (Figure4).Figure 4
Architecture of the RBF neural network.The upper boundary of the lumped disturbance can be designed as(13)γi=∑j=14wijhij,
wherehijis the Gaussian radial basis function.Here, further consideration will be given about adjusting the network weights. The weight adjustment isAd=(1/2)ETE.The RBF NN earning algorithm is(14)Δw=-∂Ad∂w=-ET∂E∂w=-ET∂E∂u∂u∂γ∂γ∂W≈-ETsign(∂θ∂u)∂u∂γ∂γ∂W,
where the value of(∂θ/∂u)can be substituted by coefficient of learning rate,θis in direct proportion touin step response, sign(∂θ/∂u)=1,(∂u/∂γ)=-sign(S), and(∂γ/∂W)=ϕ.SoΔwcan be described as follows:
(15)Δw≈ETsign(S)ϕ=(C-1)T|ST|·ϕ.Theorem 2.
Considering the system in (3) under the lumped disturbance with an upper boundary ofdmax, by adopting the time-varying sliding mode function in (5) and the lumped disturbance identified by using the RBF neural network in (13), the controlled system is global asymptotic stable.Proof.
Let optimal network weights bew*and the estimated upper boundary value of RBF NN beγ~; then we get
(16)∑j=13wji*hj-γ~i=ε,|ε|<ε0,
whereεis a tiny number andε0is tiny positive number, and letγ~i-|di|>ε1>ε0,w˙=(C-1)T|ST|ϕ. A neural Lyapunov function can be designed as
(17)V1=12STJ^S+12(w*-w)TCT(w*-w).
DifferentiatingV1with respect to time yields, we get
(18)V˙=STJ^S˙+12STJ^˙S-(w*-w)TCTw˙,
withU=ueq+unand simplifying
(19)V˙1=ST(-γsign(S)+d)-(w*-w)TCTw˙=ST(-γsign(S)+γ~sign(S)-γ~sign(S)+d)-CT(w*-w)Tw˙≤-|ST|(wTϕ-w*Tϕ+ε)-|ST|(γ~-|d|)-|ST|(w*-w)Tϕ=-∑i=13|si|·(∑j=16(wij-wij*)hj)-|ST|ε-|ST|(γ~-|d|)-∑i=13|si|(∑j=16(wij-wij*)hj)=-|ST|ε-|ST|(γ~-|d|)≤|ST|ε0-|ST|ε1=-|ST|(ε1-ε0)≤0.
Using integral transform in (19), the neural Lyapunov function can be gotten as
(20)V1(t)=V1(0)+∫0tV˙1dτ≤V1(0)+∫0t-|ST|(ε1-ε0)dτ.
By the Barbalat Lemma, the system is asymptotically stable.


## 5. Simulation Tests

The parameters of the 2-DOF parallel manipulator are listed as follows: joints reduction ratio is 40 : 1,l11=l12=l21=l22=l31=l32=244mm, back electromotive force constant is 0.04297 V/(s/rad), torque constant is 3.41 N·m/A, resistance factor in driving side is 8.1 × 10−5 N·m/(rad/s), winding resistance of electrical machine is 1.025 Ω, winding inductance of electrical machine is 0.03837 H, rotational inertiaJis 0.39 kg·m2, and the uncertain inertiaΔJ≤0.1 kg·m2. The desired manipulator trajectory is the right triangle shown in Figure 5, and the desired joints trajectories are shown in Figure 6.Figure 5
The desired manipulator trajectory.Figure 6
The desired joints trajectories.The trajectory tracking processes controlled by the TVSMC algorithm and the RBF TVSMC algorithm are compared in Figures7–12 with the corresponding angle displacement in Figure 6.Control voltage generated by TVSMC.
(a)
Control voltage of jointA1
(b)
Control voltage of jointA2
(c)
Control voltage of jointA3Control voltage generated by RBF TVSMC.
(a)
Control voltage of jointA1
(b)
Control voltage of jointA2
(c)
Control voltage of jointA3Trajectory tracking by TVSMC.
(a)
Trajectory tracking responses of jointA1
(b)
Trajectory tracking responses of jointA2
(c)
Trajectory tracking responses of jointA3Trajectory tracking by RBF TVSMC.
(a)
Trajectory tracking responses of jointA1
(b)
Trajectory tracking responses of jointA2
(c)
Trajectory tracking responses of jointA3Angle displacement error responses controlled by TVSMC.
(a)
(b)
(c)Angle displacement error responses controlled by RBF TVSMC.
(a)
(b)
(c)According to the angle displacement responses in Figures7 and 8, it can be seen that the maximum control voltage generated by TVSMC algorithms is 10 V, while that by RBF TVSMC algorithms is no more than 2.5 V. And the control voltage generated by the RBF TVSMC algorithms is more stable than the that by TVSMC algorithm. When we focus on the control accuracy, significant differences exist in steady-state regime of the closed-loop system as seen from the angle trajectory tracking responses in Figures 9 and 10. Figure 10 has more accurate trajectory tracking responses than Figure 9. According to angle displacement error responses of joint A1 in Figures 11 and 12, we can see that the angle error of joint stable at origin is within 40 s based on TVSMC algorithm, but based on RBF TVSMC algorithm it is not later than 3 s. The average error responses controlled by the TVSMC algorithm are about 0.3 rad, while for the RBF SMC algorithm, the average error is less than 0.03 rad, which proves the precision improvement of the RBF TVSMC algorithm.


## 6. Conclusions

In this paper, the accurate tracking control problem of 2-DOF parallel manipulator in the presence of parameter variation and uncertain disturbance is investigated via the TVSMC technique. An effective method is provided for the parameter selection in the TVSMC framework. RBF NN based time-varying sliding mode control algorithm is proposed to address the global chattering problem and increase the control accuracy. Simulation results verify the effectiveness of the proposed algorithm.(
1
)This paper provides a trajectory algorithm of RBF neural network based time-varying sliding mode control for 2-DOF parallel manipulator system. And a compensator using RBF network is proposed to estimate the actuator nonlinearities and eliminate their upper boundaries. So that an RBF neural network controller can work properly requiring neither the evaluation of off-line dynamical model nor the time-consuming training process. The other article, “The Implementation to Servomotor Based on RBF Neural Network Equivalent to Sliding Mode Variable Structure Control,” provides a trajectory optimization algorithm for 2-DOF parallel manipulator system of servomotor which is assumed as one linear system. The algorithm of input control is divided into two parts: one is the sliding mode control with the linear control and the other is the nonlinear control of output of the RBF replacing the switching input.(2)This paper is further research based on the other article, and it involves the three joints’ trajectories but the other article just focuses on one joint.



---

*Source: 201712-2013-12-02.xml*