Vision and laser radar multi-mode fusion occupied grid detection method and system

Multi-mode fusion of vision and lidar in autonomous driving through sparse processing technology solves the problem of excessive computational burden in existing technologies and achieves efficient perception and real-time detection capabilities in complex environments.

CN118747879APending Publication Date: 2024-10-08CHONGQING CHANGAN AUTOMOBILE CO LTD

Patent Information

Application Number
CN202410849060.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

Existing vision and lidar multi-mode fusion occupancy grid detection technology suffers from excessive computational burden in feature alignment and volume rendering technology, resulting in inability to run in real time and difficulty in handling complex and large-scale autonomous driving environments.

Method used

Use sparse query features, 2D image features and 3D lidar features to perform efficient 3D-2D and 3D-3D interaction and fusion, and discard most empty voxels in the space through a sparseization strategy to output sparse scene occupancy and semantics category and movement speed, reducing computational costs.

Benefits of technology

It achieves the ability to efficiently handle large-scale scenarios in autonomous driving, reduces computing costs, simplifies deployment, and is suitable for real-time perception tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747879A_ABST
    Figure CN118747879A_ABST
Patent Text Reader

Abstract

The invention discloses a visual sense and laser radar multi-mode fusion occupied grid detection method and a visual sense and laser radar multi-mode fusion occupied grid detection system. The method comprises the following steps: acquiring 2D image features of image data and 3D voxel features of point cloud data; respectively carrying out feature interaction on the 2D image features and the 3D voxel features and the initial sparse voxel query vector to obtain a sparse voxel query vector of an image mode and a sparse voxel query vector of a radar mode, and fusing the sparse voxel query vector of the image mode and the sparse voxel query vector of the radar mode to obtain a sparse voxel query vector of the image mode; obtaining a one-dimensional sparse voxel query vector, and performing up-sampling processing on the one-dimensional sparse voxel query vector to obtain a multi-modal sparse voxel query vector and a query coordinate of a corresponding feature vector; and processing a feature vector in the multi-modal sparse voxel query vector to obtain an occupied grid detection result according to a query coordinate of the feature vector. Therefore, calculation cost is reduced, deployment is simple, and the method is suitable for processing large-scale scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving technology, and in particular to a vision and laser radar multi-mode fusion occupancy grid detection method, a vision and laser radar multi-mode fusion occupancy grid detection system, a computer-readable storage medium and an electronic device. Background Art

[0002] With the rapid development of autonomous driving technology, perception technology has always been the core of the development of autonomous driving technology, from the early simple road tracking system to today's highly complex fully autonomous driving system. Early autonomous driving systems relied on simple sensors and preset rules and could not cope with complex driving environments. With the development of computer vision, lidar and deep learning technology, modern autonomous driving systems can perceive the surrounding environment more accurately and achieve high-level autonomous driving functions. Surround view cameras and lidar are the two most commonly used sensors in autonomous driving systems. Surround view cameras are installed around the vehicle and can provide all-round image information for identifying road signs, traffic signals, pedestrians and vehicles. Lidar generates three-dimensional point cloud data by emitting laser beams and receiving reflected signals, which is used to accurately measure the position and shape of objects. Cameras and lidar single modalities have their own advantages and disadvantages in the application of autonomous driving perception. The advantages of cameras include high resolution, low cost and rich environmental information. However, cameras perform poorly under lighting changes and bad weather conditions. For example, at night or in strong light, the image quality may be severely impaired, affecting the perception effect. The advantages of lidar are its high-precision ranging capability and all-weather working performance, which can provide reliable data in complex environments. However, LiDAR is expensive, data processing is complex, and it is highly dependent on the reflectivity of the environment. But the combination of the two can provide rich environmental information and improve the accuracy and reliability of perception. Occupancy grid is an environmental modeling technology widely used in the field of autonomous driving. It divides the environment voxelized into discrete grid cells and assigns a value of 1 or 0 to each cell, indicating whether the cell is occupied by an obstacle. This method provides a reliable and easy-to-handle framework for general obstacle detection, which can effectively handle dynamic and complex environmental information. In the multi-mode fusion occupancy grid detection technology of camera and LiDAR, the feature-level fusion method is often used to generate an accurate occupancy grid map by extracting and fusing the features of the camera and LiDAR.

[0003] In the related technology, the paper named A Large Scale Benchmark for Surrounding Semantic Occupancy Perception, published in ICCV 2023:17804-17813, disclosed that a rough occupancy prediction is generated through a multimodal fusion network of cameras and radars, and then the occupied voxels are divided into high-resolution queries to generate more accurate occupancy predictions. However, the network uses bevpoolv2 to pull the image features to 3D during feature alignment and merge them with the 3D lidar voxel features. However, in order to obtain better fused features, this fusion method needs to continue 3D encoding based on the fused features. The 3D encoder increases the computational burden and cannot run in real time. The paper titled Coupling Explicit Feature Fusion With Volume Rendering Regularization for Multi-Modal 3DSemantic Occupancy Prediction, published in IEEE Robotics Autom. Lett. 9(6):5687-5694(2024), disclosed that by combining explicit lidar and camera feature fusion modules with implicit volume rendering regularization, the interaction between different modal data is enhanced, and the accuracy of occupancy grid prediction is improved. However, the use of volume rendering technology combined with multi-modal feature fusion processing increases the computational burden and makes it impossible to run in real time. Summary of the invention

