Three-dimensional object detection method based on multi-modal fusion and deep attention mechanism

The 3D target detection method through multi-modal fusion and deep attention mechanism solves the problem of multi-sensor data fusion in autonomous driving, achieves high-precision 3D target detection, and improves the environmental perception capabilities of autonomous vehicles.

WO2024217115A1PCT designated stage expired Publication Date: 2024-10-24CHANGAN UNIV

Patent Information

Application Number
PCT/CN2024/075385
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-21
Filing Date
2024-02-02
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively utilize multi-sensor data in autonomous driving, especially the multi-modal fusion of lidar point clouds and camera images, resulting in limited 3D target detection performance, and unstable data quality affecting the detection effect.

Method used

Adopt a 3D target detection method based on multi-modal fusion and deep attention mechanism, fuse lidar point cloud and image features through multi-scale feature fusion backbone network and deep attention mechanism, generate 3D suggestion frames and refine them, and dynamically generate depth Threshold to guide the fusion process and achieve high-precision environment perception.

Benefits of technology

It achieves full utilization of point cloud and image features, improves the accuracy and robustness of 3D target detection, can effectively handle the difference between sparse and continuous features, and improves environmental perception performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024075385_24102024_PF_FP_ABST
    Figure CN2024075385_24102024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of autonomous driving. Disclosed is a three-dimensional (3D) object detection method based on multi-modal fusion and a deep attention mechanism. The method comprises: obtaining original point cloud data and original image data, and preprocessing same; inputting the preprocessed point cloud data and image data into a 3D object detection network based on multi-modal fusion and a deep attention mechanism, wherein the 3D object detection network based on the multi-modal fusion and the deep attention mechanism includes a 3D suggestion box generation stage and a 3D bounding box refinement stage, and then the network outputting an object bounding box parameter and a classification confidence level; training the 3D object detection network based on the multi-modal fusion and the deep attention mechanism; and processing the collected point cloud data and image data by using the trained detection network, and outputting 3D object information, so as to implement 3D object detection. The present invention fully and effectively uses point cloud and image features; moreover, high-precision environmental sensing is implemented.
Need to check novelty before this filing date? Find Prior Art

Description

Three-dimensional object detection method based on multimodal fusion and deep attention mechanism

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on April 21, 2023, with application number 202310438843.9 and invention name “Three-dimensional target detection method based on multimodal fusion and deep attention mechanism”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present invention relates to the field of autonomous driving technology, and in particular to a method for three-dimensional target detection based on multimodal fusion and deep attention mechanism. Background Art

[0003] Autonomous vehicles and connected cars will play a key role in the future development of road traffic and transportation. To navigate complex traffic environments quickly and safely, connected cars must rely on sensors such as cameras and lidar to achieve high-precision environmental perception based on multimodal fusion algorithms. However, lidar point clouds are sparse and continuous, while cameras capture dense features in discrete states, and the data formats of the two differ. Therefore, effectively utilizing 2D images in 3D detection pipelines remains a challenging problem.

[0004] Previous detection methods based on a single modality are often limited in performance by the inherent physical characteristics of the sensor, such as image data being prone to occlusion and overexposure. LiDAR point clouds are usually sparse, disordered, and unevenly distributed. This unstable data quality can easily affect target detection performance. In order to leverage the complementary advantages of multiple sensors to achieve accurate and robust 3D target detection, one type of work uses mature 2D detectors to provide preliminary proposed boxes in the form of a frustum. However, the granularity of this fusion is too coarse to unleash the full potential of the two modalities. At the same time, the cascade method not only requires additional 2D annotations, but the performance of the network is also limited by the 2D detector. In particular, if an object is missed in 2D detection, it will also be missed in the 3D detection pipeline. Another type of work adopts a more 3D-focused approach, connecting the intermediate features of the 2D image convolutional network to 3D voxel or point features to enrich the 3D features. However, the performance of the above method is limited by the quantized point cloud because fine-grained point-level information is lost during the data conversion process. In addition, this method achieves multimodal fusion at the feature level. The challenge is that the lidar point cloud is sparse and continuous, while the camera captures dense features in a discrete state. How to effectively fuse them is also an urgent problem to be solved.

[0005] Summary of the Invention

[0006] This paper proposes a three-dimensional object detection method based on multimodal fusion and deep attention mechanism to solve the problem that existing models ignore the quality of real data and the contextual relationship between the two modalities, resulting in performance degradation when image features or point cloud features are defective.

