A 3D target detection device and method based on multi-frame point cloud data

By using a device based on multi-frame point cloud data in 3D target detection, using 3D voxel CNN and attention mechanism alignment and Transformer enhancement technology, the smear problem during multi-frame fusion is solved and the accuracy and accuracy of target detection are improved. Information Utilization.

CN113887462BActive Publication Date: 2024-08-23YIWU HANGTIAN ARTWARE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111190602.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-06
Publication Date
2024-08-23
Estimated Expiration
2041-12-06

AI Technical Summary

Technical Problem

The existing technology fuses multi-frame 3D point cloud data on a frame-by-frame basis, which causes dynamic targets to generate smear problems, affecting detection accuracy, and the rough fusion method fails to effectively solve the smear problem.

Method used

A 3D target detection device based on multi-frame point cloud data is adopted, including a multi-frame 3D point cloud data acquisition unit, a 3D voxel-based CNN proposal generation unit, an attention mechanism-based alignment unit and a Transformer-based point cloud information enhancement unit. Through target alignment and information enhancement, target locations are refined and smear effects are reduced.

Benefits of technology

It effectively solves the smear problem of dynamic objects in multi-frame fusion, improves the accuracy of target detection, makes full use of the spatiotemporal information in time series point clouds, and enhances the retention and utilization of target area information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113887462B
    Figure CN113887462B
Patent Text Reader

Abstract

A 3D target detection device and method based on multi-frame point cloud data, the device includes a multi-frame 3D point cloud data acquisition unit arranged in an autonomous driving system, a CNN proposal generation unit based on 3D voxels, an alignment unit based on an attention mechanism, a transformer-based point cloud information enhancement unit, and a single-frame target detection unit; the method includes obtaining a target proposal through a proposal generation module; aligning target proposals for the same target in multi-frame point clouds; enhancing point cloud information; calling a single-frame target detector, calculating total loss, and optimizing 3D target detection results. The present invention performs target alignment operations on the same target between different frames, effectively solving the problem of ghosting generated when dynamic objects are fused in multiple frames in units of frames, and improving the accuracy of target detection. The present invention retains the spatial information of point cloud data by adopting a method of directly extracting features of 3D point clouds from a backbone network to obtain feature maps, which is beneficial to target alignment and point cloud information enhancement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of robot automatic driving, and in particular relates to a 3D target detection device and method based on multi-frame point cloud data. Background Art

[0002] Object detection is a traditional task in the field of robot autonomous driving technology. At present, 2D object detection technology is quite mature, and 3D object detection is in a period of rapid development. In the three-dimensional world, 3D point cloud data is generated by scanning equipment such as laser radar, and the obtained point cloud data is sparse, irregular and disordered. Due to the sparsity of point clouds, single-frame point cloud detection may have some shortcomings. For example, there will inevitably be some problems such as occlusion and long distance in single-frame point clouds. These problems will affect the detection accuracy of single-frame target detectors to a certain extent. Multi-frame point clouds contain very rich spatiotemporal information of foreground objects, which can be used to improve the detection accuracy of target detectors. It is of great significance to make full use of the spatiotemporal information in continuous point cloud data to design multi-frame 3D point cloud target detection.

[0003] The prior art multi-frame 3D point cloud target detection method is to fuse multiple frames as a whole frame. In fact, the fusion of non-target parts in a frame does not improve the detection results much, and the targets in each frame are not all stationary. When multi-frame fusion is performed in frames, since the targets in each frame are not all stationary, the positions of moving targets are different in each frame, and the moving objects will produce ghosting after fusion. Although the prior art uses the method of adaptive alignment of the initial feature layer to solve the problem of multi-frame fusion ghosting, which can reduce the impact of ghosting caused by dynamic targets moving between frames to a certain extent, the obtained feature weight map is still a weighted fusion of the feature map at the whole frame level. This rough method of fusion in frames makes the solution to the ghosting problem ineffective and has not produced any substantial breakthroughs. Summary of the invention

[0004] In order to solve the problems of the prior art, the present invention proposes a 3D target detection device and method based on multi-frame point cloud data, with the aim of solving the problem that when multi-frame fusion is performed in units of frames in the prior art, the rough fusion method in units of frames makes the effect of solving the ghosting problem unobvious and no substantial breakthrough is produced.

[0005] In order to solve the technical problem, the present invention adopts the following technical scheme:

[0006] A 3D target detection device based on multi-frame point cloud data, characterized in that: the device includes a multi-frame 3D point cloud data acquisition unit arranged in an autonomous driving system, a proposal generation unit based on 3D voxel CNN, an alignment unit based on attention mechanism, a point cloud information enhancement unit based on transformer, and a single-frame target detection unit; the proposal generation unit based on 3D voxel CNN receives multi-frame 3D point cloud data collected by the multi-frame 3D point cloud data acquisition unit at its input end, and converts the multi-frame 3D point cloud data into the approximate positions of multiple target boxes of each feature map of multiple feature maps at its output end; the alignment unit based on attention mechanism receives the approximate positions of multiple targets of each feature map of the multiple feature maps output by the proposal generation unit, and the input end receives the approximate positions of multiple targets of each feature map of the multiple feature maps output by the proposal generation unit, and the input end receives the approximate positions of multiple targets of each feature map of the multiple-frame 3D point cloud sensor data acquisition unit. The output end of the transformer-based point cloud information enhancement unit receives the target feature vector after the multiple feature map classifications are aligned output by the alignment unit, and then stacks and connects the target feature vectors of each category after the alignment to obtain the stacked feature Z, and then inputs the feature Z into the transformer to obtain the single-frame target area after information enhancement, and the output end sends the enhanced single-frame target area and the approximate position of the single-frame target area to the single-frame target detection unit; the single-frame target detection unit receives the single-frame target area information after information enhancement and the approximate position information of the target area after information enhancement at its input end, and refines and fine-tunes the position of the target area after information enhancement at its output end.

