Unsupervised hyperspectral image fusion method, system, storage medium and product

Through the unsupervised hyperspectral image fusion method, the U-shaped codec network and the deep prior guidance network are used, combined with the attention module, to solve the balance problem of spatial resolution and computational efficiency in hyperspectral image fusion, and achieve efficient image processing. Detail recovery and adaptability.

CN118411290BActive Publication Date: 2024-09-17QUANZHOU INST OF EQUIP MFG +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410850367.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-17
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

Existing hyperspectral image fusion methods are difficult to balance between spatial resolution and computational efficiency. Traditional methods are computationally intensive and sensitive to parameters. Deep learning methods rely on a large amount of training data and have limited generalization performance, making it difficult to adapt to data from different sensors.

Method used

An unsupervised hyperspectral image fusion method is used to extract the pyramid semantic features of multispectral images through a U-shaped codec network. Combined with lightweight spatial and channel attention modules, the depth prior is used to guide the network for high-resolution hyperspectral images. Reconstruct and optimize the reconstruction results through a preset loss function.

Benefits of technology

It achieves unsupervised image fusion, reduces computational costs and parameter quantities, improves image detail recovery capabilities, is suitable for processing different sensor data, and extends to other image restoration and generation problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118411290B
    Figure CN118411290B
Patent Text Reader

Abstract

The present invention relates to the field of image processing, and in particular to an unsupervised hyperspectral image fusion method, system, storage medium and product, comprising the following steps: S1: obtaining a super-resolution reconstructed low-resolution hyperspectral image #imgabs0#, and obtaining a high-resolution multispectral image #imgabs1# as a guide image; S2: inputting the high-resolution multispectral image #imgabs2# into a codec network, and extracting the pyramid semantic features of the high-resolution multispectral image #imgabs3# as a depth prior; S3: using random coding as the input of a depth prior guide network, and gradually completing the reconstruction of the high-resolution hyperspectral image under the guidance of the pyramid semantic feature prior, so as to obtain a better reconstruction result; S4: inputting the reconstruction result into two convolutional layers with predefined weights, and outputting the best reconstruction result. The present invention adopts unsupervised deep learning, does not require training data, and converts the reconstruction problem into a conditional image generation problem.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing, and in particular to an unsupervised hyperspectral image fusion method, system, storage medium and product. Background Art

[0002] Hyperspectral images (HSI) usually use spectral reflectance or radiation information at different wavelengths to obtain images of target objects. They capture spectral information within dozens or even hundreds of continuous wavelengths at each pixel, and have rich and detailed spectral information. By analyzing these spectral data, the tiny features of the target object at different wavelengths, such as material composition, surface structure, etc., can be extracted. Therefore, they are widely used in agriculture, environmental monitoring, geological exploration, national defense and security, etc. However, due to the physical limitations of imaging sensors, there is a trade-off between spectral resolution and spatial resolution. Energy collection in hyperspectral sensors requires a larger observation field of view to obtain an acceptable signal-to-noise ratio. Therefore, the spatial resolution of hyperspectral images is usually low, which affects the visual perception effect, reduces the accuracy of spectral interpretation, and limits the application of hyperspectral images.

[0003] At present, more and more sensors can simultaneously obtain hyperspectral images and high spatial resolution multispectral images (HR-MSI) of the same scene. Using data processing methods to fuse the information of the two can effectively improve the spatial resolution of hyperspectral images, which is also one of the hot directions of hyperspectral image super-resolution reconstruction (HIS-SR). Traditional hyperspectral image fusion methods are mainly divided into pan-sharpening-based methods and model-based fusion methods. The pan-sharpening-based method draws on the early idea of ​​fusing low-resolution multispectral images with high-resolution panchromatic images to obtain high-resolution multispectral images, and applies it to the fusion of hyperspectral and multispectral images. This method has low computational cost and fast speed, but it often produces significant distortion when the spatial resolution between the two is greatly different. The model-based fusion method uses the generative model between high-resolution hyperspectral image (HR-HSI) and low-resolution hyperspectral image (LR-HSI) to perform super-resolution reconstruction by solving the objective function optimization problem. It usually uses the sparse and low-rank characteristics of spectral features to constrain them and achieve good fusion results. However, this type of method requires iterative solution of complex optimization problems, which is computationally intensive, sensitive to parameters, and requires manual design of regularization terms, which to a certain extent limits the application of the method in practice. In recent years, deep learning methods have been widely used in the field of image processing due to their high efficiency and good performance, and have also been applied to the field of hyperspectral image fusion. Generally, deep learning methods use the spatial and spectral features of hyperspectral images to establish deep relationships between high-resolution hyperspectral images HR-HSI and low-resolution hyperspectral images LR-HSI and high-resolution multispectral images HR-MSI to improve the fusion effect of hyperspectral images. Most deep learning methods rely on training data, but due to cost or hardware limitations, it is difficult to collect a large amount of training data, including reference data. Previous studies often use synthetic data for training, which may limit the generalization performance of deep learning networks. In addition, different sensors provide different spectral response functions, and deep learning networks trained with data obtained from a specific sensor may not be able to process new data obtained from a different sensor well. Summary of the invention