[0007] In order to achieve the above object, the present invention adopts the following technical solutions:

[0008] A 3D object detection method based on multimodal fusion and deep attention mechanism includes the following steps:

[0009] Step 1: Obtain original point cloud data and original image data, where the original point cloud data includes spatial coordinate information (x, y, z) and the original image data includes RGB information; then preprocess the obtained original point cloud data and original image data to obtain preprocessed point cloud data and image data;

[0010] Step 2: Input the preprocessed point cloud data and image data into a 3D object detection network based on multimodal fusion and deep attention mechanism. The 3D object detection network based on multimodal fusion and deep attention mechanism consists of two stages: the first stage is the 3D proposal box generation stage, and the second stage is the 3D bounding box refinement stage. The network finally outputs the target bounding box parameters and classification confidence;

[0011] Step 2.1: 3D proposal box generation stage; specifically:

[0012] The preprocessed point cloud data and image data are input into the 3D proposal box generation stage. In this stage, the input data is first fed into the multi-scale feature fusion backbone network for multimodal feature fusion, and the fused features are output. The fused features are then used to perform a bin-based 3D bounding box generation operation to generate 3D proposal boxes from the foreground points, and the NMS algorithm is used to select multiple 3D proposal boxes as output.

[0013] The multi-scale feature fusion backbone network consists of four submodules: a lidar point cloud feature extraction module, an image feature extraction module, an adaptive threshold generation module, and a fusion module based on a deep attention mechanism;

[0014] The data flow in the multi-scale feature fusion backbone network is as follows: the preprocessed point cloud data is input into the lidar feature extraction module, which outputs point cloud features of five different scales; at the same time, the preprocessed point cloud data is input into the adaptive threshold generation module, which outputs the depth threshold; the preprocessed image data is input into the image feature extraction module, which outputs image features of five different scales; a fusion module based on the deep attention mechanism is built between the point cloud features and image features of consistent scales to fuse multimodal features. There are a total of five fusion modules based on the deep attention mechanism of corresponding scales; the input of the fusion module based on the deep attention mechanism is: the point cloud features and image features of consistent scales obtained by the lidar point cloud feature extraction module and the image feature extraction module, the preprocessed point cloud data, and the depth threshold obtained by the adaptive threshold generation module. The output of this module is the multimodal fusion feature;

[0015] The outputs of the first four deep attention-based fusion modules are passed back to the feature extraction layer of the corresponding scale in the lidar feature extraction module. They are further encoded as the lidar feature extraction process continues, and the fused features output by the last deep attention-based fusion module are used as the output of the entire multi-scale feature fusion backbone network.

[0016] The fused features obtained by the multi-scale feature fusion backbone network are used to perform a Bin-based 3D bounding box generation operation to generate 3D proposal boxes from the foreground points, and multiple 3D proposal boxes are selected as output;

[0017] Step 2.2: 3D bounding box refinement stage: The 3D proposal box, fused features, and foreground mask obtained in step 2.1 are input into the 3D bounding box refinement stage to perform 3D bounding box refinement and classification confidence prediction, and finally output the target bounding box parameters and classification confidence;

[0018] Step 3: Train a 3D object detection network based on multimodal fusion and deep attention mechanism;

[0019] Step 4: Use the trained 3D target detection network based on multimodal fusion and deep attention mechanism to process the collected lidar point cloud data and image data to be detected, and output 3D target information, including 3D target bounding box parameters and classification confidence, to achieve 3D target detection.

[0020] Furthermore, in step 1, the original point cloud data and original image data are obtained from the KITTI dataset.

[0021] Furthermore, in step 2.1, the input of the lidar point cloud feature extraction module is the preprocessed lidar point cloud data, and the output is point cloud features of different scales; specifically, four set abstraction layers are built for point cloud feature downsampling, and then four feature propagation layers are used to achieve point cloud feature upsampling.

[0022] Furthermore, in step 2.1, the input of the image feature extraction module is the preprocessed image data, and the output is image features of different scales; specifically, four convolution blocks are built to match the resolution of the point cloud features, each convolution block contains a BN layer, a ReLU activation function and two convolution layers, where the stride of the second convolution layer is set to 2 for image feature downsampling; then, transposed convolution is used to achieve image feature upsampling from image features of four different resolutions.

[0023] Furthermore, in step 2.1, the adaptive threshold generation module: takes all the pre-processed lidar point cloud points as the center point for calculating the density, first divides the pre-processed point cloud data into a spherical neighborhood with the center point as the center of mass, then calculates the number of point clouds in each neighborhood, and divides this number value by the neighborhood volume to obtain the volume density of different areas of the point cloud, then uses MLP to encode the density information, and uses the sigmoid activation function to normalize the output of the MLP to the range of [0,1], and finally outputs the depth threshold.

