Mutual promotion method of unregistered infrared and visible image fusion and vehicle target detection

Through the mutual promotion method of unregistered infrared and visible light image fusion and vehicle target detection, the Transformer block and the relational interactive representation learning module are used to achieve image alignment and feature fusion, which solves the problem of target detection performance degradation caused by image modality differences in the existing technology. Improved fusion image quality and target detection accuracy.

CN118279868BActive Publication Date: 2024-09-24YUNNAN COMM INVESTMENT & CONSTR GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410341680.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-25
Publication Date
2024-09-24
Estimated Expiration
2044-03-25

AI Technical Summary

Technical Problem

Existing infrared and visible light image fusion methods assume that the source images have been registered, resulting in reduced target detection performance in extreme environments and occlusion situations, and image modality differences make strict automatic alignment difficult, affecting the quality of the fusion process.

Method used

A mutually reinforcing method of unregistered infrared and visible light image fusion and vehicle target detection is proposed. Features are extracted through the Transformer block. The relational interactive representation learning module reduces the difference in image style domains. The offset prediction network realizes image alignment and inputs the aligned features into the model. The state information sensing fusion block reconstructs the image, and is finally input to the target detection network for detection.

Benefits of technology

It effectively solves the problem of source image misalignment, improves the performance of image fusion and target detection, improves the quality of fused images and target detection accuracy, and makes full use of the information in infrared and visible light images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000
    Figure 00000000_0000
Patent Text Reader

Abstract

The present invention relates to a mutual promotion method for unaligned infrared-visible light image fusion and vehicle target detection, and belongs to the field of image fusion technology and target detection. The present invention comprises: splicing the infrared image features and visible light image features after reducing the domain difference in the channel dimension, and inputting the spliced ​​features into an offset prediction network composed of a series of convolutions to obtain the offset corresponding to each pixel point position, and applying the offset back to the corresponding pixel point position to obtain the aligned image features; inputting the aligned image features into the modal information perception fusion block to obtain the fusion features, and reconstructing the fused image; inputting the fused image into the target detection network to obtain the target detection result. The present invention improves the accuracy of target detection by fusing images, and the target detection promotes image alignment and the improvement of the visual effect of the fused image through loss back propagation, thereby improving the fusion performance and target detection performance at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The invention relates to a mutual promotion method for unregistered infrared visible light image fusion and vehicle target detection, and belongs to the technical fields of image fusion and target detection. Background Art

[0002] Due to the hardware limitations of imaging, a single type of sensor or sensor setting is usually unable to fully represent the imaging scene. Visible images contain rich texture details, but are easily affected by extreme environments and occlusions, resulting in the loss of targets in the scene. In contrast, infrared sensors can capture the thermal radiation information emitted by objects for imaging, effectively highlighting important targets such as pedestrians and vehicles, but lack a detailed description of the scene. In order to accurately and effectively represent the scene, image fusion is committed to integrating the complementary features of multiple source views into the same scene, thereby providing high-quality images for downstream high-level tasks. In recent years, although significant progress has been made in the fusion of infrared and visible light images, existing methods usually assume that the source images have been strictly registered or aligned before image fusion. However, the difference in the modalities of infrared and visible light images makes it difficult to achieve strict automatic alignment, which affects the quality of the subsequent fusion process. The target detection task aims to identify and mark all targets in the image, and has a wide range of applications in intelligent security, military and autonomous driving. Under the loss optimization of target detection, the network will pay more attention to spatial information and semantic information. The features contain more spatial semantic perception, which can reconstruct a higher quality fused image. Inspired by this idea, a mutual promotion method of unregistered infrared and visible light image fusion and vehicle target detection is proposed. This method improves the performance of image fusion and target detection at the same time through the mutual promotion of multiple tasks of image alignment, fusion and target detection. Summary of the invention

[0003] In order to improve the performance of infrared-visible light image fusion and target detection, the present invention utilizes the idea that infrared-visible light image fusion and target detection promote each other, and proposes a mutual promotion method of unregistered infrared-visible light image fusion and vehicle target detection.

[0004] The technical solution of the present invention is: a method for mutually promoting unregistered infrared and visible light image fusion and vehicle target detection, and the specific steps of the method are as follows:

[0005] Step 1: Obtain a training dataset of unregistered infrared and visible light image fusion;

[0006] Step 2: Label the target location and category of the infrared and visible light image dataset;

[0007] Step 3: Input the infrared image and visible light image into the Transformer block for feature extraction to obtain infrared image features and visible light image features;

[0008] Step 4: Input the infrared image features and visible light image features obtained by each layer of Transformer into the relational interaction representation learning module to obtain infrared image features and visible light image features that reduce the difference in image style domain;

[0009] Step 5: The infrared image features and visible light image features after reducing the domain difference are spliced ​​in the channel dimension, and the spliced ​​features are input into an offset prediction network consisting of a series of convolutions to obtain the offset corresponding to each pixel position, and the offset is applied back to the corresponding pixel position to obtain the aligned image features;

[0010] Step 6: Input the aligned image features into the modal information perception fusion block to obtain fusion features and reconstruct the fused image;

[0011] Step 7: Input the fused image into the target detection network to obtain the target detection result;

[0012] Step 8: Calculate the alignment loss, fusion loss and target detection loss, and optimize the network parameters.

[0013] Furthermore, in step 1, each pair of registered infrared-visible light images consists of an infrared image and a visible light image, and the size of the images is 256 × 256. First, the training data set for unregistered infrared-visible light image fusion is offset constructed. The offset construction method is specifically to perform random rigid transformation and elastic transformation on the data (assuming that the infrared image has an offset and the visible light image is the standard).

[0014] Furthermore, in step 2, the specific operation of marking the target position and category of the infrared and visible light image dataset is as follows:

[0015] Use the visual image calibration tool labelimg to annotate the target location and category in the image and save it as an XML file in PASCAL VOC format.

[0016] Furthermore, in step 3, feature extraction is performed on the infrared image and the visible light image, and this process is implemented as follows:

[0017] The infrared image I ir and visible light image I vis Input N Transformer blocks T for feature extraction and obtain infrared light features F ir and visible light feature F vis , as follows:

[0018]

[0019]

[0020] Each Transformer block T consists of a multi-head attention module and a multi-layer perceptron module, and a LayerNorm layer is applied before each Transformer block and a residual connection is applied after each Transformer block. Using Transformer blocks to extract features allows the encoder to pay more attention to the mining of long-range relationships and better pay attention to the dependencies between pixels.

[0021] Furthermore, in step 4, the infrared light features obtained by each Transformer block are and visible light characteristics Input correspondence interactive representation learning module to reduce the domain difference of source image style, facilitate subsequent offset prediction, and obtain infrared image features with reduced domain difference and visible light image features

[0022]

[0023]

[0024] in, for and The result after 1×1 convolution is: is the regularization term, and T is the transposition operation.

[0025] Furthermore, in step 5, the infrared image features after reducing the domain difference and visible light image features Splicing is performed in the channel dimension, and the spliced ​​features are input into a series of convolutions to form an offset prediction network to obtain the offset corresponding to each pixel position, and the offset is applied back to the corresponding pixel position to obtain the aligned image features. And Input decoder D align To get the aligned image

[0026]

[0027]

[0028]

[0029]

[0030] Among them, Concat represents the concatenation operation on the channel dimension, P represents the offset prediction network of the U-Net class, and p alignrepresents the predicted offset, A represents the feature re-aggregation process, that is, the offset is applied back to the corresponding pixel position, and D align It is a decoder, which consists of a convolutional layer with a kernel size of 3×3 and a stride of 1, and a ReLU activation layer.

[0031] Furthermore, in step 6, the aligned image features And the visible light features obtained by the Nth Transformer block The fusion feature F is obtained in the input modality information perception fusion block fuse , and reconstruct the fused image I fuse :

[0032]

[0033] I fuse =D fuse (F fuse )

[0034] Among them, MIP is the modal information perception block, which consists of a convolution layer with a convolution kernel size of 3×3 and a step size of 1, and a Tanh activation layer. fuse It is a decoder, which consists of a convolutional layer with a kernel size of 3×3 and a stride of 1, and a ReLU activation layer.

[0035] Furthermore, in step 7, the fused image I fuse Input the target detection network O and output the location information TP of the target in the image:

[0036] TP=O(I fuse )

