Hyperspectral image compression reconstruction method based on model post-processing

By introducing the post-processing step of the Unet model into the CASSI reconstruction method and using the characteristics of hyperspectral image data to optimize the reconstruction results, the problem of low reconstruction quality in traditional methods is solved and higher-quality hyperspectral image reconstruction is achieved.

CN118587127APending Publication Date: 2024-09-03BEIJING JINGHAIYI TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing CASSI reconstruction method has a gap between the reconstruction result data and the real spectral image data, and fails to fully utilize the characteristics of hyperspectral image data, resulting in low reconstruction quality.

Method used

A post-processing method based on the Unet model was adopted. By constructing the Unet hyperspectral image repair model, the open source hyperspectral image data set was used to simulate the CASSI imaging process. The average of the PSNR values ​​of all channels of the hyperspectral image was used as the loss function to perform reconstruction results. Optimization, replacing regularization and total variation constraints in traditional methods.

Benefits of technology

The quality of hyperspectral image reconstruction is improved. The results of the compression reconstruction algorithm are post-processed and optimized through the deep learning model. The characteristics of hyperspectral image data are used to significantly improve the accuracy and quality of the reconstruction results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587127A
    Figure CN118587127A
Patent Text Reader

Abstract

The invention relates to a hyperspectral image compression reconstruction method based on model post-processing, and belongs to the field of image processing. The method comprises the following steps: modeling a spectral image reconstruction process into an optimization solution model, and solving a formula of the optimization solution model to obtain a processing result Frec in a spectral image reconstruction stage; a Unet hyperspectral image restoration model based on a Unet model is constructed; and constructing a training data set of the model by using the open source hyperspectral image data set, training, performing end-to-end processing on the hyperspectral image data by using the Unet hyperspectral image restoration model obtained by training, inputting a processing result Frec, and outputting three-dimensional hyperspectral image data F to be restored. According to the invention, the result of the hyperspectral image reconstruction algorithm is optimized, and the hyperspectral image reconstruction quality is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of image processing, and in particular relates to a hyperspectral image compression reconstruction method based on model post-processing. Background Art

[0002] Hyperspectral images are images obtained by analyzing the spectral information of the reflection or radiation of an object in multiple wavelength ranges. Unlike ordinary RGB images, hyperspectral images contain more spectral channels, usually covering the visible light and infrared spectral ranges, and can capture and analyze the characteristics of objects in different wavelengths in detail. Hyperspectral images are widely used in agriculture, environmental monitoring, geological exploration, medical imaging and other fields. Traditional spectral imagers are equipped with sensors of different bands. The sensors scan the target area, obtain the spectral reflection data of each pixel in the target area in the current band, and obtain the spectral data of the target area in different bands in a sequential scanning manner. Due to the high cost and low scanning efficiency of traditional spectral imagers, with the development of compression reconstruction theory and technology, spectral imaging technology based on compression reconstruction has become a hot topic. Spectral imaging technology based on compression reconstruction uses a coded aperture snapshot spectral imaging system (CASSI) to collect two-dimensional measurements and uses a reconstruction algorithm to restore the two-dimensional measurements to three-dimensional spatial spectral signals. The traditional CASSI reconstruction method adopts the Basis Pursuit DeNoising (BPDN) method, which uses an analytical basis and a simple regularization constraint method for reconstruction. The L1 norm of the total variation (TV) constraint is subsequently introduced for improvement. The method of using empirical constraints to improve the reconstruction quality does not fully utilize the characteristics of spectral image data, and there is a gap between the reconstructed result data and the real spectral image data. Summary of the invention

[0003] 1. Technical issues to be resolved

[0004] The technical problem to be solved by the present invention is how to provide a hyperspectral image compression reconstruction method based on model post-processing to solve the problem that there is a gap between the reconstruction result data of the existing CASSI reconstruction method and the real spectral image data.

[0005] (II) Technical solution

