Hyperspectral reconstruction method and system based on pixel-level regression attention

By adopting the pixel-level regression attention method in hyperspectral imaging, combined with equivalent encoder and decoder networks, and using low-level and high-level pixel-level attention units for feature extraction and reconstruction, it solves the problem of traditional methods in high resolution. It achieves efficient hyperspectral image reconstruction by solving the difficulty of capturing long-range dependencies in high-frequency image reconstruction.

CN118691471APending Publication Date: 2024-09-24SHENZHEN TECH UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410738200.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively capture long-distance dependencies between pixels in hyperspectral imaging. Traditional convolutional neural networks are limited to local information extraction. Transformer networks have high time complexity and memory consumption when processing long-distance dependencies, resulting in high resolution. rate image reconstruction task faces challenges.

Method used

A hyperspectral reconstruction method based on pixel-level regression attention is adopted, and the equivalent encoder network and decoder network are combined with low-level and high-level pixel-level regression attention units, and the skip connection reconstruction module is used for long-distance feature reconstruction to achieve Reconstruction of hyperspectral images.

Benefits of technology

The model's learning ability of local details and overall semantics is improved under low parameter quantities, and efficient hyperspectral image reconstruction is achieved. It is suitable for edge devices or end-side devices and improves reconstruction performance and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691471A
    Figure CN118691471A
Patent Text Reader

Abstract

The invention discloses a hyperspectral reconstruction method based on pixel-level regression attention, and the method comprises the steps: carrying out the feature extraction of an RGB image through an equivalent encoder network, and obtaining a first feature image and a second feature image, and the equivalent encoder network comprises a low-level pixel-level regression attention unit; performing weighted feature extraction on the first feature image through a first high-level pixel-level regression attention unit to obtain a third feature image, and performing remote feature reconstruction on the second feature image through a jump connection reconstruction module to obtain a fourth feature image; and mapping and restoring the spliced third feature image and fourth feature image through an equivalent decoder network, and outputting a hyperspectral image, the equivalent decoder network comprising a second high-level pixel-level regression attention unit. According to the method, the hyperspectral image can be efficiently reconstructed on the edge device or the end side device based on the RGB image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a hyperspectral reconstruction method and system based on pixel-level regression attention. Background Art

[0002] Hyperspectral images are spectral images with a spectral resolution of 0.01λ. Compared with RGB images, they can capture deep information more comprehensively. Therefore, they are widely used in medical image processing, remote sensing target tracking, image recognition, and bioinformatics inversion. However, hyperspectral imaging usually requires expensive and complex equipment, so reconstructing hyperspectral images using RGB images has become a feasible solution. At present, spectral reconstruction algorithms based on convolutional neural networks and Transformer networks have achieved good results.

[0003] However, in hyperspectral imaging, there are long-range dependencies between pixels, and traditional convolutional neural networks mainly focus on local information extraction and are limited in capturing long-range dependencies and similarities. Although the Transformer network can solve this problem, it has high time complexity and memory consumption when processing long-range dependencies, and faces challenges in high-resolution image reconstruction tasks. Summary of the invention

[0004] Based on the above application requirements and technical background, in order to solve the technical problems of the existing technology in reconstructing high-resolution hyperspectral images, this application adopts the following technical solutions:

[0005] In a first aspect, the present application proposes a hyperspectral reconstruction method based on pixel-level regression attention, the method comprising:

[0006] Extracting features from the RGB image through an equivalent encoder network to obtain a first feature image and a second feature image, wherein the equivalent encoder network includes a low-level pixel-level regression attention unit;

[0007] Performing weighted feature extraction on the first feature image through a first high-level pixel-level regression attention unit to obtain a third feature image, and performing long-distance feature reconstruction on the second feature image through a skip connection reconstruction module to obtain a fourth feature image;

[0008] The concatenated third feature image and the fourth feature image are mapped and restored through an equivalent decoder network to output a hyperspectral image. The equivalent decoder network includes a second high-level pixel-level regression attention unit.

[0009] Furthermore, the equivalent encoder network also includes a first axial convolution layer, a first batch of normalization layers and a first GELU activation function layer;

