A method and system for RGB image hyperspectral reconstruction based on unsupervised learning

The RGB image hyperspectral reconstruction method through unsupervised learning, combined with the generative adversarial network and the adaptive competitive gradient descent method, solves the problems of high cost and insufficient robustness in hyperspectral image reconstruction technology, and achieves efficient, semantically consistent high-speed Spectral image reconstruction.

CN116721313BActive Publication Date: 2024-10-11XUANYU BIOTECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310773583.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2023-06-21
Filing Date
2023-06-27
Publication Date
2024-10-11
Estimated Expiration
2043-06-27

AI Technical Summary

Technical Problem

Existing hyperspectral image reconstruction technology has problems such as high cost, difficulty in adjusting hyperparameters, insufficient robustness, and poor reconstruction results, especially in the absence of corresponding RGB and hyperspectral image samples.

Method used

An RGB image hyperspectral reconstruction method based on unsupervised learning is used, combined with the generative adversarial network and the adaptive competitive gradient descent method. Through the training of the generator convolutional neural network and the discriminator convolutional neural network, the preprocessing segmentation model constraint terms and Skip layer connection to achieve low-cost reconstruction of hyperspectral images.

Benefits of technology

On the premise of ensuring robustness, it achieves semantically consistent reconstruction of hyperspectral images, avoids mode collapse and hyperparameter adjustment problems, and improves the efficiency and quality of reconstruction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116721313B_ABST
    Figure CN116721313B_ABST
Patent Text Reader

Abstract

A method and system for RGB image hyperspectral reconstruction based on unsupervised learning, first preprocessing the obtained hyperspectral data set and RGB image semantic segmentation data set, then constructing a generative adversarial network model, after the model is constructed, the preprocessed hyperspectral data set and RGB image semantic segmentation data set are input to the generative adversarial network model, and the generative adversarial network model is updated and trained using an adaptive competitive gradient descent method to obtain a trained generative adversarial network model, and finally the RGB image to be reconstructed is input to the trained generative adversarial network model, and the generator convolutional neural network of the generative adversarial network model is used to output a reconstructed hyperspectral image. The present invention constructs a generative adversarial network model and combines the generative adversarial network model with an adaptive competitive gradient descent method, thereby ensuring semantic consistency before and after hyperspectral image reconstruction while being highly robust.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of hyperspectral imaging, and in particular to a method and system for RGB image hyperspectral reconstruction based on unsupervised learning. Background Art

[0002] Compared with traditional RGB images, hyperspectral images (HSI) have a higher resolution and can provide extremely detailed physical and chemical information of the target object. Therefore, they are widely used in medical diagnosis, remote sensing, food quality inspection, and computer vision projects such as face recognition, target tracking, and classification.

[0003] Hyperspectral imaging systems rely on hardware such as imaging spectrometers, mechanical filters or liquid crystal filters, which have high production costs and are complex to operate. It often takes a lot of effort and time to obtain a high-quality hyperspectral image. Due to the high cost of acquiring hyperspectral images, the task of hyperspectral image reconstruction based on RGB images has emerged. In recent years, the application of deep learning that can effectively extract features to hyperspectral reconstruction technology has gradually become the mainstream choice for hyperspectral research. In order to achieve deep learning technology for spectral super-resolution, sufficient RGB image and hyperspectral image paired data is required as an important prerequisite for achieving high performance. In the case of a shortage of hyperspectral data, spectral super-resolution technology using supervised learning is limited by cost and strict registration data pairs, and it is difficult to develop further in a short period of time. Therefore, in the absence of strictly corresponding RGB and hyperspectral image samples, unsupervised learning of spectral super-resolution has become the most valuable exploration direction for promoting hyperspectral computational imaging.

[0004] The Generative Adversarial Network (GAN) model is the most widely used architecture model for current image reconstruction generation tasks, and is also a representative unsupervised deep model method in spectral super-resolution networks. The Generative Adversarial Network consists of a generator and a discriminator, where the generator is responsible for producing samples similar to real data, while the discriminator is generally a binary classifier that determines whether the input is real data or a generated sample. The optimization process of this model is a "binary minimax game" problem, that is, the ultimate effect of the Generative Adversarial Network is to minimize the loss of the generator while maximizing the loss of the discriminator; in other words, the output of the generator can completely "fool" the discriminator. However, the existing spectral super-resolution GANs model often encounters problems of difficult hyperparameter adjustment and mode collapse during the optimization process. Hyperparameters that are difficult to adjust will cause the GANs model training optimization process to be too sensitive and lack robustness, while mode collapse will cause distortion of the spatial spectral dimension during the reconstruction process, resulting in limited reconstruction effect and inconsistent semantics.

[0005] Therefore, in the challenging task of hyperspectral image reconstruction, there is an urgent need for a hyperspectral image reconstruction technology that can ensure robustness and semantic consistency before and after reconstruction. Summary of the invention

[0006] In order to solve the problems of high cost of obtaining hyperspectral images, difficulty in adjusting hyperparameters of hyperspectral reconstruction technology, limited applicability, and insufficient robustness, the present invention proposes a method and system for hyperspectral reconstruction of RGB images based on unsupervised learning. By combining a generative adversarial network with an adaptive competitive gradient descent method, a hyperspectral image with consistent semantics can be reconstructed at low cost while ensuring robustness.

[0007] According to a first aspect of the present invention, a method for hyperspectral reconstruction of RGB images based on unsupervised learning is provided, comprising:

[0008] S1. Preprocess the hyperspectral dataset and RGB image semantic segmentation dataset;

[0009] S2. Constructing a generative adversarial network model, wherein the generative adversarial network model includes a generator convolutional neural network and an identifier convolutional neural network;

[0010] S3. Input the preprocessed hyperspectral dataset and RGB image semantic segmentation dataset into the generative adversarial network model, and use the adaptive competitive gradient descent method to update and train the generator convolutional neural network and the discriminator convolutional neural network to obtain a trained generative adversarial network model;

[0011] S4. Input the RGB image to be reconstructed into the trained generative adversarial network model, and use the generator convolutional neural network of the generative adversarial network model to output the reconstructed hyperspectral image.

[0012] Preferably, in step S1, the hyperspectral data set includes: a hyperspectral image; the RGB image semantic segmentation data set includes: a semantically segmented RGB image and its corresponding semantic label; one semantically segmented RGB image corresponds to one semantic label.

[0013] Preferably, in step S2, the generator convolutional neural network and the discriminator convolutional neural network are both composed of an upsampling layer, an intermediate layer and an output layer connected in sequence.

[0014] Preferably, the upsampling layer is a convolution layer with a convolution kernel size of 3×3; the intermediate layer is four dense layers connected in sequence, each dense layer includes a convolution layer and a normalization layer connected in sequence; the output layer is composed of a convolution layer, and the output result of the convolution layer in the output layer is added to the output result of the upsampling layer to output the final result.

[0015] According to the above technical means, the features at different levels are used to improve the generalization ability of the network, and the use of skip layer connections in the output layer can better help the network model capture the information characteristics of the image.

[0016] Preferably, in step S2, the generator convolutional neural network also includes an auxiliary network, and the auxiliary network is composed of a pre-trained segmentation model.

[0017] According to the above technical means, the generator convolutional neural network is improved by using an auxiliary network, and the generator convolutional neural network is semantically regularized during the training process to accelerate convergence.

[0018] Preferably, in step S3, the objective function of the generative adversarial network is:

[0019]

[0020]

[0021] in, are the objective functions of the generator and the discriminator, τ seg is the balance parameter, is the preprocessing segmentation model constraint, To reconstruct the image, To reconstruct the image The average value of is the binary cross entropy loss, Y r ∈R b×hw is a real hyperspectral image. Y r The mean of

[0022] The expression of the preprocessing segmentation model constraint is:

[0023]

[0024] Among them, P is the prediction result of the preprocessing segmentation model, L is the true label of the segmentation model, and h and w are the length and width of the spatial dimension of the hyperspectral image, respectively.

