Image denoising method based on convolutional dictionary learning and deep expansion
By combining convolutional dictionary learning and deep expansion in the image denoising method, we design an implicit prior dictionary learning model and a deep expansion framework, which solves the shortcomings of dictionary learning in the existing technology in terms of performance and interpretability, and achieves High performance and flexible image denoising effect, suitable for a variety of image processing tasks.
Patent Information
- Application Number
- CN202410564221.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-08-23
AI Technical Summary
Existing image denoising methods have shortcomings in performance and interpretability. In particular, deep expansion based on dictionary learning has not received enough attention. How to combine dictionary learning and deep expansion to improve network denoising performance is a problem that has not been well solved. problem.
An image denoising method based on convolutional dictionary learning and depth expansion is proposed, a universal dictionary learning model with implicit priors is designed, and a corresponding depth expansion framework is constructed to promote the dictionary to a convolutional layer and learn the dictionary first through data. Based on the experience, the expansion network is constructed based on the relevant theories of deep learning, and the alternating direction multiplier method and backpropagation are used to update the variables to achieve implicit updating of the dictionary and rich learning of features.
It achieves image denoising with high performance, interpretability and flexibility, can effectively handle denoising problems of different noise levels, surpasses the performance of traditional methods, and is suitable for fields such as medical imaging, satellite images, and surveillance security.
Smart Images

Figure CN118537569A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of image denoising in computer vision, and in particular relates to an image denoising method based on convolution dictionary and depth expansion. Background Art
[0002] As an important method for extracting features from high-dimensional data, sparse representation and dictionary learning have been widely used in various fields such as image processing and machine learning, such as image classification, image super-resolution reconstruction, and image denoising. In the field of denoising, dictionary learning has become a classic image denoising method by providing effective prior information to achieve the transformation from noisy images to clear images. However, traditional image dictionary learning is based on image blocks and lacks translation invariance. To solve this problem, convolutional dictionary learning replaces matrix product operations with convolution operations, which is significantly better than traditional dictionary learning in image denoising. It is worth noting that both traditional dictionary learning and convolutional dictionary learning are model-based methods that establish clear mathematical models for specific tasks.
[0003] In recent years, deep neural networks have achieved better results than traditional model-based methods in many image processing tasks. Driven by a large amount of data, deep neural networks can learn the deep structural information of images. However, the performance of deep neural network models usually depends on a large amount of high-quality data, and the neural network structure usually lacks interpretability, which brings challenges to the design and selection of network structure. Deep unfolding is a technology proposed in recent years that combines deep neural networks with traditional model-based methods. By unfolding traditional methods into deep neural networks, it effectively overcomes the shortcomings of traditional model-based methods in performance, and also solves the limitations of deep learning methods in interpretability. Since its proposal, it has received widespread attention. However, deep unfolding based on dictionary learning has not received enough attention. How to combine dictionary learning and deep unfolding to further improve the network denoising performance is still a problem that has not been well solved.
[0004] In order to solve the above problems, the present invention proposes an image denoising method based on convolutional dictionary learning and deep expansion. By proposing a general dictionary learning model with implicit prior and a corresponding deep expansion framework, the dictionary is generalized to a convolutional layer, and the dictionary prior is learned by data, thereby further improving the image denoising performance while ensuring the interpretability of the model. Summary of the invention
[0005] The technical problem to be solved by the present invention is: to overcome the shortcomings of existing image denoising methods, and to propose an image denoising method based on convolutional dictionary learning and deep expansion. By designing a general dictionary learning model with implicit priors and constructing a corresponding deep expansion framework to solve this model, image denoising with high performance, interpretability and flexibility is achieved.
[0006] The technical solution adopted by the present invention is: an image denoising method based on convolutional dictionary learning and deep expansion, comprising:
[0007] Step 1: construct a noise image based on a clear image, and form a sample pair with the corresponding clear image, and then divide the sample pair into a training set and a test set;
[0008] Step 2: Design a dictionary learning model with implicit priors and use the corresponding optimization algorithm to solve the model;
[0009] Step 3: Based on the optimization solution in step 2, a corresponding deep expansion network is constructed in combination with relevant deep learning theories;
[0010] Step 4: Use the training set obtained in step 1 to train the expanded network determined in step 3 to obtain a trained network model;
[0011] Step 5: Use the test set obtained in step 1 to test the network model trained in step 4 to obtain the image denoising result;
[0012] In the above step 1, a noise image is constructed based on a clear image, and a sample pair consisting of the noise image and the corresponding clear image is formed, and then the sample pair is divided into a training set and a test set, including:
[0013] Constructing a noisy image is achieved by adding noise to the clear image, as shown in the following degradation model:
[0014] Y=Y gt +n
[0015] Among them, Y represents the noise image, Y gt represents a clear image, and n represents additive Gaussian noise with a mean of zero and a standard deviation of σ. In this method, σ is set to a random number between 15 and 50.
[0016] The design described in step 2 above has an implicit prior dictionary learning model, and uses a corresponding optimization algorithm to solve this model design, including:
[0017] The implicit prior dictionary learning model is:
[0018]
[0019] Y and D represent the training signal and the dictionary to be learned, respectively, while X is the representation coefficient of Y relative to the dictionary D, and λ is the penalty parameter. The first term is the reconstruction error, where represents the Frobenius norm. The second term represents the regularization function, reflecting the sparsity of the representation coefficients. The advantage of the model designed in this method over the existing dictionary learning methods is that most dictionary learning methods use specific functions as the regularization term of the model, which limits the generalization ability of the model, while the model in this method does not explicitly define the regularization term and learns the image prior through a neural network, so it has stronger generalization ability.
[0020] In order to decouple the optimization variables in the reconstruction term and the regularization term, an auxiliary variable Z is introduced, and the above dictionary learning model is reformulated as:
[0021]
[0022] stX=Z.
[0023] The augmented Lagrangian function corresponding to the above problem is:
[0024]
[0025] where μ is the Lagrange multiplier and ρ is the penalty parameter. To make the following formulas more concise, we assume Based on the alternating direction multiplier method framework, the original problem can be solved by alternatingly updating the variables X, D, Z, and β, namely:
[0026]
[0027]
[0028]
[0029] Update β :β←β+η(XZ).
[0030] where η is the update rate of the Lagrange multipliers.
[0031] Next, based on ADMM, the above four variables are updated in combination with the requirements of depth expansion. In the kth iteration, the variables X, D, Z and β are updated as follows.
[0032] (1) Update X: Due to the subproblem Update X It is differentiable, and the variable X can be updated by gradient descent:
[0033]
[0034] Among them, αk is the step length.
[0035] (2) Update D: In order to make full use of the learning ability of the neural network, this paper generalizes the dictionary D to a convolutional layer, that is, the dictionary is no longer calculated as a matrix, but the convolutional layer in the neural network is used. Replace D and transform the learning of dictionary D into the learning of the weights of the convolution kernel in the convolution layer. At this time, the representation coefficient X can be regarded as the feature map of the signal. Similarly, the transposition of dictionary D is generalized to the transposed convolution layer The transpose of D is used as the convolution kernel. In this way, the dictionary D can be implicitly updated through back propagation, and the learned dictionary has shift invariance that traditional dictionaries do not have. After the dictionary is generalized through the convolution layer, the formula for updating X can be rewritten as:
[0036]
[0037] (3) Update Z: Update the variable Z to learn the prior features representing the coefficients Researchers often use The sparse prior is learned by using the norm, but the learned prior features are too single. In order to learn richer features, this paper will use a denoising neural network module to replace the operator, so that the representation coefficients can learn richer prior features, not just sparse priors.
[0038] (4) Update β: To improve the flexibility of the model, we update the single learning parameter η in the update formula of β k Generalized to three independent learning parameters By back-propagation update, the generalized update formula is as follows:
[0039]
[0040] The above step 3 uses a corresponding optimization algorithm for the model established in step 2, and determines the depth of the network based on the algorithm, including:
[0041] The proposed method constructs an unfolded network based on the alternating direction multiplier method. Each iteration of the iterative algorithm is regarded as a stage of the proposed unfolded network, and the main structure of the proposed network consists of K repeated stages. Each stage includes three interrelated modules: Convolution Dictionary Reconstruction (CDR) module, Interstage Information Fusion Transformer (IIFT) module and Lagrangian Multipliers Update (LMU) module. These three modules correspond to the updates of X, Z and β in the three sub-problems respectively.
[0042] (1) At the beginning of the expanded network, we use the head network (HNet) to implement the noise image Y and the noise level σ to the initial feature map X 0 HNet consists of 2 convolutional layers with ReLU activation. In addition, in order to improve the adaptability to different noise levels, we use a hyperparameter network (HypaNet) to learn hyperparameters that are adaptive to the noise level. HypaNet consists of 2 convolutional layers (kernel size is 1) and a softPlus layer that smoothly approximates the ReLU function. Its input is the noise level of the noisy image Y, and its output is the hyperparameters in the three sub-problems, namely In the final part of the unfolded network, the results of the K repeated stages are used as the input of the CDR module to obtain the final feature map, and the final feature map is passed through the convolutional layer of the Kth stage to reconstruct a clear image.
[0043] (2) CDR module: The update of X and D is realized through the CDR module, which is designed based on the update formula of X, namely:
[0044]
[0045] The output of this module is X k , and the input is the previous stage Where W, H, and C are the length, width, and number of channels of the variable, respectively. In this method, we set C = 16 to obtain deep features.
[0046] (3) IIFT module: This method regards the update of Z as a denoising problem and develops the IIFT module to solve it. The main body of IIFT is the encoder-decoder structure. The encoder and decoder consist of three downsampling modules and three upsampling modules, respectively. The noise level σ is replicated and expanded to a tensor with the same dimension as Xk This method uses Xk and The concatenated values in the channel dimension are used as the input of IIFT, which can improve the adaptability of the network to the noise level. Then a convolutional layer with a kernel size of 3 is used to convert the input channels from 17 to 16, and a channel attention block (CAB) is used for feature enhancement. For the kth (k>1) stage, we use the output of the previous stage as the input of the supervised attention module (SAM) to obtain the attention map denoted as S k-1 , then S k-1 The output values of the channel attention blocks are used as the input of the subspace attention module (SSA), and the output is used as the input value of the encoder, namely the three downsampling modules.
[0047] Each of the three downsampling modules consists of a downsampling convolution layer, an inter-stage feature fusion module (ISFF) and a Transformer module. The ISFF module is designed to fuse cross-level information and reduce the loss of inter-level information. It can fuse the encoder and decoder features obtained in the previous stage. ISFF can be expressed as the following formula:
[0048]
[0049] Among them, Conv i (i=1, 2, 3, ...) represents convolution operation, ⊙ represents element-by-element multiplication, Represents the input feature map of ISFF at the current stage. and They represent the encoder features and decoder features of the k-1th stage in the nth (n=0, 1, 2) iteration respectively. The output of ISFF Injected into the Transformer module.
[0050] The Transformer module is composed of a Multi-Dconv head Transposed Attention module (MDTA) and a Gated-Dconv Feed-forward Network (GDFN) module. MDTA can be expressed as the following formula:
[0051]
[0052] Attention(Q,K,V)=V·Softmax(K⊙Q / α),
[0053] Where Q represents the query vector, K represents the key-value vector, and V represents the projection of the numerical vector, all of which are generated by the input feature F, that is, is point-wise convolution, It is a 3×3 depth convolution to enhance local features. represents the convolutional layer that obtains the query vector, key-value vector, and projection of the numeric vector. α is a learned parameter that constrains the element-wise multiplication to ensure stability. It is a feature map output by generating a global attention map across channels, which contains rich contextual information. Input into GDFN to learn the local structure information of the feature map.
[0054] GDFN can be expressed as the following formula:
[0055]
[0056]
[0057] Where GELU(·) is the nonlinear activation layer and LN(·) is the layer normalization. is the output feature map of GDFN.
[0058] The MDTA in the Transformer module focuses on the extraction of global features, while the GDFN aims to obtain local information of spatially adjacent pixels. Therefore, the Transformer module can obtain an output feature map with global information and local structure from the input feature map. The three upsampling blocks that constitute the decoder are composed of an upsampling convolutional layer and a Transformer module respectively. It is worth pointing out that the corresponding upsampling module and downsampling module have the same scale.
[0059] (4) LMU module: The LMU module is used to update the Lagrange multiplier β. Its input is given by the CDR module and the IIFT module. It only contains simple addition and subtraction operations. In order to improve the flexibility of the model, we multiply each input variable by a single learning parameter. The output of the LMU module is defined as:
[0060]
[0061] Where β k is the Lagrange multiplier of the kth stage, Obtained from HypaNet.
[0062] The above step 4 uses the training set obtained in step 1 to train the expanded network determined in step 3 to obtain a trained network model, including:
[0063] Will l 1 The average loss is used as the loss function, which is defined as follows:
[0064]
[0065] Where Γ represents the training set, Y gt represents the true value image, that is, the clear image, represents the clear image estimate obtained by the network from the noisy image Y, is the network parameter.
[0066] The network model trained in step 4 is tested using the test set obtained in step 1 in step 5 to obtain the denoising result, including:
[0067] The trained model parameters are loaded into the network model, and the noisy image in the test set is used as input to obtain the estimated value of the clear image. The denoising performance is measured by calculating the gap between the clear image and its estimated value.
[0068] The beneficial effects of the present invention are:
[0069] A novel image denoising method based on convolutional dictionary and deep unfolding is proposed. By proposing a general model of dictionary learning and its corresponding unfolding network, the dictionary is generalized to a convolutional layer and the prior is learned from the data. This solves the poor performance problem of denoising methods based on traditional dictionary learning and fully explores the potential of dictionary learning. While ensuring computational efficiency and performance, it can flexibly solve denoising problems with different noise levels in an interpretable way. It can be applied to medical imaging, satellite imaging, surveillance security and other fields. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 It is a flow chart of the present invention.
[0071] Figure 2 It is a schematic diagram of the expanded network structure of the present invention.
[0072] Figure 3 The present invention is a structural diagram of the IIFT module in the network.
[0073] Figure 4 The present invention is a structural diagram of a CDR module in an expanded network.
[0074] Figure 5 This is the result diagram of the network deployed in the present invention in the color image denoising task.
[0075] Figure 6 This is the result diagram of the grayscale image denoising task when the network is expanded in the present invention. DETAILED DESCRIPTION
[0076] The present invention is described in detail below in conjunction with the accompanying drawings and specific implementation methods. The following embodiments are used to illustrate the present invention but are not used to limit the protection scope of the present invention.
[0077] Embodiment 1:
[0078] like Figure 1 As shown, the specific implementation steps are as follows:
[0079] In step 1 of the example, we use the combination of the datasets BSD400, DIV2K, and WED and the corresponding additive Gaussian white noise images as the training set. The datasets BSD400, DIV2K, and WED consist of 400, 1000, and 4744 clear images, respectively, which can fully train our model. We use the color image database CBSD68 as the test set. This dataset is widely used as a test set for image denoising algorithms and includes 68 color images.
[0080] Step 2: Design a dictionary learning model with implicit priors and use the corresponding optimization algorithm to solve the model;
[0081] Step 3: Based on the optimization solution in step 2, we combine the deep learning related theories to build the corresponding deep expansion network:
[0082] The overall result of expanding the network is as follows Figure 2 As shown, the structural diagrams of the IIFT module and the CDR module are respectively as shown in Figure 3 , Figure 4 shown.
[0083] In step 4 of the example, the network is trained using the data in the training set to obtain the network model:
[0084] Small blocks with a pixel size of 128×128 are randomly extracted from the clear image and noisy image pairs in the training set as training data, and the Adam algorithm is used to optimize the network parameters.
[0085] In example step 5, the trained network is used to reconstruct the corresponding clear image estimation map for the noisy image in the test set.
[0086] To demonstrate the effectiveness of this method, we compared it with three classic deep learning methods, two deep unfolding methods, and one state-of-the-art model under the same experimental setting. Classic deep learning methods include: Denoising Convolutional Neural Network (DnCNN), Fast and Flexible Denoising Convolutional Neural Network (FFDNet), and Batch Renormalization Denoising Network (BRDNet). Deep unfolding methods include: Deep Convolutional Dictionary Learning (DCDicL) and Deep Generalized Unfolding Network (DGUNet). The state-of-the-art model is Restormer. The clear image estimation obtained by denoising each method is shown in the figure below. Figure 5To measure the performance of different methods, we calculate the peak signal ratio (PSNR) and structural similarity (SSIM) between the clear image and its estimated value when the noise level is 15, 25, and 50. SSIM and PSNR are indicators used to measure the degree of image distortion of the denoised image. The larger the value, the smaller the image distortion.
[0087] It can be seen from the above results that the method of the present invention is significantly superior to other algorithms, especially the classic deep learning method. Even compared with the most advanced model (Restormer), the method of the present invention still has a lead of 0.14dB in PSNR, which proves that the method of the present invention has outstanding denoising performance on the color database.
[0088] Table 1 Denoising results of different methods on color image database.
[0089]
[0090] Embodiment 2:
[0091] This example uses the grayscale image dataset BSD68 as the test set for denoising experiments. The other steps are the same as Example 1. The denoising results of different methods are shown in Table 2. The clear image estimation obtained by denoising the grayscale image dataset by each method is shown in Figure 6 shown.
[0092] Table 2 Denoising results of different methods on grayscale image database.
[0093]
[0094] From the two performance indicators of denoising, the proposed method achieves the best results in terms of PSNR, while Restormer outperforms our method in terms of SSIM. However, the number of training parameters of Restormer is several times that of the model proposed by this method. In general, on the grayscale image database, our proposed method achieves a balance between performance and parameter quantity.
Claims
1. An image denoising method based on convolutional dictionary learning and deep expansion, It is characterized in that The steps include: Step 1: construct a noise image based on a clear image, and form a sample pair with the corresponding clear image, and then divide the sample pair into a training set and a test set; Step 2: Design a dictionary learning model with implicit priors and use the corresponding optimization algorithm to solve the model; Step 3: Based on the optimization solution in step 2, a corresponding deep expansion network is constructed in combination with relevant deep learning theories; Step 4: Use the training set obtained in step 1 to train the expanded network determined in step 3 to obtain a trained network model; Step 5: Use the test set obtained in step 1 to test the network model trained in step 4 to obtain the image denoising result.
2. The image denoising method based on convolutional dictionary learning and deep expansion according to claim 1, It is characterized in that The step 1 constructs a noise image based on a clear image, and forms a sample pair with the corresponding clear image, and then divides the sample pair into a training set and a test set, including: Constructing a noisy image is achieved by adding noise to the clear image, as shown in the following degradation model: Y=Y gt +n Among them, Y represents the noise image, Y gt represents a clear image, n represents additive Gaussian noise with a mean of zero and a standard deviation of σ. In this method, σ is set to a random number between 15 and 50.
3. The image denoising method based on convolutional dictionary learning and deep expansion according to claim 1, It is characterized in that In step 2, a dictionary learning model with implicit priors is designed, and a corresponding optimization algorithm is used to solve the model, including: The implicit prior dictionary learning model is: Y and D represent the training signal and the dictionary to be learned, respectively, while X is the representation coefficient of Y relative to the dictionary D, and λ is the penalty parameter; the first term is the reconstruction error, where represents the Frobenius norm; the second term represents the regularization function, which reflects the sparsity of the representation coefficient. In order to decouple the optimization variables in the reconstruction term and the regularization term, an auxiliary variable Z is introduced, and the above dictionary learning model is restated as: stX=Z. The augmented Lagrangian function corresponding to the above problem is: where μ is the Lagrange multiplier and ρ is the penalty parameter; to make the following formulas more concise, we assume Based on the alternating direction multiplier method framework, the original problem can be solved by alternatingly updating the variables X, D, Z, and β, namely: Update β :β←β+η(X-Z). where η is the update rate of the Lagrange multipliers.
4. The image denoising method based on convolutional dictionary learning and deep expansion according to claim 1, It is characterized in that In step 3, a corresponding solution algorithm is constructed for the optimization problem established in step 2, and a depth expansion network is determined based on the algorithm, including: Each iteration of the iterative algorithm is regarded as a stage of the proposed unfolded network. The main structure of the proposed network consists of K repeated stages, each of which includes three interrelated modules: Convolution Dictionary Reconstruction (CDR) module, Interstage Information Fusion Transformer (IIFT) module and Lagrangian Multipliers Update (LMU) module, which correspond to the updates of X, Z and β in the three sub-problems respectively; At the beginning of the unrolled network, we use the head network (HNet) to implement the noisy image Y and the noise level σ to the initial feature map X 0 The HNet consists of two convolutional layers with ReLU activation. In addition, in order to improve the adaptability to different noise levels, we use a hyperparameter network (HypaNet) to learn hyperparameters that are adaptive to the noise level. HypaNet consists of two convolutional layers (kernel size is 1) and a softPlus layer that smoothly approximates the ReLU function. Its input is the noise level of the noise image Y, and its output is the hyperparameters in the three sub-problems, namely In the last part of the unfolded network, the results of the K repeated stages are used as the input of the CDR module to obtain the final feature map, and the final feature map is passed through the convolutional layer of the Kth stage to reconstruct a clear image; CDR module: The update of X and D is realized through the CDR module, which is designed based on the update formula of X, namely: The output of this module is X k , and the input is the previous stage Where W, H, and C are the length, width, and number of channels of the variable, respectively; in this method, we set C = 16 to obtain deep features; IIFT module: This method regards the update of Z as a denoising problem and develops the IIFT module to solve it. The main body of IIFT is an encoder-decoder structure, where the encoder and decoder are composed of three downsampling modules and three upsampling modules respectively. The noise level α is replicated and expanded to be the same as X. k Tensors with the same dimension This method uses Xk and The concatenated values in the channel dimension are used as the input of IIFT. This approach can improve the adaptability of the network to the noise level. LMU module: The LMU module is used to update the Lagrange multiplier β. Its input is given by the CDR module and the IIFT module. It only contains simple addition and subtraction operations. In order to improve the flexibility of the model, we multiply each input variable by a single learning parameter. The output of the LMU module is defined as: Where β k is the Lagrange multiplier of the kth stage, Obtained from HypaNet.
5. The image denoising method based on convolutional dictionary learning and deep expansion according to claim 1, It is characterized in that In step 4, use The average loss of is used as the loss function.
Citation Information
Cited By
Night image halo removing method
CN120634898A
A method for removing night image halo
CN120634898B
Flip chip ultrasonic signal denoising method and system based on adaptive DUN
CN120804528A
Flip chip ultrasonic signal denoising method and system based on adaptive DUN
CN120804528B
Colorectal cancer diagnosis method based on multi-granularity cascade perception
CN121747106A
