Three-dimensional object detection method based on adaptive fusion of multi-scale heterogeneous features

Through the multi-scale heterogeneous feature adaptive fusion network, combining voxel, image and point features, it solves the problems of large calculation amount and poor robustness in the existing technology, and achieves more efficient three-dimensional target detection, especially at low resolution. It performs better in target detection.

CN114495089BActive Publication Date: 2024-09-06XIDIAN UNIV
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202111574943.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-21
Publication Date
2024-09-06
Estimated Expiration
2041-12-21

AI Technical Summary

Technical Problem

When existing 3D target detection methods fuse point cloud and image data, they have problems such as high computational complexity, weak correlation between image feature extraction and tasks, and poor robustness, making it difficult to effectively detect low-resolution targets.

Method used

A three-dimensional target detection method using adaptive fusion of multi-scale heterogeneous features. By constructing a heterogeneous feature fusion network, combining voxel features, image semantic features and point features, and using an end-to-end trained network structure, multi-scale features are achieved. Joint fusion and key point weight estimation improve detection accuracy.

Benefits of technology

The performance and accuracy of three-dimensional target detection are improved, especially in low-resolution target detection. The average detection accuracy mAP is increased by 16.10%, and the synergy of the detection model is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114495089B
    Figure CN114495089B
Patent Text Reader

Abstract

The present invention proposes a three-dimensional target detection method based on adaptive fusion of multi-scale heterogeneous features, which mainly solves the problem of low accuracy of low-resolution three-dimensional target detection under single sensor data in the existing technology. The scheme is as follows: establish training and test sample sets; perform voxel initialization and key point sampling on point cloud; construct a three-dimensional voxel feature encoding module to encode voxel features; construct a three-dimensional candidate box estimation module to estimate three-dimensional candidate boxes; construct an image feature encoding network to encode image features; construct a heterogeneous feature fusion module to fuse voxel features, image features and key point features; construct a key point weight estimation module to perform binary classification on key points; establish an output layer, construct a three-dimensional target detection model and train it; use the trained model to detect three-dimensional targets in point cloud. The present invention improves the characterization capability of low-resolution three-dimensional targets and improves the detection accuracy of three-dimensional targets, and can be applied to robot navigation, three-dimensional modeling, autonomous driving and virtual reality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of multi-sensor data fusion, and in particular relates to a three-dimensional target detection method of multi-scale heterogeneous feature adaptive fusion, which can be applied to robot navigation, three-dimensional modeling, automatic driving and virtual reality. Background Art

[0002] LiDAR and cameras are the most common sensors on smart cars and robots. The processing of point cloud and image data obtained by the two determines the intelligence level of smart terminals. However, each sensor has its own advantages and natural defects. Point clouds contain accurate spatial distance information, but the data is sparse, lacks color information, and is greatly affected by rainy and foggy weather; images have high-resolution pixels and rich textures, but cannot obtain the precise distance between objects. Therefore, the advantages of the two complement each other and can better help smart terminals perceive the external environment. Therefore, the fusion of point clouds and images has been fully utilized in the field of intelligent devices.

[0003] 3D object detection is a task of 3D detection of 3D space objects. As an important application in many fields, it has received widespread attention in recent years. With the continuous development of neural networks, 3D object detection methods based on deep learning that fuse point cloud and image data have become a research hotspot in academia. For example, in the paper entitled "Point Painting: Sequential Fusion for 3D Object Detection" (CVPR2020) published by Vora S et al., the information after image semantic segmentation is used to assist in 3D object detection of point clouds, which can make full use of the semantic information of the target and obtain good detection performance. However, since the result of image semantic segmentation will directly affect the 3D detection result, the robustness is poor; in the paper entitled "PV-RCNN: Point-Voxel Feature Set Abstractionfor 3D Object Detection" (CVPR2020) published by Shi Shaoshuai et al., the method of fusing point features with voxel features balances the problems of large computational complexity and loss of spatial feature information between the two methods. However, this method still has the problem of low detection of low-resolution targets with a single sensor.

