Insulator defect detection method based on auxiliary backbone enhancement and feature fusion improvement

By changing the direction of feature semantic information flow and cross-layer adaptive feature fusion, the problem of insufficient fine-grained feature expression in infrared insulator defect detection is solved, thereby improving detection accuracy and real-time performance.

CN123160451APending Publication Date: 2026-11-24CHINA THREE GORGES UNIV
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611206564.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-10
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing deep learning models suffer from insufficient fine-grained feature representation, inadequate utilization of deep and shallow semantic information, and limited multi-scale feature fusion capabilities in infrared insulator defect detection, resulting in detection accuracy that fails to meet engineering application requirements.

Method used

An improved method based on auxiliary backbone enhancement and feature fusion is adopted. By changing the direction of feature semantic information flow and combining cross-layer adaptive feature fusion of static and dynamic weights, the collaborative expression of shallow texture details and deep semantic information is strengthened, thereby improving the accuracy of infrared insulator defect detection.

Benefits of technology

It improves the accuracy of infrared insulator defect detection, reduces missed and false detections, enhances the ability to represent the characteristics of small-scale defect targets, and maintains the real-time nature of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160451A_ABST
    Figure CN123160451A_ABST
Patent Text Reader

Abstract

This invention proposes an improved infrared insulator defect detection method based on auxiliary backbone enhancement and feature fusion, belonging to the fields of infrared image target detection and power equipment condition monitoring. It addresses the problems of unidirectional semantic information flow, insufficient fine-grained feature expression, and limited multi-scale feature fusion capabilities. The method acquires stage feature maps from multiple stages of the backbone feature extraction path output; it maps intermediate feature maps through convolutional channels and splits them into branch feature maps along the channel dimension; it selects a group of branch feature maps to be fused according to the semantic information flow direction from deep stages to shallow stages; it performs scale alignment based on the spatial size of the target stage, extracts global statistical descriptions to generate dynamic weights, adds and normalizes them with static weight parameters to obtain the final fusion weight, and then sums them to obtain the fused enhanced feature map for infrared insulator defect detection. This invention strengthens the collaborative expression of shallow texture details and deep semantic information, improving the accuracy of infrared insulator defect detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of insulator defect detection technology, specifically to an improved infrared insulator defect detection method based on auxiliary backbone enhancement and feature fusion. Background Technology

[0002] Insulators are critical components in power transmission lines, serving the dual functions of mechanical support and electrical isolation for conductors. Their operational status directly impacts the safe and reliable operation of the power system. Insulators are constantly exposed to the outdoor environment, subjected to erosion from wind, sand, rain, snow, pollution, and ultraviolet radiation. Under the long-term effects of electromechanical loads, they are prone to defects such as surface aging, skirt damage, cracks, and deterioration of insulation performance. These deterioration phenomena are particularly pronounced in high-voltage and heavily polluted areas. If these defects are not detected and addressed in a timely manner, they may further develop into flashover, string failure, or even large-scale power outages. Therefore, timely and accurate detection and identification of insulator defects is a crucial aspect of ensuring the safe operation of power transmission lines.

[0003] When insulators experience initial failures such as aging, dirt accumulation, poor contact, or partial discharge, their surfaces and critical parts are usually accompanied by local temperature rise or abnormal temperature distribution. Infrared thermal imaging technology can directly acquire temperature distribution information of equipment surfaces in a non-contact manner, has high sensitivity to early insulator anomalies, and the imaging process is less affected by visible light conditions, which can meet the inspection needs at night and in low-light environments, and has unique advantages in transmission line condition monitoring. Therefore, automatic detection of insulator defects based on infrared images is of great significance for realizing early identification of defects and risk warning, as recorded in reference [1].

[0004] In recent years, with the development of deep learning technology, deep convolutional neural network target detection methods, represented by two-stage detectors and single-stage detectors, have been gradually introduced into the field of insulator defect detection, as recorded in reference [3], which has promoted the development of insulator defect detection from manual interpretation to automation and intelligence. However, most of the detection schemes disclosed in existing patents and literature are designed for visible light images, as recorded in reference [2], and research on insulator defect detection for infrared images is relatively lacking. Compared with visible light images, infrared images only contain single-channel thermal radiation information, and generally have the characteristics of low contrast, weak texture details, and complex background interference. Moreover, the defect area is mostly a small-scale temperature anomaly area, lacking obvious color and contour features. When the detection model designed for visible light images is directly applied to infrared insulator defect detection, the model is difficult to fully extract the fine-grained features of the defect, and it is easy to miss or misdetect, and the detection accuracy is difficult to meet the needs of engineering applications.

[0005] On the other hand, existing deep learning object detection models still have shortcomings in feature extraction and multi-scale feature fusion mechanisms, as described in reference [3]. Currently, the widely used feature pyramid network and its improved structure mainly transmit deep semantic information to shallow layers through a top-down path, or add a bottom-up path enhancement structure and introduce a weighted fusion mechanism to improve the multi-scale feature expression effect; the weight allocation method based on the attention mechanism has also been used to improve the adaptability of feature selection, as described in reference [4]. However, the above methods still have the following problems: First, the flow direction of feature semantic information is unidirectional and relatively fixed, and deep semantic information is difficult to fully flow back to the shallow layer, resulting in insufficient expression of shallow fine-grained features. Since infrared insulator defects are mostly small-scale targets, their detection accuracy is highly dependent on shallow fine-grained features. Second, cross-layer feature fusion often adopts direct addition or splicing, or only relies on static learnable weights. The fusion weights cannot be adaptively adjusted according to the input image content, and the deep and shallow semantic information is not fully utilized. Third, multi-scale branch features lack a unified channel mapping and scale alignment mechanism before fusion, the cross-layer information interaction capability is limited, and the multi-scale feature fusion capability needs to be improved.

