A method and device for detecting defects in line insulators
Automatically detecting the position and defects of line insulators through the Efficientdet model solves the problem of time-consuming, laborious and inaccurate manual detection in the existing technology, and improves the reliability and safety of detection.
Patent Information
- Application Number
- CN202110865073.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-29
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-07-29
AI Technical Summary
The existing line insulator defect detection method requires manual assistance, is time-consuming, inaccurate and dangerous, and is affected by atmospheric temperature, humidity and chlorine content, affecting detection reliability.
The Efficientdet model is used to detect insulator positions and defects. By obtaining pictures marked with insulator information for preprocessing and model training, the insulator positions and defects are automatically detected and the reliability of detection is improved.
It realizes automatic detection without manual assistance, improves the accuracy and safety of line insulator defect detection, reduces the consumption of manpower and material resources, and enhances the reliability of detection.
Smart Images

Figure CN113506290B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to an insulator defect detection technology, and more particularly to a line insulator defect detection method and device. Background Art
[0002] The conductors on the distribution line towers are connected and fixed to the towers by insulators and metal fittings, and are in an overhead state. The insulators must not only withstand the effects of high working voltages, but also withstand mechanical forces and need to adapt to the surrounding environment, temperature, and bad weather. Electrical damage and defects in a single insulator may damage the use and operating life of the entire line, causing large-scale power outages, which may lead to economic and human casualties and material losses. In order to prevent this, reliable detection of insulator defects is required.
[0003] At present, the existing line insulator defect detection methods usually require manual assistance, requiring construction workers to fully understand various common insulators and damage types, and have good professional and physical qualities to perform tower operations. Traditional methods are time-consuming, laborious, inaccurate and dangerous, and require a lot of manpower and material resources. The non-contact infrared scanning image analysis method is guaranteed in terms of safety, but the measured values often vary due to the temperature, humidity and chlorine content of the atmosphere, affecting the reliability of line insulator defect detection. Summary of the invention
[0004] The embodiments of the present invention provide a line insulator defect detection method and device to improve the reliability of line insulator defect detection.
[0005] In a first aspect, an embodiment of the present invention provides a line insulator defect detection method, comprising:
[0006] Acquire multiple pictures of line insulators marked with insulator information, and use the multiple pictures marked with insulator information as a first data set;
[0007] Preprocessing the first data set to obtain a second data set, wherein the first data set and the second data set both include a training subset and a test subset;
[0008] Inputting the training subset of the first data set and the training subset of the second data set into the pre-established Efficientdet model respectively, training the Efficientdet model accordingly, and obtaining the equipment body detection model and the defect detection model;
[0009] Inputting the test subset of the first data set into the device body detection model, detecting the position of the insulator in the image of the test subset of the first data set based on the device body detection model, and obtaining an output image set;
[0010] The output image set is input into a defect detection model, and defects of insulators corresponding to the output image set are detected based on the defect detection model.
[0011] Optionally, the insulator information includes insulator body position information and insulator defect information, and the insulator defect information includes insulator defect position information;
[0012] The first data set is preprocessed to obtain a second data set, including:
[0013] Performing cropping processing on the insulator body position area corresponding to the picture marked with the insulator body position information in the first data set;
[0014] When it is confirmed that the insulator defect position corresponding to the insulator defect position information is located in the insulator body position area, a cropped first data set is obtained, and the cropped first data set is used as the second data set.
[0015] Optionally, the training subset of the first data set and the training subset of the second data set are respectively input into a pre-established Efficientdet model, and the Efficientdet model is trained accordingly to obtain a device body detection model and a defect detection model, including:
[0016] Inputting the training subset of the first data set into the pre-established Efficientdet model, training the Efficientdet model, and obtaining a device body detection model;
[0017] The training subset of the second data set is input into the pre-established Efficientdet model, and the Efficientdet model is trained to obtain a defect detection model.
[0018] Optionally, the first data set includes a validation subset, and the Efficientdet model is trained to obtain a device body detection model, including:
[0019] Inputting the validation subset of the first data set into the Efficientdet model to verify the training results of the Efficientdet model;
[0020] When the accuracy of the output result of the Efficientdet model reaches the preset value, the training is stopped and the Efficientdet model at this time is used as the device body detection model.
[0021] Optionally, the second data set includes a validation subset, and the Efficientdet model is trained to obtain a defect detection model, including:
[0022] Input the validation subset of the second data set into the Efficientdet model to verify the training results of the Efficientdet model;
[0023] When the Efficientdet model outputs the actual defect information of the insulator corresponding to the picture in the validation subset of the second data set, the training is stopped, and the Efficientdet model at this time is used as the defect detection model.
[0024] Optionally, detecting the position of the insulator in the image of the test subset of the first data set based on the device body detection model to obtain an output image set includes:
[0025] Based on the device body detection model, feature extraction and feature fusion are performed on the images in the test subset of the first data set in sequence to determine a first target feature area containing insulator features;
[0026] The first target feature region is cropped based on the device body detection model, and an image set corresponding to the cropped first target feature region is used as an output image set.
[0027] Optionally, defects of insulators corresponding to the output image set are detected based on a defect detection model, including:
[0028] Based on the defect detection model, feature extraction and feature fusion are performed on the images in the output image set in sequence to obtain a second target feature area;
[0029] Defects and defect locations of the second target feature area are identified based on the defect detection model, and the defects and defect locations are output.
[0030] Optionally, based on the defect detection model, feature extraction and feature fusion are performed on the images in the output image set in sequence to obtain a second target feature area, including:
[0031] Based on the feature extraction network in the defect detection model, features are extracted from the images in the output image set to obtain multiple effective feature layers;
[0032] Based on the feature fusion network in the defect detection model, multiple effective feature layers are fused to obtain the second target feature area.
[0033] In a second aspect, an embodiment of the present invention further provides a line insulator defect detection device, comprising:
[0034] An image acquisition module is used to acquire a plurality of images of line insulators marked with insulator information, and use the plurality of images marked with insulator information as a first data set;
[0035] A data processing module, used for preprocessing the first data set to obtain a second data set, wherein the first data set and the second data set both include a training subset and a test subset;
[0036] A model training module, used to input the training subset of the first data set and the training subset of the second data set into a pre-established Efficientdet model, respectively, and perform corresponding training on the Efficientdet model to obtain a device body detection model and a defect detection model;
[0037] A position detection module, used for inputting the test subset of the first data set into the device body detection model, detecting the position of the insulator in the image of the test subset of the first data set based on the device body detection model, and obtaining an output image set;
[0038] The defect detection module is used to input the output image set into the defect detection model, and detect defects of the insulator corresponding to the output image set based on the defect detection model.
[0039] Optionally, the insulator information includes insulator body position information and insulator defect information, and the insulator defect information includes insulator defect position information;
[0040] The data processing module includes:
[0041] A cropping processing unit, used for cropping the insulator body position area corresponding to the picture marked with the insulator body position information in the first data set;
[0042] The position confirmation unit is used to obtain a cropped first data set when confirming that the insulator defect position corresponding to the insulator defect position information is located in the insulator body position area, and use the cropped first data set as the second data set.
[0043] The line insulator defect detection method and device provided by the embodiment of the present invention obtain multiple pictures of line insulators marked with insulator information, and use the multiple pictures marked with insulator information as the first data set; preprocess the first data set to obtain the second data set, and the first data set and the second data set both include a training subset and a test subset; input the training subset of the first data set and the training subset of the second data set into the pre-established Efficientdet model respectively, and train the Efficientdet model accordingly to obtain the equipment body detection model and the defect detection model; input the test subset of the first data set into the equipment body detection model, and detect the position of the insulator in the picture of the test subset of the first data set based on the equipment body detection model to obtain an output image set; input the output image set into the defect detection model, and detect the defects of the insulator corresponding to the output image set based on the defect detection model. Compared with the existing line insulator defect detection method, the line insulator defect detection method and device provided by the embodiment of the present invention can automatically detect insulator defects based on the equipment body detection model and the defect detection model, without manual assistance, and can improve the reliability of line insulator defect detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 is a flow chart of a line insulator defect detection method provided in Embodiment 1 of the present invention;
[0045] Figure 2 is a flow chart of a line insulator defect detection method provided by Embodiment 2 of the present invention;
[0046] Figure 3 It is a structural diagram of an Efficientdet model provided in the second embodiment of the present invention;
[0047] Figure 4 This is a structural block diagram of a power grid machine patrol data defect intelligent analysis system provided by Embodiment 2 of the present invention;
[0048] Figure 5 It is a structural block diagram of a line insulator defect detection device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0049] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0050] Embodiment 1
[0051] Figure 11 is a flow chart of a line insulator defect detection method provided in Embodiment 1 of the present invention. This embodiment is applicable to detecting insulator defects and the like. The method can be executed by a line insulator defect detection device. The device can be implemented in software and / or hardware. The device can be integrated in an electronic device such as a computer having a line insulator defect detection function. The method specifically includes the following steps:
[0052] Step 110: Acquire multiple pictures of line insulators that are labeled with insulator information, and use the multiple pictures labeled with insulator information as a first data set.
[0053] The line insulator may be a distribution line insulator, and the image of the line insulator may be taken by a drone. The insulator information may include insulator body position information and insulator defect information, and the image of the line insulator taken by the drone may be input into the line insulator defect detection device after being annotated.
[0054] In addition, the image quality of the acquired multiple images can be evaluated before acquisition. The quality evaluation indicators include resolution, color depth and image distortion. Secondly, the insulators in the image are labeled and cleaned. The image data is selected to be clearly identifiable and with the correct focal length for labeling, and the images of insulators that do not meet the training requirements are eliminated, such as insufficient exposure, image pixels less than 20*20 and distorted images caused by image jitter. In the process of data labeling, several situations in which the surface of the insulator is easily misjudged as electrical damage include: paint spots on the shed, bird droppings on the shed, dirt on the shed, and light shadows on the shed. Therefore, in addition to electrical damage, the above types are also added for labeling to perform fine-grained division, reduce the misjudgment rate, and increase the accuracy of subsequent recognition and classification. Since the deep neural network contains a large number of hidden layers and weights when the model is trained in the future, the data volume is too small and the weight cannot be adjusted, resulting in insufficient model installation after training, affecting the accuracy of the model, and the actual detection effect is poor. However, the number of insulator shed damages is limited, and it is difficult to continue to expand the data volume beyond the existing damage samples. Therefore, data augmentation is used to expand the data set. The insulator deformation image data is augmented by translation, mirroring, rotation, occlusion, and random noise addition to improve the diversity of samples. Finally, the insulator images are normalized and the images of each pixel are scaled to a uniform size to improve the training speed and accuracy.
[0055] Step 120: preprocess the first data set to obtain a second data set, where both the first data set and the second data set include a training subset and a test subset.
[0056] The first data set and the second data set may both include 80% training subsets and 10% test subsets, and may also include 10% validation subsets. The insulator body position region corresponding to the image marked with the insulator body position information in the first data set may be cropped, and when it is confirmed that the insulator defect position corresponding to the insulator defect position information is located in the insulator body position region, the cropped first data set is obtained, and the cropped first data set is used as the second data set.
[0057] Step 130: Input the training subset of the first data set and the training subset of the second data set into the pre-established Efficientdet model respectively, perform corresponding training on the Efficientdet model, and obtain the equipment body detection model and the defect detection model.
[0058] Specifically, the training subset of the first data set is input into the pre-established Efficientdet model, and the Efficientdet model is trained to obtain the equipment body detection model. Exemplarily, the pictures in the training subset of the first data set can be input into the Efficientdet model in batches, such as inputting two pictures, four pictures, or eight pictures each time, and the Efficientdet model is trained through the training subset until the picture output by the Efficientdet model is a picture of the cropped insulator, and the training is stopped. At this time, the Efficientdet model can be used as the equipment body detection model. The training subset of the second data set is input into the pre-established Efficientdet model, and the Efficientdet model is trained until the Efficientdet model outputs the actual defect information of the insulator, such as the actual defect position of the insulator, and the training is stopped. At this time, the Efficientdet model can be used as the defect detection model.
[0059] Step 140: Input the test subset of the first data set into the device body detection model, detect the position of the insulator in the image of the test subset of the first data set based on the device body detection model, and obtain an output image set.
[0060] Exemplarily, the equipment body detection model detects the position of the insulator in the picture of the test subset of the first data set, determines the area where the insulator is located in the picture, crops the area where the insulator is located, obtains a picture with a larger area of insulators, and outputs all the cropped pictures as an output image set. The purpose of such cropping is to make the area where the insulator is located occupy a larger proportion of the entire picture, so as to facilitate the subsequent detection of insulator defects.
[0061] Step 150: Input the output image set to a defect detection model, and detect defects of the insulator corresponding to the output image set based on the defect detection model.
[0062] Specifically, defects of insulators corresponding to the output image set are detected based on the defect detection model. If it is determined that the insulator corresponding to the picture in the output image set has electrical defects such as cracking and breakage, it is necessary to determine the defect location of the insulator, and output the information of the electrical defect and the defect location of the insulator, so as to realize insulator defect detection.
[0063] The line insulator defect detection method provided in this embodiment detects the position of the insulator in the image of the test subset of the first data set based on the trained equipment body detection model to obtain an output image set, and inputs the output image set into the trained defect detection model to detect the defects of the insulator corresponding to the output image set based on the defect detection model. Compared with the existing line insulator defect detection method, the line insulator defect detection method provided in this embodiment can automatically detect insulator defects based on the equipment body detection model and the defect detection model without manual assistance, and can improve the reliability of line insulator defect detection.
[0064] Embodiment 2
[0065] Figure 2 1 is a flow chart of a line insulator defect detection method provided by Embodiment 2 of the present invention. This embodiment is applicable to detecting insulator defects and the like. The method can be executed by a line insulator defect detection device. The device can be implemented by software and / or hardware. The device can be integrated in an electronic device such as a computer having a line insulator defect detection function. The method specifically includes the following steps:
[0066] Step 210: Acquire multiple pictures of line insulators that are labeled with insulator information, and use the multiple pictures labeled with insulator information as a first data set.
[0067] The insulator information includes insulator body position information and insulator defect information, and the insulator defect information includes insulator defect position information. The line insulator may be a distribution line insulator, and the line insulator image may be taken by a drone, and the line insulator image taken by the drone may be input into the line insulator defect detection device after being annotated.
[0068] Step 220: cropping the insulator body position area corresponding to the image marked with the insulator body position information in the first data set.
[0069] Specifically, the insulator body position information may include position coordinates. The coordinate system corresponding to the position coordinates may be pre-established. The origin of the coordinate system may be the point in the upper left corner of the picture. The X-axis is to the right of the origin, and the Y-axis is to the bottom of the origin. Therefore, the coordinate position of the insulator body in the picture can be determined based on the position coordinates to crop the insulator body position area corresponding to the picture.
[0070] Step 230: When it is confirmed that the insulator defect position corresponding to the insulator defect position information is located in the insulator body position area, a cropped first data set is obtained, and the cropped first data set is used as a second data set.
[0071] Among them, the first data set and the second data set both include a training subset, a test subset and a validation subset. The training subset, the test subset and the validation subset may account for 80%, 10% and 10% respectively. For example, the first data set has 100 pictures, of which the pictures in the training subset, the test subset and the validation subset may be 80, 10 and 10 respectively. When it is confirmed that the insulator defect position corresponding to the insulator defect position information is located in the insulator body position area, the position information of the insulator defect position in the cropped picture, i.e., the picture of the second data set, is determined, and specifically the position coordinates may be determined to facilitate subsequent model training.
[0072] Step 240: Input the training subset of the first data set into the pre-established Efficientdet model, train the Efficientdet model, and obtain a device body detection model.
[0073] Specifically, the Efficientdet model can be established based on the Efficientdet algorithm, which includes three parts: feature extraction network, feature fusion network and prediction network. In the process of using the training subset of the first data set to train the Efficientdet model, the verification subset of the first data set can also be input into the Efficientdet model to verify the training results of the Efficientdet model; when the Efficientdet model can accurately identify the insulator body area in the verification set, and the accuracy of the output result reaches a preset value, it means that the Efficientdet model has been trained, and the training can be stopped, and the Efficientdet model at this time is used as the equipment body detection model.
[0074] Step 250: Input the training subset of the second data set into the pre-established Efficientdet model, train the Efficientdet model, and obtain a defect detection model.
[0075] Specifically, in the process of training the Efficientdet model using the training subset of the second data set, the verification subset of the second data set can be input into the Efficientdet model to verify the training results of the Efficientdet model; when the Efficientdet model outputs the actual defect information of the insulator corresponding to the picture in the verification subset of the second data set, the training is stopped, and the Efficientdet model at this time is used as a defect detection model.
[0076] Step 260: Based on the device body detection model, feature extraction and feature fusion are performed on the images in the test subset of the first data set in sequence to determine a first target feature region containing insulator features.
[0077] For example, Figure 3 is a schematic diagram of the structure of an Efficientdet model provided in the second embodiment of the present invention, refer to Figure 3The trained Efficientdet model, i.e., the device body detection model, uses Effientnet as the backbone feature extraction network, i.e., the feature extraction network. The features of Efficientnet are: using the residual neural network to increase the depth of the neural network, and using a deeper neural network to achieve feature extraction; changing the number of feature layers extracted in each layer, achieving more feature extraction, obtaining more features, and improving the width; increasing the resolution of the input image to make the learnable features richer, which is conducive to improving the accuracy. Efficientnet uses a lot of large Blocks stacked together. The overall design idea of Block is the reverse residual structure and residual structure. 1*1 convolution is used before the 3*3 or 5*5 network structure for dimensionality increase, and a channel attention mechanism is added after the 3*3 or 5*5 network structure. Then, a large residual edge is added after the 1*1 convolution for dimensionality reduction. Finally, three effective feature layers will be obtained and passed into the feature fusion network for subsequent operations. Efficientdet's feature fusion network uses BiFPN to enhance feature extraction. BiFPN is an enhanced version of FPN. In the backbone feature extraction network, three feature layers P3, P4, and P5 have been obtained (P1-P7 are all feature layers, including insulator features), and then downsampled twice to obtain P6 and P7 feature layers. Among them, after the P3, P4, and P5 feature layers are adjusted by 1*1 convolution, they can be used as P3i, P4i, and P5i feature layers for feature fusion. After obtaining the above feature layers, the P7i feature layer is first upsampled, and then the upsampled result is stacked with P6i to obtain P6t; then P6t is upsampled, and the upsampled result is stacked with P5i to obtain P5t; then P5t is upsampled again, and the upsampled result is stacked with P4i to obtain P4t; then P4t is upsampled, and the upsampled result is stacked with P3i to obtain P3o. Continue to downsample P3o, and stack the downsampled result with P4t and P4i to obtain P4o; then downsample P4o, and stack it with P5t and P5i to obtain P5o; continue to downsample P5o, and stack it with P6t and P6i to obtain P6o; similarly, downsample P6o, and stack it with P7i to obtain P7o.After a series of upsampling and downsampling, the feature layers P3o, P4o, P5o, P6o, and P7o are obtained. The feature layers P3o, P4o, P5o, P6o, and P7o are used as the feature layers P3i, P4i, P5i, P6i, and P7i, respectively. The above steps are repeated for stacking to obtain the final effective feature layers P3o, P4o, P5o, P6o, and P7o through the feature fusion network. The effective feature layers P3o, P4o, P5o, P6o, and P7o are transmitted to the ClassNet+BoxNet prediction network of the Efficientdet model, and the first target feature region containing the insulator features can be obtained.
[0078] Step 270: crop the first target feature region based on the device body detection model, and use the image set corresponding to the cropped first target feature region as the output image set.
[0079] Specifically, based on the equipment body detection model, the determined first target feature area is cropped out from the pictures of the test subset of the first data set to obtain a picture in which most of the areas are the first target feature areas, that is, most of the areas are insulators, and the cropped pictures are used as the output image set.
[0080] Step 280: Input the output image set into the defect detection model, and perform feature extraction and feature fusion on the images in the output image set in sequence based on the defect detection model to obtain a second target feature area.
[0081] Specifically, based on the feature extraction network in the defect detection model, features can be extracted from the images in the output image set to obtain multiple effective feature layers (the effective feature layers include insulator defect features); based on the feature fusion network in the defect detection model, features can be fused on multiple effective feature layers to obtain a second target feature region including insulator defect features. Figure 3 The specific process of extracting features and fusing features of the images in the output image set in turn based on the defect detection model is similar to the process of determining the first target feature area mentioned above, and will not be repeated here.
[0082] Step 290: Identify defects and defect locations in the second target feature area based on the defect detection model, and output the defects and defect locations.
[0083] Exemplarily, defects of insulators in the second target feature area can be identified based on the ClassNet+BoxNet prediction network in the defect detection model. If it is determined that the insulators in the second target feature area have electrical defects such as cracking and breakage, it is necessary to determine the specific location of the electrical defects in the second target feature area, and output the information on the existence of electrical defects in the insulator and the specific location of the electrical defects, thereby realizing line insulator defect detection.
[0084] In addition, the location information of the insulator defect in the original image, i.e., the corresponding image of the test subset, can also be determined based on the location information of the insulator defect, and after algorithmic inference on the test subset, the model accuracy can be statistically analyzed. The trained model is evaluated for accuracy using the test subset to assess whether the accuracy and recall rate of the output insulator defects meet the inspection requirements. If the obtained model meets the inspection requirements, the model is saved and output; otherwise, the model is retrained to optimize the parameters. The defect detection model can also be applied to the intelligent analysis system for power grid machine patrol data damage to assist in determining whether the insulator shed is damaged, and to mark the damaged area of the insulator shed to be detected. Specifically, Figure 4 It is a structural block diagram of a power grid machine patrol data defect intelligent analysis system provided in Example 2 of the present invention. The system includes a data layer, a core layer, a logic layer and a basic business layer. Each layer has corresponding functions. Among them, the defect detection model can be applied to the basic business layer, and the basic business layer performs defect detection of line insulators.
[0085] The line insulator defect detection method provided in this embodiment sequentially extracts features and fuses features from the images in the test subset of the first data set based on the trained equipment body detection model, determines a first target feature region containing insulator features, crops the first target feature region based on the equipment body detection model, uses the image set corresponding to the cropped first target feature region as the output image set, inputs the output image set into the defect detection model, sequentially extracts features and fuses features from the images in the output image set based on the defect detection model, obtains a second target feature region, identifies defects and defect locations in the second target feature region based on the defect detection model, and outputs the defects and defect locations. Compared with the existing line insulator defect detection method, the line insulator defect detection method provided in this embodiment can automatically detect insulator defects based on the equipment body detection model and the defect detection model, without the need for manual tower maintenance after power outage, and can improve the efficiency, safety and reliability of line insulator defect detection.
[0086] Embodiment 3
[0087] Figure 53 is a structural block diagram of a line insulator defect detection device provided in Embodiment 3 of the present invention, the device comprises an image acquisition module 310, a data processing module 320, a model training module 330, a position detection module 340 and a defect detection module 350; wherein the image acquisition module 310 is used to acquire multiple images of line insulators marked with insulator information, and use the multiple images marked with insulator information as a first data set; the data processing module 320 is used to pre-process the first data set to obtain a second data set, the first data set and the second data set both comprising a training subset and a test subset; the model training module 3 ... The training subset of the first data set and the training subset of the second data set are respectively input into the pre-established Efficientdet model, and the Efficientdet model is trained accordingly to obtain the equipment body detection model and the defect detection model; the position detection module 340 is used to input the test subset of the first data set into the equipment body detection model, and detect the position of the insulator in the picture of the test subset of the first data set based on the equipment body detection model to obtain the output image set; the defect detection module 350 is used to input the output image set into the defect detection model, and detect the defects of the insulator corresponding to the output image set based on the defect detection model.
[0088] On the basis of the above implementation mode, the insulator information includes insulator body position information and insulator defect information, and the insulator defect information includes insulator defect position information; the data processing module 320 includes: a cropping processing unit and a position confirmation unit; wherein the cropping processing unit is used to crop the insulator body position area corresponding to the image marked with the insulator body position information in the first data set; the position confirmation unit is used to obtain the cropped first data set when it is confirmed that the insulator defect position corresponding to the insulator defect position information is located in the insulator body position area, and use the cropped first data set as the second data set.
[0089] In one embodiment, the model training module 330 includes a first training unit and a second training unit; wherein the first training unit is used to input a training subset of the first data set into a pre-established Efficientdet model, train the Efficientdet model, and obtain a device body detection model; the second training unit is used to input a training subset of the second data set into a pre-established Efficientdet model, train the Efficientdet model, and obtain a defect detection model.
[0090] Preferably, the first data set includes a verification subset, and the first training unit includes: a first verification subunit and a first model determination subunit; wherein the verification subunit is used to input the verification subset of the first data set into the Efficientdet model to verify the training results of the Efficientdet model; the first model determination subunit is used to stop training when the accuracy of the output result of the Efficientdet model reaches a preset value, and use the Efficientdet model at this time as the device body detection model.
[0091] Preferably, the second data set includes a verification subset, and the second training unit includes: a second verification subunit and a second model determination subunit; wherein the verification subunit is used to input the verification subset of the second data set into the Efficientdet model to verify the training results of the Efficientdet model; the second model determination subunit is used to stop training when the Efficientdet model outputs the actual defect information of the insulator corresponding to the picture in the verification subset of the second data set, and use the Efficientdet model at this time as the defect detection model.
[0092] In one embodiment, the position detection module 340 includes a first region determination unit and a region cropping unit; wherein the first region determination unit is used to perform feature extraction and feature fusion on the images in the test subset of the first data set in sequence based on the device body detection model to determine a first target feature region containing insulator features; the region cropping unit is used to crop the first target feature region based on the device body detection model, and use the image set corresponding to the cropped first target feature region as the output image set.
[0093] In a specific embodiment, the defect detection module 350 includes a second area determination unit and a defect detection unit; wherein the second area determination unit includes extracting features and fusing features in the images in the output image set in sequence based on the defect detection model to obtain a second target feature area; the defect detection unit is used to identify defects and defect locations in the second target feature area based on the defect detection model, and output the defects and defect locations.
[0094] Preferably, the second region determination unit includes a feature extraction subunit and a region determination subunit; wherein the feature extraction subunit is used to perform feature extraction on pictures in the output image set based on the feature extraction network in the defect detection model to obtain multiple valid feature layers; the region determination subunit is used to perform feature fusion on multiple valid feature layers based on the feature fusion network in the defect detection model to obtain a second target feature region.
[0095] The line insulator defect detection device provided in this embodiment and the line insulator defect detection method provided in any embodiment of the present invention belong to the same inventive concept and have corresponding beneficial effects. For technical details not detailed in this embodiment, please refer to the line insulator defect detection method provided in any embodiment of the present invention.
[0096] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, combinations and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for detecting defects in line insulators, characterized in that: include: Acquire multiple pictures of line insulators marked with insulator information, and use the multiple pictures marked with insulator information as a first data set; Preprocessing the first data set to obtain a second data set, wherein the first data set and the second data set both include a training subset and a test subset; Inputting the training subset of the first data set and the training subset of the second data set into a pre-established Efficientdet model respectively, and training the Efficientdet model accordingly to obtain a device body detection model and a defect detection model; Inputting the test subset of the first data set into the device body detection model, detecting the positions of insulators in the images of the test subset of the first data set based on the device body detection model, and obtaining an output image set; Inputting the output image set into the defect detection model, and detecting defects of the insulator corresponding to the output image set based on the defect detection model; The insulator information includes insulator body position information and insulator defect information, and the insulator defect information includes insulator defect position information; The preprocessing of the first data set to obtain a second data set includes: Performing cropping processing on the insulator body position area corresponding to the picture marked with the insulator body position information in the first data set; When it is confirmed that the insulator defect position corresponding to the insulator defect position information is located in the insulator body position area, obtaining the first data set after the cropping process, and using the first data set after the cropping process as the second data set; The detecting the positions of insulators in the pictures of the test subset of the first data set based on the device body detection model to obtain an output image set includes: Based on the device body detection model, feature extraction and feature fusion are performed on the images in the test subset of the first data set in sequence to determine a first target feature area containing insulator features; Cropping the first target feature region based on the device body detection model, and using the cropped image set corresponding to the first target feature region as an output image set; The detecting defects of the insulator corresponding to the output image set based on the defect detection model includes: Based on the defect detection model, feature extraction and feature fusion are performed on the pictures in the output image set in sequence to obtain a second target feature area; The defect and the defect position of the second target feature area are identified based on the defect detection model, and the defect and the defect position are output.
2. The line insulator defect detection method according to claim 1, characterized in that: The step of inputting the training subset of the first data set and the training subset of the second data set into a pre-established Efficientdet model respectively, training the Efficientdet model accordingly, and obtaining a device body detection model and a defect detection model includes: Inputting the training subset of the first data set into a pre-established Efficientdet model, training the Efficientdet model, and obtaining a device body detection model; The training subset of the second data set is input into a pre-established Efficientdet model, and the Efficientdet model is trained to obtain a defect detection model.
3. The line insulator defect detection method according to claim 2, characterized in that: The first data set includes a verification subset, and the training of the Efficientdet model to obtain a device body detection model includes: Inputting the verification subset of the first data set into the Efficientdet model to verify the training result of the Efficientdet model; When the accuracy of the output result of the Efficientdet model reaches a preset value, the training is stopped, and the Efficientdet model at this time is used as the device body detection model.
4. The line insulator defect detection method according to claim 2, characterized in that: The second data set includes a verification subset, and the training of the Efficientdet model to obtain a defect detection model includes: Inputting the verification subset of the second data set into the Efficientdet model to verify the training result of the Efficientdet model; When the Efficientdet model outputs actual defect information of the insulator corresponding to the picture in the validation subset of the second data set, the training is stopped, and the Efficientdet model at this time is used as the defect detection model.
5. The line insulator defect detection method according to claim 1, characterized in that: The step of sequentially extracting features and fusing features of the images in the output image set based on the defect detection model to obtain a second target feature area includes: Based on the feature extraction network in the defect detection model, feature extraction is performed on the images in the output image set to obtain multiple effective feature layers; Based on the feature fusion network in the defect detection model, feature fusion is performed on the multiple effective feature layers to obtain a second target feature region.
6. A line insulator defect detection device, characterized in that: include: A picture acquisition module, used to acquire a plurality of pictures of line insulators marked with insulator information, and use the plurality of pictures marked with insulator information as a first data set; A data processing module, used for preprocessing the first data set to obtain a second data set, wherein the first data set and the second data set both include a training subset and a test subset; A model training module, used to input the training subset of the first data set and the training subset of the second data set into a pre-established Efficientdet model, respectively, and perform corresponding training on the Efficientdet model to obtain a device body detection model and a defect detection model; a position detection module, configured to input the test subset of the first data set into the device body detection model, detect the positions of insulators in the images of the test subset of the first data set based on the device body detection model, and obtain an output image set; A defect detection module, used for inputting the output image set into the defect detection model, and detecting defects of the insulator corresponding to the output image set based on the defect detection model; The insulator information includes insulator body position information and insulator defect information, and the insulator defect information includes insulator defect position information; The data processing module comprises: A cropping processing unit, configured to perform cropping processing on the insulator body position area corresponding to the picture marked with the insulator body position information in the first data set; a position confirmation unit, configured to obtain the cropped first data set when confirming that the insulator defect position corresponding to the insulator defect position information is located in the insulator body position area, and use the cropped first data set as the second data set; The position detection module comprises: A first region determination unit is used to perform feature extraction and feature fusion on the images in the test subset of the first data set in sequence based on the device body detection model to determine a first target feature region containing insulator features; A region cropping unit, configured to crop the first target feature region based on the device body detection model, and use the cropped image set corresponding to the first target feature region as an output image set; The defect detection module comprises: A second region determination unit is used to perform feature extraction and feature fusion on the images in the output image set in sequence based on the defect detection model to obtain a second target feature region; A defect detection unit is used to identify defects and defect positions in the second target feature area based on the defect detection model, and output the defects and the defect positions.
Citation Information
Patent Citations
Deep learning-based insulator sheet falloff fault quick detection method for aerial image
CN108596886A
Method and device for detecting insulator defects in power system and electronic equipment
CN111784692A
Power transmission line fault detection method based on EfficentDet network
CN112541389A
Method for positioning insulator in image
CN112686334A
Power transmission line insulator defect detection method based on deep learning
CN112837315A
