Grabbing pose generation method based on convolutional neural network

Through the grasping pose generation method based on convolutional neural network, combined with multi-scale feature fusion and attention mechanism, the problems of low detection accuracy and poor real-time performance in robot grasping tasks in unstructured environments are solved, and high accuracy is achieved. And high-speed grabbing pose generation, suitable for grabbing irregular products in retail environments.

CN118552618APending Publication Date: 2024-08-27GUIZHOU UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410707431.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing technologies have problems with low detection accuracy and poor real-time performance in robot grabbing tasks in unstructured environments. Especially in retail environments, both detection speed and accuracy need to be taken into consideration to achieve optimal grabbing poses.

Method used

A method for generating grasping poses based on convolutional neural networks is designed. By determining the representation method of the grasping position, data enhancement processing, constructing the RS-ConvNet network model, and using multi-scale feature fusion, attention mechanism and optimization loss function to achieve lightweight grasping pose estimation.

Benefits of technology

It improves the accuracy and speed of grabbing detection, meets the accuracy and speed requirements for grabbing irregular goods in a retail environment, and achieves stable and efficient grabbing by robots.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552618A
    Figure CN118552618A
Patent Text Reader

Abstract

The grabbing pose generation method based on the convolutional neural network comprises the steps of determining a representation method of a grabbing position, performing data enhancement processing on an original data set, constructing an optimal grabbing pose generation network model based on the convolutional neural network RS-ConvNet, and generating the grabbing pose based on the optimal grabbing pose generation network model. And the enhanced data set is adopted to train an optimal grabbing pose generation network model based on a convolutional neural network RS-ConvNet, an image obtained by a camera is input into the trained optimal grabbing pose generation network model based on the RS-ConvNet to be predicted, and after the optimal grabbing pose is obtained, a mechanical arm is made to execute the grabbing action through coordinate transformation. The method has good accuracy and high detection speed, meets the requirements for the grabbing precision and grabbing speed of irregular commodities in a retail environment, and can achieve stable and efficient grabbing of the robot.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of robots, computer vision and artificial intelligence technology, and in particular to a method for generating grasping postures based on a convolutional neural network. Background Art

[0002] With the rapid development of science and technology, robotics has been applied to daily life, and robotic grasping is a basic task in the field of intelligent robots. With the diversification of the types, shapes, and sizes of objects in retail environments, the structured grasping methods of traditional robots can no longer meet application requirements. Compared with grasping tasks in traditional environments, robots in unstructured environments face many challenges, such as complex and changeable grasping environments, unknown shapes and sizes of targets to be grasped, and variable object postures. Therefore, introducing machine vision into robots to build autonomous grasping systems has become a hot research trend.

[0003] In the prior art, in order to improve the detection accuracy, researchers designed a multi-level network structure based on a single network to improve the accuracy of the model. Guo et al. proposed a new hybrid deep structure that integrates visual perception and tactile perception to increase the robustness of the algorithm. Shang et al. combined the grasping posture prediction network with the grasping rectangle detection network to construct a multi-level convolutional neural network (ML-CNN), which effectively improved the grasping accuracy, but the number of parameters was too large and the hardware requirements for the use environment were high. Zhang et al. proposed a coarse-to-fine cascaded Faster R-CNN based on multi-scale feature maps to achieve the grasping of stacked fruits. Ainetter et al. integrated target detection with semantic segmentation to further improve the accuracy of grasping detection. The use of target detection and image segmentation methods can effectively improve the grasping accuracy, but at present, both target detection and image segmentation require a large number of parameter operations, which will lead to poor real-time detection and high hardware requirements for deployment in industrial applications. Chen et al. proposed an edge-based grasping detection strategy that integrates low-level features and convolutional neural networks, but did not consider deep image information, resulting in insufficient detection accuracy. However, in a retail environment, the detection accuracy is low, and both detection speed and detection accuracy need to be taken into account at the same time to obtain the optimal grasping posture. Summary of the invention

