A point cloud object detection method integrating point features and grid features
Through the dual-stream network fusion of point features and grid features, combined with the RPN network and the mixed density network, it solves the problem of grid division in point cloud target detection that cannot preserve the fine-grained 3D structure and high computational cost, achieving more accurate and efficient detection. Effect.
Patent Information
- Application Number
- CN202111398672.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-19
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-11-19
AI Technical Summary
The point cloud target detection algorithm based on deep learning faces the problem that mesh division cannot preserve the fine-grained 3D structure of the object and the computational cost of point-based methods is high, making it difficult to balance positioning performance and computational workload.
A dual-stream network is used to fuse point features and grid features, point cloud features are extracted through Point-GNN, and meshed using the Point-Pillar method. RPN networks and mixed density networks are used for feature extraction and regression, and converted into pseudo image forms. CNN processing reduces the amount of computation and improves accuracy.
It achieves more accurate 3D structure representation and better data fitting, improves the accuracy and speed of point cloud target detection, and reduces computing costs.
Smart Images

Figure CN114120115B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer vision technology based on deep learning, and specifically relates to a point cloud target detection method that integrates point features and grid features. Background Art
[0002] Point cloud object detection refers to the computer vision task of using LiDAR to collect scenes in the form of 3D point clouds and estimate the shape and position of objects from the point clouds. Point cloud object detection is one of the key technologies in the environmental perception of autonomous vehicles.
[0003] With its powerful representation learning ability, deep learning methods have greatly improved the accuracy of point cloud target detection, and point cloud target detection based on deep learning has an increasingly good development prospect.
[0004] Point cloud target detection algorithms based on deep learning can be mainly divided into grid-based point cloud target detection algorithms and point-based point cloud target detection algorithms.
[0005] Grid-based object detection algorithms can solve the irregular data format of point clouds. Most of the work projects point clouds onto regular grids and processes them through 2D or 3D CNNs. This grid-based method is effective for accurate 3D proposal boxes, but the receptive field is limited by the size of the 2D / 3D convolution kernel.
[0006] Point-based object detection algorithms mainly generate 3D proposal boxes from raw point clouds instead of projecting them into 2D images. Most point-based methods are based on the PointNet series, especially set abstract operations, which provide a flexible receptive field for point cloud feature learning.
[0007] Although point cloud target detection based on deep learning has significant effects, it still faces many problems. Grid-based target detection cannot retain the fine-grained 3D structure of the object due to the grid division. The positioning performance is closely related to the size of the grid. As the grid becomes smaller, more fine-grained features can be obtained, but the amount of calculation will also increase. Although point-based methods provide more original 3D representations and better results, the huge point cloud data requires a lot of computing costs. Some point-based methods borrow from 2D target detection methods and adopt a two-stage method. The advantages are high precision and accurate regression, but slow speed. Summary of the invention
[0008] To solve the above problems, the present invention discloses a point cloud object detection method that integrates point features and grid features. The point features and grid features are combined using a two-stream network, which can contain more accurate 3D structural information of the object. This makes it possible to impose a fine-grained 3D representation on the grid features that lose their structure during the gridding process; and by means of mixed density, the data distribution can be better fitted to obtain better results.
[0009] To achieve the above object, the technical solution of the present invention is as follows:
[0010] A point cloud target detection method integrating point features and grid features comprises the following steps:
[0011] Step 1. Use the graph structure in Point-GNN to extract point cloud features. The specific operations are as follows: input the processed point cloud set P = {p1, p2, ..., pN} containing N points, where pi = (xi, si) represents the coordinates of the point and the laser reflectivity, P is used as the vertex of the graph, and then the points within a fixed radius r are connected. Use K-Nearest Neighbor (KNN) to construct a graph G = {P, E}. After the graph is constructed, the feature update network uses a multilayer perceptron. For each graph node, the node information of the graph is updated through the node's neighbor nodes and edge features.
[0012] Step 2: Use the Point-Pillar method to perform point cloud meshing operations. The input processed point cloud data is in the form of (P, F), where P is the number of point clouds, and F is the point cloud attribute, including the coordinates of the point and the laser reflection intensity. According to the X and Y axes where the point cloud data is located, the point cloud is divided into grids, and the data becomes (M, N, D), where M represents the number of selected pillars, N is the maximum number of point clouds stored in each pillar, and D is the point cloud attribute. Due to the sparsity of the point cloud, if the number of point clouds in a pillar is greater than N, it is discarded. If it is less than N, it is padded with zeros. Then the pillar information is extracted through the fully connected network. Finally, the largest feature in each pillar is taken as the feature of each pillar, that is, the output data of this part is (M, C). The feature dimension based on the point in step 1 is also C, which is the same.
[0013] Step 3. Based on step 1, we get the point-based features (N, C). Based on step 2, we get the grid-based features (M, C). For each pillar-based feature, perform a dot product operation with all the point features in step 1 to obtain a two-dimensional relationship matrix (N, C). Through this matrix, we get the index of the K points with the largest relationship for each pilar, and then extract the features of these K points by indexing into the point features (K, C). Perform a dot product of the features of each pillar with the features of these K points, and then perform a Softmax operation to obtain K values. These K values are equivalent to the matching probability of the K features extracted, and can also be understood as the weights of the K features. Then multiply each point by its own matching probability and add them up. Finally, concatenate them with the pillar features to obtain the pillar features that integrate the point features, with a dimension of (M, 2C).
[0014] Step 4: Convert the features obtained in step 3 into a pseudo image representation (H, W, 2C) and input it into the RPN network. In this way, CNN can be used to continue to extract features. The obtained (H, W, 2C) is input into the RPN network structure with high resolution. This network structure includes two downsampling processes. The data dimension of the first layer always remains (H, W, 2C), the second layer always maintains the data dimension of (H / 2, W / 2, 4C), and the third layer always maintains the data dimension of (H / 4, W / 4, 8C). These three layers are parallel structures, and there is data interaction between layers. For example, the second layer will be upsampled to (H, W, 2C) and fused with the data of the first layer. Similarly, the third layer will also be upsampled to the second and first layers and perform data fusion with them. The output of the network structure uses the result of the first layer. The output of the RPN network generally includes two branches, one for object classification and the other for 3D box regression. Here, as with the SECOND network, an additional branch for classifying the object direction is introduced. Each 3D box uses a 7-dimensional vector (w, y, z, w, h, l, θ), where (x, y, z) represents the center of the object box, w, h, l represents the size of the box, and θ is the direction angle of the box. Since it is too difficult to directly predict these 7 parameters, similar to 2D target detection, 9 anchor boxes are also pre-generated during data processing. Then the parameters to be learned in the detection box regression task are the offsets of 7 variables:
[0015]
[0016]
[0017] Δθ=sin(θ gt -θ a )
[0018] where x gt and x aThey are the true label value and anchor box respectively. For the loss of target classification, we use focal loss:
[0019] l cls =-α a (1-p a ) r logp a
[0020] where p a Indicates the category probability of the anchor. In the experiment, α=0.25 and r=2 are set. In order to better fit the data distribution, we use a mixed density network to output the results of 3D box regression.
[0021] Step 5: Target box regression based on SSD target detection head
[0022] The point cloud target detection method based on two-stream network and mixed density, the specific method of the mixed density network in step 4 is: for a given point cloud data x, our goal is to learn a function f: x→θ, that is, the output of the function is a series of mixed model output parameters θ={μ, σ, α},
[0023] μ={μ1,μ2,...,μ M |μ i ∈R 7N},σ={σ1...,σ M |σ i ∈R}, α={α1,...,α M |0≤a i ≤1,∑ i α i =1}, which are the mean, variance and mixing coefficient of the mixture model respectively, M is the number of Gaussian kernels, we take Gaussian distribution as the basic probability distribution of the mixture density network, and use five Gaussian kernels. The probability density y for a given input x can be expressed as a linear combination of Gaussian kernel functions:
[0024]
[0025] For the case where the mixed density network is not used, the RPN network output includes (M, 7), where 7 is the 7 offsets in step 4 above. The mixed density network using five Gaussian kernels has an output of (M, 45), because for each Gaussian kernel, the output includes 7 means μ, a variance θ, and a weight coefficient α.
[0026] Given K sets of training data {X, Y} = {{x i ,y i}i=1,2,…,K}, X represents the point cloud feature, Y represents the real annotation box, our goal is to find the maximum posterior learnable weight w, assuming that the data are independent and identically distributed, then the maximum posterior distribution of w is expressed as:
[0027]
[0028] Where Ψ is a hyperparameter, M represents the number of Gaussian kernels, and α j It can be regarded as the weight of each Gaussian kernel, which adds up to 1, φ j is a Gaussian probability distribution,
[0029]
[0030] μ j (x) and σ j (x) represents the mean and variance of the jth Gaussian kernel. Optimizing the network weights can also minimize the negative logarithmic posterior, that is:
[0031]
[0032] Therefore, for the loss function, we can define it as follows:
[0033]
[0034] Where 0≤α j (x)≤1
[0035] The output of the final RPN network regression frame is obtained by multiplying the five Gaussian distributions by the corresponding coefficient weights and summing them up.
[0036] The above results are input into the SSD-based target detection head for target box regression
[0037] The beneficial effects of the present invention are:
[0038] The point cloud target detection method for fusing point features and grid features described in the present invention combines point-based and grid-based point cloud target detection algorithms, so that the information of the fused features is richer, the features are converted into pseudo-image form, and the RPN network based on CNN high resolution is used to fuse multi-scale features while always retaining high-resolution features. The reasoning speed of the network is accelerated based on 2D convolution and the amount of calculation is reduced. The mixed density network is used to better fit the data distribution, making the network output more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is the overall flow chart of the present invention;
[0040] Figure 2is the RPN network of the method of the present invention, namely Figure 1 Backbone structure diagram. DETAILED DESCRIPTION
[0041] The present invention will be further explained below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the following specific embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention.
[0042] A point cloud target detection method integrating point features and grid features comprises the following steps:
[0043] Step 1: The experimental data set is KITTI. The KITTI data set was jointly created by the Karlsruhe Institute of Technology in Germany and Toyota America Technical Research Institute. It is one of the largest computer vision algorithm evaluation data sets in the world for autonomous driving scenarios. The data collection platform of the KITTI data set is equipped with 2 grayscale cameras, 2 color cameras, a Velodyne 64-line 3D laser radar, 4 optical lenses, and a GPS navigation system. Input the processed point cloud data into Figure 1 In the Point-GNN network in the upper part, due to the large amount of point cloud data, point cloud data will be sampled as nodes in the graph. However, in order to retain the initial point cloud features, a layer of graph network extraction will be used as the initial state value of the vertex. Subsequently, a four-layer graph neural network is used, and each layer of the neural network uses a multi-layer perceptron to further extract the features of nodes and edges. Finally, Figure 1 The output of Point-GNN in the upper middle part.
[0044] Step 2: Input the processed point cloud data Figure 1 In the second half, the point cloud is regularized into a pillar form. Assuming that the unit grid size along the X and Y directions is x, y, then the grid size is (X / x, Y / y). Each point cloud is placed in the corresponding grid according to its location. At the same time, the maximum number of point clouds in each grid is specified. If it exceeds, it will be discarded, and if it is less, it will be filled with zeros. Then the features of each grid are extracted to obtain Figure 1 Output of Pillars in the lower middle section.
[0045] Step 3: Figure 1The output features of the upper half are combined with the output features of the lower half. The specific process is to select the K points with the greatest relationship with each output of the lower half, and then for each pillar, calculate its matching probability with these K points through a similar Softmax operation, and then multiply each point by its own matching probability and add them up, and finally concatenate them with the features of the lower half to obtain the pillar features that integrate the point features, assuming the dimension is (M, 2C). M represents the number of pillars, and then convert it into a pseudo-image form, namely (H, W, 2C).
[0046] Step 4: Input the pseudo image features obtained in step 3 into the Backbone network, where the network structure of Backbone is as follows: Figure 2 As shown in Figure 1, the network structure consists of three layers. Assuming that the input features are (C, H, W), the convolution process of the first layer always maintains the input (C, H, W) high-resolution features. Each convolution block includes three operations: convolution, Batchnorm, and Relu activation. The second layer is obtained by convolution of the input to obtain (2C, H / 2, W / 2). The number of channels is doubled and the width and height dimensions are halved. Similarly, the feature shape of the second layer is always kept unchanged during the convolution process. The third layer is obtained by convolution of the second layer four times and then once to obtain (4C, H / 4, W / 4). The convolution of the third layer The process also keeps the feature dimension unchanged. In order to fuse multi-scale features, there will be a multi-scale fusion process after each layer has undergone four convolution block operations. The first fusion will upsample the features of (2C, H / 2, W / 2) and change the number of channels to obtain the same feature dimensions as the first layer (C, H, W). Then the two are added as the input of the subsequent convolution process of the first layer. The (C, H, W) of the first layer is convolved to obtain the features of (2C, H / 2, W / 2), and then added to the results of the second layer. This result is used as the input of the subsequent convolution process of the second layer. After each layer has undergone four convolutions, there will be a multi-scale fusion process. As before, the newly added third layer will be upsampled to the same feature dimensions as the first and second layers, and their features will be added. Since all three layers have feature outputs, we finally use the result features of the first layer as the output.
[0047] Step 5. In order to better fit the data distribution, we use a Gaussian distribution mixture density network as the final output of the RPN network. We use five Gaussian kernels. The mean of each Gaussian kernel is the offset z we need. The output includes the mean, variance, and weight of each Gaussian kernel. The sum of the weights should be 1. The loss function of the corresponding regression box uses a logarithmic function to optimize the weights.
[0048] Step 6: Input the above results into the SSD-based target detection head for target box regression
[0049] The above content merely illustrates the technical idea of the present invention and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of this technical solution belong to the technical idea proposed by the present invention and fall within the protection scope of the claims of the present invention.
Claims
1. A point cloud target detection method that integrates point features and grid features. Features: include: Step 1: Read the point cloud data, perform relevant data processing, organize the point cloud data into a graph structure, and update the node features through the node's neighboring nodes, that is, use the graph neural network to extract point cloud features; Step 2: Divide the top view of the point cloud data along the x and y axes into several small grids of fixed size, pull it up along the z axis to form a cylinder, divide each point into the divided cylinder according to the point cloud position, regard the point cloud in each cylinder as a set, extract the features of the point cloud, and finally use maximum pooling to extract the features of each cylinder; Step 3: Integrate the grid-based features extracted in step 1 into the point-based features. First, calculate the similarity score between each cylinder feature in step 2 and each point feature in step 1. Select the largest k points for each cylinder and integrate the features of these k points into the cylinder features. In this way, the cylinder features contain the three-dimensional structural information extracted by the graph neural network, which is not available in the cylinder features. Step 4: Convert the fused column features in step 3 into a pseudo image and further extract features based on CNN; Using a region proposal network that maintains a high-resolution structure, features of different resolutions are connected in parallel, and at the same time, features of different resolutions interact with each other; and a mixed density network is used to fit the data distribution to obtain the Gaussian mean, variance, and Gaussian weight of the pre-selected box; Step 5: Perform target box regression based on the target detection head of Single Shot Detector.
2. According to the point cloud target detection method of integrating point features and grid features according to claim 1, It is characterized in that Step 1: For each point in the point cloud, according to the K nearest neighbor algorithm, its neighbor nodes are selected to construct a graph; in the forward propagation process, the edge features are used to update the node features, and then the edge features are updated based on the node features. The network uses Multi-LayerPerception to update the features; finally, the features of each point are obtained.
3. According to the point cloud target detection method of integrating point features and grid features as described in claim 1, It is characterized in that Step 2: The top view of the point cloud is divided into several small grids according to a set fixed size, and it becomes a cylinder when pulled upward along the z-axis. The point cloud in each cylinder is regarded as a set, and a fully connected network is used to extract the features of the point cloud in each cylinder, and the features of each cylinder are obtained through maximum pooling.
4. According to the point cloud target detection method of integrating point features and grid features according to claim 1, It is characterized in that Step 3: For each cylinder feature, calculate its matching probability with the feature of each point in step one, select the k points with the largest matching probability, add up the features of these k points according to different weights, and then concatenate them with the features of each cylinder to finally obtain the fused cylinder feature. Because the structural features of the point cloud are lost when dividing the cylinder, the point features extracted by the graph neural network are fused to make up for the loss of information.
5. According to the point cloud target detection method of integrating point features and grid features as described in claim 1, It is characterized in that Step 4: After converting the cylindrical features into a two-dimensional structure, CNN is used to further extract features. The high-resolution network adopts three parallel structures. The feature map of each layer remains unchanged. The size of the feature map of the lower layer is halved compared to the upper layer, the number of channels is doubled, and there will be feature fusion operations between layers. For the output part, we use a mixed density network to output the mean, variance and weight of the Gaussian kernel. The mean is our pre-selected box attribute, which can better fit the data distribution.