[0010] Among them, the first feature image is obtained through the first axial convolution layer, the first batch of standardization layers and the first GELU activation function layer, and the second feature image is obtained through the first axial convolution layer, the first batch of standardization layers and the low-level pixel-level regression attention unit.

[0011] Furthermore, the processing steps of the low-level pixel-level regression attention unit include:

[0012] The first input is transformed by two convolutions to obtain x lq and x lv ;

[0013] For the x lq Pooling is performed horizontally and vertically respectively to obtain and

[0014] Regarding the and Perform softmax operation and then compare with x v Dot product: concatenate the dot product results in two directions for convolution fusion, and then map them through the sigmoid function to obtain low-level pixel-level regression attention weights;

[0015] Finally, the low-level pixel-level regression attention weight is multiplied by the input to obtain the low-level pixel-level regression attention result.

[0016] Furthermore, the step of performing weighted feature extraction on the first feature image through the first high-level pixel-level regression attention unit to obtain the third feature image specifically includes:

[0017] The second input is subjected to convolution transformation, global average pooling, parameter weighted transformation, reshaping and softmax operation to obtain x hq ;

[0018] The input is scaled by the temperature coefficient and then reshaped and convolved to obtain x hv ;

[0019] For the x hq and x hv Perform matrix multiplication to obtain high-level pixel-level regression attention weights;

[0020] Finally, the high-level pixel-level regression attention weight is multiplied by the input to obtain a high-level pixel-level regression attention result.

[0021] Furthermore, the step of performing long-distance feature reconstruction on the second feature image through a skip connection reconstruction module to obtain a fourth feature image specifically includes:

[0022] The second feature image is subjected to channel shuffling and then channel compression to obtain and

[0023] Through the rich information extraction branch Perform group convolution and point convolution, and then add the convolution results to get S h ;

[0024] By extracting the low information branch Perform point convolution, compress the number of channels by half, and then add Splice and get S l ;

[0025] For the S h and S l Perform channel attention weighting to obtain

[0026] The and The fourth feature image is obtained by dividing the image into two halves in the channel dimension and cross-joining and recombining the image.

[0027] Furthermore, the equivalent encoder network and the equivalent decoder network also include a first convolutional layer, a second batch normalization layer, a second axial convolutional layer, a second convolutional layer and a second GELU activation function layer.

[0028] Furthermore, the method also includes: bridging the equivalent encoder network and the equivalent decoder network through a multi-scale dilated bottleneck structure, wherein the multi-scale dilated bottleneck structure includes multiple dilated convolutional layers.

[0029] The second aspect of the present application proposes a hyperspectral reconstruction system based on pixel-level regression attention, the system comprising an equivalent encoder network, a first high-level pixel-level regression attention unit, a jump connection reconstruction module, an equivalent decoder network, and a multi-scale hole bottleneck structure;

[0030] The equivalent encoder network is used to extract features from the input RGB image to obtain a first feature image and a second feature image, and the equivalent encoder network includes a low-level pixel-level regression attention unit;

[0031] The first high-level pixel-level regression attention unit is used to perform weighted feature extraction on the first feature image to obtain a third feature image;

[0032] The skip connection reconstruction module is used to perform long-distance feature reconstruction on the second feature image to obtain a fourth feature image;

[0033] The equivalent decoder network is used to map and restore the spliced ​​third feature image and the fourth feature image to output a hyperspectral image, and the equivalent decoder network includes a second high-level pixel-level regression attention unit;

[0034] The multi-scale dilated bottleneck structure is used to bridge the equivalent encoder network and the equivalent decoder network, and the multi-scale dilated bottleneck structure includes multiple dilated convolutional layers.

[0035] A third aspect of the present application proposes an electronic device, comprising a processor and a memory, wherein the memory stores a computer program, and the processor is configured to implement the above-mentioned hyperspectral reconstruction method based on pixel-level regression attention when executing the computer program.

[0036] In a fourth aspect, the present application proposes a computer-readable storage medium, which includes a stored computer program. When the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned hyperspectral reconstruction method based on pixel-level regression attention.