[0024] Furthermore, in step 2.1, the fusion module based on the deep attention mechanism specifically implements the following process:

[0025] Use the preprocessed point cloud data and the image features of the corresponding scale obtained by the image feature extraction module to generate point-by-point image feature representation;

[0026] The point-by-point image features, point cloud features and pre-processed point cloud data of the same scale are input into the gated weight generation network; specifically: the pre-processed point cloud data F oL Input into three fully connected layers, and the point-by-point image features F I and point cloud features F L They also pass through a fully connected layer respectively, and then add the three results of the same channel size, generate two branches through the tanh function, and compress them into a single channel weight matrix through two fully connected layers; use the sigmoid activation function to normalize the two weight matrices to the range of [0,1], and multiply the two weight matrices with the point-by-point image features and point cloud features respectively to generate the gated image feature F g.I and gated point cloud features F g.L ;

[0027] Generated gated image features F g.Iand the gated lidar feature F g.L It is input into the depth selection network, specifically: according to the depth threshold generated by the adaptive threshold generation module, the point cloud data of the corresponding scale is divided into a close point set and a long distance point set; within the close point set, the point cloud features F are concatenated in the feature dimension. L and gated image features F g.I ; In the distant point set, concatenate the point-by-point image features F in the feature dimension I and gated point cloud features F g.L At the same time, the multimodal features between the fusion point sets are connected using indexes, and the deep selection network finally outputs the multimodal fusion features.

[0028] Furthermore, in step 2.1, the fused features obtained by the multi-scale feature fusion backbone network are used to perform a bin-based 3D bounding box generation operation to generate 3D proposal boxes from the foreground points, and multiple 3D proposal boxes are selected as output. Specifically,

[0029] The multimodal fusion feature F obtained by the multi-scale feature fusion backbone network fu A one-dimensional convolution layer is input to generate a classification score for the point cloud corresponding to the fused feature. Points with a classification score greater than 0.2 are considered to be foreground points, otherwise they are background points, that is, a foreground mask is obtained; then a Bin-based 3D bounding box generation method is used to generate a 3D proposal box of the target from the foreground point, and the NMS algorithm is used to select 512 3D proposal boxes as output.

[0030] Furthermore, in step 3, the overall loss is the 3D proposal box generation stage loss L rpn and 3D bounding box refinement stage loss L rcnn sum.

[0031] The beneficial effects of the present invention are:

[0032] The present invention extracts point cloud and image features at different scales and realizes fusion based on the deep attention mechanism at multiple scales, so that point cloud and image features can be more fully and effectively utilized. At the same time, through the adaptive threshold generation network, the depth threshold is dynamically generated in a learnable manner to guide the fusion process to be effectively completed and achieve high-precision environmental perception. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 is a schematic diagram of image and lidar representation information at different depths;

[0034] FIG2 is an overall architecture diagram of a three-dimensional object detection network based on multimodal fusion and deep attention mechanism of the present invention;

[0035] Figure 3 is the overall architecture diagram of the multi-scale feature fusion backbone network;

[0036] Figure 4 is a diagram of the point cloud feature extraction network architecture based on hierarchical division and local abstraction;

[0037] Figure 5 is a diagram of the fusion module based on the deep attention mechanism;

[0038] Figure 6 is a schematic diagram of the canonical coordinate system transformation;

[0039] FIG7 is a schematic diagram showing the inconsistency between classification confidence and location confidence;

[0040] Figure 8 shows the three-dimensional target detection results of the fusion network based on multimodal fusion and deep attention mechanism. DETAILED DESCRIPTION

[0041] The present invention will be further described below with reference to the accompanying drawings and specific examples.

[0042] First, the technical terms involved in the present invention are explained:

[0043] KITTI dataset: a public dataset for evaluating computer vision algorithms in autonomous driving scenarios.

[0044] The present invention finds that the complementary effect of point clouds and images varies with depth, as shown in Figure 1, where the left half is the representation of targets at different depths in the lidar point cloud data, and the right half is the representation of targets at different depths in the image data; the appearance of the point cloud data changes significantly with the increase of the distance from the lidar sensor, while the edge, color and texture information of the image are insensitive to depth changes. As shown in Figure 1, d and e are the representations of the same target at close distances in different sensor data. It can be seen that the point cloud data is dense at this time and has complete target structure information. This information has a natural spatial information advantage in the three-dimensional world. In this case, the point cloud features are used to dominate the fusion process; a and h in Figure 1 are the representations of the same target at a long distance in different sensor data. It can be seen that in the point cloud data, the number of point clouds covering the target is too small, resulting in the loss of the target's spatial structure information, while in the image data, the target's appearance information can still be well preserved. In this case, the dense and regular image semantic information is more conducive to target recognition, and the depth information contained in the lidar point cloud data is used to assist target positioning.

[0045] The present invention provides a three-dimensional object detection method based on multimodal fusion and deep attention mechanism, which specifically includes the following steps:

[0046] Step 1: Obtain the raw point cloud data and raw image data from the KITTI dataset. The raw point cloud data includes spatial coordinate information (x, y, z), and the raw image data includes RGB information. Preprocess the raw point cloud data and raw image data to obtain preprocessed point cloud data and image data. Specifically, preprocessing includes rotating, flipping, scaling, and resizing the raw point cloud data and raw image data. In this paper, the image size is unified to 1280×384, and the number of lidar point clouds is unified to 16384.

[0047] Step 2: The preprocessed point cloud data and image data are fed into a 3D object detection network based on multimodal fusion and deep attention, as shown in Figure 2. This network is a two-stage 3D object detection network: the first stage, shown in Figure 2(a), is the 3D proposal box generation stage, and the second stage, shown in Figure 2(b), is the 3D bounding box refinement stage. The network ultimately outputs the object bounding box parameters and classification confidence, achieving accurate 3D object detection.

[0048] Step 2.1: As shown in the 3D proposal generation stage in Figure 2(a), the preprocessed point cloud data and image data are input into the 3D proposal generation stage. In this stage, the input data is first fed into the multi-scale feature fusion backbone network for multimodal feature fusion, outputting fused features. This fused feature is then used to perform a bin-based 3D bounding box generation operation to generate 3D proposals from the foreground points. The NMS algorithm is then used to select 512 3D proposals as output.

[0049] Among them, the structure of the multi-scale feature fusion backbone network is shown in Figure 3, which consists of four sub-modules: lidar point cloud feature extraction module, image feature extraction module, adaptive threshold generation module and fusion module based on deep attention mechanism.

[0050] The data flow in the multi-scale feature fusion backbone network shown in Figure 3 is as follows: preprocessed point cloud data is input into the LiDAR feature extraction module, which outputs point cloud features at five different scales. Simultaneously, the preprocessed point cloud data is input into the adaptive threshold generation module, which outputs depth thresholds. Preprocessed image data is input into the image feature extraction module, which outputs image features at five different scales. A deep attention-based fusion module is built between the point cloud features and image features of the same scale to perform multimodal feature fusion. There are five deep attention-based fusion modules for corresponding scales. The inputs to this deep attention-based fusion module are: the point cloud features and image features of the same scale obtained by the LiDAR point cloud feature extraction module and the image feature extraction module, the preprocessed point cloud data, and the depth threshold obtained by the adaptive threshold generation module. The output of this module is a multimodal fused feature, which is passed back to the feature extraction layer of the corresponding scale in the LiDAR feature extraction module for further encoding during the LiDAR feature extraction process.

[0051] The four sub-module structures of the multi-scale feature fusion backbone network are as follows:

[0052] LiDAR point cloud feature extraction module: As shown in the LiDAR feature extraction part of Figure 3, the input of this module is the preprocessed LiDAR point cloud data, and it outputs point cloud features of different scales. Specifically: the present invention builds four set abstraction (SA) layers for point cloud feature downsampling, and the number of sampling points is 4096, 1024, 256, and 64, respectively. In order to make each point have a complete feature representation, four feature propagation (FP) layers are used to realize point cloud feature upsampling. The set abstraction (SA) layer and the feature propagation (FP) layer come from the point cloud feature extraction part based on hierarchical division of local abstraction in the pointnet++ network shown in Figure 4.

[0053] Image Feature Extraction Module: As shown in the image feature extraction section of Figure 3, this module takes preprocessed image data as input and outputs image features at different scales. Specifically, the present invention constructs four convolutional blocks to match the resolution of point cloud features. Each convolutional block contains a batch normalization layer, a ReLU activation function, and two convolutional layers, where the stride of the second convolutional layer is set to 2 for image feature downsampling. Then, transposed convolution is used to achieve image feature upsampling from the four image features at different resolutions.

