1. Introduction
With the development of automation and intelligent manufacturing, the application scope of robots and automation equipment is becoming increasingly extensive. As integral components of robots, robotic arms are widely utilized in various fields, such as production, manufacturing, healthcare, aviation, logistics, and agriculture [
1]. Trajectory tracking of robotic arms is a crucial technique in robot control, enabling them to accurately follow a given path in space, thereby achieving high-quality manufacturing and automation operations. Currently, trajectory tracking control of robotic arms faces challenges such as strong nonlinearity, high uncertainty, and complexity. Therefore, researching high-performance trajectory tracking control strategies for robotic arms is of significant importance.
PID control has the advantages of simplicity, ease of tuning, and ease of implementation, making it a popular strategy in the field of robotic arm control [
2,
3,
4]. However, PID control also suffers from the disadvantages of limited adaptability to nonlinear systems, poor robustness to parameter variations and uncertainties, and difficulty in dealing with delays and time lags. Therefore, scholars both domestically and internationally have proposed many other methods for trajectory tracking control of robotic arms, such as robust control [
5], adaptive control [
6], fuzzy control [
7], iterative learning control [
8], neural network control [
9], sliding mode control [
10], and backstepping control [
11]. Sliding mode control is widely applied in the field of robot control due to its high tracking accuracy, strong robustness, and low requirement for system modeling. A terminal sliding mode control method was proposed by Zhao et al. [
12], which can stabilize the system state to an equilibrium point within finite time without requiring precise robot dynamics models. This approach offers faster computation speed and a simpler controller structure, but the speed of convergence still needs to be improved. To address this problem, Doan et al. [
13] proposed a fast terminal sliding mode control method that combines fast terminal sliding surfaces with the super-twisting control law. This combination results in smoother control torque, enabling faster and more accurate compensation for external disturbances and nonlinear elements. It ensures system stability and robustness. The method further improves the convergence speed but suffers from the singularity problem. For the singularity problem, Jin et al. [
14] introduced a nonsingular terminal sliding mode control method that combines nonsingular terminal sliding surfaces with time delay estimation. It achieves fast convergence using nonsingular terminal sliding mode and implements model-free control using time delay estimation. This method solves the singularity problem, is easy to implement, and has high robustness and accuracy, but the convergence speed is relatively slow. Considering the two main issues of convergence speed and singularity, a fast nonsingular terminal sliding mode control method was proposed by Liang et al. [
15]. It utilizes a second-order fast nonsingular terminal sliding mode to achieve rapid convergence, avoid singularities, and reduce chattering. Furthermore, an artificial neural network is introduced to handle model uncertainties and disturbances without the need for any prior knowledge. The method can achieve finite-time convergence with a fast convergence rate while avoiding the singularity problem.
However, sliding mode control suffers from chattering, which can degrade control performance and even lead to system instability. To address this issue, the reaching law approach is often employed to adjust and control the system states. A new exponential reaching law was proposed by Wang et al. [
16], which incorporates the system state variable to relate the convergence speed with the variation of the system state. This approach enhances the dynamic performance and robustness of the system, effectively suppressing the phenomenon of oscillations. This method speeds up the convergence of the system and allows the system to approach the sliding mold surface faster, yet it may also lead to high-frequency oscillations and overshoot phenomena, resulting in degradation of control performance. To address this problem, Xia et al. [
17] combined a double-power reaching law with an improved terminal sliding mode. The double-power reaching law ensures that the system can reach the sliding surface within a finite time from any initial state, while the improved terminal sliding surface ensures that position and velocity errors approximate zero. This method can balance the convergence speed and stability of the system within a certain range, ensuring faster convergence speed and effectively attenuating the jitter vibration phenomenon of the robotic arm. It achieves high tracking accuracy and a strong anti-interference ability, but it also leads to a relatively complex parameter adjustment. Additionally, Ba et al. [
18] designed a composite reaching law that combines the cotangent function and the exponential reaching law. This approach shortens the reaching time to the sliding surface and reduces the velocity near the sliding surface. It makes the convergence process smoother and avoids the problem of high-frequency jittering caused by excessive speed when approaching the sliding mold surface. In order to solve the jitter problem caused by the sign function, Zhang et al. [
19] designed an improved multiple-power reaching law by replacing the sgn functions with the sigmoid functions, utilizing the smoothing property of the sigmoid functions to reduce the jitter and vibration caused by the sgn functions. This method enhances the control quality and convergence speed of sliding mode control, exhibiting strong robustness and versatility.
Neural network control has the advantages of high precision, low latency, and strong adaptability, making it highly advantageous in nonlinear control, and extensive research has been conducted in this area [
20]. Liu et al. [
21] studied a robot neural network control system based on a genetic algorithm. The genetic algorithm is used to optimize the neural network, simplifying the network structure and improving tracking effectiveness. However, the method has high computational complexity and requires a long optimization time. He and Dong [
22] proposed a fuzzy neural network learning algorithm to identify uncertain system models. This method does not require prior knowledge or a sufficient amount of observation data about uncertainties. Impedance learning is introduced to address the interaction between the robot and the environment. This control method ensures the tracking performance of the system under state constraints and uncertainties, but the design and parameter tuning of the fuzzy neural network are relatively complex. Tlijani et al. [
23] presented a non-singular fast terminal sliding mode control strategy based on a wavelet neural network observer. A wavelet observer is designed using the online approximation capability of neural networks to estimate modeling errors, external disturbances, and uncertainties in joint robots. This control method can overcome the jitter vibration phenomenon and ensure the accuracy and stability of the position control of articulated robots, but the design and parameter adjustment of the observer are relatively complex and sensitive to the modeling and observation errors of the system. Several of the above methods are relatively complex; thus, Sun et al. [
24] designed a neural network control method based on radial basis functions, which utilizes neural networks to approximate the unknown model of the robot and deal with the uncertainty of the system with good tracking performance and small tracking error. Compared with other neural network control methods, this method has a fast training speed and relatively simple parameter adjustment. On this basis, Fan et al. [
25] developed a sliding mode controller based on RBF neural networks. This controller utilizes the sliding mode control algorithm to counteract external disturbances and employs the radial basis function neural network control algorithm to address system uncertainties. The combination of the two control methods ensures a relatively simple controller structure while improving tracking accuracy and robustness.
To address the problem of decreased trajectory tracking accuracy in robotic arms caused by modeling errors and external disturbances, this paper proposes a neural network terminal sliding mode control algorithm based on a novel reaching law and an improved salp swarm algorithm. Firstly, a fast nonsingular terminal sliding mode surface is selected to achieve finite-time convergence and avoid singularity issues. We propose a novel multi-power reaching law, replacing the sign functions with saturation functions to reduce system chattering. Secondly, considering the capability of RBF neural networks to approximate any continuous functions, we utilize RBF neural networks to estimate model uncertainties and external disturbances. An adaptive law is designed to automatically adjust the neural network weights. Furthermore, we propose an adaptive leader salp swarm algorithm to optimize the parameters of the controller, thereby improving the effectiveness of trajectory tracking control. Finally, we conduct simulations of ABB six-axis robotic arm trajectory tracking control in the Matlab environment to validate the effectiveness and reliability of the proposed control method. The main contributions of this paper are as follows:
A novel reaching law is proposed, which utilizes the tanh and sigmoid functions to replace the sign functions in traditional multi-power reaching law. This enables the system state to slide rapidly and accurately onto the sliding surface, suppressing oscillations and enhancing system stability and disturbance rejection capabilities.
An improved salp swarm algorithm is proposed, incorporating adaptive inertia weight factors and adaptive adjustment strategies to enhance convergence speed, overall performance, and solution accuracy.
A novel neural network terminal sliding mode controller is proposed and applied to the trajectory tracking control of an ABB robot. The superior control performance of the controller is verified through simulation and experimental validation.
The organization of this paper is as follows:
Section 2 presents the dynamic model of the robot and the design of the ALSSA-RBFTSM controller.
Section 3 provides the simulation and experimental results.
Section 4 presents the conclusions of this paper.
2. Controller Design
2.1. Robotic Arm Dynamics Model
The dynamic model of the robotic arm can be obtained using the Lagrange method [
26], as follows:
where
represents the joint angles,
represents the joint angular velocities,
represents the joint angular accelerations,
represents the inertia matrix,
represents the Coriolis and centrifugal force matrix,
represents the gravity matrix,
represents the friction matrix,
represents the control input matrix, and
represents the external disturbance matrix.
In practice, obtaining an accurate dynamic model of a robotic arm is challenging, and modeling errors can degrade control performance and reduce trajectory tracking accuracy. Therefore, considering the modeling errors in the dynamic modeling of the robotic arm, the dynamic model can be divided into a deterministic part and an uncertain part [
27]. Thus,
,
, and
can be represented as:
The aggregate uncertainty arising from modeling errors and external disturbances can be represented as:
In this case, the dynamic equation can be reexpressed as:
2.2. Design of Fast Nonsingular Terminal Sliding Mode Control
Define the system tracking error as:
where
is the actual position vector and
is the desired position vector.
The FNTSM surface [
28] is designed as:
where
,
,
.
The derivative of the sliding mode surface function can be obtained as:
Without considering the compound disturbance of the system, and letting
, the equivalent control law can be obtained as:
The traditional multi-power reaching law [
29] is as follows:
where
,
,
,
,
,
, and the value of
is taken as follows:
when the system state satisfies the condition
, and the reaching law is mainly influenced by
. When the system state satisfies the condition
, the reaching law is mainly influenced by
. The value of
ensures that the system can adaptively change the exponential parameter in the reaching law, resulting in a faster convergence rate.
Considering the chattering issue caused by the sign functions, this paper proposes improvements to the multi-power reaching law. The sigmoid function and tanh function have the advantages of continuity and fast response. As the system state approaches the sliding surface, the output of the tanh function gradually saturates, resulting in a slower convergence speed. When the system state is far from the sliding surface, the convergence speed of the sigmoid function is relatively fast. Therefore, the sigmoid function is used to replace the first sign function in the multi-power reaching law, the tanh function is used to replace the second sign function, and a nonlinear function is designed to replace the third sign function. This helps avoid the control torque chattering caused by the sign functions in sliding mode control, allowing the system to enter the sliding surface more smoothly and quickly. The designed nonlinear function is as follows:
The newly designed reaching law in this paper is as follows:
when the system state satisfies the condition
, the reaching law is mainly influenced by
, leading to a reduction in the adjustment magnitude of the system, thereby suppressing the occurrence of oscillations and vibrations. When the system state satisfies the condition
, the reaching law is mainly influenced by
, enabling the system to adjust its state more quickly and approach the sliding surface rapidly. By leveraging the characteristics of the tanh and sigmoid functions, the system exhibits a certain degree of adaptability to parameter variations and disturbances, thus enhancing its stability and reliability.
According to the reaching law, the switching control law can be obtained as follows:
2.3. Design of RBF Neural Network
Let the input vector of the neural network be
, the hidden layer basis function be
, and the output be
. The functional expression of the RBF neural network can be expressed as:
where
denotes the center vector of the function,
denotes the bandwidth of the Gaussian basis function, and
denotes the number of network nodes in the hidden layer.
The expression for the approximation of a nonlinear function by an RBF neural network is:
where
represents the ideal network weights,
is the neural network approximation error, and it satisfies
.
The RBF neural network is utilized to approximate
, and the output of the neural network is:
where
represents the actual weights of the neural network.
Define the weight estimation error as:
Take the derivative of the Equation (17):
Define the neural network output estimation error [
30] as:
In order to enhance the performance of the RBF neural network, a neural network adaptive law is introduced, allowing for adaptive updates of the neural network weights. The neural network adaptive update law designed in this study is as follows:
where
is the adjustment factor to be designed.
Define the robust term as:
The total control law of the system at this point is:
2.4. Control System Stability Analysis
2.4.1. Certificate of Necessity
Assuming that the Lyapunov function is asymptotically stable, to prove that:
holds for all : since is asymptotically stable, according to the definition of the Lyapunov function, there exists a positive constant and a positive constant , such that for all satisfying , there is . That is to say, for all non-zero vectors , as long as their paradigm is greater than , the Lyapunov function is greater than . Therefore, one can conclude that holds for all .
: since holds for all , we can deduce that must be equal to 0. Otherwise, if is greater than 0, then there exists a small neighborhood where . This contradicts the condition that holds for all .
holds for all : the derivative of the Lyapunov function can represent the rate of change of the state of the system. Since is asymptotically stable, by the definition of the Lyapunov function, for all satisfying , there is . This implies that the Lyapunov function is decreasing over the range of these . The derivative of holds for all : the derivative of can represent the rate of change of the state of the system. Also, by the definition of asymptotic stability, must tend to 0, i.e., .
In summary, if the Lyapunov function is asymptotically stable, we can obtain that , , and .
2.4.2. Certificate of Sufficiency
Define the Lyapunov function [
31] to be:
Take the derivative of the Lyapunov function:
Substituting Equations (4), (19) and (22) gives:
From the above equation, holds all the time; if and only if , then . According to the Lyapunov stability theorem, if and , it can be obtained that the system is asymptotically convergent under the Lyapunov condition.
2.5. Improved Salp Swarm Algorithm
The salp swarm algorithm (SSA) is a heuristic optimization algorithm inspired by the behavioral characteristics of a marine organism called salp. The algorithm simulates the movement and propagation of a salp swarm, where individuals update their positions and velocities through information exchange and cooperation to search for the optimal solution [
32]. By mimicking the biological features and collaborative behavior of salp swarms, the SSA can effectively search for the global optimum in complex optimization problems. The basic process of the SSA [
33] is as follows:
Step 1: Initialize the population. Initialize the positions of the salps based on the upper and lower limits of each dimension in the search space. The positions of the salps are initialized as:
where
is the position of the
i-th salp in the
j-th dimension,
is the population size of the salp,
is the spatial dimension,
is a uniform random number in the range of
, and
and
are the upper and lower bounds on the search space in the
j-th dimension.
Step 2: Calculate the fitness value of each salp according to the objective function.
Step 3: Determine the initial location of the food source. Rank the adaptation values of the salps, and the location of the optimal salp is the location of the food source.
Step 4: Identify leaders and followers. The first half of the salp chain are the leaders, and the rest are the followers.
Step 5: Update the position of the salp leader as follows:
where
is the position of the first salp leader in the
j-th dimension,
is the position of the food source in the
j-th dimension, and
and
are uniformly distributed random numbers between 0 and 1.
is adaptively decreasing with the number of iterations. The value of
is taken as follows:
where
is the current iteration number, and
is the maximum number of iterations.
Step 6: Update the positions of the salp followers as follows:
where
,
represents the position of the
i-th salp follower in the
j-th dimension search area.
Step 7: Apply boundary processing to each dimension of the updated individual, and update the location of the food source based on the new globally optimal salp location after the update.
Step 8: Determine whether the termination condition is satisfied; if so, output the result. Otherwise, proceed to step 4 and continue iterating.
The SSA is similar to other heuristic algorithms and may encounter the issue of local optima, along with certain limitations in terms of optimization accuracy and solution stability. To address these problems, this study improves the SSA and proposes an adaptive leader salp swarm algorithm (ALSSA).
By introducing an adaptive inertia weight factor, the influence of food sources on the leader position undergoes adaptive changes during the update process. As the number of iterations increases, the impact of food sources gradually decreases, thereby limiting the search range, improving the accuracy and efficiency of the search, and avoiding the unrestricted search range issue in the leader position update stage of SSA. The formula for calculating the inertia weight in this paper is as follows:
where
and
are the upper and lower limits of the inertia weight.
By incorporating the previous generation’s salp leader position into the leader position update formula, the updated leader position is influenced not only by the previous generation’s salp leader position but also by the previous generation’s global best solution. This approach effectively avoids the problem of the basic algorithm getting trapped in local optima and improves the algorithm optimization accuracy. The improved salp leader position update formula is as follows:
where
represents the position of the
i-th salp leader in the
j-th dimension of the previous generation,
represents the position of the food source in the previous generation, and
denotes a uniform random number between 0 and 1.
Combining Equations (29) and (30), the new salp leader position update equation can be expressed as follows:
We introduce an adaptive adjustment strategy to dynamically decrease the number of salp leaders with an increasing iteration count while increasing the number of followers adaptively. This approach ensures a balance between global and local search throughout the entire phase, thereby improving the convergence accuracy of the algorithm. It effectively avoids the issues of early convergence to local optima and low optimization accuracy in the later stages. The updated formula for calculating the number of leaders and followers is as follows:
where
is the coefficient to control the ratio of leaders to followers,
is the perturbation deviation factor, the number of leaders is equal to
, and the number of followers is equal to
.
The objective function of ALSSA is used to minimize angular tracking errors, which is expressed as follows:
The specific meaning of this expression is as follows: for a given number of sampling points , calculate the absolute values of the angular tracking errors at each sampling point, and then sum the absolute values of the angular tracking errors at all sampling points to obtain the value of the objective function.
In the designed controller, parameters that have a minimal impact on control performance are considered as priors and do not require adjustment. There are a total of six adjustable controller parameters, namely , , , , , . The precise values of these control parameters will be determined by the ALSSA method.
3. Simulation and Experimental Results
3.1. Simulation Results
To validate the effectiveness and superiority of the proposed neural network terminal sliding mode control algorithm for the robotic arms, based on a novel reaching law and an improved salp swarm algorithm, this study conducted simulation experiments using the ABB IRB120 robotic arm as the research subject in Matlab R2022b software.
The ABB IRB120 robot is a six-axis robotic arm developed by ABB, a leading robotics company. It is designed for various industrial applications, including assembly, material handling, and machine tending. The IRB120 robot offers high precision, flexibility, and compactness, making it suitable for use in small workspaces. It has a payload capacity of up to 3 kg and a reach of 580 mm, allowing it to perform tasks with precision and agility. The IRB120 robot is equipped with advanced features such as integrated vision systems and user-friendly programming interfaces, enabling easy integration and efficient operation in industrial environments. The ABB IRB120 robot is shown in
Figure 1.
Denavit–Hartenberg (DH) parameters and mass parameters play crucial roles in the modeling of robotic arms, as they are essential for accurately describing the kinematic and dynamic characteristics of the arm. DH parameters describe the geometric and kinematic properties of the robotic arm, providing the geometric relationships between its joints and enabling the precise execution of desired motions. On the other hand, mass parameters describe the distribution of mass within the robotic arm, influencing its inertia properties and dynamic response, which are vital for achieving precise motion control. The DH parameters and quality parameters of the ABB IRB120 robot are shown in
Table 1 and
Table 2.
Since the inertia matrix , the Coriolis and centrifugal matrice , and the gravitational matrix of the ABB IRB120 six-axis robotic arm are too complicated, the detailed dynamics parameter matrices are not listed here. The model determination section is set to , , . The initial angles of the ABB robotic arm are . The reference trajectories are . The parameters of the sliding mode control are , , , , , . The joint friction is . The external disturbance is . The parameter of the robust term is . The parameters of the RBF neural network are , , . The parameters of the ALSSA are , , , , , . The number of iterations to obtain the optimal solution is 29, and the optimized sliding mode control parameters are , , , , , .
The ALSSA-RBFTSM algorithm designed in this paper is compared with the global fast terminal sliding mode (GFTSM) algorithm proposed in the literature [
34] and the RBF neural network fast nonsingular terminal sliding mode (RBF-FNTSM) algorithm proposed in the literature [
35]. From
Figure 2, it can be seen that the GFTSM algorithm has the smallest initial control torques, but it experiences the most serious control torque jitter. The RBF-FNTSM algorithm effectively suppresses control torque jitter, but there is still a certain amount of jitter that remains. At the same time, its initial control torques increase. The ALSSA-RBFTSM algorithm demonstrates smooth control torques with little jitter, but it has the largest initial control torques. From
Figure 3, it can be observed that all three control algorithms enable the robotic arm to track the desired trajectory within a certain time period. However, the GFTSM algorithm deviates from the desired trajectory at certain time intervals, while the RBF-FNTSM algorithm and the proposed algorithm in this paper remain mostly on the desired trajectory.
Figure 4 demonstrates that when subjected to uncertainties such as friction and external disturbances, the position tracking errors of the proposed algorithm remain consistently at zero. In contrast, the GFTSM algorithm and the RBF-FNTSM algorithm exhibit fluctuating position tracking errors. The GFTSM algorithm is most affected, exhibiting significant fluctuations in position tracking error and poor position tracking performance. The RBF-FNTSM algorithm demonstrates a certain level of disturbance rejection capability, suppressing uncertainties to some extent, but still experiences a certain degree of position tracking error fluctuations. In comparison to the GFTSM and RBF-FNTSM algorithms, the ALSSA-RBFTSM algorithm exhibits improved performance, demonstrating better robustness and position tracking effectiveness when faced with uncertainties such as friction and external disturbances.
Figure 5 demonstrates that the velocities of all three control algorithms can effectively track the desired trajectories. The GFTSM algorithm exhibits the longest convergence time, while the RBF-FNTSM algorithm shows a slightly accelerated convergence speed. The ALSSA-RBFTSM control algorithm designed in this study demonstrates the shortest convergence time.
Figure 6 shows that the velocity tracking errors of all three control algorithms converge to nearly zero, indicating a favorable control performance. The GFTSM algorithm has relatively significant fluctuations in trajectory tracking errors. The error fluctuations in the RBF-FNTSM algorithm are less noticeable. In contrast, the ALSSA-RBFTSM control algorithm designed in this study demonstrates the fastest convergence speed and the smallest tracking errors, showcasing superior steady-state characteristics.
According to the results presented in
Table 3 and
Table 4, it can be observed that the ALSSA-RBFTSM algorithm designed in this study exhibits the best control performance. It demonstrates the smallest average steady-state error and maximum steady-state error in position tracking for each joint of the robotic arm. Comparative analysis reveals that, compared to the GFTSM control algorithm, the ALSSA-RBFTSM control algorithm reduces the average steady-state error in position tracking for each joint by 97.6%, 96.5%, 99.1%, 90.7%, 95.1%, and 95.3% respectively. Furthermore, it reduces the maximum steady-state error in position tracking for each joint by 95.5%, 95.0%, 97.0%, 86.5%, 92.7%, and 83.9%, respectively. In comparison to the RBF-FNTSM control algorithm, the ALSSA-RBFTSM control algorithm reduces the average steady-state error in position tracking for each joint by 68.5%, 84.2%, 85.7%, 82.6%, 82.3%, and 87.3%, respectively. Additionally, it reduces the maximum steady-state error in position tracking for each joint by 79.4%, 85.3%, 85.5%, 79.2%, 84.8%, and 60.9%, respectively.
3.2. Experiment Results
In this section, we implement the proposed control strategy on the packaging unit of an ABB robot in the intelligent manufacturing production line in our laboratory. The intelligent manufacturing production line comprises six experimental stations: unordered screening unit, visual sorting unit, dimension detection unit, laser marking unit, assembly unit, and packaging unit. These stations utilize automation equipment and robots to carry out production tasks, reducing the requirement for manual operations and enhancing production efficiency. The ALSSA-RBFTSM algorithm designed in this paper is applied to the ABB six-axis robotic arm in the packing unit of the production line to design the robot grasping and placing test.
Figure 7 and
Figure 8 illustrates the process of robot grasping and placing.
The system conducted 50 grasping and placing experiments on black boxes. The success rate for grasping was 92%, while the success rate for placing was 86%. The main reason for the grasping failures is the positional deviation of the black boxes on the tray, which caused the robotic arm to misalign or have unstable grasping. The primary reason for the placing failures is the angular deviation of the lid of the yellow paper box, resulting in interference with the black boxes during the placing process. The experimental results above demonstrate that, for multiple grasping and placing tasks, the ABB robot can reliably track the trajectory, successfully completing the grasping and placing operations. The system operates smoothly during the workflow, without significant occurrences of excessive vibrations.