Infrared and visible light image fusion method based on deep feature correlation matrix

By constructing a deep feature correlation matrix and guiding segmentation tasks, the problem of semantic differences in infrared and visible image fusion is solved, high-quality fusion image generation is achieved, and fusion performance is improved.

CN118552823BActive Publication Date: 2024-09-24DALIAN UNIV OF TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411025648.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-09-24
Estimated Expiration
2044-07-30

AI Technical Summary

Technical Problem

Under joint high-level task conditions, during the fusion process of infrared and visible images, there are semantic differences in the features of different levels of tasks, making it difficult to make semantic features and fusion features naturally compatible, resulting in a decrease in the quality of the fused image.

Method used

By constructing a deep feature correlation matrix, the association between different levels of feature maps is established, weighted operations are performed to eliminate semantic differences, and under the guidance of the segmentation task, the target semantic information of the fused features is enhanced.

Benefits of technology

It effectively eliminates the semantic differences between tasks at different levels, improves the fusion performance of infrared and visible images, ensures that the fused image contains rich target semantic information, and generates high-quality fusion results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552823B
    Figure CN118552823B
Patent Text Reader

Abstract

The present invention belongs to the technical field of image information processing, and discloses a method for fusion of infrared and visible light images based on a deep feature correlation matrix. The fusion framework corresponding to the infrared and visible light image fusion method is mainly composed of a self-reconstruction source image task, a cross-reconstruction source image task and a segmentation task; wherein the source images are infrared images and visible images; the self-reconstruction source image task and the cross-reconstruction source image task are used to constrain the fusion framework to obtain fusion and reconstruction capabilities; the cross-reconstruction source image task references dynamic interactive fusion; the segmentation task is used to provide target semantic features embedded in the dynamic interactive fusion process, and help the fusion features provide target semantic information; a cross-task interaction module is proposed to construct a deep feature correlation matrix to solve the semantic difference problem existing in the feature fusion process of two different levels of tasks. The present invention enables the fusion features to contain rich target semantic information, and thus reconstruct a high-quality fused image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of image information processing and relates to a method for fusing infrared and visible light images based on a deep feature correlation matrix. Background Art

[0002] At present, the technologies related to the present invention include three aspects: the first is an image fusion algorithm based on deep learning; the second is an image fusion algorithm for joint multi-tasks.

[0003] Image fusion algorithms based on deep learning can be divided into two categories: one method is to extract features by constructing a deep hierarchical network structure, design fusion strategies, and reconstruct fused images. Zhao et al. proposed a correlation-driven dual-branch feature decomposition fusion network in the paper "Correlation-Driven Dual-Branch Feature Decomposition for Multi-Modality Image Fusion" to solve the problem of cross-modal feature modeling and decomposition. Tang et al. proposed a progressive image fusion network based on illumination awareness in the paper "A progressive infrared and visible image fusion network based on illumination aware" to adaptively maintain the intensity distribution of the salient target and retain the texture information in the background. Another method is to use adversarial learning to map the spatial distribution of different modalities to the same distribution, producing attractive fusion results. Ma et al. proposed a dual-discriminator conditional generative adversarial network in the paper "A Dual-Discriminator Conditional Generative Adversarial Network for Multi-Resolution Image Fusion", which forces the fused image to retain the thermal radiation of the infrared image and the texture detail information of the visible light by discriminating the content and structural differences between the fused image and the source image. Rao et al. proposed an infrared and visible image fusion algorithm based on a lightweight Transformer module and adversarial learning in the paper "An Infrared and Visible Image Fusion Approach Based on Transformer and Generative Adversarial Network". The algorithm combines Transformer and CNN to refine the fusion features and designs adversarial learning to improve the fusion effect.