[0054] Adaptive Threshold Generation Module: As shown in the adaptive threshold generation section of Figure 3, the present invention uses all preprocessed LiDAR point cloud points as the center point for density calculation. The preprocessed point cloud data is first divided into spherical neighborhoods with the center point as the centroid. The number of points within each neighborhood is then calculated and divided by the neighborhood volume to obtain the volume density of different regions of the point cloud. The density information is then encoded using an MLP, and the MLP output is normalized to the range [0, 1] using a sigmoid activation function. Finally, the depth threshold is output.

[0055] Fusion module based on deep attention mechanism: As shown in Figure 5, the input of this module is the point cloud features and image features of the same scale obtained by the lidar point cloud feature extraction module and the image feature extraction module, the preprocessed point cloud data and the depth threshold obtained by the adaptive threshold generation module, and the output is the corresponding multimodal fusion feature. Specifically:

[0056] ① Use the pre-processed point cloud data and the image features of the corresponding scale obtained by the image feature extraction module to generate a point-by-point image feature representation. As shown in the mapping sampling network part of Figure 6, the projection and calibration matrix are used to achieve point-to-pixel correspondence, that is, calculate each point cloud point P i (x i ,y i ,z i ) to the image plane

[0057] Among them, R in is the camera’s intrinsic parameter matrix, R rect is the camera calibration matrix, T velo_to_cam Represents the projection matrix from the lidar to the camera.

[0058] Then the bilinear interpolation method is used to obtain the point-by-point image feature representation, which is described as follows:

[0059] in, Indicates P i Corresponding image features, K represents the bilinear interpolation function, Image features representing neighboring pixels of the projection location.

[0060] ② Input the image features, point cloud features and pre-processed point cloud data of the same scale into the gated weight generation network shown in FIG5. Specifically, the present invention inputs the pre-processed point cloud data F oL Input into three fully connected layers, and the point-by-point image features F I and point cloud features F LThey also pass through a fully connected layer respectively, then add the three results of the same channel size, generate two branches through the tanh function, and compress them into a single channel weight matrix (i.e. w I and w L ). Use the sigmoid activation function to normalize the two weight matrices to the range of [0,1], and multiply the two weight matrices with the point-by-point image features and point cloud features respectively to generate the gated image features F g.I and gated point cloud features F g.L , formulated as follows: F g.I =F I ×σ(Utanh(w1F oL +w2F I +w3F L )). F g.L =F L ×σ(Vtanh(w1F oL +w2F I +w3F L )).

[0061] Among them, σ represents the sigmoid activation function, U, V, w i (i=1,2,3) represents the learnable parameters in the fusion module.

[0062] ③Generated gated image feature F g.I and the gated lidar feature F g.L is input into the depth selection network shown in FIG5. Specifically, according to the depth threshold generated by the adaptive threshold generation module, the point cloud data of the corresponding scale is divided into a close point set and a long distance point set. In the close point set, the point cloud features F are concatenated in the feature dimension. L and gated image features F g.I ; In the distant point set, concatenate the point-by-point image features F in the feature dimension I and gated point cloud features F g.L To mitigate the impact of point cloud disorder on network performance, the present invention uses index connections to fuse multimodal features between point sets. Index connections are implemented by storing the index of the point cloud data in matrix form. When concatenating multimodal features between point sets, the index matrix is ​​traversed to restore the point cloud order.

[0063] This dual splicing strategy, that is, the fusion within the point set uses a series operation, and the fusion between point sets uses an index connection, can be formulated as follows:

[0064] Among them, C(·) represents index connection, || represents concatenation operation, and p f represents a set of distant points, p nrepresents a set of close points, F fu Represents multimodal fusion features.

[0065] Using this dual splicing strategy, the deep selection network can output multimodal fusion features F fu It is worth noting that, as shown in Figure 3, the outputs of the first four fusion modules based on the deep attention mechanism, namely F fu , is passed back to the feature extraction layer of the corresponding scale in the lidar feature extraction module, and continues to be further encoded as the lidar feature extraction process continues. The present invention only uses the fusion features output by the last fusion module based on the deep attention mechanism as the output of the entire multi-scale feature fusion backbone network to generate 3D proposal boxes.

