Construction method of underwater image enhancement model based on improved U-Net network architecture

By improving the U-Net network architecture, using point convolution, depth convolution and simplified channel attention mechanism, the problems of unreasonable assumptions and insufficient data sets in underwater image enhancement are solved, and more efficient image enhancement and stability are achieved. , adapt to complex underwater environments.

CN118608929APending Publication Date: 2024-09-06CHINA YANGTZE POWER +1

Patent Information

Application Number
CN202410700075.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing underwater image enhancement methods have unreasonable assumptions in complex and dynamic underwater environments, resulting in over-enhancement and over-saturation of images, and learning-based methods are limited by insufficient data sets, affecting image quality.

Method used

Adopt an improved U-Net network architecture, replace standard convolutions with point convolutions and depth convolutions, introduce a simplified channel attention mechanism and SK fusion module, build an end-to-end underwater image enhancement model, dynamically fuse global information and reduce calculations quantity.

Benefits of technology

It improves the quality of image enhancement, reduces the amount of calculation and model parameters, enhances feature acquisition capabilities and network stability, adapts to complex underwater environments and reduces the impact of noise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608929A
    Figure CN118608929A
Patent Text Reader

Abstract

The invention discloses an underwater image enhancement model construction method based on an improved U-Net network architecture, and the method comprises the steps: firstly replacing the standard convolution of a U-Net network through point convolution and deep convolution, thereby constructing an image enhancement model network architecture based on the U-Net network, and the model architecture comprises a plurality of basic blocks and an SK fusion module; then constructing a structure of a basic block; then, a simplified channel attention mechanism is introduced into the constructed U-Net network basic block; and finally, constructing the structure of the SK fusion module to complete the construction of the model network architecture. The method solves the problem that the image enhancement quality is influenced by image transition enhancement and supersaturation due to the fact that a model in the prior art is unreasonable for a complex and dynamic underwater environment hypothesis, and has the characteristic that the effect of the designed model can still exceed that of the prior art on the premise of ensuring the light weight of a network structure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of underwater image recognition, and in particular to a method for constructing an underwater image enhancement model based on an improved U-Net network architecture. Background Art

[0002] In order to better understand the situation of underwater dams or hydropower stations and improve the inspection and maintenance level of their internal structures and equipment, it is crucial to obtain accurate underwater information; and underwater optical images, as an important medium for transmitting these underwater information, play an important role. However, the light propagation inside underwater dams or hydropower stations is complex. As the water depth increases, the light decays rapidly, making the underwater image blurry and dim. At the same time, the refraction and scattering effects of water on light will cause the image to be distorted, affecting our judgment of the true position and shape of the object. In addition, noise sources such as water flow, bubbles, and suspended particles will further reduce the quality and clarity of the image, making the underwater image often in a blue-green blurred state. Therefore, although we use underwater machine vision systems, it is still a challenge to obtain clear images. In order to deal with the problem of light attenuation, special light sources and sensors are usually required, which undoubtedly increases the difficulty and cost of our exploration and maintenance of underwater dams or hydropower stations. In order to ensure that the computer vision system carried by underwater robots and other equipment can work properly, researchers need to face the challenges of removing underwater noise and enhancing the quality of underwater images. This is to ensure that we can accurately and efficiently inspect and maintain underwater dams or hydropower stations, thereby ensuring their safe and stable operation.

[0003] Existing underwater image enhancement methods are mainly divided into methods based on physical models, methods based on non-physical models, and methods based on deep learning. Underwater image enhancement methods based on physical models mainly focus on accurately estimating transmittance, using estimated medium transmittance and other key underwater imaging parameters such as global background light to obtain clear images through reverse inference of physical underwater imaging models. However, the existing technology has the following defects: 1. The performance of physical model-based methods is poor in real underwater scenarios. This is because the model assumptions are not always reasonable for complex and dynamic underwater environments, and it is difficult to evaluate multiple model parameters simultaneously. 2. Most algorithms based on non-physical models will lead to over-enhancement and over-saturation of images; 3. Most learning-based methods are limited by insufficient data sets, and small-scale data sets will greatly reduce the quality of model training.

[0004] Therefore, it is necessary to design a method for constructing an underwater image enhancement model based on an improved U-Net network architecture to solve the above problems. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a method for constructing an underwater image enhancement model based on an improved U-Net network architecture, aiming to solve the problem that the model of the prior art makes unreasonable assumptions about the complex and dynamic underwater environment, resulting in image transition enhancement and oversaturation, thereby affecting the image enhancement quality. The method has the characteristics that the designed model effect can still surpass the prior art while ensuring the lightweight network structure.

[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is: A method for constructing an underwater image enhancement model based on an improved U-Net network architecture, comprising: S1, replaces the standard convolution of the U-Net network by point convolution and depth convolution, thereby building an image enhancement model network architecture based on the U-Net network, including multiple basic blocks and SK fusion modules; S2, the structure of building basic blocks; S3, introduces a simplified channel attention mechanism inside the constructed U-Net network basic block; S4, construct the structure of the SK fusion module.

[0007] Preferably, in step S1, the network architecture of the image enhancement model based on the U-Net network is an end-to-end structure, generating feature maps of different sizes at each level, so that the network can capture features of different scales.

[0008] Preferably, in step S1, the network architecture of the image enhancement model based on the U-Net network includes seven stages, and the number of basic blocks in each stage is 2, 2, 2, 4, 2, 2 and 2 respectively.

[0009] Preferably, in step S1, the image enhancement model network architecture based on the U-Net network dynamically fuses feature maps from different paths through an SK fusion module to achieve skip connection; A convolutional layer of size 3×3 is connected in series at the network input and output ends respectively; A global residual structure is set at the input and output positions to improve the stability of the network.

[0010] Preferably, in step S2, the basic block is composed of two consecutive local residual structures, and the structure of the basic block is: Layer normalization is selected as the first layer of the basic block, and after layer normalization, point-wise convolution and depth-wise convolution are used in series. The depth convolution kernel size is 3×3, and a separate convolution operation is performed on each channel of the input; The point-by-point convolution kernel size is 1×1, and feature extraction is performed on a single point; The activation function uses the Gaussian error linear unit function GELU.

[0011] Preferably, in step S3, introducing a simplified channel attention mechanism into the constructed U-Net network basic block includes: First, the spatial information is compressed into channels, and then multi-layer perception is applied to it to calculate the channel attention, which is used to weight the feature map. The formula is expressed as: ; in, represents the feature map, represents the global average pooling operation that aggregates spatial information into channels; is the nonlinear activation function Sigmoid, , is a fully connected layer, and the ReLU activation function is used between fully connected layers; finally, Represents a channel domain dot product operation; Simplify the channel attention expression: ; in, Represents the feature map, and the channel attention calculation is recorded as function ; Only the global information and channel information in the channel attention are retained, and the two are aggregated to obtain a simplified channel attention mechanism: ; Get the simplified channel attention mechanism SCA.

[0012] Preferably, in step S4, constructing the structure of the SK fusion module includes readjusting the SK module to obtain the SK fusion module: Assume that the two feature maps are and ,in is the feature map from the skip connection, is the feature map from the main path of the network; First enter Point-wise convolutional layer , and then and They are input into the global average pooling layer and the multi-layer perception structure respectively. The multi-layer perception structure consists of dimensionality reduction convolution, ReLU activation function and dimensionality increase convolution. Finally, the fusion weight is obtained through the softmax function. The specific calculation process is as follows: ; ; in , is the fusion weight, It is a multi-layer perception structure. is the global average pooling layer, is the feature fusion result.

[0013] The present invention provides a method for constructing an underwater image enhancement model based on an improved U-Net network architecture, and the beneficial effects are as follows: 1. The present invention widely uses point convolution and depth convolution to replace traditional convolution, effectively aggregates spatial information and transforms features, and reduces the amount of calculation. The SK fusion module is introduced into the model to dynamically fuse global information and improve the feature acquisition capability.

[0014] 2. The present invention boldly adopts a simplified channel attention mechanism within the basic block to further improve the performance of the network in extracting channel information while reducing the amount of computation.

[0015] 3. The present invention uses layer normalization as the first layer of the basic block in the design. After layer normalization, point-by-point convolution and depth-wise convolution are combined in series, which can compress model parameters, accelerate the calculation process, and enhance the model performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The present invention will be further described below in conjunction with the accompanying drawings and embodiments: Figure 1 A schematic diagram of the basic network architecture of the present invention; Figure 2 It is a structural diagram of the basic blocks in the network architecture of the present invention; Figure 3 Schematic diagram of the channel attention mechanism and simplified attention mechanism of the present invention; Figure 4 It is a structural diagram of the SK fusion module in the network architecture of the present invention. DETAILED DESCRIPTION

[0017] Embodiment 1: like Figure 1 As shown, a method for constructing an underwater image enhancement model based on an improved U-Net network architecture includes: S1, replaces the standard convolution of the U-Net network by point convolution and depth convolution, thereby building an image enhancement model network architecture based on the U-Net network, including multiple basic blocks and SK fusion modules; S2, the structure of building basic blocks; S3, introduces a simplified channel attention mechanism inside the constructed U-Net network basic block; S4, construct the structure of the SK fusion module.

[0018] Preferably, in step S1, the network architecture of the image enhancement model based on the U-Net network is an end-to-end structure, generating feature maps of different sizes at each level, so that the network can capture features of different scales.

[0019] Different from U-Net, the present invention abandons the simple stacking operation of convolutional layers and maximum pooling layers, and instead fills the network with carefully designed basic blocks to enhance the ability to extract features.

[0020] Preferably, in step S1, the network architecture of the image enhancement model based on the U-Net network includes seven stages, and the number of basic blocks in each stage is 2, 2, 2, 4, 2, 2 and 2 respectively.

[0021] Preferably, in step S1, the U-Net network-based image enhancement model network architecture dynamically fuses feature maps from different paths through an SK fusion module to achieve skip connections, rather than directly cascading the up- and down-sampling parts.

[0022] A convolutional layer of size 3×3 is connected in series at the network input and output ends respectively; Preferably, in order to reduce the possible gradient vanishing or gradient explosion during gradient back propagation, the present invention further adds a global residual structure at the input and output positions to improve the stability of the network.

[0023] like Figure 2 As shown, preferably, in step S2, the basic block is composed of two continuous local residual structures. Simplicity and effectiveness are the most significant features of this block. In order to achieve simplicity, the present invention attempts to use common components in neural networks to form a basic block; the structure of the basic block is: Layer normalization is selected as the first layer of the basic block, and after layer normalization, point-wise convolution and depth-wise convolution are used in series. The size of the deep convolution kernel is 3×3, and a separate convolution operation is performed on each input channel, which can compress the model parameters and speed up the calculation process; The point-by-point convolution kernel size is 1×1, and feature extraction on a single point can enhance the model's performance. The activation function uses the Gaussian error linear unit function GELU instead of the linear rectification function ReLU (Linear rectification function) commonly used in machine vision tasks. While maintaining the image denoising performance, it achieves a significant gain in image deblurring.

[0024] like Figure 3 As shown in (a), preferably, in step S3, introducing a simplified channel attention mechanism into the constructed U-Net network basic block includes: First, the spatial information is compressed into channels, and then multi-layer perception is applied to it to calculate the channel attention, which is used to weight the feature map. The formula is expressed as: ; in, represents the feature map, represents the global average pooling operation that aggregates spatial information into channels; is the nonlinear activation function Sigmoid, , is a fully connected layer, and the ReLU activation function is used between fully connected layers; finally, Represents a channel domain dot product operation; like Figure 3 As shown in (b), adding a channel attention mechanism will greatly enhance the performance of the model, but it will also increase the complexity within the basic block. Therefore, simplification measures need to be taken to improve computational efficiency; the channel attention expression is simplified: ; in, Represents the feature map, and the channel attention calculation is recorded as function ; Only the global information and channel information in the channel attention are retained, and the two are aggregated to obtain a simplified channel attention mechanism: ; The simplified channel attention mechanism SCA is obtained. The obtained SCA is simpler and is no longer limited to the calculation of non-linear activation functions ReLU and Sigmoid. This simplification method does not reduce the image quality.

[0025] like Figure 4 As shown, preferably, in step S4, constructing the structure of the SK fusion module includes readjusting the SK module to obtain the SK fusion module: Assume that the two feature maps are and ,in is the feature map from the skip connection, is the feature map from the main path of the network; First enter Point-wise convolutional layer , and then and They are input into the global average pooling layer and the multi-layer perception structure respectively. The multi-layer perception structure consists of dimensionality reduction convolution, ReLU activation function and dimensionality increase convolution. Finally, the fusion weight is obtained through the softmax function. The specific calculation process is as follows: ; ; in , is the fusion weight, It is a multi-layer perception structure. is the global average pooling layer, is the feature fusion result.

[0026] Compared with the simple concatenation of features at different levels in U-net, the SK fusion module can better analyze the proportion of feature maps in information transmission, so that the feature maps can convey richer information.

[0027] Embodiment 2: The present invention also provides a new underwater image enhancement algorithm based on a U-Net network architecture. The algorithm is based on an underwater image enhancement model based on an improved U-Net network architecture provided by the present invention. The specific steps are as follows: a) Based on the U-Net network architecture, point convolution and depth convolution are used to replace the traditional standard convolution; b) Design a mechanism to dynamically fuse global information; c) A simplified channel attention mechanism is introduced within the basic block of the U-Net network; d) Design a training strategy that is not commonly used for image augmentation.

[0028] e) Layer normalization is designed as the first layer of the basic block, followed by a series combination of point-wise convolution and depth-wise convolution.

[0029] In a), point convolution and depth convolution are used to replace traditional standard convolution to achieve more efficient spatial information aggregation and feature conversion. Point convolution can effectively adjust and enhance the channel dependency of feature maps by linearly combining and interacting information between channels without considering the dependency on spatial position. At the same time, depth convolution focuses on spatial feature extraction within each channel. This convolution method applies convolution filters independently to each input channel, thereby achieving fine capture of specific spatial information. The combination of these two convolution methods not only improves the accuracy of feature extraction, but also effectively reduces the model complexity and computational complexity, which is especially important for resource-constrained underwater robots.

[0030] In b), the feature acquisition capability is further improved through the mechanism of dynamic fusion of global information, and the fusion weights between different feature channels are adaptively adjusted according to the characteristics of the input feature map. When facing the complex and changeable underwater dam environment, the model can dynamically optimize the degree of attention to different features, so as to better capture and utilize global information. This fusion strategy not only enhances the representation ability and generalization performance of the model, but also makes the algorithm more flexible and robust in processing various underwater image tasks.

[0031] In c), the algorithm cleverly introduces a simplified channel attention mechanism inside the basic block of the U-Net network. This improvement not only significantly improves the network's performance in extracting and utilizing channel information, but also effectively reduces the amount of computation, thereby achieving more efficient and accurate underwater image processing. The simplified channel attention mechanism allows the network to adaptively focus on and emphasize channel features that are more important for image enhancement tasks. By assigning different weights to each channel, the mechanism helps the model focus on key information in underwater images of dams or hydropower stations, such as edges, textures, and colors, thereby improving the effect of image enhancement. At the same time, the simplified design of this attention mechanism also means that it can achieve the above functions without adding too much computational burden, which is crucial for underwater dam robots in processing large-scale underwater image data or real-time image processing tasks. In addition, by introducing a simplified channel attention mechanism, the algorithm also enhances the flexibility and adaptability of the model. When faced with underwater environments with different water quality, lighting conditions, and noise levels, the model can dynamically adjust the channel features it focuses on to better adapt to various complex situations. This capability is extremely valuable for underwater image enhancement tasks in real-world applications, ensuring that the model maintains excellent performance in a variety of challenging environments such as dams or hydroelectric power stations.

[0032] In d), a non-traditional training strategy is designed. This strategy is not commonly used in the field of image enhancement, but it can show excellent training results on simulated small-scale datasets. Specifically, the algorithm introduces these uncommon training strategies during the training process, using non-standard loss functions, mixed precision training and training warm-up strategies. The combination of these strategies enables the model to focus more on the key features in underwater images during training, while effectively avoiding overfitting, especially when the dataset is small. In this way, the algorithm can achieve good training quality on simulated small-scale datasets. This training method not only improves the generalization performance of the model, but also provides a feasible solution for scenarios in practical applications where data acquisition is difficult or labeling is costly.

[0033] In e), two consecutive local residual structures are used to form the basic module. It is inferred that layer normalization plays an important role in model training and image restoration, and layer normalization is selected as the first layer of the basic block. After layer normalization, point-by-point convolution and depth-wise convolution are combined in series. The depth-wise convolution kernel size is 3×3, and a separate convolution operation is performed on each input channel, which can compress model parameters and accelerate the calculation process. The point-by-point convolution kernel size is 1×1, and feature extraction is performed on a single point, which can enhance the model performance.

[0034] The above embodiments are only preferred technical solutions of the present invention and should not be regarded as limiting the present invention. The protection scope of the present invention shall be the technical solutions recorded in the claims, including equivalent replacement solutions of the technical features in the technical solutions recorded in the claims. That is, equivalent replacement improvements within this scope are also within the protection scope of the present invention.

Claims

1. A method for constructing an underwater image enhancement model based on an improved U-Net network architecture, characterized in that: include: S1, replaces the standard convolution of the U-Net network by point convolution and depth convolution, thereby building an image enhancement model network architecture based on the U-Net network, including multiple basic blocks and SK fusion modules; S2, the structure of building basic blocks; S3, introduces a simplified channel attention mechanism inside the constructed U-Net network basic block; S4, construct the structure of the SK fusion module.

2. The method for detecting water leakage at each entrance door of a hydro turbine unit based on image recognition according to claim 1 is characterized in that: In step S1, the network architecture of the image enhancement model based on the U-Net network is an end-to-end structure, which generates feature maps of different sizes at each level, so that the network can capture features of different scales.

3. The method for detecting water leakage at each entrance door of a hydro-turbine unit based on image recognition according to claim 1 is characterized in that: In step S1, the network architecture of the image enhancement model based on the U-Net network includes seven stages, and the number of basic blocks in each stage is 2, 2, 2, 4, 2, 2 and 2 respectively.

4. The method for detecting water leakage at each entrance door of a hydro turbine unit based on image recognition according to claim 1 is characterized in that: In step S1, the U-Net network-based image enhancement model network architecture dynamically fuses feature maps from different paths through the SK fusion module to achieve skip connection; A convolutional layer of size 3×3 is connected in series at the network input and output ends respectively; A global residual structure is set at the input and output positions to improve the stability of the network.

5. The method for detecting water leakage at each entrance door of a hydro turbine unit based on image recognition according to claim 1, characterized in that: In step S2, the basic block consists of two consecutive local residual structures, and the structure of the basic block is: Layer normalization is selected as the first layer of the basic block, and after layer normalization, point-wise convolution and depth-wise convolution are used in series. The depth convolution kernel size is 3×3, and a separate convolution operation is performed on each channel of the input; The point-by-point convolution kernel size is 1×1, and feature extraction is performed on a single point; The activation function uses the Gaussian error linear unit function GELU.

6. The method for detecting water leakage at each entrance door of a hydro turbine unit based on image recognition according to claim 1, characterized in that: In step S3, a simplified channel attention mechanism is introduced into the constructed U-Net network basic block, including: First, the spatial information is compressed into channels, and then multi-layer perception is applied to it to calculate the channel attention, which is used to weight the feature map. The formula is expressed as: ; in, represents the feature map, represents the global average pooling operation that aggregates spatial information into channels; is the nonlinear activation function Sigmoid, , is a fully connected layer, and the ReLU activation function is used between fully connected layers; finally, Represents a channel domain dot product operation; Simplify the channel attention expression: ; in, Represents the feature map, and the channel attention calculation is recorded as function ; Only the global information and channel information in the channel attention are retained, and the two are aggregated to obtain a simplified channel attention mechanism: ; Get the simplified channel attention mechanism SCA.

7. The method for detecting water leakage at each entrance door of a hydro turbine unit based on image recognition according to claim 1, characterized in that: In step S4, constructing the structure of the SK fusion module includes readjusting the SK module to obtain the SK fusion module: Assume that the two feature maps are and ,in is the feature map from the skip connection, is the feature map from the main path of the network; First enter Point-wise convolutional layer , and then and They are input into the global average pooling layer and the multi-layer perception structure respectively. The multi-layer perception structure consists of dimensionality reduction convolution, ReLU activation function and dimensionality increase convolution. Finally, the fusion weight is obtained through the softmax function. The specific calculation process is as follows: ; ; in , is the fusion weight, It is a multi-layer perception structure. is the global average pooling layer, is the feature fusion result.

Citation Information

Patent Citations

  • Pneumonia picture calibrating device and method capable of self-adaptively adjusting size of receptive field

    CN111724345A

  • Image defogging method based on multi-scale coding and decoding

    CN118096589A

Cited By

  • Lightweight underwater image enhancement method

    CN120471775A