Hyperspectral image fusion method based on high-frequency information extraction and multi-feature matrix
By combining the features of hyperspectral images and RGB images based on high-frequency information extraction and multi-feature matrix, the problem of the neglected spectral characteristics and shallow features in the fusion of hyperspectral images in the prior art is solved, and high space is achieved and high-spectral resolution image fusion effect.
Patent Information
- Application Number
- CN202410947127.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-11-15
AI Technical Summary
The existing hyperspectral image fusion technology fails to effectively process the spectral characteristics of hyperspectral images, and ignores shallow features in the deep network structure, resulting in a low spatial resolution of hyperspectral images, limiting the development of cultural relics digitization.
Using the hyperspectral image fusion method based on high-frequency information extraction and multi-feature matrix, the edge, contour and texture information of the RGB image are extracted through the high-frequency information extraction module, and fully fused with the hyperspectral image, using multi-scale convolution and sequence The convolutional layer structure focuses on deep and shallow features, and finally retains the spectral information of the hyperspectral image through the spectral retention module to form a hyperspectral image with high spatial resolution.
A hyperspectral image fusion with high spatial resolution and spectral resolution is achieved, which significantly improves the spatial detail and spectral fidelity of the image, and is better than the visual effect and objective index evaluation of traditional methods.
Smart Images