[0004] In order to avoid the shortcomings of a single feature, heterogeneous feature fusion is introduced. Heterogeneous feature fusion is to fuse features of different representation forms. In essence, it is to improve the accuracy of three-dimensional target detection by combining the advantages of different features. For example, the patent application document with application publication number CN111209840A discloses a 3D target detection method based on multi-sensor data fusion, and its implementation steps are: 1) Use two neural networks to extract point-by-point and pixel-by-pixel features of point clouds and images respectively, and make regional recommendations on the foreground points of point clouds. 2) Use the calibration matrix of the sensor to realize the point-by-point association of the two heterogeneous sensor data to achieve the maximum association. 3) Finally, use a neural network to adaptively fuse the joint feature representation of each region, and further refine the adjustment directly according to the fused regional features. Although the present invention adaptively fuses the features of two types of sensor data through a neural network, it overcomes the shortcomings of sparse point cloud data and no depth information of image data, but does not change the problem of large computational complexity brought by point-based feature extraction and weak correlation between the image feature extraction stage and the task. Summary of the invention

[0005] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and propose a three-dimensional target detection method based on adaptive fusion of multi-scale heterogeneous features to improve detection accuracy.

[0006] To achieve the above object, the technical solution of the present invention includes the following:

[0007] (1) Obtain training sample set E1 and test sample set E2 from public datasets. Each sample includes Lidar point cloud, RGB image, and annotation information of 3D targets.

[0008] (2) constructing a heterogeneous feature fusion network including a heterogeneous feature fusion module and a key point weight estimation module, wherein the heterogeneous feature fusion module is used for multi-scale feature fusion of different modal data, and the weight estimation module is used for weight estimation of key points after feature fusion;

[0009] (3) Construct a 3D object detection model T which is composed of a heterogeneous feature encoding module, a heterogeneous feature fusion network, a 3D candidate box estimation module and an output layer connected in sequence, where:

[0010] The heterogeneous feature encoding module includes a three-dimensional voxel feature encoding module and an image feature encoding module connected in sequence, wherein the voxel feature encoding module is used for extracting multi-scale voxel spatial features, and the image feature encoding module is used for extracting multi-scale image semantic features;

[0011] The three-dimensional candidate frame estimation module is used to roughly estimate the posture information of the three-dimensional target, and the posture information includes the spatial coordinates, scale and rotation angle of the circumscribed cube of the three-dimensional target;

[0012] The output layer is used for pooling of key points after fusion of features and accurate regression of three-dimensional target boxes;

[0013] (4) Using the training sample set E1, the three-dimensional target detection model T is trained using the gradient descent method to obtain the trained target detection model T * ;

[0014] (5) Input the test sample set E2 into the trained target detection model T * Perform forward propagation to obtain the three-dimensional target detection results.

[0015] Compared with the prior art, the present invention has the following advantages:

[0016] First, the present invention integrates the voxel features of point cloud, the semantic features of image and the point features through a multi-scale cascade method, making full use of the regularized spatial position information of voxel features, the semantic information of image features and the refined spatial structure information of point features, thereby improving the detection performance and detection accuracy of three-dimensional targets.

[0017] Second, since the present invention uses an end-to-end trained network structure, it fully couples the network structures of different feature encoding networks and effectively improves the synergy of the fusion of different features. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0019] Figure 2 It is a structural diagram of the feature fusion layer constructed in the present invention;

[0020] Figure 3 It is a heterogeneous feature fusion network model diagram constructed in the present invention;

[0021] Figure 4 It is a key point weight estimation network model diagram constructed in the present invention;

[0022] Figure 5 This is a simulation result diagram of three-dimensional target detection on point cloud data using the present invention. DETAILED DESCRIPTION

[0023] The embodiments and effects of the present invention are further described in detail below with reference to the accompanying drawings.

[0024] Reference Figure 1 The implementation steps of this example include the following:

[0025] Step 1: Create a training sample set and a test sample set;

[0026] A training sample set E1 including 7481 samples and a test sample set E2 including 7518 samples are obtained from the public dataset KITTI. Each sample includes the annotation information of Lidar point cloud, RGB image and 3D target.

[0027] Step 2: Preprocess the point cloud data in the sample to obtain the voxel set V and the key point set P.

[0028] 2.1) Set the point cloud screening range to (0, 70) meters in length, (-40, 40) meters in width, and (-1, 3) meters in height, extract the point clouds that meet the screening range, and obtain the point cloud set P raw , the size is S*3, S represents P raw The number of point clouds;

[0029] 2.2) Set the voxel length to 0.05m, width to 0.05m, and height to 0.01m, and group the point cloud P raw Divide according to the voxel size, and average pool the point cloud contained in each voxel after division to obtain the voxel set V, the size of V is 1600×1600×80×3;

[0030] 2.3) Using random sampling method to select the point cloud set P raw N key points are randomly sampled from , forming a key point set P, where the size of P is N×3.

[0031] Step 3: Construct a three-dimensional voxel feature encoding module, and use the voxel set V obtained in step 2 as the input of the voxel feature encoding module to obtain the voxel feature map set V1.

