Fuzzy neural network control for mechanical arm based on adaptive friction compensation
Hui Yang^{1} , Saiyan Wu^{2} , Gang Huang^{3}
^{1, 2, 3}Department of Electronic Engineering, Taiyuan Institute of Technology University, Taiyuan, 030008, China
^{1}Corresponding author
Journal of Vibroengineering, Vol. 22, Issue 5, 2020, p. 10991112.
https://doi.org/10.21595/jve.2020.21176
Received 11 November 2019; received in revised form 25 February 2020; accepted 23 March 2020; published 15 August 2020
When tracking the trajectory of the mechanical arm in a joint space, the system is affected by friction nonlinearity, unknown dynamic parameters and external disturbances that makes it difficult to improve the control accuracy of the mechanical arm. To solve the above problems, this paper introduces LuGre friction model and designs a new joint space trajectory tracking controller based on the adaptive fuzzy neural network. The controller is capable to make the adaptive adjustment of the center and width of the basis function, can approach the nonlinear link having the LuGre friction on line, and uses the sliding mode control term to reduce the approximation error. The introduction of LuGre model into the mechanical arm system can more truly simulate the friction link of the system, which is of great significance to the high precision control of the mechanical arm. The Lyapunov method is used to prove the stability of the closedloop system. The simulation results show that the designed adaptive fuzzy neural network can effectively compensate the nonlinear links including friction without precise system parameters, and the controller has strong robustness to load changes, thus realizing highprecision trajectory tracking of the mechanical arm in joint space.
 The introduction of LuGre friction model can more truly simulate the friction nonlinear link of the mechanical arm system.
 The designed control strategy can quickly approach unknown nonlinear links including friction and has strong robustness to sudden load changes.
 The designed controller can realize highprecision trajectory tracking of the manipulator in joint space.
