CN115330901B - Image reconstruction method and device based on compressed sensing network - Google Patents
Image reconstruction method and device based on compressed sensing network Download PDFInfo
- Publication number
- CN115330901B CN115330901B CN202211264253.0A CN202211264253A CN115330901B CN 115330901 B CN115330901 B CN 115330901B CN 202211264253 A CN202211264253 A CN 202211264253A CN 115330901 B CN115330901 B CN 115330901B
- Authority
- CN
- China
- Prior art keywords
- image signal
- sensing network
- reconstructed
- compressed sensing
- reconstruction
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 239000011159 matrix material Substances 0.000 claims abstract description 59
- 238000005070 sampling Methods 0.000 claims abstract description 40
- 238000005259 measurement Methods 0.000 claims description 21
- 150000001875 compounds Chemical class 0.000 claims description 14
- 238000012549 training Methods 0.000 claims description 9
- 230000020411 cell activation Effects 0.000 claims description 6
- 238000005457 optimization Methods 0.000 claims description 3
- 238000013528 artificial neural network Methods 0.000 abstract description 11
- 230000000306 recurrent effect Effects 0.000 abstract description 9
- 230000006870 function Effects 0.000 description 19
- 230000008569 process Effects 0.000 description 10
- 230000000694 effects Effects 0.000 description 7
- 230000006872 improvement Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 238000011084 recovery Methods 0.000 description 2
- 241000282465 Canis Species 0.000 description 1
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 101100365547 Schizosaccharomyces pombe (strain 972 / ATCC 24843) set11 gene Proteins 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000017105 transposition Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/001—Texturing; Colouring; Generation of texture or colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4046—Scaling of whole images or parts thereof, e.g. expanding or contracting using neural networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4084—Scaling of whole images or parts thereof, e.g. expanding or contracting in the transform domain, e.g. fast Fourier transform [FFT] domain scaling
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Computation (AREA)
- Image Analysis (AREA)
Abstract
The application discloses an image reconstruction method and device based on a compressed sensing network, which are used for sampling an original image signal to obtain a sampled image signal and further initializing to obtain an initial reconstructed image signal; inputting the sampled image signal and the initial reconstructed image signal into a compressed sensing network, carrying out signal weighting through a multilayer convolution weighting module in the compressed sensing network to obtain multilayer reconstructed image signals, and optimizing the reconstructed image signals according to the correlation between two adjacent layers of reconstructed image signals; updating network parameters according to the final reconstructed image signal and the original image signal; the image reconstruction is carried out on the image signal to be reconstructed through the trained compressed sensing network, the technical problems that in the prior art, the weighting matrix is greatly limited by adopting a recurrent neural network to weight the reconstructed signal, and the stability of the reconstruction result is poor due to the poor stability of the similarity of each column of signals when a model is designed by utilizing the similarity of each column of signals in the reconstructed signal are solved.
Description
Technical Field
The present application relates to the field of image processing technologies, and in particular, to an image reconstruction method and apparatus based on a compressed sensing network.
Background
Compressed Sensing (CS) aims at accurately reconstructing high-dimensional signals from a small number of measurements by exploiting signal sparsity and structural priors. In order to further improve reconstruction performance, in the prior art, a recurrent neural network is adopted to weight a reconstruction signal, but the method has great limitation on a weighting matrix and needs to be an orthogonal matrix or a diagonal matrix; and the reconstruction method based on the recurrent neural network designs a model by utilizing the similarity of each column of signals in the reconstructed signals, the similarity is unstable, when the picture content is monotonous, for example, only one cup is provided, the similarity between each column of signals is strong, and when the picture content is complex, the similarity between each column of signals is weak, so that the stability of the obtained reconstruction result is poor.
Disclosure of Invention
The application provides an image reconstruction method and device based on a compressed sensing network, which are used for solving the technical problems that in the prior art, a recurrent neural network is adopted to weight a reconstruction signal, a weighting matrix is greatly limited, and a model is designed by utilizing the similarity of each column of signals in the reconstruction signal, and the stability of the similarity of each column of signals is poor, so that the stability of a reconstruction result is poor.
In view of this, a first aspect of the present application provides an image reconstruction method based on a compressed sensing network, including:
sampling an original image signal to obtain a sampled image signal;
initializing a reconstructed image signal based on the sampling image signal to obtain an initial reconstructed image signal;
inputting the sampled image signal and the initial reconstructed image signal into a compressed sensing network, performing signal weighting through a multilayer convolution weighting module in the compressed sensing network to obtain a multilayer reconstructed image signal, and optimizing the reconstructed image signal according to the correlation between two adjacent layers of reconstructed image signals to obtain a final reconstructed image signal;
calculating a loss value according to the final reconstructed image signal and the original image signal, and updating network parameters of the compressed sensing network according to the loss value to obtain a trained compressed sensing network;
and carrying out image reconstruction on the image signal to be reconstructed through the trained compressed sensing network to obtain a reconstructed image signal.
Optionally, the sampling the original image signal to obtain a sampled image signal includes:
and sampling the original image signal through a measurement matrix to obtain a sampled image signal.
Optionally, initializing a reconstructed image signal based on the sampled image signal to obtain an initial reconstructed image signal includes:
and initializing a reconstructed image signal based on the sampling image signal, the sparse dictionary and the measurement matrix to obtain an initial reconstructed image signal.
Optionally, the compressed sensing network is a multilayer iterative model, and an objective function corresponding to each layer is as follows:
in the formula (I), the compound is shown in the specification,X k() is a firstkThe layers reconstruct the image signal and,Yin order to sample the image signal, the image signal is sampled,Ain order to measure the matrix of the measurements,Din order to be a sparse dictionary,for the first non-negative regularization parameter,for the second non-negative regularization parameter,in order to be a convolution weighting module, the convolution weighting module,B、Ca filter with a convolution kernel size of 3*3,Relu() In order to modify the linear cell activation function,Fto predict the matrix, is a learnable parameter of the compressed sensing network,X k(-1) is as followsk-1 layer of reconstructed image signals.
Optionally, the loss function of the compressed sensing network is:
in the formula (I), the compound is shown in the specification,N b to be the total number of the sampled image signals,N p in order to compress the number of layers in the sensing network,Nin order to sample the size of the image signal,is as followsiThe final reconstructed image signal corresponding to each sampled image,S i is as followsiThe original image signal is then processed to generate a plurality of original image signals,W k() is as followskLayer convolution weighting module,Is as followskLayer andW k() a convolution weighting module for forming a symmetrical relationship,is as followsiA reconstructed image signal is inkThe sparse signal of the layer(s),is the third regularization parameter.
A second aspect of the present application provides an image reconstructing apparatus based on a compressed sensing network, including:
the sampling unit is used for sampling the original image signal to obtain a sampled image signal;
the initialization unit is used for initializing a reconstructed image signal based on the sampling image signal to obtain an initial reconstructed image signal;
the reconstruction optimization unit is used for inputting the sampling image signal and the initial reconstruction image signal into a compressed sensing network, carrying out signal weighting through a multilayer convolution weighting module in the compressed sensing network to obtain multilayer reconstruction image signals, and optimizing the reconstruction image signals according to the correlation between two adjacent layers of reconstruction image signals to obtain final reconstruction image signals;
the training unit is used for calculating a loss value according to the final reconstructed image signal and the original image signal, and updating the network parameters of the compressive sensing network according to the loss value to obtain a trained compressive sensing network;
and the reconstruction unit is used for carrying out image reconstruction on the image signal to be reconstructed through the trained compressed sensing network to obtain a reconstructed image signal.
Optionally, the sampling unit is specifically configured to:
and sampling the original image signal through a measurement matrix to obtain a sampled image signal.
Optionally, the initialization unit is specifically configured to:
and initializing a reconstructed image signal based on the sampling image signal, the sparse dictionary and the measurement matrix to obtain an initial reconstructed image signal.
Optionally, the compressed sensing network is a multilayer iterative model, and an objective function corresponding to each layer is as follows:
in the formula (I), the compound is shown in the specification,X k() is a firstkThe layers reconstruct the image signal and,Yin order to sample the image signal, the image signal is sampled,Ain order to measure the matrix of the measurements,Din order to be a sparse dictionary,for the first non-negative regularization parameter,for the second non-negative regularization parameter,in order to be a convolution weighting module, the convolution weighting module,B、Ca filter with a convolution kernel size of 3*3,Relu() In order to modify the linear cell activation function,Ffor the prediction matrix, is a learnable parameter of the compressed sensing network,X k(-1) is as followsk-1 layer of reconstructed image signals.
Optionally, the loss function of the compressed sensing network is:
in the formula (I), the compound is shown in the specification,N b as the total number of the sampled image signals,N p in order to compress the number of layers in the sensing network,Nin order to sample the size of the image signal,is as followsiThe final reconstructed image signal corresponding to each sampled image,S i is as followsiThe original image signal is then processed to generate a plurality of original image signals,W k() is a firstkA layer convolution weighting module for weighting the layer convolution,is as followskLayer andW k() a convolution weighting module for forming a symmetrical relationship,is as followsiA reconstructed image signal is inkThe sparse signal of the layer(s),is the third regularization parameter.
According to the technical scheme, the method has the following advantages:
the application provides an image reconstruction method based on a compressed sensing network, which comprises the following steps: sampling an original image signal to obtain a sampled image signal; initializing a reconstructed image signal based on the sampled image signal to obtain an initial reconstructed image signal; inputting the sampled image signal and the initial reconstructed image signal into a compressed sensing network, carrying out signal weighting through a multilayer convolution weighting module in the compressed sensing network to obtain multilayer reconstructed image signals, and optimizing the reconstructed image signals according to the correlation between two adjacent layers of reconstructed image signals to obtain final reconstructed image signals; calculating a loss value according to the final reconstructed image signal and the original image signal, and updating network parameters of the compressive sensing network through the loss value to obtain a trained compressive sensing network; and carrying out image reconstruction on the image signal to be reconstructed through the trained compressed sensing network to obtain a reconstructed image signal.
According to the method, after a sampling image signal and an initial reconstruction image signal are obtained through an original image signal, the sampling image signal and the initial reconstruction image signal are input into a compressed sensing network for image reconstruction, a network input signal is weighted through a multilayer convolution weighting module, multilayer reconstruction image signals are obtained, and the problem that a weighting matrix is required to be an orthogonal matrix or a diagonal matrix when signals are weighted in the prior art is solved; the reconstructed image signals are optimized through the similarity between two adjacent layers of reconstructed image signals, the correlation between the two adjacent layers of reconstructed image signals is more stable than the correlation between adjacent column signals, so that the stability of a compressed sensing network is improved, the stability of a reconstruction result is further ensured, the reconstruction effect is improved, the technical problem that in the prior art, a recurrent neural network is adopted to weight the reconstructed signals, a weighting matrix is greatly limited, and a model is designed by utilizing the similarity of each column of signals in the reconstructed signals, and the reconstruction effect is poor due to the poor stability of the similarity of each column of signals is solved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart of an image reconstruction method based on a compressive sensing network according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a compressed sensing-based signal processing process according to an embodiment of the present application;
fig. 3 is a schematic diagram of a network model of a compressed sensing network according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an image reconstructing apparatus based on a compressed sensing network according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
Compressed sensing is an emerging information acquisition and processing theory. The idea behind compressed sensing is that there is a trend to find ways to directly sense data from a compressed format, i.e. using a lower sampling rate, rather than first using a high sample and then compressing the data.
Please refer to fig. 2, for oneNOf dimensionKSparse signals, projecting high-dimensional signals through a perceptual matrixMOn the aspect of the dimensional space, the device can be used,M<<Ni.e. byWhereinIs a measurement matrix. The whole process is to obtain high-dimensional signalsNDimension) compression into low-dimension signals (MDimension(s),ytransmitted as an observation signal, which when it reaches the observation end, can be selected fromyAccurate recovery of sparse signalss。
Existing methods can be largely classified into two categories. The first is a compressed sensing algorithm, which utilizes sparse coefficientsxIs used to identify the true solution from an infinite set of feasible solutions. For example, due to natural signalss(e.g. image signals) are typically sparse in the wavelet domain, i.e.s=DxThis sparse prior can be formulated as a criterion. However, the manual design of signal priors in reconstruction algorithms is limited to general priors, such as sparsity and partial known support, and therefore only limited recognition capabilities are available.
The second category is learning from a large number of training data sets and deep neural networksyToxIs directly mapped. These methods can often achieve better performance in many cases with sufficient training data compared to the CS algorithm. In the prior art, a recurrent neural network is usually adopted for signal reconstruction, and a reconstructed signal is weighted by the recurrent neural network, but the method has great limitation on a weighting matrix which is necessarily an orthogonal matrix or a diagonal matrix, so that the weighting performance is greatly limited; and the network model is designed by utilizing the similarity of each column of signals in the reconstructed signals, the similarity of each column of signals is unstable, when the picture content is monotonous, for example, only one cup exists, the similarity between each column of signals is strong, and when the picture content is complex, the similarity between each column of signals is weak, so that the stability of the obtained reconstructed result is poor. In order to solve the problem, referring to fig. 1, an embodiment of the present application provides an image reconstruction method based on a compressed sensing network, including:
The original image signal can be represented asS=DX,DIn order to be a sparse dictionary,Xis a sparse signal. By measuring matricesAFor original image signalSSampling to obtain a sampled image signalYI.e. byY=AS。
And 102, initializing a reconstructed image signal based on the sampled image signal to obtain an initial reconstructed image signal.
Based on sampled image signalsYSparse dictionaryDAnd a measurement matrixAInitializing the reconstructed image signal to obtain an initial reconstructed image signalX (0) I.e. byX (0) =D T A T YAnd T is matrix transposition.
In addition, the original image signal is processedSMeasurement matrix when samplingAInitializing a sparse dictionary of reconstructed image signalsDMeasuring matrixAThe initial sparse dictionary and the initial measurement matrix are known parameters, and the sparse dictionary is used for image reconstruction in a compressed sensing networkDMeasuring matrixAAt the iteration of the heavyAnd updating the network parameters belonging to the compressed sensing network in the construction process.
The network model of the compressive sensing network in the embodiment of the present application can refer to fig. 3, and the compressive sensing network includes a convolution weighting moduleW k() 、And a soft threshold module (by a soft threshold function)soft() Composed of convolutional layers), wherein the convolutional weighting module consists of convolutional layersConvAn active layerReluAnd a convolution layerConvAnd (4) stacking. Hypothesis signalX k() There are the following dynamic models:
in the formula (I), the compound is shown in the specification,Fthe initial value of the prediction matrix is an identity matrix, the matrix learning is carried out through data driving in the process of compressed sensing network training,U k(-1) is an error matrix.
Based on the above assumptions, the compressive sensing network model in the embodiment of the present application is constructed as a multi-layer iterative model, and an objective function corresponding to each layer is as follows:
in the formula (I), the compound is shown in the specification,X k() is as followskThe layer reconstructs the image signal of the image,Yin order to sample the image signal, the image signal is sampled,Ain order to measure the matrix of the measurements,Din order to be a sparse dictionary,for the first non-negative regularization parameter,for the second non-negative regularization parameter,in order to be a convolution weighting module, the convolution weighting module,B、Ca filter with a convolution kernel size of 3*3,Relu() In order to modify the linear cell activation function,Fto predict the matrix, is a learnable parameter of the compressed sensing network,X k(-1) is as followsk-1 layer of reconstructed image signals.
The two norm terms in the formula (1) are combined to obtain the variable,,For the intermediate parameters, the objective function in equation (1) can be further converted into:
the reconstruction process of a compressed sensing network can be expressed as:
in the formula (I), the compound is shown in the specification,R k() is as followskThe input to the layer convolution weighting module is,is the step size.
in the formula, I is a unit matrix;
In the examples of this application, in combination withkThe convolution weighting module of the layer extracts the characteristics, compared with the common weighting matrix, the convolution weighting module can extract the high-dimensional characteristics of the signal by weighting, the network reconstruction capability is improved by training and changing the parameters of the convolution kernel,Relu() The activation function will make one output 0, which results in sparsity of the output and reduces the interdependence of the parameters, alleviating the over-fitting problem.
Obtained by a convolution weighting module,Is andW k() the relative scalar quantity is calculated according to the measured quantity,W k() is as followskLayer convolution weightingAnd (5) modules. Equation (4) can be converted to:
inspired by the reversibility of wavelet transform, canIs arranged as andthe structure is in a symmetrical structure, and the structure is,andall are learnable, and incorporate it into a loss function during the training of the compressed sensing network to enforce a symmetric constraint, one can solve:
to increase the capacity of a compressed sensing network, no requirement is made,Andthe same at each layer in a compressed sensing network, i.e. the outputX k() Comprises the following steps:
Compressive sensing network based on input sampled image signalsYAnd an initial reconstructed image signalX (0) Calculating to obtain intermediate parametersR (0) Then will beR (0) Inputting the signal into a first layer convolution weighting module for signal weighting to obtain a first layer reconstructed image signalX (1) Reconstructing an image signal by a first layerX (1) The input signal of the second layer convolution weighting module can be obtained by calculationR (2) Performing signal weighting by a second layer convolution weighting module to obtain a second layer reconstructed image signalX (2) By analogy, when the first one is obtainedkInput signal of a layer convolution weighting moduleR k() When passing throughkThe layer convolution weighting module carries out signal weighting to obtain the secondkLayer reconstruction image signalX k() Until obtaining the reconstructed image signal output by the last layer of convolution weighting moduleX Np() ,N p For compressing and sensing the number of network layers, a sparse dictionary is usedDAnd reconstructing the image signalX Np() The final reconstructed image signal can be obtained by reconstruction。
The image reconstruction process based on compressed sensing can be expressed as:
for k=1: N do
in the embodiment of the application, the signal is weighted by the convolution weighting module of the compressed sensing network, the limitation that the weighting matrix in the prior art that the cyclic neural network is adopted for signal weighting must be an orthogonal matrix or a diagonal matrix is convoluted, the high-dimensional characteristics of the signal are extracted by convolution, and the signal is weighted by the convolution weighting module, so that the reconstruction performance of the compressed sensing network is improved; reconstructing the image signal using two adjacent layers (e.g. secondk-1 layer and the secondkLayer reconstruction image signal) The correlation between the adjacent column signals is more stable than the correlation between the adjacent column signals, and the reconstruction effect is improved.
And 104, calculating a loss value according to the final reconstructed image signal and the original image signal, and updating the network parameters of the compressed sensing network according to the loss value to obtain the trained compressed sensing network.
The loss function of the compressed sensing network in the embodiment of the application is as follows:
in the formula (I), the compound is shown in the specification,N b as the total number of the sampled image signals,N p in order to compress the number of layers in the sensing network,Nin order to sample the size of the image signal,is as followsiThe final reconstructed image signal corresponding to each sampled image,S i is a firstiThe original image signal is then processed to generate a plurality of original image signals,W k() is as followskThe layer convolution weighting module is used for weighting the layer convolution,is as followskLayer andW k() a convolution weighting module for forming a symmetrical relationship,is a firstiA reconstructed image signal is inkThe sparse signal of the layer(s),for the third regularization parameter, 0.01 may be set.
The loss function in this application consists ofAndtwo-part construction, the loss function in the embodiment of the present application being taken into accountL constraint Is to ensure the symmetry of the convolution structure so as to solveThe image signal is de-reconstructed.
And updating network parameters through the loss value obtained by solving the loss function until the network converges to obtain the trained compressed sensing network. It is understood that when training the compressive sensing network, the raw image signals can be obtained from the image data sets disclosed by Caltech-256, BSDS500, set11, or the like.
And 105, carrying out image reconstruction on the image signal to be reconstructed through the trained compressed sensing network to obtain a reconstructed image signal.
And when an image signal to be reconstructed is received, inputting the image signal to be reconstructed into a trained compressed sensing network for image reconstruction, and obtaining a reconstructed image signal. For example, the observation terminal receives an observation signalYObserving signals through a trained compressed sensing networkYPerforming image reconstruction to derive a signal from the observation signalYAccurate recovery of sparse signalsS。
In the embodiment of the application, after a sampling image signal and an initial reconstruction image signal are obtained through an original image signal, the sampling image signal and the initial reconstruction image signal are input into a compressed sensing network for image reconstruction, a network input signal is weighted through a multilayer convolution weighting module, and multilayer reconstruction image signals are obtained, so that the problem that a weighting matrix is required to be an orthogonal matrix or a diagonal matrix when signals are weighted in the prior art is solved, high-dimensional characteristics of the signals are extracted through convolution, the signals are weighted through the convolution weighting module, and the reconstruction performance of the compressed sensing network is improved; the reconstructed image signals are optimized through the similarity between two adjacent layers of reconstructed image signals, the correlation between the two adjacent layers of reconstructed image signals is more stable than the correlation between adjacent column signals, so that the stability of a compressed sensing network is improved, the stability of a reconstruction result is further ensured, the reconstruction effect is improved, the technical problem that in the prior art, a recurrent neural network is adopted to weight the reconstructed signals, a weighting matrix is greatly limited, and a model is designed by utilizing the similarity of each column of signals in the reconstructed signals, and the reconstruction effect is poor due to the poor stability of the similarity of each column of signals is solved.
The above is an embodiment of the image reconstruction method based on the compressive sensing network provided by the present application, and the following is an embodiment of the image reconstruction device based on the compressive sensing network provided by the present application.
Referring to fig. 4, an image reconstructing apparatus based on a compressed sensing network according to an embodiment of the present application includes:
a sampling unit 401, configured to sample an original image signal to obtain a sampled image signal;
an initializing unit 402, configured to initialize a reconstructed image signal based on the sampled image signal, so as to obtain an initial reconstructed image signal;
the reconstruction optimization unit 403 is configured to input the sampled image signal and the initial reconstructed image signal into the compressed sensing network, perform signal weighting through a multilayer convolution weighting module in the compressed sensing network to obtain a multilayer reconstructed image signal, and optimize the reconstructed image signal according to a correlation between two adjacent layers of reconstructed image signals to obtain a final reconstructed image signal;
a training unit 404, configured to calculate a loss value according to the final reconstructed image signal and the original image signal, and update a network parameter of the compressed sensing network according to the loss value to obtain a trained compressed sensing network;
and the reconstructing unit 405 is configured to perform image reconstruction on the image signal to be reconstructed through the trained compressed sensing network to obtain a reconstructed image signal.
As a further improvement, the sampling unit 401 is specifically configured to:
and sampling the original image signal through the measurement matrix to obtain a sampled image signal.
As a further improvement, the initialization unit 402 is specifically configured to:
and initializing a reconstructed image signal based on the sampling image signal, the sparse dictionary and the measurement matrix to obtain an initial reconstructed image signal.
As a further improvement, the compressed sensing network is a multi-layer iterative model, and the corresponding objective function of each layer is as follows:
in the formula (I), the compound is shown in the specification,X k() is a firstkThe layer reconstructs the image signal of the image,Yin order to sample the image signal, the image signal is sampled,Ain order to measure the matrix of the measurements,Din order to be a sparse dictionary,for the first non-negative regularization parameter,for the second non-negative regularization parameter,in order to be a convolution weighting module, the convolution weighting module,B、Ca filter with a convolution kernel size of 3*3,Relu() In order to modify the linear cell activation function,Fto predict the matrix, is a learnable parameter of the compressed sensing network,X k(-1) is as followsk-1 layer reconstructed image signal.
As a further improvement, the loss function of the compressed sensing network is:
in the formula (I), the compound is shown in the specification,N b as the total number of the sampled image signals,N p in order to compress the number of layers in the sensing network,Nin order to sample the size of the image signal,is as followsiThe final reconstructed image signal corresponding to each sampled image,S i is a firstiThe original image signal is then processed to generate a plurality of original image signals,W k() is as followskA layer convolution weighting module for weighting the layer convolution,is as followskLayer andW k() rolls forming a symmetrical relationshipA product-weighting module for performing a product weighting on the data,is as followsiA reconstructed image signal is inkThe sparse signal of the layers is such that,is the third regularization parameter.
In the embodiment of the application, after a sampling image signal and an initial reconstruction image signal are obtained through an original image signal, the sampling image signal and the initial reconstruction image signal are input into a compressed sensing network for image reconstruction, a network input signal is weighted through a multilayer convolution weighting module, and multilayer reconstruction image signals are obtained, so that the problem that a weighting matrix is required to be an orthogonal matrix or a diagonal matrix when signals are weighted in the prior art is solved, high-dimensional characteristics of the signals are extracted through convolution, the signals are weighted through the convolution weighting module, and the reconstruction performance of the compressed sensing network is improved; the reconstructed image signals are optimized through the similarity between two adjacent layers of reconstructed image signals, the correlation between the two adjacent layers of reconstructed image signals is more stable than that between adjacent column signals, so that the stability of a compressed sensing network is improved, the stability of a reconstruction result is further ensured, the reconstruction effect is improved, and the technical problems that in the prior art, a recurrent neural network is adopted to weight the reconstructed signals, a weighting matrix is greatly limited, and a model is designed by utilizing the similarity of each column of signals in the reconstructed signals, and the reconstruction effect is poor due to the poor stability of the similarity of each column of signals are solved.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The terms "first," "second," "third," "fourth," and the like in the description of the application and the above-described figures, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the application described herein may be implemented, for example, in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that, in this application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for executing all or part of the steps of the method described in the embodiments of the present application through a computer device (which may be a personal computer, a server, or a network device). And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.
Claims (6)
1. An image reconstruction method based on a compressed sensing network is characterized by comprising the following steps:
sampling an original image signal to obtain a sampled image signal;
initializing a reconstructed image signal based on the sampling image signal to obtain an initial reconstructed image signal;
inputting the sampled image signal and the initial reconstructed image signal into a compressed sensing network, performing signal weighting through a multilayer convolution weighting module in the compressed sensing network to obtain a multilayer reconstructed image signal, and optimizing the reconstructed image signal according to the correlation between two adjacent layers of reconstructed image signals to obtain a final reconstructed image signal;
calculating a loss value according to the final reconstructed image signal and the original image signal, and updating network parameters of the compressive sensing network according to the loss value to obtain a trained compressive sensing network;
carrying out image reconstruction on an image signal to be reconstructed through the trained compressed sensing network to obtain a reconstructed image signal;
the compressed sensing network is a multilayer iteration model, and the target function corresponding to each layer is as follows:
in the formula (I), the compound is shown in the specification,X k() is a firstkThe layers reconstruct the image signal and,Yin order to sample the image signal, the image signal is sampled,Ain order to measure the matrix of the measurements,Din order to obtain a sparse dictionary,is a first non-negative regularization parameter,for the second non-negative regularization parameter,in order to be a convolution weighting module, the convolution weighting module,B、Ca filter with a convolution kernel size of 3*3,Relu() In order to modify the linear cell activation function,Ffor the prediction matrix, is a learnable parameter of the compressed sensing network,X k(-1) is a firstk-1 layer of reconstructed image signals;
the loss function of the compressed sensing network is as follows:
in the formula (I), the compound is shown in the specification,N b as the total number of the sampled image signals,N p in order to compress the number of perceived network layers,Nin order to sample the size of the image signal,is as followsiThe final reconstructed image signal corresponding to each sampled image,S i is as followsiThe original image signal is then processed to generate a plurality of original image signals,W k() is as followskA layer convolution weighting module for weighting the layer convolution,is a firstkLayer andW k() a convolution weighting module for forming a symmetrical relationship,is as followsiA reconstructed image signal is inkThe sparse signal of the layer(s),is a third regularization parameter.
2. The image reconstruction method based on compressed sensing network according to claim 1, wherein the sampling the original image signal to obtain a sampled image signal comprises:
and sampling the original image signal through a measurement matrix to obtain a sampled image signal.
3. The method according to claim 1, wherein initializing a reconstructed image signal based on the sampled image signal to obtain an initial reconstructed image signal comprises:
and initializing a reconstructed image signal based on the sampling image signal, the sparse dictionary and the measurement matrix to obtain an initial reconstructed image signal.
4. An image reconstruction apparatus based on a compressed sensing network, comprising:
the sampling unit is used for sampling the original image signal to obtain a sampled image signal;
the initialization unit is used for initializing a reconstructed image signal based on the sampling image signal to obtain an initial reconstructed image signal;
the reconstruction optimization unit is used for inputting the sampling image signal and the initial reconstruction image signal into a compressed sensing network, carrying out signal weighting through a multilayer convolution weighting module in the compressed sensing network to obtain multilayer reconstruction image signals, and optimizing the reconstruction image signals according to the correlation between two adjacent layers of reconstruction image signals to obtain final reconstruction image signals;
the training unit is used for calculating a loss value according to the final reconstructed image signal and the original image signal, and updating the network parameters of the compressive sensing network according to the loss value to obtain a trained compressive sensing network;
the reconstruction unit is used for carrying out image reconstruction on the image signal to be reconstructed through the trained compressed sensing network to obtain a reconstructed image signal;
the compressed sensing network is a multilayer iteration model, and the target function corresponding to each layer is as follows:
in the formula (I), the compound is shown in the specification,X k() is a firstkThe layers reconstruct the image signal and,Yin order to sample the image signal, the image signal is sampled,Ain order to measure the matrix of the measurements,Din order to be a sparse dictionary,is a first non-negative regularization parameter,for the second non-negative regularization parameter,in order to be a convolution weighting module, the convolution weighting module,B、Ca filter with a convolution kernel size of 3*3,Relu() In order to modify the linear cell activation function,Fto predict the matrix, is a learnable parameter of the compressed sensing network,X k(-1) is as followsk-1 layer of reconstructed image signals;
the loss function of the compressed sensing network is as follows:
in the formula (I), the compound is shown in the specification,N b as the total number of the sampled image signals,N p in order to compress the number of layers in the sensing network,Nin order to sample the size of the image signal,is as followsiThe final reconstructed image signal corresponding to each sampled image,S i is as followsiThe original image signal is converted into a digital image signal,W k() is as followskA layer convolution weighting module for weighting the layer convolution,is a firstkLayer andW k() a convolution weighting module for forming a symmetrical relation,is as followsiA reconstructed image signal is inkThe sparse signal of the layers is such that,is the third regularization parameter.
5. The device according to claim 4, wherein the sampling unit is specifically configured to:
and sampling the original image signal through a measurement matrix to obtain a sampled image signal.
6. The compressed sensing network-based image reconstruction device according to claim 4, wherein the initialization unit is specifically configured to:
and initializing a reconstructed image signal based on the sampling image signal, the sparse dictionary and the measurement matrix to obtain an initial reconstructed image signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211264253.0A CN115330901B (en) | 2022-10-17 | 2022-10-17 | Image reconstruction method and device based on compressed sensing network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211264253.0A CN115330901B (en) | 2022-10-17 | 2022-10-17 | Image reconstruction method and device based on compressed sensing network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115330901A CN115330901A (en) | 2022-11-11 |
CN115330901B true CN115330901B (en) | 2023-01-17 |
Family
ID=83915426
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211264253.0A Active CN115330901B (en) | 2022-10-17 | 2022-10-17 | Image reconstruction method and device based on compressed sensing network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115330901B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115861472B (en) * | 2023-02-27 | 2023-05-23 | 广东工业大学 | Image reconstruction method, device, equipment and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102332153A (en) * | 2011-09-13 | 2012-01-25 | 西安电子科技大学 | Kernel regression-based image compression sensing reconstruction method |
CN111667445A (en) * | 2020-05-29 | 2020-09-15 | 湖北工业大学 | Image compressed sensing reconstruction method based on Attention multi-feature fusion |
WO2022166298A1 (en) * | 2021-02-05 | 2022-08-11 | 歌尔股份有限公司 | Image processing method and apparatus, and electronic device and readable storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112634391B (en) * | 2020-12-29 | 2023-12-29 | 华中科技大学 | Gray image depth reconstruction and fault diagnosis system based on compressed sensing |
CN112991472B (en) * | 2021-03-19 | 2023-12-19 | 华南理工大学 | Image compressed sensing reconstruction method based on residual error dense threshold network |
CN113052925A (en) * | 2021-04-02 | 2021-06-29 | 广东工业大学 | Compressed sensing reconstruction method and system based on deep learning |
-
2022
- 2022-10-17 CN CN202211264253.0A patent/CN115330901B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102332153A (en) * | 2011-09-13 | 2012-01-25 | 西安电子科技大学 | Kernel regression-based image compression sensing reconstruction method |
CN111667445A (en) * | 2020-05-29 | 2020-09-15 | 湖北工业大学 | Image compressed sensing reconstruction method based on Attention multi-feature fusion |
WO2022166298A1 (en) * | 2021-02-05 | 2022-08-11 | 歌尔股份有限公司 | Image processing method and apparatus, and electronic device and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115330901A (en) | 2022-11-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110807495B (en) | Multi-label classification method, device, electronic equipment and storage medium | |
WO2023134086A1 (en) | Convolutional neural network model pruning method and apparatus, and electronic device and storage medium | |
CN111954250B (en) | Lightweight Wi-Fi behavior sensing method and system | |
CN111475622A (en) | Text classification method, device, terminal and storage medium | |
CN115330901B (en) | Image reconstruction method and device based on compressed sensing network | |
CN112883227B (en) | Video abstract generation method and device based on multi-scale time sequence characteristics | |
Hosseiny et al. | A hyperspectral anomaly detection framework based on segmentation and convolutional neural network algorithms | |
CN112786160A (en) | Multi-image input multi-label gastroscope image classification method based on graph neural network | |
CN116665065A (en) | Cross attention-based high-resolution remote sensing image change detection method | |
WO2020165490A1 (en) | A method, an apparatus and a computer program product for video encoding and video decoding | |
Wolter et al. | Wavelet-packet powered deepfake image detection | |
CN113850182A (en) | Action identification method based on DAMR-3 DNet | |
CN113592769A (en) | Abnormal image detection method, abnormal image model training method, abnormal image detection device, abnormal image model training device and abnormal image model training medium | |
Zhao et al. | Fast hypergraph regularized nonnegative tensor ring decomposition based on low-rank approximation | |
Cang et al. | Research on hyperspectral image reconstruction based on GISMT compressed sensing and interspectral prediction | |
CN114693547A (en) | Radio frequency image enhancement method and radio frequency image identification method based on image super-resolution | |
Zou et al. | Deep learning approach based on tensor-train for sparse signal recovery | |
WO2021179117A1 (en) | Method and apparatus for searching number of neural network channels | |
CN107945131B (en) | Distributed image reconstruction method for radio interference array | |
CN113299300A (en) | Voice enhancement method, device and storage medium | |
KR20220023841A (en) | Magnetic resonance image analysis system and method for alzheimer's disease classification | |
Cui et al. | Deep Unfolding Network for Image Compressed Sensing by Content-adaptive Gradient Updating and Deformation-invariant Non-local Modeling | |
Jiang et al. | Exploiting prior knowledge in compressed sensing to design robust systems for endoscopy image recovery | |
CN115797780A (en) | Hyperspectral image classification method based on cross-level spectrum-space joint coding learning | |
CN117292209B (en) | Video classification method and device based on space-time enhanced three-dimensional attention re-parameterization |
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 |