A grasping posture detection method and device based on lightweight convolutional neural network

By constructing a lightweight convolutional neural network model based on network convergence indicators, the problem of difficulty in edge device deployment caused by the parameterization of the convolutional neural network model in the existing technology is solved, and the grasping pose detection suitable for edge robots is realized. , improving the crawling success rate and reasoning speed.

CN114332209BActive Publication Date: 2024-09-13HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111656936.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2024-09-13
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

The existing convolutional neural network model used for robot grasping pose estimation is too parameterized and difficult to deploy to edge-side devices for calculation, especially in large-scale flexible industrial production scenarios.

Method used

Construct a lightweight convolutional neural network model based on network convergence indicators. By reducing the number of parameters and network depth, the design includes 9*9 convolution layers, 3*3MBconv blocks, 5*5MBconv blocks and 4*4 deconvolution layers. The network structure is used, and the data set containing RGB-D information and grasping pose detection frame is trained to obtain the grasping quality feature map, angle feature map and width feature map to determine the robot's grasping attitude.

Benefits of technology

A lightweight convolutional neural network model suitable for edge robot grasping pose detection is implemented, which reduces the number of parameters and the number of floating point calculations, improves the reasoning speed, can be deployed to edge computing devices, and improves the grasping success rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114332209B
    Figure CN114332209B
Patent Text Reader

Abstract

The present invention belongs to the technical field related to robot grasping posture detection, and discloses a grasping posture detection method and device based on a lightweight convolutional neural network, comprising the following steps: (1) constructing a model based on a network convergence index; (2) training a model based on a grasping data set containing RGB-D information of an object to be grasped and a grasping posture detection frame; (3) obtaining a grasping quality feature map, a grasping angle feature map, and a grasping width feature map based on an RGB-D image and a model of an unknown object; (4) indexing a position with the largest grasping quality, and determining the grasping angle and the gripper width based on the index, and then determining the grasping posture of the robot; (5) calculating and obtaining the grasping posture of the robot in the robot coordinate system. The model has a small number of parameters and floating-point calculations, and can realize real-time grasping posture estimation of unknown objects on edge computing devices with limited computing and storage resources, enabling the field of robot grasping for unknown objects based on edge computing devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field related to robot grasping posture detection, and more specifically, relates to a grasping posture detection method and device based on a lightweight convolutional neural network. Background Art

[0002] Robotic autonomous grasping technology is widely used in real production and life. As one of the most challenging tasks in robotics, it also has important strategic significance for promoting the development of industrial intelligence. Traditional robotic autonomous grasping is mostly based on manual teaching or machine vision methods. These methods are suitable for a single production environment and are difficult to apply to large-scale flexible industrial production scenarios.

[0003] Convolutional neural network is a special multi-layer feedforward neural network, which is named because of the convolutional layer in its network layer. Due to its translation invariance, it is also called translation invariant artificial neural network by some scholars. Research on convolutional neural networks began in the 1980s. After nearly 30 years of unremitting efforts by many scientific researchers, the theoretical system related to convolutional neural networks has been continuously improved, and its application scenarios have been continuously explored. However, most of the existing convolutional neural network models used for robot grasping posture estimation are over-parameterized and require a lot of computing power.

[0004] At present, relevant technicians in this field have done some research. For example, Chinese patent 201910585483.9 proposes a dexterous hand grasping planning method based on a four-level series convolutional neural network, the steps of which include: obtaining a grasping frame data set and a grasping gesture data set, training the first three levels of convolutional neural networks and the fourth level of convolutional neural network respectively, determining the parameters of the network, and obtaining a grasping model of the dexterous hand; wherein, in the proposed four-level series convolutional neural network, the first three levels of convolutional neural networks are used to obtain the optimal grasping frame of the target object; the fourth level is used to predict the grasping gesture of the dexterous hand, and a variety of grasping features are obtained by a multi-input network, so as to predict the grasping gesture in the current state according to the image information of the grasped part of the target object and the posture information of the dexterous hand. The patent can realize the fine grasping of unknown objects, so that the grasping of the dexterous hand is not restricted by unknown objects, thereby improving the grasping success rate of the dexterous hand; however, it is difficult to grasp unknown objects without prior knowledge, and due to the problem of its large network model, it is difficult to deploy it to the edge side device for grasping posture calculation. For example, Chinese patent 202010690489.5 proposes a service robot grasping detection method based on a dual-channel convolutional neural network, which includes: obtaining the original color image and the original depth image of the surrounding environment, and converting the original color image into the original grayscale image; obtaining the target object bounding box, and obtaining the first depth image area and the first grayscale image area; adjusting the image area to a set size; encoding the resized image area and adding it; decoding the added feature map to obtain the grasping quality feature map, width feature map, height feature map, first angle feature map, and second angle feature map; obtaining the optimal grasping rectangle and its corresponding optimal grasping detection frame in the original color image to achieve grasping detection of the target object. This method also has the problem that the network model is large and difficult to deploy to edge computing devices, and it is difficult to apply to the grasping of edge-side industrial robots. Summary of the invention

