A method for enhancing ocean survey image quality based on deep neural network
Through the image quality enhancement method based on deep neural network, the problem of low image quality in ocean survey is solved. Through multi-layer DNN model and edge detection technology, ocean survey images with high resolution and high signal-to-noise ratio are generated, which improves the Survey accuracy and efficiency.
Patent Information
- Application Number
- CN202010921217.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-04
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-09-04
AI Technical Summary
In marine surveys, because the imaging of underwater cameras is interfered by water, lighting and equipment noise, the image quality is not high, and there is a lack of effective image quality enhancement systems, which affects survey accuracy and efficiency.
The image quality enhancement method based on deep neural network is used to preprocess the original image, establish a DNN model with the same multi-layer structure, extract local feature information, perform weighting processing, and generate high-resolution images, combined with edge detection and cosine similarity matching technology. , optimize the image processing process.
The resolution and signal-to-noise ratio of ocean survey images are improved, high-quality and high-precision ocean survey images are generated, and the reliability and efficiency of surveys are enhanced.
Smart Images

Figure CN112116538B
Abstract
Description
Technical Field
[0001] The present invention relates to a method for enhancing the quality of ocean survey images based on a deep neural network, and belongs to the technical field of image processing. Background Art
[0002] With the continuous development of GPU and TPU, deep neural network (DNN) has shown obvious advantages in object classification, object detection and image quality improvement. At present, convolutional neural network (CNN) is more and more widely used in image processing. Although these systems have shown some image signal processing capabilities in applications in different fields, marine surveys rely on cameras on underwater remote control equipment (ROV) to capture images. Due to the interference of water, lighting and particles / bubbles in the field of view of the equipment, the imaging effect is not ideal. Therefore, there is no application of corresponding image quality enhancement system in the field of marine surveys. In addition, there are millions of square kilometers of territorial waters within the nine-dash line in the South China Sea of my country, and there are many resources waiting to be developed and utilized, and marine surveys play a pivotal role. The present invention provides a possibility for high-quality and high-precision marine surveys, and has broad application prospects. Summary of the invention
[0003] In order to solve the above-mentioned defects and shortcomings in the prior art, the present invention provides a method for enhancing the quality of marine survey images based on a deep neural network.
[0004] In order to solve the above technical problems, the present invention provides a method for enhancing the quality of marine survey images based on a deep neural network, comprising the following steps:
[0005] Step 1: Preprocessing of original images: using manual or edge detection algorithms to collect original images of ocean surveys to obtain image contour information;
[0006] Step 2: Image enhancement processing;
[0007] 2.1 Establish a deep neural network DNN model with several layers of the same structure;
[0008] 2.2 Input the image within the selected contour in step 1 into the deep neural network DNN model, and extract different local feature information of the image within the selected contour in turn by different layer blocks in the deep neural network DNN model;
[0009] 2.3 The deep neural network (DNN) model matches the local feature information extracted from each layer block with the labeled data of the layer block, and assigns weights to the local feature information with the highest matching degree;
[0010] Step 3: Generate high-resolution images: The last layer of the deep neural network (DNN) model will enhance the processed image by weighted processing of global features and original image pixels to obtain a high-resolution image.
[0011] Among them, step 2.1 also includes the training process of the deep neural network DNN, which is as follows:
[0012] 2.11 Collect images of the far and near end of the marine survey area, select the image contour, extract the RGB data and position information of the image within the selected contour, and bring the RGB data and position information into the hash function to generate the compressed signature or key of the image within the far and near end selected contours respectively;
[0013] 2.12 Using the cosine similarity detection method, the compressed signatures or key matching of the far-end and near-end images are matched to generate matching pairs of the far-end blurred image and the near-end image with detailed features. The matching pairs are then classified by manual labeling, where the labeled data of the image with high definition is "positive" and the labeled data of the image with low definition is "negative";
[0014] 2.13 Images with labeled data as “positive” generate loss measurements in the deep neural network DNN model;
[0015] 2.14 If the loss measurement value is 1×10 -3 , then a deep neural network DNN model with the ability to distinguish clear ocean survey images from noisy ocean survey images is obtained; otherwise, repeat steps 2.12 and 2.13 for several iterations until the loss measurement value is 1×10 -3 , a deep neural network (DNN) model is obtained that can distinguish between clear ocean survey images and ocean survey images containing noise.
[0016] The edge detection algorithm in step 1 includes the following steps:
[0017] 1.1 Noise reduction: Convolve the original image with the Gaussian smoothing model to remove the noise part of the original image and obtain a denoised image;
[0018] 1.2 Generate edges: Use the filter matrix to detect the edge pixels of the denoised image in the horizontal, vertical and diagonal directions, so as to generate the gradient map and gradient direction of the edge pixels of the denoised image.
[0019] Further, the specific process of step 2.12 cosine similarity detection is as follows:
[0020] The far-end and near-end images are two-dimensionally expanded with the compressed signature or key as a variable to obtain the vectors of the far-end and near-end images; wherein, the vector Image a of the far-end image = [a_1, a_2, ... a_n], a is the compressed signature or key of the far-end image, and the vector Image b of the near-end image = [b_1, b_2, ... b_3], b is the compressed signature or key of the near-end image; then the dot product of the far-end image vector and the near-end image vector is calculated respectively. If the dot product of the selected far-end image vector and the near-end image vector is 1, it means that the selected far-end image matches the near-end image. If the dot product is -1, it means that the far-end image and the near-end image do not match.
[0021] The beneficial technical effects achieved by the present invention are as follows: The present invention provides a method for enhancing the quality of marine survey images based on a deep neural network, which generates a high-resolution image by sampling and marking the original low-quality, high-noise image, and then performs inference processing in a multi-layer trainable deep neural network (DNN) model. Finally, the generated high-resolution image is spliced with the original image to form an marine survey image with high clarity and high signal-to-noise ratio. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A schematic diagram of a process for performing quality enhancement processing on an ocean survey image according to the present invention;
[0023] Figure 2 A flowchart of a process for image processing using the present invention in a specific embodiment of the present invention;
[0024] Figure 3 A block diagram of the deep neural network (DNN) model of the present invention. DETAILED DESCRIPTION
[0025] The present invention will be further described below in conjunction with specific examples. The following examples are only used to more clearly illustrate the technical solutions of the present invention, and are not intended to limit the scope of protection of the present invention.
[0026] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0027] like Figure 1 As shown, the present invention provides a method for enhancing the quality of marine survey images based on a deep neural network, comprising the following steps:
[0028] Step 1: Preprocessing of original images: Collect the original images of ocean surveys manually or using edge detection algorithms to obtain image contour information; the original images of ocean surveys can be obtained from the onboard camera in the remotely operated vehicle (ROV) or the camera carried by the diver, and then the images are provided in two ways. One is that when the ocean survey is in progress, the images can be directly transmitted online; the other is to directly save the images to external storage devices such as hard drives or SD cards.
[0029] Among them, the specific process of the edge detection algorithm is as follows:
[0030] 1.1 Noise reduction: Convolve the original image with the Gaussian smoothing model to remove the noise part of the original image and obtain a denoised image;
[0031] 1.2 Generate edges: Use the filter matrix to detect the edge pixels of the denoised image in the horizontal, vertical and diagonal directions, so as to generate the gradient map and gradient direction of the edge pixels of the denoised image. This process is to track the edge of the denoised image, and the weak edge pixels will be detected and used as the basis for whether the edge of the image is retained; however, during the detection process, the 8 pixels connected around a single pixel will be analyzed using association marks. If at least one pixel is marked as a strong edge pixel, the detected weak pixel will be retained.
[0032] Step 2: Image enhancement processing;
[0033] 2.1 Establish a deep neural network DNN model with several layers of the same structure; the specific training process of the model is as follows:
[0034] 2.11 Perform remote and near-end image acquisition of the marine survey area, select image contours, extract RGB data and position information for the images within the selected contours, and bring the RGB data and position information into the hash function to generate compressed signatures or keys for the images within the remote and near-end selected contours respectively; after inputting the RGB data and position information into the hash function, generate a compressed signature or key with a fixed length, such as the compressed signature length generated in the cryptographic hash function SHA2, SHA3 or Blake2 is between 256 bits and 512 bits.
[0035] 2.12 Using the cosine similarity detection method, the compressed signatures or key matching of the far-end and near-end images are matched to generate matching pairs of the far-end blurred image and the near-end image with detailed features. The matching pairs are then classified by manual labeling, where the labeled data of the image with high definition is "positive" and the labeled data of the image with low definition is "negative";
[0036] The specific process of cosine similarity detection is as follows:
[0037] The far-end and near-end images are two-dimensionally expanded with the compressed signature or key as a variable to obtain the vectors of the far-end and near-end images; wherein, the vector Image a of the far-end image = [a_1, a_2, ... a_n], a is the compressed signature or key of the far-end image, and the vector Image b of the near-end image = [b_1, b_2, ... b_3], b is the compressed signature or key of the near-end image; then the dot product of the far-end image vector and the near-end image vector is calculated respectively. If the dot product of the selected far-end image vector and the near-end image vector is 1, it means that the selected far-end image matches the near-end image. If the dot product is -1, it means that the far-end image and the near-end image do not match.
[0038] 2.13 Images with labeled data as “positive” generate loss measurements in the deep neural network DNN model;
[0039] 2.14 If the loss measurement value is 1×10 -3 , then a deep neural network DNN model with the ability to distinguish clear ocean survey images from noisy ocean survey images is obtained; otherwise, repeat steps 2.12 and 2.13 for several iterations until the loss measurement value is 1×10 -3 , a deep neural network DNN model with the ability to distinguish clear ocean survey images from noisy ocean survey images is obtained. Among them, the loss measurement value is calculated by the loss function, and its value is used to measure the match between the original image and the deep neural network DNN model. The smaller the value, the higher the match, and the clearer the original image. During the training process, the gradient descent method is generally used to optimize the loss measurement value, that is, to solve the minimum value along the gradient descent or to solve the maximum value along the gradient ascent. The optimization iteration formula is: Among them, represents the negative direction of the gradient, ρ k represents the search step length in the gradient direction. The gradient direction can be obtained by taking the derivative of the function, and the step length is determined by the linear search algorithm, that is, the coordinates of the next point are a k+1 Then find the function that satisfies f(a k+1 ) k +1 will do.
[0040] 2.2 Input the image within the selected contour in step 1 into the deep neural network DNN model, and extract different local feature information of the image within the selected contour in turn by different layer blocks in the deep neural network DNN model;
[0041] 2.3 The deep neural network DNN model matches the local feature information extracted from each layer block with the labeled data of the layer block, and assigns weights to the local feature information with the highest matching degree; Weight: The calculation and update of weights in the deep neural network DNN model are determined by the rules of the optimization algorithm. The optimization algorithm will update the value based on the optimal value and weight The sum of is used to calculate the current optimal weight. The calculation process is as follows:
[0042]
[0043] Among them, η is the learning rate, which is often a decimal between [0,1], y is the correct classification of the input sample, and y' is the predicted classification.
[0044] Step 3, generate high-resolution images: The last layer of the deep neural network DNN model will enhance the processed image and weight the global features and original image pixels to obtain a high-resolution image. The high-resolution image will be calculated and generated by two parts, and the weight value is always 1. For example, if the weight of the original image pixel is set to 0.6, then the weight range of the processed high-resolution global feature pixel is 1-0.6=0.4, so the high-resolution image pixel = 0.6*original image pixel + 0.4*high-resolution global feature pixel. 0.6 and 0.4 are the weights of the global features and the original image pixels, and the weighted processing is the sum multiplied by the weights.
[0045] Example
[0046] As a specific embodiment of the present invention, Figure 2 As shown in the figure, the original image is input into the deep neural network DNN model as a whole. The specific process is: during the image preprocessing process, the operator can use the mouse to select the area surrounded by the dotted box; or use the edge detection algorithm on the input image, and the dotted box can track the detected edge and extract the corresponding contour in the image. Then the sampled image contour information is transmitted to the deep neural network DNN model for matching processing, where the deep learning network DNN module is formed by connecting multiple neural network layer blocks in series, and the last layer block will output the final high-resolution image.
[0047] like Figure 3 As shown, the layer blocks constituting the deep neural network DNN model include a convolutional (CONV) layer 312, a group of ReLU layers 313, and a group of batch normalization (BN) layers 314 connected in sequence.
[0048] The present invention has been disclosed above with preferred embodiments, but they are not intended to limit the present invention. Any technical solutions obtained by adopting equivalent replacement or equivalent transformation solutions fall within the protection scope of the present invention.
Claims
1. A method for enhancing the quality of marine survey images based on deep neural networks, characterized in that The following steps are involved: Step 1: Preprocessing of original images: Collecting contour information of original images of ocean surveys manually or using edge detection algorithms; Step 2: Image enhancement processing; 2.1 Establish a deep neural network DNN model with several layers of the same structure; 2.2The image within the selected contour in step 1 is input into the deep neural network DNN model, and different layer blocks in the deep neural network DNN model sequentially extract different local feature information of the image within the selected contour; 2.3 The deep neural network DNN model matches the local feature information extracted from each layer block with the labeled data of the layer block, and assigns weights to the local feature information with the highest matching degree; Step 3: Generate a high-resolution image: The last layer of the deep neural network DNN model will enhance the processed image by weighted processing of global features and original image pixels to obtain a high-resolution image; Step 2.1 also includes the training process of the deep neural network DNN, as follows: 2.11Acquire remote and near-end images of the marine survey area, select image contours, extract RGB data and position information of the images within the selected contours, and bring the RGB data and position information into the hash function to generate compressed signatures or keys of the images within the remote and near-end selected contours respectively; 2.12Using the cosine similarity detection method, the compressed signatures or key matching of the far-end and near-end images are matched to generate matching pairs of the far-end blurred image and the near-end image with detailed features. The matching pairs are then classified by manual labeling, where the labeled data of the image with high definition is "positive" and the labeled data of the image with low definition is "negative"; 2.13 Images labeled as "positive" generate loss measurements in the deep neural network DNN model; 2.14 If the loss measurement value is 1×10 -3 , then a deep neural network DNN model with the ability to distinguish clear ocean survey images from noisy ocean survey images is obtained; otherwise, repeat steps 2.12 and 2.13 for several iterations until the loss measurement value reaches 1×10 -3 , obtaining a deep neural network DNN model capable of distinguishing clear ocean survey images from ocean survey images containing noise; In the deep neural network DNN model, the calculation and update of weights are determined by the rules of the optimization algorithm, which updates the value ▽W according to the optimal value and the weight. (j) The sum of is used to calculate the current optimal weight. The calculation process is as follows: Among them, η is the learning rate, which is a decimal between [0, 1], y is the correct classification of the input sample, y' is the predicted classification, and j is the sequence number.
2. The method for enhancing the quality of marine survey images based on deep neural networks according to claim 1, characterized in that: The edge detection algorithm in step 1 includes the following steps: 1.1Noise reduction: Convolve the original image with the Gaussian smoothing model to remove the noise part of the original image and obtain a denoised image; 1.2 Generate edges: Use the filter matrix to detect the edge pixels of the denoised image in the horizontal, vertical and diagonal directions, so as to generate the gradient map and gradient direction of the edge pixels of the denoised image.
3. The method for enhancing the quality of marine survey images based on deep neural networks according to claim 1, characterized in that: The specific process of cosine similarity detection is as follows: The far-end and near-end images are expanded two-dimensionally with the compressed signature or key as a variable to obtain the vectors of the far-end and near-end images; wherein the vector of the far-end image Image a=[a_1, a_2, ... a_n], a is the compressed signature or key of the far-end image, and the vector of the near-end image Image b=[b_1, b_2, ... b_3], b is the compressed signature or key of the near-end image; Then the dot product of the far-end image vector and the near-end image vector is calculated respectively. If the dot product of the selected far-end image vector and the near-end image vector is 1, it means that the selected far-end image matches the near-end image. If the dot product is -1, it means that the far-end image does not match the near-end image.
