Hyperspectral and multispectral image fusion method and system based on self-learning coupling diffusion posterior sampling

Fusion of hyperspectral and multispectral images through a self-learning coupled diffusion model solves the problem of low spatial resolution of hyperspectral images, achieves efficient image reconstruction and detail improvement, and is suitable for remote sensing and agricultural analysis.

CN118628366APending Publication Date: 2024-09-10NANJING UNIV OF SCI & TECH

Patent Information

Application Number
CN202410899923.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The low spatial resolution of hyperspectral images leads to challenges in detail analysis and accurate identification. Existing fusion methods cannot fully utilize their complementary information when processing hyperspectral and multispectral images, and have high computational complexity.

Method used

Using a posteriori sampling method based on self-learning coupled diffusion, by establishing a coupled diffusion model including a spectral network and a spatial network, and using the complementary information of hyperspectral and multispectral images for image fusion, hyperspectral image reconstruction with high spatial resolution is achieved. And optimize through multiple iterations to reduce noise and enhance contrast.

Benefits of technology

It significantly improves the spatial resolution of hyperspectral images, maintains the accuracy of spectral information, reduces computational complexity, and improves image detail clarity and detection accuracy. It is suitable for fields such as remote sensing and agricultural analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628366A
    Figure CN118628366A
Patent Text Reader

Abstract

The invention discloses an unsupervised hyperspectral and multispectral image fusion method and system based on self-learning coupling diffusion posterior sampling, and the method comprises the steps: constructing a spatial degradation model and a spectral degradation model for a low-resolution hyperspectral image and a high-resolution multispectral image, simulating a low-resolution image through Gaussian blur and bicubic interpolation; establishing a hyperspectral image fusion process by using a coupling diffusion model; the basic idea of the coupling diffusion model is to spread information in spatial and spectral dimensions through a diffusion process, so that the spatial resolution and spectral resolution of an image are improved. According to the fusion method provided by the invention, through repeated iterative optimization, the hyperspectral image is effectively improved in space and spectral dimensions; the method can remarkably improve the spatial resolution while maintaining the spectral characteristics of the hyperspectral image, and is suitable for the fields of remote sensing image processing and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of hyperspectral image processing, and in particular to a hyperspectral and multispectral image fusion method and system based on self-learning coupled diffusion posterior sampling. Background Art

[0002] Hyperspectral imaging technology provides rich spectral information by acquiring image data of objects in a large number of continuous spectral bands, which can reveal the physical and chemical properties of objects. This makes hyperspectral imaging widely used in remote sensing, environmental monitoring, agricultural analysis, mineral exploration, urban planning and military reconnaissance. For example, in the agricultural field, hyperspectral images can be used for crop classification, health status monitoring and yield prediction; in the field of environmental monitoring, they can be used to detect and identify pollutants; in urban planning, they can be used for land cover classification and urban expansion monitoring.

[0003] Although hyperspectral images have high spectral resolution, their spatial resolution is usually low. This is because when hyperspectral imaging devices acquire a large amount of spectral information, they are limited by sensor technology and imaging time, and it is difficult to simultaneously obtain high spatial resolution. This limitation affects the application of hyperspectral images in detail analysis and precise identification. For example, in remote sensing applications, low spatial resolution may lead to blurred boundaries of objects, affecting classification accuracy and the accuracy of change detection.

[0004] To solve this problem, researchers have proposed hyperspectral image fusion technology, which is to fuse hyperspectral images with multispectral images or panchromatic images with high spatial resolution to simultaneously improve the spatial and spectral resolution of the image. These fusion technologies mainly include the following categories:

[0005] (1) Transform domain-based methods: These methods convert the image into a specific domain (such as wavelet domain, Fourier domain, etc.) for processing, and then inversely transform the result back to the spatial domain to achieve image fusion. Common methods include wavelet transform, multi-scale geometric analysis, etc.

[0006] (2) Sparse representation-based methods: These methods use the sparse characteristics of images to achieve image fusion by building sparse representation models. Typical methods include sparse coding and dictionary learning.

[0007] (3) Methods based on deep learning: In recent years, deep learning methods have achieved remarkable results in the field of image processing. By constructing deep learning models such as convolutional neural networks (CNNs), image feature representation can be automatically learned to achieve efficient image fusion.

[0008] Although the above methods have improved the spatial resolution of hyperspectral images to a certain extent, there are still some challenges. For example, transform domain methods may introduce spectral distortion, sparse representation methods rely on sparsity assumptions, and deep learning methods require a large amount of training data and computing resources. In addition, these methods often fail to fully utilize the advantages of hyperspectral images and multispectral images when processing the complementary information of hyperspectral images and multispectral images. Therefore, how to design an efficient and effective hyperspectral image fusion method that fully utilizes the spectral information of hyperspectral images and the spatial information of multispectral images has become a hot topic and difficulty in current research. Summary of the invention

[0009] The purpose of the present invention is to provide a hyperspectral and multispectral image fusion method and system based on self-learning coupled diffusion posterior sampling to solve the problems of low spatial resolution, spectral distortion and high computational complexity of hyperspectral images in the prior art, to achieve high spatial resolution reconstruction of hyperspectral images, and to improve the spatial details of the image while maintaining the spectral information.

[0010] The technical solution to realize the present invention is: an unsupervised hyperspectral and multispectral image fusion method based on self-learning coupled diffusion posterior sampling, comprising the following steps:

[0011] Step 1: Obtain a hyperspectral image, and use a simulation algorithm to obtain a low-resolution hyperspectral image and a high-resolution multispectral image to be fused, and perform normalization processing on them;

[0012] Step 2: Establish a coupled diffusion network model, which includes a spectral network for capturing spectral information and a spatial network for capturing spatial information;

[0013] Step 3: Use the preprocessed hyperspectral image and multispectral image to train the spectral network and spatial network in the coupled diffusion network model respectively;

[0014] Step 4: Reconstruct the image using the trained coupled diffusion model with the help of the hyperspectral image and the multispectral image using the posterior sampling algorithm to obtain a high-resolution hyperspectral image;

[0015] Step 5: Calculate the L2 norm with the original input image and post-process the fused high-resolution hyperspectral image by gradient updating.

[0016] An unsupervised hyperspectral and multispectral image fusion system based on self-learning coupled diffusion posterior sampling is used to implement the above method, and the system includes:

[0017] The first module is used to obtain a hyperspectral image, and use a simulation algorithm to obtain a low-resolution hyperspectral image and a high-resolution multispectral image to be fused, and perform normalization processing on them;

[0018] The second module is used to establish a coupled diffusion network model, which includes a spectral network for capturing spectral information and a spatial network for capturing spatial information;

[0019] The third module uses the preprocessed hyperspectral images and multispectral images to train the spectral network and spatial network in the coupled diffusion network model respectively;

[0020] The fourth module uses the trained coupled diffusion model to reconstruct the image using the hyperspectral image and the multispectral image using the posterior sampling algorithm to obtain a high-resolution hyperspectral image;

[0021] The fifth module is used to calculate the L2 norm with the original input image and post-process the fused high-resolution hyperspectral image through gradient update.

[0022] An electronic device comprises an imaging device, a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the above-mentioned unsupervised hyperspectral and multispectral image fusion method based on self-learning coupled diffusion posterior sampling is implemented.

[0023] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned unsupervised hyperspectral and multispectral image fusion method based on self-learning coupled diffusion posterior sampling.

[0024] A computer program product comprises a computer program, which, when executed by a processor, implements the above-mentioned unsupervised hyperspectral and multispectral image fusion method based on self-learning coupled diffusion posterior sampling.

[0025] Compared with the prior art, the present invention has the following significant advantages: (1) The present invention introduces a coupled diffusion model to effectively utilize the spectral information of the hyperspectral image and the spatial information of the multispectral image, so that the spatial resolution of the fused hyperspectral image is significantly improved. The high spatial resolution of the hyperspectral image can more clearly show the detailed features of the object, which is conducive to accurate identification and classification. (2) The coupled diffusion model retains the spectral features of the hyperspectral image through spectral branching, avoiding the problem of spectral distortion during the fusion process. Maintaining spectral information is crucial for accurately identifying the composition and characteristics of a substance, especially in applications such as environmental monitoring and agricultural analysis, which can improve detection accuracy and reliability. (3) The coupled diffusion network model proposed in the present invention takes computational efficiency into consideration in its design, adopts an efficient convolutional neural network structure, and reduces the demand for computing resources. Under the premise of ensuring the fusion effect, the computational complexity is reduced and the processing speed is improved, making the method more practical and efficient in practical applications. (4) Through multiple iterative optimizations, the method of the present invention can further improve the quality of the fused image, including reducing noise, enhancing contrast and detail clarity. The denoising and enhancement techniques used in the post-processing step can significantly improve the visual effect of the image and provide a higher quality fused image. (5) The coupled diffusion model of the present invention integrates a variety of advanced image processing technologies and is highly innovative. This method has demonstrated significant superiority in both theory and practical applications, and has promoted the development of hyperspectral image processing technology.

[0026] The hyperspectral image fusion method based on the coupled diffusion model provided by the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 It is a flow chart of the hyperspectral and multispectral image fusion method based on self-learning coupled diffusion posterior sampling of the present invention.

[0028] Figure 2 It is a schematic diagram of the coupled diffusion model training and sampling iterative optimization reconstruction process of the present invention. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0030] The present invention proposes an unsupervised hyperspectral and multispectral image fusion method based on self-learning coupled diffusion posterior sampling. The method utilizes the coupled diffusion process and combines the complementary information of hyperspectral images and multispectral images to achieve high spatial resolution reconstruction of hyperspectral images. Firstly, for low-resolution hyperspectral images and high-resolution multispectral images, spatial degradation models and spectral degradation models are constructed, and low-resolution images are simulated by Gaussian blurring and bicubic interpolation; then, the hyperspectral image fusion process is established using the coupled diffusion model. The basic idea of ​​the coupled diffusion model is to propagate information in the spatial and spectral dimensions through the diffusion process, thereby improving the spatial resolution and spectral resolution of the image; specifically, the spatial information of the high-resolution multispectral image is used to diffuse the low-resolution hyperspectral image, so that it is enhanced in the spatial dimension; at the same time, the spectral information of the hyperspectral image is used to diffuse to improve its spectral resolution. The fusion method proposed in the present invention is optimized through multiple iterations, so that the hyperspectral image is effectively improved in both spatial and spectral dimensions. The method can significantly improve the spatial resolution of the hyperspectral image while maintaining the spectral characteristics of the hyperspectral image, and is suitable for fields such as remote sensing image processing.

[0031] like Figure 1 , Figure 2 As shown, the present invention is a hyperspectral and multispectral image fusion method based on self-learning coupled diffusion posterior sampling, comprising the following steps:

[0032] Step 1: Obtain a hyperspectral image from the device, and use a simulation algorithm to obtain the corresponding low-resolution hyperspectral image and high-resolution multispectral image. Specifically, the hyperspectral image is down-sampled using a bicubic interpolation method to obtain a low-resolution hyperspectral image, which is expressed as follows:

[0033]

[0034] in, represents a low-resolution hyperspectral image, represents a high-resolution hyperspectral image, and represents the point spread function, ×1 and ×2 represent matrix multiplication in the first and second dimensions respectively;

[0035] After obtaining a low-resolution hyperspectral image, a spectral response function is simulated using a Gaussian function, and the hyperspectral image is matrix multiplied with the spectral response function to obtain a high-resolution multispectral image with fewer bands. The specific implementation formula is as follows:

[0036]

[0037] in represents a high-resolution multispectral image, represents the spectral response function and ×3 indicates matrix multiplication in the third dimension.

[0038] Since the processed hyperspectral image and multispectral image data range is large, it is not conducive to processing using deep learning algorithms. Therefore, the data is normalized and the data range is limited to between 0 and 1. The calculation formula is as follows:

[0039]

[0040] in, and Represent low-resolution hyperspectral images The minimum and maximum values ​​of and Represent high-resolution multispectral images The minimum and maximum values ​​of .

[0041] Step 2: Build a model structure of the self-learning coupled diffusion model, including a spatial network and a spectral network. In order to improve the computational efficiency, the present invention designs a very lightweight spatial network and a spectral network, as follows:

[0042] The spatial network is designed to process and extract spatial features of high-resolution images. In order to simplify the network structure and ensure high efficiency, the spatial network only uses convolutional modules for stacking. With this design, the network can effectively capture the local features and edge information of the image. In order to further enhance the representation ability of the network, the spatial network introduces residual connections. These residual connections can retain more image information and prevent information from being lost in the deep network, thereby improving the training efficiency and accuracy of the network. Specifically, the spatial network contains a downsampling layer and an upsampling layer. The downsampling layer is used to downsample the high-resolution image to capture the global features and low-frequency information of the image; while the upsampling layer is used to restore the downsampled image to the original resolution to reconstruct high-resolution detail information. In order to better combine information at all levels, the spatial network also designs a skip connection layer, which directly connects the input module with the output module, so that shallow features and deep features can be effectively fused in the network. With this design, the spatial network can output more accurate and rich prediction results. The spectral diffusion model only uses a small number of linear layers and activation layers for stacking. The embedding layer is used to add temporal information to the input and splice it with the spectral data.

[0043] The spectral network focuses on processing the spectral features of hyperspectral images. Since hyperspectral images contain a large amount of spectral information, in order to avoid the model being too complex and redundant, the spectral network only uses a small number of linear layers and activation layers for stacking. This design can not only ensure the lightweight of the network, but also fully extract the spectral features. At the input end of the spectral network, an embedding layer is used to add time information to the input data. The introduction of time information allows the model to better understand and capture the dynamic changes and time correlation of spectral data. The embedding layer splices the time information with the spectral data, making the input data richer and more diverse, which helps to improve the prediction performance and generalization ability of the model.

[0044] Specifically, for the spatial network, 8 convolution modules and one skip connection layer are used. Among the 8 convolution modules, 3 convolution modules are used to extract features of the input image and perform downsampling. The modules include convolution layers, pooling layers, activation layers and normalization layers. There are 2 convolution modules for extracting information from deep features. The modules include convolution layers, activation layers and normalization layers. The last 3 convolution modules are used to extract information from deep features and perform upsampling. The modules include convolution layers, upsampling layers, activation layers and normalization layers. The input channel and output channel are both 1. For the spectral network, 5 layers of fully connected layers and activation layers are stacked. At the same time, at the input end of the spectral network, an embedding layer is used to add time information to the input data.

[0045] Step 3: Train the built coupled diffusion model. Input the low-resolution hyperspectral image and high-resolution multispectral image data processed in step 1 into the spectral diffusion model and spatial diffusion model initialized in the model in step 2 for training. The specific steps are as follows:

[0046] Step 3.1: Randomly crop single-channel images from high-resolution multispectral images to form input images with a channel number of 1. The purpose of this step is to ensure that the model can process image information from different channels and increase the robustness and generalization ability of the model. Obtain the corresponding number of images according to the specified batch size for the spatial network to train. This not only improves training efficiency, but also effectively avoids overfitting, enabling the model to process input images of different types and sizes.

[0047] Step 3.2: Randomly select a single spectrum from the low-resolution hyperspectral image as the input of the spectral network. This selection process is to ensure the diversity of the training data so that the model can better learn and capture spectral information. According to the specified batch size, the corresponding number of spectra are randomly selected for training. In this process, it is ensured that the model can be exposed to information from different bands during training, thereby improving its accuracy and stability when processing hyperspectral images.

[0048] Step 3.3: For the prepared processed data and established model, establish the corresponding objective function to train the model. Based on the theory of diffusion model, the loss function is as follows:

[0049]

[0050] in, represents the expected value of x0, ε and t, x0 is the original data, x t is the noisy data at time step t, ε is the noise added to the data, and ε θ (x t ,t) is the noise predicted by the neural network. This loss function guides the model to continuously adjust parameters to minimize the noise reconstruction error by calculating the error between the predicted noise and the actual noise.

[0051] Step 4: In step 3, the corresponding spatial network and spectral network have been trained. Based on the basic theory of diffusion model, sampling is performed on these two networks respectively. The specific steps are as follows:

[0052] Step 4.1. Due to the large number of bands in hyperspectral images, it is usually necessary to unmix them. The unmixing process uses linear algebra theory to decompose the hyperspectral image into the product of two low-dimensional matrices: one represents the abundance map and the other represents the end member. The specific formula is as follows:

[0053]

[0054] Among them, R represents the number of end members, A r represents the rth slice in the abundance map matrix, e r represents the rth slice in the endmember matrix.

[0055] Based on the above theory and the characteristics of the coupled diffusion model sampling algorithm, two matrices are first initialized with Gaussian functions, representing the abundance map and endmembers, respectively, to obtain two Gaussian noise matrices. The purpose of this step is to provide initial conditions for the subsequent sampling process. By introducing Gaussian noise, it can ensure that the model can explore the diversity of the data space during the sampling process and improve the generalization ability of the model.

[0056] Step 4.2: Input the abundance map and endmembers initialized in step 4.1 into the coupled diffusion model. Specifically, the initialized noise abundance map is input into the spatial network, and the noise-free abundance map is obtained after 1000 sampling steps; the initialized noise endmember is input into the spectral network, and the noise-free endmember is obtained after 1000 sampling steps. In this process, the model gradually reduces the noise through multiple iterations, making the prediction of the abundance map and endmember more accurate.

[0057] During the sampling process, there are 1000 steps of model prediction process. At the tth step, for the abundance map and end members predicted by the model, matrix multiplication is used to obtain the hyperspectral image predicted in the current step. The expression formula is as follows:

[0058]

[0059] in, represents the high-resolution hyperspectral image with noise obtained by sampling at the tth step, represents the noisy abundance map obtained by sampling at step t, represents the noisy endmember obtained by sampling in the tth step.

[0060] Since the predicted result at the tth step is still mixed with a lot of noise, the posterior sampling algorithm is needed to gradually approximate the output prediction result to the original image. The specific method is to use the bicubic interpolation downsampling method to obtain the corresponding low-resolution hyperspectral image for the hyperspectral image reconstructed in the current step, and then use the HySure algorithm to estimate the spectral response function, which is matrix multiplied with the reconstructed hyperspectral image to obtain a high-resolution multispectral image. The two images are compared with the original low-resolution hyperspectral image and the high-resolution multispectral image using the L2 norm to calculate the error and obtain a distance value / loss value. The automatic gradient derivation function is used to obtain the gradient of the loss value relative to the abundance map and end member of the previous step, and the gradient value is used to update these two values ​​to obtain the new abundance map and end member of the current step. The formula is as follows:

[0061]

[0062] in, and They represent the noisy abundance map and endmember obtained by sampling in the tth step, respectively. and They represent the noisy abundance map and endmember obtained by sampling in the t-1th step, respectively. and represents the noise-free abundance map and end members obtained in the current step, and Respectively express and , ρ1 and ρ2 represent the step sizes of the abundance map and endmember update gradients, respectively, and λ1 and λ2 represent the weight balance parameters, respectively.

