Three-dimensional multi-modal target detection method based on partial completion

Through a three-dimensional multi-modal target detection method based on partial completion, point clouds and image data are effectively fused to generate pseudo point clouds. The segmentation module and depth completion module are used to solve the problems of fusion difficulty and computing resource consumption in the existing technology. , improving detection accuracy and robustness.

CN118628716AInactive Publication Date: 2024-09-10YANGTZE DELTA REGION INST (QUZHOU) UNIV OF ELECTRONIC SCI & TECH OF CHINA
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410726539.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively fuse point cloud data and image data while maintaining high efficiency and consumption of computing resources. It is also difficult to reduce the impact of noise points during 3D completion, affecting detection accuracy.

Method used

A three-dimensional multi-modal target detection method based on partial completion is used, feature fusion is performed through the point cloud detection network and the pseudo point cloud detection network to generate pseudo point clouds, and the segmentation module, improved depth completion module and pseudo point cloud features are used The extraction module performs feature extraction and fusion to reduce computing resource consumption and improve detection accuracy.

Benefits of technology

It improves the accuracy and robustness of three-dimensional target detection, enriches the amount of data information, reduces the impact of noise points, and achieves efficient feature fusion and optimization of computing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628716A
    Figure CN118628716A
Patent Text Reader

Abstract

The invention discloses a three-dimensional multi-modal target detection method based on partial completion, which belongs to the technical field of three-dimensional target detection, and comprises the following steps: inputting a point cloud into a point cloud detection network for detection to obtain a pre-selection box and original point cloud features; inputting the color image and the point cloud into a false point cloud detection network for partial completion to obtain a false point cloud, cutting the false point cloud through a pre-selection box, and performing feature extraction on the cut false point cloud to obtain a false point cloud feature; and carrying out feature fusion and feature extraction on the original point cloud features and the false point cloud features through a feature fusion and cascade network to obtain target detection features of each level, and voting the target detection features of each level to obtain a three-dimensional multi-modal target detection result. The problems that in the prior art, point cloud data and image data cannot be effectively fused while high efficiency is kept, and consumption of computing resources cannot be reduced while complementation quality is kept are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of three-dimensional target detection, and in particular relates to a three-dimensional multimodal target detection method based on partial completion. Background Art

[0002] In recent years, with the introduction and popularization of new energy concepts, electric vehicles have gradually become the focus of public attention. While reducing energy consumption and emissions, they have also become an important testing ground for new generation information technology and artificial intelligence, greatly promoting the development of autonomous driving technology.

[0003] In the past decade, the research of self-driving cars has been the direction of the industry's efforts, and 3D object detection, as a key technology, has received great attention. In particular, 3D object detection plays a vital role in the intelligent driving system of electric vehicles. With the increasing popularity and intelligence of electric vehicles, in order to enhance driving safety, comfort and convenience, more and more automakers have begun to adopt 3D object detection technology in their intelligent driving systems.

[0004] In multimodal 3D object detection, it is difficult to fuse the features of different modal data, but feature fusion technology has become the focus of researchers because it can theoretically make full use of the features of multiple data modalities. Feature fusion methods can directly integrate the features of data, which is particularly critical in the field of multimodal detection.

[0005] 3D completion technology does play a positive role in enriching scene information, but it also has some problems that cannot be ignored, especially in terms of increasing the amount of calculation and introducing noise points. We observed through experimental data that the number of points added by point cloud completion is mainly concentrated on objects that are closer. When the distance exceeds 30 meters, the number of added points is significantly less than that of objects within 30 meters. It is worth noting that although the number of pseudo-points added by distant objects is small, their contribution to improving the accuracy of the algorithm is the greatest. Through detailed statistics, it was found that about 97% of the pseudo-points only brought a 0.18% improvement in the overall detection accuracy, while the remaining 3% of the pseudo-points increased the accuracy by 2.2%.

[0006] Therefore, how to develop a model that can effectively fuse point cloud data and image data while maintaining high efficiency, how to maintain the completion quality during three-dimensional completion, reduce the consumption of computing resources, and reduce the impact of noise points, while improving the algorithm's accuracy and ensuring its efficiency and practicality, is an unresolved challenge facing the research community. Summary of the invention

[0007] The present invention provides a three-dimensional multimodal target detection method based on partial completion, which solves the problems that the prior art cannot achieve effective fusion of point cloud data and image data while maintaining high efficiency, and cannot reduce the consumption of computing resources while maintaining the completion quality.

[0008] In order to solve the above technical problems, the technical solution of the present invention is: a three-dimensional multimodal target detection method based on partial completion, comprising the following steps:

[0009] S1, input the point cloud into the point cloud detection network for detection, and obtain the pre-selected box and original point cloud features;

[0010] S2, inputting the color image and the point cloud into the pseudo point cloud detection network for partial completion to obtain a pseudo point cloud, cutting the pseudo point cloud through a pre-selected box, and extracting features from the cut pseudo point cloud to obtain pseudo point cloud features;

[0011] S3. The original point cloud features and pseudo point cloud features are fused and extracted through feature fusion and cascade network to obtain the target detection features of each level, and the target detection features of each level are voted to obtain the three-dimensional multimodal target detection results.

[0012] The beneficial effects of the present invention are as follows: the present invention uses image data to perform deep completion of point cloud data, generating a new pseudo point cloud, which not only increases the number of points, thereby enriching the amount of information in the data, but also keeps its feature dimension consistent with the original point cloud data, so that the pseudo point cloud contains both three-dimensional features and two-dimensional features, improves the comprehensive expressiveness of the data, and provides richer and more accurate information for subsequent target detection tasks. The method of the present invention more effectively integrates and utilizes data features of different modalities, improves the accuracy and robustness of three-dimensional target detection, and solves the problem that the prior art cannot achieve effective fusion of point cloud data and image data while maintaining high efficiency, and cannot reduce the consumption of computing resources while maintaining the completion quality.