[0037] Among them, O is a target detection network of U-net structure. Specifically, the fused image is first input into several convolutional layers for feature extraction, and then the features are flattened and input into the linear mapping layer to predict the location information of the target.

[0038] Furthermore, in step 8, the alignment loss, fusion loss and target detection loss are calculated to optimize the network parameters. The alignment loss, fusion loss and target detection loss are calculated to optimize the network parameters.

[0039] Alignment loss It can be defined as:

[0040]

[0041] represents the aligned image, I ir represents an infrared image;

[0042] Fusion Loss Loss of texture detail and content loss Composition can be defined as:

[0043]

[0044] Loss of texture detail Defined as:

[0045]

[0046] Among them, ||·||1 represents the l1 norm; Represents the gradient map extracted by the Sobel operator, I fuse represents the fused image, I vis represents a visible light image;

[0047] Content loss Defined as:

[0048]

[0049] Object Detection Loss Defined as:

[0050]

[0051] Among them, x represents the x-axis coordinate prediction result; Indicates the label of the x-axis coordinate; y indicates the predicted result of the y-axis coordinate; The label representing the y-axis coordinate.

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

[0053] 1. The present invention uses Transformer blocks to extract features from infrared images and visible light images, and better models the long-range relationship between image pixels;

[0054] 2. The present invention uses a relational interaction representation learning module to reduce the style differences of source images and facilitate subsequent offset prediction;

[0055] 3. The present invention uses pixel relationship perception and re-aggregation to achieve feature-level alignment of offset images, which cleverly solves the problem of misalignment of source images;

[0056] 4. The present invention uses fused images for target detection, making full use of the rich information from infrared images and visible light images, further improving the accuracy of target detection;

[0057] 5. The present invention uses the gradient back propagation of target detection loss to update the target detection network, alignment network and image fusion network, and cooperates with the relationship interaction representation learning module, pixel relationship perception and re-aggregation module and modality information perception fusion block to promote the network to achieve better alignment and fusion features with richer spatial information and semantic information, so as to improve the quality of fusion results; BRIEF DESCRIPTION OF THE DRAWINGS

[0058] The present invention will be described in detail below in conjunction with the accompanying drawings and detailed embodiments. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other accompanying drawings can be obtained based on these accompanying drawings without creative labor.

[0059] Figure 1 It is a schematic diagram of the process structure of the present invention;

[0060] Figure 2 The overall network structure diagram of the present invention;

[0061] Figure 3 A schematic diagram of the mutual promotion of image alignment, fusion and target detection of the present invention;

[0062] Figure 4 A schematic diagram of a relationship interaction representation learning module of the present invention;

[0063] Figure 5 A schematic diagram of an offset prediction network of the present invention;

[0064] Figure 6 Schematic diagram of the target detection network of the present invention; DETAILED DESCRIPTION

[0065] Example 1: Figure 1-Figure 6 As shown, the mutual promotion method of unregistered infrared visible light image fusion and vehicle target detection, the specific steps of the method are as follows:

[0066] Step 1: Obtain the training dataset for unregistered infrared-visible image fusion. Each pair of registered infrared-visible image pairs consists of an infrared image and a visible light image, and the size of the images is 256×256. First, the training dataset for unregistered infrared-visible image fusion is offset constructed. The specific offset construction method is to perform random rigid transformation and elastic transformation on the data (assuming that the infrared image has an offset and the visible light image is the standard).

[0067] Step 2: Label the target location and category of the infrared and visible light image dataset. Use the visual image calibration tool labelimg to label the target location and category in the image and save it as an XML file in PASCAL VOC format.

[0068] Step 3: Convert the infrared image I ir and visible light image I vis Input N Transformer blocks T for feature extraction and obtain infrared light features F ir and visible light feature F vis , as follows:

[0069]

[0070]

[0071] Each Transformer block T consists of a multi-head attention module and a multi-layer perceptron module, and a LayerNorm layer is applied before each Transformer block and a residual connection is applied after each Transformer block. Using Transformer blocks to extract features allows the encoder to pay more attention to the mining of long-range relationships and better pay attention to the dependencies between pixels.

[0072] Step 4: The infrared light features obtained by each Transformer block and visible light characteristics Input correspondence interactive representation learning module to reduce the domain difference of source image style, facilitate subsequent offset prediction, and obtain infrared image features with reduced domain difference and visible light image features

