Driving area detection method based on heterogeneous feature fusion and vulnerability perception

By using heterogeneous feature fusion and vulnerability perception technology in drivable area detection, combined with surface normal estimation and depth information, the problems of detection accuracy and robustness in the existing technology are solved, and more efficient and accurate are achieved. Detection effect.

CN118537825APending Publication Date: 2024-08-23TONGJI UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410541389.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing drivable area detection methods are difficult to achieve high accuracy and robust detection in complex and dynamic environments, especially in the utilization of 3D information and heterogeneous feature fusion.

Method used

A drivable area detection method based on heterogeneous feature fusion and vulnerability perception is adopted, through surface normal estimation, encoder, HF2B module and lightweight decoder, combined with Patch embedding module, Swin Transformer block, HolisticAttention Module, Heterogeneous Feature ContrastDescriptor and Affinity-weighted Feature Recalibrator, performs efficient feature extraction and fusion, and is trained using a fragility-aware loss function.

Benefits of technology

It achieves more comprehensive scene understanding and more accurate drivable area detection results, improves the comprehensiveness and robustness of detection, enhances supervision signals for semantic transitions and depth inconsistent areas, and improves detection accuracy and computational efficiency. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537825A
    Figure CN118537825A
Patent Text Reader

Abstract

The invention relates to a drivable area detection method based on heterogeneous feature fusion and vulnerability perception, and the method comprises the following steps: obtaining a depth image of a road scene and a corresponding RGB image, inputting the depth image and the corresponding RGB image into a pre-trained drivable area detection model, and obtaining a drivable area in the road scene, the drivable area detection model is trained by adopting a vulnerability perception loss function in a training process, and the drivable area detection model comprises a surface normal estimator, an encoder, an HF2B module and a lightweight decoder. Compared with the prior art, the method has the advantages of higher precision, low calculation complexity and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a drivable area detection method based on heterogeneous feature fusion and vulnerability perception. Background Art

[0002] In the field of autonomous vehicles, driving scene understanding is a critical task that has made significant progress in recent years, driven by artificial intelligence. Reliable collision-free space (i.e., free space) detection is a key component in autonomous driving systems as it directly affects the vehicle's ability to make informed decisions and ensure reliable navigation. Free space detection has attracted considerable research attention in recent years, with continuous efforts to address edge cases in complex and dynamic environments.

[0003] Free space detection methods typically classify each pixel in an RGB or depth / disparity image as drivable or non-drivable. Other modules in the autonomous system, such as trajectory prediction and path planning, then utilize these pixel-level classification results to ensure that the autonomous car can safely navigate in complex environments.

[0004] However, the utilization of 3D information is becoming increasingly important for drivable area detection, whether based on explicit programming or data-driven approaches, mainly because it provides valuable spatial geometric information. Feature fusion networks with complex encoders are designed to extract heterogeneous features from multiple data sources or modalities and fuse them to provide a more comprehensive understanding of the environment, and have become a viable solution to this problem.

[0005] Existing drivable area detection methods can be divided into traditional methods and machine / deep learning methods. Traditional methods usually use explicit geometric models to formulate the free space and use optimization methods to find its optimal coefficients. With the recent advances in machine / deep learning, drivable area detection is usually regarded as a semantic driving scene segmentation problem, where convolutional neural networks (CNNs) are used to learn its optimal solution. For example, the encoder-decoder architecture segments RGB images in a bird's-eye view to achieve end-to-end drivable area detection. Recently, many researchers have adopted data fusion CNN architectures to further improve the accuracy of semantic image segmentation. For example, the data fusion CNN architecture integrates depth information into traditional semantic segmentation, greatly improving the performance of driving scene segmentation. Summary of the invention

[0006] The purpose of the present invention is to provide a drivable area detection method based on heterogeneous feature fusion and vulnerability perception with high detection accuracy.

[0007] The purpose of the present invention can be achieved by the following technical solutions:

[0008] A drivable area detection method based on heterogeneous feature fusion and vulnerability perception includes the following steps:

[0009] Obtain the depth image and corresponding RGB image of the road scene, input them into the pre-trained drivable area detection model, and obtain the drivable area in the road scene.

[0010] The drivable area detection model is trained using a vulnerability-aware loss function during the training process. The drivable area detection model includes a surface normal estimator, an encoder, an HF 2 B module and lightweight decoder;

[0011] The drivable area detection model performs the following steps:

[0012] Based on the depth image and the corresponding RGB image, the surface normal vector is estimated by the surface normal estimator to obtain a surface normal vector image;

[0013] Inputting the surface normal vector image and the RGB image into the encoder for feature extraction to obtain an RGB heterogeneous feature map and a surface normal vector heterogeneous feature map;

[0014] The RGB heterogeneous feature map and the surface normal vector heterogeneous feature map are input into the HF 2 Efficient heterogeneous feature fusion is performed in module B to generate recalibrated heterogeneous feature maps;

[0015] The recalibrated heterogeneous feature map is input into the lightweight decoder for decoding to obtain a drivable area in the road scene.

[0016] Furthermore, the step of obtaining the surface normal vector image includes:

[0017] According to the depth image, surface normal vector estimation is performed by the surface normal estimator to obtain surface normal vector information;

[0018] The surface normal vector information is combined with the RGB image to generate a surface normal vector image.

[0019] Furthermore, the encoder includes a Patch embedding module and a Swin Transformer block, and the step of obtaining the RGB heterogeneous feature map and the surface normal vector heterogeneous feature map includes:

[0020] Input the surface normal vector image and the RGB image into the Patch embedding module, divide them into non-overlapping Patch blocks respectively, and linearly project them into a high-dimensional feature space to form an RGB embedding feature map and a surface normal vector embedding feature map;

[0021] The RGB embedding feature map and the surface normal embedding feature map are input into the Swin Transformer block to obtain an RGB heterogeneous feature map and a surface normal heterogeneous feature map.

[0022] Furthermore, the HF 2 The B module includes three parts: HAM, HFCD and AWFR. The steps of generating the recalibrated heterogeneous feature map include:

[0023] The RGB heterogeneous feature map F R and the surface normal vector heterogeneous feature map F N Input into the HAM to obtain the spatial attention feature map F S And the scale channel joint attention feature map F C ;

[0024] F S and F C Input into HFCD to get the respective heterogeneous characteristics comparison and

[0025] Will and Enter AWFR and combine with F R and F N Perform calibration to generate a recalibrated heterogeneous feature map F H .

[0026] Furthermore, the HAM includes two branches, the first branch is a spatial attention branch, and the second branch is a scale-channel joint attention branch that combines multi-scale context information and channel attention. The spatial attention feature F S and scale channel joint attention feature F C The steps include:

[0027] The RGB heterogeneous feature map F R and the surface normal vector heterogeneous feature map F N Input into the first branch, apply spatial attention respectively, and obtain RGB spatial weighted feature map and surface normal space weighted feature map and will and Connect them to form a tensor F S , the tensor F S As the spatial attention feature F S , the tensor F S The expression is:

[0028]

[0029] In the formula, fs (·) represents the spatial attention operation, is the shape of the feature map, C is the number of channels of the feature map, H is the height of the feature map, and W is the width of the feature map;

[0030] The RGB heterogeneous feature map F R and the surface normal vector heterogeneous feature map F N Input into the second branch, perform multi-scale context aggregation operation and apply channel attention operation to obtain the scale channel common attention feature F C , the scale channel common attention feature F C The expression is:

[0031]

[0032]

[0033] In the formula, F A is the generated feature after the scale context aggregation operation, f a (·) represents the multi-scale context aggregation operation, f c (·) represents the multi-scale context aggregation operation, They are the weighted feature maps of the RGB channels and the weighted feature maps of the surface normal vector channels, is the shape of the feature map, C is the number of channels of the feature map, H is the height of the feature map, and W is the width of the feature map.

