Image compressed sensing reconstruction method and device based on deep compressed sensing network
By integrating optimization algorithms and deep neural networks in image compressed sensing, and using adaptive sampling matrices and convolutional neural networks for image compressed sensing reconstruction, the problems of ill-posed inverse and block artifacts in the existing technology are solved, and a fast, High quality image reconstruction.
Patent Information
- Application Number
- CN202411082668.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-08-08
AI Technical Summary
Existing image compressed sensing reconstruction technology faces ill-posed inverse problems and high computational complexity. Deep learning methods lack theoretical guarantees and produce block artifacts during block sampling.
An image compressed sensing reconstruction method based on a deep compressed sensing network is proposed. By integrating the optimization algorithm into the deep neural network, using an adaptive sampling matrix for block-by-block sampling, and performing multiple rounds of optimization through multi-layer convolutional neural networks and residual connections. Reconstruction,removing blocking artifacts.
Fast, high-quality image reconstruction is achieved, improving detail recovery and quality of reconstructed images, reducing computational complexity, and eliminating the need for manual parameter fine-tuning.
Smart Images

Figure CN118608631A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image compression and deep learning technology, and in particular to an image compression sensing reconstruction method and device based on a deep compression sensing network. Background Art
[0002] Image compression sensing reconstruction technology is an image processing method based on compressed sensing (CS) theory. It breaks through the limitations of the traditional Nyquist-Shannon sampling theorem and allows the use of fewer samples or measurement data than traditional methods to accurately reconstruct images. This technology significantly reduces the storage and bandwidth requirements by sampling and compressing data at the same time, bringing revolutionary changes to the field of image processing. Compressed sensing theory has been widely used in many fields, especially in single-pixel imaging, magnetic resonance imaging, wireless data transmission, and snapshot compression imaging, demonstrating its strong practicality and potential.
[0003] Although compressed sensing theory provides a new approach to image reconstruction, there are still some challenges and defects in practical applications. First, the compressed sensing reconstruction process faces an ill-posed inverse problem, that is, the measured data is not sufficient to uniquely determine the original signal. To solve this problem, researchers proposed a gradient-based iterative threshold shrinkage algorithm, but the algorithm is sensitive to threshold parameters, has high computational complexity, requires multiple iterations, and affects real-time performance.
[0004] In response to this, deep learning technology has been introduced into compressed sensing reconstruction. The compressed sensing method based on deep learning achieves faster image reconstruction by training a neural network to learn the mapping relationship between the measured value and the original image. The compressed sensing method based on deep learning can generally be divided into two categories, namely, pure deep learning-based methods and optimized expansion-based methods. However, the pure deep learning-based methods lack theoretical guarantees, have poor interpretability, and require a large amount of training data; while the optimized expansion-based method, although combining the advantages of traditional iterative algorithms and deep learning, will produce block artifacts when implementing the block sampling strategy, affecting the quality of the reconstructed image. Summary of the invention
[0005] The purpose of the present invention is to solve the problem of rapid image compression and high-speed and high-quality reconstruction, and propose an algorithm that integrates an optimization algorithm into a deep neural network and is used for image compression sensing reconstruction.
[0006] The present invention provides an image compression sensing reconstruction method based on a deep compression sensing network, wherein the deep compression sensing network comprises a sampling module, an initialization module and a reconstruction module, and the method comprises: Based on the sampling module, the original image is divided into a plurality of image blocks, and the adaptive sampling matrix is applied to sample the plurality of image blocks one by one to obtain a measurement value of each image block; Based on the initialization module, initially reconstructing the measurement values of each image block to obtain an initial reconstructed image; Based on the reconstruction module, optimizing and reconstructing the initial reconstructed image to obtain an image reconstruction result; The reconstruction module is composed of a plurality of identical submodules connected in cascade, and the image reconstruction result output by the previous submodule is used as the initial reconstructed image input by the next submodule. The steps of optimizing and reconstructing the initial reconstructed image by any submodule include: Determine a first intermediate reconstruction result based on the adaptive sampling matrix, the measurement values of each image block, the initial reconstructed image, and a gradient corresponding to the initial reconstructed image, wherein the gradient is used to characterize a difference between the initial reconstructed image and the original image; Determine a second intermediate reconstruction result based on the adaptive sampling matrix, the measurement values of each image block, and the weight of any submodule; An image reconstruction result output by any one of the submodules is determined based on the first intermediate reconstruction result and the second intermediate reconstruction result.
[0007] According to a method for image compressed sensing reconstruction based on a deep compressed sensing network provided by the present invention, the method of determining a first intermediate reconstruction result based on the adaptive sampling matrix, the measurement values of each image block, the initial reconstructed image, and the gradient corresponding to the initial reconstructed image includes: Based on a preset accuracy threshold and the initial reconstructed image, determining a gradient corresponding to the initial reconstructed image; Determine a first intermediate result based on the adaptive sampling matrix, the measurement values of each image block, the initial reconstructed image, and the gradient; The first intermediate result is input into a multi-layer convolutional neural network to obtain a first convolution result, and the first convolution result is added to the first intermediate result through a residual connection to obtain the first intermediate reconstruction result.
[0008] According to a method for image compressed sensing reconstruction based on a deep compressed sensing network provided by the present invention, determining a second intermediate reconstruction result based on the adaptive sampling matrix, the measurement values of each image block and the weight of any submodule includes: Determine a second intermediate result based on the adaptive sampling matrix, the measurement values of each image block and the weight of any submodule; The second intermediate result is input into a multi-layer convolutional neural network to obtain a second convolution result, and the second convolution result is added to the second intermediate result through a residual connection to obtain the second intermediate reconstruction result.
[0009] According to the present invention, a method for image compressed sensing reconstruction based on a deep compressed sensing network is provided, wherein the original image is divided into a plurality of image blocks, and an adaptive sampling matrix is applied to sample the plurality of image blocks one by one to obtain a measurement value of each image block, including: Based on a preset block length, dividing the original image into a plurality of non-overlapping image blocks; Connect the data of any image block head to tail in columns to obtain vector data of any image block; The adaptive sampling matrix is multiplied by the vector data of any image block to obtain a measurement value of any image block.
[0010] According to a method for image compressed sensing reconstruction based on a deep compressed sensing network provided by the present invention, the adaptive sampling matrix is initially a submatrix of a unitary matrix, the number of columns of the adaptive sampling matrix is consistent with the length of the vector data of any image block, the number of rows of the adaptive sampling matrix is determined based on a preset compression rate and the number of columns, and the elements in the adaptive sampling matrix are updated based on joint learning of back propagation and reconstruction process.
[0011] According to a method for image compressed sensing reconstruction based on a deep compressed sensing network provided by the present invention, the original image is divided into a plurality of non-overlapping image blocks based on a preset block length, comprising: When the size of the original image is not an integer multiple of the preset block length, inserting zero values at the edge of the original image to obtain a padded image; Based on the preset block length, dividing the padded image into a plurality of non-overlapping image blocks; Accordingly, the measurement values of each image block are initially reconstructed to obtain an initial reconstructed image, and then the method further includes: Based on the edge region in which the zero value is inserted in the original image, a target region corresponding to the edge region is determined in the initial reconstructed image, and the zero value of the target region is deleted.
[0012] According to a method for image compressed sensing reconstruction based on a deep compressed sensing network provided by the present invention, the measurement values of each image block are initially reconstructed to obtain an initial reconstructed image, including: Obtaining a transposed matrix of the adaptive sampling matrix, and multiplying the transposed matrix by the measured value of each image block to obtain an initial reconstruction result of each image block; Based on a preset block length, segmenting the initial reconstruction results of each image block, and splicing the segmented results by column to obtain a reconstructed image block of each image block; Based on the arrangement positions of the image blocks in the original image, the reconstructed image blocks are spliced to obtain the initial reconstructed image.
[0013] According to a method for image compressed sensing reconstruction based on a deep compressed sensing network provided by the present invention, the loss function of the deep compressed sensing network is determined based on the difference between the image reconstruction result output by each submodule in the reconstruction module and the original image, and the difference between the image reconstruction result output by the reconstruction module and the original image; The parameters to be updated during the training of the deep compressed sensing network include the adaptive sampling matrix, the transposed matrix of the adaptive sampling matrix, and the convolution layer parameters in the reconstruction module.
[0014] The present invention also provides an image compression sensing reconstruction device based on a deep compression sensing network, wherein the deep compression sensing network includes a sampling module, an initialization module and a reconstruction module, and the device includes: A sampling unit, configured to divide the original image into a plurality of image blocks based on the sampling module, and apply an adaptive sampling matrix to sample the plurality of image blocks one by one to obtain a measurement value of each image block; An initialization unit, configured to perform initial reconstruction on the measurement values of each image block based on the initialization module to obtain an initial reconstructed image; A reconstruction unit, configured to optimize and reconstruct the initial reconstructed image based on the reconstruction module to obtain an image reconstruction result; The reconstruction module is composed of a plurality of identical submodules connected in cascade, and the image reconstruction result output by the previous submodule is used as the initial reconstructed image input by the next submodule. The steps of optimizing and reconstructing the initial reconstructed image by any submodule include: Determine a first intermediate reconstruction result based on the adaptive sampling matrix, the measurement values of each image block, the initial reconstructed image, and a gradient corresponding to the initial reconstructed image, wherein the gradient is used to characterize a difference between the initial reconstructed image and the original image; Determine a second intermediate reconstruction result based on the adaptive sampling matrix, the measurement values of each image block, and the weight of any submodule; An image reconstruction result output by any one of the submodules is determined based on the first intermediate reconstruction result and the second intermediate reconstruction result.
[0015] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, an image compressed sensing reconstruction method based on a deep compressed sensing network as described above is implemented.
[0016] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the image compressed sensing reconstruction method based on a deep compressed sensing network as described in any one of the above is implemented.
[0017] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned image compressed sensing reconstruction methods based on a deep compressed sensing network.
[0018] The image compression sensing reconstruction method and device based on the deep compression sensing network provided by the present invention can perform efficient compression sampling according to the specific content and characteristics of the image by adopting an adaptive sampling matrix to sample the original image block by block, thereby improving the efficiency and accuracy of sampling. The deep compression sensing network combines an initialization module and a reconstruction module, obtains a preliminary image result through initial reconstruction, and then uses the reconstruction module to perform multiple rounds of optimization reconstruction on the initial result, which can gradually improve the quality of image reconstruction; moreover, the reconstruction module is composed of a plurality of identical submodules in cascade, and each submodule is optimized and reconstructed based on the output result of the previous submodule. This structure enables the deep compression sensing network to gradually and finely adjust the image reconstruction result, thereby obtaining a higher quality reconstructed image. In addition, in the reconstruction stage, by embedding the optimization algorithm into the reconstruction module with a deep neural network, and using the adaptive sampling matrix, the measurement value of the image block, the gradient information and the weight information of the submodule to participate in the reconstruction process, not only can the details of the reconstructed image be optimized and the inter-block loss information be restored, but also the block artifacts can be effectively eliminated, thereby improving the quality of the reconstructed image. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the present invention or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 It is a schematic diagram of the structure of the deep compressed sensing network provided by the present invention; Figure 2 It is a flowchart of an image compression sensing reconstruction method based on a deep compression sensing network provided by the present invention; Figure 3 is a structural schematic diagram of a reconstruction module provided by the present invention; Figure 4 It is a structural schematic diagram of an image compression sensing reconstruction device based on a deep compression sensing network provided by the present invention; Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0022] In order to apply compressed sensing to real-world scenarios, algorithms need to be designed to solve the inherent ill-posed inverse problem of compressed sensing. The gradient-based iterative threshold shrinkage algorithm is a common method to solve this problem. However, the algorithm is very sensitive to the choice of threshold parameters and needs to be carefully tuned to achieve optimal performance. Moreover, the iterative threshold shrinkage algorithm has a high computational complexity and requires hundreds of iterations to obtain the optimal solution, which is time-consuming. In addition, these algorithms usually require careful parameter setting to obtain satisfactory results.
[0023] In this regard, deep learning provides a way to improve the efficiency and effectiveness of compressed sensing in practical scenarios. Compared with traditional iterative algorithms, compressed sensing methods based on deep learning provide faster reconstruction speeds. However, pure deep learning-based methods still have certain limitations. Due to the lack of theoretical guarantees, these methods are often regarded as "black boxes" and it is difficult to explain their internal working mechanisms. In addition, the training of deep learning models requires a large amount of data, which may be difficult to achieve in some application scenarios.
[0024] Another compressed sensing method based on optimized expansion combines the advantages of traditional iterative algorithms and deep learning. By mapping the iterative process of traditional algorithms into a deep network, this method improves the interpretability of the model while maintaining a fast reconstruction speed. However, this method limits the quality of the reconstructed image when implementing a block sampling strategy, resulting in problems such as block artifacts. These problems may be more obvious especially at low sampling rates.
[0025] In order to solve the above problems, the present invention provides an image compressed sensing reconstruction method based on a deep compressed sensing network, in which an optimization algorithm is embedded in a deep neural network structure. In order to measure the image and obtain the measurement value, an adaptive sampling matrix is used in the sampling module, and the initial estimation of the image is calculated and restored from the measurement value by the initialization module, and the sampling matrix can be learned from the training image; the reconstruction stage improves the quality of the reconstructed image by optimizing the calculation and converting the iteration into a cascade of the self-network. In addition, a customized neural network-based deblocking structure is used to participate in the reconstruction process and to capture the global position correlation between image blocks, which can effectively eliminate block artifacts. Moreover, a deep neural network is used globally for end-to-end training, eliminating the requirement for manual parameter fine-tuning and achieving efficient calculation. Experimental results show that the deep compressed sensing network proposed in the present invention achieves better performance in reconstructed image quality and visual perception.
[0026] It should be noted that the present invention is mainly based on the theory of deep learning and compressed sensing, integrates the optimization algorithm with the deep neural network, proposes a deep compressed sensing network, and uses it for image compressed sensing reconstruction. The present invention makes full use of the characteristics of deep learning and optimization algorithms, adaptively learns the network weights of the deep compressed sensing network through the deep learning method, and improves the image reconstruction quality.
[0027] Figure 1 is a schematic diagram of the structure of the deep compressed sensing network provided by the present invention, such as Figure 1 As shown, the network includes a sampling module 110, an initialization module 120 and a reconstruction module 130, and the network parameters are trained by an end-to-end learning method. At the encoding end of the deep compressed sensing network, the sampling module 110 samples the original image block by block by using an adaptive sampling matrix and obtains a measurement value; at the decoding end, the initialization module 120 receives the measurement value as input and generates an initial estimate of the reconstructed image. The reconstruction module 130 is used to enhance the detail information of the reconstructed image, thereby obtaining the final reconstructed image.
[0028] Figure 2 : is a flow chart of an image compression sensing reconstruction method based on a deep compression sensing network provided by the present invention, such as Figure 2 As shown, the method includes: Step 210, based on the sampling module, the original image is divided into a plurality of image blocks, and the adaptive sampling matrix is applied to sample the plurality of image blocks one by one to obtain a measurement value of each image block; Specifically, the original image refers to the initial image to be compressed and reconstructed, which is the original data without any processing. The original image can be any form of two-dimensional image, such as grayscale image, color image, etc. For compressed sampling of the image, the original image can be divided into multiple image blocks first. Here, image segmentation refers to the process of dividing the original image into multiple smaller, continuous sub-regions or blocks, and the segmentation method can be a simple fixed-size grid division. In deep compressed sensing, the size and number of image blocks can be set according to specific application requirements and network structure. It should be understood that the image block refers to the smaller, continuous sub-region obtained after the original image is segmented, and each image block contains part of the information of the original image. The size of the image block can be adjusted as needed. Smaller image blocks can capture finer details, but will also increase the computational complexity; larger image blocks are the opposite.
[0029] After segmenting to obtain multiple image blocks, the adaptive sampling matrix can be used to sample the multiple image blocks one by one to obtain the measurement value of each image block. Here, the adaptive sampling matrix is an observation matrix for compressed sensing, and its elements and size can be adaptively adjusted according to the content or characteristics of the image block. For example, the adaptive sampling matrix can initially be a submatrix of a unitary matrix, and the elements in the matrix can be jointly learned and updated through the back propagation and reconstruction process. Here, the unitary matrix is a special complex matrix whose column vectors (or row vectors) are orthogonal to each other and the modulus is 1; the submatrix of the unitary matrix refers to a new matrix composed of some rows and some columns selected from the unitary matrix. It should be understood that by taking advantage of deep learning to learn the adaptive sampling matrix from the training data set, the compressed sensing measurement can retain more information about the image structure so as to better reconstruct the image. In addition, compared with the traditional fixed sampling matrix, the adaptive sampling matrix can better match the sparsity of the image block, thereby retaining more useful information during the sampling process.
[0030] Specifically, for each image block, the corresponding adaptive sampling matrix can be used for linear transformation to obtain the measurement value (or compressed sampling value) of the image block. This process involves matrix and vector multiplication operations, where the matrix is the adaptive sampling matrix and the vector is the data of the image block. Here, the measurement value refers to the data obtained after the image block is transformed by the adaptive sampling matrix, which is a low-dimensional representation of the original image block under the compressed sensing framework. The measurement value can be used in the subsequent image reconstruction process, and the initial reconstructed image can be obtained by solving the inverse problem of compressed sensing (i.e., restoring the original image block from the measurement value). It should be noted that the above-mentioned block-by-block sampling means that the matrix and vector multiplication operation is performed on each image block to obtain a set of measurement values for all image blocks.
[0031] Step 220, based on the initialization module, initially reconstruct the measurement values of each image block to obtain an initial reconstructed image; It should be noted that, for image reconstruction, the measurement values of each image block can be initially reconstructed through the initialization module. In the theory of compressed sensing, the measurement matrix (i.e., the adaptive sampling matrix in the embodiment of the present invention) is used to linearly transform the original signal (i.e., the image block) to obtain the measurement value; in order to restore the original signal from the measurement value, a certain inverse transformation of the measurement matrix can be used to achieve it.
[0032] Specifically, when the measured values of each image block are initially reconstructed, the transposed matrix of the adaptive sampling matrix can be used to achieve it. By multiplying the measured values of the image block with the transposed matrix, the approximate value of the original image block can be restored, that is, the initial reconstruction result of each image block is obtained. Since the initial reconstruction result is based on the image block, the initial reconstruction result of each image block can be transformed and spliced according to the position of the corresponding image block in the original image to form a completed initial reconstructed image.
[0033] It can be understood that the initial reconstructed image refers to a preliminary estimate of the original image obtained by restoring the transposed matrix of the adaptive sampling matrix and the corresponding processing. Due to the characteristics of compressed sensing and the errors in the initial reconstruction process, there is a certain difference between the initial reconstructed image and the original image, which can be further optimized and refined.
[0034] Step 230: Based on the reconstruction module, the initial reconstructed image is optimized and reconstructed to obtain an image reconstruction result.
[0035] Specifically, after obtaining the initial reconstructed image, the initial reconstructed image can be optimized and reconstructed by the reconstruction module to enhance the detail information of the reconstructed image and further improve the quality of the reconstructed image, thereby obtaining the final image reconstruction result. Here, the image reconstruction result refers to the final image obtained after the reconstruction module optimizes and reconstructs the image, which is as close as possible to the original image so as to achieve a satisfactory effect in terms of vision or application.
[0036] It is understandable that the reconstruction module can be obtained by integrating the optimization algorithm and the deep neural network, and it can include multiple cascaded sub-modules. In the reconstruction stage, by optimizing the calculation and converting the iteration into the cascade of the self-network, the quality of the reconstructed image can be improved. It should be noted that the specific implementation method of optimizing the reconstruction of the initial reconstructed image based on the reconstruction module will be described in detail through the following embodiments.
[0037] The method provided by the embodiment of the present invention can perform efficient compression sampling according to the specific content and features of the image by adopting an adaptive sampling matrix to sample the original image block by block, thereby improving the efficiency and accuracy of sampling. In addition, the deep compressed sensing network combines the initialization module and the reconstruction module, obtains a preliminary image result through initial reconstruction, and then uses the reconstruction module to perform multiple rounds of optimization reconstruction on the initial result, which can gradually improve the quality of image reconstruction.
[0038] Based on any of the above embodiments, step 210 specifically includes: Step 211, based on a preset block length, dividing the original image into a plurality of non-overlapping image blocks; Specifically, the preset block length refers to the size of a block that is preset for segmenting the original image. Here, the size of the image block may include the width and height of the image block. In order to facilitate the initial reconstruction of the subsequent image, the width and height of the image block may be the same, so the preset block length may be a fixed pixel value. According to the preset block length, the original image may be divided into non-overlapping blocks, thereby obtaining a plurality of image blocks, each of which may be independently processed for subsequent operations.
[0039] Furthermore, step 211 specifically includes: When the size of the original image is not an integer multiple of the preset block length, inserting zero values at the edge of the original image to obtain a padded image; Based on the preset block length, the padded image is divided into a plurality of non-overlapping image blocks.
[0040] It should be noted that in order to ensure that the original image can be accurately divided into multiple image blocks of preset block lengths, when the size of the original image is not an integer multiple of the preset block length, this can be achieved by inserting zero values at the edges of the original image, thereby ensuring that the sizes of all image blocks obtained by segmentation are consistent.
[0041] Here, the size of the original image refers to the width and height of the image, in pixels, and these sizes may not be integer multiples of the preset block length, that is, the width or height of the original image cannot be accurately divided by the preset block length. In this case, zero values can be inserted at the edges of the original image. For example, if the width of the original image is not an integer multiple of the preset block length, a corresponding number of zero-value columns can be added on both sides of the original image until the width becomes an integer multiple of the preset block length; similarly, if the height does not meet the conditions, zero-value rows can be added above and below the original image to obtain a padded image.
[0042] It can be understood that a padded image is an image obtained by adjusting the size of the original image by inserting zero values (or called padding values, zero padding) at the edges of the original image. The purpose of padding is to make the size of the original image an integer multiple of the preset block length, thereby ensuring that non-overlapping and uniformly sized image blocks can be obtained in the subsequent segmentation process. After the padding process, the obtained padded image can be accurately segmented into multiple non-overlapping and uniformly sized image blocks based on the preset block length, and these image blocks can be used in the subsequent compressed sensing and reconstruction process.
[0043] Step 212, connecting the data of any image block head to tail in columns to obtain vector data of any image block; It should be noted that the data of an image block refers to the values of all pixels that make up the image block. For grayscale images, this data is usually the grayscale value of a single channel; for color images, it may be the pixel values of multiple channels (such as the three channels of an RGB image). This data is usually stored in the form of a matrix or a two-dimensional array, where each element corresponds to the value of a pixel.
[0044] Specifically, after segmenting to obtain multiple image blocks, for each image block, the data of the image block can be connected end to end by column. Here, connecting the data of the image block end to end by column refers to a process of converting the two-dimensional image block data into one-dimensional vector data. It can be implemented specifically by the following steps: starting from the upper left corner of the image block, read the pixel values column by column; arrange the pixel values of each column from top to bottom into a column vector; connect all the column vectors end to end to form a long one-dimensional vector, and the vector data of the image block can be obtained. Here, the vector data of the image block refers to the one-dimensional vector representing the image block obtained through the above steps, and this vector data can be used to multiply with the adaptive sampling matrix to obtain the measurement value of the image block.
[0045] Step 213: multiply the adaptive sampling matrix by the vector data of any image block to obtain a measurement value of any image block.
[0046] Specifically, after obtaining the vector data of any image block, it can be multiplied by the adaptive matrix to achieve sampling of the image block to obtain the measurement value of the image block, thereby completing the image compression. It should be understood that the measurement value contains enough information to restore the original image, but the required storage space is much smaller than the original image, so such a process can achieve image compression.
[0047] Based on any of the above embodiments, the adaptive sampling matrix is initially a submatrix of a unitary matrix, the number of columns of the adaptive sampling matrix is consistent with the length of the vector data of any of the image blocks, the number of rows of the adaptive sampling matrix is determined based on a preset compression rate and the number of columns, and the elements in the adaptive sampling matrix are updated based on joint learning of back propagation and reconstruction processes.
[0048] Specifically, a unitary matrix, also called a unitary matrix, is a complex matrix whose conjugate transpose is equal to its inverse matrix. Unitary matrices have many excellent mathematical properties, such as the property of preserving the length of vectors (unitary transformations do not change the length of vectors). Therefore, selecting a submatrix of the unitary matrix as the initial value of the adaptive sampling matrix helps to ensure that certain mathematical properties of the sampling process are maintained.
[0049] The number of columns of the adaptive sampling matrix is consistent with the length of the vector data of any image block, which means that the number of columns of the sampling matrix matches the dimension of the image block data, ensuring that the sampling matrix can correctly act on the image block data, thereby helping to ensure the accuracy and effectiveness of data processing. The number of rows of the adaptive sampling matrix is determined based on the preset compression rate and the number of columns of the adaptive sampling matrix. For example, the number of rows of the adaptive sampling matrix can be designed to be the preset compression rate multiplied by the number of columns. Here, the preset compression rate refers to the ratio of the preset compressed image size to the original image size. In an embodiment of the present invention, the number of rows of the adaptive sampling matrix is determined based on the preset compression rate and the number of columns, indicating that the number of rows of the sampling matrix will directly affect the compression effect. By adjusting the number of rows, the degree of compression of the data can be controlled to achieve a preset compression rate.
[0050] The elements in the adaptive sampling matrix can be subsequently learned and updated jointly through the back-propagation and reconstruction process, which means that the elements of the sampling matrix are not fixed, but will be learned and updated according to the back-propagation and reconstruction process. Updating the elements of the sampling matrix through the back-propagation and reconstruction process can make the sampling matrix better adapt to the data, thereby improving the sampling and reconstruction effects.
[0051] Based on any of the above embodiments, step 220 specifically includes: Step 221, obtaining a transposed matrix of the adaptive sampling matrix, and multiplying the transposed matrix by the measured value of each image block to obtain an initial reconstruction result of each image block; Specifically, in order to recover the original information from the measured values, a matrix related to the adaptive sampling matrix, such as the transposed matrix of the adaptive sampling matrix, can be used to perform an inverse operation. By multiplying the transposed matrix with the measured values of each image block, the initial reconstruction result of each image block can be obtained. Here, the transposed matrix of the adaptive matrix refers to a new matrix obtained by swapping the rows and columns of the adaptive matrix. For any image block, by multiplying the transposed matrix with the measured value of the image block, the result obtained is the initial reconstruction result of the image block, which is an initial estimate of the image block.
[0052] Step 222, segmenting the initial reconstruction results of the image blocks based on a preset block length, and splicing the segmented results by columns to obtain reconstructed image blocks of the image blocks; Specifically, the initial reconstruction result obtained in the above step 221 is a vector with the same dimension as the original vector data. Since the initial reconstruction result is processed based on the image data after segmentation, that is, the vector is actually spliced by the data of the image block, the long vector can be re-segmented into multiple segments of data according to the size of the original image block (that is, the preset block length), and each segment of data corresponds to a column of pixel values in the original image block. The multiple segments of data here are the above segmentation results. By splicing these multiple segments of data in columns, that is, placing them one by one in the order of their columns in the image block, a reconstructed image block of the image block can be obtained. Here, the reconstructed image block refers to a complete image block obtained by splicing the segmentation results in columns, which is a reconstruction or estimation of the original image block.
[0053] Step 223 , based on the arrangement positions of the image blocks in the original image, the reconstructed image blocks are spliced to obtain the initial reconstructed image.
[0054] Specifically, after all the reconstructed image blocks are obtained, these reconstructed image blocks can be reassembled according to the division order of the original image to obtain the initial reconstructed image. Here, according to the exact position of each image block in the original image, the placement area of the reconstructed image block corresponding to each image block can be determined, and it can be placed at the corresponding position, so as to form an initial reconstructed image by splicing, and the initial reconstruction of the image is completed.
[0055] In addition, if there is an operation of inserting zero values in the sampling module, it is necessary to delete these zero values at the corresponding edges of the stitched-back initial reconstructed image to ensure that the size of the initial reconstructed image is consistent with the size of the original image. Specifically, the processing steps for the initial reconstructed image are as follows: based on the edge area where the zero values are inserted in the original image, determine the target area corresponding to the edge area in the initial reconstructed image, and delete the zero values of the target area.
[0056] It can be understood that the above-mentioned target area refers to the area in the initial reconstructed image that corresponds to the edge area in the original image where zero values are inserted due to size adjustment. These areas may still contain zero values in the reconstructed image because they are reconstructed based on the measured values containing zero values. Therefore, the zero values of the target area can be deleted in the initial reconstructed image. For example, when the size of the original image is not an integer multiple of the preset block length, zero values are inserted at its edge to obtain a filled image. At this time, the position and size of these edge areas with inserted zero values can be recorded. In the initial reconstructed image, the position and size of these edge areas should correspond to the position in the original image. This is because the reconstruction process is based on the position and size of the image block, so the position of the edge area in the reconstructed image will not change. In the initial reconstructed image, the area corresponding to the edge area of the original image is identified, and the zero values in the area are deleted, so that the initial reconstructed image consistent with the size of the original image can be obtained.
[0057] Based on any of the above embodiments, Figure 3 is a schematic diagram of the structure of the reconstruction module provided by the present invention, such as Figure 3 As shown, the reconstruction module is composed of a plurality of identical submodules connected in cascade, and the image reconstruction result output by the previous submodule is used as the initial reconstructed image input by the next submodule.
[0058] It should be noted that the reconstruction module of the deep compressed sensing network provided by the embodiment of the present invention is composed of a plurality of identical submodules cascaded, that is, the image optimization reconstruction process is decomposed into a plurality of continuous submodules with similar functions, each submodule undertakes a part of the reconstruction task, and these submodules are connected sequentially. This cascade structure enables the network to reconstruct the image step by step and finely, thereby obtaining a higher quality reconstructed image.
[0059] Specifically, during the reconstruction process, each submodule is responsible for processing the image reconstruction result output by the previous submodule, that is, the image reconstruction result output by the previous submodule is directly used as the input of the next submodule. This continuous transmission of information ensures that each submodule is an improvement and optimization of the output result of the previous stage, thereby achieving a gradual improvement in the reconstruction quality and ultimately obtaining a high-quality reconstructed image.
[0060] Accordingly, the step of optimizing and reconstructing the initial reconstructed image by any submodule includes: Step 231, determining a first intermediate reconstruction result based on the adaptive sampling matrix, the measurement values of each image block, the initial reconstructed image, and a gradient corresponding to the initial reconstructed image, wherein the gradient is used to characterize the difference between the initial reconstructed image and the original image; Step 232, determining a second intermediate reconstruction result based on the adaptive sampling matrix, the measurement values of each image block, and the weight of any submodule; Step 233: Determine the image reconstruction result output by any submodule based on the first intermediate reconstruction result and the second intermediate reconstruction result.
[0061] It can be understood that the first intermediate reconstruction result refers to an intermediate reconstructed image obtained after a series of calculations and optimizations based on the initial reconstructed image and its corresponding gradient, the adaptive sampling matrix, and the measured values of each image block during the reconstruction process. Here, the gradient corresponding to the initial reconstructed image refers to a measure of the difference between the initial reconstructed image and the original reconstructed image. Gradient information can accurately reflect the change relationship between each pixel in the image, which helps the network to find the direction and strategy of reconstruction more accurately.
[0062] The second intermediate reconstruction result refers to another intermediate reconstructed image obtained through a series of calculations and optimizations based on the adaptive sampling matrix and the measured values of each image block after considering the weights of the submodules. Here, the weight of the submodule refers to a relative importance or influence coefficient assigned to each submodule in the cascaded multiple submodules. By considering the weights of each submodule, the network can be made more flexible and adaptive during the reconstruction process, thus being closer to the ideal reconstructed image.
[0063] For each submodule, after calculating the first intermediate reconstruction result and the second intermediate reconstruction result, the image reconstruction result output by the submodule can be calculated based on the first intermediate reconstruction result and the second intermediate reconstruction result so as to serve as the input of the next submodule for further optimized reconstruction.
[0064] Based on the above embodiment, step 231 specifically includes: Step 2311, determining a gradient corresponding to the initial reconstructed image based on a preset accuracy threshold and the initial reconstructed image; Step 2312, determining a first intermediate result based on the adaptive sampling matrix, the measurement values of each image block, the initial reconstructed image, and the gradient; Step 2313: input the first intermediate result into a multi-layer convolutional neural network to obtain a first convolution result, and add the first convolution result to the first intermediate result through a residual connection to obtain the first intermediate reconstruction result.
[0065] It should be noted that the preset accuracy threshold refers to a pre-set value used to control the convergence accuracy of parameter iteration during the reconstruction process. When the change (or error) of the reconstructed image is less than the threshold, it can be considered that the reconstruction is close enough to the true value and the parameter update can be stopped. Can be set between 0.00001 and 0.01.
[0066] Specifically, the initial reconstructed image output by the initialization module can be used Indicates that the following The optimization and reconstruction process is introduced by taking a sub-module as an example.
[0067] According to the preset accuracy threshold and the initial reconstructed image, the gradient corresponding to the initial reconstructed image can be calculated by the following formula :
[0068] in, Indicates the submodule number. It is The image reconstruction result output by the submodule is The initial reconstructed image input by the submodules, is a sign function. It should be understood that in calculating the gradient When the initial reconstructed image is not directly With threshold To compare, but to Each pixel value in is compared.
[0069] Then, based on the initial reconstructed image and its gradient, the adaptive sampling matrix and the measured value of the image block, the first intermediate result can be calculated by the following formula: :
[0070] in, represents the adaptive sampling matrix, represents the transposed matrix of the adaptive sampling matrix, represents the measurement value of the image patch, represents the identity matrix. This formula is obtained by combining gradient descent (i.e., subtracting times the gradient) and a projection step (via The purpose of this operation is to reconstruct the image to some constraints (such as the observed data ) direction adjustment.
[0071] Furthermore, in order to prevent the gradient vanishing problem, capture the global position correlation between image blocks, effectively eliminate block artifacts, and enable the network to produce more accurate reconstruction results, the first intermediate result can be The convolutional neural network is fed into the multi-layer convolutional neural network, and the convolution result is connected with Add together to get a more accurate first intermediate reconstruction result , thereby utilizing the powerful learning ability of convolutional neural networks to improve the reconstructed image.
[0072] Based on any of the above embodiments, step 232 specifically includes: Step 2321, determining a second intermediate result based on the adaptive sampling matrix, the measurement values of each image block and the weight of any submodule; Step 2322: input the second intermediate result into a multi-layer convolutional neural network to obtain a second convolution result, and add the second convolution result to the second intermediate result through a residual connection to obtain the second intermediate reconstruction result.
[0073] Specifically, before performing the optimization reconstruction task through each submodule of the reconstruction module, a weight can be initialized , and set The value of is 0. Before executing step 2321, the weight of the submodule can be calculated first, that is, The weight of each submodule for:
[0074] Then, according to the calculated weight value , the adaptive sampling matrix and the measured value of the image block can be calculated by the following formula to obtain the second intermediate result , further refine the reconstructed image:
[0075] Further, similar to the above embodiment, the second intermediate result The convolutional neural network is fed into the multi-layer convolutional neural network, and the convolution result is connected with Add together to get a more accurate second intermediate reconstruction result , thereby utilizing the powerful learning ability of convolutional neural networks to improve the reconstructed image.
[0076] The first intermediate reconstruction result is obtained by calculating and the second intermediate reconstruction result After that, the following formula can be used to calculate the The image reconstruction result output by the submodule :
[0077] In the embodiment of the present invention, the reconstruction module is composed of a plurality of identical submodules in cascade, so that the quality of the reconstructed image can be improved by optimizing the calculation and converting the iteration into the cascade of the self-network in the reconstruction stage. In addition, each submodule uses a customized deblocking structure based on a deep neural network to participate in the reconstruction process and is used to capture the global position correlation between image blocks, effectively eliminating block artifacts.
[0078] Based on any of the above embodiments, the loss function of the deep compressed sensing network is determined based on the difference between the image reconstruction result output by each submodule in the reconstruction module and the original image, and the difference between the image reconstruction result output by the reconstruction module and the original image; The parameters to be updated during the training of the deep compressed sensing network include the adaptive sampling matrix, the transposed matrix of the adaptive sampling matrix, and the convolution layer parameters in the reconstruction module.
[0079] Specifically, before applying the deep compressed sensing network to the image compressed sensing reconstruction method, the deep compressed sensing network can be pre-trained. The mean square error (MSE) can be used as the loss function of the network training to calculate the error between the image reconstruction results output by each submodule of the reconstruction module and the original image, as well as the error between the reconstructed image finally output by the reconstruction module (i.e., the image reconstruction result output by the last submodule) and the original image, and the error is back-propagated to update the neural network parameters until the error calculated by the loss function reaches the expected value, and the training of the neural network is terminated to obtain a trained deep compressed sensing network. It should be understood that the mean square error is a method of measuring the difference between the predicted value (reconstructed image) and the true value (original image). MSE calculates the square of the difference between the predicted value and the true value of each pixel, and then takes the average value of all pixels. The smaller this value is, the closer the reconstructed image is to the original image.
[0080] During network training, the neural network parameters that need to be updated include the adaptive sampling matrix , transpose matrix As well as the convolutional layer parameters in the reconstruction module, these parameters are updated according to back-propagation to make the error between the reconstructed image and the original image smaller.
[0081] It can be understood that the entire training process is an iterative optimization process. By continuously calculating errors, backpropagating, and updating parameters, the neural network can learn the mapping relationship from input to output, so that it can reconstruct the original image more accurately. At the same time, the global deep neural network is used for end-to-end training, eliminating the requirement for manual parameter fine-tuning and achieving efficient calculation.
[0082] Based on any of the above embodiments, the present invention provides a deep compressed sensing network, which includes a sampling module, an initialization module and a reconstruction module. First, the sampling module uses an adaptive sampling matrix to sample the original image block by block and obtain a measurement value; then, the measurement value is input into the initialization module to generate an initial estimate of the reconstructed image, and then the detail information of the reconstructed image is enhanced by the reconstruction module to obtain the final reconstructed image. The above-mentioned deep compression network can be used in an image compressed sensing reconstruction method, which specifically includes: Step 1, dividing the original image into non-overlapping blocks to obtain multiple image blocks; Step 2: If the width or height of the original image cannot be exactly divided by the block length, zero values are inserted at the edges of the original image to ensure that all image blocks have the same size. Step 3, for each image block, the data of the image block are connected head to tail in columns and converted into vector data; Step 4: Adaptive sampling matrix Multiply it with the vector data obtained in step 3 to sample the image block and obtain the measurement value of the image block , thereby completing the data compression; Step 5: Calculate the transposed matrix of the adaptive sampling matrix ; Step 6: Transpose the matrix Multiply by the image patch's measurement , get the initial reconstruction result of vector data; Step 7, segmenting the initial reconstruction result of the vector data according to the block length, and splicing them into reconstructed image blocks by column; Step 8, rejoining the reconstructed image blocks in the original division order to form an initial reconstructed image, thereby completing the initial reconstruction of the image; Step 9: If there is an operation of inserting zero values in the sampling module, delete these zero values at the corresponding edges of the stitched image to ensure that the initial reconstructed image The size is consistent with the original image size; Step 10: Set the accuracy threshold , the value is usually set between 0.00001 and 0.01, set the parameter is equal to 0; Step 11, construct 3 to 10 identical submodules in the reconstruction module to form a cascade, and each submodule completes the following steps 12 to 18, For the The image reconstruction result obtained by the output of each submodule; Step 12, calculate ,in, is the submodule number, It is The reconstructed image output by each submodule; Step 13, calculate ,in, is the identity matrix; Step 14: The convolutional neural network is fed into the multi-layer convolutional neural network, and the convolution result is connected with Add together and get ; Step 15, calculate ; Step 16, calculate ; Step 17: The convolutional neural network is fed into the multi-layer convolutional neural network, and the convolution result is connected with Add together and get ; Step 18, Calculate .
[0083] It should be noted that for deep compressed sensing networks, the mean square error can be used as the loss function for network training to calculate the intermediate reconstructed images of each submodule of the reconstruction module. The error between the original image and the reconstructed image is back-propagated to update the neural network parameters until the error calculated by the loss function reaches the expected value, and the training of the neural network is terminated. Here, the neural network parameters that need to be updated include the adaptive sampling matrix , transpose matrix and the convolutional layer parameters in the reconstruction module.
[0084] The embodiment of the present invention proposes a deep compressed sensing network, which is a new architecture based on optimization expansion for image compressed sensing, thereby producing high-quality image compressed sensing results. The method provided by the embodiment of the present invention can eliminate the need for manual parameter fine-tuning, and also eliminate block artifacts, thereby improving the efficiency and quality of image compressed sensing reconstruction.
[0085] Based on any of the above embodiments, Figure 4 is a schematic diagram of the structure of an image compression sensing reconstruction device based on a deep compression sensing network provided by the present invention, such as Figure 4 As shown, the deep compressed sensing network includes a sampling module, an initialization module and a reconstruction module, and the device includes: A sampling unit 410 is used to divide the original image into multiple image blocks based on the sampling module, and apply an adaptive sampling matrix to sample the multiple image blocks one by one to obtain a measurement value of each image block; An initialization unit 420, configured to perform initial reconstruction on the measurement values of each image block based on the initialization module to obtain an initial reconstructed image; A reconstruction unit 430, configured to optimize and reconstruct the initial reconstructed image based on the reconstruction module to obtain an image reconstruction result; The reconstruction module is composed of a plurality of identical submodules connected in cascade, and the image reconstruction result output by the previous submodule is used as the initial reconstructed image input by the next submodule. The steps of optimizing and reconstructing the initial reconstructed image by any submodule include: Determine a first intermediate reconstruction result based on the adaptive sampling matrix, the measurement values of each image block, the initial reconstructed image, and a gradient corresponding to the initial reconstructed image, wherein the gradient is used to characterize a difference between the initial reconstructed image and the original image; Determine a second intermediate reconstruction result based on the adaptive sampling matrix, the measurement values of each image block, and the weight of any submodule; An image reconstruction result output by any one of the submodules is determined based on the first intermediate reconstruction result and the second intermediate reconstruction result.
[0086] The device provided by the embodiment of the present invention can perform efficient compression sampling according to the specific content and characteristics of the image by adopting an adaptive sampling matrix to sample the original image block by block, thereby improving the efficiency and accuracy of sampling. The deep compressed sensing network combines the initialization module and the reconstruction module, obtains a preliminary image result through initial reconstruction, and then uses the reconstruction module to perform multiple rounds of optimization reconstruction on the initial result, which can gradually improve the quality of image reconstruction; moreover, the reconstruction module is composed of a plurality of identical submodules in cascade, and each submodule is optimized and reconstructed based on the output result of the previous submodule. This structure enables the deep compressed sensing network to gradually and finely adjust the image reconstruction result, thereby obtaining a higher quality reconstructed image. In addition, in the reconstruction stage, by embedding the optimization algorithm into the reconstruction module with a deep neural network, and using the adaptive sampling matrix, the measurement value of the image block, the gradient information and the weight information of the submodule to participate in the reconstruction process, it can not only optimize the details of the reconstructed image and restore the inter-block loss information, but also effectively eliminate the block artifacts, thereby improving the quality of the reconstructed image.
[0087] Based on any of the above embodiments, any submodule in the reconstruction module includes a first intermediate reconstruction subunit and a second intermediate reconstruction subunit, and the first intermediate reconstruction subunit is used to: Based on a preset accuracy threshold and the initial reconstructed image, determining a gradient corresponding to the initial reconstructed image; Determine a first intermediate result based on the adaptive sampling matrix, the measurement values of each image block, the initial reconstructed image, and the gradient; The first intermediate result is input into a multi-layer convolutional neural network to obtain a first convolution result, and the first convolution result is added to the first intermediate result through a residual connection to obtain the first intermediate reconstruction result.
[0088] Based on any of the above embodiments, the second intermediate reconstruction subunit is used for: Determine a second intermediate result based on the adaptive sampling matrix, the measurement values of each image block and the weight of any submodule; The second intermediate result is input into a multi-layer convolutional neural network to obtain a second convolution result, and the second convolution result is added to the second intermediate result through a residual connection to obtain the second intermediate reconstruction result.
[0089] Based on any of the above embodiments, the sampling unit 410 includes: A segmentation subunit, configured to segment the original image into a plurality of non-overlapping image blocks based on a preset block length; A splicing subunit, used for connecting the data of any image block head to tail in columns to obtain vector data of any image block; The measurement subunit is used to multiply the adaptive sampling matrix with the vector data of any image block to obtain the measurement value of any image block.
[0090] Based on any of the above embodiments, the adaptive sampling matrix is initially a submatrix of a unitary matrix, the number of columns of the adaptive sampling matrix is consistent with the length of the vector data of any of the image blocks, the number of rows of the adaptive sampling matrix is determined based on a preset compression rate and the number of columns, and the elements in the adaptive sampling matrix are updated based on joint learning of back propagation and reconstruction processes.
[0091] Based on any of the above embodiments, the segmentation subunit is specifically used for: When the size of the original image is not an integer multiple of the preset block length, inserting zero values at the edge of the original image to obtain a padded image; Based on the preset block length, dividing the padded image into a plurality of non-overlapping image blocks; Accordingly, the initialization unit 420 is further configured to: Based on the edge region in which the zero value is inserted in the original image, a target region corresponding to the edge region is determined in the initial reconstructed image, and the zero value of the target region is deleted.
[0092] Based on any of the above embodiments, the initialization unit 420 is specifically used for: Obtaining a transposed matrix of the adaptive sampling matrix, and multiplying the transposed matrix by the measured value of each image block to obtain an initial reconstruction result of each image block; Based on a preset block length, segmenting the initial reconstruction results of each image block, and splicing the segmented results by column to obtain a reconstructed image block of each image block; Based on the arrangement positions of the image blocks in the original image, the reconstructed image blocks are spliced to obtain the initial reconstructed image.
[0093] Based on any of the above embodiments, the loss function of the deep compressed sensing network is determined based on the difference between the image reconstruction result output by each submodule in the reconstruction module and the original image, and the difference between the image reconstruction result output by the reconstruction module and the original image; The parameters to be updated during the training of the deep compressed sensing network include the adaptive sampling matrix, the transposed matrix of the adaptive sampling matrix, and the convolution layer parameters in the reconstruction module.
[0094] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor (processor) 510, a communication interface (Communications Interface) 520, a memory (memory) 530 and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other through the communication bus 540. The processor 510 can call the logic instructions in the memory 530 to execute an image compression sensing reconstruction method based on a deep compression sensing network, wherein the deep compression sensing network includes a sampling module, an initialization module and a reconstruction module, and the method includes: based on the sampling module, dividing the original image into multiple image blocks, and applying an adaptive sampling matrix to sample the multiple image blocks block by block to obtain the measurement value of each image block; based on the initialization module, initially reconstructing the measurement value of each image block to obtain an initial reconstructed image; based on the reconstruction module, optimizing and reconstructing the initial reconstructed image to obtain an image reconstruction result; wherein the reconstruction module is composed of a plurality of identical sub-modules cascaded together. , the image reconstruction result output by the previous submodule is used as the initial reconstructed image input by the next submodule, and the step of optimizing and reconstructing the initial reconstructed image by any submodule includes: determining a first intermediate reconstruction result based on the adaptive sampling matrix, the measurement values of each image block, the initial reconstructed image and the gradient corresponding to the initial reconstructed image, wherein the gradient is used to characterize the difference between the initial reconstructed image and the original image; determining a second intermediate reconstruction result based on the adaptive sampling matrix, the measurement values of each image block and the weight of any submodule; and determining the image reconstruction result output by any submodule based on the first intermediate reconstruction result and the second intermediate reconstruction result.
[0095] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the relevant technology or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0096] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the image compression sensing reconstruction method based on the deep compression sensing network provided by the above methods. The deep compression sensing network includes a sampling module, an initialization module and a reconstruction module. The method includes: based on the sampling module, dividing the original image into multiple image blocks, and applying an adaptive sampling matrix to sample the multiple image blocks block by block to obtain a measurement value of each image block; based on the initialization module, initially reconstructing the measurement values of each image block to obtain an initial reconstructed image; based on the reconstruction module, optimizing and reconstructing the initial reconstructed image. to obtain an image reconstruction result; wherein, the reconstruction module is composed of a plurality of identical submodules in cascade, the image reconstruction result output by the previous submodule is used as the initial reconstructed image input by the next submodule, and the step of optimizing and reconstructing the initial reconstructed image by any submodule includes: determining a first intermediate reconstruction result based on the adaptive sampling matrix, the measurement values of each image block, the initial reconstructed image and the gradient corresponding to the initial reconstructed image, wherein the gradient is used to characterize the difference between the initial reconstructed image and the original image; determining a second intermediate reconstruction result based on the adaptive sampling matrix, the measurement values of each image block and the weight of any submodule; and determining the image reconstruction result output by any submodule based on the first intermediate reconstruction result and the second intermediate reconstruction result.
[0097] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the image compression sensing reconstruction method based on the deep compression sensing network provided by the above methods, wherein the deep compression sensing network includes a sampling module, an initialization module and a reconstruction module, and the method includes: based on the sampling module, dividing the original image into multiple image blocks, and applying an adaptive sampling matrix to sample the multiple image blocks block by block to obtain a measurement value of each image block; based on the initialization module, initially reconstructing the measurement values of each image block to obtain an initial reconstructed image; based on the reconstruction module, optimizing and reconstructing the initial reconstructed image to obtain an image reconstruction result; wherein, The reconstruction module is composed of a plurality of identical submodules connected in cascade, and the image reconstruction result output by the previous submodule is used as the initial reconstructed image input by the next submodule. The steps for any submodule to optimize and reconstruct the initial reconstructed image include: determining a first intermediate reconstruction result based on the adaptive sampling matrix, the measurement values of each image block, the initial reconstructed image and the gradient corresponding to the initial reconstructed image, wherein the gradient is used to characterize the difference between the initial reconstructed image and the original image; determining a second intermediate reconstruction result based on the adaptive sampling matrix, the measurement values of each image block and the weight of any submodule; and determining the image reconstruction result output by any submodule based on the first intermediate reconstruction result and the second intermediate reconstruction result.
[0098] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0099] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiment.
[0100] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An image compressed sensing reconstruction method based on a deep compressed sensing network, characterized in that: The deep compressed sensing network includes a sampling module, an initialization module and a reconstruction module, and the method includes: Based on the sampling module, the original image is divided into a plurality of image blocks, and the adaptive sampling matrix is applied to sample the plurality of image blocks one by one to obtain a measurement value of each image block; Based on the initialization module, initially reconstructing the measurement values of each image block to obtain an initial reconstructed image; Based on the reconstruction module, optimizing and reconstructing the initial reconstructed image to obtain an image reconstruction result; The reconstruction module is composed of a plurality of identical submodules connected in cascade, and the image reconstruction result output by the previous submodule is used as the initial reconstructed image input by the next submodule. The steps of optimizing and reconstructing the initial reconstructed image by any submodule include: Determine a first intermediate reconstruction result based on the adaptive sampling matrix, the measurement values of each image block, the initial reconstructed image, and a gradient corresponding to the initial reconstructed image, wherein the gradient is used to characterize a difference between the initial reconstructed image and the original image; Determine a second intermediate reconstruction result based on the adaptive sampling matrix, the measurement values of each image block, and the weight of any submodule; An image reconstruction result output by any one of the submodules is determined based on the first intermediate reconstruction result and the second intermediate reconstruction result.
2. The image compression sensing reconstruction method based on deep compression sensing network according to claim 1 is characterized in that: The determining a first intermediate reconstruction result based on the adaptive sampling matrix, the measurement values of each image block, the initial reconstructed image, and a gradient corresponding to the initial reconstructed image includes: Based on a preset accuracy threshold and the initial reconstructed image, determining a gradient corresponding to the initial reconstructed image; Determine a first intermediate result based on the adaptive sampling matrix, the measurement values of each image block, the initial reconstructed image, and the gradient; The first intermediate result is input into a multi-layer convolutional neural network to obtain a first convolution result, and the first convolution result is added to the first intermediate result through a residual connection to obtain the first intermediate reconstruction result.
3. The image compression sensing reconstruction method based on deep compression sensing network according to claim 1 is characterized in that: The determining a second intermediate reconstruction result based on the adaptive sampling matrix, the measurement values of each image block and the weight of any submodule comprises: Determine a second intermediate result based on the adaptive sampling matrix, the measurement values of each image block and the weight of any submodule; The second intermediate result is input into a multi-layer convolutional neural network to obtain a second convolution result, and the second convolution result is added to the second intermediate result through a residual connection to obtain the second intermediate reconstruction result.
4. The image compression sensing reconstruction method based on deep compression sensing network according to claim 1 is characterized in that: The method of dividing the original image into a plurality of image blocks and applying an adaptive sampling matrix to sample the plurality of image blocks one by one to obtain a measurement value of each image block includes: Based on a preset block length, dividing the original image into a plurality of non-overlapping image blocks; Connect the data of any image block head to tail in columns to obtain vector data of any image block; The adaptive sampling matrix is multiplied by the vector data of any image block to obtain a measurement value of any image block.
5. The image compression sensing reconstruction method based on deep compression sensing network according to claim 4 is characterized in that: The adaptive sampling matrix is initially a submatrix of a unitary matrix, the number of columns of the adaptive sampling matrix is consistent with the length of the vector data of any image block, the number of rows of the adaptive sampling matrix is determined based on a preset compression rate and the number of columns, and the elements in the adaptive sampling matrix are updated based on joint learning of back propagation and reconstruction processes.
6. The image compression sensing reconstruction method based on deep compression sensing network according to claim 4 is characterized in that: The step of dividing the original image into a plurality of non-overlapping image blocks based on a preset block length includes: When the size of the original image is not an integer multiple of the preset block length, inserting zero values at the edge of the original image to obtain a padded image; Based on the preset block length, dividing the padded image into a plurality of non-overlapping image blocks; Accordingly, the measurement values of each image block are initially reconstructed to obtain an initial reconstructed image, and then the method further includes: Based on the edge region in which the zero value is inserted in the original image, a target region corresponding to the edge region is determined in the initial reconstructed image, and the zero value of the target region is deleted.
7. The image compressed sensing reconstruction method based on a deep compressed sensing network according to any one of claims 1 to 6, characterized in that: The initially reconstructing the measured values of each image block to obtain an initial reconstructed image includes: Obtaining a transposed matrix of the adaptive sampling matrix, and multiplying the transposed matrix by the measured value of each image block to obtain an initial reconstruction result of each image block; Based on a preset block length, segmenting the initial reconstruction results of each image block, and splicing the segmented results by column to obtain a reconstructed image block of each image block; Based on the arrangement positions of the image blocks in the original image, the reconstructed image blocks are spliced to obtain the initial reconstructed image.
8. The image compressed sensing reconstruction method based on deep compressed sensing network according to any one of claims 1 to 6, characterized in that: The loss function of the deep compressed sensing network is determined based on the difference between the image reconstruction result output by each submodule in the reconstruction module and the original image, and the difference between the image reconstruction result output by the reconstruction module and the original image; The parameters to be updated during the training of the deep compressed sensing network include the adaptive sampling matrix, the transposed matrix of the adaptive sampling matrix, and the convolution layer parameters in the reconstruction module.
9. An image compression sensing reconstruction device based on a deep compression sensing network, characterized in that: The deep compressed sensing network includes a sampling module, an initialization module and a reconstruction module, and the device includes: A sampling unit, configured to divide the original image into a plurality of image blocks based on the sampling module, and apply an adaptive sampling matrix to sample the plurality of image blocks one by one to obtain a measurement value of each image block; An initialization unit, configured to perform initial reconstruction on the measurement values of each image block based on the initialization module to obtain an initial reconstructed image; A reconstruction unit, configured to optimize and reconstruct the initial reconstructed image based on the reconstruction module to obtain an image reconstruction result; The reconstruction module is composed of a plurality of identical submodules connected in cascade, and the image reconstruction result output by the previous submodule is used as the initial reconstructed image input by the next submodule. The steps of optimizing and reconstructing the initial reconstructed image by any submodule include: Determine a first intermediate reconstruction result based on the adaptive sampling matrix, the measurement values of each image block, the initial reconstructed image, and a gradient corresponding to the initial reconstructed image, wherein the gradient is used to characterize a difference between the initial reconstructed image and the original image; Determine a second intermediate reconstruction result based on the adaptive sampling matrix, the measurement values of each image block, and the weight of any submodule; An image reconstruction result output by any one of the submodules is determined based on the first intermediate reconstruction result and the second intermediate reconstruction result.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the image compressed sensing reconstruction method based on the deep compressed sensing network as described in any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Compressed sensing sampling reconstruction method and system based on linear sampling network and generative adversarial residual network
CN112116601A
Image compressed sensing method and device, electronic equipment and storage medium
CN112509073A
Optical rotation domain multi-image encryption method based on compressed sensing and deep learning
CN113285797A
Learnable extrapolation for deep learning-based medical image reconstruction
US20220114771A1
Convolution and transformer based compressive sensing
US20240153161A1
Cited By
Image depth compressed sensing method and system oriented to multi-level privacy protection
CN121357293A