[0037] Compared with the prior art, the beneficial effects of this application are:

[0038] The hyperspectral reconstruction method and system based on pixel-level regression attention provided in this application proposes a lightweight equivalent encoder-decoder U-shaped skeleton with constant resolution. Through low-level and high-level pixel-level regression attention units, the model's ability to learn local details and overall semantics simultaneously is improved, bringing excellent performance improvement at a low parameter amount. Through the jump connection reconstruction module, long-distance feature reconstruction is performed to obtain rich and balanced features, and finally, efficient reconstruction of hyperspectral images based on RGB images is achieved on edge devices or end-side devices. This application also discloses a hyperspectral reconstruction system, electronic device and storage medium based on pixel-level regression attention, which also have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0040] Figure 1 Application scenarios of the hyperspectral reconstruction method and system based on pixel-level regression attention proposed in this application;

[0041] Figure 2 A schematic diagram of the process of the hyperspectral reconstruction method based on pixel-level regression attention proposed in this application;

[0042] Figure 3 This is a schematic diagram of the structure logic of the low-level pixel-level regression attention unit proposed in this application;

[0043] Figure 4 This is a schematic diagram of the structure logic of the high-level pixel-level regression attention unit proposed in this application;

[0044] Figure 5 This is a structural logic diagram of the jump connection reconstruction module proposed in this application;

[0045] Figure 6 This is a schematic diagram of the structure of the electronic device proposed in this application. DETAILED DESCRIPTION

[0046] This application proposes a hyperspectral reconstruction method and system based on pixel-level regression attention. In order to describe this application more specifically, the technical solution of this application is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific implementation methods described here are only used to explain this application and are not used to limit this application. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0047] When used in practical applications, the application scenarios of the hyperspectral reconstruction method and system based on pixel-level regression attention are as follows: Figure 1 As shown, an RGB image is input into an equivalent encoder network, and a first feature image is obtained by sequentially passing through a first axial convolution layer, a first batch of normalization layers, and a first GELU activation function layer of the equivalent encoder network. A layer of features for jump connection is extracted in the first batch of normalization layers, and a second feature image is obtained by a low-level pixel-level regression attention unit; the first feature image is passed through a first high-level pixel-level regression attention unit to obtain a third feature image, and the second feature image is passed through a jump connection reconstruction module to obtain a fourth feature image; the third feature image and the fourth feature image are spliced ​​and passed through a multi-scale hole bottleneck structure, and then input into an equivalent decoder network, and sequentially pass through the first convolution layer, the second batch of normalization layers, the second axial convolution layer, the second convolution layer, and the second GELU activation function layer of the equivalent decoder network, and finally the reconstructed hyperspectral image is output.

[0048] In a first aspect, the present application proposes a hyperspectral reconstruction method based on pixel-level regression attention. The flowchart of the method is as follows: Figure 2 As shown, it specifically includes the following steps:

[0049] S101, extracting features from the RGB image through an equivalent encoder network to obtain a first feature image and a second feature image, wherein the equivalent encoder network includes a low-level pixel-level regression attention unit;

[0050] S102, performing weighted feature extraction on the first feature image through a first high-level pixel-level regression attention unit to obtain a third feature image, and performing long-distance feature reconstruction on the second feature image through a skip connection reconstruction module to obtain a fourth feature image;

[0051] S103, mapping and restoring the reconstructed features through an equivalent decoder network to output a hyperspectral image, wherein the equivalent decoder network includes a high-level pixel-level regression attention unit and a multi-scale hole bottleneck structure.

[0052] In one embodiment, Figure 1 As shown, the equivalent encoder network includes a first axial convolution layer, a first batch of standardization layers, a first GELU activation function layer, and a low-level pixel-level regression attention unit, wherein a first feature image is obtained through the first axial convolution layer, the first batch of standardization layers, and the first GELU activation function layer, and a second feature image is obtained through the first axial convolution layer, the first batch of standardization layers, and the low-level pixel-level regression attention unit.

[0053] Among them, the first axial convolution layer is a convolution layer for processing multi-channel data. Compared with the traditional convolution layer, the first axial convolution layer performs convolution channel by channel, and pays more attention to feature extraction and information transmission in the channel dimension. The setting of the first axial convolution layer conforms to the depth-separable convolution characteristics. While not changing the input resolution, the number of parameters is also greatly reduced. Specifically, in one embodiment, the input RGB image is convolved along the X-axis and Y-axis directions respectively, and the final convolution result is added to the original input;

[0054] In one embodiment, the first axial convolution layer uses convolution kernel sizes of 7x1 and 1x7 to bring a larger receptive field capacity, so that the model can better capture features in the horizontal and vertical directions, and the strip-shaped convolution kernel can also better capture the edge details of objects. In this embodiment, the output of the RGB image after the axial convolution block is as follows:

[0055] x out =F 1×7cov (x i )+F 7×1cov (x i )+x i #(1)

[0056] The algorithm input is defined as X i={x1,x2,x3,…,x N}∈R C×H×W , C represents the number of channels, H represents the image height, W represents the image width, and N represents the batch number.

[0057] Among them, the pixel-level regression attention (PRA) unit is a neural network module for computer vision tasks, which is used to introduce a pixel-level attention mechanism so that the network can focus and better understand the importance of each pixel. The reconstruction of hyperspectral images based on RGB images in this application is a pixel-level regression mapping. The pixel-level regression attention unit can enhance the model's ability to capture this mapping. Specifically, the PRA unit introduces a branch to perform preliminary attention calculations, and the other branch retains high-resolution features. Both perform further attention calculations to obtain more detailed weights, introduce fewer parameters, and improve the model's ability to learn local details and overall semantics at the same time, bringing excellent performance improvements at low parameter amounts;

[0058] The PRA unit includes a low-level pixel-level regression attention (L-PRA) unit and a high-level pixel-level regression attention (L-PRA) unit. The low-level pixel-level regression attention unit is more refined and pays more attention to the original detail features of the data, which is used to assist the feature learning of the encoder. The high-level pixel-level regression attention unit is more coarse-grained and pays more attention to the semantic learning of the data, which is used to assist the decoder learning. In order to control the complexity of the model, the L-PRA and H-PRA can be used in a jumpy and dislocated manner.

[0059] In one embodiment, the structural logic of the low-level pixel-level regression attention unit is as follows Figure 3 As shown, specifically, the processing steps of the low-level pixel-level regression attention unit include:

[0060] S201, for input x i , through two 1x1 convolution transformations, we get x lq and x lv , as follows:

[0061]

[0062] Among them, F conv is the convolution transformation operator, At this point, the channel dimension collapses to half of its original size;

[0063] S202, x lq Perform maximum pooling (M-Pool) in the horizontal direction and average pooling (A-Pool) in the vertical direction respectively, and get and As follows:

[0064]

[0065] Among them, F H-GAP and F W-GAP is the pooling operator, The pooling maintains the channel width;

[0066] S203, yes and Perform softmax information enhancement and then compare with x lv Dot multiplication, concatenate the dot multiplication results in two directions for convolution fusion, and then map them through the sigmoid function to obtain the low-level pixel-level regression attention weight W LPRA , as follows:

[0067]

[0068] Among them, F sigmoid is the sigmoid function operator, F sm is the softmax function operator, W LPRA ∈R C×H×W ;

[0069] S204, W LPRA With x i Multiplying together obtains the high-level pixel-level regression attention result of the low-level pixel-level regression attention unit, as shown in the following formula:

[0070] x out =x i ·W LPRA #(5)

[0071] Among them, the first batch of normalization layers is used to accelerate the training process and improve the stability and performance of the model. By standardizing each small batch of data through batch normalization technology, the problem of internal covariate shift in the training process can be alleviated. Specifically, the batch normalization layer calculates the mean and variance of each input value, and then standardizes it to obtain an output with zero mean and unit variance. Finally, trainable parameters are introduced to scale and translate the standardized output. Batch normalization can make the input distribution of each layer more stable and thus speed up the training. By standardizing the input to zero mean and unit variance, batch normalization can effectively alleviate the problems of gradient vanishing and gradient exploding.