[0004] One of the purposes of the present invention is to provide a vision and laser radar multi-mode fusion occupancy grid detection method, which uses sparse query features and 2D image features and 3D laser radar features to perform efficient 3D-2D, 3D-3D interaction and fusion, and discards most of the empty voxels in the space through a sparse strategy, and finally outputs sparse scene occupancy, semantic categories and motion speed to reduce computing costs, simple deployment, and suitable for processing large-scale scenes; the second purpose is to provide a vision and laser radar multi-mode fusion occupancy grid detection system; the third purpose is to provide a computer-readable storage medium; the fourth purpose is to provide an electronic device.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0006] A method for multi-mode fusion occupancy grid detection of vision and laser radar, the method comprising: obtaining 2D image features of image data and 3D voxel features of point cloud data; performing feature interaction between the 2D image features and the 3D voxel features and the initial sparse voxel query vector respectively to obtain a sparse voxel query vector of the image modality and a sparse voxel query vector of the radar modality; fusing the sparse voxel query vector of the image modality and the sparse voxel query vector of the radar modality to obtain a one-dimensional sparse voxel query vector; and up-sampling the one-dimensional sparse voxel query vector to obtain a multi-modal sparse voxel query vector and a query coordinate of a corresponding feature vector, wherein the initial sparse voxel query vector is determined by down-sampling according to the 3D voxel features; and processing the feature vector in the multi-modal sparse voxel query vector to obtain an occupancy grid detection result according to the query coordinate of the feature vector.

[0007] According to one embodiment of the present invention, obtaining 2D image features of image data includes: preprocessing the image data to obtain normalized image data; using the normalized image data as input and extracting feature codes of the image using a deep learning model; and fusing the extracted feature codes according to a multi-scale feature pyramid network structure in the deep learning model to generate 2D image features.

[0008] According to one embodiment of the present invention, the deep learning model includes one of a convolutional neural network and a Transformer network, and the module for constructing a multi-scale feature pyramid network structure includes one of an FPN structure, a SECONDFPN structure, and a CustumFPN structure.

[0009] According to one embodiment of the present invention, obtaining 3D voxel features of point cloud data includes: converting point cloud data into a voxel grid using voxel layer encoding; encoding each voxel grid in the voxel grid using a multi-layer voxel encoder to generate an initial voxel feature; processing the point cloud data in the initial voxel feature using a sparse encoder to obtain high-level features of the point cloud data; and extracting high-level features using a 3D convolutional network to obtain 3D voxel features.

[0010] According to one embodiment of the present invention, a sparse voxel query vector of an image modality and a sparse voxel query vector of a radar modality are fused to obtain a one-dimensional sparse voxel query vector, including: using a multi-modal sparse feature fusion module to merge the sparse voxel query vector of the image modality and the sparse voxel query vector of the radar modality, wherein the merging method includes one of splicing and weighted summation; and performing multi-layer perceptron processing and fusion on the merged sparse voxel query vector to obtain a one-dimensional sparse voxel query vector.

[0011] According to one embodiment of the present invention, a one-dimensional sparse voxel query vector is upsampled to obtain a multimodal sparse voxel query vector and a corresponding query coordinate, including: using a sparse strategy to upsample the one-dimensional sparse voxel query vector in a voxel to obtain multiple voxels, each voxel having a set of one-dimensional sparse voxel query vectors; using a multilayer perceptron prediction to process the one-dimensional sparse voxel query vector in each voxel to obtain the probability of the voxel being occupied, taking a preset voxel with a higher probability as an occupied voxel, and obtaining a multimodal sparse voxel query vector and a corresponding query coordinate according to the one-dimensional sparse voxel query vector and the corresponding query coordinate corresponding to the occupied voxel.

[0012] According to one embodiment of the present invention, feature interactions are performed on 2D image features and 3D voxel features and an initial sparse voxel query vector respectively, including: obtaining a 3D sampling offset; determining a sampling point according to a feature vector and a 3D offset of the initial sparse voxel query vector; adopting a multi-mode sparse feature fusion module, using a transformer module to project the sampling point to an image feature in a camera coordinate system, performing an attention operation on the sampling point and the 2D image feature, to obtain a sparse voxel query vector of an image modality; adopting a multi-mode sparse feature fusion module, using a transformer module to project the sampling point to a voxel feature in a lidar coordinate system, performing an attention operation on the sampling point and the 3D voxel feature, to obtain a sparse voxel query vector of a radar modality.

[0013] According to one embodiment of the present invention, a feature vector in a multimodal sparse voxel query vector is processed to obtain an occupancy grid detection result at the query coordinates according to the query coordinates of the feature vector, including: using a multilayer perceptron to compress the multimodal sparse voxel query vector to one dimension to obtain an occupancy prediction probability in the occupancy grid detection result; using a multilayer perceptron to compress the multimodal sparse voxel query vector to N dimensions to obtain a semantic category probability in the occupancy grid detection result, where N represents the total number of semantic categories; using a multilayer perceptron to compress the multimodal sparse voxel query vector to two dimensions to obtain a motion speed in the occupancy grid detection result, where the motion speed includes speed components in the x-direction and the y-direction.

[0014] According to one embodiment of the present invention, the above-mentioned detection method also includes: using a binary cross entropy loss function to calculate the loss value of the occupancy prediction probability; using a cross entropy loss function to calculate the loss value of the semantic category probability; using a mean absolute error loss function to calculate the loss value of the motion speed; determining the final loss value based on the weight corresponding to the loss value of the occupancy prediction probability, the weight corresponding to the loss value of the semantic category probability, and the weight corresponding to the loss value of the motion speed, so as to update the model parameters through reverse propagation based on the final loss value.