[0004] The purpose of the present invention is to overcome the above-mentioned shortcomings and propose a grasping posture generation method based on a convolutional neural network with good accuracy and high detection speed.

[0005] A method for generating a grasping posture based on a convolutional neural network of the present invention comprises the following steps:

[0006] Step 1: Determine the representation method of the grasping position: obtain an image through the camera, and grasp the plane in the image at the i-th pose Gi Defined as:

[0007] G i =(u, v, θ i , W i , Q)

[0008] Where (u, v) represents the grasp center in image coordinates; θ i is the rotation angle in the image coordinate system; W i is the grasp width in image coordinates; Q represents the graspability of each pixel in the image, which is a probability distribution between 0 and 1. The larger the value, the higher the grasp success rate.

[0009] The rotation angle θ in the image coordinate system i , used to control the gripping angle of the end effector on the robot arm, with a value range of [-π / 2, π / 2].

[0010] The grab width W in image coordinates i , used to control the gripping width of the end effector on the robot arm, with a value range of [0, 150].

[0011] Step 2: Perform data enhancement on the original data set: Use random cropping, scaling, and rotation to create an enhanced data set, expand the original data set, and split the enhanced data set into a training set and a validation set;

[0012] The original dataset is the Cornell grasping dataset, including 885 RGB-D images, each of which is 640×480 pixels in size and records 240 different real-world objects; the original dataset is annotated with corresponding positive grasping rectangles and negative grasping rectangles, which respectively represent feasible and infeasible grasping boxes, that is, the positive grasping rectangle represents the successful grasping area, and the negative grasping rectangle represents the prohibited grasping area.

[0013] The enhanced dataset is divided into a training set and a validation set in a ratio of 9:1.

[0014] Step 3: Construct an optimal grasping pose generation network model based on the convolutional neural network RS-ConvNet: The first layer uses the Focus module for lossless double downsampling to expand the original 4-channel image to 32 channels; the second layer uses the hole convolution block to expand the receptive field, further reducing the image size while expanding 64 channels; the third layer chooses to use standard convolution for channel expansion to avoid network degradation while expanding the number of channels to 128; the fourth layer designs the R-Resblock module for multi-scale feature fusion to improve detection performance while maintaining the number of channels; the fifth layer introduces the attention model RFB-SE to enhance the expression ability of fuzzy features; the sixth and seventh layers respectively use the upsampling fusion attention mode ECA to improve detection accuracy; the eighth layer uses deconvolution to upsample and reduce image loss;

[0015] The optimal grasping posture generation network model based on the convolutional neural network RS-ConvNet, in order to better determine the output parameters of the network model, takes Smooth-L1 as the predicted regression loss function, which is defined as follows:

[0016]

[0017] Where N is the total number of predicted grasping boxes; q and w represent the grasping quality and the width of the gripper opening, respectively; cos(2θ) and sin(2θ) are parameter representations of the grasping angle; Smooth l1 (x i ,y i ) is calculated as follows:

[0018]

[0019] Among them, y i Represents the output of the network, the i-th prediction box; x i Represents the i-th real grasp box.

[0020] Step 4: Use the enhanced data set to train the optimal grasping posture generation network model based on the convolutional neural network RS-ConvNet. The detailed steps are as follows:

[0021] (1) Initializing the weights of the network model, using the Adam optimizer for optimization training, setting the initial learning rate to 1e-3, using a small batch-size of 8 for training, and setting the training Epoch to 500;

[0022] (2) dividing the enhanced data set according to a preset ratio, inputting image information into the network model, and obtaining the relevant value of the output prediction grab box after being processed by the network model;

[0023] (3) The correlation value between the predicted grab box and the actual grab box is sent to the loss function to calculate the difference between the actual value and the predicted value, that is, the loss value;

[0024] (4) When the loss value is greater than the preset expected value of 0.15, the loss value is re-sent into the neural network, the loss value corresponding to each layer of the network is calculated respectively, and the weights are updated, and then return to step (2).

[0025] (5) When the loss value is less than or equal to the expected value of 0.15 or the model is iterated 500 times, the model training is terminated and the optimal weight file is obtained;

[0026] Step 5: Input the image captured by the camera into the trained RS-ConvNet-based optimal grasping pose generation network model for prediction. After obtaining the optimal grasping pose, the robotic arm performs the grasping action through coordinate transformation.

[0027] The image acquired by the camera is input into the trained RS-ConvNet-based optimal grasping pose generation network model for prediction: the input image is detected, the trained RS-ConvNet-based optimal grasping pose generation network model is loaded, and after all the grasping prediction frames of the grasped target in the image are obtained, non-maximum suppression is used for local search to suppress the prediction frames with lower grasping quality scores, and the result with the highest grasping quality score is selected as the output of the optimal grasping pose to obtain the optimal grasping pose.

[0028] After obtaining the optimal grasping posture, coordinate transformation is used to allow the robot to perform the grasping action: after obtaining the optimal grasping posture, the five-dimensional grasping posture in the image coordinate system is converted into the robot arm posture in the end effector coordinate system by using the coordinate transformation formula through the robot arm kinematic analysis, so as to realize the grasping action of the robot arm on the target object. The coordinate transformation formula is:

[0029]

[0030] Among them, z i represents the depth information of the center point of the target object to be grasped in the camera coordinate system; M represents the intrinsic parameter matrix of the camera; R and T are the transformation matrices between the camera coordinate system and the world coordinate system; (x, y, z) represents the coordinates of the center point of the target object to be grasped in the world coordinate system.

[0031] Compared with the prior art, the present invention has obvious beneficial effects. It can be seen from the above scheme that, firstly, a multi-scale fusion R-Resblock module and Focus are constructed to enrich feature information and improve the receptive field of the image; secondly, a lightweight attention mechanism RFB-SE is designed to improve the learning ability of the key areas of the grasping; thirdly, the grasping loss function is optimized to improve the convergence speed and optimization ability of the network; finally, the model is trained and tested based on the Cornell grasping data set. In short, the present invention designs a lightweight grasping posture estimation method, generates the optimal grasping posture by regression, and improves the speed of grasping detection. The multi-scale feature fusion module and the improved residual structure are introduced into the grasping posture estimation model, and the grasping detection task of irregular objects is completed in combination with the lightweight attention mechanism. The present invention has good accuracy and high detection speed, meets the requirements of grasping accuracy and grasping speed for irregular goods in the retail environment, and can realize stable and efficient grasping of robots.

[0032] The beneficial effects of the present invention are further illustrated below through specific implementation modes. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a flow chart of the present invention;

[0034] Figure 2 It is a representation diagram of the grasping posture of the present invention;

[0035] Figure 3 Generate a network model structure diagram for the optimal grasping posture of the present invention. DETAILED DESCRIPTION

[0036] In combination with the accompanying drawings and preferred embodiments, the specific implementation method, features and effects of a grasping posture generation method based on a convolutional neural network proposed in the present invention are described in detail as follows.

[0037] See also Figure 1 A method for generating grasping posture based on a convolutional neural network of the present invention comprises the following steps:

[0038] Step 1: Determine the evaluation index for generating the optimal grasping posture information to generate the optimal grasping posture.

[0039] The optimal grasping posture information can be defined as Figure 2 The grasping posture G shown in i .

[0040] First, an RGB-D image of size h×w is obtained from the Kinect camera. The plane grasping pose G in the image is i It can be defined as:

[0041] Gi =(uv,θ i , W i , Q) (1)

[0042] Where (u, v) represents the grasp center in image coordinates; θ i is the rotation angle in the image coordinate system, ranging from [-π / 2, π / 2]; W i is the grasping width in the image coordinates, with a value range of [0, 150]; Q represents the graspability of each pixel in the image, which is a probability distribution between 0 and 1. The larger the value, the higher the grasping success rate.

[0043] After obtaining the predicted value in the image coordinate system, formula (2) can be used to convert the five-dimensional grasping posture in the image coordinate system into the robotic arm posture in the end effector coordinate system through the robotic arm kinematic analysis, thereby realizing the object grasping action of the robotic arm.

