Abstract
Introduction
Collaborative robots are widely used in various fields such as manufacturing, healthcare, and services due to their flexibility and safety capabilities. The six degrees-of-freedom (6-DOF) collaborative robot manipulator has received special attention among them. However, due to the nonlinearity, coupling, and uncertainty of the dynamics of 6-DOF collaborative robots, achieving accurate and stable trajectory tracking is still an important research direction. 1
Traditional PD (proportional derivative) controllers are commonly used in robot control systems due to their simplicity and ease of implementation. Zhen et al. 2 studied the dynamic modeling of permanent magnet synchronous motors (PMSM) and harmonic reducers, and proposed a robust control method based on PD, which has good dynamic performance for single-joint control of robots. Chaudhary et al. 3 designed a PD controller to achieve hybrid force/position control, which proved the superiority of the fuzzy-PD controller, but lacked the consideration of external disturbance factors. Ulici et al. 4 designed a sliding mode position control manipulator, which estimates joints without torque sensors in real time and achieves position control tracking. However, the performance of traditional PD controllers is often limited in complex and dynamic environments because they rely on fixed gain values that cannot adapt to changing conditions. 5 This limitation has prompted researchers to explore advanced control strategies that can provide better accuracy and robustness.
With the integration of intelligent optimization algorithms and fuzzy control technology, 6 the performance of robot controllers is gradually improved. More and more researchers are using optimization algorithms such as particle swarm optimization (PSO), 7 and genetic algorithm (GA) 8 to fine-tune controller parameters and improve control accuracy. The dung beetle optimization (DBO) algorithm 9 inspired by the foraging behavior of dung beetles, is a relatively new optimization technique that has demonstrated efficiency in solving complex optimization problems. At the same time, fuzzy controllers are recognized for their ability to handle nonlinearity and uncertainty, making them a valuable complement to traditional control methods.
The oscillation of the robot manipulator during movement requires additional energy consumption, which also affects the working stability of the mechanical body. The expected trajectory of the robot manipulator is the position and posture corresponding to a fixed time to minimize the energy consumed during the entire movement process. Recent researchers have explored related technologies for robot control. Moyrón et al. 10 explored nonlinear PID controllers to effectively regulate flexible joint robot systems. Moreno-Valenzuela et al. further improved the performance by compensating for actuator saturation and integrated advanced antisaturation techniques into the controller to improve the trajectory tracking of robotic manipulators with actuator limitations.11,12 In this study, the end trajectory of the robot manipulator is expected to be smooth and continuous, and the expected input of each joint is third-order differentiable. The intelligent optimization algorithm can optimize fixed-point motion and design the optimal trajectory parameters of joint angle, velocity, acceleration, and jerk. 13
Iterative learning control of robot manipulators is relatively simple. Based on the PD control method and fuzzy adaptation, the robot manipulator can track the desired trajectory of the input with high precision without relying on an accurate mathematical model. Therefore, it is possible to control uncertain nonlinear strongly coupled dynamic systems in an environment with external disturbances and deviations in dynamic parameters.
This study focuses on developing an adaptive fuzzy PD controller for trajectory tracking of a 6-DOF collaborative robot manipulator. By using an improved DBO algorithm to optimize the controller parameters, and using a fuzzy adaptive mechanism to adjust the PD gain based on real-time errors, the purpose is to achieve high-precision trajectory tracking under different conditions. This article presents several key contributions to the field of robotic control systems:
The DBO algorithm is improved to optimize controller parameters more effectively. An adaptive iterative learning fuzzy PD control method is designed based on PD control to calculate the torque of the robot manipulator. The improved DBO algorithm is combined with the fuzzy PD controller to construct a robot control system with high-precision trajectory tracking capability.
The content of this article includes: the second section introduces the method in detail, including the development of the robot dynamics model, inverse dynamics solution, PD control law, DBO algorithm and its improvement, design of fuzzy adaptive mechanism, the stability proof, and fuzzy adaptive PD optimized by DBO controller implementation. The third section introduces the experimental setup and simulation results, including a comparative analysis of robot model parameters, trajectory smoothness, and tracking performance using different control strategies. Finally, the fourth section concludes the study and proposes directions for future research.
Research method
This section details the research methodology employed in developing the adaptive fuzzy PD controller for trajectory tracking of a 6-DOF collaborative robot manipulator. The methodology encompasses several key components: the establishment of the robot's dynamic model, the solution to the inverse dynamics in joint space, the design and implementation of the PD control law, the development and enhancement of the DBO algorithm, the creation of the fuzzy adaptive mechanism, and the integration of these elements into the final DBO-optimized fuzzy adaptive PD controller. Each component is crucial for achieving precise and robust trajectory tracking under varying conditions. The subsequent sections provide a detailed explanation of each step in the methodology.
Robot dynamic model
In order to achieve precise control of a 6-DOF collaborative robot manipulator, it is crucial to develop an accurate dynamics model. The dynamics of a robot describe the relationship between joint torques and the resulting motion, taking into account the effects of inertia, Coriolis forces, centrifugal forces, and gravity. The dynamic model of the robot in this study is derived using the Lagrange formula, which provides a systematic method to derive the motion equations of complex mechanical systems, as shown in equation (1).
14
It is difficult to establish an accurate dynamic model of a robot manipulator through identification of robot dynamic parameters. Therefore, this article constructs a nominal model of the robot manipulator dynamic equations based on the theoretical dynamic model of the robot. As shown in equation (2), the inertia matrix, centrifugal force and Coriolis force matrices, and gravity matrix are equal to the sum of the nominal model terms and uncertainty terms.
Among them,
The control law (4) designed above can be divided into two parts, the inverse dynamics of the robot and PD feedback control. Under this control, joint errors are uncoupled, so the dynamic characteristics of the robot are independent of the position of the robot manipulator. However, there are inevitable system errors in the realistic control model, which will lead to the coupling of the axes of the robot manipulator joints and the dynamic errors will not converge to zero. By choosing the appropriate
Based on PD control law, dynamic calculation is added to design a double closed-loop feedback control method. Design the inner loop control law as equation (6).
From the above, the value of the calculated moment can be obtained according to equation (9).
Figure 1 shows the control system's structural block diagram.

