Image denoising method based on deep learning

By improving the Unet network structure and combining dense residual and adversarial discrimination networks, the problems of blurring and detail loss during image denoising are solved, efficient denoising on RAW images is achieved, and the blurring of the denoised image is reduced. Allows manual control of denoising intensity.

CN118628382APending Publication Date: 2024-09-10HEFEI JUNZHENG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310238991.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-08
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the existing technology, image denoising methods based on deep learning can easily cause image blur during the denoising process. Especially when the noise is strong, image details cannot be effectively preserved, and the degree of denoising cannot be manually controlled.

Method used

Adopt a neural network based on adversarial learning, improve the Unet network structure, use a dense residual structure and spatial channel attention mechanism, combined with a multi-scale adversarial discriminant network, build a generator and a discriminator, and reduce the blur of the denoised image through iterative training. and preserve image details.

Benefits of technology

It effectively reduces the blur of the denoised image, retains image details, and allows manual control of the intensity of denoising, reducing information loss through adversarial networks and attention mechanisms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628382A
    Figure CN118628382A
Patent Text Reader

Abstract

The invention provides an image denoising method based on deep learning, and the method comprises a neural network based on adversarial learning, and the network comprises the steps: inputting a noise image, outputting the noise image through a generator, generating a false clean image, and inputting the false clean image and a real clean image into a discriminator together; the method further comprises the following steps: S1, improving a generator on the basis of a Unet network structure; for the generator, using a dense residual block and a module combining space and channel attention to extract information of different scales; s2, for a discriminator, a multi-scale adversarial discrimination network PATCHGAN is used; according to the network structure, convolution output passing through each layer is stored and used for calculating loss, the process is represented by a formula (1), and out is the final output of the network: out = concat (conv1, conv2, conv3, conv4) (1); s3, after the generator and the discriminator are constructed, the number of iterations is set to be 10000, the learning rate of the generator is set to be 10 <-4 >, and the learning rate of the discriminator is set to be 2 * 10 <-4 >; during training, the generator is iterated once, then the discriminator is iterated once, and the iteration training is cycled in this way.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of image denoising, and in particular relates to an image denoising method based on deep learning. Background Art

[0002] In recent years, with the rapid development of science and technology, image processing technology has become more mature. In the existing technology, due to the lack of light or occlusion of a large number of camera devices, the captured images often contain noise to varying degrees. Especially at night, the images captured by photographers using various camera devices contain large noise. Especially when the light in the environment is darker, the noise of the image is greater, resulting in the photographer being unable to use these images with very large noise.

[0003] At present, a large number of denoising research methods are based on traditional methods, such as mean filtering, bilateral filtering, principal component analysis and other methods. The mean filtering method requires a template with a fixed step size, and then uses the template to slide the image and calculate the average value of the pixels in the template. Finally, the average value is used to replace the central pixel value of the template. This method destroys the image details and makes the image blurred. The principal component analysis method is superior to the mean filtering method. This method extracts the characteristics of wavelet coefficients through principal component analysis, and then uses wavelet transform to estimate and remove noise energy, and finally reconstructs the image by inverse transforming the wavelet coefficients. These denoising methods cause image details to be lost or the image to be blurred while denoising. In addition, the degree of denoising cannot be manually controlled. In this way, after the original raw image is processed by ISP, the blurring degree of the area with strong noise will be higher, resulting in low image quality. At present, there are also a large number of denoising studies based on deep learning methods, such as DNCNN (deep convolution denoising).

[0004] However, most of these deep learning methods are based on RGB images and use end-to-end network structures such as Unet structures. Therefore, they inevitably have the following problems:

[0005] 1. After the original image is processed by ISP, the original noise contained in the image is changed through interpolation and other operations, resulting in the inability to correctly model the noise subsequently.

[0006] 2. Building and training a network end-to-end based on deep learning will cause the denoised image to become blurred, especially when the noise is strong, the denoised image will be severely blurred.

[0007] Common technical terms in the prior art:

[0008] ISP: The full name is Image Signal Processing, which processes the original image obtained by the camera device through some methods to obtain a high-quality color image.

[0009] Principal component analysis: Perform matrix decomposition on the image to obtain the vector or matrix that contains the most information in the image.

[0010] Unet: A network structure consisting of downsampling and upsampling in deep learning.

[0011] Multi-scale features: images of different widths and heights. Summary of the invention

[0012] In order to solve the above problems, the purpose of this application is to solve the problem of image blurring after end-to-end network denoising. In addition, denoising is performed on RAW images. Compared with RGB-based denoising, it reduces detail loss and the denoising intensity can be manually controlled.

[0013] Specifically, the present invention provides an image denoising method based on deep learning, the method comprising a neural network based on adversarial learning, the network comprising: a noise image input, output through a generator, generating a false clean image, and inputting it into a discriminator together with a real clean image; the method further comprises the following steps:

[0014] S1: The generator is improved based on the Unet network structure, that is, the ordinary convolution structure is replaced by a dense residual structure, which is composed of three convolutions conv1, conv2, and conv3 with different numbers of output channels. The number of channels set for conv1, conv2, and conv3 are 1 / 2, 3 / 2, and 3 of the original input channels, respectively, and the convolution kernel kernel_size is 3;

[0015] The generator uses a dense residual block and a module combining the spatial attention mechanism and the channel attention mechanism to extract information of different scales, wherein the sigmoid in the channel attention mechanism module is the activation function, and the feature input by the spatial attention mechanism module through the channel attention mechanism module is F1, and the combined feature output is F out , as shown in the formula:

[0016] F out =spatial_block(channel_block(F1));

[0017] S2: For the discriminator, a multi-scale adversarial discriminator network PATCHGAN is used; the structure of the network PATCHGAN is as follows: the convolution output of each layer is saved for calculating the loss. The whole process is expressed as formula (1), and out is the final output of the network:

[0018] out=concat(conv1,conv2,conv3,conv4) (1);

[0019] S3: After constructing the generator and discriminator, set the number of iterations to 10000, the generator learning rate to 10-4, and the discriminator learning rate to 2*10-4; during training, the generator is iterated once, then the discriminator is iterated once, and the training is repeated in this iterative cycle.

[0020] The dense residual structure described in step S1 further includes: the original input feature map enters Conv1, Kernel_size=3 and the output is recorded as output 1; its output 1 is cascaded with the original input feature map, and the output is recorded as output 2; its output 2, and its output 2 are used as input to enter Conv2, Kernel_size=3 and the output is recorded as output 3, and the original input feature map is used as input to perform feature map cascade, and the output is recorded as output 4; its output 4 is used as input to enter Conv3, Kernel_size=3, and the final feature map is output.

[0021] The channel attention mechanism module channel_block in step S1 further includes: after Maxpooling and avepooling, the two inputs are added, entering Conv1, Kernel_size=1, then entering Conv2, Kernel_size=1, and then performing sigmoid activation function processing, and its sigmoid function output is multiplied by the input feature map F1.

[0022] The spatial attention mechanism module spatial_block in step S1 further includes: entering Conv1, Kernel_size=1, then entering Conv2, Kernel_size=1, and then performing sigmoid activation function processing, and its sigmoid function output is multiplied by the two inputs of the output feature map of the channel attention mechanism module.

[0023] The network structure described in step S2 further includes: a real clean image and a fake clean image generated by a generator are used as inputs of the model; enter conv1, and the output is recorded as output a; output a is input into conv2, and the output is recorded as output b; output b is input into conv3, and the output is recorded as output c; output c conv4, and the output is recorded as output d; output a, output b, output c, and output d are used for feature collection.

[0024] Therefore, the advantages of the present application are: the method of the present application is simple, and the adversarial network is used for deblurring in the 2D denoising process. It has been verified that the method can effectively reduce the blur of the denoised image, and also well preserve the image details. The residual block and spatial channel attention combination method ensures the information flow between different convolutional layers and reduces information loss. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The drawings described herein are used to provide a further understanding of the present invention, constitute a part of this application, and do not constitute a limitation of the present invention.

[0026] Figure 1 It is a schematic diagram of the entire network structure of the present application method.

[0027] Figure 2 Schematic diagram of the dense residual structure of the generator in the method of this application.

[0028] Figure 3 It is a schematic diagram of the general structure of the discriminator in the method of the present application.

[0029] Figure 4 It is a flow chart of the present application method.

[0030] Figure 5 This is a schematic diagram of the channel attention mechanism module in this application.

[0031] Figure 6 This is a schematic diagram of the spatial attention mechanism module in this application. DETAILED DESCRIPTION

[0032] In order to more clearly understand the technical content and advantages of the present invention, the present invention is now further described in detail in conjunction with the accompanying drawings.

[0033] The present invention belongs to the field of RAW domain 2D image denoising based on deep learning, and converts images containing noise to different degrees into clean images without noise by using a deep learning method.

[0034] This method proposes a neural network denoising method based on adversarial learning. The overall structure diagram of the network is as follows: Figure 1 As shown, the noise image is input, output by the generator, and a fake clean image is generated, which is input to the discriminator together with the real clean image.

[0035] The main implementation steps of the method are as follows: Figure 4 As shown:

[0036] Step S1: Improve the generator based on the Unet network structure, that is, replace the ordinary convolution structure with a dense residual structure. The dense residual structure consists of three convolutions conv1, conv2, and conv3 with different numbers of output channels. The number of channels set for conv1, conv2, and conv3 are 1 / 2, 3 / 2, and 3 of the original input channels, respectively, and the convolution kernel kernel_size is 3;

[0037] The generator uses a dense residual block and a module combining the spatial attention mechanism and the channel attention mechanism to extract information of different scales, wherein the sigmoid in the channel attention mechanism module is the activation function, and the feature input by the spatial attention mechanism module through the channel attention mechanism module is F1, and the combined feature output is F out , as shown in the formula: F out =spatial_block(channel_block(F1));

[0038] like Figure 5 As shown, the channel attention mechanism module channel_block further includes: after Maxpooling and avepooling, the two inputs are added, entering Conv1, Kernel_size=1, then entering Conv2, Kernel_size=1, and then performing sigmoid activation function processing, and the sigmoid function output is multiplied by the input feature map F1;

[0039] like Figure 6 As shown, the spatial attention mechanism module spatial_block further includes: entering Conv1, Kernel_size=1, then entering Conv2, Kernel_size=1, and then performing sigmoid activation function processing, and its sigmoid function output is multiplied by the two inputs of the output feature map of the channel attention mechanism module.

[0040] The dense residual structure is mainly composed of three convolutions conv1, conv2, and conv3 with different numbers of output channels. The number of channels set for conv1, conv2, and conv3 are 1 / 2, 3 / 2, and 3 of the original input channels, respectively, and the convolution kernel kernel_size is 3. This dense structure ensures the flow of information and increases the receptive field, which refers to the range of each slide on the feature map during convolution.

[0041] The dense residual structure in step S1 further includes: Figure 2 As shown: the original input feature map enters Conv1, Kernel_size = 3 and the output is recorded as output 1; its output 1 is cascaded with the original input feature map, and the output is recorded as output 2; its output 2, and its output 2 enter Conv2 as input, Kernel_size = 3 and the output is recorded as output 3, and the original input feature map is used as input for feature map cascade, and the output is recorded as output 4; its output 4 enters Conv3 as input, Kernel_size = 3, and the final feature map is output.

[0042] Step S2: For the discriminator, this method uses the classic PATCHGAN (multi-scale adversarial discriminator network). The general structure is as follows Figure 3 As shown in Figure 1, the convolution output of each layer is saved for loss calculation. The whole process is expressed as formula (1), where out is the final output of the network:

[0043] out=concat(conv1,conv2,conv3,conv4) (1)

[0044] Step S3: After constructing the generator and discriminator, set the number of iterations to 10000, the generator learning rate to 10-4, and the discriminator learning rate to 2*10-4. During training, the generator is iterated once, followed by the discriminator, and the training is iterated in this way, repeating steps S1-S2.

[0045] The discriminator, such as Figure 3 As shown: the real clean image and the fake clean image generated by the generator are used as the input of the model; enter conv1, and the output is recorded as output a; output a is input into conv2, and the output is recorded as output b; output b is input into conv3, and the output is recorded as output c; output c conv4, and the output is recorded as output d; output a, output b, output c, and output d are used for feature collection.

[0046] This method performs noise modeling based on the raw domain, which effectively avoids the problem that the original noise contained in the original image is changed after interpolation and other operations after the original image is processed by ISP, resulting in the inability to correctly model the noise later. When constructing the network, this method designs an adversarial network, which can reduce the blur problem through discriminator iteration.

[0047] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A deep learning-based image denoising method, characterized in that: The method includes a neural network based on adversarial learning, wherein the network includes: a noise image input, output by a generator, generating a fake clean image, and inputting the fake clean image into a discriminator together with a real clean image; the method further includes the following steps: S1: The generator is improved based on the Unet network structure, that is, the ordinary convolution structure is replaced by a dense residual structure, which is composed of three convolutions conv1, conv2, and conv3 with different numbers of output channels. The number of channels set for conv1, conv2, and conv3 are 1 / 2, 3 / 2, and 3 of the original input channels, respectively, and the convolution kernel kernel_size is 3; The generator uses a dense residual block and a module combining the spatial attention mechanism and the channel attention mechanism to extract information of different scales, wherein the sigmoid in the channel attention mechanism module is the activation function, and the feature input by the spatial attention mechanism module through the channel attention mechanism module is F1, and the combined feature output is F out , as shown in the formula: F out =spatial_block(channel_block(F1)); S2: For the discriminator, a multi-scale adversarial discriminator network PATCHGAN is used; the structure of the network PATCHGAN is as follows: the convolution output of each layer is saved for calculating the loss. The whole process is expressed as formula (1), and out is the final output of the network: out=concat(conv1,conv2,conv3,conv4) (1); S3: After constructing the generator and discriminator, set the number of iterations to 10000, the generator learning rate to 10-4, and the discriminator learning rate to 2*10-4; during training, the generator is iterated once, then the discriminator is iterated once, and the training is repeated in this iterative cycle.

2. The image denoising method based on deep learning according to claim 1, characterized in that: The dense residual structure described in step S1 further includes: the original input feature map enters Conv1, Kernel_size=3 and the output is recorded as output 1; its output 1 is cascaded with the original input feature map, and the output is recorded as output 2; its output 2, and its output 2 are used as input to enter Conv2, Kernel_size=3 and the output is recorded as output 3, and the original input feature map is used as input to perform feature map cascade, and the output is recorded as output 4; its output 4 is used as input to enter Conv3, Kernel_size=3, and the final feature map is output.

3. The image denoising method based on deep learning according to claim 1, characterized in that: The channel attention mechanism module channel_block in step S1 further includes: after Maxpooling and avepooling, the two inputs are added, entering Conv1, Kernel_size=1, then entering Conv2, Kernel_size=1, and then performing sigmoid activation function processing, and the output of the sigmoid function is multiplied by the input feature map F1.

4. The image denoising method based on deep learning according to claim 1, characterized in that: The spatial attention mechanism module spatial_block in step S1 further includes: entering Conv1, Kernel_size=1, then entering Conv2, Kernel_size=1, and then performing sigmoid activation function processing, and the output of the sigmoid function is multiplied by the two inputs of the output feature map of the channel attention mechanism module.

5. The image denoising method based on deep learning according to claim 1, characterized in that: The network structure described in step S2 further includes: a real clean image and a fake clean image generated by a generator are used as inputs of the model; enter conv1, and the output is recorded as output a; output a is input into conv2, and the output is recorded as output b; output b is input into conv3, and the output is recorded as output c; output c conv4, and the output is recorded as output d; output a, output b, output c, and output d are used for feature collection.