Abstract
In this paper, two methods for directly identifying inertial parameters of manipulator are proposed, which solves the problem that inertial parameters are difficult to identify due to coupling. First, a Model Identification Method (MIM) is proposed based on multibody dynamics. MIM realizes the decoupling of inertial parameters by the mathematical description of graph theory, and has extremely high identification accuracy. Since complex modeling and calculation will affect the real-time performance of the algorithm, MIM is suitable for offline identification. Second, a numerical identification method (NIM) is proposed based on neural networks. NIM avoids complex mechanical modeling process and obtains the approximate value of inertial parameters by numerical fitting method. Compared with MIM, the identification results lose some accuracy. However, NIM has excellent real-time performance and is suitable for online identification. Finally, the effectiveness of the method is verified by simulation experiments. MIM and NIM have complementary characteristics and different application scenarios, which can meet the vast majority of identification needs. The obtained results shed light on achieving precise control of manipulators.
Introduction
Identifying the inertia parameters (mass and principal moment of inertias of each rigid body) of robots is of great significance for their control, 1 the accuracy of the inertia parameters largely determines the control accuracy, especially for control based on dynamic models. 2 However, current research is difficult to directly identify inertial parameters and can only identify their coupling terms, especially for multi degree-of-freedom (DOF) robots. Dynamics studies the relationship between pose (position and posture), velocity (linear and angular velocity), acceleration (linear and angular acceleration), and force (force and moment), while force and kinematic parameters (i.e. the first three) are mathematically related by inertial parameters. Therefore, whether controlling kinematic parameters by force or controlling forces by kinematic parameters, the accuracy of control algorithms largely depends on the accuracy of inertial parameters.3–5
The dynamic model of a robot includes inertia parameters, while the kinematic model does not. Therefore, to identify inertia parameters, it is necessary to establish a dynamic model of the robot. It should be noted that there is a difference between inertia parameters and dynamic parameters. Inertia parameters refer to the mass and principal moment of inertia, while dynamic parameters refer to the position of centroid, inertia tensor, and mass. Therefore, inertia parameters can be considered as a subset of dynamic parameters. Most existing papers on dynamic parameters identification does not identify strictly defined dynamic parameters, but rather identifies coupling terms of dynamic parameters, such as the product of mass and center of mass, 6 the mixed terms of inertia tensor, mass, and centroid position, 7 etc., and in literature, 8 the coupling term also includes friction parameters, and some papers also refer to the above mixed terms as inertial parameters. 9 The identification of inertial parameters in a strict sense is still very difficult at present. Due to the parameters coupling is difficult to eliminate in multi-DOF mechanism, the research of inertial parameters identification is mostly limited to the mechanism with few DOFs. For example, the research object of Sharma et al. 10 is a single rigid body with one rotational DOF, and a method to identify the dynamic parameters of 2-DOF rigid body robots is proposed in Gautier et al. 11 In addition, some research results on parameters identification of parallel mechanisms have also been obtained. An algorithm to identify the dynamic parameters of parallel robots was proposed in Díaz-Rodríguez et al., 6 and the weighted least squares method was adopted to identify the dynamic model established by the Gibbs-Appell equation. An algorithm based on inverse dynamic equation to identify the dynamic parameters of parallel robots was proposed in Briot and Gautier. 12 IDIM-TLS technology was used to enable the robot to track some loaded and unloaded trajectories, in this process, data of motor current and joint position were sampled to calculate the dynamic parameters.
These studies are very meaningful, but usually only customized parameters identification is realized for robots with specific structures or models. The identification method lacks universality and portability, and usually cannot be directly applied to other robots. The reason for this problem is that the coupling term of the dynamic parameters cannot reflect the most essential inertia properties of the robot, and directly identifying the inertia parameters can solve this difficulty. The challenge in identifying inertial parameters in dynamic models lies in inertial parameters decoupling, which is laborious to achieve in traditional Newton Euler and Lagrange methods. Newton Euler’s method13–16 is a recursive method in which the recursive relationship results in inertial parameters coupling. In the Lagrange method,17–19 the process of taking partial derivatives of Lagrangian can also lead to inertial parameters coupling. Even if traditional dynamic methods are used with great effort to establish a dynamic model, its lengthy expressions and numerous parameters will bring great difficulties to the calculation, which makes it impossible to guarantee the real-time performance of the identification algorithm.
In view of the shortcomings of traditional dynamics, it is necessary to explore the dynamic modeling method that can realize inertial parameters decoupling, and adopt the method such as least squares20,21 for identification. This method is the Model Identification Method (MIM). The advantage of MIM is that the identified results are accurate and stable. The disadvantage is that as the DOF increase, dynamic modeling becomes more complex and difficult, and computation becomes more time-consuming, resulting in a decrease in real-time performance.
For multi-DOF mechanisms, considering the aforementioned drawbacks of MIM, it is necessary to propose an algorithm that can improve real-time performance and reduce solution difficulty, at the cost of reducing identification accuracy to a certain extent. The feasible direction of this algorithm is to use numerical analysis methods, which are used to process complex data and obtain approximate solutions. Although some accuracy is lost, it can ensure stable real-time performance. This method is called Numerical Identification Method (NIM).
In this paper, the identification method of inertia parameters of 6-DOF manipulator, which is the most versatile industrial robot, is studied in order to ensure the method as practical as possible. In this paper, MIM and NIM are proposed respectively. For MIM, an identification method based on multibody dynamics is proposed, which can realize the decoupling of inertial parameters of each rigid body, so as to achieve the purpose of direct identification of inertial parameters. For NIM, an identification model based on neural network is proposed. Neural network is a numerical method of fitting, which inputs a certain number of parameters for fitting training to output results approximating the true value. The manipulator has many DOFs, so the modeling and solving of the MIM in this paper is complicated, which affects the real-time performance of the algorithm, but the advantage is that the inertial parameters can be accurately identified. NIM, on the contrary, has the advantage of good real-time performance, but has the disadvantage of precision loss. In the simplest terms, MIM is suitable for offline identification and NIM is suitable for online identification.
The innovative methods are proposed to identify the inertial parameters of the manipulator in this paper, which can directly identify the mass and the principal moment of inertias. The methods have universality and portability. MIM has extremely high identification accuracy and NIM has excellent real-time performance, which can meet the needs of different application scenarios of the manipulator and provide data support for precise control.
MIM based on multibody dynamics
In this paper, an inertial parameters identification method based on multibody dynamics, namely MIM, is proposed. An accurate identification model is established in this method, and the identification results have high precision. However, the modeling and calculation process are complicated, which will affect the real-time performance. Firstly, the decoupling of inertial parameters of each rigid body is realized by the mathematical description of graph theory, which lays a mathematical foundation for the separation and identification of inertial parameters. Secondly, the multibody dynamics model of the manipulator is established, and there is no coupling relationship between the inertial parameters in the model. Finally, the dynamic model is written in least squares form, and the inertial parameters are separated for identification.
Graph theory description
From the perspective of graph theory, the manipulator is a single chain tree system composed of connected rigid bodies. The tree system has a relationship of separation and combination with the single rigid body, and the dynamic model of the manipulator and the dynamic equation of the single rigid body established on this mathematical basis also have a relationship of separation and combination. In geometric description, individual rigid bodies are independent of each other, correspondingly, in algebraic description, the inertial parameters between rigid bodies are decoupled from each other.
It should be noted that both traditional and multibody dynamics methods need to make assumptions about the irregular rigid body, simplify the irregular rigid body into a regular shape, and determine the position of the centroid on this basis, which is the premise of parameter identification. In this paper, the rigid body is assumed to be a homogeneous cylinder, and the center of mass of the rigid body is assumed to be located at the centroid of the cylinder, that is, the midpoint of the axis of the cylinder. In fact, the centroid can be set to be located at any point on the axis, not necessarily at the midpoint of the axis. As long as the centroid is on the axis, we can reasonably establish a coordinate system in the centroid, so that each axis of the coordinate system is the principal axis of inertia, in this case there is only the principal moment of inertias, and the product of inertia is eliminated. There is a one to one correspondence between the position of centroid and its corresponding principal moment of inertias. As long as the dynamical model, parameters identification model and control model all adopt the same centroid position and principal moment of inertias, precise control can be achieved without caring about the precise position of the centroid. Because the real centroid and the principal moment of inertias cannot be measured by disassembly (the robot arm is a complex precision instrument, which is usually not allowed to disassemble), the position of the centroid can only be assumed, and assuming the centroid in the center of the cylinder will simplify the derivation and calculation.
The 6-DOF manipulator is composed of six rigid bodies

6-DOF manipulator and its coordinate base diagram: (a) 6-DOF manipulator and (b) coordinate base diagram.
The pose of B i is recorded as:
where,
The incidence matrix
The structural diagram of the tree system of the manipulator is shown in Figure 2(a). The incidence matrix is defined as

Structure diagram and body-joint vector diagram of the tree system of 6-DOF manipulator: (a) structure diagram and (b) body-joint vector diagram.
Its element
Therefore, the incidence matrix of the 6-DOF manipulator is
The weighted body-joint vector
The body-joint vector matrix of the 6-DOF manipulator is
In graph theory, six independent rigid bodies are combined and described as a manipulator tree system, which can be used to decouple inertial parameters and is the key to dynamic modeling and parameters identification.
Multibody dynamics modeling
The multibody dynamics model of the manipulator is established on the basis of the graph theory description. There is no coupling relationship between the inertial parameters in the model, so the model can be rewritten to the least squares form for parameters identification.
The Newton Euler equation of B i is
where the sum of the external forces
For ease of calculation, Newton Euler’s equation equation (6) in vector form is written in matrix form.
where the matrix symbol
The rotation matrix
where s represents the sine function
The inverse matrix of
where
The dynamic equation of the rigid body expressed in generalized coordinates is obtained by the combination of equations (8a) and (10).
The relationship between angular velocity
Equations (12c) and (12d) can be expanded as
The conversion between
The dynamic model of 6-DOF manipulator is derived by combining the dynamic equation equation (12b) of the single rigid body.
where
Since the dynamic model equation (13) of the manipulator is obtained by combining the dynamic equation equation (12b) of the rigid body, the matrix
Parameters identification modeling
The multibody dynamics model is rewritten to the least squares form, and the inertial parameters in the model are separated as parameters to be identified, which can be identified by the least squares method. This is the MIM of this paper.
Since the inertial parameters are calculated by precise mathematical model, the MIM has extremely high accuracy.
First, equation (8a) is rewritten as
where
Second, equation (10) is rewritten as
Equation (16a) is abbreviated as
Finally, the combination of equations (15b) and (16b) is expressed in the following form, that is, the parameters identification equation of
Equation (17a) is abbreviated as
Equation (17b) is in the least squares form, and its least squares solution is
The inertia parameters
In order to improve the readability and contribution of this paper, and to facilitate the application and implementation of the method in this paper, the specific expressions of the multibody dynamics equations and identification equations of each rigid body
The 6-DOF manipulator is the combination of each rigid body, and its identification model can be written as
Equation (19a) is abbreviated as
Equation (19b) is in the least squares form, and its least squares solution is
The inertia parameters
The MIM in this paper can identify the inertial parameters of each rigid body separately, and can also identify the inertial parameters of the manipulator as a whole. The parameters to be identified have clear mathematical analytic expression, which ensures the high accuracy of the identification results.
NIM based on neural networks
An inertial parameters identification method based on neural networks is proposed in this paper, namely NIM. This method avoids the tedious modeling and calculation process of MIM, and has good real-time performance. However, as a numerical fitting method, it inevitably loses some accuracy. When the number of input/output data parameters is large, the data fitting problem presents a strong nonlinear relationship, and the neural networks is a powerful tool to deal with this problem.
The NIM in this paper is a data-driven identification algorithm, which uses the collected experimental data to train a neural network, and can quickly output the results of inertial parameters after training. NIM avoids complex dynamic modeling and computational processes, and has the advantage of real-time performance compared to MIM. The design of NIM in this paper is based on the following design ideas: a basic fact is that the number of collected data, the number of hidden layers, and the number of neurons in the hidden layer all affect the accuracy of the results and the real-time performance of the algorithm. Considering the time consumption of data collection in practical applications, the number of data should be as small as possible. However, a small number of data may lead to overfitting, so it is necessary to set a small number of hidden layers and neurons to eliminate the effect of overfitting, ensure the generalization of data, and further improve the real-time performance. The NIM algorithm provides a design idea for neural networks. The number of hidden layers and the number of data can be adjusted according to the structure of different robots, with the aim of achieving the desired result. Different requirements for results (e.g. accuracy, real-time, etc.) lead to different choices of strategies (number of hidden layers, number of neurons, and number of data).
Specifically, the neural networks consists of one input layer, five hidden layers, and one output layer. There are six data items in the input layer, which are Cardano Angle

The neural networks structure.
The activation function of each layer is ReLu function.
Relu function is a nonlinear function, and the nonlinearity of neural networks comes from the nonlinearity of Relu function. The expression for layer L i is
where
The data of the input layer is
where
The data of the output layer is
The purpose of training neural networks is to make the calculated output
For this purpose, the cost function of the error is set, namely, the Mean Squared Error (MSE) of the output
N is the number of samples.
The algorithm is as follows.
The algorithm sets the learning rate (step size) to
Compared with MIM, the design of NIM based on neural network in this paper is uncomplicated, which transforms the complex mechanical modeling and mathematical calculation process into a data fitting problem that can be solved by computer.
Numerical simulation
In order to verify the correctness of MIM and NIM in this paper, the simulation model of 6-DOF manipulator was established, the motion trajectory was designed, and the data during the motion was collected, which was used as the basis for calculation/fitting of the identification algorithm.
ADAMS software is used to establish the simulation model of the manipulator. The physical parameters of each rigid body are set as shown in Table 1.
The physical parameters of each rigid body.
In the simulation, the control of the manipulator is realized by setting the drive in Adams software. The drive is set at the joint position, which can make the joint rotate according to a certain angular velocity or angular acceleration. This is consistent with the fact that the manipulator is driven by the joint motors in the actual scenario. The monitoring of the manipulator is realized by measuring the parameters in Adams software. The parameters to be measured include force and moment, Euler Angle, angular velocity, acceleration, and angular acceleration.
The initial state is static, and the initial posture is shown in Figure 1. The end time of the simulation is 2 s and the number of steps is 100. The simulation process is shown in Figure 4. ADAMS software is used to measure various parameters during the movement, and the corresponding data of the parameters can be obtained. In order to compare the identification results of MIM and NIM, the experiment and data are used in both the two identification algorithms.

Posture at each moment in ADAMS simulation of 6-DOF manipulator: (a) 0 s, (b) 0.3 s, (c) 0.6 s, (d) 0.9 s, (e) 1.2 s, (f) 1.5 s, (g) 1.8 s, and (h) 2 s.
Numerical simulation of MIM
The data of the simulation process is input into the identification model equations (18) or (20) to calculate the accurate inertia parameters, and the MIM is verified. According to equations (18) or (20), the parameters to be identified are inertial parameters, and there are six known parameters obtained by measurement, which are
The known parameters of 1.5 s (or any other time at random) are extracted, and the inertial parameters are identified by equation (18). The identification results are shown in Table 2, and the absolute errors between the identification results and the true values are shown in Table 3.
The identified inertia parameters of MIM.
The absolute errors of MIM.
where,
According to Table 3, the absolute errors of the identified inertial parameters are extremely small, the maximum absolute error of the mass parameter is 0.0005 kg and the maximum absolute error of the principal moment of inertia is −0.0060 kg m2, which verifies the accuracy of the MIM proposed in this paper.
Numerical simulation of NIM
The NIM based on neural networks can achieve the effect of data fitting by training weights and bias, and the NIM after training can be used to predict the parameters to be identified. In order to compare with the MIM identification results, the NIM experiment is exactly the same as that of MIM, with 100 simulation steps and a total of 100 sets of parameters. It should be noted that we can collect more than 100 sets of data, and by changing the time and step size in the Adams simulation, any amount of data can be obtained. The first 80 sets of data are used to train the neural networks model, and the last 20 sets of data are used to validate the model. The training process: Input layer and output layer parameters of the first 80 sets of data are input to the neural networks model for training each weight and bias. The verification process: The parameters of the input layer of the last 20 sets of data are input into the neural networks model to obtain the predicted value of the output layer. There are 20 predicted values of the output layer, and the algebraic average is taken as the identification parameters. The identified parameters of each rigid body are shown in Table 4, and the absolute errors with the true values are shown in Table 5.
The identified inertia parameters of NIM.
The absolute errors of NIM.
As can be seen from Table 5, the maximum absolute error of the identified mass parameter is 11.4998 kg, and the maximum absolute error of the principal moment of inertia is 3.7131 kg m2. Compared with Tables 5 and 3, there is a gap between the absolute error of NIM and MIM, which reflects the difference of accuracy of the two. However, if the absolute error in Table 5 is converted into a percentage form, NIM still maintains a relatively high accuracy. NIM also has the advantage of very fast training and calculation speed, so it must have targeted application value.
The relationship between MSE and the number of training steps of each rigid body is shown in Figure 5. When the number of training steps reaches 400, MSE reaches below the threshold, the neural networks is trained and the algorithm converges, which can be used for the identification of inertial parameters.

