Electric power overhead conductor detection method based on course learning strategy
Through the course learning strategy and wavelet-entropy algorithm, the data set is divided into simple and complex categories, and combined with directional gradient statistics to remove error detection frames, it solves the problem of low detection accuracy of power overhead wire detection methods in complex environments, and achieves high Precise wire detection, suitable for drone inspections.
Patent Information
- Application Number
- CN202410798000.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-27
AI Technical Summary
Existing power overhead conductor detection methods have low detection accuracy in complex environments and difficulty in feature learning, resulting in low network detection accuracy and prone to false detections. They cannot independently distinguish between natural landscapes and man-made landscapes, affecting conductor feature learning and positioning.
Using a method based on course learning strategies, the data set is divided into simple and complex categories through wavelet transformation and information entropy. The data set is successively input into the YOLOv5 network for training. It uses directional gradient statistics to remove error detection frames and improve the accuracy of overhead wire detection.
Without expanding the scale of the network, it achieves high-precision detection of overhead wires, improves detection accuracy, alleviates the phenomenon of false detection and missed detection, and enhances the network's ability to learn wire characteristics. It is suitable for unmanned systems in complex backgrounds. Machine inspection.
Smart Images

Figure CN118711086A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power equipment inspection, and in particular to a power overhead wire detection method based on a curriculum learning strategy. Background Art
[0002] As an important carrier of power transmission in the national power grid, the safe and stable operation of overhead wires is the guarantee of energy security. Regular inspection and maintenance of overhead wires is the main means to ensure the normal operation of the power grid. The detection and operation methods of power lines mainly include manual inspection and machine inspection. The traditional manual inspection method is time-consuming and labor-intensive, and the working environment is poor and the risk factor is high. The machine inspection method represented by drones not only ensures the reliability and safety of the inspection, but also has the advantages of low cost, high efficiency, and no influence from the geographical environment. In this field, accurate detection of overhead wires based on pictures or videos taken by drones is the key and prerequisite for realizing automated high-precision drone inspections.
[0003] At present, the detection methods of power overhead wires are mainly divided into two categories: traditional methods and deep learning methods. Among them, the traditional methods based on edge detection operators and straight line detection algorithms can no longer cope with the huge power system safety operation and maintenance needs in the era of large power grids. In recent years, deep learning methods have been widely used in the power industry, among which the commonly used deep target detection algorithms include single-stage and double-stage. The two-stage detection algorithm is based on candidate regions, including two stages of detection and recognition. Representative algorithms include R-CNN, Fast R-CNN and Faster R-CNN. These algorithms have high detection accuracy but low detection speed. The single-stage detection algorithm directly predicts the category and location of the target, has a fast detection speed, and can meet real-time requirements. The YOLO algorithm is one of the best. The target detection network represented by YOLOv5 is fast and easy to deploy on the edge. Compared with traditional image processing methods, it has low complexity, does not require pre-definition of target features, and can adaptively adjust parameters.
[0004] The shortcomings of the existing technical solutions are:
[0005] (1) Low detection accuracy and weak environmental adaptability. The transmission line environment is complex, with a variety of complex inspection scenes (such as forests, fields, cities, etc.). At the same time, the overhead wires are slender and cross the entire image, resulting in low network detection accuracy. When performing target detection on transmission lines in different environments, misdetection will occur due to visual similarity.
[0006] (2) Difficulty in feature learning. Although the target detection network represented by YOLOv5 is fast and easy to deploy, the network itself cannot autonomously distinguish between simple and complex backgrounds in the drone inspection environment. It is easy to have insufficient and inaccurate learning of overhead wire features, resulting in incomplete detection of wires, which affects the positioning of overhead wires by drones in the later stage. Summary of the invention
[0007] The present invention provides a method for detecting overhead power lines based on a curriculum learning strategy. Drawing on the human mindset of learning courses from easy to difficult, the wavelet transform and information entropy are innovatively integrated, and the wavelet-entropy algorithm is used to divide the data set into simple and complex data, so that the YOLOv5 network learns simple data first and then learns complex data, improving the network's learning and understanding of overhead line features. Finally, combined with a post-processing module that removes error detection frames, high-precision detection of overhead lines is achieved without expanding the network scale, providing new ideas for automatic inspection of overhead lines by drones and promoting the development of technology in this field.
[0008] A method for detecting overhead power lines based on a curriculum learning strategy comprises the following steps:
[0009] First, single-sample multi-target box annotation is performed on the data set, and segmented annotation and segmented detection of overhead wires are performed to mark the direction of overhead wires.
[0010] Then, the image complexity of the dataset images is calculated based on wavelet-entropy, and the dataset is divided into two types: simple and complex. The two datasets are sent to the YOLOv5 network for training and learning, so that the network learns the simple dataset first and then the complex dataset, further improving the detection accuracy of overhead wires.
[0011] Finally, for the overhead wire images that still have false detections after YOLOv5 network detection, directional gradient statistics are used to process the target frame, remove the false detection frame, retain the complete and accurate overhead wire target detection frame, and retain the complete and accurate overhead wire.
[0012] The detection method of the present invention is applied to the detection of power overhead wire targets under complex backgrounds during drone inspections, achieving high-precision detection of overhead wires without expanding the network scale, and providing technical support for drones to automatically and accurately detect power overhead wires.
[0013] Overhead wire detection is an important part of power inspection. However, in inspection images, the target background of natural landscapes (forests, grasslands, and skies) is simple, and the network can more easily learn the shape characteristics of overhead wires. The target background of artificial landscapes (roads, buildings) is often similar to the color and shape of overhead wires, making it difficult for the network to learn the features of overhead wires. The YOLOv5 network cannot autonomously distinguish between natural and artificial landscapes, and is prone to insufficient and inaccurate learning of overhead wire features, resulting in low network accuracy. In response to the above problems, in order to improve the detection accuracy of slender physical structure targets such as overhead wires, a method for detecting power overhead wires based on a curriculum learning strategy is invented. Drawing on the human way of thinking from easy to difficult when learning courses, the wavelet transform and information entropy are innovatively integrated, and the wavelet-entropy algorithm is used to divide the data set into simple and complex data. The YOLOv5 network learns simple data first and then complex data, improving the network's learning and understanding of overhead wire features. Finally, combined with the post-processing module for removing error detection frames, high-precision detection of overhead wires is achieved without expanding the network scale, providing new ideas for automatic inspection of overhead wires by drones and promoting technological development in this field. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 It is a schematic diagram of the framework of the implementation method of the present invention;
[0015] Figure 2 It is a schematic diagram of the process of implementing the method of the present invention;
[0016] Figure 3 An example diagram of labeling a power overhead wire data set according to the present invention;
[0017] Figure 4 This is a diagram showing the calculation results of the elbow rule of the present invention;
[0018] Figure 5 It is the YOLOv5 network structure diagram of the present invention;
[0019] Figure 6 It is the YOLOv5 target detection diagram of the present invention;
[0020] Figure 7 It is the directional gradient statistical histogram of the present invention;
[0021] Figure 8 The comparison diagram of the effect of the wrong detection frame removal algorithm of the present invention, wherein (a) is the YOLOv5 target detection image; (b) is the effect diagram of the wrong detection frame removal algorithm;
[0022] Fig. 9 The comparison diagram of the course learning strategy experiment of the present invention, wherein (a) is the original diagram; (b) is the traditional training strategy detection diagram; (c) is the course learning strategy detection diagram;
[0023] Fig.10 This is a visualization effect diagram of the direction of the overhead wire detection frame of the present invention;
[0024] Fig.11 It is the directional gradient statistical histogram of the present invention;
[0025] Fig.12 This is a diagram showing the effect of removing the error check frame of the present invention;
[0026] Fig.13 The comparison diagram of the false positive box removal experiment of the present invention, where (a) is the original image; (b) is the YOLOv5 detection result; (c) is the false positive box removal effect diagram;
[0027] Fig.14 The figure compares the effects of removing false detection frames of power overhead wires in different scenarios using different methods. DETAILED DESCRIPTION
[0028] The present invention proposes a method for detecting overhead power lines based on a curriculum learning strategy. The specific implementation framework is as follows: Figure 1 As shown in the figure. First, the data set is annotated with single-sample multi-target frames, and the overhead wires are segmented and detected, marking the direction of the overhead wires. Then, the image complexity calculation based on wavelet-entropy is performed on the data set images, and the data set is divided into two types: simple and complex data sets. The two data sets are successively sent to the YOLOv5 network for training and learning, so that the network first learns the simple data set and then the complex data set, further improving the accuracy of overhead wire detection. Finally, for the overhead wire images that still have false detections after YOLOv5 network detection, the directional gradient statistics are used to process the target frame, remove the false detection frame, retain the complete and accurate overhead wire target detection frame, and retain the complete and accurate overhead wire.
[0029] The specific implementation process of the present invention is as follows Figure 2 shown.
[0030] The specific steps are described as follows:
[0031] (1) Input the power overhead wire dataset, marked as I. Label the dataset I. The labeling of the dataset directly affects the accuracy of the target detection network. Since the overhead wires in aerial images have the characteristics of slender shape, small grayscale difference, and crossing complex environmental backgrounds, the detection is difficult. In order to improve its detection accuracy, the present invention proposes a single-sample multi-target frame labeling method suitable for overhead wire detection, and performs segmented labeling and segmented detection on the overhead wires. The labeling example is as follows: Figure 3 As shown ( Figure 3The red box in the middle indicates the “overhead wire” label), which reduces unnecessary background information while accurately indicating the direction of the overhead wires, making it easier to analyze the location of the overhead wires.
[0032] (2) Wavelet transform decomposition. Perform Haar wavelet transform decomposition on I, and obtain N sub-bands after decomposition. According to experiments, the three-level decomposition of the overhead wire image has the best effect, and a total of 10 sub-bands are obtained after three-level wavelet decomposition. For each wavelet coefficient sub-band, calculate its energy E j .
[0033]
[0034] In the formula, E j represents the energy of the jth subband, c j,i represents the i-th coefficient in the j-th subband.
[0035] (3) Energy normalization. Normalize the energy of each subband so that the sum of all subband energies is equal to 1. Calculate the normalized energy P of each subband. j .
[0036]
[0037] Where P j represents the normalized energy of the j-th subband.
[0038] (4) Image complexity calculation: Calculate the entropy value of the normalized subband energy, that is, the image complexity H calculated using wavelet decomposition and information entropy.
[0039]
[0040] (5) Divide the data set. Use the k-means algorithm to cluster the image complexity H, and use the elbow rule to calculate the optimal number of clusters. The calculation results are as follows: Figure 4 shown.
[0041] from Figure 4 It can be seen that the reduction of the average distortion degree of the nearest cluster number k calculated by the elbow rule slows down significantly after 2, which means that when k=2, if the clustering categories are increased, the effect is not significantly improved. It can be confirmed that the k of the image complexity H should be 2, that is, H can be divided into two categories: H1 and H2. Finally, according to H1, H2 and the k-means algorithm, the data set is divided into a simple data set I1 and a complex data set I2.
[0042] (6) After the data set is divided, the data set needs to be input into the network for training and testing. The present invention selects YOLOv5, which has a fast speed and is relatively simple to deploy on the edge, as the target detection network. The simple and complex data sets divided based on wavelet-entropy are successively input into the deep learning network for learning and training. This is used to simulate the process of learning simple knowledge first and then complex knowledge when humans learn courses, and is applied to the field of overhead wire target detection.
[0043] The YOLOv5 network consists of four parts: input end, backbone network, Neck layer and prediction layer. The YOLOv5 network structure is as follows: Figure 5 As shown. The input end uses the data enhancement Mosaic method to enrich the data diversity, and the adaptive anchor box calculation is used to improve the accuracy of the anchor box. The backbone network consists of the Focus structure, CBL (Conv+BN+Leaky Relu) and CSP (CrossStagePartial connections). The Focus structure generates a 320×320×32 feature map after convolution operation on the 640×640×3 input image. CBL is a convolution module, which consists of convolution, normal distribution and activation function. Two CSP structures are designed in YOLOv5: CSP1_X and CSP2_X. CSP1_X is used for the backbone network, which divides the input into two parts. One part is first subjected to CBL, then passes through X residual components, and finally convolution; the other part is directly convolution. The feature information obtained after the fusion of these two parts is more than that of a single convolution. The CSP2_X structure without residual components is applied to Neck to enhance the fusion of network features.
[0044] (7) Obtain the coordinates of the detection frame. After the network is trained, the original aerial image of the overhead wire is input for YOLOv5 network detection. The target information is output through the YOLOv5 network to obtain the center point position coordinates x of each detection frame of the overhead wire. m and width a m and height b m , m = 1, 2, 3...n, n is the number of target boxes. YOLOv5 target detection diagram is as follows Figure 6 As shown in the figure, it can be seen that after the YOLOv5 network detects the overhead wire picture, there are still some false detection phenomena.
[0045] (8) Coordinate normalization. m 、a m 、b m Normalize the data and convert the target frame from the relative position of the input image ratio to the actual pixel position in the image. Calculate the normalized coordinates X of the center point of each target frame based on the normalized data m .
[0046] (9) Directional gradient statistics. According to X m , connect any two center points to form M straight lines. Normalize all straight line angles to 0-180 degrees, and count the frequency of all angles F. Directional gradient statistics are as follows Figure 7 As shown, the horizontal axis is the angle, and the vertical axis is the angle occurrence frequency F. According to the characteristics that the overall direction of overhead wires is roughly the same, the straight line angle frequency on the same wire is much higher than the straight line angle frequency of other noise points.
[0047] (10) Filter the detection frame. Take 80% of the maximum value in F as the threshold, and keep all the straight lines and target frames above the threshold. Figure 8 As shown in the figure, the directional gradient statistics can be used to clearly screen out the target recognition frame on the direction of the overhead wire, filter out the inspection frame with incorrect recognition, and retain the accurate and complete overhead wire.
[0048] (11) Output the detected image to obtain the final power overhead wire detection image I0.
[0049] 1. Comparison of the effects of the course learning strategy of the present invention and the traditional training strategy
[0050] The present invention proposes a course learning strategy based on wavelet-entropy, selects 948 drone aerial images containing overhead wires, performs operations such as mirror flipping and random rotation, increases the data set without changing the image information, and expands the images to 3792 images, which are used as the data set of the present invention. The images are observed subjectively by humans, and the data set is divided into 2720 simple data sets and 1072 complex data sets. At the same time, the wavelet-entropy algorithm is used to divide the data set into 2852 simple data sets and 940 complex data sets. The traditional training strategy and the course learning strategy are experimentally compared, and the experimental indicators are shown in Table 1. Among them, mAP is the average value of the accuracy of all categories. When IoU is set to 0.5, the AP of all pictures of each category is calculated, and then all categories are averaged, that is, mAP_0.5. The first line of Table 1 shows the indicators under the traditional training strategy, the second line shows the indicators under the course training strategy based on artificial division of the data set, and the third line shows the indicators under the course learning strategy training based on wavelet-entropy division of the data set.
[0051] Table 1 Comparison of training strategies and methods
[0052]
[0053]
[0054] It can be seen from Table 1 that among the different training strategies of YOLOv5, the traditional training strategy has low accuracy, and the curriculum learning strategy has improved mAP_0.5 to above 0.75 compared with the traditional training strategy. In the same curriculum learning strategy, when dividing the data set, the wavelet-entropy algorithm is used instead of the subjective judgment of human beings, and the mAP_0.5 of YOLOv5 is improved to 0.786. Experiments have shown that the curriculum learning strategy is conducive to the YOLOv5 network learning the characteristics of overhead wires, and the network accuracy is greatly improved; at the same time, the algorithm is used instead of the manual division of the data set, and the image complexity evaluation method is used to make the curriculum learning strategy more objective and accurate.
[0055] Course learning strategy experimental test comparison Fig. 9 As shown. Fig. 9 It can be seen that in different environments, the traditional training strategy detection map of the YOLOv5 network ((b) in the figure) has low accuracy, while the curriculum learning strategy detection map ((c) in the figure) has greatly improved accuracy, which can effectively alleviate the false detection and missed detection phenomena of the YOLOv5 network.
[0056] 2. Comparison of the course learning strategy of the present invention in different image complexity algorithms
[0057] The present invention uses the wavelet-entropy algorithm to calculate the complexity of the data set images, and then divides the samples according to the different complexities of the data set images. In order to further verify the rationality and effectiveness of the course learning strategy of the present invention, the present invention uses different image quality evaluation methods to divide the data set and verify the detection ability of the course learning strategy based on wavelet-entropy. During the experiment, the effects of different image complexity algorithms such as K-means, wavelet transform, information entropy, and wavelet-entropy were compared, and the experimental results are shown in Table 2.
[0058] Table 2 Comparison of image complexity algorithms
[0059] Dataset Training strategy mAP Overall dataset Traditional training strategies 0.678 K-means partitioning of data sets Course Learning Strategies 0.632 Wavelet transform partitioning dataset Course Learning Strategies 0.736 Information entropy partitioning dataset Course Learning Strategies 0.755 Wavelet-entropy partitioning of data sets Course Learning Strategies 0.786
[0060] From the experimental results in Table 2, we can see that under the same course learning strategy, the K-means algorithm has the worst effect, the wavelet transform and information entropy algorithms have improved, and the wavelet-entropy algorithm has the best effect. Among them, the course learning strategy based on wavelet-entropy has a mAP_0.5 as high as 0.786. Experiments have shown that a single image complexity algorithm is difficult to accurately divide the data set, while wavelet-entropy, as a combination of wavelet transform and information entropy, can accurately divide simple and complex data sets, achieving the purpose of training the network with the course learning strategy and improving accuracy.
[0061] 3. Visualization experiment of removing wrong check boxes in the present invention
[0062] After network training, the YOLOv5 network has limitations in its recognition accuracy for slender physical structure targets such as overhead wires, and some images are still unable to completely and accurately identify overhead wires. Based on the labeling and detection of multiple target frames, the present invention adopts a directional gradient statistical method, using the direction of the target frame to eliminate erroneous detection frames and retain the complete overhead wire target detection frame. In the experiment, the present invention visualizes the directional gradient statistical step. After obtaining the YOLOv5 detection frame coordinates, any two detection frames are connected and marked as blue segments to indicate the direction of the detection frame. The visualization effect is as follows: Fig.10 shown.
[0063] from Fig.10 It can be seen that the detection frame on the overhead wire is on the same directional gradient, so the blue line segments representing the directional gradient have a lot of overlap in the detection frame direction, and the number is much higher than the number of blue line segments between any detection frame and noise points on the overhead wire. All straight line angles are normalized to 0-180 degrees, and the frequency of all angles is counted. Directional gradient statistics are as follows Fig.11 As shown, the horizontal axis is the angle and the vertical axis is the frequency of angle occurrence.
[0064] from Fig.11 As can be seen from the figure, due to the fact that the overall direction of overhead wires is roughly the same, the straight line angle frequency on the same wire is much higher than the straight line angle frequency of other noise points. By using directional gradient statistics, the YOLOv5 error detection frame can be screened and removed, and the correct detection frame on the overhead wire is retained. The effect of removing the error detection frame is shown in Figure 2. Fig.12 shown.
[0065] The experimental results of the before and after comparison of the wrong detection frame removal algorithm based on directional gradient statistics are as follows Fig.13 As shown, the red box in the figure is the target detection box. Fig.13 It can be seen that due to the complex background of the overhead wire image, there are still small areas of false detection. After the directional gradient statistical processing, the image with the false detection frame removed ((c) in the figure) is compared with the YOLOv5 detection image ((b) in the figure). The recognition frames on the overhead wires are retained, and the false detection frames are removed, retaining the accurate and complete information of the overhead wires.
[0066] 4. Application of the present invention in removing wrong inspection frames in complex inspection scenarios
[0067] To further verify the robustness of the present invention, the present invention adds a multi-complex environment to verify the detection ability of the method under complex backgrounds. The experimental results are as follows: Fig.14 As shown, experiments have proved that the present invention can still eliminate interference and completely detect and extract overhead power lines under complex backgrounds such as urban roads, sky, power poles, grasslands, parks, etc.
[0068] In general, in order to improve the detection accuracy of slender structural targets such as overhead wires, the present invention proposes an overhead power wire detection algorithm based on a curriculum learning strategy. During sample preparation, the overhead wire image is segmented and labeled using multiple detection frames. During training, a new training method based on curriculum learning strategy is adopted to further improve the network accuracy. During post-processing, directional gradient statistics are used to remove erroneous detection frames. Experimental results show that the overhead wire detection algorithm based on curriculum learning strategy proposed in the present invention has an accuracy improvement of 10.8%, and mAP_0.5 reaches 78.6%. It can completely and accurately detect slender targets such as overhead wires, and show the direction of overhead wires, so as to better guide drone path planning and meet the requirements of drone inspection navigation.
Claims
1. A method for detecting overhead power lines based on curriculum learning strategy, characterized in that The steps include: First, single-sample multi-target box annotation is performed on the data set, and segmented annotation and segmented detection of overhead wires are performed to mark the direction of overhead wires. Then, the image complexity of the dataset images is calculated based on wavelet-entropy, and the dataset is divided into two types: simple and complex. The two datasets are sent to the YOLOv5 network for training and learning, so that the network learns the simple dataset first and then the complex dataset, further improving the detection accuracy of overhead wires. Finally, for the overhead wire images that still have false detections after YOLOv5 network detection, directional gradient statistics are used to process the target frame, remove the false detection frame, retain the complete and accurate overhead wire target detection frame, and retain the complete and accurate overhead wire.
2. The method for detecting overhead power lines based on curriculum learning strategy according to claim 1 is characterized in that: Input power overhead wire dataset, marked as I; Label the data set I and perform segmented labeling and segmented detection on the overhead wires; Wavelet transform decomposition, perform haar wavelet transform decomposition on I, and after decomposition, a total of several wavelet coefficient subbands are obtained; for each wavelet coefficient subband, calculate its energy E j ; In the formula, E j represents the energy of the jth subband, c j,i represents the i-th coefficient in the j-th subband; Energy normalization: normalize the energy of each subband so that the sum of all subband energies is equal to 1, and calculate the normalized energy P of each subband j ; Where P j represents the normalized energy of the j-th subband; Image complexity calculation, calculate the entropy value of the normalized sub-band energy, that is, the complexity H of the image calculated using wavelet decomposition and information entropy; Divide the data set, use the k-means algorithm to cluster the image complexity H, and use the elbow rule to calculate the optimal number of clusters; After the data set is divided, the data set needs to be input into the network for training and testing; Get the coordinates of the detection frame. After the network is trained, input the original aerial image of the overhead wire for YOLOv5 network detection. Output the target information through the YOLOv5 network to obtain the center point position coordinates x of each detection frame of the overhead wire. m and width a m and height b m , m = 1, 2, 3…n, n is the number of target boxes; Normalize the coordinates and convert x m 、a m 、b m Normalize the data and convert the target frame from the relative position of the input image ratio to the actual pixel position in the image; calculate the coordinates X of the center point of each target frame after normalization based on the normalized data m ; Directional gradient statistics, according to X m , connect any two center points to form M straight lines; normalize all straight line angles to 0-180 degrees, and count the frequency F of all angles; Filter the detection frame, take 80% of the maximum value in F as the threshold, and retain all the straight lines and target frames above the threshold; use the directional gradient statistics to significantly filter out the target recognition frame on the direction of the overhead wire, and filter out the inspection frame with incorrect recognition, retaining accurate and complete overhead wires; The detected image is output to obtain the final power overhead wire detection image I0.