[0032] 3.1) Establish 6 three-dimensional sparse convolutional layers, where:

[0033] The convolution kernel size of the first and second three-dimensional sparse convolution layers is 3×3×3, the number of convolution kernels is 16, and the step size is (1, 1, 1);

[0034] The convolution kernel size of the 3rd, 4th, and 5th 3D sparse convolution layers is 3×3×3, the step size is (2, 2, 2), and the number of convolution kernels is 32, 64, and 64 respectively;

[0035] The convolution kernel size of the sixth three-dimensional sparse convolution layer is 3×1×1, the number of convolution kernels is 128, and the stride is (2, 1, 1);

[0036] 3.2) Establish 6 normalization layers, whose input channel numbers are 16, 16, 32, 64, 64, and 128 respectively;

[0037] 3.3) Establish 6 Relu activation layers, whose expression is x represents input, f(x) represents output;

[0038] 3.4) The above-mentioned 6 three-dimensional sparse convolutional layers, 6 normalization layers, and 6 ReLU activation layers are connected to form a 3D voxel feature encoding module, and the connection relationship is:

[0039] 1st 3D sparse convolution layer -> 1st normalization layer -> 1st Relu activation layer -> 2nd 3D sparse convolution layer -> 2nd normalization layer -> 2nd Relu activation layer -> 3rd 3D sparse convolution layer -> 3rd normalization layer -> 3rd Relu activation layer -> 4th 3D sparse convolution layer -> 4th normalization layer -> 4th Relu activation layer -> 5th 3D sparse convolution layer -> 5th normalization layer -> 5th Relu activation layer -> 6th 3D sparse convolution layer -> 6th normalization layer -> 6th Relu activation layer;

[0040] 3.5) The voxel set V obtained in step 2.2) is used as the input of the 3D voxel feature encoding module, and the output results of the 2nd, 3rd, 4th, 5th, and 6th Relu activation layers are saved to form a voxel feature map set Represents the a-th voxel feature map.

[0041] Step 4: Construct a 3D candidate box estimation module, and use the voxel feature map set V1 obtained in step 3 as the input of the 3D candidate box estimation module to obtain a 3D candidate box set B rpn And calculate the 3D candidate box estimation loss value L rpn .

[0042] 4.1) Establish 4 convolutional layers, where:

[0043] The convolution kernel size of the first convolution layer is 3, the number of convolution kernels is 256, and the stride is 2;

[0044] The convolution kernel size of the second, third, and fourth convolution layers is 3, the number of convolution kernels is 256, and the stride is 1;

[0045] 4.2) Establish 4 normalization layers, whose input channel numbers are 128, 256, 256, and 256 respectively;

[0046] 4.3) Establish 4 Relu activation layers, whose expression is x represents input, f(x) represents output;

[0047] 4.4) Establish two fully connected layers with output channels of 18 and 42 respectively;

[0048] 4.5) Connect the above 4 convolutional layers, 4 normalization layers, 4 ReLU activation layers and 2 fully connected layers as follows to form a 3D candidate box estimation module:

[0049] The first convolution layer, the first normalization layer, the first Relu activation layer, the second convolution layer, the second normalization layer, the second Relu activation layer, the third convolution layer, the third normalization layer, the third Relu activation layer, the fourth convolution layer, the fourth normalization layer, and the fourth Relu activation layer are cascaded in sequence, and the first fully connected layer and the second fully connected layer are respectively connected to the fourth Relu activation layer;

[0050] 4.6) The 5th voxel feature map in the voxel feature map set V1 obtained in step 3.5) is As the input of the 3D candidate box estimation module, M 3D candidate boxes containing category confidence and posture information are output to form a 3D candidate box set Represents the information of the mth 3D candidate box;

[0051] 4.7) Calculate the 3D candidate box estimation loss value L rpn :

[0052] 4.7.1) Use the cross entropy loss function to calculate the mth 3D candidate box The class loss value

[0053]

[0054] in, Represents the category probability value of the mth 3D candidate box, y m Represents the true category value of the mth 3D candidate box;

[0055] 4.7.2) Use the smooth-L1 loss function to calculate the total loss value L of the 3D candidate box rpn :

[0056]

[0057] Among them, M represents B rpn The number of 3D candidate boxes in represents the predicted offset of the mth 3D candidate box, represents the offset of the mth 3D candidate box relative to the true target box, and β represents the weight hyperparameter.

[0058] Step 5: Construct an image feature encoding module, use the image in the sample as the input of the image feature encoding module, and obtain the image feature map set F1.