[0072] Among them, the GELU (Gaussian Error Linear Unit) is an activation function based on the Gaussian error function. Compared with the traditional ReLU (Rectified Linear Unit) activation function, GELU can process input data more smoothly, especially for negative input. GELU will not directly return it to zero like ReLU, but will process it in a probabilistic manner according to the size of the input value. Specifically, the first GELU activation function layer calculates the cumulative distribution function of the standard normal distribution of each input value, and then multiplies each input value by its cumulative distribution function value to obtain the output value. In the technical solution of reconstructing hyperspectral images based on RGB images in the present application, the use of the first GELU activation function layer helps to improve the expressive power of the model, so that the model can better capture and learn complex features, thereby improving the reconstruction quality and accuracy.

[0073] In one embodiment, the structural logic of the first high-level pixel-level regression attention unit is as follows: Figure 4 As shown, specifically, the processing steps of the first high-level pixel-level regression attention unit include:

[0074] S301, process input x separately through two branches i , the first branch responds to input x i The channel dimension is compressed by 1x1 convolution transformation, followed by global average pooling (GAP), weighted transformation through learnable parameters, and then reshaping and softmax information enhancement to obtain x hq , as follows:

[0075] x hq =F sm (F rs (γF GAP (F conv )x i )))) (6)

[0076] Among them, x i ∈R C×H×W , F conv is the convolution transformation operator, F GAP is the pooling operator, γ is a learnable parameter for weighting, F rs is the reshape operator, F sm is the softmax function operator;

[0077] S302, the second branch first uses the temperature coefficient to input x iScaling, then reshaping, and finally compressing the channel dimension through 1x1 convolution transformation, while the spatial dimension maintains the original resolution H×W, obtaining x hv , as follows:

[0078] x hv =F conv (F rs (x i / T)) (7)

[0079] in, T is the temperature coefficient;

[0080] S303, for the x hq and x hv Perform matrix multiplication to obtain the high-level pixel-level regression attention weight W HPRA , as follows:

[0081]

[0082] Where W HPRA ∈R hw×H×W ;

[0083] S304, W HPRA With x i The dot product obtains the high-level pixel-level regression attention result of the high-level pixel-level regression attention unit, as shown in the following formula:

[0084] x out =x i ⊙W HPRA (9)

[0085] Among them, x out ∈R C×H×W ;

[0086] Specifically, the first high-level pixel-level regression attention unit processes the input through two branches respectively. The first branch compresses the channel dimension through the global average pooling (GAP) operation. Different from the traditional spatial attention that compresses it to 1, the global average pooling operation retains the resolution of h and retains half of the information in the channel dimension, using the resolution of hw to represent the important information of each channel; the second branch retains the original resolution of HW and also retains half of the information in the channel dimension; matrix multiplication operations are performed on the two branches. This step means transforming the original input through the representative information learned by the first branch, thereby capturing the contribution of each pixel to the reconstruction of images in different bands, and performing a sigmoid operation on the result of the matrix multiplication to map it to a high-level pixel-level regression attention weight, and finally performing a point multiplication weighted with the original input to obtain a high-level pixel-level regression attention result.

[0087] It should be noted that the channel dimension of the high-level pixel-level regression attention weights finally generated is smaller than the channel dimension of the original input. In order to match the input dimension, the high-level pixel-level regression attention weights can be copied by using the high similarity between the hyperspectral bands. In one embodiment, the same high-level pixel-level regression attention weights are applied to the five channels between the 400-460 bands.

[0088] Among them, the skip connection reconstruction module (Skip Feature Reconstraction, SFR) is a technology used for feature reconstruction in neural networks, which aims to improve the quality of reconstruction results by using feature information from different levels in the network. It can capture long-distance dependencies, analyze feature importance, reconstruct different shallow scale features, generate uniform and rich feature combinations, and link to deep networks. Through the skip connection reconstruction module, the second feature image is reconstructed in a more detailed manner, and the features of the skip connection are integrated in a symmetrical manner. It can take into account more structural, texture, and edge features in shallow features, better integrate and reconstruct long-distance shallow features into rich information features, and strengthen the full fusion and flow of different shallow feature combinations of the second feature image in the equivalent decoder network.