[0044]

[0045] In the formula, z i represents the depth information of the center point of the target object to be grasped in the camera coordinate system; M represents the intrinsic parameter matrix of the camera; R and T are the transformation matrices between the camera coordinate system and the world coordinate system; (x, y, z) represents the coordinates of the center point of the object to be grasped in the world coordinate system.

[0046] Step 2: Perform data augmentation on the Cornell dataset to expand the number of training samples.

[0047] The Cornell grasping dataset consists of 885 RGB-D images, each of which is 640×480 pixels in size, and records 240 different real-world objects. The dataset is annotated with corresponding positive grasping rectangles and negative grasping rectangles, which represent feasible and infeasible grasping boxes, respectively. Among them, the positive grasping rectangle represents the successful grasping area, while the negative grasping rectangle represents the prohibited grasping area. Only the positive grasping rectangle is used as training data in the experiment. Considering that the proposed method requires the input size to be 320×320, the center cropping method is used to process the images in Cornell to the required size.

[0048] The present invention uses random cropping, scaling and rotation to create an enhanced dataset, expands the original dataset by 5 times, and divides the dataset into a training set and a validation set in a ratio of 9:1 for subsequent model training and experimental verification.

[0049] Step 3: Construct the RS-ConvNet optimal grasping pose generation network model.

[0050] The RS-ConvNet optimal grasping posture generation network model is based on the latest research results in the field of target detection. Its structure is as follows: Figure 3 As shown in the figure. The first layer uses the Focus module for lossless double downsampling to expand the original 4-channel image to 32 channels; the second layer uses the hole convolution block to expand the receptive field, further reducing the image size while expanding 64 channels; the third layer chooses to use standard convolution for channel expansion to avoid network degradation while expanding the number of channels to 128; the fourth layer designs the R-Resblock module for multi-scale feature fusion to improve the detection performance while maintaining the number of channels; the fifth layer introduces the RFB-SE attention model to enhance the expression ability of fuzzy features; the sixth and seventh layers respectively use the upsampling fusion ECA attention mode to improve the detection accuracy; the eighth layer uses deconvolution to upsample and reduce image loss.

[0051] In order to better determine the network output parameters, the present invention uses Smooth-L1 as the predicted regression loss function, which is defined as follows:

[0052]

[0053] Where N is the total number of predicted grasping frames; q and w represent the grasping quality and the width of the gripper opening, respectively; cos(2θ) and sin(2θ) are parameter representations of the grasping angle. l1 (x i ,y i ) is calculated as follows:

[0054]

[0055] In the formula, y i Represents the output of the network, the i-th prediction box; x i Represents the i-th real grasp box.

[0056] Step 4: Use the enhanced dataset to train the convolutional neural network model.

[0057] The training steps of the optimal grasping pose generation network model can be described as:

[0058] (1) Initialize the model weights of the neural network, use the Adam optimizer for optimization training, set the initial learning rate to 1e-3, use a small batch-size of 8 for training, and set the training Epoch to 500.

[0059] (2) The enhanced dataset is divided according to a preset ratio, and the RGB three-color image information and Depth information are input into the optimal grasping posture generation network model. After model processing, the relevant value of the output predicted grasping box is obtained.

[0060] (3) The correlation value between the predicted grasping box and the actual grasping box is sent to the loss function to calculate the difference between the actual value and the predicted value, that is, the loss value.

[0061] (4) When the loss value is greater than the expected value of 0.15, the loss value is sent back to the neural network, and the loss value corresponding to each layer of the network is calculated and the weights are updated. The updated weights are used to perform step (2).

[0062] (5) When the loss value is less than or equal to the preset expected value of 0.15 or the model is iterated 500 times, the model training is terminated and the optimal weight file is obtained.

[0063] Step 5: Input the depth image obtained by the depth camera into the trained optimal grasping pose generation network model for prediction. After obtaining the optimal grasping pose, the UR3 robot arm performs the grasping action through coordinate transformation.