[0034] Further, the HFCD is defined as:

[0035]

[0036] In the formula, include and include and include and F S and F C The result after normalization using the sigmoid function is: They are respectively the normalized RGB space weighted feature map and the normalized surface normal space weighted feature map. They are respectively the normalized RGB channel weighted feature map and the normalized surface normal channel weighted feature map, and the operator w h,i represents the combination of convolution, batch normalization and sigmoid layers, i = 1, 2, ⊙ represents the Hadamard product, Represents element-wise subtraction.

[0037] Furthermore, the AWFR comprises a volume construction module and a recalibration module, wherein the recalibrated heterogeneous feature map F is generated. H The steps include:

[0038] Will and The volume building module is input to build an affinity volume, and the expression of the affinity volume is:

[0039]

[0040] In the formula, is the affinity volume, is the shape of the feature map, C is the number of channels of the feature map, H is the height of the feature map, and W is the width of the feature map;

[0041] A and F R and F N Input to the recalibration module to weight F R and F N , generate the recalibrated heterogeneous feature map F H , the recalibrated heterogeneous feature map F H The expression is:

[0042]

[0043] In the formula, w r 、w n and w a is the convolution layer, indicating the convolution operation, are the recalibrated RGB heterogeneous feature maps and the recalibrated surface normal vector heterogeneous feature maps, respectively, and ⊙ represents the Hadamard product.

[0044] Furthermore, the lightweight decoder includes four parts: an upsampling module, a cross-scale jump connection module, an internal scale jump connection module and a convolution module. The step of obtaining the drivable area in the road scene includes:

[0045] The recalibrated heterogeneous feature map is input into the upsampling module for upsampling processing, then input into the cross-scale jump connection module and the internal-scale jump connection module for cross-scale jump connection and internal-scale jump connection, and finally input into the convolution module for convolution processing to obtain a drivable area in the road scene.

[0046] Furthermore, the convolution module is a depth-separable convolution module.

[0047] Furthermore, the vulnerability perception loss function is expressed as:

[0048]

[0049]

[0050]

[0051]

[0052]

[0053]

[0054] In the formula, is the overall loss function, i.e., the vulnerability-aware loss function, is the semantic transition-aware loss, is the depth inconsistency perception loss, λ S and λ D They are and The balance parameter, q is the pixel, ω S (q)∈[0,1] is the probability that each pixel q belongs to the semantic transition region, y q ∈{0,1} represents the ground truth label of q, p q ∈[0,1] represents the probability that q belongs to the free space category, Indicates prospects, Each pixel has a q-neighborhood system, Indicates the background, is the pixel by pixel in the q-neighborhood system, I(·) is the indicator function, ω D (q)∈[0,1) is the weight to measure the depth inconsistency, The theoretical camera height is obtained by summing up the y coordinates of the pixels, I D (q) is Stores the depth value, Represents the homogeneous coordinates of the free space pixel q where the prediction is stored , N is the number of points calculated, z is the depth image, K -1 is the inverse matrix of the system camera intrinsic parameters.

[0055] Compared with the prior art, the present invention has the following beneficial effects:

[0056] (1) According to the different modes of the image, the present invention uses a dual-encoding feature embedding encoder to extract features, obtain heterogeneous feature maps of each mode, and use HF 2Module B performs efficient heterogeneous feature fusion and combines heterogeneous feature maps of different modalities to obtain a more comprehensive scene understanding, thereby achieving more accurate drivable area detection results after decoding.

[0057] (2) Compared with other SoTA heterogeneous feature fusion strategies, the HF 2 B adaptively assigns weights to the original features, taking into account the consistency and inconsistency in importance determined by HFCD and AWFR. This approach of seeking commonalities and retaining differences enhances the comprehensiveness of free space detection feature fusion.