Keywords: trajectory tracking, fuzzy neural network, parameter uncertainty, friction nonlinearity, joint space.
1. Introduction
Mechanical arm has been widely used in industrial manufacturing, agriculture, medical and other fields. With the development of modern science and technology, the task of manipulator is becoming more and more diverse and complex. Its operation is not limited to repetitive positioning operation, and the demand for realtime tracking of given trajectory is increasing. It is of great practical significance to study the problem of trajectory tracking control and realize the highprecision tracking of the given trajectory of the manipulator to meet the increasingly complex and diverse task requirements. Because the manipulator is a highorder, nonlinear and strong coupling complex multiple input and multiple output system, and the dynamic and kinematic parameters of the manipulator are usually difficult to be obtained accurately, the problem of highprecision trajectory tracking control of the manipulator is more complex when multiple manipulators are needed to work together. All of them put forward higher demands to the design of highprecision trajectory tracking controller of manipulator.
Friction nonlinear link is a complex nonlinear link widely existing in the mechanical arm system, and it is a disturbance factor that cannot be ignored in highprecision trajectory tracking of the mechanical arm. Before compensating for the nonlinear links of a system, it is necessary to set up one exact friction model of the mechanical arm. At present, the commonly used friction models include Coulomb friction, viscous friction and Stribeck friction [17], which are not accurate enough to describe the friction process. The LuGre friction model [813] is a perfect dynamic friction model proposed by Cannudas et al., which can more accurately describe the complex dynamic and static characteristics in the friction process, such as sliding displacement, friction hysteresis, variable static friction, creep and Stribeck effect, etc. It is widely used in servo systems, automobile industry, etc.
Researchers have done a lot of work [1419] to compensate the nonlinearity and parameter uncertainty of mechanical arm dynamics using appropriate methods, so as to realize the accurate trajectory tracking of the mechanical arm. Reference [14] proposes a parameter recognition method for LuGre model on the basis of stablestate error analysis. Friction torque gets derived by stablestate error, and dynamic and static parameters are identified by a genetic algorithm. Experiment outcomes verify the efficiency of the identification approach. Reference [15] uses the improved genetic algorithm so as to recognize the dynamic parameters of the LuGre model, takes the control force as the target approximation value, and directly uses the displacement (or acceleration) and control torque output by the friction parameter identification system, which has the advantages of high speed, high identification accuracy and good robustness. Reference [16] proposes a new fast identification method for LuGre friction parameters. Solving LuGre's discrete recursion equation according to the speed input and friction output can identify dynamic and static parameters at one time with high identification accuracy. Because the bristle deformation in the LuGre friction model is difficult to be measured accurately, it is important to create a corresponding viewer for the sake of excluding it online, and then identify the parameters on this basis. In order to simplify the controller design, references [1719] adopt neural network control, fuzzy control and other methods to compensate the friction link, and achieve a good control effect. However, there is little research on the LuGre friction in the field of mechanical arm control. Therefore, the introduction of LuGre model into a mechanical arm system can more truly simulate the friction link of the system, which is of great significance for a high precision control of the mechanical arm.
In view of the above problems, the LuGre friction model was presented into the mechanical arm mechanism in this paper. Considering the sudden change of load, an adaptive fuzzy neural network controller was designed according to the characteristics of fuzzy neural network which included selflearning, selfadaptive and approximation to the arbitrary nonlinear function. The controller uses an adaptive fuzzy neural network with a 4layer structure to handle nonlinear links (including friction) in the mechanical arm system, and the center and width of the primary function can be selfadaptively adjusted. Finally, simulation experiments indicate the efficiency of the suggested controlling method.
2. System dynamics and preliminaries
2.1. System modeling
Without considering the system flexibility and using the Lagrange modeling method, the dynamic model of the mechanical arm could be presented as follows:
where $q\in {\mathbb{R}}^{n}$ is the rotation angle vector of the mechanical arm, $M\left(q\right)\in {\mathbb{R}}^{n\times n}$ means the inertia matrix, $C(q,\dot{q})\dot{q}\in {\mathbb{R}}^{n}$ is the vector containing the Coulomb force and centrifugal force, $G\left(q\right)\in {\mathbb{R}}^{n}$ is the gravity moment vector, $f\in {\mathbb{R}}^{n}$ is the LuGre friction moment vector, $d\in {\mathbb{R}}^{n}$ is the bounded disturbing moment vector, and $\tau \in {\mathbb{R}}^{n}$ is the joint driving moment vector. Inertia matrix $M\left(q\right)$ and Coulomb matrix and centrifugal matrix $C(q,\dot{q})\dot{q}$ meet the following characteristic of asymmetry:
The LuGre friction model is described as:
where ${z}_{0}$ is the average deformation of the contact surface bristles, ${\sigma}_{0}$ is the frictional rigidity parameter, ${\sigma}_{1}$ stands for the friction damping parameter, ${\sigma}_{2}$ means a variety of the friction parameter, ${F}_{c}$ means the Coulomb friction torque, ${F}_{s}$ stands for the maximum static frictional moment, ${\dot{q}}_{s}$ is the Stribeck speed; ${\lambda}_{f}$ means the friction parameter, which is related to the working environment in the actual LuGre model, it is usually used to reflect the influence of changes in the working environment on the friction torque.
2.2. Fuzzy neural network
As a combination of the fuzzy system and the artificial neural network, the fuzzy neural network has the characteristics of function approximation and selflearning. Traditional fuzzy control requires a large amount of prior knowledge in the process of determining the discourse domain. Inappropriate domain selection will greatly affect the performance of the controller. Compared with the fuzzy system, the fuzzy neural network has the advantage of selflearning, and can continuously adjust its parameters according to the reaction of this mechanism during the controlling process. It can simplify the domain selection process, and there is still a good control effect in the absence of prior knowledge of the system.
In the paper, a Mamdani type fuzzy neural network (FNN) with a fourlayer structure was applied so as to approximate the nonlinear link of the mechanical arm system. The width and center concerning the fuzzy basis function are variable. The framework of the fuzzy neural network was presented in Fig. 1.
Fig. 1. Fuzzy neural network structure diagram
The first layer means the input layer, in which ${x}_{i}(i=1,\dots ,{n}_{1})$ is the input of the FNN, where ${n}_{1}$ is the number of inputs.
The second layer is the fuzzy membership degree calculation layer of each input component, using a Gauss function:
where ${c}_{i}^{j}$, ${\kappa}_{i}^{j}\mathrm{}(i=1,\dots ,{n}_{1}$; $j=1,\dots ,{n}_{2})$ refer to the center and width concerning the fuzzy basis functions (FNNBF) respectively, and the center and width vectors of the basis function are as follows:
Among which ${N}_{f}={n}_{1}\times {n}_{2}$.
The third layer is used to match the antecedent of fuzzy rules, the completed calculation is:
The fourth layer means the output layer for clarity calculation:
where ${y}_{i}\mathrm{}(i=\mathrm{1,2},\dots ,{n}_{3})$ means the output of the FNN.
The matrix form of the fuzzy neural network can be obtained as:
where $y\in {\mathbb{R}}^{n3}$ is the output vector, $W=\left[\begin{array}{lll}{w}_{1}^{1}& \cdots & {w}_{1}^{n2}\\ \vdots & \ddots & \vdots \\ {w}_{n3}^{1}& \cdots & {w}_{n3}^{n2}\end{array}\right]\in {\mathbb{R}}^{n3\times n2}$ means the weight matrix, and $L={\left[{l}_{1},\dots ,{l}_{n2}\right]}^{T}\in {\mathbb{R}}^{n2}$ means the output base vector.
3. Controller design
3.1. Control objective
Assuming that the joint rotation angle of the mechanical arm $q$, and the angular velocity of the joint $\dot{q}$ are measurable values, the expected angle ${q}_{d}$ and its derivative ${\dot{q}}_{d}$ are given, other parameters of the system are unknown, an adaptive fuzzy neural network controller (AFNNC) is designed, and when $t\to \mathrm{\infty}$ to make sure that $q\to {q}_{d}$, $\dot{q}\to {\dot{q}}_{d}$.
3.2. Controller design
The angle error is defined as follows:
Then, the angular velocity error is:
And the sliding surface is:
where the constant $k>0$ is an adjustable parameter. The added intermediate variable ${\dot{q}}_{r}$ is defined as:
Taking the derivation of Eq. (11), it yields:
Substituting Eqs. (812) into Eq. (1), it yields:
Eq. (13) can be rewritten as:
where $F$ is the nonlinear function which includes LuGre friction links. The fuzzy neural network mentioned above is used for approximation:
where ${W}^{\mathrm{*}}$ and ${L}^{\mathrm{*}}=L\left({c}^{\mathrm{*}},{\kappa}^{\mathrm{*}},s\right)$ are respectively the ideal weight matrix and output base vector of the FNN, $\epsilon $ means the approximation error vector, and $s$ is the input of the fuzzy neural network. The true value ${W}^{\mathrm{*}}$, ${c}^{\mathrm{*}}$, ${\kappa}^{\mathrm{*}}$ is unknown, and its estimated value is $\widehat{W}$, $\widehat{c}$, $\widehat{\kappa}$, the estimated errors are defined respectively as $\stackrel{~}{W}={W}^{\mathrm{*}}\widehat{W}$, $\stackrel{~}{c}={c}^{\mathrm{*}}\widehat{c}$, $\stackrel{~}{\kappa}={\kappa}^{\mathrm{*}}\widehat{\kappa}$, $\stackrel{~}{L}=L\left({c}^{\mathrm{*}},{\kappa}^{\mathrm{*}},s\right)L(\widehat{c},\widehat{\kappa},s)$, $\stackrel{~}{L}$ can be described as:
where ${l}_{c}={\left.\frac{\partial L}{\partial c}\right}_{c=\widehat{c}}\in {\mathbb{R}}^{{n}_{2}\times {N}_{f}}$, ${l}_{\kappa}={\left.\frac{\partial L}{\partial \kappa}\right}_{\kappa =\widehat{\kappa}}\in {\mathbb{R}}^{{n}_{2}\times {N}_{f}}$, ${o}_{n}$ is the residue.
By combining Eq. (15) and Eq. (16), the approximation error of the fuzzy neural network to nonlinear links is obtained:
$\mathrm{}\mathrm{}\mathrm{}\mathrm{}\mathrm{}\mathrm{}=\stackrel{~}{W}\widehat{L}+\widehat{W}{l}_{c}\stackrel{~}{c}+\widehat{W}{l}_{\kappa}\stackrel{~}{\kappa}+\mathrm{\Delta}F,$
where:
Assuming that $\mathrm{\Delta}F={\left[\mathrm{\Delta}{F}_{1},\dots ,\mathrm{\Delta}{F}_{n}\right]}^{T}$ is bounded, and $d={\left[{d}_{1},\dots ,{d}_{n}\right]}^{T}$ is an unknown bounded disturbance vector, then vector $\mathrm{\Delta}F+d$ is bounded, thus there is one active definite diagonal matrix $\mathrm{\Delta}{F}^{\mathrm{*}}=\mathrm{d}\mathrm{i}\mathrm{a}\mathrm{g}\left(\mathrm{\Delta}{F}_{1}^{\mathrm{*}},\dots ,\mathrm{\Delta}{F}_{n}^{\mathrm{*}}\right)\in {\mathbb{R}}^{n\times n}\text{,}$ which meets $0<\left\mathrm{\Delta}{F}_{i}+{d}_{i}\right\le \mathrm{\Delta}{F}_{i}^{\mathrm{*}}\text{,}$$i=1,\dots ,n$.
The control rate is taken is:
where ${K}_{d}$ and ${K}_{r}$ are the positive definite diagonal matrices, $\widehat{W}\widehat{L}$ is the output of the fuzzy neural network to approximate nonlinear functions $F$. According to Eq. (14) and Fig. 2, $\widehat{W}\widehat{L}$ is actually a feedforward term. By promptly approximating the unknown nonlinear links, the influence of system nonlinearity can be set to improve the controller’s ability to cope with the unknown nonlinear problems. ${K}_{d}s{K}_{r}\mathrm{s}\mathrm{g}\mathrm{n}\left(s\right)$ is the approximation rate, which can suppress the approximation error of the FNN and the influence of unknown disturbance. The parameter selfadaptive law of the FNN is selected as follows:
where ${\mathrm{\Gamma}}_{w}$, ${\mathrm{\Gamma}}_{c}$, ${\mathrm{\Gamma}}_{\kappa}$ are the welldimensional positive definite diagonal matrices.
4. Stability analysis
Theorem 1: For the mechanical arm system where the Eqs. (1) and (3) described, the definition of error is described in Eqs. (8) and (10). The fuzzy neural network controller which is made up of the control rate of Eq. (19), and the parameter adaption rate of Eq. (20), if the conditions of equation ${K}_{r}\mathrm{\Delta}{F}^{\mathrm{*}}\ge 0$ are met, the closedloop system tends to be asymptotically steady.
Substantiation: Taking the Lyapunov function, the following formula is got:
Taking the derivation of Eq. (21), one yields:
Substituting Eqs. (14), (15), and (19), one yields:
According to Eq. (2), substituting Eqs. (17) and (20) into Eq. (23), one yields:
Because of the property:
Therefore:
As for $i=1,\dots ,n$, there is $\left\mathrm{\Delta}{F}_{i}+{d}_{i}\right\le \mathrm{\Delta}{F}_{i}^{\mathrm{*}}$, Eq. (26) can be rewritten as:
$\mathrm{}\mathrm{}\mathrm{}\mathrm{}\mathrm{}\mathrm{}={s}^{T}{K}_{d}s{s}^{T}{K}_{r}\mathrm{s}\mathrm{g}\mathrm{n}\left(s\right)+{s}^{T}\mathrm{\Delta}{F}^{\mathrm{*}}\mathrm{s}\mathrm{g}\mathrm{n}\left(s\right)={s}^{T}{K}_{d}s{s}^{T}\left({K}_{r}\mathrm{\Delta}{F}^{\mathrm{*}}\right)\mathrm{s}\mathrm{g}\mathrm{n}\left(s\right).$
Due to ${K}_{r}\mathrm{\Delta}{F}^{\mathrm{*}}\ge 0$,we get:
As it can be seen from the lemma Barbalat, when $t\to \mathrm{\infty}$, $s\left(t\right)\to 0$. According to the Eq. (10), $s=\dot{e}+ke$ and $k>0$, it is found that $e\left(t\right)\to 0$ and $\dot{e}\left(t\right)\to 0$ at $t\to \mathrm{\infty}$, the proof is completed.
The framework of the adaptive FNN controller is presented in Fig. 2.
Fig. 2. Framework of adaptive FNN controller
5. Numerical simulation
AFNNC and neural network algorithm (RBF) are compared and simulated in MATLAB2019b environment. The planar twojoint manipulator is taken as the object, and shown in the model view in Fig. 3. Among them, ${m}_{1}$, ${m}_{2}$, and ${m}_{3}$ are the masses of two connecting rods and the load respectively, ${l}_{1}$ and ${l}_{2}$ are the sizes of two connecting rods respectively, and ${l}_{1}^{g}$ and ${\mathrm{}l}_{2}^{g}$ are the distances of the centroid. The parameters of the mechanical arm are selected as follows: ${m}_{1}=$4 kg, ${m}_{2}=$3 kg, ${l}_{1}=$1 m, ${l}_{2}=$1 m, ${l}_{1}^{g}=$ 0.5 m, ${l}_{2}^{g}=$0.5 m; $q={\left[{q}_{1},{q}_{2}\right]}^{T}$ is the joint angle vector of the robotic modulator, and the initial values are taken as: $q\left(0\right)=[\mathrm{0,0}{]}^{T}$, $\dot{q}\left(0\right)=[\mathrm{0,0}{]}^{T}$.
The desired trajectory of the joint angle of the robotic modulator is taken as:
The disturbing moment subjecting the mechanical arm system is taken as:
The parameters within the LuGre Friction model are selected as: ${\sigma}_{0}=$10000 Nm, ${\sigma}_{1}=$35 Nm, ${\sigma}_{2}=$0.2 N⋅m⋅s/rad, ${F}_{c}=$0.3 Nm, ${F}_{s}=$0.45 Nm, ${\dot{q}}_{s}=$ 0.005 Nm.
Fig. 3. Industrial mechanical arm model of two connecting rods
The parameters of the joint space trajectory tracking controller based on the fuzzy neural network are selected as follows: parameter $k$ is related to the steady state accuracy of the system, a large overshoot may occur when the $k$ value is too large, thus this number shall take a moderate value; parameter ${K}_{d}$ significantly affects the convergence speed of the sliding mode surface and the steadystate accuracy of the system, thus this parameter shall be a large value; parameter ${K}_{r}$ can restrain the approximation error of the fuzzy neural network and system disturbance, thus this parameter shall be a moderate value. The specific selection of value is as follows: $k=$ 10, ${K}_{r}=\mathrm{d}\mathrm{i}\mathrm{a}\mathrm{g}\left(\mathrm{20,10}\right)$, ${K}_{d}=\mathrm{d}\mathrm{i}\mathrm{a}\mathrm{g}\left(\mathrm{200,80}\right)$.
Since the control quantity contains discontinuous terms ${K}_{r}\mathrm{s}\mathrm{g}\mathrm{n}\left(s\right)$, it will inevitably lead to buffeting. In order to suppress buffeting, a hyperbolic tangent function $\mathrm{t}\mathrm{a}\mathrm{n}\mathrm{h}\left(\mathrm{s}\right)$ is adopted instead of the symbolic function $\mathrm{s}\mathrm{g}\mathrm{n}\left(s\right)$ in the simulation. In the following simulations, all the controller parameters are consistent with the above simulation conditions except for the friction parameter ${\lambda}_{f}$ of the LuGre friction model.
$s$ is regarded as the input of the FNN. Because of $s\in {\mathbb{R}}^{2}$, the number of inputting and outputting layers of the fuzzy neural network is selected as: ${n}_{1}=$ 2, ${n}_{3}=$ 2. The number of fuzzy membership functions for each input is ${n}_{2}=\text{7,}$ which corresponds to $\{NL,NM,NS,ZO,PS,PM,PL\}$ respectively.
Since the fuzzy neural network contains parameters $\widehat{W}$, $\widehat{c}$, $\widehat{\kappa}$ and selfadaptation rate parameters ${\mathrm{\Gamma}}_{w}$, ${\mathrm{\Gamma}}_{c}$, ${\mathrm{\Gamma}}_{\kappa}$, it is necessary to select appropriate parameters for better controller performance. As a result, the selection of above parameters was first studied.
5.1. Influence of fuzzy neural network parameters on control performance
5.1.1. Influence of initial parameter value
The influence of the initial value $\widehat{W}\left(0\right)$ of the weight matrix on the control performance is studied firstly. Three sets of simulation for the different initial values $\widehat{W}\left(0\right)$ are compared in cases of zero load (${m}_{3}=\mathrm{}$0 kg) on the mechanical arm, and the friction parameter $\left({\lambda}_{f}=\text{1}\right)$ is constant. Case 1: All elements of $\widehat{W}\left(0\right)$ are equal to 0; Case 2: All elements of $\widehat{W}\left(0\right)$ are equal to 10; Case 3: All elements of $\widehat{W}\left(0\right)$ are set to a random number between 0 and 10. The initial values of the other parameters and the renewal law parameters are the same: ${c}_{i}^{j}\left(0\right)=2j8\text{,}$${\kappa}_{i}^{j}\left(0\right)=\text{2,}$${\mathrm{\Gamma}}_{w}=5\times 1{0}^{3}I$, ${\mathrm{\Gamma}}_{c}=50I$, ${\mathrm{\Gamma}}_{x}=50I$, where $I$ is the appropriate dimensional unit matrix.
The trajectory tracking errors of the mechanical arm in three cases are shown in Fig. 4. In case of the different initial values, the convergence time, overshoot and steady state errors of the system are almost indifferent. It means that the selection of the initial value $\widehat{W}\left(0\right)$ of the output weight has no obvious effect on the controller performance. The main reason is that $\widehat{W}$ can be updated in the real time according to the system response. As a result, the selection of $\widehat{W}\left(0\right)$ is quite simple. In order to avoid the problem of excessive control amount at the initial time, it is required just to select a relatively moderate value of $\widehat{W}\left(0\right)$.
Then the influence of the initial value selection of the basis system function was studied. The simulation cases of the following three different initial values are compared. Case 1: ${c}_{i}^{j}\left(0\right)=2j\text{8}$, ${\kappa}_{i}^{j}\left(0\right)=\text{2}$; Case 2: ${c}_{i}^{j}\left(0\right)=j4$, ${\kappa}_{i}^{j}\left(0\right)=1$; Case 3: ${c}_{i}^{j}\left(0\right)=0.5j2$, ${\kappa}_{i}^{j}\left(0\right)=$ 0.5.
Fig. 4. Trajectory tracking errors of initial values of different FNN weight matrices
a) Joint 1
b) Joint 2
Fig. 5. Trajectory tracking errors of initial values of different FNN fuzzy basis functions
a) Joint 1
b) Joint 2
The trajectory tracking errors obtained in these three cases are shown in Fig. 5. Similar to the various initial value selection of the weight matrices $\widehat{W}\left(0\right)$, the initial value selection of the basis function does not differ significantly in controller performance. As a result, compared with the fuzzy logic and other methods, the domain selection in the process of constructing the controller using fuzzy neural network is relatively simple, and only needs to be selected according to the experience. The center and width $c$, $\kappa $ of the fuzzy set function can track the system response for online adjustment.
5.1.2. Influence of adaptive law parameters
The influence of adaptive law parameters on controller performance was analyzed as follows. Firstly, the different values of ${\mathrm{\Gamma}}_{w}$ are compared and simulated. Case 1: ${\mathrm{\Gamma}}_{w}=1\times 1{0}^{3}I$; Case 2: ${\mathrm{\Gamma}}_{w}=5\times 1{0}^{3}I$; Case 3: ${\mathrm{\Gamma}}_{w}=2\times 1{0}^{4}I$. The trajectory tracking errors of the three cases are presented in Fig. 6. The selection of ${\mathrm{\Gamma}}_{w}$ influences both the convergence speed and steadystate errors of tracking. When choosing a smaller value (Case 1), the error convergence is slower, and the steadystate error is larger. The reason might be in that in the control process, too small ${\mathrm{\Gamma}}_{w}$ restricts the approximation performance of the FNN to the unknown nonlinear links. At this time, the fuzzy neural network has a limited ability to deal with nonlinear links. When choosing a larger value (Case 3), the error converges quickly, and the steadystate error is small. But when ${\mathrm{\Gamma}}_{w}$ is too large, a certain overshoot occurs.
Fig. 6. Trajectory tracking errors of different FNN updating law parameters ${\mathrm{\Gamma}}_{w}$
a) Joint 1
b) Joint 2
Different adaptive law parameters ${\mathrm{\Gamma}}_{c}$, ${\mathrm{\Gamma}}_{\kappa}$ of the fuzzy basis function are simulated and analyzed in this paper. Case 1: ${\mathrm{\Gamma}}_{c}={\mathrm{\Gamma}}_{\kappa}=\text{200}$; Case 2: ${\mathrm{\Gamma}}_{c}={\mathrm{\Gamma}}_{\kappa}=\text{50}$; Case 3: ${\mathrm{\Gamma}}_{c}={\mathrm{\Gamma}}_{\kappa}=10$. The trajectory tracking errors of the three cases are presented in Fig. 7. It illustrates that the values of ${\text{\Gamma}}_{\text{c}}\text{,}{\text{\Gamma}}_{\text{\kappa}}$ have no significant impact on the steadystate performance, and its influence is mainly reflected in the joint commutation of the mechanical arm and the jumping time of friction force. So, the robustness of the controller to abrupt nonlinearity can be improved only by selecting a suitable value of ${\mathrm{\Gamma}}_{c}$, ${\mathrm{\Gamma}}_{\kappa}$.
In conclusion, the selection method of the FNN parameters is as follows: In order to avoid the problem of excessive control amount at the initial time, $\widehat{W}\left(0\right)$ shall not be too large; In the selection process of ${c}_{i}^{j}$, ${\kappa}_{i}^{j}$, appropriate values can be selected according to the experience; Parameter ${\mathrm{\Gamma}}_{w}$ is related to the approximation performance of the fuzzy neural network to the nonlinear function, as well as to the steadystate error, thus a larger value shall be taken; The selection of parameters ${\mathrm{\Gamma}}_{c}$, ${\mathrm{\Gamma}}_{\kappa}$ will affect the system robustness to sudden interference, thus a moderate value shall be taken. As a result, the initial values of the FNN can be selected as: ${c}_{i}^{j}=2j8$, ${\kappa}_{i}^{j}=2$, $i=$ 1, 2, $j=$ 1,…,7, and:
The adaptive law parameters can be selected as: ${\mathrm{\Gamma}}_{w}=5\times 1{0}^{3}I$, ${\mathrm{\Gamma}}_{c}=50I$, ${\mathrm{\Gamma}}_{\kappa}=50I$.
Fig. 7. Trajectory tracking errors of different FNN updating law parameters ${\mathrm{\Gamma}}_{c}$, ${\mathrm{\Gamma}}_{\kappa}$
a) Joint 1
b) Joint 2
5.2. Robust performance
To further verify the tracking performance of the controller, the robust performance of the control strategy and the approximation performance of FNN to the nonlinear function $F$, two algorithms: AFNNC and RBF are compared.
The absolute error integral is set as the error index function: ${J}_{IAE}={\int}_{0}^{T}e\left(i\right)dt$. The function of the system friction coefficient changing with time is: ${\lambda}_{f}=4+2\mathrm{s}\mathrm{i}\mathrm{n}\left(6\pi t\right)$. The initial load is ${m}_{3}=$ 2 kg; when $t=$ 4 s the load changes to 3 kg; when $t=$ 14 s the load changes again to 1 kg. The simulation outcomes are shown in Figs. 89.
Fig. 8. Comparison of tracking errors between FNN and RBF when friction coefficient is timevarying and load is mutation
a) RBF tracking error (Joint 1)
b) AFNNC tracking error (Joint 1)
c) RBF tracking error (Joint 2)
d) AFNNC tracking error (Joint 2)
The two control strategies are both based on the combination of sliding mode control and compensation for nonlinear link $F$. In order to verify the effectiveness of the algorithm as objectively as possible, the same sliding surface and approach law are adopted for the RBF controller. And the selection of the center and width of the RBF controller’s basis function is the same as the initial value of the FNN basis function parameter. The only difference between the two controllers is that the basis function center and width of RBF are fixed, while the basis function center and width of fuzzy neural network in AFNNC controller can be adjusted online according to the system response.
The tracking errors of the system can both converge quickly under the two control algorithms. However, the convergence speed of the errors under the AFNNC control strategy is slightly faster than that of the RBF controller, and the steadystate error and the error jump at the time of load mutation is also smaller (Fig. 8). Since the two control strategies are compensated by approximating the nonlinear link $F$ and the feedforward, the approximation performance of the nonlinear link $F$ affects the control performance directly.
The approximation contrast and error of the nonlinear function $F$ of the system using FNN and RBF are shown in Fig. 9. Both compensation strategies can realize the effective compensation of the nonlinear function $F$. When the load jumps $(t=$ 4 s, $t=$ 14 s$)$, $F$ produces the corresponding jumps. (Fig. 9(a) and 9(c)). Since the $c$, $\kappa $ of the fuzzy basis function adopted by the FNN can be dynamically adjusted according to the system response, the convergence speed of the FNN approximation error is faster than that of the RBF. Throughout the process, the approximation error of FNN is smaller than that of the RBF (see Fig. 9(b) and 9(d)).
Fig. 9. Comparison of compensation effects between FNN and RBF when the friction coefficient is timevarying and load is mutation
a)$F$ and its approximation (Joint 1)
b) Approximation error of $F$ (Joint 1)
c)$F$ and its approximation (Joint 2)
d) Approximation error of $F$ (Joint 2)
The error comparison between the two control strategies is shown in Table 1. Benefiting from the good approximation performance of FNN, the tracking accuracy of the system is higher, and the robustness is better when adopting the AFNNC control strategy.
Table 1. Comparison of system tracking errors when friction and load change
Tracking error comparison at steadystate and jump time