[0007] The multi-frame 3D point cloud data acquisition unit includes a multi-frame quantity setting module, a sensor data reading module, and a point cloud sequence saving module; the multi-frame quantity setting module is used to set the number of multi-frames that can achieve the expected fusion effect; the sensor data reading module is used to continuously collect multi-frame 3D point cloud data within a set time range; the point cloud sequence saving module is used to save the multi-frame data collected by the sensor within a specified time range, and send the data to a proposal generation unit based on a 3D voxel-based CNN and an alignment unit based on an attention mechanism.

[0008] The proposal generation unit of the CNN based on 3D voxels includes a downsampling unit, a 2D feature map generation unit, and a target proposal generation unit; the downsampling unit converts the 3D point cloud into 3D voxels and uses a 3D voxel convolutional network for downsampling; the 2D feature map generation unit converts the downsampled multi-frame 3D feature bodies into multi-frame 2D bird's-eye view feature maps; the target proposal generation unit is called to input the multi-frame 2D bird's-eye view feature maps into the target proposal generation network, which processes the feature maps and generates target proposals, and the target proposals are the approximate positions of multiple targets in the feature maps of each frame of the multiple frames.

[0009] The alignment unit based on the attention mechanism includes a unit for generating multiple 2D feature maps, a unit for mapping and generating target frames, a unit for generating input values ​​Q, K, and V, and a unit for calling an attention mechanism structure; the unit for generating multiple 2D feature maps receives data from the point cloud sequence storage module, and directly extracts 2D feature maps from the 3D point cloud data through the backbone network; the unit for mapping and generating target frames maps the target frames of the multiple 2D feature maps of the proposal generation unit to the current multiple corresponding 2D feature maps, and generates the target frames of each feature map of the current multiple corresponding 2D feature maps through the mapping relationship; the unit for generating input values ​​Q, K, and V uses the target area of ​​the target frame of the feature map of the current frame of multiple frames as the input value QUERY Q, and uses the target area of ​​the target frame of the feature map of the historical frames of multiple frames as the input values ​​key K and value V, the current frame of the multiple frames is the most recent frame in time among the multiple frames, and the historical frames of the multiple frames are one or more frames with a longer time in time among the multiple frames; the calling attention mechanism structure unit inputs Q, K, and V into the attention mechanism structure to obtain a target feature vector after classification alignment of multiple feature maps, and the classification alignment refers to classifying the same targets on multiple feature maps and marking them with the same category.

[0010] The transformer-based point cloud information enhancement unit includes a stacking connection unit for generating feature values ​​and a unit for calling transformers to implement multi-frame fusion. The stacking connection unit for generating feature values ​​stacks and connects the target feature vectors of each category after alignment to obtain a stacked connection feature Z; the unit for calling transformers to implement multi-frame fusion inputs the feature Z into the transformer to obtain a target area after information enhancement.

[0011] The single-frame target detection unit includes a module for acquiring a single-frame target area after information enhancement, a module for acquiring an approximate position of the target area after information enhancement, a module for refining and fine-tuning the approximate position of the target area after information enhancement, and a module for outputting an accurate position of the target area after information enhancement; the module for outputting an accurate position of the target area after information enhancement processes information from the module for acquiring a single-frame target area after information enhancement and the module for acquiring an approximate position of the target area after information enhancement, and outputs the accurate position of the target area after information enhancement.

[0012] A method for 3D target detection using multi-frame point cloud data, comprising the following steps:

[0013] Step 1: Each frame of the multi-frame point cloud obtains the target proposal through the proposal generation module;

[0014] Step 2: Align the target proposals of the same target in multiple frame point clouds;

[0015] Step 3: Fuse the information of multi-frame point clouds to enhance the point cloud information at the target level;

[0016] Step 4: Call the single-frame object detector, calculate the total loss, and optimize the 3D object detection results.

[0017] Each frame of the multi-frame point cloud in step 1 obtains a target proposal through the proposal generation module. The specific process is as follows:

[0018] 1) Multi-frame point cloud 3D target detection initialization: This initialization includes setting the number of multi-frames, reading sensor data, and saving the point cloud sequence. The saved point cloud sequence is used for proposal generation in step 1 and target proposal alignment in step 2;

[0019] 2) Convert multi-frame 3D point clouds into multi-frame 3D voxels and downsample using a 3D voxel convolutional network:

[0020] 3) Convert the downsampled multi-frame 3D feature volume into a multi-frame 2D bird's-eye view feature map;

[0021] 4) Call the target proposal generation network to generate target proposals: Input the multi-frame 2D bird's-eye view feature map into the target proposal generation network, which processes the feature map and generates target proposals.

[0022] 5) Calculate the loss value of the target proposal network. The loss value refers to the error between the output value and the correct value during the network training process. The smaller the loss value, the better the training effect.

