Parameter training, acquisition method and system of infrared hyperspectral compression acquisition chip based on diffraction coding
Through the combination of infrared hyperspectral compression acquisition chip and neural network based on diffraction coding, the problems of low efficiency, low accuracy and high noise in infrared hyperspectral imaging methods are solved, and efficient and low-cost infrared hyperspectral information collection is achieved.
Patent Information
- Application Number
- CN202410237403.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-01
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-03-01
AI Technical Summary
Existing infrared hyperspectral imaging methods require multiple complex scans, are low in efficiency and accuracy, and non-scanning systems are noisy and costly.
Using an infrared hyperspectral compression acquisition chip and acquisition model parameter training method based on diffraction coding, by constructing a training data set and an initial optical module, diffractive optical elements and infrared sensors are used to generate a point spread function, and combined with a neural network for feature extraction and reconstruction. Optimize optical modules and neural networks to obtain high-precision infrared hyperspectral information.
It achieves the acquisition of high-precision infrared hyperspectral information in a single exposure, improves efficiency and imaging accuracy, and reduces noise and cost.
Smart Images

Figure CN118015126B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optoelectronic technology, and in particular to a parameter training and acquisition method and system for an infrared hyperspectral compression acquisition chip based on diffraction coding. Background Art
[0002] Hyperspectral imaging technology provides spectral information of the collected target and explains the basic information composition of the scene in the wavelength dimension of light. Near-infrared and mid-infrared hyperspectral imaging can provide the chemical composition of objects or surfaces, and is mainly used in agriculture, medicine and art identification. Long-wave infrared has obvious advantages in remote sensing monitoring and other aspects.
[0003] Due to the limitation of hardware system equipment, infrared hyperspectral imaging mostly needs to be split and scanned by dispersive elements, while non-scanning infrared hyperspectral imaging systems usually have problems of high noise and high cost. The significant development of image sensors and algorithm reconstruction has made it possible to obtain high-resolution and high-precision infrared spectral information of multiple bands in a single exposure.
[0004] The snapshot hyperspectral imaging method based on diffractive optical elements (DOE) is a relatively good hyperspectral snapshot imaging method that can simultaneously capture the spatial and spectral information of natural scenes through a single exposure. The basic principle of the snapshot hyperspectral imaging method based on diffractive optical elements is to capture compressed measurement data containing point spread function (PSF) modulated spectrum and spatial information, and reconstruct a three-dimensional hyperspectral cube through a reconstruction algorithm. Summary of the invention
[0005] In view of this, the embodiments of the present invention provide a parameter training, acquisition method and system for an infrared hyperspectral compression acquisition chip based on diffraction coding to eliminate or improve one or more defects existing in the prior art, solve the problems that the existing infrared hyperspectral imaging method requires multiple complex scans, low efficiency and low precision, and the non-scanning infrared hyperspectral imaging system has high noise and high cost.
[0006] On the one hand, the present invention provides an infrared hyperspectral compression acquisition chip based on diffraction coding and an acquisition model parameter training method, the method comprising the following steps:
[0007] Constructing a training data set, wherein the training data set includes natural light of different bands and its real infrared hyperspectrum;
[0008] Constructing an initial optical module, the optical module includes a diffractive optical element and an infrared sensor; using the diffractive optical element as an infrared hyperspectral compression acquisition chip; projecting the natural light to the infrared sensor via the diffractive optical element, and forming different point spread functions on the infrared sensor according to different preset diffractive optical element height maps; using the point spread function to modulate the real infrared hyperspectrum of the natural light, and generating an infrared hyperspectral grayscale map in combination with the spectral response of the infrared sensor;
[0009] Constructing an initial neural network, the neural network comprising an encoder and a decoder; inputting the infrared hyperspectral grayscale image into the neural network, in the encoder, extracting features of the infrared hyperspectral grayscale image and downsampling it to generate a feature map, in the decoder, upsampling the feature map and cascading it with the feature map, and finally outputting a reconstructed infrared hyperspectrum; wherein the height map matrix of the diffractive optical element is put into the neural network as a learnable parameter for training;
[0010] The optical module and the neural network are trained using the training data set to construct the losses of the real infrared hyperspectrum and the reconstructed infrared hyperspectrum. The optical module and the neural network are optimized according to the losses, and the trained optical module and neural network are combined to obtain an infrared hyperspectral acquisition model.
[0011] In some embodiments of the present invention, the method further comprises:
[0012] According to the Fresnel theorem, the natural light is modeled and the calculation formula is:
[0013]
[0014] Wherein, (x, y) represents the position coordinates on the diffractive optical element; λ represents the wavelength of the natural light; i is an imaginary number; z represents the depth of the natural light;
[0015] The natural light is passed through the diffractive optical element, the natural light is encoded, and the phase delay is obtained. The calculation process is:
[0016]
[0017]
[0018] Among them, U 1 (x, y, λ) represents the coded natural light; Δφ h represents phase delay; Δη λ represents the difference between the refractive index of the material and that of air; Δh(r) represents the height map distribution of the diffractive optical element.
[0019] In some embodiments of the present invention, the method further comprises:
[0020] According to the coded natural light and the distance between the infrared sensor and the diffractive optical element, the natural light reaching the infrared sensor is modeled based on the Fresnel theorem, and the calculation formula is:
[0021]
[0022] Among them, U 2 (x, y, λ) represents the natural light reaching the infrared sensor; F represents Fourier transform; U 1 represents the encoded natural light; λ represents the wavelength of the natural light; z represents the depth of the natural light; represents the frequency variable of x; represents the frequency variable of y;
[0023] According to the natural light reaching the infrared sensor, the point spread function formed on the infrared sensor is calculated, and the calculation formula is:
[0024] P(x,y,λ)∝|U 2 (x, y, λ)| 2 ;
[0025] Wherein, P(x, y, λ) represents the point spread function; U 2 (x, y, λ) represents the natural light reaching the infrared sensor.
[0026] In some embodiments of the present invention, the point spread function is used to modulate the real infrared hyperspectrum of the natural light, and combined with the spectral response of the infrared sensor to generate an infrared hyperspectral grayscale image, and the calculation process is:
[0027]
[0028]
[0029] Wherein, I′(x, y, λ) represents the real infrared hyperspectrum modulated by the point spread function; P(x, y, λ) represents the point spread function; I(x, y, λ) represents the real infrared hyperspectrum; represents convolution; I(x, y) represents the infrared hyperspectral grayscale image; λ 0 Indicates the lower limit of the hyperspectral wavelength that needs to be collected; λ 1 represents the upper limit of the high-spectrum wavelength that needs to be collected; R(λ) represents the response curve of the infrared sensor to different wavelengths; d(λ) represents the differential with respect to wavelength; η represents noise.
[0030] In some embodiments of the present invention, the height map matrix of the diffractive optical element is put into the neural network as a learnable parameter for training, further comprising:
[0031] For the short-wave infrared hyperspectral spectrum, polar coordinates are set at the center position of the height map matrix of the diffractive optical element, the diffractive optical element in the 2π angle range is divided into 8 petals, and a plurality of uniform intervals are set according to the distance from the point in the height map matrix to the center position, so as to generate a diffractive optical element of a preset size according to the height map matrix;
[0032] For medium-wave or long-wave infrared hyperspectral spectrum, polar coordinates are set at the center position of the height map matrix of the diffractive optical element, the diffractive optical element with an angle range of 2π is divided into 6 petals, and multiple uniform intervals are set according to the distance from the point in the height map matrix to the center position to generate a diffractive optical element of a preset size according to the height map matrix.
[0033] In some embodiments of the present invention, the neural network adopts an encoder-decoder structure and further comprises:
[0034] The structure uses a residual block in the neural network for feature extraction, and the residual block consists of a 2D convolution kernel, an exponential linear unit activation function and a batch normalization layer;
[0035] In the encoder, the residual block is used to extract features, and the maximum pooling layer is used to downsample to generate the feature map; in the decoder, the feature map is upsampled using an upsampling layer and a convolutional layer, and is cascaded with the feature map.
[0036] In another aspect, the present invention provides an infrared hyperspectral acquisition method, the method comprising:
[0037] Obtain natural light for collecting infrared hyperspectrum;
[0038] The natural light is emitted into the infrared hyperspectral acquisition model trained by any of the above-mentioned infrared hyperspectral compression acquisition chips based on diffraction coding and acquisition model parameter training methods to generate an infrared hyperspectral spectrum of the natural light.
[0039] On the other hand, the present invention provides an infrared hyperspectral acquisition system, which is trained based on any of the above-mentioned infrared hyperspectral compression acquisition chips based on diffraction coding and acquisition model parameter training methods, and is used to implement the steps of the infrared hyperspectral acquisition method as described above, and the system includes:
[0040] Filters for passing and / or filtering out specific wavelengths of natural light;
[0041] An optical module, comprising a diffractive optical element and an infrared sensor, wherein the diffractive optical element is used as an infrared hyperspectral compression acquisition chip; used to form different point spread functions on the infrared sensor according to different preset diffractive optical element height maps; using the point spread function to modulate the infrared hyperspectrum of natural light passing through the filter, and combining the spectral response of the infrared sensor to generate an infrared hyperspectral grayscale map;
[0042] An algorithm module is used to generate a reconstructed infrared hyperspectrum according to the infrared hyperspectral grayscale image.
[0043] In some embodiments of the present invention, the infrared sensor adopts a CMOS camera; when collecting short-wave infrared hyperspectral spectrum, the diffractive optical element adopts silica glass material; when collecting medium-wave or long-wave infrared hyperspectral spectrum, the diffractive optical element adopts silicon material.
[0044] On the other hand, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods mentioned above.
[0045] The beneficial effects of the present invention are at least:
[0046] The present invention provides an infrared hyperspectral compression acquisition chip based on diffraction coding and an acquisition model parameter training method, an acquisition method and a system, constructs a training data set, which includes natural light of different bands and its real infrared hyperspectrum; constructs an initial optical module, which includes a diffractive optical element and an infrared sensor; forms different point spread functions on the infrared sensor according to different preset diffractive optical element height maps to modulate the real infrared hyperspectrum of natural light, and generates an infrared hyperspectral grayscale map in combination with the spectral response of the infrared sensor; constructs an initial neural network, inputs an infrared hyperspectral grayscale map, outputs a reconstructed infrared hyperspectrum, uses a training data set for training, constructs the loss of the real infrared hyperspectrum and the reconstructed infrared hyperspectrum, optimizes the optical module and the neural network, and combines to obtain an infrared hyperspectral acquisition model. The infrared hyperspectral acquisition model can obtain high-precision infrared hyperspectral information with only a single exposure, and has high efficiency, high imaging accuracy and high resolution.
[0047] Additional advantages, purposes, and features of the present invention will be described in part in the following description, and will become apparent to those skilled in the art after studying the following, or may be learned from the practice of the present invention. The purposes and other advantages of the present invention may be achieved and obtained by the structures specifically indicated in the specification and the accompanying drawings.
[0048] Those skilled in the art will appreciate that the objectives and advantages that can be achieved with the present invention are not limited to the above specific description, and the above and other objectives that can be achieved by the present invention will be more clearly understood from the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The drawings described herein are used to provide a further understanding of the present invention, constitute a part of the present application, and do not constitute a limitation of the present invention. In the drawings:
[0050] Figure 1 The present invention is a schematic diagram of the steps of an infrared hyperspectral compression acquisition chip based on diffraction coding and an acquisition model parameter training method in one embodiment of the present invention.
[0051] Figure 2 The present invention is a flowchart of an infrared hyperspectral compression acquisition chip based on diffraction coding and an acquisition model parameter training method in one embodiment of the present invention.
[0052] Figure 3 Schematic diagram of the height map matrix of the diffractive optical element of the short-wave infrared hyperspectral spectrum in one embodiment of the present invention.
[0053] Figure 4 It is a schematic diagram of the height map matrix of the diffractive optical element of the medium-wave and long-wave infrared hyperspectral spectrum in one embodiment of the present invention.
[0054] Figure 5 Schematic diagram of a neural network structure in one embodiment of the present invention.
[0055] Figure 6 The figure is a schematic diagram of the structure of an infrared hyperspectral acquisition system in one embodiment of the present invention.
[0056] Figure 7 It is a schematic diagram of simulation experiment results of short-wave infrared hyperspectral imaging in one embodiment of the present invention.
[0057] Figure 8 Schematic diagram of simulation experiment results of medium-wave and long-wave infrared hyperspectral imaging in one embodiment of the present invention DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments and the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0059] It should also be noted that, in order to avoid obscuring the present invention due to unnecessary details, only structures and / or processing steps closely related to the solutions according to the present invention are shown in the accompanying drawings, while other details that are not closely related to the present invention are omitted.
[0060] It should be emphasized that the term “include / comprises” when used herein refers to the presence of features, elements, steps or components, but does not exclude the presence or addition of one or more other features, elements, steps or components.
[0061] It should also be noted that, unless otherwise specified, the term “connection” herein may refer not only to a direct connection but also to an indirect connection involving an intermediate.
[0062] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the accompanying drawings, the same reference numerals represent the same or similar components, or the same or similar steps.
[0063] It should be emphasized here that the step marks mentioned below are not intended to limit the order of the steps, but it should be understood that the steps can be executed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be executed simultaneously.
[0064] In order to solve the problems that the existing infrared hyperspectral imaging methods require multiple complex scans, low efficiency and low precision, and the problems that the non-scanning infrared hyperspectral imaging system has large noise and high cost, the present invention proposes an infrared hyperspectral compression acquisition chip based on diffraction coding and an acquisition model parameter training method, such as Figure 1 As shown, the method includes the following steps S101 to S104:
[0065] Step S101: construct a training data set, wherein the training data set includes natural light of different bands and its real infrared hyperspectrum.
[0066] Step S102: construct an initial optical module, wherein the optical module includes a diffractive optical element and an infrared sensor, and the diffractive optical element is used as an infrared hyperspectral compression acquisition chip. Natural light is projected onto the infrared sensor via the diffractive optical element, and different point spread functions are formed on the infrared sensor according to different preset diffractive optical element height maps; the point spread function is used to modulate the real infrared hyperspectrum of natural light, and combined with the spectral response of the infrared sensor, an infrared hyperspectral grayscale map is generated.
[0067] Step S103: construct an initial neural network, wherein the neural network includes an encoder and a decoder. Input the infrared hyperspectral grayscale image into the neural network. In the encoder, extract the features of the infrared hyperspectral grayscale image and downsample it to generate a feature map. In the decoder, upsample the feature map and cascade it with the feature map to finally output the reconstructed infrared hyperspectrum. The height map matrix of the diffractive optical element is put into the neural network as a learnable parameter for training.
[0068] Step S104: Use the training data set to train the optical module and the neural network, construct the loss of the real infrared hyperspectrum and the reconstructed infrared hyperspectrum, optimize the optical module and the neural network according to the loss, and combine the trained optical module and the neural network to obtain the infrared hyperspectral acquisition model.
[0069] like Figure 2 The figure shows a flow chart of an infrared hyperspectral compression acquisition chip based on diffraction coding and an acquisition model parameter training method.
[0070] In step S101, a training data set is constructed based on existing open source data, where the training data set includes natural light of different bands and its real infrared hyperspectrum.
[0071] In step S102, an initial optical module is constructed, and the optical module includes a diffractive optical element and an infrared sensor. In the present invention, the main principle of the optical module is: the diffractive optical element realizes phase modulation of the incident light through different height maps, and different point spread functions can be formed on the infrared sensor through different phase modulations, and the point spread function is convolved with the incident light infrared hyperspectral data to realize image compression. Specifically:
[0072] Each natural light in the training data set is projected onto the infrared sensor through a diffractive optical element.
[0073] First, natural light is modeled. In some embodiments, for natural light incident from a depth z, according to the Fresnel theorem, it can be modeled as formula (1):
[0074]
[0075] In formula (1), (x, y) represents the position coordinates on the diffractive optical element; λ represents the wavelength of natural light; i is an imaginary number; and z represents the depth of natural light.
[0076] After natural light is encoded by the diffractive optical element, it is as shown in formula (2):
[0077]
[0078] In formula (2), U 1 (x, y, λ) represents the encoded natural light; U 0 (x, y, λ) represents the original natural light; Δφ h Indicates phase delay.
[0079] Where, the phase delay Δφ h It is expressed as formula (3):
[0080]
[0081] In formula (3), Δη λ represents the difference between the refractive index of the material and air; Δh(r) represents the height map distribution of the diffractive optical element.
[0082] The natural light encoded by the diffractive optical element reaches the infrared sensor plane. In some embodiments, assuming that the distance between the infrared sensor and the diffractive optical element is d, according to the Fresnel theorem, the natural light reaching the infrared sensor can be modeled as formula (4):
[0083]
[0084] In formula (4), U 2 (x, y, λ) represents the natural light reaching the infrared sensor; F represents Fourier transform; U 1 represents the encoded natural light; λ represents the wavelength of natural light; z represents the depth of natural light; represents the frequency variable of x; Represents the frequency variable of y.
[0085] Therefore, according to the natural light reaching the infrared sensor, the point spread function formed on the infrared sensor can be expressed as formula (5):
[0086] P(x,y,λ)∝|U 2 (x, y, λ)| 2 ; (5)
[0087] In formula (5), P(x, y, λ) represents the point spread function; U 2 (x, y, λ) represents the natural light reaching the infrared sensor.
[0088] The point spread function is used to modulate the real infrared hyperspectrum of natural light, as shown in formula (6):
[0089]
[0090] Wherein, I′(x, y, λ) represents the real infrared hyperspectrum modulated by the point spread function; P(x, y, λ) represents the point spread function; I(x, y, λ) represents the real infrared hyperspectrum; Represents convolution.
[0091] Combined with the spectral response of the infrared sensor, an infrared hyperspectral grayscale image (image on the infrared sensor) is generated, as shown in formula (7):
[0092]
[0093] In formula (7), I(x, y) represents the infrared hyperspectral grayscale image; λ 0 Indicates the lower limit of the hyperspectral wavelength that needs to be collected; λ1 It represents the upper limit of the hyperspectral wavelength that needs to be collected; R(λ) represents the response curve of the infrared sensor to different wavelengths; d(λ) represents the differential with respect to wavelength; η represents noise.
[0094] It can be seen that by designing different diffractive optical element height maps, different point spread functions can be achieved, thereby obtaining different hyperspectral encoded grayscale information.
[0095] In step S103, an initial neural network is constructed, wherein the neural network adopts an encoder-decoder structure. The infrared hyperspectral grayscale image obtained in step S102 is input into the neural network, and in the encoder, the infrared hyperspectral grayscale image is feature extracted and downsampled to generate a feature map, and in the decoder, the feature map is upsampled and cascaded with the feature map, and finally the reconstructed infrared hyperspectrum is output.
[0096] In the present invention, the neural network module mainly learns the specific height map distribution of the diffractive optical element through neural network training to realize diffractive optical imaging. Therefore, the specific parameters of the diffractive optical element and the infrared sensor need to be preset before training. It should be noted that the specific parameters are not limited in the present invention, and a specific embodiment is given in the hardware description below.
[0097] In some embodiments, in order to make the infrared hyperspectral acquisition model provided by the present invention applicable to all bands, short-wave, medium-wave, and long-wave infrared hyperspectral spectra are specifically designed.
[0098] For the short-wave infrared hyperspectral spectrum, the polar coordinates are set at the center of the height map matrix of the diffractive optical element, and the diffractive optical element in the 2π angle range is divided into 8 petals, that is, divided into At the same time, multiple uniform intervals are set according to the distance from the point in the height map matrix to the center position. For example, 512 uniform intervals are set. Thus, the diffractive optical element height map matrix is divided into 8 angles, each angle has 512 uniform intervals, that is, 512×8 parameters. Thus, a diffractive optical element of a preset size is generated according to a 512×8 height map matrix. For example, the preset diffractive optical element size is 1024×1024, and the generated diffractive optical element height map matrix is as follows: Figure 3 shown.
[0099] For medium-wave or long-wave infrared hyperspectral, polar coordinates are set at the center of the height map matrix of the diffractive optical element, and the diffractive optical element in the 2π angle range is divided into 6 petals, that is, divided into At the same time, multiple uniform intervals are set according to the distance from the point in the height map matrix to the center position. For example, 512 uniform intervals are set. Thus, the height map matrix of the diffractive optical element is divided into 6 angles, each angle has 512 uniform intervals, that is, 512×6 parameters. Thus, a diffractive optical element of a preset size is generated according to a 512×6 height map matrix. For example, the preset diffractive optical element size is 1024×1024, and the generated diffractive optical element height map matrix is as follows: Figure 4 shown.
[0100] Based on the above description, in the present invention, the 512×n (n=8 or n=6) diffractive optical element height map matrix proposed above is put into the neural network as a learnable parameter for training, and is combined with the back-end neural network for encoding and decoding.
[0101] In some embodiments, Figure 5 As shown in the figure, the neural network constructs an encoder-decoder structure based on the existing U-Net model. The structure uses a residual block in the neural network, where the residual block consists of a 2D convolution kernel, an exponential linear unit (ELU) activation function and a batch normalization (BN) layer.
[0102] In the encoder, i.e. the encoding stage, the neural network uses the residual block for feature extraction and uses the maximum pooling layer for downsampling to generate a feature map. In the decoder, i.e. the decoding stage, the neural network uses the upsample layer and the convolution layer to upsample the encoded feature map and concatenate it with the encoded feature map.
[0103] In step S104, the overall model is trained using a training data set to construct the losses of the real infrared hyperspectrum and the reconstructed infrared hyperspectrum, and the optical module and the neural network are optimized according to the losses until the preset conditions are met to obtain the infrared hyperspectral acquisition model.
[0104] In some embodiments, a test set is constructed using existing open source data to test the trained infrared hyperspectral acquisition model for performance evaluation and optimization.
[0105] The present invention also provides an infrared hyperspectral acquisition method, which includes steps S201-S202:
[0106] Step S201: Acquire natural light of the infrared hyperspectrum to be collected.
[0107] Step S202: injecting natural light into the infrared hyperspectral acquisition model trained by the infrared hyperspectral compression acquisition chip based on diffraction coding and the acquisition model parameter training method described above, to generate an infrared hyperspectral spectrum of natural light.
[0108] The present invention also provides an infrared hyperspectral acquisition system, which is based on the infrared hyperspectral compression acquisition chip based on diffraction coding and the acquisition model parameter training method mentioned above, and is used to implement the steps of the infrared hyperspectral acquisition method mentioned above, such as Figure 6 As shown, the system includes:
[0109] Filters are used to pass and / or remove specific wavelengths of natural light.
[0110] The optical module includes a diffractive optical element and an infrared sensor, and the diffractive optical element is used as an infrared hyperspectral compression acquisition chip. It is used to form different point spread functions on the infrared sensor according to different preset diffractive optical element height maps; the point spread function is used to modulate the infrared hyperspectrum of natural light passing through the filter, and the infrared hyperspectral grayscale map is generated in combination with the spectral response of the infrared sensor.
[0111] An algorithm module is used to generate a reconstructed infrared hyperspectrum based on an infrared hyperspectral grayscale image.
[0112] In some embodiments, the infrared sensor is implemented as a CMOS camera.
[0113] In some embodiments, when collecting short-wave infrared hyperspectral, the diffractive optical element is made of silica glass material, and when collecting medium-wave or long-wave infrared hyperspectral, the diffractive optical element is made of silicon material. For other hardware parameters, please refer to Table 1.
[0114] Table 1 Hardware parameters
[0115]
[0116] The present invention is further described below in conjunction with a specific experimental simulation.
[0117] according to Figure 6 The infrared hyperspectral acquisition system structure provided is used to build an infrared hyperspectral acquisition simulation system. According to shortwave, medium wave and long wave, the simulation includes two categories:
[0118] Short-wave infrared hyperspectral imaging: Pre-set hardware parameters, diffractive optical element material is SK1300, single pixel size is 5um, size is 1024pixel×1024pixel, system focal length is 50mm, CMOS camera (infrared sensor) resolution is 1280×1024, pixel size is 5um, front-end filter is 700-1400nm. During the training process, the depth of the diffractive optical element is limited to no more than 7.5um, the hyperspectral band range is 700-1400nm, and the wavelength resolution is 20nm.
[0119] Medium-wave and long-wave infrared hyperspectral imaging: Preset hardware parameters, diffractive optical element material is single crystal silicon, single pixel size is 6um, size is 1024pixel×1024pixel, system focal length is 30mm, CMOS camera (infrared sensor) resolution is 1280×1024, pixel size is 5um, front-end filter is 5-8um (medium wave) or 8-15um (long wave). During the training process, the depth of the diffractive optical element is limited to no more than 10um, the hyperspectral band range is 5-8um (medium wave) or 8-15um (long wave), and the wavelength resolution is 0.2um (medium wave) or 0.5um (long wave).
[0120] The open source CAVE dataset was used as the training dataset to simulate infrared imaging conditions and train the initial neural network for 60 rounds. The open source KAIST dataset was used as the test set for testing.
[0121] For short-wave infrared hyperspectral imaging, the experimental results are as follows Figure 7 As shown in Figure 2, the average peak signal-to-noise ratio (PSNR) is 31.19 dB and the average structural similarity (SSIM) is 0.904; for mid-wave and long-wave infrared hyperspectral imaging, the results are shown in Figure 2. Figure 8 As shown, the average peak signal-to-noise ratio (PSNR) is 30.59dB and the average structural similarity (SSIM) is 0.896.
[0122] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of an infrared hyperspectral compression acquisition chip and acquisition model parameter training method based on diffraction coding, and an infrared hyperspectral acquisition method.
[0123] Corresponding to the above method, the present invention also provides a device, which includes a computer device, the computer device includes a processor and a memory, the memory stores computer instructions, the processor is used to execute the computer instructions stored in the memory, and when the computer instructions are executed by the processor, the device implements the steps of the method described above.
[0124] The embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the aforementioned edge computing server deployment method are implemented. The computer-readable storage medium can be a tangible storage medium, such as a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a floppy disk, a hard disk, a removable storage disk, a CD-ROM, or any other form of storage medium known in the technical field.
[0125] In summary, the present invention provides a parameter training, acquisition method and system for infrared hyperspectral compression acquisition chip based on diffraction coding, constructs a training data set, which includes natural light of different bands and its real infrared hyperspectrum; constructs an initial optical module, which includes a diffractive optical element and an infrared sensor; forms different point spread functions on the infrared sensor according to different preset diffractive optical element height maps to modulate the real infrared hyperspectrum of natural light, and generates an infrared hyperspectral grayscale map in combination with the spectral response of the infrared sensor; constructs an initial neural network, inputs an infrared hyperspectral grayscale map, outputs a reconstructed infrared hyperspectrum, uses a training data set for training, constructs the loss of the real infrared hyperspectrum and the reconstructed infrared hyperspectrum, optimizes the optical module and the neural network, and combines to obtain an infrared hyperspectral acquisition model. The infrared hyperspectral acquisition model can obtain high-precision infrared hyperspectral information with only a single exposure, and has high efficiency, high imaging accuracy and high resolution.
[0126] It should be understood by those skilled in the art that the exemplary components, systems and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software or a combination of the two. Whether it is performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier.
[0127] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0128] In the present invention, features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with features of other embodiments or replace features of other embodiments.
[0129] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A parameter training method for an infrared hyperspectral compression acquisition chip and an acquisition model based on diffraction coding, characterized in that: The method comprises the following steps: Constructing a training data set, wherein the training data set includes natural light of different bands and its real infrared hyperspectrum; Constructing an initial optical module, the optical module includes a diffractive optical element and an infrared sensor; using the diffractive optical element as an infrared hyperspectral compression acquisition chip; projecting the natural light to the infrared sensor via the diffractive optical element, and forming different point spread functions on the infrared sensor according to different preset diffractive optical element height maps; using the point spread function to modulate the real infrared hyperspectrum of the natural light, and generating an infrared hyperspectral grayscale map in combination with the spectral response of the infrared sensor; Constructing an initial neural network, the neural network comprising an encoder and a decoder; inputting the infrared hyperspectral grayscale image into the neural network, in the encoder, extracting features of the infrared hyperspectral grayscale image and downsampling it to generate a feature map, in the decoder, upsampling the feature map and cascading it with the feature map, and finally outputting a reconstructed infrared hyperspectrum; wherein the height map matrix of the diffractive optical element is put into the neural network as a learnable parameter for training; The optical module and the neural network are trained using the training data set to construct the losses of the real infrared hyperspectrum and the reconstructed infrared hyperspectrum, the optical module and the neural network are optimized according to the losses, and the trained optical module and neural network are combined to obtain an infrared hyperspectral acquisition model; Before training, the natural light is modeled according to the Fresnel theorem, and the calculation formula is: ; in, Represents natural light after modeling; represents the position coordinates on the diffractive optical element; represents the wavelength of the natural light; is an imaginary number; represents the natural light depth; The natural light is passed through the diffractive optical element, the natural light is encoded, and the phase delay is obtained. The calculation process is: ; ; in, represents the coded natural light; represents phase delay; Represents the difference between the material's refractive index and air; representing a height map distribution of the diffractive optical element; According to the coded natural light and the distance between the infrared sensor and the diffractive optical element, the natural light reaching the infrared sensor is modeled based on the Fresnel theorem, and the calculation formula is: ; in, represents the natural light reaching the infrared sensor; represents Fourier transform; represents the coded natural light; represents the wavelength of the natural light; represents the natural light depth; express frequency variables; express frequency variables; According to the natural light reaching the infrared sensor, the point spread function formed on the infrared sensor is calculated, and the calculation formula is: ; in, represents the point spread function; Represents the natural light reaching the infrared sensor.
2. The parameter training method of the infrared hyperspectral compression acquisition chip and acquisition model based on diffraction coding according to claim 1 is characterized in that: The point spread function is used to modulate the real infrared hyperspectrum of the natural light, and combined with the spectral response of the infrared sensor, an infrared hyperspectral grayscale image is generated. The calculation process is: ; ; in, represents a real infrared hyperspectrum modulated by the point spread function; represents the point spread function; represents the real infrared hyperspectrum; represents convolution; represents the infrared hyperspectral grayscale image; Indicates the lower limit of the hyperspectral wavelength that needs to be collected; Indicates the upper limit of the hyperspectral wavelength that needs to be collected; Representing the response curve of the infrared sensor to different wavelengths; represents the differential with respect to wavelength; Indicates noise.
3. The parameter training method of the infrared hyperspectral compression acquisition chip and acquisition model based on diffraction coding according to claim 1 is characterized in that: Putting the height map matrix of the diffractive optical element as a learnable parameter into the neural network for training, further comprising: For the short-wave infrared hyperspectral spectrum, polar coordinates are set at the center position of the height map matrix of the diffractive optical element. The diffractive optical element of the angle range is divided into 8 petals, and a plurality of uniform intervals are set according to the distance from the point in the height map matrix to the center position, so as to generate a diffractive optical element of a preset size according to the height map matrix; For mid-wave or long-wave infrared hyperspectral, polar coordinates are set at the center of the height map matrix of the diffractive optical element. The diffractive optical element of the angle range is divided into 6 petals, and a plurality of uniform intervals are set according to the distance from the point in the height map matrix to the center position, so as to generate a diffractive optical element of a preset size according to the height map matrix.
4. The parameter training method of the infrared hyperspectral compression acquisition chip and acquisition model based on diffraction coding according to claim 1 is characterized in that: The neural network adopts an encoder-decoder structure and also includes: The structure uses a residual block in the neural network for feature extraction, and the residual block consists of a 2D convolution kernel, an exponential linear unit activation function and a batch normalization layer; In the encoder, the residual block is used to extract features, and the maximum pooling layer is used to downsample to generate the feature map; in the decoder, the feature map is upsampled using an upsampling layer and a convolutional layer, and is cascaded with the feature map.
5. An infrared hyperspectral acquisition method, characterized in that: The method comprises: Obtain natural light for infrared hyperspectrum collection; The natural light is emitted into an infrared hyperspectral acquisition model trained by the parameter training method of the infrared hyperspectral compression acquisition chip and acquisition model based on diffraction coding according to any one of claims 1 to 4 to generate an infrared hyperspectral spectrum of the natural light.
6. An infrared hyperspectral acquisition system, characterized in that: The system is trained based on the parameter training method of the infrared hyperspectral compression acquisition chip and acquisition model based on diffraction coding according to any one of claims 1 to 4, and is used to implement the steps of the infrared hyperspectral acquisition method according to claim 5, and the system includes: Filters for passing and / or filtering out specific wavelengths of natural light; An optical module, comprising a diffractive optical element and an infrared sensor, wherein the diffractive optical element is used as an infrared hyperspectral compression acquisition chip; used to form different point spread functions on the infrared sensor according to different preset diffractive optical element height maps; using the point spread function to modulate the infrared hyperspectrum of natural light passing through the filter, and combining the spectral response of the infrared sensor to generate an infrared hyperspectral grayscale map; An algorithm module is used to generate a reconstructed infrared hyperspectrum according to the infrared hyperspectral grayscale image.
7. The infrared hyperspectral acquisition system according to claim 6, characterized in that: The infrared sensor adopts a CMOS camera; when collecting short-wave infrared hyperspectral spectrum, the diffractive optical element adopts a silicon dioxide glass material; when collecting medium-wave or long-wave infrared hyperspectral spectrum, the diffractive optical element adopts a silicon material.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