[0004] The purpose of the present invention is to provide an unsupervised hyperspectral image fusion method, system, storage medium and product that solve the above-mentioned problems.

[0005] In order to achieve the above object, the present invention adopts such technical solution:

[0006] The unsupervised hyperspectral image fusion method includes the following steps:

[0007] S1: Obtaining low-resolution hyperspectral images for super-resolution reconstruction , obtain high-resolution multispectral images As a guide image, and is the number of spectral channels of the image, , , and , Represents the width and height of the image respectively, , ;

[0008] S2: High-resolution multispectral images Input encoder-decoder network to extract high-resolution multispectral images The pyramid semantic features are used as depth priors;

[0009] S3: Random encoding is used as the input of the deep prior-guided network, and high-resolution hyperspectral images are gradually completed under the guidance of the deep prior of pyramid semantic features. At the same time, two feature-guided modules based on the gated attention mechanism are used to align the features extracted by the encoder network and the decoder network to obtain better reconstruction results.

[0010] S4: Input the reconstruction result obtained in step S3 into two convolutional layers with predefined weights, and use the preset loss function to mine the reconstructed high-resolution hyperspectral image Low-resolution hyperspectral images Spectral similarity between and high-resolution hyperspectral images High-resolution multispectral imaging The spatial similarity between them is used to output the best reconstruction result.

[0011] Preferably, the codec network in step S2 includes an encoder, a decoder, a spatial attention module and a channel attention module;

[0012] The encoder is The first encoding block consists of a convolution kernel of , a convolutional layer with a step size of 1, a batch normalization layer, and a LeakyReLU layer are sequentially composed to extract high-resolution multispectral images The shallow features of The encoding block is composed of two layers of convolution operators, batch normalization layers and LeakyReLU layers in sequence, which are used to further abstract and transform the downsampled image features;

[0013] The decoder is symmetrical with the encoder. The decoder blocks map and transform the abstract features and global features obtained by the encoder, and reconstruct them layer by layer into decoder features of the same size as the original input.

[0014] The decoding block consists of the Pixel Shuffle operator, the convolution operator, and the LeakyReLU activation function in sequence. The PixelShuffle operator is used for pixel rearrangement operations.

[0015] The output features of the spatial attention module for each encoding block of the encoder Perform maximum pooling and average pooling respectively and stack them in the channel dimension; then, The convolution, batch normalization and ReLU layers are used to further mine features and then Convolution is used to reduce the dimension, and after the Sigmoid activation function, a spatial mask is obtained. ; Finally, the space mask Multiply element-wise with the residual to get the spatial attention feature map , the above process is expressed as:

[0016] (1); (2);

[0017] In the formula, Represents the activation operation of the Sigmoid function, represents the operation of the 1×1 convolution operator, express The operation of the convolution operator, Represents the activation operation of the ReLU function, represents batch normalization processing, Indicates channel stacking operation, represents average pooling processing, represents the maximum pooling process, Represents element-wise multiplication.

[0018] The channel attention module is lightweight and optimized by considering each channel and its To capture local cross-channel interactions, we first map the feature maps output by the encoder. Perform feature extraction, the process is expressed as:

[0019] (3);

[0020] In the formula, the input of the channel attention module is Represented as the feature map output by the encoder, Indicates that intermediate features are extracted;

[0021] Model the global spatial information of the reconstructed decoder features and transform the input intermediate features Perform global average pooling on a channel-by-channel basis; the correlation between channels uses a kernel size of The one-dimensional convolution is established, where the kernel size represents the coverage of local cross-channel interactions, that is, how many close neighbors participate in the attention prediction of a channel, The size is proportional to the channel dimension. The channel mask obtained after the Sigmoid function is activated is Multiply the input features element by element and add the result to the feature map output by the encoder. The process is expressed as:

[0022] (4);

[0023] (5);

[0024] In the formula, Represented as the weighted attention feature, Represents the final output of the channel attention module.

[0025] Preferably, the specific operations of step S3 are as follows:

[0026] The deep prior guided network uses random coding as input and gradually completes the high-resolution hyperspectral image under the guidance of the deep prior of pyramid semantic features. The deep prior-guided network includes an encoding feature-guided module, a decoding feature-guided module, and a dual attention module.

[0027] In the deep prior guided network, the encoding feature guided module uses the pyramid semantic feature depth prior obtained by the encoder of the encoder-decoder network as a guide. The convolution, LeakyReLU unit and Sigmoid activation function gate the high-level features to generate conditional weights. Through the gating mechanism, the features derived after bilinear interpolation Bilinear upsampling and batch normalization are weighted;

[0028] The above process is expressed as:

[0029] (6);

[0030] (7);

[0031] (8);

