Cable tunnel unmanned aerial vehicle inspection image denoising method based on generative adversarial network
Through the cable tunnel drone patrol image denoising method based on the generated adversarial network, the multi-scale cavity convolution module and the PatchGAN adversarial network are used to solve the problem of poor image denoising effect in the prior art, and achieve higher quality image denoising and detail restoration.
Patent Information
- Application Number
- CN202410916844.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-11-01
AI Technical Summary
In the prior art, the denoising method for inspecting image of the cable tunnel drone cannot effectively distinguish between noise characteristics and clear image characteristics during feature extraction, resulting in a lot of noise still present in the image after denoising, affecting the image quality.
Using a method based on the generative adversarial network, a generative network and adversarial network are built for denoising images of the cable tunnel drone patrol inspection. The optimal model is obtained through alternating training. Multi-scale hollow convolution module and PatchGAN adversarial network design are used to extract Multi-scale features of noise and image, denoising.
It significantly reduces the noise in the images inspected by the cable tunnel drone, improves the image quality after denoising, and better restores image details, enhancing the image denoising performance and the performance of the adversarial network.
Smart Images

Figure CN118887124A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of computer vision, and in particular relates to a method for denoising images of cable tunnel unmanned aerial vehicle inspection. Background Art
[0002] The scale of power systems is expanding, and there are more and more overhead lines and towers, which not only occupy a large amount of ground resources, but also are subject to damage from extreme weather and external forces, affecting power supply safety. Burying cables deep in underground cable tunnels can not only alleviate the problem of tight land resources, but also avoid the impact of extreme weather on cables and reduce the rate of cable accidents. Cable tunnels are located underground, and are affected by moisture, water accumulation and aging equipment, which can also lead to cable accidents. It is necessary to regularly inspect cable tunnels to promptly discover safety hazards and deal with them to avoid accidents. At present, drones are used for cable tunnel inspections, which greatly improves the inspection efficiency of cable tunnels. Cable tunnels are illuminated by tunnel lights at fixed intervals, so during the inspection process, drones will pass through a normal light area and then enter a low light area. In order to ensure the brightness of the collected image, the drone camera will extend the exposure time in the low light area to improve the brightness of the collected image. At the same time, it will also introduce more noise in the image, affecting the image quality.
[0003] The main methods for cable tunnel drone inspection image denoising include transform domain denoising methods. This method first transforms the given noise into another domain, then processes the transformed image according to the different characteristics of the noise-free image and its noise, and finally performs a quasi-transformation on the processed image to restore the denoised image. This method requires the selection of a suitable domain transformation function. If the selection is inappropriate, the characteristics of the image and noise cannot be well distinguished, thus affecting the denoising effect. For complex and changeable cable tunnels, it is difficult to find a universal domain transformation function, so this method has limited applicability in practical applications. The deep learning denoising method first constructs a deep convolutional neural network model, and then uses a large number of images to train the model so that it automatically learns the characteristics of image noise and achieves efficient denoising. Compared with the transform domain method, this method can remove more noise and has a wider range of applications. However, in the process of feature extraction, the existing deep learning cable tunnel drone inspection image denoising method has the problem that the extracted feature information is not comprehensive enough and cannot well distinguish the noise characteristics and clear image characteristics, resulting in the denoised image still having a lot of noise, which affects the quality of the cable tunnel drone inspection image.
[0004] Therefore, a new technical solution is urgently needed in the prior art to solve the above problems. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a cable tunnel drone inspection image denoising method based on a generative adversarial network, to solve the problem that the images after denoising of the cable tunnel drone inspection images in the prior art still contain a lot of noise, to improve the image quality of the cable tunnel drone inspection images after denoising, and to better restore the image detail information.
[0006] The cable tunnel UAV inspection image denoising method based on generative adversarial network includes the following steps:
[0007] Step 1: Construct a training dataset and a test dataset for training the cable tunnel drone inspection image denoising model;
[0008] Step 2: Construct a generative network to denoise the cable tunnel drone inspection images;
[0009] Step 3: Build an adversarial network to determine whether the input image is a denoised image or a real noise-free image;
[0010] Step 4: Use the training data set in step 1 to alternately train the adversarial network constructed in step 3 and the generative network constructed in step 2 to obtain the optimal trained model;
[0011] Step 5: Use the test set in step 1 to test the optimal trained model obtained in step 4. If the test result meets the requirements, the model is used as the final cable tunnel drone inspection image denoising model; if the test result does not meet the requirements, adjust the parameters and return to step 4 to continue training;
[0012] Step 6: Input the noisy image of the cable tunnel drone inspection into the final denoising model obtained in step 5 to obtain the denoised cable tunnel drone inspection image.
[0013] The method for denoising the cable tunnel drone inspection image in step 2 is as follows: the noisy cable tunnel drone inspection image is input into the first basic module to obtain a feature map F1, and the feature map F1 is sequentially subjected to maximum pooling and the second basic module to obtain a feature map F2; the feature map F2 is sequentially subjected to maximum pooling and the third basic module to obtain a feature map F3; the feature map F3 is sequentially subjected to maximum pooling and the fourth basic module to obtain a feature map F4; the feature map F4 is sequentially subjected to four multi-scale hole convolution modules to obtain a feature map F5; the feature map F5 is spliced with the feature map F3 after an upsampling operation to obtain a feature map F6; the feature map F6 is sequentially subjected to 3×3 convolution and upsampling operations to obtain a feature map F7; the feature map F7 is spliced with the feature map F2 to obtain a feature map F8; the feature map F8 is sequentially subjected to 3×3 convolution and upsampling operations to obtain a feature map F9; after the feature map F9 is spliced with the feature map F1, two 3×3 convolutions and a tanh function are sequentially subjected to obtain a denoised cable tunnel drone inspection image.
[0014] The basic module includes three branches. The first branch is composed of a 1×1 convolution with a LeakyReLU function and a 3×3 convolution with a LeakyReLU function in sequence; the second branch is composed of a 3×3 convolution with a LeakyReLU function and a 1×1 convolution with a LeakyReLU function in sequence; the third branch is a skip connection that retains the original input information.
[0015] The multi-scale dilated convolution module includes four branches, wherein branch 1 is composed of a 1×1 convolution with a LeakyReLU function and a 3×3 convolution with a LeakyReLU function and a dilation rate of 3.
[0016] Branch 2 consists of two parallel branches. The first parallel branch consists of a 3×3 convolution and a 5×5 convolution in parallel. The first branch in the second parallel branch consists of a 3×3 convolution with a LeakyReLU function and a 3×3 convolution with a LeakyReLU function and a dilation rate of 3. The second branch in the second parallel branch consists of a 5×5 convolution with a LeakyReLU function and a 5×5 convolution with a LeakyReLU function and a dilation rate of 5.
[0017] Branch 3 consists of a 1×1 convolution with a LeakyReLU function;
[0018] Branch 4 is a skip connection that retains the original input information.
[0019] The adversarial network in step three is composed of a 4×4 convolution with a step size of 2, a LeakyReLU function, three serially connected convolution group modules, a multi-scale feature extraction module and a 1×1 convolution.
[0020] The multi-scale feature extraction module consists of four parallel branches of different scales and a 1×1 convolution and LeakyReLU function.
[0021] Through the above design scheme, the present invention can bring the following beneficial effects:
[0022] 1. A basic module and a multi-scale dilated convolution module are designed and used to construct a generative network for cable tunnel drone inspection image denoising. The basic module is mainly used to extract shallow features of noisy images. Compared with the conventional single convolution module, the basic module extracts richer features, including texture, edge and structural information. These features are critical for removing noise from images and reconstructing clean images. The generative adversarial network design of the present invention can better reduce the noise of cable tunnel drone inspection images, improve the quality of denoised images, and better restore image detail information.
[0023] 2. A multi-scale feature extraction module is designed and used as the last layer of the PatchGAN adversarial network. It integrates features with different scale receptive fields, enables the adversarial network to perform multi-scale discrimination on the input image, improves the performance of the adversarial network, and further improves the performance of the generative network and the quality of the generated image. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The present invention is further described below with reference to the accompanying drawings and specific embodiments:
[0025] Figure 1 This is a generation network structure diagram of a specific implementation method of the cable tunnel drone inspection image denoising method based on a generative adversarial network of the present invention.
[0026] Figure 2 This is a basic module structure diagram of a specific implementation method of the cable tunnel drone inspection image denoising method based on a generative adversarial network of the present invention.
[0027] Figure 3 This is a structural diagram of a multi-scale atrous convolution module for a specific implementation of the cable tunnel drone inspection image denoising method based on a generative adversarial network of the present invention.
[0028] Figure 4 This is an adversarial network structure diagram of a specific implementation method of the cable tunnel drone inspection image denoising method based on a generative adversarial network of the present invention.
[0029] Figure 5This is a structural diagram of a multi-scale feature extraction module of a specific implementation method of the cable tunnel drone inspection image denoising method based on a generative adversarial network of the present invention.
[0030] Figure 6 This is a noisy cable tunnel drone inspection image that is a specific implementation method of the cable tunnel drone inspection image denoising method based on a generative adversarial network of the present invention.
[0031] Figure 7 This is a denoised cable tunnel drone inspection image according to a specific implementation method of the cable tunnel drone inspection image denoising method based on a generative adversarial network of the present invention. DETAILED DESCRIPTION
[0032] The cable tunnel UAV inspection image denoising method based on generative adversarial network includes the following steps:
[0033] Step 1: Construct training and test datasets for cable tunnel drone inspection image denoising model training.
[0034] Step 2: Figure 1 As shown in the figure, a generative network is constructed to denoise the cable tunnel drone inspection images.
[0035] Furthermore, the step 2 constructs a generation network, and the noisy cable tunnel drone inspection image is input into the first basic module to obtain a feature map F1, and the feature map F1 is sequentially subjected to maximum pooling and the second basic module to obtain a feature map F2; the feature map F2 is sequentially subjected to maximum pooling and the third basic module to obtain a feature map F3; the feature map F3 is sequentially subjected to maximum pooling and the fourth basic module to obtain a feature map F4; the feature map F4 is sequentially subjected to four multi-scale hole convolution modules to obtain a feature map F5; the feature map F5 is spliced with the feature map F3 after an upsampling operation to obtain a feature map F6; the feature map F6 is sequentially subjected to 3×3 convolution and upsampling operations to obtain a feature map F7; the feature map F7 is spliced with the feature map F2 to obtain a feature map F8; the feature map F8 is sequentially subjected to 3×3 convolution and upsampling operations to obtain a feature map F9; after the feature map F9 is spliced with the feature map F1, it is sequentially subjected to two 3×3 convolutions and a tanh function to obtain a denoised cable tunnel drone inspection image.
[0036] Further, if Figure 2As shown in the figure, the basic module in the generative network consists of three branches. The first branch is composed of a 1×1 convolution with a LeakyReLU function and a 3×3 convolution with a LeakyReLU function in sequence; the second branch is composed of a 3×3 convolution with a LeakyReLU function and a 1×1 convolution with a LeakyReLU function in sequence; the third branch is a jump connection that retains the original input information; the outputs of the three branches are input into the 1×1 convolution module after element-wise addition operation to obtain the output features of the basic module.
[0037] The use of residual connections in the basic module helps the network to transmit more information and reduce the probability of gradient disappearance or gradient explosion. This enhances the ability of feature mapping during downsampling, helps the network to handle more complex image noise and produce better denoising effects. At the same time, the nonlinear activation function in the basic module helps the network to better fit the complex image noise distribution.
[0038] Further, if Figure 3 As shown in the figure, the multi-scale hole convolution module in the generative network consists of four branches of different scales, and the inputs of the four branches are the same; branch 1 is composed of a 1×1 convolution with a LeakyReLU function and a 3×3 convolution with a LeakyReLU function and a hole rate of 3; branch 2 is composed of two parallel branches, the first parallel branch is composed of a 3×3 convolution and a 5×5 convolution in parallel, the output feature maps of the two convolutions are concatenated and input to the second parallel branch, and the first branch in the second parallel branch is composed of a 3×3 convolution and a 5×5 convolution in parallel. The first branch is composed of a 3×3 convolution with a LeakyReLU function and a 3×3 convolution with a dilation rate of 3. The second branch in the second parallel branch is composed of a 5×5 convolution with a LeakyReLU function and a 5×5 convolution with a LeakyReLU function and a dilation rate of 5. The output feature maps of the two branches of the second parallel branch are concatenated to obtain the output feature of branch 2; branch 3 is composed of a 1×1 convolution with a LeakyReLU function; the output feature map of branch 3 is concatenated with the output feature maps of branches 1 and 2 to obtain the feature Figure 1 ,feature Figure 1 After 1×1 convolution with LeakyReLU function, the feature is obtained Figure 2 ; Branch 4 is a skip connection, feature Figure 2 The output features of the multi-scale dilated convolution module are obtained by element-wise addition with the output feature map of branch 4.
[0039] The multi-scale dilated convolution module is mainly used to extract deep multi-scale features of noisy images, so that the network can learn complex expressions and capture more extensive contextual information. The multi-scale dilated convolution module enables the network to perceive the features of the image at different scales, and helps to understand the texture structure of different scales in the noisy image while obtaining richer information. The multi-scale dilated convolution module can capture a wider range of contextual information and reduce information loss, which is very important for image denoising tasks. By connecting multiple multi-scale dilated convolution modules in series to deepen the depth of the network, the network can better characterize the image features, thereby improving the performance of image denoising. The use of multi-scale dilated convolution modules can also improve the generalization ability of the model, enabling it to handle noise of different types, scales and complexities. This makes the entire network model more versatile and can be applied to image denoising tasks in different scenarios.
[0040] Step 3: Build an adversarial network to determine whether the input image is a denoised image or a real noise-free image.
[0041] Further, if Figure 4 As shown, the adversarial network constructed in step three is composed of a 4×4 convolution with a step size of 2, a LeakyReLU function, three convolution group modules in series, a multi-scale feature extraction module and a 1×1 convolution. The three convolution group modules are the same, and are composed of a 4×4 convolution with a step size of 2, a batch normalization processing module and a LeakyReLU function.
[0042] Further, if Figure 5 As shown in the figure, the multi-scale feature extraction module consists of four parallel branches of different scales and a 1×1 convolution and a LeakyReLU function; the first branch consists of a 3×3 convolution with a stride of 2 and a 2×2 deconvolution with a stride of 2; the second branch consists of a 5×5 convolution with a stride of 2 and a 2×2 deconvolution with a stride of 2; the third branch consists of a 7×7 convolution with a stride of 2 and a 2×2 deconvolution with a stride of 2; the fourth branch consists of a 9×9 convolution with a stride of 2 and a 2×2 deconvolution with a stride of 2; the output feature maps of the four parallel branches are concatenated and input into the 1×1 convolution and the LeakyReLU function to obtain the output features of the multi-scale feature extraction module.
[0043] The use of a multi-scale feature extraction module can help the adversarial network capture image features at different scales, which helps the adversarial network to more accurately distinguish between real images and generated images, improves the adversarial network's perception of images, thereby improving the effectiveness of adversarial training and accelerating the convergence of the network. The task of the adversarial network is to distinguish between real images and generated images. The performance of the adversarial network directly affects the training of the generator and the quality of the generated images. By introducing a multi-scale feature extraction module, the adversarial network can more accurately evaluate the quality of the generated images, thereby guiding the generated network to generate higher quality image samples and further improving the performance of the generated network. The stability of the adversarial network directly affects the training of the network and the quality of the generated images. By introducing a multi-scale feature extraction module, the adversarial network can extract richer feature information, which helps the network to more accurately learn the distribution of generated images, thereby enhancing the stability of the generated adversarial network.
[0044] Step 4: Use the training data set in step 1 to alternately train the adversarial network constructed in step 3 and the adversarial network constructed in step 2 to obtain the optimal trained model.
[0045] Step 5: Use the test set in step 1 to test the trained adversarial network model obtained in step 4. If the test result meets the requirements, the model is used as the final cable tunnel drone inspection image denoising model; otherwise, adjust the parameters and return to step 4 to continue training.
[0046] Step 6: Practical application, compare images such as Figure 6 and Figure 7 As shown, the noisy image of the cable tunnel UAV inspection is input into the final denoising model obtained in step five to obtain the denoised cable tunnel UAV inspection image.
Claims
1. A cable tunnel drone inspection image denoising method based on a generative adversarial network is characterized by: The following steps are included: Step 1: Construct a training dataset and a test dataset for training the cable tunnel drone inspection image denoising model; Step 2: Construct a generative network to denoise the cable tunnel drone inspection images; Step 3: Build an adversarial network to determine whether the input image is a denoised image or a real noise-free image; Step 4: Use the training data set in step 1 to alternately train the adversarial network constructed in step 3 and the generative network constructed in step 2 to obtain the optimal trained model; Step 5: Use the test set in step 1 to test the optimal trained model obtained in step 4. If the test result meets the requirements, the model is used as the final cable tunnel drone inspection image denoising model; if the test result does not meet the requirements, adjust the parameters and return to step 4 to continue training; Step 6: Input the noisy image of the cable tunnel drone inspection into the final denoising model obtained in step 5 to obtain the denoised cable tunnel drone inspection image.
2. The cable tunnel drone inspection image denoising method based on generative adversarial network according to claim 1 is characterized by: The method for denoising the cable tunnel drone inspection image in step 2 is as follows: the noisy cable tunnel drone inspection image is input into the first basic module to obtain a feature map F1, and the feature map F1 is sequentially subjected to maximum pooling and the second basic module to obtain a feature map F2; Feature map F2 undergoes maximum pooling and the third basic module in sequence to obtain feature map F3; feature map F3 undergoes maximum pooling and the fourth basic module in sequence to obtain feature map F4; feature map F4 undergoes four multi-scale dilated convolution modules in sequence to obtain feature map F5; feature map F5 is spliced with feature map F3 after upsampling operation to obtain feature map F6; feature map F6 undergoes 3×3 convolution and upsampling operations in sequence to obtain feature map F7; feature map F7 is spliced with feature map F2 to obtain feature map F8; feature map F8 undergoes 3×3 convolution and upsampling operations in sequence to obtain feature map F9; after the feature map F9 is spliced with feature map F1, it undergoes two 3×3 convolutions and tanh function in sequence to obtain the denoised cable tunnel drone inspection image.
3. The cable tunnel drone inspection image denoising method based on generative adversarial network according to claim 2 is characterized by: The basic module includes three branches. The first branch is composed of a 1×1 convolution with a LeakyReLU function and a 3×3 convolution with a LeakyReLU function in sequence; the second branch is composed of a 3×3 convolution with a LeakyReLU function and a 1×1 convolution with a LeakyReLU function in sequence; the third branch is a skip connection that retains the original input information.
4. The cable tunnel drone inspection image denoising method based on generative adversarial network according to claim 2 is characterized by: The multi-scale dilated convolution module includes four branches, wherein branch 1 is composed of a 1×1 convolution with a LeakyReLU function and a 3×3 convolution with a LeakyReLU function and a dilation rate of 3. Branch 2 consists of two parallel branches. The first parallel branch consists of a 3×3 convolution and a 5×5 convolution in parallel. The first branch in the second parallel branch consists of a 3×3 convolution with a LeakyReLU function and a 3×3 convolution with a LeakyReLU function and a dilation rate of 3. The second branch in the second parallel branch consists of a 5×5 convolution with a LeakyReLU function and a 5×5 convolution with a LeakyReLU function and a dilation rate of 5. Branch 3 consists of a 1×1 convolution with a LeakyReLU function; Branch 4 is a skip connection that retains the original input information.
5. The cable tunnel drone inspection image denoising method based on generative adversarial network according to claim 1 is characterized by: The adversarial network in step three is composed of a 4×4 convolution with a step size of 2, a LeakyReLU function, three serially connected convolution group modules, a multi-scale feature extraction module and a 1×1 convolution; the multi-scale feature extraction module is composed of four parallel branches of different scales and a 1×1 convolution and a LeakyReLU function.