[0063] Step 4.3: After completing 1000 sampling steps, the abundance map and endmembers output by the final model are obtained. The matrix multiplication of the two is performed to obtain the final target hyperspectral image. The formula is as follows:

[0064]

[0065] in, represents the final reconstructed hyperspectral image, A0 represents the final abundance map, and E0 represents the final end member.

[0066] Step 5: Since the spatial and spectral networks are only trained on a single image, there may be overfitting problems. Therefore, the final reconstruction results need to be post-processed to ensure consistency with the original image and to ensure a high-quality fusion effect, as follows:

[0067] Step 5.1 uses the bicubic interpolation downsampling operator in the sampling process to generate the corresponding low-resolution hyperspectral image. This step ensures that the reconstructed hyperspectral image is consistent with the original low-resolution hyperspectral image in resolution.

[0068] Step 5.2: Perform matrix multiplication on the low-resolution hyperspectral image and the spectral response function in the sampling process to obtain the corresponding high-resolution multispectral image. The introduction of the spectral response function can ensure that the reconstructed image is consistent with the original data in terms of spectral information.

[0069] Step 5.3: Compare the generated low-resolution hyperspectral image and high-resolution multispectral image with the original low-resolution hyperspectral image and high-resolution multispectral image, respectively, and use the L2 norm to calculate the error to obtain a distance value / loss value. The formula of the loss function is as follows:

[0070]

[0071] Among them, λ3 represents the weight balance between the loss values ​​obtained by hyperspectral and multispectral.

[0072] Step 5.4: Use the automatic gradient derivation function to obtain the gradient of the optimal solution of the abundance map and end member distance, and update the abundance map and end member according to the gradient value to obtain a new result. The update formula is as follows:

[0073]

[0074] Among them, ρ3 represents the step size when updating the hyperspectral image data, Represents the gradient value of the loss function for the hyperspectral image, that is,

[0075] Step 5.5: Iterate the above operation 300 times, gradually optimize the abundance map and end members, and gradually improve the quality of the reconstructed hyperspectral image. After multiple iterations, the model can more accurately capture the spatial and spectral features of the image, and finally obtain a high-quality hyperspectral image.

[0076] The above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents; and these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A hyperspectral and multispectral image fusion method based on self-learning coupled diffusion posterior sampling, characterized in that: The following steps are involved: Step 1: Obtain a hyperspectral image, and use a simulation algorithm to obtain a low-resolution hyperspectral image and a high-resolution multispectral image to be fused, and perform normalization processing on them; Step 2: Establish a coupled diffusion network model, which includes a spectral network for capturing spectral information and a spatial network for capturing spatial information; Step 3: Use the preprocessed hyperspectral image and multispectral image to train the spectral network and spatial network in the coupled diffusion network model respectively; Step 4: Reconstruct the image using the trained coupled diffusion model with the help of the hyperspectral image and the multispectral image using the posterior sampling algorithm to obtain a high-resolution hyperspectral image; Step 5: Calculate the L2 norm with the original input image and post-process the fused high-resolution hyperspectral image by gradient updating.

2. The hyperspectral and multispectral image fusion method based on self-learning coupled diffusion posterior sampling according to claim 1 is characterized in that: In step 1, after obtaining the hyperspectral image from the device, the corresponding low-resolution hyperspectral image and high-resolution multispectral image are obtained by simulation algorithm, and the data range is limited to between 0 and 1 by normalization method. The specific method is as follows: Step 1.1: Use the bicubic interpolation method to downsample the hyperspectral image to obtain a low-resolution hyperspectral image, which is expressed as follows: in, represents a low-resolution hyperspectral image, represents a high-resolution hyperspectral image, and represents the point spread function, ×1 and ×2 represent matrix multiplication in the first and second dimensions respectively; Step 1.2: Use the Gaussian function to simulate a spectral response function, perform matrix multiplication between the hyperspectral image and the spectral response function to obtain a high-resolution multispectral image with fewer bands. The specific implementation formula is as follows: in, represents a high-resolution multispectral image, represents the spectral response function and ×3 indicates matrix multiplication in the third dimension.