[0013] Furthermore, the pseudo point cloud detection network in step S2 includes a segmentation module, an improved depth completion module and a pseudo point cloud feature extraction module connected in sequence;

[0014] The segmentation module includes a first stage, a second stage, a third stage and a fourth stage connected in sequence; the first stage includes a 1 / 4 resolution branch; the second stage includes a parallel 1 / 4 resolution branch and a 1 / 8 resolution branch; the third stage includes a parallel 1 / 8 resolution branch and a 1 / 16 resolution branch; the fourth stage includes a parallel 1 / 16 resolution branch and a 1 / 32 resolution branch;

[0015] The 1 / 4 resolution branch of the first stage is connected to the 1 / 4 resolution branch and the 1 / 8 resolution branch of the second stage respectively; the 1 / 8 resolution branch of the second stage is connected to the 1 / 8 resolution branch and the 1 / 16 resolution branch of the third stage respectively; the 1 / 16 resolution branch of the third stage is connected to the 1 / 16 resolution branch and the 1 / 32 resolution branch of the fourth stage respectively;

[0016] The 1 / 4 resolution branch of the second stage outputs a first segmentation mask map; the 1 / 8 resolution branch of the third stage outputs a second segmentation mask map; the 1 / 16 resolution branch of the fourth stage outputs a third segmentation mask map; the 1 / 32 resolution branch of the fourth stage outputs a fourth segmentation mask map;

[0017] The 1 / 4 resolution branch of the first stage is used as an input end of the segmentation module; the first segmentation mask map, the second segmentation mask map, the third segmentation mask map and the fourth segmentation mask map are used together as an output of the segmentation module, that is, a segmentation mask map;

[0018] The improved depth completion module includes an encoder, a decoder and a dynamic spatial propagation submodule whose backbone network is ResNet34 connected in sequence;

[0019] The pseudo point cloud feature extraction module includes three cascaded pseudo point cloud feature extractors.

[0020] Furthermore, the feature extraction step of the pseudo point cloud feature extractor is:

[0021] A1. Using the pseudo point cloud as an input feature of a pseudo point cloud feature extractor, wherein the pseudo point cloud includes color features and position features of the pseudo point cloud;

[0022] A2. The dimension of the color feature is increased to C through the fully connected layer to obtain a high-dimensional color feature.

[0023] A3. Reduce the complexity of input position features through neighborhood search to obtain low-complexity position features;

[0024] A4. The low-complexity position feature dimension is increased to C through the fully connected layer to obtain a high-dimensional position feature;

[0025] A5. Add the high-dimensional color features and high-dimensional position features to calculate the position residual of the pseudo point cloud;

[0026] A6. The dimension of the position residual is increased to C through the fully connected layer to obtain a high-dimensional position residual;

[0027] A7. Weight the high-dimensional position residual of each pseudo point cloud, and splice the weighted high-dimensional position residuals to obtain spliced ​​position residuals;

[0028] A8. Reduce the dimension of the splicing position residual to C through the fully connected layer to obtain the output features of the pseudo point cloud feature extractor.

[0029] Furthermore, the calculation formula of the position residual in step A5 is:

[0030]

[0031]

[0032] in, represents the position residual, x a ,y a and z a They represent the three-dimensional horizontal coordinate, vertical coordinate and vertical coordinate of the point cloud corresponding to the a-th pseudo point cloud, respectively. a and v a They represent the horizontal and vertical coordinates of the a-th pseudo point cloud in the two-dimensional image, respectively. a represents the ath pseudo point cloud, and They represent the three-dimensional horizontal coordinate, vertical coordinate and vertical coordinate of the point cloud corresponding to the k-th neighbor pseudo point cloud of the a-th pseudo point cloud, respectively. and They represent the horizontal and vertical coordinates of the kth neighbor pseudo point cloud of the ath pseudo point cloud in the two-dimensional image, respectively. Represents the a-th pseudo point cloud p a The k-th neighbor pseudo point cloud, Represents the a-th pseudo point cloud p a The distance to the kth neighbor pseudo point cloud.

[0033] Furthermore, the specific steps of step S2 are:

[0034] S21, segmenting the color image through a segmentation module to obtain a segmentation mask image;

[0035] S22, calculating the transformation matrix of the point cloud and the depth map, and converting the point cloud into a sparse depth map through the transformation matrix;

[0036] S23, inputting the segmentation mask image and the sparse depth image into the improved depth completion module for depth completion to obtain a dense depth image, and converting the dense depth image into a pseudo point cloud through a transformation matrix;

[0037] S24. Cut the pseudo point cloud through the pre-selected box, input the cut pseudo point cloud into the pseudo point cloud feature extraction module for extraction, obtain the first pseudo point cloud feature, the second pseudo point cloud feature and the third pseudo point cloud feature, and splice the first pseudo point cloud feature, the second pseudo point cloud feature and the third pseudo point cloud feature to obtain the pseudo point cloud feature.

[0038] The beneficial effects of the above further scheme are as follows: the segmentation module reduces unnecessary calculations without sacrificing accuracy, and the pseudo point cloud feature extraction module uses three cascaded pseudo point cloud feature extractors to effectively extract 2D color features and 3D position features in the pseudo point cloud, thereby providing richer information for subsequent processing and analysis, and can extract deeper features, provide high receptive fields and rich semantic information through deep features, and provide delicate structural information through underlying features, and the pseudo point cloud feature extractor also reduces the computational complexity, thereby achieving the goal of maintaining the completion quality while reducing the consumption of computing resources and reducing the impact of noise points.

