Cross-modal feature level fusion target detection method and system in automatic driving scene
Through the cross-modal feature-level fusion object detection method, the dual-flow dynamic convolutional fusion module and modal parallax extraction network are used to solve the problem of insufficient complementarity between visible and infrared light modal information in the existing technology, and improve the self-driving scenario. Object detection accuracy and real-time.
Patent Information
- Application Number
- CN202411058940.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-11-01
AI Technical Summary
The existing object detection scheme based on visible and infrared light is limited in extreme environments for detection accuracy and real-time. Traditional methods cannot effectively utilize the advantages of the two modal information, resulting in low environmental perception object detection efficiency.
Using the cross-modal feature-level fusion object detection method, the multi-scale features of visible light and infrared images are extracted through the dual-flow dynamic convolution fusion module and the modal parallax extraction network, and the multi-scale features of visible light and infrared images are generated, and the parallax attention mask and dynamic convolution kernel are performed to perform complementary features. , and introduce the kernel information divergence loss function for supervised learning to improve detection accuracy.
Maximize the unique characteristics of input data in different modalities, improve the accuracy and robustness of target detection, and enhance the accuracy and real-timeness of detection results.
Smart Images

Figure CN118887392A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of target detection, and in particular, to a cross-modal feature-level fusion target detection method and system in an autonomous driving scenario. Background Art
[0002] In recent years, autonomous driving technology has gradually become a hot topic in the industry and scientific research community, among which perception technology plays an important role as a key link. In current research, target perception detection technology based on visible light has made great progress. However, in some extreme environments, such as insufficient light and target occlusion, its detection accuracy and real-time performance will be affected. To solve these problems, researchers introduced infrared sensors, using their adaptability in harsh environments and good modal complementarity as a supplement to visible light information.
[0003] The inventors have discovered that existing target detection schemes based on visible light and infrared light, when utilizing the two types of light, usually only extract features from the images under the two types of light and then simply splice them to obtain fused features. However, since the imaging mechanisms of the two modalities are different and the represented information also has modal differences, the fused feature method of the traditional method cannot achieve the complementary advantages of the two modal information and cannot effectively improve the efficiency of environmental perception target detection. Summary of the invention
[0004] The embodiments of the present invention provide a cross-modal feature-level fusion target detection method and system in an autonomous driving scenario to solve the problem that the imaging mechanisms of visible light and infrared light are different, and the represented information also has modal differences, which leads to the inability of the traditional method of fusion feature to achieve the complementary advantages of the two modal information and effectively improve the efficiency of environmental perception target detection.
[0005] According to a first aspect of an embodiment of the present invention, a cross-modal feature-level fusion target detection method in an autonomous driving scenario is provided, comprising:
[0006] Acquire visible light images and infrared images of the target detection area in real time;
[0007] Based on the obtained visible light images and infrared images, the target detection results are obtained using the pre-trained cross-modal feature-level fusion target detection model;
[0008] The cross-modal feature-level fusion target detection model specifically performs the following processing: for the input visible light image and infrared image, respectively extract the multi-scale features of the visible light image and the multi-scale features of the infrared image; based on the multi-scale features of the visible light image and the multi-scale features of the infrared image, use a pre-built two-stream dynamic convolution fusion module to obtain the fusion features of the visible light image and the infrared image; based on the fusion features, use a pre-built detection head to obtain the target detection result;
[0009] Among them, the dual-stream dynamic convolution fusion module specifically performs the following processing process: based on the multi-scale features of the visible light image and the multi-scale features of the infrared image, a modal disparity extraction network is used to obtain a disparity attention mask of the two modal features; based on the disparity attention mask and the feature attention mask obtained based on a preset number of initial convolution kernels, a visible light dynamic convolution kernel and an infrared light dynamic convolution kernel are obtained; the visible light dynamic convolution kernel is convolved with the multi-scale features of the infrared image, and the infrared light dynamic convolution kernel is convolved with the multi-scale features of the visible light image to obtain visible light features and infrared light features containing modal-specific characteristics and inter-modal differences; the obtained visible light features and infrared light features are complementary fused to obtain fused features.
[0010] Furthermore, based on the disparity attention mask and the feature attention mask obtained based on several preset initial convolution kernels, a visible light dynamic convolution kernel and an infrared light dynamic convolution kernel are obtained, which are specifically expressed as the sum of the feature attention mask, the convolution kernel and the disparity attention mask corresponding to different convolution kernels.
[0011] Furthermore, the obtained visible light features and infrared light features are complementary and fused, which is specifically expressed as follows:
[0012]
[0013] Among them, F ir ,F v They are infrared light features and visible light features that contain modal-specific characteristics and inter-modal differences, respectively. [F ir ,F v ] is F ir and F v The splicing features of represents the output probability of the softmax operation, F f For fusion features.
[0014] Furthermore, in the training of the cross-modal feature-level fusion target detection model, a supervised learning method is adopted, and a loss function that introduces kernel information divergence loss is adopted; wherein the kernel information divergence loss is expressed as:
[0015]
[0016] Among them, K v ,K ir They are respectively the visible light dynamic convolution kernel and the infrared light dynamic convolution kernel, D KL (K v ,K ir ) represents K v and K ir The KL divergence of .
[0017] Furthermore, the loss function is specifically expressed as:
[0018]
[0019] in, is the kernel information divergence loss, as well as They are the bounding box regression loss, target classification loss, and target confidence loss in YOLOv5, respectively.
[0020] Furthermore, the disparity attention mask is generated by using a modal disparity extraction network, and the generation of the disparity attention mask is specifically expressed as follows:
[0021]
[0022] in, σ represents the sigmoid function, h A represents a network consisting of an MLP and a global maximum pooling layer, h M Represents a network consisting of an MLP and a global average pooling layer. The MLP is a network consisting of a 1×1 convolution, a ReLU activation, and another 1×1 convolution.
[0023] Furthermore, the extraction of multi-scale features of the visible light image and the multi-scale features of the infrared image specifically uses CSPDarknet in YOLOv5 for feature extraction.
[0024] According to a second aspect of an embodiment of the present invention, a cross-modal feature-level fusion target detection system in an autonomous driving scenario is provided, including:
[0025] A data acquisition module, which is used to acquire visible light images and infrared images of the target detection area in real time;
[0026] The target detection module is used to obtain the target detection result based on the obtained visible light image and infrared image by using the pre-trained cross-modal feature-level fusion target detection model; the cross-modal feature-level fusion target detection model specifically performs the following processing process: for the input visible light image and infrared image, respectively extract the multi-scale features of the visible light image and the multi-scale features of the infrared image; based on the multi-scale features of the visible light image and the multi-scale features of the infrared image, use the pre-built two-stream dynamic convolution fusion module to obtain the fusion features of the visible light image and the infrared image; based on the fusion features, use the pre-built detection head to obtain the target detection result; wherein, the two-stream dynamic convolution The fusion module specifically performs the following processing procedures: based on the multi-scale features of the visible light image and the multi-scale features of the infrared image, a modal disparity extraction network is used to obtain a disparity attention mask of the two modal features; based on the disparity attention mask and a feature attention mask obtained based on a preset number of initial convolution kernels, a visible light dynamic convolution kernel and an infrared light dynamic convolution kernel are obtained; the visible light dynamic convolution kernel is convolved with the multi-scale features of the infrared image, and the infrared light dynamic convolution kernel is convolved with the multi-scale features of the visible light image to obtain visible light features and infrared light features containing modal-specific characteristics and inter-modal differences; the obtained visible light features and infrared light features are complementary fused to obtain fused features.
[0027] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising a memory, a processor, and a computer program stored and running on the memory, wherein when the processor executes the program, the cross-modal feature-level fusion target detection method in an autonomous driving scenario is implemented.
[0028] According to a fourth aspect of an embodiment of the present invention, a non-transitory computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the cross-modal feature-level fusion target detection method in an autonomous driving scenario is implemented.
[0029] One or more of the above technical solutions have the following beneficial effects:
[0030] (1) The present invention provides a cross-modal feature-level fusion target detection method and system in an autonomous driving scenario. The scheme is based on the proposed two-stream dynamic convolution fusion module to fuse the image features of different modalities, thereby retaining the unique features in the input data of different modalities to the maximum extent, so that the kernel can focus on the features specific to the modality. At the same time, based on the two-stream dynamic convolution fusion module and combined with the YOLOv5 backbone network, a cross-modal feature-level fusion target detection model is proposed, which effectively improves the accuracy of target detection.
[0031] (2) The dual-stream dynamic convolutional fusion module of the present invention introduces a disparity attention mask to make the convolution kernels more sensitive to the differences between modalities, allowing them to selectively extract different features for complementary fusion.
[0032] (3) The present invention also provides a kernel information divergence loss, which guides single-modal feature learning by making full use of the difference features between modalities. By directly applying the kernel information divergence loss to cross-modal feature-level fusion target detection, it is beneficial to the generation of robust features.
[0033] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0035] Figure 1 It is an overall flow chart of a cross-modal feature-level fusion target detection method in an autonomous driving scenario described in an embodiment of the present invention;
[0036] Figure 2 Schematic diagram of the overall structure of the cross-modal feature-level fusion target detection model described in an embodiment of the present invention;
[0037] Figure 3 Schematic diagram of the structure of the dual-stream dynamic convolution fusion module described in an embodiment of the present invention;
[0038] Figure 4 Schematic diagram of target detection results of a cross-modal feature-level fusion target detection method in an autonomous driving scenario described in an embodiment of the present invention. DETAILED DESCRIPTION
[0039] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0040] It should be noted that the terms used herein are for describing specific embodiments only and are not intended to be limiting of exemplary embodiments according to the present invention.
[0041] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0042] like Figure 1As shown, an embodiment of the present invention provides a cross-modal feature-level fusion target detection method in an autonomous driving scenario, which specifically includes the following processing steps:
[0043] Step 1: Acquire visible light images and infrared images of the target detection area in real time;
[0044] In a specific implementation, a visible light image and an infrared image of a target detection area are collected in real time based on a vehicle-mounted image acquisition device, wherein the vehicle-mounted image acquisition device integrates a visible light image acquisition device and an infrared image acquisition device.
[0045] Step 2: Based on the obtained visible light image and infrared image, the pre-trained cross-modal feature-level fusion target detection model is used to obtain the target detection result;
[0046] In the specific implementation, Figure 2 As shown, the cross-modal feature-level fusion target detection model specifically performs the following processing: for the input visible light image and infrared image, the multi-scale features of the visible light image and the multi-scale features of the infrared image are extracted respectively; based on the multi-scale features of the visible light image and the multi-scale features of the infrared image, a pre-built two-stream dynamic convolution fusion module is used to obtain the fusion features of the visible light image and the infrared image; based on the fusion features, a pre-built detection head is used to obtain the target detection result;
[0047] Among them, the dual-stream dynamic convolution fusion module specifically performs the following processing process: based on the multi-scale features of the visible light image and the multi-scale features of the infrared image, a modal disparity extraction network is used to obtain a disparity attention mask of the two modal features; based on the disparity attention mask and the feature attention mask obtained based on a preset number of initial convolution kernels, a visible light dynamic convolution kernel and an infrared light dynamic convolution kernel are obtained; the visible light dynamic convolution kernel is convolved with the multi-scale features of the infrared image, and the infrared light dynamic convolution kernel is convolved with the multi-scale features of the visible light image to obtain visible light features and infrared light features containing modal-specific characteristics and inter-modal differences; the obtained visible light features and infrared light features are complementary fused to obtain fused features.
[0048] First of all, it should be noted that in actual application, the cross-modal feature-level fusion target detection model needs to be trained in advance. In the specific implementation, the training process is as follows:
[0049] Several representative data sets are obtained. In this embodiment, public data sets FLIR, DEVAI, and LLVIP data sets are used. A training set, a test set, and a validation set are respectively constructed based on the public data sets.
[0050] Based on the constructed training set, the cross-modal feature-level fusion target detection model is trained. When the preset requirements are met, the training is terminated to obtain a trained model.
[0051] In a specific implementation, the multi-scale features of the visible light image and the multi-scale features of the infrared image are extracted by using the CSPDarknet53 structure in YOLOv5.
[0052] Specifically, the preprocessed infrared-visible light image is input into the CSPDarknet53 feature extraction network in YOLOv5 to obtain multi-scale features. The feature extraction network includes two branches, extracting visible light images and infrared features; wherein the visible light image and infrared branch network structures are the same.
[0053] In this embodiment, the CSPDarknet53 sequentially extracts feature maps of five scales by using convolution kernels of different scales, including feature maps of the first scale, the second scale, the third scale, the fourth scale, and the fifth scale.
[0054] In the specific implementation, by adding several dual stream dynamic convolution fusion (DSDCF: Dual Stream Dynamic Convolution Fusion) modules on the basis of the original YOLOv5 backbone network (i.e. CSDarknet53), specifically, Figure 2 shown.
[0055] Through CSDarknet53, feature maps of visible light images and infrared images at different scales (i.e., the first to fifth scales) are extracted respectively. For the feature maps of visible light images and infrared images at each scale, the feature maps of the two modalities are fused through the two-stream dynamic convolution fusion module to obtain fused features; at the same time, the fused features at the current scale are added element by element with the input features of the next scale as the input of the next two-stream dynamic convolution fusion module. For example: for the fusion of the feature maps of visible light images and infrared images at the second scale, specifically: by adding the fused features at the first scale to the feature maps of visible light images and infrared images at the second scale element by element, as the input of the two-stream dynamic convolution fusion module corresponding to the second scale, the third, fourth and fifth scales are similar and will not be repeated here.
[0056] In the specific implementation, the output of the YOLOv5 backbone network and the multi-scale feature map are used as the input of the dynamic convolution module by introducing a dual-stream dynamic convolution fusion module. In the dynamic convolution module, according to the similar or different features across modalities, the original infrared and visible light features are extracted and dynamically convolved according to the four features of the convolution kernel, and the infrared and visible light features are processed at the same time to obtain the difference features. Then, the difference features and the features after dynamic convolution are multiplied, and the features are fused and spliced to form the final output information, completing the target detection process;
[0057] Specifically, Figure 3 As shown, the dual-stream dynamic convolution fusion module specifically performs the following processing:
[0058] (1) Generation of disparity attention mask: The method of the present invention further studies the difference between visible light and infrared features and introduces a feature difference mask α d This enables the convolution kernel of the present invention to better explore the differences between modalities and promote the extraction of complementary features. The scheme described in this embodiment uses a visible light and infrared feature input pair (E v ,E ir ), firstly, a modal disparity extraction network is used to generate a disparity attention mask Expressed as:
[0059]
[0060] in, σ represents the sigmoid function, h A represents a network consisting of an MLP and a global maximum pooling layer, h M Represents a network consisting of an MLP and a global average pooling layer. The MLP is a network consisting of a 1×1 convolution and a ReLU activation and another 1×1 convolution.
[0061] (2) Calculation of dynamic convolution kernel, given an input feature An image pair, where H, W, C in Respectively represent the height, width, number of channel inputs, and V convolution kernels K1, K2, ..., K V However, existing dynamic convolution methods construct four feature attention masks from feature x, including the spatial attention mask Input channel attention mask Output channel attention mask Convolution kernel attention mask Its expression is as follows:
[0062] a t ∈φ t(x)
[0063] Among them, t∈{s,c,f,ω},φ represents the global average pooling layer (GAP), the fully connected layer (FC), the ReLU activation function and the head branch, k is the convolution kernel size, C out is the number of channel outputs. Then, the mask is applied to V convolution kernels to obtain an aggregated dynamic convolution kernel K, which is calculated as follows:
[0064]
[0065] in, Indicates a t The vth element in . The obtained dynamic convolution kernel The feature x can be dynamically adapted by exploring different attention dimensions, thereby helping the model to extract enhanced features for target detection. The head branch is a branch structure corresponding to different masks in the DSDCF module. V is the number of convolution kernels, which can be set according to actual needs. In this embodiment, it is set to 4.
[0066] (3) Dynamic interconvolution process: the scheme described in this embodiment converts the modality-related dynamic convolution kernel K m Cross-multiply with another modal feature, that is, convolve the infrared feature with the convolution kernel generated by visible light, and obtain K m The dynamic convolution kernel is as follows:
[0067]
[0068] Then K m The dynamic convolution kernel is convolved with the visible light feature and the infrared feature respectively to obtain enhanced features:
[0069] F ir =E ir *K v
[0070] F v =E v *K ir
[0071] Among them, * represents the convolution operation.
[0072] (4) Feature complementary fusion: the present invention combines two convolution results F containing modality-specific characteristics and inter-modality differences ir and F v Complementary fusion to ensure fusion result F f It can accurately guide subsequent testing. The specific formula is as follows:
[0073]
[0074] in, is the probability after the softmax operation.
[0075] Compared with generating dynamic convolution kernels from connected multimodal features, the scheme described in this embodiment enhances the single-modal features (F ir ,F v ) Use the generated visible light dynamic convolution kernel K v and infrared dynamic convolution kernel K ir as the original data. This approach maximizes the preservation of unique features in different modal input data, allowing the kernel to focus on modality-specific features. In addition, the introduction of disparity attention masks makes the convolution kernels more sensitive to inter-modality differences, allowing them to selectively extract different features for complementary fusion.
[0076] In a specific implementation, the cross-modal feature-level fusion target detection model is trained by using a supervised learning method and a loss function that introduces a kernel information divergence loss; wherein the kernel information divergence loss is expressed as:
[0077]
[0078] Among them, K v ,K ir They are respectively the visible light dynamic convolution kernel and the infrared light dynamic convolution kernel, D KL (K v ,K ir ) represents K v and K ir The KL divergence of .
[0079] The loss function is specifically expressed as:
[0080]
[0081] in, is the kernel information divergence loss, as well as They are the bounding box regression loss, target classification loss, and target confidence loss in YOLOv5, respectively.
[0082] Specifically, in order to effectively guide the generation of dynamic convolution kernels through DSDCF, this embodiment uses supervised learning and introduces a new loss function, namely "kernel information divergence loss" (KL Loss). v and K ir , respectively, from different modalities, the method described in this embodiment aims to propose a kernel function that captures the common significant features between the two modalities, while also identifying the unique significant features in each modality. This enables accurate identification of complementary features in bimodal data, specifically including:
[0083] (1) KL divergence calculation: In this embodiment, the Kullback-Leibler (KL) divergence is used to measure K v and K ir The KL divergence evaluates the similarity between two distributions and is close to zero when they are similar and close to 1 when they are dissimilar. By using this divergence measure, namely K v and K ir D KL (·), which aims to minimize the distribution difference so that both kernels can effectively capture the common features between the two modalities, as shown in the following formula:
[0084]
[0085] The learned dynamic network is required to capture both the common and significant features between the modalities and to focus on the difference features between the modalities. This function can guide the convolution kernel to guide the features towards the difference.
[0086] (2) Loss value calculation: The two-stream dynamic convolution fusion module proposed in this embodiment operates on different feature scales to generate multi-scale fused features, which are input into the prediction head to generate the final detection result. For model training, this embodiment uses a composite loss function consisting of two main parts: object detection loss (including bounding box regression loss) Object classification loss and target confidence loss ) and KL loss in DSDCF The final loss function is expressed as:
[0087]
[0088] Here, λ is the balancing weight.
[0089] In a specific implementation, the target detection result is obtained by inputting the obtained fusion features into a pre-built detection head.
[0090] In this embodiment, CSPDarknet53 in YOLOv5 is used as the backbone of feature extraction, which provides five representative features. The following is a performance verification comparison of the method described in this embodiment, and the detection accuracy is verified on the FLIR dataset, as follows:
[0091] Table 1 Performance comparison of CMDCNet with different components on the FLIR dataset
[0092]
[0093]
[0094] This experiment explores the In this embodiment, four settings are designed in the experiment, as shown in Table 1. The first row shows DSDCF and The feature extraction branch directly provides two single-modal features to the feature fusion module and does not apply supervised learning to guide the fusion of features. The second line shows that the DSDCF in the cross-modal feature-level fusion target detection model (hereinafter referred to as CMDCNet for ease of understanding) described in this embodiment is replaced by several convolutional layers, and the third line shows The convolution and concatenation in are replaced by concatenation. From Table 1, the following conclusions can be drawn:
[0095] (1) Use Improved performance, mAP increased from 34.7% to 37.9%. This result guides unimodal feature learning by considering the commonalities and differences between modalities, demonstrating effectiveness.
[0096] (2) When not in use In the case of , using DSDCF significantly improves the performance, with mAP increased by 2.8%. This is because DSDCF can deeply explore the correlation between different modalities, alleviate the shortcomings of single-modal features, and thus the refined feature pairs can better capture significant target clues. At the same time, it can also well preserve the differences in modalities and better extract bimodal features.
[0097] (3) The integration of the two achieves the best performance with a mAP value of 40.5%, proving the effectiveness of CMDCNet. As mentioned earlier, CMDCNet introduces DSDCF to guide the generation of bimodal features, which provides promising performance for visible-infrared object detection.
[0098] Table 2 Performance comparison of CMDCNet and several advanced methods on the FLIR dataset
[0099] Models Dataset Type <![CDATA[mAP 50 ]]> YOLO v5 Visible 65.5% YOLO v5 Infrared 73.7% YOLO Fusion Visible+Infrared 76.6% CFT Visible+Infrared 78.7% MFPT Visible+Infrared 80.0% LRAF-Net Visible+Infrared 80.5% ICAFusion Visible+Infrared 79.2% CMDCNet Visible+Infrared 80.1%
[0100] Table 3 Performance comparison of CMDCNet and several advanced methods on VEDAI dataset
[0101]
[0102]
[0103] Table 4 Performance comparison of CMDCNet and several advanced methods on the LLVIP dataset
[0104] Models Dataset Type <![CDATA[mAP 50 ]]> YOLO v5 visible 90.8% YOLO v5 Infrared 94.6% YOLO Fusion Visible+Infrared 95.4% CFT Visible+Infrared 95.4% UA-CMDet Visible+Infrared 96.3% LRAF-Net Visible+Infrared 97.9% RSDet Visible+Infrared 95.8% CMDCNet Visible+Infrared 96.8%
[0105] As shown in Table 2, Table 3, and Table 4, the performance comparison results on the FLIR, VEDAI, and LLVIP datasets are given:
[0106] (1) It can be seen that the performance of the method described in this embodiment on a single modality is worse than that on a dual modality, indicating the effectiveness of the multimodal feature fusion strategy.
[0107] (2) When the method described in this embodiment compares CMDCNet with various multimodal advanced methods, the method described in this embodiment has good performance.
[0108] (3) Among all the multimodal detection methods, the CMDCNet described in this embodiment achieves better performance.
[0109] Table 5 Performance comparison of CMDCNet and several advanced methods on the FLIR dataset
[0110] Models Dataset Type Testing time(ms / img) UA-CMDet Visible+Infrared 370.4 CFT Visible+Infrared 91.2 ProbEn3 Visible+Infrared 846.9 MBNet Visible+Infrared 70.9 CMDCNet Visible+Infrared 55.6
[0111] As shown in Table 5, the test time comparison of several advanced methods on the FLIR dataset is given:
[0112] It can be seen that when CMDCNet is compared with other multimodal advanced methods, the test time of our method has a clear advantage, which is about 21.58% faster than the fastest MBNet.
[0113] In summary, the above good results are due to two reasons: first, CMDCNet uses DSDCF to improve the quality of visual features and infrared features. This module uses the unique features of each modality data to learn adaptive kernels for feature fusion; second, CMDCNet is designed The effectiveness of bimodal features is significantly improved by guiding cross-modal feature fusion in a supervised learning manner.
[0114] like Figure 4 As shown, a schematic diagram of the target detection result of the method described in this embodiment is shown.
[0115] In one or more embodiments, corresponding to the above-mentioned cross-modal feature-level fusion target detection method in an autonomous driving scenario, a cross-modal feature-level fusion target detection system in an autonomous driving scenario is proposed, including:
[0116] A data acquisition module, which is used to acquire visible light images and infrared images of the target detection area in real time;
[0117] The target detection module is used to obtain the target detection result based on the obtained visible light image and infrared image by using the pre-trained cross-modal feature-level fusion target detection model; the cross-modal feature-level fusion target detection model specifically performs the following processing process: for the input visible light image and infrared image, respectively extract the multi-scale features of the visible light image and the multi-scale features of the infrared image; based on the multi-scale features of the visible light image and the multi-scale features of the infrared image, use the pre-built two-stream dynamic convolution fusion module to obtain the fusion features of the visible light image and the infrared image; based on the fusion features, use the pre-built detection head to obtain the target detection result; wherein, the two-stream dynamic convolution The fusion module specifically performs the following processing procedures: based on the multi-scale features of the visible light image and the multi-scale features of the infrared image, a modal disparity extraction network is used to obtain a disparity attention mask of the two modal features; based on the disparity attention mask and a feature attention mask obtained based on a preset number of initial convolution kernels, a visible light dynamic convolution kernel and an infrared light dynamic convolution kernel are obtained; the visible light dynamic convolution kernel is convolved with the multi-scale features of the infrared image, and the infrared light dynamic convolution kernel is convolved with the multi-scale features of the visible light image to obtain visible light features and infrared light features containing modal-specific characteristics and inter-modal differences; the obtained visible light features and infrared light features are complementary fused to obtain fused features.
[0118] It can be understood that the system is consistent with the method in the above embodiment, and its specific details are described in detail in the method embodiment, so they are not repeated here.
[0119] In further embodiments, there is also provided:
[0120] An electronic device includes a memory and a processor and computer instructions stored in the memory and executed on the processor, wherein the computer instructions, when executed by the processor, perform the method described in the above embodiment. For the sake of brevity, no further description is given here.
[0121] It should be understood that in this embodiment, the processor may be a central processing unit CPU, and the processor may also be other general-purpose processors, digital signal processors DSP, application-specific integrated circuits ASIC, off-the-shelf programmable gate arrays FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0122] The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.
[0123] A computer-readable storage medium is used to store computer instructions. When the computer instructions are executed by a processor, the method described in the above embodiment is completed.
[0124] The method in the above embodiment can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
[0125] Those skilled in the art will appreciate that the units, i.e., algorithm steps, of the various examples described in the present embodiment can be implemented in electronic hardware or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this disclosure.
[0126] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A cross-modal feature-level fusion target detection method in an autonomous driving scenario, characterized in that: include: Acquire visible light images and infrared images of the target detection area in real time; Based on the obtained visible light images and infrared images, the target detection results are obtained using the pre-trained cross-modal feature-level fusion target detection model; The cross-modal feature-level fusion target detection model specifically performs the following processing: for the input visible light image and infrared image, respectively extract the multi-scale features of the visible light image and the multi-scale features of the infrared image; based on the multi-scale features of the visible light image and the multi-scale features of the infrared image, use a pre-built two-stream dynamic convolution fusion module to obtain the fusion features of the visible light image and the infrared image; based on the fusion features, use a pre-built detection head to obtain the target detection result; The dual-stream dynamic convolution fusion module specifically performs the following processing: based on the multi-scale features of the visible light image and the multi-scale features of the infrared image, a modal disparity extraction network is used to obtain a disparity attention mask of the two modal features; based on the disparity attention mask and a feature attention mask obtained based on a preset number of initial convolution kernels, a visible light dynamic convolution kernel and an infrared light dynamic convolution kernel are obtained; the visible light dynamic convolution kernel is convolved with the multi-scale features of the infrared image, and the infrared light dynamic convolution kernel is convolved with the multi-scale features of the visible light image to obtain visible light features and infrared light features containing modality-specific characteristics and inter-modality differences; The obtained visible light features and infrared light features are complementarily fused to obtain fused features.
2. The cross-modal feature-level fusion target detection method in an autonomous driving scenario according to claim 1, characterized in that: Based on the disparity attention mask and the feature attention mask obtained based on several preset initial convolution kernels, a visible light dynamic convolution kernel and an infrared light dynamic convolution kernel are obtained, which are specifically expressed as the sum of the feature attention mask, the convolution kernel and the disparity attention mask corresponding to different convolution kernels.
3. The cross-modal feature-level fusion target detection method in an autonomous driving scenario according to claim 1, characterized in that: The obtained visible light features and infrared light features are complementary and fused, which is specifically expressed as follows: Among them, F ir ,F v They are infrared light features and visible light features that contain modal-specific characteristics and inter-modal differences, respectively. [F ir ,F v ] is F ir and F v The splicing features of represents the output probability of the softmax operation, F f For fusion features.
4. The cross-modal feature-level fusion target detection method in an autonomous driving scenario according to claim 1, characterized in that: In the training of the cross-modal feature-level fusion target detection model, a supervised learning method is adopted, and a loss function that introduces kernel information divergence loss is adopted; wherein the kernel information divergence loss is expressed as: Among them, K v ,K ir They are respectively the visible light dynamic convolution kernel and the infrared light dynamic convolution kernel, D KL (K v ,K ir ) represents K v and K ir The KL divergence of .
5. The cross-modal feature-level fusion target detection method in an autonomous driving scenario according to claim 4, characterized in that: The loss function is specifically expressed as: in, is the kernel information divergence loss, as well as They are the bounding box regression loss, target classification loss, and target confidence loss in YOLOv5, respectively.
6. The cross-modal feature-level fusion target detection method in an autonomous driving scenario according to claim 1, characterized in that: The disparity attention mask is generated by using a modal disparity extraction network. The generation of the disparity attention mask is specifically expressed as follows: in, σ represents the sigmoid function, h A represents a network consisting of an MLP and a global maximum pooling layer, h M Represents a network consisting of an MLP and a global average pooling layer. The MLP is a network consisting of a 1×1 convolution, a ReLU activation, and another 1×1 convolution.
7. The cross-modal feature-level fusion target detection method in an autonomous driving scenario according to claim 1, characterized in that: The multi-scale features of the visible light image and the multi-scale features of the infrared image are extracted by using CSPDarknet in YOLOv5.
8. A cross-modal feature-level fusion target detection system in an autonomous driving scenario, characterized in that: include: A data acquisition module, which is used to acquire visible light images and infrared images of the target detection area in real time; The target detection module is used to obtain the target detection result based on the obtained visible light image and infrared image by using the pre-trained cross-modal feature-level fusion target detection model; the cross-modal feature-level fusion target detection model specifically performs the following processing process: for the input visible light image and infrared image, the multi-scale features of the visible light image and the multi-scale features of the infrared image are extracted respectively; based on the multi-scale features of the visible light image and the multi-scale features of the infrared image, the fusion features of the visible light image and the infrared image are obtained by using the pre-built two-stream dynamic convolution fusion module; based on the fusion features, the target detection is obtained by using the pre-built detection head Results; wherein the dual-stream dynamic convolution fusion module specifically performs the following processing process: based on the multi-scale features of the visible light image and the multi-scale features of the infrared image, a modal disparity extraction network is used to obtain a disparity attention mask of the two modal features; based on the disparity attention mask and a feature attention mask obtained based on a preset number of initial convolution kernels, a visible light dynamic convolution kernel and an infrared light dynamic convolution kernel are obtained; the visible light dynamic convolution kernel is convolved with the multi-scale features of the infrared image, and the infrared light dynamic convolution kernel is convolved with the multi-scale features of the visible light image to obtain visible light features and infrared light features containing modality-specific characteristics and inter-modality differences; The obtained visible light features and infrared light features are complementarily fused to obtain fused features.
9. An electronic device comprising a memory, a processor and a computer program stored and running on the memory, characterized in that: When the processor executes the program, it implements a cross-modal feature-level fusion target detection method in an autonomous driving scenario as described in any one of claims 1-7.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a cross-modal feature-level fusion target detection method in an autonomous driving scenario is implemented as described in any one of claims 1 to 7.
Citation Information
Cited By
Mask enhancement-based pixel-level multispectral fusion small target detection method and system
CN119810601A
Method and device for detecting power transmission line fault through line fault detection model
CN120876400A
