A lightweight underwater image enhancement method based on deep learning

Through a lightweight underwater image enhancement method based on deep learning, combined with underwater imaging models and convolutional neural networks, it solves the problem of difficulty in processing underwater images with existing technologies and achieves high-quality, real-time and lightweight underwater image enhancement. Image enhancement for underwater robots.

CN114445288BActive Publication Date: 2024-10-15HARBIN ENG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111614394.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-27
Publication Date
2024-10-15
Estimated Expiration
2041-12-27

AI Technical Summary

Technical Problem

Existing image enhancement algorithms are mainly used in visible light scenes on land, and are difficult to effectively process images in complex underwater environments, especially the greenish and bluish effects caused by water dispersion, absorption and refraction, which cannot be used in underwater environments. achieve good results.

Method used

A lightweight underwater image enhancement method based on deep learning is used, combined with a lightweight convolutional neural network and an underwater imaging model, to design a stable pixel difference network and a background scattered light estimation network. Through a three-layer convolutional neural network and residual Difference network model, enhance underwater images, use UIEB data set for training, optimize convolution kernel parameters and gradient descent method to achieve high-quality image enhancement.

Benefits of technology

It achieves high real-time and lightweight underwater image enhancement while ensuring image quality. It is suitable for underwater robots. The overall memory size is only 156KB. It can effectively and real-time enhance underwater images in different scenarios, meeting the needs of industrial production needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114445288B_ABST
    Figure CN114445288B_ABST
Patent Text Reader

Abstract

The present invention discloses a lightweight underwater image enhancement method based on deep learning. The method enhances the acquired underwater scene picture by combining a lightweight convolutional neural network with an underwater scene imaging model. The method comprises: acquiring a public underwater scene UIEB data set; designing a background scattered light estimation network in combination with the underwater imaging model; designing a stable pixel difference network to prevent the pixel differences of the original image from being ignored in the process of extracting pixels; the overall network design is combined with a residual network model structure to make up for the loss in pixel feature extraction; the algorithm of the present invention meets high real-time performance while ensuring the enhancement quality, and is convenient for application to underwater robots. The overall memory size is only 156KB, and does not take up too much space when applied to underwater robots; the algorithm of the present invention can be applied to actual industrial production while meeting the image enhancement quality and efficiency.
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 a lightweight underwater image enhancement method based on deep learning for the enhancement and restoration of underwater scene pictures. Background Art

[0002] With the development of economy and population growth, land resources are becoming increasingly scarce. However, the ocean covers 70.8% of the earth, which is rich in resources. Therefore, people are urgently exploring marine resources! Because the marine environment is different from the land, it has higher risks and uncertainties. If manual labor is used for underwater operations, there will be life-threatening dangers. Therefore, underwater robots can effectively replace manual labor in dangerous environments.

[0003] The visual system of an underwater robot is an important part of its operation and the key to whether the robot can correctly detect, identify and track targets. Therefore, it is necessary to use image enhancement technology to enhance the important parts of the images collected by the robot and suppress the unimportant parts, so as to obtain higher quality images.

[0004] The current image enhancement algorithms are mostly used in land environments under visible light scenes, such as foggy days, dark light and other scenes, while there are relatively few enhancement algorithms applied to underwater environments. In complex underwater environments, due to the dispersion, absorption and refraction of light by water, underwater images will appear green and blue. Therefore, if the image enhancement algorithms used in land scenes are directly used, good results cannot be achieved.

[0005] With the development of deep learning, it can be found that simple convolutional neural networks can quickly and effectively extract information from images, and now a large number of deep learning algorithms have been implemented in robots. Therefore, combining convolutional neural networks with underwater imaging models can effectively enhance underwater images. Summary of the invention

[0006] The purpose of the present invention is to provide a lightweight underwater image enhancement method based on deep learning, which meets high real-time requirements while ensuring the enhancement quality and is convenient for application in underwater robots.

[0007] The technical solution of the present invention is as follows:

[0008] A lightweight underwater image enhancement method based on deep learning is proposed. By combining a lightweight convolutional neural network with an underwater scene imaging model, the acquired underwater scene images are enhanced. The method includes the following steps:

[0009] Step 1: Obtain the public underwater scene UIEB dataset;

[0010] Step 2: Design a training network based on the underwater imaging model: Use a three-layer convolutional neural network, where the convolution kernel parameter configuration of each layer is adaptively adjusted according to the forward propagation and back propagation during the network training process. Each layer of the network mainly contains two networks: a stable pixel difference network and a background scattered light estimation network;

[0011] The stable pixel difference network performs enhancement processing on each pixel of the input image, using 1*1 convolution, which can restore the difference of the original pixel information of the image while ensuring enhancement;

[0012] The background scattered light estimation network adopts a 7*7 convolution with a step size of 2 to achieve large-span feature extraction. While obtaining the global information of the image, the mean operation can effectively suppress noise;

[0013] Combined with the residual network model structure, a 7*7 convolution image information is superimposed on the final output layer to ensure that the characteristics of the original image are not lost in the process of deep information extraction;

[0014] Step 3: Training the dataset: During the training process, each training image corresponds to a real value image as the training target, which belongs to a supervised model; during the training process, the data is divided into batch size = 12 groups, which includes training images and real value images, and the Adam gradient descent method is used for 250 rounds of training, and the output is the final enhanced image;

[0015] Step 4: After the network has finished extracting features, the mean square error loss function is used to perform loss calculation with the true value provided by the training set. After multiple rounds of iterations, the loss function is made to approach 0 and remain stable, and the optimal weights obtained through training are obtained.

[0016] Step 5: Use the trained optimal weights to enhance underwater images in different scenarios.

[0017] Furthermore, the underwater imaging model is:

[0018] I(x)=D(x)t(x)+B(1-t(x))

[0019] Where x represents the pixel coordinate, I(x) is the image obtained by the camera, D(x) represents the light source information directly reflected by the object, t(x) represents the underwater light attenuation coefficient, D(x)t(x) represents the directly transmitted light, B represents the background light, and B(1-t(x)) corresponds to the background scattered light.

[0020] Furthermore, the mean square error loss function is:

[0021]

[0022] Where N represents the dimension, Y train represents the output value of the algorithm of the present invention, Y true Represents the reference image value. After multiple rounds of training, the loss function L approaches 0 and the optimal weight of the network is obtained.

[0023] Compared with the prior art, the present invention has the following beneficial effects:

[0024] The algorithm of the present invention meets high real-time requirements while ensuring the enhancement quality, and is convenient for application to underwater robots. The overall memory size is only 156KB, and it does not take up too much space when applied to underwater robots. The algorithm of the present invention can be applied to actual industrial production while meeting the image enhancement quality and efficiency requirements. It can effectively and real-time enhance underwater pictures in different scenes, and at the same time be lightweight, meeting the requirements for implementation on underwater robots. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 Schematic diagram of underwater imaging model;

[0026] Figure 2 Stabilizing pixel difference networks;

[0027] Figure 3 Background scattered light estimation network;

[0028] Figure 4 The overall network model structure diagram of the algorithm of the present invention;

[0029] Figure 5 Comparison of enhancement effects of different algorithms. DETAILED DESCRIPTION

[0030] The core of the present invention is to provide a lightweight underwater image enhancement method based on deep learning, which can effectively and real-time enhance underwater pictures in different scenes, while being lightweight and suitable for implementation on underwater robots.

[0031] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is described in more detail below in conjunction with the accompanying drawings and specific embodiments:

[0032] See also Figure 1 : According to the underwater imaging model:

[0033] I(x)=D(x)t(x)+B(1-t(x)) (1)

[0034] Where x represents the pixel coordinates, I(x) is the image obtained by the camera, D(x) represents the light source information directly reflected by the object, t(x) represents the underwater light attenuation coefficient, D(x)t(x) represents the directly transmitted light, B represents the background light, and B(1-t(x)) corresponds to the background scattered light. I(x) is a known quantity, while the background scattered light is an unknown quantity that causes low underwater imaging quality. Background scattered light belongs to the global information in the image, so it is necessary to estimate the background scattered light to obtain the directly transmitted part. The whole process involves information such as the three RGB color channels and the light propagation distance, which is a high-dimensional matrix estimation.

[0035] In order to solve the above technical problems, the algorithm of the present invention is designed as follows:

[0036] 1. Obtain a training set of underwater images. The training set used in the present invention is the publicly available UIEB dataset (https: / / li-chongyi.github.io / proj_benchmark.html), which contains 890 underwater scene training images.

[0037] 2. Design a training network in combination with an underwater imaging model. Use the underwater image enhancement deep neural network designed by the present invention to perform forward reasoning on the acquired underwater data set, wherein the underwater image enhancement deep neural network mainly includes a stable pixel difference network and a background scattered light estimation network. Specifically as follows: The present invention uses a three-layer convolutional neural network, wherein the convolution kernel parameter configuration of each layer can be adaptively adjusted according to the forward propagation and back propagation during the network training process. Each layer of the network mainly includes two types of networks: a stable pixel difference network (see Figure 2 ) and the background scattered light estimation network (see Figure 3 ). The stable pixel difference network is mainly used to enhance each pixel of the input image. Therefore, 1*1 convolution is used to restore the difference of the original pixel information of the image while ensuring enhancement; the background scattered light estimation network mainly uses 7*7 convolution with a step size of 2 to achieve large-span feature extraction. While obtaining the global information of the image, the mean operation can effectively suppress noise.

[0038] The overall network design combines the idea of ​​the residual network model structure, and superimposes a 7*7 convolution image information in the final output layer, ensuring that the characteristics of the original image are not lost in the process of deep information extraction from the image. The overall network design is shown in Figure 4 .

[0039] 3. Perform data set training. The algorithm output of the present invention is the final enhanced image. During the training process, each training image corresponds to a real value image as a training target, which belongs to a supervised model. During the training process, the data is divided into a batch size of 12, which includes training images and real value images. The learning rate during the training process is 10 -4, The Adam gradient descent method was used for 250 rounds of training.

[0040] 4. After the network finishes feature extraction, the mean square error loss function is used to perform loss calculation with the true value provided by the training set. After multiple rounds of iterations, the loss function tends to 0 and remains stable, and the optimal weights trained are obtained.

[0041] The loss function of the present invention adopts the mean square error loss function (see formula 2):

[0042]

[0043] Where N represents the dimension, Y train represents the output value of the algorithm of the present invention, Y true Represents the reference image value. After multiple rounds of training, the loss function L approaches 0 and the optimal weight of the network is obtained.

[0044] 5. Use the trained optimal weights to enhance underwater images in different scenes, and conduct subjective and objective comparative analysis with other underwater image enhancement algorithms in terms of enhancement effect and real-time performance.

[0045] In order to verify the effectiveness of the present invention, a series of simulation experiments were designed and conducted and compared with existing classical algorithms.

[0046] The experimental platform was built in the Ubuntu 18.04 environment, and the deep network model was implemented by the PyTorch 1.6 deep learning framework. The computer configuration was: i7-5700HQ CPU@2.70GHz; 16G RAM and NVIDIA 3090GPU.

[0047] The experimental process uses the UIEB dataset combined with the network model of the present invention and the mean square error loss function, and uses the Adam gradient descent method to train 250 rounds, with a batch size of 12. The input and output image resolution is set to 1280*720, and the learning rate is 10 -4 .

[0048] In order to verify the experimental results, three different underwater scenes were selected ( Figure 5In the figure, from top to bottom, they are scene 1, scene 2, and scene 3, respectively. The algorithm of the present invention, HE algorithm [1], ICM algorithm [2], and UDCP algorithm [3] are used for subjective and objective comparative analysis (see Figure 5 ).

[0049] It can be clearly seen from subjective feelings that the presentation effects of the HE algorithm and the algorithm in this paper are significantly better than those of other algorithms. Compared with the HE algorithm, it can be seen that the rock part of the HE algorithm in scene three is obviously reddish. In order to further verify the enhancement effect of the present invention, the reference-free index UIQM is used for objective evaluation [UIQM is a reference-free underwater image evaluation index based on the stimulation of the human visual system]. The UIQM values ​​under each scene are shown in Table 1.

[0050] Table 1 UIQM values ​​of different algorithms in different scenarios

[0051]

[0052] It can be clearly seen from Table 1 that the enhancement effect of the present invention is significantly better than other algorithms. However, when deploying the enhancement algorithm to an underwater robot, the real-time performance of the algorithm also needs to be considered. Table 2 shows the real-time performance comparison between the present algorithm and other algorithms.

[0053] Table 2 Comparison of the operating efficiency of each algorithm

[0054]

[0055] In summary, while ensuring the enhancement effect, the algorithm of the present invention only takes an average of 0.15s to process a single image, which is sufficient to meet the real-time requirements of conventional videos. At the same time, the algorithm designed by the present invention has a simple network structure and the algorithm file size is only 156KB, which hardly takes up too much memory for robot transplantation.

[0056] A lightweight underwater image enhancement method based on deep learning, comprising:

[0057] The underwater image enhancement deep neural network is called to perform forward reasoning on the acquired underwater data set; wherein the underwater image enhancement deep neural network includes: a background scattered light estimation network for extracting global features of underwater images, and a stable pixel difference network for ensuring that the enhanced image meets the pixel difference of the original image; finally, in order to prevent a large amount of pixel information from being lost during the feature extraction process of the underwater image enhancement deep neural network, a residual network structure model is used to build it.

[0058] The background scattered light estimation network includes: in an underwater imaging system, the background scattering amount is an unknown amount that causes low underwater imaging quality and belongs to the global information amount in the image. The background scattered light estimation network uses a convolution layer to extract large-area grouping features of the original underwater image. At the same time, in order to prevent the excessive amount of noise information in the grouped area from interfering with the normal information amount, the features extracted from each area are processed as a whole to reduce the interference degree of the noise information.

[0059] The stable pixel difference network that ensures that the enhanced image meets the pixel difference of the original image includes: the convolution layer in the stable pixel difference network extracts pixel-by-pixel features of the underwater image to obtain the information of each pixel. The activation layer in the stable pixel difference network suppresses or expands each pixel nonlinearly to obtain the incremental weight of each pixel. The pixel information is multiplied by the incremental weight to obtain the enhancement result of each pixel.

[0060] The underwater image enhancement deep neural network is constructed using a residual network structure model, including: since the stable pixel difference network and the background scattered light estimation network will lose certain area information of the image during the feature extraction process, the underwater image enhancement deep neural network structure refers to the residual network model, and performs a separate regional feature extraction on the original image, and the extracted information is then fused with the results extracted by the stable pixel difference network and the background scattered light estimation network.

[0061] The present invention discloses a lightweight underwater image enhancement method based on deep learning. The method enhances the acquired underwater scene picture by combining a lightweight convolutional neural network with an underwater scene imaging model. The method comprises: acquiring a public underwater scene UIEB data set; designing a background scattered light estimation network in combination with the underwater imaging model; designing a stable pixel difference network to prevent the pixel differences of the original image from being ignored in the process of extracting pixels; combining the overall network design with the residual network model structure to make up for the loss in pixel feature extraction; in addition, the overall memory size of the algorithm is only 156KB, which does not take up too much space when applied to underwater robots.

[0062] [1]PISANO E D,ZONG S,HEMMINGER B M,et al.Contrast limited adaptivehistogram equalization image processing to improve the detection of simulatedspiculations in dense mammograms[J].Journal of Digital imaging,1998,11(4):193.

[0063] [2]IQBAL K,SALAM R A,OSMAN A,et al.Underwater Image Enhancement Usingan Integrated Colour Model[J].IAENG International Journal of computerscience,2007,34(2):

[0064] [3]DREWS P L,NASCIMENTO E R,BOTELHO S S,et al.Underwater depthestimation and image restoration based on single images[J].IEEE computergraphics and applications,2016,36(2):24-35.

Claims

1. A lightweight underwater image enhancement method based on deep learning, characterized by: By combining a lightweight convolutional neural network with an underwater scene imaging model, the acquired underwater scene images are enhanced, including the following steps: Step 1: Obtain the public underwater scene UIEB dataset; Step 2: Design a training network based on the underwater imaging model: Use a three-layer convolutional neural network, where the convolution kernel parameter configuration of each layer is adaptively adjusted according to the forward propagation and back propagation during the network training process. Each layer of the network mainly contains two networks: a stable pixel difference network and a background scattered light estimation network; The stable pixel difference network performs enhancement processing on each pixel of the input image, using 1*1 convolution, which can restore the difference of the original pixel information of the image while ensuring enhancement; The background scattered light estimation network adopts a 7*7 convolution with a step size of 2 to achieve large-span feature extraction. While obtaining the global information of the image, the mean operation can effectively suppress noise; Combined with the residual network model structure, a 7*7 convolution image information is superimposed on the final output layer to ensure that the characteristics of the original image are not lost in the process of deep information extraction; Step 3: Training the dataset: During the training process, each training image corresponds to a real value image as the training target, which belongs to a supervised model; during the training process, the data is divided into batch size = 12 groups, which includes training images and real value images, and the Adam gradient descent method is used for 250 rounds of training, and the output is the final enhanced image; Step 4: After the network has finished extracting features, the mean square error loss function is used to perform loss calculation with the true value provided by the training set. After multiple rounds of iterations, the loss function is made to approach 0 and remain stable, and the optimal weights obtained through training are obtained. Step 5: Use the trained optimal weights to enhance underwater images in different scenarios.

2. The method for lightweight underwater image enhancement based on deep learning according to claim 1, characterized in that: The underwater imaging model is: I(x)=D(x)t(x)+B(1-t(x)) Where x represents the pixel coordinate, I(x) is the image obtained by the camera, D(x) represents the light source information directly reflected by the object, t(x) represents the underwater light attenuation coefficient, D(x)t(x) represents the directly transmitted light, B represents the background light, and B(1-t(x)) corresponds to the background scattered light.

3. The lightweight underwater image enhancement method based on deep learning according to claim 1, characterized in that: The mean square error loss function is: Where N represents the dimension, Y train Represents the output value of this method, Y true Represents the reference image value. After multiple rounds of training, the loss function L approaches 0 and the optimal weight of the network is obtained.