Faulty insulator detection method based on candidate box generation and coordinated attention mechanism

By using a multi-angle candidate frame generation network and a coordinated attention mechanism in insulator detection, combined with CSL ring smoothing labels, the problem of excessive redundant information caused by the horizontal anchor box regression method in the existing technology is solved, and the insulator shape and Accurate detection of angular features improves detection accuracy and efficiency.

CN114359541BActive Publication Date: 2024-09-27SHANGHAI UNIVERSITY OF ELECTRIC POWER
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202111399180.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-24
Publication Date
2024-09-27
Estimated Expiration
2041-11-24

AI Technical Summary

Technical Problem

When existing insulator detection methods process insulator images, the horizontal anchor box regression method results in too much redundant information, which affects the detection effect and cannot accurately extract insulator information. It is especially difficult to identify the tilt angle and diversity of the target in complex backgrounds.

Method used

Using a multi-angle detection method based on candidate frame generation and coordination attention mechanism, the CSPDarkNet network is combined with the Coordinate Attention mechanism and CSL annular smoothing label to generate multi-angle prediction frames, taking into account the relationship between channels and position information, adapting the insulator shape and Angular features.

Benefits of technology

It improves the accuracy and efficiency of insulator detection, can accurately locate target areas in complex backgrounds, is suitable for insulator position detection, and improves detection accuracy and visualization effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114359541B
    Figure CN114359541B
Patent Text Reader

Abstract

The present invention relates to a fault insulator detection method based on candidate frame generation and coordinated attention mechanism, comprising S1: obtaining an insulator image dataset; S2: constructing a multi-angle candidate frame generation network, the multi-angle candidate frame generation network comprising a backbone network, a coordinated attention component, and a prediction module; S3: training the multi-angle candidate frame generation network based on the insulator image dataset; S4: sending the insulator image to be detected into the multi-angle candidate frame generation network to obtain the predicted frame of the insulator in the insulator image to be detected. Compared with the prior art, the present invention has the advantages of being able to effectively adapt to the shape characteristics and angle characteristics of the insulator, having good detection accuracy and visualization effect, etc.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power detection, and in particular to a fault insulator detection method based on candidate frame generation and coordinated attention mechanism. Background Art

[0002] Due to the increasing dependence of modern society on electricity, the detection of power lines for uninterrupted power supply has become an important topic. Power lines are composed of several components with different functions, including insulators, towers, conductors and accessories. Among them, insulators are an important part of the transmission and transformation lines, and also provide protection for equipment. The failure and damage of insulators directly threaten the stability and safety of transmission lines. Most insulators are prone to safety hazards such as cracks, dust, defects or lightning strikes under harsh climatic conditions, resulting in huge economic and social costs. According to incomplete statistics, accidents such as line tripping caused by insulator defects or lightning strikes account for the highest proportion of power system failures. By checking the condition of insulator components, the efficiency of maintenance decisions can be greatly improved, the possibility of power line failures can be further reduced, and safe and reliable power supply can be ensured.

[0003] However, insulator inspection faces challenging problems such as large area, many components and complex natural environment. Traditional inspection methods include manual ground measurement and helicopter-assisted patrol. Both methods inspect power lines through human visual observation, which has the disadvantages of high cost, high risk and low efficiency. In recent years, the development of drones and digital imaging technology has provided a new platform for transmission line inspection. The drone inspection method collects images of the inspection target by inspectors remotely operating drones, and then performs data analysis and detection on the captured images or videos. Due to the advantages of low cost, high safety and high efficiency of drone inspection, the deployment of drone inspection to replace traditional manual inspection methods has been widely used.

