CN114219843A - Method and system for constructing terahertz spectrum image reconstruction model and application - Google Patents
Method and system for constructing terahertz spectrum image reconstruction model and application Download PDFInfo
- Publication number
- CN114219843A CN114219843A CN202111546891.7A CN202111546891A CN114219843A CN 114219843 A CN114219843 A CN 114219843A CN 202111546891 A CN202111546891 A CN 202111546891A CN 114219843 A CN114219843 A CN 114219843A
- Authority
- CN
- China
- Prior art keywords
- image
- terahertz
- reconstruction
- model
- reconstructed
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000001228 spectrum Methods 0.000 title claims abstract description 50
- 238000000034 method Methods 0.000 title claims abstract description 36
- 238000012549 training Methods 0.000 claims abstract description 35
- 238000005070 sampling Methods 0.000 claims abstract description 32
- 238000013507 mapping Methods 0.000 claims abstract description 27
- 238000007781 pre-processing Methods 0.000 claims abstract description 10
- 230000003595 spectral effect Effects 0.000 claims description 31
- 239000011159 matrix material Substances 0.000 claims description 19
- 238000005259 measurement Methods 0.000 claims description 10
- 241000209140 Triticum Species 0.000 claims description 9
- 235000021307 Triticum Nutrition 0.000 claims description 9
- 230000006870 function Effects 0.000 claims description 7
- 240000008042 Zea mays Species 0.000 claims description 4
- 235000005824 Zea mays ssp. parviglumis Nutrition 0.000 claims description 4
- 235000002017 Zea mays subsp mays Nutrition 0.000 claims description 4
- 235000005822 corn Nutrition 0.000 claims description 4
- 230000004913 activation Effects 0.000 claims description 3
- 238000004590 computer program Methods 0.000 claims description 3
- 235000013339 cereals Nutrition 0.000 claims description 2
- 230000000694 effects Effects 0.000 description 5
- 238000003384 imaging method Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000008901 benefit Effects 0.000 description 3
- 230000000903 blocking effect Effects 0.000 description 3
- 238000013527 convolutional neural network Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000002474 experimental method Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000003044 adaptive effect Effects 0.000 description 2
- 238000002372 labelling Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000013139 quantization Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 239000000126 substance Substances 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 238000000862 absorption spectrum Methods 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000000919 ceramic Substances 0.000 description 1
- 238000000701 chemical imaging Methods 0.000 description 1
- 239000003153 chemical reaction reagent Substances 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000013135 deep learning Methods 0.000 description 1
- 230000007850 degeneration Effects 0.000 description 1
- 230000005670 electromagnetic radiation Effects 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000002601 radiography Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000004611 spectroscopical analysis Methods 0.000 description 1
- 238000001328 terahertz time-domain spectroscopy Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 239000002023 wood Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/50—Depth or shape recovery
- G06T7/55—Depth or shape recovery from multiple images
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/084—Backpropagation, e.g. using gradient descent
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/70—Denoising; Smoothing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20021—Dividing image into blocks, subimages or windows
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- Artificial Intelligence (AREA)
- Biomedical Technology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Life Sciences & Earth Sciences (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Investigating Or Analysing Materials By Optical Means (AREA)
Abstract
The invention discloses a method for constructing a terahertz spectrum image reconstruction model, which comprises the following steps: s1, acquiring a terahertz spectrum image; s2, preprocessing the terahertz spectrum image; s3, conducting undersampling observation on the preprocessed image; s4, sequentially inputting the undersampled images into a linear mapping network and a residual error network for network training to obtain a reconstructed model; s5, judging whether the number of times of training of the reconstructed model is not less than the preset number of times of training, if so, outputting the reconstructed model; otherwise, go to S6; and S6, repeating S4-S5, and adding 1 to the training times each time. The invention aims at the terahertz spectrumImage at DR2On the basis of Net, a self-adaptive sampling step (preprocessing of a terahertz spectrogram and undersampling observation of a preprocessed image) is added, a residual error network thought is introduced, the image reconstruction quality is greatly improved, the image reconstruction time is shortened, and the image reconstruction efficiency of the terahertz system is improved to a certain extent.
Description
Technical Field
The invention relates to the technical field of image processing. More specifically, the invention relates to a method, a system and an application for constructing a terahertz spectrum image reconstruction model.
Background
Terahertz (THz) electromagnetic radiation, also called THz wave, with the wavelength of 0.03-3 mm and the emission frequency of 0.1-10 THz, analyzes and researches the substance components, the structure and the interaction relationship by utilizing different characteristic absorption spectra of the substance to the THz frequency band. Terahertz Imaging Technology (Terahertz Spectroscopy Imaging Technology) was developed based on Terahertz time-domain Spectroscopy. THz wave has received increasing attention in the imaging field because it can penetrate through non-polar materials such as cloth, wood, ceramic, etc., and can image the inside of an object. The terahertz spectral image not only contains geometric information of a target, but also has complete information of the THz impulse response intensity, phase, time and the like of the target, the obtained sample image has the characteristic of map integration, and spatial image information and abundant spectral information can be simultaneously obtained.
Therefore, how to improve the reconstruction speed of the terahertz image and ensure the image quality is a research problem to be solved urgently.
Disclosure of Invention
An object of the present invention is to solve at least the above problems and to provide at least the advantages described later.
The invention also aims to provide a method and a system for constructing a terahertz spectral image reconstruction model, which solve the problems of long image acquisition time, large data redundancy and the like of a terahertz time-domain spectral imaging system and the technical problem of reduced imaging reconstruction quality caused by reduced sampling rate.
To achieve these objects and other advantages in accordance with the present invention, there is provided a method of constructing a terahertz spectral image reconstruction model, including:
s1, acquiring a terahertz spectrum image;
s2, preprocessing the terahertz spectrum image to obtain a preprocessed image;
s3, conducting undersampling observation on the preprocessed image through a Gaussian random sampling matrix to obtain an undersampled image;
s4, sequentially inputting the undersampled images into a linear mapping network and a residual error network for training to obtain a reconstructed model;
s5, judging whether the number of times of training of the reconstructed model is not less than the preset number of times of training, if so, outputting the reconstructed model; otherwise, go to S6;
and S6, repeating S4-S5, and adding 1 to the training times each time.
Preferably, in the method for constructing a terahertz spectral image reconstruction model, step S2 specifically includes: dividing the terahertz spectrum image into a plurality of plane spectrum images, and dividing each plane spectrum image into a plurality of n multiplied by n non-overlapping image blocks to obtain a preprocessed image.
Preferably, in the method for constructing a terahertz spectral image reconstruction model, step S3 specifically includes: undersampling the preprocessed image by adopting a Gaussian random sampling matrix to obtain an undersampled image signal yiAs a compressed perceptual measurement, the number of samples a is N × b, where b is the sampling rate and N is the total number of pixels per image block.
Preferably, in the method for constructing a terahertz spectral image reconstruction model, step S4 specifically includes:
s4.1, undersampled image signal yiAre input to the line togetherIn the linear mapping network, the undersampled image is initially reconstructed to obtain an initial reconstruction image signal xi;
Wherein the model of the linear mapping network is:
xi=f(yi,{W}) (1)
in the formula (1), W is ∈ Rm×nIs a mapping matrix;
the loss function of a linear mapping network is:
x is in the formula (3) and belongs to { X ∈ [)1,X2,…XN},Y∈{Y1,Y2,…YN};
S4.2, initially reconstructing an image signal xiInputting the image into a residual error network, and carrying out precision reconstruction on the image to obtain an n multiplied by n block reconstructed image, namely a reconstructed model;
the residual error network structure comprises 6 residual error learning blocks, each learning block comprises 3 convolutional layers, the first convolutional layer uses an 11 multiplied by 11 kernel, the second convolutional layer uses a 1 multiplied by 1 kernel, and the third convolutional layer uses a 7 multiplied by 7 kernel; each convolutional layer selects PReLU as an activation function,
a in formula (4)iAre parameters.
Preferably, in the method for constructing the terahertz spectral image reconstruction model, in step S4.2, the BM3D filter is used to denoise the n × n blocked reconstructed image, so as to obtain a reconstructed image with high resolution, that is, the reconstructed model.
The invention also provides a system for constructing the terahertz spectrum image reconstruction model, which comprises the following steps:
an acquisition module for acquiring a terahertz spectral image;
the self-adaptive sampling module is used for preprocessing the terahertz spectrum image and then performing undersampling observation on the preprocessed image through a Gaussian random sampling matrix to obtain an undersampled image;
and the reconstruction module is used for sequentially inputting the undersampled images into the linear mapping network and the residual error network for network training to obtain a reconstruction model.
The invention provides an application of a terahertz spectrum image reconstruction model, which is applied to reconstruction of a terahertz spectrum image of wheat seeds or corn grains.
The present invention also provides an electronic device, comprising: the system comprises at least one processor and a memory communicatively connected with the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to cause the at least one processor to execute the method.
The invention also provides a storage medium on which a computer program is stored which, when executed by a processor, implements the method described above.
The invention at least comprises the following beneficial effects: aiming at terahertz spectrum images, the method aims at DR2On the basis of Net, a self-adaptive sampling step (preprocessing of a terahertz spectrogram and undersampling observation of a preprocessed image) is added, a residual error network thought is introduced, the image reconstruction quality is greatly improved, the image reconstruction time is shortened, and the image reconstruction efficiency of the terahertz system is improved to a certain extent.
Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention.
Drawings
FIG. 1 is a schematic structural diagram of a terahertz spectral image reconstruction model according to the present invention;
FIG. 2 is a flow chart of the step reconstruction model training of the present invention;
fig. 3 is a diagram illustrating the reconstruction effect of the present invention.
Detailed Description
The present invention is further described in detail below with reference to the drawings and examples so that those skilled in the art can practice the invention with reference to the description.
It will be understood that terms such as "having," "including," and "comprising," as used herein, do not preclude the presence or addition of one or more other elements or groups thereof.
It is to be noted that the experimental methods described in the following embodiments are all conventional methods unless otherwise specified, and the reagents and materials are commercially available unless otherwise specified.
In the description of the present invention, the terms "lateral", "longitudinal", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, are only for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention.
The invention provides a method for constructing a terahertz spectrum image reconstruction model, which comprises the following steps:
s1, acquiring a terahertz spectrum image; labeling the obtained terahertz spectrum image;
s2, preprocessing the terahertz spectrum image to obtain a preprocessed image;
s3, conducting undersampling observation on the preprocessed image through a Gaussian random sampling matrix to obtain an undersampled image;
s4, sequentially inputting the undersampled images into a linear mapping network and a residual error network for network training to obtain a reconstructed model;
s5, judging whether the number of times of training of the reconstructed model is not less than the preset number of times of training, if so, outputting the reconstructed model; otherwise, go to S6;
and S6, repeating S4-S5, and adding 1 to the training times each time.
In a traditional compressed sensing image reconstruction algorithm, the image needs to be subjected to blocking processing to realize special processing of complex information blocks, and reconstruction accuracy can be improved while complexity of image reconstruction is reduced. In order to solve the application bottleneck of the traditional compressed sensing reconstruction algorithm, reduce the calculated amount in the reconstruction stage and improve the reconstruction precision, a plurality of scholars propose to adopt a convolutional neural network to replace the optimization process and accelerate the reconstruction stage.
ReconNet is a non-iterative, fast block compressed perceptual reconstruction algorithm developed by Kulkarni et al. ReconNet implements non-iterative compressed sensing image reconstruction based on a convolutional neural network, which is a representative work of applying a convolutional neural network to reconstruct a low-resolution hybrid image measured by a gaussian random matrix. The original image is divided into non-overlapping sub-blocks for reconstruction, so that not only can complex information blocks be processed, but also the purposes of reducing the reconstruction complexity and improving the reconstruction quality can be achieved. DR (digital radiography)2Net is an improvement over ReconNet, and the idea is also applied that divides the image into non-overlapping blocks, reconstructs each block by feeding the corresponding compressed perceptual measurements into its network, and combines the reconstructed blocks to form the entire reconstructed image. However, the reconstructed image has block artifacts, so the reconstructed image is input into a BM3D denoiser to remove the blocking artifacts and obtain a final output image.
Aiming at terahertz spectrum images, the method aims at DR2On the basis of Net, a self-adaptive sampling step (preprocessing of a terahertz spectrogram and undersampling observation of a preprocessed image) is added, a residual error network thought is introduced, the image reconstruction quality is greatly improved, the image reconstruction time is shortened, and the image reconstruction efficiency of the terahertz system is improved to a certain extent.
In another technical scheme, the method for constructing the terahertz spectral image reconstruction model includes the following steps of S2: dividing the terahertz spectrum image into a plurality of plane spectrum images, and dividing each plane spectrum image into a plurality of n multiplied by n non-overlapping sub-blocks to obtain a preprocessed image.
In another technical scheme, the method for constructing the terahertz spectral image reconstruction model includes the following steps of S3: undersampling the preprocessed image by adopting a Gaussian random sampling matrix to obtain an undersampled image signal yiAs the compressed perceptual measurement value, the number of sampling times a is N × b, where b is the sampling rate, N is the total number of pixels per image block, and N is 1089.
The method comprises the steps that a group of U multiplied by V multiplied by Y terahertz spectral image data is provided, each 1 multiplied by Y spectral image data is a complete THz frequency domain or time domain spectrum, the images are divided into Y planar THz spectral images according to the frequency domain, then the images are divided into 33 multiplied by 33 non-overlapping sub-blocks, a Gaussian random measurement matrix is adopted to observe the sub-blocks, and an M-dimensional vector is obtained and serves as the input of a linear mapping network and is recorded as phi X. Where Φ is an observation matrix of dimension M × H, M is measurement data, and X is a vectorized image block. The network divides the image into 33 x 33 non-overlapping sub-blocks for reconstruction.
In another technical scheme, the method for constructing the terahertz spectral image reconstruction model includes the following steps of S4:
s4.1, undersampled image signal yiInputting the data into a linear mapping network together, and performing initial reconstruction on the undersampled image to obtain an initial reconstructed image signal xi;
Wherein the model of the linear mapping network is:
xi=f(yi,{W}) (1)
the formula (1) is an over-determined equation, W belongs to Rm×nIs a mapping matrix;
the loss function (MSE) for a linear mapping network is:
wherein x isiIs the ith image block, yiIs the measured value of the image block, { WfUsing a back propagation mechanism, f (y)iAnd W) is through a linear mapping networkAnd outputting the ith reconstructed image, wherein S is the total number of image blocks in the training set. MSE is the squared and summed average of the difference between the real and predicted values. Since MSE is in the form of a square, it is easy to derive, and the gradient of the loss of MSE increases as the loss increases, and decreases as the loss approaches 0.
Suppose a mapping matrix WfSo thatThere is a minimum error. y isi∈RmRepresenting a compressed perceptual measurement, xi∈RnRepresenting its corresponding source signal, the training data comprising n training samples may then be represented as { (y)1,x1),(y2,x2),…(yN,xN)}. From these training data, W can be obtained by solving the following equationf:
X is in the formula (3) and belongs to { X ∈ [)1,X2,…XN},Y∈{Y1,Y2,…YN};
Equation (3) provides a linear mapping function that can be modeled efficiently in deep learning through fully connected layers. Therefore, the optimal mapping matrix W corresponding to the minimum equation can be obtained on all training samplesf;
S4.2, initially reconstructing an image signal xiInputting the image into a residual error network, and carrying out precision reconstruction on the image to obtain an n multiplied by n block reconstructed image, namely a reconstructed model; the residual error network can improve the reconstruction precision of the image and obtain a high-resolution output;
the residual error network structure comprises 6 residual error learning blocks, each learning block comprises 3 convolutional layers, the first convolutional layer uses an 11 multiplied by 11 kernel, the second convolutional layer uses a 1 multiplied by 1 kernel, and the third convolutional layer uses a 7 multiplied by 7 kernel; each convolution layer adopts a PReLU (parametric Rectified Linear Unit) as an activation function, and the specific expression is as follows:
a in formula (4)iIs a parameter, in particular a coefficient controlling the slope of the negative part. If a isi0, the degeneration is Relu; if a isiIs a very small fixed value, then PRelu degenerates to Leaky Relu (LRelu). In this application aiThe initialization was 0.2.
In another technical scheme, in the method for constructing the terahertz spectral image reconstruction model, in step S4.2, a BM3D filter is used to denoise an n × n blocked reconstructed image, so as to obtain a reconstructed image with high resolution, that is, the reconstructed model. And after passing through a residual error network, 33 × 33 block reconstructed images are output, blocking effects of intermediate reconstructed images caused by quantization errors of block quantization are removed through a BM3D filter, and a final high-resolution reconstructed image is output.
The invention also provides a system for constructing the terahertz spectrum image reconstruction model, which comprises the following steps:
an acquisition module for acquiring a terahertz spectral image;
the self-adaptive sampling module is used for preprocessing the terahertz spectrum image and then performing undersampling observation on the preprocessed image through a Gaussian random sampling matrix to obtain an undersampled image;
and the reconstruction module is used for sequentially inputting the undersampled images into the linear mapping network and the residual error network for network training to obtain a reconstruction model. The reconstruction module comprises a linear mapping network and a residual error network;
and the denoising module is used for carrying out denoising processing on the reconstructed model.
As shown in fig. 1, the terahertz spectrum image reconstruction model structure of the present invention includes an image acquisition module, an adaptive sampling module, a linear mapping network, a residual error network, and a denoising module.
The invention also provides an application of the terahertz spectrum image reconstruction model, and the terahertz spectrum image reconstruction model is applied to reconstruction of the terahertz spectrum image of the wheat seeds or the corn seeds.
The method specifically comprises the following steps:
in order to verify the performance of the model proposed by the inventor, the THz instrument used in the experiment is a Z3 series THz time-domain spectrometer of Zomega company, the effective spectral range is 0.1-3.5 THz, the peak dynamic range is more than 1000(70dB), and the system signal-to-noise ratio is more than 3000. The wheat seeds are used as an experimental object, a sample is placed on a moving platform in the THz-TDS system, reflection imaging measurement is carried out, the maximum scanning area of the system is 50mm multiplied by 50mm, and the spatial resolution is set to be 0.1 mm. After THz spectral image data of a sample are obtained, image reconstruction is carried out by using the terahertz spectral image reconstruction model constructed by the invention. In order to meet daily requirements, all experimental processes are carried out in a normal-temperature normal-humidity environment. The image reconstruction comprises the following steps:
the method comprises the following steps: extracting THz spectrums from all pixel points in a THz image of the wheat seeds, and averaging at all frequency points to obtain an average spectrum signal, wherein each spectrum comprises 500 points;
step two: as shown in fig. 2, the reconstruction model trains:
s1, obtaining a terahertz spectrum image training set: selecting 12 wheat seeds and corn kernels respectively, using the same sample and 500 THz spectral images in different frequency domains as a group, and using 12000 THz spectral images in total of twelve groups as a training set;
s2, entering an adaptive sampling module for processing: labeling the spectral images in the training set, and performing dimension reduction on the spectral images in the training set, dividing the spectral images into a plurality of N × N (33 × 33) of image blocks which are not overlapped with each other, so as to obtain a preprocessed image, wherein the total number of pixels N of each image block is 1089; performing undersampling on the preprocessed image signals by adopting a Gaussian random sampling matrix phi to obtain an undersampled image, wherein the preprocessed image is subjected to four times of undersampling by adopting 4 different sampling rates b (0.8, 0.5, 0.25 and 0.1) in sequence to obtain four undersampled images, and the measurement times A (A is N multiplied by b) of the four times of undersampling by the Gaussian matrix are 871, 546, 272 and 109 respectively;
s3, sequentially inputting the four undersampled images into a linear mapping network and a residual error network for network model training to obtain four image reconstruction models (ATResCS), wherein the number of times of model training is not less than the preset number of times of training, the image reconstruction models after training are subjected to denoising treatment, specifically, a BM3D filter is adopted to denoise n multiplied by n partitioned reconstructed images to obtain high-resolution reconstructed images, and the reconstructed images are image reconstruction models;
step three, based on the four sampling rates in the step two, adopting the training set in the step two to sequentially carry out the operations of OMP (organic Matching pursuit), IRLS (organic weighted Least square), IHT (organic weighted threshold) DR2Training by Net to respectively obtain four contrast image reconstruction model groups, namely an A group, a B group, a C group and a D group, wherein the four contrast image reconstruction model groups comprise four contrast image reconstruction models; parameters (including iteration times) of the four algorithms are set as default values, and since the block effect is generated in reconstruction, a BM3D denoising device is adopted to denoise a reconstructed model of the image; OMP (organic Matching pursuit), IRLS (iterative weighted Least squares), IHT (iterative Hard thresholding) are three traditional compressed sensing image reconstruction algorithms;
and step four, selecting the frequency domain spectrum at the strongest signal (with the most obvious characteristics) in the step one, sequentially inputting the frequency domain spectrum into four image reconstruction models, four A group comparison image reconstruction models, four B group comparison image reconstruction models, four C group comparison image reconstruction models and four D group comparison image reconstruction models, and finally reconstructing to obtain the effect diagram shown in the figure 3.
In order to reduce errors caused by random measurement matrixes, PSNR, SSIM and reconstruction time of five (the application and four comparison groups) reconstruction methods are averaged for 100 test results, and the effect of reconstructing wheat seeds is shown in figure 3 when sampling rates are respectively 0.8, 0.5, 0.25 and 0.1 by adopting five algorithms.
It can be seen from fig. 3 that, when the sampling rate is 0.8, the original image can be clearly reconstructed by the five algorithms, and when the sampling rate is lower than 0.5, the image reconstructed by using the OMP algorithm is severely distorted and is substantially submerged by noise, and at this time, IRLS, IHT, DR2-Net and ATResCS still have high reconstruction quality. When the sampling rate is 0.1, the image reconstructed by the IHT algorithm is basically submerged by noise, the characteristics of the image reconstructed by the IRLS algorithm are fuzzy, and the characteristics of the DR2-Net and ATResCS reconstructed images are relatively clear. Experiments prove that the reconstruction effect of the ATResCS reconstruction network provided by the application exceeds that of the traditional reconstruction algorithm, and the image reconstruction quality under the low sampling rate is greatly improved.
Compared with three traditional compressed sensing methods and DR2-Net, the ATResCS not only improves the reconstruction quality of the image to a certain extent, but also improves the reconstruction speed. The THz spectrum image reconstruction time comparison of the wheat seeds at different sampling rates is shown in table 1. From table 1, the reconstruction of the ATResCS reconstruction network is lower than the reconstruction time required by other reconstruction algorithms, and the image reconstruction efficiency of the terahertz system is improved to a certain extent.
TABLE 1 comparison of THz spectrum image reconstruction time of wheat seeds with different sampling rates
The present invention also provides an electronic device, comprising: the system comprises at least one processor and a memory communicatively connected with the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to cause the at least one processor to execute the method.
The invention also provides a storage medium on which a computer program is stored which, when executed by a processor, carries out the method described above.
The number of apparatuses and the scale of the process described herein are intended to simplify the description of the present invention. Applications, modifications and variations of the present invention will be apparent to those skilled in the art.
While embodiments of the invention have been described above, it is not limited to the applications set forth in the description and the embodiments, which are fully applicable in various fields of endeavor to which the invention pertains, and further modifications may readily be made by those skilled in the art, it being understood that the invention is not limited to the details shown and described herein without departing from the general concept defined by the appended claims and their equivalents.
Claims (9)
1. The method for constructing the terahertz spectrum image reconstruction model is characterized by comprising the following steps of:
s1, acquiring a terahertz spectrum image;
s2, preprocessing the terahertz spectrum image to obtain a preprocessed image;
s3, conducting undersampling observation on the preprocessed image through a Gaussian random sampling matrix to obtain an undersampled image;
s4, sequentially inputting the undersampled images into a linear mapping network and a residual error network for training to obtain a reconstructed model;
s5, judging whether the number of times of training of the reconstructed model is not less than the preset number of times of training, if so, outputting the reconstructed model; otherwise, go to S6;
and S6, repeating S4-S5, and adding 1 to the training times each time.
2. The method for constructing the terahertz spectral image reconstruction model according to claim 1, wherein step S2 specifically comprises: dividing the terahertz spectrum image into a plurality of plane spectrum images, and dividing each plane spectrum image into a plurality of n multiplied by n non-overlapping image blocks to obtain a preprocessed image.
3. The method for constructing the terahertz spectral image reconstruction model according to claim 2, wherein step S3 specifically comprises: undersampling the preprocessed image by adopting a Gaussian random sampling matrix to obtain an undersampled image signal yiAs a compressed perceptual measurement, the number of samples a is N × b, where b is the sampling rate and N is the total number of pixels per image block.
4. The method for constructing the terahertz spectral image reconstruction model according to claim 3, wherein step S4 specifically comprises:
s4.1, undersampled image signal yiInputting the data into a linear mapping network together, and performing initial reconstruction on the undersampled image to obtain an initial reconstructed image signal xi;
Wherein the model of the linear mapping network is:
xi=f(yi,{W}) (1)
in the formula (1), W is ∈ Rm×nIs a mapping matrix;
the loss function of a linear mapping network is:
x is in the formula (3) and belongs to { X ∈ [)1,X2,…XN},Y∈{Y1,Y2,…YN};
S4.2, initially reconstructing an image signal xiInputting the image into a residual error network, and carrying out precision reconstruction on the image to obtain an n multiplied by n block reconstructed image, namely a reconstructed model;
the residual error network structure comprises 6 residual error learning blocks, each learning block comprises 3 convolutional layers, the first convolutional layer uses an 11 multiplied by 11 kernel, the second convolutional layer uses a 1 multiplied by 1 kernel, and the third convolutional layer uses a 7 multiplied by 7 kernel; each convolutional layer selects PReLU as an activation function,
a in formula (4)iAre parameters.
5. The method for constructing the terahertz spectral image reconstruction model as claimed in claim 4, wherein in step S4.2, the BM3D filter is used to denoise the n × n blocked reconstructed image, so as to obtain a reconstructed image with high resolution, that is, the reconstructed model.
6. The system for constructing the terahertz spectrum image reconstruction model is characterized by comprising the following steps:
an acquisition module for acquiring a terahertz spectral image;
the self-adaptive sampling module is used for preprocessing the terahertz spectrum image and then performing undersampling observation on the preprocessed image through a Gaussian random sampling matrix to obtain an undersampled image;
and the reconstruction module is used for sequentially inputting the undersampled images into the linear mapping network and the residual error network for network training to obtain a reconstruction model.
7. Application of the terahertz spectrum image reconstruction model is characterized in that the terahertz spectrum image reconstruction model of any one of claims 1-5 is applied to reconstruction of terahertz spectrum images of wheat seeds or corn grains.
8. An electronic device, comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method of any of claims 1-5.
9. Storage medium on which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111546891.7A CN114219843B (en) | 2021-12-16 | 2021-12-16 | Method and system for constructing terahertz spectrum image reconstruction model and application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111546891.7A CN114219843B (en) | 2021-12-16 | 2021-12-16 | Method and system for constructing terahertz spectrum image reconstruction model and application |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114219843A true CN114219843A (en) | 2022-03-22 |
CN114219843B CN114219843B (en) | 2022-11-01 |
Family
ID=80703306
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111546891.7A Active CN114219843B (en) | 2021-12-16 | 2021-12-16 | Method and system for constructing terahertz spectrum image reconstruction model and application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114219843B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023193461A1 (en) * | 2022-04-06 | 2023-10-12 | 深圳先进技术研究院 | Terahertz single-pixel imaging method and system |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106441575A (en) * | 2016-09-18 | 2017-02-22 | 河南工业大学 | Terahertz time-domain spectral sparse imaging method |
CN110378980A (en) * | 2019-07-16 | 2019-10-25 | 厦门大学 | A kind of multi-channel magnetic resonance image rebuilding method based on deep learning |
US10699163B1 (en) * | 2017-08-18 | 2020-06-30 | Massachusetts Institute Of Technology | Methods and apparatus for classification |
US20200355774A1 (en) * | 2017-06-06 | 2020-11-12 | Shenzhen Institutes Of Advanced Technology | One-dimensional partial fourier parallel magnetic resonance imaging method based on deep convolutional network |
CN111951344A (en) * | 2020-08-09 | 2020-11-17 | 昆明理工大学 | Magnetic resonance image reconstruction method based on cascade parallel convolution network |
CN112435162A (en) * | 2020-11-13 | 2021-03-02 | 中国科学院沈阳自动化研究所 | Terahertz image super-resolution reconstruction method based on complex field neural network |
CN112525851A (en) * | 2020-12-10 | 2021-03-19 | 深圳先进技术研究院 | Terahertz single-pixel imaging method and system |
US20210096067A1 (en) * | 2018-06-12 | 2021-04-01 | Tsinghua University | Terahertz spectral imaging data reconstruction method, apparatus, device, and storage medium |
CN113379598A (en) * | 2021-05-20 | 2021-09-10 | 山东省科学院自动化研究所 | Terahertz image reconstruction method and system based on residual channel attention network |
-
2021
- 2021-12-16 CN CN202111546891.7A patent/CN114219843B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106441575A (en) * | 2016-09-18 | 2017-02-22 | 河南工业大学 | Terahertz time-domain spectral sparse imaging method |
US20200355774A1 (en) * | 2017-06-06 | 2020-11-12 | Shenzhen Institutes Of Advanced Technology | One-dimensional partial fourier parallel magnetic resonance imaging method based on deep convolutional network |
US10699163B1 (en) * | 2017-08-18 | 2020-06-30 | Massachusetts Institute Of Technology | Methods and apparatus for classification |
US20210096067A1 (en) * | 2018-06-12 | 2021-04-01 | Tsinghua University | Terahertz spectral imaging data reconstruction method, apparatus, device, and storage medium |
CN110378980A (en) * | 2019-07-16 | 2019-10-25 | 厦门大学 | A kind of multi-channel magnetic resonance image rebuilding method based on deep learning |
CN111951344A (en) * | 2020-08-09 | 2020-11-17 | 昆明理工大学 | Magnetic resonance image reconstruction method based on cascade parallel convolution network |
CN112435162A (en) * | 2020-11-13 | 2021-03-02 | 中国科学院沈阳自动化研究所 | Terahertz image super-resolution reconstruction method based on complex field neural network |
CN112525851A (en) * | 2020-12-10 | 2021-03-19 | 深圳先进技术研究院 | Terahertz single-pixel imaging method and system |
CN113379598A (en) * | 2021-05-20 | 2021-09-10 | 山东省科学院自动化研究所 | Terahertz image reconstruction method and system based on residual channel attention network |
Non-Patent Citations (4)
Title |
---|
ZHONGDE HAN ET.AL: "Terahertz Image Restoration with "Zero-Shot" Super-Resolution", 《2020 CROSS STRAIT RADIO SCIENCE & WIRELESS TECHNOLOGY CONFERENCE (CSRSWTC)》 * |
佘荣斌等: "空间欠采样太赫兹时域光谱成像方法", 《集成技术》 * |
蒋玉英 等: "基于太赫兹成像技术的小麦麦芽糖定量检测研究", 《光谱学与光谱分析》 * |
雷茂: "太赫兹图像高分辨重构算法研究", 《中国优秀硕士学位论文全文数据库 基础科学辑》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023193461A1 (en) * | 2022-04-06 | 2023-10-12 | 深圳先进技术研究院 | Terahertz single-pixel imaging method and system |
Also Published As
Publication number | Publication date |
---|---|
CN114219843B (en) | 2022-11-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12105173B2 (en) | Self ensembling techniques for generating magnetic resonance images from spatial frequency data | |
Fessler | Optimization methods for magnetic resonance image reconstruction: Key models and optimization algorithms | |
US10573031B2 (en) | Magnetic resonance image reconstruction with deep reinforcement learning | |
CN110599420B (en) | CT image block reconstruction method and system based on deep learning | |
RU2626184C2 (en) | Method, device and system for reconstructing magnetic resonance image | |
CN107991636B (en) | Rapid magnetic resonance image reconstruction method based on adaptive structure low-rank matrix | |
CN111081354A (en) | System and method for denoising medical images through deep learning network | |
CN107480619B (en) | Noise-reduction method and system based on EEMD and the Ground Penetrating Radar B-scan image for arranging entropy | |
CN108090871A (en) | A kind of more contrast MR image reconstruction methods based on convolutional neural networks | |
CN104574456B (en) | A kind of super lack sampling K data imaging method of magnetic resonance based on figure regularization sparse coding | |
CN112102428B (en) | CT cone beam scanning image reconstruction method, scanning system and storage medium | |
CN112819949B (en) | Magnetic resonance fingerprint image reconstruction method based on structured low-rank matrix | |
CN104200436B (en) | Multispectral image reconstruction method based on dual-tree complex wavelet transformation | |
CN111784581B (en) | SAR image super-resolution reconstruction method based on self-normalization generation countermeasure network | |
CN112991483B (en) | Non-local low-rank constraint self-calibration parallel magnetic resonance imaging reconstruction method | |
CN112578471B (en) | Clutter noise removing method for ground penetrating radar | |
CN108230280A (en) | Image speckle noise minimizing technology based on tensor model and compressive sensing theory | |
CN114219843B (en) | Method and system for constructing terahertz spectrum image reconstruction model and application | |
CN114758031A (en) | Method and device for reconstructing capacitive coupling electrical impedance tomography image | |
CN112163998A (en) | Single-image super-resolution analysis method matched with natural degradation conditions | |
CN116630209A (en) | SAR and visible light image fusion method based on cross-mixed attention | |
Luijten et al. | Ultrasound signal processing: from models to deep learning | |
CN115063502A (en) | CT image reconstruction method and system based on optimized iterative network | |
van de Schaft et al. | Ultrasound speckle suppression and denoising using MRI-derived normalizing flow priors | |
CN117523095A (en) | Sparse angle THz-CT image reconstruction method based on deep learning |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |