A hyperspectral image super-resolution reconstruction method based on feature diversity extraction

By constructing a method for feature diversity extraction and improving 3D subpixel convolution, the problem of insufficient feature extraction in hyperspectral image super-resolution reconstruction is solved, achieving more refined image reconstruction results and improving the fusion and utilization of spectral and spatial dimensional information.

CN117173020BActive Publication Date: 2026-11-24XIDIAN UNIV
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311137915.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-05
Publication Date
2026-11-24
Estimated Expiration
2043-09-05

AI Technical Summary

Technical Problem

Existing technologies fail to fully extract image features in hyperspectral image super-resolution reconstruction, resulting in image distortion and insufficient utilization of spectral dimensional information, leaving little room for improvement.

Method used

We employ a feature diversity extraction-based approach, constructing a 3D convolutional topology and channel attention mechanism, combined with improved 3D subpixel convolution to enhance the fusion of spatial and spectral dimensional information. We design a feature diversity extraction subnetwork and an image reconstruction subnetwork to achieve super-resolution reconstruction of hyperspectral images.

Benefits of technology

It effectively improves the reconstruction effect of hyperspectral images, enhances the fusion and utilization of feature information, realizes more refined image reconstruction, and overcomes the problem of insufficient feature extraction in existing technologies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117173020B_ABST
    Figure CN117173020B_ABST
Patent Text Reader

Abstract

A hyperspectral image super-resolution reconstruction method based on feature diversity extraction includes: generating a hyperspectral image training set and a test set; constructing a feature diversity extraction sub-network; constructing an image reconstruction sub-network based on improved 3D subpixel convolution; constructing a hyperspectral image super-resolution reconstruction network based on feature diversity extraction based on the feature diversity extraction sub-network and the image reconstruction sub-network based on improved 3D subpixel convolution; inputting the training set into the hyperspectral image super-resolution reconstruction network based on feature diversity extraction for training; and inputting the test set into the trained hyperspectral image super-resolution reconstruction network based on feature diversity extraction for super-resolution reconstruction. This invention can decouple and re-fuse from three dimensions of hyperspectral images, effectively utilizing different features and the complementarity between features, resulting in a more refined reconstructed hyperspectral image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of hyperspectral image super-resolution reconstruction technology, specifically relating to a hyperspectral image super-resolution reconstruction method based on feature diversity extraction. Background Technology

[0002] With the rapid development of the global aerospace industry and optical imaging sensors, the United States pioneered the development of the first-generation hyperspectral sensor (AIS-1) in the 1980s. Subsequently, hyperspectral imaging technology developed rapidly, with many countries participating in the competition. In the early 21st century, the Chinese Academy of Sciences successfully launched a space-grade hyperspectral imaging device into space, making my country the second major spacefaring nation in the world to master this technology. Due to continuous technological advancements, hyperspectral imaging has become a cutting-edge technology with significant scientific research value and practical applications. Furthermore, with the development of drones and satellites, and the continuous improvement of image intelligence, hyperspectral images will undoubtedly play a crucial role in the era of big data.

[0003] In their paper (Zhang, J.; Zheng, R.; Chen, X.; Hong, Z.; Li, Y.; Lu, R. Spectral Correlation and Spatial High–Low Frequency Information of Hyperspectral Image Super-Resolution Network. Remote Sens. 2023, 15, 2472.), Z. Jing et al. disclosed a method for hyperspectral image super-resolution reconstruction based on spectrum-guided attention. The specific implementation process of this method is as follows: (1) Extract shallow features from the input image through a convolutional layer with a kernel size of 3×3×3. (2) Pass the shallow features sequentially through four spectral hybrid attention modules, each of which includes: a spatial spectral attention module, a channel spectral attention module, and a spectral self-attention module. (3) Fuse the output features of the first three spectral hybrid attention modules using a multi-level feature fusion module based on spatial high and low frequency information and add them to the output of the fourth spectral hybrid attention module. (4) Upsample the integrated features through sub-pixel convolution to obtain the final result image.

[0004] However, existing technologies have the following main drawbacks:

[0005] One problem is that the convolutional neural network loses detailed information of the image due to insufficient extraction of hyperspectral image features, resulting in severe distortion of the reconstructed super-resolution image.

[0006] Second: Existing technologies do not fully utilize the characteristics of hyperspectral images in the super-resolution reconstruction stage, and do not give sufficient attention to spectral dimensional information, resulting in significant room for improvement in the super-resolution reconstructed hyperspectral images. 、 Summary of the Invention

