Next Article in Journal
A Novel Impact Feature Extraction Method Based on EMD and Sparse Decomposition for Gear Local Fault Diagnosis
Next Article in Special Issue
USV Application Scenario Expansion Based on Motion Control, Path Following and Velocity Planning
Previous Article in Journal
A Novel Principal Component Analysis-Informer Model for Fault Prediction of Nuclear Valves
Previous Article in Special Issue
Investigation on Temperature Rise Characteristic and Load Capacity of Amorphous Alloy Vegetable Oil Distribution Transformers with 3D Coupled-Field Method
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Artificial Neural Network Approach for Solving Inverse Kinematics Problem for an Anthropomorphic Manipulator of Robot SAR-401

Department of Informatics and Control in Technical Systems, Sevastopol State University, 299053 Sevastopol, Russia
*
Author to whom correspondence should be addressed.
Machines 2022, 10(4), 241; https://doi.org/10.3390/machines10040241
Submission received: 28 February 2022 / Revised: 25 March 2022 / Accepted: 25 March 2022 / Published: 29 March 2022
(This article belongs to the Special Issue Advanced Control Theory with Applications in Intelligent Machines)

Abstract

:
The paper proposes a new design of an artificial neural network for solving the inverse kinematics problem of the anthropomorphic manipulator of robot SAR-401. To build a neural network (NN), two sets were used as input data: generalized coordinates of the manipulator and elements of a homogeneous transformation matrix obtained by solving a direct kinematics problem based on the Denavi–Hartenberg notation. According to the simulation results, the NN based on the homogeneous transformation matrix showed the best accuracy. However, the accuracy was still insufficient. To increase the accuracy, a new NN design was proposed. It consists of adding a so-called “correctional” NN, the input of which is fed the same elements of the homogeneous transformation matrix and additionally the output of the first NN. The proposed design based on the correctional NN allowed the accuracy to increase two times. The application of the developed NN approach was carried out on a computer model of the manipulator in MATLAB, on the SAR-401 robot simulator, as well as on the robot itself.

1. Introduction

Modern manipulators that allow solving high-precision technological tasks are kinematically redundant. They have at least 6 degree of freedom (DOF) which provides sufficient mobility and flexibility to solve complex tasks. An obvious and natural approach to a control design of anthropomorphic robot manipulators is an approach based on solving the inverse kinematics problem (IKP).
The complexity of the IKP of anthropomorphic manipulators arises from the nonlinear equations that arise between the Cartesian space and the joint space [1]. Solving the IKP is one of the important problems, which requires solving a system of nonlinear differential equations and calculating the pseudoinverse Jacobi matrix [2]. This problem is computationally complex [3]. The use of conventional numerical methods to solve it is time-consuming. They often have a singularity [4]. Considering that neural networks (NN) are designed to solve nonlinear equations, some papers [4,5,6,7,8] propose an approach to the control design of anthropomorphic manipulators based on the NN approach to reduce the computational complexity of control design.
The main direction of a NN design for solving the IKP is related to the influence of structural parameters (the number of hidden layers and the number of neurons in each hidden layer), iteration steps, and a training dataset on the performance of the IKP solution approximation [9,10]. At the same time, it is not recommended to complicate a NN configuration, because this leads to a significant increase in the number of iterations to achieve the required learning goal [11]. The training dataset for a NN design is obtained either by solving a direct kinematics problem (DKP) or by experiments.
Some robots with anthropomorphic manipulators have copy-type master device that allow forming a training dataset without solving the DKP. Note that this method has some disadvantages: limitations of the experimental equipment in terms of the accuracy of the measured data and more time spent collecting the training dataset.
As an example of a robot with a copy-type master device, one can indicate the robot SAR-401 (see Figure 1) [12,13] and the underwater robot “Ichthyandr” (see Figure 2) [14,15]. Both robots are produced by the company “Android Technology”. The manipulators of these robots have 7-DOF. Copy-type master device for robots is shown in Figure 3.
In this paper, the robot SAR-401 will be considered as an object for further research. The robot SAR-401 without a stand is shown in Figure 4. Let us briefly summarize the main characteristics of the robot SAR-401.
The general characteristics of the robot SAR-401: weight—70 kg; height—820 mm; a span of manipulators—2050 mm; number of video cameras—2 (stereo vision mode).
The main advantages of the robot SAR-401 are the performance of technological operations with efficiency comparable to human actions; force-torque feedback for the operator; the possibility of using a tool used by an operator; work in automatic and copying mode with copy-type master device.
As already noted, there are a large number of papers describing the NN design for solving the IKP for anthropomorphic manipulators. At the same time, there is no one universal solution for all types of robots.
This paper describes the design of the NN for solving the IKP of anthropomorphic manipulators of the robot SAR-401. The proposed design is based on the use of the so-called “correctional” structure of the NN and the special choice of the structure of the input dataset.

2. Materials and Methods

2.1. Kinematics Analysis of the Robot SAR-401

The generalized coordinates q i of the manipulator obtaining from the given coordinates x ,   y ,   z and Euler angles ϕ ,   θ ,   γ of the end-effector can be used as a training dataset. The end-effector coordinates are defined in the Cartesian coordinate system relative to the base of the robot. As mentioned above, the training dataset can be obtained using the copy-type master device. Additionally, knowing the exact characteristics of the robot, we can obtain the training dataset as a result of solving the DKP.
To solve the DKP we use a kinematic diagram of the anthropomorphic manipulators of the robot SAR-401 (Figure 5) and the notation and methodology of Denavit–Hartenberg [16]. We will consider the left manipulator of the robot. Since this manipulator has only rotational joints, the relative location of neighboring links will be determined by the angular variable θ i .
The Denavit–Hartenberg parameters for the left manipulator of the robot SAR-401 are shown in Table 1.
In Table 1, the following notations are accepted: A i is the distance between the Z i 1 and Z i axes along the X i axis, α i is the angle from the Z i 1 axis to the Z i axis about the X i axis, d i is the distance from the origin of the frame i 1 to the X i axis along the Z i 1 axis, θ i are generalized coordinates (the angles of rotation of joints). The parameters θ i ,   i = 1 ,   6 ¯ are variables and are initially 0.
For the right manipulator the Denavit–Hartenberg parameters are identical.
The limits on the movements of the servo drive of the joints of the robot SAR-401 manipulators are given in Table 2. The numbering of the servo drives is shown in Figure 5.
To build a computer model of the manipulator kinematics, we will use the RoboticsToolbox of MATLAB [17]. The values of parameters A i , α i , and d i are selected from Table 1. The parameter θ i describes the initial position of the manipulator.
A visual representation of the computer model of the initial position of the robot SAR-401 left manipulator is shown in Figure 6.

2.2. Training Dataset for Neural Network

At the initial stage of designing the NN, we must choose a training dataset. The input dataset must be associated with the coordinates x ,   y ,   z and Euler angles ϕ ,   θ ,   γ of the manipulator’s end-effector.
The training dataset using the copy-type master device consists of the random location of the manipulators and corresponding coordinates x ,   y ,   z and Euler angles ϕ ,   θ ,   γ of the end-effector. The position of the manipulator changes by operator until a sufficient amount of data is collected.
To prepare the training dataset for the NN using a copy-type master device, we randomly select the possible positions of the manipulator in different places of its working area. The obtained data will be saved as a vector Y = [ q 1   q 2   q 3   q 6 ] , where q i ,   i = 1 ,   6 ¯ is the generalized coordinate of the i-th joint.
To prepare the training dataset using the solution of the DKP for each position of the manipulator, we find the coordinates of the end effector. Figure 7, as an example, shows the result of solving the forward kinematics problem for 30,000 randomly generated positions of the manipulator.
When solving the DKP, two coordinate systems are considered: the initial one, associated with the base joint x 0 ,   y 0 ,   z 0 , and the final one, associated with the end-effector of the manipulator x n ,   y n ,   z n .
Extended position vectors X ^ 0 = x 0 y 0 z 0 1 T and X ^ n = x n y n z n 1 T , for the specified coordinate systems, are related by the formula
X ^ 0 = T n 0 X ^ n ,
where T n 0 = R 3 x 3 p 3 x 1 f 1 x 3 t is a 4 × 4 matrix of a homogeneous transformation that carries information about the translation (vector p 3 x 1 ) and the rotation of one coordinate system relative to another (matrix R 3 x 3 ), f 1 x 3 is a 1 × 3 vector that specifies the perspective transformation, t is a global scaling factor. In our case, f 1 x 3 = [ 0   0   0 ] , t = 1 .
Now, for each joint, we can define the homogeneous transformation matrix T i , which specifies a sequence of transformations according to the Denavit–Hartenberg notation
T i = T z   d i T z   θ i T x   A i T x   α i = I p d i 0 1 R z   θ i 0 0 1 I p A i 0 1 R x   α i 0 0 1 .
T i = = 1 0 0 0 0 1 0 0 0 0 1 d i 0 0 0 1 cos θ i sin θ i 0 0 sin θ i cos θ i 0 0 0 0 1 0 0 0 0 1 1 0 0 A i 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0 cos α i sin α i 0 0 sin α i cos α i 0 0 0 0 1 = = cos θ i cos α i sin θ i sin α i sin θ i A i cos θ i sin θ i cos α i cos θ i sin α i cos θ i A i sin θ i 0 sin α i cos α i d i 0 0 0 1 .
The calculation of the homogeneous transformation matrix (depending on the angles θ 1 ,   θ 2 ,   θ 3 ,   θ 4 ,   θ 5 ,   θ 6 ) is carried out using the relation
T n 0 = T 1 T 2 T 3 T 4 T 5 T 6 .
As a result, we get the transformation matrix
T n 0 = n x o x a x x n y o y a y y n z o z a z z 0 0 0 1 .
We will consider two datasets as input data for training the NN. The first dataset is obtained from the transformation matrix (4), (5) and is represented as a vector X j = [ x ,   y ,   z ,   ϕ ,   θ ,   γ ] , where, as before, x ,   y ,   z are the coordinates of the end-effector, ϕ ,   θ ,   γ are the Euler angles that determine the orientation of the end-effector in the Cartesian coordinate system, j is the measurement number.
As output data of the training dataset, we will use the vector Y j = [ q 1   q 2   q 3   q 6 ] of the angles of servo drive of each manipulator’s joint, corresponding to the values X j . Further, we will call the NN with the specified input data as the RPY NN.
We will also create a second set of input data as elements of the homogeneous transformation matrix (5)—nine elements of the rotation matrix and three values of the position vector [5]
R 3 x 3 = n x o x a x n y o y a y n z o z a z ,   p 3 x 1 = x y z .
As a result, we will feed to the input of the NN the vector X j consisting of the elements of the matrices R 3 x 3 and p 3 x 1 :
X j = [ n x   n y   n z     o x   o y   o z   a x   a y   a z   x   y   z ] .
As in the first case, we will take the vector Y j = [ q 1   q 2   q 3   q 6 ] as output data. The NN with the second dataset we will call the MATRIX NN.
The structure of these NN is shown in Figure 8:

2.3. The Amount of Training Data

The basic rule for selecting training data says that the number of observations should be ten times the number of connections in the NN. However, in practice, this amount of data also depends on the complexity of the task that the neural network must predict. With an increase in the number of variables, the number of required observations grows non-linearly, so even with a fairly small number of variables, a fairly large number of observations may be required [18,19].
Let us analyze the required amount of input data for training a neural network designed to solve the IKP. The research will be conducted on 1000, 10,000, 40,000, and 160,000 values of training datasets.
According to the standard approach, the input data is divided into the following proportion: 70% are used as training data, 15% as validation data, and 15% are used for testing [20]. The duplicate input data should be removed [20].

2.4. The Activation Function

The activation function determines the output value of the neuron depending on the result of the weighted sum of the inputs and some threshold value [21].
To solve the regression problem and neural network training using gradient descent, we need a differentiable activation function. It is recommended to choose a sigmoid function. However, since the neural network being designed should perceive values both in the positive and in the negative range, therefore, despite all the advantages of the sigmoid function we will lose some of the data.
For the designed neural network, we need an activation function that will repeat all the properties of the sigmoid function but lie in the range from −1 to 1. For this task, we will use the hyperbolic tangent function t h ( x ) = e 2 x 1 e 2 x + 1 . Using this function will allow us to switch from the binary outputs of the neuron to analog ones. The range of values of the hyperbolic tangent function lies in the interval (−1; 1).
In MATLAB, we will use the tansig(x) function, which is equivalent to the function that implements the hyperbolic tangent tanh(x). At the same time, the function tansig(x) is calculated faster than tanh(x), however, the solutions may have minor deviations [22]. The use of the tansig(x) function is a good alternative for developing neural networks in which the speed of calculations is important, rather than the accuracy of calculating the activation function [23].

2.5. The Loss Function

To check the correctness of the solutions obtained from the neural network, we must calculate the deviations of the neural network solution from the solutions obtained as a result of solving IKP. To do this, we will use the loss function.
To calculate the error, we use the Mean Squared Error (MSE) method
M S E = 1 n i = 1 n ( y k y n ) 2 ,
where y k are the true output values of the robot, y n are the output values that the NN received, n is the total amount of data.
Usually, outliers in the training dataset are discarded. Since our robot is limited by the physical capabilities of the servo drives (Table 2), there will be no anomalous values in the dataset.
The MSE method performs well at a fixed learning rate [24].

2.6. The Learning Functions

To select the optimal learning algorithm, traditionally the main indicators are its accuracy and performance. As a neural network training algorithm for solving IKP, the use of the following types of error backpropagation methods were studied:
  • Levenberg–Marquardt (trainlm);
  • Bayesian regularization backpropagation (trainbr);
  • scaled conjugate backpropagation gradient (trainscg);
  • resilient backpropagation (trainrp).
To select an algorithm, the solution was tested on training a simple network—a MATRIX NN with 40,000 values of training datasets.
Figure 9 shows error histograms as the difference between target and predicted values when training a MATRIX NN with 40,000 values of training datasets using the indicated algorithms.
The mathematical expectations of errors for each of the algorithms are shown in Table 3. It shows that the best result was shown by the Levenberg–Marquardt algorithm, which provides fast convergence of the learning error. In further studies, we will use this learning function.

2.7. The Hidden Layers

Usually, the search for the optimal dimension for the hidden layer is determined experimentally [20]. At the same time, too many neurons are undesirable, because this can lead to overfitting. However, the number of neurons should be sufficient so that the neural network can capture the complexity of the input–output connections.
In [25], three rules are mentioned for choosing the dimension of the hidden layer:
  • if there is only one output node in the neural network, and it is assumed that the required input–output connection is quite simple, then at the initial stage the dimension of the hidden layer is assumed to be 2/3 of the dimension of the input layer;
  • if the neural network has several output nodes or it is assumed that the required input–output relationship is complex, the dimension of the hidden layer is taken equal to the sum of the input dimension plus the output dimension (but it must remain less than twice the input dimension).
  • if in the neural network the required input–output connection is extremely complex, then the dimension of the hidden layer is set equal to one less than twice the input dimension.
  • Based on the above recommendations, we will set the configuration of the hidden layer:
  • the number of hidden layers is one;
  • the number of neurons in this layer is set to one less than twice the input dimension.