[0015] A vision and laser radar multi-mode fusion occupancy grid detection system includes: a camera modality feature extraction module, used to obtain 2D image features of image data; a laser radar modality feature extraction module, used to obtain 3D voxel features of point cloud data; a multi-modality sparse feature fusion module, used to perform feature interaction between 2D image features and 3D voxel features and an initial sparse voxel query vector, respectively, to obtain a sparse voxel query vector of an image modality and a sparse voxel query vector of a radar modality, to fuse the sparse voxel query vector of the image modality and the sparse voxel query vector of the radar modality, to obtain a one-dimensional sparse voxel query vector, and to upsample the one-dimensional sparse voxel query vector to obtain a query coordinate of a multi-modality sparse voxel query vector and a corresponding feature vector, wherein the initial sparse voxel query vector is downsampled and determined according to the 3D voxel feature; an occupancy grid detection head module, used to process a feature vector in the multi-modality sparse voxel query vector, to obtain an occupancy grid detection result according to the query coordinate of the feature vector.

[0016] A computer-readable storage medium stores a vision and laser radar multi-mode fusion occupancy grid detection program, which implements the aforementioned vision and laser radar multi-mode fusion occupancy grid detection method when executed by a processor.

[0017] An electronic device includes a memory, a processor, and a vision and laser radar multi-mode fusion occupancy grid detection program stored in the memory and executable on the processor. When the processor executes the vision and laser radar multi-mode fusion occupancy grid detection program, the aforementioned vision and laser radar multi-mode fusion occupancy grid detection method is implemented.

[0018] Beneficial effects of the present invention:

[0019] (1) The detection method of the present invention uses sparse query features to perform efficient 3D-2D and 3D-3D interaction and fusion on 2D image features and 3D lidar features, and discards most of the empty voxels in the space through a sparse strategy, and finally outputs sparse scene occupancy, semantic category and motion speed, which reduces the computational cost, is simple to deploy, and is suitable for processing large-scale scenes. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 A flowchart of a method for detecting an occupancy grid by fusion of vision and laser radar multi-mode according to some embodiments of the present invention;

[0021] Figure 2 A block diagram of a vision and laser radar multi-mode fusion occupancy grid detection system according to some embodiments of the present invention;

[0022] Figure 3is a block diagram of an electronic device according to some embodiments of the present invention. DETAILED DESCRIPTION

[0023] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.

[0024] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0025] The following describes in detail the vision and lidar multi-mode fusion occupancy grid detection method and system according to an embodiment of the present invention with reference to the accompanying drawings.

[0026] Figure 1 Flow chart of a method for detecting an occupancy grid by fusion of vision and laser radar multi-mode according to some embodiments of the present invention. Figure 1 The vision and laser radar multi-mode fusion occupancy grid detection method of the embodiment of the present application may include the following steps:

[0027] S110, acquiring 2D image features of the image data and 3D voxel features of the point cloud data.

[0028] Specifically, cameras are installed around the vehicle to collect image data of the vehicle's surrounding environment and perform feature encoding processing on the image data. For example, the image data is first preprocessed, and then the preprocessed image is input into the image backbone network for feature extraction. Finally, the extracted features are input into the multi-scale feature pyramid network structure constructed by the Neck network for feature fusion, and 2D image features are output.

[0029] There are also laser radars around the vehicle to collect point cloud data of the vehicle's surrounding environment, and the laser radar modal feature encoder is used to process the point cloud data collected by the laser radar to extract 3D voxel features. In this way, the original point cloud data is converted into a feature representation suitable for neural network processing, so that it can be used for autonomous driving perception tasks.

[0030] S120, perform feature interaction on the 2D image features and the 3D voxel features with the initial sparse voxel query vector respectively to obtain a sparse voxel query vector of the image modality and a sparse voxel query vector of the radar modality, fuse the sparse voxel query vector of the image modality and the sparse voxel query vector of the radar modality to obtain a one-dimensional sparse voxel query vector, and upsample the one-dimensional sparse voxel query vector to obtain a multimodal sparse voxel query vector and a query coordinate of the corresponding feature vector, wherein the initial sparse voxel query vector is determined by downsampling according to the 3D voxel features.

[0031] Specifically, the 3D voxel features are first mapped to one dimension and then initialized to obtain a one-dimensional initial sparse voxel query vector. The one-dimensional initial sparse voxel query vector is used to query the 2D image features and 3D voxel features respectively. For example, the transformer module is used to query to obtain the sparse voxel query vector of the image modality and the sparse voxel query vector of the radar modality. This is the first fusion of the 2D image features and the 3D voxel features. Then, the sparse voxel query vector of the image modality and the sparse voxel query vector of the radar modality are fused again using a sparse strategy to obtain a one-dimensional sparse voxel query vector, and the one-dimensional sparse voxel query vector is upsampled to increase the number of sparse voxel query vectors to improve spatial perception, so as to obtain the query coordinates of the multi-modal sparse voxel query vector and the corresponding feature vector. In this way, the 2D image features and 3D voxel features are fused twice, which can further improve the feature accuracy.

[0032] S130, processing the feature vector in the multimodal sparse voxel query vector to obtain an occupancy grid detection result according to the query coordinates of the feature vector.

[0033] Specifically, the feature vector in the multimodal sparse voxel query vector is processed, for example, using an occupancy detection head, a semantic detection head, and a motion detection head to map the features to the required dimensions according to the query coordinates of the feature vector to obtain an occupancy grid detection result.

[0034] In this way, sparse query features are used with 2D image features and 3D lidar features for efficient 3D-2D and 3D-3D interaction and fusion, and most of the empty voxels in the space are discarded through a sparsification strategy. Finally, sparse scene occupancy, semantic categories and motion speeds are output, which reduces the computational cost, simplifies deployment, and is suitable for processing large-scale scenes.