[0007] To overcome the shortcomings of the existing technologies, the present invention aims to provide a hyperspectral image super-resolution reconstruction method based on feature diversity extraction. This method mathematically models the feature extraction process and, by changing the 3D convolution topology, improves the expression of feature map feature diversity without increasing the number of parameters, proposing a 3D feature extraction convolution. Furthermore, it fully integrates spatial and spectral dimensional information, enhancing beneficial channel dimensional information, and proposes a channel attention-based spatial-spectral feature extraction module. Simultaneously, for the image reconstruction stage, it fully utilizes the characteristics of hyperspectral images, enhancing the fusion of spectral and spatial dimensional information by upsampling the hyperspectral image, thereby fully integrating feature information from different dimensions of the hyperspectral image to achieve a more refined reconstruction effect.

[0008] To achieve the above objectives, the technical solution adopted by the present invention is as follows:

[0009] A hyperspectral image super-resolution reconstruction method based on feature diversity extraction includes the following steps:

[0010] Step 1: Generate a training set and a test set of hyperspectral images;

[0011] Step 2: Construct a feature diversity extraction subnetwork;

[0012] Step 3: Construct an image reconstruction subnetwork based on improved 3D subpixel convolution;

[0013] Step 4: Based on the feature diversity extraction subnetwork built in Step 2 and the image reconstruction subnetwork based on improved 3D subpixel convolution built in Step 3, construct a hyperspectral image super-resolution reconstruction network based on feature diversity extraction.

[0014] Step 5: Input the training set generated in Step 1 into the hyperspectral image super-resolution reconstruction network based on feature diversity extraction built in Step 4 for training;

[0015] Step 6: Input the test set obtained in Step 1 into the hyperspectral image super-resolution reconstruction network trained in Step 5 based on feature diversity extraction for super-resolution reconstruction.

[0016] The specific method for step 1 is as follows:

[0017] Step 1.1: Divide the original hyperspectral image dataset into a training set and a test set. Then, perform downsampling operations of 1, 3 / 4 and 1 / 2 times on both the training set and the test set respectively. Use bicubic downsampling for the downsampling operation. Use the sampled images as the initial high-resolution images of the training set and the test set at the three magnification factors.

[0018] Step 1.2: Normalize the initial high-resolution images of the training set and test set from Step 1.1, and limit the pixel values ​​of the initial high-resolution images to the range of [0,1] to obtain the initial normalized high-resolution images of the training set and test set.

[0019] Step 1.3: The initial normalized high-resolution images in the training set obtained in Step 1.2 are randomly cropped with overlap to obtain smaller image patches. The image patches are then randomly rotated at angles of 90°, 180°, and 270°. The image patches are used as normalized reference labels for the training set.

[0020] Step 1.4: Perform downsampling on the normalized reference labels of the training set obtained in Step 1.3 and the initial normalized high-resolution images of the test set in Step 1.2. Use bicubic downsampling to obtain low-resolution images in the training and test sets. Combine each low-resolution image in the training set with the normalized reference label image of the training set in Step 1.3 to form a training set image pair. Combine the low-resolution images in the test set with the initial normalized high-resolution images of the test set in Step 1.2 to form a test set image pair.

[0021] The specific method for step 2 is as follows:

[0022] Step 2.1: Construct the feature diversity enhancement layer, whose structure is as follows: first convolutional layer, first activation layer, second convolutional layer, third convolutional layer, second activation layer, fourth convolutional layer, fifth convolutional layer, third activation layer, sixth convolutional layer, seventh convolutional layer, and mathematical operation layer.

[0023] Specifically, the size of the first and second convolutional layers is set to 3×1×1, and the stride is set to 1; the size of the third and fourth convolutional layers is set to 1×3×1, and the stride is set to 1; the size of the fifth and sixth convolutional layers is set to 1×1×3, and the stride is set to 1; the size of the seventh convolutional layer is set to 1×1×1, and the stride is set to 1; the first, second, and third activation layers are all implemented using the LeakyReLu function, and the slope of the function in the negative part is set to 0.01; the mathematical operation layer uses pixel-wise addition.

[0024] Step 2.2: Construct the spatial-spectral feature extraction layer, whose structure is as follows: first convolutional layer, second convolutional layer, mathematical operation layer, activation layer, and third convolutional layer;

[0025] The first convolutional layer has a size of 1×3×3 and a stride of 1; the second convolutional layer has a size of 3×1×1 and a stride of 1; the mathematical operation layer uses pixel-wise addition; the activation layer is implemented using the LeakyReLu function, with a slope of 0.01 in the negative part; and the third convolutional layer has a size of 3×1×1 and a stride of 1.

[0026] Step 2.3: Construct a spatial-spectral feature extraction layer based on channel attention. Its structure is as follows: feature diversity enhancement layer, spatial-spectral feature extraction layer, first pooling layer, second pooling layer, first convolutional layer, first activation layer, second convolutional layer, second activation layer, and mathematical operation layer.

[0027] The first pooling layer uses max pooling; the second pooling layer uses average pooling; the size of both the first and second convolutional layers is set to 1×1×1, the stride is set to 1, and the output is padded with zeros to [0,0,0]; the first activation layer is implemented using the LeakyReLu function, with the slope of the function in the negative part set to 0.01; the second activation layer is implemented using the sigmoid function; the mathematical operation layer uses pixel-wise multiplication.

[0028] Step 2.4: Construct a feature diversity extraction sub-network, whose structure is as follows: convolutional layer, activation layer, first channel attention-based spatial-spectral feature extraction layer, first mathematical operation layer, second channel attention-based spatial-spectral feature extraction layer, second mathematical operation layer, third channel attention-based spatial-spectral feature extraction layer, third mathematical operation layer, fourth channel attention-based spatial-spectral feature extraction layer and fourth mathematical operation layer;

[0029] The convolutional layers are all set to a size of 1×1×1 and a stride of 1; the activation layers are all implemented using the LeakyReLu function, with the slope of the function in the negative part set to 0.01; and the first, second, third, and fourth mathematical operation layers all use pixel-wise multiplication.

[0030] The specific method for step 3 is as follows:

[0031] An image reconstruction subnetwork based on improved 3D subpixel convolution is constructed, with the following structure in sequence: first convolutional layer, second convolutional layer, reconstruction layer, third convolutional layer, first transposed convolutional layer, fourth convolutional layer, first activation layer, fifth convolutional layer, second activation layer, mathematical operation layer, sixth convolutional layer, seventh convolutional layer, eighth convolutional layer, ninth convolutional layer, and third activation layer.

[0032] Specifically, the size of the first and third convolutional layers is set to 3×3×3, and the stride is set to 1; the size of the second, fourth, fifth, and ninth convolutional layers is set to 1×1×1, and the stride is set to 1; the size of the sixth convolutional layer is set to 3×1×1, and the stride is set to 1; the size of the seventh convolutional layer is set to 1×3×1, and the stride is set to 1; the size of the eighth convolutional layer is set to 1×1×3, and the stride is set to 1; the reconstruction layer is a subpixel convolution with the parameter being the magnification factor; the first and third activation layers are implemented using the LeakyReLu function, with the slope of the function in the negative part set to 0.01; the second activation layer is implemented using the sigmoid function; and the mathematical operation layer uses pixel-wise multiplication.

[0033] The specific method for step 4 is as follows:

[0034] A hyperspectral image super-resolution reconstruction network based on feature diversity extraction is constructed, and its structure consists of: a shallow feature extraction layer, a feature diversity extraction sub-network, and an image reconstruction sub-network based on improved 3D subpixel convolution.

[0035] The shallow feature extraction layer consists of convolutional layers and activation layers. The size of the convolutional layers is set to 3×3×3 and the stride is set to 1. The activation layers are implemented using the LeakyReLu function, and the slope of the function in the negative part is set to 0.01.

[0036] In step 5, the parameters set in the network are iteratively updated through backpropagation and gradient descent until the final loss function approaches convergence, and finally the trained hyperspectral image super-resolution reconstruction network based on feature diversity extraction is obtained.

[0037] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0038] First, by constructing a hyperspectral image super-resolution reconstruction network based on feature diversity extraction, this invention overcomes the problem that existing technologies cannot fully extract hyperspectral image features, enabling this invention to more effectively perform super-resolution reconstruction of hyperspectral images from both spectral and spatial dimensions.

[0039] Secondly, by constructing an image reconstruction subnetwork based on improved 3D subpixel convolution, this invention can enhance the detail information of hyperspectral image super-resolution reconstruction and achieve better reconstruction results.

[0040] Third, by combining a feature diversity extraction subnetwork and an improved 3D subpixel convolution image reconstruction subnetwork, this invention enables the network to decouple and re-integrate from the three dimensions of the hyperspectral image, effectively making full use of different features and the complementarity between features, resulting in a more refined reconstructed hyperspectral image.

[0041] In summary, by designing a sub-network based on feature diversity and an image reconstruction sub-network based on improved 3D subpixel convolution, this invention can overcome the problem that existing technologies cannot fully utilize the coupling information between features of different dimensions to achieve more comprehensive feature extraction and more refined reconstruction results. It has the characteristics of adaptive decoupling and fusion of feature information of different dimensions. Attached Figure Description

[0042] Figure 1 This is a flowchart of the present invention.

[0043] Figure 2 This is a schematic diagram of the feature diversity enhancement layer of the present invention.

[0044] Figure 3 This is a schematic diagram of the space-spectral feature extraction layer of the present invention.

[0045] Figure 4 This is a schematic diagram of the spatial-spectral feature extraction layer based on channel attention of the present invention.

[0046] Figure 5 This is a schematic diagram of the feature diversity extraction subnetwork of the present invention.

[0047] Figure 6 This is a schematic diagram of the image reconstruction subnetwork based on improved 3D subpixel convolution of the present invention.

[0048] Figure 7 This is a schematic diagram of the hyperspectral image super-resolution reconstruction network based on feature diversity extraction according to the present invention. Detailed Implementation

[0049] The technical solution of the present invention will be further analyzed and described below with reference to the accompanying drawings.

[0050] The purpose of this invention is to address the shortcomings of existing technologies by proposing a hyperspectral image super-resolution reconstruction method based on feature diversity extraction. Specifically, it involves a super-resolution reconstruction method based on feature map feature diversity and image upsampling in hyperspectral image processing, which solves the problem of insufficient image feature extraction and super-resolution reconstruction in hyperspectral image super-resolution reconstruction. This invention can be used to perform super-resolution reconstruction of hyperspectral images, magnifying the target image without losing image detail information.

[0051] A hyperspectral image super-resolution reconstruction method based on feature diversity extraction includes the following steps:

[0052] like Figure 1 As shown, step 1: Generate a training set and a test set of hyperspectral images;

[0053] Step 1.1: Divide the original hyperspectral image dataset into training set and test set in a 1:4 ratio. Then, perform downsampling operations on both the training set and the test set by multiples of 1, 3 / 4 and 1 / 2 respectively. Use bicubic downsampling for the downsampling operation. Use the sampled images as the initial high-resolution images of the training set and the test set at the three magnification factors.

[0054] Step 1.2: Normalize the initial high-resolution images of the training and test sets from Step 1.1, limiting the pixel values ​​of the initial high-resolution images to the range of [0,1], to obtain the initial normalized high-resolution images of the training and test sets. Normalization can unify the numerical scale of different input samples, increase the generalization of the network, and accelerate the convergence of the network.

[0055] Step 1.3 involves randomly cropping the initial normalized high-resolution images in the training set obtained in Step 1.2 with overlaps to obtain smaller image patches. These image patches are then randomly rotated at angles of 90°, 180°, and 270°. These image patches are used as normalized reference labels for the training set. Random cropping and rotation can increase the diversity of training samples, reduce the network's dependence on certain attributes, and make the trained model have stronger generalization ability.

[0056] Step 1.4: The normalized reference labels of the training set obtained in Step 1.3 and the initial normalized high-resolution images of the test set from Step 1.2 are downsampled using bicubic downsampling to obtain low-resolution images in both the training and test sets. Each low-resolution image in the training set is paired with the normalized reference label image from Step 1.3 to form a training set image pair, and the low-resolution images in the test set are paired with the initial normalized high-resolution image from Step 1.2 to form a test set image pair. The low-resolution images in the training set serve as the network input, and the normalized reference label images in the training set serve as a reference during network training, providing gradient magnitude and direction during backpropagation. The image pairs in the test set provide the network with the true reconstruction results during the reconstruction phase.

[0057] Step 2: Construct a feature diversity extraction subnetwork;

[0058] like Figure 2 As shown in step 2.1, the feature diversity enhancement layer is constructed, and its structure is as follows: first convolutional layer, first activation layer, second convolutional layer, third convolutional layer, second activation layer, fourth convolutional layer, fifth convolutional layer, third activation layer, sixth convolutional layer, seventh convolutional layer, and mathematical operation layer.

[0059] Specifically, the size of the first and second convolutional layers is set to 3×1×1, and the stride is set to 1; the size of the third and fourth convolutional layers is set to 1×3×1, and the stride is set to 1; the size of the fifth and sixth convolutional layers is set to 1×1×3, and the stride is set to 1; the size of the seventh convolutional layer is set to 1×1×1, and the stride is set to 1; the first, second, and third activation layers are all implemented using the LeakyReLu function, and the slope of the function in the negative part is set to 0.01; the mathematical operation layer uses pixel-wise addition.