[0006] In summary, existing insulator defect detection technologies suffer from several problems, including insufficient applicability to infrared images, a single direction of semantic information flow, inadequate fine-grained feature expression, insufficient utilization of both shallow and deep semantic information, and limited multi-scale feature fusion capabilities.

[0007] References: Reference [1]: Liu Kaipei, Li Boqiang, Qin Liang, et al. A review of the application of deep learning target detection algorithm in the detection of defects in insulators of overhead transmission lines [J]. High Voltage Engineering, 2023, 49(9): 3584-3595. Reference [2]: Guoshun Technology Group Co., Ltd., Shijiazhuang Railway University. Fault detection method for power transmission line insulators: Application No.: 202511839427.5; Publication Date: 2026-03-17. Reference [3]: Luo Huilan, Chen Hongkun. A review of research on target detection based on deep learning [J]. Journal of Electronics, 2020, 48(6): 1230-1239. Reference [4]: ​​Zhu Zhangli, Rao Yuan, Wu Yuan, et al. Research progress on attention mechanism in deep learning [J]. Journal of Chinese Information Processing, 2019, 33(6): 1-11. Summary of the Invention To address the shortcomings of existing detection models, such as insufficient fine-grained feature representation, inadequate utilization of shallow and deep semantic information, and limited multi-scale feature fusion capabilities, this invention provides an improved infrared insulator defect detection method based on auxiliary backbone enhancement and feature fusion. The method aims to alter the flow direction of feature semantic information by enhancing the auxiliary backbone path and combining cross-layer adaptive feature fusion with joint constraints of static and dynamic weights. This strengthens the collaborative expression of shallow texture details and deep semantic information, improving the accuracy of infrared insulator defect detection and reducing false negatives and missed detections.

[0008] The technical solution adopted in this invention is as follows: An improved infrared insulator defect detection method based on auxiliary backbone enhancement and feature fusion includes the following steps: S1: Obtain the stage feature maps of multiple stages output by the main feature extraction path; S2: Perform convolutional channel mapping on the feature maps of each stage to obtain intermediate feature maps with the same spatial size as the corresponding stage feature maps but different numbers of channels; S3: Based on the preset number of channels corresponding to each stage, split each intermediate feature map into at least one branch feature map along the channel dimension; S4: According to the semantic information flow direction from deep stage to shallow stage, the shallow stage is determined as the target stage, and the branch feature maps corresponding to the target stage are selected in each stage to form a group of branch feature maps to be fused for each target stage. S5: Using the spatial dimensions of the branch feature map in the target stage as the alignment benchmark, scale alignment is performed on each branch feature map to be fused in the group of branch feature maps to be fused, and adaptive weighted fusion is performed to obtain the fused enhanced feature map in the target stage. S6: The fused and enhanced feature maps of each target stage are used as the output feature maps of the corresponding stages for infrared insulator defect detection.

[0009] In step S1, the backbone network of the YOLOv11 network is used as the main feature extraction path; the feature maps output from layers 2, 4, 7, 9, and 11 of the backbone network are extracted as the stage feature maps for five stages. i The stage feature diagram is represented as follows: (1); In formula (1): , The first i The height and width of the stage feature map of the stage. For the first i The number of channels in the stage feature map of a stage. The dimension is The real space, iLet i be the stage number, i = 1, 2, ..., 5.

[0010] The stage feature map consists of five stages, and the intermediate feature map of each stage is configured to be split along the channel dimension as follows: The first stage is split into a branch feature map with 64 channels; The second stage is split into two branch feature maps with 64 and 128 channels respectively; The third stage is divided into three branch feature maps with 64, 128, and 256 channels respectively; The fourth stage is divided into four branch feature maps with 64, 128, 256 and 512 channels respectively; The fifth stage is divided into five branch feature maps with 64, 128, 256, 512, and 1024 channels respectively.

[0011] In S2, the first i Stage characteristic diagram Input cross-layer branch linear mapping module; the stage feature map is generated by the convolutional layers in the cross-layer branch linear mapping module. Perform convolution operations to obtain intermediate feature maps: (2); In the formula: This represents the convolution operation. For the first i The intermediate feature map of the stage; the convolution kernel size of the convolution operation is 1×1 or 3×3, and the spatial size of the feature map remains unchanged before and after the convolution operation, only the number of channels changes.

[0012] S3 includes: 3.1: Determine the first i Stage channel splitting configuration: The number of channels is intermediate feature map Divided into Each sub-feature map has a number of channels, and the number of channels in each sub-feature map satisfies the following: (3); In the formula: For the first i Intermediate feature map of the stage. For the first i The number of channels in the intermediate feature map of the stage. For the first i The number of sub-feature maps obtained from stage splitting For the first i The number of channels in the m-th sub-feature map of a stage; 3.2: Based on the channel split configuration, divide the intermediate feature map along the channel dimension. Split into Each branch feature map; 3.3: Assign index numbers to the feature maps of each branch obtained from the splitting. ,in, Branch number, =1,2,…, .