[0059] 5.1) Set the input convolution layer with a kernel size of 7, a number of convolutions of 64, a stride of 2, and a padding size of 3;

[0060] 5.2) Set the normalization layer with 64 input channels;

[0061] 5.3) Set the Relu activation layer, its expression is x represents input, f(x) represents output;

[0062] 5.4) Set the maximum pooling layer with a convolution kernel size of 3 and a stride of 2;

[0063] 5.5) Set 4 residual modules, the output channel numbers of these 4 residual modules are 256, 512, 1024, and 2048 respectively;

[0064] 5.6) The above-mentioned input convolution layer, normalization layer, Relu activation layer, maximum pooling layer and four residual modules are sequentially connected to form an image feature encoding module, and the connection relationship is:

[0065] Input convolution layer->normalization layer->Relu activation layer->max pooling layer->1st residual module->2nd residual module->3rd residual module->4th residual module;

[0066] 5.7) Take the image in the sample as the input of the image feature encoding module, save the output results of the 1st, 2nd, 3rd and 4th residual blocks, and form an image feature map set Represents the c-th voxel feature map.

[0067] Step 6: Construct a heterogeneous feature fusion module, and use the voxel feature map set V1 obtained in step 3, the image feature map set F1 obtained in step 5, and the key point set P obtained in step 2 as the input of the heterogeneous feature fusion module to obtain the key point set P1 after feature fusion.

[0068] 6.1) Establish the feature mapping layer, the expression is Among them, R represents the transformation matrix from the point cloud space to the image space obtained from the sample annotation information, P×R represents the two-dimensional coordinates of the key point set P in the image space after being transformed by R, represents the cth image feature map, p c (P) represents the feature vector set of the corresponding coordinate positions of all key points in the key point set P in the c-th image feature map of the image feature map set F1;

[0069] 6.2) Establish the first feature fusion layer;

[0070] Set three fully connected layers with output channels of 64, 128, and 256, three concatenated layers with output channels of 19, 259, and 192, and a feature mapping layer with output p1(P). Connect these three fully connected layers, three concatenated layers, and one feature mapping layer to form the first feature fusion layer. The connection relationship is:

[0071] The feature mapping layer, the first feature concatenation layer, and the first fully connected layer are sequentially connected, the second feature concatenation layer and the second fully connected layer are sequentially connected, the first fully connected layer and the second fully connected layer are respectively connected to the third feature concatenation layer, and the third feature concatenation layer and the third fully connected layer are sequentially connected, such as Figure 2 As shown;

[0072] 6.3) Establish the second feature fusion layer,

[0073] Set three fully connected layers with output channels of 256, 512, and 512, respectively, and output channels of 288,

[0074] The three concatenated layers of 768 and 768 and the feature mapping layer whose output is p2(P) form the second feature fusion layer by connecting these three fully connected layers, three concatenated layers and one feature mapping layer in the same connection relationship as the first feature fusion layer, such as Figure 2 As shown;

[0075] 6.4) Establishing the third feature fusion layer;

[0076] Set three fully connected layers with output channels of 512, 1024, and 1024, respectively, and the output channels of 578,

[0077] 1536, the three concatenation layers of 1536 and the feature mapping layer whose output is p3(P), the three fully connected layers, the three concatenation layers and the one feature mapping layer form a third feature fusion layer according to the same connection relationship as the first feature fusion layer, such as Figure 2 As shown;

[0078] 6.5) Establishing the fourth feature fusion layer;

[0079] Set three fully connected layers with output channels of 1024, 2048, and 2048, three concatenated layers with output channels of 1088, 3092, and 3092, and a feature mapping layer with an output of p4(P). These three fully connected layers, three concatenated layers, and one feature mapping layer are connected in the same way as the first feature fusion layer to form a fourth feature fusion layer, such as Figure 2 As shown;

[0080] 6.6) The first feature fusion layer, the second feature fusion layer, the third feature fusion layer, and the fourth feature fusion layer are sequentially connected to form a heterogeneous feature fusion module, such as Figure 3 As shown;

[0081] 6.7) The voxel feature map set V1 obtained in step 3.5), the image feature map set F1 obtained in step 5.7) and the key point set P obtained in step 2.3) are used as the input of the heterogeneous feature fusion module. The result is 2048 key points that fuse image features, voxel features and key point features, forming the key point set after feature fusion