[0032] In the formula, represents the features modulated by the coding feature guidance module, represents the weight of the normalized guided feature of the encoding feature guidance module, represents the upsampled features, represents the activation of the LeakyReLU function, represents the upsampling of the bilinear interpolation function, Represents the input of the encoding feature guidance module, that is, the output feature of the previous dual attention module , Represents the semantic features extracted by the coding block;

[0033] The structure and principle of the decoding feature guidance module are similar to those of the encoding feature guidance module. The difference is that the encoding feature guidance module guides the semantic alignment with the multispectral guidance image features, while the decoding feature guidance module guides similar spatial locality. The transformation of the features of the deep prior guidance network by the decoding feature guidance module is expressed as follows:

[0034] (9);

[0035] (10);

[0036] (11);

[0037] In the formula, represents the features modulated by the decoding feature guidance module using the gating mechanism, represents the weight of the normalized guided feature of the decoding feature guidance module, Represents the input features of the decoding feature guidance module. The input of the first decoding feature guidance module is a random code, and the second and subsequent ones are the outputs of the encoding feature guidance module. , express The transformed intermediate features, Represents the semantic features extracted by the decoding block;

[0038] The dual attention module includes a coordinate channel attention module and a global spatial attention module. The dual attention module generates an attention map along the spectral dimension and the global spatial dimension, multiplies the attention feature with the input feature, performs adaptive feature optimization, and obtains the deep spatial and spectral features of the input data.

[0039] In order to obtain the spectral weights of embedded position information and reduce the loss of position information, the input feature , which is the output of the decoding feature guidance module , after After the convolutional layer of the coordinate channel attention module, the coordinate channel attention module is decomposed into two parallel feature encoding blocks, one at the horizontal coordinate and vertical coordinates Average pooling and standard pooling are performed on the two strings of feature encoding. These two strings of feature encoding can establish long-range dependencies along one spatial direction and maintain accurate position information along another spatial direction. This allows the model to aggregate features along the two spatial directions and generate a pair of direction-aware feature maps. The process is expressed as:

[0040] (12);

[0041] (13);

[0042] In the formula, represents the feature map generated in the horizontal direction, represents the feature map generated in the vertical direction, , Respectively represent the standard deviation pooling of horizontal coordinates and vertical coordinates, , Respectively represent the average pooling of horizontal coordinates and vertical coordinates;

[0043] The feature maps generated in the horizontal and vertical directions are connected, and the shared convolutional layer is used for feature extraction, that is:

[0044] (14);

[0045] In the formula, Represented as the intermediate features extracted by the coordinate channel attention module;

[0046] Finally, the extracted intermediate features Divided into two different parameters along the spatial dimension , , using 1×1 convolutional layers to , Transformed into a feature map with the same channel dimension as the input feature, under the action of the Sigmoid function, the attention weights of the parameter features in these two directions are calculated and weighted to the input features of the coordinate channel attention module to obtain the final coordinate channel attention :

[0047] (15);

[0048] In order to establish the internal dependency of the integrated features, the global spatial attention module is used to model the global spatial background, and the input features are preset. ,right Perform three branch processing, using , and Respectively ,right and Convolution generates two new feature maps , ,Will and Reshape , ,in, represents the number of spatial pixels, The transposed result is Multiply and apply the Softmax function to calculate the weight of each pixel :

[0049] (16);

[0050] At the same time, Perform a convolution and reshape it into , then and Do the matrix multiplication and reshape the result into , thereby obtaining the global spatial attention weight ,Right now:

[0051] (17);

[0052] The output of the CCA module , the output of the GSA module With input features Add up to get the output features of the dual attention module ,Right now:

[0053] (18).

[0054] Preferably, the specific operation of step S4 is as follows: Assume , , They represent HR-HSI, LR-HSI, and HR-MSI respectively, and the loss function is expressed as:

[0055] (19);

[0056] In the formula, represents the reconstructed HR-HSI, is represented as a fuzzy operator, represents the spatial downsampling operation, Represented as a spectral downsampling operation, Expressed as the Frobenius norm, in this loss function, the first part is to explore the spectral similarity between the reconstruction result and LR-HSI, and the second part is to explore the spatial similarity between the reconstruction result and HR-MSI. It is used as a constant scalar to balance the two parts. The operation of the above two parts is implemented as two convolutional layers with predefined weights after the output layer of the encoder-decoder network.

[0057] The convolutional layers that perform blurring and downsampling operators have spatial scaling factors The kernel size and stride are , and the kernel weights are pre-calculated according to the Lanczos2 filter. The spectral downsampling operation is implemented through a convolutional layer with a 1×1 kernel size. The number of input and output channels is C and 3, respectively. The kernel weights are fixed according to the spectral response function of the multispectral camera used, and the output of this layer is strived to obtain the best approximation of HR-MSI. After training, the output of the network is a high-resolution hyperspectral image. This is the required HR-HIS.