[0064] Detect the input image and load the optimal grasping pose generation network model trained in step 4. After obtaining all the grasping prediction boxes in the target, use non-maximum suppression to perform local search, suppress the prediction boxes with low grasping quality scores, and select the result with the highest grasping quality score as the output of the optimal grasping pose.

[0065] Performance Analysis:

[0066] 1. Evaluation indicators

[0067] In order to facilitate comparison with other models, the currently popular Jaccard index is used to measure the grasp detection accuracy of the proposed algorithm.

[0068] (1) The difference between the rotation angle of the predicted grasping box and the true grasping box is within 30°;

[0069] (2) The Jaccard index between the predicted grasp box and the true grasp box exceeds 0.25.

[0070] The definition of the Jaccard index is as follows:

[0071]

[0072] In the formula, G p Represents the area of ​​the predicted grab box; G T represents the area of ​​the actual grasping box; G p ∩G T represents the intersection of two grab boxes; G p ∪G T Represents the union of two grab boxes.

[0073] 2. Experimental results analysis

[0074] According to the above grasping indicators, the grasping accuracy and speed of the proposed method on the Cornell dataset are compared with other popular grasping methods. The results are shown in Table 1.

[0075] Table 1 Comparison of grasping accuracy and speed in the Cornell dataset

[0076]

[0077] It can be seen from the above table that the accuracy of the RS-ConvNet model of the present invention reaches 97.8% and the speed reaches 78FPS. Although the detection accuracy of Faster-RCNN and RPN, ResNet50 is higher than that of the method proposed in the present invention, the fusion of the two models leads to higher requirements on the hardware system and greater training difficulty. The method of the present invention is simple to train, and the number of parameters is only 711,430, which is less than half of GR-ConvNet and far less than other complex structures containing millions of parameters. It has lower computational cost and faster speed, and is more suitable for application development in lightweight scenarios.

[0078] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention without departing from the technical solution of the present invention still falls within the scope of the technical solution of the present invention.

Claims

1. A method for generating grasping posture based on convolutional neural network, characterized in that: The method comprises the following steps: Step 1: Determine the representation method of the grasping position: obtain an image through the camera, and grasp the plane in the image at the i-th pose G i Defined as: G i =(u,v,θ i ,W i ,Q) Where (u, v) represents the grasp center in image coordinates; θ i is the rotation angle in the image coordinate system; W i is the grasp width in image coordinates; Q represents the graspability of each pixel in the image, which is a probability distribution between 0 and 1. The larger the value, the higher the grasp success rate. Step 2: Perform data enhancement on the original data set: Use random cropping, scaling, and rotation to create an enhanced data set, expand the original data set, and split the enhanced data set into a training set and a validation set; Step 3: Construct an optimal grasping pose generation network model based on the convolutional neural network RS-ConvNet: The first layer uses the Focus module for lossless double downsampling to expand the original 4-channel image to 32 channels; the second layer uses the hole convolution block to expand the receptive field, further reducing the image size while expanding 64 channels; the third layer chooses to use standard convolution for channel expansion to avoid network degradation while expanding the number of channels to 128; the fourth layer designs the R-Resblock module for multi-scale feature fusion to improve detection performance while maintaining the number of channels; the fifth layer introduces the attention model RFB-SE to enhance the expression ability of fuzzy features; the sixth and seventh layers respectively use the upsampling fusion attention mode ECA to improve detection accuracy; the eighth layer uses deconvolution to upsample and reduce image loss; Step 4: Use the enhanced data set to train the optimal grasping posture generation network model based on the convolutional neural network RS-ConvNet. The detailed steps are as follows: (1) Initializing the weights of the network model, using the Adam optimizer for optimization training, setting the initial learning rate to 1e-3, using a small batch-size of 8 for training, and setting the training Epoch to 500; (2) dividing the enhanced data set according to a preset ratio, inputting image information into the network model, and obtaining the relevant value of the output prediction grab box after being processed by the network model; (3) The correlation value between the predicted grab box and the actual grab box is sent to the loss function to calculate the difference between the actual value and the predicted value, that is, the loss value; (4) When the loss value is greater than the expected value set in advance, the loss value is re-sent into the neural network, the loss value corresponding to each layer of the network is calculated respectively, and the weights are updated, and the process returns to step (2); (5) When the loss value is less than or equal to the expected value set in advance or the model is iterated 500 times, the model training is terminated and the optimal weight file is obtained; Step 5: Input the image captured by the camera into the trained RS-ConvNet-based optimal grasping pose generation network model for prediction. After obtaining the optimal grasping pose, the robotic arm performs the grasping action through coordinate transformation.

2. The method for generating grasping posture based on a convolutional neural network according to claim 1, characterized in that: In step 1, the rotation angle θ in the image coordinate system i , used to control the gripping angle of the end effector on the robot arm, with a value range of [-π / 2, π / 2].

3. The method for generating grasping posture based on a convolutional neural network according to claim 1, characterized in that: In step 1, the captured width W in the image coordinates i , used to control the gripping width of the end effector on the robot arm, with a value range of [0, 150].

4. The method for generating grasping posture based on a convolutional neural network according to claim 1, characterized in that: In step 2, the original data set is the Cornell grasping data set, including 885 RGB-D images, each of which is 640×480 pixels in size and records 240 different real-world objects; the original data set is annotated with corresponding positive grasping rectangles and negative grasping rectangles, which respectively represent feasible and infeasible grasping boxes, that is, the positive grasping rectangle represents the successful grasping area, and the negative grasping rectangle represents the prohibited grasping area.

5. The method for generating grasping posture based on a convolutional neural network according to claim 1 or 4, characterized in that: In step 2, the enhanced dataset is split into a training set and a validation set in a ratio of 9:

1.

6. The method for generating grasping posture based on a convolutional neural network according to claim 1, characterized in that: In step 3, the optimal grasping posture generation network model based on the convolutional neural network RS-ConvNet is used. In order to better determine the output parameters of the network model, Smooth-L1 is used as the predicted regression loss function L(x, y), which is defined as follows: Where N is the total number of predicted grasping boxes; q and w represent the grasping quality and the width of the gripper opening, respectively; cos(2θ) and sin(2θ) are parameter representations of the grasping angle; Smooth L1 (x i ,y i ) is calculated as follows: Among them, y i Represents the output of the network, the i-th prediction box; x i Represents the i-th real grasp box.

7. The method for generating grasping posture based on a convolutional neural network according to claim 1, characterized in that: In step four, the expected value of the preset setting in step (4) is 0.

15.

8. The method for generating grasping posture based on a convolutional neural network according to claim 1, characterized in that: In step five, the image acquired by the camera is input into the trained RS-ConvNet-based optimal grasping pose generation network model for prediction: the input image is detected, and the trained RS-ConvNet-based optimal grasping pose generation network model is loaded. After all the grasping prediction boxes of the grasped target in the image are obtained, non-maximum suppression is used for local search to suppress the prediction boxes with lower grasping quality scores, and the result with the highest grasping quality score is selected as the output of the optimal grasping pose to obtain the optimal grasping pose.

9. The method for generating grasping posture based on a convolutional neural network according to claim 1, characterized in that: In step 5, the coordinate transformation: after obtaining the optimal grasping posture, the five-dimensional grasping posture in the image coordinate system is converted into the robotic arm posture in the end effector coordinate system by using the coordinate transformation formula through the robotic arm kinematic analysis, so as to realize the grasping action of the robotic arm on the target object. The coordinate transformation formula is: Among them, z i Represents the depth information of the center point of the target object to be grasped in the camera coordinate system; M represents the intrinsic parameter matrix of the camera; R and T are the transformation matrices between the camera coordinate system and the world coordinate system; (x, y, z) represents the coordinates of the center point of the target object to be grasped in the world coordinate system.

Citation Information

Cited By

  • Robot task execution method and device, robot and active view angle selection system

    CN119567261A

  • Robot task execution method, device, robot and active perspective selection system

    CN119567261B