[0089] In one embodiment, the structure logic of the skip connection reconstruction module is as follows: Figure 5 Specifically, the step of performing long-distance feature reconstruction on the second feature image through a jump connection reconstruction module to obtain a fourth feature image specifically includes:

[0090] S401, performing channel shuffling and then channel compression on the second feature image to obtain and As follows:

[0091]

[0092] Among them, S i and S j is the second feature image, i, j[1, M], i+j = M+1, F concat is the feature concatenation operator, F shuffle is the channel shuffle operator, F sq is the channel compression operator,

[0093] S402, respectively processing by rich information extraction branch and low information extraction branch and For the rich information extraction branch, Perform group convolution (Group-Wise Conv, GWC) and point convolution (Point-Wise Conv, PWC), and then add the convolution results to get S h , as follows:

[0094]

[0095] S403, through the low information extraction branch, Perform 1x1 point convolution, compress the number of channels by half, and then Perform splicing operation to obtain S l , as follows:

[0096]

[0097] S404, respectively h , S l To perform channel attention weighting, first perform global average pooling, then perform softmax operation, and then correspond to S h , S l Multiply to get As follows:

[0098]

[0099] S405, and The fourth feature image is divided into two halves in the channel dimension and cross-stitched and recombined to obtain a rich and balanced fourth feature image. As follows:

[0100]

[0101] In one embodiment, Figure 1 As shown, the equivalent decoder network also includes a first convolution layer, a second batch normalization layer, a second axial convolution layer, a second convolution layer and a second GELU activation function layer; wherein the spliced ​​third feature image and the fourth feature image are obtained by the first convolution layer, the second batch normalization layer, the second axial convolution layer, the second convolution layer, the second GELU activation function layer and the second high-level pixel-level regression attention unit to obtain a hyperspectral image.

[0102] Among them, the first convolution layer and the second convolution layer increase the number of parameters and network depth of the equivalent decoder network, thereby enhancing the representation ability of features. These additional convolution layers can help the equivalent decoder network better understand and capture complex features in the input data. In one embodiment, the first convolution layer performs 3×3 convolution and the second convolution layer performs 1×1 convolution.

[0103] Among them, the second batch of normalization layers, the second axial convolutional layer and the second GELU activation function layer have the same implementation principles, structural logic and processing steps as the first axial convolutional layer, the first batch of normalization layers and the first GELU activation function layer of the equivalent encoder network, and the implementation principles, structural logic and processing steps of the second high-level pixel-level regression attention unit are the same as those of the first high-level pixel-level regression attention unit, which will not be repeated here.

[0104] Optionally, a dilated convolution rate is set for convolution in the equivalent decoder network to further expand the receptive field. In one embodiment, the dilated convolution rate is 2.

[0105] In one embodiment, the equivalent encoder network and the equivalent decoder network are bridged by a multiscale dilated bottleneck (MDB), and grouped convolutions with different dilation rates and attention calculations of shared parameters are used in the multiscale dilated bottleneck structure. The multiscale dilated bottleneck structure is a network design that combines a multiscale receptive field and a bottleneck structure, and is usually composed of a plurality of dilated convolution layers, each of which may have a different dilation rate to achieve feature extraction at different scales; the introduction of attention calculations of shared parameters in the multiscale dilated bottleneck structure helps to reduce the number of parameters of the model, and can share information at different spatial locations or scales, thereby improving the generalization ability and efficiency of the model.

[0106] Based on the above embodiments, the hyperspectral reconstruction method based on pixel-level regression attention proposed in this application has achieved lightweight and efficient success on the NTIRE2022 spectral reconstruction challenge dataset and the Cave dataset. The experimental results of this application based on the Cave dataset and the NTIRE dataset are shown in Table 1. The evaluation indicators are parameter quantity (Params), floating-point operations (FLOPs), mean relative absolute error (MRAE), root mean square error (RMSE), peak signal-to-noise ratio (PSNR), and number of image frames processed per second (FPS).