[0058] An unsupervised hyperspectral image fusion system comprises a memory and a processor, wherein an executable computer program of the processor is stored in the memory, and the executable computer program can be executed by the processor to implement any of the methods described above.

[0059] A computer storage medium stores a computer program, which implements any of the above methods when executed by a processor.

[0060] A computer product comprises a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above methods.

[0061] By adopting the above-mentioned design scheme, the beneficial effects of the present invention are:

[0062] 1. The present invention adopts unsupervised deep learning, does not require training data, and transforms the reconstruction problem into a conditional image generation problem. It only uses the input image to be fused and the manually constructed deep learning network structure to achieve image reconstruction, which can be extended to other image restoration and generation problems;

[0063] 2. The invention uses a U-type codec network to extract multi-scale pyramid semantic features of multi-spectral guided images, introduces lightweight spatial attention and channel attention modules and embeds them into the jump connection of the U-type codec, which can deeply mine the important parts of the multi-scale features extracted by the encoder and suppress redundant information; and uses the Pixel Shuffle operator for upsampling, which can further enhance image details without introducing additional parameters;

[0064] 3. The present invention proposes a dual attention module consisting of coordinate channel attention and global spatial attention in a deep prior-guided network to simultaneously capture the spatial and spectral information of high-dimensional data. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 It is a framework diagram of the overall network model of the present invention;

[0066] Figure 2 Schematic diagram of the spatial attention module structure of the present invention;

[0067] Figure 3 Schematic diagram of the channel attention module structure of the present invention;

[0068] Figure 4 It is a schematic diagram of the structure of the coding feature guidance module of the present invention;

[0069] Figure 5 It is a schematic diagram of the structure of the decoding feature guidance module of the present invention;

[0070] Figure 6 It is a structural schematic diagram of the dual attention module of the present invention;

[0071] Figure 7 Schematic diagram of the loss function framework concept of the present invention. DETAILED DESCRIPTION

[0072] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only partial embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0073] The unsupervised hyperspectral image fusion method includes the following steps:

[0074] S1: Obtaining low-resolution hyperspectral images for super-resolution reconstruction , obtain high-resolution multispectral images As a guide image, and is the number of spectral channels of the image, ; , and , Represents the width and height of the image respectively, , .

[0075] S2: High-resolution multispectral images Input encoder-decoder (ED) network to extract high-resolution multispectral images The pyramid semantic features are used as depth priors.

[0076] In this embodiment, the encoder-decoder network adopts a structure similar to the U-type network, capturing high-resolution multispectral images through a series of downsampling operations. The pyramid semantic features are used to guide the parameter estimation of the deep prior-guided network.

[0077] The U-type network can compress image information and capture different levels of abstract features through a series of downsampling operations, while using jump connections to make it easier for the network to learn the global and local features of the input image. The codec network proposed in this method adopts a structure similar to the U-type network. The codec network includes an encoder, a decoder, a spatial attention module, and a channel attention module.

[0078] The encoder is The coding blocks consist of , except for the first coding block, the rest The structures of the first coding block are the same. , a convolutional layer with a stride of 1, a batch normalization (BN) layer, and a LeakyReLU layer are sequentially composed to extract high-resolution multispectral images The LeakyReLU layer is a rectified linear unit that maintains linearity in the non-negative part and introduces a small slope in the negative part to avoid the problem of gradient disappearance. In addition, adding a batch normalization layer between the convolution and nonlinear activation functions helps to speed up the convergence of the model. The encoding block is composed of two layers of convolution operators, batch normalization layers and LeakyReLU layers in sequence. The convolution kernel of the first layer of convolution operators is , a convolution layer with a step size of 2, which downsamples the input features to help the model reduce the amount of calculation and filter redundant information; the second convolution operator is the same as the first encoding block, and the convolution kernel is , the step size is 1, and the downsampled image features are further abstracted and transformed. In general, the encoder is responsible for gradually reducing the spatial resolution of the multispectral guidance image to extract its high-level features.

[0079] The decoder is symmetrical to the encoder and is also composed of The decoder consists of a decoding block, which maps and transforms the abstract features and global features obtained by the encoder, and reconstructs the decoder features of the same size as the original input layer by layer. The decoding block consists of the PixelShuffle operator, the convolution operator, and the LeakyReLU activation function in sequence. The Pixel Shuffle operator is a pixel rearrangement operation. Using it as an upsampling of the decoder can not only enhance image details, but also does not require the introduction of additional parameters.

[0080] In order to deeply explore the important parts of the multi-scale features extracted by the encoder and suppress the expression of redundant information, the encoder-decoder network introduces the attention mechanism and embeds it into the jump connection of the U-type encoder-decoder. In order to reduce the number of parameters and computational cost of the model, this method uses the spatial attention mechanism, which can not only effectively extract important information from the input features, but also has the advantage of being lightweight. The structure of the spatial attention module is as follows Figure 2 shown.

