Method, device and equipment for detecting defects of power facility bolts
By employing a high-frequency detail-guided feature enhancement module, a decoupled context and saliency pyramid pooling module, and an asymmetric guided fusion pyramid network, the problems of lost detail information and semantic conflicts in the detection of bolts in power facilities are solved, thereby improving detection accuracy and stability.
Patent Information
- Application Number
- CN202610182677.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-02-09
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2046-02-09
AI Technical Summary
Existing methods for detecting bolt defects in power facilities have shortcomings in terms of loss of detailed information, insufficient use of context, and semantic conflicts in multi-scale feature fusion, resulting in high misjudgment rates and insufficient positioning accuracy.
We employ a high-frequency detail-guided feature enhancement module, a decoupled context and saliency pyramid pooling module, and an asymmetric guided fusion pyramid network to improve detection accuracy through high-frequency detail extraction, complementarity of saliency and context information, and cross-scale feature fusion.
It improves the detection rate and positioning stability of micro-bolt defects in complex inspection scenarios, reduces the false judgment rate, and improves the detection accuracy.
Smart Images

Figure CN122312486B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power technology, and in particular to a method, apparatus and equipment for detecting defects in bolts of power facilities. Background Technology
[0002] Power facilities, as the arteries of the power system, include transmission line towers and their fittings, substation primary equipment and structures, and distribution line equipment. Their safe and stable operation is crucial. Regular inspections can promptly detect potential faults in equipment, prevent accidents, and thus ensure the continuity and reliability of power supply. In inspection tasks, defect detection of critical fasteners such as bolts and pins is a core component. Although these components are small, their loosening or missing parts can lead to serious accidents such as conductor detachment, posing a significant threat to power grid safety. In recent years, drone inspections have been widely used. However, fasteners such as bolts are typical small targets, with an extremely low percentage of effective pixels in images. Their high-frequency features, such as contours and textures, are easily weakened or lost during the hierarchical feature extraction of deep convolutional networks due to the continuously decreasing spatial resolution. This phenomenon can be considered an inherent low-pass filtering effect of the network, making it difficult for the model to capture key defect details.
[0003] Currently, bolt defect detection in power facilities primarily relies on deep learning-based target detection algorithms. These methods often employ single-stage detectors, such as the YOLO series, and utilize efficient modules like C3k2, Fast Pyramid Pooling (SPPF), and Path Aggregation Network (PANet) for feature extraction and multi-scale fusion. In such architectures, models typically employ max pooling to enhance local salient feature responses and integrate semantic and detailed information from different levels through top-down and bottom-up symmetrical paths. However, these purely data-driven methods often struggle to explicitly incorporate the physical constraints and contextual relationships required for bolt condition determination. Furthermore, because bolt conditions (e.g., normal, missing pin) are highly dependent on their surrounding hardware background and spatial orientation, existing general detection frameworks still face high false positive rates and insufficient localization accuracy when dealing with complex and visually ambiguous inspection scenarios. Therefore, a new detection method is urgently needed to address the issues of lost detailed information, insufficient context utilization, and semantic conflicts in multi-scale feature fusion in existing bolt detection methods. Summary of the Invention
[0004] This invention provides a method, apparatus, and equipment for detecting defects in bolts of power facilities, in order to solve the problems of loss of detailed information, insufficient use of context, and semantic conflicts in multi-scale feature fusion in existing methods when detecting bolts.
[0005] In a first aspect, embodiments of the present invention provide a method for detecting defects in bolts of power facilities, comprising: Acquire inspection images of bolts on power facilities; The inspection image is downsampled to extract the original features; The original features are input into a feature extraction network constructed by a high-frequency detail-guided feature enhancement module and a decoupled context and saliency pyramid pooling module to extract multi-scale features; An asymmetric guided fusion pyramid network, constructed by a high-frequency detail-guided feature enhancement module, an asymmetric path splitting module, and a detail-guided fusion module, is used to perform cross-scale feature fusion on the multi-scale features to obtain fused features. The fused features are processed by the detection head to obtain bolt defect detection results.
[0006] In one possible implementation, the high-frequency detail-guided feature enhancement module includes: a high-frequency detail extractor, a gating generator, and a local residual enhancement block; the operation of the high-frequency detail-guided feature enhancement module includes: After the features are input into the high-frequency detail-guided feature enhancement module, they are divided into main processing branch features and shallow short-circuit branch features through convolution transformation; The main branch features are input into the high-frequency detail extractor to extract high-frequency components; The main branch processing features are input into the local residual enhancement block to extract enhancement features; The high-frequency component and the enhancement feature are multiplied channel by channel through the gating generator, and the multiplication result is spliced in two stages with the shallow short-circuit branch feature and the trunk processing branch feature to obtain the output feature of the high-frequency detail guided feature enhancement module.
[0007] In one possible implementation, the decoupled context and saliency pyramid pooling module includes: a salient feature branch and a context enhancement branch; the operation of the decoupled context and saliency pyramid pooling module includes: After the features are input into the decoupled context and saliency pyramid pooling module, intermediate features are obtained through bottleneck convolution. The intermediate features are input into the salient feature branch to extract salient details; The intermediate features are input into the context enhancement branch to extract contextual information; The saliency details and the context information are added element-wise to obtain the output features of the decoupled context and saliency pyramid pooling module.
[0008] In one possible implementation, the salient feature branch is aggregated using three cascaded 5x5 max-pooling modules; The context enhancement branch extracts multi-scale mean features through multiple parallel large-kernel average pooling modules, and performs adaptive weighted fusion of the multi-scale mean features through fusion convolution.
[0009] In one possible implementation, the operation of the asymmetric path splitting module includes: dividing the input features into low-resolution semantic features for semantic delivery and detail features for detail preservation through convolutional transformation.
[0010] In one possible implementation, the input to the detail-guided fusion module includes high-resolution semantic features and low-resolution semantic features; the operation of the detail-guided fusion module includes: The high-resolution semantic features are used to obtain spatial gated signals through a lightweight gated generation network; The spatial gating signal is multiplied element-wise with the low-resolution semantic features, and then concatenated with the high-resolution semantic features to obtain the output features of the detail-guided fusion module.
[0011] In one possible implementation, the original features are input into a feature extraction network constructed by a high-frequency detail-guided feature enhancement module and a decoupled context and saliency pyramid pooling module to extract multi-scale features, including: The original features are sequentially processed through the high-frequency detail guided feature enhancement module, 3*3 convolution, and high-frequency detail guided feature enhancement module to obtain the first feature; The first feature is then passed through a 3x3 convolution and a C3k2 module to obtain the second feature. The second feature is then passed sequentially through a 3*3 convolution, a C3k2 module, a decoupled context and saliency pyramid pooling module, and an attention-enhanced feature module to obtain the third feature.
[0012] In one possible implementation, the asymmetric guided fusion pyramid network, constructed through a high-frequency detail-guided feature enhancement module, an asymmetric path splitting module, and a detail-guided fusion module, performs cross-scale feature fusion on the multi-scale features to obtain fused features, including: The second feature is input into the asymmetric path splitting module to obtain detailed features and low-resolution semantic features; The third feature is upsampled and then concatenated with the detail feature. After passing through the high-frequency detail-guided feature enhancement module and upsampling, it is concatenated with the first feature. Then, it passes through the high-frequency detail-guided feature enhancement module to obtain the fourth feature. The fourth feature is convolved with a 3*3 layer to obtain a high-resolution semantic feature. The low-resolution semantic feature and the high-resolution semantic feature are input into the detail-guided fusion module. The output feature of the detail-guided fusion module is passed through the C3k2 module to obtain the fifth feature. The fifth feature is convolved with a 3*3 convolution and then input into the detail-guided fusion module along with the third feature to obtain the sixth feature; The fourth, fifth, and sixth features are combined to obtain the fused feature.
[0013] Secondly, embodiments of the present invention provide a bolt defect detection device for power facilities, comprising: The acquisition unit is used to acquire inspection images of bolts on power facilities; Processing unit, used for: The inspection image is downsampled to extract the original features; The original features are input into a feature extraction network constructed by a high-frequency detail-guided feature enhancement module and a decoupled context and saliency pyramid pooling module to extract multi-scale features; An asymmetric guided fusion pyramid network, constructed by a high-frequency detail-guided feature enhancement module, an asymmetric path splitting module, and a detail-guided fusion module, is used to perform cross-scale feature fusion on the multi-scale features to obtain fused features. The fused features are processed by the detection head to obtain bolt defect detection results.
[0014] 0.5, An embodiment of the present invention provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method in the first aspect or any possible implementation of the first aspect above.
[0015] The beneficial effects of the embodiments of the present invention compared with the prior art are as follows: This invention employs a high-frequency detail-guided feature enhancement module. Through a high-frequency component-driven gating mechanism, it explicitly enhances crucial detail features such as edges and textures for defect identification, improving the model's ability to express the details of small targets like bolts. By decoupling the context and saliency pyramid pooling modules, parallel branches capture peak responses and regional statistical features respectively, achieving complementarity between saliency and contextual information and effectively compensating for information loss caused by max pooling. Finally, this invention designs an asymmetric guided fusion pyramid network, utilizing asymmetric path splitting and detail-guided fusion strategies to alleviate semantic conflicts and gradient confusion in multi-scale feature fusion. This invention can improve the detection rate and localization stability of small bolt defects in complex inspection scenarios. Attached Figure Description
[0016] Figure 1 This is a flowchart illustrating the implementation of the bolt defect detection method for power facilities provided in this embodiment of the invention. Figure 2 This is a structural diagram of the power facility bolt defect detection network provided in an embodiment of the present invention; Figure 3 This is a structural diagram of the high-frequency detail-guided feature enhancement module provided in an embodiment of the present invention; Figure 4 This is a structural diagram of the context and saliency pyramid pooling module provided in an embodiment of the present invention; Figure 5 This is a structural diagram of the asymmetric path splitting module provided in an embodiment of the present invention; Figure 6 This is a structural diagram of the detailed guidance fusion module provided in an embodiment of the present invention; Figure 7 This is a structural diagram of the power facility bolt defect detection device provided in an embodiment of the present invention; Figure 8 This is a schematic diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0017] The embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0018] Existing target detection methods and traditional feature fusion networks all have shortcomings in detecting bolt defects. One-stage detection methods, such as YOLO, are limited by the inherent low-pass filtering effect of deep networks, causing the contour and texture details of extremely small targets to be easily weakened or lost during deep extraction. Furthermore, their max-pooling strategy, while aggregating salient features, discards a large amount of contextual statistical information that is equally important for small target identification, making it difficult for the model to effectively locate targets in complex backgrounds. Traditional feature pyramid fusion methods, such as PANet, suffer from severe semantic conflicts and gradient confusion due to the tight structural coupling between their top-down and bottom-up paths. This limits the efficiency of multi-scale information integration, as intermediate feature layers must simultaneously adapt to supervision signals from different semantic levels. These methods do not effectively utilize decoupling and guided collaborative processing mechanisms, lack explicit enhancement of high-frequency details for small targets, and lack refined processing of heterogeneous information flows, resulting in a high misclassification rate for bolt defects with visual ambiguity and extreme scale variations.
[0019] This invention proposes a decoupled and guided collaborative method for detecting bolt defects in power facilities. Based on the existing single-stage target detector YOLOv11, this method replaces and enhances the feature enhancement, context aggregation, and multi-scale fusion stages without altering the detection process, thereby improving the detection rate and localization stability of minute bolt defects in complex inspection scenarios. The core inventions are the High Frequency Detail Guided Feature Enhancement (HFDG) module, the Decoupled Context and Saliency Pyramid Pooling (DCSPP) module, and the Asymmetric Guided Fusion Pyramid Network (AGF-PN).
[0020] The symbols for the calculation parameters involved in the embodiments of the present invention are explained in Table 1.
[0021] Table 1
[0022] Figure 1 The flowchart illustrating the implementation of the bolt defect detection method for power facilities provided in an embodiment of the present invention is shown. Figure 2 A schematic diagram of a bolt defect detection network structure for power facilities is shown. Please refer to the following as well. Figure 1 and Figure 2 This section will explain the method.
[0023] Step S101: Obtain inspection images of bolts on power facilities.
[0024] In this embodiment, a multi-rotor or fixed-wing UAV equipped with a high-definition visible light camera and an infrared thermal imager can be used to autonomously fly along a preset route to perform fixed-point photography or cruise scanning of fastened connection points in power facilities. These power facilities include, for example, transmission line towers and fittings, substation structures and primary equipment connection points, and distribution line equipment, covering areas difficult for manual inspection. The collected bolt inspection images are transmitted to a backend system, where computer vision and machine learning algorithms are used for defect identification, replacing manual visual judgment and improving inspection efficiency and accuracy.
[0025] Step S102: Downsample the inspection image and extract the original features.
[0026] For example, such as Figure 2 As shown, the downsampling module can be obtained by concatenating two 3*3 convolutions. The original input image may be a high-resolution image. Through this downsampling module, the image can be reduced in size while preserving the original features of the bolt, such as its edges and textures. The design of two 3*3 convolutions is better at capturing the subtle defect features of the bolt (such as the fine lines of bolt cracks) than simple pooling downsampling. This reduces the amount of computation while improving the efficiency and accuracy of the subsequent defect detection model.
[0027] Step S103: Input the original features into the feature extraction network constructed by the high-frequency detail-guided feature enhancement module and the decoupled context and saliency pyramid pooling module to extract multi-scale features.
[0028] The HFDG module addresses the issue of lost detail information in small objects due to the inherent low-pass filtering effect in deep networks. HFDG borrows the channel splitting concept from CSPNet in its structural organization: it divides the input features into a short-circuit preservation branch and a backbone transformation branch along the channel dimension to preserve basic semantic information and stabilize gradient propagation. Building upon this, this invention further introduces explicit high-frequency difference extraction, gated selective enhancement, and a two-stage segmented fusion strategy to strengthen fine-grained cues such as edges and textures corresponding to bolt defects, thus mitigating the attenuation of small object details caused by the low-pass filtering effect in deep networks.
[0029] The decoupled context and saliency pyramid pooling module consists of a salient feature branch, a parallel context enhancement branch, and a cross-branch feature fusion component. This module aims to alleviate the loss of regional statistical information caused by the max pooling operation in traditional fast pyramid pooling. By structurally decoupling heterogeneous information flows, it achieves complementary enhancement of salient features and contextual information, thereby improving the model's ability to understand small targets and their complex backgrounds.
[0030] For example, Figure 2 A feature extraction network structure is provided: The original features are sequentially processed through the High Frequency Detail Guided Feature Enhancement (HFDG) module, a 3*3 convolution, and another High Frequency Detail Guided Feature Enhancement (HFDG) module to obtain the first feature P1. The first feature P1 is processed by a 3*3 convolution and C3k2 to obtain the second feature P2. The second feature P2 is then passed through a 3*3 convolution, C3k2, a decoupled context and saliency pyramid pooling module (DCSPP), and an attention-enhanced feature module (C2PSA) to obtain the third feature P3.
[0031] Step S104: The asymmetric guided fusion pyramid network, constructed by the high-frequency detail guided feature enhancement module, the asymmetric path splitting module, and the detail guided fusion module, performs cross-scale feature fusion on multi-scale features to obtain fused features.
[0032] The Asymmetric Guided Fusion Pyramid Network aims to address the semantic conflicts and gradient confusion caused by uplink and downlink path coupling in traditional path aggregation networks. It achieves efficient integration of cross-scale information through structural decoupling and guided detail fusion. This module mainly consists of two parts: the Asymmetric Path Splitting Module (APB) and the Guided Detail Fusion Module (DGF).
[0033] For example, Figure 2 An Asymmetric Guided Fusion Pyramid Network (AGF-PN) structure is provided: The second feature P2 is input into the asymmetric path splitting module (APB) to obtain the detail features and low-resolution semantic features P. low ; The third feature P3 is upsampled and then concatenated with the detail feature. After passing through the High Frequency Detail Guided Feature Enhancement (HFDG) module and upsampled again, it is concatenated with the first feature P1. Then, it passes through the High Frequency Detail Guided Feature Enhancement (HFDG) module again to obtain the fourth feature P4. The fourth feature P4 is convolved with a 3x3 matrix to obtain the high-resolution semantic feature P. high The low-resolution semantic features P low and high-resolution semantic features P high The input is fed into the Guided Detail Fusion (DGF) module, and the output features of the Guided Detail Fusion (DGF) module are processed by C3k2 to obtain the fifth feature P5; The fifth feature P5 is convolved with a 3*3 convolution and then input into the guided detail fusion (DGF) module along with the third feature P3 to obtain the sixth feature P6. By splicing the fourth feature P4, the fifth feature P5, and the sixth feature P6, the fused feature is obtained.
[0034] Step S105: The bolt defect detection result is obtained by processing and fusing features through the detection head.
[0035] The detection head is essentially a set of dedicated neural network layers for fused features. The detection head reduces and maps the fused features through convolutional layers to generate a prediction tensor corresponding to the preset anchor box. The tensor dimensions include "anchor box confidence, defect classification probability, and bounding box offset".
[0036] This invention employs a high-frequency detail-guided feature enhancement module. Through a high-frequency component-driven gating mechanism, it explicitly enhances crucial detail features such as edges and textures for defect identification, improving the model's ability to express the details of small targets like bolts. By decoupling the context and saliency pyramid pooling modules, parallel branches capture peak responses and regional statistical features respectively, achieving complementarity between saliency and contextual information and effectively compensating for information loss caused by max pooling. Finally, this invention designs an asymmetric guided fusion pyramid network, utilizing asymmetric path splitting and detail-guided fusion strategies to alleviate semantic conflicts and gradient confusion in multi-scale feature fusion. This invention can improve the detection rate and localization stability of small bolt defects in complex inspection scenarios.
[0037] In one possible implementation, the operation of the high-frequency detail-guided feature enhancement module includes: After the features are input into the high-frequency detail guided feature enhancement module, they are divided into main processing branch features and shallow short-circuit branch features through convolution transformation; The main branch features are input into the high-frequency detail extractor to extract high-frequency components; The main branch features are input into the local residual enhancement block to extract enhanced features; The high-frequency components and enhancement features are multiplied channel by channel through a gated generator. The multiplication result is then combined with the shallow short-circuit branch features and the main processing branch features in a two-stage segmented manner to obtain the output features of the high-frequency detail-guided feature enhancement module.
[0038] For example, the structure of the HFDG module is as follows: Figure 3 As shown: The HFDG module consists of a parallel branch structure, a High-Frequency Details Extractor (HFE), a gated generator, a parallel Local Residual Enhancement Block (ResBottleNeck), and a two-stage segmented fusion component. Its workflow is as follows: After the features of the image to be detected are input into the HFDG, they are first transformed by convolution and split into a main processing branch and a shallow short-circuit branch in the channel dimension; the shallow short-circuit branch is used to preserve the original information and provide information compensation pathways. The main branch enters the High-Frequency Details Extractor (HFE), which explicitly extracts high-frequency components through a difference method of "subtracting the average pooling (low-pass filtering) result from the original features," thereby highlighting the edge / texture response sensitive to bolt defects. Subsequently, the high-frequency features are fed into the gated generator to generate channel-gated vectors for adaptive recalibration of the main features. Simultaneously, the main branch further models the local context and mitigates information attenuation through the parallel Local Residual Enhancement Block (ResBottleNeck). Finally, a two-stage segmented fusion strategy is used to sequentially integrate the shallow short-circuit information, the gated enhancement information, and the main semantic information, outputting an enhanced feature map.
[0039] In this embodiment, the core of HFDG lies in the high-frequency guidance gating mechanism and parallel enhancement strategy. The specific calculation process is as follows: (1) Initial path initialization:
[0040] (2) High-frequency guided gating generation: The extracted high-frequency features are obtained through a A gated generator constructed from convolutions and activated by the Sigmoid function. Generate channel gating vectors for each feature point .
[0041]
[0042] (3) Parallel local residual enhancement: Main branches The data is fed into the parallel local residual enhancement block ResBottleNeck for processing to obtain the enhanced features. Subsequently, through the gating vector and Multiply by channel to obtain This enables adaptive enhancement of features:
[0043]
[0044] (4) Two-stage segmented integration: To integrate multiple information flows and preserve feature integrity, the first stage will use shallow short-circuit branches. With gated enhanced branches The pieces were assembled; the second stage will... With the original main branch By concatenating the components and preserving the original semantics through an information compensation pathway, the final output is obtained. :
[0045]
[0046] In the above formula, The High Frequency Detail Extraction (HFDG) module extracts high-frequency information by subtracting the average pooling result from the original features. Through this parallel decoupling and explicit high-frequency guidance design, the HFDG module effectively enhances the expressive power of weak features in small target regions, improving the model's detection rate of small bolt defects in complex backgrounds. The effectiveness of HFDG stems from the synergistic cooperation of differential high-frequency construction, gated modulation, and segmented fusion. First, the high-frequency detail extractor constructs a high-frequency response branch using the difference between the feature and its average pooling result, highlighting rapidly changing detail components in the input features, thus providing a clear detail guidance signal for subsequent enhancement processes. Second, the gate generator uses this high-frequency response as input to generate channel gate vectors and modulates the backbone features channel by channel, thereby achieving adaptive recalibration of responses from different channels. Third, the short-circuit retention branch of channel splitting and the two-stage segmented fusion provide pathways for information compensation, which helps maintain the integrity of the backbone semantics while enhancing details. Through the above structural combination, HFDG can mitigate the impact of detail information attenuation during deep characterization to a certain extent, thereby improving the separability and detection stability of micro-bolt defect features.
[0047] In one possible implementation, the operations of decoupling the context from the saliency pyramid pooling module include: After the features are input into the decoupled context and saliency pyramid pooling module, intermediate features are obtained through bottleneck convolution; Intermediate features are input into the salient feature branch to extract salient details; Intermediate features are input into the context enhancement branch to extract contextual information; The salient details and contextual information are added element-wise to obtain the output features of the decoupled context and salient pyramid pooling module.
[0048] For example, the structure of the DCSPP module is as follows: Figure 4 As shown: The DCSPP module consists of a salient feature branch, a parallel context enhancement branch, and a cross-branch feature fusion component. This module aims to alleviate the loss of regional statistical information caused by the max-pooling operation in traditional fast pyramid pooling. By structurally decoupling heterogeneous information flows, it achieves complementary enhancement of salient features and contextual information, thereby improving the model's ability to understand small targets and their complex backgrounds. Input feature map First, intermediate features are obtained through a bottleneck convolution. Subsequently, the feature flow enters two parallel branches: the salient feature branch aggregates the strongest local responses through multi-scale max pooling to extract salient details; the parallel context enhancement branch uses multiple large-kernel average pooling to extract first-order statistical information (mean) of the region to capture smooth background context and compensate for local biases in the salient features. Finally, the outputs of the two branches are element-wise added and fused to output the final feature module. .
[0049] The salient feature branch is used to extract local peak responses at multiple scales, which is achieved through a three-dimensional cascaded branch. Max pooling is used to aggregate features, and the specific calculation process is as follows:
[0050]
[0051]
[0052] A parallel context enhancement branch is used to capture multi-scale regional statistical information that complements salient features. This branch uses intermediate features... As input, multiple parallel large-kernel average pooling methods are used to extract multi-scale mean features, and adaptive weighting is performed through fusion convolution to obtain contextual features. :
[0053]
[0054]
[0055] in, and Represents different pooling kernel sizes, used to obtain multi-scale contexts with different perceptions.
[0056] Finally, the module performs element-wise addition and fusion of salient features and contextual features to obtain the output feature map. :
[0057] DCSPP decouples and models the "peak saliency response" and "regional mean statistical context" in a structurally parallel manner, enabling the fusion of these two complementary information types at the same scale. The saliency feature branch utilizes multi-scale max pooling to highlight strong local responses, which helps preserve the saliency cues of small targets. The parallel context enhancement branch uses multi-scale large-kernel average pooling to introduce first-order statistical information from the region, providing a smoother background context supplement to the features, thus mitigating the expression bias that may result from relying solely on peak aggregation. Finally, element-wise addition is used to achieve information superposition and complementary enhancement, which, while maintaining low computational cost, improves the network's overall perception ability and detection stability for extremely small targets and their surrounding complex hardware backgrounds. Therefore, DCSPP, through the decoupling, parallelization, and fusion of the saliency and context branches, improves the feature representation and detection stability of small targets in complex backgrounds while maintaining computational efficiency.
[0058] In one possible implementation, the operation of the asymmetric path splitting module includes: dividing the input features into low-resolution semantic features for semantic delivery and detail features for detail preservation through convolutional transformation.
[0059] For example, the structure of the APB module is as follows: Figure 5 As shown.
[0060] The APB module provides dedicated gradient backpropagation paths for information flows in different directions by performing channel-level adaptive recalibration and decoupling on the intermediate layer feature P3. The specific process is as follows: using a... Convolution processes the features, then divides them into feature streams for semantic delivery along the channel dimension. and feature flow for detail preservation The specific calculation formula is as follows:
[0061] In one possible implementation, the input to the detail-guided fusion module includes high-resolution semantic features and low-resolution semantic features; the operations of the detail-guided fusion module include: High-resolution semantic features are used to generate spatial gated signals through a lightweight gated generative network; The spatial gating signal is multiplied element-wise with the low-resolution semantic features, and then concatenated with the high-resolution semantic features to obtain the output features of the detail-guided fusion module.
[0062] For example, the structure of the DGF module is as follows: Figure 6 As shown.
[0063] Guided Detail Fusion (DGF) replaces simple feature stitching in the bottom-up fusion stage. It leverages reliable spatial details from high-resolution features to generate guiding signals, selectively enhancing low-resolution semantic features. DGF first utilizes… Spatial gating signals are generated through a lightweight gating generation network. :
[0064] Subsequently, the generated gating signal is combined with low-resolution semantic features. Element-wise multiplication is performed, and the results are concatenated with the original detailed features to obtain the fused feature output. :
[0065] AGF-PN improves upon the semantic conflicts and information interference that may arise from uplink / downlink coupling in multi-scale fusion by combining asymmetric path splitting and detail-guided fusion. First, APB splits intermediate layer features along the channel dimension, structurally distinguishing the feature stream used for semantic transmission from that used for detail preservation. This makes information interaction in different directions more controllable, thus mitigating mutual interference during cross-scale fusion. Second, DGF uses high-resolution features to generate spatially gated signals, modulating low-resolution semantic features element-wise. This makes semantic injection selective in spatial location and allows it to participate in fusion alongside the original detail features, thus avoiding excessive smoothing of small target boundary details during the fusion process. Through these mechanisms, AGF-PN can better balance semantic representation and localization details in multi-scale fusion, improving the stability and recognition performance of small target defect detection. Through the synergy of APB and DGF, AGF-PN achieves a balance between localization accuracy and semantic information, enhancing the model's recognition performance for small targets at multiple scales.
[0066] In one possible implementation, the model needs to be trained before application. First, images of bolt defects in power facilities captured by inspection equipment such as drones are labeled and divided into training and testing sets. Using the images in the training set and their corresponding defect category labels, the decoupled and guided collaborative power facility bolt defect detection model is trained to obtain a trained detection model. Then, the test set images are input into the model for inference testing to obtain the final detection result.
[0067] To verify the effectiveness of the proposed method, this embodiment compares it with current mainstream object detection algorithms. Five evaluation metrics are used to assess model performance: mean accuracy (mAP@50), mean high-threshold accuracy (mAP@.5:.95), number of parameters, gigaflops per second (GFLOPs), and inference speed (FPS). A higher mAP value indicates better detection accuracy, while fewer parameters and lower computational cost indicate a more lightweight model. The self-built dataset used consists of 1343 images of power facility inspections captured by drones, containing 5355 labeled instances, covering various bolt categories under both normal and abnormal conditions. The test results are shown in Table 2.
[0068] Table 2
[0069] As shown in Table 2, the proposed method achieves 93.9% and 63.4% mAP@50 and mAP@.5:.95, respectively, representing overall performance improvements of 3.1% and 2.9% compared to the baseline model YOLOv11s. While improving performance, the number of parameters increases only slightly by 7.2%, and the inference speed remains at 28.6 FPS, meeting the performance requirements of real-time inspection at the power edge, thus demonstrating the method's advancement and practicality.
[0070] This invention has the following innovations: (1) A high-frequency detail guided feature enhancement module (HFDG) is proposed.
[0071] This module decouples the extraction of high-frequency details from the processing of backbone features through a parallel branching design. It explicitly extracts high-frequency components such as edges and textures, which are crucial for defect identification, using a high-frequency detail extractor. This drives a gating mechanism to precisely enhance backbone features, effectively mitigating the problem of easily losing subtle target details in deep networks.
[0072] (2) A decoupled context and saliency pyramid pooling module (DCSPP) is proposed.
[0073] This module structurally decouples the salient feature stream from the contextual information stream, capturing local peak responses and regional statistical features (such as the mean) through parallel branches. This decoupling mechanism enables the complementary fusion of heterogeneous information, enhancing the model's ability to model small targets and their complex backgrounds, and compensating for the information loss caused by traditional pooling operations.
[0074] (3) Propose the Asymmetric Guided Fusion Pyramid Network (AGF-PN).
[0075] This network decouples top-down and bottom-up information paths through an asymmetric path splitting mechanism, providing dedicated gradient backpropagation paths for information flows in different directions and mitigating semantic conflicts. Simultaneously, a detail-guided fusion mechanism is introduced, utilizing reliable spatial details from high-resolution features to generate spatially gated signals, guiding selective enhancement of low-resolution semantic features, thus achieving synergistic optimization of positioning accuracy and semantic information.
[0076] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0077] The following are device embodiments of the present invention. For details not described in detail, please refer to the corresponding method embodiments described above.
[0078] Figure 7 A schematic diagram of the structure of the power facility bolt defect detection device provided in an embodiment of the present invention is shown. For ease of explanation, only the parts related to the embodiment of the present invention are shown, and are described in detail below: like Figure 7 As shown, the power facility bolt defect detection device 7 includes: Acquisition unit 71 is used to: acquire inspection images of bolts in power facilities; Processing unit 72 is used to: downsample the inspection image and extract the original features; input the original features into a feature extraction network constructed by a high-frequency detail-guided feature enhancement module and a decoupled context and saliency pyramid pooling module to extract multi-scale features; perform cross-scale feature fusion on the multi-scale features through an asymmetric guided fusion pyramid network constructed by a high-frequency detail-guided feature enhancement module, an asymmetric path splitting module and a detail-guided fusion module to obtain fused features; and process the fused features through the detection head to obtain the bolt defect detection result.
[0079] This invention employs a high-frequency detail-guided feature enhancement module. Through a high-frequency component-driven gating mechanism, it explicitly enhances crucial detail features such as edges and textures for defect identification, improving the model's ability to express the details of small targets like bolts. By decoupling the context and saliency pyramid pooling modules, parallel branches capture peak responses and regional statistical features respectively, achieving complementarity between saliency and contextual information and effectively compensating for information loss caused by max pooling. Finally, this invention designs an asymmetric guided fusion pyramid network, utilizing asymmetric path splitting and detail-guided fusion strategies to alleviate semantic conflicts and gradient confusion in multi-scale feature fusion. This invention can improve the detection rate and localization stability of small bolt defects in complex inspection scenarios.
[0080] Figure 8 This is a schematic diagram of an electronic device provided in an embodiment of the present invention. Figure 8 As shown, the electronic device 8 of this embodiment includes a processor 80 and a memory 81. The memory 81 stores a computer program 82. When the processor 80 executes the computer program 82, it implements the steps in the various method embodiments described above. Alternatively, when the processor 80 executes the computer program 82, it implements the functions of each module / unit in the various device embodiments described above.
[0081] For example, computer program 82 may be divided into one or more modules / units, which are stored in memory 81 and executed by processor 80 to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of computer program 82 in electronic device 8.
[0082] Electronic device 8 may include, but is not limited to, processor 80 and memory 81. Those skilled in the art will understand that... Figure 8 This is merely an example of electronic device 8 and does not constitute a limitation on electronic device 8. It may include more or fewer components than shown, or combine certain components, or different components. For example, electronic device 8 may also include input / output devices, network access devices, buses, etc.
[0083] For the sake of simplicity and clarity, only the above-described functional modules / units are used as examples. In practical applications, the functions described above can be assigned to different functional modules / units as needed. These modules / units can be implemented in hardware, software, or a combination of both.
[0084] In the above embodiments, the descriptions of each embodiment have their own emphasis. Parts not detailed or described in a particular embodiment can be referred to in the relevant descriptions of other embodiments. Unless otherwise specified or in conflict with logic, the terminology and / or descriptions between different embodiments are consistent and can be referenced interchangeably. Technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships.
[0085] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. A method for detecting defects in bolts of power facilities, characterized in that, include: Acquire inspection images of bolts on power facilities; The inspection image is downsampled to extract the original features; The original features are input into a feature extraction network constructed by a high-frequency detail-guided feature enhancement module and a decoupled context and saliency pyramid pooling module to extract multi-scale features; An asymmetric guided fusion pyramid network, constructed by a high-frequency detail-guided feature enhancement module, an asymmetric path splitting module, and a detail-guided fusion module, is used to perform cross-scale feature fusion on the multi-scale features to obtain fused features. The fused features are processed by the detection head to obtain the bolt defect detection results; The high-frequency detail-guided feature enhancement module includes: a high-frequency detail extractor, a gating generator, and a local residual enhancement block; the operation of the high-frequency detail-guided feature enhancement module includes: After the features are input into the high-frequency detail-guided feature enhancement module, they are divided into main processing branch features and shallow short-circuit branch features through convolution transformation; The main branch features are input into the high-frequency detail extractor to extract high-frequency components; The main branch processing features are input into the local residual enhancement block to extract enhancement features; The high-frequency component and the enhancement feature are multiplied channel by channel through the gate generator, and the multiplication result is spliced in two stages with the shallow short-circuit branch feature and the backbone processing branch feature to obtain the output feature of the high-frequency detail guided feature enhancement module. The decoupled context and saliency pyramid pooling module includes: a salient feature branch and a context enhancement branch; the operation of the decoupled context and saliency pyramid pooling module includes: After the features are input into the decoupled context and saliency pyramid pooling module, intermediate features are obtained through bottleneck convolution. The intermediate features are input into the salient feature branch to extract salient details; The intermediate features are input into the context enhancement branch to extract contextual information; The salient details and the context information are added element-wise to obtain the output features of the decoupled context and salient pyramid pooling module; The original features are input into a feature extraction network constructed by a high-frequency detail-guided feature enhancement module and a decoupled context and saliency pyramid pooling module to extract multi-scale features, including: The original features are sequentially processed through the high-frequency detail guided feature enhancement module, 3*3 convolution, and high-frequency detail guided feature enhancement module to obtain the first feature; The first feature is then passed through a 3x3 convolution and a C3k2 module to obtain the second feature. The second feature is then passed sequentially through a 3*3 convolution, a C3k2 module, a decoupled context and saliency pyramid pooling module, and an attention-enhanced feature module to obtain the third feature; The asymmetric guided fusion pyramid network, constructed through a high-frequency detail-guided feature enhancement module, an asymmetric path splitting module, and a detail-guided fusion module, performs cross-scale feature fusion on the multi-scale features to obtain fused features, including: The second feature is input into the asymmetric path splitting module to obtain detailed features and low-resolution semantic features; The third feature is upsampled and then concatenated with the detail feature. After passing through the high-frequency detail-guided feature enhancement module and upsampling, it is concatenated with the first feature. Then, it passes through the high-frequency detail-guided feature enhancement module to obtain the fourth feature. The fourth feature is convolved with a 3*3 layer to obtain a high-resolution semantic feature. The low-resolution semantic feature and the high-resolution semantic feature are input into the detail-guided fusion module. The output feature of the detail-guided fusion module is passed through the C3k2 module to obtain the fifth feature. The fifth feature is convolved with a 3*3 convolution and then input into the detail-guided fusion module along with the third feature to obtain the sixth feature; The fourth, fifth, and sixth features are combined to obtain the fused feature.
2. The method for detecting defects in power facility bolts according to claim 1, characterized in that, The salient feature branch achieves feature aggregation through three cascaded 5*5 max pooling modules; The context enhancement branch extracts multi-scale mean features through multiple parallel large-kernel average pooling modules, and performs adaptive weighted fusion of the multi-scale mean features through fusion convolution.
3. The method for detecting defects in power facility bolts according to claim 1, characterized in that, The operation of the asymmetric path splitting module includes: dividing the input features into low-resolution semantic features for semantic transmission and detailed features for detail preservation through convolutional transformation.
4. The method for detecting defects in power facility bolts according to claim 1, characterized in that, The input to the detail-guided fusion module includes high-resolution semantic features and low-resolution semantic features; the operation of the detail-guided fusion module includes: The high-resolution semantic features are used to obtain spatial gated signals through a lightweight gated generation network; The spatial gating signal is multiplied element-wise with the low-resolution semantic features, and then concatenated with the high-resolution semantic features to obtain the output features of the detail-guided fusion module.
5. A device for detecting defects in bolts of power facilities, characterized in that, For implementing the method for detecting defects in bolts of power facilities as claimed in any one of claims 1 to 4; The device includes: The acquisition unit is used to acquire inspection images of bolts on power facilities; Processing unit, used for: The inspection image is downsampled to extract the original features; The original features are input into a feature extraction network constructed by a high-frequency detail-guided feature enhancement module and a decoupled context and saliency pyramid pooling module to extract multi-scale features; An asymmetric guided fusion pyramid network, constructed by a high-frequency detail-guided feature enhancement module, an asymmetric path splitting module, and a detail-guided fusion module, is used to perform cross-scale feature fusion on the multi-scale features to obtain fused features. The fused features are processed by the detection head to obtain bolt defect detection results.
6. An electronic device, characterized in that, It includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the method for detecting defects in bolts of power facilities as described in any one of claims 1 to 4.
