Unmanned aerial vehicle power transmission line defect image detection method
By deploying lightweight neural network models and heterogeneous computing technology at the edge of drones, the problems of insufficient resources and incomplete signal coverage in drone inspections are solved, and efficient transmission line defect identification and rapid maintenance are achieved.
Patent Information
- Application Number
- CN202410635835.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-08-30
AI Technical Summary
Existing drone inspection hardware and software face problems of insufficient computing power, storage resources, high power consumption, and incomplete signal coverage in identifying defects in power equipment, resulting in low defect identification efficiency and insufficient real-time reporting capabilities.
Using deep learning neural network migration and pruning technology for power equipment defect identification, through model compression and parameter quantification, lightweight neural network models can be deployed at the edge of UAVs. Combining multi-core, multi-threading and heterogeneous computing, the algorithm performance is optimized to Support real-time identification.
In the environment of limited power supply and resources, it improves the efficiency and accuracy of UAV transmission line defect identification, reduces missed detections and incorrect detections, and supports online identification and rapid maintenance.
Smart Images

Figure CN118570673A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power transmission defect recognition, and in particular to a method for detecting power transmission line defect images using an unmanned aerial vehicle. Background Art
[0002] At present, drone inspections require a large number of original photos, and the capacity of a single photo is more than 10M. Although online backhaul has been basically achieved, the upload efficiency is unsatisfactory due to the difference in field signals, and the entire defect identification process is time-consuming and laborious. Therefore, the online identification technology of power equipment defects based on the edge of drones has emerged, but this has posed huge challenges to the current hardware and software of drone inspections: First, the deployment of existing intelligent identification algorithms for power equipment defects requires powerful computing power and storage resources, and the edge mobile end of drones does not yet have such capabilities; second, due to the limited battery capacity of drones, the deployment of defect identification algorithms on the edge of drones has very strict requirements on power consumption, and it is necessary to study the energy consumption issues of existing algorithms; third, the field is affected by 4G / 5G signals. In areas where 4G / 5G signals are not fully covered, the edge of drones does not yet have the ability to report defects in real time;
[0003] In view of the above, it is necessary to provide a UAV transmission line defect image detection method. Summary of the invention
[0004] In response to the problems in the prior art, the present invention provides a method for detecting transmission line defects using drone images. The method can achieve the pruning of the weight coefficients of the transmission line defect recognition neural network model through deep learning neural network migration and pruning technology for power equipment defect recognition, achieve model compression from the network structure level, and achieve network model slimming. It provides a lightweight model for defect recognition deployed on the drone mobile edge, enables real-time defect recognition on the drone mobile edge, and achieves a balance between drone data collection and online recognition in a limited power supply environment through transmission line defect recognition neural network model parameter quantization and acceleration technology, ensures the deployment of the transmission line defect recognition neural network model on the drone mobile edge, minimizes missed detection and false detection, and improves the quality and efficiency of on-site inspection operations. The specific technical solutions are as follows:
[0005] A method for detecting defects in transmission lines using drone images, comprising the following steps:
[0006] S1: By setting various parameters of the UAV, the UAV is controlled to obtain high-quality transmission line images through aerial photography, and the collected transmission line images to be inspected are processed to improve the quality of the transmission line images and avoid affecting the accuracy of the transmission line defect detection results;
[0007] S2: Construct a neural network model for transmission line defect recognition, and process the constructed neural network model to realize the transplantation of the neural network model to the edge of the drone, empower the drone mobile edge for intelligent inspection algorithms, support online identification of transmission line defects, and achieve a balance between the efficiency and energy consumption of the neural network model for transmission line defect recognition at the edge of the drone;
[0008] S3: using the power line defect recognition neural network model processed in step S2 to perform power line defect recognition on the power line image processed in step S1.
[0009] Preferably, step S1 also includes dividing the drone aerial photography area into different sub-areas, and numbering each sub-area without duplication. The process of controlling the drone aerial photography to obtain high-quality transmission line images specifically includes three links: aerial photography setting, image inspection, and image rough correction. The aerial photography setting link specifically includes setting the planned aerial photography route, flight altitude, range, overlap rate and other parameters according to factors such as climate, terrain, aerial photography area, and location, and formulating an accurate drone aerial photography plan. The image inspection link specifically includes immediately checking the quality of the captured image after the aerial photography is completed, mainly including missed shot inspection, image overlap rate, image clarity, etc. If the image quality does not meet the requirements, it is necessary to fly again in time. The image rough correction link specifically includes that before image processing, lens distortion correction and control point fine correction must be performed to eliminate image distortion. The image acquisition process needs to be strictly operated according to the steps to ensure that the captured image can accurately and clearly reflect the information related to the transmission line in the image, thereby improving the efficiency of subsequent processing.
[0010] Preferably, step S1 further includes processing the transmission line image taken by the drone, including image grayscale conversion, noise filtering, image enhancement, etc., to improve the quality of the transmission line image and avoid affecting the accuracy of the subsequent transmission line defect detection results, and adding annotations with the sub-area number to the corresponding image according to the sub-area of the image acquisition, and collecting drone images of transmission line defects to construct a transmission line image data set, using data expansion technology to expand the number of samples in the transmission line image data set, and annotating the transmission line image data set for defects, wherein the transmission line defect features are mainly divided into four categories: line tower bird's nest defect features, conductor broken strand defect features, conductor loose strand defect features, and glass insulator "self-explosion" defect features, and the data expansion technology specifically expands the number of samples in the transmission line image data set by rotating or reflecting the collected drone images of transmission line defects, translating, flipping, scaling, and scaling, and the defect annotation specifically includes converting the transmission line defect image into JPG format, and adding text information with the content of the transmission defect type and image size combined to the transmission line defect image.
[0011] Preferably, step S2 also includes constructing a transmission line defect recognition neural network model, and processing the constructed transmission line defect recognition neural network model, including cross-architecture migration of the transmission line defect recognition neural network model, realizing the transplantation of the transmission line defect recognition neural network model to the edge of the drone, standardizing the cross-architecture strategy through a code transplantation tool, specifically selecting DependencyAdvisor as a scanning tool, checking the binary files of the transplantation target model resource package, and evaluating the portability, checking the binary files under the specified transplantation target model transplantation path, and evaluating the portability, checking the transplantation target model C / C++ source code, model construction project files, and evaluating the portability, providing a model transplantation report to the user, providing a transplantation workload assessment, selecting PortingAdvisor as a transplantation tool, checking the transplantation target model C / C++ model construction project files, and providing modification suggestions, checking the transplantation target model C / C++ source code, and providing modification suggestions, checking the x86 assembly code in the transplantation target model, and providing modification suggestions.
[0012] Preferably, step S2 also includes migrating the model algorithm dependency library based on the x86 architecture to the ARM architecture through an embedded homogeneous and heterogeneous deep learning algorithm framework migration technology, specifically using a multi-core multi-threaded method to parallel optimize the pixel rearrangement operation in the model convolution layer, and distribute the linear scanning operation of the convolution kernel in each frame of the image to multiple threads for equal interval processing according to the position correspondence rule, and use a multi-core multi-threaded method to parallel optimize the forward calculation process of the deep neural network model of multiple frames of images, distribute the linear convolution layer, nonlinear activation and pooling layer to multiple threads for pipeline processing, and use the heterogeneous OpenCL framework to migrate the pixel rearrangement operation in the convolution layer to the GPU, make full use of the computing resources of the embedded mobile terminal, and further improve the performance of the algorithm framework, and use the homogeneous multi-core multi-threaded method to parallelize part of the forward calculation process between the convolution layer and the input frame, and use the heterogeneous graphics processor (GPU) of the open computing language (OpenCL) to implement convolution calculation to improve the processing speed of the framework.
[0013] Preferably, the step S2 further includes constructing a transmission line defect recognition neural network model, and processing the constructed transmission line defect recognition neural network model, including pruning the transmission line defect recognition neural network model to achieve a higher model compression rate and a small loss of model accuracy after pruning. Specifically, a sensitivity-based integrated pruning algorithm is used as the neural network pruning method. The target of the sensitivity-based integrated pruning algorithm can be understood as follows:
[0014]
[0015] Among them, L is the loss function of the network, D is the difference between the predicted value and the true value, W is the weight parameter of the convolution kernel, λ is the coefficient that balances the pruning ratio and the loss, and the channel pruning technology is used to prune the backbone feature network channel of the neural network, so that the computational complexity of the convolutional neural network is greatly reduced, thereby achieving compression and accelerating the inference time, and the selection of pruned channels and the output of feature maps are achieved through channel sparsification methods, linear minimum variance reconstruction channel methods or optimal channel selection methods.
[0016] Preferably, step S2 also includes pruning the neural network backbone feature network layer, and the specific steps are as follows: traverse the power transmission line defect recognition neural network model from front to back, find the BN layer corresponding to each convolution layer, if there is no corresponding BN layer, do not prune the convolution layer, and do not prune the output channel, globally sort the γ parameters in all BN layers, calculate the pruning threshold of the γ parameter according to the set pruning ratio, calculate the minimum value among the maximum values of the γ parameters of each BN layer, and use this value as the upper limit of the pruning threshold. Exceeding this threshold will cause the corresponding convolution layer to be completely pruned, and according to the different convolution layer parameters and the location, the corresponding pruning strategy is also different. The specific pruning strategy is to prune the convolution kernel corresponding to the pruning mask of the input channel and the pruning mask of this layer, and the pruning mask of this layer is composed of the index of the convolution filter corresponding to the γ parameter of the current convolution layer BN layer being less than the threshold.
[0017] Preferably, step S2 further includes constructing a transmission line defect recognition neural network model, and processing the constructed transmission line defect recognition neural network model, including quantizing parameters of the transmission line defect recognition neural network model, specifically including quantizing two types of parameters, one is the weight of the transmission line defect recognition neural network model, and the other is the activation value of the transmission line defect recognition neural network model, that is, the feature map, and establishing a connection between the true value and the quantized value in the quantization scheme through a quantization algorithm, and the specific calculation formula is as follows:
[0018] r=S(qZ)
[0019] In the formula, q represents the quantized value, r represents the corresponding real value, S and Z are constants, the constant S (S represents scale) is an arbitrary positive real number, which represents any floating-point number in the calculation, and the constant Z (Z represents zero-point) is of the same type as the quantized value, thereby realizing parameter quantization and improving the detection and recognition speed of the transmission line defect recognition neural network model.
[0020] Preferably, step S2 further includes constructing a transmission line defect recognition neural network model, and processing the constructed transmission line defect recognition neural network model, including using a convolution parallel optimization operation method to improve the operation speed of the transmission line defect recognition neural network model, and specifically using a four-layer loop algorithm to implement the convolution parallel optimization operation, and the convolution operation unit includes 16 PE modules and an adder, the first layer loop is 16 PE units take 16 convolution kernels from the weight buffer The first pixel point in the N channel direction is multiplied by the first pixel point in the N channel direction of the input feature map, and then Accumulate and output the results in the channel direction. In the second loop, the weight data in the PE unit remains unchanged. By sliding on the feature map, the first pixel of the N channels of the convolution kernel is multiplied by part of the feature map and accumulated in the channel direction. The third loop is to change the weight data in the PE unit so that the multiplication operation covers the entire convolution kernel and the entire feature map data, and obtain the result of multiplying all pixels in the N channel directions of the 3×3 convolution kernel with the entire feature map and accumulating in the channel direction. The fourth loop is based on the previous loop. The convolution kernel and the input feature map take a group of N channels in the channel direction respectively, and then repeat the above 3 loop operations.
[0021] Preferably, step S3 also includes model training of the processed transmission line defect recognition neural network model, and selecting a transmission line image data set as a training set of the model, and after the model training is completed, the transmission line defect recognition neural network model is used to identify transmission line defects on the transmission line image, and maintenance personnel are arranged to go to the corresponding sub-area for inspection based on the defect recognition results and image annotation information.
[0022] Compared with the prior art, the present invention has the following beneficial effects:
[0023] The present invention proposes a method for detecting power line defect images of unmanned aerial vehicles. Aiming at the actual situation that the computing power and storage resources of the mobile edge end of the unmanned aerial vehicle are limited, the power line defect recognition neural network model is migrated across the architecture to realize the transplantation of the power line defect recognition neural network model to the edge end of the unmanned aerial vehicle, so as to empower the mobile edge end of the unmanned aerial vehicle for the intelligent inspection algorithm and support the online identification of power line defects. The power line defect recognition neural network model is pruned to achieve a higher model compression rate and a small loss of model accuracy after pruning. The power line defect recognition neural network model is parameterized to improve the detection and identification speed of the power line defect recognition neural network model, so as to achieve a balance between the efficiency and energy consumption of the power line defect recognition neural network model at the edge end of the unmanned aerial vehicle. The power line defect recognition neural network model is labeled with the content of the sub-region number according to the sub-region of the image acquisition, so as to realize rapid maintenance work after the transmission line defect is identified. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for the specific embodiments or the description of the prior art. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn according to the actual scale.
[0025] Figure 1 Provides an overall method flow chart for an embodiment of the present invention;
[0026] Figure 2 This is a schematic diagram of the channel pruning principle in an embodiment of the present invention;
[0027] Figure 3 Schematic diagram of channel pruning in an embodiment of the present invention;
[0028] Figure 4 Schematic diagram of convolution after pruning in an embodiment of the present invention;
[0029] Figure 5 It is a technical roadmap of model quantization in the embodiment of the present invention;
[0030] Figure 6 4 is a structural diagram of a convolution module PE computing unit in an embodiment of the present invention. DETAILED DESCRIPTION
[0031] 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 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.
[0032] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0033] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0034] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0035] Combine the following Figure 1-Figure 6 , the implementation modes of the present invention are further described in detail.
[0036] A method for detecting defects in transmission lines using drone images, comprising the following steps:
[0037] S1: By setting various parameters of the UAV, the UAV is controlled to obtain high-quality transmission line images through aerial photography, and the collected transmission line images to be inspected are processed to improve the quality of the transmission line images and avoid affecting the accuracy of the transmission line defect detection results;
[0038] S2: Construct a neural network model for transmission line defect recognition, and process the constructed neural network model to realize the transplantation of the neural network model to the edge of the drone, empower the drone mobile edge for intelligent inspection algorithms, support online identification of transmission line defects, and achieve a balance between the efficiency and energy consumption of the neural network model for transmission line defect recognition at the edge of the drone;
[0039] S3: using the power line defect recognition neural network model processed in step S2 to perform power line defect recognition on the power line image processed in step S1.
[0040] Step S1 also includes dividing the drone aerial photography area into different sub-areas, and numbering each sub-area without duplication. The process of controlling the drone aerial photography to obtain high-quality transmission line images specifically includes three links: aerial photography setting, image inspection, and image rough correction. The aerial photography setting link specifically includes setting the planned aerial photography route, flight altitude, range, overlap rate and other parameters according to factors such as climate, terrain, aerial photography area, and location, and formulating an accurate drone aerial photography plan. The image inspection link specifically includes immediately checking the quality of the captured image after the aerial photography is completed, mainly including missed shot inspection, image overlap rate, image clarity, etc. If the image quality does not meet the requirements, it is necessary to go around in time. The image rough correction link specifically includes that before image processing, lens distortion correction and control point fine correction must be performed to eliminate image distortion. The image acquisition process needs to be strictly operated according to the steps to ensure that the captured image can accurately and clearly reflect the relevant information of the transmission line in the image and improve the efficiency of subsequent processing;
[0041] Step S1 also includes processing the transmission line image taken by the drone, including image grayscale conversion, noise filtering, image enhancement, etc., to improve the quality of the transmission line image, avoid affecting the accuracy of the subsequent transmission line defect detection results, and add a label with the sub-region number to the corresponding image according to the sub-region of the image acquisition, and collect drone images of transmission line defects to construct a transmission line image data set, and use data expansion technology to expand the number of samples in the transmission line image data set, and perform defect annotation on the transmission line image data set, wherein the transmission line defect features are mainly divided into four categories: line tower bird's nest defect features, conductor broken strand defect features, conductor loose strand defect features, and glass insulator "self-explosion" defect features, and the data expansion technology specifically expands the number of samples in the transmission line image data set by rotating or reflecting the collected drone images of transmission line defects, translating, flipping, scaling, and scaling, and the defect annotation specifically includes converting the transmission line defect image into JPG format, and adding text information combining the transmission defect type and image size to the transmission line defect image;
[0042] Step S2 also includes constructing a transmission line defect recognition neural network model, and processing the constructed transmission line defect recognition neural network model, including cross-architecture migration of the transmission line defect recognition neural network model, realizing the transplantation of the transmission line defect recognition neural network model to the edge end of the drone, and standardizing the cross-architecture strategy through a code transplantation tool, specifically selecting DependencyAdvisor as a scanning tool, checking the transplantation target model resource package binary file, and evaluating the portability, checking the binary files under the specified transplantation target model transplantation path, and evaluating the portability, checking the transplantation target model C / C++ source code, model construction project files, and evaluating the portability, providing a model transplantation report to the user, providing a transplantation workload assessment, selecting PortingAdvisor as a transplantation tool, checking the transplantation target model C / C++ model construction project files, and providing modification suggestions, checking the transplantation target model C / C++ source code, and providing modification suggestions, checking the x86 assembly code in the transplantation target model, and providing modification suggestions;
[0043] Step S2 also includes migrating the model algorithm dependency library based on the x86 architecture to the ARM architecture through an embedded homogeneous and heterogeneous deep learning algorithm framework migration technology, specifically using a multi-core multi-threading method to parallel optimize the pixel rearrangement operation in the model convolution layer, and distribute the linear scanning operation of the convolution kernel in each frame of the image to multiple threads for equal interval processing according to the position correspondence rule, and using a multi-core multi-threading method to parallel optimize the forward calculation process of the deep neural network model of multiple frames of images, and distribute the linear convolution layer, nonlinear activation and pooling layer to multiple threads for pipeline processing, using a heterogeneous OpenCL framework, migrating the pixel rearrangement operation in the convolution layer to the GPU, making full use of the computing resources of the embedded mobile terminal, and further improving the performance of the algorithm framework, using a homogeneous multi-core multi-threading method to parallelize part of the forward calculation process between the convolution layer and the input frame, and using a heterogeneous graphics processor (GPU) of the open computing language (OpenCL) to implement convolution calculation, so as to improve the processing speed of the framework;
[0044] Step S2 also includes constructing a transmission line defect recognition neural network model, and processing the constructed transmission line defect recognition neural network model, including pruning the transmission line defect recognition neural network model to achieve a higher model compression rate and a small loss of model accuracy after pruning. Specifically, a sensitivity-based integrated pruning algorithm is used as a neural network pruning method. The goal of the sensitivity-based integrated pruning algorithm can be understood as follows:
[0045]
[0046] Among them, L is the loss function of the network, D is the difference between the predicted value and the true value, W is the weight parameter of the convolution kernel, λ is the coefficient that balances the pruning ratio and the loss, and the channel pruning technology is used to prune the neural network backbone feature network channel, so that the calculation amount of the convolutional neural network is greatly reduced, thereby achieving compression and accelerating the inference time, and the selection of the pruned channel and the output of the feature map are achieved through the channel sparsification method, the linear minimum variance reconstruction channel method or the optimal channel selection method.
[0047] Step S2 also includes pruning the neural network backbone feature network layer, and the specific steps are as follows: traverse the power transmission line defect recognition neural network model from front to back, find the BN layer corresponding to each convolution layer, if there is no corresponding BN layer, do not prune the convolution layer, and do not prune the output channel, globally sort the γ parameters in all BN layers, calculate the pruning threshold of the γ parameter according to the set pruning ratio, calculate the minimum value of the maximum value of the γ parameter of each BN layer, and use this value as the upper limit of the pruning threshold. Exceeding this threshold will cause the corresponding convolution layer to be completely pruned, and according to the different convolution layer parameters and the location, the corresponding pruning strategy is also different. The specific pruning strategy is to prune the convolution kernel corresponding to the pruning mask of the input channel and the pruning mask of this layer, and the pruning mask of this layer is composed of the index of the convolution filter corresponding to the γ parameter of the current convolution layer BN layer less than the threshold;
[0048] Step S2 also includes constructing a transmission line defect recognition neural network model, and processing the constructed transmission line defect recognition neural network model, including quantizing parameters of the transmission line defect recognition neural network model, specifically including quantizing two types of parameters, one is the weight of the transmission line defect recognition neural network model, and the other is the activation value of the transmission line defect recognition neural network model, that is, the feature map, and establishing a connection between the true value and the quantized value in the quantization scheme through a quantization algorithm. The specific calculation formula is as follows:
[0049] r=S(qZ)
[0050] In the formula, q represents the quantized value, r represents the corresponding real value, S and Z are constants, the constant S (S represents scale) is an arbitrary positive real number, which represents any floating-point number in the calculation, and the constant Z (Z represents zero-point) is of the same type as the quantized value, thereby realizing parameter quantization and improving the detection and recognition speed of the transmission line defect recognition neural network model;
[0051] Step S2 also includes constructing a transmission line defect recognition neural network model, and processing the constructed transmission line defect recognition neural network model, including using a convolution parallel optimization operation method to improve the operation speed of the transmission line defect recognition neural network model, and specifically using a four-layer loop algorithm to implement the convolution parallel optimization operation, and the convolution operation unit includes 16 PE modules and an adder, the first layer of the loop is 16 PE units take 16 convolution kernels from the weight buffer The first pixel point in the N channel direction is multiplied by the first pixel point in the N channel direction of the input feature map, and then in the channel direction Accumulate upward and output the result. In the second layer loop, the weight data in the PE unit remains unchanged. By sliding on the feature map, the first pixel point of the N channels of the convolution kernel is multiplied by part of the feature map and accumulated in the channel direction. The third layer loop is to change the weight data in the PE unit so that the multiplication operation covers the entire convolution kernel and the entire feature map data, and obtain the result of multiplying all pixels in the N channel directions of the 3×3 convolution kernel with the entire feature map and accumulating in the channel direction. The fourth layer loop is based on the previous layer loop. The convolution kernel and the input feature map take a group of N channels in the channel direction respectively, and then repeat the above 3 loop operations;
[0052] Step S3 also includes training the processed power line defect recognition neural network model, and selecting a power line image data set as a training set of the model. After the model training is completed, the power line defect recognition neural network model is used to identify power line defects in the power line image, and maintenance personnel are arranged to go to the corresponding sub-area for inspection based on the defect recognition results and image annotation information.
[0053] In summary, facing the actual situation that the computing power and storage resources of the UAV mobile edge are limited, the transmission line defect recognition neural network model is migrated across architectures to realize the transplantation of the transmission line defect recognition neural network model to the UAV edge, empowering the UAV mobile edge for the intelligent inspection algorithm, supporting the online identification of transmission line defects, and pruning the transmission line defect recognition neural network model to achieve a higher model compression rate and a small loss of model accuracy after pruning. The transmission line defect recognition neural network model is parameterized to improve the detection and recognition speed of the transmission line defect recognition neural network model, and the efficiency and energy consumption of the transmission line defect recognition neural network model are balanced at the UAV edge. According to the sub-area of image acquisition, the corresponding image is annotated with the content of the sub-area number, so that the transmission line defect can be quickly repaired after the transmission line defect is identified.
[0054] Those of ordinary skill in the art will appreciate that the units (or steps, the same below) of the examples described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition of each example has been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0055] In the embodiments provided by the present invention, it should be understood that the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units can be combined into one unit, one unit can be split into multiple units, or some features can be ignored, etc.
[0056] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0057] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-0nlyMemory), random access memory (RAM, RandomAccessMemory), mobile hard disk, magnetic disk or optical disk, etc., which can store program code.
[0058] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.
Claims
1. A method for detecting defects in power transmission lines using drone images, characterized in that: The following steps are involved: S1: By setting various parameters of the UAV, the UAV is controlled to obtain transmission line images through aerial photography, and the collected transmission line images to be detected are processed to improve the quality of the transmission line images; S2: Construct a neural network model for transmission line defect recognition, and process the constructed neural network model to realize the transplantation of the neural network model to the edge of the drone, empower the drone mobile edge for intelligent inspection algorithms, and support online identification of transmission line defects; S3: using the power line defect recognition neural network model processed in step S2 to perform power line defect recognition on the power line image processed in step S1.
2. The method for detecting power transmission line defects using an unmanned aerial vehicle according to claim 1, characterized in that: The step S1 further includes: dividing the drone aerial photography area into different sub-areas, and numbering each sub-area without duplication; controlling the drone aerial photography to obtain high-quality transmission line images, specifically including three steps: aerial photography setting, image inspection, and image rough correction, wherein: The aerial photography setting process specifically includes setting parameters including the planned aerial photography route, flight altitude, range, and overlap rate; The image inspection process specifically includes missed shots inspection, image overlap rate, and image clarity inspection. If the image quality does not meet the requirements, a go-around will be conducted; The image rough correction stage specifically includes lens distortion correction and control point fine correction before image processing to eliminate image distortion.
3. The method for detecting defects in power transmission lines using drone images according to claim 1, characterized in that: The step S1 further comprises: Process the transmission line images taken by drones, including image grayscale conversion, noise filtering, and image enhancement; According to the sub-regions of image acquisition, the corresponding images are annotated with the sub-region numbers, and UAV images of transmission line defects are collected to construct a transmission line image dataset; Data augmentation technology is used to expand the number of samples in the transmission line image dataset, and defects are annotated in the transmission line image dataset. The transmission line defect features are mainly divided into four categories: line tower bird's nest defect features, conductor broken strand defect features, conductor loose strand defect features, and glass insulator "self-explosion" defect features. The data augmentation technology specifically expands the number of samples in the transmission line image dataset by performing rotation or reflection transformation, translation transformation, flip transformation, scaling transformation, and scale transformation on the collected drone images of transmission line defects. The defect annotation specifically includes converting the transmission line defect image into JPG format, and adding text information combining the transmission defect type and image size to the transmission line defect image.
4. The method for detecting power transmission line defects using an unmanned aerial vehicle according to claim 1, characterized in that: The step S2 also includes constructing a transmission line defect recognition neural network model, and processing the constructed transmission line defect recognition neural network model, including migrating the transmission line defect recognition neural network model across architectures, realizing the transplantation of the transmission line defect recognition neural network model to the edge of the drone, and standardizing the cross-architecture strategy through a code transplantation tool.
5. The method for detecting power transmission line defects using an unmanned aerial vehicle according to claim 1, characterized in that: The step S2 also includes migrating the model algorithm dependency library based on the x86 architecture to the ARM architecture through an embedded homogeneous and heterogeneous deep learning algorithm framework migration technology, specifically using a multi-core multi-threading method to parallel optimize the pixel rearrangement operation in the model convolution layer, and distribute the linear scanning operation of the convolution kernel in each frame of the image to multiple threads for equal interval processing according to the position correspondence rule, and use the multi-core multi-threading method to parallel optimize the forward calculation process of the deep neural network model of multiple frames of images, distribute the linear convolution layer, nonlinear activation and pooling layer to multiple threads for pipeline processing, and use the heterogeneous OpenCL framework to migrate the pixel rearrangement operation in the convolution layer to the GPU, so as to make full use of the computing resources of the embedded mobile terminal and further improve the performance of the algorithm framework, and use the homogeneous multi-core multi-threading method to parallelize part of the forward calculation process between the convolution layer and the input frame, and use the heterogeneous graphics processor (GPU) of the open computing language (OpenCL) to implement the convolution calculation.
6. The method for detecting power transmission line defects using an unmanned aerial vehicle according to claim 1, characterized in that: The step S2 also includes specifically adopting a sensitivity-based integrated pruning algorithm as a neural network pruning method, and pruning the neural network backbone feature network channel through channel pruning technology, and selecting the pruned channel and ensuring the output of the feature map through a channel sparsification method, a linear minimum variance reconstruction channel method or an optimal channel selection method.
7. The method for detecting defects in power transmission lines using drone images according to claim 1, characterized in that: The step S2 also includes pruning the neural network backbone feature network layer, and the specific steps are as follows: traverse the power transmission line defect recognition neural network model from front to back, find the BN layer corresponding to each convolution layer, if there is no corresponding BN layer, do not prune the convolution layer, and do not prune the output channel, globally sort the γ parameters in all BN layers, calculate the pruning threshold of the γ parameter according to the set pruning ratio, calculate the minimum value of the maximum value of the γ parameter of each BN layer, and use this value as the upper limit of the pruning threshold. Exceeding this threshold will cause the corresponding convolution layer to be completely pruned, and according to the different convolution layer parameters and the location, the corresponding pruning strategy is also different. The specific pruning strategy is to prune the convolution kernel corresponding to the pruning mask of the input channel and the pruning mask of this layer, and the pruning mask of this layer is composed of the index of the convolution filter corresponding to the γ parameter of the current convolution layer BN layer being less than the threshold.
8. The method for detecting defects in power transmission lines using drone images according to claim 1, characterized in that: The step S2 also includes constructing a transmission line defect recognition neural network model, and processing the constructed transmission line defect recognition neural network model, including quantizing parameters of the transmission line defect recognition neural network model, specifically including quantizing two types of parameters, one is the weight of the transmission line defect recognition neural network model, and the other is the activation value of the transmission line defect recognition neural network model, and establishing a connection between the true value and the quantized value in the quantization scheme through a quantization algorithm.
9. The method for detecting power transmission line defects using an unmanned aerial vehicle according to claim 1, characterized in that: The step S2 also includes constructing a transmission line defect recognition neural network model, and processing the constructed transmission line defect recognition neural network model, including using a convolution parallel optimization operation method to improve the operation speed of the transmission line defect recognition neural network model, and specifically using a four-layer loop algorithm to implement the convolution parallel optimization operation, and the convolution operation unit includes 16 PE modules and an adder, the first layer loop is 16 PE units take 16 convolution kernels from the weight buffer The first pixel point in the N channel direction is multiplied by the first pixel point in the N channel direction of the input feature map, and then in the channel In the second loop, the weight data in the PE unit remains unchanged, and by sliding on the feature map, the first pixel of the N channels of the convolution kernel is multiplied by part of the feature map and accumulated in the channel direction. The third loop is to change the weight data in the PE unit so that the multiplication operation covers the entire convolution kernel and the entire feature map data, and obtain the result of multiplying all pixels in the N channel directions of the 3×3 convolution kernel with the entire feature map and accumulating in the channel direction. The fourth loop is based on the previous loop. The convolution kernel and the input feature map take a group of N channels in the channel direction respectively, and then repeat the above 3 loop operations.
10. The method for detecting power transmission line defects using an unmanned aerial vehicle according to claim 1, characterized in that: The step S3 also includes training the processed power line defect recognition neural network model, and selecting a transmission line image data set as a training set of the model. After the model training is completed, the transmission line defect recognition neural network model is used to identify the transmission line defects on the transmission line image, and maintenance personnel are arranged to go to the corresponding sub-area for inspection based on the defect recognition results and image annotation information.
Citation Information
Cited By
Unmanned aerial vehicle autonomous inspection analysis system for power grid line defects
CN120598934A