[0060] Feature diversity enhancement layers can enhance input features by raising the upper rank limit of the extracted feature map matrix.

[0061] like Figure 3 As shown in step 2.2, the spatial-spectral feature extraction layer is constructed, and its structure is as follows: first convolutional layer, second convolutional layer, mathematical operation layer, activation layer, and third convolutional layer;

[0062] The first convolutional layer has a size of 1×3×3 and a stride of 1; the second convolutional layer has a size of 3×1×1 and a stride of 1; the mathematical operation layer uses pixel-wise addition; the activation layer is implemented using the LeakyReLu function, with a slope of 0.01 in the negative part; and the third convolutional layer has a size of 3×1×1 and a stride of 1.

[0063] The spatial-spectral feature extraction layer decouples and fuses the feature map from both spatial and spectral dimensions, enhancing the fusion and utilization of spatial and spectral information and improving the reconstruction effect.

[0064] like Figure 4 As shown in step 2.3, a spatial-spectral feature extraction layer based on channel attention is constructed. Its structure is as follows: feature diversity enhancement layer, spatial-spectral feature extraction layer, first pooling layer, second pooling layer, first convolutional layer, first activation layer, second convolutional layer, second activation layer, and mathematical operation layer.

[0065] In this system, the first pooling layer uses max pooling, and the second pooling layer uses average pooling. The size of both the first and second convolutional layers is set to 1×1×1, the stride is set to 1, and the output is padded with zeros to [0,0,0]. The first activation layer is implemented using the LeakyReLu function, with the slope of the function in the negative part set to 0.01. The second activation layer is implemented using the sigmoid function. The mathematical operation layer uses pixel-wise multiplication.

[0066] The feature extraction process is mathematically modeled. By changing the 3D convolution topology, the expression of feature map feature diversity is improved without increasing the number of parameters. It also fully integrates spatial and spectral dimension information and enhances beneficial channel dimension information. A spatial-spectral feature extraction module based on channel attention is proposed.

[0067] By introducing a channel attention mechanism, the network can selectively and adaptively allocate weights for different input features, and effectively combine different feature mapping relationships with a spatial-spectral feature extraction layer.

[0068] like Figure 5 As shown in step 2.4, a feature diversity extraction sub-network is constructed, the structure of which is as follows: convolutional layer, activation layer, first channel attention-based spatial-spectral feature extraction layer, first mathematical operation layer, second channel attention-based spatial-spectral feature extraction layer, second mathematical operation layer, third channel attention-based spatial-spectral feature extraction layer, third mathematical operation layer, fourth channel attention-based spatial-spectral feature extraction layer and fourth mathematical operation layer.

[0069] The convolutional layers are all set to a size of 1×1×1 and a stride of 1; the activation layers are all implemented using the LeakyReLu function, with the slope of the function in the negative part set to 0.01; and the first, second, third, and fourth mathematical operation layers all use pixel-wise multiplication.

[0070] By cross-fusion of four channel attention-based spatial-spectral feature extraction layers, the depth and width of the network can be effectively increased, greatly enhancing the network's learning ability. At the same time, the reconstruction of image features is decoupled and fused from the three dimensions of channel, space and spectrum, resulting in a more superior reconstruction effect.

[0071] like Figure 6 As shown, in step 3, an image reconstruction subnetwork based on improved 3D subpixel convolution is constructed;

[0072] An image reconstruction subnetwork based on improved 3D subpixel convolution is constructed, with the following structure in sequence: first convolutional layer, second convolutional layer, reconstruction layer, third convolutional layer, first transposed convolutional layer, fourth convolutional layer, first activation layer, fifth convolutional layer, second activation layer, mathematical operation layer, sixth convolutional layer, seventh convolutional layer, eighth convolutional layer, ninth convolutional layer, and third activation layer.

[0073] Specifically, the size of the first and third convolutional layers is set to 3×3×3, and the stride is set to 1; the size of the second, fourth, fifth, and ninth convolutional layers is set to 1×1×1, and the stride is set to 1; the size of the sixth convolutional layer is set to 3×1×1, and the stride is set to 1; the size of the seventh convolutional layer is set to 1×3×1, and the stride is set to 1; the size of the eighth convolutional layer is set to 1×1×3, and the stride is set to 1; the reconstruction layer is a subpixel convolution with the parameter being the magnification factor; the first and third activation layers are implemented using the LeakyReLu function, with the slope of the function in the negative part set to 0.01; the second activation layer is implemented using the sigmoid function; and the mathematical operation layer uses pixel-wise multiplication.

[0074] An image reconstruction module based on improved 3D subpixel convolution was designed; by utilizing the advantages of 3D subpixel convolution and 3D transposed convolution, hyperspectral images were super-resolution upsampled to obtain hyperspectral images with higher image details.

[0075] By combining 3D subpixel convolution and transposed convolution, the reconstruction part can make full use of spectral dimension information features while minimizing the number of parameters.

[0076] like Figure 7 As shown, in step 4, a hyperspectral image super-resolution reconstruction network based on feature diversity extraction is constructed based on the feature diversity extraction sub-network built in step 2 and the image reconstruction sub-network based on improved 3D subpixel convolution built in step 3.

[0077] A hyperspectral image super-resolution reconstruction network based on feature diversity extraction was constructed. Its structure consists of: a shallow feature extraction layer, a feature diversity extraction sub-network, and an image reconstruction sub-network based on improved 3D subpixel convolution.

[0078] The shallow feature extraction layer consists of convolutional layers and activation layers. The size of the convolutional layers is set to 3×3×3 and the stride is set to 1. The activation layers are implemented using the LeakyReLu function, and the slope of the function in the negative part is set to 0.01.

[0079] This network, starting from feature diversity, channel dimension, spatial dimension, and spectral dimension, greatly improves the network's utilization of input features, fully integrates feature information from different dimensions, and improves the network reconstruction effect.

[0080] The feature diversity extraction subnetwork and the image reconstruction subnetwork based on improved 3D subpixel convolution are obtained from steps 2 and 3, respectively.

[0081] Step 5: Input the training set generated in Step 1 into the hyperspectral image super-resolution reconstruction network based on feature diversity extraction built in Step 4 for training;

[0082] By iteratively updating the parameters set in the network through backpropagation and gradient descent until the final loss function approaches convergence, a trained super-resolution network based on the fusion of spectral information and spatial high and low frequency information features is finally obtained.

[0083] Step 6: Input the test set obtained in Step 1 into the hyperspectral image super-resolution reconstruction network trained in Step 5 based on feature diversity extraction for super-resolution reconstruction; thereby performing super-resolution reconstruction on the real hyperspectral image.

[0084] The effects of this invention will be further illustrated below with simulation experiments:

[0085] 1. Simulation experimental conditions:

[0086] The hardware platform for the simulation experiment of this invention consists of four NVIDIA RTX2080Ti graphics cards with 11GB of video memory each, and an Intel(R) Core(TM) CPU i9-10900X@3.70GHz processor with 32GB of memory.

[0087] The software platform for the simulation experiment of this invention is a code execution environment built in the Anaconda Python 3.6 virtual environment, which includes important environment libraries such as PyTorch-1.1.0+cu100 and Matplotlib-3.3.3.

[0088] 2. Simulation content and result analysis:

[0089] In the simulation experiments involved in this invention, the CAVE dataset, constructed from 32 hyperspectral images created by Sony Corporation of Japan, was used. This dataset was randomly selected, and 25 hyperspectral images were chosen for the experiments. Each selected hyperspectral image was cropped to a size of 64×64×31 pixels. After rotation, downsampling, and normalization, a training dataset was generated. The remaining 7 hyperspectral images from the CAVE dataset formed the test set.

[0090] The simulation experiment of this invention utilizes the method described herein to construct a super-resolution network based on feature diversity extraction. The experiment first trains the super-resolution network using the CAVE dataset in the training set. Then, the processed CAVE hyperspectral images from the test set are input into the trained super-resolution network based on feature diversity extraction to complete the super-resolution image reconstruction. Finally, the reconstructed super-resolution images from seven hyperspectral images are obtained.

[0091] To verify the simulation results of this invention, the upsampling coefficient was set to 4, and the average peak signal-to-noise ratio (PSNR) of the seven hyperspectral super-resolution reconstructed images was calculated using the following formula, which yielded a result of 39.389 dB.

[0092]

[0093]

[0094] Among them, MSE(I HR I SR ) represents the two hyperspectral images I input into the formula. HR and I SR The mean square error (MSE) was calculated. and Indicates the corresponding hyperspectral image I HR and I SR The pixel value at coordinate (i, j), PSNR(i) HR I SR ) represents the two hyperspectral images I input into the formula. HR and I SR The calculated peak signal-to-noise ratio (PSNR) value, log 10 (·) represents a base-10 logarithmic operation. This indicates that the summation is performed on the image based on its width W and length H respectively.

[0095] Using the following formula for average spectral angle similarity (SAM), the average spectral angle similarity of the seven hyperspectral super-resolution reconstructed images was calculated, and the result was 3.523.

[0096]

[0097]

[0098] Where, θ(z) * , z h ) represents the two sets of vectors z input into the formula. * and z h Calculate cosine similarity, cos -1 (·) indicates the cosine similarity calculation operation, SAM(I HR I SR ) represents the two hyperspectral images I input into the formula. HR and I SR The calculated SAM value, This indicates summing over each pixel of the image.

[0099] The simulation experiments above demonstrate that this invention, by adding a feature diversity extraction subnetwork to the network, can fully utilize the coupling relationship between channels, space, and spectrum. Through decoupling and fusion, it mines joint features from hyperspectral image data and utilizes adaptive adjustments via channel attention mechanisms to greatly fuse feature information across the three dimensions. This improves the ability to capture feature mapping information during super-resolution reconstruction, effectively enhancing the reconstruction results. Simultaneously, the added image reconstruction subnetwork based on improved 3D sub-pixel convolution significantly alleviates the problems of insufficient spectral information utilization and excessive parameters that often occur during feature reconstruction. By using the channel dimension for filtering and separation, and fusing in the spatial and spectral dimensions, it completes information exchange between the three different dimensions, greatly improving the network's feature utilization rate, promoting the fusion of information from different image features, and enhancing the overall efficiency of the algorithm. This makes it a highly practical hyperspectral image super-resolution method.

[0100] However, when the network of the present invention removes the spatial-spectral feature extraction layer based on channel attention and the image reconstruction sub-network based on improved 3D subpixel convolution, the network is unable to perform super-resolution tasks on hyperspectral images. Even if image upsampling is replaced with ordinary 3D transposed convolution, the information and details of the reconstructed image will still be greatly reduced.

Claims

1. A method for super-resolution reconstruction of hyperspectral images based on feature diversity extraction, characterized in that: Includes the following steps: Step 1: Generate a training set and a test set of hyperspectral images; Step 2: Construct a feature diversity extraction subnetwork; The specific method is as follows: Step 2.1: Construct the feature diversity enhancement layer, whose structure is as follows: first convolutional layer, first activation layer, second convolutional layer, third convolutional layer, second activation layer, fourth convolutional layer, fifth convolutional layer, third activation layer, sixth convolutional layer, seventh convolutional layer, and mathematical operation layer. Specifically, the size of the first and second convolutional layers is set to 3×1×1, and the stride is set to 1; the size of the third and fourth convolutional layers is set to 1×3×1, and the stride is set to 1; the size of the fifth and sixth convolutional layers is set to 1×1×3, and the stride is set to 1; the size of the seventh convolutional layer is set to 1×1×1, and the stride is set to 1; the first, second, and third activation layers are all implemented using the LeakyReLu function, and the slope of the function in the negative part is set to 0.01; the mathematical operation layer uses pixel-wise addition. Step 2.2: Construct the spatial-spectral feature extraction layer, whose structure is as follows: first convolutional layer, second convolutional layer, mathematical operation layer, activation layer, and third convolutional layer; The first convolutional layer has a size of 1×3×3 and a stride of 1; the second convolutional layer has a size of 3×1×1 and a stride of 1; the mathematical operation layer uses pixel-wise addition; the activation layer is implemented using the LeakyReLu function, with a slope of 0.01 in the negative part; and the third convolutional layer has a size of 3×1×1 and a stride of 1. Step 2.3: Construct a spatial-spectral feature extraction layer based on channel attention. Its structure is as follows: feature diversity enhancement layer, spatial-spectral feature extraction layer, first pooling layer, second pooling layer, first convolutional layer, first activation layer, second convolutional layer, second activation layer, and mathematical operation layer. The first pooling layer uses max pooling; the second pooling layer uses average pooling; both the first and second convolutional layers have a size of 1×1×1, a stride of 1, and zero padding of the output [0, 0, 0]; the first activation layer uses the LeakyReLu function, with a slope of 0.01 in the negative part; the second activation layer uses the sigmoid function; and the mathematical operation layer uses pixel-wise multiplication. Step 2.4: Construct a feature diversity extraction sub-network, whose structure is as follows: convolutional layer, activation layer, first channel attention-based spatial-spectral feature extraction layer, first mathematical operation layer, second channel attention-based spatial-spectral feature extraction layer, second mathematical operation layer, third channel attention-based spatial-spectral feature extraction layer, third mathematical operation layer, fourth channel attention-based spatial-spectral feature extraction layer and fourth mathematical operation layer; The convolutional layers are all set to a size of 1×1×1 and a stride of 1; the activation layers are all implemented using the LeakyReLu function, with the slope of the function in the negative part set to 0.01; the first, second, third, and fourth mathematical operation layers all use pixel-wise multiplication operations. Step 3: Construct an image reconstruction subnetwork based on improved 3D subpixel convolution; The specific method is as follows: An image reconstruction subnetwork based on improved 3D subpixel convolution is constructed, with the following structure in sequence: first convolutional layer, second convolutional layer, reconstruction layer, third convolutional layer, first transposed convolutional layer, fourth convolutional layer, first activation layer, fifth convolutional layer, second activation layer, mathematical operation layer, sixth convolutional layer, seventh convolutional layer, eighth convolutional layer, ninth convolutional layer, and third activation layer. Specifically, the size of the first and third convolutional layers is set to 3×3×3, and the stride is set to 1; the size of the second, fourth, fifth, and ninth convolutional layers is set to 1×1×1, and the stride is set to 1; the size of the sixth convolutional layer is set to 3×1×1, and the stride is set to 1; the size of the seventh convolutional layer is set to 1×3×1, and the stride is set to 1; the size of the eighth convolutional layer is set to 1×1×3, and the stride is set to 1; the reconstruction layer is a subpixel convolution with the parameter being the magnification factor; the first and third activation layers are implemented using the LeakyReLu function, with the slope of the function in the negative part set to 0.01; the second activation layer is implemented using the sigmoid function; and the mathematical operation layer uses pixel-wise multiplication. Step 4: Based on the feature diversity extraction subnetwork built in Step 2 and the image reconstruction subnetwork based on improved 3D subpixel convolution built in Step 3, construct a hyperspectral image super-resolution reconstruction network based on feature diversity extraction. Step 5: Input the training set generated in Step 1 into the hyperspectral image super-resolution reconstruction network based on feature diversity extraction built in Step 4 for training; Step 6: Input the test set obtained in Step 1 into the hyperspectral image super-resolution reconstruction network trained in Step 5 based on feature diversity extraction for super-resolution reconstruction.