[0058] (3) The lightweight decoder of the present invention combines the advantages of UNet++ and UNet3+, integrates cross-scale and intra-scale skip connections, eliminates redundant connections, and improves accuracy and computational efficiency.

[0059] (4) The vulnerability-aware loss function of the present invention focuses on semantic transitions and depth inconsistency areas respectively, which together provide stronger supervision signals and greatly improve accuracy and robustness. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 It is a schematic diagram of the method flow of the present invention;

[0061] Figure 2 This is a structural diagram of an efficient heterogeneous feature fusion module according to an embodiment of the present invention;

[0062] Figure 3 Schematic diagrams of three decoders according to embodiments of the present invention, wherein (a) is the SNE-RoadSeg architecture, (b) is the UNet3+ architecture, and (c) is the lightweight decoder architecture;

[0063] Figure 4 Schematic diagram of the drivable area detection result of an embodiment of the present invention, wherein (a) is the drivable area detection result of scenario one, and (b) is the drivable area detection result of scenario two. DETAILED DESCRIPTION

[0064] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.

[0065] This embodiment provides a drivable area detection method based on heterogeneous feature fusion and vulnerability perception, such as Figure 1 As shown, the method comprises the following steps:

[0066] S1. Obtain the depth image and corresponding RGB image of the road scene and input them into the pre-trained drivable area detection model.

[0067] Using sensors to collect depth images of road scenes D , using a color camera to collect the corresponding RGB image I R .

[0068] In this embodiment, the drivable area detection model is trained using a vulnerability-aware loss function during the training process. The drivable area detection model includes a surface normal estimator, an encoder, an HF 2 B (Heterogeneous Feature Fusion Block, heterogeneous feature fusion block) and a lightweight decoder, the encoder includes a Patch embedding module and a Swin Transformer block, the HF 2 The B module includes three parts: HAM (Holistic Attention Module), HFCD (Heterogeneous Feature Contrast Descriptor) and AWFR (Affinity-weighted Feature Recalibrator), the lightweight decoder.

[0069] S2. Based on the depth image and the corresponding RGB image, the surface normal vector is estimated by the surface normal estimator to obtain a surface normal vector image.

[0070] In this embodiment, a surface normal estimator is first used to perform efficient and accurate surface normal vector estimation to obtain surface normal vector information; secondly, the surface normal vector information is combined with the RGB image to generate a surface normal vector image I N .

[0071] S3. Input the surface normal vector image and the RGB image into the encoder for feature extraction to obtain an RGB heterogeneous feature map and a surface normal vector heterogeneous feature map.

[0072] This step uses the RGB image extracted by the encoder and the surface normal vector image feature map to proceed to the next step, which is performed by HF 2 B performs efficient heterogeneous feature fusion. The steps are:

[0073] Extract the RGB image I described in step S2 R and the surface normal image I NThey are divided into non-overlapping patch blocks through the Patch Embedding Module and transformed into a high-dimensional feature space through a trainable linear projection in the Patch Embedding Module to form RGB embedding feature maps and surface normal embedding feature maps. The embedded feature maps are then sent to the Swin Transformer block to produce hierarchical heterogeneous feature maps. and That is, RGB heterogeneous feature map and surface normal vector heterogeneous feature map. Each pair of heterogeneous features will pass through the HF in step S4 2 B undergoes a comprehensive integration process.

[0074] S4, inputting the RGB heterogeneous feature map and the surface normal vector heterogeneous feature map into the HF 2 Efficient heterogeneous feature fusion is performed in module B to generate recalibrated heterogeneous feature maps.

[0075] S41, RGB heterogeneous feature map F R The surface normal vector heterogeneous feature map is input into the HAM to obtain the spatial attention feature map F S And the scale channel joint attention feature map F C .

[0076] HAM consists of two branches. The first branch is the spatial attention branch, and the second branch is the scale-channel joint attention branch that combines multi-scale context information and channel attention. The specific steps are as follows:

[0077] The RGB heterogeneous feature map F R and the surface normal vector heterogeneous feature map F N Input into the first branch, apply spatial attention respectively, and obtain RGB spatial weighted feature map and surface normal space weighted feature map and will and Connect them to form a tensor F S :

[0078]

[0079] where f s (·) represents the spatial attention operation, which allows the model to prioritize important areas of the image while suppressing less relevant areas. Figure 2 As shown in Fig. 2, another branch of HAM combines multi-scale contextual information and channel attention. A series of dilated convolutional layers with expanded receptive fields are initially used to generate feature F A :

[0080]

[0081] where f a (·) represents the multi-scale context aggregation operation. Then the channel attention operation f is applied c We further model the interdependence of heterogeneous features at the scale and channel levels and obtain the scale-channel attention feature map F C :

[0082]

[0083] S42, F S and F C Input into HFCD to get the respective heterogeneous characteristics comparison and

[0084] By the HF 2 HF as described in Module B 2 After using (1)-(3) to model the interdependence between the three dimensions of heterogeneous features in the HFCD module in the B module, the embodiment of the present invention further explores a method for comparing these features in a more comprehensive and effective way. The research of the embodiment of the present invention further explores their shared and unique characteristics. To this end, the embodiment of the present invention first uses the sigmoid function σ(·) to compare the spatial attention and scale channel common attention features F S and F C After normalization, we can get and Then, yes and Perform element-by-element product operations to activate the commonly emphasized parts among heterogeneous features; and Performing element-by-element subtraction operation activates important features in the RGB image or surface normal map. Inspired by this, the embodiment of the present invention defines HFCD as follows:

[0085]

[0086] Where ⊙ represents the Hadamard product, Represents element-wise subtraction. Operator w h,i Represents a combination of convolution, batch normalization, and sigmoid layers. Figure 2 As shown, the heterogeneous features described are compared It is then used to construct an affinity volume A for further calibration of the features.

[0087] S43, will and Enter AWFR and combine with F R and F NPerform calibration to generate a recalibrated heterogeneous feature map F H .

[0088] By the HF 2 The AWFR module in the B module is designed in the HF 2 In B, Figure 2 As shown, the AWFR module includes a volume construction module and a recalibration module, wherein the volume construction module is used to construct a volume containing element-by-element weights, and the recalibration module is used to jointly recalibrate (emphasize and weaken) heterogeneous features. and The two volumes describe the contrast between heterogeneous features at the spatial and scale channel levels, respectively. The embodiment of the present invention uses these two volumes to construct an affinity volume. As shown below:

[0089]

[0090] This is the original heterogeneous feature map F R and F N provides an element-wise weight between 0 and 1. Specifically, a higher affinity value indicates that the element is more important in both types of feature maps, a medium affinity value indicates an element that is more important in one of the feature maps, and a low affinity value indicates a redundant element that should be ignored in both types of feature maps. Finally, weight F by A R and F N ,get and They are then concatenated to generate the recalibrated heterogeneous feature map F H , as shown below:

[0091]

[0092] where w r 、w n and w a Represents a convolutional layer. Compared with other heterogeneous feature fusion strategies, the HF proposed in this embodiment of the present invention 2 B adaptively assigns weights to the original features, taking into account the consistency and inconsistency in importance determined by HFCD and AWFR. This approach of seeking commonalities and preserving differences enhances the comprehensiveness of free space detection feature fusion.

[0093] S5. Input the recalibrated heterogeneous feature map into the lightweight decoder for decoding to obtain a drivable area in the road scene.

[0094] During the decoding process, cross-scale and intra-scale skip connections are integrated to eliminate redundant connections and improve accuracy and computational efficiency.