3. The hyperspectral and multispectral image fusion method based on self-learning coupled diffusion posterior sampling according to claim 1 is characterized in that: The coupled diffusion network model described in step 2 is established, wherein both the spatial network and the spectral network adopt a lightweight design structure; For the spatial network, 8 convolution modules and one skip connection layer are used. Among the 8 convolution modules, 3 convolution modules are used to extract features from the input image and perform downsampling. The modules include convolution layers, pooling layers, activation layers, and normalization layers. There are 2 convolution modules for extracting information from deep features. The modules include convolution layers, activation layers, and normalization layers. The last 3 convolution modules are used to extract information from deep features and perform upsampling. The modules include convolution layers, upsampling layers, activation layers, and normalization layers. The input channel and output channel are both 1. For the spectral network, 5 layers of fully connected layers and activation layers are stacked. At the same time, at the input of the spectral network, an embedding layer is used to add time information to the input data.

4. The hyperspectral and multispectral image fusion method based on self-learning coupled diffusion posterior sampling according to claim 1 is characterized in that: In step 3, the coupled diffusion network model is trained. Using the implementation principle of the diffusion model, the corresponding spatial diffusion model network and spectral network are trained respectively. The steps are as follows: Step 3.1, randomly crop single-channel images from the high-resolution multispectral image to form an input image with a channel number of 1, and obtain the corresponding number of images according to the specified batch size for spatial network training; Step 3.2, randomly select a single spectrum in the low-resolution hyperspectral image as the input of the spectral network, and randomly select the corresponding number of spectra for training according to the specified batch size; Step 3.3: For the prepared processed data and established model, establish the corresponding objective function to train the model. Based on the theory of diffusion model, the loss function is as follows: in, represents the expected value of x0, ε and t, x0 is the original data, x t is the noisy data at time step t, ε is the noise added to the data, and ε θ (x t ,t) is the noise predicted by the neural network.

5. The hyperspectral and multispectral image fusion method based on self-learning coupled diffusion posterior sampling according to claim 1 is characterized in that: In step 4, the trained coupled diffusion model will be used to reconstruct the image. The specific steps are as follows: Step 4.1: Since hyperspectral images have many bands, they are usually unmixed and decomposed into the multiplication of two low-dimensional matrices using linear algebra theory, one representing the abundance map and the other representing the end member. The formula is as follows: Among them, R represents the number of end members, A r represents the rth slice in the abundance map matrix, e r represents the rth slice in the endmember matrix; Initialize two matrices with Gaussian functions, representing the abundance map and endmembers respectively, and obtain two Gaussian noise matrices; Step 4.2, input the abundance map and end members initialized in step 4.1 into the coupled diffusion model; The initialized noise abundance map is input into the spatial network, and a noise-free abundance map is obtained after 1000 sampling steps; the initialized noise endmember is input into the spectral network, and a noise-free endmember is obtained after 1000 sampling steps; During the sampling process, there are 1000 steps of model prediction process. At the tth step, for the abundance map and end members predicted by the model, matrix multiplication is used to obtain the hyperspectral image predicted in the current step. The formula is as follows: in, represents the high-resolution hyperspectral image with noise obtained by sampling at the tth step, represents the noisy abundance map obtained by sampling at step t, represents the noisy end member obtained by sampling in the tth step; Since the predicted result at the tth step is still mixed with noise, the posterior sampling algorithm is needed to gradually approximate the output prediction result to the original image. Specifically, for the hyperspectral image reconstructed at the current step, the bicubic interpolation downsampling method is used to obtain the corresponding low-resolution hyperspectral image, and then the spectral response function is estimated by the HySure algorithm. The high-resolution multispectral image is obtained by matrix multiplication with the reconstructed hyperspectral image. The error of these two images and the original low-resolution hyperspectral image and high-resolution multispectral image is calculated using the L2 norm to obtain a loss value. The automatic gradient derivation function is used to obtain the gradient of the loss value relative to the abundance map and end member of the previous step, and the gradient value is used to update these two values ​​to obtain the new abundance map and end member of the current step. The formula is as follows: in, and They represent the noisy abundance map and endmember obtained by sampling in the tth step, respectively. and They represent the noisy abundance map and endmember obtained by sampling in the t-1th step, respectively. and represents the noise-free abundance map and end members obtained in the current step, and Respectively express and The gradient of , ρ1 and ρ2 represent the step size of the abundance map and end member update gradient, respectively, λ1 and λ2 represent the weight balance parameters, respectively; Step 4.3: After completing 1000 sampling steps, the abundance map and endmembers output by the final model are obtained. The matrix multiplication of the two is performed to obtain the final target hyperspectral image. The formula is as follows: in, represents the final reconstructed hyperspectral image, A0 represents the final abundance map, and E0 represents the final end member.