[0035] In some embodiments, obtaining 2D image features of image data includes: preprocessing the image data to obtain normalized image data; using the normalized image data as input and extracting feature codes from the image using a deep learning model; and fusing the extracted feature codes according to a multi-scale feature pyramid network structure in the deep learning model to generate 2D image features.

[0036] Exemplarily, the image data is first preprocessed, for example, normalization, cropping and scaling are performed on the image data to obtain normalized image data to adapt to subsequent neural network input and improve the stability of feature extraction. Then, the normalized image data is input into a deep learning model (image backbone network), such as a convolutional neural network and a Transformer network, to extract feature codes to adapt to different application requirements and computing resources. Finally, according to the multi-scale feature pyramid network structure in the deep learning model, the extracted feature codes are fused, and a 2D image feature map pyramid with multi-scale features is generated by fusing feature maps at different levels, thereby improving the performance of the model in detecting objects of different sizes.

[0037] In some embodiments, the deep learning model includes one of a convolutional neural network and a Transformer network, and the module for constructing a multi-scale feature pyramid network structure includes one of an FPN structure, a SECONDFPN structure, and a CustumFPN structure.

[0038] Exemplarily, the deep learning model used for feature extraction can be one of a convolutional neural network and a Transformer network. Among them, the convolutional neural network can be ResNet-50 (Residual Network-50) and VoVNet2-99 (Visibility One Visibility Network-2-99). The Transformer network can be Swin-L (Swin Transformer using shifted windows). The Neck network module can use structures such as FPN (Feature Pyramid Network), SECONDFPN (Second-Order Feature Pyramid Network), and CustumFPN (Custom Feature Pyramid Network). This module is a network structure for constructing a multi-scale feature pyramid. By fusing feature maps at different levels, a feature map pyramid with multi-scale features is generated, thereby improving the performance of the model in detecting objects of different sizes.

[0039] In some embodiments, obtaining 3D voxel features of point cloud data includes: converting the point cloud data into a voxel grid using voxel layer encoding; encoding each voxel grid in the voxel grid using a multi-layer voxel encoder to generate an initial voxel feature; processing the point cloud data in the initial voxel feature using a sparse encoder to obtain high-level features of the point cloud data; and extracting features from the high-level features using a 3D convolutional network to obtain 3D voxel features.

[0040] Specifically, the LiDAR modal feature encoder is a set of radar feature extractors, which specifically include five modules: voxel layer encoder, multi-layer voxel encoder, sparse encoder, point cloud backbone network, and point cloud feature pyramid network. Among them, the voxel layer encoder is used to convert the point cloud data collected by the LiDAR into a regular voxel grid. The multi-layer voxel encoder is used to encode the statistical features of each voxel grid to generate voxel features. The sparse encoder is used to process the voxelized point cloud data to reduce computational complexity and memory consumption. The point cloud backbone network and the point cloud feature pyramid network act on the high-level features extracted by sparse convolution. Generally, different network structures are used according to different downstream tasks. For example, in the occupancy grid detection task, since 3D voxel features are required, a 3D voxel encoder is usually used to extract 3D voxel features.

[0041] Exemplarily, voxel layer encoding is first used to convert the point cloud data collected by the laser radar into a regular voxel grid, and each voxel grid contains point cloud data within a certain range. In each voxel grid, the geometric and intensity features of the point cloud are counted, such as average coordinates, number of points, etc. Then, a multi-layer voxel encoder, such as VFE (Multi-Layer Voxel Feature Extractor, multi-layer voxel feature extractor) is used to encode each voxel grid in the voxel grid to generate an initial voxel feature. For example, a simple and efficient encoding method, such as a linear layer or a small convolutional network, is first used to convert the discretized voxel features into a feature vector of a fixed dimension, and then the multi-layer voxel encoder is further extracted through aggregation processing, such as maximum pooling or average pooling. The point cloud data in the initial voxel feature is then processed using a sparse encoder. For example, the sparse encoder receives a sparse voxel grid as input and extracts high-level features through a series of sparse convolutional layers to obtain high-level features of the point cloud data. Sparse convolution is similar to the traditional convolution layer, but convolution is only performed at sparse non-zero positions to save computational effort, and important feature points are retained during downsampling. Sparse convolution can effectively process sparse point cloud data, significantly reducing computational complexity and memory consumption while retaining spatial structural information. Finally, a 3D convolutional network is used to extract high-level features. For example, a combination of CustomResNet3D (Customized 3D Residual Network) and CustomFPN3D (Customized 3D FeaturePyramid Network) can be used to obtain 3D voxel features.

[0042] In some embodiments, a sparse voxel query vector of an image modality and a sparse voxel query vector of a radar modality are fused to obtain a one-dimensional sparse voxel query vector, including: using a multi-modal sparse feature fusion module to merge the sparse voxel query vector of the image modality and the sparse voxel query vector of the radar modality, wherein the merging method includes one of splicing and weighted summation; and performing multi-layer perceptron processing and fusion on the merged sparse voxel query vector to obtain a one-dimensional sparse voxel query vector.

[0043] Specifically, a multi-modal sparse feature fusion module is used to merge the sparse voxel query vector of the image modality and the sparse voxel query vector of the radar modality by splicing or weighted summation. The feature dimension of the merged sparse voxel query vector will be increased, so the merged sparse voxel query vector needs to be fused by multi-layer perceptron processing to reduce the feature dimension of the sparse voxel query vector and obtain a one-dimensional sparse voxel query vector.