[0082] Step 7: Construct a key point weight estimation module, use the image feature map obtained in step 5 and the key point set P1 after feature fusion obtained in step 6 as the input of the key point weight estimation module, obtain the foreground key point set P2 after feature fusion and calculate its binary classification loss value L seg .

[0083] 7.1) Create two convolutional layers, with the convolution kernel size of 1 and the number of convolution kernels of 2.

[0084] 7.2) Create two deconvolution layers, where:

[0085] The convolution kernel size of the first deconvolution layer is 32, the number of convolution kernels is 2, and the stride is 16;

[0086] The convolution kernel size of the second deconvolution layer is 64, the number of convolution kernels is 2, and the stride is 32;

[0087] 7.3) Create two fully connected layers, each with 2 output channels.

[0088] 7.4) Establish a feature concatenation layer with 2 output channels;

[0089] 7.5) Establish a softmax layer, which is expressed as Where u represents input and g(u) represents output;

[0090] 7.6) Connect the above two convolutional layers, two deconvolutional layers, two fully connected layers, one feature concatenation layer and softmax layer as follows to form a key point weight estimation module:

[0091] The first fully connected layer, the first deconvolution layer, and the first convolution layer are sequentially connected, the first convolution layer and the second fully connected layer are respectively connected to the first feature concatenation layer, and the first feature concatenation layer, the second deconvolution layer, the second convolution layer, and the softmax layer are sequentially connected, such as Figure 4 As shown;

[0092] 7.7) The second feature map in the image feature map set F1 obtained in step 5.7) and the fourth feature map As the input of the key point weight estimation module, the pixels in the image are classified into two categories to obtain a binary image f;

[0093] 7.8) According to the transformation matrix R, calculate the classification results of the corresponding coordinate positions of all key points in the key point set P in f in, Represents the classification result of the nth key point in P. The key point with a result value of 1 in P is taken as the foreground key point, forming the foreground key point set in, represents the wth foreground key point;

[0094] 7.9) Calculate P front The intersection of P1 and P2 gives the foreground key point set after feature fusion: in, represents the foreground key point after the w-th feature fusion;

[0095] 7.10) The cross entropy loss function is used to calculate the binary classification loss value of the key point set P: Where N represents the number of key points in the key point set P, Represents the category prediction probability value of the pixel, y n Represents the true category value of the pixel.

[0096] Step 8: Construct the output layer and add the three-dimensional candidate box set B obtained in step 4 rpn The foreground key point set P2 obtained after feature fusion in step 7 is used as the input of the output layer to obtain the final predicted three-dimensional target box set B out And calculate its prediction loss value L rcnn .

[0097] 8.1) Create two convolutional layers, where:

[0098] The convolution kernel size of the first convolution layer is 1, the number of convolution kernels is 1024, and the stride is 1;

[0099] The convolution kernel size of the second convolution layer is 1, the number of convolution kernels is 512, and the stride is 2;

[0100] 8.2) Establish a maximum pooling layer with a convolution kernel size of 216*1 and a step size of 1;

[0101] 8.3) Create two fully connected layers with 1 and 7 output channels respectively;

[0102] 8.4) The first convolutional layer, the second convolutional layer, and the maximum pooling layer are sequentially cascaded, and the first fully connected layer and the second fully connected layer are respectively connected to the maximum pooling layer to form an output layer;

[0103] 8.5) The three-dimensional candidate box set B obtained in step 4.6) rpnThe foreground key point set P2 obtained after feature fusion in step 7.8 is used as the input of the output layer, and K three-dimensional target frames containing category information and posture information are output to form a three-dimensional target frame set in represents the k-th predicted 3D target box;

[0104] 8.6) Calculate the 3D target box prediction loss value L rcnn :

[0105] 8.6.1) Use the cross entropy loss function to calculate the category loss value of the k-th predicted 3D target box

[0106]

[0107] in, Represents the category probability value of the k-th predicted 3D target box, y k Represents the true category value of the k-th predicted 3D target box;

[0108] 8.6.2) Use the smooth-L1 loss function to calculate the total loss value L of the predicted 3D target box rcnn :

[0109]

[0110] Where K represents B out The number of predicted 3D target boxes in , represents the k-th predicted 3D target box offset, Represents the offset of the k-th predicted 3D target box relative to the true 3D target box.

[0111] Step 9: Construct a 3D target detection model T based on adaptive fusion of multi-scale heterogeneous features, and train it using the gradient descent method to obtain a trained 3D target detection model.

[0112] 9.1) Set the number of initialization iterations to i, the maximum number of iterations to I, I ≥ 100, and the 3D object detection model of the i-th iteration to T i ,T i The weight parameter is ω i , and let i = 1, T i =T;