[0004] In recent years, joint multi-task image fusion algorithms have become increasingly popular, which mainly use the semantic information of high-level visual tasks to enhance the performance of the fusion network. Joint multi-task methods can be divided into two categories: cascade learning methods and interactive learning methods. Cascade learning methods mainly train the fusion network by taking high-level tasks as constraints, thereby prompting the fusion network to produce fusion results that are beneficial to downstream tasks. For example, Sun et al. in the paper "A detection-driven infrared and visible image fusion network" obtain target-related information through the target detection network, and then use the target location as prior information to guide the fusion network. Liu et al. in the paper "Target-awaredual adversarial learning and a multi-scenariomulti-modality benchmark to fuse infrared and visible for object detection" proposed an algorithm combining adversarial learning and detection networks, and designed a two-layer optimization formula to strengthen the connection between fusion and segmentation tasks. In addition, interactive learning methods focus on designing hierarchical interactions between feature maps at different levels to eliminate the gap between fusion tasks and high-level tasks. For example, Zhao et al. proposed a meta-feature embedding method in the paper "Infrared and Visible Image Fusion via Meta-Feature Embedding from Object Detection", which generates object semantic features based on the fusion network capabilities, making the semantic features naturally compatible with the fusion features. Wang et al. proposed a multi-interactive feature learning architecture in the paper "Multi-interactive Feature Learning and a Full-time Multi-modality Benchmark for Image Fusion and Segmentation", which uses the correlation between the two tasks to improve the performance of the two tasks.

[0005] However, in practical applications, it is often challenging to provide target semantic information for the fused image by the joint segmentation task. The reason is that there are semantic differences between the features of the two different levels of tasks, and it is difficult to make the semantic features and the fused features naturally compatible. To address this problem, a potential solution is to eliminate the semantic differences by constructing a correlation matrix between tasks at different levels, so as to achieve mutual promotion between the fusion task and the segmentation task. The infrared and visible image fusion method based on the deep feature correlation matrix proposed by us uses the correlation matrix to weight each position information of the input feature map, thereby strengthening the potential connection between the fusion and semantic features. Simply aggregating or adding the features of two different levels is likely to cause the loss of important information and fail to emphasize valuable information. In this process, in order to achieve the compatibility of features of tasks at different levels, we construct a correlation matrix to eliminate the semantic differences between tasks at different levels, provide target semantic information for the fused features, and provide texture detail information for the semantic features. Summary of the invention

[0006] Aiming at the problem of high-quality fusion tasks under the condition of joint high-level tasks, a deep feature correlation matrix-based infrared and visible image fusion framework is proposed. Specifically, we establish the association between feature maps of different levels by constructing a correlation matrix, so that the network can exchange semantic difference information within a single task and between different tasks. We first calculate the correlation matrix, infer the correlation of each pixel position, and then multiply it by the feature map itself to complete the weighting operation. By using the correlation matrix to weight the information of each position of the input feature map, the potential connection between fusion and semantic features is strengthened. Obviously, by increasing the weight value of the position with strong semantic correlation and reducing the weight value of the position with weak semantic correlation, the semantic difference between fusion and semantic features can be effectively eliminated. In this way, the performance of infrared and visible image fusion is improved by guiding the fusion features to obtain the target semantic features according to the segmentation task.

[0007] The technical solution of the present invention:

[0008] A deep feature correlation matrix infrared and visible light image fusion method, the corresponding fusion framework of the infrared and visible light image fusion method mainly consists of a self-reconstruction source image task, a cross-reconstruction source image task and a segmentation task; wherein the source images are infrared images and visible images; the self-reconstruction source image task and the cross-reconstruction source image task are used to constrain the fusion framework to obtain fusion and reconstruction capabilities; the cross-reconstruction source image task references dynamic interactive fusion; the segmentation task is used to provide target semantic features embedded in the dynamic interactive fusion process to help the fusion features provide target semantic information; a cross-task interaction module is proposed to construct a deep feature correlation matrix to solve the semantic difference problem existing in the feature fusion process of two different level tasks, the steps are as follows:

[0009] (1) Self-reconstruction of source images

[0010] The self-reconstructed source image task is mainly composed of an infrared encoder, a visible encoder and a self-reconstructed decoder; the infrared encoder and the visible encoder are both three-layer, each of which is composed of convolution + residual blocks; the self-reconstructed decoder has three layers, each of which is composed of convolution + residual blocks + upsampling; there are jump connections between the infrared encoder, the visible encoder and the self-reconstructed decoder; the self-reconstructed source image task uses the source image as the true value for training in a self-supervised manner to ensure that the infrared features extracted by the infrared encoder contain the thermal radiation information of the infrared image and the visible features extracted by the visible encoder contain the detailed texture information of the visible image; therefore, the loss function for training the self-reconstructed source image is It is expressed as:

[0011] (1)

[0012] in, , ; represents the MSE loss of the self-reconstructed source image and the source image; represents the structural consistency loss between the self-reconstructed source image and the source image; represents the structural consistency index; Indicates infrared or visible images; represents a self-reconstructed infrared or visible image;

[0013] (2) Cross-reconstruction of source images

[0014] The cross-reconstruction source image task mainly consists of dynamic interactive fusion and cross-reconstruction decoder. In the dynamic interactive fusion process, the target semantic information provided by the segmentation task is embedded to enable the framework to fuse richer information. Dynamic interactive fusion includes feature fusion module, feature conversion module, cross-task interaction module, task query module and feature decoupling module.

[0015] In the dynamic interaction process, first, the feature fusion module composed of 4 3×3 convolutional layers, 1 1×1 convolutional layer and connection operation fuses the infrared features and visible features to generate shallow fusion features; then, the feature conversion module composed of 1 3×3 convolutional layer and 1 1×1 convolutional layer converts the shallow fusion features into shallow target semantic features, so that they can be transferred to the segmentation task; the shallow fusion features focus on the pixel-level relationship in the image pair, and the shallow target semantic features focus on the target semantic information; due to the different task levels, there are semantic differences between the shallow fusion features and the shallow target semantic features; therefore, a cross-task interaction module composed of query, key and value is constructed, and the semantic differences between the shallow fusion features and the shallow target semantic features are eliminated by calculating the deep correlation matrix, while enhancing the information interaction between different tasks, and finally generating deep fusion features and deep target semantic features; specifically, the shallow fusion features and the shallow target semantic features are flattened and converted into vectors respectively, and then connected to generate a mixed vector; the mixed vector and the learnable weight matrix are calculated to generate a query vector Q, a key vector K and a value vector V, and the calculation process is expressed as follows:

[0016] (2)

[0017] in, Represents the initial mixed vector after the shallow fusion feature and the shallow target semantic feature are connected; , and represents the learnable weight matrix;

[0018] Subsequently, the scaled dot product of Q and K is calculated to generate a deep correlation matrix, which is normalized to [0, 1.0] using the softmax function; then, the deep correlation matrix is ​​multiplied by V; the process is expressed as follows:

[0019] (3)

[0020] in, Represents the mixed vector generated after the initial mixed vector interacts with the deep correlation matrix; represents the scaling factor; finally, according to Generate deep fusion features and deep target semantic features.

[0021] Next, a task query module consisting of query, key and value is constructed, which acts on the cross-reconstruction source image task and the segmentation task respectively, so as to further refine the information of the corresponding tasks from the deep fusion features and deep target semantic features; specifically, for the cross-reconstruction source image task, the corresponding query is the shallow fusion feature, the key and value are the deep fusion features, and the fusion query feature containing the target semantics is calculated by the cross-attention method; for the segmentation task, the corresponding query is the shallow target semantic feature, the key and value are the deep target semantic feature, and the target semantic query feature containing pixel-level fine-grained information is calculated by the cross-attention method;

