Identification method, device, equipment and storage medium for GIS multi-source partial discharge mode
By using the ShuffleNetV2 network and attention module in the YOLOv5 model, the multi-source partial discharge pattern in GIS equipment is identified, which solves the problems of low identification efficiency and large calculation load in the existing technology, and achieves fast and accurate multi-source partial discharge patterns. Identify.
Patent Information
- Application Number
- CN202410773440.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-17
AI Technical Summary
It is difficult to quickly identify multi-source partial discharge patterns in GIS equipment with existing technology. Traditional methods are inefficient and computationally intensive, and cannot meet the rapid detection needs of GIS equipment.
The backbone network of the YOLOv5 model is built based on the ShuffleNetV2 network, and feature fusion is performed through the feature extraction module and the attention module to reduce the amount of convolution calculations and increase the attention to high-dimensional semantic information to achieve the recognition of multi-source partial discharge patterns.
It improves the recognition efficiency and accuracy of the YOLOv5 model, reduces the amount of calculation, and meets the needs of GIS equipment to quickly identify multi-source partial discharge patterns.
Smart Images

Figure CN118366008B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision technology, and in particular to a method, device, equipment and storage medium for identifying multi-source partial discharge patterns of a GIS. Background Art
[0002] Gas Insulated Switchgear (GIS) is an important part of power grid operation, integrating high-voltage equipment such as circuit breakers and disconnectors into a metal grounded casing and filling it with insulating gas. During operation, GIS equipment is affected by external factors such as mechanical vibration for a long time, and insulation defects will inevitably appear in insulators and gas chambers, which gradually accumulate and evolve into GIS partial discharge (hereinafter referred to as partial discharge). GIS partial discharge will not immediately lead to overall insulation breakdown, but will continuously erode the surrounding insulating medium, eventually leading to the failure of the entire insulation system. Therefore, early detection of the occurrence of GIS partial discharge and pattern recognition of GIS partial discharge based on the characteristics of partial discharge signals of different insulation defects can guide the fault inspection and operation management of GIS equipment.
[0003] The identification of GIS partial discharge mode mainly uses the phase resolve partial discharge (PRPD) spectrum. The traditional method uses manual experience for diagnosis, which is highly subjective and inefficient. With the development of deep learning technology, target detection algorithms have begun to be used in some related technologies to identify GIS partial discharge, which can more accurately identify single-source partial discharge.
[0004] However, GIS partial discharge may also be multi-source partial discharge, that is, there are multiple insulation defects in the GIS equipment. If GIS multi-source partial discharge is to be identified, there are many feature dimensions involved. The recognition accuracy of the two-stage algorithm such as Faster R-Cnn is high, but the network parameters are large, the training speed and detection speed are slow, and it cannot meet the detection needs of GIS equipment. YOLOv5 is a more commonly used single-stage algorithm, which consists of a backbone network (Backbone), a fusion network (Neck) and a head network (Head). Although it reduces the number of parameters and the amount of calculation compared to the two-stage algorithm, in order to ensure the accuracy of recognition, more convolution operations are still required to increase the number of features, and the amount of calculation is still large, which cannot meet the needs of quickly identifying GIS multi-source partial discharge patterns. Summary of the invention
[0005] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a method, device, equipment, and storage medium for identifying multi-source partial discharge patterns in GIS, which can reduce the amount of model calculation and improve the recognition efficiency.
[0006] In a first aspect, an embodiment of the present invention provides a method for identifying a multi-source partial discharge mode of a GIS, comprising:
[0007] A backbone network of a YOLOv5 model is constructed based on a ShuffleNetV2 network, wherein the backbone network sequentially includes a plurality of feature extraction modules and a first attention module, the feature extraction module includes a plurality of ShuffleNetV2 modules, the ShuffleNetV2 module includes a first shuffle unit and / or a second shuffle unit, the first shuffle unit includes a first branch and a second branch, the second shuffle unit includes a second branch and a third branch, the second branch is provided with a plurality of first convolution units, the first convolution unit includes a first convolution layer, and the convolution kernel of the first convolution layer is 1×1;
[0008] Determine the ShuffleNetV2 module to which the first shuffle unit and the second shuffle unit are sequentially connected as a target module, replace the first shuffle unit of the target module with a third shuffle unit, and replace the second shuffle unit with a fourth shuffle unit, wherein the third shuffle unit includes the first branch and the fourth branch, the fourth shuffle unit includes the third branch and the fourth branch, and the number of the first convolution units of the fourth branch is less than that of the second branch;
[0009] Input the PRPD spectrum to be tested into the trained YOLOv5 model;
[0010] Obtaining the module mixed feature graphs extracted by each of the feature extraction modules, inputting the module mixed feature graph of the last feature extraction module into the first attention module, and obtaining the first attention feature graph after increasing the attention of the high-dimensional semantic information of the module mixed feature graph;
[0011] Feature fusion and pattern recognition are performed based on the mixed feature maps of each module and the first attention feature map to obtain a multi-source partial discharge pattern recognition result.
[0012] According to some embodiments of the present invention, the first branch does not include a convolution layer, the second branch includes a first convolution unit, a second convolution unit, and a first convolution unit in sequence, the third branch includes a second convolution unit and a first convolution unit in sequence, the first convolution unit includes a first convolution layer, a first BN layer, and a first ReLu layer in sequence, the second convolution unit includes a second convolution layer and a second BN layer in sequence, the convolution kernel of the second convolution layer is larger than that of the first convolution layer, the first shuffle unit further includes a first fusion layer and a first channel shuffle layer in sequence, the second shuffle unit further includes a second fusion layer and a second channel shuffle layer in sequence, and before replacing the first shuffle unit of the target module with a third shuffle unit, the method further includes:
[0013] Based on the second branch, the first convolution unit after the second convolution unit is removed, the first ReLu layer of the remaining first convolution unit is replaced with a first LeakyReLu layer, a second LeakyReLu layer is added after the second BN layer of the second convolution layer, an output end of the second LeakyReLu layer is connected to the first fusion layer, and the modified second branch is determined as the fourth branch;
[0014] Based on the third branch, replacing the first ReLu layer of the first convolution unit with the first LeakyReLu layer, connecting the output end of the first LeakyReLu layer to the second fusion layer, and determining the modified third branch as the fifth branch;
[0015] The third shuffling unit is constructed based on the first branch, the fourth branch, the first fusion layer and the first channel shuffling layer, and the fourth shuffling unit is constructed based on the fifth branch, the fourth branch, the second fusion layer and the second channel shuffling layer.
[0016] According to some embodiments of the present invention, the multiple feature extraction modules respectively include a first extraction module, a second extraction module and a third extraction module, the backbone network also includes a convolutional pooling layer and a first lightweight pyramid pooling module, the first lightweight pyramid pooling module includes a first GhostConv layer and multiple maximum pooling layers, and the module mixed feature map extracted by each of the feature extraction modules is obtained, and the module mixed feature map of the last feature extraction module is input into the first attention module, including:
[0017] Inputting the PRPD spectrum to be tested into a convolutional pooling layer to obtain an initial feature map, wherein the resolution of the initial feature map is smaller than that of the PRPD spectrum to be tested, and the height and width of the initial feature map are the same;
[0018] Inputting the initial feature map into the first extraction module for feature extraction and shuffling to obtain a first mixed feature map, wherein the resolution of the first mixed feature map is half of the initial feature map;
[0019] Inputting the first mixed feature map into the second extraction module for feature extraction and shuffling to obtain a second mixed feature map, wherein the resolution of the second mixed feature map is half of the first mixed feature map;
[0020] Inputting the second mixed feature map into the third extraction module for feature extraction and shuffling to obtain a third mixed feature map, wherein the resolution of the third mixed feature map is half of that of the second mixed feature map;
[0021] Based on the third mixed feature map, a first pooled feature map is obtained by sequentially performing maximum pooling and convolution processing of the first lightweight pyramid pooling module, and the first pooled feature map is input into the first attention module, wherein the resolution of the first pooled feature map is 1×1, and the number of channels of the first pooled feature map is half of the number of channels of the third mixed feature map.
[0022] According to some embodiments of the present invention, after constructing the backbone network of the YOLOv5 model based on the ShuffleNetV2 network, the method further includes:
[0023] Construct the first attention module based on CELU function and SE attention mechanism;
[0024] Obtain a preset C3 module, wherein the C3 module sequentially includes a third convolutional layer, a third fusion layer, and a fourth convolutional layer;
[0025] Adding a GBneck unit between the third convolutional layer and the third fusion layer, replacing the third convolutional layer and the fourth convolutional layer with a third GhostConv layer, and determining the updated C3 module as a reference GC3 module, wherein the GBneck unit includes two second GhostConv layers in sequence;
[0026] Construct a second attention module based on the reference GC3 module and the Transformer encoder;
[0027] A lightweight FPN network is constructed based on the second attention module and the reference GC3 module, and the lightweight FPN network is determined as a fusion network of the YOLOv5 model.
[0028] According to some embodiments of the present invention, constructing a lightweight FPN network based on the second attention module and the reference GC3 module includes:
[0029] Determine the second attention module as a detection head of the lightweight FPN network and connect it to an output end of the first attention module;
[0030] Constructing a first GC3 module and a second GC3 module based on the reference GC3 module, wherein the output resolution of the first GC3 module is smaller than that of the second GC3 module;
[0031] Construct a first fusion module based on the first upsampling layer, the second lightweight pyramid pooling module, the fourth fusion layer and the first GC3 module;
[0032] Construct a second fusion module based on the second upsampling layer, the third lightweight pyramid pooling module, the fifth fusion layer and the second GC3 module;
[0033] The second attention module, the first fusion layer and the second fusion layer are connected in sequence to obtain the lightweight FPN network.
[0034] According to some embodiments of the present invention, the YOLOv5 model further includes a head network, the head network includes a first YOLO Head, a second YOLO Head and a third YOLO Head, and the feature fusion and pattern recognition are performed based on the mixed feature maps of each module and the first attention feature map to obtain a multi-source partial discharge pattern recognition result, including:
[0035] Inputting the first attention feature map into the second attention module to obtain a second attention feature map, inputting the second attention feature map into the first YOLO head, and predicting a first prediction result through the first YOLO head, wherein the second attention module is used to increase the attention of the medium-dimensional semantic information and the low-dimensional semantic information;
[0036] Inputting the second attention feature map and the second mixed feature map into the first fusion module to obtain a first fused feature map, inputting the first fused feature map into the second YOLO head, and predicting a second prediction result through the second YOLO head, wherein the dimension of the second prediction result is lower than that of the first prediction result;
[0037] Inputting the first fused feature map and the first mixed feature map into the second fusion module to obtain a second fused feature map, inputting the second fused feature map into the third YOLO head, and predicting a third prediction result through the third YOLOhead, wherein the dimension of the third prediction result is lower than that of the second prediction result;
[0038] The multi-source partial discharge pattern recognition result is determined based on the first prediction result, the second prediction result and the third prediction result.
[0039] According to some embodiments of the present invention, before inputting the PRPD spectrum to be tested into the trained YOLOv5 model, the method further includes:
[0040] Acquire multiple single-source partial discharge sample sets, wherein the single-source partial discharge sample sets include multiple single-source partial discharge sample graphs, and each single-source partial discharge sample set corresponds to a different partial discharge mode;
[0041] Training the YOLOv5 model based on a plurality of the single-source partial discharge sample sets;
[0042] A target partial discharge signal spectrum is collected from the device to be tested according to a preset collection time, and the target partial discharge signal spectrum is converted into the PRPD spectrum to be tested based on a preset target resolution.
[0043] In a second aspect, an embodiment of the present invention provides a device for identifying a GIS multi-source partial discharge pattern, comprising at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the method for identifying a GIS multi-source partial discharge pattern as described in the first aspect above.
[0044] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a GIS multi-source partial discharge pattern recognition device as described in the second aspect above.
[0045] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the method for identifying multi-source partial discharge patterns of GIS as described in the first aspect above.
[0046] The method for identifying GIS multi-source partial discharge patterns according to an embodiment of the present invention has at least the following beneficial effects: constructing a backbone network of a YOLOv5 model based on a ShuffleNetV2 network, wherein the backbone network sequentially includes a plurality of feature extraction modules and a first attention module, the feature extraction module includes a plurality of ShuffleNetV2 modules, the ShuffleNetV2 module includes a first shuffle unit and / or a second shuffle unit, the first shuffle unit includes a first branch and a second branch, the second shuffle unit includes a second branch and a third branch, the second branch is provided with a plurality of first convolution units, the first convolution unit includes a first convolution layer, and the convolution kernel of the first convolution layer is 1×1; determining the ShuffleNetV2 module to which the first shuffle unit and the second shuffle unit are sequentially connected as a target pattern. block, replacing the first shuffling unit of the target module with a third shuffling unit, and replacing the second shuffling unit with a fourth shuffling unit, wherein the third shuffling unit includes the first branch and the fourth branch, the fourth shuffling unit includes the third branch and the fourth branch, and the number of the first convolutional units of the fourth branch is less than that of the second branch; inputting the PRPD spectrum to be tested into the trained YOLOv5 model; obtaining the module mixed feature graphs extracted by each of the feature extraction modules, inputting the module mixed feature graph of the last feature extraction module into the first attention module, and increasing the attention degree of the high-dimensional semantic information of the module mixed feature graph to obtain the first attention feature graph; performing feature fusion and pattern recognition based on each of the module mixed feature graphs and the first attention feature graph to obtain a multi-source partial discharge pattern recognition result. According to the technical solution of the embodiment of the present invention, multiple target modules can be identified from a large number of ShuffleNetV2 modules in the network based on the number and arrangement of shuffle units, and the redundant first convolutional layer in the target module is removed by branch replacement, thereby effectively reducing the computational complexity of the convolution calculation. At the same time, the attention paid to high-dimensional semantic information by the first attention module compensates for the impact of the reduction in the number of channels on the recognition accuracy of high-dimensional semantic information, thereby improving the recognition efficiency and accuracy of the YOLOv5 model. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 It is a flow chart of a method for identifying a GIS multi-source partial discharge pattern provided by an embodiment of the present invention;
[0048] Figure 2 is a structural diagram of a YOLOv5 model provided by another embodiment of the present invention;
[0049] Figure 3 is a structural diagram of a first shuffling unit and a third shuffling unit provided by another embodiment of the present invention;
[0050] Figure 4 is a structural diagram of a second shuffling unit and a fourth shuffling unit provided by another embodiment of the present invention;
[0051] Figure 5 is a structural diagram of a lightweight pyramid pooling layer provided by another embodiment of the present invention;
[0052] Figure 6 is a structural diagram of a C3 module and a GC3 module provided by another embodiment of the present invention;
[0053] Figure 7 is a structural diagram of a second attention module provided by another embodiment of the present invention;
[0054] Figure 8 is a complete flow chart of a method for identifying GIS multi-source partial discharge patterns provided by another embodiment of the present invention;
[0055] Fig. 9 It is a structural diagram of a device for identifying GIS multi-source partial discharge patterns provided in another embodiment of the present invention. DETAILED DESCRIPTION
[0056] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0057] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0058] In the description of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0059] First, the terms mentioned in this embodiment are explained:
[0060] ShuffleNetV2: ShufflenetV2 is an open source deep learning model proposed in 2018. It is committed to balancing computational efficiency and model performance, and is particularly suitable for resource-limited devices such as mobile devices or edge computing environments. ShufflenetV2 uses an innovative channel shuffle operation, which can enhance information exchange between models without increasing additional computational workloads, thereby improving the generalization ability of the model. In addition, it introduces "GroupConvolution" to reduce computational complexity, while the "Bottleneck" design further improves model performance. In terms of performance, ShufflenetV2 demonstrates comparable accuracy to more complex models such as ResNet, but its computing speed far exceeds the latter. This gives it a significant advantage in real-time image recognition and classification tasks. ShufflenetV2 has a smaller weight and memory footprint while maintaining high accuracy and speed. In addition, it also provides multiple pre-trained model versions to adapt to different computing resource requirements.
[0061] Stage: Stage is a stage of ShuffleNetV2, which consists of a series of ShuffleNetV2 units. In each Stage, the number of channels of ShuffleNetV2 units gradually increases to increase the expressiveness of the model. The ShuffleNetV2 units in each Stage are stacked in sequence, where the number of channels of the input feature map of the first ShuffleNetV2 unit is the same as the number of channels of the output feature map of the previous Stage. By stacking multiple Stages, ShuffleNetV2 gradually extracts richer features.
[0062] LeakyReLU activation function: It is a commonly used activation function in deep learning. It is mainly used to solve the "dead ReLU" problem that may occur in the training process of the rectified linear unit (ReLU). When the input value of LeakyReLU is less than 0, it assigns a non-zero slope to avoid the problem of neuron "death", so that the model can more effectively use all features during the training process.
[0063] Ghost Convolution: GhostConv is a lightweight convolutional neural network module that aims to generate more feature maps through low-cost operations, thereby improving the computational efficiency of the network.
[0064] Lightweight pyramid pooling (GhostConv Spatial Pyramid Pooling-Fast, GSPPF) module: The GSPPF module is obtained by improving the 1x1 ordinary conv to the GhostConv layer in the original multi-resolution fast pyramid pooling (Spatial Pyramid Pooling-Fast, SPPF) module structure.
[0065] Continuous Exponential Linear Unit (CELU) activation function: The CELU activation function combines the features of ReLU and Exponential Linear Unit (ELU). The mathematical expression of the CELU activation function is similar to ELU, but with a smaller positive slope α in the negative region instead of the exponential part in ELU. In ReLU, the gradient is 1 for all positive input values, but 0 for negative values, which can lead to the "dead ReLU" problem. CELU alleviates this problem by allowing tiny gradients in the negative region.
[0066] Squeeze-and-Excitation (SE): SE is an attention mechanism originally proposed in SE-Net (Squeeze-and-Excitation Networks) to improve the performance of convolutional neural networks. The SE module adaptively recalibrates the feature responses of channels by explicitly modeling the interdependencies between channels. This is achieved in two steps: Squeeze and Excitation. The Squeeze operation compresses each two-dimensional feature channel into a real number with a global receptive field through global average pooling. The Excitation operation uses a simple gating mechanism (such as a bottleneck structure consisting of two fully connected layers) to learn the weights of each channel. Finally, these weights are applied to the original feature map to recalibrate the channels.
[0067] Light Feature Pyramid Network (LightFPN): A lightweight feature pyramid network designed to provide efficient and accurate multi-scale feature fusion.
[0068] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.
[0069] The embodiment of the present invention provides a method, device, equipment, and storage medium for identifying a multi-source partial discharge pattern of a GIS, wherein the method for identifying a multi-source partial discharge pattern of a GIS comprises: constructing a backbone network of a YOLOv5 model based on a ShuffleNetV2 network, wherein the backbone network sequentially comprises a plurality of feature extraction modules and a first attention module, the feature extraction module comprises a plurality of ShuffleNetV2 modules, the ShuffleNetV2 module comprises a first shuffle unit and / or a second shuffle unit, the first shuffle unit comprises a first branch and a second branch, the second shuffle unit comprises a second branch and a third branch, the second branch is provided with a plurality of first convolution units, the first convolution unit comprises a first convolution layer, and the convolution kernel of the first convolution layer is 1×1; sequentially connecting the first shuffle unit and the second shuffle unit to a first convolution layer; and The huffleNetV2 module is determined as the target module, and the first shuffle unit of the target module is replaced by the third shuffle unit, and the second shuffle unit is replaced by the fourth shuffle unit, wherein the third shuffle unit includes the first branch and the fourth branch, the fourth shuffle unit includes the third branch and the fourth branch, and the number of first convolution units of the fourth branch is less than that of the second branch; the PRPD spectrum to be tested is input into the trained YOLOv5 model; the module mixed feature maps extracted by each feature extraction module are obtained, and the module mixed feature map of the last feature extraction module is input into the first attention module, and the first attention feature map is obtained after the attention of the high-dimensional semantic information of the module mixed feature map is increased; feature fusion and pattern recognition are performed based on each module mixed feature map and the first attention feature map to obtain the multi-source partial discharge pattern recognition result. According to the technical solution of the embodiment of the present invention, multiple target modules can be identified from a large number of ShuffleNetV2 modules in the network based on the number and arrangement of shuffle units, and the redundant first convolutional layer in the target module is removed by branch replacement, thereby effectively reducing the computational complexity of the convolution calculation. At the same time, the attention paid to high-dimensional semantic information by the first attention module compensates for the impact of the reduction in the number of channels on the recognition accuracy of high-dimensional semantic information, thereby improving the recognition efficiency and accuracy of the YOLOv5 model.
[0070] The following drawings further illustrate the technical solutions of the embodiments of the present invention.
[0071] Reference Figure 1 , Figure 1 A flowchart of a method for identifying a GIS multi-source partial discharge mode is provided in an embodiment of the present invention. The method for identifying a GIS multi-source partial discharge mode includes but is not limited to the following steps:
[0072] S10, constructing a backbone network of a YOLOv5 model based on a ShuffleNetV2 network, wherein the backbone network sequentially includes a plurality of feature extraction modules and a first attention module, the feature extraction module includes a plurality of ShuffleNetV2 modules, the ShuffleNetV2 module includes a first shuffle unit and / or a second shuffle unit, the first shuffle unit includes a first branch and a second branch, the second shuffle unit includes a second branch and a third branch, the second branch is provided with a plurality of first convolution units, the first convolution unit includes a first convolution layer, and the convolution kernel of the first convolution layer is 1×1;
[0073] S20, determining the ShuffleNetV2 module to which the first shuffle unit and the second shuffle unit are sequentially connected as the target module, replacing the first shuffle unit of the target module with the third shuffle unit, and replacing the second shuffle unit with the fourth shuffle unit, wherein the third shuffle unit includes a first branch and a fourth branch, the fourth shuffle unit includes a third branch and a fourth branch, and the number of first convolution units of the fourth branch is less than that of the second branch;
[0074] S30, inputting the PRPD map to be tested into the trained YOLOv5 model;
[0075] S40, obtaining the module mixed feature graphs extracted by each feature extraction module, inputting the module mixed feature graph of the last feature extraction module into the first attention module, and increasing the attention of the high-dimensional semantic information of the module mixed feature graph to obtain the first attention feature graph;
[0076] S50, performing feature fusion and pattern recognition based on the mixed feature maps of each module and the first attention feature map to obtain a multi-source partial discharge pattern recognition result.
[0077] It should be noted that this embodiment builds the backbone network of the YOLOv5 model based on the ShufflenetV2 network. The backbone network includes multiple feature extraction modules and an attention module, such as Figure 2 As shown, the feature extraction module is a Stage of the ShufflenetV2 network, each Stage is composed of multiple ShuffleNetV2 modules, and the ShuffleNetV2 module is composed of multiple ShuffleNetV2 units. The first shuffle unit and the second shuffle unit of this embodiment are ShuffleNetV2 units with different network layer structures, such as Figure 3 and Figure 4 As shown, the first shuffle unit includes a first branch and a second branch, and the second shuffle unit includes a second branch and a third branch. The branches of this embodiment are used to characterize the distribution of network layers, that is, the second branch of the first shuffle unit and the second branch of the second shuffle unit include the same network layer, which will not be repeated later.
[0078] It should be noted that the ShufflenetV2 network includes multiple ShuffleNetV2 modules, and the number of ShuffleNetV2 units in each ShuffleNetV2 module is not necessarily the same. Some ShuffleNetV2 modules may include only the first shuffle unit, other ShuffleNetV2 modules may include only the second shuffle unit, and some ShuffleNetV2 modules may include the first shuffle unit and the second shuffle unit. In this embodiment, the ShuffleNetV2 module that includes both the first shuffle unit and the second shuffle unit, and the output of the first shuffle unit is used as the input of the second shuffle unit, is determined as the target module. After the backbone network is constructed, the ShufflenetV2 network can be scanned to determine the number of ShuffleNetV2 units in each ShuffleNetV2 module, thereby locating the target module.
[0079] It should be noted that for the first convolution layer with a convolution kernel of 1×1, its function is to increase the number of channels, thereby increasing the dimension of the feature, but the first convolution layer does not change the resolution of the feature map. Figure 3 and Figure 4 , the second branches of the first shuffle unit and the second shuffle unit include the first convolution layer (1X1), the second convolution layer (3X3) and the first convolution layer (1X1) in sequence. For the ShuffleNetV2 module including only the first shuffle unit or the second shuffle unit, the resolution of the feature map is reduced after the depth convolution of the second convolution layer, and the number of channels is increased by a first convolution layer, which can better characterize the feature information of the feature map; while for the target module, the feature map obtained by the first shuffle unit will be output to the second shuffle unit, and will pass through a first convolution layer before and after the depth convolution of the second shuffle unit, so that the feature map undergoes two channel expansions after the depth convolution of the first shuffle unit, and the number of channels and the amount of calculation are greatly increased without much change in resolution. Therefore, in the two second branches of the target module, the first convolution layer after the second convolution layer is actually a redundant convolution layer, which is an unnecessary convolution calculation. Based on this, after determining the target module, this embodiment replaces the first shuffling unit with the third shuffling unit, and replaces the second shuffling unit with the fourth shuffling unit, thereby removing the first convolutional layer after the second convolutional layer in the target module, reducing the number of convolutional layers of the target module, and thus reducing the amount of convolution calculation.
[0080] It is worth noting that this embodiment does not directly transform the first shuffle unit in the ShufflenetV2 network into the third shuffle unit and the second shuffle unit into the fourth shuffle unit in the model design stage. For ShufflenetV2 modules other than the target module, it is still necessary to retain the original structure to avoid the insufficient number of output channels affecting the accuracy of subsequent recognition. After completing the model construction, this embodiment identifies and updates the backbone network of the YOLOv5 model, identifies the target module including multiple shuffle units by scanning the model, removes the redundant first convolution layer in the target module by replacing the shuffle unit, and reduces the convolution calculation amount of the target module. After the module identification and replacement operation of this embodiment, the ShufflenetV2 network includes the first shuffle unit, the second shuffle unit, the third shuffle unit and the fourth shuffle unit at the same time.
[0081] It should be noted that the training of the YOLOv5 model can be completed using the sample data set of GIS multi-source partial discharge. For example, a single-source partial discharge sample set is collected for each type of GIS single-source partial discharge, and multiple single-source partial discharge sample sets are simultaneously input into the YOLOv5 model for training, so that the YOLOv5 model can learn the corresponding single-source partial discharge pattern from each single-source partial discharge sample set. When the PRPD spectrum to be tested is input, each single-source partial discharge can be identified, and then the identified results are combined into the final multi-source partial discharge pattern recognition result.
[0082] It should be noted that feature extraction and shuffle mixing through the ShufflenetV2 module are technologies well known to those skilled in the art, and the specific feature processing flow will not be described in detail here. After obtaining the module mixed feature map, according to the description of the above embodiment, since the number of the first convolutional layer is reduced, and YOLOv5 detects the semantic information of the image, the reduction in the number of channels means that the attention to high-dimensional semantic information is low. Therefore, this embodiment further adds a first attention module to the backbone network while reducing the first convolutional layer. The first attention module increases the attention to high-dimensional semantic information as compensation for reducing the attention of the first convolutional layer, so that the high-dimensional semantic information of the first attention feature map can have sufficient attention, thereby improving the accuracy of subsequent pattern recognition.
[0083] It should be noted that if Figure 2 As shown, in order to further reduce the amount of computation, this embodiment can also remove the global pooling layer and the fully connected layer in the original ShufflenetV2 network, which is not limited here.
[0084] In addition, in one embodiment, referring to Figure 3 and Figure 4, the first branch does not include a convolution layer, the second branch includes a first convolution unit, a second convolution unit, and a first convolution unit in sequence, the third branch includes a second convolution unit and a first convolution unit in sequence, the first convolution unit includes a first convolution layer, a first BN layer, and a first ReLu layer in sequence, the second convolution unit includes a second convolution layer and a second BN layer in sequence, the convolution kernel of the second convolution layer is larger than that of the first convolution layer, the first shuffle unit also includes a first fusion layer and a first channel shuffle layer in sequence, and the second shuffle unit also includes a second fusion layer and a second channel shuffle layer in sequence; refer to Figure 8 ,exist Figure 1 In step S20 shown in the figure, before replacing the first shuffle unit of the target module with the third shuffle unit, the following steps are also included but not limited to:
[0085] S21, based on the second branch, remove the first convolution unit after the second convolution unit, replace the first ReLu layer of the remaining first convolution unit with the first LeakyReLu layer, add a second LeakyReLu layer after the second BN layer of the second convolution layer, connect the output end of the second LeakyReLu layer to the first fusion layer, and determine the modified second branch as the fourth branch;
[0086] S22, based on the third branch, replacing the first ReLu layer of the first convolutional unit with the first LeakyReLu layer, connecting the output end of the first LeakyReLu layer to the second fusion layer, and determining the modified third branch as the fifth branch;
[0087] S23, constructing a third shuffling unit based on the first branch, the fourth branch, the first fusion layer and the first channel shuffling layer, and constructing a fourth shuffling unit based on the fifth branch, the fourth branch, the second fusion layer and the second channel shuffling layer.
[0088] It should be noted that if Figure 3 and Figure 4 As shown, the first convolution unit of this embodiment includes a first convolution layer, a first BN layer and a first ReLu layer. The convolution kernel of the first convolution layer is 1×1. The second convolution unit includes a second convolution layer and a second BN layer. The convolution kernel of the second convolution layer is 3×3. Deep convolution can be achieved through the second convolution layer. The parameters of the first ReLu layer, the first BN layer and the second BN layer can be set according to actual needs, and this embodiment does not limit this.
[0089] It should be noted that, according to the description of the above embodiment, the first branch and the second branch are used to characterize the calculation path obtained by different combinations of convolution units, so the second branches of the first shuffle unit and the second shuffle unit are the same, and the second branch includes two first convolution units, and the parameters of each network layer are the same. The first fusion layer and the second fusion layer of this embodiment can be the same network layer. Due to the different fusion objects, the output of the first fusion layer is actually the output of the second branch, and the second fusion layer needs to fuse the outputs of the second branch and the third branch, so they are distinguished by the first and the second. The first channel shuffle layer and the second channel shuffle layer can perform channel shuffle on the features output by the fusion layer. The principle and process of channel shuffling of the ShufflenetV2 network are well known to those skilled in the art, and will not be elaborated here.
[0090] It should be noted that the fourth branch of this embodiment is constructed based on the second branch. A second branch consisting of a first convolution unit, a second convolution unit, and a first convolution unit can be copied from the ShufflenetV2 network, and the second first convolution unit is removed, and the first ReLu layer of the remaining first convolution unit is replaced with the first LeakyReLu layer; for the second convolution unit, since the first convolution layer is no longer included for activation, a second LeakyReLu layer is added after the second BN layer of the second convolution unit for feature activation. After the construction of the fourth branch is completed, a first shuffle unit is copied, and then the second branch is replaced by the fourth branch to obtain the third shuffle unit. The process of constructing the fifth branch based on the third branch and then obtaining the fourth shuffle unit can refer to the description of the above embodiment, which will not be repeated here.
[0091] It should be noted that, in this embodiment, the ReLU activation function of the original second branch is changed to the LeakyReLU activation function, which can further save computing resources and improve the data mapping relationship.
[0092] In addition, in one embodiment, referring to Figure 2 , the multiple feature extraction modules include a first extraction module, a second extraction module and a third extraction module respectively, the backbone network also includes a convolutional pooling layer and a first lightweight pyramid pooling module, the first lightweight pyramid pooling module includes a first GhostConv layer and multiple maximum pooling layers; refer to Figure 8 , Figure 1 The step S40 shown also includes but is not limited to the following steps:
[0093] S41, inputting the PRPD spectrum to be tested into the convolutional pooling layer to obtain an initial feature map, wherein the resolution of the initial feature map is smaller than that of the PRPD spectrum to be tested, and the height and width of the initial feature map are the same;
[0094] S42, inputting the initial feature map into a first extraction module for feature extraction and shuffling to obtain a first mixed feature map, wherein the resolution of the first mixed feature map is half of the initial feature map;
[0095] S43, inputting the first mixed feature map into a second extraction module for feature extraction and shuffling to obtain a second mixed feature map, wherein the resolution of the second mixed feature map is half of the first mixed feature map;
[0096] S44, inputting the second mixed feature map into a third extraction module for feature extraction and shuffling to obtain a third mixed feature map, wherein the resolution of the third mixed feature map is half of the second mixed feature map;
[0097] S45, based on the third mixed feature map, the maximum pooling and convolution processing of the first lightweight pyramid pooling module are performed in sequence to obtain a first pooled feature map, and the first pooled feature map is input into the first attention module, wherein the resolution of the first pooled feature map is 1×1, and the number of channels of the first pooled feature map is half of the number of channels of the third mixed feature map.
[0098] It should be noted that if Figure 2 As shown, the first extraction module of this embodiment is Figure 2 In Stage 1 shown, the second extraction module is Figure 2 In Stage 2 shown, the third extraction module is Figure 2 The Stage 3 shown, after obtaining the PRPD spectrum to be tested, is first processed by the convolutional pooling layer. The resolution of the PRPD spectrum to be tested in this embodiment is 256*64, and the resolution of the initial feature map obtained after the convolutional pooling layer is 64*64, that is, the height and width are the same, and it has 24 channels.
[0099] It should be noted that, according to the description of the above embodiment, each Stage includes multiple ShufflenetV2 modules, so feature extraction and shuffling can be achieved. The resolution of the feature map will continue to decrease, but the number of channels will continue to increase, that is, the dimension will continue to increase, such as Figure 2 As shown, the resolution of the first mixed feature map output by the first extraction module of this embodiment is reduced from 64*64 to 32*32, and the number of channels is increased from 24 to 120. Feature extraction and shuffling are performed by the second extraction module and the third extraction module, so that the resolution is reduced stage by stage. You can refer to the description of the first extraction module above, which will not be repeated here. Finally, the scale of the first mixed feature map is 32*32*120, the scale of the second mixed feature map is 16*16*232, and the scale of the third mixed feature map is 8*8*464.
[0100] It is worth noting that if the redundant first convolution layer in the target module is not removed, the number of channels output by each Stage will further increase, which will not only increase the amount of calculation itself, but also increase the complexity of subsequent calculations. Therefore, the embodiment can improve the calculation efficiency and effectively reduce the calculation complexity by removing the redundant first convolution layer of the target module.
[0101] It should be noted that, in this embodiment, a first attention module is added after the third extraction module to increase the attention of high-dimensional semantic information, which will not be repeated here, and a first lightweight pyramid pooling module is further added before the first attention module, such as Figure 2 The structure of the GSPPF of this embodiment can refer to the first GSPPF shown in Figure 5 As shown, it includes the first GhostConv layer, 3 maximum pooling layers, the sixth fusion layer and the first GhostConv layer in sequence. The scale of the first maximum pooling layer is 5*5, the scale of the second maximum pooling layer is 9*9, and the scale of the third maximum pooling layer is 13*13. The output of the first GhostConv layer and each maximum pooling layer is connected to the sixth fusion layer. After the feature fusion is performed in the sixth fusion layer, it is output after passing through a first GhostConv layer. GSPPF replaces the previous convolution layer with the first GhostConv layer, and can replace the high-computation convolution operation with a low-computation linear change to obtain a redundant feature map. On the premise of ensuring the module capability, the number of model parameters is reduced and the model robustness is improved.
[0102] In addition, in one embodiment, referring to Figure 8 , in execution Figure 1 After step S10, the following steps are also included but not limited to:
[0103] S11, build the first attention module based on CELU function and SE attention mechanism;
[0104] S12, obtaining a preset C3 module, wherein the C3 module includes a third convolutional layer, a third fusion layer, and a fourth convolutional layer in sequence;
[0105] S13, adding a GBneck unit between the third convolutional layer and the third fusion layer, replacing the third convolutional layer and the fourth convolutional layer with the third GhostConv layer, and determining the updated C3 module as the reference GC3 module, wherein the GBneck unit includes two second GhostConv layers in sequence;
[0106] S14, build the second attention module based on the reference GC3 module and Transformer encoder;
[0107] S15, construct a lightweight FPN network based on the second attention module and the reference GC3 module, and determine the lightweight FPN network as the fusion network of the YOLOv5 model.
[0108] It should be noted that, according to the description of the above embodiment, reducing the first convolutional layer will reduce the number of channels, that is, the dimension of the feature map is lower than before the first convolutional layer is reduced. This embodiment increases the attention to high-dimensional semantic information through the first attention module to compensate for the reduction in the number of channels. Based on this, the first attention module of this embodiment adopts the CELU activation function and the SE attention mechanism. The SE attention mechanism can realize the nonlinear mapping of the smoothing model. On this basis, the CELU activation function is used as the activation function of the last layer, which avoids the gradient explosion and disappearance caused by Sigmod in the original SE attention mechanism. The input-output relationship of the CELU-SE attention mechanism model can be expressed as: ,in, is the module output, is the CELU activation function, is the i-th linear layer operation, i is a positive integer, is the maximum pooling operation, Input to the module.
[0109] It should be noted that in the related art, the fusion network of the YOLOv5 model usually uses the C3 module (a simplified version of the residual network) to extract the features of the model. The structure of the C3 module is as follows: Figure 6 As shown, the C3 module has redundant operations in the medium-dimensional and high-dimensional extraction capabilities. In this embodiment, the third convolutional layer and the fourth convolutional layer in the C3 module are replaced by the third GhostConv layer, which effectively reduces the amount of calculation in the model, and then the GBneck unit using the two-step second GhostConv layer is constructed and then a secondary fusion is performed to obtain the reference GC3 module, thereby streamlining the number of model parameters.
[0110] It should be noted that both the C3 module and the GC3 module have poor ability to extract deep abstract semantic information features. Therefore, in order to compensate for high-dimensional semantic information, this embodiment uses the Transformer encoder structure and the GC3 module to construct a second attention module ( Figure 2 The specific structure can be found in Figure 7 As shown in the figure, a Transformer encoder can be added after the last GhostConv layer of the GC3 module, and the second attention module can be used as the detection end of the detection part of the deepest abstract semantic information to enhance the network's attention to deep semantic information.
[0111] It should be noted that the lightweight FPN network of this embodiment does not adopt the existing structure in the related technology, but obtains the preset C3 module and Transformer encoder, replaces the convolution layer to obtain the reference GC3 module, and then uses the reference GC3 module and Transformer encoder to build a second attention module, and then copies multiple reference GC3 modules to form a fusion module, and builds a single-path lightweight FPN network based on the fusion module and the second attention module, which can effectively reduce the number of network layers and reduce computational efficiency.
[0112] In addition, in one embodiment, referring to Figure 8 Step S15 also includes but is not limited to the following steps:
[0113] S151, determining the second attention module as a detection head of the lightweight FPN network and connecting it to the output end of the first attention module;
[0114] S152, constructing a first GC3 module and a second GC3 module based on the reference GC3 module, wherein the output resolution of the first GC3 module is smaller than that of the second GC3 module;
[0115] S153, constructing a first fusion module based on the first upsampling layer, the second lightweight pyramid pooling module, the fourth fusion layer and the first GC3 module;
[0116] S154, constructing a second fusion module based on the second upsampling layer, the third lightweight pyramid pooling module, the fifth fusion layer and the second GC3 module;
[0117] S155, sequentially connect the second attention module, the first fusion layer, and the second fusion layer to obtain a lightweight FPN network.
[0118] It should be noted that if Figure 2 As shown, GC3TR is the second attention module, and its input end is connected to the CELU-SE module (first attention module). The backbone network of this embodiment reduces the number of the first convolutional layer, and some features are inevitably lost during the convolution process. The attention of high-dimensional semantic information is improved through the first attention module, but the attention of medium-dimensional and low-dimensional semantic information is also required during prediction. Therefore, the second attention module of this embodiment serves as the detection head of the lightweight FPN network. The second attention module compensates for the attention of medium-dimensional and low-dimensional semantic information on the basis of the first attention feature map to ensure the accuracy of head network recognition.
[0119] It should be noted that the second GSPPF and the third GSPPF can also refer to Figure 5The structures shown are not repeated here. The structures of the first GC3 module and the second GC3 module can be the same, and the parameters can also be adjusted according to actual needs, which is not limited here.
[0120] In addition, in one embodiment, referring to Figure 2 , the YOLOv5 model also includes a head network, which includes the first YOLO Head, the second YOLO Head and the third YOLO Head, refer to Figure 8 , Figure 1 The step S50 shown also includes but is not limited to the following steps:
[0121] S51, inputting the first attention feature map into the second attention module to obtain a second attention feature map, inputting the second attention feature map into the first YOLO head, and predicting a first prediction result through the first YOLO head, wherein the second attention module is used to increase the attention of the medium-dimensional semantic information and the low-dimensional semantic information;
[0122] S52, inputting the second attention feature map and the second mixed feature map into the first fusion module to obtain a first fused feature map, inputting the first fused feature map into the second YOLO head, and predicting a second prediction result through the second YOLO head, wherein the dimension of the second prediction result is lower than the first prediction result;
[0123] S53, inputting the first fused feature map and the first mixed feature map into a second fusion module to obtain a second fused feature map, inputting the second fused feature map into a third YOLO head, and predicting a third prediction result through the third YOLO head, wherein the dimension of the third prediction result is lower than the second prediction result;
[0124] S54, determining a multi-source partial discharge pattern recognition result based on the first prediction result, the second prediction result, and the third prediction result.
[0125] It should be noted that, according to the description of the above embodiment, the second attention feature map increases the attention of the semantic information of the medium and low dimensions compared with the first attention feature map, but the number of channels remains the same, such as Figure 2 As shown in the figure, the number of channels of the second attention feature map is the same as that of the first attention feature map, which is 1024. Therefore, the second feature map can be used as the basis for high-dimensional prediction and input into the first YOLO head to obtain the first prediction result representing the high dimension.
[0126] It should be noted that after the second attention feature map is input into the first fusion module, it is sequentially passed through the first upsampling layer and the second GSPPF to achieve dimensionality reduction, and fused with the second mixed feature map in the fourth fusion layer. Since the number of channels of the second mixed feature map belongs to the medium dimension, the first fused feature map extracted by the first GC3 module after the fusion is completed can represent the semantic information of the medium dimension, and is input into the second YOLO head to obtain the second prediction result, and the prediction result of the medium dimension is represented by the second prediction result. Similarly, the third prediction result is obtained by outputting the second fused feature map through the second fusion module, and the prediction result of the low dimension is represented by the third prediction result, which will not be repeated here.
[0127] It should be noted that YOLO head is a common network structure in the YOLOv5 model, which can be used as a classifier for classification prediction. The specific principle will not be elaborated here.
[0128] In addition, in one embodiment, referring to Figure 8 , in execution Figure 1 Before step S30, the steps include but are not limited to the following steps:
[0129] S31, obtaining a plurality of single-source partial discharge sample sets, wherein the single-source partial discharge sample set includes a plurality of single-source partial discharge sample graphs, and each single-source partial discharge sample set corresponds to a different partial discharge mode;
[0130] S32, training the YOLOv5 model based on multiple single-source partial discharge sample sets;
[0131] S33, collecting a target partial discharge signal spectrum from the device to be tested according to a preset collection time, and converting the target partial discharge signal spectrum into a PRPD spectrum to be tested based on a preset target resolution.
[0132] It should be noted that this embodiment constructs a unit partial discharge sample set based on each partial discharge mode. The single-source partial discharge mode can be a tip discharge mode, a particle discharge mode, an internal discharge mode, and a suspended discharge mode. Each single-source partial discharge sample set includes multiple unit partial discharge sample images of the same partial discharge mode. For example, multiple sample images are collected for the tip discharge mode to construct a tip discharge sample set. Since the features between single-source partial discharge modes are not the same, when identifying multi-source partial discharge modes, it is only necessary to identify how many single-source partial discharge modes appear in the feature map. Therefore, this embodiment trains the YOLOv5 model through multiple unit partial discharge sample sets, so that the YOLOv5 model can accurately identify each single-source partial discharge mode, thereby combining accurate multi-source partial discharge mode recognition results.
[0133] It should be noted that when stimulating the bottom PRPD spectrum, the target partial discharge signal spectrum is collected according to the preset collection time, so as to obtain a signal spectrum of a certain time, and the prediction is made through the PRPD spectrum for a period of time to improve the accuracy of the prediction. For example, a 10-second partial discharge signal can be collected from the GIS device to be tested, and the target partial discharge signal spectrum can be constructed based on the collected partial discharge signal, and then converted into the PRPD spectrum to be tested according to relevant technologies.
[0134] like Fig. 9 As shown, Fig. 9 1 is a structural diagram of a GIS multi-source partial discharge mode identification device provided by an embodiment of the present invention. The present invention also provides a GIS multi-source partial discharge mode identification device, comprising:
[0135] The processor 901 may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0136] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the GIS multi-source partial discharge mode recognition method of the embodiment of this application;
[0137] Input / output interface 903, used to implement information input and output;
[0138] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);
[0139] A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);
[0140] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .
[0141] An embodiment of the present application also provides an electronic device, including the GIS multi-source partial discharge pattern recognition device as described above.
[0142] An embodiment of the present application also provides a storage medium, which is a computer-readable storage medium. The storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned GIS multi-source partial discharge mode identification method is implemented.
[0143] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and are implemented to be located in one place, or may also be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0144] It will be appreciated by those skilled in the art that all or some of the steps and systems in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or transient medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically include computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0145] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions under the shared conditions without violating the spirit of the present invention. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present invention.
Claims
1. A method for identifying multi-source partial discharge patterns in GIS, characterized in that: include: A backbone network of a YOLOv5 model is constructed based on a ShuffleNetV2 network, wherein the backbone network sequentially includes a plurality of feature extraction modules and a first attention module, each of the feature extraction modules includes a plurality of ShuffleNetV2 modules, each of the ShuffleNetV2 modules includes a first shuffle unit and / or a second shuffle unit, the first shuffle unit includes a first branch and a second branch, the second shuffle unit includes a second branch and a third branch, the second branch is provided with a plurality of first convolution units, the first convolution unit includes a first convolution layer, and the convolution kernel of the first convolution layer is 1×1; Determine the ShuffleNetV2 module to which the first shuffle unit and the second shuffle unit are sequentially connected as a target module, replace the first shuffle unit of the target module with a third shuffle unit, and replace the second shuffle unit with a fourth shuffle unit, wherein the third shuffle unit includes the first branch and the fourth branch, the fourth shuffle unit includes the third branch and the fourth branch, and the number of the first convolution units of the fourth branch is less than that of the second branch; Input the PRPD spectrum to be tested into the trained YOLOv5 model; Obtaining the module mixed feature graphs extracted by each of the feature extraction modules, inputting the module mixed feature graph of the last feature extraction module into the first attention module, and increasing the attention of the high-dimensional semantic information of the module mixed feature graph to obtain the first attention feature graph; Performing feature fusion and pattern recognition based on the mixed feature maps of each module and the first attention feature map to obtain a multi-source partial discharge pattern recognition result; The first branch does not include a convolution layer, the second branch includes a first convolution unit, a second convolution unit, and a first convolution unit in sequence, the third branch includes a second convolution unit and a first convolution unit in sequence, the first convolution unit includes a first convolution layer, a first BN layer, and a first ReLu layer in sequence, the second convolution unit includes a second convolution layer and a second BN layer in sequence, the convolution kernel of the second convolution layer is larger than that of the first convolution layer, the first shuffle unit further includes a first fusion layer and a first channel shuffle layer in sequence, the second shuffle unit further includes a second fusion layer and a second channel shuffle layer in sequence, and before replacing the first shuffle unit of the target module with a third shuffle unit, the method further includes: Based on the second branch, the first convolution unit after the second convolution unit is removed, the first ReLu layer of the remaining first convolution unit is replaced with a first LeakyReLu layer, a second LeakyReLu layer is added after the second BN layer of the second convolution layer, an output end of the second LeakyReLu layer is connected to the first fusion layer, and the modified second branch is determined as the fourth branch; Based on the third branch, replacing the first ReLu layer of the first convolution unit with the first LeakyReLu layer, connecting the output end of the first LeakyReLu layer to the second fusion layer, and determining the modified third branch as the fifth branch; constructing the third shuffling unit based on the first branch, the fourth branch, the first fusion layer and the first channel shuffling layer, and constructing the fourth shuffling unit based on the fifth branch, the fourth branch, the second fusion layer and the second channel shuffling layer; The multiple feature extraction modules respectively include a first extraction module, a second extraction module and a third extraction module, the backbone network also includes a convolutional pooling layer and a first lightweight pyramid pooling module, the first lightweight pyramid pooling module includes a first GhostConv layer and multiple maximum pooling layers, and the module mixed feature map extracted by each of the feature extraction modules is obtained, and the module mixed feature map of the last feature extraction module is input into the first attention module, including: Inputting the PRPD spectrum to be tested into a convolutional pooling layer to obtain an initial feature map, wherein the resolution of the initial feature map is smaller than that of the PRPD spectrum to be tested, and the height and width of the initial feature map are the same; Inputting the initial feature map into the first extraction module for feature extraction and shuffling to obtain a first mixed feature map, wherein the resolution of the first mixed feature map is half of the initial feature map; Inputting the first mixed feature map into the second extraction module for feature extraction and shuffling to obtain a second mixed feature map, wherein the resolution of the second mixed feature map is half of the first mixed feature map; Inputting the second mixed feature map into the third extraction module for feature extraction and shuffling to obtain a third mixed feature map, wherein the resolution of the third mixed feature map is half of that of the second mixed feature map; Based on the third mixed feature map, the maximum pooling and convolution processing of the first lightweight pyramid pooling module are sequentially performed to obtain a first pooling feature map, and the first pooling feature map is input into the first attention module, wherein the resolution of the first pooling feature map is 1×1, and the number of channels of the first pooling feature map is half of the number of channels of the third mixed feature map; After constructing the backbone network of the YOLOv5 model based on the ShuffleNetV2 network, the method further includes: Construct the first attention module based on CELU function and SE attention mechanism; Obtain a preset C3 module, wherein the C3 module includes a third convolutional layer, a third fusion layer, and a fourth convolutional layer in sequence; Adding a GBneck unit between the third convolutional layer and the third fusion layer, replacing the third convolutional layer and the fourth convolutional layer with a third GhostConv layer, and determining the updated C3 module as a reference GC3 module, wherein the GBneck unit includes two second GhostConv layers in sequence; Construct a second attention module based on the reference GC3 module and the Transformer encoder; Building a lightweight FPN network based on the second attention module and the reference GC3 module, and determining the lightweight FPN network as a fusion network of the YOLOv5 model; Before inputting the PRPD spectrum to be tested into the trained YOLOv5 model, the method further includes: Acquire multiple single-source partial discharge sample sets, wherein the single-source partial discharge sample sets include multiple single-source partial discharge sample graphs, and each single-source partial discharge sample set corresponds to a different partial discharge mode; Training the YOLOv5 model based on a plurality of the single-source partial discharge sample sets; A target partial discharge signal spectrum is collected from the device to be tested according to a preset collection time, and the target partial discharge signal spectrum is converted into the PRPD spectrum to be tested based on a preset target resolution.
2. The method for identifying multi-source partial discharge patterns of GIS according to claim 1, characterized in that: The method of constructing a lightweight FPN network based on the second attention module and the reference GC3 module includes: Determine the second attention module as a detection head of the lightweight FPN network and connect it to an output end of the first attention module; Constructing a first GC3 module and a second GC3 module based on the reference GC3 module, wherein the output resolution of the first GC3 module is smaller than that of the second GC3 module; Construct a first fusion module based on the first upsampling layer, the second lightweight pyramid pooling module, the fourth fusion layer and the first GC3 module; Construct a second fusion module based on the second upsampling layer, the third lightweight pyramid pooling module, the fifth fusion layer and the second GC3 module; The second attention module, the first fusion layer and the second fusion layer are connected in sequence to obtain the lightweight FPN network.
3. The method for identifying multi-source partial discharge patterns of GIS according to claim 2, characterized in that: The YOLOv5 model also includes a head network, which includes a first YOLO Head, a second YOLO Head, and a third YOLO Head. The feature fusion and pattern recognition are performed based on the mixed feature maps of each module and the first attention feature map to obtain a multi-source partial discharge pattern recognition result, including: Inputting the first attention feature map into the second attention module to obtain a second attention feature map, inputting the second attention feature map into the first YOLO Head, and predicting a first prediction result through the first YOLO Head, wherein the second attention module is used to increase the attention of the medium-dimensional semantic information and the low-dimensional semantic information; Inputting the second attention feature map and the second mixed feature map into the first fusion module to obtain a first fused feature map, inputting the first fused feature map into the second YOLO Head, and predicting a second prediction result through the second YOLO Head, wherein the dimension of the second prediction result is lower than that of the first prediction result; Inputting the first fused feature map and the first mixed feature map into the second fusion module to obtain a second fused feature map, inputting the second fused feature map into the third YOLO Head, and predicting a third prediction result through the third YOLO Head, wherein the dimension of the third prediction result is lower than that of the second prediction result; The multi-source partial discharge pattern recognition result is determined based on the first prediction result, the second prediction result and the third prediction result.
4. A device for identifying multi-source partial discharge patterns in GIS, characterized in that: It includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the GIS multi-source partial discharge pattern identification method as described in any one of claims 1 to 3.
5. An electronic device, characterized in that: It includes the GIS multi-source partial discharge pattern identification device as described in claim 4.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method for identifying GIS multi-source partial discharge patterns as described in any one of claims 1 to 3.
