A method for identifying dynamic parameters of a measuring robot based on an IABC-ANN neural network

By using an IABC-ANN neural network-based method, combined with the Coulomb-viscous friction model and bee colony algorithm optimization, the problems of low accuracy and poor generalization ability of traditional dynamic parameter identification are solved, achieving higher accuracy and robustness in robot dynamic parameter identification and improving robot control performance.

CN118952190BActive Publication Date: 2026-11-24HENAN UNIV OF SCI & TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411051686.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2026-11-24
Estimated Expiration
2044-08-01

AI Technical Summary

Technical Problem

In the existing technology, traditional learning algorithms have low identification accuracy and poor generalization ability when identifying dynamic parameters, and are prone to getting trapped in local optima. In addition, traditional neural networks lack generalization ability when processing data, resulting in inaccurate identification of robot dynamic parameters.

Method used

A method based on IABC-ANN neural network is adopted, which combines Coulomb-viscous friction model to compensate for joint friction, eliminates ineffective terms by the principle of minimum inertia, optimizes the excitation trajectory using fifth-order Fourier series, and optimizes the neural network weights and thresholds using bee colony algorithm to construct IABC-ANN neural network for dynamic parameter identification.

Benefits of technology

It improves the accuracy and robustness of robot dynamics parameter identification, avoids local optima problems, enhances robot control performance, and achieves higher prediction accuracy and generalization ability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118952190B_ABST
    Figure CN118952190B_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on IABC-ANN neural network's measurement robot dynamics parameter identification method, the dynamics parameter identification method mainly includes the following steps: first, the dynamics minimum inertia parameter needing identification and corresponding observation matrix are arranged by means of dynamics model;Excitation trajectory of robot is designed, and excitation trajectory is optimized;Robot moves according to the excitation trajectory after optimization, and input-output data are collected;The data collected are filtered;IABC-ANN neural network is constructed, the weight and threshold of the IABC-ANN neural network constructed are optimized by bee colony algorithm, the observation matrix of the multiple groups collected is regarded as the input of neural network, the joint torque of n joints is regarded as output, the IABC-ANN neural network constructed is trained, and the IABC-ANN neural network after training is obtained, the dynamics minimum inertia parameter is identified by the IABC-ANN neural network after training;Finally, verification is carried out.The identification method of the application can improve the identification precision of dynamics parameter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a method for identifying robot dynamic parameters, specifically a method for identifying measurement robot dynamic parameters based on an IABC-ANN neural network. This method is applicable to multi-degree-of-freedom serial industrial robots widely used in workpiece measurement, intelligent manufacturing equipment, and industrial production. Accurate dynamic parameters enable higher precision control of the robot. Background Technology

[0002] Currently, many industries have high requirements for workpiece measurement accuracy. Pneumatic measurement, due to its non-contact, simple structure, and convenient operation, is widely used in production fields such as machinery manufacturing and automobile manufacturing. Traditional methods of manually measuring parts by hand can no longer meet the requirements of automated production lines, severely restricting production efficiency. However, with the rapid development and widespread application of industrial robot technology in recent years, combining robot technology with pneumatic measurement systems retains the stability and ease of operation of pneumatic measurement technology while achieving automated measurement, realizing automated pneumatic measurement technology for workpieces.

[0003] During measurement, the robot first grasps the workpiece on a conveyor belt using a mechanical gripper, places the workpiece into the V-shaped probe of a pneumatic measuring instrument for measurement, and then processes the measurement data and uploads it to a host computer. The host computer then analyzes the measurement results and determines whether the results are acceptable. The accuracy of the measurement results depends on the measurement precision, and higher measurement precision requires the workpiece to be accurately placed on the V-shaped probe. Therefore, higher control performance of the robot is required, and accurate robot dynamic model parameters are the foundation for studying robot motion control performance, force control performance, and safety performance. As the application fields of industrial robots become increasingly widespread, functions such as robot collision detection, force-based impedance control, and trajectory tracking control all rely on the identification values ​​of dynamic parameters to predict the joint driving torque of the robot. Currently, common methods for obtaining robot dynamic parameters include: disassembly measurement, CAD method, and experimental identification method. The experimental identification method provides more accurate parameters than the disassembly measurement and CAD methods, and is therefore the most widely used method. Although the robot's dynamic parameters can be derived from its 3D model using the mass property module of Solidworks software, this method ignores accessories such as joint motors, bearings, and reducers, and cannot obtain the robot's joint friction parameters. The accuracy of parameter identification is insufficient to meet the increasingly demanding requirements of high-performance control. Traditional learning algorithms for dynamic parameter identification often face the problem of local optima, meaning that the optimization algorithm may converge to a local optimum rather than a global optimum. Furthermore, traditional neural networks lack generalization ability when processing data, making it difficult to effectively extend the constructed neural network model to new data. Different initial parameters, influenced by the initial weights and thresholds of the neural network, can lead to different results. To address these technical problems, this invention provides a method for identifying robot dynamic parameters based on an IABC-ANN neural network. Summary of the Invention

