A target detection method and system for autonomous driving perception
By converting three-dimensional point cloud data into two-dimensional pseudo-images and using maximum pooling and dual-branch downsampling structures, combined with SiLU activation functions and distributed attention modules, the problem of point cloud data sparseness in autonomous driving perception is solved and detection is improved. Accuracy and speed, especially detection performance on the KITTI dataset.
Patent Information
- Application Number
- CN202410726906.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing 3D target detection algorithms have problems in point cloud data sparsity caused by partial occlusion of the detection target, complex and diverse target shapes, and distance changes in autonomous driving perception, which affects detection accuracy and speed.
By evenly dividing the 3D point cloud data into columns and converting it into a 2D pseudo image, using maximum pooling and dual-branch downsampling structures, combined with the SiLU activation function and distributed attention module, multi-scale and multi-dimensional features are extracted and input to SSD detection. head for target detection.
It improves detection accuracy and speed, reduces the loss of important information, and improves the detection capabilities of vehicles, pedestrians and other targets, especially the detection accuracy and direction regression performance on the KITTI data set.
Smart Images

Figure CN118314543B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving, and in particular to a target detection method and system for autonomous driving perception. Background Art
[0002] In recent years, the development of autonomous driving technology has received widespread attention. Autonomous driving perception is a crucial part of the autonomous driving system. It involves the vehicle's perception and understanding of the surrounding environment. First, the information around the vehicle must be collected, then processed and modeled, and then understood and sent to the subsequent decision-making process. In the autonomous driving perception process, 3D object detection plays a big role; how to use the most appropriate 3D object detection algorithm for the complex road conditions of autonomous driving scenarios is a major challenge in the development of autonomous driving technology.
[0003] At present, the mainstream 3D object detection methods are mainly divided into point-based methods and voxel-based methods. The point-based method directly processes the point cloud data obtained by the lidar, which can well preserve the location information of the point cloud; however, due to the complexity of the point cloud data, the point-based method requires a lot of memory and computing power.
[0004] The voxel-based method divides the entire point cloud data into several voxels of regular shapes, and then sends them to the 3D convolutional neural network for feature extraction. Its main purpose is to reduce the amount of calculation and memory usage. However, since the voxel-based method needs to voxelize the point cloud data, it does not have the flexible receptive field of the point-based method, which will cause the loss of local position information of the point cloud data. In addition, due to the sparsity of the point cloud, it is inevitable that many empty voxels will be generated during the feature encoding process, which is also a great waste of calculation and memory.
[0005] Based on the above background, a Pointpillars algorithm has also emerged in the prior art. This algorithm divides the point cloud into pillars according to the xoy plane. Looking down from the z axis, all points falling in a pillar are regarded as points in this pillar. It directly obtains the BEV (Bird's Eye View) feature without paying too much attention to the z-axis information, but more attention to the xoy plane, which also reduces a lot of calculations. Since in actual autonomous driving scenarios, the objects to be detected are often close to the ground plane, for autonomous driving tasks, the Pointpillars algorithm can achieve a balance between detection speed and accuracy compared to previous algorithms.
[0006] Although the PointPillars algorithm is more suitable for autonomous driving scenarios, in autonomous driving tasks, the targets we need to detect, such as cars, pedestrians, or bicycles, only occupy a small part of the point cloud. If the same attention is given to each part of the point cloud scene, it will inevitably cause a lot of computational waste. Although the PointPillars algorithm pays more attention to the information of the xoy plane, due to the sparsity of the point cloud in the xoy plane, the PointPillars algorithm does not have a mechanism to capture the important point cloud information corresponding to these targets. These shortcomings will cause the problem of reduced detection accuracy in autonomous driving, and the detection speed will also be affected.
[0007] In summary, in the target detection link of autonomous driving perception, due to factors such as partial occlusion of the detection target, complex and diverse shapes of the detection target, and continuous changes in the detection target distance, the point cloud data scanned by the lidar will have sparse problems, affecting the detection accuracy and detection speed. The existing algorithms and models do not have a good way to deal with these common problems, and need to be improved and perfected. Summary of the invention
[0008] The purpose of the present invention is to provide a target detection method and system for autonomous driving perception in response to the above-mentioned problems in the prior art, so as to better extract and retain important features in point cloud data and eliminate the influence of the sparsity of point cloud data on detection accuracy and detection speed.
[0009] To achieve the above object, the present invention adopts the following technical solutions:
[0010] A target detection method for autonomous driving perception comprises the following steps:
[0011] S1. Scan the surrounding environment of the vehicle through the on-board laser radar, collect all signal reflection points, and form three-dimensional point cloud data (x, y, z, r), where x, y, z are the coordinates of the signal reflection point in three-dimensional space, and r is the reflection intensity of the signal reflection point;
[0012] S2, evenly dividing the three-dimensional point cloud data into a number of columns, tensorizing the three-dimensional point cloud data according to the distribution of signal reflection points in the columns, and further converting it into a two-dimensional pseudo image;
[0013] S3, downsampling the two-dimensional pseudo image into three downsampled feature maps of different sizes and different numbers of channels to obtain multi-scale and multi-dimensional features, then upsampling the three downsampled feature maps to obtain features of the same dimension, and then concatenating these features to obtain a feature tensor;
[0014] S4. Input the feature tensor into a detection head to obtain a three-dimensional scene graph with bounding boxes, each of which represents a detected target.
[0015] Further, the S2 comprises the following steps:
[0016] S201, evenly divide the XOY plane in the three-dimensional space into a plurality of grids, wherein the cuboid represented by each grid in the three-dimensional space is a column, and signal reflection points whose projections on the XOY plane fall in the same grid are regarded as being in the same column;
[0017] S202, represent the characteristics of each signal reflection point as a nine-dimensional vector (x, y, z, r, x c ,y c , z c , x p ,y p ), where x c ,y c 、z c Indicates the coordinates of the geometric center of all signal reflection points contained in the column to which the signal reflection point belongs, x p ,y p Represents the coordinate offset between the signal reflection point and the geometric center;
[0018] S203, converting the three-dimensional point cloud data into a first tensor (D, P, N), wherein D represents the characteristics of the signal reflection point, P represents the number of columns in the three-dimensional space, and N is a hyperparameter representing the number of signal reflection points contained in a column; in the process of generating the first tensor (D, P, N), if the number of signal reflection points contained in a column exceeds N, then randomly sample N signal reflection points from the column; if the number of signal reflection points contained in a column is less than N, then fill in a number of signal reflection points with a characteristic of 0 so that the number of signal reflection points in the column is N;
[0019] S204, input the first tensor (D, P, N) into a PointNet network to aggregate it along the dimension of D to obtain a second tensor (C, P, N), where C is the number of channels of the two-dimensional pseudo image;
[0020] S205, performing maximum pooling processing on the second tensor (C, P, N) along the dimension of N to obtain a third tensor (C, P);
[0021] S206. Perform dispersion processing on the third tensor (C, P) in the dimension of P to disperse the features of the signal reflection points back to the columns to which they belong, thereby obtaining a fourth tensor (C, H, W); the fourth tensor (C, H, W) is a two-dimensional pseudo image, wherein H and W represent the length and width of the two-dimensional pseudo image, respectively.
[0022] Further, in S3, the step of downsampling the two-dimensional pseudo image into three downsampled feature maps of different sizes and different numbers of channels includes:
[0023] S301, down-sampling the two-dimensional pseudo image to obtain a first down-sampled feature map;
[0024] S302, downsampling the first downsampled feature map to obtain a second downsampled feature map;
[0025] S303, downsampling the second down-sampled feature map to obtain a third down-sampled feature map;
[0026] In S301, S302 and S303, the process of downsampling the two-dimensional pseudo image, the first down-sampled feature map and the second down-sampled feature map includes:
[0027] S3001, performing maximum pooling processing on the input image, wherein the maximum pooling kernel size is 2x2, thereby obtaining a feature map M1 with a size reduced by half;
[0028] S3002, perform 1x1 convolution on the feature map M1 to reduce the number of its channels by half, and obtain the feature map M2;
[0029] S3003, performing convolution processing on the input image, wherein the convolution kernel size is 3x3; and then performing 1x1 convolution to reduce the number of channels by half, to obtain a feature map M3;
[0030] S3004, concatenating the feature map M2 and the feature map M3 along the dimension of the number of channels;
[0031] S3005. The concatenated feature maps are batch normalized and passed through a SiLU activation function to obtain an output downsampled feature map.
[0032] Furthermore, in S3, the step of upsampling and concatenating the three feature maps to obtain a feature tensor includes:
[0033] S304, respectively use deconvolution on the first down-sampled feature map, the second down-sampled feature map, and the third down-sampled feature map to upsample them to the same size; then perform batch normalization processing and pass a ReLU activation function to obtain a first up-sampled feature map, a second up-sampled feature map, and a third up-sampled feature map;
[0034] S305, adding the first up-sampled feature map, the second up-sampled feature map, and the third up-sampled feature map, performing maximum pooling processing, and then sequentially passing through a fully connected layer, a batch normalization processing layer, and a ReLU activation function to obtain a first processing feature, a second processing feature, and a third processing feature;
[0035] S306, after the first processing feature, the second processing feature and the third processing feature are respectively passed through a fully connected layer, they are input together into a normalized exponential function to obtain an attention weight matrix;
[0036] S307: Multiply the first up-sampled feature map, the second up-sampled feature map, and the third up-sampled feature map by the attention weight matrix respectively and then add them together to obtain a final output feature tensor.
[0037] Furthermore, the detection head is an SSD detection head; in the SSD detection head, each detected bounding box is represented as a seven-dimensional vector (x, y, z, w, l, h, θ), wherein x, y, z represent the geometric center coordinates of the bounding box, w, h, l represent the width, height, and length of the bounding box, respectively, and θ represents the deflection angle of the bounding box.
[0038] A target detection system for autonomous driving perception, used to implement the target detection method described above, comprising a vehicle-mounted laser radar, a feature encoding network, a backbone network and a detection head;
[0039] The vehicle-mounted laser radar is used to scan the surrounding environment of the vehicle, collect all signal reflection points, and form three-dimensional point cloud data (x, y, z, r), where x, y, z are the coordinates of the signal reflection point in three-dimensional space, and r is the reflection intensity of the signal reflection point;
[0040] The feature encoding network is used to encode the features of the three-dimensional point cloud data to convert the three-dimensional point cloud data into a two-dimensional pseudo image; the process includes: evenly dividing the three-dimensional point cloud data into a plurality of columns, tensorizing the three-dimensional point cloud data according to the distribution of the signal reflection points in the columns, and further converting it into a two-dimensional pseudo image;
[0041] The backbone network is used to extract features from the two-dimensional pseudo image to obtain a feature tensor; the process includes: downsampling the two-dimensional pseudo image into three downsampled feature maps of different sizes and different numbers of channels to obtain multi-scale and multi-dimensional features, then upsampling the three downsampled feature maps to obtain features of the same dimension, and then splicing these features to obtain a feature tensor;
[0042] The detection head is used to perform target detection on the feature tensor to obtain a three-dimensional scene graph with bounding boxes, each of which represents a detected target.
[0043] Furthermore, the feature encoding network includes a point feature extraction module, a tensor conversion module, a PointNet network, a maximum pooling module and a distributed processing module;
[0044] The point feature extraction module is used to evenly divide the three-dimensional space into a number of columns, and extract the features of the signal reflection points according to the distribution of the signal reflection points in the columns. The process includes: evenly dividing the XOY plane in the three-dimensional space into a number of grids, and the rectangular parallelepiped represented by each grid in the three-dimensional space is a column, and the signal reflection points whose projections on the XOY plane fall in the same grid are regarded as being in the same column; representing the features of each signal reflection point as a nine-dimensional vector (x, y, z, r, x c ,y c , z c , x p ,y p ), where x c ,y c 、z c Indicates the coordinates of the geometric center of all signal reflection points contained in the column to which the signal reflection point belongs, x p ,y p Represents the coordinate offset between the signal reflection point and the geometric center;
[0045] The tensor conversion module is used to convert the three-dimensional point cloud data into a first tensor (D, P, N), where D represents the characteristics of the signal reflection point, P represents the number of columns in the three-dimensional space, and N is a hyperparameter representing the number of signal reflection points contained in a column; in the process of generating the first tensor (D, P, N), if the number of signal reflection points contained in a column exceeds N, N signal reflection points are randomly sampled from the column, and if the number of signal reflection points contained in a column is less than N, a number of signal reflection points with characteristics of 0 are filled so that the number of signal reflection points in the column is N;
[0046] The PointNet network is used to aggregate the first tensor (D, P, N) along the dimension of D to obtain a second tensor (C, P, N), where C is the number of channels of the two-dimensional pseudo image;
[0047] The maximum pooling module is used to perform maximum pooling processing on the second tensor (C, P, N) along the dimension of N to obtain a third tensor (C, P);
[0048] The dispersion processing module is used to perform dispersion processing on the third tensor (C, P) in the dimension of P to disperse the characteristics of the signal reflection point back to the column to which it belongs, and obtain a fourth tensor (C, H, W); the fourth tensor (C, H, W) is a two-dimensional pseudo image, wherein H and W represent the length and width of the two-dimensional pseudo image, respectively.
[0049] Furthermore, the backbone network includes a downsampling network, an upsampling network and a distraction module;
[0050] The downsampling network comprises a first downsampling module, a second downsampling module and a third downsampling module which are sequentially connected in series; the first downsampling module is used to downsample the two-dimensional pseudo image to obtain a first downsampling feature map; the second downsampling module is used to downsample the first downsampling feature map to obtain a second downsampling feature map; the third downsampling module is used to downsample the second downsampling feature map to obtain a third downsampling feature map;
[0051] The upsampling network includes a first upsampling module, a second upsampling module and a third upsampling module connected in parallel to each other; the first upsampling module, the second upsampling module and the third upsampling module are respectively used to upsample the first downsampling feature map, the second downsampling feature map and the third downsampling feature map to the same size to obtain the first upsampling feature map, the second upsampling feature map and the third upsampling feature map;
[0052] The distraction module is used to concatenate the first upsampled feature map, the second upsampled feature map and the third upsampled feature map through an attention weight matrix to obtain a feature tensor.
[0053] Furthermore, the first downsampling module, the second downsampling module and the third downsampling module all downsample the input image using the following steps:
[0054] S3001, performing maximum pooling processing on the input image, wherein the maximum pooling kernel size is 2x2, thereby obtaining a feature map M1 with a size reduced by half;
[0055] S3002, perform 1x1 convolution on the feature map M1 to reduce the number of its channels by half, and obtain the feature map M2;
[0056] S3003, performing convolution processing on the input image, wherein the convolution kernel size is 3x3; and then performing 1x1 convolution to reduce the number of channels by half, to obtain a feature map M3;
[0057] S3004, concatenating the feature map M2 and the feature map M3 along the dimension of the number of channels;
[0058] S3005. The concatenated feature maps are batch normalized and passed through a SiLU activation function to obtain an output downsampled feature map.
[0059] Further, the first upsampling module, the second upsampling module and the third upsampling module respectively use deconvolution on the first downsampling feature map, the second downsampling feature map and the third downsampling feature map to upsample them to the same size; then perform batch normalization processing and pass a ReLU activation function to obtain the first upsampling feature map, the second upsampling feature map and the third upsampling feature map respectively;
[0060] The distraction module obtains the feature tensor by the following steps:
[0061] S305, adding the first up-sampled feature map, the second up-sampled feature map, and the third up-sampled feature map, performing maximum pooling processing, and then sequentially passing through a fully connected layer, a batch normalization processing layer, and a ReLU activation function to obtain a first processing feature, a second processing feature, and a third processing feature;
[0062] S306, after the first processing feature, the second processing feature and the third processing feature are respectively passed through a fully connected layer, they are input together into a normalized exponential function to obtain an attention weight matrix;
[0063] S307: Multiply the first up-sampled feature map, the second up-sampled feature map, and the third up-sampled feature map by the attention weight matrix respectively and then add them together to obtain a final output feature tensor.
[0064] The information processing part of the autonomous driving perception link of the present invention can better extract important information from the original input point cloud data. For example, the pixels representing the car in the original point cloud data. The method and system of the present invention will pay more attention to these pixels and extract them as feature information so that the model can capture these highlighted feature information faster and more accurately, which can not only improve the detection accuracy, but also increase the detection speed.
[0065] The present invention adopts a dual-branch downsampling structure with maximum pooling, which performs maximum pooling downsampling at the same time as convolution downsampling, not only obtains the original downsampling features, but also obtains features brought by maximum pooling that can better represent important information, retains the important information of the original input 3D point cloud data, reduces the information loss of these important information in the downsampling process, and improves the detection accuracy.
[0066] Furthermore, the present invention adopts SiLU activation function instead of ReLU activation function to build the backbone network. SiLU activation function is more balanced than ReLU activation function and more suitable for model optimization. The SiLU activation function is differentiable. Compared with the original ReLU activation function, it can better capture the gradient information in back propagation, avoid the problems of gradient vanishing and gradient exploding due to the complexity of the model, help the network convergence, and improve the detection speed.
[0067] The present invention also adopts a distraction module based on a weight redistribution strategy to splice features, so that the features sent to the detection head can better represent the three features of different sizes and dimensions obtained by downsampling before, further highlight the important information of the previous three features, and make the features input to the detection head more representative, thereby further improving the detection accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 It is a flow chart of a target detection method for autonomous driving perception provided in Embodiment 1 of the present invention.
[0069] Figure 2 This is a network structure diagram of a target detection system for autonomous driving perception provided in Example 2 of the present invention.
[0070] Figure 3 It is a schematic diagram of the structure of the down-sampling module in the second embodiment of the present invention.
[0071] Figure 4 It is a structural diagram of the attention distraction module in the second embodiment of the present invention. DETAILED DESCRIPTION
[0072] The technical solution of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
[0073] The present invention is applied to the target detection link in the autonomous driving perception system, and is mainly designed for the application in the laser radar perception scene. First, the vehicle-mounted laser radar scans the surrounding environment to obtain accurate three-dimensional point cloud data. After a series of processing such as feature encoding and feature extraction of the three-dimensional point cloud data, the detection head is used for target detection, and finally a three-dimensional scene graph with a bounding box corresponding to the current scene is output. The bounding box in this three-dimensional scene graph indicates the detection results of objects such as cars, pedestrians and bicycles in the current road conditions. Using this three-dimensional scene graph with a bounding box, the autonomous driving perception system can realize operations such as path planning and obstacle avoidance.
[0074] Embodiment 1
[0075] Specifically, Figure 1 As shown, an embodiment of the present invention provides a target detection method for autonomous driving perception, comprising the following steps:
[0076] S1. Scan the surrounding environment of the vehicle through the on-board laser radar, collect all signal reflection points, and form three-dimensional point cloud data (x, y, z, r), where x, y, z are the coordinates of the signal reflection point in three-dimensional space, and r is the reflection intensity of the signal reflection point;
[0077] S2, evenly dividing the three-dimensional point cloud data into a number of columns, tensorizing the three-dimensional point cloud data according to the distribution of signal reflection points in the columns, and further converting it into a two-dimensional pseudo image;
[0078] S3, downsampling the two-dimensional pseudo image into three downsampled feature maps of different sizes and different numbers of channels to obtain multi-scale and multi-dimensional features, then upsampling the three downsampled feature maps to obtain features of the same dimension, and then concatenating these features to obtain a feature tensor;
[0079] S4. Input the feature tensor into a detection head to obtain a three-dimensional scene graph with bounding boxes, each of which represents a detected target.
[0080] Further, the S2 comprises the following steps:
[0081] S201, evenly divide the XOY plane in the three-dimensional space into a plurality of grids, wherein the cuboid represented by each grid in the three-dimensional space is a column, and signal reflection points whose projections on the XOY plane fall in the same grid are regarded as being in the same column;
[0082] S202, represent the characteristics of each signal reflection point as a nine-dimensional vector (x, y, z, r, x c ,y c , z c , x p ,y p ), where x c ,y c 、z c Indicates the coordinates of the geometric center of all signal reflection points contained in the column to which the signal reflection point belongs, x p ,y p Represents the coordinate offset between the signal reflection point and the geometric center;
[0083] S203, converting the three-dimensional point cloud data into a first tensor (D, P, N), wherein D represents the characteristics of the signal reflection point, P represents the number of columns in the three-dimensional space, and N is a hyperparameter representing the number of signal reflection points contained in a column; in the process of generating the first tensor (D, P, N), if the number of signal reflection points contained in a column exceeds N, then randomly sample N signal reflection points from the column; if the number of signal reflection points contained in a column is less than N, then fill in a number of signal reflection points with a characteristic of 0 so that the number of signal reflection points in the column is N;
[0084] S204, input the first tensor (D, P, N) into a PointNet network to aggregate it along the dimension of D to obtain a second tensor (C, P, N), where C is the number of channels of the two-dimensional pseudo image;
[0085] S205, performing maximum pooling processing on the second tensor (C, P, N) along the dimension of N to obtain a third tensor (C, P);
[0086] S206. Perform dispersion processing on the third tensor (C, P) in the dimension of P to disperse the features of the signal reflection points back to the columns to which they belong, thereby obtaining a fourth tensor (C, H, W); the fourth tensor (C, H, W) is a two-dimensional pseudo image, wherein H and W represent the length and width of the two-dimensional pseudo image, respectively.
[0087] Further, in S3, the step of downsampling the two-dimensional pseudo image into three downsampled feature maps of different sizes and different numbers of channels includes:
[0088] S301, down-sampling the two-dimensional pseudo image to obtain a first down-sampled feature map;
[0089] S302, downsampling the first downsampled feature map to obtain a second downsampled feature map;
[0090] S303, downsampling the second down-sampled feature map to obtain a third down-sampled feature map;
[0091] In S301, S302 and S303, the process of downsampling the two-dimensional pseudo image, the first down-sampled feature map and the second down-sampled feature map includes:
[0092] S3001, performing maximum pooling processing on the input image, wherein the maximum pooling kernel size is 2x2, thereby obtaining a feature map M1 with a size reduced by half;
[0093] S3002, perform 1x1 convolution on the feature map M1 to reduce the number of its channels by half, and obtain the feature map M2;
[0094] S3003, performing convolution processing on the input image, wherein the convolution kernel size is 3x3; and then performing 1x1 convolution to reduce the number of channels by half, to obtain a feature map M3;
[0095] S3004, concatenating the feature map M2 and the feature map M3 along the dimension of the number of channels;
[0096] S3005. The concatenated feature maps are batch normalized and passed through a SiLU activation function to obtain an output downsampled feature map.
[0097] The difference is that in S301, when the two-dimensional pseudo image is downsampled, the step size of the maximum pooling process and the 3x3 convolution process is 1; in S302 and S303, when the first downsampled feature map and the second downsampled feature map are downsampled, the step size of the maximum pooling process and the 3x3 convolution process is 2.
[0098] Furthermore, in S3, the step of upsampling and concatenating the three feature maps to obtain a feature tensor includes:
[0099] S304, respectively use deconvolution on the first down-sampled feature map, the second down-sampled feature map, and the third down-sampled feature map to upsample them to the same size; then perform batch normalization processing and pass a ReLU activation function to obtain a first up-sampled feature map, a second up-sampled feature map, and a third up-sampled feature map;
[0100] S305, adding the first up-sampled feature map, the second up-sampled feature map, and the third up-sampled feature map, performing maximum pooling processing, and then sequentially passing through a fully connected layer, a batch normalization processing layer, and a ReLU activation function to obtain a first processing feature, a second processing feature, and a third processing feature;
[0101] S306, after the first processing feature, the second processing feature and the third processing feature are respectively passed through a fully connected layer, they are input together into a normalized exponential function to obtain an attention weight matrix;
[0102] S307: Multiply the first up-sampled feature map, the second up-sampled feature map, and the third up-sampled feature map by the attention weight matrix respectively and then add them together to obtain a final output feature tensor.
[0103] Furthermore, the detection head is an SSD detection head; in the SSD detection head, each detected bounding box is represented as a seven-dimensional vector (x, y, z, w, l, h, θ), wherein x, y, z represent the geometric center coordinates of the bounding box, w, h, l represent the width, height, and length of the bounding box, respectively, and θ represents the deflection angle of the bounding box.
[0104] Embodiment 2
[0105] like Figure 2 As shown, an embodiment of the present invention provides a target detection system for autonomous driving perception, including a vehicle-mounted laser radar (not shown), a feature encoding network, a backbone network and a detection head.
[0106] The vehicle-mounted laser radar is used to scan the surrounding environment of the vehicle, collect all signal reflection points, and form three-dimensional point cloud data (x, y, z, r), where x, y, z are the coordinates of the signal reflection point in three-dimensional space, and r is the reflection intensity of the signal reflection point;
[0107] The feature encoding network is used to encode the features of the three-dimensional point cloud data to convert the three-dimensional point cloud data into a two-dimensional pseudo image; the process includes: evenly dividing the three-dimensional point cloud data into a plurality of columns, tensorizing the three-dimensional point cloud data according to the distribution of the signal reflection points in the columns, and further converting it into a two-dimensional pseudo image;
[0108] The backbone network is used to extract features from the two-dimensional pseudo image to obtain a feature tensor; the process includes: downsampling the two-dimensional pseudo image into three downsampled feature maps of different sizes and different numbers of channels to obtain multi-scale and multi-dimensional features, then upsampling the three downsampled feature maps to obtain features of the same dimension, and then splicing these features to obtain a feature tensor;
[0109] The detection head is used to perform target detection on the feature tensor to obtain a three-dimensional scene graph with bounding boxes, each of which represents a detected target.
[0110] Specifically, the feature encoding network includes a point feature extraction module, a tensor conversion module, a PointNet network, a maximum pooling module and a distributed processing module;
[0111] The point feature extraction module is used to evenly divide the three-dimensional space into a number of columns, and extract the features of the signal reflection points according to the distribution of the signal reflection points in the columns. The process includes: evenly dividing the XOY plane in the three-dimensional space into a number of grids, and the rectangular parallelepiped represented by each grid in the three-dimensional space is a column, and the signal reflection points whose projections on the XOY plane fall in the same grid are regarded as being in the same column; representing the features of each signal reflection point as a nine-dimensional vector (x, y, z, r, x c ,y c , z c , x p ,y p ), where x c ,y c 、z c Indicates the coordinates of the geometric center of all signal reflection points contained in the column to which the signal reflection point belongs, x p ,y p Represents the coordinate offset between the signal reflection point and the geometric center;
[0112] The tensor conversion module is used to convert the three-dimensional point cloud data into a first tensor (D, P, N), where D represents the characteristics of the signal reflection point, P represents the number of columns in the three-dimensional space, and N is a hyperparameter representing the number of signal reflection points contained in a column. After the grid division and point feature extraction by the point feature extraction module, due to the sparsity of the three-dimensional point cloud data, many columns have no points or very few points. In order to solve the problem of different numbers of signal reflection points in different columns, the embodiment of the present invention sets N as a hyperparameter to limit the number of signal reflection points in each column. Specifically, in the process of generating the first tensor (D, P, N), if the number of signal reflection points contained in a column exceeds N, N signal reflection points are randomly sampled from the column, and if the number of signal reflection points contained in a column is less than N, a number of signal reflection points with a characteristic of 0 are filled so that the number of signal reflection points in the column is N. Thus, the tensorization of the three-dimensional point cloud data is completed.
[0113] The PointNet network is used to aggregate the first tensor (D, P, N) along the dimension of D to obtain a second tensor (C, P, N), where C is the number of channels of the two-dimensional pseudo image;
[0114] The maximum pooling module is used to perform maximum pooling processing on the second tensor (C, P, N) along the dimension of N to obtain a third tensor (C, P);
[0115] The dispersion processing module is used to perform dispersion processing on the third tensor (C, P) in the dimension of P to disperse the characteristics of the signal reflection point back to the column to which it belongs, and obtain a fourth tensor (C, H, W); the fourth tensor (C, H, W) is a two-dimensional pseudo image, wherein H and W represent the length and width of the two-dimensional pseudo image, respectively.
[0116] Furthermore, the backbone network includes a downsampling network, an upsampling network and a distraction module.
[0117] Among them, the downsampling network adopts a top-down downsampling structure, including a first downsampling module, a second downsampling module and a third downsampling module connected in series in sequence; the first downsampling module is used to downsample the two-dimensional pseudo image to obtain a first downsampling feature map; the second downsampling module is used to downsample the first downsampling feature map to obtain a second downsampling feature map; the third downsampling module is used to downsample the second downsampling feature map to obtain a third downsampling feature map.
[0118] In order to obtain better downsampling results, the first downsampling module, the second downsampling module and the third downsampling module in the embodiment of the present invention all adopt the same dual-branch downsampling structure. Figure 3As shown, the first downsampling module, the second downsampling module and the third downsampling module all use the following same steps to downsample the input image:
[0119] S3001, performing maximum pooling processing on the input image, wherein the maximum pooling kernel size is 2x2, thereby obtaining a feature map M1 with a size reduced by half;
[0120] S3002, perform 1x1 convolution on the feature map M1 to reduce the number of its channels by half, and obtain the feature map M2;
[0121] S3003, performing convolution processing on the input image, wherein the convolution kernel size is 3x3; and then performing 1x1 convolution to reduce the number of channels by half, to obtain a feature map M3;
[0122] S3004, concatenating the feature map M2 and the feature map M3 along the dimension of the number of channels;
[0123] S3005. The concatenated feature maps are batch normalized and passed through a SiLU activation function to obtain an output downsampled feature map.
[0124] The difference is that in the first downsampling module, when the two-dimensional pseudo image is downsampled, the step size of the maximum pooling process and the 3x3 convolution process is 1, so that the number of channels of the input image and the output image remains unchanged; in the second downsampling module and the third downsampling module, when the first downsampling feature map and the second downsampling feature map are downsampled, the step size of the maximum pooling process and the 3x3 convolution process is 2, so that the number of channels of the output image is halved relative to the input image.
[0125] Taking the first downsampling module as an example, the size of the input two-dimensional pseudo image is (C, H, W). Through step S3001, the size of the feature map M1 is reduced by half, which is (C, H / 2, W / 2); after further processing the feature map M1 through step S3002, a feature map M2 with half the number of channels is obtained, and its size becomes (C / 2, H / 2, W / 2). At the same time, the two-dimensional pseudo image also obtains a feature map M3 with half the number of channels and half the size through step S3003, and its size is (C / 2, H / 2, W / 2). After splicing the feature map M2 and the feature map M3 through step S3004, the size of the feature map obtained is (C, H / 2, W / 2). In the subsequent step S3005, the relevant processing will not change the size of the feature map, and the size of the first down-sampling feature map finally obtained is (C, H / 2, W / 2).
[0126] Similarly, the first down-sampled feature map is used as the input of the second down-sampled module, and the down-sampled operation is performed on it in the same steps as above. The size of the second down-sampled feature map is (2C, H / 4, W / 4); the second down-sampled feature map is used as the input of the third down-sampled module, and the down-sampled operation is performed on it in the same steps as above. The size of the third down-sampled feature map is (4C, H / 8, W / 8). Thus, three down-sampled feature maps of different sizes and different numbers of channels are obtained through the down-sampling network, and their sizes are (C, H / 2, W / 2), (2C, H / 4, W / 4) and (4C, H / 8, W / 8).
[0127] The present invention obtains downsampled feature maps of different sizes and numbers of channels through the super downsampling performed simultaneously by the maximum pooling and 2D convolution, which is conducive to the model obtaining multi-scale information; at the same time, the downsampled feature map can expand the receptive field during training, and the neuron can better capture contextual information. In addition, by introducing the maximum pooling process, the downsampled feature map can also pay more attention to the columns with important information.
[0128] The upsampling network includes a first upsampling module, a second upsampling module, and a third upsampling module connected in parallel; the first upsampling module, the second upsampling module, and the third upsampling module are respectively used to upsample the first downsampling feature map, the second downsampling feature map, and the third downsampling feature map to the same size, so as to obtain the first upsampling feature map, the second upsampling feature map, and the third upsampling feature map. Specifically, the first upsampling module, the second upsampling module, and the third upsampling module respectively use deconvolution on the first downsampling feature map, the second downsampling feature map, and the third downsampling feature map to upsample to the same size; then batch normalization is performed respectively and a ReLU activation function is passed through, so as to obtain the first upsampling feature map, the second upsampling feature map, and the third upsampling feature map respectively.
[0129] The distraction module is used to concatenate the first upsampled feature map, the second upsampled feature map and the third upsampled feature map through an attention weight matrix to obtain a feature tensor.
[0130] Combination Figure 4 As shown, the distraction module obtains the feature tensor through the following steps:
[0131] S305, adding the first up-sampled feature map, the second up-sampled feature map and the third up-sampled feature map, performing a maximum pooling process (Global pooling), and then sequentially passing through a fully connected layer (FC), a batch normalization layer (BN) and a ReLU activation function (ReLU) to obtain a first processing feature, a second processing feature and a third processing feature;
[0132] S306, the first processing feature, the second processing feature and the third processing feature are respectively passed through a fully connected layer (FC), and then input into a normalized exponential function (Softmax) together to obtain an attention weight matrix;
[0133] S307, multiplying the first up-sampled feature map, the second up-sampled feature map, and the third up-sampled feature map by the attention weight matrix respectively and then adding them together to obtain a final output feature tensor (3C, H, W).
[0134] Compared with the prior art, the distraction module in the embodiment of the present invention adds a weight redistribution strategy to avoid gradient vanishing and gradient exploding, and can also speed up the model training speed and improve the generalization ability of the model. The distraction module helps to obtain richer and more comprehensive features, which can well represent the relevant information of the object in the original point cloud, and can also reduce the loss of the input three-dimensional point cloud information of the model, improve the generalization ability of the model, and improve the detection accuracy.
[0135] Furthermore, the detection head in the embodiment of the present invention is an SSD detection head. In the SSD detection head, each detected bounding box is represented as a seven-dimensional vector (x, y, z, w, l, h, θ), where x, y, z represent the geometric center coordinates of the bounding box, w, h, l represent the width, height, and length of the bounding box, respectively, and θ represents the deflection angle of the bounding box.
[0136] In the downsampling network of the backbone network of the present invention, due to the introduction of the maximum pooling process, the downsampled feature map pays more attention to the columns with important information, so that richer and more comprehensive features can be obtained. Compared with the PointPillars algorithm in the prior art, this feature can better represent the relevant information of the object in the original point cloud, highlight the important information corresponding to the detection target in the original point cloud, and reduce the loss of the model's input 3D point cloud information, thereby improving the generalization ability of the model.
[0137] Furthermore, in the backbone network of the present invention, maximum pooling and convolution are simultaneously applied to the downsampling operation, and the original ReLU activation function in the downsampling process of the prior art is replaced with a SiLU function that is more suitable for training. At the same time, a distraction operation based on a weight redistribution strategy is added at the end, which not only greatly reduces the computational complexity and memory usage of the model, but also obtains multi-scale and multi-resolution features, which can better capture objects of different sizes. For example, a feature map with a larger resolution has a relatively small receptive field, which is more suitable for capturing small targets.
[0138] Compared with the PointPillars algorithm of the prior art, the detection accuracy of the present invention has also been significantly improved. After using the KITTI dataset for BEV perception testing, the results of the comparative test show that the detection accuracy of the present invention in the easy, medium, and difficult difficulty levels of the car category has been improved by 1.82%, 0.35%, and 1.85%, respectively. After using the KITTI dataset for 3D detection comparative testing, the results of the comparative test show that the detection accuracy of the present invention in the car category has also been significantly improved. At the medium difficulty level, the present invention is 0.47% higher than the PointPillars algorithm, and at the difficult difficulty level, the present invention is 1.6% higher than the PointPillars algorithm.
[0139] In addition, the improvement of the present invention is particularly obvious in directional regression. After using the KITTI dataset to perform AOS (average orientation similarity) tests, the results of comparative tests show that the detection accuracy of the present invention at the three difficulty levels of easy, medium, and difficult is improved by 5.06%, 2.97%, and 1.94%, respectively. It is worth mentioning that compared with the SECOND algorithm in the prior art, the present invention is 10% and 17% higher at the two difficulty levels of medium and difficult, respectively, which is a huge improvement.
[0140] In summary, compared with other models, the present invention has a stronger perception ability for the direction of the detection object and can better eliminate the influence of the sparsity of point cloud data. It has higher detection accuracy and faster detection speed.
[0141] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A target detection method for autonomous driving perception, characterized in that: The following steps are involved: S1. Scan the surrounding environment of the vehicle through the on-board laser radar, collect all signal reflection points, and form three-dimensional point cloud data (x, y, z, r), where x, y, z are the coordinates of the signal reflection point in three-dimensional space, and r is the reflection intensity of the signal reflection point; S2, evenly dividing the three-dimensional point cloud data into a number of columns, tensorizing the three-dimensional point cloud data according to the distribution of signal reflection points in the columns, and further converting it into a two-dimensional pseudo image; S3, downsampling the two-dimensional pseudo image into three downsampled feature maps of different sizes and different numbers of channels to obtain multi-scale and multi-dimensional features, then upsampling the three downsampled feature maps to obtain features of the same dimension, and then concatenating these features to obtain a feature tensor; S4, inputting the feature tensor into a detection head to obtain a three-dimensional scene graph with bounding boxes, wherein each bounding box represents a detected object; The S2 comprises the following steps: S201, evenly divide the XOY plane in the three-dimensional space into a plurality of grids, wherein the cuboid represented by each grid in the three-dimensional space is a column, and signal reflection points whose projections on the XOY plane fall in the same grid are regarded as being in the same column; S202, represent the characteristics of each signal reflection point as a nine-dimensional vector (x, y, z, r, x c ,y c , z c , x p ,y p ), where x c ,y c 、z c Indicates the coordinates of the geometric center of all signal reflection points contained in the column to which the signal reflection point belongs, x p ,y p Represents the coordinate offset between the signal reflection point and the geometric center; S203, converting the three-dimensional point cloud data into a first tensor (D, P, N), wherein D represents the characteristics of the signal reflection point, P represents the number of columns in the three-dimensional space, and N is a hyperparameter representing the number of signal reflection points contained in a column; in the process of generating the first tensor (D, P, N), if the number of signal reflection points contained in a column exceeds N, then randomly sample N signal reflection points from the column; if the number of signal reflection points contained in a column is less than N, then fill in a number of signal reflection points with a characteristic of 0 so that the number of signal reflection points in the column is N; S204, input the first tensor (D, P, N) into a PointNet network to aggregate it along the dimension of D to obtain a second tensor (C, P, N), where C is the number of channels of the two-dimensional pseudo image; S205, performing maximum pooling processing on the second tensor (C, P, N) along the dimension of N to obtain a third tensor (C, P); S206. Perform dispersion processing on the third tensor (C, P) in the dimension of P to disperse the features of the signal reflection points back to the columns to which they belong, thereby obtaining a fourth tensor (C, H, W). The fourth tensor (C, H, W) is a two-dimensional pseudo image, where H and W represent the length and width of the two-dimensional pseudo image, respectively. In S3, the step of downsampling the two-dimensional pseudo image into three downsampled feature maps of different sizes and different numbers of channels includes: S301, down-sampling the two-dimensional pseudo image to obtain a first down-sampled feature map; S302, downsampling the first downsampled feature map to obtain a second downsampled feature map; S303, downsampling the second down-sampled feature map to obtain a third down-sampled feature map; In S301, S302 and S303, the process of downsampling the two-dimensional pseudo image, the first down-sampled feature map and the second down-sampled feature map includes: S3001, performing maximum pooling processing on the input image, wherein the maximum pooling kernel size is 2x2, thereby obtaining a feature map M1 with a size reduced by half; S3002, perform 1x1 convolution on the feature map M1 to reduce the number of its channels by half, and obtain the feature map M2; S3003, performing convolution processing on the input image, wherein the convolution kernel size is 3x3; and then performing 1x1 convolution to reduce the number of channels by half, to obtain a feature map M3; S3004, concatenating the feature map M2 and the feature map M3 along the dimension of the number of channels; S3005, performing batch normalization processing on the concatenated feature map, and obtaining an output downsampled feature map through a SiLU activation function; In S3, the steps of upsampling and concatenating the three feature maps to obtain a feature tensor include: S304, respectively use deconvolution on the first down-sampled feature map, the second down-sampled feature map, and the third down-sampled feature map to upsample them to the same size; then perform batch normalization processing and pass a ReLU activation function to obtain a first up-sampled feature map, a second up-sampled feature map, and a third up-sampled feature map; S305, adding the first up-sampled feature map, the second up-sampled feature map, and the third up-sampled feature map, performing maximum pooling processing, and then sequentially passing through a fully connected layer, a batch normalization processing layer, and a ReLU activation function to obtain a first processing feature, a second processing feature, and a third processing feature; S306, after the first processing feature, the second processing feature and the third processing feature are respectively passed through a fully connected layer, they are input together into a normalized exponential function to obtain an attention weight matrix; S307: Multiply the first up-sampled feature map, the second up-sampled feature map, and the third up-sampled feature map by the attention weight matrix respectively and then add them together to obtain a final output feature tensor.
2. The target detection method for autonomous driving perception according to claim 1, characterized in that: The detection head is an SSD detection head; in the SSD detection head, each detected bounding box is represented as a seven-dimensional vector (x, y, z, w, l, h, θ), wherein x, y, z represent the geometric center coordinates of the bounding box, w, h, l represent the width, height, and length of the bounding box, respectively, and θ represents the deflection angle of the bounding box.
3. A target detection system for autonomous driving perception, used to implement the target detection method according to any one of claims 1 to 2, characterized in that: Includes vehicle-mounted laser radar, feature encoding network, backbone network and detection head; The vehicle-mounted laser radar is used to scan the surrounding environment of the vehicle, collect all signal reflection points, and form three-dimensional point cloud data (x, y, z, r), where x, y, z are the coordinates of the signal reflection point in three-dimensional space, and r is the reflection intensity of the signal reflection point; The feature encoding network is used to encode the features of the three-dimensional point cloud data to convert the three-dimensional point cloud data into a two-dimensional pseudo image; the process includes: evenly dividing the three-dimensional point cloud data into a plurality of columns, tensorizing the three-dimensional point cloud data according to the distribution of the signal reflection points in the columns, and further converting it into a two-dimensional pseudo image; The backbone network is used to extract features from the two-dimensional pseudo image to obtain a feature tensor; the process includes: downsampling the two-dimensional pseudo image into three downsampled feature maps of different sizes and different numbers of channels to obtain multi-scale and multi-dimensional features, then upsampling the three downsampled feature maps to obtain features of the same dimension, and then splicing these features to obtain a feature tensor; The detection head is used to perform target detection on the feature tensor to obtain a three-dimensional scene graph with bounding boxes, each of which represents a detected target; The feature encoding network includes a point feature extraction module, a tensor conversion module, a PointNet network, a maximum pooling module and a distributed processing module; The point feature extraction module is used to evenly divide the three-dimensional space into a number of columns, and extract the features of the signal reflection points according to the distribution of the signal reflection points in the columns. The process includes: evenly dividing the XOY plane in the three-dimensional space into a number of grids, and the rectangular parallelepiped represented by each grid in the three-dimensional space is a column, and the signal reflection points whose projections on the XOY plane fall in the same grid are regarded as being in the same column; representing the features of each signal reflection point as a nine-dimensional vector (x, y, z, r, x c ,y c , z c , x p ,y p ), where x c ,y c 、z c Indicates the coordinates of the geometric center of all signal reflection points contained in the column to which the signal reflection point belongs, x p ,y p Represents the coordinate offset between the signal reflection point and the geometric center; The tensor conversion module is used to convert the three-dimensional point cloud data into a first tensor (D, P, N), where D represents the characteristics of the signal reflection point, P represents the number of columns in the three-dimensional space, and N is a hyperparameter representing the number of signal reflection points contained in a column; in the process of generating the first tensor (D, P, N), if the number of signal reflection points contained in a column exceeds N, N signal reflection points are randomly sampled from the column, and if the number of signal reflection points contained in a column is less than N, a number of signal reflection points with characteristics of 0 are filled so that the number of signal reflection points in the column is N; The PointNet network is used to aggregate the first tensor (D, P, N) along the dimension of D to obtain a second tensor (C, P, N), where C is the number of channels of the two-dimensional pseudo image; The maximum pooling module is used to perform maximum pooling processing on the second tensor (C, P, N) along the dimension of N to obtain a third tensor (C, P); The dispersion processing module is used to perform dispersion processing on the third tensor (C, P) in the dimension of P, so as to disperse the features of the signal reflection points back to the columns to which they belong, and obtain a fourth tensor (C, H, W); the fourth tensor (C, H, W) is a two-dimensional pseudo image, wherein H and W represent the length and width of the two-dimensional pseudo image respectively; The backbone network includes a downsampling network, an upsampling network and a distraction module; The downsampling network comprises a first downsampling module, a second downsampling module and a third downsampling module which are sequentially connected in series; the first downsampling module is used to downsample the two-dimensional pseudo image to obtain a first downsampling feature map; the second downsampling module is used to downsample the first downsampling feature map to obtain a second downsampling feature map; the third downsampling module is used to downsample the second downsampling feature map to obtain a third downsampling feature map; The upsampling network includes a first upsampling module, a second upsampling module and a third upsampling module connected in parallel to each other; the first upsampling module, the second upsampling module and the third upsampling module are respectively used to upsample the first downsampling feature map, the second downsampling feature map and the third downsampling feature map to the same size to obtain the first upsampling feature map, the second upsampling feature map and the third upsampling feature map; The distraction module is used to concatenate the first upsampled feature map, the second upsampled feature map, and the third upsampled feature map through an attention weight matrix to obtain a feature tensor; The first downsampling module, the second downsampling module and the third downsampling module all downsample the input image using the following steps: S3001, performing maximum pooling processing on the input image, wherein the maximum pooling kernel size is 2x2, thereby obtaining a feature map M1 with a size reduced by half; S3002, perform 1x1 convolution on the feature map M1 to reduce the number of its channels by half, and obtain the feature map M2; S3003, performing convolution processing on the input image, wherein the convolution kernel size is 3x3; and then performing 1x1 convolution to reduce the number of channels by half, to obtain a feature map M3; S3004, concatenating the feature map M2 and the feature map M3 along the dimension of the number of channels; S3005, performing batch normalization processing on the concatenated feature map, and obtaining an output downsampled feature map through a SiLU activation function; The first upsampling module, the second upsampling module and the third upsampling module respectively use deconvolution on the first downsampling feature map, the second downsampling feature map and the third downsampling feature map to upsample them to the same size; then perform batch normalization processing on them respectively and pass a ReLU activation function to obtain the first upsampling feature map, the second upsampling feature map and the third upsampling feature map respectively; The distraction module obtains the feature tensor by the following steps: S305, adding the first up-sampled feature map, the second up-sampled feature map, and the third up-sampled feature map, performing maximum pooling processing, and then sequentially passing through a fully connected layer, a batch normalization processing layer, and a ReLU activation function to obtain a first processing feature, a second processing feature, and a third processing feature; S306, after the first processing feature, the second processing feature and the third processing feature are respectively passed through a fully connected layer, they are input together into a normalized exponential function to obtain an attention weight matrix; S307: Multiply the first up-sampled feature map, the second up-sampled feature map, and the third up-sampled feature map by the attention weight matrix respectively and then add them together to obtain a final output feature tensor.