[0044] In some embodiments, a one-dimensional sparse voxel query vector is upsampled to obtain a multimodal sparse voxel query vector and a corresponding query coordinate, including: using a sparse strategy to upsample the one-dimensional sparse voxel query vector within a voxel to obtain multiple voxels, each voxel having a set of one-dimensional sparse voxel query vectors; using a multilayer perceptron prediction to process the one-dimensional sparse voxel query vector in each voxel to obtain the probability of the voxel being occupied, taking a preset voxel with a higher probability as an occupied voxel, and obtaining a multimodal sparse voxel query vector and a corresponding query coordinate according to the one-dimensional sparse voxel query vector and the corresponding query coordinate corresponding to the occupied voxel.

[0045] Specifically, a sparsification strategy is used to upsample the fused multimodal sparse voxel query vector within a voxel to obtain multiple one-dimensional sparse voxel query vectors, so that the multimodal sparse voxel query vector has a finer perception of space. For example, a 2-fold upsampling is performed, it is divided into 8 voxels and the query coordinates of these divided voxels are recorded. A multilayer perceptron is used to increase the dimension of the fused multimodal sparse voxel query vector by 8 times, and these features are assigned to the cut voxels. After upsampling, an 8-fold multimodal sparse voxel query vector and the corresponding query coordinates are generated. Then, a multilayer perceptron is used to predict the probability of each voxel being occupied for the query vector, and the front preset voxels are selected as occupied voxels, and the remaining voxels are discarded, thereby completing the sparsification operation of the current decoding layer and obtaining a multimodal sparse voxel query vector and the corresponding query coordinates.

[0046] It should be noted that, in the embodiment of the present invention, a 4-layer decoder can be used to use the 1 / 16 scale features of the radar modality for the initialized sparse feature query. The number of preset voxels retained in each layer can be customized according to the actual scene detection range and granularity, and can generally be selected to occupy 10% of the number of grid voxels.

[0047] In some embodiments, feature interactions are performed on 2D image features and 3D voxel features respectively with the initial sparse voxel query vector, including: obtaining a 3D sampling offset; determining sampling points according to the feature vector and 3D offset of the initial sparse voxel query vector; using a multi-mode sparse feature fusion module, using a transformer module to project the sampling points to image features in a camera coordinate system and perform attention operations with the 2D image features to obtain a sparse voxel query vector of the image modality; using a multi-mode sparse feature fusion module, using a transformer module to project the sampling points to voxel features in a lidar coordinate system and perform attention operations with the 3D voxel features to obtain a sparse voxel query vector of the radar modality.

[0048] Specifically, the coarse-grained 3D voxel features are mapped into one dimension and then initialized to obtain a one-dimensional initial sparse voxel query vector. The initial sparse voxel query vector is used to query the 2D image features and 3D voxel features using the transformer module to obtain the sparse voxel query vector of the image modality and the sparse voxel query vector of the radar modality.

[0049] When using the initial sparse voxel query vector for query, in order to improve the accuracy of the query, it is necessary to use a neural network layer to generate a 3D offset {Δx_i, Δy_i, Δz_i} for each sparse voxel point, determine the sampling point according to the feature vector and 3D offset of the initial sparse voxel query vector, and use a multi-mode sparse feature fusion module to project the sampling point to the image features in the camera coordinate system using the transformer module to perform attention operations with the 2D image features to obtain the sparse voxel query vector of the image modality. Using a multi-mode sparse feature fusion module, use a transformer module to project the sampling point to the voxel features in the lidar coordinate system to perform attention operations with the 3D voxel features to obtain the sparse voxel query vector of the radar modality.

[0050] It should be noted that the sparse voxel query vector of the image modality and the sparse voxel query vector of the radar modality are both one-dimensional. Using a one-dimensional sparse voxel query vector to describe a three-dimensional space can also improve the detection speed.

[0051] In some embodiments, a feature vector in a multimodal sparse voxel query vector is processed to obtain an occupancy grid detection result at the query coordinates according to the query coordinates of the feature vector, including: using a multilayer perceptron to compress the multimodal sparse voxel query vector to one dimension to obtain the occupancy prediction probability in the occupancy grid detection result; using a multilayer perceptron to compress the multimodal sparse voxel query vector to N dimensions to obtain the semantic category probability in the occupancy grid detection result, N represents the total number of semantic categories; using a multilayer perceptron to compress the multimodal sparse voxel query vector to two dimensions to obtain the motion speed in the occupancy grid detection result, the motion speed including the velocity components in the x-direction and the y-direction.

[0052] Specifically, first, the detection head is decoupled into multiple detection heads according to the detection requirements. In the embodiment of the present invention, decoupling into three detection heads is used as an example for explanation, but it is not a limitation of the present invention. The three detection heads are specifically an occupancy detection head, a semantic detection head, and a motion detection head. The three detection heads are used to detect the multimodal sparse voxel query vector and its corresponding query coordinates respectively to obtain the occupancy prediction probability, semantic category probability, and motion speed in the occupancy grid detection result.

[0053] It should be noted that the spatial dimension of the multimodal sparse voxel query vector is one-dimensional, but its feature dimension is multi-dimensional.

[0054] Exemplarily, the occupancy detection head uses MPL (Multilayer Perceptron) to compress the query features of the multimodal sparse voxel query vector into one dimension, and the occupancy prediction probability at the query coordinates can be obtained. The semantic detection head uses MPL to compress the query features of the multimodal sparse voxel query vector into N dimensions, and the semantic category probability at the query coordinates can be obtained. The motion detection head uses MLP to compress the query features of the multimodal sparse voxel query vector into two dimensions, and the motion speed at the query coordinates can be obtained.

[0055] In addition, the features may be mapped to a required dimensional space, such as a three-dimensional space, based on the query coordinates of the query vector for subsequent processing.

