Power distribution room smoke image smoke removing method based on deep convolutional network
Through the smoke desmog method of the distribution room based on deep convolutional network, the texture feature extraction and multi-scale modules are used to solve the problems of feature information loss and insufficient image clarity in the existing technology, and the better desmog effect is achieved and image quality.
Patent Information
- Application Number
- CN202410917014.3
- 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
The existing smoke desmog technology in the distribution room has serious problems of important feature information and texture information loss, insufficient image clarity and large local details distortion, which affects image quality.
A method for desmog from smoke images of distribution rooms based on deep convolutional networks is designed, including building branch of image texture feature extraction network, feature extraction backbone network and image reconstruction network, using local binary mode and double-layer U-Net network Extract texture features, multi-scale modules and attention modules to extract features, and integrate features for defog treatment.
It effectively retains the texture information and local details of the image, improves the image clarity, reduces texture distortion during the reconstruction process, and improves the fog removal effect.
Smart Images

Figure CN118887133A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer vision technology, and in particular relates to a method for removing smoke from smoke images in a power distribution room based on a deep convolutional network. Background Art
[0002] The distribution room is responsible for the transmission and distribution of the power system, and plays a great role in the electricity consumption of enterprises and residents. With the development of communication technology and electronic information technology, video surveillance systems are widely used in distribution rooms. Through the monitoring system, staff can remotely view the operation of equipment in the distribution room and the operation and inspection of on-site staff in real time. Due to the aging and damage of the distribution equipment and the short circuit caused by excessive current, a large amount of smoke will be generated, which will seriously affect the image quality collected by the on-site monitoring system, and then affect the remote staff's grasp of the on-site fire situation. By processing the distribution room fire image through computer vision technology and removing the interference of smoke, the image quality can be improved, which is convenient for command, rescue and subsequent handling of accidents. Therefore, it is of great practical significance to improve the image quality of the distribution room fire scene through the smoke image removal technology of the distribution room.
[0003] At present, the main smoke removal methods for distribution room fire images can be divided into three categories: smoke removal methods based on smoke models, smoke removal methods based on traditional image processing, and smoke removal methods based on learning. The smoke removal method based on smoke models needs to estimate the smoke model parameters, and then perform defogging based on the estimated model parameters. Due to the diversity of fire types, space and light intensity in distribution rooms, it is difficult to establish a universal smoke model, so the actual defogging effect is poor. The smoke removal method based on traditional image processing mainly uses wavelet transform methods to decompose the image with wavelets, processes the image in the wavelet domain, and then obtains the image after smoke removal through inverse wavelet transform. The performance of this method is greatly affected by the wavelet function, and the key information of the image is seriously lost. The smoke removal method based on learning mainly constructs a convolutional network model and uses a large number of training images to train the network model. Although it has a better smoke defogging effect in the distribution room than other methods, some important feature information, especially texture information, is seriously lost, resulting in the need to improve the image clarity, and there is a large local detail distortion, which affects the image quality of the distribution room after smoke is removed. Summary of the invention
[0004] The technical problem to be solved by the present invention is: to provide a distribution room smoke image desmogging method based on a deep convolutional network, to solve the problem that the images obtained by the existing distribution room smoke image desmogging technology have serious loss of some important feature information and texture information; while realizing the distribution room smoke image desmogging, the image clarity is improved and the local detail information is better retained.
[0005] A method for removing smoke from smoke images in a power distribution room based on a deep convolutional network comprises the following steps:
[0006] Step 1: Construct a training dataset and a test dataset for the smoke removal network model of the distribution room image containing smoke;
[0007] Step 2: Construct a network branch for extracting texture features of distribution room images containing smoke;
[0008] Step 3: Construct a backbone network for extracting features of images of power distribution rooms containing smoke;
[0009] Step 4: Construct a smoke image reconstruction network for the power distribution room;
[0010] Step 5: Use the training data set in step 1 to train the network constructed from step 2 to step 4 to obtain the optimal network model;
[0011] Step 6: Use the test data set in step 1 to test the network model trained in step 5, and use the network model that meets the test results as the final smoke removal network model; otherwise, return to step 5 and adjust the parameters to continue training;
[0012] Step 7: Input the real distribution room image containing smoke into the desmoking network model obtained in step 6 to obtain the distribution room image after removing the smoke.
[0013] In the step 2, the image texture feature extraction network branch first uses the local binary pattern method to extract the texture features of the input distribution room image containing smoke, and then uses a double-layer U-Net network to process the extracted texture features to reduce the impact of smoke on the texture features.
[0014] The image feature extraction backbone network of step three includes network A and network B, network A includes four sub-networks connected in series; network B includes three sub-networks; the feature map obtained by splicing the output feature map of the third sub-network of network A and the output feature map of the first sub-network of network B is used as the input feature map of the second sub-network of network B, and the feature map obtained by splicing the output feature map of the first sub-network of network A and the output feature map of the second sub-network of network B is used as the input feature map of the third sub-network of network B.
[0015] The first subnetwork of the A network is composed of a 3×3 convolution and a PReLU activation function in sequence; the other three subnetworks have the same structure, and are composed of a multi-scale module, an attention module and a multi-scale module in sequence; the first subnetwork of the B network is composed of an upsampling operation, an attention module and a multi-scale module in sequence; the second subnetwork is composed of a 3×3 convolution, an upsampling operation, an attention module and a multi-scale module in sequence; the third subnetwork module is composed of a 3×3 convolution, an upsampling operation, an attention module, a 3×3 convolution and a PReLU activation function in sequence.
[0016] The multi-scale module is composed of five branches of different scales and is used to extract smoke image features of distribution rooms of different scales.
[0017] The five branches of different scales are: the first branch consists of a 3×3 convolution, the second branch consists of a 3×3 dilated convolution with a dilation rate of 1 and a LeakyReLU activation function, the third branch consists of a 3×3 dilated convolution with a dilation rate of 2 and a LeakyReLU activation function, the fourth branch consists of a 3×3 dilated convolution with a dilation rate of 4 and a LeakyReLU activation function, and the fifth branch consists of three combined modules with the same structure, each of which consists of a 5×5 convolution and a LeakyReLU activation function.
[0018] The attention module is composed of a C network and a D network in series, the C network is composed of a parallel network consisting of a global average pooling and a global maximum pooling, two 1×1 convolutions with a LeakyReLU activation function and a Sigmoid function, and the output of the Sigmoid function is the spatial dimension weight of the feature; the D network is composed of three branches, the first branch is composed of channel maximum pooling, 3×3 convolution and LeakyReLU activation function, the second branch is composed of channel average pooling, 3×3 convolution and LeakyReLU activation function, and the third branch is composed of downsampling, 3 3×3 convolutions and upsampling.
[0019] Through the above design scheme, the present invention can bring the following beneficial effects:
[0020] 1. The present invention designs a network branch for extracting texture features of distribution room images, uses the local binary pattern method to extract texture features of distribution room images containing smoke, and then uses a double-layer U-Net network to denoise the extracted texture features, thereby reducing the impact of smoke on texture features, better retaining important texture feature information in the image, and reducing texture distortion in the image reconstruction process.
[0021] 2. The present invention designs a multi-scale module that can extract features of distribution room images from five different scales to obtain more feature information and improve the feature learning ability of the model; the present invention designs an attention module that can better improve the weights of important features and reduce the interference of redundant feature information compared to the traditional attention module; the present invention designs a feature extraction backbone network based on the above-mentioned multi-scale module and attention module to more effectively extract the features of distribution room images.
[0022] 3. The present invention designs an image reconstruction network, and fuses the output features of the feature extraction network branch and the feature extraction backbone network as the input features of the image reconstruction network, and performs dehazing processing on the image of the distribution room containing smoke to obtain a high-definition image of the distribution room that can better retain texture information and local detail information. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The present invention is further described below with reference to the accompanying drawings and specific embodiments:
[0024] Figure 1 A structural diagram of a network for removing smoke from distribution room images according to a specific implementation method of the present invention for removing smoke from distribution room smoke images based on a deep convolutional network;
[0025] Figure 2 A multi-scale module network structure diagram of a specific implementation method of a smoke image removal method for a power distribution room based on a deep convolutional network of the present invention;
[0026] Figure 3 This is a network structure diagram of the attention module of a specific implementation method of the smoke removal method for smoke images in a power distribution room based on a deep convolutional network of the present invention. DETAILED DESCRIPTION
[0027] A smoke removal method for distribution room smoke images based on deep convolutional network, such as Figure 1-Figure 3 As shown, the following steps are included:
[0028] Step 1: Construct a training dataset and a test dataset for the smoke removal network model of the distribution room image containing smoke;
[0029] Step 2, construct a network branch for extracting texture features of an image of a distribution room containing smoke; in a specific embodiment, the network branch for extracting texture features of an image of a distribution room containing smoke first uses a local binary pattern method to extract texture features of an input image of a distribution room containing smoke, and then uses a double-layer U-Net network to process the extracted texture features to reduce the impact of smoke on the texture features; the double-layer U-Net network is composed of a 3×3 convolution, a downsampling operation, two 3×3 convolutions, an upsampling operation, a 3×3 convolution, and two short connections and splicing operations.
[0030] Step three, construct a backbone network for extracting features from images of distribution rooms containing smoke. In a specific embodiment, the backbone network for extracting features from images of distribution rooms containing smoke includes network A and network B; the input of network A is an image of a distribution room containing smoke, and network A consists of four sub-networks connected in series, the first sub-network consists of a 3×3 convolution and a PReLU activation function in sequence; the other three sub-networks have the same structure, each consisting of a multi-scale module, an attention module and a multi-scale module in sequence; the input of network B is the output of network A, and network B consists of three sub-networks, the first sub-network consists of an upsampling operation, an attention module and a multi-scale module in sequence; the second sub-network consists of a 3×3 convolution in sequence , an upsampling operation, an attention module and a multi-scale module; the third sub-network module is composed of a 3×3 convolution, an upsampling operation, an attention module, a 3×3 convolution and a PReLU activation function in sequence; the output feature map of the third sub-network of network A and the output feature map of the first sub-network of network B are concatenated to obtain the feature map as the input feature map of the second sub-network of network B, and the output feature map of the first sub-network of network A and the output feature map of the second sub-network of network B are concatenated to obtain the feature map as the input feature map of the third sub-network of network B.
[0031] Among them, Figure 2 As shown in the figure, the multi-scale module in the backbone network for extracting the image feature of the distribution room containing smoke is composed of five branches of different scales, which are used to extract the features of the smoke image of the distribution room of different scales. The first branch is composed of a 3×3 convolution, the second branch is composed of a 3×3 dilated convolution with a dilation rate of 1 and a LeakyReLU activation function, the third branch is composed of a 3×3 dilated convolution with a dilation rate of 2 and a LeakyReLU activation function, the fourth branch is composed of a 3×3 dilated convolution with a dilation rate of 4 and a LeakyReLU activation function, and the fifth branch is composed of three combined modules with the same structure in turn, each of which is composed of a 5×5 convolution and a LeakyReLU activation function in turn. The second branch and the third branch and the output feature map of the third branch are added together to obtain the feature Figure 1 ,feature Figure 1 The features are obtained by sequentially passing through a 3×3 dilated convolution with a dilation rate of 1, a LeakyReLU activation function, a 3×3 dilated convolution with a dilation rate of 1, and a LeakyReLU activation function. Figure 2 ,feature Figure 2 The output feature map of the multi-scale module is obtained by element-wise concatenation of the output features of the first branch and the output features of the fifth branch.
[0032] like Figure 3 As shown in the figure, the attention module in the backbone network for extracting the image feature of the distribution room containing smoke is composed of the C network and the D network in series. The C network is composed of a parallel network composed of a global average pooling and a global maximum pooling, two 1×1 convolutions with LeakyReLU activation functions and a Sigmoid function. The output of the Sigmoid function is the spatial dimension weight of the feature. The spatial dimension weight is element-wise multiplied with the input feature map of the C network to obtain the output feature map of the C network. The output feature map of the C network is the input feature map of the D network. The D network is composed of three branches. The first branch is composed of channel maximum pooling, 3×3 convolution and LeakyReLU activation function in sequence. The second branch is composed of channel average pooling, 3×3 convolution and LeakyReLU activation function in sequence. The third branch is composed of downsampling, 3 3×3 convolutions and upsampling in sequence. The output feature maps of the three branches are sequentially subjected to element splicing operations, 1×1 convolutions and Sigmoid functions to obtain the channel dimension weight of the feature. The channel dimension weight is element-wise multiplied with the input feature map of the D network to obtain the output feature map of the attention module.
[0033] Step 4. Construct a distribution room smoke image reconstruction network; a specific embodiment: the distribution room smoke image reconstruction network is composed of a 3×3 convolution with a PReLU activation function, an attention module and a 3×3 convolution with a PReLU activation function in sequence. The attention module has the same structure as the attention module in step 2. The output feature map of the texture feature extraction network branch in step 2 and the output feature map of the B network in step 3 are element-wise added to obtain the input features of the reconstruction network. The output image of the reconstruction network is the image of the distribution room after removing the smoke.
[0034] Step 5: Use the training data set in step 1 to train the network constructed from step 2 to step 4 to obtain the optimal network model;
[0035] Step 6: Use the test data set in step 1 to test the network model trained in step 5, and use the network model that meets the test results as the final smoke removal network model; otherwise, return to step 5 and adjust the parameters to continue training;
[0036] Step 7: Input the real distribution room image containing smoke into the network model obtained in step 6 to obtain the distribution room image after removing the smoke.
Claims
1. A smoke removal method for distribution room smoke images based on deep convolutional network, characterized by: The following steps are included: Step 1: Construct a training dataset and a test dataset for the smoke removal network model of the distribution room image containing smoke; Step 2: Construct a network branch for extracting texture features of distribution room images containing smoke; Step 3: Construct a backbone network for extracting features of distribution room images containing smoke; Step 4: Construct a smoke image reconstruction network for the power distribution room; Step 5: Use the training data set in step 1 to train the network constructed from step 2 to step 4 to obtain the optimal network model; Step 6: Use the test data set in step 1 to test the network model trained in step 5, and use the network model that meets the test results as the final smoke removal network model; otherwise, return to step 5 and adjust the parameters to continue training; Step 7: Input the real distribution room image containing smoke into the smoke removal network model obtained in step 6 to obtain the distribution room image after smoke removal.
2. According to the method for removing smoke from smoke images in a power distribution room based on a deep convolutional network according to claim 1, it is characterized by: The image texture feature extraction network branch in step 2 first uses the local binary pattern method to extract the texture features of the input distribution room image containing smoke, and then uses a double-layer U-Net network to process the extracted texture features to reduce the impact of smoke on the texture features.
3. According to the method for removing smoke from smoke images of power distribution rooms based on deep convolutional networks in claim 1, it is characterized by: The image feature extraction backbone network of step three includes network A and network B, network A includes four sub-networks connected in series; network B includes three sub-networks; the feature map obtained by splicing the output feature map of the third sub-network of network A and the output feature map of the first sub-network of network B is used as the input feature map of the second sub-network of network B, and the feature map obtained by splicing the output feature map of the first sub-network of network A and the output feature map of the second sub-network of network B is used as the input feature map of the third sub-network of network B.
4. According to claim 3, a method for removing smoke from smoke images in a power distribution room based on a deep convolutional network is characterized in that: The first subnetwork of the A network is composed of a 3×3 convolution and a PReLU activation function in sequence; the other three subnetworks have the same structure, and are composed of a multi-scale module, an attention module and a multi-scale module in sequence; the first subnetwork of the B network is composed of an upsampling operation, an attention module and a multi-scale module in sequence; the second subnetwork is composed of a 3×3 convolution, an upsampling operation, an attention module and a multi-scale module in sequence; the third subnetwork module is composed of a 3×3 convolution, an upsampling operation, an attention module, a 3×3 convolution and a PReLU activation function in sequence.
5. According to the method for removing smoke from smoke images of power distribution rooms based on deep convolutional networks as described in claim 4, it is characterized by: The multi-scale module consists of five branches of different scales and is used to extract smoke image features of distribution rooms of different scales.
6. The method for removing smoke from smoke images in a power distribution room based on a deep convolutional network according to claim 4 is characterized by: The attention module is composed of a C network and a D network in series, the C network is composed of a parallel network consisting of a global average pooling and a global maximum pooling, two 1×1 convolutions with a LeakyReLU activation function and a Sigmoid function, and the output of the Sigmoid function is the spatial dimension weight of the feature; the D network is composed of three branches, the first branch is composed of channel maximum pooling, 3×3 convolution and LeakyReLU activation function, the second branch is composed of channel average pooling, 3×3 convolution and LeakyReLU activation function, and the third branch is composed of downsampling, 3 3×3 convolutions and upsampling.
7. The method for removing smoke from smoke images in a power distribution room based on a deep convolutional network according to claim 5 is characterized by: The five branches of different scales are: the first branch consists of a 3×3 convolution, the second branch consists of a 3×3 dilated convolution with a dilation rate of 1 and a LeakyReLU activation function, the third branch consists of a 3×3 dilated convolution with a dilation rate of 2 and a LeakyReLU activation function, the fourth branch consists of a 3×3 dilated convolution with a dilation rate of 4 and a LeakyReLU activation function, and the fifth branch consists of three combined modules with the same structure, each of which consists of a 5×5 convolution and a LeakyReLU activation function.
Citation Information
Patent Citations
Image defogging method and system based on global feature fusion attention network
CN113344806A
Image defogging method and system based on multi-scale information selection attention mechanism
CN114663309A
Image defogging method based on multi-scale deep learning
CN117078553A
Defogging method based on cross-layer attention feature interaction and multi-scale channel attention
CN117541505A
Remote sensing image defogging method based on generative adversarial network
CN118115389A