The relationship between MSE and training times: (a)
Discussion
Accurate identification of inertial parameters is only one of the ways to improve the control accuracy of the manipulator. As a problem involving many factors that need to be comprehensively considered, there are other ways to improve the control accuracy. This paper only puts forward an innovative solution from the aspect of accurate identification of inertial parameters.
There are five main factors affecting the control accuracy, which are the real-time performance of the control algorithm, the accuracy of the control algorithm, the accuracy of the inertial parameters, the accuracy of the trajectory planning algorithm, and the accuracy of the hardware sensor. (1) The real-time performance of the control algorithm depends on the computation cost. The lower the computation cost, the better the real-time performance and the higher the control accuracy. 22 (2) The more accurate the control model is, and the more variable factors are considered, including external forces and disturbance factors, the higher the accuracy of the control algorithm.23,24 (3) The accuracy of inertial parameters depends on the parameters identification algorithm. The identification algorithm can directly identify inertial parameters, and the more accurate the identification algorithm is, the higher the accuracy of the identified inertial parameters. (4) The velocity and acceleration parameters of trajectory planning based on kinematics should be consistent with their expected parameters as far as possible. The more accurate the trajectory planning algorithm is, the higher the position accuracy of the controlled end effector is.25,26 (5) The more types of sensors (six-dimensional force sensors, pose sensors, speed and acceleration sensors) and the higher the accuracy, the faster the response speed, and the higher the control accuracy.23,27
In this paper, only the influence of the accuracy of inertial parameters on the control accuracy is considered, and the study of the control accuracy from the other four aspects is the future research direction of this paper.
Conclusion
In this paper, MIM and NIM are proposed, which can realize the direct identification of the inertia parameters of the manipulator and are of great importance for precise control.
MIM is derived based on multibody dynamics, and graph theory is used to decompose the robotic arm into individual rigid bodies as the analysis object, and the decoupling of inertial parameters between each rigid body is realized. MIM has clear mathematical analytical expressions and extremely high identification accuracy, the maximum absolute error of the identified mass parameter is 0.0005 kg, and the maximum absolute error of the principal moment of inertia is −0.0060 kg m2. However, the complex modeling and computation process has an impact on real-time performance. NIM is trained by neural networks and has excellent real-time performance. NIM avoids tedious mechanical modeling and calculations, the maximum absolute error of the identified mass parameter is 11.4998 kg, and the maximum absolute error of the principal moment of inertia is 3.7131 kg m2. Although the fitting results inevitably lose some accuracy compared to MIM, the accuracy still has a relatively high level. The MIM and NIM inertial parameters identification methods proposed in this paper have complementary advantages, which can meet the vast majority of the identification requirements and provide an important basis for the accurate control of the manipulator.
In this paper, the inertial parameters identification of the manipulator has been realized. In the future work, on the one hand, the application range of this method will be extended. The main application directions are parallel robots with complex structure and multi-DOF and variable structure robots with real-time changed inertia parameters. The identification difficulty of the two is greater than that of serial robots, and the implementation of inertia parameters identification is very beneficial for their precise control and extension of application range. On the other hand, the improvement of control accuracy will be studied from four aspects: real-time control algorithm, control algorithm modeling, trajectory planning algorithm, and sensor development and layout.
Footnotes
Appendix A
In order to improve the readability of this paper, the concrete expressions of the multibody dynamic equation and identification equation of rigid body
Equation (7) deduces the sum of the external forces
For rigid body
Equation (28a) is abbreviated as
The least squares solution is
From this, the inertia parameter
For rigid body
By bringing the parameters of
Equation (31a) is abbreviated as
The least squares solution is
From this, the inertia parameter
Rigid body
The multibody dynamic modeling and inertial parameters identification methods in this paper are extensible and can be applied to both 2-DOF manipulators and multi-DOF manipulators. In order to facilitate the implementation and generalization of the method in this paper, a specific mathematical model of the 2-DOF manipulator is provided. The rigid bodies of the 2-DOF manipulator are homogeneous cylinders, and the lengths of
From the dynamic equation equation (13a) of A single rigid body, the dynamic equation of
The dynamic equation of
By combining equations (A13) and (A14), the dynamic model of 2-DOF manipulator is obtained.
where,
By rewriting the dynamic equations equations (A13) and (A14) into the parameters identification form, the inertial parameters are separated as the parameters to be identified, and the identification can be realized by least square method.
According to the inertia parameters identification equation equations (16a) and (17a) of A single rigid body, the mass parameters identification equation of
Abbreviated as
The equation for identifying the principal moment of inertia parameters of rigid body
where,
The mass parameters identification equation of
Abbreviated as
The equation for identifying the principal moment of inertia parameters of rigid body
where,
The inertia parameters identification model of 2-DOF manipulator is obtained by combining the inertia parameters identification equations equations (A20), (A21), (A26) and (A27) of
Abbreviated as
Equation (A32) is in the least squares form, and its least squares solution is
The inertia parameters
Handling Editor: Sharmili Pandian
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 National Key R&D Program of China (No. 2022YFC3800405).”
