Power transmission line multi-target detection method based on improved Faster R-CNN algorithm

Through the improved Faster R-CNN algorithm, combined with VGGNet16 and PAFPN, and the introduction of EDANet and whale optimization algorithm GT-WOA, the detection problem of small targets and complex backgrounds in high-voltage transmission line inspections has been solved, and the detection accuracy and recall rate have been significantly improved. Suitable for multi-target detection of transmission lines in complex environments.

CN118710876AInactive Publication Date: 2024-09-27LIAONING TECHNICAL UNIVERSITY
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410751984.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing target detection algorithms based on deep learning are difficult to effectively detect small targets and targets in complex backgrounds during high-voltage transmission line inspections, especially in the presence of occlusion, resulting in low detection accuracy.

Method used

Using the improved Faster R-CNN algorithm, feature extraction and fusion is performed by combining the convolutional neural network VGGNet16 and the path enhanced feature pyramid network (PAFPN), and the dual attention network EDANet is introduced into the model, the loss function is improved, and the whale optimization algorithm is used GT-WOA optimizes the learning rate and weight factors to improve target recognition accuracy and model performance.

Benefits of technology

Significantly improves the recognition accuracy of complex backgrounds and small targets, enhances the feature extraction capability and overall performance of the model, and improves the average precision and recall rates. The improved algorithm shows higher accuracy in high-voltage transmission line detection and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710876A
    Figure CN118710876A
Patent Text Reader

Abstract

The invention discloses a power transmission line multi-target detection method based on an improved Faster R-CNN algorithm, and relates to the technical field of power transmission line detection. A path enhancement feature fusion network is adopted to fuse features of different dimensions extracted by the model, the detection precision of the model on small targets and targets with complex backgrounds is improved, a double attention network structure EDANet is added in a Faster R-CNN network, and the feature expression ability of specific semantics is improved; meanwhile, in order to improve the overall performance of the model, an improved whale optimization algorithm GT-WOA is provided, a loss function is improved by introducing a weight factor, and then the GT-WOA algorithm is used for carrying out adaptive given on the learning rate and the weight factor for improving the loss function; and finally, obtaining the learning rate and the optimal values of m and n, obtaining a trained network model, and carrying out multi-target detection on the power transmission line. The method has the advantages of high identification precision, strong information aggregation capability, high model feature extraction capability and high optimization precision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power transmission line detection, and in particular to a power transmission line multi-target detection method based on an improved Faster R-CNN algorithm. Background Art

[0002] In recent years, with the maturity of drone technology, the use of drone aerial photography technology and deep learning-based target detection technology to assist manual inspection of high-voltage overhead transmission lines has become an important way of transmission line inspection at home and abroad. Since the high-voltage transmission system is very large, the rapid and accurate detection of power devices and abnormal targets in the transmission line has become one of the important topics in the current field of high-voltage transmission line inspection. Therefore, in order to ensure the safe and stable operation of the power system, the research on target detection algorithms based on deep learning is of great significance.

[0003] Most of the existing deep learning-based object detection methods are performed on standard samples, with the characteristics of simple target images, no occlusion and complex background environment interference. However, in the actual transmission line inspection process, there are often small distant targets, complex backgrounds and mutual occlusion, which makes it difficult for existing target detection algorithms to obtain ideal detection results, especially for small targets, targets in complex environments and occluded targets. Summary of the invention

[0004] In view of the shortcomings of the above existing technologies, this paper proposes a multi-target detection method for transmission lines based on the improved Faster R-CNN algorithm.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention specifically includes the following steps:

[0006] Step 1: Select and train the dataset, and construct the dataset using the original images taken by drone inspections;

[0007] Step 2: Construct a multi-target detection model for power transmission lines based on the improved Faster R-CNN, including the following steps;

[0008] Step 2.1: Use FasterR-CNN, an original convolutional neural network-based object detection model;

[0009] Step 2.2: Input the basic features extracted by the original Faster R-CNN feature extraction network into the Path Enhanced Feature Pyramid Network (PAFPN) for feature fusion. The convolutional neural network VGGNet16 is used to extract features, and then input them into PAFPN for feature semantic information fusion to obtain more detailed feature information and thus improve the recognition accuracy of targets and small targets in complex backgrounds;

[0010] Step 2.3: Add a dual attention network structure EDANet to the FasterR-CNN network to improve the feature expression ability of specific semantics and thus improve the accuracy of target recognition;

[0011] Step 2.4: In order to improve the overall performance of the model, a loss function based on adaptive weight factors is proposed. The loss function of the RPN network in the Faster R-CNN model is divided into two categories: classification loss and regression loss. Formula (1) is as follows;

[0012]

[0013] Where λ is the weight balancing parameter, N cls Indicates the number of training images in each batch, N reg Indicates the number of anchor boxes;

[0014] Furthermore, since the position and category recognition have different influences on the final recognition result, when setting their weights, the influence of the two should be weighed so that the proportions of classification loss and regression loss are different. To this end, the original formula is improved as shown in the following formula (2), adding classification loss factor m and regression loss factor n to adjust the weights of classification and regression losses. The transformation formula is as follows, so as to optimally distribute the influence of the two loss functions on the overall loss function;

[0015]

[0016] Step 3: Use a whale optimization algorithm GT-WOA that introduces global search and t-distribution mutation strategy to optimize the parameters of the model, use the whale optimization algorithm to find the optimal whale individual, that is, to find the optimal learning rate and the values ​​of the two weight factors m and n of the improved loss function, and input the training data set into the model for training. It includes the following steps;

[0017] Step 3.1: Initialize the whale population, i.e. the learning rate and parameters m, n, and initialize the Faster R-CNN convolutional neural network;

[0018] Step 3.2: Input the image into the neural network for training and perform feature extraction through the convolutional neural network VGGNet16;

[0019] Step 3.3: Perform back propagation to calculate the fitness value of each whale individual, thereby obtaining the optimal whale individual and updating the whale's position. At the same time, in order to solve the problems of insufficient global search capability of WOA and low optimization accuracy of the algorithm, the whale optimization algorithm with global search and t-distribution mutation strategy is introduced to improve its optimization capability;

[0020] Step 3.3.1: Introduce adaptive weight ω to improve the global search capability of the algorithm in the early stage. According to the change of the number of updates in the whale optimization algorithm, based on the number of iterations t, the adaptive inertia weight is shown in formula (3);

[0021]

[0022] Where Min = 0.3, Max = 0.9, C_Iter is the current number of iterations, and M_Iter is the maximum number of iterations;

[0023] Step 3.3.2: Variable spiral position update. By using variable parameters to dynamically adjust the spiral path during whale hunting, the global optimization ability of the algorithm is improved in the initial stage, and the optimization accuracy of the algorithm is improved in the later stage. The improved spiral position update formula is shown in formula (4):

[0024]

[0025] Step 3.3.3: T distribution mutation strategy, using the mutation operator in the freedom parameter of the t distribution with the iteration number as the perturbation of the solution position, so that the algorithm has a good global search ability in the early iteration, and has excellent local exploration ability in the late iteration, which improves the convergence speed of the algorithm. The position update method is shown in formula (5);

[0026]

[0027] Step 4: Get the optimal values ​​of learning rate, m, n and the trained network model, and perform multi-target detection on the transmission line.

[0028] The beneficial effects of adopting the above technical solution are:

[0029] The present invention uses convolutional neural network VGGNet16 to extract features, and then inputs them into PAFPN for feature semantic information fusion, so as to obtain more detailed feature information and thus improve the recognition accuracy of targets and small targets in complex backgrounds; and based on FPN, a bottom-up path is added to its network, which enhances the aggregation capability of target position information and semantic information at different network levels; and after the output end of PAFPN, an efficient dual attention network EDANet based on DANet is introduced. After the introduction of EDANet, the features cover more parts of the target to be identified, effectively enhancing the feature extraction capability of the model and improving the feature expression capability of the target in a complex background environment; and by introducing weight factors, the loss function of the original model is improved;

[0030] An improved whale optimization algorithm, GTWOA, is proposed. The GT-WOA algorithm is used to adaptively set the learning rate of the model and the weight factor of the improved loss function, thereby improving the overall performance of the model.

[0031] By proposing a whale optimization algorithm GT-WOA that introduces global search and t-distribution mutation strategy, the shortcomings of insufficient global search ability and low optimization accuracy of the whale optimization algorithm WOA are overcome; inspired by the particle swarm algorithm, an inertia weight ω that changes with the number of iterations is introduced into the whale's position update formula to improve the global search ability of the algorithm in the early stage; the present invention uses variable parameters to dynamically adjust the spiral path in the whale hunting process, thereby improving the global optimization ability of the algorithm in the initial stage and the optimization accuracy of the algorithm in the later stage; the present invention uses the mutation operator in the degree of freedom parameter of the t-distribution with the number of iterations to perturb the position of the solution, so that the algorithm has better global search ability in the early stage of iteration, and has excellent local exploration ability in the later stage of iteration, thereby improving the convergence speed of the algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 This is the improved Faster R-CNN structure diagram of the present invention.

[0033] Figure 2 This is the RPN structure diagram of the present invention.

[0034] Figure 3 This is the structural diagram of the PAFPN of the present invention.

[0035] Figure 4 This is the EDANet structure diagram of the present invention.

[0036] Figure 5 This is a flow chart of parameter optimization of the GT-WOA algorithm of the present invention.

[0037] Figure 6 This is a comparison curve of mAP values ​​of the present invention.

[0038] Figure 7 This is a recall rate comparison curve diagram of the present invention.

[0039] Figure 8 This is an image showing how the learning rate of the present invention changes with the number of network iterations.

[0040] Fig. 9 This is a comparison diagram of the Loss curve of the present invention.

[0041] Fig.10 This is the detection result of the Faster R-CNN algorithm of the present invention.

[0042] Fig.11 This is the detection result of the improved algorithm of the present invention. DETAILED DESCRIPTION

[0043] The following is a further detailed description of the specific implementation of the present invention in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention but are not intended to limit the scope of the present invention;

[0044] 1) Select and train the data set, and construct the data set using the original images taken by drone inspections;

[0045] The original images used are from the drone inspection samples collected by a power supply bureau in recent years. The present invention detects six types of targets: insulators, insulator defects, bird nests, interphase rods, anti-vibration hammers and missing bolts;

[0046] In order to expand the samples and further improve the accuracy and robustness of the training effect of the data set, in addition to traditional data augmentation such as scale scaling and brightness adjustment, the present invention adopts data augmentation image processing methods to improve the generalization ability of the training model, such as Gaussian mean filtering, frosted glass, grayscale processing and color inversion;

[0047] The total number of samples was expanded to 6 times the original number, and unclear images, images with poor shooting angles, and duplicate images were filtered out. Finally, 946 images remained; after expansion, the total number of samples was 5676, of which 4532 images were divided into training set images and 1144 images were divided into test set images. The training set and the test set are mutually exclusive and are randomly selected from the overall sample;

[0048] Then use the labeling software LabelImg for labeling.

[0049] 2) Construct a multi-target detection model for power transmission lines based on the improved Faster R-CNN. The improved Faster R-CNN structure is shown in the figure below. Figure 1 As shown, the following steps are included;

[0050] Step 1: Use Faster R-CNN, an original convolutional neural network-based target detection model, where the RPN structure is as follows: Figure 2 As shown;

[0051] Faster R-CNN is a target detection model based on convolutional neural networks. It adopts a two-stage detection architecture. Its detection process includes convolutional feature extraction, RPN generation of candidate boxes, candidate box screening, ROI pooling layer, target classification and position refinement. RPN is one of the cores of Faster R-CNN, and its main mechanism is sliding window and anchor point. Its input is a feature map of any size, and its output is multiple candidate boxes containing target information. The feature map of the last convolutional layer generates candidate boxes of different scales and aspect ratios, and calculates the confidence score for each candidate box, thereby improving detection efficiency and accuracy.

[0052] Furthermore, to obtain the target candidate box, the RPN network uses an n×n sliding window on the feature map obtained by the feature extraction network. This process is equivalent to an n×n convolution operation. Each time the window slides, the region proposal constructs k anchor boxes of different sizes and maps them to low-dimensional vectors. Then, the low-dimensional vector is input into the bounding box classification layer and the bounding box regression layer, and finally 2k scores (k foreground and k background scores) and 4k coordinates are output to predict the position information of the bounding box.

[0053] Furthermore, the present invention uses the average precision (mAP) and recall rate (Recall) commonly used in target detection algorithms to evaluate the performance of the model, and calculates the AP value according to the precision rate P and the recall rate R. The calculation formulas of the precision rate P and the recall rate R are shown in formula (1) and formula (2) respectively:

[0054]

[0055]

[0056] Among them, P is the precision, R is the recall, TP is the number of true targets detected correctly, FP is the number of false targets misclassified as true targets, and FN is the number of true targets misclassified as false targets.

[0057] Furthermore, the corresponding average accuracy can be determined as follows:

[0058]

[0059] When calculating, the integral in formula (3) is approximated as the sum of the precisions of each possible threshold multiplied by the change in recall, as shown in the following formula (4):

[0060]

[0061] Where N is the total number of images in the set; P(k) is the precision when calculating k images; ΔR(k) is the change in recall when calculating k-1 images and k images;

[0062] mAP represents the average value of the recognition accuracy of all categories, and the calculation formula is shown in the following formula (5):

[0063]

[0064] Step 2: Input the basic features extracted by the original Faster R-CNN feature extraction network into the Path Enhanced Feature Pyramid Network (PAFPN) for feature fusion. The feature extraction is performed through the convolutional neural network VGGNet16, and then input into the PAFPN for feature semantic information fusion to obtain more detailed feature information and thus improve the recognition accuracy of targets and small targets in complex backgrounds. The PAFPN structure diagram is shown in the figure below: Figure 3 As shown;

[0065] Furthermore, Faster R-CNN relies on deep features for prediction, but it ignores the indispensable role of shallow features in target detection. Deep features contain rich semantic information and are very effective in detecting large-sized targets, but are more difficult to detect small targets; while shallow features have rich details and can well assist the model in accurately locating small targets. Therefore, the present invention uses the convolutional neural network VGGNet16 to extract features, and then inputs them into PAFPN for feature semantic information fusion, so as to obtain more detailed feature information and thus improve the recognition accuracy of targets and small targets in complex backgrounds.

[0066] First, the output feature layers are processed by the VGGNet16 feature extraction network: F1, F2, F4, F6, and the intermediate feature layers P1, P2, P4, P6 are generated through traditional FPN processing. At the same time, the intermediate feature layers are horizontally connected to obtain high-resolution feature maps: F' i ,i∈{1,2,4,6}, each feature layer F' i The spatial size is reduced by a 3×3 convolution with a stride of 2, and then combined with the corresponding upper layer feature P i The sum of the elements of is horizontally connected to generate a new feature layer F'.

[0067] Step 3: Add a dual attention network structure EDANet to the Faster R-CNN network, and introduce an efficient dual attention network EDANet based on DANet after the output of PAFPN to improve the feature expression ability of specific semantics and improve the target recognition accuracy. The EDANet structure diagram is shown in the figure below: Figure 4 As shown;

[0068] Furthermore, the DANet network is a network that uses self-attention, which can improve the saliency of objects affected by lighting and occlusion, and can treat the features of objects of different scales and proportions in an image equally, thereby improving the feature representation of specific semantics. It introduces a self-attention mechanism to capture feature dependencies in the spatial dimension and channel dimension respectively.

[0069] Furthermore, inspired by DANet, the efficient dual attention mechanism EDANet proposed in this paper also consists of two parallel attention modules. The spatial attention module is the same as DANet, using PAM to obtain the dependency between any two positions in the feature map, while the channel attention module uses ECA to obtain the dependency between two channels.

[0070] Furthermore, ECA adopts a local cross-channel interaction strategy to establish a direct connection between channels and weights without reducing dimensionality. Appropriate cross-channel interaction greatly reduces the complexity of the model without affecting the performance of the model, and significantly improves the performance of the model by adding a small number of parameters.

[0071] Furthermore, in order to enable the information between channels to interact and fuse quickly, the ECA module uses a global average pooling method for the input feature map, compressing the features from a two-dimensional matrix into a 1×1×C sequence with global information. Afterwards, a fast one-dimensional convolution operation is used to implement the operation between each channel and its k nearest neighbors without the need for feature dimensionality reduction. In addition, the parameter k in the module can also be determined in an adaptive manner, and its calculation formula is shown in formula (6);

[0072]

[0073] Where C is the channel dimension, γ is 2, and b is 1.

[0074] Furthermore, taking the insulator as an example, Grad-CAM is used to visualize the recognition effect before and after the introduction of EDANet. After the introduction of EDANet, the features cover more parts of the target to be identified, effectively enhancing the feature extraction capability of the model.

[0075] Step 4: To improve the overall performance of the model, a loss function based on adaptive weight factors is proposed. The loss function of the RPN network in the FasterR-CNN model is divided into two categories: classification loss and regression loss. Formula (7) is as follows:

[0076]

[0077] Where λ is the weight balancing parameter, N cls Indicates the number of training images in each batch, N reg Indicates the number of anchor boxes.

[0078] Furthermore, since the position and category recognition have different influences on the final recognition result, when setting their weights, the influence of the two should be weighed so that the proportions of classification loss and regression loss are different. To this end, the original formula is improved as shown in the following formula (8), adding classification loss factor m and regression loss factor n to adjust the weights of classification and regression losses. The transformation formula is as follows, so as to optimally distribute the influence of the two loss functions on the overall loss function;

[0079]

[0080] 3) Optimize the parameters of the model using a whale optimization algorithm GT-WOA that introduces global search and t-distribution mutation strategy, and use the whale optimization algorithm to find the optimal whale individual, that is, to find the optimal learning rate and the values ​​of the two weight factors m and n of the improved loss function, and input the training data set into the model for training. It includes the following steps, and the specific flow chart is as follows Figure 5 As shown;

[0081] Step 1: Initialize the whale population, i.e. the learning rate and parameters m and n, and initialize the Faster R-CNN convolutional neural network;

[0082] Furthermore, in the training phase of the neural network, the learning rate is a key factor affecting the network iteration speed and obtaining the optimal solution. The initial value of the learning rate in Faster R-CNN is 0.001. After every 200 iterations, the learning rate will be reduced to one-tenth of the original value, but the preset value does not represent the optimal value. Therefore, in order to find a learning rate that is more suitable for network training to improve the overall performance of the model, this paper uses the GT-WOA optimization algorithm to adaptively optimize the learning rate.

[0083] Step 2: Input the image into the neural network for training, and perform feature extraction through the convolutional neural network VGGNet16;

[0084] Step 3 performs back propagation to calculate the fitness value of each whale individual, thereby obtaining the optimal whale individual and updating the whale's position. At the same time, in order to solve the problems of insufficient global search capability of WOA and low optimization accuracy of the algorithm, a whale optimization algorithm with global search and t-distribution mutation strategy is introduced to improve its optimization capability;

[0085] Step 3.1 introduces the adaptive weight ω to improve the global search capability of the algorithm in the early stage. According to the change of the number of updates in the whale optimization algorithm, based on the number of iterations t, the adaptive inertia weight is shown in formula (9);

[0086]

[0087] Wherein Min=0.3, Max=0.9, C_Iter is the current number of iterations, and M_Iter is the maximum number of iterations.

[0088] Furthermore, the improved inertia weight ω has the characteristic of nonlinear change between [0,1]. The change characteristic of the cosine function between [0,π / 2] makes the weight smaller but the change speed slightly faster in the early stage of the algorithm; the weight is larger in the later stage of the algorithm, but the change speed will slow down. This method fully guarantees the convergence of the algorithm and balances the local and global search capabilities of the algorithm. The improved position update formula is the following formula (10) and formula (11);

[0089]

[0090]

[0091] Step 3.2: Variable spiral position update. By using variable parameters to dynamically adjust the spiral path during whale hunting, the global optimization ability of the algorithm is improved in the initial stage, and the optimization accuracy of the algorithm is improved in the later stage. The improved spiral position update formula is shown in formula (12):

[0092]

[0093] Step 3.3T distribution mutation strategy, using the mutation operator in the freedom parameter of the t distribution with the iteration number to perturb the position of the solution, so that the algorithm has better global search ability in the early iteration and excellent local exploration ability in the later iteration, which improves the convergence speed of the algorithm. The position update method is shown in formula (13);

[0094]

[0095] Among them, is the position of the optimal solution in the jth dimension after the adaptive t-distribution mutation perturbation. is the position of the optimal solution in the jth dimension before the mutation disturbance. The number of iterations is used as the degree of freedom parameter of the t distribution.

[0096] 4) Obtain the optimal values ​​of the learning rate and m and n, obtain the trained network model, and perform multi-target detection on the transmission line.

[0097] Furthermore, the comparison results with the training data curve of the original Faster R-CNN algorithm are as follows Figure 6 , Figure 7As shown in the figure. It can be seen that the algorithm proposed in this paper has improved the average accuracy and recall rate to a certain extent, and the convergence speed is significantly better than the original Faster R-CNN algorithm. In the figure, the average precision mAP value of the model in this paper is 96.3%, which is 5.1% higher than the original model; the final recall rate is increased from 84.2% to 89.6%, an increase of 5.4%. The improvement of each indicator proves the effectiveness of the improved algorithm proposed in this paper and achieves accurate target recognition.

[0098] Furthermore, this paper conducted an ablation experiment to further verify the improvement effect of the improved method proposed in the algorithm of this paper on the original algorithm. The experimental results of using different optimization methods based on Faster R-CNN are compared in Table 2. As can be seen from Table 2, compared with the original Faster R-CNN algorithm, the average accuracy of the algorithm of the present invention has increased by 5.1%, reaching 96.3%. After applying PAFPN, the average recognition accuracy of the algorithm has increased by 1.7%, and the recall rate has increased by 1.5%. After the introduction of EDANet, the accuracy of the algorithm increased by 1.9%, and the recall rate increased by 2.1%, proving the effectiveness of the dual attention network. After optimizing the model through GT-WOA, the mAP value increased by 1.5% and the recall rate increased by 1.8%.

[0099] To further verify the effectiveness of the GT-WOA algorithm proposed in this paper in optimizing model parameters, the improved model is trained and tested using the expanded data set. The learning rate changes with the number of network iterations as shown in the figure. Figure 8 shown.

[0100] Furthermore, the training process is divided into two stages to find the optimal learning rate. In the first stage, the learning rate is optimized by the GTWOA algorithm before 400 iterations to obtain the global approximate optimal solution.

[0101] Furthermore, it is limited to the interval (0.001, 0.01). In the second stage, after 400 iterations, it is set to the interval (0.00001, 0.0001] for optimization and obtain the final value. The weight factors m and n are also optimized by this method, and the range is limited to (0,1]. According to the comparison results of the loss function, it can be judged whether the performance of the improved model has been improved. The lower the Loss value, the better the convergence effect of the algorithm. There are four types of loss functions in the Faster RCNN network. The comparison of the four types of Loss curves and the total Loss curve is as follows: Fig. 9 shown.

[0102] Furthermore, after analyzing the optimization curve and various loss curves, it can be found that the overall fluctuation of the improved algorithm is significantly reduced and the convergence effect is better. In the entire system, the loss value changes more stably, which shows that the optimization effect of the GT-WOA algorithm on the learning rate and the weight factor of the improved loss function is obvious, and the accuracy and recall rate of model recognition are improved.

[0103] Fig.10 and Fig.11 The figure shows the comparison of the detection effect of the original Faster R-CNN detection model and the improved Faster R-CNN detection model on a multi-target test image. The upper left corner of the image shows the name and number of the detected targets. After comparison, it can be found that the original Faster R-CNN missed detections when detecting targets in complex environments, small targets in the distance, and occluded targets. The improved Faster RCNN network can accurately identify various targets in various environments, significantly improving the detection accuracy of the original model.

[0104] Furthermore, in order to verify the advantages of the algorithm in this paper in multi-target detection of power transmission lines, the same data set as the present invention is used to train on three traditional algorithm models: Faster RCNN, SSD, and YOLOV5. It can be seen that the improved Faster RCNN proposed in this paper has the highest average accuracy, which can reach 96.3%. Although the detection time is slightly longer than that of the one-stage algorithm, the detection accuracy and recall rate are significantly better than other algorithms, and it is more suitable for power transmission line target detection in complex environments and with many small targets.

[0105] The present invention has been explained and described through relatively detailed and accurate descriptions and examples, but the examples mentioned do not limit the present invention. The attached claims define the scope of protection of the invention and reveal the central idea of ​​the present invention. Those skilled in the relevant fields and those who have profound insights into the present invention may make corresponding modifications and polishes to the present invention under the condition of following the idea, intention and scope of the present invention.

Claims

1. A multi-target detection method for power transmission lines based on improved Faster R-CNN algorithm, characterized in that: This includes selecting and training data sets, building a multi-target detection model for power transmission lines based on improved Faster R-CNN, optimizing the model parameters using a whale optimization algorithm GT-WOA that introduces global search and t-distribution mutation strategies, obtaining the optimal values ​​of learning rate, m, n and the trained network model, and performing multi-target detection on power transmission lines; Step 1 The dataset selected and trained is the original images of the transmission lines taken by drone inspection. Six types of targets are detected: insulators, insulator defects, bird nests, interphase rods, anti-vibration hammers, and missing bolts. Data enhancement image processing methods are used to improve the generalization ability of the training model. Step 2 constructs a multi-target detection model for power transmission lines based on the improved Faster R-CNN, including inputting the basic features extracted by the original Faster R-CNN feature extraction network into the path enhanced feature pyramid network (PAFPN) for feature fusion, adding a dual attention network structure EDANet to the Faster R-CNN network, and introducing an efficient dual attention network EDANet based on DANet after the output of PAFPN to improve the feature expression ability of specific semantics. In order to improve the overall performance of the model, a loss function based on an adaptive weight factor is proposed; Step 3: GT-WOA, a whale optimization algorithm that introduces global search and t-distribution mutation strategy, is used to optimize the parameters of the model. The whale optimization algorithm is used to find the optimal whale individual, that is, to find the optimal learning rate and the values ​​of the two weight factors m and n of the improved loss function, and the training data set is input into the model for training. Step 4 introduces the whale optimization algorithm of global search and t-distribution mutation strategy to improve its optimization ability, including introducing adaptive weight ω to improve the algorithm's global search ability in the early stage, variable spiral position update, and dynamically adjust the spiral path of the whale hunting process by using variable parameters, t-distribution mutation strategy, and perturb the position of the solution by the mutation operator in the degree of freedom parameter of the t-distribution with the number of iterations. The obtained model performs multi-target detection on the transmission line.

2. According to claim 1, a method for multi-target detection of power transmission lines based on improved Faster R-CNN algorithm is characterized in that: The original images used are from drone inspection samples of transmission lines. Six types of targets are detected: insulators, insulator defects, bird nests, phase rods, anti-vibration hammers and missing bolts. In order to expand the samples and further improve the accuracy and robustness of the dataset training effect, in addition to traditional data augmentation such as scale scaling and brightness adjustment, the present invention adopts data enhancement image processing methods to improve the generalization ability of the training model.

3. According to claim 1, a method for multi-target detection of power transmission lines based on improved Faster R-CNN algorithm is characterized in that: Construct a multi-target detection model for power transmission lines based on improved Faster R-CNN; Step 1: Use Faster R-CNN, an original convolutional neural network-based object detection model. Step 2: Input the basic features extracted by the original Faster R-CNN feature extraction network into the Path Enhanced Feature Pyramid Network (PAFPN) for feature fusion; Step 3: Add a dual attention network structure EDANet to the Faster R-CNN network, and introduce an efficient dual attention network EDANet based on DANet after the output of PAFPN to improve the feature expression ability of specific semantics and improve the target recognition accuracy; Step 4 proposes a loss function based on adaptive weight factors to improve the overall performance of the model; Step 5 obtains the transmission line multi-target detection model based on the improved Faster R-CNN.

4. The method for multi-target detection of power transmission lines based on the improved Faster R-CNN algorithm according to claim 1, characterized in that: The parameters of the model are optimized using the whale optimization algorithm GT-WOA which introduces global search and t-distribution mutation strategy. The process is as follows: Step 1: Initialize the whale population, i.e. the learning rate and parameters m and n, and initialize the Faster R-CNN convolutional neural network; Step 2: Input the image into the neural network for training, and perform feature extraction through the convolutional neural network VGGNet16; Step 3 performs back propagation to calculate the fitness value of each individual whale, thereby obtaining the optimal individual whale and updating the position of the whale.

5. The method for multi-target detection of power transmission lines based on the improved Faster R-CNN algorithm according to claim 1, characterized in that: In order to solve the problems of insufficient global search capability of WOA and low optimization accuracy of algorithm, the whale optimization algorithm with global search and t-distribution mutation strategy is introduced to improve its optimization capability, including: Step 1 introduces the adaptive weight ω to improve the global search capability of the algorithm in the early stage. According to the change of the number of updates in the whale optimization algorithm, based on the number of iterations t, the adaptive inertia weight is as follows; Where Min = 0.3, Max = 0.9, C_Iter is the current number of iterations, M_Iter is the maximum number of iterations, The improved inertia weight ω has the characteristic of nonlinear change between [0,1], and the change characteristic of cosine function between [0,π / 2] makes the weight smaller but change faster in the early stage of the algorithm; the weight is larger in the later stage of the algorithm, but the change speed will slow down. This method fully guarantees the convergence of the algorithm and balances the local and global search capabilities of the algorithm. The improved position update formula is as follows; X(t+1)=ω(t)X rand (t)-A·|C·X rand (t)-x(t)| (3) Step 2: Variable spiral position update. By using variable parameters to dynamically adjust the spiral path during whale hunting, the algorithm's global optimization ability is improved in the initial stage, and the algorithm's optimization accuracy is improved in the later stage. The improved spiral position update formula is as follows: Step 3: T distribution mutation strategy, using the mutation operator in the freedom parameter of t distribution with the iteration number to perturb the position of the solution, so that the algorithm has better global search ability in the early iteration and excellent local exploration ability in the later iteration, which improves the convergence speed of the algorithm. The position update method is as follows; Among them, is the position of the optimal solution in the jth dimension after the adaptive t-distribution mutation disturbance, is the position of the optimal solution in the jth dimension before the mutation disturbance, and the number of iterations is used as the degree of freedom parameter of the t distribution.

Citation Information

Cited By

  • Method and system for optimizing artificial intelligence target recognition model in electric power scene

    CN121095730A