Abstract
To enhance the resolution timeliness and accuracy of inverse kinematics of industrial robots, a robot inverse kinematics method based on ELM-SSA-SCA was proposed. The positive kinematic model of the mechanical arm with Six Degrees of Freedom was established using D-H method, and ELM (extreme learning machine) with fast training speed was used to predict the initial resolution of robot inverse kinematics. The blended optimization method of SSA (Sparrow Search Algorithm) and SCA (Sine Cosine Algorithm) was applied to optimize the obtained initial inverse solution. The position under the optimum fitness was used as the output, so as to obtain the optimum solution of inverse kinematics. It is shown from the experimental results that the algorithm based on SSA-SCA-ELM achieved inverse solutions with faster convergence rate, higher precision and better timeliness compared to the solution method based on PSA-BP neural network.
Introduction
With the gradual improvement of AI technology and further intelligentization of the manufacturing industry, the industrial robots with a certain degree of AI technology are used more widely in the production line. Since the machinery equipment with higher precision and efficiency is required in the modern manufacturing industry, the control requirement for industrial robots is also getting increasingly strict. The positive inversion of industrial robots plays an important role in the Robotics research. It is aimed to establish a mapping relation between Cartesian space coordinates and joint space coordinates for the end effector of robots. Generally, the algebraic method and analytical method are mainly utilized to obtain the inverse solution of robots. As the intelligentization of intelligent robots deepens continuously, and the structure is also getting increasingly complicated, stronger timeliness is required for calculation. Thus, the disadvantages of the traditional methods are getting more and more obvious, such as being not timely, being not applicable to high redundant robots, and so on. In recent years, many researchers made use of neural network algorithms, genetic algorithms, and some other intelligent optimization algorithms to resolve the problem of robot solution reversion and obtained good effects.1–4 To optimize and resolve redundant inverse kinematics of the mechanical arm, Youxing et al. 5 proposed an improved hill-climbing method, which does not require calculating anti-trigonometric function or matrix inversion. It was proved through derivation and calculation that without many operands, this algorithm is simple, and it is featured by fast convergence rate, strong stability and good universality. Aiming at the self-developed 6-DOF modularized mechanical arm, Jiang Hongchao adopted the analytical method of matrix multiplication inversion to resolve the positive kinetic model of the mechanical arm via analyzing the solvability of the positive kinematic model, and obtained the complete analytical solution of the inverse kinematics for this category of mechanical arms. Aiming at a parallel mechanical arm, Rolland and Chandra 6 proposed an optimization method based on a genetic algorithm and transformed the problems of nonlinear equation systems into an one-by-one optimization process and established the kinetic model. Shi et al. 7 put forward an inverse kinematics solution method on the basis of an improved clone selection method. This algorithm introduces a multi-strategy mechanism with the synchronous evolution of the top layer and the bottom layer, which solved the problems such as local convergence that is easy to occur in such algorithms, endowing the algorithm with a strong capability of population diversity retention and achieving a good effect in the resolution process of inverse kinematics for robots. 8 Xihua et al. 9 established an objective function by taking the minimization of the pose error of the end effector as the optimization index and achieved good effects. Lin et al. 10 proposed a high-precision parallel inversion algorithm for general robots based on a multi-population genetic algorithm which utilizes the immigrant operators that combine the population replacement and individual replacement to avoid local convergence, and obtained good effects.
Inspired by the above intelligent optimization algorithms with perspective features, an Extreme Learning Machines hybrid optimization method by blending Sparrow Search Algorithm and Sine Cosine Algorithm (ELM- SSA-SCA) was proposed in this study to realize inverse solution of industrial robots. Extreme Learning Machines (ELM), based on a single hidden layer feedforward neural network, is able to ensure the accuracy and timeliness of the inverse solution when calculating the initial inversion solution. Sparrow Search Algorithm (SSA) 11 has a strong local searching ability and fast convergence rate, but it is weak in global searching. Compared to genetic algorithm or particle swarm optimization method, Sine Cosine Algorithm (SCA) is featured by simple structure, few parameters and good feasibility in solving the multiple-input-multiple-output problem. The method in the present study gives play to the global searching ability of SSA and good robustness and prominent applicability of SCA to the greatest extent and ensures the speed and precision of inversion solution calculation of mechanical arms. 12 The results of the simulation and experiment have demonstrated that the algorithm in this study showed a fast convergence rate and good timeliness, and the inversion solution obtained was relatively high in precision.
ELM-SSA-SCA hybrid optimization algorithm
ELM algorithm
ELM, proposed by professor Huang Guangbin, 13 is an algorithm to resolve a single hidden layer neural network, which can achieve a better calculation speed on the premise of ensuring learning precision. During the training stage, ELM randomly initializes the hidden layer and output weight, and maps the data to the feature space to establish the mapping relation. Therefore, the training speed is faster than that of the general methods.
The output of the i-th hidden layer node
where
In order to achieve good effect on the training sample set, the error should be minimized, so that the minimum solution of the objective function is the optimum solution. Hence, the objective function is as follows:
Among them:
The input weight W and hidden layer offset
where
In the algorithm, the initial inversion solution value of the 6-DOF industrial robots was obtained through ELM.
14
Firstly, the node number if the hidden layer and the weight of the input layer were initialized. Then, the mapping relation between the joint vector and the pose of end effector was established through forming the data pairs
From the above ELM principle, it can be known that the weight of the input layer was initialized in a random way, thus bringing blindness to and the initial weight and threshold generated each time. 15 However, the initial weight has a great impact on the prediction result of the whole model, so SSA was used to optimize the initial weight of ELM.
SSA-SCA hybrid optimization method
SSA algorithm, inspired by the sparrow’s behavior of foraging and escaping from predators, is a kind of intelligent optimization algorithm with strong optimization capability and fast convergence rate. The population composed of
where d stands for the dimension of the problem variable to be optimized. The fitness value of all sparrows can be expressed as follows:
where
The sum of mean square errors of the training set and test set is called as fitness function, and the smaller the error is, the more accurate the prediction is. In SSA, the sparrow with better fitness value will discover food first, and during this process, the position of the discoverer will be updated with the change of iteration times, which is described as follows:
where
In the basic SSA algorithm, when
In Formula (10),
When SSA iterates for certain times with the fitness value unchanged, the follower becomes the discoverer. To enhance the global searching ability and avoid local optimization, the Levy flying strategy was introduced in the update formula of followers, and the improved Formula (10) is expressed as follows:
where
Hence, for the blended optimization algorithm (ELM-SSA-SCA), firstly, N sub-populations formed by the initial inversion solution predicted by ELM are randomly initialized. Then SSA is adopted to optimize N sub-populations respectively, and the optimization result is used to construct the optimization group. After that, SCA algorithm is applied to the optimization group to judge whether the stopping criterion of SCA algorithm is met. If it is met, the optimum solution will be output, and if it is not met, iteration will be continued. The flow chart of ELM-SSA-SCA algorithm is shown in Figure 1.

Flow chart of ELM- SSA-SCA algorithm.
Verification analysis
Solution of inverse kinematics based on ELM-SSA-SCA industrial robots
To verify the performance of the algorithm proposed in this study, the proposed blended optimization algorithm (SSA-ELM-SCA) verified by certain 6-DOF industrial robot was used to confirm the accuracy of the inversion solution of 6-DOF industrial robots. 16 6-DOF industrial robots are shown in Figure 2.

6-DOF industrial robot.
The mapping relation of the joint space and Cartesian space
Inversion solution verification of blended optimization algorithm (ELM-SSA-SCA)
Table 1 reveals the comparison results of the inverse kinematics errors of six poses. Ten point locations within the accessible spaces of industrial robots were selected randomly, and the geodetic coordinate system was used as the standard to record the Cartesian coordinates corresponding to these point locations. 17 The blended optimization algorithm (ELM-SSA-SCA) proposed in this study was used to calculate the inverse solution and corresponding poses, as well as the inversion solution error, with mm as the unit of the error.
Inverse kinematic verification of 10 sets of fixed poses (in geodetic coordinate system).
It can be observed from Table 1 that, as verified by the 6-DOF robot, the inversion solution obtained using the blended optimization method (SSA-ELM-SCA) has smaller errors, no greater than 0.16%, which is within the normal error range of the robot equipment. The iteration times and convergence curves of the blended optimization method (SSA-ELM- SCA) are shown in Figure 3.

SSA-ELM- SCA,SSA optimization, PSO-BP algorithm iteration curve.
According to Figure 3, the optimum solution can be speedily obtained by the blended optimization method (SSA-ELM-SCA) when iteration starts. The fitness value of the algorithm is less than that of using the SSA algorithm alone. The convergence rate is fast, the curve is stable and the timeliness is also fine. The root mean squared error (RMSE) indicates the degree of curve fit between the predicted value and the true value. The algorithm in this paper is set as follows:
where

Comparison of prediction results between training set and testing set (a is the prediction of training set, and b is the prediction of testing set): (a) training set and (b) testing set.
The training of 2800 groups was carried out for the ELM-SSA-SCA algorithm, and 10 groups of poses were selected from the trained models to conduct experiment, thus obtaining the curve of real values and prediction values of 2800 groups of training sets (Figure 4(a)) and the curve of real value and prediction value of 10 groups of testing groups (Figure 4(b)). Figure 4 shows that there is little fluctuation in the error of prediction values and real values using the blended optimization method (SSA-ELM- SCA), the RMSE of the 2800 training sets is 0.17782 and the RMSE of the 10 test sets is 0.19542, with fluctuations below 5 mm, which is within the normal probability error of the intelligent optimization algorithm, indicating that the blended optimization method (SSA-ELM-SCA) is of excellent prediction precision.
Conclusion
The blended optimization method (SSA-ELM-SCA) was proposed to obtain the solution of 6-DOF inverse kinematics. During the stage of initial solution, ELM with the feature of fast convergence was utilized to get the initial inversion solution speedily, which enhances the timeliness of the algorithm to obtain inverse solution. Then the SSA algorithm with strong global searching ability was used, and the SCA algorithm was applied to select the optimum solution from the obtained pose group. Thus, the speed and precision of the solving process were improved obviously. The experiment has also verified the high speed and precision of the blended optimization method (SSA-ELM-SCA) in the solving process of the industrial robots. The algorithm proposed in this study outperforms other algorithms in terms of convergence speed, precision and timeliness.
Footnotes
Handling Editor: Chenhui Liang
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 is supported by the 2021 Jiangsu Higher Education Teaching Reform Research Key Project (No. 2021JSJG156) and Shaanxi Key Laboratory of Machinery Manufacturing Equipment Construction Project, which are highly appreciated by the authors, and I would like to thank you.