[0023] The specific process of aligning proposals of the same target in multiple frame point clouds in step 2 is as follows:

[0024] 1) Directly extract features from 3D point cloud data through the backbone network to generate multi-frame 2D feature maps;

[0025] 2) Map the target box of the 2D feature map in step 1 to the current corresponding 2D feature map;

[0026] 3) Generate a target frame of each feature map of multiple frames through mapping relationships, where the current frame of the multiple frames is the most recent frame, and the historical frames of the multiple frames are one or more frames that are farther away in time; the target area of ​​the target frame of the feature map of the current frame of the multiple frames is used as the input value QUERY Q, and the target area of ​​the target frame of the feature map of the historical frames of the multiple frames is used as the input value key K and value V;

[0027] 4) Input Q, K, and V into the attention mechanism network;

[0028] 5) Calculate the loss function of the network based on the data output by the attention mechanism network. The loss function is the deviation between the output value and the correct value during training. The smaller the deviation, the better the effect.

[0029] 6) Obtain the target feature vector after classification and alignment of multiple feature maps.

[0030] The information of the multi-frame point cloud is fused in step 3 to enhance the point cloud information at the target level. The specific process is as follows:

[0031] 1) Stack and connect the target feature vectors of each category after alignment to obtain the stacked and connected feature Z;

[0032] 2) Input feature Z into transformer to obtain the target area after information enhancement.

[0033] The specific process of calling the single-frame target detector, calculating the total loss, and optimizing the 3D target detection result in step 4 is as follows:

[0034] 1) Calling the single-frame target detector: sending the enhanced single-frame target detection area and the approximate position of the single-frame target area to the single-frame target detection unit;

[0035] 2) Calculate the total loss: The total loss includes: the loss of the proposal generation network, the loss of the attention mechanism structure, and the loss of the single-frame target detector;

[0036] 3) Optimize 3D target detection results: Use the total loss function to train the networks of each module in parallel. The parallel training of the networks of each module means that the loss functions of each module are matched with each other and the loss function of each module is obtained by inverting the total loss function. This is different from the serial training of the network, in which the loss functions of the front and rear modules are relatively independent and the training of the front and rear modules is also relatively independent, resulting in the need to repeatedly match the loss functions of the front and rear modules and repeatedly train the front and rear modules. The modules include a proposal generation network, an attention mechanism structure, and a single-frame target detector.

[0037] Advantages and effects of the present invention

[0038] 1. The present invention performs target alignment operations on the same target between different frames, effectively solving the problem of ghosting when dynamic objects are fused in multiple frames in units of frames, and improving the accuracy of target detection. After generating proposals corresponding to each target through a proposal generation module based on 3D voxel CNN, a target alignment module based on an attention mechanism is used to align all proposals of the same target in multiple frames. This operation of aligning targets in each frame can prepare for the subsequent target-level target proposal area information fusion and enhancement, thereby effectively solving the problem of ghosting when dynamic objects are fused in multiple frames in units of frames.

[0039] 2. The present invention can effectively utilize the spatiotemporal information in the sequential point cloud. By adopting a method of directly extracting the features of the 3D point cloud from the backbone network to obtain the feature map, the spatial information of the point cloud data is retained. This retained spatial information is beneficial to the target alignment based on the attention mechanism and the point cloud information enhancement based on the transformer. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 This is a functional block diagram of a 3D target detection device based on multi-frame point cloud data of the present invention;

[0041] Figure 2 This is a functional block diagram of a multi-frame 3D point cloud data acquisition unit of the present invention;

[0042] Figure 3 The functional block diagram of the 3D voxel-based CNN proposal generation unit of the present invention;

[0043] Figure 4 This is a functional block diagram of the alignment unit based on the attention mechanism of the present invention;

[0044] Figure 5 This is a functional block diagram of a transformer-based point cloud information enhancement unit of the present invention;

[0045] Figure 6 This is a functional block diagram of a single-frame target detection unit of the present invention;

[0046] Figure 7 This is a flow chart of the 3D target detection method based on multi-frame point cloud data of the present invention. DETAILED DESCRIPTION

[0047] Design principle of the present invention

[0048] 1. Single-frame target detector and design objectives of the present invention: The single-frame target detector is used to locate the target for a frame of data currently obtained. The traditional method of using a single-frame target detector is to give it a frame of data, and after the single-frame target detector receives the data, it locates the target for the current frame. Since the single-frame data given by this method is a single-frame original data that has not been enhanced, the single-frame original data is often sparse or occluded. The quality of the data is poor, and because the traditional method does not give the approximate position of the target when giving the single-frame data, the single-frame target detector is required to locate the target from scratch. Therefore, the traditional single-frame target detector lacks information about the target area and locates the target from scratch, so the target positioning efficiency and positioning accuracy of the traditional single-frame target detector cannot meet the ideal requirements. The present invention has two design goals. First, multi-frame data is used to make up for the defects of single-frame data. The data sent to the single-frame target detector is single-frame data after information enhancement. Second, while sending the single-frame data, the approximate position of the target frame is also provided to the single-frame target detector. After the single-frame target detector obtains the approximate position of the target frame, it does not need to start from scratch for positioning, but uses the existing positioning basis to make fine position adjustments in a small range. After adopting the method of the present invention, first, since the single-frame data received by the single-frame target detector is data after enhanced information, the single-frame data after enhanced information is more conducive to single-frame target positioning to adjust the target position; second, since the single-frame target detector makes small-range fine adjustments based on the existing approximate position of the target, the positioning accuracy and efficiency are effectively improved.

[0049] 2. Design difficulties of the present invention: One of the difficulties is that multiple frames are dynamic and the time between multiple frames is not synchronized. When multiple frames are fused in units of frames, since the targets of each frame are not all stationary, the moving targets have different positions in each frame, and the moving objects will produce smears after fusion. The second difficulty is: the contradiction between retaining spatial information and losing spatial information: converting multiple frames of 3D point clouds into multiple frames of 3D voxels, and using 3D voxel convolutional networks to downsample, and converting 3D feature maps into multiple frames of 2D bird's-eye view feature maps after downsampling. After downsampling, although the information related to the target object is retained and highlighted, it is convenient to generate target proposals and determine the approximate position of the target box, there will be a certain loss of spatial information when converting from 3D space to 2D space. These spatial information losses are very unfavorable for the subsequent target proposal alignment and target area information enhancement processing, because the lost spatial information also includes information about the target area itself. When the target area does not need to be aligned or enhanced, but only the approximate position is determined, the loss of spatial information has little effect on determining the approximate position. However, after the approximate position of the target area is determined, further target proposal alignment and target area information enhancement are required. At this time, since the target area itself has lost some spatial information, it will affect the target proposal alignment and target area information enhancement.

[0050] 3. The solution of the present invention: The solution to one of the difficulties: To avoid the problem that multiple frames are dynamic, the target in each frame is picked out separately, and then fused. During the fusion process, the original physical positions of multiple target feature vectors are separated, so the problem of ghosting can be completely solved. The difference between picking out separately for fusion and not picking out separately for fusion is that the method of not picking out separately is whole-frame fusion. The original physical position will not change during the whole-frame fusion process, so the target ghost after fusion still exists. The step of picking out the target in each frame separately is the process of step two 6) to obtain the target feature vector after classification and alignment of multiple feature maps, and the target feature vector corresponds to the target in each frame. The solution to the second difficulty is to use different methods at different stages. When the approximate position of the target frame needs to be determined, the method of reducing the computational information to improve the computational efficiency is adopted. At this time, the convolutional network is used for downsampling. After downsampling, the information is concentrated and the computational speed is fast. When the target proposal alignment and the target area information enhancement are required, the method of retaining spatial information is adopted. At this time, another network is used, from the convolutional network to the backbone network. The difference between the backbone network and the convolutional network is that there is no downsampling process, and the features of the 3D point cloud data are directly extracted to generate multiple frames of 2D feature maps, so that the spatial information is retained. The 2D feature map here refers to a two-dimensional matrix, and spatial information can also be retained in the two-dimensional matrix.

[0051] Based on the above invention principles, the present invention designs a 3D target detection device based on multi-frame point cloud data.

[0052] A 3D target enhancement device based on multi-frame point cloud data Figure 1-Figure 6 As shown, its characteristics are: the device includes a multi-frame 3D point cloud data acquisition unit arranged in the vehicle-mounted automatic driving system, a 3D voxel-based CNN proposal generation unit, an attention mechanism-based alignment unit, a transformer-based point cloud information enhancement unit, and a single-frame target detection unit; the 3D voxel-based CNN proposal generation unit, at its input end, receives the multi-frame 3D point cloud data collected by the multi-frame 3D point cloud data acquisition unit, and at its output end, converts the multi-frame 3D point cloud data into the approximate positions of multiple target boxes of each feature map of multiple feature maps; the alignment unit based on the attention mechanism, at its input end, respectively receives the approximate positions of multiple targets of each feature map of the multiple feature maps output by the proposal generation unit, and the multi-frame 3D point cloud data input by the multi-frame 3D point cloud sensor data acquisition unit. According to the information, the output end outputs the target feature vector after the classification and alignment of multiple feature maps; the transformer-based point cloud information enhancement unit, at its input end, receives the target feature vector after the classification and alignment of multiple feature maps output by the alignment unit, and then stacks and connects the target feature vectors of each category after alignment to obtain the stacked and connected feature Z, and then inputs the feature Z into the transformer, thereby obtaining the single-frame target area after information enhancement, and the output end sends the enhanced single-frame target area and the approximate position of the single-frame target area to the single-frame target detection unit; the single-frame target detection unit, at its input end, receives the single-frame target area information after information enhancement and the approximate position information of the target area after information enhancement, and the output end refines and fine-tunes the approximate position of the target area after information enhancement.

[0053] The multi-frame 3D point cloud data transmission acquisition unit includes a multi-frame quantity setting module, a sensor data reading module, and a point cloud sequence saving module; the multi-frame quantity setting module is used to set the number of multi-frames that can achieve the expected fusion effect; the sensor data reading module is used to continuously collect multi-frame 3D point cloud data within a set time range; the point cloud sequence saving module is used to save the multi-frame data collected by the sensor within a specified time range, and send the data to a proposal generation unit based on a 3D voxel-based CNN and an alignment unit based on an attention mechanism.

[0054] The proposal generation unit of the CNN based on 3D voxels includes a downsampling unit, a 2D feature map generation unit, and a target proposal generation unit; the downsampling unit converts the 3D point cloud into 3D voxels and uses a 3D voxel convolutional network for downsampling; the 2D feature map generation unit converts the downsampled multi-frame 3D feature bodies into multi-frame 2D bird's-eye view feature maps; the target proposal generation unit is called to input the multi-frame 2D bird's-eye view feature maps into the target proposal generation network, which processes the feature maps and generates target proposals, and the target proposals are the approximate positions of multiple targets in the feature maps of each frame of the multiple frames.

[0055] The alignment unit based on the attention mechanism includes a unit for generating multiple 2D feature maps, a unit for mapping and generating target frames, a unit for generating input values ​​Q, K, and V, and a unit for calling an attention mechanism structure; the unit for generating multiple 2D feature maps receives data from the point cloud sequence storage module, extracts features from the 3D point cloud data again, and generates multiple 2D feature maps; the unit for mapping and generating target frames maps the target frames of the multiple 2D feature maps of the proposal generation unit to the current multiple corresponding 2D feature maps, and generates the target frames of each feature map of the current multiple corresponding 2D feature maps through a mapping relationship; the unit for generating input values ​​Q, K, and V uses the target area of ​​the target frame of the feature map of the current frame of multiple frames as the input value QUERY Q, and uses the target area of ​​the target frame of the feature map of the historical frames of multiple frames as the input values ​​key K and value V, the current frame of the multiple frames is the most recent frame in time among the multiple frames, and the historical frames of the multiple frames are one or more frames with a longer time in time among the multiple frames; the calling attention mechanism structure unit inputs Q, K, and V into the attention mechanism structure to obtain a target feature vector after classification alignment of multiple feature maps, and the classification alignment refers to classifying the same targets on multiple feature maps and marking them with the same category.

[0056] The transformer-based point cloud information enhancement unit includes a stacking connection unit for generating feature values ​​and a unit for calling transformers to implement multi-frame fusion. The stacking connection unit for generating feature values ​​stacks and connects the target feature vectors of each category after alignment to obtain a stacked connection feature Z; the unit for calling transformers to implement multi-frame fusion inputs the feature Z into the transformer to obtain a target area after information enhancement.

[0057] The single-frame target detection unit includes a module for acquiring a single-frame target area after information enhancement, a module for acquiring an approximate position of the target area after information enhancement, a module for refining and fine-tuning the approximate position of the target area after information enhancement, and a module for outputting an accurate position of the target area after information enhancement; the module for outputting an accurate position of the target area after information enhancement processes information from the module for acquiring a single-frame target area after information enhancement and the module for acquiring an approximate position of the target area after information enhancement, and outputs the accurate position of the target area after information enhancement.

[0058] A 3D target detection method based on multi-frame point cloud data, such as Figure 7 As shown, it is characterized in that it includes the following steps:

[0059] Step 1: Each frame of the multi-frame point cloud obtains the target proposal through the proposal generation module;

[0060] The specific process is as follows:

[0061] 1) Initialization of multi-frame point cloud 3D target detection: This initialization includes setting the number of multi-frames, reading sensor data, and saving the point cloud sequence. The point cloud sequence is used for proposal generation in step 1 and target proposal alignment in step 2;

[0062] 2) Convert multi-frame 3D point clouds into multi-frame 3D voxels and downsample using a 3D voxel convolutional network;

[0063] Additional notes:

[0064] The purpose of using convolutional neural network in the present invention is to downsample. The effect of downsampling is to concentrate the original 3D voxel information and highlight the target information after concentration. After downsampling, the convolutional neural network outputs a 3D whole, which highlights the target information compared with the 3D voxels before downsampling, but also loses spatial information. The lost spatial information includes information unrelated to the target information, and also includes the information of the target itself, but the overall effect is to highlight the information of the target.

[0065] 3) Convert the downsampled multi-frame 3D feature volume into a multi-frame 2D bird's-eye view feature map;

[0066] Additional notes:

[0067] Although the 3D feature body highlights the information of the target object, the 2D feature body is faster and more accurate than the 3D feature body. Therefore, the method of converting the 3D feature body into the 2D feature body strikes a balance between efficiency and accuracy.

[0068] 4) Calling the target proposal generation module to generate target proposals: inputting the multi-frame 2D bird's-eye view feature map into the target proposal generation network, which processes the feature map and generates target proposals;

[0069] Additional notes:

[0070] The target proposal generation module is a third-party software. This embodiment only briefly describes the working principle of the software as follows:

[0071] a) setting multiple anchor points on each feature map, taking each anchor point as the center point, and setting anchor point boxes with different scales and aspect ratios around the center point;

[0072] b) Each anchor box of the current feature map is input into two network layers of the target proposal generation network, one is the target classification layer and the other is the target offset layer; the target classification layer is used to calculate whether the feature map in the current anchor box belongs to the target; the target offset layer is used to calculate the offset of the center point of the current anchor box relative to the center point of the target box;

[0073] c) Determine the unique target box in each feature map according to the output probability value of the target classification layer of the target proposal generation network, and calculate the approximate position of the target box according to the target offset layer of the target proposal generation network;

[0074] d) Obtain the approximate locations of multiple targets in each of the multiple feature maps.

[0075] 5) Calculate the loss value of the target proposal network. The loss value refers to the error between the output value and the correct value during the network training process. The smaller the loss value, the better the training effect.

[0076] Step 2: Align the target proposals of the same target in multiple frame point clouds;

[0077] The specific process is as follows:

[0078] 1) Directly extract features from 3D point cloud data through the backbone network to generate multi-frame 2D feature maps;

[0079] 2) Map the target box of the 2D feature map obtained by the target proposal in step 1 to the current corresponding 2D feature map;

[0080] Additional notes:

[0081] First, the multi-frame 2D feature map generated in step 2 is different from the multi-frame 2D feature map generated in step 1. Step 2 uses a backbone network different from the convolutional network in step 1 to directly extract 2D feature maps from 3D voxels, which has the effect of retaining spatial information. Step 1 uses a convolutional network for downsampling. The result of downsampling loses some spatial information that is not related to the target information, and only retains information related to the target object. The purpose of using convolutional network information to condense information is to reduce the amount of information and achieve rapid positioning of the target frame; the 2D feature map of step 2 is used for subsequent alignment and fusion, which requires comprehensive and detailed information. Although steps 1 and 2 also establish 2D feature maps, the 2D feature map of step 1 highlights the information of the target object, and the 2D feature map of step 2 supplements the spatial information. Therefore, the 2D feature map of step 2 cannot borrow the 2D feature map of step 1.

[0082] Second, the approximate position of the target frame in step 1 can be used in the target proposal alignment of step 2. Although the spatial information of the 2D feature map in step 1 is lost, it does not affect the position information of the target frame. Therefore, the position of the target frame in step 1 is mapped to the corresponding feature map in step 2. However, at this time, it is only mapped and the target frame has not been established on the feature map in step 2.

[0083] 3) Generate a target frame of each feature map of multiple frames through mapping relationships, where the current frame of the multiple frames is the most recent frame, and the historical frames of the multiple frames are one or more frames that are farther away in time; the target area of ​​the target frame of the feature map of the current frame of the multiple frames is used as the input value QUERY Q, and the target area of ​​the target frame of the feature map of the historical frames of the multiple frames is used as the input value key K and value V;

[0084] 4) Input Q, K, and V into the attention mechanism structure;

[0085] 5) Calculate the loss function of the network based on the data output by the attention mechanism network. The loss function is the deviation between the output value and the correct value during training. The smaller the deviation, the better the effect.

[0086] 6) Obtain the target feature vector after classification and alignment of multiple feature maps.

[0087] Additional Notes

[0088] First, the classification alignment mentioned here is not the alignment of physical locations but the classification of the same targets. Classification alignment means classifying the same targets into one category and different targets into another category.

[0089] Second, the target feature vector is obtained after classification alignment.

[0090] Step 3: Fuse the information of multi-frame point clouds to enhance the point cloud information at the target level;

[0091] The specific process is as follows:

[0092] 1) Stack and connect the target feature vectors of each category after alignment to obtain the stacked and connected feature Z;

[0093] 2) Input feature Z into transformer to obtain the target area after information enhancement.

[0094] Additional notes:

[0095] For the internal structure and working principle of transformer, see "Temporal-Channel Transformer for 3D Lidar-Based Video Object Detection in Autonomous Driving"

[0096] Step 4: Call the single-frame object detector, calculate the total loss, and optimize the 3D object detection results.

[0097] The specific process is as follows:

[0098] 1) Calling the single-frame target detector: sending the enhanced single-frame target detection area and the approximate position of the single-frame target area to the single-frame target detection unit;

[0099] 2) Calculate the total loss: The total loss includes: the loss of the proposal generation network, the loss of the attention mechanism structure, and the loss of the single-frame target detector;

[0100] 3) Optimize 3D target detection results: adopt the total loss function and train the networks of each module in parallel. The parallel training of the networks of each module means that the loss functions of each module are matched with each other and the loss function of each module is obtained by inverting the total loss function. This is different from the serial training of the network, in which the loss functions of the front and rear modules are relatively independent and the training of the front and rear modules is also relatively independent, resulting in the need to repeatedly match the loss functions of the front and rear modules and repeatedly train the front and rear modules. The modules include a proposal generation network, an attention mechanism structure, and a single-frame target detector.

[0101] Additional notes:

[0102] Calling a single-frame target detector: Generally, the method of using a single-frame target detector is to input a frame of data into it, and the single-frame target detector outputs the position of the target in a single frame. The difference between the present invention and the conventional method is that: first, the input single-frame data is single-frame data with information enhancement after multi-frame fusion, rather than single-frame data with incomplete information due to sparse or occluded information; second, not only the single-frame data with information enhancement is input into the single-frame target detector, but also the target proposal of the frame is input into the single-frame target detector, and the target proposal is the approximate position of the target. The purpose of calling the single-frame target detector in the present invention is to refine the previous target proposal, and the target proposal before refinement is: the offset and size of the precise target.

[0103] The present invention uses the last Classification part in Faster RCNN to perform single-frame target detection to obtain the final result. The working mechanism of single-frame target detection is: first, it consists of two fully connected layers-relu layers, and then inputs into two network layers respectively, one classifies the target proposal through the fully connected layer and softmax, and the other performs bounding box regression on the target proposal through the fully connected layer to obtain a higher-precision target frame.

[0104] Example 1: Calculation of loss functions of each module

[0105] 1) Loss calculation of proposal generation network:

[0106] There are two loss functions in this network, one is the classification loss proposal_cls_loss, which uses cross entropy, and the other is the regression loss proposal_reg_loss, which uses smooth L1 loss. The loss function of the entire proposal generation network is set to:

[0107] proposal loss =proposal_reg_loss+proposal_cls_loss;

[0108] 2) Loss calculation of attention mechanism structure:

[0109] Auxiliary loss is used to help train this module. Specifically, a separate classification and regression head is added, and the box residual between the object proposal predicted by the feature vector extracted in the alignment stage and its corresponding ground-truth box is used as the loss of this module, denoted as L cross_view ;

[0110] 3) Loss calculation for single-frame target detection:

[0111] The single-frame object detector performs classification and regression tasks, so two loss functions are set. One is the classification loss cls_loss, which uses cross entropy, and the other is the regression loss reg_loss, which uses smooth L1loss. The total loss box_loss is calculated as follows: box_loss = cls_loss + reg_loss;

[0112] It should be emphasized that the embodiments described in the present invention are illustrative rather than restrictive, and thus the present invention includes but is not limited to the embodiments described in the specific implementation manner.

Claims

1. A 3D object detection device based on multi-frame point cloud data, characterized in that: The device includes a multi-frame 3D point cloud data acquisition unit arranged in an autonomous driving system, a proposal generation unit based on 3D voxel CNN, an alignment unit based on attention mechanism, a point cloud information enhancement unit based on transformer, and a single-frame target detection unit; the proposal generation unit based on 3D voxel CNN receives multi-frame 3D point cloud data collected by the multi-frame 3D point cloud data acquisition unit at its input end, and converts the multi-frame 3D point cloud data into the approximate positions of multiple target frames of each feature map of multiple feature maps at its output end; the alignment unit based on attention mechanism receives the approximate positions of multiple targets of each feature map of the multiple feature maps output by the proposal generation unit and the multi-frame 3D point cloud data input by the multi-frame 3D point cloud sensor data acquisition unit at its input end, and outputs The transformer-based point cloud information enhancement unit outputs a target feature vector after multiple feature map classification alignment; the input end of the transformer-based point cloud information enhancement unit receives the target feature vector after multiple feature map classification alignment output by the alignment unit, and then stacks and connects the target feature vectors of each category after alignment to obtain the stacked connection feature Z, and then inputs the feature Z into the transformer, thereby obtaining the single-frame target area after information enhancement, and the output end sends the enhanced single-frame target area and the approximate position of the single-frame target area to the single-frame target detection unit; the single-frame target detection unit receives the single-frame target area information after information enhancement and the approximate position information of the target area after information enhancement at its input end, and outputs the precise position of the target area after information enhancement at its output end.

2. The 3D target detection device based on multi-frame point cloud data according to claim 1, characterized in that: The multi-frame 3D point cloud data acquisition unit includes a multi-frame quantity setting module, a sensor data reading module, and a point cloud sequence saving module; the multi-frame quantity setting module is used to set the number of multi-frames that can achieve the expected fusion effect; the sensor data reading module is used to continuously collect multi-frame 3D point cloud data within a set time range; the point cloud sequence saving module is used to save the multi-frame data collected by the sensor within a specified time range, and send the data to a proposal generation unit based on a 3D voxel-based CNN and an alignment unit based on an attention mechanism.

3. The 3D target detection device based on multi-frame point cloud data according to claim 1, characterized in that: The proposal generation unit of the CNN based on 3D voxels includes a downsampling unit, a 2D feature map generation unit, and a target proposal generation unit; the downsampling unit converts the 3D point cloud into 3D voxels and uses a 3D voxel convolutional network for downsampling; the 2D feature map generation unit converts the downsampled multi-frame 3D feature bodies into multi-frame 2D bird's-eye view feature maps; the target proposal generation unit is called to input the multi-frame 2D bird's-eye view feature maps into the target proposal generation network, which processes the feature maps and generates target proposals, and the target proposals are the approximate positions of multiple targets in the feature maps of each frame of the multiple frames.

4. The 3D target detection device based on multi-frame point cloud data according to claim 1, characterized in that: The alignment unit based on the attention mechanism includes a unit for generating multiple 2D feature maps, a unit for mapping and generating target frames, a unit for generating input values ​​Q, K, and V, and a unit for calling an attention mechanism structure; the unit for generating multiple 2D feature maps receives data from the point cloud sequence storage module, and directly extracts 2D feature maps from the 3D point cloud data through the backbone network; the unit for mapping and generating target frames maps the target frames of the multiple 2D feature maps of the proposal generation unit to the current multiple corresponding 2D feature maps, and generates the target frames of each feature map of the current multiple corresponding 2D feature maps through the mapping relationship; the unit for generating input values ​​Q, K, and V uses the target area of ​​the target frame of the feature map of the current frame of multiple frames as the input value QUERY Q, and uses the target area of ​​the target frame of the feature map of the historical frames of multiple frames as the input values ​​key K and value V, the current frame of the multiple frames is the most recent frame in time among the multiple frames, and the historical frames of the multiple frames are one or more frames with a longer time in time among the multiple frames; the calling attention mechanism structure unit inputs Q, K, and V into the attention mechanism structure to obtain a target feature vector after classification alignment of multiple feature maps, and the classification alignment refers to classifying the same targets on multiple feature maps and marking them with the same category.

5. The 3D target detection device based on multi-frame point cloud data according to claim 1, characterized in that: The transformer-based point cloud information enhancement unit includes a stacking connection unit for generating feature values ​​and a unit for calling transformers to implement multi-frame fusion. The stacking connection unit for generating feature values ​​stacks and connects the target feature vectors of each type after alignment to obtain the stacked connection feature Z; the unit for calling transformers to implement multi-frame fusion inputs the feature Z into the transformer to obtain the target area after information enhancement; the single-frame target detection unit includes a module for obtaining the single-frame target area after information enhancement, a module for obtaining the approximate position of the target area after information enhancement, a module for refining and fine-tuning the approximate position of the target area after information enhancement, and a module for outputting the precise position of the target area after information enhancement; the module for outputting the precise position of the target area after information enhancement processes the information of the module for obtaining the single-frame target area after information enhancement and the module for obtaining the approximate position of the target area after information enhancement, and outputs the precise position of the target area after information enhancement.

6. A method for detecting 3D objects using multi-frame point cloud data according to a 3D object detection device based on multi-frame point cloud data according to any one of claims 1 to 5, characterized in that: The following steps are involved: Step 1: Each frame of the multi-frame point cloud obtains the target proposal through the proposal generation module; Step 2: Align the target proposals of the same target in multiple frame point clouds; Step 3: Fuse the information of multi-frame point clouds to enhance the point cloud information at the target level; Step 4: Call the single-frame object detector, calculate the total loss, and optimize the 3D object detection results.

7. The method for 3D object detection based on multi-frame point cloud data according to claim 6, characterized in that: Each frame of the multi-frame point cloud in step 1 obtains a target proposal through the proposal generation module. The specific process is as follows: 1) Multi-frame point cloud 3D target detection initialization: This initialization includes setting the number of multi-frames, reading sensor data, and saving the point cloud sequence. The saved point cloud sequence is used for proposal generation in step 1 and target proposal alignment in step 2; 2) Convert multi-frame 3D point clouds into multi-frame 3D voxels and downsample using a 3D voxel convolutional network: 3) Convert the downsampled multi-frame 3D feature volume into a multi-frame 2D bird's-eye view feature map; 4) Calling the target proposal generation network to generate target proposals: Inputting the multi-frame 2D bird's-eye view feature map into the target proposal generation network, which processes the feature map and generates target proposals; 5) Calculate the loss value of the target proposal network. The loss value refers to the error between the output value and the correct value during the network training process. The smaller the loss value, the better the training effect.

8. The method for 3D object detection based on multi-frame point cloud data according to claim 6, characterized in that: The specific process of aligning proposals of the same target in multiple frame point clouds in step 2 is as follows: 1) Directly extract features from 3D point cloud data through the backbone network to generate multi-frame 2D feature maps; 2) Map the target box of the 2D feature map in step 1 to the current corresponding 2D feature map; 3) Generate a target frame of each feature map of multiple frames through mapping relationships, where the current frame of the multiple frames is the most recent frame in time, and the historical frames of the multiple frames are one or more frames that are farther away in time; the target area of ​​the target frame of the feature map of the current frame of the multiple frames is used as the input value QUERY Q, and the target area of ​​the target frame of the feature map of the historical frames of the multiple frames is used as the input value key K and valueV; 4) Input Q, K, and V into the attention mechanism network; 5) Calculate the loss function of the network based on the data output by the attention mechanism network. The loss function is the deviation between the output value and the correct value during the training process. The smaller the deviation, the better the effect. 6) Obtain the target feature vector after classification and alignment of multiple feature maps.

9. The method for 3D object detection based on multi-frame point cloud data according to claim 6, characterized in that: The information of the multi-frame point cloud is fused in step 3 to enhance the point cloud information at the target level. The specific process is as follows: 1) Stack and connect the target feature vectors of each category after alignment to obtain the stacked and connected feature Z; 2) Input feature Z into transformer to obtain the target area after information enhancement.

10. The method for 3D object detection based on multi-frame point cloud data according to claim 6, characterized in that: The specific process of calling the single-frame target detector, calculating the total loss, and optimizing the 3D target detection result in step 4 is as follows: 1) Calling the single-frame target detector: sending the enhanced single-frame target detection area and the approximate position of the single-frame target area to the single-frame target detection unit; 2) Calculate the total loss: The total loss includes: the loss of the proposal generation network, the loss of the attention mechanism structure, and the loss of the single-frame target detector; 3) Optimize 3D target detection results: Use the total loss function to train the networks of each module in parallel. The parallel training of the networks of each module means that the loss functions of each module are matched with each other, and the loss function of each module is obtained by inverting the total loss function. This is different from the serial training of the network, in which the loss functions of the front and rear modules are relatively independent, and the training of the front and rear modules is also relatively independent, resulting in the need to repeatedly match the loss functions of the front and rear modules, and repeatedly train the front and rear modules. The modules include a proposal generation network, an attention mechanism structure, and a single-frame target detector.

Citation Information

Patent Citations

  • Laser radar 3D real-time target detection method fusing multi-frame time sequence point cloud

    CN111429514A

  • Laser radar target detection and motion tracking method based on scene flow

    CN111476822A

  • Target Detection Method, Training Method, Electronic Device, and Computer-Readable Medium

    US20210256680A1

  • KR20210107119A