[0073]

[0074]

[0075] in, for and The result after 1×1 convolution is: is the regularization term, and T is the transposition operation.

[0076] Step 5: Reduce the infrared image features after domain difference and visible light image features Splicing is performed in the channel dimension, and the spliced ​​features are input into a series of convolutions to form an offset prediction network to obtain the offset corresponding to each pixel position, and the offset is applied back to the corresponding pixel position to obtain the aligned image features. And Input decoder D align To get the aligned image

[0077]

[0078]

[0079]

[0080]

[0081] Among them, Concat represents the concatenation operation on the channel dimension, P represents the offset prediction network of the U-Net class, and p align represents the predicted offset, A represents the feature re-aggregation process, that is, the offset is applied back to the corresponding pixel position, and D align It is a decoder, which consists of a convolutional layer with a kernel size of 3×3 and a stride of 1, and a ReLU activation layer.

[0082] Step 6: Align the image features And the visible light features obtained by the Nth Transformer block The fusion feature F is obtained in the input modality information perception fusion block fuse , and reconstruct the fused image I fuse :

[0083]

[0084] I fuse =D fuse (F fuse )

[0085] Among them, MIP is the modal information perception block, which consists of a convolution layer with a convolution kernel size of 3×3 and a step size of 1, and a Tanh activation layer. fuse It is a decoder, which consists of a convolutional layer with a kernel size of 3×3 and a stride of 1, and a ReLU activation layer.

[0086] Step 7: Fuse the fused image I fuse Input the target detection network O and output the location information TP of the target in the image:

[0087] TP=O(I fuse )

[0088] Among them, O is a target detection network of U-net structure. Specifically, the fused image is first input into several convolutional layers for feature extraction, and then the features are flattened and input into the linear mapping layer to predict the location information of the target.

[0089] Step 8: Calculate the alignment loss, fusion loss and target detection loss, and optimize the network parameters.

[0090] Alignment loss It can be defined as:

[0091]

[0092] Fusion Loss Loss of texture detail and content loss Composition can be defined as:

[0093]

[0094] Loss of texture detail Defined as:

[0095]

[0096] Among them, ||·||1 represents the l1 norm; Represents the gradient map extracted by the Sobel operator.

[0097] Content loss Defined as:

[0098]

[0099] Object Detection Loss Defined as:

[0100]

[0101] Among them, x represents the x-axis coordinate prediction result; Indicates the label of the x-axis coordinate; y indicates the predicted result of the y-axis coordinate; The label representing the y-axis coordinate.

[0102] The corresponding model of the method of the present invention is trained on the training set of the M3FD data set, and the result is tested on the validation set. The image pairs of the M3FD data set are all composed of infrared images and visible light images. The training set in M3FD consists of 4200 infrared-visible light image pairs; the test set consists of 300 infrared-visible light image pairs. The algorithm of the present invention is developed under the Pytorch1.12.1 framework and trained on a single NVIDIA GTX3090 graphics card (video memory 24G). During training, we use the Adam optimizer to optimize the parameters of the model. In this process, the batch size is set to 4. The "warm up" learning strategy is used to realize the dynamic adjustment of the learning rate, and the "cosine decay" learning rate decay strategy is adopted. The initial learning rate is 0.001, and a total of 500 rounds of training are performed.

[0103] The specific implementation modes of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above implementation modes, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.

Claims

1. A mutual promotion method for unregistered infrared and visible light image fusion and vehicle target detection, characterized in that: The specific steps of the method are as follows: Step 1: Obtain a training dataset of unregistered infrared and visible light image fusion; Step 2: Label the target location and category of the infrared and visible light image dataset; Step 3: Input the infrared image and visible light image into the Transformer block for feature extraction to obtain infrared image features and visible light image features; Step 4: Input the infrared image features and visible light image features obtained by each layer of Transformer into the relational interaction representation learning module to obtain infrared image features and visible light image features that reduce the difference in image style domain; Step 5: The infrared image features and visible light image features after reducing the domain difference are spliced ​​in the channel dimension, and the spliced ​​features are input into an offset prediction network consisting of a series of convolutions to obtain the offset corresponding to each pixel position, and the offset is applied back to the corresponding pixel position to obtain the aligned image features; Step 6: Input the aligned image features into the modal information perception fusion block to obtain fusion features and reconstruct the fused image; Step 7: Input the fused image into the target detection network to obtain the target detection result; Step 8: Calculate alignment loss, fusion loss and target detection loss, and optimize network parameters; In step 4, the infrared light features obtained by each Transformer block are and visible light characteristics Input correspondence interactive representation learning module to reduce the domain difference of source image style, facilitate subsequent offset prediction, and obtain infrared image features with reduced domain difference and visible light image features in, for and The result after 1×1 convolution is: is the regularization term, T is the transposition operation; In step 5, the infrared image features after reducing the domain difference and visible light image features Splicing is performed in the channel dimension, and the spliced ​​features are input into a series of convolutions to form an offset prediction network to obtain the offset corresponding to each pixel position, and the offset is applied back to the corresponding pixel position to obtain the aligned image features. And Input decoder D align To get the aligned image Among them, Concat represents the concatenation operation on the channel dimension, P represents the offset prediction network composed of a series of convolutions, and p align represents the predicted offset, A represents the feature re-aggregation process, that is, the offset is applied back to the corresponding pixel position, and D align It is a decoder, which consists of a convolutional layer with a kernel size of 3×3 and a stride of 1, and a ReLU activation layer; In step 6, the aligned image features And the visible light features obtained by the Nth Transformer block The fusion feature F is obtained in the input modality information perception fusion block fuse , and reconstruct the fused image I fuse : I fuse =D fuse (F fuse ) Among them, MIP is the modal information perception block, which consists of a convolution layer with a convolution kernel size of 3×3 and a step size of 1, and a Tanh activation layer. fuse It is a decoder, which consists of a convolutional layer with a kernel size of 3×3 and a stride of 1, and a ReLU activation layer; In step 7, the fused image I fuse Input the target detection network O and output the location information TP of the target in the image: TP=O(I fuse ) Among them, O is a U-Net-like target detection network. Specifically, the fused image is first input into several convolutional layers for feature extraction, and then the features are flattened and input into the linear mapping layer to predict the location information of the target; In step 8, the alignment loss, fusion loss and target detection loss are calculated to optimize the network parameters; Alignment loss l a Defined as: represents the aligned image, I ir Indicates infrared image; Fusion loss l f Due to the loss of texture detail texture and content loss l content Composition, defined as: l f =l texture +l content Texture detail loss texture Defined as: Among them, ||·||1 represents the l1 norm; I represents the gradient map extracted by Sobel operator; fuse represents the fused image, I vis represents a visible light image; Content loss content Defined as: l content =||I fuse -I ir ||1+||I fuse -I vis ||1 Object detection loss l od Defined as: Among them, x represents the x-axis coordinate prediction result; Indicates the label of the x-axis coordinate; y indicates the predicted result of the y-axis coordinate; The label representing the y-axis coordinate.

2. The method for mutually promoting unregistered infrared-visible light image fusion and vehicle target detection according to claim 1 is characterized in that: In the step 1, each infrared-visible light image pair consists of an infrared image and a visible light image, and the size of the images is 256×256. First, the training data set for the fusion of unregistered infrared-visible light images is offset constructed, and the offset construction method is specifically to perform random rigid transformation and elastic transformation on the data.

3. The method for mutually promoting unregistered infrared-visible light image fusion and vehicle target detection according to claim 1 is characterized in that: In step 2, the specific operation is as follows: use the visual image calibration tool labelimg to mark the target position and category in the image, and save it as an XML file in PASCAL VOC format.

4. The method for mutually promoting unregistered infrared-visible light image fusion and vehicle target detection according to claim 1, characterized in that: In step 3, the specific operation of feature extraction is as follows: The infrared image I ir and visible light image I vis Input N Transformer blocks T for feature extraction and obtain infrared light features and visible light characteristics As shown below: Among them, each Transformer block T is composed of a multi-head attention module and a multi-layer perceptron module, and a LayerNorm layer is applied before each Transformer block and a residual connection is applied after each Transformer block. The Transformer block is used to extract features so that the encoder pays more attention to the mining of long-range relationships and pays better attention to the dependencies between pixels.