Power transmission line tower part detection method and system based on 6G network and DGS-YOLO, terminal, medium and program product

By introducing deformable convolution and channel-context joint attention mechanism in the DGS-YOLO model, the problem of low accuracy of multi-scale object detection in drone power inspection is solved, and efficient transmission line tower components are achieved. Accurate inspection has improved the level of power grid management and patrol efficiency.

CN119048939APending Publication Date: 2024-11-29SHANGHAI ADVANCED RES INST CHINESE ACADEMY OF SCI

Patent Information

Application Number
CN202411124903.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The high-resolution images collected by drones in the prior art require a large number of manual verification of the safety status of the transmission line tower components, resulting in low power inspection efficiency. The existing models have insufficient accuracy in multi-scale object detection and cannot be effectively identified. Small targets such as screws, shock-proof hammers.

Method used

Adopting the transmission line tower component detection method based on 6G network and DGS-YOLO, the model is improved to multi-scale goals by introducing a deformation-packet convolution module and a deformation-segment local module, as well as a channel-context joint attention mechanism. detection accuracy.

Benefits of technology

The detection accuracy of multi-scale targets such as screws and shock-proof hammers has been improved, the efficiency of power inspection has been improved, the level of intelligent management of the power grid has been improved, the demand for manual inspections has been reduced, and the operation and maintenance costs have been reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119048939A_ABST
    Figure CN119048939A_ABST
Patent Text Reader

Abstract

The invention provides a 6G network and DGS-YOLO-based power transmission line tower component detection method and system, a terminal, a medium and a program product, and the method comprises the steps: collecting the inspection image data of a target power transmission line tower component; inputting the inspection image data of the target power transmission line tower component into a pre-deployed trained DGS-YOLO model, and outputting a detection result of the target power transmission line tower component; wherein the DGS-YOLO model comprises a backbone network in which a deformable grouping convolution module and a deformable cross-stage local module are introduced, and a neck network in which a channel-context joint attention mechanism is introduced. According to the method, the detection accuracy of multi-scale targets such as screws, stockbridge dampers and insulators is improved, and the safety conditions of various power transmission line tower parts can be analyzed at the same time, so that the power inspection working efficiency is greatly improved, and the intelligent management level of a power grid is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of transmission line inspection, and in particular to a transmission line tower component detection method, system, terminal, medium and program product based on 6G network and DGS-YOLO. Background Art

[0002] Transmission lines are an important part of the power system. With the development of the economy, a large number of transmission lines are needed to transmit electric energy. The safety of transmission lines plays an important role in the stable operation of the power grid. Currently, transmission lines are mainly inspected manually, which requires a large number of transmission line operation and maintenance personnel. Since transmission lines, especially high-voltage overhead transmission lines, are high above the ground, operation and maintenance personnel need to climb up the power towers to complete the inspection of key positions of the transmission lines, resulting in low inspection efficiency.

[0003] With the development of technologies such as 5G / 6G networks and artificial intelligence, power inspections based on drones have been promoted and applied. With the promotion and application of drones in power inspection systems, drones can inspect transmission lines in complex environments and obtain high-resolution images of key components such as transmission lines and towers through high-definition cameras. The use of drones for power inspections eliminates the need for manual climbing of high-voltage towers to inspect insulators, shock-absorbing hammers, screws in key locations, etc. However, a large amount of manual work is still required to confirm the safety of high-voltage tower accessories for the massive high-resolution images collected by drones.

[0004] In the existing technology, although the resolution of cameras carried by drones is constantly increasing, capturing more detailed target information, which is conducive to the detection of dense small targets such as screws and meeting the precision requirements of neural networks for small target feature extraction, the size of existing models has become larger, and the depth and calculation amount of the models have increased significantly, which cannot meet the detection accuracy requirements of multi-scale targets and reduces the efficiency of power inspection work. Summary of the invention

[0005] In view of the above-mentioned shortcomings of the prior art, the purpose of this application is to provide a transmission line tower component detection method, system, terminal, medium and program product based on 6G network and DGS-YOLO, so as to solve the problem of low power inspection efficiency in the prior art.

[0006] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present application provides a transmission line tower component detection method based on 6G network and DGS-YOLO, which is applied to an electronic terminal, and the method includes: collecting inspection image data of the target transmission line tower component; inputting the inspection image data of the target transmission line tower component into a pre-deployed trained DGS-YOLO model, and outputting the detection result of the target transmission line tower component; wherein the DGS-YOLO model includes a backbone network introducing a deformable grouped convolution module and a deformable cross-stage local module, and a neck network introducing a channel-context joint attention mechanism.

[0007] In some embodiments of the first aspect of the present application, the processing process of the backbone network includes: performing feature extraction and channel mixing through the deformable grouped convolution module, and performing feature enhancement and model optimization through the deformable cross-stage local module.

[0008] In some embodiments of the first aspect of the present application, the process of feature extraction and channel mixing performed by the deformable grouped convolution module includes: using a standard convolutional network to halve the number of channels of the input feature map; extracting features with an offset by introducing an offset; and using splicing and shuffling tools to mix feature maps with different numbers of channels to evenly fuse the local feature information of the target image.

[0009] In some embodiments of the first aspect of the present application, the processing process of the deformable cross-stage local module includes: extracting features of the input feature map through a deformable convolutional layer that can learn additional offsets; fusing feature maps of different levels using cross-stage connections; adapting to the current visual task by adjusting the number of channels, and shuffling features through a transposition operation.

[0010] In some embodiments of the first aspect of the present application, the channel-context joint attention mechanism includes: a channel attention branch and a context cross-attention branch connected in parallel, which are used to capture features between channels and within channels, respectively.

[0011] In some embodiments of the first aspect of the present application, the channel attention branch converts the output of the model into a probability distribution based on a combination of a Softmax function and a Sigmoid function; and / or the context cross attention branch extracts a set of feature vectors in the same horizontal and vertical directions as a preset position from the Key vector, and performs an affinity operation on the feature vector set and the feature vector corresponding to the preset position in the Query vector, thereby generating an attention map containing adjacent pixel dependencies.

[0012] In some embodiments of the first aspect of the present application, the training process of the DGS-YOLO model includes: collecting multiple inspection image data of transmission line tower components and preprocessing them to establish a training set and a test set; inputting the training set into an untrained DGS-YOLO model for model training; using the test set to test and verify the trained DGS-YOLO model; and the verified DGS-YOLO model is deployed for image detection of target transmission line tower components.

[0013] To achieve the above-mentioned purpose and other related purposes, the second aspect of the present application provides a transmission line tower component detection system based on 6G network and DGS-YOLO, including: a drone, used to collect inspection image data of target transmission line tower components; a 6G communication module, which establishes a communication connection with the drone, for transmitting the inspection image data; an edge server, which establishes a communication connection with the 6G communication module, for receiving the inspection image data; the edge server is deployed with the DGS-YOLO model trained as described above, for performing image recognition on the received target transmission line tower components, and outputting corresponding detection results accordingly.

[0014] To achieve the above-mentioned purpose and other related purposes, the third aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the transmission line tower component detection method based on 6G network and DGS-YOLO is implemented.

[0015] To achieve the above-mentioned purpose and other related purposes, the fourth aspect of the present application provides a computer program product, which includes a computer program code. When the computer program code runs on a computer, the computer implements the transmission line tower component detection method based on 6G network and DGS-YOLO.

[0016] To achieve the above-mentioned purpose and other related purposes, the fifth aspect of the present application provides an electronic terminal, including a memory, a processor and a computer program stored in the memory; the processor executes the computer program to implement the transmission line tower component detection method based on 6G network and DGS-YOLO.

[0017] As described above, the transmission line tower component detection method, system, terminal, medium and program product based on 6G network and DGS-YOLO of the present application have the following beneficial effects:

[0018] The method of the present application improves the detection accuracy of multi-scale targets such as screws, shock-absorbing hammers and insulators, and can simultaneously analyze the safety status of various types of transmission line tower components, thereby greatly improving the efficiency of power inspection work and improving the level of intelligent management of power grids. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 Shown is a flow chart of a method for detecting transmission line tower components based on 6G network and DGS-YOLO in one embodiment of the present application.

[0020] Figure 2 Shown is a schematic diagram of the structure of a deformable convolutional network in one embodiment of the present application.

[0021] Figure 3 Shown is a structural schematic diagram of a deformable grouped convolution module in one embodiment of the present application.

[0022] Figure 4 Shown is a schematic structural diagram of a deformable cross-stage local module in one embodiment of the present application.

[0023] Figure 5 Shown is a structural diagram of the channel-context joint attention mechanism in one embodiment of the present application.

[0024] Figure 6 Shown is a schematic diagram of the DGS-YOLO model structure in one embodiment of the present application.

[0025] Figure 7 Shown is a schematic diagram of the training process of the DGS-YOLO model in one embodiment of the present application.

[0026] Figure 8 Shown is a schematic diagram of collecting inspection image data of transmission line tower components in one embodiment of the present application.

[0027] Fig. 9 Shown is a schematic diagram of a transmission line tower component detection system based on 6G network and DGS-YOLO in one embodiment of the present application.

[0028] Fig.10 Shown is a schematic diagram of the structure of an electronic terminal in one embodiment of the present application. DETAILED DESCRIPTION

[0029] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0030] In the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. For example, the first XX and the second XX are only used to distinguish different XXs, and do not limit their order. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.

[0031] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" represent examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0032] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, ab, ac, bc or abc, where a, b, c can be single or multiple.

[0033] Before further describing the present invention in detail, the nouns and terms involved in the embodiments of the present invention are explained. The nouns and terms involved in the embodiments of the present invention are applicable to the following interpretations:

[0034] <1> CNN (Convolutional Neural Network): CNN is a deep learning architecture that processes data, especially image data, by imitating the working principle of the human visual system. The core of CNN is the convolution layer, which extracts local features of input data through convolution operations. The convolution layer uses learnable filters (or convolution kernels) to scan the input data and generate feature maps.

[0035] <2> Bottleneck structure: It is a design pattern of CNN, especially widely used in residual network (ResNet). It introduces residual connection and 1x1 convolution projection, so that the network can effectively train deeper layers while maintaining computational efficiency.

[0036] <3> SPPF (Spatial Pyramid Pooling-Fast): SPPF is a network structure component used for feature extraction in deep learning. By pooling at multiple scales, SPPF helps the network remain invariant to scale changes of the input image. And by capturing image features at different scales, it improves the computational efficiency and performance of the deep learning model.

[0037] <4> DCN (Deformable Convolution Network): DCN is an advanced deep learning architecture that aims to improve the adaptability of convolutional neural networks to geometric transformations of target objects in images. DCN introduces two core modules, Deformable Convolution and Deformable Pooling, to enhance the network's ability to model geometric changes such as scale, posture, perspective, and partial deformation of target objects.

[0038] <5> DWConv (Depthwise Separable Convolution): DWConv is a convolution operation optimization technology used in deep learning to reduce the amount of model calculation and the number of parameters. It mainly consists of depthwise convolution and pointwise convolution. Depthwise convolution is used to extract spatial features, and pointwise convolution is used to extract channel features. Depthwise separable convolution groups convolutions in the feature dimension, performs independent depthwise convolution on each channel, and uses a 1x1 convolution to aggregate all channels before output.

[0039] <6> SC (Stand Convolution): SC is one of the core components of convolutional neural networks in deep learning. It is used to extract features from input data, which are usually images, video frames or other multidimensional arrays.

[0040] <7> SFID (Synthetic Fog Insulator Dataset): SFID is a dataset dedicated to insulator and defect detection. It aims to provide a benchmark to evaluate and improve neural network-based insulator defect detection methods. The SFID dataset contains 13,000 images. The introduction of a synthetic fog algorithm enhances the diversity of the data, thereby improving the robustness of the model.

[0041] <8> Self-Attention Mechanism: The core idea is to calculate the attention weight of each element in the sequence for other elements, and then aggregate information based on these weights. It mainly includes the following steps: First, three vectors are generated for each element in the sequence, namely the query vector, the key vector, and the value vector; for each element in the sequence, the dot product is calculated using its query vector and all key vectors, and then a scaling factor (usually the inverse of the key vector dimension) is applied, and an activation function (such as the softmax function) is applied to obtain the attention score; using the attention score obtained in the previous step as the weight, the value vector is weighted and summed to obtain the weighted output.

[0042] <9> PSA (Prior-Shifted Anchoring): PSA is an attention mechanism used in the field of object detection, especially in anchor-based detection models. PSA introduces the concept of prior shift and dynamically adjusts the anchor point, making the model more flexible and accurate in object positioning.

[0043] <10> CBAM (Convolutional Block Attention Module): CBAM is an attention mechanism used to enhance the feature representation capability of convolutional neural networks. It is specifically designed to improve the efficiency and performance of feature utilization in the network. CBAM achieves this by introducing two components, channel attention and spatial attention, in the convolutional block.