[0039] Furthermore, the specific steps of step S23 are:

[0040] S231, inputting the segmentation mask image and the sparse depth image into an encoder for encoding to obtain encoding features;

[0041] S232, inputting the encoded features into a decoder to obtain an initial depth map;

[0042] S233, calculating the initial depth map through the affinity matrix to obtain a segmentation mask;

[0043] S234, calculating the initial depth map through the Sigmoid activation function to obtain spatial and sequence attention;

[0044] S235, based on the dynamic spatial propagation submodule, dynamically propagate the initial depth map through the segmentation mask and the spatial and sequence attention to obtain a dense depth map;

[0045] S236, converting the dense depth map into a pseudo point cloud through a transformation matrix.

[0046] The beneficial effects of the above further scheme are: optimizing the depth completion process, enriching scene information and effectively improving the density of the point cloud, focusing on the depth completion of the detection object, greatly reducing the introduction of irrelevant points and noise, and significantly improving the quality of point cloud data.

[0047] Furthermore, the feature fusion and cascade network in step S3 includes multiple layers of attention feature fusion modules and cascade modules connected in sequence;

[0048] The cascade module includes a pooling submodule and a cascade encoder connected in sequence, and the cascade module also includes three attention submodules connected in sequence; the cascade encoder is connected to the three attention submodules respectively.

[0049] Furthermore, the specific steps of step S3 are:

[0050] S31, inputting the pseudo point cloud features and the original point cloud features into a multi-layer attention feature fusion module, performing local fusion and global fusion, and obtaining local features and global features;

[0051] S32, fusing the local features with the global features through soft selection to obtain fused features;

[0052] S33, performing pooling operation and encoding operation on the fusion feature in sequence through the pooling submodule and the cascade encoder to obtain the cascade encoding feature;

[0053] S34, concatenating the cascade coding feature with the corresponding position coding through the j-th attention submodule to obtain a first concatenated feature of the j-th attention submodule, where j=1, 2, 3;

[0054] S35, concatenating the first concatenated feature of the j-th attention submodule with the final feature of the first j-1 attention submodules to obtain the second concatenated feature of the j-th attention submodule, wherein if j=1, the first concatenated feature of the first attention submodule is used as the second concatenated feature of the first attention submodule;

[0055] S36. Calculate the weight coefficient Q of the j-th attention submodule j , feature map V j And the feature map K j ;

[0056] S37, through the weight coefficient Q j , feature map V j And the feature map K j Calculate the final features of the j-th attention submodule and the detection head features;

[0057] S38, concatenating the detection head feature of the j-th attention submodule and the first concatenated feature to obtain the target detection feature of the j-th attention submodule, that is, obtaining the target detection feature of each level;

[0058] S39. Vote for each level of target detection features to obtain the final detection frame, that is, the three-dimensional multimodal target detection result.

[0059] The beneficial effects of the above further scheme are as follows: the multi-layer attention feature fusion module fuses point cloud features and pseudo point cloud features at the global and local levels respectively. This deep fusion method effectively improves the quality of feature fusion, which is significantly better than simple fusion methods such as feature addition and splicing, and can more finely fuse point cloud features and pseudo point cloud features, thereby achieving higher-level information integration in point cloud data processing. At the same time, the cascade module can efficiently learn features of all layers, including cross-layer features, gradually improve the accuracy of object detection in point clouds, and improve detection accuracy.

[0060] Furthermore, the calculation formula of the local features and the global features in step S31 is:

[0061] L(F s ,F o )=BN(Conv2(δ(BN(Conv1(F s +F o )))))

[0062] G(F s ,F o )=BN(Conv2(δ(BN(Conv1(GAP(F s +F o ))))))

[0063] Among them, L(F s ,F o ) represents the local features, G(F s ,F o ) represents the global feature, F s represents the pseudo point cloud feature, F o represents the original point cloud features, BN(·) represents batch normalization, Conv1(·) and Conv2(·) both represent multi-layer perceptrons, δ(·) represents the Sigmoid activation function, and GAP(·) represents the global average pooling operation;

[0064] The calculation formula of the fusion feature in step S32 is:

[0065] Z=δ(L+G)×L+(1-δ(L+G))×G

[0066] Among them, Z represents the fusion feature, L represents the local feature L(F s ,F o ), G represents the global feature G(F s ,F o ).

[0067] Furthermore, the expression of the detection head of the j-th attention submodule in step S37 is:

[0068]

[0069] in, represents the i-th detection head feature of the j-th attention submodule, softmax(·) represents the normalized exponential function, represents the weight coefficient of the i-th detection head of the j-th attention submodule, and They all represent the feature maps of the i-th detection head of the j-th attention submodule, express The transpose of , C' represents the feature dimension of multi-head attention;

[0070] The expression of the target detection feature in step S38 is:

[0071]

[0072] Among them, F j represents the target detection feature of the jth attention submodule, Concat(·) represents the concatenation operation, represents the first concatenated feature of the jth attention submodule, represents the first detection head feature of the jth attention submodule, represents the Hth detection head feature of the jth attention submodule;

[0073] The expression for voting in step S39 is:

[0074]

[0075] Among them, C represents the confidence, j represents the number of attention submodules, and C j represents the confidence of the jth attention submodule, B represents the final detection box, and B j Represents the detection box of the jth attention submodule. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] Figure 1 The present invention is a flowchart of a three-dimensional multimodal target detection method based on partial completion.

[0077] Figure 2 Schematic diagram of the segmentation module of the present invention.

[0078] Figure 3 A schematic diagram of the improved depth completion module of the present invention.

