Power line foreign object detection method based on Faster R-CNN
By combining image preprocessing and learning rate adjustment in the Faster R-CNN network, the YOLO series algorithm solves the accuracy and training set size problems in the detection of foreign objects on power lines, achieves efficient and accurate detection of foreign objects on power lines, and reduces leakage. Inspection rates and costs.
Patent Information
- Application Number
- CN202111228906.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-21
- Publication Date
- 2024-08-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing YOLO series algorithms cannot meet the accuracy requirements for foreign object detection in power line foreign object detection, and are demanding on the size of the training set, resulting in poor detection results during power line inspection.
Using the power line foreign object detection method based on Faster R-CNN, through image preprocessing (grayscale, grayscale equalization, Gaussian filtering, Sobel operator edge extraction, Hough transform line detection) and adjusting the learning rate and Epoch size, Faster is trained R-CNN network enables accurate detection of foreign objects on power lines.
It effectively reduces the missed detection rate and improves detection accuracy and efficiency. It is suitable for power line inspection in complex backgrounds and is low-cost and does not require additional hardware.
Smart Images

Figure CN113989209B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of computer vision power grid application, and in particular relates to a power line foreign body detection method based on Faster R-CNN. Background Art
[0002] As the scale of the AC power transmission line industry continues to expand, the human and financial resources consumed in the maintenance of power transmission lines are also increasing. Many power transmission lines are built in places that are difficult for inspectors to reach, and power transmission lines in natural environments are very susceptible to damage by "foreign objects", such as plastic bags, kites, bird nests, etc. hanging on power lines. If these "foreign objects" are not discovered quickly, they may cause power accidents and affect residents' daily electricity and industrial electricity consumption.
[0003] At present, the inspection method for transmission lines is mainly for staff to gradually inspect along the direction of the power lines. However, the current transmission network has a large span and is located in a rugged terrain, which will bring great difficulties and dangers to the inspection work of staff. The emergence of drone inspections allows inspections to be carried out safely and without being affected by geographical conditions and weather conditions. Compared with manual inspections and helicopter inspections, the advantages of intelligent drone inspections are: ① Safety: It can avoid exposing staff to poor inspection conditions and also reduce the risk of electric shock when staff directly contact high-voltage circuit inspections. ② High efficiency: It directly avoids the problem of low efficiency of manual inspection circuits and greatly reduces the inspection time. ③ Cheap: It directly reduces the investment of manpower and financial resources and reduces expenses. ④ High accuracy: When inspected directly by manpower, the attention may be reduced and the judgment may be insufficient due to the heavy use of human eyes, thereby reducing the accuracy of judgment. Intelligent drone inspections can collect inspection images in real time and make fault judgments, greatly improving accuracy and objectivity.
[0004] At present, most drones use YOLO series algorithms to process images. YOLO series is a one-stage target detection algorithm. For the input image, under the influence of regression thinking, a deep convolutional neural network can be used to obtain the location and type information of the target to be detected. Because this algorithm has only one stage, the detection speed is very high and it is often used in various environments that require real-time detection. The current YOLO series algorithms are mainly YOLOv3 and YOLOv4.
[0005] The YOLO algorithm has a low background false detection rate and strong versatility. However, compared with the R-CNN series of algorithms, YOLO has a lower accuracy in identifying the location of objects and a low recall rate. However, for the detection of foreign objects on power lines this time, we first need to detect the types of foreign objects on the power lines and accurately mark the locations of the foreign objects on the power lines, and the YOLO series of algorithms cannot meet such requirements. At the same time, the YOLO series of algorithms has certain requirements for the size of the training set used in deep learning. Currently, there are very few pictures obtained by drones during power line inspections, and there are also very few cases where there are foreign objects on the power lines or power line breaks and other abnormal power line conditions. At this time, using the YOLO series of algorithms that have relatively stringent requirements on the size of the training set will result in poor training results and poor target detection results.
[0006] We first chose the CNN series of technologies, but found that CNN put too much load on the GPU, so we used preprocessing technologies such as Sobel operator edge extraction and Hough transform line detection to greatly reduce the missed detection rate and reduce the consumption of the GPU. At the same time, the improved Epoch and learning rate size made the detection efficiency higher. Summary of the invention
[0007] In view of the problems existing in the background technology, the present invention provides a power line kite foreign object detection method based on the Faster R-CNN algorithm, which can locate and identify power lines in images with complex backgrounds and determine whether there are foreign objects such as kites.
[0008] In order to solve the above technical problems, the present invention adopts the following technical solution: a power line foreign body detection method based on Faster R-CNN, including a training mode and a diagnosis mode; comprising the following steps:
[0009] Step 1: Preprocess the inspection image, including graying the image, graying the image, and performing Gaussian filtering on the image to remove Gaussian noise that occurs during image acquisition.
[0010] Step 2: Use the Sobel operator to extract the edge of the preprocessed image, then perform expansion filling or corrosion processing on the extracted edge binary image, and use Hough transform to perform straight line detection;
[0011] Step 3: Set different learning rates, put the marked images into the Faster R-CNN network for training, and obtain the power line foreign object detection model of the Faster R-CNN network;
[0012] Step 4: Compare the various indicators of the training model obtained with different learning rates and select the appropriate learning rate;
[0013] Step 5: Input the aerial image to be detected into the trained detection model, and the Faster R-CNN network returns the kite foreign object location box through calculation to complete the diagnosis.
[0014] In the above-mentioned power line foreign object detection method based on Faster R-CNN, the specific steps implemented by the Faster R-CNN network module include:
[0015] 1) Input the aerial image into the Faster R-CNN network;
[0016] 2) Calculate the actual output of the Faster R-CNN network to obtain the information of the target prediction box;
[0017] 3) Calculate the numerical difference between the target prediction box and the target real box;
[0018] 4) If the difference between the two exceeds the threshold, adjust the Faster R-CNN network parameter settings;
[0019] 5) After training is completed, the power line foreign object detection information is obtained.
[0020] In the above-mentioned power line foreign object detection method based on Faster R-CNN, the implementation of the core anchor mechanism of the RPN network in the Faster R-CNN network includes:
[0021] In the RPN network, the corresponding mapping area in the original image corresponds to each point in the feature map. At the same time, in the original image, the center of the area is used as the anchor point, and three sizes are taken respectively. 7 *2 7 , 2 8 *2 8 and 2 9 *2 9 And 9 areas with three aspect ratios of 1:1, 1:2, and 2:1 are used as anchor boxes. There are a total of WXHX 9 anchor boxes in Faster R-CNN, where W and H correspond to the length and width in the feature map respectively; each anchor in the feature map is 2 8dimension, each anchor point anchor is input into the RPN network, and two groups of data, 2k and 4k, are obtained respectively; among them, k is 9, which represents the number of each anchor point anchor box; 2 represents the two data of the anchor point anchor box belonging to the foreground and background, which are used to roughly classify the target; 4 represents the four parameter coordinate regression values, which are used to roughly locate the Proposal box; for each anchor point anchor, a vector of length 2k+4k is output, which indicates whether the k candidate regions corresponding to the anchor point anchor are foreground or background and can obtain the position information; after the result obtained by the RPB network passes through the ROIPooling layer, the feature map corresponding to the Proposal box is obtained on the feature map, and finally the result is brought into the subsequent network for target category judgment and detailed regression of the location.
[0022] Compared with the prior art, the invention has the following beneficial effects: ① It can effectively utilize drone aerial images to improve the utilization rate of images; ② It is low-cost and only requires adding a power line foreign body detection module based on the Faster R-CNN algorithm to the existing system without adding other hardware; ③ The trained model has a good prediction effect for power lines under different background environments. ④ Gaussian filtering, Sobel operator edge extraction, and Hough transform line detection are used to reduce the missed detection rate. ⑤ By changing the learning rate and Epoch size, the sample foreign body detection is made more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 This is a flow chart of power line foreign body detection based on Faster R-CNN according to an embodiment of the present invention;
[0024] Figure 2 This is a structural diagram of Faster R-CNN according to an embodiment of the present invention. DETAILED DESCRIPTION
[0025] The technical solutions in the embodiments of the present invention will be described clearly and completely below in combination with 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.
[0026] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.
[0027] The present invention will be further described below in conjunction with specific embodiments, but the present invention is not limited thereto.
[0028] This embodiment is based on the power line foreign body detection method of Faster R-CNN, including training mode and diagnosis mode; the training mode returns the iterative loss through the pictures in the training data set to obtain a stable and usable model; the diagnosis mode obtains the diagnosis result of whether there is a kite foreign body on the power line and the location of the kite foreign body by inputting the image to be tested. First, the Gaussian noise is removed by using techniques such as image graying, image gray equalization, and Gaussian filtering. In order to reduce the load of the GPU on the deep learning Faster RCNN, the Sobel operator is used for edge extraction, and then the extracted edge binary image is expanded and filled. Some images may also use corrosion processing, and finally the Hough transform is used for straight line detection. It can effectively extract the power lines in the background of the general complex image and reduce the missed detection rate of the transmission line. The best effect of foreign body detection on the transmission line is obtained by changing the learning rate and the size of each Epoch.
[0029] This embodiment is implemented by the following technical solution: a method for detecting foreign objects in a power line based on the Faster R-CNN algorithm, comprising the following steps:
[0030] In step S1, the inspection image needs to be preprocessed first, including image grayscale, image grayscale equalization, and Gaussian filtering to remove Gaussian noise that may appear during image acquisition, so that the edge information of the processed image is easier to extract and has less interference.
[0031] Step S2, the enhanced image is subjected to edge extraction using the Sobel operator, and then the extracted edge binary image is subjected to dilation and filling processing. Some images may also be subjected to corrosion processing, and finally the Hough transform is used for line detection. This method can effectively extract power lines in images with generally complex backgrounds and reduce the missed detection rate of transmission lines.
[0032] Step S3: Use the Faster R-CNN algorithm, input the training data set, train the model, and experiment with different learning rates.
[0033] Step S4, comparing various indicators of the training model obtained with different learning rates, and selecting the most appropriate learning rate.
[0034] Step S5, the aerial image to be detected is input into the trained model, and the network returns the power line kite foreign object location box through calculation to complete the diagnosis.
[0035] In specific implementation, the input of the power line foreign body detection method based on the Faster R-CNN algorithm is an image of the power line taken by a drone, including two parts: training mode and diagnosis mode. Figure 1 shown.
[0036] 1) First, the inspection image needs to be preprocessed, including image grayscale, image grayscale equalization, and Gaussian filtering. The enhanced image is subjected to edge extraction using the Sobel operator, and then the extracted edge binary image is subjected to dilation and filling processing. Some images may also be subjected to corrosion processing. Finally, Hough transform is used for straight line detection.
[0037] 2) Set different learning rates and put the labeled images into the Faster R-CNN algorithm for training to obtain the power line foreign object detection model of the Faster R-CNN algorithm.
[0038] 3) Measure the various indicators of the model after training, repeat step 2), and conduct five experiments with different learning rates.
[0039] 4) Compare the various indicators of the training model obtained with different learning rates and select the most appropriate learning rate.
[0040] 5) The aerial image to be detected is input into the trained model, and the network completes the diagnosis by calculating and returning the kite foreign object location box.
[0041] The specific implementation steps of the Faster R-CNN network module include:
[0042] a. Input the aerial insulator string image into the Faster R-CNN network;
[0043] b. Calculate the actual output of the network and obtain the information of the target prediction box;
[0044] c. Calculate the numerical difference between the target prediction box and the target real box;
[0045] d. If the difference between the two exceeds the threshold, adjust the network parameter settings;
[0046] e. Training is completed and power line foreign object detection information is obtained.
[0047] When using the Faster R-CNN algorithm, the specific implementation of the above process is as follows Figure 2 As shown, the important one is the RPN network.
[0048] The most important core of the RPN network is the anchor mechanism.
[0049] In the RPN network, there is a corresponding mapping area in the original image corresponding to each point in the feature map. At the same time, in the original image, the center of the area is taken as the anchor point, and 2 7 *2 7 , 2 8 *2 8 and 29 *2 9 There are 9 areas with three sizes and three aspect ratios of 1:1, 1:2, and 2:1 as anchor boxes, so there are a total of WXHX 9 anchor boxes in FasterR-CNN, where W and H correspond to the length and width in the feature map respectively. Each anchor point in the feature map is 2 8 dimension, and input each anchor point into the RPN network to obtain two sets of data, 2k and 4k respectively. Among them, k is 9, which represents the number of anchor boxes for each anchor point; 2 represents the two data of this anchor box belonging to the foreground and background, which can be used to roughly classify the target; 4 represents the four parameter coordinate regression values, which are used to roughly locate the Proposal box. For each anchor point, a vector of length 2k+4k will be output, and this vector represents the judgment of the k candidate areas corresponding to this anchor point for whether it is the foreground or the background, and can obtain approximate information about the location. After the results obtained by the RPB network pass through the ROIPooling layer, the feature map corresponding to the Proposal box can be obtained on the feature map, and finally the results are brought into the subsequent network to perform target category judgment and detailed regression of the location. The final process is the same as Fast R-CNN.
[0050] The above are only preferred embodiments of the present invention, and are not intended to limit the implementation methods and protection scope of the present invention. Those skilled in the art should be aware that all solutions obtained by equivalent substitutions and obvious changes made using the contents of the specification of the present invention should be included in the protection scope of the present invention.
Claims
1. A power line foreign object detection method based on Faster R-CNN, characterized by: The following steps are involved: Step 1: Preprocess the inspection image, including graying the image, graying the image, and performing Gaussian filtering on the image to remove Gaussian noise that occurs during image acquisition. Step 2: Use the Sobel operator to extract the edge of the preprocessed image, then perform expansion filling or corrosion processing on the extracted edge binary image, and use Hough transform to perform straight line detection; Step 3: Set different learning rates, put the marked images into the Faster R-CNN network for training, and obtain the power line foreign object detection model of the Faster R-CNN network; The following steps are included 1) Input the aerial image into the Faster R-CNN network; 2) Calculate the actual output of the Faster R-CNN network to obtain the information of the target prediction box; 3) Calculate the numerical difference between the target prediction box and the target real box; 4) If the difference between the two exceeds the threshold, adjust the Faster R-CNN network parameter settings; 5) After training is completed, the power line foreign object detection information is obtained; Step 4: Compare the various indicators of the training model obtained with different learning rates and select the appropriate learning rate; Step 5: Input the aerial image to be detected into the trained detection model. The Faster R-CNN network returns the kite foreign object position box by calculation to complete the diagnosis. The implementation steps are as follows: In the RPN network, the corresponding mapping area in the original image corresponds to each point in the feature map. At the same time, in the original image, the center of the area is used as the anchor point, and three sizes are taken respectively , and And 9 areas with three aspect ratios of 1:1, 1:2, and 2:1 are used as anchor boxes. There are a total of WXHX 9 anchor boxes in Faster R-CNN, where W and H correspond to the length and width in the feature map respectively; each anchor in the feature map is Dimension, each anchor point anchor is input into the RPN network, and two sets of data of 2k and 4k are obtained respectively; where k is 9, which represents the number of anchor boxes of each anchor point; 2 represents the two data of the anchor box belonging to the foreground and background, which are used to roughly classify the target; 4 represents the four parameter coordinate regression values, which are used to roughly locate the Proposal box; for each anchor point, a vector of length 2k+4k is output, which indicates whether the k candidate regions corresponding to the anchor point are foreground or background and can obtain the position information; after the result obtained by the RPB network passes through the ROIPooling layer, the feature map corresponding to the Proposal box is obtained on the feature map, and finally the result is brought into the subsequent network for target category judgment and detailed regression of the location.
Citation Information
Patent Citations
Power transmission line foreign matter detection method based on an improved Faster RCNN
CN109493337A
An airport runway foreign matter detection method based on Fast-RCNN
CN109766884A
Vehicle-mounted video target detection method based on deep learning
WO2020181685A1
Cited By
Abnormality detection method, system, device and medium based on multi-modal visual large model
CN120726398B