Figure CN118967467A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a hyperspectral image fusion method based on high-frequency information extraction and multi-features. Background Art
[0002] Hyperspectral images are widely used in cultural relics protection fields such as pigment distribution analysis, implicit information extraction, disease annotation and line drawing extraction due to their characteristics such as "image-spectrum integration" and high spectral resolution. However, restricted by imaging sensors, the spatial resolution of existing hyperspectral images is low, which hinders the development of hyperspectral digitization of cultural relics. Hyperspectral image fusion technology uses computer technology to combine low-resolution hyperspectral images with high-spatial-resolution images to reconstruct high-spatial-resolution hyperspectral images. The current fusion method does not process hyperspectral images separately, resulting in the spectral characteristics of hyperspectral images being ignored. When processing deep network structures, the existing methods only focus on the output after multi-layer convolution, while ignoring shallow features. Therefore, a new hyperspectral image fusion method based on high-frequency information extraction and multi-features has become a problem that technicians in this field continue to solve. Summary of the invention
[0003] According to one aspect of the present application, a hyperspectral image fusion method based on high-frequency information extraction and multi-feature matrix is proposed, which fully considers the uniqueness of the hyperspectral image and fully extracts the spatial features of the RGB image. In the fusion process, both deep features and shallow features are paid attention to, thereby achieving full fusion of the hyperspectral image and the RGB image to obtain a hyperspectral image with high spatial resolution. The specific scheme is as follows:
[0004] A method for fusion of hyperspectral images based on high-frequency information extraction and multi-feature matrix includes the following steps:
[0005] Step 1: Establish a training data set of low-resolution hyperspectral images and high-resolution RGB images, where the RGB images are red, green and blue images;
[0006] Step 2: Obtain the fusion result Y of the low-resolution hyperspectral image and the high-resolution RGB image through high-frequency information extraction and multi-feature matrix network model;
[0007] Step 3: Using the stochastic gradient descent algorithm, the training data set is used to perform network training on the high-frequency information extraction and multi-feature matrix model to obtain a fusion model;
[0008] The method for obtaining the fusion result Y in step 2 is as follows: first, a high-frequency information extraction module based on multiple feature operators is used to fully extract the edge, contour and texture information contained in the three channel images of the RGB image; then, the extracted spatial detail information and the hyperspectral image are fully fused through a multi-feature matrix; finally, the spectral retention module is used to retain the rich spectral information of the hyperspectral image, and the saved spectral information is injected into the fusion result.
[0009] Optionally, the method for fully extracting the RGB image in step 2 comprises the following steps:
[0010] Step 2.1: The original RGB image is first separated into full-color images of three channels, R, G, and B. Then, the full-color image of each channel is subjected to six high-pass operators to extract multi-level high-frequency information, which is then concatenated with the full-color image of each channel as input. The six high-pass operators are: first-order difference operator, Robert operator, Perwitt operator, Scharr operator, Laplacian operator, and Canny edge detection operator.
[0011] Step 2.2: The first-order difference operator, Robert operator, Perwitt operator, Scharr operator, Laplacian operator and Canny edge detection operator are respectively expressed as α_fod, α_rob, α_pre, α_sch, α_lap and α_can, and the input high-pass feature can be expressed as formula (1):
[0012] X'=(α fod *R,α rob *R,α pre *R,α sch *R,α lap *R,α can *R,R)+(α fod *G,α rob *G,α pre *G,α sch *G,α lap *G,α can *G,G)+(α fod *B,α rob *B,α pre *B,α sch *B,α lap *B,α can *B,B)# (1)
[0013] Optionally, the process of fully fusing the extracted spatial detail information and the hyperspectral image through the multi-feature matrix in step 2 includes the following steps:
[0014] Step 2.3: The multi-feature matrix module has multi-scale convolution and multi-feature matrix. Before fusion, the hyperspectral image is first upsampled to the same size as the RGB image, and then the upsampled hyperspectral image and the high-frequency detail features extracted by the high-frequency information extraction module are cascaded along the spectral dimension as the input of the multi-scale structure extraction;
[0015] Step 2.4: Multi-scale convolution has three different sizes of convolution kernels: 3×3, 5×5, and 7×7. The three different convolution kernels are used to capture feature information of different scales: In the 3×3 convolution, n convolution kernels of size 3×3 are used to operate on the stacked image X'. The operation expression (2) of the nth convolution kernel is:
[0016]
[0017] in: Represents the feature map obtained after applying the nth 3×3 convolution kernel;
[0018] σ represents the activation function, specifically the ReLU activation function;
[0019] I s+i-2,t+j-2 Represents the pixel value at position (s+i-2,t+j-2) in image I;
[0020] Represents the weight at position (i, j) in the nth 3×3 convolution kernel;
[0021] Represents the bias of the nth convolution kernel;
[0022] The 5×5 convolution layer uses a 5×5 convolution kernel, and the operation expression (3) of the nth convolution kernel is:
[0023]
[0024] in: Represents the feature map obtained after applying the nth 5×5 convolution kernel;
[0025] σ represents the activation function, specifically the ReLU activation function;
[0026] I s+i-2,t+j-2 Represents the pixel value at position (s+i-2,t+j-2) in image I;
[0027] Represents the weight at position (i, j) in the nth 5×5 convolution kernel;
[0028] Represents the bias of the nth convolution kernel;
[0029] The 7×7 convolution layer uses a 7×7 convolution kernel, and the operation of the nth convolution kernel can be expressed as (4):
[0030]
[0031] in: Represents the feature map obtained after applying the nth 7×7 convolution kernel;
[0032] σ represents the activation function, specifically the ReLU activation function;
[0033] I s+i-2,t+j-2 Represents the pixel value at position (s+i-2,t+j-2) in image I;
[0034] Represents the weight at position (i, j) in the nth 7×7 convolution kernel;
[0035] Represents the bias of the nth convolution kernel;
[0036] Step 2.5: The horizontal layer of the multi-feature matrix module is a serialized convolution layer, which consists of different convolution layers from deep to shallow. After the four convolution layers, a convolution layer equal to the last layer is added. The specific number of channels is set to [48, 32, 16, 8, 8] in sequence;
[0037] Each shallow and deep convolution result will be concatenated to keep these two types of key information at each step;
[0038] The multi-feature matrix module consists of three parallel structures in the vertical direction, and their convolution kernel sizes correspond to the sizes of their corresponding multi-scale convolution kernels. Finally, the joint results of the three branches are connected in the channel dimension direction. The specific calculation formula is formula (5):
[0039]
[0040] in They represent the combined results of the three branches respectively.
[0041] Optionally, the step 2 of retaining the rich spectral information of the hyperspectral image by the spectral retention module includes the following steps:
[0042] Step 2.6, setting a MaxPooling layer, wherein the MaxPooling layer is a downsampling operation, which is used to reduce the dimension of the data and can capture the strongest local signal of the feature;
[0043] Assume that the input feature map is Y, and the feature value of each position (i, j) is Y i,j , the definition of the maximum pooling operation is shown in formula (6):
[0044]
[0045] Where Y' is the feature map after pooling, (k, l) is the position of the pooling window on the input feature map Y, and the position within the window is represented by (a, b).
[0046] Step 2.7, use a 1×1Conv to perform feature dimensionality reduction;
[0047] Assuming that the number of channels of the original feature map is C, the number of channels after dimensionality reduction is C' = C / reduction, where reduction = 16. This operation expression (7) is:
[0048]
[0049] Where w and b are the weight and bias of the convolution kernel respectively, and Y' is the feature map after the convolution operation.
[0050] In step 2.8, the 1×1 Conv convolution is followed by the ReLU activation function, which is used to provide nonlinear processing capabilities, allowing the model to learn more complex feature representations. In hyperspectral data, this helps distinguish signals from noise, as well as subtle spectral differences between different substances. The specific mathematical expression is:
[0051] Y"' klc' =max(0,Y” klc' )
[0052] In step 2.9, a 1×1 Conv is used to expand the number of channels back to the original dimension, which is used to restore the dimension suitable for the original data space after compressing the feature representation, in preparation for the final attention. The mathematical expression is formula (8):
[0053]
[0054] Where w' and b' are the weights and biases of the new convolution kernel.
[0055] In step 2.10, the attention weight of each channel is obtained through the Sigmoid function.
[0056] Optionally, the network training process in step 3 includes the following steps:
[0057] Step 3.1, select the commonly used loss function L L is the loss function of this network;
[0058] Step 3.2, during the network training process using the stochastic gradient descent algorithm, the loss function is continuously optimized until convergence.
[0059] Optionally, the process of optimizing the loss is as follows: p sample pairs are selected from the training data set to form a small batch of samples, and then the following is performed in each iteration:
[0060] The expression of stochastic gradient descent for high-resolution data is (9):
[0061]
[0062] in, The loss function L constructed for steps 7.1 and 7.2 H , where m represents p sample pairs, and then the gradient descent method is used to update the model:
[0063]
[0064] here, is the loss function for the parameter θ i The partial derivative of α is the learning rate set by the model. The expression after updating the model by the gradient descent method is formula (11):
[0065]
[0066] in, Indicates the gradient of the loss function. Each time the model is updated, a sample is randomly taken. To update the parameters;
[0067] At the same time, the expression of stochastic gradient descent for the branch for low-resolution data is formula (12):
[0068]
[0069] in, The loss function L constructed in step 3.1 and step 3.2 is L ,Afterwards, similar to the high-resolution data branch, the gradient descent method is used to update the network.
[0070] Optionally, the hyperspectral images and RGB images in the training data set in step 1 are multiple pairs of hyperspectral images and RGB images of multiple scenes.
[0071] The beneficial effects of this application include:
[0072] 1. In view of the differences in spatial details contained in the three channels of red (Red, R), green (Green, G), and blue (Blue, B) in RGB images, this application proposes a high-frequency information extraction module based on multiple feature operators. The module intends to use different types of high-pass filters to fully extract the edge, contour and texture information contained in the three channel images;
[0073] 2. The extracted spatial detail information and hyperspectral image are fully integrated through a multi-feature matrix. The matrix module is composed of convolution layers of different scales in the vertical direction, which can learn feature information at different scales, thereby enhancing the receptive field of the network. The horizontal direction is a serialized convolution layer, which is composed of different convolution layers from deep to shallow. This structure reduces the number of output channels as the network goes deeper, thereby reducing the parameters of the network.
[0074] 3. The rich spectral information of hyperspectral images is retained through the spectral preservation module. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] Figure 1 It is a framework diagram of the hyperspectral image fusion network based on high-frequency information extraction and multi-feature matrix of the present invention;
[0076] Figure 2 This is a structural diagram of a high-frequency information extraction module in a hyperspectral image fusion network based on high-frequency information extraction and multi-feature matrix of the present invention;
[0077] Figure 3 It is a structural diagram of a multi-feature matrix module in a hyperspectral image fusion network based on high-frequency information extraction and multi-feature matrix of the present invention;
[0078] Figure 4 This is a structural diagram of the spectrum preservation module in the hyperspectral image fusion network based on high-frequency information extraction and multi-feature matrix of the present invention;
[0079] Figure 5 This is an embodiment of the hyperspectral image fusion network based on high-frequency information extraction and multi-feature matrix of the present invention, which simulates the fusion results of different fusion methods on images in the Yuan Dynasty mural tomb data in the experiment;
[0080] Figure 6 This is an embodiment of the high-frequency information extraction and multi-feature matrix hyperspectral image fusion network of the present invention, simulating the fusion results of different fusion methods on images in modern painting and calligraphy data in the experiment. DETAILED DESCRIPTION
[0081] The present application is described in detail below with reference to embodiments, but the present application is not limited to these embodiments.
[0082] The present application provides a method for fusion of hyperspectral images based on high-frequency information extraction and multi-feature matrix, comprising the following steps:
[0083] Step 1: Create a training dataset of low-resolution hyperspectral images and high-resolution RGB images;
[0084] Step 2: Obtain the fusion result Y of the low-resolution hyperspectral image and the high-resolution RGB image through high-frequency information extraction and multi-feature matrix network model; First, use the high-frequency information extraction module based on multiple feature operators to fully extract the edge, contour and texture information contained in the three channel images of the RGB image; then use the multi-feature matrix to fully fuse the extracted spatial detail information with the hyperspectral image; finally, use the spectral retention module to retain the rich spectral information of the hyperspectral image, and inject the saved spectral information into the fusion result;
[0085] Step 3: Using the stochastic gradient descent algorithm, the training data set is used to perform network training on the high-frequency information extraction and multi-feature matrix model to obtain a fusion model.
[0086] The hyperspectral images and RGB images in the training data set in step 1 are multiple pairs of hyperspectral images and RGB images of multiple scenes;
[0087] The method for extracting three channel images of the RGB image in step 2 comprises the following steps:
[0088] The method for extracting high-frequency information of three channels of an RGB image comprises the following steps:
[0089] Step 2.1: The original RGB image is first separated into full-color images of three channels: R, G, and B. Then, the full-color image of each channel is passed through six high-pass operators to extract multi-level high-frequency information. This information is then concatenated with the full-color image of each channel as input. The six high-pass operators include the first-order difference operator, Robert operator, Perwitt operator, Scharr operator, Laplacian operator, and Canny edge detection operator.
[0090] Step 2.2: The first-order difference operator, Robert operator, Perwitt operator, Scharr operator, Laplacian operator and Canny edge detection operator are respectively expressed as α_fod, α_rob, α_pre, α_sch, α_lap and α_can, then the expression of the input high-pass feature is formula (1):
[0091]
[0092] The process of fully fusing the extracted spatial detail information and the hyperspectral image through the multi-feature matrix in step 2 includes the following steps:
[0093] Step 2.3: The multi-feature matrix module has multi-scale convolution and multi-feature matrix. Before fusion, the hyperspectral image is first upsampled to the same size as the RGB image, and then the upsampled hyperspectral image and the high-frequency detail features extracted by the high-frequency information extraction module are cascaded along the spectral dimension as the input of the multi-scale structure extraction;
[0094] Step 2.4: Multi-scale convolution has three different convolution kernel sizes: 3×3, 5×5, and 7×7. The three different convolution kernels are used to capture feature information of different scales. In the 3×3 convolution, n convolution kernels of size 3×3 are used to operate on the stacked image X'. The operation expression of the nth convolution kernel is formula (2):
[0095]
[0096] in: Represents the feature map obtained after applying the nth 3×3 convolution kernel;
[0097] σ represents the activation function, specifically the ReLU activation function;
[0098] I s+i-2,t+j-2 Represents the pixel value at position (s+i-2,t+j-2) in image I;
[0099] Represents the weight at position (i, j) in the nth 3×3 convolution kernel;
[0100] Represents the bias of the nth convolution kernel;
[0101] The 5×5 convolution layer uses a 5×5 convolution kernel, and the operation of the nth convolution kernel can be expressed as formula (3):
[0102]
[0103] in: Represents the feature map obtained after applying the nth 5×5 convolution kernel;
[0104] σ represents the activation function, specifically the ReLU activation function;
[0105] I s+i-2,t+j-2 Represents the pixel value at position (s+i-2,t+j-2) in image I;
[0106] Represents the weight at position (i, j) in the nth 5×5 convolution kernel;
[0107] Represents the bias of the nth convolution kernel;
[0108] The 7×7 convolution layer uses a 7×7 convolution kernel to capture a wider range of features. Its operation process can be expressed as formula (4):
[0109]
[0110] in: Represents the feature map obtained after applying the nth 7×7 convolution kernel;
[0111] σ represents the activation function, specifically the ReLU activation function;
[0112] I s+i-2,t+j-2 Represents the pixel value at position (s+i-2,t+j-2) in image I;
[0113] Represents the weight at position (i, j) in the nth 7×7 convolution kernel;
[0114] Represents the bias of the nth convolution kernel;
[0115] Step 2.5: The horizontal layer of the feature matrix module is a serialized convolution layer, which consists of different convolution layers from deep to shallow. Generally, shallow convolution is mainly used to focus on local areas with small receptive fields. Producing fine-grained features, the region lacks contextual information. In contrast, deep layers have larger receptive fields, thereby obtaining abstract features with semantic information. However, overly abstract features cannot be used in low-level visual task areas that focus on pixel reconstruction rather than understanding image content. In addition, considering that in pixel-by-pixel visual tasks, the low-level spatial information obtained by shallow convolution layers requires more attention to overcome the information redundancy that may be brought by shallow and deep convolution kernels with the same number of features, a convolution layer equal to the last layer is added after the four convolution layers, and the specific number of channels is set to [48, 32, 16, 8, 8] in sequence. Finally, each shallow and deep convolution result will be connected to maintain these two types of key information in each step.
[0116] Assume that the outputs of the multi-scale convolution are Each subsequent convolutional layer operates on the input feature map using a convolution kernel of the same size as the corresponding multi-scale convolution. The output F of the lth layer (l) The formula is (13):
[0117] F (l) =σ(W (l) *X (l-1) +b (l) ) (13)
[0118] Where W (l) is the convolution kernel weight of the lth layer, X (l-1)is the output feature map of the l-1th layer. For the first layer, X (0) is the input image, b (l) is the bias term, * represents the convolution operation, and σ represents the ReLU activation function.
[0119] As mentioned before, concatenate each shallow convolution and deep convolution result in the channel dimension. The specific calculation formula is:
[0120]
[0121] here It is the first i The output feature map of the layer, Concat means connecting these feature maps in the channel dimension direction.
[0122] The multi-feature matrix module consists of three parallel structures in the vertical direction, and their convolution kernel sizes correspond to the sizes of their corresponding multi-scale convolution kernels. Finally, the joint results of the three branches are connected in the channel dimension direction. The specific calculation formula is formula (5):
[0123]
[0124] in They represent the combined results of the three branches respectively.
[0125] The step 2 of retaining the rich spectral information of the hyperspectral image by the spectral retention module includes the following steps:
[0126] Step 2.6 is usually a MaxPooling layer, which is a downsampling operation used to reduce the dimension of the data and can capture the strongest local signal of the feature. In hyperspectral images, this helps to capture the most significant spectral features across space while reducing the computational burden. Let the input feature map be Y, and the feature value of each position (i, j) be Y i,j , the expression defined by the maximum pooling operation is formula (6):
[0127]
[0128] Among them, Y' is the feature map after pooling, (k,l) is the position of the pooling window on the input feature map Y, and the position within the window is represented by (a,b).
[0129] Step 2.7, use a 1×1 Conv to reduce the feature dimension and reduce the number of channels to reduce the complexity of the feature space, which helps the model focus on more informative spectral features and reduces overfitting that may be caused by excessive redundant information. Suppose the number of channels of the original feature map is C, then the number of channels after dimensionality reduction is C'=C / reduction, where reduction=16;
[0130] This operation can be expressed as follows:
[0131]
[0132] Where w and b are the weight and bias of the convolution kernel respectively, and Y' is the feature map after the convolution operation.
[0133] In step 2.8, the 1×1 Conv convolution is followed by the ReLU activation function, which provides nonlinear processing capabilities and allows the model to learn more complex feature representations. In hyperspectral data, this helps distinguish between signals and noise, as well as subtle spectral differences between different substances. The specific mathematical expression is formula (8):
[0134] Y"' klc' =max(0,Y” klc' ) (8)
[0135] In step 2.9, a 1×1 Conv is used to expand the number of channels back to the original dimension. This can restore the dimension suitable for the original data space after compressing the feature representation, preparing for the final attention. The mathematical expression of this step is formula (9):
[0136]
[0137] Where w' and b' are the weights and biases of the new convolution kernel.
[0138] In step 2.10, the attention weight of each channel is obtained through the Sigmoid function.
[0139] The network training process in step 3 includes the following steps:
[0140] Step 3.1, select the commonly used loss function l1 as the loss function of this network
[0141] Step 3.2, during the network training process using the stochastic gradient descent algorithm, the loss function is continuously optimized until convergence.
[0142] Furthermore, in step 3.2, the process of optimizing the loss is specifically as follows:
[0143] Select p sample pairs from the training data set to form a small batch of samples, and then perform the following in each iteration:
[0144] The stochastic gradient descent expression for the branch for high-resolution data is as follows:
[0145]
[0146] in, The loss function L constructed for steps 7.1 and 7.2 H , where m represents p sample pairs, and then the gradient descent method is used to update the model:
[0147]
[0148] here, is the loss function for the parameter θ i The partial derivative of α is the learning rate set by the model. The expression after updating the model by the gradient descent method is formula (11):
[0149]
[0150] in, Indicates the gradient of the loss function. Each time the model is updated, a sample is randomly taken. To update the parameters;
[0151] At the same time, the expression of stochastic gradient descent for the branch for low-resolution data is formula (12):
[0152]
[0153] in, The loss function L constructed in step 3.1 and step 3.2 is L ,Afterwards, similar to the high-resolution data branch, the gradient descent method is used to update the network.
[0154] In this application, the high spectral resolution in the hyperspectral image is integrated with the high spatial resolution in the RGB image to obtain a hyperspectral image with high spatial resolution and spectral resolution. First, in view of the differences in the spatial details contained in the three channels of red (Red, R), green (Green, G), and blue (Blue, B) in the RGB image, this paper proposes a high-frequency information extraction module based on multiple feature operators. This module intends to use different types of high-pass filters to fully extract the edge, contour and texture information contained in the three channel images; then, a multi-feature matrix is used to fully integrate the extracted spatial detail information and the hyperspectral image. The matrix module is composed of convolution layers of different scales in the vertical direction, which can learn feature information at different scales, thereby enhancing the receptive field of the network. The horizontal direction is a serialized convolution layer composed of different convolution layers from deep to shallow. This structure reduces the number of output channels as the network goes deeper, thereby reducing the parameters of the network. Finally, the spectral retention module is used to retain the rich spectral information of the hyperspectral image.
[0155] In order to verify the fusion results of this application, the effectiveness of the hyperspectral image fusion method based on high-frequency information extraction and multi-feature matrix proposed in this application is verified by simulation below:
[0156] First, in one embodiment of the present application, the image fusion of the Western Han Dynasty mural tomb data and modern calligraphy and painting data collected and produced by Xi'an Jiaotong University is respectively performed by the hyperspectral image fusion method based on high-frequency information extraction and multi-feature matrix proposed by the present invention. The specific process is as follows:
[0157] The experiment used the EOS 5DS single-lens digital camera produced by Canon of Japan and the hyperspectral camera of SPECIM of Finland to collect hyperspectral images and RGB images of the same scene according to the standard acquisition process, and corrected and registered them. The hyperspectral image contains 204 spectral channels. The experiment followed the Wald protocol to complete the training, using the Gaussian kernel to filter all the original images, and downsampled them 4 times to simulate low-resolution hyperspectral images. The original hyperspectral images were used as reference images. During the experiment, the data set was divided, 70% of which was used as the training set and the remaining 30% as the test set.
[0158] The experiment uses the Pytorch deep learning framework to build the HFIE-MM network and completes the training on the Nvidia GTX3080 GPU. The stochastic gradient descent (SGD) method is used for training and the weight decay is set to 10-3, the momentum is 0.9, and the patch size is 64. The number of iterations set in the experiment is 10,000 times. When the network loss tends to be stable, the network stops training. Finally, the simulation experiment fusion results are analyzed:
[0159] Attached Figure 5 This is the experimental result of comparing different fusion methods in the simulation experiment on the Yuan Dynasty mural tomb dataset; Figure 5 (a)-(f) are the fusion result images of six comparison methods, among which (a) is CNMF, (b) is GFPCA, (c) is Bayesiannaive, (d) is MSDCNN, (e) is SSFCNN, (f) is ResTFNET, (g) is Hyper-DSNet, (h) is the fusion image of the method proposed in this invention, and (i) is the reference image. Figure 5The intuitive feeling of the fused image and the spectral distortion map of the fusion result are compared in Figure 1. It can be seen that all methods (a)-(g) can improve the spatial resolution of the original hyperspectral image, but it is obvious that Figures (a), (b), and (c) have serious visual artifacts and blurs, especially the block effect of Figures (a) and (b), indicating that these methods are insufficient in processing spatial details; Figure (dg) has a significant improvement in clarity compared to the first three methods, but its spectral distortion map shows more changes compared to Figure (h), indicating that the spectral information has been deformed and lost, and the spectral fidelity is insufficient. It can be concluded that the present invention can better retain the spectral information of the source image while improving the spatial resolution of the hyperspectral image, and the obtained fused image is better and more natural.
[0160] Attached Figure 6 This is the experimental result of comparing different fusion methods on modern calligraphy and painting datasets in simulation experiments; Figure 6 (a)-(f) are the fusion result images of six comparison methods, among which (a) is CNMF, (b) is GFPCA, (c) is Bayesian naive, (d) is MSDCNN, (e) is SSFCNN, (f) is ResTFNET, (g) is Hyper-DSNet, (h) is the fusion image of the method proposed in this invention, and (i) is the reference image. Figure 6 The intuitive feeling of the fused image and the spectral distortion diagram of the fusion result are compared in Figure 1. It can be seen that all methods can improve the spatial resolution of the original hyperspectral image, but the spatial resolution quality of Figures (ac) is relatively low. Although Figure (d) shows clear spatial detail information, it introduces spectral distortion, especially in the lower right corner, and (f) and (g) also have the same spectral distortion phenomenon. Figure (h) is better than other methods in terms of both spatial structure and spectral distortion. This shows that the method proposed in the present invention can effectively improve the spatial resolution of hyperspectral images.
[0161] Visual evaluation and comparison can provide a more intuitive understanding of the fusion results, but it is difficult to give the most accurate judgment of the fusion results by relying solely on subjective evaluation. Therefore, it is necessary to evaluate the fusion results in combination with objective indicators. This embodiment uses five objective evaluation indicators, namely PSNR, SAM, CC, RMSE, and ERGAS, to comprehensively evaluate the image. Among them, PSNR stands for peak signal-to-noise ratio, which is an objective standard for evaluating images. SAM represents global spectral distortion measurement, which reflects the color difference between two images, and its optimal value is 0. CC represents the correlation coefficient, which evaluates the similarity of spectral and spatial information between the bands of two images from a statistically relevant perspective. RMSE is the root mean square error. ERGAS is a weighted sum based on RMSE, which represents the fidelity of the image, and its optimal value is 0.
[0162] Table 1 Index evaluation results of different methods on the Yuan Dynasty mural tomb dataset
[0163]
[0164]
[0165] Table 2 Index evaluation results of different methods on modern calligraphy and painting datasets
[0166]
[0167] Table 1 and Table 2 are objective indicators of the images in the Yuan Dynasty mural tomb dataset and the modern painting and calligraphy dataset for the results of different fusion methods. It can be seen from Table 1 and Table 2 that most of the objective indicators of this embodiment are better than other methods, among which the PSNR and SAM values of this embodiment are significantly better than other methods, indicating that the method given in this embodiment can well improve the spatial resolution of the hyperspectral image while maintaining the spectral characteristics of the hyperspectral image.
[0168] Combining visual evaluation and objective index evaluation, the hyperspectral image fusion method based on high-frequency information extraction and multi-feature matrix given in this embodiment can well obtain a fused image with high spatial and high spectral resolution.
[0169] The above are only a few embodiments of the present application and do not constitute any form of limitation to the present application. Although the present application is disclosed as above with preferred embodiments, it is not intended to limit the present application. Any technician familiar with the profession, without departing from the scope of the technical solution of the present application, using the technical content disclosed above to make slight changes or modifications are equivalent to equivalent implementation cases and fall within the scope of the technical solution.
Claims
1. A hyperspectral image fusion method based on high-frequency information extraction and multi-feature matrix, characterized in that: The following steps are involved: Step 1: Establish a training data set of low-resolution hyperspectral images and high-resolution RGB images, where the RGB images are red, green and blue images; Step 2: Obtain the fusion result Y of the low-resolution hyperspectral image and the high-resolution RGB image through high-frequency information extraction and multi-feature matrix network model; Step 3: Using the stochastic gradient descent algorithm, the training data set is used to perform network training on the high-frequency information extraction and multi-feature matrix model to obtain a fusion model; The method for obtaining the fusion result Y in step 2 is as follows: first, a high-frequency information extraction module based on multiple feature operators is used to fully extract the edge, contour and texture information contained in the three channel images of the RGB image; then, the extracted spatial detail information and the hyperspectral image are fully fused through a multi-feature matrix; finally, the spectral retention module is used to retain the rich spectral information of the hyperspectral image, and the saved spectral information is injected into the fusion result.
2. The method for fusion of hyperspectral images based on high-frequency information extraction and multi-feature matrix according to claim 1 is characterized in that: The method for fully extracting the RGB image in step 2 comprises the following steps: Step 2.1: The original RGB image is first separated into full-color images of three channels, R, G, and B. Then, the full-color image of each channel is subjected to six high-pass operators to extract multi-level high-frequency information, which is then concatenated with the full-color image of each channel as input. The six high-pass operators are: first-order difference operator, Robert operator, Perwitt operator, Scharr operator, Laplacian operator, and Canny edge detection operator. Step 2.2: The first-order difference operator, Robert operator, Perwitt operator, Scharr operator, Laplacian operator and Canny edge detection operator are respectively expressed as α_fod, α_rob, α_pre, α_sch, α_lap and α_can, and the input high-pass feature can be expressed as formula (1): X=(a fod *R,a rob *R,a pre *R,a sch *R,a lap *R,a can *R,R)+(a fod *G,a rob *G,a pre *G,a sch *G,a lap *G,a can *G,G)+(a fod *B,a rob *B,a pre *B,a sch *B,a lap *B,a can *B,B)# (1).
3. The method for fusion of hyperspectral images based on high-frequency information extraction and multi-feature matrix according to claim 1 is characterized in that: The process of fully fusing the extracted spatial detail information and the hyperspectral image through the multi-feature matrix in step 2 includes the following steps: Step 2.3: The multi-feature matrix module has multi-scale convolution and multi-feature matrix. Before fusion, the hyperspectral image is first upsampled to the same size as the RGB image, and then the upsampled hyperspectral image and the high-frequency detail features extracted by the high-frequency information extraction module are cascaded along the spectral dimension as the input of the multi-scale structure extraction; Step 2.4: Multi-scale convolution has three different sizes of convolution kernels: 3×3, 5×5, and 7×7. The three different convolution kernels are used to capture feature information of different scales: In the 3×3 convolution, n convolution kernels of size 3×3 are used to operate on the stacked image X'. The operation of the nth convolution kernel is formula (2): in: Represents the feature map obtained after applying the nth 3×3 convolution kernel; σ represents the activation function, specifically the ReLU activation function; I s+i-2,t+j-2 Represents the pixel value at position (s+i-2,t+j-2) in image I; Represents the weight at position (i, j) in the nth 3×3 convolution kernel; Represents the bias of the nth convolution kernel; The 5×5 convolution layer uses a 5×5 convolution kernel, and the operation of the nth convolution kernel can be expressed as formula (3): in: Represents the feature map obtained after applying the nth 5×5 convolution kernel; σ represents the activation function, specifically the ReLU activation function; I s+i-2,t+j-2 Represents the pixel value at position (s+i-2,t+j-2) in image I; Represents the weight at position (i, j) in the nth 5×5 convolution kernel; Represents the bias of the nth convolution kernel; The 7×7 convolution layer uses a 7×7 convolution kernel, and the operation of the nth convolution kernel can be expressed as formula (4): in: Represents the feature map obtained after applying the nth 7×7 convolution kernel; σ represents the activation function, specifically the ReLU activation function; I s+i-2,t+j-2 Represents the pixel value at position (s+i-2,t+j-2) in image I; Represents the weight at position (i, j) in the nth 7×7 convolution kernel; Represents the bias of the nth convolution kernel; Step 2.5: The horizontal layer of the multi-feature matrix module is a serialized convolution layer, which consists of different convolution layers from deep to shallow. After the four convolution layers, a convolution layer equal to the last layer is added. The specific number of channels is set to [48, 32, 16, 8, 8] in sequence; Each shallow and deep convolution result will be concatenated to keep these two types of key information at each step; The multi-feature matrix module consists of three parallel structures in the vertical direction, and their convolution kernel sizes correspond to the sizes of their corresponding multi-scale convolution kernels. Finally, the joint results of the three branches are connected in the channel dimension direction. The specific calculation formula is formula (5): in They represent the combined results of the three branches respectively.
4. The method for fusion of hyperspectral images based on high-frequency information extraction and multi-feature matrix according to claim 1 is characterized in that: The step 2 of retaining the rich spectral information of the hyperspectral image by the spectral retention module includes the following steps: Step 2.6, setting a MaxPooling layer, wherein the MaxPooling layer is a downsampling operation, which is used to reduce the dimension of the data and can capture the strongest local signal of the feature; Assume that the input feature map is Y, and the feature value of each position (i, j) is Yi ,j , the definition of the maximum pooling operation is shown in formula (6): Where Y' is the feature map after pooling, (k, l) is the position of the pooling window on the input feature map Y, and the position within the window is represented by (a, b). Step 2.7, use a 1×1Conv to perform feature dimensionality reduction; Assuming that the number of channels of the original feature map is C, the number of channels after dimensionality reduction is C' = C / reduction, where reduction = 16. This operation expression (7) is: Where w and b are the weight and bias of the convolution kernel respectively, and Y' is the feature map after the convolution operation. In step 2.8, the 1×1 Conv convolution is followed by the ReLU activation function, which is used to provide nonlinear processing capabilities, allowing the model to learn more complex feature representations. In hyperspectral data, this helps to distinguish signals from noise, as well as subtle spectral differences between different substances. The specific mathematical expression (8) is: AND"' klc =max(0,Y” klc' ) (8) In step 2.9, a 1×1 Conv is used to expand the number of channels back to the original dimension, which is used to restore the dimension suitable for the original data space after compressing the feature representation, in preparation for the final attention. The mathematical expression (9) is: Where w' and b' are the weights and biases of the new convolution kernel. In step 2.10, the attention weight of each channel is obtained through the Sigmoid function.
5. The method for fusion of hyperspectral images based on high-frequency information extraction and multi-feature matrix according to claim 1 is characterized in that: The network training process in step 3 includes the following steps: Step 3.1, select the commonly used loss function L L is the loss function of this network; Step 3.2, during the network training process using the stochastic gradient descent algorithm, the loss function is continuously optimized until convergence.
6. The method for fusion of hyperspectral images based on high-frequency information extraction and multi-feature matrix according to claim 5 is characterized in that: The specific process of optimizing the loss is as follows: p sample pairs are selected from the training data set to form a small batch of samples, and then the following is performed in each iteration: The expression (10) for the stochastic gradient descent of the branch for high-resolution data is: in, The loss function L constructed for steps 7.1 and 7.2 H , where m represents p sample pairs, and then the gradient descent method is used to update the model: here, is the loss function for the parameter θ i The partial derivative of , α is the learning rate set by the model, and the expression (11) after updating the model by the gradient descent method is as follows: in, Indicates the gradient of the loss function. Each time the model is updated, a sample is randomly taken. To update the parameters; At the same time, the expression (12) for the stochastic gradient descent of the branch for low-resolution data is: in, The loss function L constructed in step 3.1 and step 3.2 is L ,Afterwards, similar to the high-resolution data branch, the gradient descent method is used to update the network.
7. The method for fusion of hyperspectral images based on high-frequency information extraction and multi-feature matrix according to claim 1 is characterized in that: The hyperspectral images and RGB images in the training data set in step 1 are multiple pairs of hyperspectral images and RGB images of multiple scenes.
Citation Information
Patent Citations
Wheat scab disease severity prediction method based on hyperspectral image and spectral feature fusion technology
CN110929944A
Hyperspectral image fusion method based on dual-resolution residual mutual guidance network
CN116342994A
Refined segmentation system, method and device of image shadow area
US20210065371A1
Hyperspectral image classification method based on rich context network
WO2023019698A1
Cited By
Hyperspectral and panchromatic image fusion method based on feature enhancement channel shuffling
CN119649057A
Infrared visible light image fusion method for complex lighting environment
CN119784603A
An infrared and visible light image fusion method for complex lighting environment
CN119784603B