[0004] Chinese patent CN202010748517.4 discloses an insulator defect detection and identification method based on ultraviolet imaging. This method grayscales the original image by means of color ultraviolet image processing, and improves the image quality by filtering, noise reduction and other means, and finally uses SVM classifier to realize insulator defect detection; Chinese patent CN202110650700.5 discloses a transmission line insulator defect detection method based on improved YOLOv4 algorithm. This method is improved on the basis of YOLOv4, and sharpens the image based on the sharpening algorithm of unsharp mask to improve the contour details of the insulator target; Chinese patent CN202110901495.5 discloses an insulator defect detection method and device for aerial images, and inputs the aerial insulator image to be tested into the Faster R-CNN model to realize detection. The prior art can provide excellent detection results, but their final regression box is horizontal, and the inclination angle and diversity of the target are not considered. The regression method using horizontal anchor boxes will generate more redundant information, affecting the non-maximum suppression results after detection, and easily lead to overfitting of network training and inability to accurately extract insulator information. Summary of the invention

[0005] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide a fault insulator detection method based on candidate frame generation and coordinated attention mechanism.

[0006] The purpose of the present invention can be achieved by the following technical solutions:

[0007] A fault insulator detection method based on candidate box generation and coordinated attention mechanism includes the following steps:

[0008] S1: Obtain insulator image dataset;

[0009] S2: construct a multi-angle candidate box generation network, the multi-angle candidate box generation network includes a backbone network, a coordinated attention component, and a prediction module, the backbone network is used to extract a feature image of an input image, the coordinated attention component performs attention processing on the feature image extracted by the backbone network, and sends it to the prediction module, the prediction module processes the feature image sent by the coordinated attention module, and obtains the prediction box information of the insulator in the input image;

[0010] S3: Training the multi-angle candidate box generation network based on the insulator image dataset;

[0011] S4: Send the insulator image to be detected to a multi-angle candidate box generation network to obtain a predicted box of the insulator in the insulator image to be detected.

[0012] Preferably, the backbone network is a CSPDarkNet network, and the backbone network includes a first feature extraction module, a second feature extraction module, a third feature extraction module, a fourth feature extraction module, a fifth feature extraction module, and a coordinated attention component that are connected in sequence. The input image of the backbone network is sequentially sent to the first feature extraction module, the second feature extraction module, the third feature extraction module, the fourth feature extraction module, the fifth feature extraction module, and the coordinated attention component for feature extraction.

[0013] Preferably, the coordinated attention component includes a first attention module, a second attention module, and a third attention module. The output feature map of the third feature extraction module is sent to the first attention module for processing, the output feature map of the fourth feature extraction module is sent to the second attention module for processing, and the output feature map of the fifth feature extraction module is sent to the third attention module for processing.

[0014] Preferably, the attention component further includes a first splicing module, a second splicing module, a third splicing module, and a fourth splicing module.

[0015] The output of the first attention module and the output of the second splicing module obtained by upsampling are sent to the first splicing module for splicing, and then sent to the prediction module after convolution processing;

[0016] The output of the second attention module and the output of the fourth splicing module obtained by upsampling are sent to the second splicing module for splicing. The output of the second splicing module and the output of the first splicing module obtained by downsampling are sent to the third splicing module for splicing and then sent to the prediction module after convolution processing.

[0017] The output of the third attention module and the output of the third splicing module obtained by downsampling are sent to the fourth splicing module for splicing and then sent to the prediction module after convolution processing.

[0018] Preferably, the first attention module, the second attention module, and the third attention module are all Coordinate Attention mechanism modules.

[0019] Preferably, the Coordinate Attention mechanism module uses adaptive average pooling layers in the horizontal and vertical directions to extract features from each feature channel for the input feature map; concatenates the generated feature maps, and then uses 1×1 convolution to simultaneously generate an intermediate feature map with vertical and horizontal spatial information; divides the intermediate feature map into two feature maps along the spatial direction, and uses 1×1 convolution to convert the number of channels; obtains attention weights in the vertical and horizontal spatial directions, multiplies them with the input feature map, and obtains a feature map with attention weights.

[0020] The calculation formula of the Coordinate Attention mechanism module is:

[0021] P=M in ×M mid +2×M mid ×M out

[0022] C=(H+W)×M in ×M mid +H×M mid ×M out +W×M mid ×M out

[0023] Among them, P is a parameter, M in is the number of input channels, M out is the number of output channels, M mid is the number of processing channels after compression, C is the computational complexity, and H and W represent the height and width of the feature map, respectively.

[0024] Preferably, the prediction module uses CSL circular smooth tags to perform multi-angle insulator detection.

[0025] Preferably, the expression of CSL is:

[0026]

[0027] Where g(x) is the window function, x is the input value, r is the radius of the window function, and θ represents the angle of the current bounding box. The window function g(x) must satisfy:

[0028] g(x)=g(x+kT),k∈NT=180 / π

[0029] 0≤g(θ+ε)=g(θ-ε)≤1,|ε|<r

[0030] g(θ)≤1

[0031] Where K is the number of cycles, T is the number of angle categories, ε is an arbitrary constant less than r, and r is the radius of the window function.

[0032] The window function divides the angle prediction into 180 classes, and g(x) is symmetrical with a maximum value of 1.

[0033] Preferably, the loss function of the prediction module is:

[0034]

[0035] Among them, N represents the number of pre-selected boxes, objn is a binary value, obj n =1 indicates foreground, obj n = 0 means background, no regression means background, v′ nj represents the predicted offset value, v nj represents the true value of the target, θ n ,θ′ n Represent the true value and predicted value of the angle respectively, t n Represents the label of the object, p n is the probability distribution calculated by the Sigmoid function. λ1, λ2, and λ3 represent the compromise values ​​of different losses, respectively. The default settings are (1, 0.5, 1). x, y, w, h, θ reg are the coordinates of the midpoints, width, height and angle functions of the predicted frame, respectively. reg is the regression loss, L CSL is the focusing loss, L csl is the classification loss.

[0036] Preferably, the formula for obtaining the prediction frame information is:

[0037] t x =(xx a ) / w a ;t y =(yy a ) / h a

[0038] t w =log(w / w a );t h =log(h / h a )

[0039] t θ =(θ-θ a )·π / 180

[0040] t′ x =(x′-x a ) / w a ; t′ y =(y′-y a ) / h a

[0041] t′ w =log(w′ / w a );t′ h =log(h′ / h a )

[0042] t′ θ =(θ′-θ a )·π / 180

[0043] Among them, x, y, w, h, θ are the center coordinates, width, height and angle values ​​of the real frame. a ,y a , w a ,h a ,θ a are the center point coordinates, width, height and angle values ​​of the candidate box, x′, y′, w′, h′, θ′ are the center point coordinates, width, height and angle values ​​of the predicted box, t x ,t y ,t w ,t h ,t θ are the decoded values ​​of the real boxes, t′ x , t′ y , t′ w , t′ h , t′ θ are the decoded values ​​of the predicted boxes, respectively.

[0044] Compared with the prior art, the present invention has the following advantages:

[0045] 1) The multi-angle candidate box generation network of the present invention is combined with the coordinated attention component and the CSL circular smooth label is used in the prediction module to perform multi-angle insulator detection, which can effectively detect the insulator in the insulator image and obtain the predicted box position of the insulator. The detection efficiency and accuracy are high, and the shape characteristics and angle characteristics of the insulator can be effectively adapted, and good results are achieved in terms of detection accuracy and visualization;

[0046] 2) The multi-angle candidate box generation network adopts a coordinated attention component, which takes into account the relationship between channels and position information. It not only captures cross-channel information, but also contains information that is sensitive to direction and position, which enables the model to locate and identify the target area more accurately, and can be effectively applied to the position detection of insulators, improving the detection accuracy of insulator positions;

[0047] 3) The present invention combines the coordinated attention mechanism with the backbone network, which greatly improves the detection accuracy of the model under complex backgrounds and can effectively solve the problems of occluded targets, shadows, and complex background textures. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 is a flow chart of the present invention;

[0049] Figure 2 A schematic diagram of a network structure is generated for a multi-angle candidate frame of the present invention;

[0050] Figure 3 This is a schematic diagram of a CSL annular smooth label of the present invention;

[0051] Figure 4 It is a structural diagram of the Coordinate Attention mechanism module of the present invention;

[0052] Figure 5 Generates a heat map of the attention mechanism for the present invention;

[0053] Figure 6 Schematic diagram of Box loss function in an embodiment of the present invention;

[0054] Figure 7 Schematic diagram of angle loss function in an embodiment of the present invention;

[0055] Figure 8 Schematic diagram of the total loss function in an embodiment of the present invention;

[0056] Fig. 9 This is a diagram of the detection effect in an embodiment of the present invention. DETAILED DESCRIPTION

[0057] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. Note that the following embodiments are merely illustrative in nature, and the present invention is not intended to limit its applicable objects or uses, and the present invention is not limited to the following embodiments.

[0058] Example

[0059] A faulty insulator detection method based on candidate box generation and coordinated attention mechanism, such as Figure 1 As shown, the following steps are included:

[0060] S1: Get the insulator image dataset.

[0061] In this embodiment, the insulators on the transmission line are photographed by drone inspection, and then the original images are screened, and the poor quality images, such as those with repeated angles, blurred shots, and those without the target, are eliminated, and a total of 2847 insulator images in different scenes are initially obtained. The dataset format used in this article is in VOC format, and data enhancement is performed through mosaic. A total of 12619 insulator dataset images are generated by rotating, flipping, noise, translating, and randomly splicing multiple images together. Use RoLabelImg to annotate the original image. When annotating, you can add angle information to the generated file through the annotation rotation box for network training tasks. The final dataset is divided into a training set and a test set in a ratio of 8:2 and input into the network training.

[0062] S2: Construct a multi-angle candidate box generation network, such as Figure 2As shown, the multi-angle candidate box generation network includes a backbone network, a coordinated attention component, and a prediction module. The backbone network is used to extract the feature image of the input image. The coordinated attention component performs attention processing on the feature map extracted by the backbone network and sends it to the prediction module. The prediction module processes the feature image sent by the coordinated attention module to obtain the predicted box information of the insulator in the input image.

[0063] In this embodiment, the backbone network is a CSPDarkNet network, which includes a first feature extraction module, a second feature extraction module, a third feature extraction module, a fourth feature extraction module, a fifth feature extraction module, and a coordinated attention component connected in sequence. The input image of the backbone network is sequentially sent to the first feature extraction module, the second feature extraction module, the third feature extraction module, the fourth feature extraction module, the fifth feature extraction module, and the coordinated attention component for feature extraction. Figure 2 As shown in , the first feature extraction module, the second feature extraction module, the third feature extraction module, the fourth feature extraction module, and the fifth feature extraction module are Block_1, Block_2, Block_3, Block_4, and Block_5, respectively.

[0064] The coordinated attention component includes a first attention module, a second attention module, and a third attention module. The output feature map of the third feature extraction module is sent to the first attention module for processing, the output feature map of the fourth feature extraction module is sent to the second attention module for processing, and the output feature map of the fifth feature extraction module is sent to the third attention module for processing.

[0065] Furthermore, the attention component also includes a first splicing module, a second splicing module, a third splicing module, and a fourth splicing module. The output of the first attention module and the output of the second splicing module obtained by upsampling are sent to the first splicing module for splicing, and then are sent to the prediction module through convolution processing; the output of the second attention module and the output of the fourth splicing module obtained by upsampling are sent to the second splicing module for splicing, the output of the second splicing module and the output of the first splicing module obtained by downsampling are sent to the third splicing module for splicing, and then are sent to the prediction module through convolution processing; the output of the third attention module and the output of the third splicing module obtained by downsampling are sent to the fourth splicing module for splicing, and then are sent to the prediction module through convolution processing.

[0066] The first attention module, the second attention module, and the third attention module are all Coordinate Attention mechanism modules.

[0067] Specifically, Figure 4As shown in the figure, the Coordinate Attention mechanism module uses adaptive average pooling layers in the horizontal and vertical directions to extract features from each feature channel for the input feature map; concatenates the generated feature maps, and then uses 1×1 convolution to simultaneously generate an intermediate feature map with vertical and horizontal spatial information; divides the intermediate feature map into two feature maps along the spatial direction, and uses 1×1 convolution to convert the number of channels; obtains the attention weights in the vertical and horizontal spatial directions, multiplies them with the input feature map, and obtains a feature map with attention weights. The calculation formula of the Coordinate Attention mechanism module is:

[0068] P=M in ×M mid +2×M mid ×M out

[0069] C=(H+W)×M in ×M mid +H×M mid ×M out +W×M mid ×M out

[0070] Among them, P is a parameter, M in is the number of input channels, M out is the number of output channels, M mid is the number of processing channels after compression, C is the computational complexity, and H and W represent the height and width of the feature map, respectively. Figure 5 This is the heat map after using the attention mechanism.

[0071] In this embodiment, Figure 3 As shown in the figure, the prediction module uses CSL circular smoothing label to perform multi-angle insulator detection. The expression of CSL is:

[0072]

[0073] Where g(x) is the window function, x is the input value, r is the radius of the window function, and θ represents the angle of the current bounding box. The window function g(x) must satisfy:

[0074] g(x)=g(x+kT),k∈NT=180 / π

[0075] 0≤g(θ+ε)=g(θ-ε)≤1,|ε|<r

[0076] g(θ)≤1

[0077] Where K is the number of cycles, T is the number of angle categories, ε is an arbitrary constant less than r, and r is the radius of the window function.

[0078] The window function divides the angle prediction into 180 classes, and g(x) is symmetric with a maximum value of 1.

[0079] The loss function of the prediction module is:

[0080]

[0081] Among them, N represents the number of pre-selected boxes, obj n is a binary value, obj n =1 indicates foreground, obj n = 0 means background, no regression means background, v' nj represents the predicted offset value, v nj represents the true value of the target, θ n ,θ' n Represent the true value and predicted value of the angle respectively, t n Represents the label of the object, p n is the probability distribution calculated by the Sigmoid function. λ1, λ2, and λ3 represent the compromise values ​​of different losses, respectively. The default settings are (1, 0.5, 1). x, y, w, h, θ reg They are the coordinates of the midpoints in the prediction box, the width, height and angle functions, L reg is the regression loss, L CSL is the focusing loss, L csl is the classification loss.

[0082] The formula for obtaining the prediction box information is:

[0083] t x =(xx a ) / w a ;t y =(yy a ) / h a

[0084] t w =log(w / w a );t h =log(h / h a )

[0085] t θ =(θ-θ a )·π / 180

[0086] t′ x =(x′-x a ) / w a ; t′ y =(y′-y a ) / h a

[0087] t′ w =log(w′ / w a );t′ h =log(h′ / h a )

[0088] t′ θ =(θ′-θ a )·π / 180

[0089] Among them, x, y, w, h, θ are the center coordinates, width, height and angle values ​​of the real frame. a ,y a , w a ,h a ,θ a are the center point coordinates, width, height and angle values ​​of the candidate box, x′, y′, w′, h′, θ′ are the center point coordinates, width, height and angle values ​​of the predicted box, t x ,t y ,t w ,t h ,t θ are the decoded values ​​of the real boxes, t′ x , t′ y , t′ w , t′ h , t′ θ are the decoded values ​​of the predicted boxes, respectively.

[0090] S3: Train the multi-angle candidate box generation network based on the insulator image dataset.

[0091] In this embodiment, the Pytorch framework is used to build the model based on the Python programming language. The experimental operating system is Ubuntu 16.04 and NVIDIA Tesla T4 (16G video memory). The batch size is set to 16, the initial learning rate is 0.001, and the stochastic gradient descent method is used to optimize the total loss function. The input image size is 640×640.

[0092] The evaluation index used in this paper is the mean average precision (mAP). The precision (Precision) and recall (Recall) of each category are obtained by measuring the intersection-over-union (IOU) of the predicted label box and the true label box. The area of ​​the curve drawn by the precision and recall is the mean accuracy (AP). The average AP of multiple categories is the average accuracy. Its calculation formula can be expressed as:

[0093]

[0094] Where n is the total number of categories, p is the precision, and r is the recall.

[0095] The processed data set is input into the model for training. The image first passes through the backbone network and prediction module, extracts feature information through convolution and nonlinear processing, and generates the angle value of the pre-selected box through the CSL circular smoothing label, so that the pre-selected box matches the angle feature of the target. After that, it is processed by the coordinated attention mechanism, combined with the horizontal and vertical spatial feature information of the target, and the attention weights in two directions are obtained. The weighted feature map is multiplied by the original feature map to obtain a feature map with weight information, which increases the network's attention to the insulator. After 150 rounds of training, the trained model weight map is obtained, as shown in Figures 6 to 8 Schematic diagram of Box loss function, angle loss function, and total loss function during training.

[0096] S4: Send the insulator image to be detected into the multi-angle candidate box generation network to obtain the predicted box of the insulator in the insulator image to be detected, such as Fig. 9 shown.

[0097] The above embodiments are merely examples and do not limit the scope of the present invention. These embodiments can also be implemented in various other ways, and various omissions, substitutions, and changes can be made without departing from the technical concept of the present invention.

Claims

1. A faulty insulator detection method based on candidate box generation and coordinated attention mechanism, characterized in that: The following steps are involved: S1: Obtain insulator image dataset; S2: construct a multi-angle candidate box generation network, the multi-angle candidate box generation network includes a backbone network, a coordinated attention component, and a prediction module, the backbone network is used to extract a feature image of an input image, the coordinated attention component performs attention processing on the feature image extracted by the backbone network, and sends it to the prediction module, the prediction module processes the feature image sent by the coordinated attention module, and obtains the prediction box information of the insulator in the input image; S3: Training the multi-angle candidate box generation network based on the insulator image dataset; S4: sending the insulator image to be detected into a multi-angle candidate box generation network to obtain a predicted box of the insulator in the insulator image to be detected; The coordinated attention component includes a first attention module, a second attention module, and a third attention module. The output feature map of the third feature extraction module is sent to the first attention module for processing, the output feature map of the fourth feature extraction module is sent to the second attention module for processing, and the output feature map of the fifth feature extraction module is sent to the third attention module for processing; The attention component further includes a first splicing module, a second splicing module, a third splicing module, and a fourth splicing module. The output of the first attention module and the output of the second splicing module obtained by upsampling are sent to the first splicing module for splicing, and then sent to the prediction module after convolution processing; The output of the second attention module and the output of the fourth splicing module obtained by upsampling are sent to the second splicing module for splicing. The output of the second splicing module and the output of the first splicing module obtained by downsampling are sent to the third splicing module for splicing and then sent to the prediction module after convolution processing. The output of the third attention module and the output of the third splicing module obtained by downsampling are sent to the fourth splicing module for splicing and then sent to the prediction module after convolution processing.

2. A faulty insulator detection method based on candidate box generation and coordinated attention mechanism according to claim 1, characterized in that: The backbone network is a CSPDarkNet network, which includes a first feature extraction module, a second feature extraction module, a third feature extraction module, a fourth feature extraction module, a fifth feature extraction module, and a coordinated attention component that are connected in sequence. The input image of the backbone network is sent to the first feature extraction module, the second feature extraction module, the third feature extraction module, the fourth feature extraction module, the fifth feature extraction module, and the coordinated attention component in sequence for feature extraction.

3. A faulty insulator detection method based on candidate box generation and coordinated attention mechanism according to claim 1, characterized in that: The first attention module, the second attention module, and the third attention module are all Coordinate Attention mechanism modules.

4. A faulty insulator detection method based on candidate box generation and coordinated attention mechanism according to claim 3, characterized in that: The Coordinate Attention mechanism module uses adaptive average pooling layers in the horizontal and vertical directions to extract features from each feature channel for the input feature map; concatenates the generated feature maps, and then uses 1×1 convolution to simultaneously generate an intermediate feature map with vertical and horizontal spatial information; divides the intermediate feature map into two feature maps along the spatial direction, and uses 1×1 convolution to convert the number of channels; obtains the attention weights in the vertical and horizontal spatial directions, multiplies them with the input feature map, and obtains a feature map with attention weights. The calculation formula of the Coordinate Attention mechanism module is: P=M in ×M mid +2×M mid ×M out C=(H+W)×M in ×M mid +H×M mid ×M out +W×M mid ×M out Among them, P is a parameter, M in is the number of input channels, M out is the number of output channels, M mid is the number of processing channels after compression, C is the computational complexity, and H and W represent the height and width of the feature map, respectively.

5. The fault insulator detection method based on candidate box generation and coordinated attention mechanism according to claim 1, characterized in that: The prediction module uses CSL circular smooth tags to perform multi-angle insulator detection.

6. A faulty insulator detection method based on candidate box generation and coordinated attention mechanism according to claim 5, characterized in that: The expression of CSL is: Where g(x) is the window function, x is the input value, r is the radius of the window function, and θ represents the angle of the current bounding box. The window function g(x) must satisfy: g(x)=g(x+kT),k∈NT=180 / π 0≤g(θ+ε)=g(θ-ε)≤1,|ε|<r g(θ)≤1 Where K is the number of cycles, T is the number of angle categories, ε is an arbitrary constant less than r, and r is the radius of the window function. The window function divides the angle prediction into 180 classes, and g(x) is symmetrical with a maximum value of 1.

7. A faulty insulator detection method based on candidate box generation and coordinated attention mechanism according to claim 6, characterized in that: The loss function of the prediction module is: Among them, N represents the number of pre-selected boxes, obj n is a binary value, obj n =1 indicates foreground, obj n = 0 means background, no regression means background, v' nj represents the predicted offset value, v nj represents the true value of the target, θ n ,θ' n Represent the true value and predicted value of the angle respectively, t n Represents the label of the object, p n is the probability distribution calculated by the Sigmoid function, λ1, λ2, λ3 represent the compromise values ​​of different losses, x, y, w, h, θ reg are the coordinates of the midpoints, width, height and angle functions of the predicted frame, respectively. reg is the regression loss, L CSL is the focusing loss, L csl is the classification loss.

8. The fault insulator detection method based on candidate box generation and coordinated attention mechanism according to claim 1, characterized in that: The formula for obtaining the prediction box information is: t x =(x-x a ) / w a ;t y =(y-y a ) / h a t w =log(w / w a );t h =log(h / h a ) t θ =(θ-θ a )·π / 180 t′ x =(x′-x a ) / w a ;t′ y =(y′-y a ) / h a t′ w =log(w′ / w a );t′ h =log(h′ / h a ) t′ θ =(θ′-θ a )·π / 180 Among them, x, y, w, h, θ are the center coordinates, width, height and angle values ​​of the real frame. a ,y a ,w a ,h a ,θ a are the center point coordinates, width, height and angle values ​​of the candidate box, x′, y′, w′, h′, θ′ are the center point coordinates, width, height and angle values ​​of the predicted box, t x ,t y ,t w ,t h ,t θ are the decoded values ​​of the real boxes, t′ x , t′ y , t′ w , t′ h , t′ θ are the decoded values ​​of the predicted boxes, respectively.

Citation Information

Patent Citations

  • Insulator defect detection and recognition method based on ultraviolet imaging method

    CN111833346A

  • Power transmission line insulator defect detection method based on improved YOLOv4 algorithm

    CN113469953A

  • Insulator defect detection method and device based on aerial image

    CN113538412A

  • Insulator identification method for unmanned aerial vehicle polling electric transmission line

    CN104978580A

  • Aerial image-based method for detecting insulator deficiency in power transmission line

    CN106877237A