Based on the above recommendations, Table 4 shows the parameters of neural networks and the results of their training, which were studied to select the best option.
The studies have shown a higher accuracy of the MATRIX NN. For this network, in the case of 160,000 inputs, the error is 0.0068 m. For the RPY NN in a similar situation, the error is 0.0094 m. Additionally, note that the training time of the RPY NN without connecting a graphics processing unit (GPU) is approximately 10 times longer than the training time of the MATRIX NN. In the future, all reasoning will be carried out for the network, with input values taken for the MATRIX NN.
For the proposed structure of the MATRIX NN, good results were obtained, but the deviation in the size of 0.0068 m will not allow the use of the manipulator when performing the technological operation that requires higher accuracy.

3. Results

3.1. The “Correctional” Neural Network

Since the use of large NN with large input datasets requires the use of large computing resources, we will improve the accuracy of solution not by increasing the NN, but by changing the configuration of the NN.
In most applications, the manipulator always starts motion from some arbitrary position and moves along a trajectory from successive points. Including the current manipulator configuration in the input data has a positive effect on estimating the joint angles for the next desired position. We will artificially divide the trajectory of the manipulator to a given point into two parts. The first part is the arrival of the manipulator in the area as close as possible to the desired point and the second part is the adjustment of the manipulator to the desired point (Figure 10).
Based on this idea, in this paper we propose a new design of the NN to solve the IKP for an anthropomorphic manipulator. To improve the accuracy of the IKP solution we propose to take into account the values of the manipulator generalized coordinates that are close to the desired ones, assuming them as the current values of the manipulator joints angles. The new design of the NN is based on the use of the so-called “correctional” structure of the NN. It consists of the MATRIX NN described above and the second series-connected NN. The input of the second series-connected network will supply the same values as for the MATRIX NN and the output of the MATRIX NN (Figure 11), which gives us close to the desired values of the generalized coordinates of the manipulator.
The proposed NN (Figure 11) has 12 elements in the input layer (data from the MATRIX NN). The output layer has six elements, generalized coordinates, which represent the joint’s angles. Eighteen input data values are fed to the input of the second network:
X 2 = [ n x   n y   n z   o x   o y   o z   a x   a y   a z   x   y   z   q 1   q 2   q 3   q 4   q 5   q 6 ] .
The inputs and outputs of the correctional NN (Figure 11) are described as follows:
[ Q ] = A N N _ N e t 1 ( R 3 x 3   p 3 x 1 ) . [ Q ] = A N N _ N e t 1 ( n x   n y   n z   o x   o y   o z   a x   a y   a z   x   y   z   ) , [ Q ] = A N N _ N e t 2 ( R 3 x 3   p 3 x 1 ,   Q ) ,   Q = [ q 1   q 2   q 3   q 4   q 5   q 6 ] ,   Q = [ q 1   q 2   q 3   q 4   q 5   q 6 ] .
To test the solution of the correctional NN, we use new randomly obtained positions of the robot SAR-401 manipulator, which were not used for training. This is necessary to check for overfitting.
We will check the accuracy using the DKP. Having tested the operation of the NN with a new random input data set, we found that the root-mean-square error is 0.0035 m (Figure 12a).
The performance of the correctional NN is shown in Figure 12b. The differences between the NN output and the target are computed via the MSE. It decreases rapidly during the learning process.

3.2. Example

After training the correctional NN, we will conduct experiments by calculating various movements of the robot SAR-401 manipulator, using this NN for solving the IKP. Let us move the manipulator along the trajectories: a circle, a triangle, a rectangle, and a 3D spiral, moving forward along the Y-axis. The experiments were performed in MATLAB, on the robot SAR-401 simulator, and the robot SAR-401.
We will demonstrate the solution of these problems for various variants of MATRIX NN (see Table 4) and the correctional NN.
In Figure 13, Figure 14, Figure 15 and Figure 16 we present a graphical solution of these problems for each of the NNs in comparison with the solution of the IKP. In all graphs, the solution of the neural network is marked in red, and the construction of the trajectory using the IKP is marked in blue.
It is also possible to demonstrate the movement of the manipulator in MATLAB. An example of a demonstration is shown in Figure 17.
Figure 18 shows the simulator, in which manipulator control was tested using the correctional NN.
Note that the time for calculating the classical solution of the IKP when calculating 400 points for the 3D spiral trajectory was from 33 to 42 s. The time for calculating the same points of the trajectory using the NN lies in the interval from 0.06 to 0.3 s.
The classical numerical solution of the IKP and the solution of the IKP using the NN have some discrepancies (error) (this is seen from Figure 13, Figure 14, Figure 15 and Figure 16).
Let us demonstrate in Figure 19 and Figure 20 graphs of changes in X, Y, and Z coordinates when the manipulator moves along a 3D spiral for MATRIX NN 1 and the correctional NN. In all graphs, the solution of the NN is marked in red, and the construction of the trajectory using the IKP is marked in blue.
Certain conclusions can be drawn by analyzing changes in the generalized coordinates of the manipulator, which explain which joint makes the greatest contribution to the error. Figure 21 and Figure 22 show the corresponding graphs. As before, the solution of the neural network is marked in red, and the construction of the trajectory using the numerical solution of the IKP is marked in blue.
We see that a significant contribution to the error is made by the q5 coordinate (Figure 5), which determines the rotation of the “wrist” of the manipulator. Calculation accuracy and NN characteristics are shown in Table 5. The accuracy of 2–4 mm obtained by correctional NN is sufficient for the manipulation tasks of the SAR-401 robot and is related to mechanical characteristics (backlash, friction, etc.). The specified error allows the robot to capture objects and perform manipulation operations.