Steadystate error

Jump error when $t=$ 4 s

Jump error when $t=$ 14 s


Joint 1

Joint 2

Joint 1

Joint 2

Joint 1

Joint 2


RBF

2×10^{4} rad

2×10^{4} rad

8×10^{4} rad

5×10^{4} rad

1.3×10^{3} rad

1.3×10^{3} rad

AFNNC

1×10^{4} rad

1×10^{4} rad

3×10^{4} rad

2×10^{4} rad

0.6×10^{3} rad

0.6×10^{3} rad

Error index comparison


Joint 1 ${J}_{IAE}$

Joint 2 ${J}_{IAE}$


RBF

2.0263×10^{3} rad (0.1161)

1.8644×10^{3} rad (0.1068)


AFNNC

8.6735×10^{4} rad (0.0497)

5.4568×10^{4} rad (0.0313)

6. Conclusions
In this paper, the LuGre friction model was introduced into the mechanical arm system. An adaptive fuzzy neural network controller was designed under the condition that the system dynamics parameters were unknown, and the steadiness of the mechanism was proved by Lyapunov method. The simulation results show that the fuzzy neural network can approximate the nonlinear link quickly and accurately. In case of changes in load and working environment, the control strategy proposed in this paper can realize highprecision trajectory tracking of the mechanical arm in the joint space, and it has good robustness to load mutation.
Acknowledgements
Supported by the Science and Technology Innovation Projects of Higher Education Institutions in Shanxi (No. 2019L0934). Supported by the Academic Science Foundation of Taiyuan Institute of Technology (No. 2018LG01). Supported by the Academician Workstation of Taiyuan Institute of Technology (TYSYSGZZ201903).
References
 Marton L., Lantos B. Modeling, identification, and compensation of stickslip friction. IEEE Transactions on Industrial Electronics, Vol. 54, Issue 1, 2007, p. 511521. [Publisher]
 Owen W. S., Croft E. A. Reduction of stickslip friction in hydraulic actuators. IEEE/ASME Transactions on Mechatronics, Vol. 8, Issue 3, 2003, p. 362371. [Publisher]
 Bigras P. Reduced nonlinear observer for bounded estimation of the static friction model with the Stribeck effect. Systems and Control Letters, Vol. 58, Issue 2, 2009, p. 119123. [Publisher]
 Márton L., Lantos B. Control of mechanical systems with Stribeck friction and backlash. Systems and Control Letters, Vol. 58, Issue 2, 2009, p. 141147. [Publisher]
 Moshkovich A., et al. Stribeck Curve Under Friction of Copper Samples in the Steady Friction State. Tribology Letters, Vol. 37, Issue 3, 2010, p. 645653. [Publisher]
 Shang W., Cong S., Zhang Y. Nonlinear friction compensation of a 2DOF planar parallel manipulator. Mechatronics, Vol. 18, Issue 7, 2008, p. 340346. [Publisher]
 Caprino S., Cavallaro G., Marchioro C. On a microscopic model of viscous friction. Mathematical Models and Methods in Applied Sciences, Vol. 17, Issue 9, 2007, p. 13691403. [Publisher]
 Zhong C. W., Xiang J., Wei W., et al. Simple nonlinear observer based dynamic LuGre friction compensation. Journal of Zhejiang University, Vol. 46, Issue 4, 2012, p. 764769. [Search CrossRef]
 Min L. I., Wang J., Xiao K., et al. Sliding mode control of robot with dynamic friction and dead zone compensation using fuzzy logic and neural network. Journal of Chongqing University, Vol. 36, Issue 6, 2013, p. 1825. [Search CrossRef]
 Yue F., Li X., Cheng C., et al. Adaptive integral backstepping sliding mode control for optoelectronic tracking system based on modified LuGre friction model. International Journal of Systems Science, Vol. 48, Issue 4, 2017, p. 33743381. [Publisher]
 Zhou X., et al. Improved cerebellar model articulation controller based on the compound algorithms of credit assignment and optimized smoothness for a threeaxis inertially stabilized platform. Mechatronics, Vol. 53, 2018, p. 95108. [Publisher]
 Han S. I., Lee K. S., Min G. P., et al. Robust adaptive dead zone and friction compensation of robot manipulator using RWCMAC network. Journal of Mechanical Science and Technology, Vol. 25, Issue 6, 2011, p. 15831594. [Publisher]
 Sun Y. H., Sun Y., Wu C. Q., et al. Stability analysis of a controlled mechanical system with parametric uncertainties in LuGre friction model. International Journal of Control, Vol. 91, Issue 4, 2018, p. 770784. [Publisher]
 Wang X., Wang S. High performance adaptive control of mechanical servo system with LuGre friction model: identification and compensation. Journal of Dynamic Systems Measurement and Control, Vol. 134, Issue 1, 2012, p. 1121. [Publisher]
 Zheng Y. Q. Parameter Identification of LuGre friction model for robot joints. Advanced Materials Research, Vol. 479, Issue 481, 2012, p. 10841090. [Publisher]
 Wu X. D., Zuo S. G., Lei L., et al. Parameter identification for a LuGre model based on steadystate tire conditions. International Journal of Automotive Technology, Vol. 12, Issue 5, 2011, p. 671685. [Publisher]
 Zhou X., Zhao B., Liu W., et al. Compound scheme on parameters identification and adaptive compensation of nonlinear friction disturbance for the aerial inertially stabilized platform. ISA Transactions, Vol. 67, 2017, p. 293305. [Publisher]
 Zhi Hao X.U., Sheng L. I., Zhang R. L., et al. Fuzzyneuralnetwork control for robot manipulators with LuGre friction model. Control and Decision, 2014, p. 493505. [Search CrossRef]
 Khayati K., Bigras P., Dessaint L. A. LuGre modelbased friction compensation and positioning control for a pneumatic actuator using multiobjective outputfeedback control via LMI optimization. Mechatronics, Vol. 19, Issue 4, 2009, p. 535547. [Publisher]
Cited By
IEEE Access
Qiaolian Xie, Qiaoling Meng, Qingxin Zeng, Yuanjie Fan, Yue Dai, Hongliu Yu

2021

Communications in Computer and Information Science
Ailin Xue, Xiaoli Li, Chunfang Liu, Xiaoyue Cao

2021
