A method and system for identifying power equipment targets based on infrared images

Through image enhancement and YOLOv4 model improvement, the problems of weak feature recognition and low detection efficiency in infrared image recognition of power equipment are solved, the identification accuracy and speed in harsh environments are improved, and efficient target identification of power equipment is achieved.

CN118537544BActive Publication Date: 2024-10-15JIAXIANG POWER SUPPLY CO OF STATE GRID SHANDONG ELECTRIC POWER CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410992949.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-15
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

The existing technology has problems in infrared image recognition of power equipment, such as weak feature recognition, low detection efficiency, poor robustness, low image contrast, and blurred pixels in harsh environments, resulting in identification accuracy and speed that cannot meet the requirements.

Method used

Obtain infrared images with high contrast and clear pixels through image enhancement methods, and improve the YOLOv4 model, using deep convolutional generative adversarial networks and automatic color enhancement algorithms for image enhancement, combined with multi-scale convolution systems and improved loss functions to improve power Accuracy and speed of device target identification.

Benefits of technology

It improves the ability to identify power equipment under severe weather conditions, solves the problems of difficulty in scale feature extraction and data imbalance, and achieves high-precision and fast power equipment target identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537544B_ABST
    Figure CN118537544B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for identifying electric equipment targets based on infrared images, which relates to the field of image recognition technology, including: obtaining the original infrared image of the electric equipment to be detected, and preprocessing the original infrared image; inputting the preprocessed original infrared image into a pre-trained deep convolutional generative adversarial network, outputting an enhanced initial infrared image, fusing the enhanced initial infrared image with the original infrared image, and obtaining a final enhanced infrared image; constructing an improved YOLOv4 structure based on the YOLOv4 algorithm, obtaining a YOLOv4 improved model, inputting the final enhanced infrared image into the YOLOv4 improved model, and outputting the electric equipment target identification result. The present invention improves the ability to identify electric equipment in bad weather (rain or foggy weather), and while improving the identification speed, it also ensures a high identification accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image recognition, and in particular to a method and system for identifying electric power equipment targets based on infrared images. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] In large substations or transmission stations, whether the power equipment has abnormal heating is a very important factor in determining whether the substation or transmission station can operate safely and stably. The voltage transformers, current transformers, transformers, lightning arresters and other equipment in the substation or transmission station have caused many safety hazards due to aging, discharge and other reasons. Therefore, the status inspection and maintenance of power equipment has gradually attracted the attention of technical personnel in this field. Since power equipment has points, it can be directly diagnosed by thermal infrared imaging technology, which has outstanding advantages.

[0004] In recent years, with the gradual development of deep learning technology, it has been widely used in the field of infrared image processing and recognition of power equipment. The existing technology is mainly divided into two categories: methods based on traditional machine learning and methods based on deep learning. Among them, the power equipment image recognition method based on traditional machine learning mainly detects whether the local area of ​​the image contains the target equipment through a detector similar to a sliding window or extracts image feature information for cluster analysis, but this method has weak feature recognition and low detection efficiency. It can no longer meet the requirements of recognition accuracy and speed;

[0005] In the prior art, deep learning-based methods are used in the technical solutions of image classification and target detection. For example, the paper patent "Electric Power Equipment Image Recognition Based on GoogLeNet Inception-V3 Model" discloses the introduction of GoogLeNet into the image recognition of electric power equipment. However, after analyzing the final output results, the GoogLeNet network is easily interfered by background information and has poor robustness. For example, the backbone network is improved in patent application No. 202111083523.3 "A Method for Detecting Faults of Electric Power Equipment by Infrared Thermal Imaging", which solves the problems of insufficient feature extraction, complex network and high redundancy. However, in the patent, the improved Faster RCNN network needs to realize the detection of transformers of different sizes through dynamic adjustment of parameters. This method will first generate several target candidate domains in the process of electric power equipment identification, and then perform fine classification and position regression on the candidate domains. The computational cost is too high, resulting in slow identification speed. In addition, the images obtained in poor environments (rainy weather or foggy weather) in the prior art have problems such as low contrast and blurred pixels. Summary of the invention

[0006] In view of the above problems, the present invention proposes a method for identifying power equipment targets based on infrared images. An infrared image with high contrast and clear pixels is obtained through an image enhancement method, and the traditional YOLOv4 model is improved. The enhanced image is used as the input of the improved model, thereby quickly outputting the power equipment target identification result with higher accuracy.

[0007] In order to achieve the above object, the present invention adopts the following technical solution:

[0008] In a first aspect, the present invention provides a method for identifying a target of an electric power device based on an infrared image, comprising:

[0009] Acquire the original infrared image of the power equipment to be detected, and pre-process the original infrared image;

[0010] The preprocessed original infrared image is input into a pre-trained deep convolutional generative adversarial network, and an enhanced initial infrared image is output. The enhanced initial infrared image is fused with the original infrared image to obtain a final enhanced infrared image.

[0011] An improved YOLOv4 structure is constructed based on the YOLOv4 algorithm to obtain the YOLOv4 improved model. The final enhanced infrared image is input into the YOLOv4 improved model to output the power equipment target recognition result.

[0012] A further technical solution is that the preprocessing of the original infrared image specifically includes:

[0013] The original infrared image is processed using convolution operation;

[0014] The normalization method is used to normalize the original infrared image after the convolution operation;

[0015] The activation function is used to process the convolution operation results after the normalization operation.

[0016] In a further technical solution, the outputting of the enhanced initial infrared image comprises the following specific steps:

[0017] First, the original infrared image is input into the pre-trained deep convolutional generative adversarial network generation network, and the generation network outputs the generated image;

[0018] Then, an automatic color enhancement algorithm is used to perform color enhancement on the generated image output by the generation network; the image after color enhancement is used as the enhanced initial infrared image.

[0019] In a further technical solution, the automatic color enhancement algorithm reconstructs and adjusts the images generated by the generation network respectively, wherein the automatic color enhancement algorithm is as follows:

[0020] First, the color image generated by the generative network is processed separately for the RGB three channels, and the Y(x) value of each pixel in the image is calculated, that is:

[0021]

[0022] in is the intermediate result, is the brightness function, which is essentially a ramp function. is the brightness difference between two points, Represents the distance between two points, and then linearly expands the rectified image to Normalize the value of to get the white balance of the whole picture, and finally solve the optimal solution, that is:

[0023] .

[0024] A further technical solution is to fuse the enhanced initial infrared image with the original infrared image to obtain the final enhanced infrared image, and the specific method is as follows:

[0025] The enhanced initial infrared image and the original infrared image are fused using the principal component transformation PCA algorithm to obtain the final enhanced infrared image.

[0026] A further technical solution is to construct an improved YOLOv4 structure based on the YOLOv4 algorithm, specifically including improved feature extraction and improved loss function;

[0027] The improved feature extraction includes using three convolution kernels of different sizes to learn scale-related features from the input final enhanced infrared image, thereby achieving effective acquisition of multi-scale information of the infrared image.

[0028] A further technical solution is that the improved loss function is to reduce the weight of easy-to-classify samples, which is expressed as:

[0029]

[0030] in, represents the predicted value; and is the modulation parameter, specifically: Used to balance the uneven proportion of the sample itself. Used to adjust the weight of different samples on the loss function;

[0031] The final loss function of the YOLOv4 improved model is ,

[0032] in, Used to determine the specific location of the target. Used to determine the probability that a target exists in the prediction box.

[0033] In a second aspect, the present invention provides a power equipment target recognition system based on infrared images, comprising:

[0034] The image acquisition module is configured to: acquire the original infrared image of the power equipment to be detected, and pre-process the original infrared image;

[0035] The image enhancement processing module is configured to: input the preprocessed original infrared image into a pre-trained deep convolutional generative adversarial network, output an enhanced initial infrared image, and fuse the enhanced initial infrared image with the original infrared image to obtain a final enhanced infrared image;

[0036] The identification module is configured as follows: constructing an improved YOLOv4 structure based on the YOLOv4 algorithm to obtain an improved YOLOv4 model, inputting the final enhanced infrared image into the improved YOLOv4 model, and outputting the power equipment target identification result.

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

[0038] 1. The present invention utilizes a deep convolutional generative adversarial network (DCGAN) with a U-Net structure, and achieves image enhancement by fitting an image generated by a low-contrast, low-pixel infrared image with a real illumination image, thereby improving the ability to identify power equipment in severe weather (rain or foggy weather).

[0039] 2. The present invention improves the traditional YOLOv4 model by improving the feature extraction and loss function, thereby solving the problem of difficulty in extracting scale features due to the large scale differences of power target equipment in infrared images and the classification difficulty caused by unbalanced infrared image data. While improving the recognition speed, it also ensures a high recognition accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0041] Figure 1 This is a general process flow chart of the method for identifying a target of an electric power device according to the present invention;

[0042] Figure 2 This is a structural diagram of the multi-scale convolution system of the present invention;

[0043] Figure 3is an original infrared image of the first object of the present invention;

[0044] Figure 4 is an original infrared image of the second object of the present invention;

[0045] Figure 5 The infrared image of the first object after final enhancement of the present invention;

[0046] Figure 6 This is the final enhanced infrared image of the second object of the present invention. DETAILED DESCRIPTION

[0047] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0048] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0049] Embodiment 1

[0050] In this embodiment, the power equipment in the substation is taken as an example. Figure 1 As shown, a method for identifying power equipment targets based on infrared images is provided, and the steps include:

[0051] S1: Acquire the original infrared image of the power equipment to be detected, and preprocess the original infrared image;

[0052] S2: Input the preprocessed original infrared image into the pre-trained deep convolutional generative adversarial network, output the enhanced initial infrared image, and fuse the enhanced initial infrared image with the original infrared image to obtain the final enhanced infrared image;

[0053] S3: Based on the YOLOv4 algorithm, an improved YOLOv4 structure is constructed to obtain a YOLOv4 improved model, the final enhanced infrared image is input into the YOLOv4 improved model, and the power equipment target recognition result is output;

[0054] Wherein, in step S1, the original infrared image is preprocessed by nonlinear mapping; the specific steps include:

[0055] S11: Processing the original infrared image using convolution operation;

[0056] S12: using a normalization method to normalize the original infrared image after the convolution operation;

[0057] S13: Use activation function to process the convolution operation results after normalization operation

[0058] In step S2, the training steps of the pre-trained deep convolutional generative adversarial network include:

[0059] S21: Constructing a deep convolutional generative adversarial network with a U-Net structure;

[0060] S22: Construct a training set, and use the training set to train the deep convolutional generative adversarial network in step S21. During the training process, the generative network generates images, and the generative network inputs the generated images into the discriminative network. At the same time, the image with normal illumination is also input into the discriminative network. The discriminative network judges the authenticity of the image. When the loss function reaches the minimum value, the trained deep convolutional generative adversarial network is obtained, wherein the total loss function of the deep convolutional generative adversarial network in step S21 includes the mean square error MSE loss function, the reconstruction loss function adv of the generative network and the adversarial loss function of the discriminative network.

[0061] In step S22, the specific method for constructing a training set is: select multiple high-contrast and high-definition images from a large database; atomize, add noise or perform Gaussian blur processing on all high-contrast and high-definition images to obtain multiple corresponding low-contrast and blurred images; label all high-contrast and high-definition images and all low-contrast and blurred images, and then divide them into training set, test set and validation set in proportion.

[0062] In step S2, the enhanced initial infrared image is output, and the specific steps include: inputting the original infrared image into a generative network of a pre-trained deep convolutional generative adversarial network, and the generative network outputs a generated image;

[0063] At the end of the generation network, the Automatic Color Enhancement (ACE) algorithm is used to enhance the color of the image output by the generation network to enhance the image enhancement capability of the entire network and obtain more accurate visual information, which is conducive to improving the accuracy of power equipment target identification in bad weather (rain or foggy weather). The automatic color enhancement algorithm reconstructs and adjusts the images generated by the generation network respectively, and the reconstructed and adjusted images can correct the color difference of the image. The automatic color enhancement algorithm has obvious processing effects on images with low contrast, noise and fog. The method of the automatic color enhancement algorithm is as follows:

[0064] First, the color image generated by the generative network is processed separately for the RGB three channels, and the Y(x) value of each pixel in the image is calculated, that is:

[0065]

[0066] in is the intermediate result, is the brightness function, which is essentially a ramp function. is the brightness difference between two points, Represents the distance between two points, and then linearly expands the rectified image to Normalize the value of to get the white balance of the whole picture, and finally solve the optimal solution, that is:

[0067] , where B represents the input, , .

[0068] Finally, in this embodiment, the enhanced initial infrared image and the original infrared image are fused using the principal component transformation PCA algorithm to obtain the final enhanced infrared image. The spectral characteristics of the final enhanced infrared image are well maintained, the main information is highlighted, the noise is suppressed, and the purpose of image enhancement is achieved. The final comparison results are as follows: Figure 3-Figure 6 shown.

[0069] In step S3, the traditional YOLOv4 algorithm uses CSPDarkNet53 as the basic backbone network, which is a feature extraction network improved on the basis of DarkNet53 and the optimization strategy of CSPNet. Its main advantage is that it eliminates the gradient vanishing and gradient exploding problems caused by the increase of convolution layers by introducing a residual structure, thereby enhancing the learning ability of the convolutional neural network. However, it was found in the study that in the process of power equipment identification, the extraction of initial features has a direct impact on the final identification accuracy and speed of the network.

[0070] Because the infrared imager or the robot with infrared imaging changes the viewing angle when shooting and acquiring infrared images, the scales of the same type of power equipment in the infrared image vary. The traditional YOLOv4 algorithm uses a fixed-size convolution kernel for each layer of a single column convolution, which is difficult to deal with the problem of scale changes of power equipment. Therefore, the present invention improves feature extraction, such as Figure 2 As shown, the present invention utilizes a multi-scale convolution system to adopt three convolution kernels of different sizes to learn scale-related features from the input final enhanced infrared image, thereby realizing the effective acquisition of multi-scale information of the infrared image. The use of three parallel 3×3, 5×5, and 7×7 convolution kernels can effectively aggregate the multi-scale information of the infrared image.

[0071] In addition to improving feature extraction, the present invention also improves the loss function in the traditional YOLOv4 algorithm. In the traditional YOLOv4 algorithm, the loss function is composed of the prediction box regression error , confidence error , classification error However, due to the different backgrounds of the environments where the power equipment is located, the appearance of the power equipment in the same location or different locations has certain similarities, and the difficulty of classifying the power equipment in the infrared image is different.

[0072] To address this problem, the present invention replaces the classification cross entropy loss function in the traditional YOLOv4 algorithm. By reducing the weight of easily classified samples, the model focuses more on samples that are difficult to classify and distinguish during training, thereby achieving the purpose of enhancing the generalization ability of the model. The replaced loss function is specifically expressed as:

[0073]

[0074] in, represents the predicted value; and is the modulation parameter, specifically: Used to balance the uneven proportion of the sample itself. It is used to adjust the weight of different samples on the loss function; the final loss function of the YOLOv4 improved model is .

[0075] In this embodiment, the above-mentioned improvements to feature extraction and loss functions are used to solve the problem of difficulty in extracting scale features due to the large scale differences of power target equipment in infrared images and the problem of difficulty in classification due to unbalanced infrared image data. While improving the recognition speed, a high recognition accuracy is also guaranteed.

[0076] Embodiment 2

[0077] This embodiment provides a power equipment target recognition system based on infrared images, which specifically includes the following modules:

[0078] The image acquisition module is configured to: acquire the original infrared image of the power equipment to be detected, and pre-process the original infrared image;

[0079] The image enhancement processing module is configured to: input the preprocessed original infrared image into a pre-trained deep convolutional generative adversarial network, output an enhanced initial infrared image, and fuse the enhanced initial infrared image with the original infrared image to obtain a final enhanced infrared image;

[0080] The identification module is configured as follows: constructing an improved YOLOv4 structure based on the YOLOv4 algorithm to obtain an improved YOLOv4 model, inputting the final enhanced infrared image into the improved YOLOv4 model, and outputting the power equipment target identification result.

[0081] It should be noted here that each module in this embodiment corresponds one-to-one to the method in Embodiment 1, and the specific implementation process is the same, which will not be repeated here.

[0082] Embodiment 3

[0083] This embodiment provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the steps in the method for identifying electric power equipment targets based on infrared images as described in the first embodiment above are implemented.

[0084] Embodiment 4

[0085] An electronic device comprises a memory, a processor and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of a method for identifying power equipment targets based on infrared images as described in the first embodiment are implemented.

[0086] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

[0087] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.

Claims

1. A method for identifying power equipment targets based on infrared images, characterized in that: include: Acquire the original infrared image of the power equipment to be detected, and pre-process the original infrared image; The preprocessed original infrared image is input into a pre-trained deep convolutional generative adversarial network, an enhanced initial infrared image is output, and the enhanced initial infrared image is fused with the original infrared image to obtain a final enhanced infrared image; the output of the enhanced initial infrared image specifically comprises the following steps: firstly, the original infrared image is input into a generative network of a pre-trained deep convolutional generative adversarial network, and the generative network outputs a generated image; then, the generated image output by the generative network is subjected to color enhancement processing using an automatic color enhancement algorithm; and the image subjected to color enhancement processing is used as the enhanced initial infrared image; the training steps of the pre-trained deep convolutional generative adversarial network include: constructing a deep convolutional generative adversarial network with a U-Net structure, and constructing a training set, and using the training set deep convolutional generative adversarial network for training; The automatic color enhancement algorithm reconstructs and adjusts the images generated by the generative network respectively. The automatic color enhancement algorithm is as follows: First, the color image generated by the generative network is processed separately for the RGB three channels, and the Y(x) value of each pixel in the image is calculated, that is: in is the intermediate result, is a brightness function, which is essentially a ramp function. is the brightness difference between two points, Represents the distance between two points, and then linearly expands the rectified image to Normalize the value of to get the white balance of the whole picture, and finally solve the optimal solution, that is: ; An improved YOLOv4 structure is constructed based on the YOLOv4 algorithm to obtain an improved YOLOv4 model. The final enhanced infrared image is input into the improved YOLOv4 model to output the power equipment target recognition result. The improved YOLOv4 structure is constructed based on the YOLOv4 algorithm, specifically including improved feature extraction and improved loss function; The improved feature extraction includes using three convolution kernels of different sizes to learn scale-related features from the input final enhanced infrared image, so as to effectively obtain multi-scale information of the infrared image; The improved loss function is to reduce the weight of easy-to-classify samples, expressed as: in, represents the predicted value; and is the modulation parameter, specifically: Used to balance the uneven proportion of the sample itself. Used to adjust the weight of different samples on the loss function; The final loss function of the YOLOv4 improved model is , in, Used to determine the specific location of the target. Used to determine the probability that a target exists in the prediction box.

2. A method for identifying power equipment targets based on infrared images as claimed in claim 1, characterized in that: The preprocessing of the original infrared image specifically includes: The original infrared image is processed using convolution operation; The normalization method is used to normalize the original infrared image after the convolution operation; The activation function is used to process the convolution operation results after the normalization operation.

3. The method for identifying power equipment targets based on infrared images as claimed in claim 1, characterized in that: The enhanced initial infrared image is fused with the original infrared image to obtain the final enhanced infrared image. The specific method is: The enhanced initial infrared image and the original infrared image are fused using the principal component transformation PCA algorithm to obtain the final enhanced infrared image.

4. A power equipment target identification system based on infrared images, characterized in that: include: The image acquisition module is configured to: acquire the original infrared image of the power equipment to be detected, and pre-process the original infrared image; The image enhancement processing module is configured to: input the preprocessed original infrared image into a pre-trained deep convolutional generative adversarial network, output an enhanced initial infrared image, and fuse the enhanced initial infrared image with the original infrared image to obtain a final enhanced infrared image; the output of the enhanced initial infrared image specifically comprises the following steps: firstly input the original infrared image into a generative network of a pre-trained deep convolutional generative adversarial network, and the generative network outputs a generated image; then perform color enhancement processing on the generated image output by the generative network using an automatic color enhancement algorithm; and use the color enhanced image as the enhanced initial infrared image; the training steps of the pre-trained deep convolutional generative adversarial network include: constructing a deep convolutional generative adversarial network with a U-Net structure, and constructing a training set, and using the training set deep convolutional generative adversarial network for training; The automatic color enhancement algorithm reconstructs and adjusts the images generated by the generative network respectively. The automatic color enhancement algorithm is as follows: First, the color image generated by the generative network is processed separately for the RGB three channels, and the Y(x) value of each pixel in the image is calculated, that is: in is the intermediate result, is a brightness function, which is essentially a ramp function. is the brightness difference between two points, Represents the distance between two points, and then linearly expands the rectified image to Normalize the value of to get the white balance of the whole picture, and finally solve the optimal solution, that is: ; The identification module is configured to: construct an improved YOLOv4 structure based on the YOLOv4 algorithm to obtain an improved YOLOv4 model, input the final enhanced infrared image into the improved YOLOv4 model, and output the power equipment target identification result; the improved YOLOv4 structure based on the YOLOv4 algorithm specifically includes improved feature extraction and improved loss function; The improved feature extraction includes using three convolution kernels of different sizes to learn scale-related features from the input final enhanced infrared image, so as to effectively obtain multi-scale information of the infrared image; The improved loss function is to reduce the weight of easy-to-classify samples, expressed as: in, represents the predicted value; and is the modulation parameter, specifically: Used to balance the uneven proportion of the sample itself. Used to adjust the weight of different samples on the loss function; The final loss function of the YOLOv4 improved model is , in, Used to determine the specific location of the target. Used to determine the probability that a target exists in the prediction box.

5. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the steps in the method for identifying power equipment targets based on infrared images as described in any one of claims 1 to 3 are implemented.

6. An electronic device comprising a memory, a processor, and a program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps in the method for identifying power equipment targets based on infrared images as described in any one of claims 1 to 3 are implemented.