4. Discussion

A feature of the neural network approach is that neural networks can be divided into different types according to different criteria. For example, from the point of view of the network structure, they can be divided into two categories: feedforward neural networks and recurrent neural networks [26]. To design neural networks, formalized algorithms are not always used. For example, they are not always used when choosing the number of hidden layers. This leads to the fact that the neural network is a design based on various tests and experiments. It is not always possible to find a universal approach. Despite this, if it is possible to find an effective neural network structure for solving the IKP for the type of anthropomorphic manipulator, then we will get a very effective solution in terms of algorithm speed and accuracy.
At the same time, the obtained solution can be complex in the sense that by solving the IKP using the NN approach, it is also possible to solve the problem of the self-collision control of manipulators using this approach. A feature of solving this problem will be its solution not with the help of a classification approach, but with the help of a regression method [19].
Therefore, for example, in the problem of the self-collision control, to collect training data, it is necessary to change the position of two manipulators in random order and obtain from the robot for each position of the manipulators the values of the coordinates and Euler angles of orientation in space of all nodes of the manipulators. Thus, as input data, we will use the values of the rotation angles of the servo drives for each joint of the two manipulators. The NN input dataset for the self-collision control problem will be the elements of the homogeneous transformation matrix (nine elements of the rotation matrix and three values of the position vector for each manipulator).
To calculate the output of the NN, all distances between the links of two manipulators are determined. The minimum distance between the manipulators for each position in the robot workspace for the corresponding input data is used as the output value.
When choosing a NN configuration and processing input data, we will get an effective integrated solution of the problem of anthropomorphic manipulators motion with the self-collision control based on a unified NN approach.

5. Conclusions

In this paper, we have solved the IKP for the robot SAR-401 anthropomorphic manipulator. To solve the problem, the NN was designed, and the input data of the NN are the elements of the homogeneous transformation matrix. The choice of the NN configuration was carried out using a comparative analysis. The solution obtained in this paper is characterized by high speed and accuracy. Given the presence of two manipulators in the robot SAR-401, when performing technological operations, self-collisions of manipulators may occur. The problem of self-collision control can also be solved based on the NN approach.

Author Contributions

Conceptualization, V.K. and A.K.; methodology, V.K. and O.K.; software, O.K.; validation, V.K., O.K. and A.K.; formal analysis, A.K.; investigation, V.K., O.K.; resources, A.K.; data curation, O.K.; writing—original draft preparation, V.K., O.K.; writing—review and editing, A.K.; visualization, O.K.; supervision, V.K.; project administration, A.K.; funding acquisition, A.K. All authors have read and agreed to the published version of the manuscript.

Funding

