Abstract
To assess the inverse kinematics (IK) of multiple degree-of-freedom (DOF) serial manipulators, this article proposes a method for solving the IK of manipulators using an improved self-adaptive mutation differential evolution (DE) algorithm. First, based on the self-adaptive DE algorithm, a new adaptive mutation operator and adaptive scaling factor are proposed to change the control parameters and differential strategy of the DE algorithm. Then, an error-related weight coefficient of the objective function is proposed to balance the weight of the position error and orientation error in the objective function. Finally, the proposed method is verified by the benchmark function, the 6-DOF and 7-DOF serial manipulator model. Experimental results show that the improvement of the algorithm and improved objective function can significantly improve the accuracy of the IK. For the specified points and random points in the feasible region, the proportion of accuracy meeting the specified requirements is increased by 22.5% and 28.7%, respectively.
Introduction
The inverse kinematics (IK) of a manipulator is an important part of its design and control, which has guiding significance for motion analysis and trajectory planning. Traditional solution methods can be divided into two categories: analytic and numerical methods. When the manipulator does not meet Pieper criterion, 1 the analytic solution cannot be obtained. For PUMA-type manipulators, when the last three axes do not exactly intersect at a common point and the shoulder joint axes are not exactly orthogonal, there is an error in the analytic solution. In this case, the numerical method can be used to find the IK. Even in cases where an analytic solution does exist, numerical methods are often used to improve the accuracy of these solutions. 2,3
Because of the limitations of traditional solutions, other algorithms, such as the Newton–Raphson method, neural network method, genetic algorithm (GA), and swarm intelligence algorithm, have been proposed to solve the IK of the manipulator. Yin et al. 4 proposed to use an improved Davidon–Fletcher–Powell for IK of the manipulator. Köker, 5 Al-Mashhadany, 6 and Khaleel 7 have proposed several methods of using neural networks to solve the IK of the manipulator. Tabandeh et al. 8 proposed the adaptive niche GA to generate multiple solutions for manipulator IK. Ren et al. 9 and Rui et al. 10 proposed to use an improved particle swarm optimization algorithm to solve the IK of the manipulator. Zhang et al. 11 used the chaotic and parallelized artificial bee colony algorithm to solve the manipulator IK problem. Xie et al. 12 used an improved DE algorithm to find the IK of a manipulator. Pena et al. 13 proposed using bioinspired multiobjective optimization techniques to solve the industrial robot IK problem. The Newton–Raphson method has the advantage of a simple calculation process, high efficiency, and high precision, but its optimization result is too dependent on the choice of initial value. The neural network method has the advantages of high efficiency and high precision, but a large amount of sample data is needed during training, and the generalization performance of the network cannot be guaranteed. The traditional swarm intelligence algorithm has no special requirements for the configuration of the manipulator, but the selection of parameters has a greater impact on the performance of the algorithm. Among them, the classic DE algorithm 14 –17 has the advantage of simple structure, few control parameters, and strong robustness. However, the improper selection of control parameters and mutation strategies leads to slower convergence and local optimization.
Aiming at the local optimization in the process of solving the IK, this article proposes an improved adaptive mutation differential evolution (ISAMDE) algorithm. An adaptive mutation operator (AMO) and adaptive scaling factor (AF) are used to adaptively adjust the mutation strategy of the algorithm and the degree of individual scaling according to the current iteration number and error value, and balance the exploration ability and exploitation ability of the algorithm. To further improve the accuracy of the IK of the manipulator, this article optimizes the objective function of the numerical solution and proposes an adaptive orientation error weight coefficient to normalize the corresponding posture error.
Improvement of differential evolution algorithm and objective function
Classic differential evolution algorithm
The DE algorithm is a heuristic parallel search algorithm 18 based on population differences proposed by Storn and Price, including initialization, mutation, crossover, and selection. The flowchart of the DE algorithm is shown in Figure 1.

Flowchart of DE. DE: differential evolution.
The standard DE algorithm mainly includes the following five steps:
Initialization
Assume that D is the individual dimension, NP is the population size, t is the evolutionary generation, and x(t) is the population of the t generation. The initial individual is
where
Mutation
Two commonly used mutation strategies are DE/rand/1/bin and DE/best/1/bin. The mutation equations are shown in equations (2) and (3)
where F is the scaling factor,
Boundary operation
The methods crossing the boundary initialization include reinitialization, reflection, projection, wrapping, and resampling. Arabas et al. 19 verified that the boundary constraint processing method has an important effect on the optimization performance of differential evolution.
Crossover
The reference individual
where
Selection
The selection criteria can be described as
where f is the fitness value of the individual.
Improved self-adaptive mutation differential evolution algorithm
The core challenge of the DE algorithm is balancing the exploration and exploitation capabilities of the algorithm. In the literature, the authors 20 –23 studied the parameter setting method and optimization method of the algorithm, and proved that the setting of control parameters plays a vital role in the optimization performance, convergence speed, and stability of the algorithm. In the literature, Qin and Suganthan 24 and Qin et al. 25 studied the optimization method of mutation strategy and proved that mutation strategy is the key to the exploration and development capabilities of equilibrium algorithms. For example, the DE/rand/1/bin strategy emphasizes the exploration ability of the algorithm, and the DE/best/1/bin strategy emphasizes the development ability of the algorithm.
In this article, the control parameters and mutation strategy are improved, and the timing of the algorithm enters the DE/best/1/bin mutation strategy and the degree of scaling of the mutated individual to achieve rapid global optimization of the algorithm. The flowchart of the ISAMDE is shown in Figure 2.

Flowchart of ISAMDE. ISAMDE: improved self-adaptive mutation differential evolution.
Adaptive mutation operator for adaptive adjustment mutation strategy
To improve the global optimization capability of the algorithm, an AMO is used in the ISAMDE algorithm to independently adjust the mutation strategy of the algorithm. After improvement, the algorithm’s mutation strategy and the AMO are defined as follows
Among them,