[0013] S4 includes: 4.1: The direction of semantic information flow is determined to be from the deep stage to the shallow stage, that is, the features of the shallow stage are used as the enhancement benchmark; 4.2: With the first The first stage is the target stage, based on the index number, starting from the first... Stage and in-depth In each stage, branch feature maps are selected as the branch feature maps to be fused: (4); In the formula: For the first i intermediate feature map of the stage The index number is Branch feature map, To flow towards the target stage The feature map of the branch to be fused This refers to the target stage number. ; 4.3: Combine all selected feature maps of the branches to be fused into the target stage. The feature map group of branches to be merged.

[0014] The feature maps of the branches to be fused consist of four groups: By index number , , , , The first target stage fusion group is composed of branch feature maps; By index number , , , The second target stage fusion group is composed of branch feature maps; By index number , , The third target stage fusion group is composed of branch feature maps; and by index number , The fourth target stage fusion group is composed of branch feature maps.

[0015] In step S5, the adaptive weighted fusion includes: extracting global statistical descriptions of the feature maps of each branch to be fused, and generating corresponding dynamic weights based on the global statistical descriptions; The dynamic weights of each feature map of the branch to be fused are added to the preset learnable static weight parameters and then normalized to obtain the corresponding final fusion weights. The feature maps of each branch to be fused are weighted and summed according to the final fusion weight; In step S5, scale alignment using the cross-layer branch adaptive fusion module includes: 5.1: Target Phase Spatial size of branch feature map As the alignment reference, in the formula: , The target phases are respectively The height and width of the branch feature map; 5.2: In the feature map group to be fused, excluding the target stage Interpolation adjustments are made to the feature maps of each branch to be fused, in addition to the feature map of its own branch: (5); In the formula: This indicates an interpolation upsampling or downsampling operation. To align with the target stage Branch feature diagram of spatial dimensions; 5.3: Align all cross-layer branch feature maps with the target stage Its own branch feature map Forming a candidate fusion set: (6); In the formula: K is the number of cross-layer branch feature maps after alignment. to The subscripts 1 to K represent the sorting numbers of the feature maps of each cross-layer branch; the K+1 candidate features in the candidate fusion set are uniformly denoted as... , j=1,2,…,K+1.

[0016] In step S5, generating dynamic weights based on global statistical description includes: 5.4: For the first in the candidate fusion set j Candidate features Perform global average pooling and global max pooling separately, and concatenate the resulting statistics to obtain a global statistical description: (7); In the formula: This indicates a global average pooling operation. This represents the global max pooling operation. Indicates feature concatenation operation; 5.5: Describe global statistics Input into a gating network to generate candidate features Corresponding dynamic weights: (8); In the formula: It is a gated network, which consists of a first 1×1 convolutional layer, a SiLU nonlinear activation layer, and a second 1×1 convolutional layer.

[0017] In step S5, the final fusion weights are obtained, including: 5.6: For each candidate feature Preset learnable static weight parameters ; 5.7: Add the static weights and dynamic weights of each candidate feature, and normalize the result using the softmax function to obtain the final fused weights. (9); In the formula: For the first j The dynamic weights of candidate features, where t is the traversal index of the candidate feature and K+1 is the total number of candidate features. In step S5, the feature maps of each branch to be fused are weighted and summed according to the final fusion weight to obtain the target stage. Fusion Enhancement Feature Map: (10); In the formula: For the first j The final fusion weights of the candidate features, For the first j One candidate feature.

[0018] This invention provides an improved infrared insulator defect detection method based on auxiliary backbone enhancement and feature fusion, with the following technical advantages: 1) This invention follows the semantic information flow direction from deep to shallow stages, selecting branch feature maps from deep stages to flow back to shallow target stages for fusion, thus fully injecting deep semantic information into the shallow layer. Shallow features, while maintaining high-resolution texture details, gain deep semantic enhancement, forming a synergistic expression of shallow texture details and deep semantic information. This allows small-scale, low-contrast infrared insulator defect regions to be fully characterized in shallow features, reducing the risk of missed detection of small target defects at the feature level.

[0019] 2) This invention pre-sets learnable static weight parameters for each feature map of the branch to be fused, and simultaneously generates dynamic weights based on the global statistical description of each branch feature map through a gating network. The two are then added together and normalized to obtain the final fusion weights. The static weights learn the general fusion rules from the training samples, while the dynamic weights are generated sample-by-sample according to the content of the input infrared image. The combination of these two approaches gives the fusion weights both stability and adaptability. Compared to existing fusion methods that directly add, concatenate, or only use static weights, the contribution of each deep and shallow branch can be dynamically allocated according to the input image content, allowing for more complete utilization of the semantic information of both deep and shallow layers.

[0020] 3) This invention maps the feature maps output from each stage of the main feature extraction path in a unified manner through convolutional channel mapping, and then splits them into branch feature maps along the channel dimension. Using the spatial size of the branch feature map of the target stage as the alignment benchmark, the feature maps of each branch to be fused are interpolated and adjusted, eliminating the mismatch between cross-layer branch features in the channel dimension and spatial dimension. This allows branches of any deep stage to be directly fused with the shallow target stage, significantly increasing the cross-layer information interaction path and effectively improving the expressive and fusion capabilities of multi-scale features.

[0021] 4) When generating dynamic weights, this invention extracts the global average statistic and the global maximum statistic of each branch feature map, and then concatenates them before inputting them into the gating network. The global average statistic reflects the overall energy distribution of the branch feature map, while the global maximum statistic captures the significant responses in the branch features. Since infrared insulator defects are manifested as local temperature anomalies, the combination of these two factors ensures that the generation of dynamic weights takes into account both the overall contribution of the branches and the significant information related to defects. The weight allocation is more in line with the infrared defect detection task, which helps to highlight defect-related branches and suppress background interference branches.

