A grasped object detection algorithm based on edge extraction and dilated convolution

By introducing edge extraction and dilated convolution technology into the One-stage target detection algorithm, combined with the feature pyramid structure and CIoU loss function, the problem of difficulty in balancing accuracy and speed in the existing technology is solved, and the accuracy of industrial robot grabbing detection is improved. sex and speed.

CN114462514BActive Publication Date: 2024-10-22肖礼全
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210057118.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-19
Publication Date
2024-10-22
Estimated Expiration
2042-01-19

AI Technical Summary

Technical Problem

Existing one-stage target detection algorithms have deficiencies in accuracy and multi-scale information capture, making it difficult to balance the accuracy and speed of grasp detection in industrial robot grasping tasks.

Method used

A grabbing target detection algorithm based on edge extraction and dilated convolution is adopted, combined with the Edge feature module, Darknet-53 feature extraction module, feature pyramid structure and Dilation-ASFF network, and the CIoU loss function is used to improve the grabbing frame regression and improve the detection of the network. Accuracy and speed.

Benefits of technology

It improves the network's ability to perceive multi-scale information and detection accuracy, enhances the network's convergence ability and accuracy, and improves detection speed and accuracy. Compared with the YOLOv3 network, the detection accuracy is increased by 2.98%, and the time consumption of a single picture is only increased by 0.014 Second.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114462514B_ABST
    Figure CN114462514B_ABST
Patent Text Reader

Abstract

The present invention discloses a grab target detection algorithm based on edge extraction and dilated convolution, including Edge feature module, Darknet-53 feature extraction module, feature pyramid structure, Dilation-ASFF network, and the specific steps are as follows: Step 1, image acquisition: RGB image of the target is acquired, and edge information of the image is extracted by using Edge feature module to form feature information of four channels; Step 2, feature extraction: the acquired feature information is input into Darknet-53 feature extraction module, feature extraction is performed, the loss function is improved to be CIoU loss function, and a feature pyramid structure is constructed; Step 3, feature fusion: the feature information in the feature pyramid structure is fused by the Dilation-ASFF network combined with dilated convolution to fuse feature information of different scales. The present invention effectively improves the detection accuracy and detection speed of the network, and improves the network's perception ability of multi-scale information and the convergence ability of the network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of grasped target detection algorithms, and in particular to a grasped target detection algorithm based on edge extraction and hole convolution. Background Art

[0002] As a manufacturing powerhouse, my country's secondary industry plays an important role in its economic structure. In recent years, with the transformation and upgrading of the domestic industrial manufacturing industry, industrial robots have become increasingly popular and applied in industrial production. The grasping task of industrial robots mainly includes three important steps: grasping detection, trajectory planning, and control execution. The main task of grasping detection is to use computer vision technology to locate the grasping point and identify the target to be grasped. With the development of deep learning, the current target detection algorithms can be roughly divided into two categories: Two-stage target detection algorithm and One-stage target detection algorithm.

[0003] The one-stage target detection algorithm does not need to generate candidate boxes, but can directly generate the category and location information of the target object. It has a huge advantage in speed over the two-stage target detection algorithm: In 2015, Joseph Redmon proposed the first one-stage target detection algorithm, the YOLOv1 network. Compared with the two-stage network at the time, the detection speed was extremely fast, but the accuracy was relatively low; the subsequent SSD network has greatly improved the accuracy of multi-scale target detection; in 2016, the second generation of the YOLO network was launched, which has improved the accuracy and speed compared to YOLOv1, but lacks the capture of multi-scale information; in 2018, the YOLOv3 network was proposed, which replaced the feature extraction network with DarkNet53, replaced Softmax with Logistic for object classification, and borrowed the FPN idea to build a feature pyramid structure. Its accuracy is slightly higher than that of the SSD network, but its speed is more than twice as fast. Summary of the invention

[0004] In order to overcome the above problems existing in the prior art, the present invention proposes a grasping target detection algorithm based on edge extraction and hole convolution.

[0005] The technical solution adopted by the present invention to solve the technical problem is: a grasping target detection algorithm based on edge extraction and hole convolution, including an Edge feature module, a Darknet-53 feature extraction module, a feature pyramid structure, and a Dilation-ASFF network. The specific steps are:

[0006] Step 1, image acquisition: collect the RGB image of the target, and use the Edge feature module to extract the edge information of the image to form four-channel feature information;

[0007] Step 2, feature extraction: input the collected feature information into the Darknet-53 feature extraction module, perform feature extraction, improve the loss function to the CIoU loss function, and construct a feature pyramid structure;

[0008] Step 3, feature fusion: The feature information in the feature pyramid structure is fused through the Dilation-ASFF network combined with the dilated convolution to fuse the feature information of different scales.

[0009] In the above-mentioned grab target detection algorithm based on edge extraction and hole convolution, the specific implementation steps of extracting edge information of the image using the Edge feature module in step 1 are as follows:

[0010] Step 1.1, Gaussian smoothing: Use a 3×3 Gaussian kernel to filter and denoise the input samples, and take the weighted sum of the pixels within the 3×3 range of each pixel as the new pixel value;

[0011] Step 1.2, use the Sobel operator to calculate the pixel gradient amplitude and direction: slide the 3×3 operator on the Gaussian-smoothed image once, which is conducive to detecting edge information by taking advantage of the fact that the weighted sum of the pixel point and the surrounding pixels is an extreme value at the edge position;

[0012] Step 1.3, suppress non-maximum values ​​of amplitude according to angle: divide the angle in four directions to form a new angle map to characterize its gradient direction, and then suppress non-maximum values ​​of amplitude according to the angle map to refine the edge information;

[0013] Step 1.4: Use the double threshold method to stitch edge pixels into contours: set two thresholds Y min and Y max , the gradient value is greater than Y max is a strong edge, and the gradient value is in Y min and Y max The edges in between are weak edges, and weak edges are used to connect strong edges to form contours.

[0014] In the above-mentioned grab target detection algorithm based on edge extraction and hole convolution, the calculation process of Gaussian smoothing in step 1.1 is:

[0015]

[0016] Among them, Q(i,j) is the value at the coordinate (i,j) after Gaussian smoothing, and P(i,j) is the grayscale value of the input image at the coordinate (i,j).

[0017] The above-mentioned grab target detection algorithm based on edge extraction and hole convolution, the specific calculation process of step 1.2 is:

[0018]

[0019]

[0020]

[0021]

[0022] Among them, S i represents the template of the Sobel operator in the horizontal direction, S j represents the template of the Sobel operator in the vertical direction, * represents the two-dimensional convolution operation, Q represents the grayscale value of each pixel in the image, S represents the pixel gradient amplitude, and θ represents the pixel gradient direction.

[0023] In the above-mentioned grab target detection algorithm based on edge extraction and hole convolution, the calculation process of CIoU in step 2 is specifically as follows:

[0024]

[0025]

[0026]

[0027]

[0028] Among them, Loss CIoU represents the CIoU loss function, L represents the Euclidean distance between the center point of the prediction box B and the label box A, IoU represents the intersection over union ratio, a represents the area of ​​the label box A, b represents the area of ​​the prediction box B, c represents the diagonal distance of the smallest box C that can contain the label box A and the prediction box B, λ and u represent the penalty factors, d A Indicates the width of the label box A, d B Indicates the width of the prediction box B, h A Indicates the height of the label box A, h B Represents the height of the prediction box B.

[0029] In the above-mentioned grasping target detection algorithm based on edge extraction and hole convolution, the Dilation-ASFF network in step 3 is a 6-layer hole convolution network.

[0030] In the above-mentioned grasping target detection algorithm based on edge extraction and dilated convolution, the dilated convolution expansion rates of the 6-layer dilated convolution network of Dilation-ASFF are 1, 2, 4, 8, 16, and 1 respectively.

[0031] The beneficial effect of the present invention is that the present invention discloses a grasping target detection algorithm based on edge extraction and void convolution. Firstly, the current relatively stable YOLOv3 network is used as the backbone network to perform multi-channel feature fusion based on edge extraction; an Edge Feature module is added to the network to improve the detection accuracy and detection speed of the network; adaptive spatial feature fusion is optimized based on void convolution technology to form a Dilation-ASFF network to replace the original part of the network, thereby improving the network's perception of multi-scale information and improving the network's detection accuracy; and a CIoU loss function is used to modify the grasping box regression loss function to improve the network's convergence ability and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0033] Figure 1 This is a schematic diagram of the network structure of the present invention;

[0034] Figure 2 The geometric relationship between the prediction box and the label box of the present invention;

[0035] Figure 3 This is a schematic diagram of the hole convolution principle of the present invention;

[0036] Figure 4 This is a graph showing the experimental results of the effect of the expansion rate on the detection accuracy of the present invention;

[0037] Figure 5 This is a schematic diagram of the Dilation-ASFF network structure of the present invention;

[0038] Figure 6 The figure is an experimental result diagram of the influence of each module on performance of the present invention;

[0039] Figure 7 This is a graph showing the mAP changes during the ablation experiment training process of the present invention. DETAILED DESCRIPTION

[0040] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention is described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0041] like Figure 1 As shown, this embodiment discloses a grasping target detection algorithm based on edge extraction and hole convolution, including an Edge feature module, a Darknet-53 feature extraction module, a feature pyramid structure, and a Dilation-ASFF network. The specific steps are:

[0042] Step 1, image acquisition: collect the RGB image of the target, and use the Edge feature module to extract the edge information of the image to form four-channel feature information;

[0043] The edge feature module is based on the Canny operator and uses the image edge information as the prior information of the YOLOv3 network. YOLOv3 uses an upsampling and fusion algorithm similar to the FPN network, constructs a feature pyramid structure to enhance the network's detection accuracy for small targets, and finally completes the detection on feature maps of multiple scales.

[0044] The Canny edge detection algorithm further improves the Sobel, Prewitt and other operators, and proposes non-maximum suppression based on the edge gradient direction and double-threshold hysteresis threshold processing, achieving low error rate, high positioning rate and single edge point response. The specific implementation steps of this module are:

[0045] Step 1.1, Gaussian smoothing: Use a 3×3 Gaussian kernel to filter and denoise the input samples, and take the weighted sum of the pixels within the 3×3 range of each pixel as the new pixel value. In this way, when the input image contains noise, the noise points will be merged with the surrounding non-noise points, so that the image has no prominent noise points and the image is smoothed. The calculation process of Gaussian smoothing is:

[0046]

[0047] Among them, Q(i,j) is the value at the coordinate (i,j) after Gaussian smoothing, and P(i,j) is the grayscale value of the input image at the coordinate (i,j);

[0048] Step 1.2, use the Sobel operator to calculate the pixel gradient amplitude and direction: slide the 3×3 operator on the Gaussian smoothed image, which is conducive to detecting edge information by taking advantage of the fact that the weighted sum of the pixel point and the surrounding pixels is an extreme value at the edge position. The specific calculation process is:

[0049]

[0050]

[0051]

[0052]

[0053] Among them, S i represents the template of the Sobel operator in the horizontal direction, S j represents the template of the Sobel operator in the vertical direction, * represents the two-dimensional convolution operation, Q represents the grayscale value of each pixel in the image, S represents the pixel gradient amplitude, and θ represents the pixel gradient direction;

[0054] Step 1.3, suppress non-maximum values ​​of amplitude according to angle: divide the angle in four directions to form a new angle map to characterize its gradient direction, and then suppress non-maximum values ​​of amplitude according to the angle map to refine the edge information;

[0055] Step 1.4: Use the double threshold method to stitch edge pixels into contours: set two thresholds Y min and Y max , the gradient value is greater than Y max is a strong edge, and the gradient value is in Y min and Y max The edges in between are weak edges, and weak edges are used to connect strong edges to form contours.

[0056] Step 2, feature extraction: input the collected feature information into the Darknet-53 feature extraction module, perform feature extraction, improve the loss function to the CIoU loss function, and construct a feature pyramid structure;