[0044] <11> RCCA (Receptive Field Cross Attention): RCCA is an attention mechanism in deep learning that aims to enhance the representation of features by considering the receptive fields (RF) of different regions. RCCA captures long-distance dependencies between different feature maps through a cross-attention module, thereby improving the model's sensitivity to global contextual information.

[0045] <12> TSCODE (Task-Specific Context Decoupling): TSCODE decouples the context information of a specific task from the object detection model by introducing a mechanism of a specific task detection head. It uses a plug-and-play approach to directly insert the specific task detection head into the backbone network.

[0046] At present, the image resolution collected by drones for power inspection is high, but the identified targets do not include key small parts such as screws and anti-vibration hammers. The size of the targets to be detected varies greatly and is easily blocked. The inspection is easily affected by environmental changes such as weather, and it is impossible to accurately detect small targets, and the ability to detect multi-scale targets is low. In order to enhance the detection capability of small targets in power inspections and improve the detection accuracy of multi-scale targets, this application proposes a transmission tower component detection method, system, terminal, medium and program product based on 6G network and DGS-YOLO. First, a deformable convolution with halved computational complexity is introduced in the feature extraction of the DGS-YOLO model, and the features with offsets are extracted in groups to better fit the relevant areas of the small targets to be tested; secondly, the channel-context joint attention mechanism is used to enhance the perception of different types of targets to be tested attached to the high-voltage tower, establish contextual pixel-level dependence on a single target, reduce the impact of environmental noise such as complex background, and achieve efficient and accurate multi-scale target detection.

[0047] To facilitate understanding of the embodiments of the present application, first Figure 1 Detailed description. Figure 1 The flowchart of a transmission line tower component detection method based on 6G network and DGS-YOLO in an embodiment of the present invention is shown. The transmission line tower component detection method based on 6G network and DGS-YOLO in this embodiment mainly includes the following steps:

[0048] Step S101: collecting inspection image data of target transmission line tower components.

[0049] It should be noted that the target transmission line tower components include screws, anti-vibration hammers, insulators, etc. Among them, screws are small targets, anti-vibration hammers are medium targets, and insulators are large targets, that is, inspection image data of multi-scale targets are collected.

[0050] Step S102: input the inspection image data of the target transmission line tower component into the pre-deployed trained DGS-YOLO model, and output the detection result of the target transmission line tower component; wherein the DGS-YOLO model includes a backbone network introducing a deformable grouped convolution module and a deformable cross-stage local module, and a neck network introducing a channel-context joint attention mechanism.

[0051] The DGS-YOLO (Deformable Group Shuffle YOLO) model continues the main framework of the three parts of the YOLO series: the backbone network, the neck feature fusion network, and the anchor-free decoupling detection head. Specifically, the C2f module in the backbone network splits the input feature vector into a multi-layer BottleNeck structure to provide rich gradient flow information. The backbone network can extract 5 to 6 layers of feature pyramids, and finally use the SPPF technology to perform pooling operations of different sizes on the feature map. After integration, it effectively handles targets with various sizes. The neck feature fusion network uses a feature pyramid network (FPN) to achieve multi-scale feature fusion through upsampling, downsampling, and lateral connections. Its purpose is to enhance the representation ability of features by fusing feature maps of different scales or sources. The anchor-free decoupling detection head is a detection mechanism that does not rely on predefined anchors. It directly predicts the bounding box of the target from the feature map. The decoupling detection head usually decomposes the prediction of the bounding box into multiple independent subtasks, such as center point prediction, width prediction, and height prediction, and then combines the outputs of these subtasks to obtain the final bounding box. For the sake of ease of description, this article will briefly describe the deformable group hybrid YOLO model as the DGS-YOLO model.

[0052] Since the data collected on the power site are densely distributed around the high-voltage line towers, the environment is very complex, which brings great challenges to the YOLOv8 target detection model. Therefore, on the basis of the YOLOv8 model, the DGS-YOLO model is improved. Therefore, the embodiment of the present application has made adaptive improvements for this purpose. The DGS-YOLO model includes a backbone network with a deformable group convolution (Deformable Group Shuffle Convolution, DGSConv) module and a deformable cross-stage partial (Deformable Cross Stage Partial Network, DCSP) module, and a neck network with a channel-context joint attention mechanism (Channel Contant Joint Attention, CCJA). That is, the present application introduces a special convolutional network and a feature fusion layer to improve the recognition ability of small targets, and establishes a long dependency relationship of global targets through a new joint attention mechanism.

[0053] In one embodiment, the processing process of the backbone network includes: performing feature extraction and channel mixing through a deformable grouped convolution module, and performing feature enhancement and model optimization through a deformable cross-stage local module.

[0054] In one embodiment, the process of feature extraction and channel mixing by the deformable grouped convolution module includes: using a standard convolution network to halve the number of channels of the input feature map; extracting features with offsets by introducing offsets; using splicing and shuffling tools to mix feature maps with different numbers of channels to evenly fuse local feature information of the target image. For ease of description, the deformable grouped convolution module is referred to as the "DGSConv module" below.

[0055] The DGSConv module combines the superior feature extraction capabilities of DCNv3 (the terms have been explained in the previous article and will not be repeated here) and the computational advantage of the "halved" Ghost module to enhance the model's ability to extract visual features and robustness. It is a lightweight application of DCNv3. The Ghost module increases the width of the network by introducing additional "ghost" channels, but the parameters of these channels are calculated from existing parameters rather than directly learned, thereby reducing the total number of parameters of the model.

[0056] The following will be combined with the attached Figure 2 A detailed description of DCNv3 feature extraction is given.

[0057] The dynamically adjusted weights of the Multi Head Self Attention (MHSA) input have a large effective receptive field and can adaptively aggregate in space, thereby learning a more general and powerful model. Conventional convolution (CNN) uses a static weight operator with a strong inductive bias, and in fact has limited effective long-range dependencies. However, CNN also has the characteristics of fast convergence speed and relatively less training data. In the power inspection scenario, high-resolution images need to be input for learning and reasoning. The environment in which the recognition target is located is complex, and the smaller recognition targets are densely distributed, which places higher requirements on the deep learning model in feature map learning representation and reasoning speed. DCNv3 has the characteristics of both, adding a two-dimensional offset to the convolution grid sampling position to learn local features in a dense and adaptive deformation manner.

[0058] like Figure 2As shown in the figure, the process of DCNv3 feature extraction is as follows: input feature map, convolution kernel is N×N, taking 3×3 convolution kernel as an example; two processing groups, divided into Group 1 and Group 2, respectively perform depth separable convolution (DWConv), and each group uses the offset field to define the offset outside the center point of the convolution kernel (2N is twice the number of convolution kernel samples N), uses offsets to adjust the position of the convolution kernel, responds to the offset pixels, and uses adaptive weights to adjust the influence of the convolution kernel; output feature map, query pixel is the pixel at the center of the convolution kernel. The DCNv3 operator contains block stacking and scaling rules, as shown in the following formula:

[0059]

[0060] Among them, G represents the total number of aggregation groups, which is similar to the grouping in MHSA; K represents the total number of sampling points. For the gth group, ω g Represents the projection weight associated with the position. gk Represents the modulation scalar of the kth sampling point in the g group, which is normalized along dimension K by the softmax function. Each sampling point is assigned different weights in different dimensions, so that the model learns how the offset focuses on the object area of ​​interest. The DCNv3 operator uses separable convolution to separate the original convolution weights into a depth part and a point part. The depth part extracts the original position-aware modulation scalar m gk , the point part extracts the shared weight ω between the sampling points g .x g Represents a slice input feature map. p0+p k Indicates that conventional convolution enumerates different positions in a regular grid R for sampling, where R = {(-1,-1), (-1,0), ... (0.1), (1,1)}. The focus of deformable convolution is to sample at irregular and offset positions p0 + Δp gk ,Δp gk is the offset corresponding to the grid sampling position in the gth group. Therefore, different spatial aggregation groups on a convolutional layer have separate sampling offsets and modulation scales, forming different spatial aggregation modes, which bring stronger features for small target detection.

[0061] The following will be combined with the attached Figure 3 The feature extraction process of the DGSConv module is described in detail.

[0062] like Figure 3As shown in the figure, the feature extraction process of the DGSConv module is as follows: input feature map, the number of channels is C1; first pass through a convolution layer (Conv), the number of output channels of this layer is C2 / 2, that is, the SC operation; perform DCNv3 operation, specifically, perform a depth separable convolution layer (DWConv), convolve each channel output in the previous step independently, use the offset field to adjust the features, and the number of output channels is C2 / 2; concatenate the outputs of the Conv layer and the DWConv layer; shuffle the concatenated feature map to rearrange the feature channels and improve the information flow between features.

[0063] DGSConv uses SC to halve the number of channels, and then uses DCNv3 to extract features with offsets. Finally, local feature information on two different channels is evenly mixed through concatenation and shuffle. The number of channels is halved, the number of calculation parameters is reduced, and the lightweight performance of the model is improved. However, the interaction information between channels can still be retained, maintaining a certain degree of accuracy. In order not to increase the time complexity of additional convolution calculations, Shuffle is simply implemented through transposition operations to obtain visual features that are evenly mixed with SC and DCNv3.

[0064] In one embodiment, the processing process of the deformable cross-stage local module includes: extracting features of the input feature map through a deformable convolutional layer that can learn additional offsets; fusing feature maps of different levels by cross-stage connections; adjusting the number of channels to adapt to the current visual task, and performing feature shuffling by transposition operations. For ease of description, the deformable cross-stage local module is referred to as a "DCSP module" below.

[0065] like Figure 4 As shown in the flowchart on the right, the process of the DCSP module is as follows: input (Input) feature map, the number of channels is C1; through a convolution layer (Conv), the number of output channels of this layer is C1; perform the bottleneck (Deformable Group Shuffle BottleNeck, DGS BottleNeck) structure operation of the deformable group convolution module, or pass through a convolution layer (Conv) to further extract features; splice the output of the DGS BottleNeck layer and the convolution layer; pass through a convolution layer (Conv) to integrate the spliced ​​features, the number of channels of this layer is C2, and output (Output). The DCSP module is used to effectively fuse information between feature maps at different stages to improve feature utilization efficiency and network performance.

[0066] like Figure 4As shown in the flowchart on the left, specifically, the process of the bottleneck (Deformable Group Shuffle BottleNeck, DGS BottleNeck) structure of the deformable group convolution module is as follows: input (Input) feature map with C1 channels; pass through a deformable group convolution (DCSConv) layer, the number of channels output by this layer is 1 / 2C1; then pass through a convolution layer (Conv), or pass through a DCSConv layer for feature extraction, the number of channels output by this layer is C2; output (Output) feature map.

[0067] The DGSConv module extracts features to increase the one-dimensional offset, uses a simpler DCSP structure to increase the nonlinear expression ability of the model and adjust the number of channels, and optimizes the model's adaptability to complex scenes. The DGSConv module and the DCSP module are used for the lower-resolution feature layer of the backbone network (BackBone) and the neck feature fusion layer to generate multi-scale feature maps and improve the effect of target detection.

[0068] By introducing deformable convolutional network (DCNv3) and group convolution, the model's feature extraction capability for small targets (such as screws, anti-vibration hammers, etc.) is enhanced, which significantly improves the detection accuracy of small targets. At the same time, the DGSConv module and DCSP structure are used to realize the fusion of multi-scale feature maps, which improves the detection capability of large, medium and small targets, that is, the effect of multi-scale target detection is achieved, which greatly improves the detection accuracy. In addition, the DGSConv module is used to realize lightweight processing of convolution calculations, reduce the amount of calculation parameters, and improve the reasoning speed of the model.

[0069] In one embodiment, the channel-context joint attention mechanism includes: a channel attention branch and a context cross-attention branch connected in parallel, which are used to capture features between channels and within channels respectively.

[0070] In a specific embodiment, the channel attention branch converts the output of the model into a probability distribution based on a combination of the Softmax function and the Sigmoid function; and / or the context cross attention branch extracts a set of feature vectors in the same horizontal and vertical directions as a preset position from the Key vector, and performs an affinity operation on the feature vector set and the feature vector corresponding to the preset position in the Query vector, thereby generating an attention map containing adjacent pixel dependencies.

[0071] The following will be combined with the attached Figure 5 The channel-context joint attention mechanism (CCJA) is described in detail. For the convenience of description, the channel-context joint attention mechanism is referred to as "CCJA" in the following.

[0072] Channel Attention (CA) is widely used in computer vision tasks. It assigns learnable weight vectors to feature channels. During training, the back-propagation algorithm is used to adaptively emphasize the information of useful feature channel dimensions and suppress unimportant feature channels. As a self-attention mechanism, the weight learning of channel attention is spatially shared and computationally efficient. When using high-resolution collected data as the input of the power inspection system, there is a large amount of redundant and irrelevant background information. Channel attention has the ability to enhance the model's ability to handle different tasks. The self-attention mechanism captures the long-distance dependency between any two element positions in the sequence through effective encoding. However, in the power inspection target detection task, especially when it involves multiple categories and complex scene layouts, it is not enough to accurately model the spatial layout and mutual relationship between targets of different categories.

[0073] The Cross-Attention Mechanism (CCA) allows the model to interact with global information between different positions or sequences. When dealing with the positional association of different categories of targets in target detection, it can understand the correspondence between different input sources or different feature levels. In power inspection, the targets to be detected are distributed around high-voltage towers. The introduction of the cross-attention mechanism in the model helps different types of recognition targets establish mutual dependencies and helps the model understand how different types of objects interact and coexist in the same image space. CCJA introduces channel attention (CA) and context cross attention (CCA) at the same time to establish pixel-level dependencies between different types of detection targets. For ease of description, channel attention is abbreviated as "CA" and context cross attention is abbreviated as "CCA" in the following text.

[0074] The CA branch and the CCA branch are introduced into polarization filtering operations respectively, and the features in the two branches are nonlinearly transformed to enhance the contrast of the features.

[0075] like Figure 5 As shown, the input original local feature X is processed by the CA branch. It should be understood that the value weights (Value Weights, W v ), used to weight the value vector in this branch; Query Weights (W q ), used to weight the query vector in this branch; Key Weights (W z ), which is used to weight the key vector in this branch. Specifically, the convolutional (Conv) layer is used to extract features and pass W v and W qTransform the Value vector and the Query vector; adjust the feature shape through the reshape operation to meet the requirements of the self-attention mechanism; calculate the dot product of the reshaped result of Wv and the reshaped result of Wq after softmax calculation; use the convolution (Conv) layer to extract features again, and use the weight Wz; stabilize the network training through layer normalization (Layer Normalization, LayerNorm); generate the final output through the Sigmoid activation function. In the CA branch, a combination of the Softmax function and the Sigmoid function is used to adapt the output distribution and fully retain the high-resolution channel information.

[0076] Input the original local feature X into the CCA branch, specifically: extract features through continuous convolutional layers (Conv); calculate affinity (Affinity) using key (Key, K) vector and query (Query, Q) vector; use the Softmax function to normalize the attention score and generate an attention map A; perform feature matching between A and V (Value) through aggregation (Aggregation) operation to generate new features Figure X ', final output (Output).

[0077] In the CCA branch, a feature vector set Ω is extracted from the Key vector to capture the context information in the same horizontal and vertical directions as the position u. u , and the feature vector at position u in Q is subjected to affinity operation to generate an attention graph A containing the dependency relationship of adjacent pixels, as shown in the following formula:

[0078]

[0079] A=softmax(d i,u ); Formula (3)

[0080] Among them, d i,u Indicates Q u and Ω i,u The degree of correlation between u It represents the vector obtained at a certain position u of Q, Ω i,u is Ω u The i-th element in . Through the aggregation operation, A and V are matched to generate new features Figure X ', and fused with the original local feature X. Due to the sparsely connected structure, each pixel position is only connected to other positions in the same row and column, reducing the complexity of calculation and storage, making CCA more efficient when processing large-scale images.

[0081] CA and CCA are two complementary visual attention mechanisms combined in parallel. The model can capture the key features between and within channels at the same time, which can improve the model's ability to distinguish between occluded and similar objects, and enhance the generalization and robustness of the model.

[0082] The channel-context joint attention mechanism (CCJA) is adopted to enhance the model's adaptability to complex backgrounds and dense target distribution, effectively suppress background noise, improve detection accuracy, and improve adaptability to complex scenes; through the cross attention mechanism (CCA), the model can better understand the relationship between different target categories, improve target differentiation ability, and enhance the robustness and generalization ability of the DGS-YOLO model.

[0083] In order to realize the multi-scale target recognition application of YOLOv8 in power inspection scenarios, the problems of high quality of collected data including a lot of background noise interference, dense distribution of recognition targets and insufficient recognition of small targets are improved. Therefore, the DGS-YOLO model introduces a new attention mechanism by optimizing the feature extraction method and multi-scale feature map fusion method to improve the performance and generalization ability of the model on complex tasks.

[0084] The DGS-YOLO model introduces the DGSConv module in the low-resolution feature map of the feature extraction backbone network (BackBone). Because the feature map has a low resolution and deformable convolution is only calculated for half of the channels, multi-scale target feature learning is enhanced without adding additional computing overhead, and the recognizability of visual features is retained to a great extent. In the neck feature fusion network, the DGSConv and DCSP structures are used together to promote the flow and fusion of multi-scale target features in feature maps of adjacent levels, enabling the model to process local details and global context at the same time, improving adaptability to complex scenes. On resource-constrained devices, DCSP can optimize the model size and runtime resource consumption by adjusting the number of channels, making the model both efficient and practical.

[0085] In the Neck downsampling stage, CCJA is applied to adaptively process details and important areas in the image, and contextual information is used to compensate for tiny feature values ​​that are not learned by the neural network during feature extraction, further improving the accuracy and learning efficiency of target detection. In power inspection scenarios, most of the detection targets are located in the foreground. CA, as global self-attention, helps the model learn important channel-level information shared across different samples, which helps the model's generalization performance on new data. CCA limits the attention range to the local neighborhood of the same row and column, significantly reducing the computational complexity, and is more practical in large-scale image processing or identifying partially obscured detection targets. CCJA captures the correlation dependency of the attached detection targets on the high-voltage line tower through the combination of self-attention and cross-attention, flexibly adjusts the emphasis on different features, and achieves more efficient, accurate and robust visual understanding, providing strong support for solving complex power inspection tasks.

[0086] Figure 6 The specific application case of a DGS-YOLO model provided by the present application is shown. The DGS-YOLO model includes: a backbone network (BackBone) for extracting features; a neck (Neck) network, which connects the backbone network and the detection head (Detecthead) for feature fusion. The main process is as follows: the input feature map first extracts features through the backbone network (BackBone), including obtaining feature map levels P1, P2, P3, P4, and P5 through multiple convolutional layers (Conv), executing C2f modules, DGSConv modules, DSCP module operations, and SPFF respectively; the features are further processed through the neck network (Neck), including multiple DSCP operations, feature concatenation (Concat), upsampling (Upsample) operations, and CCJA, wherein the features of each feature map level P1, P2, P3, P4, and P5 are extracted through the feature extraction network (Catbackbone), and the concatenation (Concat) operation is performed after the features are extracted.

[0087] It should be understood that the above-mentioned feature map levels P1, P2, P3, P4, and P5 are obtained by different downsampling operations when the model processes the input image. Specifically, the original YOLO model backbone network performs multiple downsampling operations when performing feature extraction, thereby obtaining feature map levels of different scales, including P1, P2, P3, P4, and P5. These feature map levels have different resolutions, among which P1 has the highest resolution and P5 has the lowest resolution. These feature map levels realize multi-scale feature fusion through top-down and bottom-up aggregation paths in the neck network of the model to support target detection of different scales. Among them, the P1 level has the highest resolution and is usually used to detect smaller targets. The scale of its feature map is 1 / 2^1 (1 / 2) of the original image, that is, the resolution is half of the original image. The resolution of the P2 level is slightly lower, and the scale of its feature map is 1 / 2^2 (1 / 4) of the original image. The resolution of the P3 level is further reduced, and the scale of its feature map is 1 / 2^3 (1 / 8) of the original image.

[0088] In one embodiment, if Figure 7 As shown, the training process of the DGS-YOLO model includes:

[0089] Step 701: Collect multiple inspection image data of transmission line tower components and perform preprocessing to establish a training set and a test set.

[0090] Specifically, drone inspections are performed based on the 6G network to collect inspection images of target transmission line tower components. The collected and enhanced dataset contains 1,493 images, which are taken from different angles using drones. For example, Figure 8 As shown in (1), the drone took photos from top to bottom around the high-voltage line tower. The resolution of the original annotation data is 8000×6000, with a total of 789 images. Figure 8 (2), 200 images with fog and red insulators are selected from the SFID dataset to increase the proportion of red insulators. The preprocessing method includes enhancing the data by random rotation, adding motion blur, increasing and decreasing exposure, etc., and an additional 504 images are added, such as Figure 8 (3) As shown in the figure. The final dataset contains 8508 instances, including 1299 insulators (accounting for 15.27%), 6667 screws (accounting for 78.36%) and 542 anti-vibration hammers (accounting for 6.37%). The annotation target size needs to be larger than 40×40 pixels. On the side of the high-voltage line tower, the screws and nuts are in meshing state and are annotated as a whole object, such as Figure 6 As shown in the figure. In the annotation of the insulator, partially occluded and incomplete insulator strings are also annotated as insulator classes. This dataset uses 80% of the samples as training sets and 20% of the samples as test sets for model training and evaluation in the experiment.

[0091] Step 702: Input the training set into the untrained DGS-YOLO model for model training.

[0092] Specifically, the training and testing were deployed on an NVIDIA RTX 4090 GPU with CUDA version 11.7 and 24G video memory. The Windows 10 operating system was used to configure the deep learning framework of Pytorch 1.12 to build the DGS-YOLO model. The model input size was 1 280×1 280×3, and stochastic gradient descent was used as the optimizer. The initial learning rate was set to 0.01 and the final learning rate was 0.001. The learning rate was updated through the cosine annealing schedule, and mosaic optimization was turned off for the last 10 training rounds. A total of 100 rounds were trained, with momentum and weight decay of 0.937 and 0.000 5.

[0093] Step 703: Use the test set to test and verify the trained DGS-YOLO model; the verified DGS-YOLO model is deployed and used to perform image detection on target transmission line tower components.

[0094] Specific testing and verification methods, such as the mean average precision (mAP), a commonly used indicator in target detection to measure the accuracy of objects in the recognition and positioning images, and the intersection over union (IoU), which determines whether the target prediction box is accurate. mAP50 (AP50) is the average accuracy of all categories when the accuracy assessment IoU critical value is 0.5. When IoU ≥ 0.50, the predicted box must cover at least 50% of the area of ​​the real box to be judged as positive. mAP@[.50:.95] (AP50-95) is the average accuracy after weighted averaging of the IoU critical values ​​from 0.5 to 0.95 with a step size of 0.05. AP is represented by the area under the precision-recall (PR) curve, and the calculation formula is as follows:

[0095]

[0096] Among them, Tp represents the number of samples predicted to be positive and actually positive; Fp represents the number of samples predicted to be positive and actually negative; F N Indicates the number of samples predicted to be negative but actually positive. mAP calculates the mean of AP values ​​of multiple categories, and the formula is as follows:

[0097]

[0098] Among them, the subscript i represents the sequence number of different categories; N represents the total number of categories. In the experiment, in order to deeply analyze and optimize the model's recognition performance for targets of different sizes, the target size evaluation indicators are subdivided as follows: screws are used as representatives of small targets, and their mean average precision (mAPs) is focused on to measure the model's effectiveness in identifying subtle targets; shock-absorbing hammers are selected as typical of medium-sized targets, and insulators are selected as representatives of large targets, and their mean average precision (mAPM, mAPL) is used to evaluate the accuracy of the model in processing large-scale objects.

[0099] In order to test the effect of transmission line tower component recognition, the DGS-YOLO model of this application is compared with other models, as follows:

[0100] In order to compare with other feature extraction and fusion methods, it is verified that the DGS-YOLO model proposed in this application has excellent performance in power inspection target detection. C3, C2f, C3tr and C3str are cross-referenced in the two target detection algorithms YOLOv5 and YOLOv8 to prove the superiority of YOLOv8 in small target detection scenarios. In addition, different convolution methods (DCNv3, SlimNeck and DGSConv) and feature fusion layers (CABlock, DCSP, TSCODE) are applied in YOLOv8 to compare the model performance in many aspects such as mAP, GPU occupancy, and inference delay. Experimental tests show that the proposed feature extraction and fusion improvement method is different from the method of directly combining high-resolution feature layers or backbone network feature layers. It does not need to increase too many parameters and consume computing resources, and improves the accuracy and robustness of the detection effect.

[0101]

[0102] Table 1 Comparison test results

[0103] In Table 1, YOLOv8n-c2f shows significant performance improvement compared to YOLOv5n-c3, especially in small object detection, but the memory usage and parameter count have increased significantly. We tried to integrate Transformer (c3tr and c3str) in YOLOv5n and YOLOv8n, aiming to use the self-attention mechanism to guide the network to focus on the detected object, but in practical attempts, the overall accuracy improvement was not significant, and the GPU memory usage increased significantly.

[0104] The combination of DGSConv and DCSP has been proven to be effective, not only reducing the number of network layers and inference time by about 50%, but also reducing the number of parameters by 37%. At the same time, mAPs has been significantly improved by 19.6%, and the overall mAP has been improved by 4.6%, reflecting the balance between efficient feature extraction and model optimization.

[0105]

[0106] Table 2 Comparison of different attention mechanisms

[0107] As can be seen from Table 2, CCA effectively captures local spatial correlations by jointly querying pixels in the same row and column, which has a significant effect on improving the detection accuracy of small target detection. PSA and CBAM improve the detection accuracy of single-class attention mechanism (CA) by integrating channel and position attention, but the gain is not as obvious as expected because the network already has the ability to flexibly extract spatial features. Similarly, RCCA attempts to enhance the interactive perception between adjacent pixels by connecting two CCA modules in series, but experiments have shown that it does not further improve the detection accuracy. It may also be attributed to the fact that the DGSConv module in the existing model has a strong spatial feature extraction ability, which limits the effectiveness of RCCA. CA focuses on the relationship between channels in the feature map. Although it may inadvertently suppress the features of small targets, it plays a positive regulatory role for the overall model, especially when dealing with large targets, by balancing the characteristics of DGSConv and DCSP modules. CCJA integrates the parallel strategy of channel and context attention, which can improve the model performance more comprehensively than relying solely on channel attention, and the overall mAP50 is improved by 3.4%, showing the importance of effectively integrating different types of attention mechanisms in target detection tasks.

[0108] The DGS-YOLO model of the present application is deployed and applied after training is completed. Specifically, the trained DGS-YOLO model is deployed on an edge server and the detection structure of the target transmission line tower component is output.

[0109] Fig. 9 is a schematic block diagram of a transmission line tower component detection system 900 based on a 6G network and DGS-YOLO provided in an embodiment of the present application. Fig. 9 As shown, the system includes a drone 901, a 6G communication module 902 and an edge server 903. The drone 901 is used to collect inspection image data of target transmission line tower components; the 6G communication module 902 establishes a communication connection with the drone 901 for transmitting the inspection image data; the edge server 903 establishes a communication connection with the 6G communication module 902 for receiving the inspection image data; the edge server 903 is deployed with the above-mentioned trained DGS-YOLO model for image recognition of the received target transmission line tower components and outputting the corresponding detection results accordingly.

[0110] Drone 901 is a mobile platform used for inspections over power transmission lines. Drone 901 uses a high-resolution camera. The camera is equipped with a high-definition lens and can capture high-resolution images of small components on the transmission line, thus providing high-resolution images for building data sets. Drone 901 integrates an inertial navigation system (INS) and a global positioning system (GPS) to ensure that Drone 901 can accurately navigate in complex environments.

[0111] By utilizing the high bandwidth and low latency characteristics of the 6G network, the 6G communication module 902 establishes a communication connection with the drone 901, thereby enabling high bandwidth and low latency data transmission. The 6G communication module 902 ensures that the inspection image data collected by the drone 901 is transmitted to the remote edge server 903 in real time, achieving real-time processing and analysis, and ensuring the real-time nature of the detection task.

[0112] The edge server 903 is, for example, set in the control center of the power system or the ground operation site, and can be specifically set according to the actual usage. The edge server 903 establishes a communication connection with the 6G communication module 902 to receive and store the inspection image data transmitted from the drone 901. In addition, the edge server 903 is deployed with a trained DGS-YOLO model to run the target detection algorithm to perform image analysis and processing. At the same time, the edge server 903 supports remote operation, and controls the flight path and operation behavior of the drone 901 in real time through the 6G network 902, so as to facilitate the collection of ideal multi-scale target inspection image data.

[0113] The high-bandwidth characteristics of the 6G network lay the foundation for the ultra-high-definition video application of the UAV 901 inspection. The ultra-high-resolution video stream captured by the ultra-high-definition camera carried by the UAV 901 can be transmitted to the edge server in real time for image processing. The ultra-high-definition image increases the precision of small-size target observation and improves the accuracy of deep learning algorithms in identifying small scales.

[0114] The specific implementation steps of the transmission line tower component detection system based on 6G network and DGS-YOLO in this application are as follows:

[0115] Deploy and configure the above detection system: deploy drone 901 and edge server 903 in the power system, ensure that the 6G communication module 902 is connected normally, and plan the flight path and inspection tasks of drone 901 according to the actual transmission line layout;

[0116] UAV 901 inspection: UAV 901 is equipped with a high-resolution camera and flies according to a preset inspection path to capture images of transmission line towers and their accessories in real time, and transmits the data to edge server 903 through 6G communication module 902;

[0117] Processing and target detection of inspection image data of transmission line tower components: After receiving the image data, the edge server 903 performs real-time target detection and recognition through the DGS-YOLO algorithm to extract and analyze small targets in the image, such as screws, insulators, etc.

[0118] Result feedback and operation guidance: The edge server 903 generates target detection results and analysis reports and feeds them back to the operator. Based on the detection results, the system can adjust the flight trajectory of the drone 901 in real time or make necessary maintenance suggestions.

[0119] It should be understood that the specific process of each module executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.

[0120] It should also be understood that the division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present application may be integrated into a processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.

[0121] Fig.10 is a schematic block diagram of an electronic terminal provided in an embodiment of the present application. Fig.10 As shown, the electronic terminal includes: at least one processor 1001, a memory 1002, at least one network interface 1003 and a user interface 1005. The various components in the device are coupled together through a bus system 1004. It can be understood that the bus system 1004 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 1004 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Fig.10 In the specification, various buses are labeled as bus systems.

[0122] The user interface 1005 may include a display, a keyboard, a mouse, a trackball, a click gun, keys, buttons, a touch pad or a touch screen.

[0123] It is understood that the memory 1002 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), which is used as an external cache. By way of exemplary but not limiting explanation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM). The memory described in the embodiments of the present invention is intended to include but is not limited to these and any other suitable categories of memory.

[0124] The memory 1002 in the embodiment of the present invention is used to store various categories of data to support the operation of the electronic terminal 1000. Examples of these data include: any executable program for operating on the electronic terminal 1000, such as an operating system 10021 and an application 10022; the operating system 10021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application 10022 may include various applications, such as a media player (Media Player), a browser (Browser), etc., for implementing various application services. The transmission tower component detection method based on 6G network and DGS-YOLO provided in the embodiment of the present invention may be included in the application 10022.

[0125] The method disclosed in the above embodiment of the present invention can be applied to the processor 1001, or implemented by the processor 1001. The processor 1001 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 1001 or the instruction in the form of software. The above processor 1001 may be a general processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 1001 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present invention. The general processor 1001 can be a microprocessor or any conventional processor, etc. In combination with the steps of the accessory optimization method provided in the embodiment of the present invention, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0126] In an exemplary embodiment, the electronic terminal 1000 may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD) to execute the aforementioned method.

[0127] According to the method provided in the embodiment of the present application, the present application also provides a computer program product, which includes: a computer program code, when the computer program code is run on a computer, the computer executes Figure 1 The method in the illustrated embodiment.

[0128] According to the method provided in the embodiment of the present application, the present application also provides a computer-readable storage medium, which stores a program code, and when the program code is run on a computer, the computer executes Figure 1 The method in the illustrated embodiment.

[0129] The terms "component", "module", "system", etc. used in this specification are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program and / or a computer. By way of illustration, both applications running on a computing device and a computing device can be components. One or more components may reside in a process and / or an execution thread, and a component may be located on a computer and / or distributed between two or more computers. In addition, these components may be executed from various computer-readable media having various data structures stored thereon. Components may, for example, communicate through local and / or remote processes according to signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system and / or a network, such as the Internet interacting with other systems through signals).

[0130] Those of ordinary skill in the art will appreciate that the various illustrative logical blocks and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0131] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0132] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0133] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0134] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0135] In the above embodiments, the functions of each functional unit can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions (programs). When loading and executing computer program instructions (programs) on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. Computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integrations. Available media may be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., high-density digital video discs (DVDs), or semiconductor media (e.g., solid state disks (SSDs), etc.).

[0136] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0137] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0138] To sum up, the images taken by drone inspections of transmission line tower components have high resolution, and the inspection tasks include key components of multiple scales such as insulators, shock-absorbing hammers and screws. The current target detection algorithm has a low accuracy rate in identifying small-scale targets in multi-scale target detection. The present application provides a transmission line tower component detection method, system, terminal, medium and program product based on 6G network and DGS-YOLO. The high bandwidth and low latency characteristics of the 6G network are utilized, combined with the DGS-YOLO algorithm, and deformable convolution with halved computational complexity is introduced in the DGS-YOLO feature extraction. The features with offsets are extracted in groups to better fit the relevant areas of the small targets to be measured. The channel-context joint attention mechanism is further adopted to enhance the perception of different types of targets to be measured attached to the high-voltage tower, establish contextual pixel-level dependence on a single target, reduce the impact of environmental noise such as complex background, and achieve efficient and accurate detection of small-scale targets (such as screws, insulators, etc.) in the transmission line, greatly improving the efficiency of power inspection work and improving the level of intelligent management of power grids. At the same time, this application realizes automatic drone inspection of transmission line tower components, reduces the need for manual inspection, reduces operation and maintenance costs, and improves inspection efficiency; by accurately detecting damage to transmission line tower components, faults are discovered and handled in a timely manner, ensuring the stable operation of the power grid and improving the safety and reliability of the power system.

[0139] Therefore, the present application effectively overcomes various shortcomings in the prior art and has high industrial utilization value.

[0140] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A transmission line tower component detection method based on 6G network and DGS-YOLO, characterized in that: Applied to an electronic terminal, the method comprises: Collect inspection image data of target transmission line tower components; The inspection image data of the target transmission line tower component is input into a pre-deployed trained DGS-YOLO model, and the detection result of the target transmission line tower component is output; wherein the DGS-YOLO model includes a backbone network introducing a deformable grouped convolution module and a deformable cross-stage local module, and a neck network introducing a channel-context joint attention mechanism.

2. The method for detecting transmission line tower components based on 6G network and DGS-YOLO according to claim 1, characterized in that: The processing process of the backbone network includes: performing feature extraction and channel mixing through the deformable grouped convolution module, and performing feature enhancement and model optimization through the deformable cross-stage local module.

3. The method for detecting transmission line tower components based on 6G network and DGS-YOLO according to claim 2, characterized in that: The process of the deformable grouped convolution module performing feature extraction and channel mixing includes: Use a standard convolutional network to halve the number of channels in the input feature map; Extract features with offset by introducing offset; Use the splicing and shuffling tools to mix feature maps with different numbers of channels to evenly fuse the local feature information of the target image.

4. The method for detecting transmission line tower components based on 6G network and DGS-YOLO according to claim 2, characterized in that: The processing process of the deformable cross-stage local module includes: Extract features from the input feature map through a deformable convolutional layer that can learn additional offsets; Use cross-stage connections to fuse feature maps at different levels; The number of channels is adjusted to suit the current visual task, and features are shuffled through a transpose operation.

5. The method for detecting transmission line tower components based on 6G network and DGS-YOLO according to claim 1, characterized in that: The channel-context joint attention mechanism includes: a parallel channel attention branch and a context cross attention branch, which are used to capture the features between channels and within channels respectively.

6. The method for detecting transmission line tower components based on 6G network and DGS-YOLO according to claim 5, characterized in that: The channel attention branch converts the output of the model into a probability distribution based on a combination of a Softmax function and a Sigmoid function; and / or, The contextual cross-attention branch extracts a set of feature vectors in the same horizontal and vertical directions as the preset position from the Key vector, performs affinity operation on the feature vector set and the feature vector corresponding to the preset position in the Query vector, and generates an attention map containing adjacent pixel dependencies.

7. The method for detecting transmission line tower components based on 6G network and DGS-YOLO according to claim 1, characterized in that: The training process of the DGS-YOLO model includes: Collect multiple inspection image data of transmission line tower components and perform preprocessing to establish training sets and test sets; Inputting the training set into an untrained DGS-YOLO model for model training; The test set is used to test and verify the DGS-YOLO model after model training; the DGS-YOLO model that passes the verification is deployed and used to perform image detection on target transmission line tower components.

8. A transmission line tower component detection system based on 6G network and DGS-YOLO, characterized in that: include: UAVs, used to collect inspection image data of target transmission line tower components; A 6G communication module is used to establish a communication connection with the drone to transmit the inspection image data; An edge server, establishing a communication connection with the 6G communication module, for receiving the inspection image data; The edge server is deployed with the trained DGS-YOLO model as described in claim 1, which is used to perform image recognition on the received target transmission line tower component and output corresponding detection results accordingly.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

10. A computer program product, characterized in that The computer program product includes computer program code, and when the computer program code is executed on a computer, the computer is enabled to implement the method as described in any one of claims 1 to 7.

11. An electronic terminal comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Semantic segmentation method based on two-stream architecture

    CN112488115A

  • Dense citrus number detection method, equipment, storage medium and device

    CN114821102A

  • Small target identification method based on improved YOLOv5

    CN115661607A

  • Power equipment infrared image identification method and device and medium

    CN117746212A

  • Distribution network insulator defect detection method based on Officient-YOLOv8

    CN118247205A

Cited By

  • Optical glass detection method and system based on image enhancement

    CN119850589A

  • YOLOv5 photovoltaic module hot spot detection method based on feature map cross fusion

    CN119991549A

  • Lightweight AI-based distribution line unmanned aerial vehicle edge end real-time visual identification and target detection method and system

    CN121459227A