[0056] In some embodiments, the above detection method also includes: using a binary cross entropy loss function to calculate the loss value of the occupancy prediction probability; using a cross entropy loss function to calculate the loss value of the semantic category probability; using a mean absolute error loss function to calculate the loss value of the motion speed; determining the final loss value based on the weight corresponding to the loss value of the occupancy prediction probability, the weight corresponding to the loss value of the semantic category probability, and the weight corresponding to the loss value of the motion speed, so as to update the model parameters through reverse propagation based on the final loss value.

[0057] Specifically, in an embodiment of the present invention, a multi-scale training loss function is used, that is, at each layer of the sparse voxel decoder, the occupancy prediction probability, semantic category probability and motion speed predicted by the output current layer voxels are calculated, and the occupancy prediction probability, semantic category probability and motion speed loss values ​​at the current scale are respectively calculated. The use of multi-scale loss enables the model to learn feature representations at different scales, thereby improving the accuracy and robustness of the final prediction.

[0058] It should be noted that the weight corresponding to the loss value of the occupied prediction probability, the weight corresponding to the loss value of the semantic category probability, and the weight corresponding to the loss value of the movement speed will be assigned different weights, among which the weight corresponding to the loss value of the occupied prediction probability > the weight corresponding to the loss value of the semantic category probability > the weight corresponding to the loss value of the movement speed.

[0059] In summary, the detection method of the present invention uses sparse query features to perform efficient 3D-2D and 3D-3D interaction and fusion on 2D image features and 3D lidar features, and discards most of the empty voxels in the space through a sparsification strategy, and finally outputs sparse scene occupancy, semantic categories and motion speed, which reduces the computational cost, is simple to deploy, and is suitable for processing large-scale scenes.

[0060] Corresponding to the above embodiments, the present application also proposes a vision and lidar multi-mode fusion occupancy grid detection system.

[0061] Reference Figure 2 The vision and lidar multi-modal fusion occupancy grid detection system 200 includes: a camera modality feature extraction module 210, a lidar modality feature extraction module 220, a multi-modal sparse feature fusion module 230 and an occupancy grid detection head module 240.

[0062] Among them, the camera modality feature extraction module 210 is used to obtain 2D image features of image data. The laser radar modality feature extraction module 220 is used to obtain 3D voxel features of point cloud data. The multimodal sparse feature fusion module 230 is used to perform feature interaction between the 2D image features and the 3D voxel features and the initial sparse voxel query vector, respectively, to obtain a sparse voxel query vector of the image modality and a sparse voxel query vector of the radar modality, to fuse the sparse voxel query vector of the image modality and the sparse voxel query vector of the radar modality, to obtain a one-dimensional sparse voxel query vector, and to upsample the one-dimensional sparse voxel query vector to obtain a multimodal sparse voxel query vector and a query coordinate of the corresponding feature vector, wherein the initial sparse voxel query vector is downsampled and determined according to the 3D voxel features. The occupancy grid detection head module 240 is used to process the feature vector in the multimodal sparse voxel query vector to obtain an occupancy grid detection result according to the query coordinate of the feature vector.

[0063] According to one embodiment of the present invention, the camera modality feature extraction module 210 is specifically used to preprocess the image data to obtain normalized image data; use the normalized image data as input and use a deep learning model to extract feature codes of the image; and fuse the extracted feature codes according to the multi-scale feature pyramid network structure in the deep learning model to generate 2D image features.

[0064] According to one embodiment of the present invention, the deep learning model includes one of a convolutional neural network and a Transformer network, and the module for constructing a multi-scale feature pyramid network structure includes one of an FPN structure, a SECONDFPN structure, and a CustumFPN structure.

[0065] According to one embodiment of the present invention, the laser radar modal feature extraction module 220 is specifically used to convert point cloud data into a voxel grid using voxel layer encoding; encode each voxel grid in the voxel grid using a multi-layer voxel encoder to generate an initial voxel feature; process the point cloud data in the initial voxel feature using a sparse encoder to obtain high-level features of the point cloud data; and extract features from the high-level features using a 3D convolutional network to obtain 3D voxel features.

[0066] According to one embodiment of the present invention, the multimodal sparse feature fusion module 230 is used to fuse the sparse voxel query vector of the image modality and the sparse voxel query vector of the radar modality to obtain a one-dimensional sparse voxel query vector. Specifically, the multimodal sparse feature fusion module is used to merge the sparse voxel query vector of the image modality and the sparse voxel query vector of the radar modality, wherein the merging method includes one of splicing and weighted summation; the merged sparse voxel query vector is subjected to multilayer perceptron processing and fusion to obtain a one-dimensional sparse voxel query vector.

[0067] According to one embodiment of the present invention, the multimodal sparse feature fusion module 230 is also used to upsample the one-dimensional sparse voxel query vector to obtain a multimodal sparse voxel query vector and a corresponding query coordinate, and is specifically used to upsample the fused multimodal sparse voxel query vector within a voxel using a sparse strategy to obtain multiple voxels, each voxel having a set of multimodal sparse voxel query vectors; using a multilayer perceptron prediction to process the multimodal sparse query vector in each voxel to obtain the probability of the voxel being occupied, and taking the preset voxels with the highest probability as occupied voxels, and obtaining the multimodal sparse voxel query vector and the corresponding query coordinates according to the multimodal sparse voxel query vector and the corresponding query coordinates corresponding to the occupied voxels.