[0079] Figure 4 It is a schematic diagram of the effect of the present invention on the image plane.

[0080] Figure 5 It is a schematic diagram of the three-dimensional effect of the present invention on the point cloud. DETAILED DESCRIPTION

[0081] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.

[0082] Example

[0083] like Figure 1 As shown, the present invention provides a three-dimensional multimodal target detection method based on partial completion, comprising the following steps:

[0084] S1, input the point cloud into the point cloud detection network for detection, and obtain the pre-selected box and original point cloud features;

[0085] S2, inputting the color image and the point cloud into the pseudo point cloud detection network for partial completion to obtain a pseudo point cloud, cutting the pseudo point cloud through a pre-selected box, and extracting features from the cut pseudo point cloud to obtain pseudo point cloud features;

[0086] S3. The original point cloud features and pseudo point cloud features are fused and extracted through feature fusion and cascade network to obtain the target detection features of each level, and the target detection features of each level are voted to obtain the three-dimensional multimodal target detection results.

[0087] The pseudo point cloud detection network in step S2 includes a segmentation module, an improved depth completion module and a pseudo point cloud feature extraction module connected in sequence;

[0088] The segmentation module includes a first stage, a second stage, a third stage and a fourth stage connected in sequence; the first stage includes a 1 / 4 resolution branch; the second stage includes a parallel 1 / 4 resolution branch and a 1 / 8 resolution branch; the third stage includes a parallel 1 / 8 resolution branch and a 1 / 16 resolution branch; the fourth stage includes a parallel 1 / 16 resolution branch and a 1 / 32 resolution branch;

[0089] The 1 / 4 resolution branch of the first stage is connected to the 1 / 4 resolution branch and the 1 / 8 resolution branch of the second stage respectively; the 1 / 8 resolution branch of the second stage is connected to the 1 / 8 resolution branch and the 1 / 16 resolution branch of the third stage respectively; the 1 / 16 resolution branch of the third stage is connected to the 1 / 16 resolution branch and the 1 / 32 resolution branch of the fourth stage respectively;

[0090] The 1 / 4 resolution branch of the second stage outputs a first segmentation mask map; the 1 / 8 resolution branch of the third stage outputs a second segmentation mask map; the 1 / 16 resolution branch of the fourth stage outputs a third segmentation mask map; the 1 / 32 resolution branch of the fourth stage outputs a fourth segmentation mask map;

[0091] The 1 / 4 resolution branch of the first stage is used as an input end of the segmentation module; the first segmentation mask map, the second segmentation mask map, the third segmentation mask map and the fourth segmentation mask map are used together as an output of the segmentation module, that is, a segmentation mask map;

[0092] The improved depth completion module includes an encoder, a decoder and a dynamic spatial propagation submodule whose backbone network is ResNet34 connected in sequence;

[0093] The pseudo point cloud feature extraction module includes three cascaded pseudo point cloud feature extractors.

[0094] In this embodiment, the segmentation module is obtained through the pruned HRNet network. The original HRNet network shows limitations when performing intensive prediction tasks. In order to reduce the computational burden, the segmentation module designed in the present invention deletes the 1 / 4 resolution branches of the third and fourth stages and the 1 / 8 resolution branch of the fourth stage of the original HRNet network.

[0095] like Figure 2 As shown in the figure, the segmentation module first extracts the features of the input image and inputs the extracted features into the 1 / 4 resolution branch of the first stage for feature transformation to obtain the feature map f 11 And the feature map f 12 , the feature map f 11 Input to the 1 / 4 resolution branch of the second stage, perform feature transformation and downsampling, and obtain the transformed feature map f 111 ' and downsampled feature map f 112 ', the feature map f 12 Input to the 1 / 8 resolution branch of the second stage, perform feature transformation and upsampling, and obtain the transformed feature map f 122 ' and upsampled feature map f 121 '. Transform the feature map f 111 'With the upsampled feature map f 121 'Add and get the feature map f 21 , as the first segmentation mask map, the downsampled feature map f 112 ' and transform feature map f 21 'Add and get the feature map f 22 .

[0096] The feature map f 22 The 1 / 8 resolution branch is input to the 1 / 16 resolution branch of the third stage. The 1 / 8 resolution branch processes the feature map f 22 Perform feature transformation and downsampling to obtain the transformed feature map f 211 ' and downsampled feature map f 212 ', the feature map f 22 Input to the 1 / 16 resolution branch of the second stage, perform feature transformation and upsampling, and obtain the transformed feature map f 222 ' and upsampled feature map f 221 '. Transform the feature map f 211 'With the upsampled feature map f 221'Add and get the feature map f 31 , as the second segmentation mask map, the downsampled feature map f 212 ' and transform feature map f 222 'Add and get the feature map f 32 .

[0097] The feature map f 32 The 1 / 16 resolution branch is input to the 1 / 32 resolution branch of the fourth stage. The 1 / 16 resolution branch performs a 32 Perform feature transformation and downsampling to obtain the transformed feature map f 311 ' and downsampled feature map f 312 ', the feature map f 32 Input to the 1 / 32 resolution branch of the second stage, perform feature transformation and upsampling, and obtain the transformed feature map f 322 ' and upsampled feature map f 321 '. Transform the feature map f 311 'With the upsampled feature map f 321 'Add and get the feature map f 41 , as the third segmentation mask map, the downsampled feature map f 312 ' and transform feature map f 322 'Add and get the feature map f 42 , as the fourth segmentation mask map. The segmentation module outputs the first segmentation mask map, the second segmentation mask map, the third segmentation mask map and the fourth segmentation mask map, that is, outputs the segmentation mask map.