[0066] As shown in the 3D proposal box generation stage in Figure 2(a), the fusion features obtained by the multi-scale feature fusion backbone network are used to perform the Bin-based 3D bounding box generation operation to generate 3D proposal boxes from the foreground points, and the NMS algorithm is used to select 512 3D proposal boxes as output. Specifically, the multimodal fusion feature F obtained by the multi-scale feature fusion backbone network is used to generate the 3D bounding box from the foreground points. fu A one-dimensional convolution is input to generate a classification score for the point cloud corresponding to the fused feature. Points with a classification score greater than 0.2 are considered foreground points, and vice versa, they are background points, that is, a foreground mask is obtained. Then, a Bin-based 3D bounding box generation method is used to generate a 3D proposal box of the target from the foreground point, and 512 3D proposal boxes are selected as output using the NMS algorithm. This method is the same as the method in the mature PointRCNN architecture and will not be described in detail here. The 3D proposal box can be represented as (x, y, z, h, w, l, θ), where (x, y, z) is the coordinates of the target center, (h, w, l) is the target bounding box size, and θ is the yaw angle.

[0067] Step 2.2: As shown in the 3D bounding box refinement stage in Figure 2(b), the 3D proposals, fused features, and foreground masks obtained in Step 2.1 are fed into the 3D bounding box refinement stage for 3D bounding box refinement and classification confidence prediction. The target bounding box parameters and classification confidence are ultimately output, achieving accurate and robust 3D object detection. The bounding box refinement stage here is identical to the operations in PointRCNN and will not be further elaborated here.

[0068] Step 3: Train a 3D object detection network based on multimodal fusion and deep attention mechanism. The network is jointly optimized through multiple losses. Specifically, since the present invention is a two-stage architecture, its overall loss is the 3D proposal box generation stage loss L rpn and 3D bounding box refinement stage loss L rcnn The sum of the loss settings is consistent with the EPNet network: L total =Lrpn +L rcnn .

[0069] Both losses use similar optimization objectives. rpn Loss as an example, consider the problem of inconsistency between location confidence and classification confidence as shown in Figure 7, and use consistency enforcement loss L ce Constraints are applied. The loss also includes classification loss and regression loss. Specifically, for the bounding box size (h, w, l) and the Y axis, the smoothL1 loss is directly used for optimization. For the X axis, Z axis and θ direction, the bin-based regression loss is used. At the same time, the focal loss is used as the classification loss to balance the imbalance of the positive and negative sample ratios. α is set to 0.25 and γ to 2.0. L rpn =L cls +L reg +λL ce . L cls =-α(1-c t ) γ log(c t ).

[0070] Among them, E is the cross entropy loss, S is the smoothL1 loss, c t is the confidence score that the current point cloud point belongs to the foreground, b u They are the predicted bin and the real bin respectively. r u are the predicted residual offset and the true residual offset respectively. D is the predicted 3D bounding box, G is the true 3D bounding box, and c is the classification confidence of D.

[0071] In step 4, the trained three-dimensional target detection network based on multimodal fusion and deep attention mechanism is used to process the collected lidar point cloud data and image data to be detected, and the 3D target information is output, including the 3D target bounding box parameters and classification confidence, thereby realizing the detection of 3D targets.

[0072] Test verification:

[0073] To verify the feasibility and effectiveness of the present invention, the KITTI dataset, a standard benchmark dataset for autonomous driving, was used for testing. This dataset consists of 7,481 training samples and 7,518 test samples. The 7,481 training samples were further divided into a training set of 3,712 samples and a validation set of 3,769 samples. The data was preprocessed before the experiment, including rotation, flipping, and scaling, relying on three common data augmentation strategies to prevent overfitting. Figure 8 compares the qualitative results of the present invention's method with those of other 3D detectors. The explanation is as follows:

[0074] Figure 8 shows a qualitative comparison of the present invention with other 3D detectors. The top layer displays the 3D bounding box on the image, the middle layer displays the detection results of other 3D detectors, and the bottom layer displays the detection results of the present invention. It can be seen that the present invention has a good correction effect on the orientation of the target bounding box, especially for distant targets. Specifically, as shown in Figure 8(a), compared with other methods, the present invention has no false positives. When the lidar points are too sparse, the target structure cannot be effectively represented, resulting in unclear distinction between foreground and background, which is prone to false positives. By segmenting the point cloud, the present invention can learn which features are more dependent on where. Even in the presence of point cloud interference features, the present invention does not make false detections because the target's color and texture information is absent in these locations. Furthermore, in Figures 8(c) and 8(d), other networks incorrectly estimate the orientation of the bounding box (indicated by the short line under the bounding box), while the present invention achieves correct detection. Finally, Figures 8(e) and 8(f) demonstrate the excellent performance of the present invention in detecting distant objects, which is also due to the ideal balance between image semantic features and point cloud geometric features. In summary, the present invention utilizes the image data of the camera sensor and the point cloud data of the lidar sensor to extract multi-scale cross-modal heterogeneous features, thereby achieving fully effective heterogeneous feature fusion and completing accurate and robust three-dimensional target detection.

[0075] The above embodiments are used to illustrate the present invention rather than to limit the present invention. Any modifications and changes made to the present invention within the spirit of the present invention and the protection scope of the claims shall fall within the protection scope of the present invention.

Claims

1. A three-dimensional object detection method based on multimodal fusion and deep attention mechanism, characterized in that: The specific steps include: Step 1: Obtain original point cloud data and original image data, wherein the original point cloud data includes spatial coordinate information (x, y, z), and the original image data includes RGB information; then preprocess the obtained original point cloud data and original image data to obtain preprocessed point cloud data and image data; Step 2: input the preprocessed point cloud data and image data into a three-dimensional object detection network based on multimodal fusion and deep attention mechanism. The three-dimensional object detection network based on multimodal fusion and deep attention mechanism includes two stages: the first stage is the 3D proposal box generation stage, and the second stage is the 3D bounding box refinement stage. The network finally outputs the target bounding box parameters and classification confidence; Step 2.1: 3D proposal box generation stage; specifically: The preprocessed point cloud data and image data are input into the 3D proposal box generation stage. In this stage, the input data is first input into the multi-scale feature fusion backbone network for multi-modal feature fusion and outputs the fused features. Then the fused features are used to perform the Bin-based 3D bounding box generation operation to generate 3D proposal boxes from the foreground points, and the NMS algorithm is used to select multiple 3D proposal boxes as output. The multi-scale feature fusion backbone network includes four sub-modules: a lidar point cloud feature extraction module, an image feature extraction module, an adaptive threshold generation module, and a fusion module based on a deep attention mechanism; The data flow in the multi-scale feature fusion backbone network is as follows: the pre-processed point cloud data is input into the laser radar feature extraction module, which outputs five point cloud features of different scales; at the same time, the pre-processed point cloud data is input into the adaptive threshold generation module, which outputs the depth threshold; the pre-processed image data is input into the image feature extraction module, which outputs five image features of different scales; a fusion module based on the deep attention mechanism is built between the point cloud features and image features of the same scale to fuse the multi-modal features, and there are five fusion modules based on the deep attention mechanism of corresponding scales; the input of the fusion module based on the deep attention mechanism is: the point cloud features and image features of the same scale obtained by the laser radar point cloud feature extraction module and the image feature extraction module, the pre-processed point cloud data and the depth threshold obtained by the adaptive threshold generation module, and the output of this module is the multi-modal fusion feature; The outputs of the first four fusion modules based on the deep attention mechanism are passed back to the feature extraction layer of the corresponding scale in the lidar feature extraction module, and are further encoded as the lidar feature extraction process continues. The fused features output by the last fusion module based on the deep attention mechanism are used as the fusion feature of the entire multi-scale feature extraction module. The output of the feature fusion backbone network; The fused features obtained by the multi-scale feature fusion backbone network are used to perform a Bin-based 3D bounding box generation operation to generate 3D proposal boxes from foreground points, and multiple 3D proposal boxes are selected as output; Step 2.2: 3D bounding box refinement stage, the 3D proposal box, fusion features, and foreground mask obtained in step 2.1 are input into the 3D bounding box refinement stage, and the 3D bounding box refinement correction and classification confidence prediction are performed, and finally the target bounding box parameters and classification confidence are output; Step 3: Train a 3D object detection network based on multimodal fusion and deep attention mechanism; Step 4: Use the trained 3D target detection network based on multimodal fusion and deep attention mechanism to process the collected lidar point cloud data and image data to be detected, and output 3D target information, including 3D target bounding box parameters and classification confidence, to achieve 3D target detection.

2. The three-dimensional target detection method based on multimodal fusion and deep attention mechanism as claimed in claim 1, characterized in that: In step 1, the original point cloud data and the original image data are obtained from the KITTI dataset.

3. The method for constructing a three-dimensional object detection network according to claim 1, characterized in that: In step 2.1, the input of the laser radar point cloud feature extraction module is the preprocessed laser radar point cloud data, and the output is point cloud features of different scales; Specifically, four set abstraction layers are built for point cloud feature downsampling, and then four feature propagation layers are used to achieve point cloud feature upsampling.