The research is supported by the Ministry of Science and Higher Education of the Russian Federation, Agreement No. 075-03-2021-092/5 dated 29.09.2021, FEFM-2021-0014 № 121111600136-3.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available upon request from the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Li, S.; Zhang, Y.; Jin, L. Kinematic control of redundant manipulators using neural networks. IEEE Trans. Neural Netw. Learn. Syst. 2017, 28, 2243–2254. [Google Scholar] [CrossRef] [PubMed]
  2. Hollerbach, J.; Suh, K. Redundancy resolution of manipulators through torque optimization. IEEE J. Robot. Automat. 1987, 3, 308–316. [Google Scholar] [CrossRef] [Green Version]
  3. Ahmed, R.J.; Almusawi, L.; Dülger, C.; Kapucu, S. A new artificial neural network approach in solving inverse kinematics of robotic arm (Denso VP6242). Comput. Intell. Neurosci. 2016, 2016, 5720163. [Google Scholar] [CrossRef] [Green Version]
  4. Bingul, Z.; Ertunc, H.M.; Oysu, C. Comparison Of Inverse Kinematics Solutions Using Neural Network for 6R robot Manipulator With Offset. In Proceedings of the ICSC Congress on Computational Intelligence Methods and Applications, Istanbul, Turkey, 15–17 December 2005; p. 5. [Google Scholar] [CrossRef]
  5. Xia, Y.; Wang, J. A dual neural network for kinematic control of redundant robot manipulators. IEEE Trans. Syst. Man Cybern. 2001, 31, 147–154. [Google Scholar] [CrossRef] [Green Version]
  6. Yang, Y.; Peng, G.; Wang, Y.; Zhang, H. A New Solution for Inverse Kinematics of 7-DOF Manipulator Based on Neural Network. In Proceedings of the IEEE International Conference on Automation and Logistics, Jinan, China, 18–21 August 2007. [Google Scholar] [CrossRef]
  7. Liu, J.; Wang, Y.; Li, B.; Ma, S. Neural network based kinematic control of the hyper-redundant snake-like manipulator. In Proceedings of the 4th International Symposium on Neural Networks, Nanjing, China, 3–7 June 2007. [Google Scholar] [CrossRef] [Green Version]
  8. Daya, B.; Khawandi, S.; Akoum, M. Applying neural network architecture for inverse kinematics problem in robotics. J. Softw. Eng. Appl. 2010, 3, 230–239. [Google Scholar] [CrossRef] [Green Version]
  9. Driscoll, J.A. Comparison of Neural Network Architectures for The Modelling Of Robot Inverse Kinematics. In Proceedings of the 2000 IEEE SOUTHEASTCON, Nashville, TN, USA, 7–9 April 2000; pp. 44–51. [Google Scholar] [CrossRef]
  10. Choi, B.B.; Lawrence, C. Inverse Kinematics Problem in Robotics Using Neural Networks; NASA Technical Memorandum; Lewis Research Center: Cleveland, OH, USA, 1992; Volume 105869. [Google Scholar]
  11. Peters, J.; Lee, D.; Kober, J.; Nguyen-Tuong, D.; Bagnell, J.A.; Schaal, S. Chapter 15. Robot learning. In Handbook of Robotic; Springer International Publishing: Cham, Switzerland, 2016. [Google Scholar]
  12. Alchakov, V.; Kramar, V.; Larionenko, A. Basic approaches to programming by demonstration for an anthropomorphic robot. IOP Conf. Ser. Mater. Sci. Eng. 2020, 709, 022092. [Google Scholar] [CrossRef]
  13. Bogdanov, A.; Dudorov, E.; Permyakov, A.; Pronin, A.; Kutlubaev, I. Control System of a Manipulator of the Anthropomorphic Robot FEDOR. In Proceedings of the 2019 12th International Conference on Developments in eSystems Engineering (DeSE), Kazan, Russia, 7–10 October 2019; pp. 449–453. [Google Scholar] [CrossRef]
  14. Kramar, V.A.; Alchakov, V.V. The methodology of training an underwater robot control system for operator actions. J. Phys. Conf. Ser. 2020, 1661, 012116. [Google Scholar] [CrossRef]
  15. Kramar, V.; Kabanov, A.; Kramar, O.; Putin, A. Modeling and testing of control system for an underwater dual-arm robot. IOP Conf. Ser. Mater. Sci. Eng. 2020, 971, 042076. [Google Scholar] [CrossRef]
  16. Denavit, J.; Hartenberg, R.S. A kinematic notation for lower-pair mechanisms based on matrices. Trans. ASME J. Appl. Mech. 1955, 23, 215–221. [Google Scholar] [CrossRef]
  17. Corke, P.I. Robotics, Vision and Control Fundamental Algorithms in Matlab; Springer: Cham, Switzerland, 2017; p. 693. [Google Scholar] [CrossRef]
  18. Chen, D.; Cheng, X. Pattern Recognition and String Matching; Springer-Verlag: New York, NY, USA, 2002; p. 772. [Google Scholar] [CrossRef]
  19. Haykin, S. Neural Networks a Comprehensive Foundation, 2nd ed.; Prentice-Hall: Hoboken, NJ, USA, 1999; p. 842. [Google Scholar]
  20. Ng, A. Machine Learning Yearning; GitHub eBook (MIT Licensed): San Francisco, CA, USA, 2018; p. 118. [Google Scholar]
  21. Szandała, T. Review and comparison of commonly used activation functions for deep neural networks. In Bio-Inspired Neurocomputing. Studies in Computational Intelligence; Bhoi, A., Mallick, P., Liu, C.M., Balas, V., Eds.; Springer: Singapore, 2021; pp. 203–224. [Google Scholar] [CrossRef]
  22. Rumelhart, D.; Hintont, G.; Williams, R. Learning representations by back-propagating errors. Nature 1986, 323, 533–536. [Google Scholar] [CrossRef]
  23. Nwankpa, C.E.; Ijomah, W.; Gachagan, A.; Marshall, S. Activation functions: Comparison of trends in practice and research for deep learning. In Proceedings of the 2nd International Conference on Computational Sciences and Technology, Jamshoro, Pakistan, 17–19 December 2020. [Google Scholar]
  24. Irwin, G.W.; Warwick, K.; Hunt, K.J. Neural network applications in control. IEE Control Eng. Ser. 1995, 53, 309. [Google Scholar]
  25. Heaton, J. Artificial Intelligence for Humans; Heaton Research, Incorporated: St. Louis, MO, USA, 2015; p. 374. [Google Scholar]
  26. Müller, B.; Reinhardt, J.; Strickland, M.T. Neural Networks: An Introduction; Springer: New York, NY, USA, 2012. [Google Scholar]