[0098] Therefore, the network structure of the segmentation module proposed in the present invention can maintain a continuous high-resolution feature map process, supplemented by multi-resolution feature maps, including four branches with resolutions of 1 / 4, 1 / 8, 1 / 16, and 1 / 32, wherein the resolution is reduced and the receptive field is reduced by downsampling, and through branches of different resolutions in four stages, using addition operations, these feature maps are continuously communicated and fused in the network, and the segmentation module proposed in the present invention can reduce unnecessary calculations without sacrificing accuracy.

[0099] The feature extraction steps of the pseudo point cloud feature extractor are as follows:

[0100] A1. Using the pseudo point cloud as an input feature of a pseudo point cloud feature extractor, wherein the pseudo point cloud includes color features and position features of the pseudo point cloud;

[0101] A2. The dimension of the color feature is increased to C through the fully connected layer to obtain a high-dimensional color feature.

[0102] A3. Reduce the complexity of input position features through neighborhood search to obtain low-complexity position features;

[0103] A4. The low-complexity position feature dimension is increased to C through the fully connected layer to obtain a high-dimensional position feature;

[0104] A5. Add the high-dimensional color features and high-dimensional position features to calculate the position residual of the pseudo point cloud;

[0105] A6. The dimension of the position residual is increased to C through the fully connected layer to obtain a high-dimensional position residual;

[0106] A7. Weight the high-dimensional position residual of each pseudo point cloud, and splice the weighted high-dimensional position residuals to obtain spliced ​​position residuals;

[0107] A8. Reduce the dimension of the splicing position residual to C through the fully connected layer to obtain the output features of the pseudo point cloud feature extractor.

[0108] The calculation formula of the position residual in step A5 is:

[0109]

[0110]

[0111] in, represents the position residual, x a ,y a and z a They represent the three-dimensional horizontal coordinate, vertical coordinate and vertical coordinate of the point cloud corresponding to the a-th pseudo point cloud, respectively. a and v a They represent the horizontal and vertical coordinates of the a-th pseudo point cloud in the two-dimensional image, respectively. a represents the ath pseudo point cloud, and They represent the three-dimensional horizontal coordinate, vertical coordinate and vertical coordinate of the point cloud corresponding to the k-th neighbor pseudo point cloud of the a-th pseudo point cloud, respectively. and They represent the horizontal and vertical coordinates of the kth neighbor pseudo point cloud of the ath pseudo point cloud in the two-dimensional image, respectively. Represents the a-th pseudo point cloud p a The k-th neighbor pseudo point cloud, Represents the a-th pseudo point cloud p a The distance to the kth neighbor pseudo point cloud.

