A method for detecting small metal fittings in power transmission lines based on multi-scale feature fusion

Through the multi-scale feature fusion neural network model, the problem of low accuracy in identifying small hardware defects in transmission lines through drone aerial photography has been solved, achieving more efficient and accurate identification and positioning, reducing the labor intensity of inspection personnel, and reducing costs and risk.

CN118379566BActive Publication Date: 2024-09-06NANJING ZHIMENG ELECTRIC POWER CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410825427.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-06
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

When existing drone aerial photography combined with target detection models is used to identify defects in small hardware on transmission lines, it is difficult to retain the characteristic information of small targets, resulting in low recognition accuracy and the need for manual review, which cannot effectively reduce the workload of inspection personnel.

Method used

A neural network model based on multi-scale feature fusion is adopted, including a feature extraction backbone network and a feature refinement network. Through multi-layer convolution modules and up and down sampling networks, combined with channel and spatial attention weights, feature extraction and edge feature fusion are enhanced to improve small Target recognition ability.

Benefits of technology

It improves the identification accuracy and positioning capabilities of small hardware defects in transmission lines, reduces the workload of manual inspections, reduces inspection costs and risks, and improves the efficiency and accuracy of intelligent inspections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118379566B
    Figure CN118379566B
Patent Text Reader

Abstract

The present invention discloses a method for detecting small hardware targets of transmission lines based on multi-scale feature fusion. The method includes collecting image data of transmission line towers, and inputting the collected image data into a trained neural network model to obtain target detection results. The present invention detects small hardware targets of transmission lines based on an improved neural network model, which can reduce the loss of feature information of small targets, better extract local details and global context information of small targets, and improve the recognition and positioning capabilities of long-distance small targets under high-resolution images, without increasing too much computing cost and pre-processing means such as sliding windows or image slicing for additional delayed detection; it not only ensures the efficiency of small hardware target detection of transmission lines, but also improves the accuracy of target detection, which can reduce the labor intensity of inspection personnel to a greater extent, ensure the quality and efficiency of inspection, and improve the level of intelligent inspection of small hardware of transmission lines.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of small metal fittings target detection methods for power transmission lines, and in particular to a small metal fittings target detection method for power transmission lines based on multi-scale feature fusion. Background Art

[0002] In the power grid industry, transmission lines are an important part of the power system, responsible for the long-distance transmission and distribution of electric energy. The safe and stable operation of transmission lines is directly related to the reliable power supply of the entire power grid system and the safety of users' electricity use. Therefore, professional inspectors are needed to manage and inspect transmission lines to ensure the continuity, stability and safety of power services. However, high-altitude operations are highly dangerous, and require high physical fitness, age and high-altitude operation capabilities of inspectors, so the demand for intelligent transmission line inspection is very urgent.

[0003] In order to reduce the workload of manual inspections, intelligent transmission line inspections are currently being implemented through drone aerial photography combined with target detection models, which has improved the efficiency of inspections and the accuracy of problem discovery to a certain extent. However, since the drone is a certain distance away from the pole tower and the resolution of the aerial photography is high, the small hardware of the pole tower captured is relatively small. Moreover, the feature map extracted from the image after passing through the multi-layer neural network of the target detection model easily loses the feature information of small targets, making it difficult to detect defects in the small hardware of the pole tower, and the recognition accuracy is not high. Manual review is still required, which cannot reduce the workload of inspection personnel to a greater extent. Summary of the invention

[0004] The purpose of the present invention is to provide a transmission line small hardware target detection method based on multi-scale feature fusion in response to the shortcomings of the prior art, which can locate the defects of tower small hardware more quickly and accurately, thereby improving the efficiency of transmission line inspection and reducing the workload of manual inspection to a greater extent, while reducing the cost and risk of transmission line inspection.

[0005] To achieve the above object, the present invention provides a method for detecting small metal fittings of a power transmission line based on multi-scale feature fusion, comprising:

