Self-supervised underwater image enhancement method based on adversarial learning strategy
Through a self-supervised method based on adversarial learning strategy, combined with image restoration, depth estimation and imaging parameter estimation modules, the problem of insufficient stability and generalization ability of underwater image enhancement technology in complex scenes is solved, and high-quality underwater image processing is achieved. Image enhancement for a variety of underwater applications.
Patent Information
- Application Number
- CN202410809768.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-13
AI Technical Summary
Existing underwater image enhancement technology has poor stability in complex and changeable underwater scenes. In particular, model-free methods are greatly affected by data distribution, while imaging model-based methods have limited enhancement effects in extreme environments, and end-to-end learning methods Relies on large amounts of data and is difficult to generalize.
A self-supervised method based on adversarial learning strategy is adopted. Through the image restoration module, depth estimation module and imaging parameter estimation module, combined with adversarial loss, cycle consistency loss, transmission map loss and color loss function, a network structure is constructed for self-supervised learning to achieve Adaptive enhancement of underwater images.
It achieves high-quality restoration of images in complex underwater environments, improves visual appearance, has good environmental adaptability and robustness, and can effectively enhance images in complex environments such as turbidity and large particle disturbances, and is suitable for underwater use. Security, water quality monitoring and other fields.
Smart Images

Figure CN118644427A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of computer vision, image and video processing, and relates to a self-supervised underwater image enhancement method based on an adversarial learning strategy. Background Art
[0002] As an important carrier for obtaining water information, underwater optical images intuitively and vividly display the current scene state of the observed object, providing an important scientific basis for understanding and exploring water bodies. However, due to the medium characteristics of the water body itself and the interference of other impurities in the water body, light will be absorbed and scattered during propagation in the water, resulting in serious intensity attenuation and degradation, resulting in directly acquired underwater images often having poor appearance, low clarity and uneven color. At the same time, the flowing imaging environment makes the visual degradation of underwater images diverse and complex. Apparently degraded underwater images not only affect the visual perception effect, but also make it difficult to extract information from them, reducing the accuracy of water-related visual applications such as underwater security, water environment monitoring, and seabed resource exploration. Therefore, using image processing technology to enhance the clarity of images has broad application prospects and very important practical significance.
[0003] In recent years, with the rapid development of fields such as marine environmental protection and marine engineering, the role and value of underwater images / videos have become increasingly prominent. As one of the common key technologies, underwater image enhancement and restoration have increasingly become research hotspots and difficulties, attracting widespread attention from scholars at home and abroad. After years of research, a large number of underwater image enhancement and restoration methods have been proposed. For example, Zhang et al. proposed an image restoration method combining color correction and adaptive contrast enhancement based on the principle of minimum color loss and the fusion strategy guided by maximum attenuation mapping, which greatly improved the contrast and clarity of the restored image. See the literature: Zhang W, Zhuang P, Sun HH, et al. Underwater image enhancement via minimal color loss and locally adaptive contrast enhancement [J]. IEEE Transactions on Image Processing, 2022, 31: 3997-4010. However, this model-free underwater image enhancement method fails to fully consider the complex degradation process of underwater imaging, and is prone to problems such as image detail loss, artifacts, and color deviation in practical applications. In contrast, the image restoration method based on the imaging model makes full use of the advantages of domain knowledge and estimates the parameters of the imaging model through scene information to restore the degraded image. The typical Sea-thru underwater image enhancement method proposed by Akkaynak et al. corrected the traditional imaging model after a large number of experiments and has a good restoration effect, but it requires accurate scene depth information. See the literature: Akkaynak D, Treibitz T. Sea-thru: A method for removing water from underwater images [C]. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. 2019: 1682-1691. Limited by the adaptability of prior knowledge and the expression ability of the imaging model, the stability and robustness of the algorithm are poor, especially in water bodies with high turbidity and extremely complex water bodies, the enhancement effect is limited. In order to accurately estimate scene information, many researchers have begun to use deep networks to autonomously learn scene information and build end-to-end restoration networks to achieve image restoration of complex underwater environments. However, these deep learning-based methods mostly use natural image restoration methods to migrate and process underwater images, which ignores the unique physical laws of underwater imaging. In particular, for restoration network models that require data training, their restoration effects are strongly dependent on the scale and quality of paired underwater image data. In practice, it is difficult to obtain paired underwater images and corresponding clear images, which limits the application of these methods.
[0004] In summary, existing model-free underwater image enhancement and restoration methods are easily affected by data distribution and have poor local restoration effects, while restoration methods based on physical imaging models are affected by the expression ability of imaging models and have limited restoration effects in extremely complex underwater scenes such as high turbidity. At the same time, restoration methods based on unsupervised learning lack interpretability and robustness, while end-to-end learning methods rely heavily on sample size and data quality, lack the use of physical priors, and affect generalization capabilities. Therefore, current underwater image augmentation and restoration technologies still have many shortcomings and need further development. Summary of the invention
[0005] Technical issues to be solved
[0006] In order to avoid the shortcomings of the prior art, the present invention proposes a self-supervised underwater image enhancement method based on an adversarial learning strategy, which mainly solves the problem of stable high-definition perception of imaging systems in complex and changeable underwater scenes. The existing supervised learning restoration methods are limited by the acquisition of paired data sets, and their generalization capabilities are difficult to guarantee, which often limits their actual use.
[0007] Technical Solution
[0008] A self-supervised underwater image enhancement method based on an adversarial learning strategy is characterized by the following steps:
[0009] Step 1: Perform image restoration on the original underwater image data I(X1) to remove the scattering blur and color deviation in the underwater degraded image to obtain the reconstructed image data J(X1);
[0010] Step 2: Use the reconstructed image data to perform depth estimation to obtain depth information of the reconstructed image data to form depth image data d(X1) of the underwater image;
[0011] Step 3: The depth image data d(X1) of the underwater image is calculated and processed using the imaging model formula to obtain an enhanced underwater complex environment degradation image, namely
[0012] The imaging processing formula includes the depth information d(X1) in the reconstructed image data, and the formula is:
[0013]
[0014] in: To enhance the degraded image in underwater complex environment, N rer is the degradation coefficient, and B is the background light intensity.
[0015] The background light intensity B is obtained by separating the original underwater image data I(X1) into three color channels RGB, and calculating the background light estimation values B of the three color channels respectively. r ,B g ,B b The background light intensity B is obtained by fusion through weight sharing.
[0016] The degradation coefficient N rer The original underwater image data I(X1) is separated into three color channels, RGB, and the attenuation coefficients N of the three colors of light in the water medium are calculated respectively. rer =-log(I(X1) / J(X1)) / d(X1).
[0017] A network structure for implementing the self-supervised underwater image enhancement method based on adversarial learning strategy, characterized by comprising an image restoration module, a depth estimation module and an imaging parameter estimation module, wherein the imaging parameter estimation module comprises a background light estimation module and a degradation coefficient estimation module; the connection relationship of the modules is as follows: the original image is respectively input into the image restoration module and the imaging parameter estimation module, the image restoration module is connected to the depth estimation module, the depth obtained by the depth estimation module and the imaging parameters output by the imaging parameter estimation module are fused through an imaging model to output a degraded image corresponding to the enhanced image; the image restoration module adopts a symmetrical U-shaped network structure; the depth estimation module adopts a multi-scale dense residual module; the imaging parameter estimation module is an RGB image channel separation module, a background light feature extraction module of each channel and a light attenuation feature extraction module of each channel in parallel, the background light feature extraction module is connected to the background light estimation value fusion module of the three channels, and the water medium attenuation feature extraction module is connected to the water medium attenuation value fusion module of the three channels.
[0018] The symmetrical U-shaped network structure of the image restoration module is as follows: the input side includes four symmetrical feature processing layers S1, S2, S3, and S4, and the output of each feature processing layer is connected to the corresponding feature processing layer in the feature enhancement layer on the output side; each feature processing layer S i It includes several connected residual convolution blocks, and the number of residual convolution blocks in different feature processing layers is different; the number of residual convolution blocks contained in the S1, S2, S3, and S4 feature processing layers is 1, 2, 4, and 7 respectively; the first layer of each residual convolution block is a 1×1 convolution layer based on feature channel transformation, which is connected to a 3×3 convolution layer for extracting spatial features, and the last layer is a 1×1 convolution layer for merging and adjusting multi-channel features, and batch normalization and activation function processing are performed after each convolution.
[0019] The multi-scale dense residual module of the depth estimation module has a top-level branch that maintains the original resolution and is processed through initial convolution and continuous 3-layer RDB to capture fine-grained local features; in the middle branch, the resolution is downsampled to 128×128 through a convolution layer with a step size of 2, deep feature learning is performed through five layers of RDB, and then the resolution is restored to 256×256 through bilinear upsampling to extract medium-grained features; the bottom branch focuses on the extraction of global features, downsampled to 64*64 resolution through two levels, and finally upsampled and convolved to restore to the original scale after eight layers of RDB processing.
[0020] In the imaging parameter estimation module, for the background light feature extraction or the light attenuation feature extraction in the water medium of each color channel, a series of 3×3 convolution layers and PReLU activation function processing are respectively performed to extract the background light feature or the water medium attenuation feature extraction of each channel, and then a maximum pooling operation and layer-by-layer refinement are performed. Finally, a single value of the background light estimation value or the single value of the light attenuation estimation value in the water medium of each channel is obtained through an average pooling layer and subsequent convolution processing, and then the background light intensity B or the degradation coefficient N is obtained through weight sharing. rer .
[0021] A training network structure of a network structure of a self-supervised underwater image enhancement method based on an adversarial learning strategy, characterized in that: a training network is constructed on the basis of the network structure, and a training-assisted natural image processing network is added, including a depth estimation module and an image restoration module; the depth estimation module at the natural image input end, the depth d(X2) output by the depth estimation module, the natural image degraded image I(X2) output by the imaging model fusion, and the restored natural image is obtained by the image restoration module The imaging model fusion formula is:
[0022]
[0023] Where: J(X2) is a natural image, N rer =-log(I(X2) / J(X2)) / d(X2) is the degradation coefficient, and B is the background light intensity.
[0024] When training the training network structure, an underwater image data set and an equal number of color natural image data sets are first established to form a training set and a test set; an adversarial learning strategy is established during training to learn parameters of an image restoration module and an image degradation module; the objective function includes four loss functions, namely, an adversarial loss function, a cycle consistency loss function, a transmission map loss function, and a color loss function, which together constitute a total loss function for network training;
[0025] The adversarial loss function is:
[0026]
[0027] Among them, D represents the discriminator, G represents the generator, and x represents the real image. represents the noise input;
[0028] The cycle consistency loss function is:
[0029] L2=E x~Pdata(x) [R(H(x)-x1]
[0030] Where: R, H represent the degraded and restored networks;
[0031] The transmission graph loss function is:
[0032] L3=t pre -t tar1
[0033] Among them, t pre represents the predicted transmission graph, t tar Represents a target transfer diagram based on a physical model
[0034] The color loss function is:
[0035] L4=I c -I α 2
[0036] Among them, I c =[I r ,I g ,I b ] represents the average value of the three channels of RGB image, I α is a constant, taking [0.5,0.5,0.5];
[0037] Total loss function Among them, λ i represents the weight coefficient, and
[0038] A computer program product, characterized in that it includes computer executable instructions, which, when executed, are used to implement the self-supervised underwater image enhancement method based on the adversarial learning strategy and the process of implementing the network structure training.
[0039] Beneficial Effects
[0040] The present invention proposes a self-supervised underwater image enhancement method based on an adversarial learning strategy, and proposes a self-supervised underwater image enhancement method that does not rely on paired training data. The method uses an adversarial learning strategy to aggregate and connect image degradation and image restoration modules, and uses this to model the underwater imaging degradation process, thereby realizing self-supervised enhancement of underwater images. At the same time, the present invention studies the visual appearance consistency between natural images and underwater degraded images, uses the style characteristics of natural images to guide the correction and restoration of degraded images, avoids the dependence of the network model on paired degraded images and clear images, constructs an adversarial learning strategy, guides the image degradation and image restoration modules to self-supervise the learning of underwater image imaging process characteristics, predicts and generates the final restored image, and realizes effective adaptive enhancement of complex underwater environment images. The method models the imaging process, and through the adversarial generation strategy, makes full use of the physical characteristics of underwater image imaging, self-supervises the learning of natural image color style, has good environmental adaptability, and can achieve high-quality restoration of complex degraded images.
[0041] Secondly, the present invention proposes a solution for enhancing degraded images in complex underwater environments, which outputs degraded enhanced images from supervised learning of natural image texture structures and color patterns. The present invention has high real-time performance and strong reliability, and can enhance degraded images in complex underwater environments such as turbidity and large particle disturbances, improve the visual appearance of images, and meet the application requirements of underwater security, water quality monitoring, pipeline maintenance and other fields. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 This is a network structure diagram of a self-supervised underwater image enhancement method based on adversarial learning strategy;
[0043] Figure 2 for Figure 1 The structure diagram of the image restoration module in ;
[0044] Figure 3 for Figure 1 The imaging parameter estimation module (background light B / attenuation coefficient N rer );
[0045] Figure 4 for Figure 1 The depth estimation module structure diagram in ;
[0046] Figure 5 Schematic diagram of the adversarial learning strategy. DETAILED DESCRIPTION
[0047] The present invention will now be further described with reference to the embodiments and the accompanying drawings:
[0048] In order to more clearly illustrate the technical solution implemented by the present invention, the various modules required in the embodiment description are briefly introduced below. Obviously, the drawings described below are only flow charts of the present invention. For ordinary technicians in this field, they can also expand based on this drawing and obtain other drawings without paying creative labor.
[0049] Figure 1 The training network structure diagram of a self-supervised underwater image enhancement method based on adversarial learning strategy; it includes underwater image restoration and degradation (marked by black arrows in the figure) and two branches of natural image degradation and restoration (marked by red arrows in the figure). Each branch network consists of an image restoration module and a depth estimation module, which are connected together through an imaging model. Among them, the parameters background light intensity B and attenuation coefficient N in the imaging model are rer It is calculated by the imaging parameter estimation module. After the scene depth map d(x) is obtained, the imaging model formula can be used to calculate and generate a degraded image.
[0050] The image restoration module is used to remove the scattering blur and color deviation in the underwater degraded image and reconstruct a clear image. The image restoration subnetwork adopts a symmetrical U-shaped network structure, such as Figure 2 As shown in the figure, the features are extracted layer by layer on the left to obtain feature maps of different scales, and the features of different scales are enhanced layer by layer on the right. The output of each feature processing layer in the feature extraction layer is connected to the corresponding feature processing layer in the feature enhancement layer through a dense skip structure. This skip connection ensures that features at different levels can be directly passed to subsequent parts of the network, which helps the back propagation of gradients while maintaining the training stability of deep networks.
[0051] The image restoration module is Figure 2 As shown in the figure, a U-shaped network structure is adopted, with feature extraction on the left side and feature enhancement on the right side. Both the left and right sides are composed of four symmetrical feature processing layers, namely S1, S2, S3, and S4 in the figure. The output of each feature processing layer in the feature extraction layer is connected to the corresponding feature processing layer in the feature enhancement layer. Each feature processing layer S i It is composed of several connected residual convolution blocks, and the number of residual convolution blocks in different feature processing layers is different. The number of residual convolution blocks contained in S1, S2, S3, and S4 is 1, 2, 4, and 7 respectively.
[0052] Each residual convolution block starts with a 1×1 convolution layer, which serves as the basis for feature channel transformation and lays the foundation for subsequent deep feature extraction. The next 3×3 convolution layer continues to extract spatial features. This process further abstracts the feature map while retaining spatial details. The final 1×1 convolution layer merges and adjusts the multi-channel features again. Throughout the feature extraction process, residual connections ensure that features at different levels can be directly passed to subsequent parts of the network, which helps the effective back propagation of gradients while maintaining the training stability of deep networks.
[0053] Batch normalization and activation function after each convolution further ensure the efficiency and stability of the network in multi-scale feature extraction.
[0054] The design of the depth estimation network is as follows Figure 4 , a multi-scale dense residual module is adopted, which enables it to effectively learn and infer the depth information d(x) of the scene from the clear image. Through its parallel structure and dense residual connection, multi-scale features are captured and fused, which improves the accuracy of scene depth estimation. In the specific implementation of the module, the top branch of the depth estimation subnetwork maintains the original resolution and is processed by initial convolution and continuous 3 layers of RDB to capture fine-grained local features. In the middle branch, the resolution is downsampled to 128×128 through a convolution layer with a step size of 2, deep feature learning is performed through five layers of RDB, and then restored to a resolution of 256×256 through bilinear upsampling to extract medium-grained features. The bottom branch focuses on the extraction of global features, downsampling to 64*64 resolution through two levels, and finally upsampling and convolution after eight layers of RDB processing to restore to the original scale. The three branches finally fuse the feature maps extracted by each branch, and are uniformly processed by a terminal convolution layer to output the final transmission map features. This multi-branch parallel structure enables the module not only to capture features of different scales, but also strengthens the reuse of information flow and features through dense connections within the RDB and inter-layer residual learning, thereby improving the completeness and efficiency of the learning process.
[0055] The imaging parameter estimation module includes a background light estimation module and an attenuation coefficient estimation module, using the same network as Figure 3 As shown in the figure, the input RGB image is firstly channel-separated and then divided into a background light estimation module and an attenuation coefficient estimation module.
[0056] In the background light estimation module, each color channel is processed with a series of 3×3 convolutional layers and PReLU activation functions (Conv Block) to independently extract the background light features of each channel. Through layer-by-layer deepening of feature learning, the model can effectively capture the background light information of each channel, and the subsequent maximum pooling (Max Pool) operation further provides the model with the ability to capture global background light information. After layer-by-layer refinement, the feature map of each channel is finally simplified to a single value representing the background light estimation value of the channel through the average pooling (AvgPool) layer and subsequent convolution processing (Conv Block 5). This design realizes independent estimation of the background light of the three RGB color channels and effectively avoids cross-interference between channels. Through weight sharing, the module reduces the number of parameters and improves the efficiency and consistency of training. In the end, the background light estimation value B of the three channels r ,B g ,B b are fused to form a comprehensive estimate B of the global background light.
[0057] In the attenuation coefficient estimation module, the difference in attenuation rate of light from different channels in water medium is taken into account. These attenuation rates are expressed as global values in different channels of the image. Using the channel separation strategy, the three color channels of the input image are input into the network respectively, and the attenuation coefficients N of the three colors of light in water medium are calculated respectively. rer =-log(I(X1) / J(X1)) / d(X1), thereby better adapting to the optical characteristics of the underwater environment.
[0058] Through this design, it is possible to accurately estimate the key parameters that affect underwater imaging: background light intensity and the attenuation coefficients of different color channels.
[0059] The depth estimation module, imaging parameter estimation module and adaptive estimation of model parameters used to describe the underwater image degradation process constitute an image degradation module, which is used to simulate the degradation process of underwater images, and then reconstruct the degraded image using the underwater imaging model. Among them, the depth estimation module adopts a multi-scale dense residual module, which enables it to effectively learn and infer the depth information d(x) of the scene from the clear image. Through the parallel structure and dense residual connection to capture and fuse multi-scale features, the information flow and feature reuse are strengthened, and the estimation accuracy of the scene depth is improved. The imaging parameter estimation module is mainly used to estimate the background light / attenuation coefficient in the imaging model. Considering the difference in attenuation rate of light of different wavelengths in water medium, a channel separation strategy is adopted to input the three color channels of the input image into a series of convolutional layers respectively. After PReLU activation processing, the background light features of each channel are independently extracted, which effectively avoids cross-interference between channels. The background light estimation values of the three channels are fused to form a comprehensive estimation of the global background light, and the attenuation coefficient is further calculated. In addition, by deepening the convolution layer layer by layer, the model can effectively capture the background light information of each channel, and the subsequent maximum pooling operation further provides the model with the ability to capture global background light information, so as to better adapt to the optical characteristics of the underwater environment, thereby accurately estimating the background light intensity that affects underwater imaging and the attenuation coefficient parameters of different color channels.
[0060] First, the training network structure is established, and the adversarial learning strategy is established. Combined with the adversarial learning mechanism, adversarial loss, cycle consistency loss, transmission map loss and color loss functions are constructed to measure the input and output differences of the degradation module and the restoration module, respectively, to achieve unpaired data feature learning, and to enable the degradation and restoration modules to accurately approximate the real underwater degradation process and generate clear images. After training, the network structure of the self-supervised underwater image enhancement method based on the adversarial learning strategy is obtained.
[0061] The adversarial learning strategy is to connect the image restoration and image degradation modules together. The training network structure includes an underwater image restoration-degraded reconstruction branch and a natural image degraded reconstruction-restoration branch. The two branches are organically integrated through a physical imaging model to form a self-supervised underwater image enhancement framework, thereby simulating the underwater image degradation process and the process of generating a clear image. The underwater image restoration-degraded reconstruction branch is responsible for realizing the process of restoring a clear image from an underwater degraded image, and using the restored clear image to generate a degraded image. At the same time, the natural image degraded reconstruction-restoration branch first uses a natural clear image to generate its corresponding underwater degraded image, and then generates a clear natural image from the underwater degraded natural image. The two branches share the same imaging model.
[0062] Specifically, the adversarial learning mechanism is that the underwater image first obtains an underwater clear image through the restoration module, and then reproduces the underwater degraded image through the degradation module. At the same time, the unpaired natural image undergoes an opposite process, that is, the degradation module is used to generate the underwater degraded image corresponding to the natural image, and then the restoration module is used to generate the natural clear image. By measuring the color and transmission map losses between the clear image and degraded image generated by the underwater image, the underwater degraded image and clear image generated by the natural image and the input real underwater image and natural image, and then combining the adversarial loss and the cycle consistency loss to self-supervise the optimization network on the training set training, the image restoration module and the image degradation module are guided to optimize the parameters.
[0063] After training, the network parameters of the self-supervised underwater image enhancement method based on the adversarial learning strategy are obtained, and the underwater degraded image to be enhanced is input into the image restoration module in the self-supervised underwater image enhancement framework after convergence, and the enhanced high-quality and clear underwater image is output, which is the image enhancement process.
[0064] The training network structure is shown in Figure 1 , including underwater image restoration-degraded reconstruction branch network and natural image degradation reconstruction-restoration branch network. The network consists of an image restoration module, a depth estimation module, and an imaging parameter estimation module. It includes two branches: underwater image restoration and degradation (marked by black arrows in the figure) and natural image degradation and restoration (marked by red arrows in the figure). The two are connected together through an imaging model. Among them, the parameters background light intensity B and attenuation coefficient N in the imaging model are rer It is calculated by the imaging parameter estimation module. After the scene depth map d(x) is obtained, the imaging model formula can be used to calculate and generate a degraded image.
[0065] The underwater image restoration-degraded reconstruction branch network includes an image restoration module, a depth estimation module and an imaging parameter estimation module, wherein the imaging parameter estimation module includes a background light estimation module and a degradation coefficient estimation module; the connection relationship of the modules is: the original image is input into the image restoration module and the imaging parameter estimation module respectively, the image restoration module is connected to the depth estimation module, the depth obtained by the depth estimation module and the imaging parameters output by the imaging parameter estimation module are fused through the imaging model to output the degraded image corresponding to the enhanced image; the image restoration module adopts a symmetrical U-shaped network structure; the depth estimation module adopts a multi-scale dense residual module; the imaging parameter estimation module is an RGB image channel separation module, a background light feature extraction module of each channel and a light attenuation feature extraction module of each channel in parallel, the background light feature extraction module is connected to the background light estimation value fusion module of the three channels, and the water medium attenuation feature extraction module is connected to the water medium attenuation value fusion module of the three channels.
[0066] The natural image degradation reconstruction-restoration branch network includes a depth estimation module and an image restoration module; the depth estimation module at the natural image input end, the depth d(X2) output by the depth estimation module, the natural image degradation image I(X2) output by the imaging model fusion output, and the restored natural image obtained by the image restoration module The imaging model fusion formula is: Where: J(X2) is a natural image, N rer =-log(I(X2) / J(X2)) / d(X2) is the degradation coefficient, and B is the background light intensity.
[0067] The training process of the training network is as follows:
[0068] Step 1: Obtain an underwater image dataset and an equal number of color natural image datasets, and establish a training set and a test set containing unpaired reference images. Randomly select multiple underwater images involving different underwater scenes and covering different underwater targets from the public underwater image dataset, and select the same number of high-quality clear natural images as unpaired reference images. Divide the acquired images into two parts according to the ratio to construct the training set and the test set.
[0069] An adversarial learning strategy is established for parameter learning of the image restoration module and the image degradation module. Different loss functions are used to measure the input-output differences of the degradation and complex atomic networks, and unpaired data feature learning is realized, which enables the degradation and complex atomic networks to accurately approximate the real underwater degradation process and generate clear images. The underwater image is first cleared by the restoration module, and then the degradation effect is reproduced by the degradation module. At the same time, the unpaired label image undergoes an opposite process. This cycle is continuously optimized by adversarial loss and cycle consistency loss, in which two symmetric discriminators evaluate the authenticity of the image.
[0070] The above-mentioned degradation sub-network and complex atomic network are combined and connected through an adversarial learning strategy to construct an underwater image restoration-degraded reconstruction branch and a ground image degradation reconstruction-restoration branch, respectively, thereby forming a self-supervised underwater image enhancement framework, and the self-supervised image enhancement framework is trained using the training set until convergence.
[0071] In order to ensure that the neural network can generate images with good visual effects, an objective function is formulated to guide the generator to learn to improve the perceived image quality so that the generated images are close to their respective reference images in terms of their overall appearance and high-level feature representation. This objective function contains four loss functions, namely adversarial loss, cycle consistency loss, transfer map loss and color loss, which together constitute the total loss function of network training.
[0072] Among them, the adversarial loss L1 encourages the generator to create realistic images that are difficult to distinguish by the discriminator, thereby improving the quality of the restored image.
[0073]
[0074] Among them, D represents the discriminator, G represents the generator, and x represents the real image. Represents the noisy input. The cycle consistency loss L2 ensures that the image can maintain its original properties after the restoration and re-degradation process, which not only promotes the stable training of the network, but also enhances the credibility of the generated image:
[0075] L2=E x~Pdata(x) [R(H(x)-x1]
[0076] Among them, R and H represent the degradation and restoration networks. The transmission map loss L3 is dedicated to accurately predicting the scene depth, background light intensity and light attenuation coefficient, which is used to characterize the physical properties of degraded images in the underwater imaging process:
[0077] L3=t pre -t tar1
[0078] Among them, t pre represents the predicted transmission graph, t tar Represents the target transmission diagram based on the physical model. Color loss L4 is used to correct the color deviation that may occur during image restoration and maintain the natural harmony of image colors:
[0079] L4=I c -I α 2
[0080] Among them, I c =[I r ,I g ,I b ] represents the average value of the three channels of RGB image, I α is a constant, generally [0.5, 0.5, 0.5], which forces the network to adjust the average color value close to the constant I α The above four loss functions are combined to form the total loss function L total , that is:
[0081]
[0082] Among them, λ i represents the weight coefficient, and there is
[0083] After training is completed, the underwater degraded image to be enhanced is input into the image restoration module in the self-supervised underwater image enhancement framework after convergence, and the enhanced high-quality and clear underwater image is output. The implemented network is an underwater image restoration-degraded reconstruction branch network, and the steps are as follows:
[0084] Step 1: Perform image restoration on the original underwater image data I(X1) to remove the scattering blur and color deviation in the underwater degraded image to obtain the reconstructed image data J(X1);
[0085] Step 2: Use the reconstructed image data to perform depth estimation to obtain depth information of the reconstructed image data to form depth image data d(X1) of the underwater image;
[0086] Step 3: The depth image data d(X1) of the underwater image is calculated and processed using the imaging model formula to obtain an enhanced underwater complex environment degradation image, namely
[0087] The imaging processing formula includes the depth information d(X1) in the reconstructed image data, and the formula is:
[0088]
[0089] in: To enhance the degraded image in underwater complex environment, N rer is the degradation coefficient, and B is the background light intensity.
[0090] The background light intensity B is obtained by separating the original underwater image data I(X1) into three color channels RGB, and calculating the background light estimation values B of the three color channels respectively. r ,B g ,B b The background light intensity B is obtained by fusion through weight sharing.
[0091] The degradation coefficient N rer The original underwater image data I(X1) is separated into three color channels, RGB, and the attenuation coefficients N of the three colors of light in the water medium are calculated respectively. rer =-log(I(X1) / J(X1)) / d(X1).
[0092] To verify the effectiveness of the proposed underwater image enhancement method, a series of experiments were conducted on a Windows system using Python 3.7 and PyTorch 1.9 deep learning frameworks. The Adam optimizer was used for network training, with a learning rate of 0.0001 and a batch size of 16. To train the network, random cropping to 256×256 images and random flipping were performed to enhance the representativeness and diversity of the data, in order to improve the generalization performance of the model and avoid overfitting.
[0093] Different methods were tested and compared on the public data datasets UIEB and RUIE, and five evaluation indicators, namely peak signal-to-noise ratio (PSNR), structural similarity (SSIM), DeltaE, UCIQE and NIQE, were used to quantitatively compare the effects of different algorithms, as shown in Table 1. The method based on the histogram equalization algorithm (CLAHE), the method based on the fast underwater image enhancement network (FUnIE-GAN) and the method based on the shallow underwater image network (Shallow-UWnet) were used to process underwater images. The results show that the method proposed in this paper has the highest scores in the three reference indicators on the datasets UIEB and RUIE. As shown in Table 1.
[0094] Table 1 Test results of different methods on UIEB and RUIE datasets
[0095]
[0096] In the comparison of supervised methods, the proposed algorithm achieved the highest values in both PSNR and SSIM, indicating its excellent performance in image detail preservation and overall structure restoration. In particular, the DeltaE value of the proposed algorithm is the lowest, indicating that the proposed algorithm can ensure the color fidelity and visual authenticity of the restored image. In addition, compared with the unsupervised method, our method performs well in all indicators. It is particularly noteworthy that in the most challenging UCIQE indicator among unsupervised methods, the proposed algorithm has a higher indicator value, showing that the color of its restored image is more balanced. In the NIQE no-reference image quality evaluation indicator, our method performed best with a score of 3.634, surpassing all unsupervised methods, which emphasizes the superiority of our algorithm in overall image quality. This result highlights the ability of our method to maintain high-quality restoration without the need for a reference image.
[0097] In summary, the proposed algorithm can restore images of the same quality as or even better than supervised methods without relying on paired training data, especially in terms of color fidelity and image authenticity. The enhanced images generated by the proposed algorithm are generally better, with richer texture details and stronger generalization ability, and can be applied to a variety of underwater imaging environments to obtain clear images.
[0098] The present invention discloses a self-supervised underwater image enhancement method based on an adversarial learning strategy, which mainly solves the problem of stable high-definition perception of imaging systems in complex and changeable underwater scenes. However, the existing supervised learning restoration methods are limited by the acquisition of paired data sets, and their generalization capabilities are difficult to guarantee, which often limits their actual use.
[0099] The present invention proposes a multi-branch self-supervised underwater image enhancement framework to realize the encoding of the underwater imaging process, which can accurately obtain the image color, light intensity and attenuation information, and more realistically simulate the underwater imaging process. The restoration network, degradation network, backgroundization, and attenuation coefficient estimation sub-network structures are designed, which are respectively used to reconstruct clear images, generate degraded images, estimate the scene background light intensity, and model the transmission attenuation of the imaging light field. Each sub-network structure can autonomously learn parameters from the degraded image to enhance the expression ability of the corresponding function. On this basis, the underwater image imaging network is formed by connecting and combining through the self-supervised mechanism. The sub-networks are mutually coordinated and integrated to reproduce the underwater imaging process from multiple dimensions such as light propagation, ambient light intensity estimation, and scene color modeling, so as to achieve more accurate and natural underwater imaging process modeling. Finally, the restoration sub-network is used to output the restored image.
[0100] The present invention proposes a cyclic adversarial learning strategy. A color loss, a transmission map loss, an adversarial loss and a cycle consistency loss are constructed, and the four loss functions are combined to form a cyclic joint loss function using adversarial loss and cycle consistency loss, introducing color loss and transmission map loss, and realizing self-supervised learning on unpaired data. The adversarial loss encourages the generator to create real images that are difficult to be distinguished by the discriminator to improve the quality of the restored image. The cycle ensures that the image can maintain its original properties after undergoing the restoration and re-degradation process, which helps to stabilize the training network and enhance the credibility of the generated image. The transmission map loss can prompt the network to accurately predict the scene depth, background light intensity and attenuation degree, and simulate the physical characteristics of the degraded image. The color loss corrects the color deviation that may occur in the image restoration process to ensure that the image color is naturally balanced. The four loss functions are intertwined and connected, and the sub-networks are connected together to form an underwater imaging network, which autonomously learns the physical characteristics of the underwater environment and improves the model to ensure that the image can maintain its original properties after undergoing the restoration and re-degradation process.
[0101] The underwater image restoration method proposed in the present invention is used to restore degraded images in complex underwater scenes with high quality. The system adopts a multi-branch network structure with integrated functions and uses each functional sub-network for autonomous learning. Therefore, the model has strong generalization ability and can adapt to different underwater scenes with stable imaging effects. Then, through the cyclic adversarial learning strategy, the network's own supervisory function is stimulated to form a mutual supervision mechanism to ensure the stability and reliability of the sub-network functions, thereby ensuring the stability of the enhanced image of variable and complex water bodies. It has broad application prospects and important application value in the fields of marine safety, underwater resource exploration, and water environment monitoring.
Claims
1. A self-supervised underwater image enhancement method based on adversarial learning strategy, characterized in that Here are the steps: Step 1: Perform image restoration on the original underwater image data I(X1) to remove the scattering blur and color deviation in the underwater degraded image to obtain the reconstructed image data J(X1); Step 2: Use the reconstructed image data to perform depth estimation to obtain depth information of the reconstructed image data to form depth image data d(X1) of the underwater image; Step 3: The depth image data d(X1) of the underwater image is calculated and processed using the imaging model formula to obtain an enhanced underwater complex environment degradation image, namely The imaging processing formula includes the depth information d(X1) in the reconstructed image data, and the formula is: in: To enhance the degraded image in underwater complex environment, N rer is the degradation coefficient, and B is the background light intensity.
2. The self-supervised underwater image enhancement method based on adversarial learning strategy according to claim 1, characterized in that: The background light intensity B is obtained by separating the original underwater image data I(X1) into three color channels RGB, and calculating the background light estimation values B of the three color channels respectively. r ,B g ,B b The background light intensity B is obtained by fusion through weight sharing.
3. The self-supervised underwater image enhancement method based on adversarial learning strategy according to claim 1, characterized in that: The degradation coefficient N rer The original underwater image data I(X1) is separated into three color channels, RGB, and the attenuation coefficients N of the three colors of light in the water medium are calculated respectively. rer =-log(I(X1) / J(X1)) / d(X1).
4. A network structure for implementing the self-supervised underwater image enhancement method based on adversarial learning strategy as described in any one of claims 1 to 3, characterized in that The invention comprises an image restoration module, a depth estimation module and an imaging parameter estimation module, wherein the imaging parameter estimation module comprises a background light estimation module and a degradation coefficient estimation module; the connection relationship of the modules is as follows: the original image is respectively input into the image restoration module and the imaging parameter estimation module, the image restoration module is connected to the depth estimation module, the depth obtained by the depth estimation module and the imaging parameters output by the imaging parameter estimation module are fused through an imaging model to output an enhanced image; the image restoration module adopts a symmetrical U-shaped network structure; the depth estimation module adopts a multi-scale dense residual module; the imaging parameter estimation module is an RGB image channel separation module, a background light feature extraction module of each channel and a light attenuation feature extraction module of each channel in parallel, the background light feature extraction module is connected to a background light estimation value fusion module of three channels, and the water medium attenuation feature extraction module is connected to a water medium attenuation value fusion module of three channels.
5. The network structure according to claim 4, characterized in that: The symmetrical U-shaped network structure of the image restoration module is as follows: the input side includes four symmetrical feature processing layers S1, S2, S3, and S4, and the output of each feature processing layer is connected to the corresponding feature processing layer in the feature enhancement layer on the output side; each feature processing layer S i It includes several connected residual convolution blocks, and the number of residual convolution blocks in different feature processing layers is different; the number of residual convolution blocks contained in the S1, S2, S3, and S4 feature processing layers is 1, 2, 4, and 7 respectively; the first layer of each residual convolution block is a 1×1 convolution layer based on feature channel transformation, which is connected to a 3×3 convolution layer for extracting spatial features, and the last layer is a 1×1 convolution layer for merging and adjusting multi-channel features, and batch normalization and activation function processing are performed after each convolution.
6. The network structure according to claim 4, characterized in that: The multi-scale dense residual module of the depth estimation module has a top-level branch that maintains the original resolution and is processed through initial convolution and continuous 3-layer RDB to capture fine-grained local features; in the middle branch, the resolution is downsampled to 128×128 through a convolution layer with a step size of 2, deep feature learning is performed through five layers of RDB, and then the resolution is restored to 256×256 through bilinear upsampling to extract medium-grained features; the bottom branch focuses on the extraction of global features, downsampled to 64*64 resolution through two levels, and finally upsampled and convolved to restore to the original scale after eight layers of RDB processing.
7. The network structure according to claim 4, characterized in that: In the imaging parameter estimation module, for the background light feature extraction or the light attenuation feature extraction in the water medium of each color channel, a series of 3×3 convolution layers and PReLU activation function processing are respectively performed to extract the background light feature or the water medium attenuation feature extraction of each channel, and then a maximum pooling operation and layer-by-layer refinement are performed. Finally, a single value of the background light estimation value or the single value of the light attenuation estimation value in the water medium of each channel is obtained through an average pooling layer and subsequent convolution processing, and then the background light intensity B or the degradation coefficient N is obtained through weight sharing. rer .
8. A training network structure of a network structure of a self-supervised underwater image enhancement method based on an adversarial learning strategy, characterized by: A training network is constructed based on the network structure described in any one of claims 4 to 7, and a training-assisted natural image processing network is added, including a depth estimation module and an image restoration module; the depth estimation module at the natural image input end, the depth d(X2) output by the depth estimation module, the natural image degraded image I(X2) output by the imaging model is output, and the natural image is restored by the image restoration module. The imaging model fusion formula is: Where: J(X2) is a natural image, N rer =-log(I(X2) / J(X2)) / d(X2) is the degradation coefficient, and B is the background light intensity.
9. The training network structure according to claim 8, characterized in that: When training the training network structure, firstly, an underwater image data set and an equal number of color natural image data sets are established to form a training set and a test set; during the training, an adversarial learning strategy is established to learn the parameters of the image restoration module and the image degradation module; The objective function includes four loss functions, namely, adversarial loss function, cycle consistency loss function, transfer map loss function and color loss function, which together constitute the total loss function of network training; The adversarial loss function is: Among them, D represents the discriminator, G represents the generator, and x represents the real image. represents the noise input; The cycle consistency loss function is: L2=E x~Pdata(x) [||R(H(x)-x||1] Where: R, H represent the degraded and restored networks; The transmission graph loss function is: L3=||t pre -t tar ||1 Among them, t pre represents the predicted transmission graph, t tar Represents a target transfer diagram based on a physical model The color loss function is: L4=||I c -I α || 2 Among them, I c =[I r ,I g ,I b ] represents the average value of the three channels of RGB image, I α is a constant, taking [0.5,0.5,0.5]; Total loss function Among them, λ i represents the weight coefficient, and 10. A computer program product, characterized in that It includes computer executable instructions, which, when executed, are used to implement the self-supervised underwater image enhancement method based on adversarial learning strategy described in claims 1 to 3, and the process of network structure training described in claim 9.
Citation Information
Patent Citations
Super-resolution graph recovery method for simultaneously enhancing underwater images
CN111882489A
Cited By
Underwater image enhancement method driven by internal and external feature learning
CN119205536A
Underwater degraded image restoration method, storage medium and electronic equipment
CN119323535A
A method for repairing underwater degraded images, a storage medium and an electronic device
CN119323535B
Underwater image color constancy enhancement method and system
CN119417717A
Underwater environment three-dimensional reconstruction method
CN119600215A
