4D millimeter wave radar three-dimensional target detection method and system
Through the pillar feature encoding and three-dimensional coordinate encoding of the dual attention mechanism, the detection accuracy and noise suppression problems of 4D millimeter wave radar in harsh environments are solved, and more efficient three-dimensional target detection is achieved.
Patent Information
- Application Number
- CN202410656112.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-06
AI Technical Summary
Existing three-dimensional target detection methods based on 4D millimeter wave radar perform poorly in harsh environments and cannot effectively suppress noise, resulting in high false detection rates and high computational costs.
The pillar feature encoding method using dual attention mechanism extracts enhanced pillar features through pillar global attention and pillar feature attention networks to generate bird's-eye view pseudo images, and combines 2D convolutional networks and three-dimensional coordinate encoding to generate enhanced BEV features. to improve target detection accuracy.
It effectively enhances the feature extraction capabilities of sparse 4D millimeter wave radar point clouds, suppresses noise, improves the accuracy and position awareness of three-dimensional target detection, and reduces the false detection rate.
Smart Images

Figure CN118608759A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of autonomous driving perception technology, and specifically, relates to a 4D millimeter wave radar three-dimensional target detection method and system. More specifically, a 4D millimeter wave radar three-dimensional target detection method and system based on a dual attention mechanism. Background Art
[0002] 3D object detection is a key and fundamental problem in scene understanding for autonomous driving. Its purpose is to obtain the category information of objects and predict the 3D bounding box of objects. For autonomous vehicles, many basic tasks such as tracking, prediction, decision-making and planning rely on the results of 3D object detection. Existing 3D object detection methods and systems are mainly based on LiDAR, camera or their fusion.
[0003] Cameras, as a common low-cost perception sensor that can provide rich semantic information, have received extensive attention in 3D object detection. These methods usually predict 3D bounding boxes based on pre-acquired 2D bounding boxes, or directly predict 3D bounding boxes based on image features of each object. Compared with cameras, LiDAR can capture more accurate geometric information of objects, such as position and shape, and has achieved remarkable performance in 3D object detection. However, cameras are easily affected by lighting conditions, while LiDAR is sensitive to weather. Therefore, when lighting conditions or weather are poor, such as bright or low-light environments, rainy or foggy weather, the perception performance of cameras and LiDARs will drop significantly.
[0004] Compared with LiDAR and cameras, millimeter-wave radar is more robust in harsh environments. In addition, it also has a cost advantage over LiDAR, making it more commercially viable. Traditional low-cost 3D millimeter-wave radar can effectively measure the radial distance, radial velocity and horizontal angle information of an object, but lacks the ability to measure the height information of an object, and the point cloud is very sparse. With the development of radar technology, higher-resolution 4D millimeter-wave radar has emerged to make up for these shortcomings. It can provide additional height information to effectively capture the three-dimensional geometric information of an object, and its mass production cost is close to that of 3D millimeter-wave radar, and it has strong resistance to environmental interference. However, compared with LiDAR, the point cloud of 4D millimeter-wave radar is still relatively sparse and contains more noise, and the position perception accuracy is also low, which makes the existing point cloud-based three-dimensional target detection method unable to be effectively applied to 4D millimeter-wave radar.
[0005] Patent document CN113610044A discloses a 4D millimeter-wave radar three-dimensional target detection method based on a self-attention network, which relates to the field of autonomous driving technology. The method takes a 4D millimeter-wave radar point cloud as input, obtains high-dimensional 4D millimeter-wave radar point cloud features through a bird's-eye view voxelization module, and uses a self-attention feature extraction module to generate BEV features, and then outputs the three-dimensional target detection results through a backbone network and a detection head.
[0006] This scheme can improve the target orientation estimation by promoting the adaptive association of point cloud features, but it cannot adaptively suppress the noise of 4D millimeter-wave radar point cloud, resulting in more false detections.
[0007] Patent document CN116486396A discloses a 3D target detection method based on 4D millimeter wave radar point cloud, which relates to the field of autonomous driving technology. The solution uses 4D millimeter wave radar point cloud as input, and obtains relatively dense voxel features through sparse point cloud densification module and point cloud voxelization module. Then, the obtained voxel features are sent to the 3D backbone network to obtain multi-scale 3D features at different heights, and finally the BEV features are obtained to realize 3D box prediction through the target detection head.
[0008] This scheme can enhance the feature extraction capability of sparse point clouds through point cloud densification and multi-scale features, but point cloud densification will introduce more noise and increase computational costs. Summary of the invention
[0009] In view of the defects in the prior art, the object of the present invention is to provide a 4D millimeter wave radar three-dimensional target detection method and system.
[0010] A 4D millimeter wave radar three-dimensional target detection method provided by the present invention includes:
[0011] Step S1: collect 4D millimeter wave radar point cloud data in real time and encode it into column features;
[0012] Step S2: Based on the pillar features, feature fusion is performed through a pillar feature encoding module to obtain enhanced pillar features; and a bird's-eye view pseudo image is generated through the enhanced pillar features;
[0013] Step S3: constructing a 2D convolutional network, and using the 2D convolutional network to extract features of the BEV pseudo image as a bird's-eye view pseudo image to generate a BEV feature map;
[0014] Step S4: based on the BEV feature map, re-dividing the data points of the 4D millimeter-wave radar point cloud data to generate a three-dimensional coordinate space of the 4D millimeter-wave radar point cloud;
[0015] Step S5: Encode the three-dimensional coordinate space to obtain 3D position embedding;
[0016] Step S6: Add the BEV feature map and the 3D position embedding element by element to generate an enhanced BEV feature map and input it into the region extraction network detection head to output the three-dimensional object detection result.
[0017] Preferably, in step S1:
[0018] Step S1.1: Collect 4D millimeter wave radar point cloud data and map it to a horizontal coordinate plane; divide the horizontal coordinate plane into grids of equal size and establish columns of equal height on each grid;
[0019] Step S1.2: Perform offset calculation on the original 3D coordinates of the point cloud data points in each column to obtain the augmented features of the point cloud data points
[0020] Step S1.3: The augmented features Input the multi-layer perceptron to generate high-dimensional features F of point cloud data points p ;
[0021] Step S1.4: Use the maximum pooling operation to pool the high-dimensional features F of all point cloud data points in each column. p Aggregated into a single feature vector F m , i.e., the column characteristics;
[0022] In step S2:
[0023] The column feature encoding module includes: a global column attention network, a column feature attention network and a multi-layer perceptron network;
[0024] Step S2.1: Input the column feature into the global column attention network to generate the column global association feature, and add it to the column feature to generate the global column feature F g ;
[0025] Step S2.2: Input the column feature into the column feature attention network, add the output result to the column feature, and generate the column importance feature F i ;
[0026] Step S2.3: Set the global column feature F g , column importance feature F i The features of the pillars are added after passing through three different multi-layer perceptrons and then input into the feedforward network to achieve feature fusion; the enhanced pillar features are output and converted into a bird's-eye view pseudo image.
[0027] Preferably, in step S1.1, there are divided point cloud data points in each column; the features of the point cloud data points are (x, y, z, v, r), which contain 5 dimensions in total; wherein (x, y, z) represents the original three-dimensional coordinates of the current cloud data point, v represents the relative radial velocity of the current data point, and r represents the echo intensity of the target;
[0028] In step S1.2, the augmented feature is (x,y,z,v,r,x c ,y c ,z c ,x r ,y r ,z r ), a total of 11 dimensions; among them, (x c ,y c ,z c ) represents the offset between the original 3D coordinates of the current point cloud data point and the 3D coordinates of the center point of the column where it is located, (x r ,y r ,z r ) represents the offset between the original 3D coordinate of the current point cloud data point and the minimum 3D coordinate of all the point cloud data points in the column where it is located;
[0029] In step S2.1:
[0030] Step S2.1.1: Generate column feature embedding F using a linear network for column features se ;
[0031] Step S2.1.2: Embed the column features F se Perform two independent linear transformations to generate query and key;
[0032] Step S2.1.3: Transpose the key, perform matrix multiplication on the query and divide by the scaling factor That is, the point multiplication operation is scaled to obtain the operation result;
[0033] Step S2.1.4: Normalize the operation results to obtain the attention weight matrix A m ;
[0034] Step S2.1.5: By the attention weight matrix A m and column feature embedding F se Multiply each element to obtain the global column-related feature, and add it to the column feature to generate the global column feature F g ;
[0035] The pillar features are embedded in F se , the mathematical expression is:
[0036] F se =φ(F m ,w se )
[0037] Where φ represents a linear transformation; F m Indicates the column characteristics; w se represents the weight of a linear transformation;
[0038] The mathematical expression of the query is:
[0039] Q m =φ(F se ,w q )
[0040] Among them, w q Represents the weight of another linear transformation; Q m Represents the query of the global pillar attention mechanism;
[0041] The mathematical expression of the key is:
[0042] K m =φ(F se ,w k )
[0043] Among them, w k Represents the weight of another linear transformation; K m The key representing the global column attention mechanism;
[0044] The attention weight matrix A m , the mathematical expression is:
[0045]
[0046] Among them, Softmax represents the normalization function; K m The transposed matrix of
[0047] The global column feature F g , the mathematical expression is:
[0048] F g =F m +A m F se
[0049] In step S2.2:
[0050] Step S2.2.1: Based on the column features, generate column feature embedding F through a linear network ce ;
[0051] Step S2.2.2: Embed the column feature into F ce After global maximum pooling, i.e. GMP and one-dimensional convolutional network Conv m Convolution and global average pooling, namely GAP and one-dimensional convolutional network Conv a Convolution, get the convolution result;
[0052] Step S2.2.3: Add the outputs of the two one-dimensional convolutional networks, that is, add the convolution results, and after passing the Sigmoid function, obtain the column feature importance score S m ;
[0053] Step S2.2.4: The column feature importance score S m Embed F with column feature ce Multiply element by element and add it to the column feature to get the column importance feature F as the local important feature information of the column feature. i :
[0054] The pillar features are embedded in F ce , the mathematical expression is:
[0055] F ce =φ(F m ,w ce )
[0056] Among them, φ represents linear transformation, w ce represents the weight following a linear transformation;
[0057] The column feature importance score S m , the mathematical expression is:
[0058] S m =Sigmoid(Conv m (GMP(F ce ))+Conv a (GAP(F ce )))
[0059] The pillar importance feature F i , the mathematical expression is:
[0060] F i =F m +S m ⊙F ce
[0061] Where ⊙ represents element-by-element multiplication.
[0062] Preferably, in step S4: by dividing the grid, the conversion between the BEV characteristic map coordinates (u, v) and the real coordinates (x, y) is realized, and the mathematical expression is:
[0063] x=(uW / x)×s
[0064] y=v×s
[0065] Where W represents the width of the BEV feature map and s represents the grid length.
[0066] Preferably, in step S5: a three-dimensional coordinate is generated by sampling a point along the height axis from each grid in the three-dimensional coordinate space and using its height value as the z value.
[0067] A 4D millimeter wave radar three-dimensional target detection system provided by the present invention includes:
[0068] Module M1: collects 4D millimeter wave radar point cloud data in real time and encodes it into column features;
[0069] Module M2: Based on the column features, feature fusion is performed through the column feature encoding module to obtain enhanced column features; the bird's-eye view pseudo image is generated through the enhanced column features;
[0070] Module M3: construct a 2D convolutional network, use the 2D convolutional network to extract features of the BEV pseudo image as a bird's-eye view pseudo image, and generate a BEV feature map;
[0071] Module M4: Based on the BEV feature map, re-divide the data points of the 4D millimeter-wave radar point cloud data to generate the three-dimensional coordinate space of the 4D millimeter-wave radar point cloud;
[0072] Module M5: Encode the three-dimensional coordinate space to obtain 3D position embedding;
[0073] Module M6: Add the BEV feature map and the 3D position embedding element by element to generate an enhanced BEV feature map and input it into the region extraction network detection head to output the 3D object detection result.
[0074] Preferably, in the module M1:
[0075] Module M1.1: Collect 4D millimeter wave radar point cloud data and map it to the horizontal coordinate plane; divide the horizontal coordinate plane into grids of equal size and build columns of equal height on each grid;
[0076] Module M1.2: Perform offset calculation on the original 3D coordinates of the point cloud data points in each column to obtain the augmented features of the point cloud data points
[0077] Module M1.3: The augmented features Input the multi-layer perceptron to generate high-dimensional features F of point cloud data points p ;
[0078] Module M1.4: Use the maximum pooling operation to pool the high-dimensional features F of all point cloud data points in each column p Aggregated into a single feature vector F m , i.e., the column characteristics;
[0079] In the module M2:
[0080] The column feature encoding module includes: a global column attention network, a column feature attention network and a multi-layer perceptron network;
[0081] Module M2.1: Input the column feature into the global column attention network to generate the column global association feature, and add it to the column feature to generate the global column feature F g ;
[0082] Module M2.2: Input the column features into the column feature attention network, add the output result to the column features, and generate the column importance feature W i ;
[0083] Module M2.3: Global column feature F g , column importance feature F i The features of the pillars are added after passing through three different multi-layer perceptrons and then input into the feedforward network to achieve feature fusion; the enhanced pillar features are output and converted into a bird's-eye view pseudo image.
[0084] Preferably, in the module M1.1, there are divided point cloud data points in each column; the features of the point cloud data points are (x, y, z, v, r), which contain 5 dimensions in total; wherein (x, y, z) represents the original three-dimensional coordinates of the current cloud data point, v represents the relative radial velocity of the current data point, and r represents the echo intensity of the target;
[0085] In the module M1.2, the augmented feature is (x,y,z,v,r,x c ,y c ,z c ,x r ,y r ,z r ), a total of 11 dimensions; among them, (x c ,y c ,z c ) represents the offset between the original 3D coordinates of the current point cloud data point and the 3D coordinates of the center point of the column where it is located, (x r ,yr ,z r ) represents the offset between the original 3D coordinate of the current point cloud data point and the minimum 3D coordinate of all the point cloud data points in the column where it is located;
[0086] In the module M2.1:
[0087] Module M2.1.1: Generate column feature embedding F using linear networks for column features se ;
[0088] Module M2.1.2: Embedding Column Features F se Perform two independent linear transformations to generate query and key;
[0089] Module M2.1.3: Transpose the key, perform matrix multiplication on the query and divide by the scaling factor That is, the point multiplication operation is scaled to obtain the operation result;
[0090] Module M2.1.4: Normalize the operation results to obtain the attention weight matrix A m ;
[0091] Module M2.1.5: By the attention weight matrix A m and column feature embedding F se Multiply each element to obtain the global column-related feature, and add it to the column feature to generate the global column feature F g ;
[0092] The pillar features are embedded in F se , the mathematical expression is:
[0093] F se =φ(F m ,w se )
[0094] Where φ represents a linear transformation; F m Indicates the column characteristics; w se represents the weight of a linear transformation;
[0095] The mathematical expression of the query is:
[0096] Q s =φ(F se ,w q )
[0097] Among them, w q Represents the weight of another linear transformation; Q m Represents the query of the global pillar attention mechanism;
[0098] The mathematical expression of the key is:
[0099] K m =φ(F se ,w k )
[0100] Among them, w k Represents the weight of another linear transformation; K m The key representing the global column attention mechanism;
[0101] The attention weight matrix A m , the mathematical expression is:
[0102]
[0103] Among them, Softmax represents the normalization function; K m The transposed matrix of
[0104] The global column feature F g , the mathematical expression is:
[0105] F g =F m +A m F se
[0106] In the module M2.2:
[0107] Module M2.2.1: Generate column feature embedding F through linear network based on column features ce ;
[0108] Module M2.2.2: Embed column features into F ce After global maximum pooling, i.e. GMP and one-dimensional convolutional network Conv m Convolution and global average pooling, namely GAP and one-dimensional convolutional network Conv a Convolution, get the convolution result;
[0109] Step S2.2.3: Add the outputs of the two one-dimensional convolutional networks, that is, add the convolution results, and after passing the Sigmoid function, obtain the column feature importance score S m ;
[0110] Module M2.2.4: Assign the column feature importance score S m Embed F with column feature ce Multiply element by element and add it to the column feature to get the column importance feature F as the local important feature information of the column feature. i :
[0111] The pillar features are embedded in F ce , the mathematical expression is:
[0112] F ce =φ(F m ,w ce )
[0113] Among them, φ represents linear transformation, w ce represents the weight following a linear transformation;
[0114] The column feature importance score S m , the mathematical expression is:
[0115] S m =Sigmoid(Conv m (GMP(F ce ))+Conv a (GAP(F ce )))
[0116] The pillar importance feature F i , the mathematical expression is:
[0117] F i =F m +S m ⊙F ce
[0118] Where ⊙ represents element-by-element multiplication.
[0119] Preferably, in the module M4: by dividing the grid, the conversion between the BEV characteristic map coordinates (u, v) and the real coordinates (x, y) is realized, and the mathematical expression is:
[0120] x=(uW / x)×s
[0121] y=v×s
[0122] Where W represents the width of the BEV feature map and s represents the grid length.
[0123] Preferably, in the module M5: three-dimensional coordinates are generated by sampling a point along the height axis from each grid in the three-dimensional coordinate space and using its height value as the z value.
[0124] Preferably, the point cloud data is transmitted in real time according to Ethernet communication.
[0125] Compared with the prior art, the present invention has the following beneficial effects:
[0126] 1. The present invention adopts a spatial dual-attention feature extraction module through pillars, which utilizes the global attention of pillars to adaptively associate the spatial global context information of pillar features, and utilizes the pillar feature attention to adaptively capture the local important feature information of pillar features, outputs enhanced pillar features and converts them into a bird's-eye view pseudo image to improve the three-dimensional target detection of 4D millimeter-wave radar, and effectively enhances the feature extraction capability of sparse 4D millimeter-wave radar point cloud by adaptively associating global information.
[0127] 2. The present invention utilizes three-dimensional coordinate encoding to enhance the position perception capability of point cloud features, thereby achieving more accurate three-dimensional target detection, and can adaptively capture important local feature information, effectively suppressing the noise of 4D millimeter-wave radar point clouds.
[0128] 3. The present invention encodes the three-dimensional coordinates into the final BEV feature map to enhance the position perception capability of the point cloud features, thereby more accurately locating the predicted bounding box and achieving more precise three-dimensional target detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0129] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0130] Figure 1 It is a schematic diagram of the process provided by the present invention;
[0131] Figure 2 A schematic diagram of the model principle provided by the present invention;
[0132] Figure 3 A schematic diagram of the model principle of the column space dual attention feature extraction module provided by the present invention;
[0133] Figure 4 is a schematic diagram of a three-dimensional target detection result provided by the present invention;
[0134] Figure 5 is the algorithm evaluation index diagram provided by the present invention;
[0135] Figure 6 is an ablation experiment evaluation index diagram provided by the present invention;
[0136] Figure 7 It is an empirically optimal dual-column attention module number evaluation index diagram provided by the present invention. DETAILED DESCRIPTION
[0137] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0138] The present invention aims to extract the spatial global features of point clouds through a dual attention network while suppressing point cloud noise, enhance the model's feature extraction capability for sparse and noisy point clouds, and enhance the position perception capability of point cloud features using three-dimensional coordinate encoding, thereby achieving more accurate three-dimensional target detection.
[0139] According to the present invention, a 4D millimeter wave radar three-dimensional target detection method is provided, such as Figure 1 As shown, including:
[0140] Step S1: collect 4D millimeter wave radar point cloud data in real time, and encode the collected data into column features through the column feature encoding module.
[0141] As a preferred embodiment of the present invention, in order to make a fair and convenient comparison with the existing 4D millimeter-wave radar detection method, the 4D millimeter-wave radar point cloud dataset used in this scheme is Astyx HiRes2019.
[0142] Preferably, the point cloud data is transmitted in real time according to Ethernet communication.
[0143] As a preferred implementation manner of the present invention, the object for target detection in this solution is a car.
[0144] As a preferred embodiment of the present invention, the specific implementation process of the column feature coding module described in step S1 is:
[0145] Step S1.1: Map the collected 4D millimeter wave radar point cloud data to a horizontal coordinate plane, divide the horizontal coordinate plane into grids of equal size, and establish columns of equal height on each grid;
[0146] Specifically, the length, width and height of the column used when dividing the 4D millimeter wave radar point cloud is in the form of [0.16m, 0.16m, 4m].
[0147] Specifically, in the step S1.1, there are divided point cloud data points in each column; the characteristics of each point cloud data point are (x, y, z, v, r), which contains a total of 5 dimensions; among them, (x, y, z) represents the original three-dimensional coordinates of the current data point, v represents the relative radial velocity of the current data point, and r represents the echo intensity of the target.
[0148] Step S1.2: Perform offset calculation on the original 3D coordinates of the point cloud data points in each column to obtain the augmented features of the point cloud data points
[0149] Specifically, the augmented features in step S1.2 is (x,y,z,v,r,x c ,y c ,z c ,x r ,y r ,z r ), a total of 11 dimensions; among them, (x c ,y c ,z c ) represents the offset between the original 3D coordinates of the current point cloud data point and the 3D coordinates of the center point of the column where it is located, (x r ,y r ,z r ) represents the offset between the original 3D coordinates of the current point cloud data point and the minimum 3D coordinates of all the point cloud data points in the column where it is located.
[0150] Step S1.3: The augmented features Input the multi-layer perceptron to generate high-dimensional features F of point cloud data points p ;
[0151] Step S1.4: Use the maximum pooling operation to pool the high-dimensional features F of all point cloud data points in each column. p Aggregated into a single feature vector F m , i.e., the pillar features described in step S1.
[0152] Step S2: Through the column spatial dual-attention feature extraction module, the column global attention is used to adaptively associate the spatial global context information of the column features, and the column feature attention is used to adaptively capture the local important feature information of the column features, output the enhanced column features and convert them into a bird's-eye view pseudo image, namely bird's-eye-view, BEV; the spatial global context information refers to the association and relationship of the column features in the entire spatial range, including the relative position and distance between any column and other columns, and the interaction between them.
[0153] Further, specifically, the column space dual attention feature extraction module described in step S2 includes: a global column attention network, a column feature attention network and a multi-layer perceptron network. The global column attention network is a specific network architecture for applying column global attention; the column feature attention network is a specific network architecture for applying column feature attention. Furthermore, the column global attention is a mechanism, the core idea of which is to adaptively associate the spatial global context information of column features through self-attention; the column feature attention is also a mechanism, the core idea of which is to adaptively capture the local important feature information of column features through a channel attention.
[0154] As a preferred embodiment of the present invention, the specific implementation process of step S2 is:
[0155] Step S2.1: Input the column feature into the global column attention network to generate the column global association feature, and add it to the column feature to generate the global column feature;
[0156] Specifically, in step S2.1:
[0157] Step S2.1.1: Generate column feature embedding F using a linear network for column features se ;
[0158] Step S2.1.2: Embed the column features F se Two independent linear transformations are performed to generate query and key respectively; that is, query and key are the results of two independent linear transformations and have no order relationship.
[0159] Step S2.1.3: Transpose the key, perform matrix multiplication on the query and divide by the scaling factor That is, the point multiplication operation is scaled to obtain the operation result;
[0160] Step S2.1.4: Normalize the operation results to obtain the attention weight matrix A m ;
[0161] Step S2.1.5: By the attention weight matrix A m and column feature embedding F se Multiply each element to obtain the global column-related feature, and add it to the column feature to generate the global column feature F g ;
[0162] The pillar features are embedded in F se , the mathematical expression is:
[0163] F se =φ(F m ,wse )
[0164] Where φ represents a linear transformation; F m Indicates the column characteristics; w se represents the weight of a linear transformation;
[0165] The mathematical expression of the query is:
[0166] Q m =φ(F se ,w q )
[0167] Among them, w q Represents the weight of another linear transformation; Q m Represents the query of the global pillar attention mechanism;
[0168] The mathematical expression of the key is:
[0169] K m =φ(F se ,w k )
[0170] Among them, w k Represents the weight of another linear transformation; K m The key representing the global column attention mechanism;
[0171] The attention weight matrix A m , the mathematical expression is:
[0172]
[0173] Among them, Softmax represents the normalization function; K m The transposed matrix of
[0174] The global column feature F g , the mathematical expression is:
[0175] F g =F m +A m F se
[0176] Step S2.2: Input the column feature into the column feature attention network, and add the output result to the column feature to generate the column importance feature F i ;
[0177] As a preferred embodiment of the present invention, the specific implementation process of step S2.2 is:
[0178] Step S2.2.1: Based on the column features, generate column feature embedding F through a linear network ce ;
[0179] Step S2.2.2: Embed the column feature into F ce After global maximum pooling, namely Global MaxPooling, GMP and one-dimensional convolutional network Conv m Convolution and global average pooling, namely Global AveragePooling, GAP and one-dimensional convolutional network Conv a Convolution, get the convolution result;
[0180] Step S2.2.3: Add the outputs of the two one-dimensional convolutional networks, that is, add the convolution results, and after passing the Sigmoid function, obtain the column feature importance score S m ;
[0181] Step S2.2.4: The column feature importance score S m Embed F with column feature ce Multiply element by element and add it to the column feature to get the column importance feature F i ;
[0182] The pillar features are embedded in F ce , the mathematical expression is:
[0183] F ce =φ(F m ,w ce )
[0184] Among them, φ represents linear transformation, w ce represents the weight following a linear transformation;
[0185] The column feature importance score S m , the mathematical expression is:
[0186] S m =Sigmoid(Conv m (GMP(F ce ))+Conv a (GAP(F ce )))
[0187] The pillar importance feature F i , the mathematical expression is:
[0188] F i =F m +S m ⊙F ce
[0189] Among them, ⊙ represents element-by-element multiplication;
[0190] Step S2.3: Set the global column feature F g , column importance feature F i The features of the image and the pillars are added after passing through three different multi-layer perceptrons, and then input into the feed-forward network to achieve feature fusion; the enhanced pillar features are output and converted into a bird's-eye-view pseudo image, namely bird's-eye-view, BEV;
[0191] Step S3: constructing a 2D convolutional network, and using the 2D convolutional backbone network to extract features of the BEV pseudo image as a bird's-eye view pseudo image to generate a BEV feature map;
[0192] Step S4: based on the generated BEV feature map, re-dividing the point cloud to generate a three-dimensional coordinate space of the 4D radar point cloud;
[0193] Specifically, in step S4, the conversion between the BEV characteristic map coordinates (u, v) and the real coordinates (x, y) is achieved by grid division, and the mathematical expression is:
[0194] x=(uW / x)×s
[0195] y=v×s
[0196] Among them, W represents the width of the feature map and s represents the grid length.
[0197] Step S5: construct a three-dimensional coordinate encoding module to encode the generated three-dimensional coordinate space to obtain 3D position embedding;
[0198] More specifically, in step S5, the calculation is simplified by sampling a point along the height axis from each grid in the three-dimensional coordinate space and then using its height value as the z value to generate the three-dimensional coordinates.
[0199] Step S6: Add the BEV feature map and the 3D position embedding element by element to generate an enhanced BEV feature map and input it into the region proposal network detection head, i.e., Region Proposal Network, RPN, to output the final 3D object detection result.
[0200] The present invention realizes 3D target detection based on 4D millimeter wave radar, and the test shows that the 3D target detection accuracy of this method is high, and it is better than the most advanced method RPFA-Net in terms of 3D average accuracy index and BEV average accuracy index. The specific performance parameters are compared in Figure 5The 4D millimeter wave radar point cloud 3D target detection method based on dual attention network in this embodiment realizes adaptive feature association, adaptive noise suppression and position perception enhancement of sparse point cloud features, and has the characteristics of strong feature extraction capability, good noise adaptive suppression effect and high position perception accuracy. The specific performance parameters are compared in Figure 4 , Figure 6 , Figure 7 Due to the robustness of millimeter wave radar to bad weather and its low cost, the present invention has great value for practical applications.
[0201] The present invention also provides a 4D millimeter wave radar three-dimensional target detection system, which can be implemented by executing the process steps of the 4D millimeter wave radar three-dimensional target detection method, that is, those skilled in the art can understand the 4D millimeter wave radar three-dimensional target detection method as a preferred implementation of the 4D millimeter wave radar three-dimensional target detection system.
[0202] A 4D millimeter wave radar three-dimensional target detection system provided by the present invention includes:
[0203] Module M1: collects 4D millimeter wave radar point cloud data in real time and encodes it into column features;
[0204] Module M2: Based on the column features, feature fusion is performed through the column feature encoding module to obtain enhanced column features; the bird's-eye view pseudo image is generated through the enhanced column features;
[0205] Module M3: construct a 2D convolutional network, use the 2D convolutional network to extract features of the BEV pseudo image as a bird's-eye view pseudo image, and generate a BEV feature map;
[0206] Module M4: Based on the BEV feature map, re-divide the data points of the 4D millimeter-wave radar point cloud data to generate the three-dimensional coordinate space of the 4D millimeter-wave radar point cloud;
[0207] Module M5: Encode the three-dimensional coordinate space to obtain 3D position embedding;
[0208] Module M6: Add the BEV feature map and the 3D position embedding element by element to generate an enhanced BEV feature map and input it into the region extraction network detection head to output the 3D object detection result.
[0209] Those skilled in the art know that, in addition to realizing the system and its various devices, modules, and units provided by the present invention in a purely computer-readable program code, it is entirely possible to realize the same functions in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system and its various devices, modules, and units provided by the present invention can be considered as a hardware component, and the devices, modules, and units included therein for realizing various functions can also be regarded as structures within the hardware component; the devices, modules, and units for realizing various functions can also be regarded as both software modules for realizing the method and structures within the hardware component.
[0210] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
Claims
1. A 4D millimeter wave radar three-dimensional target detection method, It is characterized in that include: Step S1: collect 4D millimeter wave radar point cloud data in real time and encode it into column features; Step S2: Based on the pillar features, feature fusion is performed through a pillar feature encoding module to obtain enhanced pillar features; and a bird's-eye view pseudo image is generated through the enhanced pillar features; Step S3: constructing a 2D convolutional network, and using the 2D convolutional network to extract features of the BEV pseudo image as a bird's-eye view pseudo image to generate a BEV feature map; Step S4: based on the BEV feature map, re-dividing the data points of the 4D millimeter-wave radar point cloud data to generate a three-dimensional coordinate space of the 4D millimeter-wave radar point cloud; Step S5: Encode the three-dimensional coordinate space to obtain 3D position embedding; Step S6: Add the BEV feature map and the 3D position embedding element by element to generate an enhanced BEV feature map and input it into the region extraction network detection head to output the three-dimensional object detection result.
2. The 4D millimeter wave radar three-dimensional target detection method according to claim 1, It is characterized in that In step S1: Step S1.1: Collect 4D millimeter wave radar point cloud data and map it to a horizontal coordinate plane; divide the horizontal coordinate plane into grids of equal size and establish columns of equal height on each grid; Step S1.2: Perform offset calculation on the original 3D coordinates of the point cloud data points in each column to obtain the augmented features of the point cloud data points Step S1.3: The augmented features Input the multi-layer perceptron to generate high-dimensional features F of point cloud data points p ; Step S1.4: Use the maximum pooling operation to pool the high-dimensional features F of all point cloud data points in each column. p Aggregated into a single feature vector F m , i.e., the column characteristics; In step S2: The column feature encoding module includes: a global column attention network, a column feature attention network and a multi-layer perceptron network; Step S2.1: Input the column feature into the global column attention network to generate the column global association feature, and add it to the column feature to generate the global column feature F g ; Step S2.2: Input the column feature into the column feature attention network, add the output result to the column feature, and generate the column importance feature F i ; Step S2.3: Set the global column feature F g , column importance feature F i The features of the pillars are added after passing through three different multi-layer perceptrons and then input into the feedforward network to achieve feature fusion; the enhanced pillar features are output and converted into a bird's-eye view pseudo image.
3. The 4D millimeter wave radar three-dimensional target detection method according to claim 2, It is characterized in that In step S1.1, there are divided point cloud data points in each column; the features of the point cloud data points are (x, y, z, v, r), which contain 5 dimensions in total; where (x, y, z) represents the original three-dimensional coordinates of the current cloud data point, v represents the relative radial velocity of the current data point, and r represents the echo intensity of the target; In step S1.2, the augmented feature is (x,y,z,v,r,x c ,y c ,z c ,x r ,y r ,z r ), a total of 11 dimensions; among them, (x c ,y c ,z c ) represents the offset between the original 3D coordinates of the current point cloud data point and the 3D coordinates of the center point of the column where it is located, (x r ,y r ,z r ) represents the offset between the original 3D coordinate of the current point cloud data point and the minimum 3D coordinate of all the point cloud data points in the column where it is located; In step S2.1: Step S2.1.1: Generate column feature embedding F using a linear network for column features se ; Step S2.1.2: Embed the column features F se Perform two independent linear transformations to generate query and key; Step S2.1.3: Transpose the key, perform matrix multiplication on the query and divide by the scaling factor That is, the point multiplication operation is scaled to obtain the operation result; Step S2.1.4: Normalize the operation results to obtain the attention weight matrix A m ; Step S2.1.5: By the attention weight matrix A m and column feature embedding F se Multiply each element to obtain the global column-related feature, and add it to the column feature to generate the global column feature F g ; The pillar features are embedded in F se , the mathematical expression is: F se =φ(F m ,w se ) Where φ represents a linear transformation; F m Indicates the column characteristics; w se represents the weight of a linear transformation; The mathematical expression of the query is: Q m =φ(F se ,w q ) Among them, w q Represents the weight of another linear transformation; Q m Represents the query of the global pillar attention mechanism; The mathematical expression of the key is: K m =φ(F se ,w k ) Among them, w k Represents the weight of another linear transformation; K m The key representing the global column attention mechanism; The attention weight matrix A m , the mathematical expression is: Among them, Softmax represents the normalization function; K m The transposed matrix of The global column feature F g , the mathematical expression is: F g =F m +A m F se In step S2.2: Step S2.2.1: Based on the column features, generate column feature embedding F through a linear network ce ; Step S2.2.2: Embed the column feature into F ce After global maximum pooling, i.e. GMP and one-dimensional convolutional network Conv m Convolution and global average pooling, namely GAP and one-dimensional convolutional network Conv a Convolution, get the convolution result; Step S2.2.3: Add the outputs of the two one-dimensional convolutional networks, that is, add the convolution results, and after passing the Sigmoid function, obtain the column feature importance score S m ; Step S2.2.4: The column feature importance score S m Embed F with column feature ce Multiply element by element and add it to the column feature to get the column importance feature F as the local important feature information of the column feature. i : The pillar features are embedded in F ce , the mathematical expression is: F ce =φ(F m ,w ce ) Among them, φ represents linear transformation, w ce represents the weight following a linear transformation; The column feature importance score S m , the mathematical expression is: S m =Sigmoid(Conv m (GMP(F ce ))+Conv a (GAP(F ce ))) The pillar importance feature F i , the mathematical expression is: F i =F m +S m ⊙F ce Among them, ⊙ represents element-by-element multiplication.
4. The 4D millimeter wave radar three-dimensional target detection method according to claim 3, It is characterized in that In step S4: by dividing the grid, the conversion between the BEV characteristic map coordinates (u, v) and the real coordinates (x, y) is realized, and the mathematical expression is: x=(uW / x)×s y=v×s Where W represents the width of the BEV feature map and s represents the grid length.
5. The 4D millimeter wave radar three-dimensional target detection method according to claim 4, It is characterized in that In step S5: a three-dimensional coordinate is generated by sampling a point along the height axis from each grid in the three-dimensional coordinate space and using its height value as the z value.
6. A 4D millimeter wave radar three-dimensional target detection system, It is characterized in that include: Module M1: collects 4D millimeter wave radar point cloud data in real time and encodes it into column features; Module M2: Based on the column features, feature fusion is performed through the column feature encoding module to obtain enhanced column features; the bird's-eye view pseudo image is generated through the enhanced column features; Module M3: construct a 2D convolutional network, use the 2D convolutional network to extract features of the BEV pseudo image as a bird's-eye view pseudo image, and generate a BEV feature map; Module M4: Based on the BEV feature map, re-divide the data points of the 4D millimeter-wave radar point cloud data to generate the three-dimensional coordinate space of the 4D millimeter-wave radar point cloud; Module M5: Encode the three-dimensional coordinate space to obtain 3D position embedding; Module M6: Add the BEV feature map and the 3D position embedding element by element to generate an enhanced BEV feature map and input it into the region extraction network detection head to output the 3D object detection result.
7. The 4D millimeter wave radar three-dimensional target detection system according to claim 6, It is characterized in that In the module M1: Module M1.1: Collect 4D millimeter wave radar point cloud data and map it to the horizontal coordinate plane; divide the horizontal coordinate plane into grids of equal size and build columns of equal height on each grid; Module M1.2: Perform offset calculation on the original 3D coordinates of the point cloud data points in each column to obtain the augmented features of the point cloud data points Module M1.3: The augmented features Input the multi-layer perceptron to generate high-dimensional features F of point cloud data points p ; Module M1.4: Use the maximum pooling operation to pool the high-dimensional features F of all point cloud data points in each column p Aggregated into a single feature vector F m , i.e., the column characteristics; In the module M2: The column feature encoding module includes: a global column attention network, a column feature attention network and a multi-layer perceptron network; Module M2.1: Input the column feature into the global column attention network to generate the column global association feature, and add it to the column feature to generate the global column feature F g ; Module M2.2: Input the column features into the column feature attention network, add the output result to the column features, and generate the column importance feature F i ; Module M2.3: Global column feature F g , column importance feature F i The features of the pillars are added after passing through three different multi-layer perceptrons and then input into the feedforward network to achieve feature fusion; the enhanced pillar features are output and converted into a bird's-eye view pseudo image.
8. The 4D millimeter wave radar three-dimensional target detection system according to claim 7, It is characterized in that In the module M1.1, there are divided point cloud data points in each column; the features of the point cloud data points are (x, y, z, v, r), which contain 5 dimensions in total; where (x, y, z) represents the original three-dimensional coordinates of the current cloud data point, v represents the relative radial velocity of the current data point, and r represents the echo intensity of the target; In the module M1.2, the augmented feature is (x,y,z,v,r,x c ,y c ,z c ,x r ,y r ,z r ), a total of 11 dimensions; among them, (x c ,y c ,z c ) represents the offset between the original 3D coordinates of the current point cloud data point and the 3D coordinates of the center point of the column where it is located, (x r ,y r ,z r ) represents the offset between the original 3D coordinate of the current point cloud data point and the minimum 3D coordinate of all the point cloud data points in the column where it is located; In the module M2.1: Module M2.1.1: Generate column feature embedding F using linear networks for column features se ; Module M2.1.2: Embedding Column Features F se Perform two independent linear transformations to generate query and key; Module M2.1.3: Transpose the key, perform matrix multiplication on the query and divide by the scaling factor That is, the point multiplication operation is scaled to obtain the operation result; Module M2.1.4: Normalize the operation results to obtain the attention weight matrix A m ; Module M2.1.5: Attention weight matrix A m and column feature embedding F se Multiply each element to obtain the global column-related feature, and add it to the column feature to generate the global column feature F g ; The pillar features are embedded in F se , the mathematical expression is: F se =φ(F m ,w se ) Where φ represents a linear transformation; F m Indicates the column characteristics; w se represents the weight of a linear transformation; The mathematical expression of the query is: Q m =φ(F se ,w q ) Among them, w q Represents the weight of another linear transformation; Q m Represents the query of the global pillar attention mechanism; The mathematical expression of the key is: K m =φ(F se ,w k ) Among them, w k Represents the weight of another linear transformation; K m The key representing the global column attention mechanism; The attention weight matrix A m , the mathematical expression is: Among them, Softmax represents the normalization function; K m The transposed matrix of The global column feature F g , the mathematical expression is: F g =F m +A m F se In the module M2.2: Module M2.2.1: Generate column feature embedding F through linear network based on column features ce ; Module M2.2.2: Embed column features into F ce After global maximum pooling, i.e. GMP and one-dimensional convolutional network Conv m Convolution and global average pooling, namely GAP and one-dimensional convolutional network Conv a Convolution, get the convolution result; Step S2.2.3: Add the outputs of the two one-dimensional convolutional networks, that is, add the convolution results, and after passing the Sigmoid function, obtain the column feature importance score S m ; Module M2.2.4: Assign the column feature importance score S m Embed F with column feature ce Multiply element by element and add it to the column feature to get the column importance feature F as the local important feature information of the column feature. i : The pillar features are embedded in F ce , the mathematical expression is: F ce =φ(F m ,w ce ) Among them, φ represents linear transformation, w ce represents the weight following a linear transformation; The column feature importance score S m , the mathematical expression is: S m =Sigmoid(Conv m (GMP(F ce ))+Conv a (GAP(F ce ))) The pillar importance feature F i , the mathematical expression is: F i =F m +S m ⊙F ce Among them, ⊙ represents element-by-element multiplication.
9. The 4D millimeter wave radar three-dimensional target detection system according to claim 8, It is characterized in that In the module M4: by dividing the grid, the conversion between the BEV characteristic map coordinates (u, v) and the real coordinates (x, y) is realized, and the mathematical expression is: x=(uW / x)×s y=v×s Where W represents the width of the BEV feature map and s represents the grid length.
10. The 4D millimeter wave radar three-dimensional target detection system according to claim 9, It is characterized in that In the module M5: a three-dimensional coordinate is generated by sampling a point along the height axis from each grid in the three-dimensional coordinate space and using its height value as the z value.
Citation Information
Patent Citations
Data fusion method and device, vehicle and storage medium
CN116363615A
3D target detection method based on 4D millimeter wave radar point cloud
CN116486396A
Laser radar target detection method based on space-time attention mechanism
CN116626701A
Fusion 3D target detection method based on 4D millimeter wave radar and image
CN117274749A
Cited By
Three-dimensional target detection method and device, storage medium and electronic equipment
CN118887661A
4D millimeter wave radar target detection method and device based on global relation perception
CN119270249A