[0006] Collect image data of transmission line towers;

[0007] The image data is input into a trained neural network model, the neural network model includes a feature extraction backbone network and a feature refinement network, the feature extraction backbone network includes 4 stacked feature extraction modules, the 4 stacked feature extraction modules are feature extraction module I, feature extraction module II, feature extraction module III and feature extraction module IV from top to bottom, the input of feature extraction module I is the feature extracted from the preprocessed image data by a 1*1 convolution module Conv1 with a step size of 1, and a 3*3 convolution module with a step size of 2 is connected between two adjacent feature extraction modules, the output of feature extraction module IV is processed by 1*1 convolution, normalization and non-linear activation unit Conv BN SiLU1, and 3 maximum pooling layers MaxP in sequence, and the output processed by the activation function and the output processed by the 3 maximum pooling layers are spliced ​​by channel, and the splicing result is processed by 1*1 convolution, normalization and non-linear activation unit Conv BN SiLU2 to obtain the feature input to the feature refinement network;

[0008] The feature refining network includes an upsampling network and a downsampling network, the upsampling network includes 2 feature refining modules and 2 upsampling modules, the 2 feature refining modules of the upsampling network are feature refining module I and feature refining module II, the 2 upsampling modules are UpSample1 and UpSample2, the features input to the feature refining network are expanded to the same feature size as the feature output of the feature extraction module III through the feature refining module I and UpSample1, and then the splicing module Cat1 is used to splice the features output by UpSample1 and the feature extraction module III by channel, the features spliced ​​by the splicing module Cat1 are expanded to the same feature size as the feature output by the feature extraction module II through the feature refining module II and UpSample2, and then the splicing module Cat2 is used to splice the features output by UpSample2 and the feature extraction module II by channel, the features spliced ​​by the splicing module Cat2 are output to the 1*1 convolution module Conv5 with a step size of 1 for feature extraction, and the features output by the convolution module Conv5 are sent to the downsampling network;

[0009] The downsampling network includes two feature refining modules and two 3*3 convolution modules with a step size of 2. The two feature refining modules of the downsampling network include a feature refining module III and a feature refining module IV. The two 3*3 convolution modules with a step size of 2 of the downsampling network are convolution modules Conv6 and convolution modules Conv7 respectively. The features output by the convolution module Conv5 are reduced to the same feature size as the feature size output by the splicing module Cat1 by the feature refining module III and the convolution module Conv6, and then the splicing module Cat3 is used to splice the features reduced by the feature refining module III and the convolution module Conv6 with the features spliced ​​by the splicing module Cat1. The features spliced ​​by the splicing module Cat3 are reduced to the same feature size as the feature size input to the feature refining network by the feature refining module IV and the convolution module Conv7, and then the splicing module Cat4 is used to splice the features reduced by the feature refining module IV and the convolution module Conv7 with the features input to the feature refining network;

[0010] The features output by the convolution module Conv5, the features spliced ​​by the splicing module Cat3, and the features spliced ​​by the splicing module Cat4 are respectively extracted by a 1*1 convolution module with a step size of 1, and then the extracted features are respectively input into the detection head for classification and bounding box regression processing to obtain the target detection result.

[0011] Furthermore, the feature extraction module includes a 1*1 convolution module Conv11 with a step size of 1 for extracting features from the received features, and the convolution module Conv11 outputs the extracted features to 4 branches;

[0012] The first branch of the feature extraction module includes a maximum pooling module Max1 and an average pooling module Avg1, which are used to perform global maximum pooling and global average pooling on the features output by the convolution module Conv11, respectively, and then input the features after global maximum pooling and the features after global average pooling into a 3*3 convolution module Conv12 with a step size of 1 and a padding of 1 to establish a channel connection, and then add the global maximum feature and the average feature output by the convolution module Conv12 to obtain the final channel attention weight, and finally map the channel attention weight to between 0 and 1;

[0013] The second branch of the feature extraction module includes a maximum pooling module Max2 and an average pooling module Avg2, which are respectively used to perform maximum pooling and average pooling operations on each channel of the features output by the convolution module Conv11, and then use the splicing module Cat5 to splice the features after maximum pooling and average pooling along the channel dimension, and then input the 3*3 convolution module Conv13 with a step size of 1 and a padding of 1 for processing, generate spatial attention weights with context information of different scales, and finally map the spatial attention weights to between 0 and 1;

[0014] The third branch of the feature extraction module divides the features output by the convolution module Conv11 into two groups according to channels, and the first group of features is input to the 3*3 convolution module Conv14 with a step size of 1 and a padding of 1 to extract local edge features, and then the local edge features extracted by the convolution module Conv14 are added to the second group of features according to the channel dimension, and input to the 5*5 convolution module Conv15 with a step size of 1 and a padding of 2 to capture local fine features, and then the local edge features and local fine features are spliced ​​by the splicing module Cat6 to obtain global features;

[0015] The fourth branch of the feature extraction module does not process the features output by the convolution module Conv11, so as to add and fuse the features output by the convolution module Conv11 and the global features element by element, so as to obtain a multi-scale global context feature;

[0016] The channel attention weight, spatial attention weight and multi-scale global context features are multiplied element by element to form enhanced features, and the enhanced features are processed by a 1*1 convolution module, normalization and nonlinear activation to form the features output by the feature extraction module.

[0017] Furthermore, the nonlinear activation method of the enhanced feature is:

[0018]

[0019] in, is the processing result of the nonlinear activation function, is the element in the feature processed by the activation function, is the leak coefficient.

[0020] Furthermore, the channel attention weight and spatial attention weight are mapped to between 0 and 1 based on the sigmoid activation function.

[0021] Furthermore, the feature refining module includes three branches;

[0022] The first branch of the feature refining module of the feature refining module includes an activation module SiLU1, which is used to perform nonlinear activation on the features received by the feature refining module, and then output the features after combining them through a linear layer Linear;

[0023] The second branch of the feature refining module includes a grouping module GN1, which is used to divide the features received by the feature refining module into several groups according to channels, and normalize the features in each group, and then perform nonlinear activation on the results of the normalization processing of the grouping module GN1 through the activation module SiLU2, and finally use a 1*1 convolution module Conv16 to combine the features and output them;

[0024] The third branch of the feature refining module does not process the features it receives. The features output by the first branch of the feature refining module are added element by element with the features output by the second branch of the feature refining module. The added features are then divided into several groups through the grouping module GN2, and the features in each group are normalized. The normalized results of the grouping module GN2 are then nonlinearly activated through the activation module SiLU3, and the features are combined using a 1*1 convolution module Conv17 and then jump-connected with the features transmitted by the third branch of the feature refining module to form the features output by the feature refining module.

[0025] Furthermore, the activation module SiLU1, the activation module SiLU2 and the activation module SiLU3 perform nonlinear activation in the following manner:

[0026]

[0027] in, is the processing result of SiLU activation function, The elements in the features processed by the SiLU activation function, is a natural constant.

[0028] Furthermore, the border regression loss function of the detection head is:

[0029]

[0030]

[0031] in, is the calculated loss value, is the intersection-over-union ratio of the reconstructed candidate box and the predicted box, is the intersection-over-union ratio of the candidate box and the predicted box before reconstruction, is the upper threshold of the intersection-over-union ratio between the candidate box and the predicted box, It is the lower limit threshold of the intersection-over-union ratio between the candidate box and the predicted box.

[0032] Furthermore, the image data is collected based on a drone.

[0033] Beneficial effects: The present invention detects small hardware targets of transmission lines based on an improved neural network model, which can reduce the loss of feature information of small targets, better extract local details and global context information of small targets, and improve the recognition and positioning capabilities of long-distance small targets under high-resolution images without increasing too much computing cost and preprocessing methods such as sliding windows or image cutting for additional delayed detection; it not only ensures the efficiency of small hardware target detection of transmission line, but also improves the target detection accuracy, which can reduce the labor intensity of inspection personnel to a greater extent, ensure the quality and efficiency of inspection, and improve the level of intelligent inspection of small hardware of transmission line. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 is a schematic diagram of the structure of a neural network model according to an embodiment of the present invention;

[0035] Figure 2 is a partial structural diagram of a feature extraction module according to an embodiment of the present invention;

[0036] Figure 3 It is a structural schematic diagram of a feature refining module according to an embodiment of the present invention. DETAILED DESCRIPTION

[0037] The present invention is further explained below in conjunction with the accompanying drawings and specific embodiments. The embodiments are implemented based on the technical solution of the present invention. It should be understood that these embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention.

[0038] The embodiment of the present invention provides a method for detecting small metal fittings of a power transmission line based on multi-scale feature fusion, comprising:

[0039] Collect image data of transmission line towers. Specifically, the image data of transmission line towers can be collected by shooting with drones.

[0040] The collected image data is input into a qualified neural network model. The neural network model can be pre-trained with the collected image data of transmission line towers. Specifically, the pre-collected image data of multiple transmission line towers can be sorted, classified, cleaned, labeled and enhanced to obtain a high-quality data set. The data set is then divided into a training set, a validation set and a test set in an 8:1:1 split manner. The above-mentioned neural network model can then be trained to be qualified based on the training set, the validation set and the test set.

[0041] See also Figure 1, the neural network model of the embodiment of the present invention includes a feature extraction backbone network and a feature refinement network. The feature extraction backbone network includes 4 stacked feature extraction modules, which are feature extraction module I, feature extraction module II, feature extraction module III and feature extraction module IV from top to bottom. The number of channels output by feature extraction module I, feature extraction module II, feature extraction module III and feature extraction module IV are preferably 64, 128, 256 and 512 respectively. The input of feature extraction module I is the feature extracted from the preprocessed image data by the 1*1 convolution module Conv1 with a step size of 1. A 3*3 convolution module with a step size of 2 is connected between two adjacent feature extraction modules. Specifically, a convolution module Conv2 is connected between feature extraction module I and feature extraction module II, a convolution module Conv3 is connected between feature extraction module II and feature extraction module III, and a convolution module Conv4 is connected between feature extraction module III and feature extraction module IV. The output of feature extraction module IV is processed by 1*1 convolution, normalization (Batch Norm) and nonlinear activation unit Conv BN SiLU1, and three maximum pooling layers MaxP in sequence. The output after activation function processing and the output after three maximum pooling layers are spliced ​​by channel. The splicing result is further processed by 1*1 convolution, normalization and nonlinear activation unit Conv BN SiLU2 to obtain the features input to the feature refinement network.

[0042] The feature refining network of the embodiment of the present invention includes an upsampling network and a downsampling network, wherein the upsampling network includes two feature refining modules and two upsampling modules, the two feature refining modules of the upsampling network are feature refining module I and feature refining module II, and the two upsampling modules are UpSample1 and UpSample2, respectively. The features input to the feature refining network are enlarged to the same feature size as the feature output of the feature extraction module III by the feature refining module I and UpSample1, and then the features output by UpSample1 and the feature extraction module III are spliced ​​by channel by the splicing module Cat1, and the features spliced ​​by the splicing module Cat1 are enlarged to the same feature size as the feature output of the feature extraction module II by the feature refining module II and UpSample2, and then the features output by UpSample2 and the feature extraction module II are spliced ​​by channel by the splicing module Cat2, and the features spliced ​​by the splicing module Cat2 are output to the 1*1 convolution module Conv5 with a step size of 1 for feature extraction, and the features output by the convolution module Conv5 are sent to the downsampling network.

[0043] The downsampling network includes two feature refinement modules and two 3*3 convolution modules with a step size of 2. The two feature refinement modules of the downsampling network include feature refinement module III and feature refinement module IV. The two 3*3 convolution modules with a step size of 2 of the downsampling network are convolution module Conv6 and convolution module Conv7 respectively. The features output by convolution module Conv5 are reduced to the same feature size as the output of splicing module Cat1 by feature refinement module III and convolution module Conv6, and then the splicing module Cat3 is used to splice the features reduced by feature refinement module III and convolution module Conv6 with the features spliced ​​by splicing module Cat1. The features spliced ​​by splicing module Cat3 are reduced to the same feature size as the feature size input to the feature refinement network by feature refinement module IV and convolution module Conv7, and then the splicing module Cat4 is used to splice the features reduced by feature refinement module IV and convolution module Conv7 with the features input to the feature refinement network.

[0044] The features output by the above-mentioned convolution module Conv5 are extracted by a 1*1 convolution module Conv8 with a step size of 1, the features spliced ​​by the splicing module Cat3 are extracted by a 1*1 convolution module Conv9 with a step size of 1, and the features spliced ​​by the splicing module Cat4 are extracted by a 1*1 convolution module Conv10 with a step size of 1. Then, the extracted features are respectively input into the detection head for classification (CLS) and bounding box regression (BBOX) processing to obtain the target detection results.

[0045] See also Figure 2 The feature extraction module of the embodiment of the present invention includes a 1*1 convolution module Conv11 with a step size of 1 for extracting the received features, and the convolution module Conv11 outputs the extracted features to 4 branches.

[0046] Among them, the first branch of the feature extraction module injects channel attention into the feature map, which includes the maximum pooling module Max1 and the average pooling module Avg1. The maximum pooling module Max1 and the average pooling module Avg1 are used to perform global maximum pooling and global average pooling on the features output by the convolution module Conv11, respectively, and then the features after global maximum pooling and the features after global average pooling are input to the 3*3 convolution module Conv12 with a step size of 1 and padding of 1 to establish a channel connection, and then the global maximum feature and the average feature output by the convolution module Conv12 are added to obtain the final channel attention weight, and finally the channel attention weight is mapped to between 0-1. Thereby reducing the amount of network parameters, improving computational efficiency, and improving the nonlinear expression ability of the network. Preferably, the sigmoid activation function is used to map the channel attention weight to between 0-1.

[0047] The second branch of the feature extraction module injects spatial attention into the feature map, which includes the maximum pooling module Max2 and the average pooling module Avg2. The maximum pooling module Max2 and the average pooling module Avg2 are used to perform maximum pooling and average pooling operations on each channel of the features output by the convolution module Conv11, respectively. Then, the splicing module Cat5 is used to splice the features after maximum pooling and average pooling along the channel dimension, and then the 3*3 convolution module Conv13 with a step size of 1 and a padding of 1 is input for processing to generate spatial attention weights with context information of different scales, and finally the spatial attention weights are mapped to between 0 and 1. Preferably, the sigmoid activation function is used to map the spatial attention weights to between 0 and 1.

[0048] The third branch of the feature extraction module divides the features output by the convolution module Conv11 into two groups according to the channel. The first group of features is input to the 3*3 convolution module Conv14 with a step size of 1 and a padding of 1 to extract local edge features. Then the local edge features extracted by the convolution module Conv14 are added to the second group of features according to the channel dimension and input to the 5*5 convolution module Conv15 with a step size of 1 and a padding of 2 to capture larger, more complex, and more abstract local fine features. Then, the splicing module Cat6 is used to splice the above local edge features and local fine features to obtain global features. The global features obtained by fusing local features of different receptive fields not only have shallow edge texture features, but also have more extensive contextual information, which improves the model's ability to represent and generalize complex data.

[0049] The fourth branch directly transmits the features output by the convolution module Conv11 without processing them, which can better reuse the features output by Conv11 and prevent network degradation. The features output by the convolution module Conv11 are added and fused element by element with the above global features to obtain multi-scale global context features.

[0050] The above-mentioned channel attention weights, spatial attention weights and multi-scale global context features are multiplied element by element to form enhanced features. The above-mentioned enhanced features are processed by a 1*1 convolution module with a step size of 1 and normalization, so that the output mean is close to 0 and the standard deviation is close to 1, thereby accelerating the network and alleviating the problem of gradient vanishing or gradient explosion. Then, nonlinear activation processing is performed to form the features output by the feature extraction module. The features output by the feature extraction module highlight important channel information and spatial information while retaining key information, suppressing irrelevant or redundant information, thereby improving the feature expression ability of the network. And because the fourth branch retains the original input features, it can alleviate problems such as gradient vanishing or gradient explosion during deep network training, and also help to enhance the robustness of the network.

[0051] The nonlinear activation method of the above enhanced features is:

[0052]

[0053] in, is the processing result of the nonlinear activation function, is the element in the feature processed by the activation function, is the leak coefficient, which is a positive number less than 1, and is taken as 0.01 here.

[0054] See also Figure 3 The feature refining module of the embodiment of the present invention includes three branches. The first branch of the feature refining module includes an activation module SiLU1, which is used to perform nonlinear activation on the features received by the feature refining module, and then output the features after combining them through a linear layer Linear.

[0055] The second branch of the feature refinement module includes a grouping module GN1, which is used to divide the features received by the feature refinement module into several groups according to channels, and normalize the features in each group, and then perform nonlinear activation on the normalized results through the activation module SiLU2, and finally use a 1*1 convolution module Conv16 with a step size of 1 to combine the features and output them;

[0056] The third branch of the feature refining module does not process the features it receives. The features output by the first branch of the feature refining module are added element by element with the features output by the second branch of the feature refining module. The added features are then divided into several groups through the grouping module GN2, and the features in each group are normalized. The normalized results of the grouping module GN2 are then nonlinearly activated through the activation module SiLU3. The features are combined using a 1*1 convolution module Conv17 with a step size of 1, and then jump-connected with the features transmitted by the third branch of the feature refining module to form the features output by the feature refining module.

[0057] The above activation modules SiLU1, SiLU2 and SiLU3 perform nonlinear activation in the following manner:

[0058]

[0059] in, is the processing result of SiLU activation function, The elements in the features processed by the SiLU activation function, is a natural constant. Through the above nonlinear activation method, the output can be linear when the input is large or small, which helps to alleviate the problem of gradient disappearance or gradient explosion.

[0060] The border regression loss function of the detection head of the embodiment of the present invention is:

[0061]

[0062]

[0063] in, is the calculated loss value, is the intersection-over-union ratio of the reconstructed candidate box and the predicted box, is the intersection-over-union ratio of the candidate box and the predicted box before reconstruction, is the upper threshold of the intersection-over-union ratio between the candidate box and the predicted box, is the lower limit threshold of the intersection-over-union ratio between the candidate box and the predicted box. Less than the lower threshold When is 1; when Greater than upper threshold When is 0; and when exist and When the loss value is between is a basis A linearly decreasing function of the value. Loss value right The value of is sensitive, and more attention can be paid to samples with moderate overlap between the predicted bounding box and the true bounding box.

[0064] The above is only a preferred embodiment of the present invention. It should be noted that for ordinary technicians in this technical field, other parts not specifically described belong to the prior art or common knowledge. Several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention.

Claims

1. A method for detecting small metal fittings of power transmission lines based on multi-scale feature fusion, characterized in that: include: Collect image data of transmission line towers; The image data is input into a trained neural network model, the neural network model includes a feature extraction backbone network and a feature refinement network, the feature extraction backbone network includes 4 stacked feature extraction modules, the 4 stacked feature extraction modules are feature extraction module I, feature extraction module II, feature extraction module III and feature extraction module IV from top to bottom, the input of feature extraction module I is the feature extracted from the preprocessed image data by a 1*1 convolution module Conv1 with a step size of 1, and a 3*3 convolution module with a step size of 2 is connected between two adjacent feature extraction modules, the output of feature extraction module IV is processed by 1*1 convolution, normalization and non-linear activation unit Conv BN SiLU1, and 3 maximum pooling layers MaxP in sequence, and the output processed by the activation function and the output processed by the 3 maximum pooling layers are spliced ​​by channel, and the splicing result is processed by 1*1 convolution, normalization and non-linear activation unit Conv BN SiLU2 to obtain the feature input to the feature refinement network; The feature refining network includes an upsampling network and a downsampling network, the upsampling network includes 2 feature refining modules and 2 upsampling modules, the 2 feature refining modules of the upsampling network are feature refining module I and feature refining module II, the 2 upsampling modules are UpSample1 and UpSample2, the features input to the feature refining network are expanded to the same feature size as the feature output of the feature extraction module III through the feature refining module I and UpSample1, and then the splicing module Cat1 is used to splice the features output by UpSample1 and the feature extraction module III by channel, the features spliced ​​by the splicing module Cat1 are expanded to the same feature size as the feature output by the feature extraction module II through the feature refining module II and UpSample2, and then the splicing module Cat2 is used to splice the features output by UpSample2 and the feature extraction module II by channel, the features spliced ​​by the splicing module Cat2 are output to the 1*1 convolution module Conv5 with a step size of 1 for feature extraction, and the features output by the convolution module Conv5 are sent to the downsampling network; The downsampling network includes two feature refining modules and two 3*3 convolution modules with a step size of 2. The two feature refining modules of the downsampling network include a feature refining module III and a feature refining module IV. The two 3*3 convolution modules with a step size of 2 of the downsampling network are convolution modules Conv6 and convolution modules Conv7 respectively. The features output by the convolution module Conv5 are reduced to the same feature size as the feature size output by the splicing module Cat1 by the feature refining module III and the convolution module Conv6, and then the splicing module Cat3 is used to splice the features reduced by the feature refining module III and the convolution module Conv6 with the features spliced ​​by the splicing module Cat1. The features spliced ​​by the splicing module Cat3 are reduced to the same feature size as the feature size input to the feature refining network by the feature refining module IV and the convolution module Conv7, and then the splicing module Cat4 is used to splice the features reduced by the feature refining module IV and the convolution module Conv7 with the features input to the feature refining network; The features output by the convolution module Conv5, the features spliced ​​by the splicing module Cat3, and the features spliced ​​by the splicing module Cat4 are respectively extracted by a 1*1 convolution module with a step size of 1, and then the extracted features are respectively input into the detection head for classification and bounding box regression processing to obtain the target detection result.

2. According to the method for detecting small metal fittings of power transmission lines based on multi-scale feature fusion according to claim 1, it is characterized in that: The feature extraction module includes a 1*1 convolution module Conv11 with a step size of 1 for extracting features from received features, and the convolution module Conv11 outputs the extracted features to four branches; The first branch of the feature extraction module includes a maximum pooling module Max1 and an average pooling module Avg1, which are used to perform global maximum pooling and global average pooling on the features output by the convolution module Conv11, respectively, and then input the features after global maximum pooling and the features after global average pooling into a 3*3 convolution module Conv12 with a step size of 1 and a padding of 1 to establish a channel connection, and then add the global maximum feature and the average feature output by the convolution module Conv12 to obtain the final channel attention weight, and finally map the channel attention weight to between 0 and 1; The second branch of the feature extraction module includes a maximum pooling module Max2 and an average pooling module Avg2, which are respectively used to perform maximum pooling and average pooling operations on each channel of the features output by the convolution module Conv11, and then use the splicing module Cat5 to splice the features after maximum pooling and average pooling along the channel dimension, and then input the 3*3 convolution module Conv13 with a step size of 1 and a padding of 1 for processing, generate spatial attention weights with context information of different scales, and finally map the spatial attention weights to between 0 and 1; The third branch of the feature extraction module divides the features output by the convolution module Conv11 into two groups according to channels, and the first group of features is input to the 3*3 convolution module Conv14 with a step size of 1 and a padding of 1 to extract local edge features, and then the local edge features extracted by the convolution module Conv14 are added to the second group of features according to the channel dimension, and input to the 5*5 convolution module Conv15 with a step size of 1 and a padding of 2 to capture local fine features, and then the local edge features and local fine features are spliced ​​by the splicing module Cat6 to obtain global features; The fourth branch of the feature extraction module does not process the features output by the convolution module Conv11, so as to add and fuse the features output by the convolution module Conv11 and the global features element by element, so as to obtain a multi-scale global context feature; The channel attention weight, spatial attention weight and multi-scale global context features are multiplied element by element to form enhanced features, and the enhanced features are processed by a 1*1 convolution module, normalization and nonlinear activation to form the features output by the feature extraction module.

3. According to claim 2, a method for detecting small metal fittings of a power transmission line based on multi-scale feature fusion, characterized in that: The nonlinear activation method of the enhanced feature is: ; in, is the processing result of the nonlinear activation function, is the element in the feature processed by the activation function, is the leak coefficient.

4. According to claim 2, a method for detecting small metal fittings of a power transmission line based on multi-scale feature fusion is characterized in that: Based on the sigmoid activation function, the channel attention weight and spatial attention weight are mapped to between 0 and 1.

5. According to the method for detecting small metal fittings of power transmission lines based on multi-scale feature fusion according to claim 1, it is characterized in that: The feature refining module includes three branches; The first branch of the feature refining module of the feature refining module includes an activation module SiLU1, which is used to perform nonlinear activation on the features received by the feature refining module, and then output the features after combining them through a linear layer Linear; The second branch of the feature refining module includes a grouping module GN1, which is used to divide the features received by the feature refining module into several groups according to channels, and normalize the features in each group, and then perform nonlinear activation on the results of the normalization processing of the grouping module GN1 through the activation module SiLU2, and finally use a 1*1 convolution module Conv16 to combine the features and output them; The third branch of the feature refining module does not process the features it receives. The features output by the first branch of the feature refining module are added element by element with the features output by the second branch of the feature refining module. The added features are then divided into several groups through the grouping module GN2, and the features in each group are normalized. The normalized results of the grouping module GN2 are then nonlinearly activated through the activation module SiLU3, and the features are combined using a 1*1 convolution module Conv17 and then jump-connected with the features transmitted by the third branch of the feature refining module to form the features output by the feature refining module.

6. The method for detecting small metal fittings of power transmission lines based on multi-scale feature fusion according to claim 5 is characterized in that: The activation modules SiLU1, SiLU2 and SiLU3 perform nonlinear activation in the following manner: ; in, is the processing result of SiLU activation function, The elements in the features processed by the SiLU activation function, is a natural constant.

7. The method for detecting small metal fittings of power transmission lines based on multi-scale feature fusion according to claim 1, characterized in that: The border regression loss function of the detection head is: ; ; in, is the calculated loss value, is the intersection-over-union ratio of the reconstructed candidate box and the predicted box, is the intersection-over-union ratio of the candidate box and the predicted box before reconstruction, is the upper threshold of the intersection-over-union ratio between the candidate box and the predicted box, It is the lower limit threshold of the intersection-over-union ratio between the candidate box and the predicted box.

8. The method for detecting small metal fittings of power transmission lines based on multi-scale feature fusion according to claim 1, characterized in that: The image data is collected based on a drone.

Citation Information

Patent Citations

  • Multi-modal pedestrian detection method based on improved YOLO model

    CN111767882A

  • Method for detecting and quantifying hardware corrosion in electric power inspection image

    CN115526869A

  • Multi-scale pavement crack detection method based on deep and shallow layer attention feature fusion

    CN117132889A

  • Lightweight target detection method based on lightweight attention mechanism

    CN117876693A