[0022] Finally, the feature decoupling module composed of the block "1×1 convolution layer + PReLU" and the block "1×1 convolution layer + Sigmoid" decouples the fused query feature and the single modal feature to generate another modal feature. The implementation process is: decouple the fused query feature and the visible feature to generate a decoupled infrared feature, and decouple the fused query feature and the infrared feature to generate a decoupled visible feature; the cross-reconstruction decoder consists of three layers, each of which consists of convolution + residual block + upsampling; after dynamic interactive fusion, the decoupled infrared feature or visible feature is input into the cross-reconstruction decoder to construct an infrared image or a visible image; there is a jump connection between the dynamic interactive fusion strategy and the cross-reconstruction decoder; the training process of the entire cross-reconstruction source image is expressed as follows:

[0023] Therefore, the loss function for training the cross-reconstructed source image is It is expressed as:

[0024] (4)

[0025] in, , ; Represents the MSE loss of the cross-reconstructed image and the source image; Represents the structural consistency loss of the cross-reconstructed image and the source image; represents the structural consistency index; Indicates infrared image or visible image; represents a cross-reconstructed infrared or visible image;

[0026] (3) Task segmentation

[0027] In the segmentation task, the task query module generates refined deep semantic features and inputs them into the segmentation head. The segmentation head has three layers. The first two layers are composed of convolution + residual block + upsampling, and the last layer is the classification layer, which is composed of 1×1 convolution. In order to provide more target semantic information to the fusion feature, the loss function of the training segmentation task is It is expressed as:

[0028] (5)

[0029] in, , Indicates CE loss; , represents Dice loss; and Represent the category and total number of pixels respectively; Indicates Pixels belong to The probability of the class, is the corresponding semantic label;

[0030] In summary, the total loss of the training framework for the fusion of infrared and visible images is:

[0031] (6)

[0032] Finally, the above three tasks are combined to force the fusion framework to have the ability to adaptively fuse the source image features. More importantly, the decoders of the self-reconstructed source image and the cross-reconstructed source image share parameters. After being trained in this reconstruction method, the decoder will have a strong generalization ability to generate fused images. During the test, the refined fusion features are directly input into the decoder to obtain a high-quality fused image.

[0033] Beneficial effects of the present invention: The present invention establishes a correlation matrix to realize the infrared and visible image fusion method of the joint segmentation task, which effectively eliminates the semantic differences between tasks at different levels. At the same time, the present invention overcomes the disadvantage that the fused image has no true value, such as using the source image as a true value supervised fusion framework, which easily causes the problem of losing important features during the extraction and fusion process. With the assistance of the semantic information provided by the segmentation task, the present invention can make the fused features contain rich target semantic information, thereby reconstructing a high-quality fused image. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 This is the overall training flow chart of the network.

[0035] Figure 2 Schematic diagram of the cross-task interaction module.

[0036] Figure 3 A schematic diagram of the correlation matrix. DETAILED DESCRIPTION

[0037] The specific implementation of the present invention is further described below in conjunction with the accompanying drawings and technical solutions.