Figure 1. Robot SAR-401.
Figure 1. Robot SAR-401.
Machines 10 00241 g001
Figure 2. The underwater robot “Ichthyandr”.
Figure 2. The underwater robot “Ichthyandr”.
Machines 10 00241 g002
Figure 3. Copy-type master devices. (a) for the robot SAR-401; (b) for underwater robot “Ichthyandr”.
Figure 3. Copy-type master devices. (a) for the robot SAR-401; (b) for underwater robot “Ichthyandr”.
Machines 10 00241 g003
Figure 4. The torso anthropomorphic robot, model SAR-401 (without stand).
Figure 4. The torso anthropomorphic robot, model SAR-401 (without stand).
Machines 10 00241 g004
Figure 5. The kinematic diagram of the robot SAR-401 left manipulator.
Figure 5. The kinematic diagram of the robot SAR-401 left manipulator.
Machines 10 00241 g005
Figure 6. The computer model of the initial position of the robot SAR-401 left manipulator.
Figure 6. The computer model of the initial position of the robot SAR-401 left manipulator.
Machines 10 00241 g006
Figure 7. The solution of the forward kinematics problem for 30,000 random positions.
Figure 7. The solution of the forward kinematics problem for 30,000 random positions.
Machines 10 00241 g007
Figure 8. Neural network architecture: (a) RPY NN; (b) MATRIX NN.
Figure 8. Neural network architecture: (a) RPY NN; (b) MATRIX NN.
Machines 10 00241 g008
Figure 9. Error histogram as the difference between the target and predicted values when training a neural network using: (a) the Levenberg–Marquardt (trainlm); (b) the Bayesian regularization backpropagation (trainbr); (c) scaled conjugate backpropagation gradient (trainscg); (d) resilient backpropagation (trainrp).
Figure 9. Error histogram as the difference between the target and predicted values when training a neural network using: (a) the Levenberg–Marquardt (trainlm); (b) the Bayesian regularization backpropagation (trainbr); (c) scaled conjugate backpropagation gradient (trainscg); (d) resilient backpropagation (trainrp).
Machines 10 00241 g009aMachines 10 00241 g009b
Figure 10. The manipulator movement to a given point.
Figure 10. The manipulator movement to a given point.
Machines 10 00241 g010
Figure 11. The correctional NN.
Figure 11. The correctional NN.
Machines 10 00241 g011
Figure 12. (a) The correctional NN error propagation histogram (b) The performance of the correctional NN.
Figure 12. (a) The correctional NN error propagation histogram (b) The performance of the correctional NN.
Machines 10 00241 g012
Figure 13. Simulation of the movement of the manipulator along a circle: (a) MATRIX NN 1; (b) MATRIX NN 2; (c) MATRIX NN 3; (d) MATRIX NN 4; (e) the correctional NN.
Figure 13. Simulation of the movement of the manipulator along a circle: (a) MATRIX NN 1; (b) MATRIX NN 2; (c) MATRIX NN 3; (d) MATRIX NN 4; (e) the correctional NN.
Machines 10 00241 g013
Figure 14. Simulation of the movement of the manipulator along the rectangle: (a) MATRIX NN 1; (b) MATRIX NN 2; (c) MATRIX NN 3; (d) MATRIX NN 4; (e) the correctional NN.
Figure 14. Simulation of the movement of the manipulator along the rectangle: (a) MATRIX NN 1; (b) MATRIX NN 2; (c) MATRIX NN 3; (d) MATRIX NN 4; (e) the correctional NN.
Machines 10 00241 g014
Figure 15. Simulation of the movement of the manipulator along the triangle: (a) MATRIX NN 1; (b) MATRIX NN 2; (c) MATRIX NN 3; (d) MATRIX NN 4; (e) the correctional NN.
Figure 15. Simulation of the movement of the manipulator along the triangle: (a) MATRIX NN 1; (b) MATRIX NN 2; (c) MATRIX NN 3; (d) MATRIX NN 4; (e) the correctional NN.
Machines 10 00241 g015
Figure 16. Simulation the movement of the manipulator in a 3D spiral: (a) MATRIX NN 1; (b) MATRIX NN 2; (c) MATRIX NN 3; (d) MATRIX NN 4; (e) the correctional NN.
Figure 16. Simulation the movement of the manipulator in a 3D spiral: (a) MATRIX NN 1; (b) MATRIX NN 2; (c) MATRIX NN 3; (d) MATRIX NN 4; (e) the correctional NN.
Machines 10 00241 g016
Figure 17. The demonstration of the movement of the manipulator in MATLAB.
Figure 17. The demonstration of the movement of the manipulator in MATLAB.
Machines 10 00241 g017
Figure 18. Testing the NN on the SAR-401 simulator.
Figure 18. Testing the NN on the SAR-401 simulator.
Machines 10 00241 g018
Figure 19. Graphs of changes in coordinates when the manipulator moves in a 3D spiral (MATRIX NN 1): (a) along the X-axis; (b) along the Y-axis; (c) along the Z-axis.
Figure 19. Graphs of changes in coordinates when the manipulator moves in a 3D spiral (MATRIX NN 1): (a) along the X-axis; (b) along the Y-axis; (c) along the Z-axis.
Machines 10 00241 g019
Figure 20. Graphs of coordinate changes during the movement of the manipulator in a spiral in 3D (the correctional NN): (a) along the X-axis; (b) along the Y-axis; (c) along the Z-axis.
Figure 20. Graphs of coordinate changes during the movement of the manipulator in a spiral in 3D (the correctional NN): (a) along the X-axis; (b) along the Y-axis; (c) along the Z-axis.
Machines 10 00241 g020aMachines 10 00241 g020b
Figure 21. Graphs of changes in generalized coordinates when the manipulator moves along a 3D spiral (MATRIX NN 1): (a) q1; (b) q2; (c) q3; (d) q4; (e) q5; (f) q6.
Figure 21. Graphs of changes in generalized coordinates when the manipulator moves along a 3D spiral (MATRIX NN 1): (a) q1; (b) q2; (c) q3; (d) q4; (e) q5; (f) q6.
Machines 10 00241 g021aMachines 10 00241 g021b
Figure 22. Graphs of changes in generalized coordinates when the manipulator moves along a 3D spiral (the correctional NN): (a) q1; (b) q2; (c) q3; (d) q4; (e) q5; (f) q6.
Figure 22. Graphs of changes in generalized coordinates when the manipulator moves along a 3D spiral (the correctional NN): (a) q1; (b) q2; (c) q3; (d) q4; (e) q5; (f) q6.
Machines 10 00241 g022aMachines 10 00241 g022b
Table 1. DH parameters for the left manipulator of the robot SAR-401.
Table 1. DH parameters for the left manipulator of the robot SAR-401.
Link, i A i , m α i , Rad d i , m θ i ,   Rad
10π/20 θ i
20π/20 θ i π / 2
30π/2−0.3 θ i π
40π/20 θ i + π
50π/2−0.3 θ i + π
6−0.2400 θ i + π / 2
Table 2. Manipulator servo drives limits.
Table 2. Manipulator servo drives limits.
ServoLeft ManipulatorRight Manipulator
MinMaxMinMax
0−90°−90°
1105°−105°
2−40°40°−40°40°
3−110°−110°
4−40°40°−40°40°
5−10°10°−10°10°
Table 3. Mathematical expectations of NN training algorithms.
Table 3. Mathematical expectations of NN training algorithms.
AlgorithmThe Mathematical Expectation of Error (m)
trainlm0.0786
trainbr0.0852
trainscg0.1242
trainrp0.1045
Note that the Levenberg–Marquardt algorithm is the fastest backpropagation algorithm in the MATLAB Neural Network Toolbox and is recommended for use even though it requires more RAM than other algorithms.
Table 4. Results of training neural networks.
Table 4. Results of training neural networks.
Experiment NAmount of Training DataNumber of Hidden LayersNumber of Neurons in Hidden LayersLoss Function (m)
RPY NNMATRIX NN
140,0001(11-RPY) (23-MATRIX)0.08360.0384
240,0002[20,30]0.02590.0166
340,0004[30,30,60,60]0.01190.0110
4160,0004[30,30,60,60]0.00940.0068
Table 5. The IKP NN prediction accuracy.
Table 5. The IKP NN prediction accuracy.
Neural NetworkAmount of Training DataNumber of Hidden LayersNumber of Neurons in Hidden LayersCalculation Accuracy (m)
SpiralTriangleRectangleCircle
MATRIX NN 140,0001230.03470.03580.03420.0483
MATRIX NN 240,0002[20,30]0.01680.01620.00940.0156
MATRIX NN 340,0004[30,30,60,60]0.01380.00770.00530.0112
MATRIX NN 4160,0004[30,30,60,60]0.00680.00430.00420.0070
The correctional NN160,0004 4[30,30,60,60]
[30,30,60,60]
0.00350.00210.00320.0035
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Kramar, V.; Kramar, O.; Kabanov, A. An Artificial Neural Network Approach for Solving Inverse Kinematics Problem for an Anthropomorphic Manipulator of Robot SAR-401. Machines 2022, 10, 241. https://doi.org/10.3390/machines10040241

AMA Style

Kramar V, Kramar O, Kabanov A. An Artificial Neural Network Approach for Solving Inverse Kinematics Problem for an Anthropomorphic Manipulator of Robot SAR-401. Machines. 2022; 10(4):241. https://doi.org/10.3390/machines10040241

Chicago/Turabian Style

Kramar, Vadim, Oleg Kramar, and Aleksey Kabanov. 2022. "An Artificial Neural Network Approach for Solving Inverse Kinematics Problem for an Anthropomorphic Manipulator of Robot SAR-401" Machines 10, no. 4: 241. https://doi.org/10.3390/machines10040241

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop