Robot joint compensation control method based on NARXNN-CNN hybrid hysteresis model
Through the joint compensation control method of the NARXNN-CNN hybrid hysteresis model, the problem of flexible joint hysteresis nonlinearity affecting the position execution accuracy of the collaborative robot is solved, and higher joint angle transmission accuracy and model accuracy are achieved.
Patent Information
- Application Number
- CN202211138252.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-19
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-09-19
AI Technical Summary
The hysteresis nonlinear characteristics of flexible joints of collaborative robots affect its position execution accuracy, causing the difference between the input and output angles of the joints torsion angle and output torque to exhibit strong nonlinearity, asymmetry, and non-smooth complex hysteresis characteristics.
A robot joint compensation control method based on the NARXNN-CNN hybrid hysteresis model is used to construct a composite hysteresis model through a combination of nonlinear autoregressive neural networks and convolutional neural networks, and an independent piecewise loss function is used for reverse error transfer learning to extract Amplitude and phase characteristics can be used to compensate for hysteresis model errors and improve model accuracy.
It improves the accuracy of robot joint angle transmission, indirectly avoids transmission errors caused by changes in joint materials, manufacturing, complex structures, and loads, and enhances the modeling accuracy and learning speed of the model.
Smart Images

Figure CN115556093B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of collaborative robots, and in particular to a robot joint compensation control method based on a NARXNN-CNN hybrid hysteresis model. Background Art
[0002] The hysteresis characteristic of the flexible joint refers to the input-output relationship in which the load torque lags behind the torsion angle (the difference between the ideal output and the actual output angle). It is a unique hysteresis nonlinear phenomenon existing in the joints of collaborative robots. The harmonic reducer is the main component of the flexible joints of collaborative robots and is also the root cause of the strong nonlinear characteristics of the joints. During the power transmission process of the harmonic reducer, due to the elastic deformation energy loss when the flexible wheel is loaded and deformed, and the friction loss when the flexible wheel and the rigid wheel are engaged, its inherent mechanical structure characteristics make it inevitable that the flexible joint will have hysteresis nonlinearity during the movement process, affecting the position execution accuracy of the collaborative robot. Summary of the invention
[0003] The present invention aims to solve the problem that the flexible joints of collaborative robots have hysteresis nonlinearity phenomena that affect the position execution accuracy of the collaborative robots, and provides a robot joint compensation control method based on the NARXNN-CNN hybrid hysteresis model.
[0004] To solve the above problems, the present invention is achieved through the following technical solutions:
[0005] The robot joint compensation control method based on the NARXNN-CNN hybrid hysteresis model includes the following steps:
[0006] Step 1, constructing a NARXNN-CNN hybrid hysteresis model; the NARXNN-CNN hybrid hysteresis model is composed of a nonlinear autoregressive neural network and a convolutional neural network, wherein the input end of the nonlinear autoregressive neural network forms the input end of the NARXNN-CNN hybrid hysteresis model, the output end of the nonlinear autoregressive neural network is connected to the input end of the convolutional neural network, and the output end of the convolutional neural network forms the output end of the NARXNN-CNN hybrid hysteresis model;
[0007] Step 2: The actual joint torque and joint torsion angle of the robot joint at the N historical moments at the beginning of operation are actually measured to learn the parameters of the NARXNN-CNN hybrid hysteresis model constructed in step 1 to obtain the final NARXNN-CNN hybrid hysteresis model; in the learning process of the NARXNN-CNN hybrid hysteresis model:
[0008] First, the actual joint torque τ at time k-2 J (k-2), actual joint torque τ at time k-1 JThe actual joint torsion angles Δθ(k-2) at time k-1 and time k-2, and the actual joint torsion angles Δθ(k-1) at time k-1 are simultaneously fed into the nonlinear autoregressive neural network of the NARXNN-CNN hybrid hysteresis model to obtain the joint torsion angle Δθ'(k) predicted by the nonlinear autoregressive neural network at time k, and the nonlinear autoregressive neural network error e1 = Δθk)-Δθ'(k) between the actual joint torsion angle Δθ(k) at time k and the joint torsion angle Δθ'(k) predicted by the nonlinear autoregressive neural network at time k is calculated;
[0009] Then, the actual joint torque τ at time k-1 is J The actual joint torsion angle Δθ(k-1) at time k-1, the joint torsion angle Δθ'(k) predicted by the nonlinear autoregressive neural network at time k, and the difference between the joint torsion angle Δθ'(k) predicted by the nonlinear autoregressive neural network at time k and the actual joint torsion angle Δθ(k-1) at time k-1 are simultaneously fed into the convolutional neural network of the NARXNN-CNN hybrid hysteresis model to obtain the joint torsion angle predicted by the convolutional neural network at time k. And calculate the actual joint torsion angle Δθ(k) at time k and the joint torsion angle predicted by the convolutional neural network at time k Convolutional neural network error
[0010] Finally, the NARXNN-CNN hybrid hysteresis model is subjected to independent piecewise reverse error transfer learning based on the independent piecewise loss function to obtain the final NARXNN-CNN hybrid hysteresis model; the loss function V is:
[0011]
[0012] Among them, e1 is the nonlinear autoregressive neural network error, e2 is the convolutional neural network error; ω is the set weight coefficient, and 0<ω<1; k=3,4,…,N+2, N is the set number of historical moments;
[0013] Step 3, the actual joint torque two moments before the current moment, the actual joint torque one moment before the current moment, the actual joint torsion angle two moments before the current moment, and the actual joint torsion angle one moment before the current moment are input into the final NARXNN-CNN hybrid hysteresis model obtained in step 2 to obtain the predicted joint torsion angle at the current moment;
[0014] Step 4: Add the joint angle setting value before compensation at the current moment to the joint torsion angle predicted at the current moment obtained in step 3 to obtain the joint angle setting value after compensation at the current moment; and provide the joint angle setting value after compensation at the current moment to the joint control end of the robot to indirectly offset the hysteresis characteristics exhibited by the joint, so as to achieve that the joint output angle does not change with the load under different loads.
[0015] In the above method, the actual joint torque at the historical moment is obtained by directly measuring the torque sensor, and the actual joint torsion angle at the historical moment is obtained by performing a difference operation between the joint angle setting value input by the robot's control end and the joint angle output value measured by the angle sensor.
[0016] In the above method, the convolutional neural network consists of an input layer, a convolutional layer, two fully connected layers and an output layer; the input layer forms the input of the convolutional neural network, the output of the input layer is connected to the input of the convolutional layer, the output of the convolutional layer is connected to the input of the first fully connected layer, and the output of the first fully connected layer forms the output of the convolutional neural network.
[0017] In the above method, both of the two fully connected layers are fully connected layers with RELU as the activation function.
[0018] In the above method, the weight coefficient ω>0.5.
[0019] Compared with the prior art, the present invention has the following characteristics:
[0020] 1. Aiming at the fact that the transmission accuracy of the robot's flexible joints changes with the load, the difference between the input and output angles of the joints, the torsion angle and the output torque show complex hysteresis characteristics with strong nonlinearity, asymmetry and non-smoothness, a NARXNN-CNN hybrid hysteresis model is designed. The NARXNN-CNN hybrid hysteresis model introduces CNN (convolutional neural network) after NARXNN (nonlinear autoregressive neural network). CNN realizes the extraction of the amplitude and phase characteristics of the NARXNN model error, and constructs a composite hysteresis model of NARXNN and CNN in series to compensate for the amplitude and phase of the NARXNN hysteresis model error and improve the model accuracy.
[0021] 2. For the NARXNN-CNN hybrid hysteresis model, an independent piecewise loss function is designed to realize independent piecewise bias back-transfer learning, realize the influence or coupling of the front and back layers in the model during the parameter learning process, and solve the problem of gradient disappearance or explosion during the learning process. Compared with the overall bias back-transfer, it effectively improves the learning speed and the modeling accuracy of the model.
[0022] 3. The correction amount of the torsion angle is predicted by the NARXNN-CNN hybrid hysteresis model, and the correction amount of the torsion angle is used to compensate the joint angle setting value. Through modeling and compensation, the angle transmission accuracy of the robot joint is improved by using joint intelligent modeling and feedforward compensation methods, which indirectly avoids the joint transmission errors caused by joint materials, manufacturing, assembly of complex structures, and load changes. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 is the hysteresis characteristic of the flexible joint, where (a) is the joint position set value signal curve, and (b) is the hysteresis characteristic curve between the load torque and the torsion angle.
[0024] Figure 2 This is the NARXNN structure diagram.
[0025] Figure 3 This is the CNN structure diagram.
[0026] Figure 4 This is the schematic diagram of the NARXNN-CNN combined hysteresis model.
[0027] Figure 5 Schematic diagram of the segmented learning principle of the NARXNN-CNN combined hysteresis model.
[0028] Figure 6 This is the overall learning principle diagram of the NARXNN-CNN combined hysteresis model. DETAILED DESCRIPTION
[0029] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific examples.
[0030] Taking collaborative robots as the research object, the robot joints are tested to obtain real-time data such as motor position, joint position, and joint output torque, and the hysteresis characteristic curve of its flexible joints is obtained. Figure 1 As shown in the figure, the experimental results reveal that the hysteresis nonlinearity of the robot's flexible joints is specifically manifested as strong nonlinearity in the forward and reverse paths, asymmetric and non-smooth hysteresis characteristics.
[0031] NARXNN is a nonlinear autoregressive neural network with external input, which contains multi-step input and output time delays, so that the NARXNN model reflects historical data information and has dynamic storage function. NARXNN can be used to describe the memory characteristics of joints. Combined with the analysis of the hysteresis characteristics of flexible joints, the advantages of the NARXNN model are used to construct the hysteresis curve. The input-output mapping relationship in the model is:
[0032] Δθ'(k)=f(τ J (k-1),τ J(k-2),Δθ(k-1),Δθ(k-2)) (1)
[0033] Among them, Δθ'(k) is the joint torsion angle calculated by NARXNN at time k, τ J (k-1) and τ J (k-2) represents the actual measured joint torque of the robot at time k-1 and k-2. Torsion angle Δθ(k) = θ r (k)-θ0(k),θ r (k) and θ0(k) are the joint angle setting value and joint angle output value at time k respectively. Δθ(k-1) and Δθ(k-2) represent the joint torsion angles actually measured by the robot at time k-1 and k-2. Figure 2 Shown is the NARXNN structure diagram.
[0034] NARXNN adopts a three-layer network model structure, namely input layer, hidden layer and output layer. The input layer is the measured joint torque and joint torsion angle delayed by a certain time series, and the output layer vector is the joint torsion angle calculated by the model. Its training algorithm includes the weight learning process of forward propagation and error back propagation.
[0035] 1) Forward propagation process
[0036] Hidden layer input It can be expressed as:
[0037]
[0038] in, represents the output of the input layer, represents the connection weight between the input layer and the hidden layer, represents the threshold of the hidden layer. The output of the hidden layer It can be expressed as:
[0039]
[0040] Among them, f1 represents the activation function of the hidden layer, and the input of the output layer The expression is:
[0041]
[0042] in, represents the connection weight between the hidden layer and the output layer, Represents the threshold of the output layer, and the output y expression of the output layer is:
[0043]
[0044] Among them, f2 represents the activation function of the output layer.
[0045] 2) Weight learning for error back propagation
[0046] The error between the actual torsion angle of the joint and the torsion angle calculated by NARXNN is expressed as:
[0047]
[0048] The steepest descent method is generally chosen as the error back propagation algorithm, but it has the problem of slow convergence. The Levenberg-Marquardt algorithm has good robustness and speed, so it is used for NARXNN error back propagation training.
[0049] The weight change of the input layer and the hidden layer The change in hidden layer threshold The weight changes of the hidden layer and the output layer And the change in the output layer threshold Its expression is:
[0050]
[0051] Due to the strong nonlinearity, non-smoothness and asymmetric hysteresis relationship of the joints of flexible joint robots (such as the FRANKA robot), the NARXNN model used to describe the characteristics of the robot's flexible joints has large errors in amplitude and phase. Therefore, in order to further improve the accuracy of the model, this invention introduces CNN to compensate for the model error between the hysteresis characteristics predicted by NARXNN and the actual hysteresis curve.
[0052] CNN (Convolutional Neural Network) is a feedforward neural network that extracts features and trains through multiple detection layers. CNN can implicitly learn from data without providing explicit rules and annotations, and efficiently extract features from data. The CNN structure used in the invention is mainly composed of an input layer, a convolutional layer, two fully connected layers with RELU as the activation function, and an output layer. Figure 3 As shown in the figure, the convolutional neural network consists of an input layer, a convolutional layer, two fully connected layers, and an output layer; the input end of the input layer forms the input end of the convolutional neural network, the output end of the input layer is connected to the input end of the convolutional layer, the output end of the convolutional layer is connected to the input end of the first fully connected layer, and the output end of the second fully connected layer forms the output end of the convolutional neural network.
[0053] The main function of CNN is to train different filters, namely convolution kernels, in a data-driven manner to capture the characteristics of the original data. Therefore, the convolution layer is the core of the CNN network structure.
[0054] Assume that the input layer is an M×N matrix, the convolution kernel size is L×P, and the output after convolution is as follows:
[0055]
[0056] Among them, h j,n represents the output value of the output matrix in the jth row and nth column, f represents the activation function, ω l,m is the weight of the lth row and mth column in the convolution kernel, α j+l,n+p It represents the data corresponding to the input matrix accepted by the convolution layer, and b represents the shared bias parameter.
[0057] The convolution layer uses the convolution kernel to traverse and scan the input layer to complete the data conversion of the input layer. The excitation layer uses an activation function similar to that of a traditional neural network to perform a nonlinear transformation on the output value after convolution calculation, thereby enhancing the network's expressive power. The function of the fully connected layer is to perform a nonlinear combination of the extracted features to obtain the output. CNN network parameter learning is achieved through the stochastic gradient descent method.
[0058] The present invention considers post-placing CNN, taking the joint torque and torsion angle historical values as the input of NARXNN, obtaining the predicted output, and again taking the predicted output, the difference between the predicted output and the torsion angle historical values, the torque and the torsion angle historical values as the input of CNN. Most importantly, the difference between the NARXNN predicted output and the torsion angle historical values is used as the input of CNN. The feature extraction capability of CNN is used to realize the extraction of the amplitude and phase features of the difference, and the nonlinear mapping of the CNN fully connected layer is used to realize the effective compensation of the output error of the NARXNN hysteresis model, such as Figure 4 Shown is the NARXNN-CNN hybrid hysteresis model.
[0059] NARXNN and CNN are modeled in series, and the model parameter learning method is independent piecewise reverse error transfer learning. The NARXNN-CNN hysteresis hybrid model is analyzed, and its error loss function is:
[0060]
[0061] Where, 0<ω<1, e1=Δθ(k)-Δθ'(k) is the error between the actual torsion angle and the torsion angle output predicted by NARXNN, is the error between the actual torsion angle and the torsion angle output predicted by CNN. The deviation correction calculation formula is:
[0062]
[0063] Where W1 represents the internal parameters of NARXNN and W2 represents the internal parameters of CNN. The hybrid model segmented reverse error learning is implemented through equations (9) and (10).
[0064] The independent segmented learning process of the hybrid NARXNN-CNN structure model can be regarded as a separate modeling learning process consisting of an outer loop and an inner loop, which realizes the decoupling of the parameter learning process and solves the problem of gradient disappearance or explosion in the learning process. Figure 5 The figure shows the principle diagram of segmented learning of the hybrid model. The output of the inner loop NARXNN and y1 are compared with the target in advance, and the deviation is used to learn the NARXNN in advance; then the deviation between the CNN output y2 and the target output is used to learn the parameters of the CNN. This realizes the independent segmented reverse error transfer learning of the hybrid model. Figure 6 As shown in the overall error learning comparison, independent piecewise learning performs parameter learning of the hybrid model NARXNN based on the target deviation gradient descent method in advance, which can accelerate the learning speed and improve the model accuracy.
[0065] The joint transmission error is affected by the change of load size. The hysteresis model of the robot joint is established to describe the relationship between the input torsion angle and the load torque. By inputting the load torque information to the hysteresis model, the torsion angle prediction information can be obtained. Since the torsion angle is the difference between the angle setting value and the actual angle value of the joint, the torsion angle prediction information can be used to compensate the angle setting value of the joint, thereby indirectly avoiding the joint transmission error caused by joint materials, manufacturing, assembly of complex structures, and load changes, that is, where θ r (k) is the joint angle setting value before compensation, Set the joint angle value based on modeling compensation. is the torsion angle predicted based on modeling.
[0066] Based on the above analysis, the present invention proposes a robot joint compensation control method based on the NARXNN-CNN hybrid hysteresis model, which specifically includes the following steps:
[0067] Step 1, construct a NARXNN-CNN hybrid hysteresis model; the NARXNN-CNN hybrid hysteresis model consists of a nonlinear autoregressive neural network and a convolutional neural network, wherein the input end of the nonlinear autoregressive neural network forms the input end of the NARXNN-CNN hybrid hysteresis model, the output end of the nonlinear autoregressive neural network is connected to the input end of the convolutional neural network, and the output end of the convolutional neural network forms the output end of the NARXNN-CNN hybrid hysteresis model.
[0068] Step 2: Collect the actual joint torque and joint torsion angle of the robot joint at N historical moments at the beginning of operation to learn the parameters of the NARXNN-CNN hybrid hysteresis model constructed in step 1 to obtain the final NARXNN-CNN hybrid hysteresis model.
[0069] The actual joint torque at the historical moment is directly measured by the torque sensor, and the actual joint torsion angle at the historical moment is obtained by subtracting the joint angle setting value input by the robot's control end from the joint angle output value measured by the angle sensor, that is:
[0070] The actual joint torsion angle Δθ(k) at time k is:
[0071] Δθ(k)=θ r (k)-θ0(k)
[0072] The actual joint torsion angle Δθ(k-1) at time k-1 is:
[0073] Δθ(k-1)=θ r (k-1)-θ0(k-1)
[0074] The actual joint torsion angle Δθ(k-2) at time k-2 is:
[0075] Δθ(k-2)=θ r (k-2)-θ0(k-2)
[0076] In the formula, θ r (k) is the joint angle setting value at time k, θ0(k) is the joint angle output value at time k; θ r (k-1) is the joint angle setting value at time k, θ0(k-1) is the joint angle output value at time k; θ r (k-2) is the joint angle setting value at time k, and θ0(k-2) is the joint angle output value at time k.
[0077] During the learning process of the NARXNN-CNN hybrid hysteresis model:
[0078] First, the actual joint torque τ at time k-2 J (k-2), actual joint torque τ at time k-1 J The actual joint torsion angles Δθ(k-2) at moments k-1 and k-2, and the actual joint torsion angle Δθ(k-1) at moment k-1 are simultaneously sent to the nonlinear autoregressive neural network of the NARXNN-CNN hybrid hysteresis model to obtain the joint torsion angle Δθ′(k) predicted by the nonlinear autoregressive neural network at moment k, and the nonlinear autoregressive neural network error e1=Δθ(k)-Δθ′(k) between the actual joint torsion angle Δθ(k) at moment k and the joint torsion angle Δθ′(k) predicted by the nonlinear autoregressive neural network at moment k is calculated; the NARXNN-CNN model establishment process uses e1 to realize model parameter learning.
[0079] Then, the actual joint torque τ at time k-1 isJ The actual joint torsion angle Δθ(k-1) at time k-1, the joint torsion angle Δθ′(k) predicted by the nonlinear autoregressive neural network at time k, and the difference between the joint torsion angle Δθ′(k) predicted by the nonlinear autoregressive neural network at time k and the actual joint torsion angle Δθ(k-1) at time k-1, i.e. Δθ′(k)-Δθ(k-1), are simultaneously fed into the convolutional neural network of the NARXNN-CNN hybrid hysteresis model to obtain the joint torsion angle predicted by the convolutional neural network at time k. And calculate the actual joint torsion angle Δθ(k) at time k and the joint torsion angle predicted by the convolutional neural network at time k Convolutional neural network error The CNN model building process uses e2 to achieve model parameter learning.
[0080] Finally, based on the independent piecewise loss function, the NARXNN-CNN hybrid hysteresis model is subjected to independent piecewise reverse error transfer learning to obtain the final NARXNN-CNN hybrid hysteresis model; the loss function V is:
[0081]
[0082] Wherein, e1 is the nonlinear autoregressive neural network error, and e2 is the convolutional neural network error. ω is the set weight coefficient, and 0<ω<1; considering that e2 directly affects the final model accuracy, in the preferred embodiment of the present invention, ω>0.5. k=3, 4, …, N+2, N is the set number of historical moments; since k=1, 2, it is impossible to collect τ J (k-2), τ J (k-1), Δθ(k-2), Δθ(k-1), so in order to ensure the smooth progress of learning, the first two historical moments of the robot joint at the beginning of the operation can be ignored, and N groups of historical data are taken from the actual joint torque and joint torsion angle of the robot joint at the third historical moment at the beginning of the operation.
[0083] Step 3: The actual joint torque two moments before the current moment, the actual joint torque one moment before the current moment, the actual joint torsion angle two moments before the current moment, and the actual joint torsion angle one moment before the current moment are input into the final NARXNN-CNN hybrid hysteresis model obtained in step 2 to obtain the predicted joint torsion angle at the current moment.
[0084] Step 4: First, add the joint angle setting value before compensation at the current moment to the joint torsion angle predicted at the current moment obtained in step 3 to obtain the joint angle setting value after compensation at the current moment, that is, where θ r (k) is the joint angle setting value before compensation, The joint angle setting value after compensation. Then set the joint angle setting value after compensation at the current moment Provided to the joint control end of the robot to indirectly offset the hysteresis characteristics of the joint so that the joint output angle does not change with the load under different loads.
[0085] It should be noted that although the embodiments of the present invention described above are illustrative, they are not intended to limit the present invention, and therefore the present invention is not limited to the above specific embodiments. Without departing from the principles of the present invention, any other embodiments obtained by those skilled in the art under the guidance of the present invention are deemed to be within the protection of the present invention.
Claims
1. A robot joint compensation control method based on the NARXNN-CNN hybrid hysteresis model is characterized by: The steps include: Step 1, constructing a NARXNN-CNN hybrid hysteresis model; the NARXNN-CNN hybrid hysteresis model is composed of a nonlinear autoregressive neural network and a convolutional neural network, wherein the input end of the nonlinear autoregressive neural network forms the input end of the NARXNN-CNN hybrid hysteresis model, the output end of the nonlinear autoregressive neural network is connected to the input end of the convolutional neural network, and the output end of the convolutional neural network forms the output end of the NARXNN-CNN hybrid hysteresis model; Step 2: Collect the actual joint torque and joint torsion angle of the robot joint at N historical moments at the beginning of operation to learn the parameters of the NARXNN-CNN hybrid hysteresis model constructed in step 1 to obtain the final NARXNN-CNN hybrid hysteresis model; in the learning process of the NARXNN-CNN hybrid hysteresis model: First, the actual joint torque τ at time k-2 J (k-2), actual joint torque τ at time k-1 J The actual joint torsion angles Δθ(k-2) at the time k-1 and k-2, and the actual joint torsion angles Δθ(k-1) at the time k-1 are simultaneously fed into the nonlinear autoregressive neural network of the NARXNN-CNN hybrid hysteresis model to obtain the joint torsion angle Δθ'(k) predicted by the nonlinear autoregressive neural network at the time k, and the nonlinear autoregressive neural network error e1=Δθ(k)-Δθ'(k) between the actual joint torsion angle Δθ(k) at the time k and the joint torsion angle Δθ'(k) predicted by the nonlinear autoregressive neural network at the time k is calculated; Then, the actual joint torque τ at time k-1 is J The actual joint torsion angle Δθ(k-1) at time k-1, the joint torsion angle Δθ'(k) predicted by the nonlinear autoregressive neural network at time k, and the difference between the joint torsion angle Δθ'(k) predicted by the nonlinear autoregressive neural network at time k and the actual joint torsion angle Δθ(k-1) at time k-1 are simultaneously fed into the convolutional neural network of the NARXNN-CNN hybrid hysteresis model to obtain the joint torsion angle predicted by the convolutional neural network at time k. And calculate the actual joint torsion angle Δθ(k) at time k and the joint torsion angle predicted by the convolutional neural network at time k Convolutional neural network error Finally, the NARXNN-CNN hybrid hysteresis model is subjected to independent piecewise reverse error transfer learning based on the independent piecewise loss function to obtain the final NARXNN-CNN hybrid hysteresis model; the independent piecewise loss function V is: Among them, e1 is the nonlinear autoregressive neural network error, e2 is the convolutional neural network error; ω is the set weight coefficient, and 0<ω<1; k=3,4,…,N+2, N is the set number of historical moments; Step 3, the actual joint torque two moments before the current moment, the actual joint torque one moment before the current moment, the actual joint torsion angle two moments before the current moment, and the actual joint torsion angle one moment before the current moment are input into the final NARXNN-CNN hybrid hysteresis model obtained in step 2 to obtain the predicted joint torsion angle at the current moment; Step 4: Add the joint angle setting value before compensation at the current moment to the joint torsion angle predicted at the current moment obtained in step 3 to obtain the joint angle setting value after compensation at the current moment; and provide the joint angle setting value after compensation at the current moment to the joint control end of the robot to indirectly offset the hysteresis characteristics exhibited by the joint, so as to achieve that the joint output angle does not change with the load under different loads.
2. The robot joint compensation control method based on the NARXNN-CNN hybrid hysteresis model according to claim 1 is characterized in that: In step 2, the actual joint torque at the historical moment is obtained by directly measuring the torque sensor, and the actual joint torsion angle at the historical moment is obtained by performing a difference operation between the joint angle setting value input by the robot's control end and the joint angle output value measured by the angle sensor.
3. According to claim 1, the robot joint compensation control method based on the NARXNN-CNN hybrid hysteresis model is characterized in that the convolution The neural network consists of an input layer, a convolutional layer, two fully connected layers, and an output layer; the input layer forms the input of the convolutional neural network, the output of the input layer is connected to the input of the convolutional layer, the output of the convolutional layer is connected to the input of the first fully connected layer, and the output of the first fully connected layer forms the output of the convolutional neural network.
4. According to the robot joint compensation control method based on the NARXNN-CNN hybrid hysteresis model of claim 3, both of the two fully connected layers are fully connected layers with RELU as the activation function.
5. The robot joint compensation control method based on the NARXNN-CNN hybrid hysteresis model according to claim 1 is characterized in that: The weight coefficient ω>0.5.