[0095] Figure 3 SNE-RoadSeg (almost the same as UNet++), UNet3+ and the decoder architecture proposed in the embodiment of the present invention are shown, where: Figure 3 (a) is the SNE-RoadSeg architecture, (b) is the UNet3+ architecture, and (c) is the lightweight decoder architecture of an embodiment of the present invention. UNet++ fails to effectively utilize multi-scale features, and UNet3+ is specifically designed to address this limitation. However, before designing the decoder of an embodiment of the present invention, the embodiment of the present invention must answer the following question: Is UNet3+ always better than UNet++ in free space detection tasks? Through an extensive series of experiments with CNN and Transformer backbones, the embodiment of the present invention gives a negative answer. However, the intra-scale skip connections in UNet++ and the inter-scale skip connections in UNet3+ are still indispensable. Therefore, the lightweight and more accurate decoder of an embodiment of the present invention combines the advantages of UNet++ and UNet3+ through extensive experimental efforts, including cross-scale and intra-scale skip connections. As Figure 3 As shown, the embodiment of the present invention only retains the jump connection from a given node to its adjacent nodes and the final node at each stage. This modification reduces the propagation of redundant information without affecting the performance of the decoder. In addition, the embodiment of the present invention adopts the inter-scale jump connection used in UNet3+ to capture fine-grained and coarse-grained details. In addition, the embodiment of the present invention replaces the basic convolution in the decoder with a depth-separable convolution, further reducing its computational complexity. The decoder of the embodiment of the present invention is superior to UNet++ and UNet3+ in terms of efficiency and accuracy.

[0096] According to the lightweight decoder designed in this embodiment, the lightweight decoder includes four parts: an upsampling module, a cross-scale jump connection module, an internal scale jump connection module and a convolution module. The step of obtaining the drivable area in the road scene includes:

[0097] The recalibrated heterogeneous feature map is input into the upsampling module for upsampling processing, then input into the cross-scale jump connection module and the internal-scale jump connection module for cross-scale jump connection and internal-scale jump connection, and finally input into the convolution module for convolution processing to obtain a drivable area in the road scene.

[0098] The drivable area detection model utilizes two innovative vulnerability-aware loss functions during training, focusing on semantic transitions and depth-inconsistent regions respectively, which together provide stronger supervision signals.

[0099] By introducing two weighting factors, these error-prone areas are prioritized, which is a significant improvement over the traditional BCE loss function. A novel modification is made. The overall loss is formulated as follows:

[0100]

[0101] where λ S and λ D Balance the semantic transition perception loss and depth-inconsistency-aware loss

[0102] (1) Semantic transition-aware loss function: The transition area between different semantic categories can be regarded as a mixture of semantic labels. For each pixel q and its neighborhood system in and Respectively represent the foreground (free space) and the background (others). The embodiment of the present invention uses the following expression to determine the possibility that it belongs to the semantic transition area ω S (q)∈[0,1]:

[0103]

[0104] where I(·) is the indicator function and when or This probability is close to 0 when approaching the empty set and close to 1 in the semantic transition region. Substituting (8) into the standard BCE loss, we get as follows:

[0105]

[0106] where y q ∈{0,1} represents the ground truth label of q (1 for free space and 0 for others), and p q ∈[0,1] represents the probability that q belongs to the free space category.

[0107] (2) Depth-inconsistency-aware loss function: When depth images are available, it is also beneficial to use this data to improve network training through an adaptive loss function. Represents the homogeneous coordinates of the free space pixel q where the prediction is stored Considering that the height between the camera and the ground plane remains constant in each image in theory, when the pitch angle of the camera is ignored, the embodiment of the present invention summarizes the y coordinates of these pixels to obtain the theoretical camera height Use the following expression:

[0108]

[0109] in Store depth value I D (q). Then we can get the weight ω to measure the depth inconsistency D (q)∈[0,1), as shown below:

[0110]

[0111] It is close to 0 or 1 when the free space depth is uniform or non-uniform. Therefore, is formulated as follows:

[0112]