[0038] Figure 1This is the overall training flow chart of the network. In the process of self-reconstructing the source image, the infrared and visible light encoders ( and ) Extract features from infrared and visible images, and then input the infrared and visible features into the self-reconstruction decoder Complete the source image reconstruction. In the process of cross-reconstruction of the source image, the extracted infrared and visible features are first fused to obtain shallow fusion features, and then the feature conversion module is used to The shallow fusion features are converted into shallow target semantic features. At this point, the shallow target semantic features are mapped to the segmentation task flow. Then, the shallow fusion features and shallow target semantic features are sent to Figure 2 The cross-task interaction module ( ). Each element in the mixed vector is mapped into a query vector, a key vector and a value vector through formula (2). The query vector is used to calculate the correlation between the current pixel and other pixels. The key vector is used to store the feature information of each pixel. The value vector contains the relevant information that needs attention. Then, the correlation matrix is ​​constructed to infer the weights of each pixel position, and then multiplied by the value vector, thereby suppressing information with weak correlation and enhancing information with strong correlation to eliminate the semantic differences between task levels, that is, formula (3). Figure 3 As shown in Figure 2, when calculating the correlation matrix, we can naturally infer four matrix blocks: the correlation within the fusion task, the correlation within the segmentation task, and the correlation between the two tasks. ) refine the features specific to the segmentation and cross-reconstruction tasks. Finally, the refined deep fusion features are decoupled from the other modality features according to the modality features, and then these features are fed into the cross-reconstruction decoder In the cross-reconstruction source image, and Shared parameters. In addition, the refined deep target semantic features are fed into the segmentation head to produce segmentation results. During the entire training process, the loss used in the self-reconstructed source image task is , which is formula (1). The loss used in the cross-reconstruction source image task is , which is formula (4). The loss used in the segmentation task is , which is Formula (5). In general, the fusion framework is effectively supervised by the self-reconstruction and cross-reconstruction source image tasks, so that the fusion framework has the ability to adaptively fuse the important features of the source image and reconstruct the fused image. More importantly, the deep correlation matrix is ​​constructed to embed the target semantic features provided by the segmentation task into the cross-reconstruction source image process, which effectively helps the fusion features to further supplement the target semantic information. In the test phase, the fusion features can be directly input into the decoder to reconstruct a fused image with prominent targets and clear textures.

Claims