[0107] Table 1 Experimental results

[0108] Dataset Params(M) FLOPS(G) MRAE RMSE PSNR FPS(img / s) NTIRE 0.16 8.36 0.210 0.0257 33.153 90 CAVE 0.16 8.36 0.0541 0.0702 23.702 90

[0109] The second aspect of the present application proposes a hyperspectral reconstruction system based on pixel-level regression attention, the system comprising an equivalent encoder network, a first high-level pixel-level regression attention unit, a jump connection reconstruction module, an equivalent decoder network, and a multi-scale hole bottleneck structure;

[0110] The equivalent encoder network is used to extract features from the input RGB image to obtain a first feature image and a second feature image, and the equivalent encoder network includes a low-level pixel-level regression attention unit;

[0111] The first high-level pixel-level regression attention unit is used to perform weighted feature extraction on the first feature image to obtain a third feature image;

[0112] The skip connection reconstruction module is used to perform long-distance feature reconstruction on the second feature image to obtain a fourth feature image;

[0113] The equivalent decoder network is used to map and restore the spliced ​​third feature image and the fourth feature image to output a hyperspectral image, and the equivalent decoder network includes a second high-level pixel-level regression attention unit;

[0114] The multi-scale dilated bottleneck structure is used to bridge the equivalent encoder network and the equivalent decoder network, and the multi-scale dilated bottleneck structure includes multiple dilated convolutional layers.

[0115] The third aspect of the present application provides an electronic device, such as Figure 6 As shown, the device includes a processor and a memory, a computer program is stored in the memory, and the processor is configured to implement the above-mentioned hyperspectral reconstruction method based on pixel-level regression attention when executing the computer program.

[0116] Optionally, the computer program may be divided into one or more modules / units (such as computer program 1, computer program 2, etc.), and the one or more modules / units are stored in the memory and executed by the processor. The one or more modules / units may be a series of computer program instruction segments that can perform specific functions, and the instruction segments are used to describe the execution process of the computer program in the computer device.

[0117] Optionally, the electronic device may include one or more processors, which may be a central processing unit (CPU), a microprocessor (MPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices (PLD), discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor. The processor is the control center of the computer device, and various parts of the computer device are connected using various interfaces and lines.

[0118] Optionally, the electronic device may include one or more memories, the memory mainly including a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc., and the data storage area may store relevant data, etc. In addition, the memory may be a high-speed random access memory, or a non-volatile memory, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card and a flash card (Flash Card), etc., or other volatile solid-state storage devices. In some embodiments, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to a computer terminal via a network. Embodiments of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0119] Optionally, the electronic device may also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device, and / or communicate with any device that enables the electronic device to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface. Furthermore, the electronic device may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter. Other hardware and / or software modules may be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0120] In a fourth aspect, the present application proposes a computer-readable storage medium, which includes a stored computer program. When the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned hyperspectral reconstruction method based on pixel-level regression attention.

[0121] Optionally, the computer readable storage medium may be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0122] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0123] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Those skilled in the art should be aware that there may be many examples based on the basic method principles provided by the present application in combination with actual conditions, and all of them should be within the scope of protection of the present application without sufficient creative work.

[0124] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms are not necessarily for the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0125] It should also be noted that, in this specification, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

Claims

1. A hyperspectral reconstruction method based on pixel-level regression attention, characterized in that: The method comprises: Extracting features from the RGB image through an equivalent encoder network to obtain a first feature image and a second feature image, wherein the equivalent encoder network includes a low-level pixel-level regression attention unit; Performing weighted feature extraction on the first feature image through a first high-level pixel-level regression attention unit to obtain a third feature image, and performing long-distance feature reconstruction on the second feature image through a skip connection reconstruction module to obtain a fourth feature image; The concatenated third feature image and the fourth feature image are mapped and restored through an equivalent decoder network to output a hyperspectral image. The equivalent decoder network includes a second high-level pixel-level regression attention unit.