[0006] In order to solve the above technical problems, the present invention proposes a hyperspectral image compression reconstruction method based on model post-processing, which comprises the following steps:

[0007] Phase 1: Spectral image reconstruction solution phase

[0008] The spectral image reconstruction process is modeled as the following optimization solution model:

[0009]

[0010] Where Y is the two-dimensional measurement value captured by the CASSI imaging system, A is the perception matrix of the CASSI imaging system, which represents the modulation, shift, superposition and compression process in the CASSI imaging process, and F rec Represents the three-dimensional hyperspectral image data to be solved, where rec represents reconstruction, Represents the square of the second norm; Solving the above formula, we get the processing result F of the spectral image reconstruction stage rec , as the input of stage 2;

[0011] Stage 2: Spectral image refinement stage based on Unet model

[0012] S21. Construct a Unet hyperspectral image restoration model based on the Unet model;

[0013] S22. Using an open source hyperspectral image dataset, simulate the CASSI imaging process, obtain CASSI imaging two-dimensional measurement values, input the two-dimensional measurement values ​​into the stage 1 processing process to obtain the processing results as the input of the Unet model, and use the hyperspectral image data in the original dataset as the output of the Unet model to construct a training dataset for the model;

[0014] S23, using the training data set to train the Unet hyperspectral image restoration model. During the training, the average value of the PSNR values ​​of all channels of the hyperspectral image is used as the loss function of the Unet hyperspectral image restoration model, and the training is stopped after the specified number of Epochs.

[0015] S24, use the trained Unet hyperspectral image restoration model to perform end-to-end processing on the hyperspectral image data, and input the processing result F in stage 1 rec , Unet hyperspectral image restoration model output and input image F rec The processing result of the same size F res , which is the three-dimensional hyperspectral image data F to be restored.

[0016] (III) Beneficial effects

[0017] The present invention proposes a hyperspectral image compression and reconstruction method based on model post-processing. The present invention proposes to use a deep learning model to perform post-processing optimization on the results of a hyperspectral image compression and reconstruction algorithm, and uses a deep learning model to replace constraints such as regularization and total variation in traditional methods. The characteristics of hyperspectral image data are further utilized to optimize the results of the hyperspectral image reconstruction algorithm and improve the quality of hyperspectral image reconstruction. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1It is the schematic diagram of the existing CASSI imaging system;

[0019] Figure 2 This is the CASSI modulation result diagram;

[0020] Figure 3 It is the Unet network structure diagram of the present invention;

[0021] Figure 4 The figure is a flow chart of the processing method of the present invention. DETAILED DESCRIPTION

[0022] In order to make the purpose, content and advantages of the present invention more clear, the specific implementation methods of the present invention are further described in detail below in conjunction with the drawings and examples.

[0023] The purpose of this invention is to propose a hyperspectral image compression and reconstruction method based on model post-processing, which combines a deep learning model and utilizes the characteristic information of hyperspectral image data to improve the hyperspectral image compression and reconstruction effect.

[0024] The CASSI imaging system follows the theory of compressed sensing and uses a mask to modulate the hyperspectral image data cube so that the obtained measurement value matrix is ​​as irrelevant as possible to the sparse basis of the hyperspectral image. Through optical layout, the coded aperture realizes the modulation of two-dimensional space. Figure 1 This is the schematic diagram of the CASSI imaging system. The collected three-dimensional spectral scene data is first modulated by coded aperture to obtain the modulated hyperspectral image data. The images of different spectral channels in the hyperspectral image are shifted by the beam splitter dispersion and projected onto the final imaging detector to obtain the two-dimensional measurement value results of the three-dimensional hyperspectral image. By using different coded aperture modulations, different two-dimensional measurement value results of the three-dimensional hyperspectral image data can be obtained. The spectral image modulation results obtained by the CASSI imaging system are shown in the figure. Figure 2 shown.

[0025] like Figure 1 As shown, the input three-dimensional hyperspectral image data cube is represented as Among them, H, W, N λ denote the height, width and number of spectral channels of the hyperspectral image data respectively, and the coded aperture is expressed as The coded aperture M modulates the image on each spectral channel of the hyperspectral image data cube F, expressed as,

[0026] F'(:,:,n λ )=F(:,:,n λ )⊙M

[0027] in represents the modulated three-dimensional data cube, n λ ∈[1,...,Nλ ] represents the spectral channel, ⊙ represents the Hadamard product, and after being dispersed by the spectrometer, F' is shifted in the y-axis direction, and the data cube after the shift is represented as Where d represents the step size of the spatial shift, c is the wavelength of the reference spectral channel, that is, F”(:,:,n c ) is the spectral image of the reference channel, and does not need to be shifted in the y-axis direction. Then the data cube after shifting is expressed as,

[0028] F”(u,v,n λ )=F'(x,y+d(λ n -λ c ),n λ )

[0029] Where (u, v) represents the position coordinates on the imaging detector, λ n It means the nth λ The spectral wavelength corresponding to the channel, d(λ n -λ c ) represents the nth λ The spatial shift bias of the spectral channel. The final shifted data cube compresses all spectral channel images into a two-dimensional measurement value Y∈ The compression process is expressed as,

[0030]

[0031] in is the random noise in the imaging process. Given the two-dimensional measurement value Y captured by the CASSI imaging system, the hyperspectral image reconstruction task is to recover the three-dimensional hyperspectral image data F.

[0032] The present invention adopts a traditional reconstruction method combined with a deep learning model post-processing method to reconstruct high-quality three-dimensional hyperspectral image data. The present invention provides a hyperspectral image compression reconstruction method based on model post-processing, which includes the following steps:

[0033] Phase 1: Spectral image reconstruction solution phase

[0034] The spectral image reconstruction process is modeled as the following optimization solution model:

[0035]

[0036] Where Y is the two-dimensional measurement value captured by the CASSI imaging system, A is the perception matrix of the CASSI imaging system, which represents the modulation, shift, superposition and compression process in the CASSI imaging process, and F recRepresents the three-dimensional hyperspectral image data to be solved, where rec represents reconstruction, represents the square of the 2-norm.

[0037] This problem is a least squares problem with a closed solution. Solving the above formula yields:

[0038] F rec i+1 =[A T A] -1 Y i

[0039] The solution is obtained by multiple iterations, where i represents the i-th solution process. The number of iterations of this step is set to 30 times in the present invention, and the processing result F of the spectral image reconstruction stage is obtained by iterative solution. rec , as the input of stage 2.

[0040] Stage 2: Spectral image refinement stage based on Unet model

[0041] The Unet model uses an encoder-decoder structure. The model captures multi-scale feature information during the encoding and decoding process. It is widely used in image segmentation, image super-resolution, image denoising, image completion, etc. It is used to eliminate the noise in the CASSI imaging process and the errors caused by reconstruction. The Unet model can efficiently fit regularization constraints such as TV and L1, and learn the characteristics of spectral image data at the same time, and use spectral image characteristics to optimize spectral image reconstruction post-processing. The second stage specifically includes the following steps:

[0042] S21. Construct a Unet hyperspectral image restoration model based on the Unet model;

[0043] S22. Using an open source hyperspectral image dataset, simulate the CASSI imaging process, obtain CASSI imaging two-dimensional measurement values, input the two-dimensional measurement values ​​into the stage 1 processing process to obtain the processing results as the input of the Unet model, and use the hyperspectral image data in the original dataset as the output of the Unet model to construct a training dataset for the model;

[0044] S23, using the training data set to train the Unet hyperspectral image restoration model. During the training, the average value of the PSNR values ​​of all channels of the hyperspectral image is used as the loss function of the Unet hyperspectral image restoration model, and the training is stopped after the specified number of Epochs.

[0045] S24, use the trained Unet hyperspectral image restoration model to perform end-to-end processing on the hyperspectral image data, and input the processing result F in stage 1 rec, Unet hyperspectral image restoration model output and input image F rec The processing result of the same size F res , which is the three-dimensional hyperspectral image data F to be restored.

[0046] This stage 2 includes the training process and the inference process. The Unet network structure is as follows: Figure 3 shown.

[0047] Training process:

[0048] Using open source hyperspectral image datasets such as ICVL, the CASSI imaging process is simulated. After the modulation, shift, stacking and compression process, the CASSI imaging two-dimensional measurement value corresponding to each hyperspectral image in the dataset is obtained, such as Figure 2 As shown in Figure 1, the two-dimensional measurement value is input into the first processing process to obtain the processing result as the input of the Unet model, and the hyperspectral image data in the original data set is used as the output of the Unet model to construct the training data set of the model. The Unet model architecture is shown in Figure 1. Figure 3 As shown in the figure, the Unet model consists of an encoder and a decoder. The dimension of the spectral image in the ICVL open source hyperspectral image dataset is 512×512×31.

[0049] Figure 3 This is the Unet model architecture diagram used for post-processing in this method, including the encoder and decoder. The specific network structure is shown in the following table.

[0050] Table 1 Network structure operation list

[0051]

[0052]

[0053] Multiple groups of 3×3 convolutions and pooling downsampling are used in the encoder to extract contextual information in the image. The decoder structure is symmetrical to the encoder structure. In order to keep the image size unchanged after convolution, multiple groups of 3×3 up-convolutions are used for upsampling and 3×3 convolutions are used for image reconstruction. At the same time, the image features of the corresponding size of the encoder are obtained through residual connections. Finally, a 1×1 convolution is used to output a hyperspectral restoration image of the same size.

[0054] In the present invention, the average value of the PSNR values ​​of all channels of the hyperspectral image is used as the loss function of the Unet hyperspectral image restoration model.

[0055]

[0056] Among them, F res F res The result of the reasoning process is consistent with the size of the original three-dimensional hyperspectral image F. is the maximum value of pixels in the image. RTX3090 graphics card is used in the training process, and the number of Epochs for training is 300.

[0057] Reasoning process:

[0058] In the present invention, the trained Unet hyperspectral image restoration model is used to perform end-to-end processing on the hyperspectral image data, and the processing result F in the first stage is input. rec , Unet hyperspectral image restoration model output and input image F rec The processing result of the same size F res , which is the three-dimensional hyperspectral image data F to be restored.

[0059] The Unet hyperspectral image restoration model is represented as f u ,The reasoning process of the Unet hyperspectral image restoration model can be expressed as,

[0060] F res =f u (F rec ,θ)

[0061] Where θ is the neural network model f obtained during the model training process u Parameter value.

[0062] The present invention proposes to use a deep learning model to perform post-processing optimization on the results of a hyperspectral image compression and reconstruction algorithm, use a deep learning model to replace constraints such as regularization and total variation in traditional methods, and further utilize the characteristics of hyperspectral image data to optimize the results of the hyperspectral image reconstruction algorithm and improve the quality of hyperspectral image reconstruction.

[0063] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A hyperspectral image compression reconstruction method based on model post-processing, characterized in that: The method comprises the following steps: Phase 1: Spectral image reconstruction solution phase The spectral image reconstruction process is modeled as the following optimization solution model: Where Y is the two-dimensional measurement value captured by the CASSI imaging system, A is the perception matrix of the CASSI imaging system, which represents the modulation, shift, superposition and compression process in the CASSI imaging process, and F rec Represents the three-dimensional hyperspectral image data to be solved, where rec represents reconstruction, Represents the square of the second norm; Solve the above optimization solution model formula to obtain the processing result F of the spectral image reconstruction stage rec , as the input of stage 2; Stage 2: Spectral image refinement stage based on Unet model S21. Construct a Unet hyperspectral image restoration model based on the Unet model; S22. Using an open source hyperspectral image dataset, simulate the CASSI imaging process, obtain CASSI imaging two-dimensional measurement values, input the two-dimensional measurement values ​​into the stage 1 processing process to obtain the processing results as the input of the Unet model, and use the hyperspectral image data in the original dataset as the output of the Unet model to construct a training dataset for the model; S23, using the training data set to train the Unet hyperspectral image restoration model. During the training, the average value of the PSNR values ​​of all channels of the hyperspectral image is used as the loss function of the Unet hyperspectral image restoration model, and the training is stopped after the specified number of Epochs. S24, use the trained Unet hyperspectral image restoration model to perform end-to-end processing on the hyperspectral image data, and input the processing result F in stage 1 rec , Unet hyperspectral image restoration model output and input image F rec The processing result of the same size F res , which is the three-dimensional hyperspectral image data F to be restored.

2. The hyperspectral image compression and reconstruction method based on model post-processing according to claim 1, characterized in that: In the first stage, Solving the optimization model formula yields: F rec i+1 =[A T A] -1 Y i The solution is obtained through multiple iterations, where i represents the i-th solution process; The processing result F of the spectral image reconstruction stage is obtained through iterative solution rec , as the input of stage 2.

3. The hyperspectral image compression and reconstruction method based on model post-processing as claimed in claim 2, characterized in that: The number of iterations is 30.

4. The hyperspectral image compression and reconstruction method based on model post-processing according to claim 1, characterized in that: The Unet model adopts an encoder-decoder structure. The model captures multi-scale feature information during the encoding and decoding process, which is used to eliminate the noise in the CASSI imaging process and the error caused by reconstruction. The Unet model is used to efficiently fit the TV and L1 regularization constraints, and the spectral image data features are learned at the same time. The spectral image features are used to optimize the post-processing of spectral image reconstruction.

5. The hyperspectral image compression and reconstruction method based on model post-processing as claimed in claim 4, characterized in that: Multiple groups of 3×3 convolutions and pooling downsampling are used in the encoder to extract contextual information in the image. The decoder structure is symmetrical to the encoder structure. In order to keep the image size unchanged after convolution, multiple groups of 3×3 up-convolutions are used for upsampling and 3×3 convolutions are used for image reconstruction. At the same time, the image features of the corresponding size of the encoder are obtained through residual connections. Finally, a 1×1 convolution is used to output a hyperspectral restoration image of the same size.

6. The hyperspectral image compression and reconstruction method based on model post-processing according to claim 5, characterized in that: In S22, the open source hyperspectral image dataset is the ICVL open source hyperspectral image dataset.

7. The hyperspectral image compression and reconstruction method based on model post-processing according to claim 6, characterized in that: The dimension of spectral images in the ICVL open source hyperspectral image dataset is 512×512×31.

8. The hyperspectral image compression and reconstruction method based on model post-processing according to any one of claims 5 to 7, characterized in that: In S23, the average value of the PSNR values ​​of all channels of the hyperspectral image is used as the loss function of the Unet hyperspectral image restoration model: where F res F res The result of the inference process is consistent with the size of the original three-dimensional hyperspectral image F. is the maximum value of pixels in the image.

9. The hyperspectral image compression and reconstruction method based on model post-processing as claimed in claim 8, characterized in that: In S23, the RTX3090 graphics card is used in the training process, and the number of training epochs is 300.

10. The hyperspectral image compression and reconstruction method based on model post-processing according to claim 8, characterized in that: In S24, the Unet hyperspectral image restoration model is represented as f u ,The reasoning process of the Unet hyperspectral image restoration model is expressed as, F res =f u (F rec ,θ) Where θ is the neural network model f obtained during the model training process u Parameter value.

Citation Information

Cited By

  • Hyperspectral image reconstruction method based on space-spectral characteristic fusion

    CN121962927A