1. A method for fusion of infrared and visible light images based on deep feature correlation matrix, characterized in that: The fusion framework corresponding to the infrared and visible light image fusion method is mainly composed of self-reconstruction source image task, cross-reconstruction source image task and segmentation task; the source images are infrared images and visible images; the self-reconstruction source image task and the cross-reconstruction source image task are used to constrain the fusion framework to obtain fusion and reconstruction capabilities; the cross-reconstruction source image task refers to dynamic interactive fusion; the segmentation task is used to provide target semantic features embedded in the dynamic interactive fusion process to help the fusion features provide target semantic information; a cross-task interaction module is proposed to construct a deep feature correlation matrix to solve the semantic difference problem existing in the feature fusion process of two different levels of tasks. The steps are as follows: (1) Self-reconstruction of source images The self-reconstructed source image task is mainly composed of an infrared encoder, a visible encoder and a self-reconstructed decoder; the infrared encoder and the visible encoder are both three-layer, each of which is composed of convolution + residual blocks; the self-reconstructed decoder has three layers, each of which is composed of convolution + residual blocks + upsampling; there are jump connections between the infrared encoder, the visible encoder and the self-reconstructed decoder; the self-reconstructed source image task uses the source image as the true value for training in a self-supervised manner to ensure that the infrared features extracted by the infrared encoder contain the thermal radiation information of the infrared image and the visible features extracted by the visible encoder contain the detailed texture information of the visible image; therefore, the loss function for training the self-reconstructed source image is It is expressed as: (1) in, , ; represents the MSE loss of the self-reconstructed source image and the source image; represents the structural consistency loss between the self-reconstructed source image and the source image; represents the structural consistency index; Indicates infrared image or visible image; represents a self-reconstructed infrared image or a visible image; (2) Cross-reconstruction of source images The cross-reconstruction source image task mainly consists of dynamic interactive fusion and cross-reconstruction decoder; the target semantic information provided by the segmentation task is embedded in the dynamic interactive fusion process; dynamic interactive fusion includes feature fusion module, feature conversion module, cross-task interaction module, task query module and feature decoupling module; In the dynamic interactive fusion process, first, the feature fusion module composed of 4 3×3 convolutional layers, 1 1×1 convolutional layer and connection operation fuses the infrared features and visible features to generate shallow fusion features; then, the feature conversion module composed of 1 3×3 convolutional layer and 1 1×1 convolutional layer converts the shallow fusion features into shallow target semantic features, so that they can be transferred to the segmentation task; the shallow fusion features focus on the pixel-level relationship in the image pair, and the shallow target semantic features focus on the target semantic information; due to the different task levels, there are semantic differences between the shallow fusion features and the shallow target semantic features; therefore, a cross-task interaction module composed of query, key and value is constructed, and the semantic differences between the shallow fusion features and the shallow target semantic features are eliminated by calculating the deep correlation matrix, while enhancing the information interaction between different tasks, and finally generating deep fusion features and deep target semantic features; specifically, the shallow fusion features and the shallow target semantic features are flattened and converted into vectors respectively, and then connected to generate a mixed vector; the mixed vector and the learnable weight matrix are calculated to generate a query vector Q, a key vector K and a value vector V, and the calculation process is expressed as follows: (2) in, Represents the initial mixed vector after the shallow fusion feature and the shallow target semantic feature are connected; , and represents the learnable weight matrix; Subsequently, the scaled dot product of Q and K is calculated to generate a deep correlation matrix, which is normalized to [0, 1.0] using the softmax function; then, the deep correlation matrix is ​​multiplied by V; the process is expressed as follows: (3) in, Represents the mixed vector generated after the initial mixed vector interacts with the deep correlation matrix; represents the scaling factor; finally, according to Generate deep fusion features and deep target semantic features; Next, a task query module consisting of query, key and value is constructed, which acts on the cross-reconstruction source image task and the segmentation task respectively, so as to further refine the information of the corresponding tasks from the deep fusion features and deep target semantic features; specifically, for the cross-reconstruction source image task, the corresponding query is the shallow fusion feature, the key and value are the deep fusion features, and the fusion query feature containing the target semantics is calculated by the cross-attention method; for the segmentation task, the corresponding query is the shallow target semantic feature, the key and value are the deep target semantic feature, and the target semantic query feature containing pixel-level fine-grained information is calculated by the cross-attention method; Finally, the feature decoupling module composed of the block "1×1 convolution layer + PReLU" and the block "1×1 convolution layer + Sigmoid" decouples the fused query feature and the single modality feature to generate another modality feature. The implementation process is: decouple the fused query feature and the visible feature to generate a decoupled infrared feature, and decouple the fused query feature and the infrared feature to generate a decoupled visible feature; the cross-reconstruction decoder consists of three layers, each of which consists of convolution + residual block + upsampling; after dynamic interactive fusion, the decoupled infrared feature or visible feature is input into the cross-reconstruction decoder to construct an infrared image or a visible image; there is a jump connection between the dynamic interactive fusion strategy and the cross-reconstruction decoder; the training process of the entire cross-reconstruction source image is expressed as follows: Therefore, the loss function for training the cross-reconstructed source image is It is expressed as: (4) in, , ; Represents the MSE loss of the cross-reconstructed image and the source image; Represents the structural consistency loss of the cross-reconstructed image and the source image; represents the structural consistency index; Indicates an infrared image or a visible image; represents a cross-reconstructed infrared image or a visible image; (3) Task segmentation In the segmentation task, the task query module generates refined deep semantic features and inputs them into the segmentation head. The segmentation head has three layers. The first two layers are composed of convolution + residual block + upsampling, and the last layer is the classification layer, which is composed of 1×1 convolution. In order to provide more target semantic information to the fusion feature, the loss function of the training segmentation task is It is expressed as: (5) in, , Indicates CE loss; , represents Dice loss; and Represents the category and total number of pixels respectively; Indicates Pixels belong to The probability of the class, is the corresponding semantic label; In summary, the total loss of the training framework for the fusion of infrared and visible images is: (6)。

Citation Information

Patent Citations

  • Multiple decision maps based infrared and visible image fusion

    AU2020100178A4

  • Image fusion method based on RFN-Nest

    CN114742739A

  • Infrared light and visible light image fusion system based on diverted attention Transform

    CN116503703A