4. The method for constructing a three-dimensional object detection network according to claim 1, characterized in that: In step 2.1, the input of the image feature extraction module is the preprocessed image data, and the output is image features of different scales; Specifically, four convolution blocks are built to match the resolution of point cloud features. Each convolution block contains a BN layer, a ReLU activation function and two convolution layers. The stride of the second convolution layer is set to 2 for image feature downsampling. Then, transposed convolution is used to achieve image feature upsampling from image features of four different resolutions.

5. The method for constructing a three-dimensional object detection network according to claim 1, wherein: In step 2.1, the adaptive threshold generation module: takes all the preprocessed lidar point cloud points as the center point for calculating the density, first divides the preprocessed point cloud data into a spherical neighborhood with the center point as the center of mass, and then calculates the number of point clouds in each neighborhood, and divides this number by the neighborhood volume to obtain the volume density of different areas of the point cloud, then uses MLP to encode the density information, and uses the sigmoid activation function to normalize the output of MLP to the range of [0,1], and finally outputs the depth threshold.

6. The method for constructing a three-dimensional object detection network according to claim 1, characterized in that: In step 2.1, the fusion module based on the deep attention mechanism specifically implements the following process: Use the preprocessed point cloud data and the image features of the corresponding scale obtained by the image feature extraction module to generate a point-by-point image feature representation; The point-by-point image features, point cloud features and pre-processed point cloud data of the same scale are input into the gated weight generation network; specifically: the pre-processed point cloud data F oL Input into three fully connected layers, and the point-by-point image features F I and point cloud features F L They also pass through a fully connected layer respectively, and then add the three results of the same channel size, generate two branches through the tanh function, and compress them into a single channel weight matrix through two fully connected layers; use the sigmoid activation function to normalize the two weight matrices to the range of [0,1], and multiply the two weight matrices with the point-by-point image features and point cloud features respectively to generate the gated image features F g.I And the gated point cloud feature F g.L ; Generated gated image features F g.I and the gated lidar feature F g.L is input into the depth selection network, specifically: according to the depth threshold generated by the adaptive threshold generation module, the point cloud data of the corresponding scale is divided into a short-distance point set and a long-distance point set; within the short-distance point set, the point cloud features F are concatenated in the feature dimension L and gated image features F g.I ; In the long-distance point set, concatenate the point-by-point image features F in the feature dimension I And the gated point cloud feature F g.L ; At the same time, the multimodal features between the fusion point sets are connected using indexes, and the deep selection network finally outputs the multimodal fusion features.

7. The method for constructing a three-dimensional object detection network according to claim 1, characterized in that: In step 2.1, the fused features obtained by the multi-scale feature fusion backbone network are used to perform a Bin-based 3D bounding box generation operation to generate a 3D proposal box from the foreground point, and select multiple 3D proposal boxes as output. Specifically, it means: The multi-modal fusion feature F obtained by the multi-scale feature fusion backbone network fu A layer of one-dimensional convolution is input to generate a classification score for the point cloud corresponding to the fused feature. Points with a classification score greater than 0.2 are considered to be foreground points, otherwise they are background points, that is, a foreground mask is obtained; then the Bin-based 3D bounding box generation method is used to generate the 3D proposal box of the target from the foreground point, and the NMS algorithm is used to select 512 3D proposal boxes as output.

8. The method for constructing a three-dimensional object detection network according to claim 1, wherein: In step 3, the overall loss is the 3D proposal box generation stage loss L rpn and the 3D bounding box refinement stage loss L rcnn sum.

Citation Information

Patent Citations

  • Intelligent traffic target fusion detection method and system based on image and point cloud

    CN114359181A

  • Three-dimensional environment target detection method based on multi-sensor fusion

    CN115049821A

  • Multi-modal data fusion three-dimensional target detection method based on attention mechanism

    CN115082674A

  • Three-dimensional target detection method and system based on multi-modal fusion

    CN115937819A

  • Three-dimensional target detection method based on multi-modal fusion and deep attention mechanism

    CN116612468A

Cited By

  • Intelligent humanoid robot scene understanding method based on laser point cloud

    CN118982678A

  • Danger alarm method, device and equipment based on radar induction and storage medium

    CN119091433A

  • Unmanned aerial vehicle ground three-dimensional change detection method based on neighborhood display feature attention

    CN119152332A

  • A method for detecting three-dimensional changes of UAVs over the ground based on attention of neighborhood display features

    CN119152332B

  • Point cloud 3D target detection method and system, storage medium and equipment

    CN119206195A