A method, system and electronic equipment for detecting defects of key components of a power transmission line
Through network learning assisted by cascade models and prior knowledge, combined with feature extraction and gated recurrent networks, the problem of defect classification and computational complexity in defect detection of key components of transmission lines is solved, achieving high-precision defect detection and resource saving. .
Patent Information
- Application Number
- CN202311847260.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2024-09-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing defect detection methods for key components of transmission lines are difficult to achieve detailed defect classification and have high computational complexity, resulting in low efficiency and large errors, and cannot meet actual inspection needs.
The cascade model is combined with the feature extraction network and the gated recurrent network, and prior knowledge is used to assist network learning to extract the size and misclassification probability information of key components, construct a graph structure for target detection and defect identification, and reduce the consumption of computing resources.
It achieves accurate detection of key component categories and multiple defect types of transmission lines, improves detection accuracy, reduces the consumption of computing resources, and can more comprehensively identify defect types of transmission lines.
Smart Images

Figure CN117974566B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of remote sensing image data processing, and in particular to a method, system and electronic equipment for detecting defects of key components of a power transmission line. Background Art
[0002] Transmission lines are a key component of the power system and are vital to social production, life and economic development. Transmission lines are exposed to the natural environment for a long time, and are not only affected by their own mechanical loads, but also by factors such as climate disasters and external force damage, which can easily lead to various defects in various components, such as rust, breakage, deformation, etc. These defects may cause line failures and power outages. In order to ensure the safe and stable operation of the power system, it is crucial to detect defects in key components of transmission lines.
[0003] In the early days, the defect detection process of key components of power transmission lines mainly adopted (1) target detection methods based on texture information, which used gray-level co-occurrence matrix, local binary pattern and other methods to describe the texture features of components, and then extracted key components of transmission lines through texture feature segmentation; (2) target detection methods based on image segmentation, which segmented key components of transmission lines by comparing saliency maps; (3) target detection methods based on machine learning, which used support vector machine method, sliding window method and other methods to screen out key components in images. These methods require manual extraction of target features, which are inefficient and have large errors, and can often only detect specific categories of components.
[0004] At present, the target detection method based on deep learning has become the mainstream method for defect detection of key components of power transmission lines. It mainly uses a single target detection model (such as the YOLO series and the R-CNN series) to locate and classify the components in the detection image and determine whether the components have defects. However, such methods can usually only classify limited states, such as normal or a certain category of defects, and cannot achieve more detailed defect classification, which is difficult to meet the needs of actual inspection work. In addition, most of the existing research methods use convolutional neural networks, which are improved and optimized from the aspects of multi-scale, loss function and attention mechanism, and capture more features of each target area by designing a deeper network. However, such practices often increase the computational complexity of the model, resulting in more computing resources and time required during the operation. Summary of the invention
[0005] In view of the defects of the prior art, the present invention provides a method, system and electronic equipment for detecting defects of key components of power transmission lines, which can detect the categories of key components and identify the corresponding defect types, reduce the consumption of computing resources to a certain extent, and improve the accuracy of detecting defects of key components of power transmission lines.
[0006] To achieve the above object, the present invention provides the following solutions:
[0007] A method for detecting defects in key components of a power transmission line, comprising:
[0008] Acquire images of the transmission line to be tested;
[0009] Inputting the image of the transmission line to be tested into a key component reasoning detection model to obtain a component category and a target detection frame of each key component in the transmission line to be tested; the key component reasoning detection model includes a feature extraction network and a gated recurrent network connected in sequence;
[0010] Determine any key component as the current key component;
[0011] Based on the target detection frame corresponding to the current key component, the current key component image is cut from the image of the transmission line to be tested;
[0012] Determine that the ResNet50 model corresponding to the component category of the current key component is the current key component defect recognition model; the ResNet50 model corresponds to the key component category one by one; the ResNet50 model is obtained by training the ResNet50 model using multiple key component annotated samples corresponding to the key component category;
[0013] The current key component image is input into the current key component defect recognition model to obtain the defect detection result of the current key component.
[0014] Optionally, the key components include insulators, shock-proof hammers and wire clamps; the defect detection result of the insulators is a normal insulator, a self-explosive insulator or a deformed insulator; the defect detection result of the shock-proof hammers is a normal shock-proof hammer, a rusted shock-proof hammer or a damaged shock-proof hammer; the defect detection result of the wire clamps is a normal wire clamp, a rusted wire clamp or a damaged wire clamp.
[0015] Optionally, after inputting the current key component image into the current key component defect recognition model to obtain the defect detection result of the current key component, the method further includes:
[0016] Update the current key component and return to the step "based on the target detection frame corresponding to the current key component, cut the current key component image from the image of the transmission line to be tested" until all key components in the image of the transmission line to be tested are traversed to obtain the defect detection result of each key component in the image of the transmission line to be tested.
[0017] Optionally, before inputting the current key component image into the current key component defect recognition model to obtain the defect detection result of the current key component, the method further includes:
[0018] Adjust the size of the current key component image according to the preset size template.
[0019] Optionally, the image of the transmission line to be tested is input into a key component reasoning detection model to obtain a component category and a target detection frame of each key component in the transmission line to be tested, including:
[0020] According to the key component annotated sample set, the size characteristic matrix and the misclassification probability matrix of the key components of the transmission line to be tested are determined;
[0021] Constructing a graph structure according to the size feature matrix and the misclassification probability matrix to obtain a priori knowledge relationship graph;
[0022] Inputting the transmission line image to be tested into a feature extraction network to obtain location information and ROI features of multiple candidate regions;
[0023] Determine a spatial position relationship matrix according to position information of multiple candidate regions;
[0024] Determine a local feature relationship matrix according to ROI features of multiple candidate regions;
[0025] Constructing a graph structure according to the spatial position relationship matrix and the local feature relationship matrix to obtain a network internal relationship graph;
[0026] The prior knowledge relationship graph and the network internal relationship graph are input into a gated recurrent network to obtain the component category and target detection frame of each key component in the power transmission line to be tested.
[0027] A transmission line key component defect detection system, comprising:
[0028] An image acquisition module, used to acquire images of the transmission line to be tested;
[0029] A key component category detection module is used to input the image of the transmission line to be tested into a key component reasoning detection model to obtain the component category and target detection frame of each key component in the transmission line to be tested; the key component reasoning detection model includes a feature extraction network and a gated recurrent network connected in sequence;
[0030] A current key component determination module, used to determine any key component as a current key component;
[0031] A current key component image determination module is used to cut the current key component image from the image of the transmission line to be tested based on the target detection frame corresponding to the current key component;
[0032] The current key component defect recognition model selection module is used to determine the ResNet50 model corresponding to the component category of the current key component as the current key component defect recognition model; the ResNet50 model corresponds to the key component category one by one; the ResNet50 model is obtained by training the ResNet50 model using multiple key component annotated samples of the corresponding key component category;
[0033] The key component defect recognition module is used to input the current key component image into the current key component defect recognition model to obtain the defect detection result of the current key component.
[0034] An electronic device comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program so that the electronic device executes the method for detecting defects of key components of a power transmission line.
[0035] Optionally, the memory is a readable storage medium.
[0036] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects: a method, system and electronic device for detecting defects of key components of a transmission line provided by the present invention can be mainly divided into two parts. The first part is used to detect the categories of key components of the transmission line in the image, including three categories of insulators, shock-absorbing hammers and wire clamps; the second part is used to identify the types of defects of key components of the transmission line in the image, including normal insulators, self-explosive insulators, deformed insulators, normal shock-absorbing hammers, rusted shock-absorbing hammers, damaged shock-absorbing hammers, normal wire clamps, rusted wire clamps and damaged wire clamps. The design of the cascade model is decoupled from each other by two parts, and each part can better adapt to its task, effectively improving the detection and classification accuracy. It is proposed to use prior knowledge to assist network learning, and obtain size distribution information and misclassification probability information as prior knowledge by pre-statisticalizing all the annotation box information and network training results in the sample set. Prior knowledge is integrated into the model structure to enhance the network's ability to extract the appearance and size features of targets of different categories, and ultimately improve the model's recognition and positioning accuracy of key components. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0038] Figure 1 This is a flow chart of a method for detecting defects in key components of a power transmission line in Embodiment 1 of the present invention;
[0039] Figure 2 This is a schematic diagram of a method for detecting defects in key components of a power transmission line in Embodiment 1 of the present invention;
[0040] Figure 3 This is a structural diagram of the reasoning detection model for key components in Example 1 of the present invention. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in 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.
[0042] The purpose of the present invention is to provide a method, system and electronic equipment for detecting defects in key components of a power transmission line, which can detect the key component category and identify the corresponding defect type, reduce the consumption of computing resources to a certain extent, and improve the accuracy of detecting defects in key components of a power transmission line.
[0043] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0044] Example 1
[0045] like Figure 1 As shown, this embodiment provides a method for detecting defects of key components of a power transmission line, comprising:
[0046] Step 101: Acquire an image of a transmission line to be tested.
[0047] Step 102: Input the image of the transmission line to be tested into the key component reasoning detection model to obtain the component category and target detection frame of each key component in the transmission line to be tested. The key component reasoning detection model includes a feature extraction network and a gated recurrent network connected in sequence.
[0048] Step 103: Determine any key component as the current key component.
[0049] Step 104: Based on the target detection frame corresponding to the current key component, the current key component image is cut from the image of the transmission line to be tested.
[0050] Step 105: Determine the ResNet50 model corresponding to the component category of the current key component as the current key component defect recognition model. The ResNet50 model corresponds to the key component category one by one. The ResNet50 model is obtained by training the ResNet50 model using multiple key component annotated samples corresponding to the key component category.
[0051] Step 106: Input the current key component image into the current key component defect recognition model to obtain the defect detection result of the current key component. The key components include insulators, anti-vibration hammers and wire clamps. The defect detection result of the insulator is a normal insulator, or a self-exploding insulator or a deformed insulator. The defect detection result of the anti-vibration hammer is a normal anti-vibration hammer, or a rusted anti-vibration hammer or a damaged anti-vibration hammer. The defect detection result of the wire clamp is a normal wire clamp, or a rusted wire clamp or a damaged wire clamp.
[0052] Step 107: Update the current key component, and return to step 104 until all key components in the image of the transmission line to be tested are traversed to obtain the defect detection result of each key component in the image of the transmission line to be tested.
[0053] Before step 106, the method further includes:
[0054] Step 108: Adjust the size of the current key component image according to the preset size template.
[0055] Step 102 includes:
[0056] Step 102-1: Determine the size feature matrix and misclassification probability matrix of the key components of the transmission line to be tested based on the key component labeled sample set.
[0057] Step 102-2: Construct a graph structure according to the size feature matrix and the misclassification probability matrix to obtain a priori knowledge relationship graph.
[0058] Step 102 - 3: Input the image of the transmission line to be tested into the feature extraction network to obtain the location information and ROI features of multiple candidate regions.
[0059] Step 102 - 4 : Determine a spatial position relationship matrix according to the position information of the plurality of candidate regions.
[0060] Step 102 - 5 : Determine a local feature relationship matrix according to the ROI features of multiple candidate regions.
[0061] Step 102-6: Construct a graph structure based on the spatial position relationship matrix and the local feature relationship matrix to obtain a network internal relationship graph.
[0062] Step 102-7: Input the prior knowledge relationship graph and the network internal relationship graph into the gated recurrent network to obtain the component category and target detection frame of each key component in the transmission line to be tested.
[0063] The following is a detailed description of a method for detecting defects in key components of a power transmission line provided in this embodiment. Figure 2 , this embodiment includes:
[0064] Step 1: Acquisition of prior knowledge of key components:
[0065] Step 1.1, key component size distribution information:
[0066] Step 1.1.1: Assume that the key components of the transmission line contain V categories c in total. Calculate the value of any category c in the sample set. I The average width, average height and average area of the (I∈1,2,3…V) annotation box are calculated one by one. The calculation formula is as follows:
[0067]
[0068]
[0069]
[0070] in, and Respectively represent category c I The average width, average height, and average area of the annotation boxes.
[0071] Step 1.1.2, calculate any category c in the sample set I The size feature vector g of (I∈1,2,3…V) I , the calculation formula is as follows:
[0072]
[0073] Among them, g I Indicates category c I The size feature vector reflects the category c I W, H, and S represent the width, height, and area of the training image, respectively.
[0074] Step 1.1.3, calculate the size feature vector of each category one by one until all categories are calculated, and a total of V size feature vectors are obtained.
[0075] Step 1.1.4, for any two categories c I and c J(I∈1,2,3…V,J∈1,2,3…V), calculate category c I and c J The Euclidean distance between size feature vectors is calculated as follows:
[0076]
[0077] in, Indicates category c I and c J The Euclidean distance between the size feature vectors reflects the similarity of the size distribution of any two target categories. The smaller the size, the higher the similarity of the size distribution between categories. I , g J Respectively represent category c I 、c J The size feature vector of .
[0078] Step 1.1.5, calculate the Euclidean distance between the size feature vectors of all possible category combinations one by one, and represent them using a matrix of size V×V. The size feature matrix is the obtained size distribution information.
[0079] Step 1.2, key component misclassification probability information:
[0080] Step 1.2.1, calculate any two categories c in the training results I and c J The probability of misclassification between (I∈1,2,3...V,J∈1,2,3...V) is calculated as follows:
[0081]
[0082] in, Indicates category c I Mistakenly classified as category c J The probability of N I,J Indicates that it belongs to category c I Misclassified as category c J The number of samples, N I Indicates that it belongs to category c I The total number of samples
[0083] Step 1.2.2, calculate the misclassification probability of all possible category combinations one by one, and represent them using a matrix of size V×V. The misclassification probability matrix is the obtained misclassification probability information.
[0084] Step 2: Image feature extraction:
[0085] Step 2.1: Input the transmission line image X taken by a drone and use the VGG16 network feature extraction to obtain the feature map.
[0086] In step 2.2, the feature map is input into RPN to obtain multiple candidate regions, which are then connected to the fully connected layer after pooling to obtain the location and category information of the candidate regions.
[0087] Step 2.3: Input the candidate region into ROIPooling to obtain the ROI features of the candidate region.
[0088] Step 3: Candidate region relationship calculation:
[0089] Step 3.1, calculation of spatial position relationship of candidate regions:
[0090] Step 3.1.1, suppose n candidate region bboxes are output after step 2.2, calculate the bboxes of any two candidate regions i and bbox j The position relationship of (i∈1,2,3…n,j∈1,2,3…n) is recorded as the spatial position relationship between candidate regions. The calculation formula is as follows:
[0091]
[0092] Among them, x i ,y j Represents the candidate region bbox i The center point coordinates, w i 、h i and i Respectively represent the candidate area bbox i width, height and area.
[0093] Step 3.1.2, calculate the spatial position relationship of all possible combinations of candidate regions one by one, using a matrix of size n×n, denoted by R s .
[0094] Step 3.2, calculation of local feature relationship between candidate regions:
[0095] Step 3.2.1: Output the ROI features of n candidate regions through step 2.3, and calculate the bbox of any two candidate regions i and bbox j The ROI feature similarity of (i∈1,2,3...n,j∈1,2,3...n) is recorded as the local feature relationship between candidate regions The calculation formula is as follows:
[0096]
[0097]
[0098] Among them, f i、f j Respectively represent the candidate area bbox i and bbox j ROI features, represents the ROI similarity coefficient, The larger the bbox, the candidate area i and bbox j The ROI features of dot(f i ,f j ) indicates f i and f j The dot product of ||f i ||*||f j || represents f i and f j Multiply the modulus of .
[0099] Step 3.2.2, calculate the local feature relationships of all possible combinations of candidate regions one by one, using a matrix of size n×n, denoted by R l .
[0100] Step 3.2.3: After step 2.2, output the category information of n candidate regions. According to the size feature matrix, calculate the size feature relationship of all possible combinations of candidate regions one by one, and use a matrix of size n×n to represent it, denoted as R g .
[0101] Step 3.2.4: After step 2.3, output the category information of n candidate regions. According to the misclassification probability matrix, calculate the misclassification probability relationship of all possible combinations of candidate regions one by one, and use a matrix of size n×n to represent it, denoted as R m .
[0102] Step 4: Build a graph structure to represent the correlation between candidate regions.
[0103] Step 4.1, network internal relationship graph structure construction:
[0104] Step 4.1.1, based on the obtained ROI features and spatial position relationship R of the candidate region s and local feature relation R l Construct the internal relationship graph structure G of the network E , G E =(v,e E ) consists of a graph node v and a graph edge e E constitute,
[0105] Node v is composed of the ROI features of the candidate region:
[0106] v i =f i (10).
[0107] Among them, v i represents node i, f i Represents any candidate region bbox i ROI features of (i∈1,2,3...n).
[0108] Edge E It is composed of any two nodes connected:
[0109]
[0110] in, Represents node v i 、v j The connected edges, Represents any two candidate regions bbox i 、bbox j The spatial position relationship of (i∈1,2,3...n,j∈1,2,3...n), Represents any two candidate regions bbox i 、bbox j The local feature relationship, W s , W l They represent learnable weight matrices, and relu and tanh represent activation functions.
[0111] Step 4.1.2, calculate the edges between all nodes one by one, and finally build the internal relationship graph structure of the network.
[0112] Step 4.2, construct the prior knowledge relationship graph structure:
[0113] Step 4.2.1: Based on the obtained ROI features and size feature relationship R of the candidate region g and the probability of misclassification R m , construct the prior knowledge relationship graph structure G P , G P =(v,e P ) consists of a graph node v and a graph edge e P The node v is composed of the ROI features of the candidate region, and the edge e P It is composed of any two nodes connected, and the calculation formula is as follows:
[0114]
[0115] in, Represents node v i 、v j The connected edges, Represents any two candidate regions bbox i 、bbox j(i∈1,2,3…n,j∈1,2,3…n) dimension characteristic relationship, Represents any two candidate regions bbox i 、bbox j The misclassification probability relationship, W g , W m They represent learnable weight matrices, and relu and tanh represent activation functions.
[0116] Step 4.2.2, calculate the edges between all nodes one by one, and finally construct the prior knowledge relationship graph structure.
[0117] Step 5: Based on the reasoning detection of the gated recurrent network, the state of each node in the network internal relationship graph and the prior knowledge relationship graph is updated to obtain the final update information of the node, complete the key component category detection, and obtain the component category:
[0118] Step 5.1, node v at time t-1 i ROI feature f i As the initial state of the node, the maximum pooling method is used to aggregate the relevant information transmitted by all other nodes. While retaining its own important features, it receives the information transmitted by all other nodes, and obtains the initial states of the nodes of the network internal relationship graph and the prior knowledge relationship graph respectively. The calculation formula is as follows:
[0119]
[0120]
[0121] in, Represents the internal relationship graph node v of the network i Initial aggregation information of Represents the prior knowledge relationship graph node v i Initial aggregation information.
[0122] Step 5.2: Based on the gated recurrent network, the internal relationship graph node v of the network i The node status is updated based on the information received from all other nodes. The gating mechanism selectively integrates information related to the node when updating the node status, and discards or ignores information that is not important to the current node. The calculation formula is as follows:
[0123]
[0124]
[0125]
[0126]
[0127] Among them, r t and z t Represent the reset gate and update gate respectively, Represents the node v at time t i The hidden state information, W z , W r , W represents the learnable weight matrix, Indicates the internal relationship graph node v of the network after updating once i The feature information obtained.
[0128] Step 5.3, same as step 5.2, based on the gated recurrent network, the node v of the prior knowledge relationship graph i The status is updated, and the calculation formula is as follows:
[0129]
[0130]
[0131]
[0132]
[0133] in, Represents the node v of the prior knowledge relationship graph after updating once i The feature information obtained.
[0134] Step 5.4, use maxpooling to aggregate and update the internal network relationship graph and prior knowledge relationship graph node v i The node information is calculated as follows:
[0135]
[0136] Among them, f i ' represents node v i The information state is iteratively updated once from time t-1 to time t.
[0137] Step 5.5, for node v i The iterative update of the node is completed after k iterations, and the iterative update of all node states is completed one by one until the iterative update of all node states is completed.
[0138] In step 5.6, the iteratively updated node features are connected to the fully connected layer to output the component categories and target detection boxes of key components, which include three categories: insulators, shock-absorbing hammers, and wire clamps.
[0139] Step 6: Identification of defect types of key components of transmission lines:
[0140] Step 6.1, according to the target detection frame coordinate parameters outputted in step 5.6, the target detection frame is cut out from the transmission line image X according to the target frame coordinate parameters.
[0141] In step 6.2, the cut images of the key components of the transmission line are resized to obtain images of a size of 224*224, so that they meet the image input requirements of the ResNet50 model. For each key component image, the key component category is input into the trained ResNet50 model of the corresponding component category to identify the key component defect type. Finally, nine defect types are detected, including normal insulators, self-explosive insulators, deformed insulators, normal anti-shock hammers, rusted anti-shock hammers, damaged anti-shock hammers, normal wire clamps, rusted wire clamps, and damaged wire clamps, until all key component defects are detected.
[0142] (1) Achieve more detailed defect detection of key components of transmission lines. Most of the existing methods for detecting defects in key components of transmission lines use a single target detection model to achieve component positioning and component status classification in the detection image. Such methods usually only focus on locating and classifying specific components and defects, and it is difficult to handle different types of components and defects at the same time. On the other hand, there are cases where some components have similar morphology or similar features, and a single model may be difficult to accurately distinguish, resulting in classification confusion or errors. Therefore, this embodiment proposes a cascade model of "key component category detection of transmission lines + multi-defect type identification" to complete the defect detection of key components of transmission lines. Through the cascade structure, the key component category detection and multi-defect type identification are combined, allowing identification and detection at different levels, which more comprehensively solves the problem of defect detection of transmission lines and achieves richer defect type detection. In addition, combining key component category detection and multi-defect type identification helps the model better understand and distinguish different components, thereby reducing the occurrence of misclassification.
[0143] (2) Achieve more accurate detection of key components of power transmission lines and reduce the consumption of computing resources to a certain extent. This embodiment uses the image features extracted by the convolutional neural network and the pre-integrated prior knowledge to calculate the size, category, position, and feature relationship between the targets, and builds a graph structure based on this to describe the complex structural relationship and appearance characteristics between the targets. The gated recurrent network (GRU) information transmission mechanism is used to enable the target to receive information transmitted by other targets while retaining its own key information, and finally jointly infer the target category and position. On the one hand, the integration of size distribution information and misclassification probability information can strengthen the original feature information of the target, thereby helping the model to better understand the size and appearance characteristics of the target. The information transmission mechanism of the gated recurrent network can better model the complex associations between targets, help the model to more deeply understand the structural relationship and appearance characteristics of the target, improve the global understanding of the target, and reduce the problem of insufficient information or local information of a single target. Ultimately, the accuracy of target recognition is improved. On the other hand, the introduction of prior knowledge is conducive to reducing unnecessary iterations of the network and reducing the consumption of computing resources to a certain extent.
[0144] Example 2
[0145] In order to execute the method corresponding to the above-mentioned embodiment 1 to achieve the corresponding functions and technical effects, a system for detecting defects of key components of a power transmission line is provided below, including:
[0146] The image acquisition module is used to acquire the image of the transmission line to be tested.
[0147] The key component category detection module is used to input the image of the transmission line to be tested into the key component reasoning detection model to obtain the component category and target detection frame of each key component in the transmission line to be tested. The key component reasoning detection model includes a feature extraction network and a gated recurrent network connected in sequence.
[0148] The current key component determination module is used to determine any key component as the current key component.
[0149] The current key component image determination module is used to cut the current key component image from the image of the transmission line to be tested based on the target detection frame corresponding to the current key component.
[0150] The current key component defect recognition model selection module is used to determine the ResNet50 model corresponding to the component category of the current key component as the current key component defect recognition model. The ResNet50 model corresponds to the key component category one by one. The ResNet50 model is obtained by training the ResNet50 model using multiple key component annotated samples of the corresponding key component category.
[0151] The key component defect recognition module is used to input the current key component image into the current key component defect recognition model to obtain the defect detection result of the current key component.
[0152] Example 3
[0153] This embodiment provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute a method for detecting defects in key components of a power transmission line according to Embodiment 1.
[0154] Among them, the memory is a readable storage medium.
[0155] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0156] The principles and implementation methods of the present invention are described herein using specific examples. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for detecting defects in key components of a power transmission line, characterized in that: include: Acquire images of the transmission line to be tested; Inputting the image of the transmission line to be tested into a key component reasoning detection model to obtain a component category and a target detection frame of each key component in the transmission line to be tested; the key component reasoning detection model includes a feature extraction network and a gated recurrent network connected in sequence; Determine any key component as the current key component; Based on the target detection frame corresponding to the current key component, the current key component image is cut from the image of the transmission line to be tested; Determine that the ResNet50 model corresponding to the component category of the current key component is the current key component defect recognition model; the ResNet50 model corresponds to the key component category one by one; the ResNet50 model is obtained by training the ResNet50 model using multiple key component annotated samples corresponding to the key component category; Adjust the size of the current key component image according to the preset size template; Inputting the current key component image into the current key component defect recognition model to obtain the defect detection result of the current key component; Inputting the image of the transmission line to be tested into the key component reasoning detection model to obtain the component category and target detection frame of each key component in the transmission line to be tested, including: According to the key component annotated sample set, the size characteristic matrix and the misclassification probability matrix of the key components of the transmission line to be tested are determined; Constructing a graph structure according to the size feature matrix and the misclassification probability matrix to obtain a priori knowledge relationship graph; Inputting the transmission line image to be tested into a feature extraction network to obtain location information and ROI features of multiple candidate regions; Determine a spatial position relationship matrix according to position information of multiple candidate regions; Determine a local feature relationship matrix according to ROI features of multiple candidate regions; Constructing a graph structure according to the spatial position relationship matrix and the local feature relationship matrix to obtain a network internal relationship graph; The prior knowledge relationship graph and the network internal relationship graph are input into a gated recurrent network to obtain the component category and target detection frame of each key component in the power transmission line to be tested.
2. A method for detecting defects in key components of a power transmission line according to claim 1, characterized in that: The key components include insulators, shockproof hammers and wire clamps; the defect detection result of the insulators is a normal insulator, a self-explosive insulator or a deformed insulator; the defect detection result of the shockproof hammer is a normal shockproof hammer, a rusted shockproof hammer or a damaged shockproof hammer; the defect detection result of the wire clamp is a normal wire clamp, a rusted wire clamp or a damaged wire clamp.
3. A method for detecting defects in key components of a power transmission line according to claim 1, characterized in that: After inputting the current key component image into the current key component defect recognition model to obtain the defect detection result of the current key component, the method further includes: Update the current key component and return to step "based on the target detection frame corresponding to the current key component, cut the current key component image from the image of the transmission line to be tested" until all key components in the image of the transmission line to be tested are traversed to obtain the defect detection result of each key component in the image of the transmission line to be tested.
4. A transmission line key component defect detection system, characterized in that: The transmission line key component defect detection system is applied to the transmission line key component defect detection method according to any one of claims 1 to 3, and the transmission line key component defect detection system comprises: An image acquisition module, used to acquire images of the transmission line to be tested; A key component category detection module is used to input the image of the transmission line to be tested into a key component reasoning detection model to obtain the component category and target detection frame of each key component in the transmission line to be tested; the key component reasoning detection model includes a feature extraction network and a gated recurrent network connected in sequence; A current key component determination module, used to determine any key component as a current key component; A current key component image determination module is used to cut the current key component image from the image of the transmission line to be tested based on the target detection frame corresponding to the current key component; The current key component defect recognition model selection module is used to determine the ResNet50 model corresponding to the component category of the current key component as the current key component defect recognition model; the ResNet50 model corresponds to the key component category one by one; the ResNet50 model is obtained by training the ResNet50 model using multiple key component annotated samples of the corresponding key component category; The key component defect recognition module is used to input the current key component image into the current key component defect recognition model to obtain the defect detection result of the current key component.
5. An electronic device, characterized in that: It comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute a method for detecting defects in key components of a power transmission line as described in any one of claims 1 to 3.
6. An electronic device according to claim 5, characterized in that: The memory is a readable storage medium.
Citation Information
Patent Citations
Power transmission line hardware fitting defect detection method and system based on cascade target detection
CN111650204A
Power transmission line key component defect detection method and system
CN113344915A
Power transmission line pin defect detection method, equipment and medium
CN114170144A
Method for detecting key components and defects of overhead transmission line
CN117292176A
Welding defects detecting method using artificial intelligence model in cloud platform
KR102550108B1