[0022] 5) This invention uses the fused enhanced feature map as the output feature map of the corresponding stage of the backbone feature extraction path for infrared insulator defect detection. Combining the above effects, the detection model significantly enhances the feature expression ability of weak texture and small-scale defect targets in infrared images, thereby reducing missed detections and false detections and improving the accuracy of infrared insulator defect detection. At the same time, the gated network consists of only two convolutional layers and nonlinear activation layers, with a small number of parameters and computational overhead. While improving detection accuracy, it does not increase the inference burden, and can meet the real-time requirements of transmission line inspection. Attached Figure Description

[0023] The present invention will be further described below with reference to the accompanying drawings and examples; Figure 1 This is a schematic diagram of the overall network structure of an improved infrared insulator defect detection method based on auxiliary backbone enhancement and feature fusion.

[0024] Figure 2 for Figure 1 The diagram shows the structure of the cross-layer branch linear mapping module in the overall network structure.

[0025] Figure 3 This is a schematic diagram illustrating the direction of semantic information flow in an image.

[0026] Figure 4 for Figure 1 The diagram shows the structure of the cross-layer branch adaptive fusion module in the overall network structure.

[0027] Figure 5 This is a comparison chart showing the effectiveness of infrared insulator defect detection.

[0028] Figure 6 A visual comparison of feature maps before and after the target stage fusion enhancement.

[0029] Figure 7 This is the first set of branch feature maps to be fused.

[0030] Figure 8 This is a graph showing the training process.

[0031] Figure 9 This is a comparison chart of precision-recall (PR) curves between the baseline model and the method of this invention.

[0032] Figure 10 A bar chart comparing the results of the ablation experiments. Detailed Implementation

[0033] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments, but these embodiments should not be construed as limiting the present invention.

[0034] like Figure 1 As shown in the overall network structure diagram, the infrared insulator defect detection method based on auxiliary backbone enhancement and feature fusion provided in this embodiment of the invention has an overall network consisting of a dual-path backbone enhancement structure composed of a backbone feature extraction path and an auxiliary feature fusion path. The backbone feature extraction path is used to extract features from the input infrared insulator image stage by stage; the auxiliary feature fusion path includes, for example,... Figure 2 The cross-layer branch linear mapping module shown and such Figure 4 The cross-layer branch adaptive fusion module shown is used to split, align, and adaptively weight and fuse the stage feature maps output from the main feature extraction path, thereby changing the direction of semantic information flow and enhancing cross-layer information interaction and multi-scale feature expression capabilities. This method includes steps S1 to S6 executed sequentially.

[0035] Example 1: Step S1: Obtain the stage feature map: The acquired infrared insulator images of the transmission line are input into the backbone feature extraction path. In this embodiment, the YOLOv11 backbone network is used as the backbone feature extraction path, and the feature maps output from its 2nd, 4th, 7th, 9th, and 11th layers are selected as stage feature maps and named P1, P2, P3, P4, and P5. The stage feature maps output from the above five stages are as follows: (11); In equation (11): For the first i A phase characteristic diagram; , The first i The height and width of the stage feature map; For the first i The number of channels in the stage feature map of a stage; The dimension is The real number space; i Let i be the stage number, i = 1, 2, ..., 5.

[0036] From the perspective of feature representation, as the stages deepen, the spatial size of the stage feature maps decreases and the number of channels increases step by step: the stage feature maps of shallow stages (such as P1 and P2) have high resolution and retain rich texture details, but weak semantic expression; the stage feature maps of deep stages (such as P4 and P5) have rich semantic information after multi-level convolution, but texture details are lost as the spatial size is compressed layer by layer. Infrared insulator defects are mostly manifested as small-scale temperature anomaly regions, and their detection accuracy is highly dependent on the fine-grained features of shallow layers. This characteristic provides a design basis for changing the direction of semantic information flow in subsequent steps.

[0037] Step S2: Linear mapping across layers: After determining the stage feature map, channel mapping and grouping / splitting of the stage feature map are required. For example... Figure 2 The schematic diagram of the cross-layer branch linear mapping module shows that the feature maps of each stage are input into the cross-layer branch linear mapping module, and 3×3 convolution operations are performed on P1, P2, P3, P4, and P5 respectively to obtain intermediate feature maps: (12); In the formula: Indicates the convolution operation; For the first i The intermediate feature map of the stage. In this embodiment, the convolution kernel size is 3×3, the stride is 1, and the padding is 1, ensuring that the output intermediate feature map has the same spatial size as the input stage feature map but a different number of channels, that is: (13); In the formula: For the first i The number of channels in the intermediate feature maps of each stage. The function of this linear mapping is to uniformly adjust the channel size of the features of each stage to a form that is easy to group and split, without changing the spatial structure of the feature maps of each stage, thus providing a standardized input for the construction of cross-layer branches.

[0038] Step S3: Channel dimension grouping and splitting: For intermediate feature maps at different stages, based on the number of channels required for each stage, the intermediate feature maps are split into multiple branch feature maps along the channel dimension, and the splitting satisfies: (14); In the formula: For the first i The number of branch feature maps obtained by splitting the intermediate feature map of a stage; For the first i Phase 1 The number of channels in each branch feature map.

[0039] In this embodiment, the intermediate feature map Z1 is split and recombined into a 64-channel branch

[64] ; Z2 is split and recombined into two branches of 64 and 128 channels [64, 128]; Z3 is split and recombined into three branches of 64, 128, and 256 channels [64, 128, 256]; Z4 is split and recombined into four branches of 64, 128, 256, and 512 channels [64, 128, 256, 512]; and Z5 is split and recombined into five branches of 64, 128, 256, 512, and 1024 channels [64, 128, 256, 512, 1024]. After splitting and recombining, each branch feature map is assigned an index number: the branch feature map number of Z1 is... (1,1); The branch feature map of Z2 is numbered as follows: (2,1) (2,2); The branch feature map of Z3 is numbered as follows: (3,1) (3,2) (3,3); The branch feature map of Z4 is numbered as follows: (4,1) (4,2) (4,3) (4,4); The branch feature map number of Z5 is (5,1) (5,2) (5,3) (5,4) (5,5). The split configuration for each stage is shown in Table 1.

[0040]

[0041] The design principle of the above split configuration is that the branch feature maps in each group of branch feature maps to be fused have the same number of channels. For example, each branch feature map in the first group has 64 channels, which allows branch feature maps from different deep stages to be directly fused with the shallow target stage at the same channel scale, eliminating the mismatch of cross-layer features in the channel dimension; at the same time, the first i The number of branch feature maps generated from each stage should be consistent with the stage number to ensure that the first stage is the same as the second stage. i The stages can be from the 1st to the 2nd. i Each target stage provides a corresponding branch feature map, which provides a structural basis for the group selection in step S4.

[0042] Step S4: Determine the direction of semantic information flow and select the feature maps of the branches to be fused: After completing channel mapping and grouping, branch feature maps and corresponding index numbers are obtained. The semantic information flow direction is determined to be bottom-up, specifically as follows: Figure 3 The diagram illustrates the direction of semantic information flow, showing a reverse flow from the deep stage to the shallow stage, with features from the shallow stage serving as the enhancement benchmark. The principle is that allowing deep semantic information to flow back to the shallow stage enables shallow features to retain texture details while receiving deep semantic enhancement, thereby strengthening the synergistic expression of shallow texture details and deep semantic information. This aligns with the dependence of infrared insulator defect small-scale target detection on shallow, fine-grained features.

[0043] After determining the direction of semantic information flow, take the first The first stage is the target stage. Based on the index number, the branch feature map corresponding to the target stage is selected from the first stage and all stages deeper than the first stage as the branch feature map to be fused, denoted as: (4); In the formula: For the first i intermediate feature map of the stage The index number is Branch feature map; To flow towards the target stage The feature map of the branch to be fused; This refers to the target stage sequence number. The branch feature map of the target stage itself is also included. Abbreviated as .

[0044] In this embodiment, the selection (1,1) (2,1) (3,1) (4,1) The branch feature map corresponding to (5,1) is the first group. (2,2) (3,2) (4,2) The branch feature map corresponding to (5,2) is the second group. (3,3) (4,3) The branch feature map corresponding to (5,3) is the third group. (4,4) The branch feature map corresponding to (5,4) is the fourth group to be fused. The configuration of each branch feature map group to be fused is shown in Table 2.

[0045]

[0046] Step S5: Adaptive fusion across layers: like Figure 4 The diagram of the cross-layer branch adaptive fusion module shows how it performs scale alignment and adaptive weighted fusion on the feature maps of the branches to be fused in each target stage. The following detailed explanation uses the first group (target stage number l=1) as an example.

[0047] S5.1: Determine the alignment reference: The spatial dimensions of the branch feature map of the target stage itself are used as the alignment reference; in this example, the branch feature map is used. Space dimensions For alignment reference. The five branch feature maps of the first group are as follows: (15); In the formula: The branch feature map of target stage 1 itself, i.e. ; to These are the feature maps of the branches to be fused from stages 2 to 5 to the target stage 1; each feature map has 64 channels.

[0048] S5.2: Interpolation Adjustment Scale alignment needs to be completed before fusion, and interpolation upsampling is used to perform the process. to The four branch feature maps are transformed according to the following formula: (16); In the formula: This indicates an interpolation upsampling or interpolation downsampling operation. In this example, the spatial dimensions of the branch feature maps in the deeper stages are all smaller than those in the shallower target stages, so interpolation upsampling is performed. The branch feature map is aligned to the spatial dimensions of the target stage 1. In this embodiment, bilinear interpolation is used for interpolation, but nearest neighbor interpolation or bicubic interpolation may also be used in other embodiments.

[0049] S5.3: Constructing a candidate fusion set: The aligned cross-layer branch feature maps are compared with the branch feature maps of the target stage itself. Forming a candidate fusion set: (17); And the candidate features in the candidate fusion set are uniformly denoted as j=1,2,…,K+1. In this example, the number of cross-layer branch feature maps is K=4, and the total number of candidate features is K+1=5, i.e. , , , , .

[0050] S5.4: Establish a global statistical description. To achieve adaptive fusion, dynamic weights need to be generated for each candidate feature. First, a global statistical description is established, and the specific calculation formula is as follows: (18); In the formula: For the first j Global statistical description of each candidate feature; This represents the global average pooling operation, used to extract the overall energy distribution of candidate features; This represents the global max pooling operation, used to extract significant responses from candidate features; This indicates a feature concatenation operation. Its function is twofold: the global average statistic reflects the overall contribution of candidate features, while the global maximum statistic captures significant information related to defects within the candidate features. Infrared insulator defects manifest as localized temperature anomalies; concatenating these two features allows the subsequent generation of dynamic weights to consider both overall and significant information, making the weight allocation more suitable for infrared defect detection tasks.

[0051] S5.5: Generate dynamic weights: The dynamic weights are calculated using the following formula: (19); In the formula: The dynamic weight of the j-th candidate feature; This is a gated network, consisting of a first 1×1 convolutional layer, a SiLU nonlinear activation layer, and a second 1×1 convolutional layer. The first 1×1 convolutional layer performs channel compression on the stitched global statistical description, the SiLU nonlinear activation layer introduces a nonlinear transformation, and the second 1×1 convolutional layer outputs the dynamic weight response. This gated network has a lightweight structure, with low parameter introduction and computational overhead, enabling the generation of dynamic weights to adaptively adjust sample-by-sample according to the content of the input infrared image.

[0052] S5.6: Preset static weight parameters: Simultaneously for each candidate feature Set learnable static weight parameters The static weight parameters are updated adaptively during the network training process to learn the general fusion rules in the training samples.

[0053] S5.7: Normalization yields the final fusion weights: The final fusion weights are determined by both static and dynamic weights, and are normalized using the softmax function. (9); In the formula: For the first j The dynamic weights of the candidate features are given by t, where t is the traversal index of the candidate feature, and K+1 is the total number of candidate features. In this example, K+1=5, and the final fusion weights of each candidate feature are: (20); After the static weight parameters and dynamic weights are added together and normalized, the final fused weights have both the stability of the training process and the adaptability to changes in the input image content. This overcomes the shortcomings of existing fusion methods that rely solely on static weights and cannot allocate the contribution of each branch according to the input content.

[0054] S5.8: Weighted summation output: The candidate features in the candidate fusion set are weighted and summed according to the final fusion weight to obtain the fusion enhancement feature map for the target stage: (10); In this example, the target stage The fusion-enhanced feature map is as follows: (twenty one); The second, third, and fourth groups, following the same procedure as the first group, underwent scale alignment, global statistical description establishment, dynamic weight generation, joint normalization of static and dynamic weight parameters, and weighted summation to obtain the fused enhanced feature maps. , , .

[0055] Step S6: Fusion and Enhancement of Feature Output and Defect Detection: The fusion of feature maps from each target stage is enhanced. ~ The output feature map of the corresponding stage of the main feature extraction path, and the stage feature map of the deep stage that did not participate in the fusion enhancement. P 5. Input the data into the subsequent detection head to classify and locate infrared insulator defects, output the type and location information of the insulator defects, and complete the infrared insulator defect detection.

[0056] Furthermore, the model training process is as follows: Infrared insulator images obtained from transmission line inspections are acquired; the location and category of insulator defect areas in the images are labeled to construct a training sample set; the training samples are input into the detection network of the aforementioned dual-path backbone enhancement structure; the detection loss, including classification loss, confidence loss, and bounding box regression loss, is used as the objective function; stochastic gradient descent or the Adam optimizer is employed to optimize the network parameters, including static weight parameters. The parameters of the gated network are iteratively optimized until the network converges. After training, the infrared insulator image to be detected is input into the network to output the defect detection result.

[0057] Example 2: The only difference between this embodiment and Embodiment 1 is that the convolution kernel size of the cross-layer branch linear mapping module in step S2 is 1×1. The 1×1 convolution only performs linear combination of input features in the channel dimension, without introducing spatial dimension information mixing, resulting in lower computational cost and suitability for online detection scenarios with high inference speed requirements. The remaining steps are the same as in Embodiment 1 and will not be repeated here.

[0058] Example 3: To verify the effectiveness of the method of this invention, a simulation comparison experiment was built. The experimental conditions are as follows: the experimental platform is an Intel Core i9 processor and an NVIDIA RTX 3090 graphics card, and the software environment is the PyTorch framework; the dataset consists of 6000 infrared insulator images collected by UAV inspection of power transmission lines, and the location and category of defective areas such as dirt, damage, and abnormal temperature rise in the images are labeled, and divided into training set, validation set and test set in a 7:2:1 ratio; the input image size is 640×640, the training epochs are 300, the batch size is 16, the initial learning rate is 0.01, and the SGD optimizer is used; the evaluation metrics are precision, recall, and mean average precision (mAP@0.5); the benchmark model YOLOv11 without the introduction of auxiliary feature fusion path is used as the comparison method. In the ablation experiment, a cross-layer branch linear mapping module, bottom-up semantic information flow direction, static weight parameters and dynamic weights are introduced one by one to verify the contribution of each technical feature.

[0059] Figure 5 The images show a comparison of the effects of infrared insulator defect detection, where: Figure 5 Sub-image (a) shows the original infrared image and the ground truth annotation of the defects. Figure 5 Subgraph (b) shows the detection results of the baseline model YOLOv11. Figure 5 Sub-image (c) shows the detection results of the method of this invention. The insulator string in the infrared image contains three defect areas, with the temperature rise decreasing sequentially. The third defect is a small-scale defect with low contrast. Figure 5 As shown in subplot (b), the baseline model detected two strong defects (confidence levels 0.91 and 0.87), but missed the third weak defect and generated one false positive in the background area (confidence level 0.62); Figure 5 As shown in subgraph (c), the method of the present invention correctly detected all three defects (confidence levels of 0.95, 0.93, and 0.90) without producing false detections. Simulation results demonstrate that the present invention effectively reduces the false negative rate of small-scale weak defects and the false negative rate of background defects by changing the direction of semantic information flow and enhancing the expression of shallow fine-grained features.

[0060] Figure 6 The image shows a visual comparison of the feature maps before and after the target stage fusion enhancement, where: Figure 6 Subgraph (a) is a feature map of the pre-enhancement shallow stage (P1). Figure 6 Subgraph (b) is the fused and enhanced feature map after processing by the cross-layer branch adaptive fusion module. .Depend on Figure 6 As shown in sub-image (a), although the shallow feature map before enhancement has rich texture details, the response of the defect area is overwhelmed by background noise, and the separability between the defect and the background is weak; Figure 6As shown in sub-image (b), the response of the defect region in the fused enhanced feature map is significantly enhanced, background noise is suppressed, and the main structure of the insulator string is clearly preserved. Simulation results show that after the deep semantic information flows back to the shallow layer through the auxiliary feature fusion path, it strengthens the synergistic expression of shallow texture details and deep semantic information, and improves the separability of the defect region and the background region.

[0061] Figure 7 The adaptive fusion weight distribution map is shown for the first group of branch feature maps to be fused (target stage l=1, total number of candidate features K+1=5), where: Figure 7 The subgraph (a) contains learnable static weight parameters. , Figure 7 Subgraph (b) represents the dynamic weights output by the gating network. , Figure 7 Subgraph (c) represents the final fusion weights obtained after normalization using the softmax function. .Depend on Figure 7 It is evident that static weight parameters reflect the general fusion pattern of training samples, while dynamic weights are adjusted sample-by-sample according to the content of the current input infrared image. After summing and normalizing the two, the target stage's own branch feature map is obtained. Compared with deep branch feature maps that carry significant information about defects (such as...) A high final fusion weight is obtained, and the contribution is adaptively allocated according to the input image content. Simulation results verify the effectiveness of the joint constraint mechanism of static and dynamic weights.

[0062] Figure 8 The training process curve is shown, where: Figure 8 Subplot (a) shows the curve of the detection loss changing with the number of training epochs. Figure 8 Subplot (b) shows the curve of mAP@0.5 changing with the number of training epochs. Figure 8 As shown in subgraph (a), the loss convergence of the method of the present invention is faster and the convergence value (approximately 0.58) is lower than that of the baseline model (approximately 0.75), indicating that the joint constraint of static weight parameters and dynamic weights does not introduce training instability; Figure 8 As shown in subgraph (b), the mAP@0.5 of the method of the present invention converges to 94.8%, which is 3.6 percentage points higher than the baseline model's 91.2%.

[0063] Figure 9 This is a comparison of the precision-recall (PR) curves of the baseline model and the method of this invention. The PR curve of the method of this invention is consistently above the curve of the baseline model, and the area enclosed is larger. Especially in the high recall range (recall greater than 0.8), the precision decreases significantly and more slowly, indicating that the method of this invention maintains a high detection precision while reducing false negatives (improving recall), alleviating the problem of difficulty in simultaneously addressing false negatives and false positives in infrared insulator defect detection.

[0064] Figure 10 This is a bar chart comparing the ablation experiment results. Based on the baseline model (mAP@0.5, 91.2%), the complete solution of this invention was constructed by introducing the cross-layer branch linear mapping module (92.0%), the bottom-up semantic information flow direction (93.1%), static weight parameters (93.6%), and dynamic weights one by one. Each technical feature brought positive gains, among which the change in the semantic information flow direction contributed the most, verifying that the various technical features of this invention support each other functionally and work together to produce beneficial effects.

[0065] Example 4: In other embodiments: the backbone feature extraction path may also use other versions of the YOLO series backbone network, or backbone networks such as ResNet, EfficientNet, and Swin Transformer. The number of stage feature maps may be set to three or more stages according to the hierarchical structure of the backbone network. The channel splitting configuration of each stage is not limited to the values ​​listed in Table 1 and may be adjusted according to the actual number of channels in the intermediate feature maps. The semantic information flow direction may also be set to enhance only some shallow target stages according to the scale characteristics of the detected target.

Claims

1. An improved infrared insulator defect detection method based on auxiliary backbone enhancement and feature fusion, characterized in that... Includes the following steps: S1: Obtain the stage feature maps of multiple stages output by the main feature extraction path; S2: Perform convolutional channel mapping on the feature maps of each stage to obtain intermediate feature maps with the same spatial size as the corresponding stage feature maps but different numbers of channels; S3: Based on the preset number of channels corresponding to each stage, split each intermediate feature map into at least one branch feature map along the channel dimension; S4: According to the semantic information flow direction from deep stage to shallow stage, the shallow stage is determined as the target stage, and the branch feature maps corresponding to the target stage are selected in each stage to form a group of branch feature maps to be fused for each target stage. S5: Using the spatial dimensions of the branch feature map in the target stage as the alignment benchmark, scale alignment is performed on each branch feature map to be fused in the group of branch feature maps to be fused, and adaptive weighted fusion is performed to obtain the fused enhanced feature map in the target stage. S6: The fused and enhanced feature maps of each target stage are used as the output feature maps of the corresponding stages for infrared insulator defect detection.

2. The infrared insulator defect detection method based on auxiliary backbone enhancement and feature fusion improvement according to claim 1, characterized in that: In S1, the backbone network of the YOLOv11 network is used as the main feature extraction path. The feature maps output from layers 2, 4, 7, 9, and 11 of the backbone network are extracted as the stage feature maps for the five stages. i The stage feature diagram is represented as follows: (1); In formula (1): , The first i The height and width of the stage feature map of the stage. For the first i The number of channels in the stage feature map of a stage. The dimension is The real space, i Let i be the stage number, i = 1, 2, ..., 5.

3. The infrared insulator defect detection method based on auxiliary backbone enhancement and feature fusion improvement according to claim 2, characterized in that: In S2, the first i Stage characteristic diagram Input cross-layer branch linear mapping module; the stage feature map is generated by the convolutional layers in the cross-layer branch linear mapping module. Perform convolution operations to obtain intermediate feature maps: (2); In the formula: This represents the convolution operation. For the first i The intermediate feature map of the stage; the convolution kernel size of the convolution operation is 1×1 or 3×3, and the spatial size of the feature map remains unchanged before and after the convolution operation, only the number of channels changes.

4. The infrared insulator defect detection method based on auxiliary backbone enhancement and feature fusion improvement according to claim 3, characterized in that: S3 includes: 3.1: Determine the first i Stage channel splitting configuration: The number of channels is intermediate feature map Divided into There are 10 sub-feature maps, and the number of channels in each sub-feature map satisfies the following: (3); In the formula: For the first i Intermediate feature map of the stage. For the first i The number of channels in the intermediate feature map of the stage. For the first i The number of sub-feature maps obtained from stage splitting For the first i The number of channels in the m-th sub-feature map of a stage; 3.2: Based on the channel split configuration, divide the intermediate feature map along the channel dimension. Split into Each branch feature map; 3.3: Assign index numbers to the feature maps of each branch obtained from the splitting. ,in, Branch number, =1,2,…, .

5. The infrared insulator defect detection method based on auxiliary backbone enhancement and feature fusion improvement according to claim 4, characterized in that: S4 includes: 4.1: The direction of semantic information flow is determined to be from the deep stage to the shallow stage, that is, the features of the shallow stage are used as the enhancement benchmark; 4.2: With the first The target stage is the [number]th stage, based on the index number, starting from [number]. Stage and in-depth In each stage, branch feature maps are selected as the branch feature maps to be fused: (4); In the formula: For the first i intermediate feature map of the stage The index number is Branch feature map, To flow towards the target stage The feature map of the branch to be fused The target stage number, ; 4.3: Combine all selected feature maps of the branches to be fused into the target stage. The feature map group of branches to be merged.

6. The infrared insulator defect detection method based on auxiliary backbone enhancement and feature fusion improvement according to claim 5, characterized in that: In step S5, the adaptive weighted fusion includes: extracting global statistical descriptions of the feature maps of each branch to be fused, and generating corresponding dynamic weights based on the global statistical descriptions; The dynamic weights of each feature map of the branch to be fused are added to the preset learnable static weight parameters and then normalized to obtain the corresponding final fusion weights. The feature maps of each branch to be merged are weighted and summed according to the final fusion weight.

7. The infrared insulator defect detection method based on auxiliary backbone enhancement and feature fusion improvement according to claim 6, characterized in that: In step S5, scale alignment using the cross-layer branch adaptive fusion module includes: 5.1: Target Phase Spatial size of branch feature map As the alignment reference, in the formula: , The target phases are respectively The height and width of the branch feature map; 5.2: In the feature map group to be fused, excluding the target stage Interpolation adjustments are made to the feature maps of each branch to be fused, in addition to the feature map of its own branch: (5); In the formula: This indicates an interpolation upsampling or downsampling operation. To align to the target stage Branch feature diagram of spatial dimensions; 5.3: Align all cross-layer branch feature maps with the target stage Its own branch feature map Forming a candidate fusion set: (6); In the formula: K is the number of cross-layer branch feature maps after alignment. to The subscripts 1 to K represent the sorting numbers of the feature maps of each cross-layer branch; the K+1 candidate features in the candidate fusion set are uniformly denoted as... , j=1,2,…,K+1.

8. The infrared insulator defect detection method based on auxiliary backbone enhancement and feature fusion improvement according to claim 7, characterized in that: In step S5, generating dynamic weights based on global statistical description includes: 5.4: For the first in the candidate fusion set j Candidate features Perform global average pooling and global max pooling separately, and concatenate the resulting statistics to obtain a global statistical description: (7); In the formula: This indicates a global average pooling operation. This represents the global max pooling operation. Indicates feature concatenation operation; 5.5: Describe global statistics Input into a gating network to generate candidate features Corresponding dynamic weights: (8); In the formula: It is a gated network, which consists of a first 1×1 convolutional layer, a SiLU nonlinear activation layer, and a second 1×1 convolutional layer.

9. The infrared insulator defect detection method based on auxiliary backbone enhancement and feature fusion improvement according to claim 8, characterized in that: In step S5, the final fusion weights are obtained, including: 5.6: For each candidate feature Preset learnable static weight parameters ; 5.7: Add the static weights and dynamic weights of each candidate feature, and normalize the result using the softmax function to obtain the final fused weights. (9); In the formula: For the first j The dynamic weights of candidate features, where t is the traversal index of the candidate feature and K+1 is the total number of candidate features.

10. The infrared insulator defect detection method based on auxiliary backbone enhancement and feature fusion improvement according to claim 9, characterized in that: In step S5, the feature maps of each branch to be fused are weighted and summed according to the final fusion weight to obtain the target stage. Fusion Enhancement Feature Map: (10); In the formula: For the first j The final fusion weights of the candidate features, For the first j One candidate feature.

Citation Information

Patent Citations

  • Power transmission line insulator fault detection method

    CN121686068A