[0068] According to one embodiment of the present invention, the multimodal sparse feature fusion module 230 is also used to perform feature interaction between the 2D image features and the 3D voxel features and the initial sparse voxel query vector, specifically for obtaining the 3D sampling offset; determining the sampling point according to the feature vector and the 3D offset of the initial sparse voxel query vector; using the multimodal sparse feature fusion module, using the transformer module to project the sampling point to the image features in the camera coordinate system and perform attention operations with the 2D image features to obtain the sparse voxel query vector of the image modality; using the multimodal sparse feature fusion module, using the transformer module to project the sampling point to the voxel features in the lidar coordinate system and perform attention operations with the 3D voxel features to obtain the sparse voxel query vector of the radar modality.

[0069] According to one embodiment of the present invention, the occupancy grid detection head module 240 is specifically used to compress the multimodal sparse voxel query vector to one dimension using a multilayer perceptron to obtain the occupancy prediction probability in the occupancy grid detection result; compress the multimodal sparse voxel query vector to N dimensions using a multilayer perceptron to obtain the semantic category probability in the occupancy grid detection result, N represents the total number of semantic categories; compress the multimodal sparse voxel query vector to two dimensions using a multilayer perceptron to obtain the motion speed in the occupancy grid detection result, and the motion speed includes the speed components in the x-direction and the y-direction.

[0070] According to one embodiment of the present invention, the occupancy grid detection head module 240 is also used to calculate the loss value of the occupancy prediction probability using a binary cross entropy loss function; calculate the loss value of the semantic category probability using a cross entropy loss function; calculate the loss value of the motion speed using a mean absolute error loss function; determine the final loss value based on the weight corresponding to the loss value of the occupancy prediction probability, the weight corresponding to the loss value of the semantic category probability, and the weight corresponding to the loss value of the motion speed, so as to update the model parameters through reverse propagation based on the final loss value.

[0071] It should be pointed out that the above-mentioned explanation of the embodiments and beneficial effects of the vision and lidar multi-mode fusion occupancy grid detection method is also applicable to the vision and lidar multi-mode fusion occupancy grid detection device of the embodiment of the present invention. To avoid redundancy, it will not be elaborated here.

[0072] Corresponding to the above embodiments, the present application also proposes a computer-readable storage medium.

[0073] The computer-readable storage medium of the present application stores a vision and laser radar multi-mode fusion occupancy grid detection program, which, when executed by a processor, implements the aforementioned vision and laser radar multi-mode fusion occupancy grid detection method.

[0074] It should be pointed out that the above-mentioned explanation of the embodiments and beneficial effects of the multi-mode fusion occupancy grid detection method of vision and lidar is also applicable to the computer-readable storage medium of the embodiment of the present invention. In order to avoid redundancy, it will not be elaborated here.

[0075] Corresponding to the above embodiment, the present application also proposes an electronic device.

[0076] See also Figure 3 As shown, the electronic device 300 of the present application includes a memory 310, a processor 320, and a vision and lidar multi-mode fusion occupancy grid detection program stored in the memory 310 and executable on the processor 320. When the processor 320 executes the vision and lidar multi-mode fusion occupancy grid detection program, the aforementioned vision and lidar multi-mode fusion occupancy grid detection method is implemented.

[0077] It should be pointed out that the above-mentioned explanation of the embodiments and beneficial effects of the multi-mode fusion occupancy grid detection method of vision and lidar is also applicable to the electronic device of the embodiment of the present invention. In order to avoid redundancy, it will not be elaborated here.

[0078] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0079] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0080] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0081] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0082] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0083] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

[0084] The above embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Any equivalent substitution or change made by a person skilled in the art based on the present invention is within the protection scope of the present invention.

Claims

1. A method for detecting occupancy grids by multi-mode fusion of vision and laser radar, characterized in that: The method comprises: Obtaining 2D image features of image data and 3D voxel features of point cloud data; Performing feature interaction on the 2D image feature and the 3D voxel feature with the initial sparse voxel query vector respectively to obtain a sparse voxel query vector of the image modality and a sparse voxel query vector of the radar modality, fusing the sparse voxel query vector of the image modality and the sparse voxel query vector of the radar modality to obtain a one-dimensional sparse voxel query vector, and upsampling the one-dimensional sparse voxel query vector to obtain a multimodal sparse voxel query vector and a query coordinate of a corresponding feature vector, wherein the initial sparse voxel query vector is determined by downsampling according to the 3D voxel feature; The feature vector in the multimodal sparse voxel query vector is processed to obtain an occupancy grid detection result according to the query coordinates of the feature vector.

2. The method for detecting occupancy grids by multi-mode fusion of vision and laser radar according to claim 1, characterized in that: The acquiring of 2D image features of image data comprises: Preprocessing the image data to obtain normalized image data; Taking the normalized image data as input, and using a deep learning model to perform feature encoding extraction on the image; The extracted feature codes are fused according to the multi-scale feature pyramid network structure in the deep learning model to generate the 2D image features.

3. The method for detecting occupancy grids by multi-mode fusion of vision and laser radar according to claim 2, characterized in that: The deep learning model includes one of a convolutional neural network and a Transformer network, and the module for constructing a multi-scale feature pyramid network structure includes one of an FPN structure, a SECONDFPN structure, and a CustumFPN structure.

4. The method for occupancy grid detection by multi-mode fusion of vision and laser radar according to claim 1, characterized in that: Get 3D voxel features of point cloud data, including: Converting the point cloud data into a voxel grid using voxel layer encoding; Using a multi-layer voxel encoder to encode each voxel grid in the voxel grid to generate an initial voxel feature; Processing the point cloud data in the initial voxel features using a sparse encoder to obtain high-level features of the point cloud data; A 3D convolutional network is used to extract the high-level features to obtain the 3D voxel features.