[0025] According to the above technical means, the semantic scene mapping is locally regularized by utilizing the preprocessing segmentation model constraints, thereby enhancing the unsupervised reconstruction capability of the generated anti-model.

[0026] Preferably, in step S3, the following steps are included:

[0027] S31. Inputting the semantically segmented RGB image in the RGB image semantic segmentation dataset into the generative adversarial network model, the generator convolutional neural network of the generative adversarial network model performs hyperspectral processing on the semantically segmented RGB image and outputs a false hyperspectral image, the auxiliary network identifies the false hyperspectral image output by the generator convolutional neural network, and outputs the auxiliary network semantic label;

[0028] S32. Input the false hyperspectral image and the hyperspectral image in the hyperspectral dataset into the discriminator convolutional neural network of the generative adversarial network model at the same time, discriminate the two, and output the semantic labels corresponding to the two;

[0029] S33. Calculate the loss of the generative adversarial network model;

[0030] S34. Use the adaptive competitive gradient descent method to optimize and update the generative adversarial network model, adjust the parameters of the convolutional neural network according to the gradient, until the discriminator convolutional neural network loss is maximized and the generator convolutional neural network loss is minimized, stop training, and output the generative adversarial network model.

[0031] Preferably, in step S3, the specific steps of calculating the loss include:

[0032] S331. Calculate the loss between the auxiliary network semantic label and the RGB image semantic label using a cross entropy loss function or a class imbalance loss function;

[0033] S332. Use a cross entropy loss function or a class imbalance loss function to calculate the loss between two semantic labels output by the discriminator convolutional neural network.

[0034] Preferably, in step S34, the update formula of the adaptive competitive gradient descent method is:

[0035]

[0036]

[0037] Among them, x is the minimized variable, y is the maximized variable, and the function f(x) is the loss function. represents the function f(x k ,y k ) about the variable x k The gradient of , η is the learning rate or step size parameter, represents the function f(x k ,y k ) about the variable y k The gradient of xy f(x k ,y k ) is the function f(xk ,y k ) about the variable x k The gradient of with respect to the variable y k The Jacobian matrix, D yx f(x k ,y k ) is the function f(x k ,y k ) about the variable y k The gradient of k The Jacobian matrix of .

[0038] According to the above technical means, the various parameters of the generative adversarial network model are updated through the adaptive competitive gradient descent method. In the adaptive competitive gradient descent method, since both parties exist as parameters in each other's objective function and influence each other in the process, the model can converge faster.

[0039] According to a second aspect of the present invention, there is provided an RGB image hyperspectral reconstruction system based on unsupervised learning, comprising:

[0040] Data processing module: used to preprocess the hyperspectral dataset and RGB image semantic segmentation dataset;

[0041] A network construction module is used to construct a generative adversarial network model, wherein the generative adversarial network model includes a generator convolutional neural network and an identifier convolutional neural network;

[0042] Model training module: used to input the preprocessed hyperspectral dataset and RGB image semantic segmentation dataset into the generative adversarial network model, and use the adaptive competitive gradient descent method to update the generator convolutional neural network and the discriminator convolutional neural network to obtain a trained generative adversarial network model;

[0043] Image reconstruction module: used to input the RGB image to be reconstructed into the trained generative adversarial network model, and use the generator convolutional neural network of the generative adversarial network model to output the reconstructed hyperspectral image.

[0044] Compared with the prior art, the present invention constructs a generative adversarial network model and combines it with the adaptive competitive gradient descent method to accelerate convergence and avoid mode collapse. It also introduces a pre-segmentation auxiliary network to achieve semantic regularization, thereby ensuring semantic consistency before and after hyperspectral image reconstruction while achieving high robustness. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 A schematic diagram showing a flow chart of a method for hyperspectral reconstruction of RGB images based on unsupervised learning proposed in Example 1 of the present invention;

[0046] Figure 2 A schematic diagram showing a generative adversarial network model proposed in Example 2 of the present invention;

[0047] Figure 3 A schematic diagram showing the structure of the RGB image hyperspectral reconstruction system based on unsupervised learning proposed in Example 3 of the present invention. DETAILED DESCRIPTION

[0048] The embodiments of the present invention provide a method and system for RGB image hyperspectral reconstruction based on unsupervised learning, which can ensure semantic consistency before and after hyperspectral image reconstruction while being highly robust.

[0049] The following will combine the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention and are only used for illustrative purposes and cannot be understood as limitations on this patent. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. The drawings are only used for illustrative purposes and cannot be understood as limitations on this patent; in order to better illustrate this embodiment, some parts of the drawings will be omitted, enlarged or reduced, and do not represent the actual size. The description of the directions of parts such as "up" and "down" is not a limitation on this patent; for those skilled in the art, it is understandable that some well-known content descriptions in the drawings may be omitted; the description of the positional relationship in the drawings is only for illustrative purposes and cannot be understood as a limitation on this patent.

[0050] Example 1

[0051] See also Figure 1 The present invention proposes a hyperspectral reconstruction method for RGB images based on unsupervised learning, comprising:

[0052] S1. Preprocess the hyperspectral dataset and RGB image semantic segmentation dataset;

[0053] S2. Constructing a generative adversarial network model, wherein the generative adversarial network model includes a generator convolutional neural network and an identifier convolutional neural network;

[0054] S3. Input the preprocessed hyperspectral dataset and RGB image semantic segmentation dataset into the generative adversarial network model, and use the adaptive competitive gradient descent method to update and train the generator convolutional neural network and the discriminator convolutional neural network to obtain a trained generative adversarial network model;

[0055] S4. Input the RGB image to be reconstructed into the trained generative adversarial network model, and use the generator convolutional neural network of the generative adversarial network model to output the reconstructed hyperspectral image.

[0056] In step S1, the hyperspectral data set includes: a hyperspectral image; the RGB image semantic segmentation data set includes: a semantically segmented RGB image and its corresponding semantic label; one semantically segmented RGB image corresponds to one semantic label.

[0057] Semantic segmentation is a basic task in computer vision. The specific work of semantic segmentation is to segment the image into blocks with certain semantic meanings and identify the semantic category of each block. After semantic segmentation of the image, the feature data of the image can be better extracted.

[0058] In step S2, the generator convolutional neural network and the discriminator convolutional neural network are both composed of an upsampling layer, an intermediate layer and an output layer connected in sequence.

[0059] The upsampling layer is a convolution layer with a convolution kernel size of 3×3; the intermediate layer is four dense layers connected in sequence, each dense layer includes a convolution layer and a normalization layer connected in sequence; the output layer is composed of a convolution layer, and the output result of the convolution layer in the output layer is added to the output result of the upsampling layer to output the final result.

[0060] In this embodiment, the input RGB image passes through the generator network, passes through a 3×3 upsampling convolution layer, and upsamples the feature map to the target size, and then passes through the intermediate layer. In the process of connecting the four dense layers in the intermediate layer, the input dimension of the dense layer is increased by multiplying the output dimension by an odd number sequence (1, 3, 5, 7) starting from 1, so as to extract features from a progressive architecture from rough estimation to detailed estimation, effectively utilize features at different levels, improve the generalization ability of the network, and accelerate convergence. The activation function of the convolution layer in the dense layer is optional. During the training process, the generative adversarial network will select an activation function with a loss that is more in line with the requirements according to the training effect; the normalization method of the normalization layer is also optional. The normalization method includes batch normalization or spectral normalization layer. During the training process, the generative adversarial network will select a normalization method with a loss that is more in line with the requirements according to the training effect. The output dimension of the convolution layer in the output layer is set to the target dimension to ensure the reconstruction dimension requirement. In this embodiment, the output dimension of the generator is set to 31 dimensions. After the convolution layer in the output layer completes the convolution of the data, the output result of the convolution layer will be added to the output result of the upsampling layer, that is, the output result will be skipped, which can help the network better capture the important information features in the image to be reconstructed and alleviate the gradient disappearance and information bottleneck problems.

[0061] Example 2

[0062] Example 2 introduces a pre-trained segmentation model as an auxiliary network of the generator convolutional neural network based on the original generative adversarial network.

[0063] In step S2, the generator convolutional neural network also includes an auxiliary network, and the auxiliary network is composed of a pre-trained segmentation model.

[0064] In this embodiment, the pre-trained segmentation model is a pre-trained segmentation model commonly used in the field of semantic segmentation. By introducing the pre-trained segmentation model, the generator convolutional neural network is improved, so that the generator convolutional neural network is semantically regularized during the training process to ensure the semantic consistency before and after the hyperspectral image reconstruction.

[0065] In step S3, the objective function of the generative adversarial network is:

[0066]

[0067]

[0068] in, are the objective functions of the generator and the discriminator, τ seg is the balance parameter, is the preprocessing segmentation model constraint, To reconstruct the image, To reconstruct the image The average value of is the binary cross entropy loss, Y r ∈R b×hw is a real hyperspectral image. Y r The mean of

[0069] The expression of the preprocessing segmentation model constraint is:

[0070]

[0071] Among them, P is the prediction result of the preprocessing segmentation model, L is the true label of the segmentation model, and h and w are the length and width of the spatial dimension of the hyperspectral image, respectively.

[0072] This embodiment uses the preprocessing segmentation model constraints to locally regularize the semantic scene mapping, thereby enhancing the unsupervised reconstruction capability of the generative adversarial model.

[0073] In step S3, the following steps are included:

[0074] S31. Inputting the semantically segmented RGB image in the RGB image semantic segmentation dataset into the generative adversarial network model, the generator convolutional neural network of the generative adversarial network model performs hyperspectral processing on the semantically segmented RGB image and outputs a false hyperspectral image, the auxiliary network identifies the false hyperspectral image output by the generator convolutional neural network, and outputs the auxiliary network semantic label;

[0075] S32. Input the false hyperspectral image and the hyperspectral image in the hyperspectral dataset into the discriminator convolutional neural network of the generative adversarial network model at the same time, discriminate the two, and output the semantic labels corresponding to the two;

[0076] S33. Calculate the loss of the generative adversarial network model;

[0077] S34. Use the adaptive competitive gradient descent method to optimize and update the generative adversarial network model, adjust the parameters of the convolutional neural network according to the gradient, until the discriminator convolutional neural network loss is maximized and the generator convolutional neural network loss is minimized, stop training, and output the generative adversarial network model.

[0078] In step S3, the specific steps of calculating the loss include:

[0079] S331. Calculate the loss between the auxiliary network semantic label and the RGB image semantic label using a cross entropy loss function or a class imbalance loss function;

[0080] S332. Use a cross entropy loss function or a class imbalance loss function to calculate the loss between two semantic labels output by the discriminator convolutional neural network.

[0081] When using neural networks to deal with classification problems, the cross entropy loss function and the category imbalance loss function are commonly used loss functions. Both are more sensitive to category losses. During the update process, the generative adversarial network will select a better loss function based on the loss.

[0082] In step S34, the update formula of the adaptive competitive gradient descent method is:

[0083]

[0084]

[0085] Among them, x is the minimized variable, y is the maximized variable, and the function f(x) is the loss function. represents the function f(x k ,y k ) about the variable x k The gradient of , η is the learning rate or step size parameter, represents the function f(x k ,y k ) about the variable y k The gradient of xy f(x k ,y k ) is the function f(x k ,y k ) about the variable x k The gradient of with respect to the variable y k The Jacobian matrix, D yx f(x k ,y k ) is the function f(x k ,y k ) about the variable y k The gradient of k The Jacobian matrix of .

[0086] Compared with the invisible stochastic gradient optimization algorithm in which the existence of the other party is not taken into account when the two parties choose actions during the update process, this embodiment adopts a competitive optimization gradient descent method, and obtains the update formula from the Nash equilibrium of the regularized bilinear approximation of the basic game, and strengthens the ICR with local optimization to simulate the existence of both parties and predict the next actions of both parties for calculation and update. Specifically, in the optimization of reconstruction task loss, an invisible competitive regularization (ICR) unconstrained dynamic optimization is adopted, that is, while fixing one party (generator or discriminator), ICR can selectively optimize the other party (generator or discriminator) that is not good, until the maximum discriminator and minimum generator loss are achieved, the training is completed, and the final model is obtained.

[0087] In the process of calculating the maximum discriminator and minimum generator loss, since the ideal state is often not achieved, in practical applications, the dynamic balance of the discriminator-generator loss is often used as the criterion for ending training.

[0088] Example 3

[0089] This embodiment improves the loss calculation method based on Embodiment 2.

[0090] In step S3, the data is averaged, including: before an optimization update, the average value of the losses obtained after multiple sample inputs is calculated, and then the optimization update is performed based on the average value. In this embodiment, the loss of the generative adversarial network model is calculated 16 times, and the average value of the 16 losses is calculated, and finally the optimization update is performed based on the average value of the losses.

[0091] Example 4

[0092] See also Figure 3The present invention proposes an RGB image hyperspectral reconstruction system based on unsupervised learning, comprising:

[0093] Data processing module: used to preprocess the hyperspectral dataset and RGB image semantic segmentation dataset;

[0094] A network construction module is used to construct a generative adversarial network model, wherein the generative adversarial network model includes a generator convolutional neural network and an identifier convolutional neural network;

[0095] Model training module: used to input the preprocessed hyperspectral dataset and RGB image semantic segmentation dataset into the generative adversarial network model, and use the adaptive competitive gradient descent method to update the generator convolutional neural network and the discriminator convolutional neural network to obtain a trained generative adversarial network model;

[0096] Image reconstruction module: used to input the RGB image to be reconstructed into the trained generative adversarial network model, and use the generator convolutional neural network of the generative adversarial network model to output the reconstructed hyperspectral image.

[0097] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.

Claims

1. A hyperspectral reconstruction method for RGB images based on unsupervised learning, characterized in that: The following steps are involved: S1. Preprocess the hyperspectral dataset and RGB image semantic segmentation dataset; S2. Constructing a generative adversarial network model, wherein the generative adversarial network model includes a generator convolutional neural network and an identifier convolutional neural network; S3. Input the preprocessed hyperspectral dataset and RGB image semantic segmentation dataset into the generative adversarial network model, and use the adaptive competitive gradient descent method to update and train the generator convolutional neural network and the discriminator convolutional neural network to obtain a trained generative adversarial network model; The update formula of the adaptive competitive gradient descent method is: Among them, x is the minimized variable, y is the maximized variable, and the function f(x) is the loss function. represents the function f(x k ,y k ) about the variable x k The gradient of , η is the learning rate, represents the function f(x k ,y k ) about the variable y k The gradient of xy f(x k ,y k ) is the function f(x k ,y k ) about the variable x k The gradient of with respect to the variable y k The Jacobian matrix, D yx f(x k ,y k ) is the function f(x k ,y k ) about the variable y k The gradient of with respect to the variable x k The Jacobian matrix of ; S4. Input the RGB image to be reconstructed into the trained generative adversarial network model, and use the generator convolutional neural network of the generative adversarial network model to output the reconstructed hyperspectral image.

2. The RGB image hyperspectral reconstruction method based on unsupervised learning according to claim 1, characterized in that: In step S1, the hyperspectral data set includes: a hyperspectral image; the RGB image semantic segmentation data set includes: a semantically segmented RGB image and its corresponding semantic label; one semantically segmented RGB image corresponds to one semantic label.

3. The RGB image hyperspectral reconstruction method based on unsupervised learning according to claim 2 is characterized in that: In step S2, the generator convolutional neural network and the discriminator convolutional neural network are both composed of an upsampling layer, an intermediate layer and an output layer connected in sequence.

4. The RGB image hyperspectral reconstruction method based on unsupervised learning according to claim 3 is characterized in that: The upsampling layer is a convolution layer with a convolution kernel size of 3×3; the intermediate layer is four dense layers connected in sequence, each dense layer includes a convolution layer and a normalization layer connected in sequence; the output layer is composed of a convolution layer, and the output result of the convolution layer in the output layer is added to the output result of the upsampling layer to output the final result.

5. The RGB image hyperspectral reconstruction method based on unsupervised learning according to claim 4 is characterized in that: In step S2, the generator convolutional neural network also includes an auxiliary network, and the auxiliary network is composed of a pre-trained segmentation model.

6. The RGB image hyperspectral reconstruction method based on unsupervised learning according to claim 5, characterized in that: In step S3, the objective function of the generative adversarial network is: in, are the objective functions of the generator and the discriminator, τ seg is the balance parameter, is the preprocessing segmentation model constraint, To reconstruct the image, To reconstruct the image The average value of is the binary cross entropy loss, Y r ∈R b×hw is a real hyperspectral image. Y r The mean of The expression of the preprocessing segmentation model constraint is: Among them, P is the prediction result of the preprocessing segmentation model, L is the true label of the segmentation model, and h and w are the length and width of the spatial dimension of the hyperspectral image, respectively.

7. The RGB image hyperspectral reconstruction method based on unsupervised learning according to claim 6, characterized in that: In step S3, the following steps are included: S31. Inputting the semantically segmented RGB image in the RGB image semantic segmentation dataset into the generative adversarial network model, the generator convolutional neural network of the generative adversarial network model reconstructs the hyperspectral image of the semantically segmented RGB image, and outputs a false hyperspectral image, the auxiliary network identifies the false hyperspectral image output by the generator convolutional neural network, and outputs the auxiliary network semantic label; S32. The false hyperspectral image and the hyperspectral image in the hyperspectral dataset are simultaneously input into the discriminator convolutional neural network of the generative adversarial network model, and the discriminator convolutional neural network discriminates the two respectively and outputs the semantic labels corresponding to the two; S33. Calculate the loss of the generative adversarial network model; S34. Use the adaptive competitive gradient descent method to optimize and update the generative adversarial network model, adjust the parameters of the convolutional neural network according to the gradient, until the discriminator convolutional neural network loss is maximized and the generator convolutional neural network loss is minimized, stop training, and output the generative adversarial network model.

8. The RGB image hyperspectral reconstruction method based on unsupervised learning according to claim 7, characterized in that: In step S3, the specific steps of calculating the loss include: S331. Calculate the loss between the auxiliary network semantic label and the RGB image semantic label using a cross entropy loss function or a class imbalance loss function; S332. Use a cross entropy loss function or a class imbalance loss function to calculate the loss between two semantic labels output by the discriminator convolutional neural network.

9. A hyperspectral reconstruction system for RGB images based on unsupervised learning, characterized in that: include: Data processing module: used to preprocess the hyperspectral dataset and RGB image semantic segmentation dataset; A network construction module is used to construct a generative adversarial network model, wherein the generative adversarial network model includes a generator convolutional neural network and an identifier convolutional neural network; Model training module: used to input the preprocessed hyperspectral dataset and RGB image semantic segmentation dataset into the generative adversarial network model, and use the adaptive competitive gradient descent method to update the generator convolutional neural network and the discriminator convolutional neural network to obtain a trained generative adversarial network model; The update formula of the adaptive competitive gradient descent method is: Among them, x is the minimized variable, y is the maximized variable, and the function f(x) is the loss function. represents the function f(x k ,y k ) about the variable x k The gradient of , η is the learning rate, represents the function f(x k ,y k ) about the variable y k The gradient of xy f(x k ,y k ) is the function f(x k ,y k ) about the variable x k The gradient of with respect to the variable y k The Jacobian matrix, D yx f(x k ,y k ) is the function f(x k ,y k ) about the variable y k The gradient of with respect to the variable x k The Jacobian matrix of ; Image reconstruction module: used to input the RGB image to be reconstructed into the trained generative adversarial network model, and use the generator convolutional neural network of the generative adversarial network model to output the reconstructed hyperspectral image.