[0004] To address the problems of low identification accuracy, poor generalization ability, and susceptibility to local optima when using traditional learning algorithms for dynamic parameter identification in existing technologies, this invention provides a method for identifying the dynamic parameters of a measurement robot based on an IABC-ANN neural network.

[0005] To achieve the above objectives, the specific solution adopted by the present invention is as follows: A method for identifying the dynamic parameters of a measurement robot based on an IABC-ANN neural network mainly includes the following steps: S1. Establish a dynamic model of the n-joint robot based on the Lagrange equation. Based on the dynamic model, derive the linear expression of the robot. Optimize the linear expression based on the principle of minimum inertia and sort out the minimum inertia parameters of the dynamics that need to be identified and the corresponding observation matrix. S2. Design the robot's excitation trajectory and optimize the excitation trajectory; S3. The robot moves according to the optimized excitation trajectory. The angle, angular velocity and angular acceleration of n joints are collected during the robot's movement. Multiple sets of observation matrices are obtained as test samples. At the same time, the joint feedback current is obtained. Based on the torque coefficient, the joint torque of n joints is calculated. S4. Filter the collected data; S5. Construct an IABC-ANN neural network. Optimize the weights and thresholds of the constructed IABC-ANN neural network using the bee colony algorithm. Use the multiple sets of observation matrices collected in step S3 as the input of the neural network and the joint torques of n joints as the output to train the constructed IABC-ANN neural network and obtain the trained IABC-ANN neural network. Identify the minimum dynamic inertia parameter through the trained IABC-ANN neural network. S6. Design a verification trajectory different from the excitation trajectory, and make the robot follow the verification trajectory. Collect the robot's dynamic parameters and joint feedback currents for multiple cycles. Compare the actual joint torque values ​​obtained with the theoretical joint torque values ​​obtained based on the identified minimum dynamic inertia parameters. Use the torque residual value to evaluate the accuracy of the obtained dynamic parameters.

[0006] Furthermore, in step S1, the linear expression is optimized into the following form based on the principle of minimum inertia: in: This represents the recombined joint torque vector. This represents the simplest observation matrix after recombination. This represents the minimum inertial parameter in dynamics.

[0007] Further, in step S1, when n is 6, based on geometric relationships, the 72 dynamic parameters of the robot's six joints are eliminated according to the principle of minimum inertia, eliminating parameters that have no effect on the dynamic model, resulting in 48 minimum inertial parameters that need to be identified. Among them, the minimum inertial parameters of joint one of the six-joint robot are Izz, fc, fv; the minimum inertial parameters of joint two and joint three are Ixx, Ixy, Ixz, Iyz, Izz, mx, my, fc, fv; the minimum inertial parameters of joint four and joint five are Ixx, Ixy, Ixz, Iyy, Iyz, mx, mz, fc, fv; and the minimum inertial parameter of joint six is ​​Ixx, Ixy, Ixz, Iyz, Izz, mx, my, fc, fv.

[0008] Furthermore, in step S2, the excitation trajectory for dynamic parameter identification is established based on the fifth-order Fourier series, using the recombined simplified observation matrix. condition number Using a certain range of motion of the robot as a constraint, the objective function for optimizing the excitation trajectory is used to obtain the optimal excitation trajectory.

[0009] Furthermore, in step S4, the specific method for filtering the acquired data is as follows: First, large errors are removed from multiple sets of observation matrix data according to the difference criterion. Then, a second-order Butterworth filter is used to filter the joint encoder signal. Finally, a Fltfilt filter is used to perform zero-phase digital filtering on the data after the difference operation to reduce the errors caused by data noise.

[0010] Furthermore, in step S5, adjusting the weights and thresholds of the constructed IABC-ANN neural network based on the bee colony algorithm includes the following steps: (1) Initialize parameters, including the maximum number of iterations for the bee colony, queen bee lifespan, pheromone retention limit and population size; (2) Initialize the population parameters, randomly initialize the positions of all individuals in the population, and calculate the threat level and speed of the position; check if the queen bee exists. If not, initialize the queen bee position as the current highest threat point, and initialize the queen bee speed and pheromone vector at the same time. Check the queen bee lifespan. If the set lifespan value is reached, destroy it. (3) Enter the pheromone based on the current highest global threat level, and update the queen bee's location and speed; (4) Individuals in the population update their own position and speed based on their current speed and the current position of the queen bee; (5) Calculate the threat level of all individuals to update the global threat level, and determine whether the number of iterations has been reached. If it has been reached, terminate the optimization and output the final population state and target point. If it has not been reached, continue the optimization. (6) Input the optimized weights and thresholds into the constructed IABC-ANN neural network.

[0011] Beneficial effects:

[0012] Compared with existing technologies, this invention uses the Coulomb-viscous friction model to compensate for joint friction in the robot when modeling the dynamic model. This reduces identification errors caused by unmodeled friction, making the identification method more robust under different motion conditions. To simplify the identification process, terms that have no impact on the dynamic model are removed from the robot's inertial parameters based on the principle of minimum inertia. When optimizing the excitation trajectory, the Monte Carlo method is used to solve the robot's workspace, which avoids data concentration in certain specific areas, prevents insufficient or biased data, and more comprehensively reflects the robot's dynamic characteristics, thereby improving the accuracy of parameter identification. The condition number of the observation matrix is ​​used as the optimization target of the excitation trajectory, and the coefficients of the sine and cosine terms of the excitation trajectory are optimized using the fmincon function in Matlab. Based on the traditional neural network identification method, a bee colony algorithm is introduced to optimize the weights and thresholds of the neural network. Traditional optimization methods (such as gradient descent) are prone to getting stuck in local optima on the surface of complex loss functions. Bee colony optimization (BCO) algorithms, through swarm intelligence and random search, can more comprehensively explore the search space of weights and thresholds, thereby finding better parameter configurations and enabling the obtained neural network prediction model to have higher prediction accuracy. This invention helps to improve robot control performance. Attached Figure Description

[0013] Figure 1 This is a flowchart of the neural network dynamics parameter identification process in this invention.

[0014] Figure 2 This is a schematic diagram of the optimal excitation trajectory of the joint in this invention.

[0015] Figure 3 This is a cloud map of the robot's workspace in this invention.

[0016] Figure 4 This is a schematic diagram of the neural network model in this invention.

[0017] Figure 5 This is the RMSE diagram during the training process of the hybrid network in this invention.

[0018] Figure 6 This is a comparison diagram of the predicted torque and actual torque of the first three joints in this invention. Detailed Implementation

[0019] The technical solution of the present invention will be clearly and completely described below with reference to specific embodiments. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the protection scope of the present invention.

[0020] This invention provides a method for identifying the dynamic parameters of a measurement robot based on an IABC-ANN neural network. The steps are described in detail below.

[0021] S1. Establish a dynamic model of the n-joint robot based on the Lagrange equation. Based on the dynamic model, derive the linear expression of the robot. Optimize the linear expression based on the principle of minimum inertia, and sort out the minimum inertial parameters of the dynamics that need to be identified and the corresponding observation matrix.

[0022] S11. Establish the dynamic model of the n-joint robot based on the Lagrange equation.

[0023] For a robot system with n joints, considering the effects of joint friction and gravity, its dynamic equations can be expressed by second-order differential equations: Where: the subscripts i and k represent the i-th row and k-th column of the matrix, respectively, and τ∈R 6×1 M is the joint torque vector. i (q)∈R 6 ×6 Let C be the inertia matrix. ik ∈R 6×6 Let G(q) ∈ R be the centrifugal force and Coriolis force matrix. 6×1 The gravity vector Let the joint friction torque vector be... These represent the robot's joint angles, angular velocities, and angular accelerations, respectively.