[0005] In response to the above defects or improvement needs of the prior art, the present invention provides a grasping posture detection method and device based on a lightweight convolutional neural network, which solves the problem that current industrial robots have difficulty estimating the grasping posture of unknown objects and have high requirements for the required computing equipment.

[0006] To achieve the above object, according to one aspect of the present invention, a grasping posture detection method based on a lightweight convolutional neural network is provided, and the detection method mainly comprises the following steps:

[0007] (1) Construct a lightweight convolutional neural network model based on network convergence indicators;

[0008] (2) performing an enhancement operation on a grasping dataset containing RGB-D information of the grasping object and a grasping posture detection frame, and training a lightweight convolutional neural network model based on the enhanced grasping dataset containing RGB-D information of the grasping object and a grasping posture detection frame;

[0009] (3) inputting the acquired RGB-D image information of the unknown object into the trained lightweight convolutional neural network model to obtain a grasping quality feature map, a grasping angle feature map, and a grasping width feature map corresponding to the RGB-D image;

[0010] (4) indexing the position with the maximum grasping quality in the grasping quality feature map, and determining the grasping angle and the gripper width based on the grasping angle feature map and the grasping width feature map, and then determining the grasping posture of the robot in the image coordinate system;

[0011] (5) Based on the conversion relationship between the image coordinate system and the robot coordinate system and the robot's grasping posture in the image coordinate system, the robot's grasping posture in the robot coordinate system is obtained.

[0012] Furthermore, the RGB-D image of the unknown object is acquired by a local depth camera.

[0013] Furthermore, the lightweight convolutional neural network model is composed of a 9*9 convolutional layer, three 3*3MBconv blocks, two 5*5MBconv blocks, two 4*4 deconvolutional layers and one 9*9 deconvolutional layer connected in sequence.

[0014] Furthermore, the calculation formula of the network convergence index is:

[0015]

[0016] in, Corresponding to the network convergence index of ordinary convolutional layer and deconvolution layer, The network convergence index corresponding to the residual block, Network convergence metric corresponding to the MBconv block.

[0017] Further,

[0018]

[0019]

[0020] Where d is the depth of the convolutional layer, k l is the dimension of each convolutional layer, L is the number of corresponding residual blocks or MBconv blocks, η l is the scaling factor of the non-shortcut path in the residual block, η SEis the scaling factor of the non-shortcut path in the SE layer of the MBconv block, η MB It is the scaling factor of the non-shortcut path in the MBconv block.

[0021] Furthermore, the loss function used in the training process is:

[0022]

[0023] in:

[0024]

[0025]

[0026]

[0027] In the formula, is the kth captured true value on the i-th image, is the model's prediction for the kth capture on the ith image.

[0028] Furthermore, the grasping posture of the robot in the image coordinate system is:

[0029] G r =(Q, P, Φ r , W r )

[0030] Where Q is the robot grasping quality score, P = (x, y, z) is the center of the robot's optimal grasping position in the robot coordinate system, and Φ r is the rotation angle of the robot end grasping posture in the robot coordinate system, W r It is the angle of the robot end effector in the robot coordinate system.

[0031] Furthermore, the transformation relationship between the image coordinate system and the camera coordinate system for robot grasping is:

[0032] G r =T rc (T ci (G i ))

[0033] Among them, T rc is the transformation matrix from the camera coordinate system to the robot coordinate system, T ci is the transformation matrix from the RGB-D coordinate system to the camera coordinate system; where

[0034] G i =(Q, S, Φ i , W i )

[0035] Where Q is the robot grasping quality score, S = (u, v) is the center of the robot's optimal grasping position in the RGB-D image coordinate system, and Φ i is the rotation angle of the robot end grasping posture in the image coordinate system, W i is the angle opened by the robot end effector in the image coordinate system.

[0036] According to another aspect of the present invention, a computer-readable storage medium is provided, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the grasping posture detection method of the lightweight convolutional neural network as described above is implemented.

[0037] The present invention also provides a lightweight convolutional neural network grasping posture detection device, which is characterized in that it includes a computer-readable storage medium as described above and a processor, and the processor is used to call and process a computer program stored in the computer-readable storage medium.

[0038] In general, compared with the prior art, the above technical solutions conceived by the present invention, the grasping posture detection method and device based on lightweight convolutional neural network provided by the present invention mainly have the following beneficial effects:

[0039] 1. The lightweight convolutional neural network model proposed in the present invention has the characteristics of small number of parameters and small number of floating-point calculations, and is suitable for edge robot grasping posture detection equipment; the number of parameters is greatly reduced and can be deployed to edge computing devices: in the network design process, the parameter scale and the use of larger network blocks are reduced as much as possible, while the depth of the network is reduced as much as possible.

[0040] 2. By controlling the number of parameters of the network model, the number of floating-point calculations can be reduced to achieve the purpose of improving the inference speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a flow chart of a grasping posture detection method based on a lightweight convolutional neural network provided by the present invention;

[0042] Figure 2 (a) and (b) are schematic diagrams of the specific structures of the common convolutional layer and the defective block respectively;

[0043] Figure 3 (a) and (b) are schematic diagrams of the specific structure of the dual-way representation of the MBConv block and the specific structure of the three-way representation of the MBConv block respectively;

[0044] Figure 4 This is a workflow diagram of the lightweight convolutional neural network model involved in the present invention. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0046] See also Figure 1 The present invention provides a grasping posture detection method based on a lightweight convolutional neural network, and the detection method mainly includes the following steps:

[0047] S1, build a lightweight convolutional neural network model based on network convergence indicators.

[0048] The convolutional layer dimensions and data in the lightweight convolutional neural network model are set according to the network convergence index, and the calculation formula of the network convergence index is:

[0049]

[0050] in, Corresponding to the network convergence index of ordinary convolutional layer and deconvolution layer, The network convergence index corresponding to the residual block, Network convergence metric corresponding to the MBconv block.

[0051] Among them, ordinary convolutional layers such as Figure 2 As shown in (a), Conv is a single convolution layer, ReLU layer is an activation layer, and the specific structure of the residual block is as follows Figure 2 As shown in (b) in the figure, the dual-path representation of the MBConv block has a specific structure as follows: Figure 3 As shown in (a) of the figure, the three-way representation of the MBConv block has a specific structure as follows: Figure 3 As shown in (b), Depthwise is the depth-separable convolution layer (Depthwise Separable Convolution), Average Pooling is the average pooling layer, FC is the full convolution layer (Fully Convolution), and Dropout is the network random discard operation.

[0052] The specific calculation method of the network convergence index is:

[0053]

[0054]

[0055]

[0056] Where d is the depth of the convolutional layer, k l is the dimension of each convolutional layer, L is the number of corresponding residual blocks or MBconv blocks, η l is the scaling factor of the non-shortcut path in the residual block, η SE is the scaling factor of the non-shortcut path in the SE layer of the MBconv block, η MB It is the scaling factor of the non-shortcut path in the MBconv block.

[0057] The lightweight convolutional neural network model is composed of a 9*9 convolutional layer, three 3*3MBconv blocks, two 5*5MBconv blocks, two 4*4 deconvolutional layers and a 9*9 deconvolutional layer connected in sequence. The specific structure is as follows: Figure 4 As shown in the figure, filter is the number of convolutional layer filters, and k×k below the network block is the size of the network feature map of the current layer.

[0058] In addition, the network is designed to be as lightweight as possible while keeping the network convergence index of the designed network almost the same as the network convergence index of the public optimal model on the Cornell dataset used for training.

[0059] Among them, the test results of the lightweight convolutional neural network model on the Cornell dataset are compared with the relevant performance parameters of the previously publicly available optimal model as shown in Table 1:

[0060] Table 1 Test results

[0061] Model of the present invention The best public model of the previous generation Network Convergence Index 47.003217 48.977888 Total parameters 180228 1909900 Model size 0.69MB 7.29MB The first accuracy during training is 90% Epoch 5 Epoch 17

[0062] S2, performing an enhancement operation on a grasping data set including RGB-D information of the object to be grasped and a grasping posture detection frame, and training a lightweight convolutional neural network model based on the enhanced grasping data set including RGB-D information of the object to be grasped and a grasping posture detection frame.

[0063] The loss function used during training is:

[0064]

[0065] in:

[0066]

[0067]

[0068]

[0069] In the above loss function formula, is the kth captured true value on the i-th image, is the model's prediction for the kth capture on the i-th image. In addition, the Adam optimizer and SGD technology are used to train the model during the training process, and the GridSearchCV technology is used to fine-tune the model's hyperparameters.

[0070] S3, uses the local depth camera to obtain RGB-D image information of unknown objects.

[0071] S4, inputting the acquired RGB-D image information into the trained lightweight convolutional neural network model to obtain a grasping quality feature map, a grasping angle feature map, and a grasping width feature map corresponding to the RGB-D image.

[0072] Among them, the grasping angle feature map is further calculated from the two feature maps originally output by the network. These two feature maps are the sine and cosine values ​​of the optimal grasping angle corresponding to different positions in the RGB-D image.

[0073] In this step, the robot grasping posture in the image coordinate system is expressed as:

[0074] G i =(Q, S, Φ i , W i )

[0075] Where Q is the robot grasping quality score, S = (u, v) is the center of the robot's optimal grasping position in the RGB-D image coordinate system, and Φ i is the rotation angle of the robot end grasping posture in the image coordinate system, W i is the angle opened by the robot end effector in the image coordinate system.

[0076] Among them, G i By indexing the feature map output by the network The highest quality crawl Get. Among them:

[0077]

[0078] in, To capture the quality feature map, is the grab angle feature map, is the captured width feature map. Finally, we get

[0079]

[0080] S5, indexing the position with the maximum grasping quality in the grasping quality feature map, and determining the grasping angle and the gripper width based on the grasping angle feature map and the grasping width feature map, and then determining the grasping posture of the robot in the image coordinate system.

[0081] The robot's grasping posture in the image coordinate system is expressed as:

[0082] G r =(Q, P, Φ r , W r )

[0083] Where Q is the robot grasping quality score, P = (x, y, z) is the center of the robot's optimal grasping position in the robot coordinate system, and Φ r is the rotation angle of the robot end grasping posture in the robot coordinate system, W r It is the angle of the robot end effector in the robot coordinate system.

[0084] When indexing, the position (x, y) in the feature map is determined according to the maximum Q value, and then the grasping angle and width are determined by the value of the position (x, y) in the grasping angle and width feature value map.

[0085] S6, based on the conversion relationship between the image coordinate system and the robot coordinate system and the grasping posture of the robot in the image coordinate system, calculate and obtain the grasping posture of the robot in the robot coordinate system.

[0086] Among them, the conversion relationship between the image coordinate system and the camera coordinate system of the robot grasping is:

[0087] G r =T rc (T ci (G i ))

[0088] Among them, T rc is the transformation matrix from the camera coordinate system to the robot coordinate system, T ci is the transformation matrix from the RGB-D coordinate system to the camera coordinate system.

[0089] The comparison between the grasping posture detection success rate of the present invention and the grasping success rate of the final grasping execution and the previous generation of the public optimal model is shown in Table 2:

[0090] Table 2, Detection success rate and capture success rate data

[0091]

[0092]

[0093] The present invention provides a computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the grasping posture detection method of the lightweight convolutional neural network as described above is implemented.

[0094] The present invention also provides a lightweight convolutional neural network grasping posture detection device, which is characterized in that it includes a computer-readable storage medium as described above and a processor, and the processor is used to call and process a computer program stored in the computer-readable storage medium.

[0095] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A lightweight convolutional neural network grasping posture detection method, characterized in that: The method comprises the following steps: (1) Construct a lightweight convolutional neural network model based on network convergence indicators; (2) performing an enhancement operation on a grasping dataset containing RGB-D information of the grasping object and a grasping posture detection frame, and training a lightweight convolutional neural network model based on the enhanced grasping dataset containing RGB-D information of the grasping object and a grasping posture detection frame; (3) inputting the acquired RGB-D image information of the unknown object into the trained lightweight convolutional neural network model to obtain a grasping quality feature map, a grasping angle feature map, and a grasping width feature map corresponding to the RGB-D image; (4) indexing the position with the maximum grasping quality in the grasping quality feature map, and determining the grasping angle and the gripper width based on the grasping angle feature map and the grasping width feature map, and then determining the grasping posture of the robot in the image coordinate system; (5) Based on the conversion relationship between the image coordinate system and the robot coordinate system and the robot's grasping posture in the image coordinate system, the robot's grasping posture in the robot coordinate system is obtained.

2. The lightweight convolutional neural network grasping posture detection method according to claim 1, characterized in that: The RGB-D image of the unknown object is acquired by a local depth camera.

3. The lightweight convolutional neural network grasping posture detection method according to claim 1, characterized in that: The lightweight convolutional neural network model is composed of a 9*9 convolutional layer, three 3*3MBconv blocks, two 5*5MBconv blocks, two 4*4 deconvolutional layers and a 9*9 deconvolutional layer connected in sequence.

4. The lightweight convolutional neural network grasping posture detection method according to claim 1, characterized in that: The calculation formula of the network convergence index is: in, Corresponding to the network convergence index of ordinary convolutional layer and deconvolution layer, The network convergence index corresponding to the residual block, Network convergence metric corresponding to the MBconv block.

5. The method for grasping posture detection of a lightweight convolutional neural network as claimed in claim 4, characterized in that: Where d is the depth of the convolutional layer, is the dimension of each convolutional layer, L is the number of corresponding residual blocks or MBconv blocks, is the scaling factor of the non-shortcut path in the residual block, η SE is the scaling factor of the non-shortcut path in the SE layer of the MBconv block, η MB It is the scaling factor of the non-shortcut path in the MBconv block.

6. The lightweight convolutional neural network grasping posture detection method according to claim 1, characterized in that: The loss function used during training is: in: In the formula, is the kth captured true value on the ith image, is the model's prediction for the kth capture on the ith image.

7. The lightweight convolutional neural network grasping posture detection method according to claim 1, characterized in that: The robot's grasping posture in the image coordinate system is: G r =(Q,P,Φ r ,W r ) Where Q is the robot grasping quality score, P = (x, y, z) is the center of the robot's optimal grasping position in the robot coordinate system, and Φ r is the rotation angle of the robot end grasping posture in the robot coordinate system, W r It is the angle of the robot end effector in the robot coordinate system.

8. The lightweight convolutional neural network grasping posture detection method according to claim 1, characterized in that: The conversion relationship between the image coordinate system and the camera coordinate system for robot grasping is: G r =T rc (T ci (G i )) Among them, T rc is the transformation matrix from the camera coordinate system to the robot coordinate system, T ci is the transformation matrix from the RGB-D coordinate system to the camera coordinate system; where G i =(Q,S,Φ i ,W i ) Where Q is the robot grasping quality score, S = (u, v) is the center of the robot's optimal grasping position in the RGB-D image coordinate system, and Φ i is the rotation angle of the robot end grasping posture in the image coordinate system, W i is the angle opened by the robot end effector in the image coordinate system.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the grasping posture detection method of a lightweight convolutional neural network as described in any one of claims 1 to 8.

10. A lightweight convolutional neural network grasping posture detection device, characterized in that: The method comprises the computer-readable storage medium as claimed in claim 9 and a processor, wherein the processor is used to call and process the computer program stored in the computer-readable storage medium.