2. The hyperspectral image super-resolution reconstruction method based on feature diversity extraction according to claim 1, characterized in that: The specific method for step 1 is as follows: Step 1.1: Divide the original hyperspectral image dataset into a training set and a test set. Then, perform downsampling operations of 1, 3 / 4 and 1 / 2 times on both the training set and the test set respectively. Use bicubic downsampling for the downsampling operation. Use the sampled images as the initial high-resolution images of the training set and the test set at the three magnification factors. Step 1.2: Normalize the initial high-resolution images of the training set and test set from Step 1.1, and limit the pixel values ​​of the initial high-resolution images to the range of [0, 1] to obtain the initial normalized high-resolution images of the training set and test set. Step 1.3: The initial normalized high-resolution images in the training set obtained in Step 1.2 are randomly cropped with overlap to obtain smaller image patches. The image patches are then randomly rotated at angles of 90°, 180°, and 270°. The image patches are used as normalized reference labels for the training set. Step 1.4: Perform downsampling on the normalized reference labels of the training set obtained in Step 1.3 and the initial normalized high-resolution images of the test set in Step 1.

2. Use bicubic downsampling to obtain low-resolution images in the training and test sets. Combine each low-resolution image in the training set with the normalized reference label image of the training set in Step 1.3 to form a training set image pair. Combine the low-resolution images in the test set with the initial normalized high-resolution images of the test set in Step 1.2 to form a test set image pair.

3. The hyperspectral image super-resolution reconstruction method based on feature diversity extraction according to claim 1, characterized in that: The specific method for step 4 is as follows: A hyperspectral image super-resolution reconstruction network based on feature diversity extraction is constructed, and its structure consists of: a shallow feature extraction layer, a feature diversity extraction sub-network, and an image reconstruction sub-network based on improved 3D subpixel convolution. The shallow feature extraction layer consists of convolutional layers and activation layers. The size of the convolutional layers is set to 3×3×3 and the stride is set to 1. The activation layers are implemented using the LeakyReLu function, and the slope of the function in the negative part is set to 0.

01.

4. The hyperspectral image super-resolution reconstruction method based on feature diversity extraction according to claim 1, characterized in that: In step 5, the parameters set in the network are iteratively updated through backpropagation and gradient descent until the final loss function approaches convergence, and finally the trained hyperspectral image super-resolution reconstruction network based on feature diversity extraction is obtained.

Citation Information

Patent Citations

  • Hyperspectral image super-resolution reconstruction method based on multi-scale transformation

    CN113222822A