A lidar target detection method and device based on point cloud set attention
By combining the point cloud ensemble attention module and the density-aware pooling module, the problem of insufficient utilization of point cloud density information is solved, which improves the accuracy and speed of LiDAR target detection, especially in the detection of small targets at a distance and occluded objects.
Patent Information
- Application Number
- CN202311255708.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-26
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-09-26
AI Technical Summary
Existing methods struggle to effectively utilize point cloud density information in lidar target detection, resulting in insufficient information exchange or excessive computational load, particularly in detecting small targets at a distance and occluded objects.
A LiDAR target detection method based on point cloud ensemble attention is adopted. Through a point cloud ensemble attention module, a bird's-eye view detection module, a density-aware pooling module, and a classification and regression detection head module, feature extraction and fusion are performed using point cloud density information, which reduces the amount of computation and improves the detection accuracy.
It improves the accuracy and speed of lidar target detection, especially in the detection of small targets at a distance and occluded objects, and enhances environmental perception capabilities.
Smart Images

Figure CN117392662B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer vision technology, and in particular to a lidar target detection method and apparatus based on point cloud ensemble attention. Background Technology
[0002] 3D object detection is crucial in many applications, particularly in autonomous driving, medical image processing, and virtual reality. Compared to 2D object detection, 3D object detection can detect richer spatial information about objects in the environment, such as length, width, height, and rotation angles, enhancing environmental perception and localization capabilities. LiDAR is one of the main sensors for 3D object detection, overcoming the limitations of image sensors. LiDAR collects point cloud data and processes it to obtain high-precision distance measurements and 3D coordinate information. It performs exceptionally well in low-light conditions and can detect transparent obstacles, possessing superior multi-target resolution.
[0003] Attention mechanisms have demonstrated good performance in many 2D vision tasks. However, due to the long sequence and uneven spatial distribution of point clouds, computing self-attention on large-scale point cloud data is extremely difficult. Existing methods typically divide point clouds into clusters of equal size. When calculating similarity, symmetry restricts information interaction between different locations, which may lead to insufficient or redundant information. Alternatively, voxelization is used to perform convolutional attention in discrete space. However, this approach cannot simultaneously satisfy the requirements of expanding the receptive field of convolution and reducing computational cost. Introducing attention mechanisms with minimal increase in computation remains a challenge.
[0004] The density of point clouds acquired by lidar varies with the distance between the target and the radar; the point cloud density is high at close range and low at long range, making the detection of small targets at a distance more difficult. Furthermore, in lidar target detection, different targets, such as people and vehicles, exhibit different densities in the point cloud data. By analyzing the density information in the point cloud, the boundaries and positions of targets and objects can be determined more accurately, thereby improving detection accuracy. In addition, point cloud density information can be used to detect occluded objects, providing a more comprehensive environmental perception. Summary of the Invention
[0005] This invention addresses the problem of reducing computational load while introducing an attention mechanism and making full use of point cloud density information.
[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution:
[0007] On one hand, this invention provides a lidar target detection method based on point cloud ensemble attention, which is implemented by an electronic device and includes:
[0008] S1. Obtain the 3D point cloud data of the target to be detected.
[0009] S2. Input the 3D point cloud data into the constructed LiDAR target detection model based on point cloud ensemble attention; wherein, the LiDAR target detection model includes a point cloud ensemble attention module, a bird's-eye view detection module, a density-aware pooling module, and a classification and regression detection head module.
[0010] S3. Based on the 3D point cloud data, the point cloud ensemble attention module, the bird's-eye view detection module, the density-aware pooling module, and the classification and regression detection head module, obtain the target detection results.
[0011] Optionally, acquiring the 3D point cloud data of the target to be detected in S1 includes:
[0012] S11. Acquire three-dimensional point cloud data of the target to be detected using a lidar sensor; wherein the three-dimensional point cloud data includes location information.
[0013] S12. Based on the preset coordinate range, delete the point cloud data that exceeds the coordinate range in the 3D point cloud data to obtain the deleted 3D point cloud data.
[0014] Optionally, S3 obtains target detection results based on 3D point cloud data, a point cloud ensemble attention module, a bird's-eye view detection module, a density-aware pooling module, and a classification and regression detection head module, including:
[0015] S31. Use the point cloud ensemble attention module to extract features from the 3D point cloud data to obtain 2D bird's-eye view data.
[0016] S32. Use the bird's-eye view detection module to extract the region of interest from the two-dimensional bird's-eye view data to obtain the initial proposal box data.
[0017] S33. Use the density-aware pooling module to perform feature fusion on the initial proposal box data to obtain density-aware features.
[0018] S34. For density-aware features, obtain target detection results through the classification and regression detection head module.
[0019] Optionally, the point cloud ensemble attention module in S31 performs feature extraction on the 3D point cloud data to obtain 2D bird's-eye view data, including:
[0020] S311. Input encoding is performed on the 3D point cloud data to obtain the input feature vector.
[0021] S312. Input the input feature vector sequentially into the first feature attention module, the second feature attention module, the third feature attention module, and the fourth feature attention module to obtain the output F1 of the first feature attention module, the output F2 of the second feature attention module, the output F3 of the third feature attention module, and the output F4 of the fourth feature attention module.
[0022] S313. Divide the output F4 of the fourth feature attention module into grids according to the coordinate index to obtain multiple grids, each grid representing a column; wherein, the column contains local point cloud information.
[0023] S314. Project the column onto the plane to obtain two-dimensional bird's-eye view data.
[0024] Optionally, in S312, inputting the input feature vector into the first feature attention module to obtain the output F1 of the first feature attention module includes:
[0025] S3121. Add the input feature vector to the spatial location embedding feature of the 3D point cloud data, linearly project the added feature onto the low-dimensional feature, and encode the hidden feature through a self-attention mechanism.
[0026] S3122. Obtain highly semantic features from hidden features using a feedforward neural network.
[0027] S3123. Decode the highly semantic features using a multi-head attention mechanism to obtain the output F1 of the first feature attention module.
[0028] Optionally, the bird's-eye view detection module in S32 extracts the region of interest from the two-dimensional bird's-eye view data to obtain initial proposal box data, including:
[0029] S321. Perform two downsampling operations on the two-dimensional bird's-eye view data to obtain the first downsampling feature F. C1 Second downsampling feature F C2 .
[0030] S322. Using the deconvolution module, respectively process the first downsampled feature F C1 Second downsampling feature F C2 Upsampling is performed to obtain a first upsampling result and a second upsampling result. The first upsampling result and the second upsampling result are then concatenated to obtain a two-dimensional feature map.
[0031] S323. Perform linear regression on the two-dimensional feature map, and obtain the initial proposal box data through classification prediction and localization prediction.
[0032] Optionally, the density-aware pooling module in S33 performs feature fusion on the initial proposal box data to obtain density-aware features, including:
[0033] S331. Perform non-maximum suppression on the initial proposal box data, retain a preset number of high-quality proposal boxes, and uniformly sample the high-quality proposal boxes to obtain multiple grid points for each high-quality proposal box.
[0034] S332. Based on multiple grid points, voxel query is performed on the output F4 of the fourth feature attention module to extract the point density features in the grid where each grid point is located. The point density features are used as offsets to obtain the features of each grid point through a self-attention mechanism. The features of multiple grid points of each high-quality proposal box are pooled to obtain the first proposal box feature Fg1.
[0035] S333. Based on multiple grid points, voxel query is performed on the output F3 of the third feature attention module to obtain the second proposal box feature Fg2.
[0036] S334. Perform feature fusion on the first proposal box feature Fg1 and the second proposal box feature Fg2 to obtain density-aware features.
[0037] Optionally, the density-aware features in S34, through the classification and regression detection head module, yield target detection results, including:
[0038] Linear regression is performed on density-aware features, and target detection and classification results are obtained through classification prediction, localization prediction, and angle prediction.
[0039] On the other hand, the present invention provides a lidar target detection device based on point cloud ensemble attention, which is used to implement a lidar target detection method based on point cloud ensemble attention. The device includes:
[0040] The acquisition module is used to acquire the 3D point cloud data of the target to be detected.
[0041] The input module is used to input 3D point cloud data into the constructed LiDAR target detection model based on point cloud ensemble attention; the LiDAR target detection model includes a point cloud ensemble attention module, a bird's-eye view detection module, a density-aware pooling module, and a classification and regression detection head module.
[0042] The output module is used to obtain target detection results based on 3D point cloud data, point cloud ensemble attention module, bird's-eye view detection module, density-aware pooling module, and classification and regression detection head module.
[0043] Optionally, the acquisition module is further used for:
[0044] S11. Acquire three-dimensional point cloud data of the target to be detected using a lidar sensor; wherein the three-dimensional point cloud data includes location information.
[0045] S12. Based on the preset coordinate range, delete the point cloud data that exceeds the coordinate range in the 3D point cloud data to obtain the deleted 3D point cloud data.
[0046] Optionally, the output module is further used for:
[0047] S31. Use the point cloud ensemble attention module to extract features from the 3D point cloud data to obtain 2D bird's-eye view data.
[0048] S32. Use the bird's-eye view detection module to extract the region of interest from the two-dimensional bird's-eye view data to obtain the initial proposal box data.
[0049] S33. Use the density-aware pooling module to perform feature fusion on the initial proposal box data to obtain density-aware features.
[0050] S34. For density-aware features, obtain target detection results through the classification and regression detection head module.
[0051] Optionally, the output module is further used for:
[0052] S311. Input encoding is performed on the 3D point cloud data to obtain the input feature vector.
[0053] S312. Input the input feature vector sequentially into the first feature attention module, the second feature attention module, the third feature attention module, and the fourth feature attention module to obtain the output F1 of the first feature attention module, the output F2 of the second feature attention module, the output F3 of the third feature attention module, and the output F4 of the fourth feature attention module.
[0054] S313. Divide the output F4 of the fourth feature attention module into grids according to the coordinate index to obtain multiple grids, each grid representing a column; wherein, the column contains local point cloud information.
[0055] S314. Project the column onto the plane to obtain two-dimensional bird's-eye view data.
[0056] Optionally, the output module is further used for:
[0057] S3121. Add the input feature vector to the spatial location embedding feature of the 3D point cloud data, linearly project the added feature onto the low-dimensional feature, and encode the hidden feature through a self-attention mechanism.
[0058] S3122. Obtain highly semantic features from hidden features using a feedforward neural network.
[0059] S3123. Decode the highly semantic features using a multi-head attention mechanism to obtain the output F1 of the first feature attention module.
[0060] Optionally, the output module is further used for:
[0061] S321. Perform two downsampling operations on the two-dimensional bird's-eye view data to obtain the first downsampling feature F. C1 Second downsampling feature F C2 .
[0062] S322. Using the deconvolution module, respectively process the first downsampled feature F C1 Second downsampling feature F C2 Upsampling is performed to obtain a first upsampling result and a second upsampling result. The first upsampling result and the second upsampling result are then concatenated to obtain a two-dimensional feature map.
[0063] S323. Perform linear regression on the two-dimensional feature map, and obtain the initial proposal box data through classification prediction and localization prediction.
[0064] Optionally, the output module is further used for:
[0065] S331. Perform non-maximum suppression on the initial proposal box data, retain a preset number of high-quality proposal boxes, and uniformly sample the high-quality proposal boxes to obtain multiple grid points for each high-quality proposal box.
[0066] S332. Based on multiple grid points, voxel query is performed on the output F4 of the fourth feature attention module to extract the point density features in the grid where each grid point is located. The point density features are used as offsets to obtain the features of each grid point through a self-attention mechanism. The features of multiple grid points of each high-quality proposal box are pooled to obtain the first proposal box feature Fg1.
[0067] S333. Based on multiple grid points, voxel query is performed on the output F3 of the third feature attention module to obtain the second proposal box feature Fg2.
[0068] S334. Perform feature fusion on the first proposal box feature Fg1 and the second proposal box feature Fg2 to obtain density-aware features.
[0069] Optionally, the output module is further used for:
[0070] Linear regression is performed on density-aware features, and target detection and classification results are obtained through classification prediction, localization prediction, and angle prediction.
[0071] On the one hand, an electronic device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, which is loaded and executed by the processor to implement the above-described lidar target detection method based on point cloud ensemble attention.
[0072] On the one hand, a computer-readable storage medium is provided, wherein at least one instruction is stored in the storage medium, and the at least one instruction is loaded and executed by a processor to implement the above-described lidar target detection method based on point cloud ensemble attention.
[0073] The above technical solution has at least the following advantages compared with the existing technology:
[0074] The above scheme provides a LiDAR target detection method based on point cloud ensemble attention. It reduces the dimensionality of point cloud feature data through a linear layer, decreasing the computational cost of the attention mechanism and improving the target detection speed. A density-aware pooling module is proposed, incorporating density features into the pooling process of the proposal box grid points. This fully utilizes point cloud density information, and a self-attention mechanism is used to further fine-tune the initial proposal box, improving the network's target localization capability. This invention effectively improves the accuracy and speed of LiDAR target detection. Attached Figure Description
[0075] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0076] Figure 1 This is a schematic diagram of the LiDAR target detection method based on point cloud ensemble attention provided in an embodiment of the present invention;
[0077] Figure 2 This is a schematic diagram of the structure of the point cloud ensemble attention module provided in an embodiment of the present invention;
[0078] Figure 3 This is a schematic diagram of the density-aware pooling module provided in an embodiment of the present invention;
[0079] Figure 4 This is a block diagram of a lidar target detection device based on point cloud ensemble attention provided in an embodiment of the present invention;
[0080] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0081] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the described embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0082] like Figure 1 As shown, this embodiment of the invention provides a lidar target detection method based on point cloud ensemble attention, which can be implemented by an electronic device. Figure 1 The flowchart shown is for a LiDAR target detection method based on point cloud ensemble attention. The processing flow of this method may include the following steps:
[0083] S1. Obtain the 3D point cloud data of the target to be detected.
[0084] Optionally, step S1 above may include the following steps S11-S12:
[0085] S11. Acquire three-dimensional point cloud data of the target to be detected using a lidar sensor; wherein the three-dimensional point cloud data includes location information.
[0086] In one feasible implementation, a lidar sensor is used to collect three-dimensional point cloud data of the road, which includes information about vehicles, pedestrians and the background, and records their precise positions in three-dimensional space.
[0087] S12. Based on the preset coordinate range, delete the point cloud data that exceeds the coordinate range in the 3D point cloud data to obtain the deleted 3D point cloud data.
[0088] In one feasible implementation, a coordinate range is set to limit the position of the point cloud data in three-dimensional space, wherein: the x-axis range is from 0 meters to 69.12 meters; the y-axis range is from -39.68 meters to 39.68 meters; the z-axis range is from -3 meters to 1 meter, and point cloud data that exceeds the range is deleted.
[0089] S2. Input the 3D point cloud data into the constructed LiDAR target detection model based on point cloud ensemble attention.
[0090] The lidar target detection model includes a point cloud ensemble attention module, a bird's-eye view detection module, a density-aware pooling module, and a classification and regression detection head module.
[0091] S3. Based on the 3D point cloud data, the point cloud ensemble attention module, the bird's-eye view detection module, the density-aware pooling module, and the classification and regression detection head module, obtain the target detection results.
[0092] Optionally, step S3 above may include the following steps S31-S34:
[0093] S31. Using a point cloud ensemble attention module, feature extraction is performed on the 3D point cloud data to obtain a 2D bird's-eye view. The model structure of the point cloud ensemble attention module is as follows: Figure 2 As shown.
[0094] Optionally, step S31 above may include the following steps S311-S314:
[0095] S311. Input encoding is performed on the 3D point cloud data to obtain a 16-dimensional input feature vector.
[0096] S312. Perform feature extraction on the input feature vector, which is then passed through four cascaded feature attention modules. The outputs of the four feature attention modules are F1, F2, F3, and F4, respectively.
[0097] Optionally, the feature attention module includes:
[0098] S3121. The input features of the module are added to the spatial location embedding features of the point cloud data, and then linearly projected onto low-dimensional features. The hidden features are then encoded through a self-attention mechanism to obtain hidden features, where the dimension of the hidden features is n×d, where n is the number of point clouds and d is the feature dimension.
[0099] S3122. Obtain highly semantic features from hidden features using a feedforward neural network.
[0100] The feedforward neural network can include: one voxelization layer, three concatenated structures consisting of convolutional layers, normalization layers, and activation function layers, and one dimension transformation process.
[0101] S3123. Decode the highly semantic features using a multi-head attention mechanism to obtain the output F1 of the first feature attention module.
[0102] S313. The output F4 of the last layer feature attention module is divided into 1×248×216 grids according to the coordinate index. Each grid represents a column, and the column contains local point cloud information.
[0103] S314. Project the column onto the plane to obtain 128-dimensional two-dimensional bird's-eye view data.
[0104] S32. Use the bird's-eye view detection module to extract the region of interest from the two-dimensional bird's-eye view data to obtain the initial proposal box data.
[0105] Optionally, step S32 above may include the following steps S321-S323:
[0106] S321. Perform two downsampling operations on the two-dimensional bird's-eye view data to obtain two 128-dimensional downsampling features, namely the first downsampling feature F. C1 Second downsampling feature F C2 .
[0107] Furthermore, each downsampling step is achieved through a cascaded structure consisting of four layers: a convolutional layer, a normalization layer, and an activation function layer. The stride of the first convolutional layer is 2.
[0108] S322. Using the deconvolution module, respectively process the first downsampled feature F C1 Second downsampling feature F C2 Upsampling is performed to obtain a first upsampling result and a second upsampling result. The first upsampling result and the second upsampling result are then concatenated to obtain a two-dimensional feature map.
[0109] The upsampling layer consists of a series structure of deconvolutional layers, normalization layers, and activation function layers.
[0110] Furthermore, the upsampling results are stitched together to obtain a 256-dimensional two-dimensional feature map.
[0111] S323. Perform linear regression on the two-dimensional feature map, and obtain the initial proposal box data through classification prediction and localization prediction.
[0112] S33. Using the density-aware pooling module, feature fusion is performed on the initial proposal box data to obtain density-aware features. The model structure of the density-aware pooling module is as follows: Figure 3 As shown.
[0113] Optionally, step S33 above may include the following steps S331-S334:
[0114] S331. Perform non-maximum suppression on the initial proposal box data, retain a preset number of high-quality proposal boxes, and uniformly sample the high-quality proposal boxes to obtain 6×6×6 grid points for each high-quality proposal box.
[0115] The preset number can be 100.
[0116] S332. Based on multiple grid points, voxel query is performed on the output F4 of the fourth feature attention module to extract the point density features in the grid where each grid point is located. The point density features are used as offsets to obtain the features of each grid point through a self-attention mechanism. The features of multiple grid points of each high-quality proposal box are pooled to obtain the first proposal box feature Fg1.
[0117] S333. Based on multiple grid points, perform voxel query on the output F3 of the third feature attention module, and obtain the second proposal box feature Fg2 through the same process as step S332.
[0118] S334. Perform feature fusion on the first proposal box feature Fg1 and the second proposal box feature Fg2 to obtain density-aware features.
[0119] S34. Perform linear regression on the density-aware features, and obtain target detection and classification results through classification prediction, localization prediction and angle prediction.
[0120] This invention provides a LiDAR target detection method based on point cloud ensemble attention. It reduces the dimensionality of point cloud feature data through a linear layer, decreasing the computational burden of the attention mechanism and improving the target detection speed. A density-aware pooling module is proposed, incorporating density features into the proposal box grid point pooling process to fully utilize point cloud density information. Furthermore, a self-attention mechanism is used to fine-tune the initial proposal box, enhancing the network's target localization capability. This invention effectively improves the accuracy and speed of LiDAR target detection.
[0121] like Figure 4 As shown, this embodiment of the invention provides a lidar target detection device 400 based on point cloud ensemble attention. This device 400 is used to implement a lidar target detection method based on point cloud ensemble attention. The device 400 includes:
[0122] The acquisition module 410 is used to acquire the three-dimensional point cloud data of the target to be detected.
[0123] The input module 420 is used to input 3D point cloud data into the constructed LiDAR target detection model based on point cloud ensemble attention; wherein, the LiDAR target detection model includes a point cloud ensemble attention module, a bird's-eye view detection module, a density-aware pooling module, and a classification and regression detection head module.
[0124] The output module 430 is used to obtain target detection results based on 3D point cloud data, point cloud ensemble attention module, bird's-eye view detection module, density-aware pooling module, and classification and regression detection head module.
[0125] Optionally, the acquisition module 410 is further used for:
[0126] S11. Acquire three-dimensional point cloud data of the target to be detected using a lidar sensor; wherein the three-dimensional point cloud data includes location information.
[0127] S12. Based on the preset coordinate range, delete the point cloud data that exceeds the coordinate range in the 3D point cloud data to obtain the deleted 3D point cloud data.
[0128] Optionally, the output module 430 is further used for:
[0129] S31. Use the point cloud ensemble attention module to extract features from the 3D point cloud data to obtain 2D bird's-eye view data.
[0130] S32. Use the bird's-eye view detection module to extract the region of interest from the two-dimensional bird's-eye view data to obtain the initial proposal box data.
[0131] S33. Use the density-aware pooling module to perform feature fusion on the initial proposal box data to obtain density-aware features.
[0132] S34. For density-aware features, obtain target detection results through the classification and regression detection head module.
[0133] Optionally, the output module 430 is further used for:
[0134] S311. Input encoding is performed on the 3D point cloud data to obtain the input feature vector.
[0135] S312. Input the input feature vector sequentially into the first feature attention module, the second feature attention module, the third feature attention module, and the fourth feature attention module to obtain the output F1 of the first feature attention module, the output F2 of the second feature attention module, the output F3 of the third feature attention module, and the output F4 of the fourth feature attention module.
[0136] S313. Divide the output F4 of the fourth feature attention module into grids according to the coordinate index to obtain multiple grids, each grid representing a column; wherein, the column contains local point cloud information.
[0137] S314. Project the column onto the plane to obtain two-dimensional bird's-eye view data.
[0138] Optionally, the output module 430 is further used for:
[0139] S3121. Add the input feature vector to the spatial location embedding feature of the 3D point cloud data, linearly project the added feature onto the low-dimensional feature, and encode the hidden feature through a self-attention mechanism.
[0140] S3122. Obtain highly semantic features from hidden features using a feedforward neural network.
[0141] S3123. Decode the highly semantic features using a multi-head attention mechanism to obtain the output F1 of the first feature attention module.
[0142] Optionally, the output module 430 is further used for:
[0143] S321. Perform two downsampling operations on the two-dimensional bird's-eye view data to obtain the first downsampling feature F. C1 Second downsampling feature F C2 .
[0144] S322. Using the deconvolution module, respectively process the first downsampled feature F C1 Second downsampling feature F C2 Upsampling is performed to obtain a first upsampling result and a second upsampling result. The first upsampling result and the second upsampling result are then concatenated to obtain a two-dimensional feature map.
[0145] S323. Perform linear regression on the two-dimensional feature map, and obtain the initial proposal box data through classification prediction and localization prediction.
[0146] Optionally, the output module 430 is further used for:
[0147] S331. Perform non-maximum suppression on the initial proposal box data, retain a preset number of high-quality proposal boxes, and uniformly sample the high-quality proposal boxes to obtain multiple grid points for each high-quality proposal box.
[0148] S332. Based on multiple grid points, voxel query is performed on the output F4 of the fourth feature attention module to extract the point density features in the grid where each grid point is located. The point density features are used as offsets to obtain the features of each grid point through a self-attention mechanism. The features of multiple grid points of each high-quality proposal box are pooled to obtain the first proposal box feature Fg1.
[0149] S333. Based on multiple grid points, voxel query is performed on the output F3 of the third feature attention module to obtain the second proposal box feature Fg2.
[0150] S334. Perform feature fusion on the first proposal box feature Fg1 and the second proposal box feature Fg2 to obtain density-aware features.
[0151] Optionally, the output module 430 is further used for:
[0152] Linear regression is performed on density-aware features, and target detection and classification results are obtained through classification prediction, localization prediction and angle prediction.
[0153] This invention provides a LiDAR target detection method based on point cloud ensemble attention. It reduces the dimensionality of point cloud feature data through a linear layer, decreasing the computational burden of the attention mechanism and improving the target detection speed. A density-aware pooling module is proposed, incorporating density features into the proposal box grid point pooling process to fully utilize point cloud density information. Furthermore, a self-attention mechanism is used to fine-tune the initial proposal box, enhancing the network's target localization capability. This invention effectively improves the accuracy and speed of LiDAR target detection.
[0154] Figure 5 This is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of the present invention. The electronic device 500 can vary considerably due to differences in configuration or performance. It may include one or more central processing units (CPUs) 501 and one or more memories 502. The memory 502 stores at least one instruction, which is loaded and executed by the processor 501 to implement the following lidar target detection method based on point cloud ensemble attention:
[0155] S1. Obtain the 3D point cloud data of the target to be detected.
[0156] S2. Input the 3D point cloud data into the constructed LiDAR target detection model based on point cloud ensemble attention; wherein, the LiDAR target detection model includes a point cloud ensemble attention module, a bird's-eye view detection module, a density-aware pooling module, and a classification and regression detection head module.
[0157] S3. Based on the 3D point cloud data, the point cloud ensemble attention module, the bird's-eye view detection module, the density-aware pooling module, and the classification and regression detection head module, obtain the target detection results.
[0158] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including instructions that can be executed by a processor in a terminal to complete the aforementioned lidar target detection method based on point cloud ensemble attention. For example, the computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, or optical data storage device.
[0159] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0160] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A lidar target detection method based on point cloud ensemble attention, characterized in that, The method includes: S1. Obtain the 3D point cloud data of the target to be detected; S2. Input the three-dimensional point cloud data into the constructed LiDAR target detection model based on point cloud ensemble attention; wherein, the LiDAR target detection model includes a point cloud ensemble attention module, a bird's-eye view detection module, a density-aware pooling module, and a classification and regression detection head module; S3. Obtain the target detection result based on the three-dimensional point cloud data, the point cloud set attention module, the bird's-eye view detection module, the density-aware pooling module, and the classification and regression detection head module; Step S3 includes: S31. Using the point cloud collection attention module, feature extraction is performed on the three-dimensional point cloud data to obtain two-dimensional bird's-eye view data; Step S31 includes: S311, input encoding of the three-dimensional point cloud data to obtain an input feature vector; S312. The input feature vector is sequentially passed through four identical cascaded feature attention modules, with the outputs of the four feature attention modules being F1, F2, F3, and F4, respectively. The process of obtaining F1 involves adding the module's input features to the spatial location embedding features of the point cloud data, then linearly projecting them to low-dimensional features, and encoding them using a self-attention mechanism to obtain hidden features. These hidden features are then processed through a feedforward neural network to obtain highly semantic features. Finally, a multi-head attention mechanism is used to decode the highly semantic features, yielding the output F1 of the first feature attention module. S313. The output F4 of the last feature attention module is divided into grids according to the coordinate index to obtain multiple grids, each grid representing a pillar; wherein, the pillar contains local point cloud information; S314. Project the column onto a plane to obtain two-dimensional bird's-eye view data; S32. Using the bird's-eye view detection module, extract the region of interest from the two-dimensional bird's-eye view data to obtain initial proposal box data; S33. Using the density-aware pooling module, feature fusion is performed on the initial proposal box data to obtain density-aware features; Step S33 includes: S331, performing non-maximum suppression on the initial proposal box data, retaining a preset number of high-quality proposal boxes, uniformly sampling the high-quality proposal boxes to obtain multiple grid points for each high-quality proposal box; S332. Based on the multiple grid points, perform voxel query on F4, extract the point density features in the grid where each grid point is located, use the point density features as offset, obtain the features of each grid point through a self-attention mechanism, pool the multiple grid point features of each high-quality proposal box, and obtain the first proposal box feature Fg1. S333. Based on the multiple grid points, perform voxel query on F3 to obtain the second proposal box feature Fg2; S334. Perform feature fusion on the first proposal box feature Fg1 and the second proposal box feature Fg2 to obtain density-aware features; S34. Obtain target detection results for the density-aware features through the classification and regression detection head module.
2. The method according to claim 1, characterized in that, The acquisition of the 3D point cloud data of the target to be detected in S1 includes: S11. Acquire three-dimensional point cloud data of the target to be detected using a lidar sensor; wherein the three-dimensional point cloud data includes location information; S12. According to the preset coordinate range, delete the point cloud data in the three-dimensional point cloud data that exceeds the coordinate range to obtain the deleted three-dimensional point cloud data.
3. The method according to claim 1, characterized in that, In step S32, the bird's-eye view detection module extracts the region of interest from the two-dimensional bird's-eye view data to obtain initial proposal box data, including: S321. Perform two downsampling operations on the two-dimensional bird's-eye view data to obtain the first downsampling feature F. C1 Second downsampling feature F C2 ; S322. Using the deconvolution module, respectively process the first downsampled feature F C1 Second downsampling feature F C2 Upsampling is performed to obtain a first upsampling result and a second upsampling result. The first upsampling result and the second upsampling result are then concatenated to obtain a two-dimensional feature map. S323. Perform linear regression on the two-dimensional feature map, and obtain initial proposal box data through classification prediction and localization prediction.
4. The method according to claim 1, characterized in that, The density-aware features described in S34 are used to obtain target detection results through the classification and regression detection head module, including: Linear regression is performed on the density-sensing features, and target detection and classification results are obtained through classification prediction, localization prediction and angle prediction.
5. A lidar target detection device based on point cloud ensemble attention, wherein the lidar target detection device is used to implement the lidar target detection method of claim 1, characterized in that, The device includes: The acquisition module is used to acquire the 3D point cloud data of the target to be detected; The input module is used to input the three-dimensional point cloud data into the constructed LiDAR target detection model based on point cloud ensemble attention; wherein, the LiDAR target detection model includes a point cloud ensemble attention module, a bird's-eye view detection module, a density-aware pooling module, and a classification and regression detection head module; The output module is used to obtain target detection results based on the 3D point cloud data, the point cloud set attention module, the bird's-eye view detection module, the density-aware pooling module, and the classification and regression detection head module.
Citation Information
Patent Citations
4D millimeter wave three-dimensional target detection method and system based on self-attention mechanism
CN113610044A
Anti-redundancy point cloud classification method and device based on self-attention mechanism
CN116129188A