The influence of the power exponent N on the trend of the AMO function value. AMO: adaptive mutation operator.
When the random number is less than the AMO, the DE/rand/1/bin mutation strategy is adopted. In the early stage of evolution, the AMO is relatively large, so the DE/rand/1/bin evolution mode is preferred, giving full play to the exploration ability of the algorithm. In the later stage of evolution, the algorithm enters the DE/best/1/bin evolution mode and is adjusted to be guided by the optimal individual, and the exploitation ability of the algorithm is given full play.
Adaptive scaling factor for adaptively adjusting the degree of differential mutation scaling
In the DE algorithm, the scaling factor F determines the degree of scaling of the mutated individual. Increasing F can increase the diversity of the population, but it will weaken the exploitation ability of the algorithm. Reducing F can improve the exploitation ability of the algorithm, but it will increase the risk of the algorithm falling into premature convergence. To achieve fast global optimization, this article proposes an error-related AF. At the beginning of the iteration, the scaling factor is 1, and the exploration ability is strong. When the error value under the current iteration number of the algorithm is less than the set value E 0, the AF in equation (7) is adopted to improve the exploration ability of the algorithm
where the AF is related to the error value under the current iteration number (

Relationship between AF and
Kinematics and improvement of objective function
The intelligent algorithm to solve the IK of the manipulator refers to transform the kinematics equation into the corresponding objective function and find the function extreme value.
The posture of the end effector relative to the first coordinate system is
where the R matrix is a 3 × 3 matrix and the P matrix is a 3 × 1 matrix.
It can be seen in Figure 5 that the position error EP
is related to the joint angles and the link parameters of the manipulator, and its value range is (−1500, 1500), while orientation error EO
is only the trigonometric function transformation of the joint angles, and its value range is (−1, 1). The position error weight coefficient

Relationship between posture error and D-H parameters of manipulator: (a) Influence factors of EO and EP and (b) graph of EO and Ep element values.
The objective function of the IK can be written as
where Rt
and Pt
represent the orientation matrix and position matrix of the target point, respectively, Rc
and Pc
represent the orientation matrix and position matrix of the current population location, respectively. EP
is calculated by the Euclidean distance between Pt
and Pc
,
Tabandeh et al.
8
use the weight coefficients
In this article,
Figures 6 and 7 are the 6-DOF underwater manipulator and the 7-DOF manipulator (Cyton Gamma 300), respectively. Tables 1 and 2 are their DH parameter tables, respectively.

6-DOF underwater manipulator. DOF: degree-of-freedom.

Cyton Gamma 300 manipulator.
D-H parameters of 6-DOF underwater manipulator.
D-H parameters of the Cyton Gamma 300.
Experiments and results
To evaluate the performance of ISAMDE, three DE algorithms (DE, SAMDE, and ISAMDE) are used to solve the minimum of six standard benchmark functions.
To test the effectiveness of the ISAMDE algorithm for the IK of the manipulator, simulation experiments were carried out on the IK of the 6-DOF and 7-DOF manipulators on the three DE algorithms. First, seek the IK for a fixed point in the workspace to verify the feasibility of the algorithm. Then, the IK is obtained for random target points in the workspace to verify the robustness of the algorithm.
Benchmark function tests
D and P refer to search space dimension and population size, respectively, N means the power exponent of the AMO, F 0 is the original scaling factor, N max is the maximum number of iterations, and symmetric mapping is used after the mutated individual crosses the boundary.
The benchmark functions and their simulation results are shown in Table 3 and Table 4. Figure 8 shows the convergence curves of the three algorithms on the benchmark functions. The optimal value of the algorithm is presented in bold in Table 4. In the solution of f 1, the SAMDE algorithm performs best with an average accuracy of 10−78, while the average accuracy of ISAMDE is slightly lower, which is 10−74. In the solution of f 2, ISAMDE and SAMDE have the same solution accuracy. In the solution of f 3, f 4, and f 6, the ISAMDE algorithm has the highest solution accuracy. In the solution of f 5, the calculation results of ISAMDE and SAMDE are in an order of magnitude, and SAMDE is better.
Basic unimodal and multimodal benchmark functions. 14
Results obtained through 50 independent runs on benchmark functions: N max: 600, D: 10, F 0: 0.5, C: 0.9, P: 140, N: 0.8.
MM: multimodal, UM: unimodal; ISAMDE: improved self-adaptive mutation differential evolution; DE: differential evolution; SAMDE: self-adaptive mutation differential evolution. The optimal value of the algorithm are shown in bold in the table.

Convergence performance diagram of three algorithms optimized on the benchmark function. (a) Sphere, (b) Rosenbrock, (c) Ackley, (d) Griewank, (e) Rastrigin, and (f) Schwefel.
ISAMDE algorithm has better convergence speed on f 2–f 4, ISAMDE has better convergence speed on f 1 and f 5, and DE algorithm has better convergence speed on f 6.
Inverse kinematics simulation of manipulators
Aiming at the IK of the manipulator, the 6-DOF and 7-DOF manipulators are used as experimental objects, and three DE algorithms are used for simulation experiments to verify the effectiveness of the algorithm improvement and objective function improvement.
The initial parameters of the algorithm are set as follows: F 0 = 0.5, C = 0.9, N = 0.9, P = 70, N max = 600, and random initialization is used after the mutated individual crosses the boundary.
Termination condition of algorithm iteration: meet the given accuracy (position:10−2 mm and orientation: 5 × 10−4 rad) or reach the maximum number of iterations. The results were achieved on MATLAB R2018a on a 2.8 GHz intel i5 processor.
6-DOF underwater manipulator
The joint vector corresponding to the target point of the 6-DOF underwater manipulator is [π/6, −π/3, π/6, π/18, −π/3, −π/2]. In the algorithm, the solution of each population represents a set of joint angles of the manipulator, corresponding to a set of posture at the end of the manipulator.
Aiming at the fixed target point, using three DE algorithms, the simulation results of the IK of the manipulator are shown in Figure 9 and Table 5.

6-DOF underwater manipulator fixed target point simulation results (50 independent runs): (a) Original objective function and (b) improved objective function. DOF: degree-of-freedom.
Statistical results of fixed target points of the 6-DOF underwater manipulator (50 independent runs).
DOF: degree-of-freedom; ISAMDE: improved self-adaptive mutation differential evolution; DE: differential evolution; SAMDE: self-adaptive mutation differential evolution. SR is the ratio of the posture error to the specified accuracy in 1000 independent runs.
In the table, DE_O, SAMDE_O, and ISAMDE_O represent the optimal results of the three algorithms under the original objective function. DE_I, SAMDE_I, and ISAMDE_I represent the optimal results of the three algorithms under the improved function. Best_P, Worst_P, Best_O, and Best_O represent the optimal value of the position error, the worst value of the position error, the optimal value of the orientation error, and the worst value of the orientation error, respectively. SR is the ratio of the posture error to the specified accuracy in 1000 independent runs.
The abscissa in the figure is the number of repeated positioning of the algorithm, and the ordinate is the number of algorithm iterations, position error (mm), orientation error (rad), and algorithm running time (s).
As shown in Figure 9 and Table 5, aiming at the fixed target point, for the 6-DOF underwater manipulator, before and after improving the objective function, the SR of the three DE algorithms for IK of the manipulator is 77.5%, 84.9%, 98.7% and 100%, 100%, 100%, respectively.
Aiming at the fixed target point, using Newton–Raphson method, where
In the table, N_L refers to Newton–Raphson.
Table 6 shows that the SR of Newton–Raphson method is 88%.
Newton–Raphson algorithm fixed target point IK results.
DOF: degree-of-freedom; IK: inverse kinematic.
For 50 random target points in the workspace, using three DE algorithms, the simulation results of the IK are shown in Figure 10 and Table 7.

Simulation results of random target points of the 6-DOF underwater manipulator: (a) Original objective function and (b) improved objective function. DOF: degree-of-freedom.
Statistical results of random target points of the 6-DOF underwater manipulator.
DOF: degree-of-freedom; ISAMDE: improved self-adaptive mutation differential evolution; DE: differential evolution; SAMDE: self-adaptive mutation differential evolution.
As shown in Figure 10 and Table 7, before and after improving the objective function, the SR of the three DE algorithms for IK of the manipulator is 73.6%, 71.3%, 78.9% and 91.6%, 90.2%, 92.3%, respectively.
For 50 random target points in the workspace, the simulation result of Newton–Raphson method to solve the IK is provided in Table 8.
Newton–Raphson algorithm random points IK results.
DOF: degree-of-freedom.
Table 8 shows that the SR of Newton–Raphson method is 76%.
Seven degrees-of-freedom Cyton Gamma 300 manipulator
The joint vector corresponding to the target point of the Cyton Gamma 300 manipulator is [π/3, π/2, π/4, π/2, π/2, π/2, π/6].
For the fixed target point, using three DE algorithms, the IK simulation results are shown in Figure 11 and Table 9.

Simulation results of the Cyton Gamma 300 manipulator with fixed target points (50 independent runs). (a) Original objective function and (b) improved objective function.
Statistical results of fixed target points of the Cyton Gamma 300 manipulator (50 independent runs).
ISAMDE: improved self-adaptive mutation differential evolution; DE: differential evolution; SAMDE: self-adaptive mutation differential evolution.
As shown in Figure 11 and Table 9, aiming at the fixed target point, for the Cyton Gamma 300 manipulator, before and after improving the objective function, the SR of the three DE algorithms for IK of the manipulator is 77.5%, 84.9%, 98.7% and 100%, 100%, 100%, respectively.
For 50 random target points in the workspace, using three DE algorithms, the simulation results of the IK are shown in Figure 12 and Table 10.

Simulation results of random target points of the Cyton Gamma 300. (a) Original objective function and (b) improved objective function.
Statistical results of random target points of the Cyton Gamma 300.
ISAMDE: improved self-adaptive mutation differential evolution; DE: differential evolution; SAMDE: self-adaptive mutation differential evolution.
As shown in Figure 12 and Table 10, before and after improving the objective function, the SR of the three DE algorithms for IK of the manipulator is 65.0%, 52.4%, 21.0% and 92.8%, 91.8%, and 86.2%, respectively.
Discussion
The simulation results of benchmark functions in Table 4 and Figure 8 show that ISAMDE performs well in most benchmark functions both in terms of computational accuracy and convergence speed. The experimental results show that under the guidance of the optimal individual
In the ISAMDE algorithm, the introduction of AMO enables the algorithm to switch timely between the two evolutionary modes of DE/rand/1/bin and DE/best/1/bin. The introduction of the current generation error value
For random points in the workspace, the SR of the ISAMDE algorithm can reach 92.3% instead of 100%, which may be related to factors such as the randomness of the swarm intelligence algorithm, improper selection of the initial point, the location of the random point too close to the boundary, and the large search space. To improve the accuracy of the algorithm, follow-up research can be carried out around how to reasonably select the location of the initial point of the algorithm and the optimization of the boundary points. To improve the accuracy of the algorithm, follow-up research can be carried out around how to reasonably select the location of the initial point of the algorithm and the optimization of the boundary points.
The 7-DOF manipulator is a redundant manipulator. In practical applications, for different optimization goals, different constraints need to be added to find the IK of the manipulator. The ISAMDE algorithm is inferior to the 6-DOF in the inverse solution of the 7-DOF algorithm, which is related to the increase in the extreme value peaks of the objective function caused by the increase of the algorithm dimension D. The ISAMDE algorithm does not perform well in the solution of multimodal functions. Follow-up research can continue to optimize the algorithm for multimodal functions.
This article proposes an error-related objective function and introduces the position error EP
to realize the adaptive adjustment of the orientation error weight coefficient
Conclusions
In this article, an IK method of a serial manipulator based on an ISAMDE algorithm is proposed. To better balance the exploration and exploitation ability of the mutation DE algorithm, the AMO and the error-related AF are proposed, which can enable a quick approach to the optimal solution when solving the IK of the manipulator, improve the convergence speed, avoid premature convergence, and enhance global optimization ability. The experimental results show that the proposed IK method is suitable for 6-DOF and 7-DOF serial manipulators and has the advantage of high precision and high efficiency. This provides a new research concept for the general IK method of serial manipulators.
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by the Strategic Priority Research Program of the Chinese Academy of Sciences under grant no. XDA22040303, the key projects supported by “the 13th five year plan” of Hefei Institute of Physical Sciences, Chinese Academy of Sciences, under grant no. KP-2019-14, and Anhui Natural Science Foundation of China under grant no. 1808085QF214.