5. The method for occupancy grid detection according to any one of claims 2 to 4, characterized in that: The sparse voxel query vector of the image modality and the sparse voxel query vector of the radar modality are fused to obtain a one-dimensional sparse voxel query vector, including: Using a multi-mode sparse feature fusion module, the sparse voxel query vector of the image modality and the sparse voxel query vector of the radar modality are merged, wherein the merging method includes one of splicing and weighted summation; The merged sparse voxel query vector is fused by multi-layer perceptron processing to obtain the one-dimensional sparse voxel query vector.

6. The method for detecting occupancy grids by multi-mode fusion of vision and laser radar according to claim 5, characterized in that: The one-dimensional sparse voxel query vector is upsampled to obtain a multimodal sparse voxel query vector and a corresponding query coordinate, including: Using a sparse strategy, up-sample the one-dimensional sparse voxel query vector in a voxel to obtain a plurality of voxels, each of which has a set of one-dimensional sparse voxel query vectors; A multi-layer perceptron prediction is used to process the one-dimensional sparse voxel query vector in each voxel to obtain the probability of the voxel being occupied, and the preset voxels with the highest probability are taken as occupied voxels. The multimodal sparse voxel query vector and the corresponding query coordinates are obtained according to the one-dimensional sparse voxel query vector and the corresponding query coordinates corresponding to the occupied voxels.

7. The method for detecting occupancy grids by multi-mode fusion of vision and laser radar according to claim 5, characterized in that: The 2D image feature and the 3D voxel feature are respectively subjected to feature interaction with the initial sparse voxel query vector, including: Get 3D sampling offset; Determine a sampling point according to a feature vector of the initial sparse voxel query vector and the 3D offset; A multi-modal sparse feature fusion module is adopted, and a transformer module is used to project the sampling points to the image features in the camera coordinate system and perform an attention operation on the 2D image features to obtain a sparse voxel query vector of the image modality; A multi-mode sparse feature fusion module is adopted, and a transformer module is used to project the sampling points to the voxel features in the laser radar coordinate system and perform an attention operation on the 3D voxel features to obtain a sparse voxel query vector of the radar modality.

8. The method for occupancy grid detection by multi-mode fusion of vision and laser radar according to claim 1, characterized in that: Processing a feature vector in the multimodal sparse voxel query vector to obtain an occupancy grid detection result at the query coordinate according to the query coordinate of the feature vector includes: Compressing the multimodal sparse voxel query vector into one dimension using a multilayer perceptron to obtain an occupancy prediction probability in the occupancy grid detection result; Using a multi-layer perceptron to compress the multimodal sparse voxel query vector into N dimensions to obtain semantic category probabilities in the occupancy grid detection result, where N represents the total number of semantic categories; A multi-layer perceptron is used to compress the multimodal sparse voxel query vector into two dimensions to obtain a motion speed in the occupancy grid detection result, wherein the motion speed includes speed components in the x-direction and the y-direction.

9. The method for occupancy grid detection by multi-mode fusion of vision and laser radar according to claim 8, characterized in that: Also includes: A binary cross entropy loss function is used to calculate the loss value of the occupancy prediction probability; A cross entropy loss function is used to calculate the loss value of the semantic category probability; The loss value of the motion speed is calculated using a mean absolute error loss function; The final loss value is determined according to the weight corresponding to the loss value of the occupancy prediction probability, the weight corresponding to the loss value of the semantic category probability, and the weight corresponding to the loss value of the motion speed, so as to update the model parameters through reverse propagation according to the final loss value.

10. A vision and laser radar multi-mode fusion occupancy grid detection system, characterized in that: include: A camera modality feature extraction module is used to obtain 2D image features of image data; LiDAR modal feature extraction module, used to obtain 3D voxel features of point cloud data; a multimodal sparse feature fusion module, configured to perform feature interaction on the 2D image feature and the 3D voxel feature with the initial sparse voxel query vector respectively to obtain a sparse voxel query vector of the image modality and a sparse voxel query vector of the radar modality, fuse the sparse voxel query vector of the image modality and the sparse voxel query vector of the radar modality to obtain a one-dimensional sparse voxel query vector, and perform upsampling processing on the one-dimensional sparse voxel query vector to obtain query coordinates of the multimodal sparse voxel query vector and the corresponding feature vector, wherein the initial sparse voxel query vector is determined by downsampling according to the 3D voxel feature; The occupancy grid detection head module is used to process the feature vector in the multimodal sparse voxel query vector to obtain an occupancy grid detection result according to the query coordinates of the feature vector.

11. A computer-readable storage medium, characterized in that: A vision and laser radar multi-mode fusion occupancy grid detection program is stored thereon, and when the vision and laser radar multi-mode fusion occupancy grid detection program is executed by the processor, the vision and laser radar multi-mode fusion occupancy grid detection method according to any one of claims 1-9 is implemented.

12. An electronic device, characterized in that: The invention comprises a memory, a processor and a vision and laser radar multi-mode fusion occupancy grid detection program stored in the memory and executable on the processor. When the processor executes the vision and laser radar multi-mode fusion occupancy grid detection program, the vision and laser radar multi-mode fusion occupancy grid detection method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • Intelligent automobile local semantic grid map generation method

    CN115143950A

  • Target detection method and device based on laser radar, equipment and storage medium

    CN117075122A

  • Systems and methods for end to end scene reconstruction from multiview images

    US20210279943A1

Cited By

  • Visual information-based four-dimensional occupation grid panoramic sensing method and device

    CN119810367A

  • Large-scale city scene reconstruction method taking occupation grid as center and related device

    CN120543746A

  • Method and related device for reconstructing large-scale urban scene centered on occupied grid

    CN120543746B

  • Hospital guidance method and system based on self-service robot

    CN122308380A