[0113] 9.2) Input the training sample set E1 into the three-dimensional object detection model T based on adaptive fusion of multi-scale heterogeneous features;

[0114] 9.3) Use the loss value L obtained in step 4) rpn , Step 7) The loss value L rcnnAnd the loss value L obtained in step 8) rcnn , the total loss value L of the 3D target detection model of the i-th iteration is calculated by weighted summation i :

[0115]

[0116] in, Indicates L rpn The weight hyperparameter, γ represents L seg The weight hyperparameters of

[0117] 9.4) According to the total loss value L i , using the back propagation method to update the network parameters ω i , get the i-th target

[0118] Detection Model T i ,ω i The update formula is as follows:

[0119]

[0120] Among them, ω * Represents ω i The update result, η represents the learning rate of L, represents the derivative operation;

[0121] 9.5) Determine whether i≥I is true. If so, the trained 3D object detection model T is obtained. * , otherwise, let i=i+1 and return to 9.2).

[0122] Step 10: Input the test set E2 into the trained model T * , get the final 3D target detection result and calculate the detection accuracy.

[0123] The technical effects of the present invention are further described below in conjunction with simulation experiments.

[0124] 1. Simulation conditions:

[0125] The hardware platform used in the simulation experiment is Nvidia RTX2080*2, 12G RAM; the software platform is Python3.8, and the operating system is Ubuntu 18.04.

[0126] The dataset used in the simulation experiment is the KITTI dataset, which is automobile sensor data jointly produced by Karlsruhe Institute of Technology in Germany and Toyota Research Institute of America. The number of point clouds in a single frame is more than 60,000, and the image size is 1243×375. It contains three types of targets, namely cars, non-motor vehicles and pedestrians. 7518 samples were selected as test samples in the simulation experiment.

[0127] 2. Simulation content:

[0128] The existing PV-RCNN network model and the three-dimensional target detection method based on multi-scale heterogeneous feature adaptive fusion of the present invention are used to perform three-dimensional target detection on the KITI dataset. The results are as follows: Figure 5 ,in:

[0129] Figure 5 (a) is the detection result using the existing PV-RCNN network model;

[0130] Figure 5 (b) is the detection result using the method of the present invention.

[0131] contrast Figure 5 (a) and Figure 5 It can be seen from the detection result diagram (b) that, compared with the detection results of the PV-RCNN network model, the method of the present invention has a better detection effect on low-resolution objects such as non-motor vehicles, pedestrians and distant vehicles, indicating that the method of the present invention has better detection accuracy.

[0132] The detection results are evaluated using the two evaluation indicators of AP for each category and mAP for the average detection accuracy. When the intersection-over-union ratio threshold is 0.5 and the sample difficulty is medium, the detection accuracy AP and mAP for each category of target are obtained. The results are shown in Table 1.

[0133] Table 1 Comparison of detection accuracy of each category when the intersection-over-union ratio threshold is 0.5

[0134] Evaluation indicators car Non-motorized vehicles pedestrian mAP The present invention 88.53 62.73 65.89 72.38 PV-RCNN 80.41 62.71 25.72 56.28

[0135] It can be seen from the experimental results in Table 1 that, compared with the prior art, the detection accuracy of each type of target in the present invention is significantly improved, and the average detection accuracy mAP of the present invention is improved by 16.10% compared with the PV-RCNN method.

[0136] In summary, the three-dimensional target detection method based on the adaptive fusion of multi-scale heterogeneous features in the present invention effectively integrates the advantages of various data features and achieves better three-dimensional detection effect.

Claims

1. A three-dimensional object detection method based on adaptive fusion of multi-scale heterogeneous features, characterized in that: include: (1) Obtain training sample set E1 and test sample set E2 from public datasets. Each sample includes Lidar point cloud, RGB image, and annotation information of 3D targets. (2) Construct a heterogeneous feature fusion network including a heterogeneous feature fusion module and a key point weight estimation module, wherein the heterogeneous feature fusion module is used for multi-scale feature fusion of different modal data, and the weight estimation module is used for weight estimation of key points after feature fusion; the heterogeneous feature fusion module includes cascaded 4 feature fusion layers with the same structure at different scales, each feature fusion layer includes 3 fully connected layers, 3 feature concatenation layers and a feature mapping layer, and the specific structure is as follows: The feature mapping layer, the first feature concatenation layer, and the first fully connected layer are sequentially connected, the second feature concatenation layer and the second fully connected layer are sequentially connected, the first fully connected layer and the second fully connected layer are respectively connected to the third feature concatenation layer, and the third feature concatenation layer and the third fully connected layer are sequentially connected; (3) Construct an object detection model T which is composed of a heterogeneous feature encoding module, a heterogeneous feature fusion network, a three-dimensional candidate box estimation module and an output layer connected in sequence, where: The heterogeneous feature coding module includes a three-dimensional voxel feature coding module and an image feature coding module connected in sequence, wherein the voxel feature coding module is used for extracting multi-scale voxel spatial features, and the image feature coding module is used for extracting multi-scale image semantic features; The three-dimensional candidate frame estimation module is used to roughly estimate the posture information of the three-dimensional target, and the posture information includes the spatial coordinates, scale and rotation angle of the circumscribed cube of the three-dimensional target; The output layer is used for pooling of key points after fusion of features and accurate regression of three-dimensional target boxes; (4) Using the training sample set E1, the three-dimensional target detection model T is trained using the gradient descent method to obtain the trained target detection model T * ; (5) Input the test sample set E2 into the trained target detection model T * Perform forward propagation to obtain the three-dimensional target detection results.

2. The method according to claim 1, characterized in that The key point weight estimation module in (2) includes two convolutional layers, two deconvolutional layers, two fully connected layers, a feature splicing layer, a softmax layer and a coordinate mapping layer. Its structural relationship is as follows: the first fully connected layer, the first deconvolutional layer, and the first convolutional layer are sequentially connected, the first convolutional layer and the second fully connected layer are respectively connected to the first feature splicing layer, the first feature splicing layer, the second deconvolutional layer, the second convolutional layer, the softmax layer, and the coordinate mapping layer are sequentially connected; The two convolutional layers have a convolution kernel size of 1 and a number of convolution kernels of 2. The first deconvolution layer has a convolution kernel size of 32, a number of convolution kernels of 2, and a step size of 16; The second deconvolution layer has a convolution kernel size of 64, a number of convolution kernels of 2, and a step size of 32.

3. The method according to claim 1, characterized in that The 3D voxel feature encoding module in (3) includes 6 3D sparse convolutional layers, 6 normalization layers, and 6 ReLU activation layers. Its structural relationship is as follows: 1st 3D sparse convolution layer -> 1st normalization layer -> 1st Relu activation layer -> 2nd 3D sparse convolution layer -> 2nd normalization layer -> 2nd Relu activation layer -> 3rd 3D sparse convolution layer -> 3rd normalization layer -> 3rd Relu activation layer -> 4th 3D sparse convolution layer -> 4th normalization layer -> 4th Relu activation layer -> 5th 3D sparse convolution layer -> 5th normalization layer -> 5th Relu activation layer -> 6th 3D sparse convolution layer -> 6th normalization layer -> 6th Relu activation layer; The convolution kernel sizes of the first and second three-dimensional sparse convolution layers are both 3×3×3, the number of convolution kernels is 16, and the step sizes are both (1, 1, 1); The convolution kernel sizes of the third, fourth, and fifth three-dimensional sparse convolution layers are all 3×3×3, the step sizes are all (2, 2, 2), and the number of convolution kernels are 32, 64, and 64 respectively; The convolution kernel size of the sixth three-dimensional sparse convolution layer is 3×1×1, the number of convolution kernels is 128, and the step size is (2, 1, 1).

4. The method according to claim 1, characterized in that: (3) The 3D candidate box estimation module includes 4 convolutional layers, 4 normalization layers, 4 Relu activation layers and 2 fully connected layers, wherein the 1st convolutional layer, the 1st normalization layer, the 1st Relu activation layer, the 2nd convolutional layer, the 2nd normalization layer, the 2nd Relu activation layer, the 3rd convolutional layer, the 3rd normalization layer, the 3rd Relu activation layer, the 4th convolutional layer, the 4th normalization layer and the 4th Relu activation layer are sequentially cascaded, and the 1st fully connected layer and the 2nd fully connected layer are respectively connected to the 4th Relu activation layer; The convolution kernel size of the first convolution layer is 3, the number of convolution kernels is 256, and the step size is 2; The convolution kernel size of the second, third, and fourth convolution layers is 3, the number of convolution kernels is 256, and the step size is 1.

5. The method according to claim 1, characterized in that The output layer in (3) includes two convolutional layers, a maximum pooling layer, and two fully connected layers, wherein the first convolutional layer, the second convolutional layer, and the maximum pooling layer are cascaded in sequence, and the first fully connected layer and the second fully connected layer are respectively connected to the maximum pooling layer; The convolution kernel size of the first convolution layer is 1, the number of convolution kernels is 1024, and the step size is 1; The convolution kernel size of the second convolution layer is 1, the number of convolution kernels is 512, and the step size is 2.