[0081] The output features of the spatial attention module for each encoding block of the encoder Perform maximum pooling and average pooling respectively and stack them in the channel dimension; then, The convolution, batch normalization and LeakReLU layers are used to further mine features, which not only improves the expression ability of spatial features but also improves the stability of network training. Convolution is used to reduce the dimension, and after the Sigmoid activation function, a spatial mask is obtained. ; Finally, the space mask Multiply element-wise with the residual to get the spatial attention feature map The above process can be expressed as:

[0082] (1); (2);

[0083] In the formula, Represents the activation operation of the Sigmoid function, represents the operation of the 1×1 convolution operator, express The operation of the convolution operator, Represents the activation operation of the ReLU function, represents batch normalization processing, Indicates channel stacking operation, represents average pooling processing, represents the maximum pooling process, Represents element-wise multiplication.

[0084] In order to filter redundant information and enhance the transmission of semantic information, this method inserts a channel attention module between the encoder and decoder, such as Figure 3 shown.

[0085] Considering the number of parameters and network inference time, the channel attention module is lightweight and optimized. By considering each channel and its The feature maps output by the encoder are first Perform feature extraction, the process is expressed as:

[0086] (3);

[0087] In the formula, the input of the channel attention module is Represented as the feature map output by the encoder, Indicates that intermediate features are extracted.

[0088] Then, the global spatial information of the reconstructed decoder features is modeled, and the input intermediate features Perform channel-by-channel global average pooling; then, the correlation between channels is calculated using a kernel size of The one-dimensional convolution is established, where the kernel size Represents the coverage of local cross-channel interactions, that is, how many close neighbors participate in the attention prediction of a channel. The size of can be determined adaptively and is proportional to the channel dimension. Finally, the channel mask obtained after the Sigmoid function is activated is Multiply the input features element by element and add the result to the feature map output by the encoder. The process is expressed as:

[0089] (4);

[0090] (5);

[0091] In the formula, Represented as the weighted attention feature, Represents the final output of the channel attention module.

[0092] S3: Random encoding is used as the input of the Deep Prior Guided (DPG) network, which gradually completes the high-resolution hyperspectral image under the guidance of the deep prior of the pyramid feature. At the same time, two feature-guided modules based on the gated attention mechanism are used to align the features extracted by the encoder network and the decoder network to ensure better reconstruction results.

[0093] The deep prior guided network uses random coding as input and gradually completes the high-resolution hyperspectral image under the guidance of the deep prior of pyramid semantic features. Reconstruction, such as Figure 1 As shown in Figure 2, the deep prior guidance network mainly consists of three parts: encoding feature guidance block (EFGB), decoding feature guidance block (DFGB), and dual attention block (DAB).

[0094] The encoder-decoder network will lose some information as the network deepens. Although skip connections are added, some texture details are still missing in the image features restored by the decoder. In the deep prior guided network, the encoding feature guidance module uses the pyramid semantic feature depth prior obtained by the encoder of the encoder-decoder network as guidance. The convolution, LeakyReLU unit and Sigmoid activation function of EFGB gate the high-level features to generate conditional weights. Through the gating mechanism, the features derived after bilinear interpolation Bilinear upsampling and batch normalization are weighted. Figure 4 shown.

[0095] The above process is expressed as:

[0096] (6);

[0097] (7);

[0098] (8);

[0099] In the formula, represents the features modulated by the coding feature guidance module, represents the weight of the normalized guided feature of the encoding feature guidance module, represents the upsampled features, represents the activation of the LeakyReLU function, represents the upsampling of the bilinear interpolation function, Represents the input of the encoding feature guidance module (the output feature of the previous dual attention module ), Represents the semantic features extracted by the encoding block.

[0100] The structure and principle of the decoding feature guidance module are similar to those of the encoding feature guidance module, such as Figure 5The difference is that the encoder makes the resolution of the multispectral image smaller and smaller, while the decoder restores the image resolution accordingly, and the image size gradually recovers to the size of the high-resolution image. Part of the input of the decoding feature guidance module is the output of the decoding block, which is to use the output of the decoding block to guide the input random encoding space size to recover to the high-resolution image size step by step, so it guides similar spatial locality.

[0101] The encoding feature guidance module guides the semantic alignment with the multispectral guidance image features, while the decoding feature guidance module guides similar spatial locality. The transformation of the features of the deep prior guidance network by the decoding feature guidance module is expressed as follows:

[0102] (9);

[0103] (10);

[0104] (11);

[0105] In the formula, represents the features modulated by the decoding feature guidance module using the gating mechanism, represents the weight of the normalized guided feature of the decoding feature guidance module, Represents the input features of the decoding feature guidance module (the input of the first decoding feature guidance module is the random code, and the second and subsequent ones are the outputs of the encoding feature guidance module ), express The transformed intermediate features, Represents the semantic features extracted by the decoding block.