2. The hyperspectral reconstruction method based on pixel-level regression attention according to claim 1 is characterized in that: The equivalent encoder network also includes a first axial convolutional layer, a first batch of normalization layers and a first GELU activation function layer; Among them, the first feature image is obtained through the first axial convolution layer, the first batch of standardization layers and the first GELU activation function layer, and the second feature image is obtained through the first axial convolution layer, the first batch of standardization layers and the low-level pixel-level regression attention unit.

3. The hyperspectral reconstruction method based on pixel-level regression attention according to claim 1 is characterized in that: The processing steps of the low-level pixel-level regression attention unit include: The first input is transformed by two convolutions to obtain x lq and x lv ; For the x lq Pooling is performed horizontally and vertically respectively to obtain and Regarding the and Perform softmax operation and then compare with x v Dot product: concatenate the dot product results in two directions for convolution fusion, and then map them through the sigmoid function to obtain low-level pixel-level regression attention weights; Finally, the low-level pixel-level regression attention weight is multiplied by the input to obtain the low-level pixel-level regression attention result.

4. The hyperspectral reconstruction method based on pixel-level regression attention according to claim 1 is characterized in that: The step of performing weighted feature extraction on the first feature image through the first high-level pixel-level regression attention unit to obtain the third feature image specifically includes: The second input is subjected to convolution transformation, global average pooling, parameter weighted transformation, reshaping and softmax operation to obtain x hq ; The input is scaled by the temperature coefficient and then reshaped and convolved to obtain x hv ; For the x hq and x hv Perform matrix multiplication to obtain high-level pixel-level regression attention weights; Finally, the high-level pixel-level regression attention weight is multiplied by the input to obtain a high-level pixel-level regression attention result.

5. The hyperspectral reconstruction method based on pixel-level regression attention according to claim 1 is characterized in that: The step of performing long-distance feature reconstruction on the second feature image through a skip connection reconstruction module to obtain a fourth feature image specifically includes: The second feature image is subjected to channel shuffling and then channel compression to obtain and Through the rich information extraction branch Perform group convolution and point convolution, and then add the convolution results to get S h ; By extracting the low information branch Perform point convolution, compress the number of channels by half, and then add Splice and get S l ; For the S h and S l Perform channel attention weighting to obtain The and The fourth feature image is obtained by dividing the image into two halves in the channel dimension and cross-joining and recombining the image.

6. The hyperspectral reconstruction method based on pixel-level regression attention according to claim 1 is characterized in that: The equivalent encoder network and the equivalent decoder network also include a first convolutional layer, a second batch normalization layer, a second axial convolutional layer, a second convolutional layer and a second GELU activation function layer.

7. The hyperspectral reconstruction method based on pixel-level regression attention according to claim 1 is characterized in that: The method also includes: bridging the equivalent encoder network and the equivalent decoder network through a multi-scale dilated bottleneck structure, wherein the multi-scale dilated bottleneck structure includes multiple dilated convolutional layers.

8. A hyperspectral reconstruction system based on pixel-level regression attention, characterized in that: The system includes an equivalent encoder network, a first high-level pixel-level regression attention unit, a skip connection reconstruction module, an equivalent decoder network, and a multi-scale hole bottleneck structure; The equivalent encoder network is used to extract features from the input RGB image to obtain a first feature image and a second feature image, and the equivalent encoder network includes a low-level pixel-level regression attention unit; The first high-level pixel-level regression attention unit is used to perform weighted feature extraction on the first feature image to obtain a third feature image; The skip connection reconstruction module is used to perform long-distance feature reconstruction on the second feature image to obtain a fourth feature image; The equivalent decoder network is used to map and restore the spliced ​​third feature image and the fourth feature image to output a hyperspectral image, and the equivalent decoder network includes a second high-level pixel-level regression attention unit; The multi-scale dilated bottleneck structure is used to bridge the equivalent encoder network and the equivalent decoder network, and the multi-scale dilated bottleneck structure includes multiple dilated convolutional layers.

9. An electronic device, characterized in that: The device comprises a processor and a memory, wherein a computer program is stored in the memory, and the processor is configured to implement the method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The medium includes a stored computer program, and when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Hyperspectral image classification method and system fusing data enhancement and transfer learning

    CN121686249A