Lightweight image water mist removing method for severe environment
Through deep learning lightweight water haze removal model, combined with depth separable convolution and feature extraction modules, the problem of image blur in the harsh environment of hydropower stations is solved, efficient dehazing and real-time monitoring are achieved, and the intelligence and risk warning of hydropower stations are improved. ability.
Patent Information
- Application Number
- CN202410146451.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-01
- Publication Date
- 2024-09-06
AI Technical Summary
Images captured by cameras in hydropower stations in harsh environments are easily obscured by water mist, resulting in reduced performance in target detection and image classification tasks, and lenses are easily contaminated, affecting the effectiveness of the monitoring system. Existing technologies cannot effectively remove water mist, affecting environmental perception and Accuracy of risk warning.
Using a lightweight dehazing model based on deep learning, through depth-separable convolutional layers and feature extraction modules, combined with shallow and deep feature extraction and image reconstruction, efficient processing of dehazed images is achieved, which is suitable for edge device deployment and reduces Hardware resource requirements.
It achieves efficient water mist removal in harsh environments, improves image clarity and real-time performance of the monitoring system, reduces perception monitoring costs, and enhances the intelligence and risk warning capabilities of hydropower stations.
Smart Images

Figure CN118608402A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of hydropower station image monitoring, and in particular to a lightweight image defogging method for harsh environments. Background Art
[0002] Hydropower stations are responsible for peak and frequency regulation, accident and disaster preparedness, and climate regulation. The surrounding areas of the hydropower station basin are humid and rainy. Water mist will form on the water and surface in summer and winter respectively. In addition, the opening of the gate will bring a lot of water vapor. Especially during the flood season and rainy season maintenance, the environmental perception of the hydropower station is complex, and the camera on the dam is easily blocked by water mist, which can easily lead to the decline of subsequent target detection and image classification task performance. There are a large number of water droplets, smoke and other particles in the atmosphere around the hydropower plant. The light will be scattered and refracted during the propagation process. The images captured on rainy and foggy days and when the gate is opened to release water will give people a gray visual experience, affecting the color saturation and contrast of the image, and then causing the image to lose key details. At the same time, during the opening of the gate, impurities carried by the water flow may be deposited on the surface of the camera lens, causing lens contamination. The contaminated lens will make the image more blurred and affect the performance of the camera. Therefore, the camera needs to be cleaned and maintained regularly to ensure its normal operation. In recent years, various power plants have been committed to transforming from manned to unmanned, and operators have gradually used cameras and robots to monitor equipment. However, visibility is low in foggy days, and the images collected from the substation are not clear, which makes it impossible to effectively carry out remote monitoring and other tasks, increasing the safety risk of power grid operation. Through technological innovation and verification of typical hydropower station scenarios, we explore efficient, complete and scalable video environment perception monitoring and risk warning mechanisms for environmental perception and safety event management of Huanglongtan Power Plant, improve the intelligence level of hydropower stations, and reduce the cost of perception and monitoring. At present, some abnormal behavior monitoring algorithms based on pedestrians have been successfully applied. However, the scene environment perception of important scenes such as hydropower station gates, dams and dams has not been fully verified and put into actual production use. The risk analysis and warning of hydropower stations with flood and rainy season risks through video monitoring are almost blank. Effective environmental perception in water fog scenes is the prerequisite for accurate risk warning. Building a good end-to-end lightweight image defogging network, including three modules: shallow feature extraction, deep feature extraction and image reconstruction, is an effective tool for assisting subsequent target detection and image classification tasks. Risk warning.
[0003] The existing hydropower plant environmental perception and risk warning system mainly monitors the location and activities of personnel and vehicles around the plant and reservoir and provides abnormal warnings. It realizes a simple environmental perception and risk warning system by acquiring video streams, image processing and analysis, risk warning push and other components. The comprehensive environmental perception and risk warning system may also include subsequent tasks such as water level detection, sluice opening and closing, surface floating object detection, meteorological detection, and water quality detection. When encountering severe weather, it is impossible to automatically remove water and fog from video images. Unclear and obstructed video images make it impossible for the system to fully perceive the surrounding environment, making it difficult to achieve accurate, intelligent, and autonomous lens detection, affecting the accuracy of subsequent target detection and image classification. Summary of the invention
[0004] The purpose of this invention is to propose a lightweight image defogging method for harsh environments, based on a lightweight defogging model of deep learning to balance the defogging effect and computational efficiency.
[0005] In order to solve the above technical problems, the technical solution of the present invention is as follows:
[0006] A lightweight image defogging method for harsh environments, the steps are as follows:
[0007] S1: Obtain training data set: shoot and save images of scenes on the hydropower plant dam with and without water fog from multiple perspectives, including multiple images with water fog and corresponding images without water fog;
[0008] S2: Shallow feature extraction of image defogging network: input the foggy image into the depth-separable convolutional layer to obtain the initialized feature map;
[0009] S3: The deep feature extraction of the image defogging network performs graph feature extraction and local feature fusion and splicing on the initialized features, and finally adds the output feature map to the initialized feature map output by the shallow feature extraction module;
[0010] S4: Image defogging network image reconstruction sends the feature map output by the deep feature extraction part to the output convolution layer containing 3 convolution kernels, and finally reconstructs the defogging image;
[0011] S5: training the image defogging network according to the training data set until the preset loss function converges to obtain a trained image defogging network;
[0012] S6: Use the trained image defogging network to defog the foggy image to be processed to obtain a defogged image.
[0013] Improvement of the above technical solution: The shallow feature extraction of the image de-fogging network in step S2 includes the following three aspects:
[0014] S21: Depthwise Separable Convolution (DSC) is a special convolution operation, which is improved from the Inception module. The continuous optimization of the Inception module proves that the channel and spatial position features can be decoupled; therefore, the depthwise separable convolution uses channel-by-channel convolution (Depthwise Convolution) and point-by-point convolution (Pointwise Convolution) to extract feature information. First, the depthwise separable convolution performs an independent convolution operation on each input channel, that is, channel-by-channel convolution, and then combines the results through point-by-point convolution to generate the final output feature map;
[0015] S22: Channel-by-channel convolution usually takes each channel of the feature map as a grouping unit, and uses multiple filters to extract feature information of each grouped feature map respectively;
[0016] S23: Point-by-point convolution refers to performing a convolution operation with a convolution kernel size of 1×1 on the feature map obtained by channel-by-channel convolution processing.
[0017] Further improvement of the above technical solution: The deep feature extraction of the image defogging network in step S3 includes the following three aspects:
[0018] S31: First, the initialized feature map output by the shallow feature extraction part is sent to three group modules (Group-1 / 2 / 3) connected in series for feature extraction and local feature fusion;
[0019] S32: The output feature map is fed into the pixel and channel attention module (PCA) and two depth-wise separable convolutional layers to obtain an output feature map with a dimension of 256×256×64;
[0020] S33: Add the output feature map to the initialized feature map output by the shallow feature extraction part to achieve feature fusion.
[0021] Beneficial effects:
[0022] The lightweight image defogging method for harsh environments described in the present invention has the following advantages:
[0023] (1) Lightweight design: By using streamlined neural network structure, parameter sharing, model pruning and other technologies, the lightweight design of the deep learning defogging model is achieved to reduce the model complexity.
[0024] (2) Real-time optimization: Focus on improving the real-time performance of the defogging model to meet the needs of real-time video monitoring scenarios and ensure timely and effective image processing.
[0025] (3) Hardware adaptation: In view of the special requirements of edge devices, the algorithm and model structure are optimized to reduce the demand for hardware resources, making the defogging model more suitable for deployment on edge devices.
[0026] (4) End-to-end performance: The end-to-end deep learning dehazing process is maintained while improving the quality of restored images based on lightweight design, thus balancing the dehazing effect and computational efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a depth-wise separable convolution process.
[0028] Figure 2 For the group structure.
[0029] Figure 3 It is the feature extraction module.
[0030] Figure 4 Fogging networks for end-to-end image dehydration. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0032] See also Figure 1-4 The present invention provides a technical solution: a lightweight image defogging method for harsh environments, which is used to achieve defogging for real-time video monitoring, comprising the following steps:
[0033] S1: Obtain training data set: Shoot and save images of the hydropower plant dam scene with and without water fog from multiple perspectives, including multiple images with and without water fog.
[0034] S2: Shallow feature extraction of image defogging network, inputting the foggy image into the depth-separable convolutional layer to obtain the initialized feature map
[0035] S3: The deep feature extraction of the image defogging network performs graph feature extraction and local feature fusion splicing on the initialized features, and finally adds the output feature map to the initialized feature map output by the shallow feature extraction module
[0036] S4: Image defogging network image reconstruction sends the feature map output by the deep feature extraction part to the output convolution layer containing 3 convolution kernels, and finally reconstructs the defogging image
[0037] S5: Train the image defogging network according to the training data set until the preset loss function converges to obtain the trained image defogging network
[0038] S6: Use the trained image defogging network to defog the image to be processed, and further obtain the defogging image, such as Figure 1 As shown, the shallow feature extraction of the image de-fogging network in step S2 includes the following three aspects:
[0039] S21: Depthwise Separable Convolution (DSC) is a special convolution operation, which is improved from the Inception module. The continuous optimization of the Inception module proves that the channel and spatial position features can be decoupled. Therefore, the depthwise separable convolution uses channel-by-channel convolution (Depthwise Convolution) and pointwise convolution (Pointwise Convolution) to extract feature information. First, the depthwise separable convolution performs an independent convolution operation on each input channel, that is, channel-by-channel convolution, and then combines the results through pointwise convolution to generate the final output feature map. The specific calculation process of the depthwise separable convolution is shown.
[0040] S22: Channel-by-channel convolution usually takes each channel of the feature map as a grouping unit, and uses multiple filters to extract the feature information of each grouped feature map. Since the number of channels of the feature map for grouped convolution is much smaller than the number of channels of the input feature map, the number of filter parameters and the number of convolution operation steps are effectively reduced, making the number of parameters and the amount of calculation required for the entire channel-by-channel convolution process much smaller than the standard convolution (SC) method. However, the feature information obtained by this method is independent of the relationship between different channels, so it is impossible to use the associated feature information of different channels at the same position. Therefore, it is necessary to convert the output feature map through point-by-point convolution to generate a new feature map in order to better utilize the relationship between different channels.
[0041] S23: Point-wise convolution refers to a convolution operation with a convolution kernel size of 1×1 on the feature map obtained by channel-by-channel convolution. Since point-by-point convolution performs weighted combinations on different channels at the same position, it can make up for the shortcomings of channel-by-channel convolution. Depthwise separable convolution and standard convolution are roughly the same in function, but the advantage of depthwise separable convolution is that its number of parameters and amount of computation are much smaller than standard convolution. This means that through depthwise separable convolution, the consumption of computing and storage resources can be reduced while maintaining the same model performance. The following Table 1 compares the amount of computation and the amount of parameters of depthwise separable convolution and standard convolution to explore their differences in computational efficiency:
[0042] Assume that the input feature map dimension is H in ×C in ×W in , the output feature map dimension is H out ×C out ×W out , the height and width of the convolution kernel are H k and W k Then, the computational complexity and parameter quantity of standard convolution and depthwise separable convolution are shown in Table 1. Therefore, the larger the size of the convolution kernel and the number of channels of the output feature map, the more obvious the advantage of depthwise separable convolution.
[0043] Table 1 Computational complexity and parameter count of standard convolution and depthwise separable convolution
[0044]
[0045] Further, if Figure 3 As shown, the image de-fogging network deep feature extraction in step S3 includes the following three aspects:
[0046] S31: First, the initialized feature map output by the shallow feature extraction part is sent to three group modules (Group-1 / 2 / 3) connected in series for feature extraction and local feature fusion.
[0047] like Figure 2 The group module structure shown in the figure contains multiple basic feature extraction blocks, a depthwise separable convolutional layer, and a long skip connection. The basic feature extraction block consists of a depthwise separable convolutional layer and a pixel channel attention module. The output feature maps of the three group modules are concatenated in the channel dimension to obtain an output feature map of dimension .
[0048] S32: The output feature map is fed into the pixel and channel attention module (PCA) and two depth-wise separable convolutional layers to obtain an output feature map with a dimension of 256×256×64.
[0049] S33: Add the output feature map to the initialized feature map output by the shallow feature extraction part to achieve feature fusion.
[0050] Further, if Figure 4 As shown, the image defogging network model training in step S5 includes the following two aspects:
[0051] S51: In view of the fact that existing studies have verified that the L1 loss function helps generate clear images, this chapter will use the L1 loss function for training. The calculation process of the L1 loss function is shown in Formula 1.
[0052]
[0053] Among them, I x It represents the de-watered fog image output after passing through the network, I y represents a clear haze-free image, m and n represent the width and height of the clear image and the haze image. The role of L1 is to ensure that the output image of the dehazing model is closer to the clear image.
[0054] S52: The network model structure finally obtained. The innovative points to be protected by the present invention are:
[0055] (1) A lightweight design is used in the deep learning defogging model. By reducing the number of model parameters and adopting a special network structure and algorithm, the model is made more streamlined and efficient. Through the lightweight design, the model can achieve defogging operations on edge devices with shorter inference time, making it suitable for scenarios that require high real-time performance.
[0056] (2) Traditional deep learning defogging algorithms usually have high hardware requirements. However, this patent reduces model complexity and parameter quantity, adapts to edge devices with limited hardware resources, and improves deployment flexibility and feasibility.
[0057] (3) Maintain the optimization of defogging effect on the basis of lightweight design. Through reasonable trade-offs, we ensure that the model can be streamlined while still maintaining effective defogging, thereby improving the practicality of the model. Focusing on the needs of real-time video monitoring scenarios, we optimize the deep learning defogging model to meet the actual needs of this special application scenario.
[0058] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A lightweight image defogging method for harsh environments, the steps are as follows: S1: Obtain training data set: shoot and save images of scenes on the hydropower plant dam with and without water fog from multiple perspectives, including multiple images with water fog and corresponding images without water fog; S2: Shallow feature extraction of image defogging network: input the foggy image into the depth-separable convolutional layer to obtain the initialized feature map; S3: The deep feature extraction of the image defogging network performs graph feature extraction and local feature fusion and splicing on the initialized features, and finally adds the output feature map to the initialized feature map output by the shallow feature extraction module; S4: Image defogging network image reconstruction sends the feature map output by the deep feature extraction part to the output convolution layer containing 3 convolution kernels, and finally reconstructs the defogging image; S5: training the image defogging network according to the training data set until the preset loss function converges to obtain a trained image defogging network; S6: Use the trained image defogging network to defog the foggy image to be processed to obtain a defogged image.
2. The lightweight image defogging method for harsh environments according to claim 1 is characterized in that: The shallow feature extraction of the image de-fogging network in step S2 includes the following three aspects: S21: Depthwise Separable Convolution (DSC) is a special convolution operation, which is improved from the Inception module. The continuous optimization of the Inception module proves that the channel and spatial position features can be decoupled; therefore, the depthwise separable convolution uses channel-by-channel convolution (Depthwise Convolution) and point-by-point convolution (Pointwise Convolution) to extract feature information. First, the depthwise separable convolution performs an independent convolution operation on each input channel, that is, channel-by-channel convolution, and then combines the results through point-by-point convolution to generate the final output feature map; S22: Channel-by-channel convolution usually takes each channel of the feature map as a grouping unit, and uses multiple filters to extract feature information of each grouped feature map respectively; S23: Point-by-point convolution refers to performing a convolution operation with a convolution kernel size of 1×1 on the feature map obtained by channel-by-channel convolution processing.
3. The lightweight image defogging method for harsh environments according to claim 1 is characterized in that: The image de-fogging network deep feature extraction in step S3 includes the following three aspects: S31: First, the initialized feature map output by the shallow feature extraction part is sent to three group modules (Group-1 / 2 / 3) connected in series for feature extraction and local feature fusion; S32: The output feature map is fed into the pixel and channel attention module (PCA) and two depth-wise separable convolutional layers to obtain an output feature map with a dimension of 256×256×64; S33: Add the output feature map to the initialized feature map output by the shallow feature extraction part to achieve feature fusion.