[0057] The CIoU loss function used in this embodiment replaces the center coordinate error and height-width coordinate error of the original YOLOv3 network, considers more factors in the geometric relationship between the prediction box and the label box, solves the unreasonable evaluation of the situation where the prediction box and the label box do not intersect and the center coordinates coincide, stabilizes the regression of the prediction box, and improves the algorithm accuracy. The specific calculation process of CIoU is:

[0058]

[0059]

[0060]

[0061]

[0062] Among them, Loss CIoU represents the CIoU loss function, L represents the Euclidean distance between the center point of the prediction box B and the label box A, IoU represents the intersection over union ratio, a represents the area of ​​the label box A, b represents the area of ​​the prediction box B, c represents the diagonal distance of the smallest box C that can contain the label box A and the prediction box B, λ and u represent the penalty factors, d A Indicates the width of the label box A, d B Indicates the width of the prediction box B, h A Indicates the height of the label box A, h B Represents the height of the prediction box B. The geometric relationship between the label box A, the prediction box B, and the smallest box C containing the label box A and the prediction box B is as follows: Figure 2 As shown;

[0063] Step 3, feature fusion: The feature information in the feature pyramid structure is fused through the Dilation-ASFF network combined with the dilated convolution to fuse the feature information of different scales.

[0064] In order to improve the retention effect of effective network features, capture multi-scale contextual information, and improve the receptive field, the present invention proposes a Dilation-ASFF network combined with a dilated convolution to replace the original YOLOv3 feature fusion network, expand the receptive field without adding additional parameters to affect the network calculation, further fuse feature information of different scales, and improve the prediction accuracy of the network.

[0065] The biggest difference between dilated convolution and ordinary convolution is the introduction of a hyperparameter - "dilation rate". The dilation rate determines the spacing between the values ​​when the convolution kernel processes data, such as Figure 3 As shown, Figure 3 The figure shows the difference in the receptive field of a 3×3 convolution when the dilation rates are 1, 2, and 3, respectively. The black dots represent the convolution kernels, and the size of the gray area represents the receptive field. Different dilation rates have different feature extraction effects. Too large a dilation rate will cause the feature scale to change too much, resulting in the loss of small and medium-scale feature information. The appropriate dilation rate is crucial to the feature fusion effect.

[0066] In this embodiment, the Dilation-ASFF network is a 6-layer dilated convolutional network. In order to determine the optimal dilation rate of the 6-layer dilated convolutional network, the dilated convolution dilation rate of the Dilation-ASFF network is adjusted by comparative test. Training and experiments are performed on the ROCm-4.2.0 platform driven by Pytorch1.9 under the CentOS 7.6 system. The Docker version is 20.10.7, the Python version is 3.7, and the computer is Huawei Matebook14. Finally, three groups of dilation rates of the Dilation-ASFF network are determined, such as Figure 4 As shown in the figure, the three groups of dilation rates are: 1, 4, 8, 16, 32, 64, 1; 1, 3, 6, 12, 24, 1; 1, 2, 4, 8, 16, 1. The detection accuracies corresponding to the three groups of dilation rates are 74.1%, 74.9%, and 75.3%, respectively. Therefore, the improved Dilation-ASFF network structure is determined, as shown in Figure 5 As shown, the expansion rates are 1, 2, 4, 8, 16, and 1.

[0067] In order to test the improvement effect of the improved Edge feature module, Darknet-53 feature extraction module, and Dilation-ASFF network on the overall network in this embodiment, training and experiments were performed on the Pytorch1.9 driven ROCm-4.2.0 platform under the CentOS 7.6 system in this embodiment. The Docker version is 20.10.7, the Python version is 3.7, the computer is Huawei Matebook14, and the data set uses the Cornell data set commonly used in the field of crawling detection.

[0068] The experimental results are as follows Figure 6 and Figure 7 As shown, Figure 6 A represents the existing YOLOv3 network, B represents the existing YOLOv3 network + Edge feature module, C represents the existing YOLOv3 network + Dilation-ASFF network, D represents the existing YOLOv3 network + CIoU loss function improved Darknet-53 feature extraction module, and E represents the algorithm of the present invention. It can be seen that compared with the YOLOv3 network, the detection accuracy (AP) of the algorithm of the present invention is improved by 2.98%, and the time consumption (TPP) of a single picture is only increased by 0.014 seconds. Figure 7 It can be seen that each module has a certain improvement effect on the network, and the modules do not interfere with each other. The gains are complementary to a certain extent, which is conducive to better improving network performance.

[0069] The above embodiments are only exemplary embodiments of the present invention and are not intended to limit the present invention. The protection scope of the present invention is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present invention within the essence and protection scope of the present invention, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present invention.

Claims

1. A grasping target detection algorithm based on edge extraction and hole convolution, characterized in that: Including Edgefeature module, Darknet-53 feature extraction module, feature pyramid structure, Dilation-ASFF network, the specific steps are: Step 1, image acquisition: collect the RGB image of the target, and use the Edge feature module to extract the edge information of the image to form four-channel feature information; the Edge feature module is based on the Canny operator and uses the image edge information as the prior information of the YOLOv3 network; Step 2, feature extraction: input the collected feature information into the Darknet-53 feature extraction module, perform feature extraction, improve the loss function to the CIoU loss function, and construct a feature pyramid structure; Step 3, feature fusion: The feature information in the feature pyramid structure is fused through the Dilation-ASFF network combined with the dilated convolution to fuse the feature information of different scales; The specific implementation steps of using the Edge feature module to extract the edge information of the image in step 1 are: Step 1.1, Gaussian smoothing: Use a 3×3 Gaussian kernel to filter and denoise the input samples, and take the weighted sum of the pixels within the 3×3 range of each pixel as the new pixel value; Step 1.2, use the Sobel operator to calculate the pixel gradient amplitude and direction: slide the 3×3 operator on the Gaussian-smoothed image once, which is conducive to detecting edge information by taking advantage of the fact that the weighted sum of the pixel point and the surrounding pixels is an extreme value at the edge position; Step 1.3, suppress non-maximum values ​​of amplitude according to angle: divide the angle in four directions to form a new angle map to characterize its gradient direction, and then suppress non-maximum values ​​of amplitude according to the angle map to refine the edge information; Step 1.4: Use the double threshold method to stitch edge pixels into contours: set two thresholds Y min and Y max , the gradient value is greater than Y max is a strong edge, and the gradient value is in Y min and Y max The edges in between are weak edges, and weak edges are used to connect strong edges to form contours.

2. According to claim 1, a grasping target detection algorithm based on edge extraction and hole convolution is characterized in that: The calculation process of Gaussian smoothing in step 1.1 is: Among them, Q(i,j) is the value at the coordinate (i,j) after Gaussian smoothing, and P(i,j) is the grayscale value of the input image at the coordinate (i,j).

3. According to claim 1, a grasping target detection algorithm based on edge extraction and hole convolution is characterized in that: The specific calculation process of step 1.2 is: Among them, S i represents the template of the Sobel operator in the horizontal direction, S j represents the template of the Sobel operator in the vertical direction, * represents the two-dimensional convolution operation, Q represents the grayscale value of each pixel in the image, S represents the pixel gradient amplitude, and θ represents the pixel gradient direction.

4. The target detection algorithm based on edge extraction and dilated convolution according to claim 1 is characterized in that: The calculation process of CIoU in step 2 is specifically as follows: Among them, Loss CIoU represents the CIoU loss function, L represents the Euclidean distance between the center point of the prediction box B and the label box A, IoU represents the intersection over union ratio, a represents the area of ​​the label box A, b represents the area of ​​the prediction box B, c represents the diagonal distance of the smallest box C that can contain the label box A and the prediction box B, λ and u represent the penalty factors, d A Indicates the width of the label box A, d B Indicates the width of the prediction box B, h A Indicates the height of the label box A, h B Represents the height of the prediction box B.

5. The target detection algorithm based on edge extraction and dilated convolution according to claim 1 is characterized in that: The Dilation-ASFF network in step 3 is a 6-layer dilated convolutional network.

6. The target detection algorithm based on edge extraction and dilated convolution according to claim 5 is characterized in that: The dilation rates of the 6-layer dilated convolutional network of the Dilation-ASFF are 1, 2, 4, 8, 16, and 1, respectively.