Underwater image enhancement method and device based on antibiotic network and diffusion model

Through the combination of biological network and diffusion model, conversion and denoising technology, the dependence and applicability problems of existing underwater image enhancement technology are solved, and the brightness and clarity of images in complex underwater environments are improved, ensuring High-quality effects in multiple scenarios.

CN118657675AActive Publication Date: 2024-09-17DALIAN MARITIME UNIVERSITY
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410722961.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-17
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

Existing underwater image enhancement technologies have complex models that rely on prior knowledge, non-universal applicability to specific scenes, and dependence on paired data sets, resulting in poor visibility, contrast, and color characteristics of images in complex underwater environments. The lifting effect is not good.

Method used

Using a method based on the adversarial network and diffusion model, the underwater image is converted into an aerial image style through the style conversion module, and the diffusion probability model is used in the image de-drying module to perform noise addition and de-noising operations to generate bright and clear water images. Underwater images are combined with the original image to guide the denoising results to achieve underwater image enhancement.

Benefits of technology

It improves the visibility and contrast of underwater images, maintains image detail texture, reduces the difficulty of model training, and achieves universal applicability and high-quality image generation in a variety of scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657675A
    Figure CN118657675A
Patent Text Reader

Abstract

The invention discloses an underwater image enhancement method and device based on an antibiotic network and a diffusion model. The method comprises the following steps: S1, acquiring an underwater image to be processed; s2, inputting the underwater image to be processed into a style conversion module which is used for converting blue-green tones in the underwater image into the style of an aerial image so as to obtain an underwater image of a middle domain; and S3, inputting the underwater image of the intermediate domain into an image denoising module which is used for carrying out noise adding, sampling and denoising operations based on a diffusion probability model on the input image so as to generate a high-quality underwater image. According to the method, the styles of the underwater image and the aerial image are learned, the to-be-processed image is processed, the bright underwater image is generated, then the underwater image is denoised, an original image is used for guiding a denoising generation result in the denoising process, and finally the underwater image is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to an underwater image enhancement method and device based on an adversarial network and a diffusion model. Background Art

[0002] In recent years, the significance of the ocean for development has become increasingly important, and countries have attached more and more importance to the development of the ocean. Marine engineering and marine research are increasingly dependent on underwater images captured by autonomous underwater vehicles (AUVs) and remotely operated vehicles (ROVs). However, due to the complex underwater environment and low visibility, even with expensive image acquisition equipment, the images obtained will have serious color aberration and image blur. Therefore, it is necessary to develop processing technology for underwater images to improve the visibility, contrast and color characteristics of underwater images.

[0003] At present, underwater image enhancement is mainly divided into three categories: methods based on physical models, methods based on non-physical models, and deep learning methods. The physical model-based methods construct corresponding mathematical models for the underwater image degradation process, calculate the corresponding model parameters, and obtain the ideal, non-degraded image through the inversion model. Model-based methods rely on prior knowledge and various assumptions about environmental conditions. The mathematical model based on prior knowledge is complex, and the method required for model parameter estimation is very computationally intensive. Image enhancement methods based on non-physical models do not need to consider the model and laws of underwater formation too much. By adjusting the pixels of the image to selectively add or delete some information and change its pixel value, the visual effect of the underwater image can be improved. This type of underwater image enhancement algorithm can effectively solve the underwater image of a specific scene, but it is not suitable for underwater images of all scenes. The robustness and wide practicability need to be improved. Deep learning-based methods use a variety of deep learning network models to improve the visual quality of images. Some methods are inspired by the defogging model and obtain good visual effects. In addition, some methods combine imaging models with deep learning to achieve underwater image enhancement. However, these deep learning-based methods have the following two limitations: dependence on paired datasets; excellent performance on specific datasets and lack of universality. Summary of the invention

[0004] In view of the shortcomings of the prior art, the present invention provides an underwater image enhancement method based on adversarial networks and diffusion models. The present invention processes the image to be processed by learning the styles of underwater images and aerial images, generates a bright underwater image, and then denoises the underwater image. In the denoising process, the original image is used to guide the denoising result, and finally the underwater image is enhanced.

[0005] The technical means adopted by the present invention are as follows:

[0006] An underwater image enhancement method based on adversarial networks and diffusion models, characterized by comprising the following steps:

[0007] S1, obtaining an underwater image to be processed;

[0008] S2. Input the underwater image to be processed into a style conversion module, wherein the style conversion module is used to convert the blue-green tones in the underwater image into the style of the aerial image, thereby obtaining the underwater image in the intermediate domain; the style conversion module is a generative adversarial network, wherein the generative adversarial network includes a first generator, a first discriminator, a second generator and a second discriminator, wherein the first generator is used to perform style conversion on the underwater image, and the first discriminator is used to determine whether the input image is an underwater image; the second generator is used to perform style conversion on the aerial image, and the second discriminator is used to determine whether the input image is an aerial image;

[0009] S3. Input the underwater image of the intermediate domain into an image denoising module, wherein the image denoising module is used to perform denoising, sampling and denoising operations on the input image based on a diffusion probability model, thereby generating a high-quality underwater image.

[0010] Furthermore, the total loss of the style conversion module is obtained according to the following calculation:

[0011] L UCGAN =L GAN (G U→A ,D A ,X U ,X A )+L GAN (G A→U ,D U ,X A ,X U )+L per (G U→A ,G A→U )

[0012] Among them, L UCGAN represents the total loss of the style transfer module, L GAN (G U→A ,D A ,X U ,X A ) represents the first adversarial loss, L GAN (G A→U ,D U ,X A ,X U ) represents the second adversarial loss, L per (G U→A ,G A→U ) represents the cycle-aware loss.

[0013] Furthermore, the first adversarial loss and the second adversarial loss are obtained according to the following calculation:

[0014]

[0015] Among them G U→A The generator G is used to transform the image from underwater image style to aerial image style. A→U To transform the image style from aerial image to underwater image style, D A D is the discriminator for determining whether the image is an aerial image. U X is the discriminator for determining whether the image is an aerial image. U , is an underwater image, X A For aerial images.

[0016] Furthermore, the cycle-perceptual loss is obtained according to the following calculation:

[0017]

[0018] Among them G U→A A generator for converting the image style from underwater to aerial, a generator for converting the image style from aerial to underwater, D A D is the discriminator for determining whether the image is an aerial image. U X is the discriminator for determining whether the image is an aerial image. U , is an underwater image, X A is the aerial image, φ(X U ) is the feature extracted from the original underwater image, φ(G A→U (G U→A (X U )) is the feature extracted from the underwater image after two transformations, φ(X A ) is the feature extracted from the original aerial image, φ(G U→A (G A→U (X A )) is the feature extracted from the aerial image after two transformations.

[0019] Furthermore, the image denoising module is used to perform denoising, sampling and denoising operations on the input image based on a diffusion probability model, including:

[0020] Image noise is added according to the following calculation:

[0021]

[0022] Among them, x t represents the image at time T = t, α t =1-βt , β t is a hyperparameter of the Gaussian distribution variance, x0 represents a clear target image, and z represents noise that satisfies the standard Gaussian distribution;

[0023] Image denoising is performed according to the following calculation:

[0024]

[0025] Among them, x0 represents the clear target image, x t represents the image at time T = t during the noise addition process, z θ represents the noise predicted by the image denoising module, x c represents the input image without noise addition, and t represents the time;

[0026] Image sampling is performed according to the following calculation:

[0027]

[0028] Among them, x t-1 It represents the image at time T=t-1 during the noise addition process.

[0029] The present invention also discloses an underwater image enhancement device based on an adversarial network and a diffusion model, comprising:

[0030] An image acquisition module, which is used to acquire underwater images to be processed;

[0031] A style conversion module, which is used to convert the blue-green tones in the underwater image into the style of the aerial image, so as to obtain the underwater image in the intermediate domain; the style conversion module is a generative adversarial network, and the generative adversarial network includes a first generator, a first discriminator, a second generator and a second discriminator, the first generator is used to perform style conversion on the underwater image, the first discriminator is used to determine whether the input image is an underwater image, the second generator is used to perform style conversion on the aerial image, and the second discriminator is used to determine whether the input image is an aerial image;

[0032] The image denoising module is used to perform denoising, sampling and denoising operations on the input image based on the diffusion probability model, so as to generate high-quality underwater images.

[0033] Compared with the prior art, the present invention has the following advantages:

[0034] 1. The present invention uses two generators and two discriminators of the style transfer module to learn the different styles between the underwater dataset and the aerial dataset, and uses the generator to generate bright underwater images. The loss calculation part in this module sets a VGG network, which extracts and calculates the feature difference between the original image and the image generated by the generator, so that the detailed texture information of the original image is not lost in the generated image as much as possible.

[0035] 2. The present invention removes the noise in the image through the image denoising module, and removes the noise in the image through the repeated denoising process to make the image clear. At the same time, the original image is used to guide the denoising result in the denoising process, and finally the underwater image is enhanced.

[0036] 3. The present invention cooperates with the style transfer module and the image denoising module for processing. Unlike the existing deep learning methods, the training process does not need to rely on paired data sets, which ensures the universality of the method and reduces the difficulty of model training. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 labor.

[0038] Figure 1 Flow chart of an underwater image enhancement method based on adversarial networks and diffusion models in an embodiment of the present invention.

[0039] Figure 2 Schematic diagram of the workflow of the style transfer model and the image denoising model in an embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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 should fall within the scope of protection of the present invention.

[0041] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0042] like Figure 1 As shown, the present invention provides an underwater image enhancement method based on an adversarial network and a diffusion model, comprising the following steps:

[0043] S1. Obtain an underwater image to be processed.

[0044] S2. Input the underwater image to be processed into a style conversion module (Underwater Cycle Generative Adversarial Networks, abbreviated as UCGAN), where the style conversion module is used to convert the blue-green tones in the underwater image into the style of the aerial image, thereby obtaining an underwater image in the middle domain.

[0045] Specifically, the underwater image is passed into the first generator of the style transfer module to obtain the underwater image in the intermediate domain, which is calculated as follows:

[0046] UW (UtoA) =G U→A (UW)

[0047] Where UW is the original underwater image, G U→A The first generator converts the blue-green tones in underwater images to the style of aerial images. (UtoA) The converted underwater image.

[0048] In the present invention, the style conversion module preferably adopts a generative adversarial network, which includes a first generator, a first discriminator, a second generator and a second discriminator. The first generator is used to perform style conversion on underwater images, the first discriminator is used to determine whether the input image is an underwater image, the second generator is used to perform style conversion on aerial images, and the second discriminator is used to determine whether the input image is an aerial image.

[0049] like Figure 2As shown in the figure, during the training process of the generative adversarial network, the aerial image and the underwater image are first input into the adversarial generative network, and the input aerial image and underwater image undergo the following changes:

[0050] UW→G U→A (UW) → UW (UtoA)

[0051] AERIAL→G A→U (AERIAL)→AERIAL (AtoU)

[0052] Where UW is the original underwater image, G U→A The first generator converts the blue-green tones in underwater images into the style of aerial images by learning the style mapping between underwater images and aerial images. The specific process is that during the training process, the generator and the discriminator compete with each other to generate the style mapping from underwater images to aerial images, and then generate underwater images with aerial styles. (UtoA) is the converted underwater image. AERIAL is the original aerial image. G A→U For the second generator, AERIAL converts the aerial image into an underwater image style with a blue-green tint. (AtoU) The converted aerial image.

[0053] The loss of the style transfer module is then calculated:

[0054] The total loss of the style transfer module is:

[0055] L UCGAN =L GAN (G U→A ,D A ,X U ,X A )+L GAN (G A→U ,D U ,X A ,X U )+L per (G U→A ,G A→U )

[0056] Among them, L UCGAN represents the total loss of the style transfer module, L GAN (G U→A ,D A ,X U ,X A ) represents the first adversarial loss, L GAN (G A→U ,D U ,X A ,X U) represents the second adversarial loss, L per (G U→A ,G A→U ) represents the cycle-aware loss.

[0057] The adversarial loss is obtained by the following calculation:

[0058]

[0059] Among them G U→A A generator for converting the image style from underwater to aerial, a generator for converting the image style from aerial to underwater, D A D is the discriminator for determining whether the image is an aerial image. U X is the discriminator for determining whether the image is an aerial image. U , is an underwater image, X A is an aerial image. The greater the probability that the image generated by the generator can deceive the discriminator, the greater the probability that L GAN The smaller the value of .

[0060] Cycle-aware consistency loss:

[0061]

[0062] Among them G U→A A generator for converting images from underwater to aerial styles, a generator for converting images from aerial to underwater styles, X U , is an underwater image, X A is the aerial image, φ(X U ) is the feature extracted from the original underwater image, φ(G A→U (G U→A (X U )) is the feature extracted from the underwater image after two transformations, φ(X A ) is the feature extracted from the original aerial image, φ(G U→A (G A→U (X A )) is the feature extracted from the aerial image after two conversions. The high and low features extracted from the VGG network in the loss calculation part of UCGAN are used to retain more texture information of the underwater image during the style conversion process. The closer the image is to the original image after two generators, the better L per The smaller the value of .

[0063] S3. Input the underwater image in the intermediate domain into an image denoising module (Conditional Underwater Denoising Diffusion Probabilistic Models, abbreviated as CUDDPM), wherein the image denoising module is used to perform denoising, sampling and denoising operations on the input image based on a diffusion probability model, thereby generating a high-quality underwater image.

[0064] Specifically, the underwater images in the middle are sampled and denoised to obtain clear underwater images.

[0065] The noise addition calculation is as follows:

[0066]

[0067] where α t =1-β t , is a hyperparameter of the variance of a series of Gaussian distributions, and is the noise that satisfies the standard Gaussian distribution. x0 represents the clear target image.

[0068] The sampling calculation is as follows:

[0069]

[0070] where x c is the original image, z θ is the noise predicted by the model, and x0 is a high-quality underwater image. c As a guided input, its purpose is to provide contextual information to guide the diffusion model to generate specific images and avoid generating unrealistic images.

[0071] The denoising calculation is as follows

[0072]

[0073] x0 is the obtained high-quality underwater image, x t represents the image at time T = t during the noise addition process, z θ represents the noise predicted by the model CUDDPM, x c represents the input image without noise addition, that is, the image output by the style transfer module, and t represents the time.

[0074] As a preferred embodiment of the present invention, after passing through the style conversion module, the input blue-green underwater image can be converted into the style of an aerial image, but there is still fog-like detail blur in the image. This application proposes a conditional denoising network based on a diffusion probability model (DDPM) to eliminate blur and improve the quality of underwater images.

[0075] First, the image is passed into the denoising network, and then the image is repeatedly denoised, sampled and denoised to obtain the final high-quality underwater image. The calculation of the diffusion model includes:

[0076] Forward Diffusion

[0077]

[0078] where α t =1-β t , β t is a hyperparameter of the variance of a series of Gaussian distributions, and z is the noise that satisfies the standard Gaussian distribution. t Only with x t-1 and a t So we can get:

[0079]

[0080] in The noise satisfies Gaussian distribution.

[0081] Reverse inference

[0082]

[0083] where z θ is the noise predicted by the model.

[0084] In this method, the noise addition process is calculated as follows:

[0085]

[0086] The denoising process is calculated as follows:

[0087]

[0088] where x c is the original image, and x0 is a high-quality underwater image. c As a guided input, its purpose is to provide contextual information to guide the diffusion model to generate specific images and avoid generating unrealistic images.

[0089] The sampling process is calculated as follows:

[0090]

[0091] The image denoising module loss is calculated as follows:

[0092] L CUDDPM =∥z t -z θ (x t,x c ,t)∥1

[0093] The training process algorithm of the image denoising module is as follows:

[0094]

[0095] The verification process algorithm is as follows:

[0096]

[0097]

[0098] The present invention also provides an underwater image enhancement device based on a bio-resistance network and a diffusion model, comprising:

[0099] An image acquisition module, which is used to acquire underwater images to be processed;

[0100] A style conversion module, which is used to convert the blue-green tones in the underwater image into the style of the aerial image, so as to obtain the underwater image in the intermediate domain; the style conversion module is a generative adversarial network, and the generative adversarial network includes a first generator, a first discriminator, a second generator and a second discriminator, the first generator is used to perform style conversion on the underwater image, the first discriminator is used to determine whether the input image is an underwater image, the second generator is used to perform style conversion on the aerial image, and the second discriminator is used to determine whether the input image is an aerial image;

[0101] The image denoising module is used to perform denoising, sampling and denoising operations on the input image based on the diffusion probability model, so as to generate high-quality underwater images.

[0102] For an embodiment of the underwater image enhancement device based on an adversarial network and a diffusion model of the present invention, since it corresponds to the above embodiment of an underwater image enhancement method based on an adversarial network and a diffusion model, the description is relatively simple. For relevant similarities, please refer to the partial description in the above embodiment of an underwater image enhancement method based on an adversarial network and a diffusion model, which will not be described in detail here.

[0103] 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 replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. An underwater image enhancement method based on adversarial networks and diffusion models, characterized in that: The following steps are involved: S1, obtaining an underwater image to be processed; S2. Input the underwater image to be processed into a style conversion module, wherein the style conversion module is used to convert the blue-green tones in the underwater image into the style of the aerial image, thereby obtaining the underwater image in the intermediate domain; the style conversion module is a generative adversarial network, wherein the generative adversarial network includes a first generator, a first discriminator, a second generator and a second discriminator, wherein the first generator is used to perform style conversion on the underwater image, and the first discriminator is used to determine whether the input image is an underwater image; the second generator is used to perform style conversion on the aerial image, and the second discriminator is used to determine whether the input image is an aerial image; S3. Input the underwater image of the intermediate domain into an image denoising module, wherein the image denoising module is used to perform denoising, sampling and denoising operations on the input image based on a diffusion probability model, thereby generating a high-quality underwater image.

2. The underwater image enhancement method based on adversarial network and diffusion model according to claim 1, characterized in that: The total loss of the style conversion module is obtained according to the following calculation: L UCGAN =L GAN (G U→A ,D A ,X U ,X A )+L GAN (G A→U ,D U ,X A ,X U )+L per (G U→A ,G A→U ) Among them, L UCGAN represents the total loss of the style transfer module, L GAN (G U→A ,D A ,X U ,X A ) represents the first adversarial loss, L GAN (G A→U ,D U ,X A ,X U ) represents the second adversarial loss, L per (G U→A ,G A→U ) represents the cycle-aware loss.

3. The underwater image enhancement method based on adversarial network and diffusion model according to claim 2 is characterized in that: The first adversarial loss and the second adversarial loss are obtained according to the following calculation: Among them G U→A The generator G is used to transform the image from underwater image style to aerial image style. A→U To transform the image style from aerial image to underwater image style, D A D is the discriminator for determining whether the image is an aerial image. U X is the discriminator for determining whether the image is an aerial image. U , is an underwater image, X A For aerial images.

4. The underwater image enhancement method based on adversarial network and diffusion model according to claim 2, characterized in that: The cycle-aware loss is obtained according to the following calculation: Among them G U→A A generator for converting the image style from underwater to aerial, a generator for converting the image style from aerial to underwater, D A D is the discriminator for determining whether the image is an aerial image. U X is the discriminator for determining whether the image is an aerial image. U , is an underwater image, X A is the aerial image, φ(X U ) is the feature extracted from the original underwater image, φ(G A→U (G U→A (X U )) is the feature extracted from the underwater image after two transformations, φ(X A ) is the feature extracted from the original aerial image, φ(G U→A (G A→U (X A )) is the feature extracted from the aerial image after two transformations.

5. The underwater image enhancement method based on adversarial network and diffusion model according to claim 1, characterized in that: The image denoising module is used to perform denoising, sampling and denoising operations on the input image based on a diffusion probability model, including: Image noise is added according to the following calculation: Among them, x t represents the image at time T = t, α t =1-β t , β t is a hyperparameter of the Gaussian distribution variance, x0 represents a clear target image, and z represents noise that satisfies the standard Gaussian distribution; Image denoising is performed according to the following calculation: Among them, x0 represents the clear target image, x t represents the image at time T = t during the noise addition process, z θ represents the noise predicted by the model CUDDPM, x c represents the input image without noise addition, and t represents the time; Image sampling is performed according to the following calculation: Among them, x t-1 It represents the image at time T=t-1 during the noise addition process.

6. An underwater image enhancement device based on adversarial networks and diffusion models, characterized in that: include: An image acquisition module, which is used to acquire underwater images to be processed; A style conversion module, which is used to convert the blue-green tones in the underwater image into the style of the aerial image, so as to obtain the underwater image in the intermediate domain; the style conversion module is a generative adversarial network, and the generative adversarial network includes a first generator, a first discriminator, a second generator and a second discriminator, the first generator is used to perform style conversion on the underwater image, the first discriminator is used to determine whether the input image is an underwater image, the second generator is used to perform style conversion on the aerial image, and the second discriminator is used to determine whether the input image is an aerial image; The image denoising module is used to perform denoising, sampling and denoising operations on the input image based on the diffusion probability model, so as to generate high-quality underwater images.

Citation Information

Patent Citations

  • Underwater image enhancement method based on de-noising diffusion probability model

    CN116883259A

  • Underwater image processing method based on lightweight diffusion model

    CN117152600A

  • Depth estimation and color correction method for monocular underwater images based on deep neural network

    US20210390339A1