[0113] like Figure 4 Figures (a) and (b) show the drivable area detection results in two scenarios. The actual road scene can achieve efficient heterogeneous fusion and vulnerability perception, thereby realizing a high-precision drivable area detection method.

[0114] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program code.

[0115] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The schemes in the embodiments of the present invention may be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.

[0116] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0117] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0118] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0119] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0120] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A drivable area detection method based on heterogeneous feature fusion and vulnerability perception, It is characterized in that The following steps are involved: Obtain the depth image and corresponding RGB image of the road scene, input them into the pre-trained drivable area detection model, and obtain the drivable area in the road scene. The drivable area detection model is trained using a vulnerability-aware loss function during the training process. The drivable area detection model includes a surface normal estimator, an encoder, an HF 2 B module and lightweight decoder; The drivable area detection model performs the following steps: Based on the depth image and the corresponding RGB image, the surface normal vector is estimated by the surface normal estimator to obtain a surface normal vector image; Inputting the surface normal vector image and the RGB image into the encoder for feature extraction to obtain an RGB heterogeneous feature map and a surface normal vector heterogeneous feature map; The RGB heterogeneous feature map and the surface normal vector heterogeneous feature map are input into the HF 2 Efficient heterogeneous feature fusion is performed in module B to generate recalibrated heterogeneous feature maps; The recalibrated heterogeneous feature map is input into the lightweight decoder for decoding to obtain a drivable area in the road scene.

2. According to claim 1, a drivable area detection method based on heterogeneous feature fusion and vulnerability perception, It is characterized in that The step of obtaining the surface normal vector image comprises: According to the depth image, surface normal vector estimation is performed by the surface normal estimator to obtain surface normal vector information; The surface normal vector information is combined with the RGB image to generate a surface normal vector image.

3. According to claim 1, a drivable area detection method based on heterogeneous feature fusion and vulnerability perception, It is characterized in that The encoder includes a Patch embedding module and a Swin Transformer block, and the step of obtaining an RGB heterogeneous feature map and a surface normal vector heterogeneous feature map includes: Input the surface normal vector image and the RGB image into the Patch embedding module, divide them into non-overlapping Patch blocks respectively, and linearly project them into a high-dimensional feature space to form an RGB embedding feature map and a surface normal vector embedding feature map; The RGB embedding feature map and the surface normal embedding feature map are input into the Swin Transformer block to obtain an RGB heterogeneous feature map and a surface normal heterogeneous feature map.

4. According to claim 1, a drivable area detection method based on heterogeneous feature fusion and vulnerability perception, It is characterized in that The HF 2 The B module includes three parts: HAM, HFCD and AWFR. The steps of generating the recalibrated heterogeneous feature map include: The RGB heterogeneous feature map F R and the surface normal vector heterogeneous feature map F N Input into the HAM to obtain the spatial attention feature map F S And the scale channel joint attention feature map F C ; F S and F C Input into HFCD to get the respective heterogeneous characteristics comparison and Will and Enter AWFR and combine with F R and F N Perform calibration to generate a recalibrated heterogeneous feature map F H .

5. According to claim 4, a drivable area detection method based on heterogeneous feature fusion and vulnerability perception, It is characterized in that The HAM includes two branches, the first branch is a spatial attention branch, and the second branch is a scale-channel joint attention branch that combines multi-scale context information and channel attention. The spatial attention feature F S and scale channel joint attention feature F C The steps include: The RGB heterogeneous feature map F R and the surface normal vector heterogeneous feature map F N Input into the first branch, apply spatial attention respectively, and obtain RGB spatial weighted feature map and surface normal space weighted feature map and will and Connect them to form a tensor F S , the tensor F S As the spatial attention feature F S , the tensor F S The expression is: In the formula, f s (·) represents the spatial attention operation, is the shape of the feature map, C is the number of channels of the feature map, H is the height of the feature map, and W is the width of the feature map; The RGB heterogeneous feature map F R and the surface normal vector heterogeneous feature map F N Input into the second branch, perform multi-scale context aggregation operation and apply channel attention operation to obtain the scale channel common attention feature F C , the scale channel common attention feature F C The expression is: In the formula, F A is the generated feature after the scale context aggregation operation, f a (·) represents the multi-scale context aggregation operation, f c (·) represents the multi-scale context aggregation operation, They are the weighted feature maps of the RGB channels and the weighted feature maps of the surface normal vector channels, is the shape of the feature map, C is the number of channels of the feature map, H is the height of the feature map, and W is the width of the feature map.

6. According to claim 4, a drivable area detection method based on heterogeneous feature fusion and vulnerability perception, It is characterized in that The HFCD is defined as: In the formula, include and include and include and F S and F C The result after normalization using the sigmoid function is: They are respectively the normalized RGB space weighted feature map and the normalized surface normal space weighted feature map. They are respectively the normalized RGB channel weighted feature map and the normalized surface normal channel weighted feature map, and the operator w h,i represents the combination of convolution, batch normalization and sigmoid layers, i = 1, 2, ⊙ represents the Hadamard product, Represents element-wise subtraction.

7. According to claim 4, a drivable area detection method based on heterogeneous feature fusion and vulnerability perception, It is characterized in that The AWFR comprises a volume construction module and a recalibration module, wherein the recalibrated heterogeneous feature map F is generated. H The steps include: Will and The volume building module is input to build an affinity volume, and the expression of the affinity volume is: In the formula, is the affinity volume, is the shape of the feature map, C is the number of channels of the feature map, H is the height of the feature map, and W is the width of the feature map; A and F R and F N Input to the recalibration module to weight F R and F N , generate the recalibrated heterogeneous feature map F H , the recalibrated heterogeneous feature map F H The expression is: In the formula, w r 、w n and w a is the convolution layer, indicating the convolution operation, are the recalibrated RGB heterogeneous feature maps and the recalibrated surface normal vector heterogeneous feature maps, respectively, and ⊙ represents the Hadamard product.

8. According to claim 1, a drivable area detection method based on heterogeneous feature fusion and vulnerability perception, It is characterized in that The lightweight decoder includes four parts: an upsampling module, a cross-scale jump connection module, an internal scale jump connection module and a convolution module. The step of obtaining the drivable area in the road scene includes: The recalibrated heterogeneous feature map is input into the upsampling module for upsampling processing, then input into the cross-scale jump connection module and the internal-scale jump connection module for cross-scale jump connection and internal-scale jump connection, and finally input into the convolution module for convolution processing to obtain a drivable area in the road scene.

9. The drivable area detection method based on heterogeneous feature fusion and vulnerability perception according to claim 8, It is characterized in that The convolution module is a depth-wise separable convolution module.

10. The drivable area detection method based on heterogeneous feature fusion and vulnerability perception according to claim 1, It is characterized in that The expression of the vulnerability perception loss function is: In the formula, is the overall loss function, i.e., the vulnerability-aware loss function, is the semantic transition-aware loss, is the depth inconsistency perception loss, λ S and λ D They are and The balance parameter, q is the pixel, ω S (q)∈[0,1] is the probability that each pixel q belongs to the semantic transition region, y q ∈{0,1} represents the ground truth label of q, p q ∈[0,1] represents the probability that q belongs to the free space category, Indicates prospects, Each pixel has a q-neighborhood system, Indicates the background, is the pixel by pixel in the q-neighborhood system, I(·) is the indicator function, ω D (q)∈[0,1) is the weight to measure the depth inconsistency, The theoretical camera height is obtained by summing up the y coordinates of the pixels, I D (q) is Stores the depth value, Represents the homogeneous coordinates of the free space pixel q where the prediction is stored , N is the number of points calculated, z is the depth image, K -1 is the inverse matrix of the system camera intrinsic parameters.

Citation Information

Cited By

  • Passable area detection method based on multi-sensor feature level fusion

    CN119649331A