Diagram of the calculated torque proportional derivative control system.
Adaptive fuzzy control strategy
Fuzzy logic control (FLC) is a method that mimics human reasoning and decision making using fuzzy sets and linguistic rules.
15
Unlike conventional control methods that rely on precise mathematical models, FLC can handle uncertainties and imprecise information, making it well-suited for complex and nonlinear robotic manipulator systems. This robot manipulator uses fuzzification, a product inference engine, and center-of-gravity average defuzzification. For fuzzy rules:
In this study, a fuzzy inference system (FIS) is used to enhance the traditional PD controller to dynamically adjust proportional gains (
The rule base of FIS defines the relationship between input fuzzy sets and output control actions. In robot manipulator control, the input variables are the joint tracking angle error (
Figure 2 clearly shows the integration of fuzzy logic with the traditional PD controller, highlighting the adaptive nature of the system. By dynamically adjusting the PD gains based on real-time error information, the fuzzy PD control system offers improved performance in trajectory tracking for complex robotic systems.

Fuzzy proportional derivative control system.
In evaluating the performance of robot manipulator control systems, several integral error metrics as shown in equation (11) are commonly used to quantify the accuracy and efficiency of the system in tracking a desired trajectory. Four equations include integral square error (ISE), integral absolute error (IAE), integral time square error (ITSE), and integral time absolute error (ITAE). The IAE measures the total absolute error over time, providing a straightforward assessment of overall performance.
18
Improved DBO algorithm
The DBO algorithm is a nature-inspired optimization technique that mimics the foraging behavior of dung beetles. This algorithm effectively solves complex optimization problems due to its ability to balance exploration and exploitation in the search space. 19 The original DBO algorithm has been shown to perform well in various applications. Still, improvements can further enhance its efficiency and convergence speed, making it more suitable for a 6-DOF collaborative robot manipulator real-time control.
Compared to the random population initialization of the original DBO algorithm, the good point set (GPS) method was used in this study. The GPS method aims to distribute the initial population more evenly in the search space, improve the algorithm's ability to explore different regions and avoid premature convergence to local optima.
20
In

Population initialization of good point set method.
In the original DBO algorithm, a linear convergence factor is employed, which reduces from 1 to 0 for iterations, as equation (14). The improved DBO algorithm adopts a sinusoidal convergence strategy, as equation (15). This approach ensures a smooth and adaptive convergence factor.
21
The improved algorithm achieves a balanced convergence speed, enhancing exploration at the start and ensuring efficient exploitation toward the end.

Curve of convergence factor.
To demonstrate the superiority of the I-DBO algorithm over the original DBO and other optimization algorithms, a comparative analysis was conducted using a practical engineering problem. The objective was to evaluate the performance of each algorithm in terms of convergence speed, and solution accuracy.
To rigorously verify the effectiveness of the I-DBO algorithm, the performance of I-DBO was compared with the original DBO algorithm, the Grey Wolf Optimization (GWO), and the Black-winged Kite Algorithm (BKA). Each algorithm solved the same engineering problem five times and the statistics were calculated. The convergence curves of the four engineering problems are shown in Figure 5.

The convergence curves of four problems: (a) three-bar truss design; (b) design of I-shaped beam; (c) speed reducer design; and (d) design of pressure vessel.
The evaluation was based on several statistical indicators: worst value, best value, standard deviation (std), mean, median, and Friedman test value to determine the statistical significance of the observed differences. The calculation results are shown in Table 1.
Comparative results of improved DBO with other methods.
BKA: Black-winged Kite Algorithm; I-DBO: improved dung beetle optimization; GWO: Grey Wolf Optimization.
The I-DBO algorithm consistently achieved the best values across all engineering problems compared to other algorithms. The lower standard deviation for the I-DBO algorithm demonstrates its stability and consistency in performance. The Friedman test was employed to validate the differences between the algorithms statistically. The Friedman test value is less than 0.05, which indicates that the improved DBO algorithm has a significant difference. These results substantiate the improved DBO algorithm's reliability and efficiency, making it a highly effective tool for solving complex engineering optimization problems.
DBO-fuzzy-PD controller
The I-DBO algorithm is implemented to optimize the parameters of the PD controller.
22
Generate an initial population using the GPS method. Each individual in the population represents a potential set of PD controller parameters. Evaluate the minimizing of the integral error metrics based on a predefined objective function. Apply the sinusoidal convergence factor to update the positions of the individuals in the search space. Repeat the fitness evaluation and update steps for a specified number of iterations or until convergence criteria are met.
23
Finally, output the best set of PD controller parameters. Figure 6 illustrates the DBO-fuzzy-PD controller. The fuzzy logic controller can output the gain values of

Dung beetle optimization-fuzzy-proportional derivative controller system.
Iterative learning control
The adaptive fuzzy-PD controller, driven by the improved DBO algorithm, iteratively learns and responds efficiently to real-time external disturbances and errors. For the robot dynamics system (equation (1)), two working conditions are required: the expected trajectory
Along the input trajectory
Combine the residual term
Stability proof
The stability proof of the Lyapunov function in the iterative control method proposed in this study cannot be performed by directly verifying that its time derivative is non-positive, because the system operates in the discrete time domain rather than the continuous time domain. For the discrete-time control law equation (17) proposed in this article, the Lyapunov function is defined as equation (20), and the corresponding analysis is performed within the framework of discrete-time stability theory.
The switching rule between
The iterative control formula can be further derived to obtain the equations (22) to (25).
Based on the calculation of equations (21) to (25), the value of
Based on the above, it can be obtained that
Since
In the DBO-fuzzy-PD control strategy, the proportional (
The improved DBO algorithm is integrated with a fuzzy-PD adaptive control strategy to form the DBO-fuzzy-PD controller. This hybrid approach leverages the optimization capabilities of the DBO algorithm to initialize the PD control parameters, ensuring an optimal starting point for the control process. The FLC continuously adjusts the
Results and discussion
In this section, the performance and effectiveness of the proposed adaptive fuzzy PD controller, optimized using the improved DBO algorithm, are evaluated through a series of experiments and simulations. The content includes the smoothness of the inverse kinematics trajectory, the tracking performance of the fuzzy-PD controller, comparative analysis of DBO-fuzzy-PD with initial tracking results, motor torque responses, adaptive PD parameter adjustments, and an error analysis under different control strategies. These comprehensive evaluations provide insights into the controller's robustness, accuracy, and overall efficiency in achieving precise trajectory tracking for a 6-DOF collaborative robot manipulator.
Robot manipulator parameters
The robot manipulator used in this study is the Ufactory xArm6, a 6-DOF collaborative robot designed for precision tasks and flexibility in various applications. 24 The Ufactory xArm6 features a modified Denavit-Hartenberg (D-H) parameterization, which accurately models the robot's kinematic structure. 25 This parameterization is crucial for formulating the robot's kinematic and dynamic equations, enabling precise control and trajectory tracking. Figure 7(a) is the robot manipulator, and Figure 7(b) is the schematic diagram of the robot Modified D-H model.

Robot and its modified D-H model. (a) Ufactory xArm6 and (b) modified D-H model.
A modified D-H parameter table was developed to accurately represent the kinematics and dynamics of the xArm6. This table includes the link lengths, twists, offsets, and joint angles that define the spatial relationships between consecutive links of the manipulator. Table 2 lists the modified D-H parameters used in this study.
Modified D-H parameters of robot manipulator.
Accurate modeling of the robot's dynamics requires the inclusion of mass and inertia properties for each link. These parameters influence the robot's response to control inputs and external forces, Mass parameters for Ufactory xArm6 are shown in Table 3. These parameters were derived through a combination of the manufacturer's specifications and precise measurements taken from the actual manipulator.
Mass parameters for Ufactory xArm6.
Trajectory preprocessing
To ensure the smooth and accurate movement of the robot's manipulator, trajectory planning is based on the principle of minimum jerk. This principle aims to minimize the third derivative of position, thus producing a smooth and continuous trajectory up to the third derivative. Figure 8 shows a certain motion of the inverse kinematics, and the trajectory is preprocessed into a third-order differentiable result.

Three-order differentiable trajectories of six joints.
Using minimum acceleration trajectory planning ensures that the trajectory input to Ufactory xArm6 is a third-order differentiable, the basis for the control robot manipulator.
Trajectory tracking under random disturbances
In real-world scenarios, robotic manipulators often encounter various disturbances that can affect tracking performance. These disturbances can arise from external forces, sensor noise, or dynamic changes in the environment. To evaluate the robustness and effectiveness of the proposed PD controller, an experiment was conducted to assess the manipulator's trajectory tracking under random disturbances. 26
Random disturbances are introduced to simulate real-world perturbations. These disturbances include random external forces applied to the end effector and simulated sensor noise. Joint motion tracking is shown in Figure 9. It can be seen that under external interference, especially the motion error of the end joints gradually increases. At the same time, different impacts and disturbances have a huge impact on errors, which seriously restricts the precise work of the robot manipulator. This is why robot manipulators need controllers.

Joint tracking under external disturbances.
DBO-fuzzy-PD controller
The DBO-fuzzy-PD control strategy leverages the strengths of DBO and fuzzy logic to enhance the trajectory tracking performance of the 6-DOF collaborative robot manipulator. This hybrid approach begins with DBO to obtain the initial PD controller parameters and then employs a fuzzy controller to adjust these parameters in response to varying external disturbances.
Taking the IAE of the system as the optimization objective function, the improved DBO algorithm is used to optimize the initial PD controller parameters
While the DBO-optimized PD parameters provide a solid foundation, the presence of external disturbances can lead to varying performance. To address this, a fuzzy controller is integrated into the system to adaptively adjust the PD gains in real time based on the tracking error and its derivative.
The fuzzy controller continuously monitors the tracking error (

Fuzzy rules for (a) Kp and (b) Kd.
The tracking accuracy of the DBO-fuzzy-PD controller is improved compared to the initial PD controller alone. The adaptive adjustments made by the fuzzy controller help to maintain the desired trajectory more closely. Figure 11 shows the results of joint trajectory tracking using the DBO-fuzzy-PD controller. The results show that the fuzzy controller effectively reduces the error by dynamically adjusting the PD gain. This adaptive mechanism enables the control system to respond quickly to disturbances and maintain stable tracking.

Tracking using the dung beetle optimization-fuzzy-proportional derivative controller.
The effectiveness of the fuzzy adaptive mechanism can be observed through the real-time variation of the PD gains during the trajectory tracking process. When the tracking error increases due to an external disturbance, the fuzzy controller quickly adjusts the gains to counteract the deviation and bring the system back to the desired trajectory. Adjusting the controller parameters according to changes in error and error rate of change helps to suppress oscillations and prevent overshoot, which ensures that the system remains stable and avoids excessive oscillatory behavior. 28
The performance of the DBO-fuzzy-PD controller was compared against the fuzzy-PD controller and the traditional PD controller in the trajectory tracking of a 6-DOF robotic manipulator under identical external disturbances. The experiments measured the integral absolute error (IAE) and integral square error (ISE) for overall and individual joint performance. The key performance indicators of IAE and ISE of the results of the DBO-fuzzy-PD controller, fuzzy-PD controller, and PD controller are shown in Table 4.
Comparison of different errors, ISE, and IAE as performance indices.
DBO: dung beetle optimization; IAE: integral absolute error; ISE: integral square error; PD: proportional derivative.
The results demonstrate that the DBO-fuzzy-PD controller significantly outperformed the other control strategies. The IAE and ISE values for the DBO-fuzzy-PD controller were consistently lower, indicating superior accuracy and robustness in tracking the desired joint trajectories despite external disturbances. These findings confirm that the DBO-fuzzy-PD controller can more efficiently and effectively maintain precise control over the robotic manipulator's movements, ensuring optimal performance under challenging conditions.
The fuzzy adaptive mechanism continuously monitors the tracking error (

Adaptive change of proportional derivative controller parameters.
The fuzzy controller adjusts the PD gains in real time by multiplying the optimal

Adaptive joint torque and ideal calculated torque.
The comparison between the adaptive joint torque and the ideal calculated torque in Figure 13 illustrates that the adaptive DBO-fuzzy-PD controller is highly sensitive to rapid changes in the error signal and external disturbances, and it can dynamically adjust the
DBO-fuzzy-PD controller combined the initial optimization of PD parameters using DBO with the real-time adaptive capabilities of a fuzzy logic controller. The IAE and ISE values were significantly lower than those of the other controllers. This indicates superior tracking accuracy and robust performance, as the fuzzy controller continuously adjusted the gains to minimize errors in the presence of disturbances.
The DBO-fuzzy-PD controller improved the overall tracking accuracy and demonstrated enhanced robustness and stability in the face of external disturbances. These findings validate the effectiveness of integrating the improved DBO algorithm with fuzzy adaptive control for high-precision robotic applications, making it a promising approach for future advancements in robotic control systems.
Conclusion
This study proposes the DBO-fuzzy-PD controller to enhance the trajectory tracking performance of a 6-DOF collaborative robot manipulator. The DBO algorithm optimizes the initial PD controller parameters and provides a robust starting point for trajectory tracking. The fuzzy logic controller continuously adjusts the PD gain based on the tracking error and its rate of change. This real-time adaptability enables control systems to maintain high performance despite external disturbances and changing conditions. The DBO-fuzzy-PD controller maintains stable and accurate trajectory tracking. This article uses discrete Lyapunov iterative stability analysis to prove the global asymptotic stability of the robot manipulator system. The adaptive nature of the fuzzy controller ensures that the system can respond quickly to disturbances and maintain optimal performance.
The effectiveness of the DBO-fuzzy-PD controller is verified through extensive simulations and experiments. The performance of the DBO-fuzzy-PD controller is significantly better than that of the traditional PD controller, the ISE value is reduced from 3.4140 to 0.0384, and the IAE value is reduced from 1.9876 to 0.1843. It can be seen that the adaptive fuzzy strategy provides dynamic gain adjustment and enhances the system's ability to maintain precise and stable control under different conditions.
In summary, the PD control method combining DBO-fuzzy provides a powerful solution to achieve high accuracy and robustness in trajectory tracking tasks. This research lays a solid foundation for the future development of advanced robot control systems and contributes to the continuous progress of collaborative robots.
Supplemental Material
sj-pdf-1-act-10.1177_17483026251331506 - Supplemental material for Improved DBO algorithm tunes fuzzy-PD controller for robot manipulator trajectory tracking
Supplemental material, sj-pdf-1-act-10.1177_17483026251331506 for Improved DBO algorithm tunes fuzzy-PD controller for robot manipulator trajectory tracking by Ma Haohao, Azizan As’arry, Li Chaoqun, Mohd Idris Shah Ismail, Hafiz Rashidi Ramli, Aidin Delgoshaei and M.Y.M. Zuhri in Journal of Algorithms & Computational Technology
Footnotes
Funding
Conflicting interests
Supplemental material
References
Supplementary Material
Please find the following supplemental material available below.
For Open Access articles published under a Creative Commons License, all supplemental material carries the same license as the article it is associated with.
For non-Open Access articles published, all supplemental material carries a non-exclusive license, and permission requests for re-use of supplemental material or any part of supplemental material shall be sent directly to the copyright owner as specified in the copyright notice associated with the article.