6. The method according to claim 1, characterized in that (4) The three-dimensional object detection model T is trained as follows: (4a) Set the number of initialization iterations to i, the maximum number of iterations to I, I ≥ 100, and the 3D object detection model of the i-th iteration to T i ,T i The weight parameter is ω i , and let i = 1, T i =T; (4b) Taking the training sample set E1 as the input of the 3D object detection model T, performing 3D voxel initialization and random sampling of key points on the point cloud in the training sample set E1, and obtaining a 3D voxel set V and a key point set P; (4c) taking the voxel set V and the images in the training sample set E1 as inputs of the heterogeneous feature encoding module to obtain a voxel feature map set V1 and an image feature map set F1; (4d) The voxel feature map set V1, the image feature map set F1 and the key point set P are used as the input of the heterogeneous feature fusion module. With the help of the spatial coordinate transformation matrix R, after a series of convolution and splicing operations, the key point set P1 after feature fusion is obtained; (4e) The second feature map and the fourth feature map in the image feature map set F1 are used as the input of the key point weight estimation module to obtain the pixel binary classification result of the image, and the pixel binary classification result is mapped to the key point set P1 after feature fusion with the help of the spatial coordinate transformation matrix R to obtain the foreground key point set P2 after feature fusion, and the cross entropy loss function is used to calculate its binary classification loss value: Where N represents the number of key points. Represents the category prediction probability value of the pixel, y n Represents the true category value of the pixel; (4f) The fifth voxel feature map in the voxel feature map set V1 is used as the input of the three-dimensional candidate box estimation module to obtain the three-dimensional candidate box set B rpn , and calculate its 3D candidate box estimation loss value L rpn ; (4g) The three-dimensional candidate box set B rpn The foreground key point set P2 after feature fusion is used as the input of the output layer to obtain the final predicted three-dimensional target box set B out , calculate its 3D target box prediction loss value L rcnn , and calculate the total loss value L i ; (4h) According to the total loss value L i , using the back propagation method to update the network parameters ω i , get the i-th target detection model T i ,ω i The update formula is as follows: Among them, ω * Represents ω i The update result, η represents the learning rate of L, represents the derivative operation; (4i) Determine whether i≥I is true. If so, the trained 3D target detection model T is obtained. * , otherwise, let i=i+1 and return to (4b).

7. The method according to claim 6, characterized in that: The 3D candidate box estimation loss value L is calculated in (4f) rpn , implemented as follows: (4f1) The cross entropy loss function is used to calculate the category loss value of the mth three-dimensional candidate box in, Represents the category probability value of the mth three-dimensional candidate box, y m Represents the true category value of the mth 3D candidate box; (4f2) Adoption And the smooth-L1 loss function calculates the total loss value L of the 3D candidate box rpn : Among them, M represents the number of all 3D candidate boxes, represents the predicted offset of the mth 3D candidate box, represents the offset of the mth 3D candidate box relative to the true target box, and β represents the weight hyperparameter.

8. The method according to claim 6, characterized in that: The three-dimensional target box prediction loss value L is calculated in (4g) rcnn And the total loss value L i , implemented as follows: (4g1) The cross entropy loss function is used to calculate the category loss value of the k-th predicted 3D target box in, Represents the category probability value of the k-th predicted 3D target box, y k Represents the true category value of the k-th predicted 3D target box; (4g2) Using L iou And the smooth-L1 loss function calculates the total loss value L of the predicted 3D target box rcnn : Among them, K represents the number of all predicted 3D target boxes, represents the k-th predicted 3D target box offset, Represents the offset of the k-th predicted 3D target frame relative to the real 3D target frame; (4g3) The total loss value L of the 3D target detection model is calculated by weighted summation i : in, Indicates L rpn The weight hyperparameter, γ represents L seg The weight hyperparameters of .

Citation Information

Patent Citations

  • 3D target detection method based on multi-sensor data fusion

    CN111209840A

  • Vehicle multi-target tracking method based on radar vision fusion under severe environment roadside view angle

    CN112505684A

  • Three-dimensional target detection method based on weighted sampling and multi-resolution feature extraction

    CN113468994A

  • Multi-Task Multi-Sensor Fusion for Three-Dimensional Object Detection

    US20200160559A1

  • Vehicle-mounted video target detection method based on deep learning

    WO2020181685A1