[0106] In order to obtain the spatial and spectral information of high-dimensional data, this method proposes a dual attention module, which consists of a coordinate channel attention module (Coordinate-Channel Attention, CCA) and a global spatial attention module (GlobalSpatial Attention, GSA), such as Figure 6 The dual attention module generates attention maps along the spectral dimension and the global spatial dimension, multiplies the attention features with the input features, performs adaptive feature optimization, and obtains the deep spatial and spectral features of the input data.

[0107] In order to obtain the spectral weights of embedded position information and reduce the loss of position information, the input feature (i.e., the output of the decoded features guiding the DFGB module ), after After the convolutional layer of the coordinate channel attention module, the coordinate channel attention module is decomposed into two parallel feature encoding blocks, one at the horizontal coordinate and vertical coordinates Average pooling and standard pooling are performed on the two strings. These two strings of feature encoding can establish long-range dependencies along one spatial direction and maintain accurate position information along another spatial direction. This allows the model to aggregate features along two spatial directions respectively and generate a pair of direction-aware feature maps. The process can be expressed as:

[0108] (12);

[0109] (13);

[0110] In the formula, represents the feature map generated in the horizontal direction, represents the feature map generated in the vertical direction, , Respectively represent the standard deviation pooling of horizontal coordinates and vertical coordinates, , Represents the average pooling of horizontal coordinates and vertical coordinates respectively.

[0111] The feature maps generated in the horizontal and vertical directions are connected, and the shared convolutional layer is used for feature extraction, that is:

[0112] (14);

[0113] In the formula, Represented as the intermediate features extracted by the coordinate channel attention module.

[0114] Finally, the extracted intermediate features Divided into two different parameters along the spatial dimension , , using 1×1 convolutional layers to , Transformed into a feature map with the same channel dimension as the input feature. Under the action of the Sigmoid function, the attention weights of the parameter features in these two directions are calculated and weighted onto the input features of the coordinate channel attention module to obtain the final coordinate channel attention :

[0115] (15);

[0116] In order to establish the internal dependency of the integrated features, the present invention uses the global spatial attention module to model the global spatial background. ,right Perform three branch processing, using , and Respectively ,right and Convolution generates two new feature maps , Then and Reshape , ,in, Represents the number of spatial pixels. The transposed result is Multiply and apply the Softmax function to calculate the weight of each pixel :

[0117] (16);

[0118] At the same time, Perform a convolution and reshape it into . Then, and Do the matrix multiplication and reshape the result into , thereby obtaining the global spatial attention weight ,Right now:

[0119] (17);

[0120] In summary, the output of the CCA module , the output of the GSA module With input features Add up to get the output features of the dual attention module ,Right now:

[0121] (18);

[0122] S4: Input the reconstruction result obtained in step S3 into two convolutional layers with predefined weights, and use the preset loss function to mine the reconstructed high-resolution hyperspectral image Low-resolution hyperspectral images Spectral similarity between and high-resolution hyperspectral images High-resolution multispectral guidance images The spatial similarity between them is used to output the best reconstruction result.

[0123] Assumptions , , They represent HR-HSI, LR-HSI, and HR-MSI respectively, and the loss function can be expressed as:

[0124] (19);

[0125] Where, high-resolution hyperspectral image represents the reconstructed HR-HSI, is represented as a fuzzy operator, represents the spatial downsampling operation, Represented as a spectral downsampling operation, Expressed as Frobenius norm. In this loss function, the first part is to explore the spectral similarity between the reconstruction result and LR-HSI, and the second part is to explore the spatial similarity between the reconstruction result and HR-MSI. This method implements the above two operations as two convolutional layers with predefined weights (not trainable) after the output layer of the encoder-decoder network. The proposed loss function framework is shown in the following figure: Figure 7 shown.

[0126] The convolutional layers that perform blurring and downsampling operators have spatial scaling factors The kernel size and stride are , and the kernel weights are pre-computed according to the Lanczos2 filter. The spectral downsampling operation is implemented by a convolutional layer with a kernel size of 1 × 1, the number of input and output channels are C and 3 respectively, where the kernel weights are fixed according to the spectral response function of the multispectral camera used, and the output of this layer is strived to obtain the best approximation of HR-MSI. Figure 7 As can be seen from the figure, the network proposed in this chapter only uses observable images for learning without any additional training samples. After training, the network outputs high-resolution hyperspectral images. This is the required HR-HSI.

[0127] The present invention also provides a system for implementing the above method.

[0128] An unsupervised hyperspectral image fusion system comprises a memory and a processor, wherein the memory stores an executable computer program of the processor, and the executable computer program can be executed by the processor to implement any of the above methods.

[0129] The present invention also provides a computer storage medium storing data capable of implementing the above method.

[0130] A computer storage medium stores a computer program, which, when executed by a processor, implements any of the methods described above.

[0131] The present invention also provides a computer product capable of implementing the above method.

[0132] A computer product comprises a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above methods.

[0133] In summary, 1. The present invention adopts unsupervised deep learning, does not require training data, transforms the reconstruction problem into a conditional image generation problem, and only uses the input image to be fused and the manually constructed deep learning network structure to achieve image reconstruction, which can be extended to other image restoration and generation problems;

[0134] 2. The invention uses a U-type codec network to extract multi-scale pyramid semantic features of multi-spectral guided images, introduces lightweight spatial attention and channel attention modules and embeds them into the jump connection of the U-type codec, which can deeply mine the important parts of the multi-scale features extracted by the encoder and suppress redundant information; and uses the Pixel Shuffle operator for upsampling, which can further enhance image details without introducing additional parameters;

[0135] 3. The present invention proposes a dual attention module consisting of coordinate channel attention and global spatial attention in a deep prior-guided network to simultaneously capture the spatial and spectral information of high-dimensional data.

[0136] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. Unsupervised hyperspectral image fusion method, characterized by: The steps include: S1: Obtaining low-resolution hyperspectral images for super-resolution reconstruction , obtain high-resolution multispectral images As a guide image, and is the number of spectral channels of the image, , , and , Respectively represent the width and height of the image, , ; S2: High-resolution multispectral images Input encoder-decoder network to extract high-resolution multispectral images The pyramid semantic features are used as depth priors; The encoder-decoder network in step S2 includes an encoder, a decoder, a spatial attention module, and a channel attention module; The encoder is The first encoding block consists of a convolution kernel , a convolutional layer with a step size of 1, a batch normalization layer, and a LeakyReLU layer are sequentially composed to extract high-resolution multispectral images The shallow features and construct context information, the rest The encoding block is composed of two layers of convolution operators, batch normalization layers and LeakyReLU layers in sequence, which are used to further abstract and transform the downsampled image features; The decoder is symmetrical with the encoder. The decoder blocks map and transform the abstract features and global features obtained by the encoder, and reconstruct them layer by layer into decoder features of the same size as the original input. The decoding block consists of the Pixel Shuffle operator, the convolution operator, and the LeakyReLU activation function in sequence. The PixelShuffle operator is used for pixel rearrangement operations. The output features of the spatial attention module for each encoding block of the encoder Perform maximum pooling and average pooling respectively and stack them in the channel dimension; then, The convolution, batch normalization and ReLU layers are used to further mine features and then Convolution is used to reduce the dimension, and after the Sigmoid activation function, a spatial mask is obtained. ; Finally, the space mask Multiply element-wise with the residual to get the spatial attention feature map , the above process is expressed as: ; ; In the formula, Represents the activation operation of the Sigmoid function, represents the operation of the 1×1 convolution operator, express The operation of the convolution operator, Represents the activation operation of the ReLU function, represents batch normalization processing, Indicates channel stacking operation, represents average pooling processing, represents the maximum pooling process, Represents element-wise multiplication; The channel attention module is lightweight and optimized by considering each channel and its To capture local cross-channel interactions, we first map the feature maps output by the encoder. Perform feature extraction, the process is expressed as: (3); In the formula, the input of the channel attention module is Represented as the feature map output by the encoder, Represents the channel attention module of the encoder-decoder network Intermediate features extracted through convolution, batch normalization and activation function; Model the global spatial information of the reconstructed decoder features and transform the input Perform global average pooling on a channel-by-channel basis; the correlation between channels uses a kernel size of The one-dimensional convolution is established, where the kernel size represents the coverage of local cross-channel interactions, that is, how many close neighbors participate in the attention prediction of a channel, The size is proportional to the channel dimension, and the channel mask obtained after the Sigmoid function is activated is Multiply the input features element by element and add the result to the feature map output by the encoder. The process is expressed as: (4); (5); In the formula, Represented as the weighted attention feature, Represents the final output result of the channel attention module; S3: Random encoding is used as the input of the deep prior-guided network, and high-resolution hyperspectral images are gradually completed under the guidance of the deep prior of pyramid semantic features. At the same time, two feature-guided modules based on the gated attention mechanism are used to align the features extracted by the encoder network and the decoder network to obtain the reconstruction result; The specific operation of step S3 is as follows: The deep prior guided network uses random codes as input and gradually completes the high-resolution hyperspectral image under the guidance of the deep prior of pyramid semantic features. The deep prior-guided network includes an encoding feature-guided module, a decoding feature-guided module, and a dual attention module. In the deep prior guided network, the encoding feature guided module uses the pyramid semantic feature depth prior obtained by the encoder of the encoder-decoder network as a guide. The convolution, LeakyReLU unit and Sigmoid activation function gate the high-level features to generate conditional weights. Through the gating mechanism, the features derived after bilinear interpolation Bilinear upsampling and batch normalization are weighted; The above process is expressed as: (6); (7); (8); In the formula, represents the features modulated by the coding feature guidance module, represents the weight of the normalized guided feature of the encoding feature guidance module, represents the upsampled features, represents the activation of the LeakyReLU function, represents the upsampling of the bilinear interpolation function, Represents the input of the encoding feature guidance module, that is, the output feature of the previous dual attention module , Represents the semantic features extracted by the coding block; The structure and principle of the decoding feature guidance module are similar to those of the encoding feature guidance module. The difference is that the encoding feature guidance module guides the semantic alignment with the multispectral guidance image features, while the decoding feature guidance module guides similar spatial locality. The transformation of the features of the deep prior guidance network by the decoding feature guidance module is expressed as follows: (9); (10); (11); In the formula, represents the features modulated by the decoding feature guidance module using the gating mechanism, represents the weight of the normalized guided feature of the decoding feature guidance module, Represents the input features of the decoding feature guidance module. The input of the first decoding feature guidance module is a random code, and the second and subsequent ones are the outputs of the encoding feature guidance module. , express The transformed intermediate features, Represents the semantic features extracted by the decoding block; The dual attention module includes a coordinate channel attention module and a global spatial attention module. The dual attention module generates an attention map along the spectral dimension and the global spatial dimension, multiplies the attention feature with the input feature, performs adaptive feature optimization, and obtains the deep spatial and spectral features of the input data. In order to obtain the spectral weights of embedded position information and reduce the loss of position information, the input feature , which is the output of the decoding feature guidance module , after After the convolutional layer of the coordinate channel attention module, the coordinate channel attention module is decomposed into two parallel feature encoding blocks, one at the horizontal coordinate and vertical coordinates Average pooling and standard pooling are performed on the two strings of feature encoding. These two strings of feature encoding can establish long-range dependencies along one spatial direction and maintain accurate position information along another spatial direction. This allows the model to aggregate features along the two spatial directions and generate a pair of direction-aware feature maps. The process is expressed as: (12); (13); In the formula, represents the feature map generated in the horizontal direction, represents the feature map generated in the vertical direction, , Respectively represent the standard deviation pooling of horizontal coordinates and vertical coordinates, , Respectively represent the average pooling of horizontal coordinates and vertical coordinates; The feature maps generated in the horizontal and vertical directions are connected, and the shared convolutional layer is used for feature extraction, that is: (14); In the formula, Represented as the intermediate features extracted by the coordinate channel attention module; Finally, the extracted Divided into two different parameters along the spatial dimension , , using 1×1 convolutional layers to , Transformed into a feature map with the same channel dimension as the input feature, under the action of the Sigmoid function, the attention weights of the parameter features in these two directions are calculated and weighted to the input features of the coordinate channel attention module to obtain the final coordinate channel attention : (15); In order to establish the internal dependency of the integrated features, the global spatial attention module is used to model the global spatial background, and the input features are preset. ,right Perform three branch processing, using , and Respectively ,right and Convolution generates two new feature maps , ,Will and Reshape , ,in, represents the number of spatial pixels, The transposed result is Multiply and apply the Softmax function to calculate the weight of each pixel : (16); At the same time, Perform a convolution and reshape it into , then and Do the matrix multiplication and reshape the result into , thereby obtaining the global spatial attention weight ,Right now: (17); The output of the CCA module , the output of the GSA module With input features Add up to get the output features of the dual attention module ,Right now: (18); S4: Input the reconstruction result obtained in step S3 into two convolutional layers with predefined weights, and use the preset loss function to mine the reconstructed high-resolution hyperspectral image Low-resolution hyperspectral images Spectral similarity between and high-resolution hyperspectral images High-resolution multispectral imaging The spatial similarity between them is used to output the best reconstruction result; The specific operation of step S4 is as follows: Assume , , They represent HR-HSI, LR-HSI, and HR-MSI respectively, and the loss function is expressed as: (19); In the formula, represents the reconstructed high-resolution hyperspectral image, is represented as a fuzzy operator, represents the spatial downsampling operation, Represented as a spectral downsampling operation, Expressed as the Frobenius norm, in this loss function, the first part is to explore the spectral similarity between the reconstruction result and LR-HSI, and the second part is to explore the spatial similarity between the reconstruction result and HR-MSI. It is used as a constant scalar to balance the two parts. The operation of the above two parts is implemented as two convolutional layers with predefined weights after the output layer of the encoder-decoder network. The convolutional layers that perform blurring and downsampling operators have spatial scaling factors The kernel size and stride are , and the kernel weights are pre-calculated according to the Lanczos2 filter. The spectral downsampling operation is implemented through a convolutional layer with a 1×1 kernel size. The number of spectral channels of the input and output are C and 3, respectively. The kernel weights are fixed according to the spectral response function of the multispectral camera used, and the output of this layer is strived to obtain the best approximation of HR-MSI. After the training is completed, the output of the network reconstructs a high-resolution hyperspectral image This is the required HR-HIS.

2. An unsupervised hyperspectral image fusion system, comprising a memory and a processor, wherein the memory stores an executable computer program of the processor, and the executable computer program can be executed by the processor to implement the method as claimed in claim 1.

3. A computer storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method described in claim 1 is implemented.

4. A computer product, comprising a computer program, characterized in that: When the computer program is executed by a processor, the method according to claim 1 is implemented.