6. The hyperspectral and multispectral image fusion method based on self-learning coupled diffusion posterior sampling according to claim 1 is characterized in that: Step 5 post-processes the target hyperspectral image predicted by the model, as follows: The final hyperspectral image is downsampled using the bicubic interpolation operator in the sampling process to obtain the corresponding low-resolution hyperspectral image, and then matrix multiplication is performed with the spectral response function in the sampling process to obtain the corresponding high-resolution multispectral image. The two images are compared with the original low-resolution hyperspectral image and the high-resolution multispectral image using the L2 norm to calculate the error and obtain a loss value. The automatic gradient derivation function is used to obtain the gradient of the optimal solution of the abundance map and the endmember distance, and the two are updated to obtain a new result. The formula is as follows: Among them, ρ3 represents the step size when updating the hyperspectral image data, and λ3 represents the weight balance between the loss values ​​obtained by the hyperspectral and multispectral images; This operation was iterated 300 times to obtain the final hyperspectral image.

7. A hyperspectral and multispectral image fusion system based on self-learning coupled diffusion posterior sampling, used to implement the method described in any one of claims 1 to 6, characterized in that: The system includes: The first module is used to obtain a hyperspectral image, and use a simulation algorithm to obtain a low-resolution hyperspectral image and a high-resolution multispectral image to be fused, and perform normalization processing on them; The second module is used to establish a coupled diffusion network model, which includes a spectral network for capturing spectral information and a spatial network for capturing spatial information; The third module uses the preprocessed hyperspectral images and multispectral images to train the spectral network and spatial network in the coupled diffusion network model respectively; The fourth module uses the trained coupled diffusion model to reconstruct the image using the hyperspectral image and the multispectral image using the posterior sampling algorithm to obtain a high-resolution hyperspectral image; The fifth module is used to calculate the L2 norm with the original input image and post-process the fused high-resolution hyperspectral image through gradient update.

8. An electronic device comprising an imaging device, a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Hyperspectral and panchromatic image fusion method for extracting spatial features based on AAE

    CN110533620A

  • Global interaction hyperspectral multispectral cross-modal fusion method with spectral fidelity

    CN117911830A

  • Physical guidance generative confrontation hyperspectral super-resolution method based on non-registration

    CN118212127A

  • Systems and Methods for Multi-Spectral Image Fusion Using Unrolled Projected Gradient Descent and Convolutinoal Neural Network

    US20200302249A1

Cited By

  • Non-autoregressive speech synthesis method and device, computer equipment and storage medium

    CN119864010A

  • Hyperspectral image super-resolution method and device based on physical diffusion model

    CN120634865A

  • Hyperspectral image super-resolution method and device based on physical diffusion model

    CN120634865B

  • Dual-stage diffusion remote sensing hyperspectral reconstruction method for disaster scene

    CN121032811A

  • Hyperspectral fusion imaging method and system of double-branch diffusion model framework

    CN121707841A