[0024] The following section uses the JAKA MiniCobo collaborative robot as an example to explain in detail the steps of establishing an n-joint robot dynamics model using the Lagrange equation.

[0025] For an n-joint robot, assume a set of generalized coordinates θ∈R in the robot's configuration space. n For an open kinematic chain where all joints are driving joints, we can always choose the generalized coordinate θ as a vector consisting of the values ​​of the joint variables, and represent the generalized force as τ∈R. n After selecting the generalized coordinates θ and determining the generalized force τ, for the Lagrange function... The statement is as follows: in: This represents the kinetic energy of the entire robot system. This represents the potential energy of the entire robot system.

[0026] The kinetic energy of the entire robot system Defined as the sum of the translational kinetic energy of the entire object contracting to its center of mass and its rotational kinetic energy about the center of mass, expressed in the form: Where: I is the moment of inertia matrix of the rigid body, m represents the total mass of the rigid body, ω is the angular velocity of the link in the inertial coordinate system, and v is the angular velocity of the link in the inertial coordinate system.

[0027] In the rigid body of the robot link, assume that the mass of its midpoint mass i is... Let the total mass of the rigid body be m, and let r i =(x i ,y i ,z i Let be the fixed position of mass i in the inertial coordinate system {b}. Let R represent the attitude transformation between the inertial coordinate system and the link coordinate system. The relationship between the total mass m of the rigid body and the rotational inertia matrix I of the rigid body is obtained as follows:

[0028] Assume the robot joint velocity v i With joint angular velocity w i Given that the linear velocity and angular velocity of the link can be obtained using the Jacobian matrix: in: These are the Jacobian matrices for joint velocity and joint angular velocity in a fixed coordinate system, respectively.

[0029] The total kinetic energy of the n-link robot can be obtained using formulas (3)-(5). for: in: For point mass, m ij (q) is the (i,j)th element of the n×n mass matrix M(q), I i It is the generalized equivalent inertia, R i (q) is the homogeneous coordinate of a point on the link with respect to the coordinate system {i}.

[0030] In rigid body dynamics, assuming the mass of each link in the robot is concentrated at its center of mass, the total potential energy of the robot is the sum of the potential energies of each link, expressed as: Where: g is the gravity vector in the inertial coordinate system, vector Indicates the coordinates of the centroid.

[0031] According to the Lagrange function, the first The dynamic equations of the joints are as follows: Where: P represents the first The potential energy of the nth joint, K represents the potential energy of the nth joint. Kinetic energy of each joint For the generalized force corresponding to the coordinates, For the generalized representation of the centripetal and Coriolis terms, Represents generalized speed. The generalized component representing potential energy. It represents generalized acceleration.

[0032] Simplifying equation (8), we obtain the robot's dynamic equation as follows: in: G(q) represents the vector of the centrifugal force and the vector of the gravitational force.

[0033] The Coulomb-viscous friction model is selected to compensate for the joint friction of the robot, based on the linear relationship between the robot's inertial parameters and joint torque.

[0034] Coulomb-viscosity friction between joints can be expressed as:

[0035] Where: τ f f represents the Coulomb-viscosity friction between joints. c f is the Coulomb friction coefficient. v The coefficient of viscous friction, It is a symbolic function.

[0036] Therefore, the dynamic equation of equation (9) can be expressed as follows, taking into account joint friction:

[0037] S12. Based on the dynamic model, derive the linear expression of the robot.

[0038] The dynamic model (Equation (11)) can be linearized and written in the following form: Where: τ∈R 6×1 p is the joint torque vector. d For complete inertial parameters, that is, the set of inertial parameters for n joints, For the corresponding observation matrix, the complete inertial parameter p d A vector of 10n×1: in: For the robot Inertial parameters of the joint. No. The vector form of the joint's inertial parameters is: in, For the mass of the connecting rod, For the first moment of mass, They represent the connecting rods respectively. The inertia tensors with respect to the xx-axis, yy-axis, zz-axis, xy-axis, xz-axis, and yz-axis. is the joint friction coefficient.

[0039] S13. Based on the principle of minimum inertia, remove all terms that have no effect on the dynamic model from the complete set of dynamic parameters of all joints in order to optimize expression (12) and sort out the minimum inertia parameters of dynamics that need to be identified and the corresponding observation matrix.

[0040] Due to the observation matrix If the column vectors are not of rank and some column vectors are linearly dependent, then for any Both are zero, at which point ψ T Since ψ is not invertible, the least squares method cannot be used directly.

[0041] As can be seen from the above, not all inertial parameters affect the dynamic model; if the observation matrix... There exists a vector ψ m The following relationship must be satisfied: ψ m =a 1m ψ 1m +a 2m ψ 2m …+a jm ψ jm (15) Where: ψ 1m ,ψ 2m ,…ψ jm Represents the vector ψ in the observation matrix m Linearly correlated column, a 1m ,a 2m ,…a jm These represent their linear correlation coefficients.

[0042] From the above formula, we can know that ψ 1m ,ψ 2m ,…ψ jm For ψ m A maximal linearly independent set of vectors can be used to eliminate the corresponding columns in the observation matrix without affecting the model's accuracy. This method is then used to eliminate some inertial parameters, leaving the recombined minimum inertial parameters.

[0043] Adjusting the linear expression in step two using the method described above, we obtain the optimized dynamic model as follows: in: This represents the recombined joint torque vector. The simplified observation matrix after recombination is represented below. For ease of description, it will be referred to as... replace, This represents the minimum inertial parameter in dynamics.

[0044] Reorganized observation matrix Since the column vectors are linearly independent, at this point any sampling point Both can make ψ m If the value is full rank, then the least squares method can be used to solve it.

[0045] If n is set to 6, the collaborative robot has a total of 72 parameters. After eliminating parameters that have no effect on the dynamic model according to the above method and reorganizing them, a total of 48 identifiable inertial parameters are obtained. The set of the minimum inertial parameters of the dynamic model is shown in Table 1.

[0046] Table 1. Set of minimum inertial parameters for dynamics

[0047] S2. Design the robot's excitation trajectory and optimize the excitation trajectory.

[0048] In this step, the excitation trajectory for identifying dynamic parameters is established based on the fifth-order Fourier series, using the recombined simplified observation matrix. condition number Using a certain range of motion of the robot as a constraint, the objective function for optimizing the excitation trajectory is used to obtain the optimal excitation trajectory.

[0049] The excitation trajectory identified using the fifth-order Fourier series as the dynamic parameter is as follows: in: The coefficients to be optimized; For constant terms, The coefficients of the fifth-degree polynomial are given, t is the sampling period, and l is the order of the Fourier series. f For the trajectory running period, ω f For the fundamental frequency, j = [t / t] f [] is the floor function. Based on the starting position of the excitation trajectory, it can be determined by the following relationship: The value is obtained Value: in: For the first Joint initiation angle.

[0050] Objective function for excitation trajectory optimization: in: Represents the simplest observation matrix after recombination. The spectral norm of is the arithmetic square root of the largest eigenvalue of the corresponding matrix. The condition number of the recombined, simplified observation matrix determines the system's sensitivity to noise. The smaller the value, the less noise affects the solution of the system of equations, and the smaller the error. Its constraints are: Condition one: Condition 2: q(0)=q(t′ f )=q0 Condition 3: -q max ≤q(t′)≤q max Where: S represents the Cartesian space of the robot's end effector, s(q(t′)) is the end effector trajectory; q0 is the joint angle at the initial moment of the cycle, q(0), These represent the joint angle, joint angular velocity, and joint angular acceleration at the initial moment, respectively. These represent the joint angle, joint angular velocity, and joint angular acceleration at the moment of termination, respectively. Let represent the joint angle, joint angular velocity, and joint angular acceleration at time t', respectively. These are the motion constraint values ​​for each joint.

[0051] The method for determining the Cartesian space S of the robot's end effector in condition three is as follows: Taking a 6-joint robot as an example, first determine the maximum joint rotation angle q of the robot. max and minimum value q min At the same time, a random function is generated using the rand function in Matlab, which will then produce a random angle q. i (q i =q min +(q max -q min )*rand), then a set of joint angles is randomly given. The center position of the end effector can be obtained according to the transformation matrix of the robot end effector in the base coordinates [p x ,p y ,p z]; Then, within the working range of each joint, 10,000 variables are randomly generated to calculate the position of the end point and draw a workspace cloud map, such as Figure 3 As shown, the approximate working range of the robot can be obtained from the workspace cloud map as follows: X-axis (-580~580), Y-axis (-580~580), Z-axis (-400~770), in mm.

[0052] Finally, the excitation trajectory expression (18) is solved using the fmincon function in the Matlab optimization algorithm toolbox. Solution, and at the same time Substituting the values ​​into equation (19) yields the coefficients of the fifth-degree polynomial. The value of is used to obtain the optimal excitation trajectory. Using the optimal excitation trajectory, the optimal excitation trajectory diagrams for the six joints are obtained, as shown below. Figure 2 As shown in the figure, the Matlab solution record shows that the condition coefficient of the observation matrix corresponding to the excitation trajectory is 95.2431, indicating that the observation matrix is ​​well-state and has good noise resistance.

[0053] S3. The robot moves according to the optimized excitation trajectory. The angle, angular velocity and angular acceleration of n joints are collected during the robot's movement to obtain multiple sets of observation matrices as test samples. At the same time, the joint feedback current is obtained, and the joint torque of n joints is calculated based on the torque coefficient.

[0054] S4. Filter the collected data.

[0055] The experimental data was preprocessed using filtering to reduce the impact of data noise on the experiment. The specific steps were as follows: First, the multiple sets of data obtained from the experiment were processed according to the difference criterion to remove larger errors. Then, a second-order Butterworth filter was used to filter the joint encoder signal. Finally, a FLTFFIT filter was used to perform zero-phase digital filtering on the data after the difference operation to reduce the error caused by data noise.

[0056] S5, such as Figure 1 As shown, an IABC-ANN neural network is constructed. The weights and thresholds of the constructed IABC-ANN neural network are optimized by bee colony optimization. The multiple sets of observation matrices collected in step S3 are used as the input of the neural network, and the joint torques of n joints are used as the output. The constructed IABC-ANN neural network is trained to obtain the trained IABC-ANN neural network. The minimum inertial parameter of the dynamics is identified through the trained IABC-ANN neural network.

[0057] S51. Constructing the IABC-ANN neural network

[0058] like Figure 4The diagram shows the constructed neural network model. The expression of the constructed IABC-ANN neural network model is as follows: Where: ω Lλ b represents the weight of the input λ at the Lth neuron in the neural network training model. Lλ f is the threshold value of input λ at the Lth neuron. λ This is a transfer function.

[0059] The ReLU function is used as the activation function of the model; the mean squared error (RMSE) is selected as the loss function, and the loss function of the network is defined as follows: in: Indicates the actual output, Y M Here, M represents the number of sequences in the test sample, and k represents the total number of test set samples.

[0060] To reduce the dependence of the constructed neural network on a certain feature value and to simplify the model, Dropout is chosen for regularization.

[0061] S52. The initial weights and thresholds of the IABC-ANN neural network are optimized using the bee colony algorithm, mainly including the following steps: (1) Initialize parameters: initialize the maximum number of iterations, queen bee lifespan, pheromone retention limit, and population size. Set the queen bee to be born in generation M' and the pheromone she releases disappears after generation N', meaning the population can retain the globally optimal position p for generation N'. Best The optimal position of the pheromone produced by the queen bee in each iteration is: P = [P] Best (M′),P Best (M′+1)…P Best (X′)…P Best (M′+N′-1)] T (twenty three) Where: P represents the optimal position of the queen bee in each iteration, P Best (X′) represents the global optimal position of the bee colony after X′ iterations; (2) Initialize the population parameters, randomly initialize the positions of all individuals in the population, and calculate the threat level and speed of the position; check if the queen bee exists. If not, initialize the queen bee position as the current highest threat point (optimal value point), and initialize the queen bee speed and pheromone vector at the same time. Check the queen bee lifespan. If the set lifespan value is reached, destroy it. (3) Input the pheromone based on the current point of highest global threat level, and update the queen bee's position and speed. In the T' generation, the current queen bee's position is x(T'), based on p in P. Best (M′) to p Best The position x(T′+1) at the next time step is updated using (T′-1), and the position update formula is as follows: Where: ξ⊙v(T′) represents the velocity of the queen bee in the T′-th iteration, Indicates the number of bees in the hive Individual, T′ max Let a1, a2…a be the maximum number of iterations. n a2, a3…a represents the pheromone retention coefficient. n-1 For a1~a n The points of equal division; (4) Queen position x(T′) and current speed of individual bees in the colony Update its next position x(T′+1) and velocity. The updated formula is shown below: Where: ρ1 and ρ2 are control parameters; (5) Calculate the threat level of all individuals to update the global threat level (global optimal value), and determine whether the number of iterations has been reached. If it has been reached, terminate the optimization output; otherwise, continue the optimization. (6) Input the optimized weights and thresholds as parameters of the neural network.

[0062] S53. Using the multiple sets of observation matrices collected in step S3 as the input to the neural network and the joint torques of n joints as the output, train the constructed IABC-ANN neural network to obtain the trained IABC-ANN neural network, as follows. Figure 5 The diagram shows the RMSE during the training process of the hybrid network. Then, the trained IABC-ANN neural network is used to predict joint torques, and the minimum dynamic inertial parameter is identified based on the predicted joint torques.

[0063] S6. Design a verification trajectory different from the excitation trajectory, and make the robot follow the verification trajectory. Collect the robot's dynamic parameters and joint feedback currents for multiple cycles. Compare the actual joint torque values ​​obtained with the theoretical joint torque values ​​obtained based on the identified minimum dynamic inertia parameters. Use the torque residual value to evaluate the accuracy of the obtained dynamic parameters.

[0064] Because gravity and friction significantly affect the robot's first three joints during movement, and the proposed identification algorithm is more pronounced in these joints, to reduce the difficulty of the identification experiment, the last three joints of the robot were fixed, and only the first three joints were driven.

[0065] It should be noted that, to obtain the actual and theoretical values ​​of joint torque, the parameters are set as follows: The designed optimal excitation trajectory is executed, with a preset cycle of 20s, a sampling frequency of 1kHz, and a harmonic number of 5. The collected data is divided into a training set (80%) and a test set (20%), and imported into the constructed neural network for training. When optimizing the neural network weights and thresholds using the bee colony optimization algorithm, the number of individuals in the bee colony is set to 50, the maximum number of iterations is set to 100, the initial network weights ω = 0.5, and the threshold b = 0.02. The maximum values ​​during the iteration process are set to 0.9 and 0.3, respectively. The number of neurons in the neural network is set to 10, the sampling interval is 0.5s, the sampling period is 30s, the weights and thresholds of the neural network to be optimized are set between -1 and 1, and the maximum number of iterations of the neural network is set to 1000, with a maximum error of 0.1.

[0066] Figure 6 The predicted torque and actual torque of the first three joints (a) are provided for joint 1, (b) for joint 2, and (c) for joint 3. As can be seen from the figure, the predicted torque curve trained by the model has a good fit with the actual torque curve and can predict the joint torque of the robot very well.

[0067] Thus, the integration of the improved bee colony algorithm and neural network can be completed. In view of the shortcomings of traditional identification methods, this paper proposes an IABC-ANN model, which solves the problems of low identification accuracy, poor generalization ability and easy getting trapped in local optima when using traditional neural network models for identification.

[0068] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of the invention in any way. All equivalent transformations or modifications made in accordance with the essence of the present invention should be covered within the protection scope of the present invention.

Claims

1. A method for identifying the dynamic parameters of a robot based on an IABC-ANN neural network, characterized by, The main steps include the following: S1. Establish a dynamic model of the n-joint robot based on the Lagrange equation. Based on the dynamic model, derive the linear expression of the robot. Optimize the linear expression based on the principle of minimum inertia and sort out the minimum inertia parameters of the dynamics that need to be identified and the corresponding observation matrix. S2. Design the robot's excitation trajectory and optimize the excitation trajectory; S3. The robot moves according to the optimized excitation trajectory. The angle, angular velocity and angular acceleration of n joints are collected during the robot's movement. Multiple sets of observation matrices are obtained as test samples. At the same time, the joint feedback current is obtained. Based on the torque coefficient, the joint torque of n joints is calculated. S4. Filter the collected data; S5. Construct an IABC-ANN neural network. Optimize the weights and thresholds of the constructed IABC-ANN neural network using the bee colony algorithm. Use the multiple sets of observation matrices collected in step S3 as the input of the neural network and the joint torques of n joints as the output to train the constructed IABC-ANN neural network and obtain the trained IABC-ANN neural network. Identify the minimum dynamic inertia parameter through the trained IABC-ANN neural network. S6. Design a verification trajectory different from the excitation trajectory, and make the robot follow the verification trajectory. Collect the robot's dynamic parameters and joint feedback currents for multiple cycles. Compare the actual joint torque values ​​obtained with the theoretical joint torque values ​​obtained based on the identified minimum dynamic inertia parameters. Use the torque residual value to evaluate the accuracy of the obtained dynamic parameters.

2. The method according to claim 1, wherein, In step S1, the linear expression is optimized into the following form based on the principle of minimum inertia: wherein: represents the reorganized joint torque vector, represents the reorganized minimal observation matrix, represents the dynamic minimal inertia parameter.

3. The method of claim 1, wherein the method is based on an IABC-ANN neural network. In step S1, when n is 6, based on geometric relationships, the 72 dynamic parameters of the robot's six joints are eliminated according to the principle of minimum inertia. After eliminating parameters that have no effect on the dynamic model, 48 minimum inertial parameters of dynamics need to be identified. Among them, the minimum inertial parameters of joint one of the six-joint robot are Izz, fc, fv; the minimum inertial parameters of joint two and joint three are Ixx, Ixy, Ixz, Iyz, Izz, mx, my, fc, fv; the minimum inertial parameters of joint four and joint five are Ixx, Ixy, Ixz, Iyy, Iyz, mx, mz, fc, fv; and the minimum inertial parameter of joint six is ​​Ixx, Ixy, Ixz, Iyz, Izz, mx, my, fc, fv.

4. The method for identifying the dynamic parameters of a robot based on an IABC-ANN neural network according to claim 2, characterized in that, In step S2, the excitation trajectory for dynamic parameter identification is established based on a five-order Fourier series, and the reorganized simplest observation matrix The condition number of As the objective function of the excitation trajectory optimization, a certain motion range of the robot is taken as a constraint condition, so as to obtain the optimal excitation trajectory.

5. The method for identifying the dynamic parameters of a measurement robot based on an IABC-ANN neural network according to claim 1, characterized in that, In step S4, the specific method for filtering the acquired data is as follows: First, large errors are removed from multiple sets of observation matrix data according to the difference criterion. Then, a second-order Butterworth filter is used to filter the joint encoder signal. Finally, a FLTFFIT filter is used to perform zero-phase digital filtering on the data after the difference operation to reduce the errors caused by data noise.

6. The method for identifying the dynamic parameters of a measurement robot based on an IABC-ANN neural network according to claim 1, characterized in that, In step S5, adjusting the weights and thresholds of the constructed IABC-ANN neural network based on the bee colony algorithm includes the following steps: (1) Initialize parameters, including the maximum number of iterations for the bee colony, queen bee lifespan, pheromone retention limit and population size; (2) Initialize the population parameters, randomly initialize the positions of all individuals in the population, and calculate the threat level and speed of the position; check if the queen bee exists. If not, initialize the queen bee position as the current highest threat point, and initialize the queen bee speed and pheromone vector at the same time. Check the queen bee lifespan. If the set lifespan value is reached, destroy it. (3) Enter the pheromone based on the current highest global threat level, and update the queen bee's location and speed; (4) Individuals in the population update their own position and speed based on their current speed and the current position of the queen bee; (5) Calculate the threat level of all individuals to update the global threat level, and determine whether the number of iterations has been reached. If it has been reached, terminate the optimization and output the final population state and target point. If it has not been reached, continue the optimization. (6) Input the optimized weights and thresholds into the constructed IABC-ANN neural network.

Citation Information

Patent Citations

  • Mechanical arm inverse kinematics problem optimization method and mechanical arm motion control method

    CN116100538A

  • Industrial robot kinetic parameter composite identification method

    CN118143968A