[0112] In this embodiment, the position feature of the ath pseudo point cloud is represented by (x a ,y a ,z a ) represents the color feature, and (r a ,g a ,b a), the coordinates of the ath pseudo point cloud are represented by (x a ,y a ,z a ,u a ,v a The calculation of the position residual is very helpful in extracting 3D and 2D semantic features. In this embodiment, the position feature and color feature of the pseudo point cloud are calculated in two branches, which can effectively reduce the calculation complexity.

[0113] If the features of the pseudo point cloud are passed through a fully connected layer as a whole and then a neighborhood search is performed, the complexity is O(6*k*N*C*3*k*N*C). This embodiment is designed as two branches, and the final computational complexity is O((N*3*C+N*k*3*C)*3*k*N*C), where k represents the dimension of the feature after passing through the fully connected layer, N represents the number of points in the pseudo point cloud, and C represents the feature dimension. Therefore, the computational complexity of the present invention is nearly reduced by half, which can greatly reduce the computational complexity.

[0114] And three cascaded pseudo point cloud feature extractors are used to extract deeper features. Since deep features provide high receptive field and rich semantic information, and the underlying features can provide delicate structural information, the features extracted by the three pseudo point cloud feature extractor modules are finally spliced ​​together to obtain the final pseudo point cloud features.

[0115] The specific steps of step S2 are:

[0116] S21, segmenting the color image through a segmentation module to obtain a segmentation mask image;

[0117] S22, calculating the transformation matrix of the point cloud and the depth map, and converting the point cloud into a sparse depth map through the transformation matrix;

[0118] S23, inputting the segmentation mask image and the sparse depth image into the improved depth completion module for depth completion to obtain a dense depth image, and converting the dense depth image into a pseudo point cloud through a transformation matrix;

[0119] S24. Cut the pseudo point cloud through the pre-selected box, input the cut pseudo point cloud into the pseudo point cloud feature extraction module for extraction, obtain the first pseudo point cloud feature, the second pseudo point cloud feature and the third pseudo point cloud feature, and splice the first pseudo point cloud feature, the second pseudo point cloud feature and the third pseudo point cloud feature to obtain the pseudo point cloud feature.

[0120] like Figure 3 As shown, the specific steps of step S23 are:

[0121] S231, inputting the segmentation mask image and the sparse depth image into an encoder for encoding to obtain encoding features;

[0122] S232, inputting the encoded features into a decoder to obtain an initial depth map;

[0123] S233, calculating the initial depth map through the affinity matrix to obtain a segmentation mask;

[0124] S234, calculating the initial depth map through the Sigmoid activation function to obtain spatial and sequence attention;

[0125] S235, based on the dynamic spatial propagation submodule, dynamically propagate the initial depth map through the segmentation mask and the spatial and sequence attention to obtain a dense depth map;

[0126] S236, converting the dense depth map into a pseudo point cloud through a transformation matrix.

[0127] In this embodiment, the spatial propagation network SPN in the field of depth completion is a classic network, which uses a deep convolutional neural network to train an affinity matrix, and interpolates pixels through the affinity matrix to obtain a completed depth map. The bottleneck of this method is that the affinity matrix is ​​fixed during the propagation process. These methods are constrained by the linear propagation model, and the fixed affinity matrix weights are difficult to take into account long-distance correlations and local information. Therefore, the improved depth completion module designed by the present invention, in which the dynamic spatial propagation is based on the dynamic method of attention to understand the affinity between adjacent pixels, decompose the neighborhood into various parts due to different distances, and recursively generate independent attention maps, so as to refine these parts into adaptive affinity matrices, which well solves the shortcomings of SPN.

[0128] The feature fusion and cascade network in step S3 includes multiple layers of attention feature fusion modules and cascade modules connected in sequence;

[0129] The cascade module includes a pooling submodule and a cascade encoder connected in sequence, and the cascade module also includes three attention submodules connected in sequence; the cascade encoder is connected to the three attention submodules respectively.

[0130] The specific steps of step S3 are:

[0131] S31, inputting the pseudo point cloud features and the original point cloud features into a multi-layer attention feature fusion module, performing local fusion and global fusion, and obtaining local features and global features;

[0132] S32, fusing the local features with the global features through soft selection to obtain fused features;

[0133] S33, performing pooling operation and encoding operation on the fusion feature in sequence through the pooling submodule and the cascade encoder to obtain the cascade encoding feature;

[0134] S34, concatenating the cascade coding feature with the corresponding position coding through the j-th attention submodule to obtain a first concatenated feature of the j-th attention submodule, where j=1, 2, 3;

[0135] S35, concatenating the first concatenated feature of the j-th attention submodule with the final feature of the first j-1 attention submodules to obtain the second concatenated feature of the j-th attention submodule, wherein if j=1, the first concatenated feature of the first attention submodule is used as the second concatenated feature of the first attention submodule;

[0136] S36. Calculate the weight coefficient Q of the j-th attention submodule j , feature map V j And the feature map K j ;

[0137] S37, through the weight coefficient Q j , feature map V j And the feature map K j Calculate the final features of the j-th attention submodule and the detection head features;

[0138] S38, concatenating the detection head feature of the j-th attention submodule and the first concatenated feature to obtain the target detection feature of the j-th attention submodule, that is, obtaining the target detection feature of each level;

[0139] S39. Vote for each level of target detection features to obtain the final detection frame, that is, the three-dimensional multimodal target detection result.

[0140] The calculation formula of the local features and the global features in step S31 is:

[0141] L(F s ,F o )=BN(Conv2(δ(BN(Conv1(F s +F o )))))

[0142] G(F s ,F o )=BN(Conv2(δ(BN(Conv1(GAP(F s +F o ))))))

[0143] Among them, L(F s ,F o ) represents the local features, G(F s ,F o ) represents the global feature, F s represents the pseudo point cloud feature, Fo represents the original point cloud features, BN(·) represents batch normalization, Conv1(·) and Conv2(·) both represent multi-layer perceptrons, δ(·) represents the Sigmoid activation function, and GAP(·) represents the global average pooling operation;

[0144] The calculation formula of the fusion feature in step S32 is:

[0145] Z=δ(L+G)×L+(1-δ(L+G))×G

[0146] Among them, Z represents the fusion feature, L represents the local feature L(F s ,F o ), G represents the global feature G(F s ,F o ).

[0147] The expression of the detection head of the j-th attention submodule in step S37 is:

[0148]

[0149] in, represents the i-th detection head feature of the j-th attention submodule, softmax(·) represents the normalized exponential function, represents the weight coefficient of the i-th detection head of the j-th attention submodule, and They all represent the feature maps of the i-th detection head of the j-th attention submodule, express The transpose of , C' represents the feature dimension of multi-head attention;

[0150] The expression of the target detection feature in step S38 is:

[0151]

[0152] Among them, F j represents the target detection feature of the jth attention submodule, Concat(·) represents the concatenation operation, represents the first concatenated feature of the jth attention submodule, represents the first detection head feature of the jth attention submodule, represents the Hth detection head feature of the jth attention submodule;

[0153] The expression for voting in step S39 is:

[0154]

[0155] Among them, C represents the confidence, j represents the number of attention submodules, and C j represents the confidence of the jth attention submodule, B represents the final detection box, and B j Represents the detection box of the jth attention submodule.

[0156] In this embodiment, the original point cloud features and the pseudo point cloud features are fused at the global and local levels, respectively. This deep fusion method effectively improves the quality of feature fusion, and is significantly better than simple fusion methods such as feature addition and concatenation.

[0157] The general cascade network extracts features through a pooling layer and a feature code, and then performs confidence prediction and result box regression on it. However, such a structure can only extract the features of the current layer, and cannot combine the features between all layers well. In order to combine the features of all layers, directly splicing the features of all layers together may be a common method, but this cannot learn the information between the layers. Therefore, the present invention designs a cascade module to efficiently learn the features of all layers including the features between the layers.

[0158] When j is 1, the features of the first layer perform self-attention operations, and the features of other layers perform cross-attention operations, thus aggregating features from different stages and improving the accuracy of refinement.

[0159] In this embodiment, the weight coefficient Q is obtained by matrix operation. j , feature map V j And the feature map K j , and its calculation formula is: in, and Both represent linear operations. j The weight coefficient Q of the i-th detection head of the j-th attention submodule is i j Composition, V j The feature map V of the i-th detection head of the j-th attention submodule j composition, The feature map K of the i-th detection head of the j-th attention submodule j Therefore, through the cascade modules, the accuracy of object detection in point clouds is gradually improved.

[0160] In this embodiment, the results of the method of the present invention are displayed in the image plane and the three-dimensional view of the point cloud, respectively. Figure 4 and Figure 5 As shown. Among them, Figure 5The white box in the figure shows the horizontal plane in the drawing point cloud. The reasoning speed of the method of the present invention reaches 12.79fps, of which the partial completion brings an improvement of 3.13fps. Because the method of the present invention is a multimodal target detection algorithm, its reasoning speed is lower than that of some single-modal target detection algorithms, but the network structure proposed in this experiment has excellent reasoning speed performance in the multimodal detection network.

[0161] In summary, the improved depth completion module guided by segmentation proposed in the present invention optimizes the depth completion process, can enrich scene information and effectively improve the density of point clouds. And it focuses on the depth completion of the detected object, greatly reduces the introduction of irrelevant points and noise, and significantly improves the quality of point cloud data. At the same time, the pseudo-point cloud feature extraction module proposed in the present invention is specially designed for pseudo-point clouds, and can effectively extract 2D color features and 3D position features in pseudo-point clouds, thereby providing richer information for subsequent processing and analysis. And the multi-layer attention feature fusion module can more finely fuse point cloud features and pseudo-point cloud features at the global and local levels, thereby realizing a higher level of information integration in point cloud data processing. Finally, through the cascade module, through a carefully designed cascade strategy, the accuracy of object detection in the point cloud can be gradually improved.

Claims

1. A three-dimensional multimodal target detection method based on partial completion, characterized in that: The following steps are involved: S1, input the point cloud into the point cloud detection network for detection, and obtain the pre-selected box and original point cloud features; S2, inputting the color image and the point cloud into the pseudo point cloud detection network for partial completion to obtain a pseudo point cloud, cutting the pseudo point cloud through a pre-selected box, and extracting features from the cut pseudo point cloud to obtain pseudo point cloud features; S3. The original point cloud features and pseudo point cloud features are fused and extracted through feature fusion and cascade network to obtain the target detection features of each level, and the target detection features of each level are voted to obtain the three-dimensional multimodal target detection results.

2. The three-dimensional multimodal target detection method based on partial completion according to claim 1, characterized in that: The pseudo point cloud detection network in step S2 includes a segmentation module, an improved depth completion module and a pseudo point cloud feature extraction module connected in sequence; The segmentation module includes a first stage, a second stage, a third stage and a fourth stage connected in sequence; the first stage includes a 1 / 4 resolution branch; the second stage includes a parallel 1 / 4 resolution branch and a 1 / 8 resolution branch; The third stage includes a parallel 1 / 8 resolution branch and a 1 / 16 resolution branch; The fourth stage includes a parallel 1 / 16 resolution branch and a 1 / 32 resolution branch; The 1 / 4 resolution branch of the first stage is connected to the 1 / 4 resolution branch and the 1 / 8 resolution branch of the second stage respectively; The 1 / 8 resolution branch of the second stage is connected to the 1 / 8 resolution branch and the 1 / 16 resolution branch of the third stage respectively; The 1 / 16 resolution branch of the third stage is connected to the 1 / 16 resolution branch and the 1 / 32 resolution branch of the fourth stage respectively; The 1 / 4 resolution branch of the second stage outputs a first segmentation mask image; The 1 / 8 resolution branch of the third stage outputs a second segmentation mask image; The 1 / 16 resolution branch of the fourth stage outputs a third segmentation mask map; the 1 / 32 resolution branch of the fourth stage outputs a fourth segmentation mask map; The 1 / 4 resolution branch of the first stage is used as an input end of the segmentation module; the first segmentation mask map, the second segmentation mask map, the third segmentation mask map and the fourth segmentation mask map are used together as an output of the segmentation module, that is, a segmentation mask map; The improved depth completion module includes an encoder, a decoder and a dynamic spatial propagation submodule whose backbone network is ResNet34 connected in sequence; The pseudo point cloud feature extraction module includes three cascaded pseudo point cloud feature extractors.

3. The three-dimensional multimodal target detection method based on partial completion according to claim 2, characterized in that: The feature extraction steps of the pseudo point cloud feature extractor are as follows: A1. Using the pseudo point cloud as an input feature of a pseudo point cloud feature extractor, wherein the pseudo point cloud includes color features and position features of the pseudo point cloud; A2. The dimension of the color feature is increased to C through the fully connected layer to obtain a high-dimensional color feature. A3. Reduce the complexity of input position features through neighborhood search to obtain low-complexity position features; A4. The low-complexity position feature dimension is increased to C through the fully connected layer to obtain a high-dimensional position feature; A5. Add the high-dimensional color features and high-dimensional position features to calculate the position residual of the pseudo point cloud; A6. The dimension of the position residual is increased to C through the fully connected layer to obtain a high-dimensional position residual; A7. Weight the high-dimensional position residual of each pseudo point cloud, and splice the weighted high-dimensional position residuals to obtain spliced ​​position residuals; A8. Reduce the dimension of the splicing position residual to C through the fully connected layer to obtain the output features of the pseudo point cloud feature extractor.

4. The three-dimensional multimodal target detection method based on partial completion according to claim 3, characterized in that: The calculation formula of the position residual in step A5 is: in, represents the position residual, x a ,y a and z a They represent the three-dimensional horizontal coordinate, vertical coordinate and vertical coordinate of the point cloud corresponding to the a-th pseudo point cloud, respectively. a and v a They represent the horizontal and vertical coordinates of the a-th pseudo point cloud in the two-dimensional image, respectively. a represents the ath pseudo point cloud, and They represent the three-dimensional horizontal coordinate, vertical coordinate and vertical coordinate of the point cloud corresponding to the k-th neighbor pseudo point cloud of the a-th pseudo point cloud, respectively. and They represent the horizontal and vertical coordinates of the kth neighbor pseudo point cloud of the ath pseudo point cloud in the two-dimensional image, respectively. Represents the a-th pseudo point cloud p a The k-th neighbor pseudo point cloud, Represents the a-th pseudo point cloud p a The distance to the kth neighbor pseudo point cloud.

5. The three-dimensional multimodal target detection method based on partial completion according to claim 2, characterized in that: The specific steps of step S2 are: S21, segmenting the color image through a segmentation module to obtain a segmentation mask image; S22, calculating the transformation matrix of the point cloud and the depth map, and converting the point cloud into a sparse depth map through the transformation matrix; S23, inputting the segmentation mask image and the sparse depth image into the improved depth completion module for depth completion to obtain a dense depth image, and converting the dense depth image into a pseudo point cloud through a transformation matrix; S24. Cut the pseudo point cloud through the pre-selected box, input the cut pseudo point cloud into the pseudo point cloud feature extraction module for extraction, obtain the first pseudo point cloud feature, the second pseudo point cloud feature and the third pseudo point cloud feature, and splice the first pseudo point cloud feature, the second pseudo point cloud feature and the third pseudo point cloud feature to obtain the pseudo point cloud feature.

6. The three-dimensional multimodal target detection method based on partial completion according to claim 5, characterized in that: The specific steps of step S23 are: S231, inputting the segmentation mask image and the sparse depth image into an encoder for encoding to obtain encoding features; S232, inputting the encoded features into a decoder to obtain an initial depth map; S233, calculating the initial depth map through the affinity matrix to obtain a segmentation mask; S234, calculating the initial depth map through the Sigmoid activation function to obtain spatial and sequence attention; S235, based on the dynamic spatial propagation submodule, dynamically propagate the initial depth map through the segmentation mask and the spatial and sequence attention to obtain a dense depth map; S236, converting the dense depth map into a pseudo point cloud through a transformation matrix.

7. The three-dimensional multimodal target detection method based on partial completion according to claim 1, characterized in that: The feature fusion and cascade network in step S3 includes multiple layers of attention feature fusion modules and cascade modules connected in sequence; The cascade module includes a pooling submodule and a cascade encoder connected in sequence, and the cascade module also includes three attention submodules connected in sequence; the cascade encoder is connected to the three attention submodules respectively.

8. The three-dimensional multimodal target detection method based on partial completion according to claim 7, characterized in that: The specific steps of step S3 are: S31, inputting the pseudo point cloud features and the original point cloud features into a multi-layer attention feature fusion module, performing local fusion and global fusion, and obtaining local features and global features; S32, fusing the local features with the global features through soft selection to obtain fused features; S33, performing pooling operation and encoding operation on the fusion feature in sequence through the pooling submodule and the cascade encoder to obtain the cascade encoding feature; S34, concatenating the cascade coding feature with the corresponding position coding through the j-th attention submodule to obtain a first concatenated feature of the j-th attention submodule, where j=1, 2, 3; S35, concatenating the first concatenated feature of the j-th attention submodule with the final feature of the first j-1 attention submodules to obtain the second concatenated feature of the j-th attention submodule, wherein if j=1, the first concatenated feature of the first attention submodule is used as the second concatenated feature of the first attention submodule; S36. Calculate the weight coefficient Q of the j-th attention submodule j , feature map V j And the feature map K j ; S37, through the weight coefficient Q j , feature map V j And the feature map K j Calculate the final features of the j-th attention submodule and the detection head features; S38, concatenating the detection head feature of the j-th attention submodule and the first concatenated feature to obtain the target detection feature of the j-th attention submodule, that is, obtaining the target detection feature of each level; S39. Vote for each level of target detection features to obtain the final detection frame, that is, the three-dimensional multimodal target detection result.

9. The three-dimensional multimodal target detection method based on partial completion according to claim 8, characterized in that: The calculation formula of the local features and the global features in step S31 is: L(F s ,F o )=BN(Conv2(δ(BN(Conv1(F s +F o ))))) G(F s ,F o )=BN(Conv2(δ(BN(Conv1(GAP(F s +F o )))))) Among them, L(F s ,F o ) represents the local features, G(F s ,F o ) represents the global feature, F s represents the pseudo point cloud feature, F o represents the original point cloud features, BN(·) represents batch normalization, Conv1(·) and Conv2(·) both represent multi-layer perceptrons, δ(·) represents the Sigmoid activation function, and GAP(·) represents the global average pooling operation; The calculation formula of the fusion feature in step S32 is: Z=δ(L+G)×L+(1-δ(L+G))×G Among them, Z represents the fusion feature, L represents the local feature L(F s ,F o ), G represents the global feature G(F s ,F o ).

10. The three-dimensional multimodal target detection method based on partial completion according to claim 8, characterized in that: The expression of the detection head of the j-th attention submodule in step S37 is: in, represents the i-th detection head feature of the j-th attention submodule, softmax(·) represents the normalized exponential function, represents the weight coefficient of the i-th detection head of the j-th attention submodule, and They all represent the feature maps of the i-th detection head of the j-th attention submodule, express The transpose of , C' represents the feature dimension of multi-head attention; The expression of the target detection feature in step S38 is: Among them, F j represents the target detection feature of the jth attention submodule, Concat(·) represents the concatenation operation, represents the first concatenated feature of the jth attention submodule, represents the first detection head feature of the jth attention submodule, represents the Hth detection head feature of the jth attention submodule; The expression for voting in step S39 is: Among them, C represents the confidence, j represents the number of attention submodules, and C j represents the confidence of the jth attention submodule, B represents the final detection box, and B j Represents the detection box of the jth attention submodule.

Citation Information

Cited By

  • 3D target detection method based on local-to-global multi-modal fusion

    CN119478355A