Method and device for identifying partial discharge defect type of switch cabinet and electronic equipment
By processing switchgear partial discharge data using the WGAN-GP network and an improved residual neural network model, more samples are generated, solving the problem of low accuracy in switchgear partial discharge identification and achieving higher identification accuracy and faster training speed.
Patent Information
- Application Number
- CN202411044275.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-15
AI Technical Summary
The existing technology suffers from the problem of insufficient samples and low recognition accuracy in the identification of partial discharge signals in switchgear.
The WGAN-GP network model is used to process the historical partial discharge data to generate expanded discharge data. The improved residual neural network model is then used to process the partial discharge data of the switchgear to be identified. The model is optimized by combining transfer learning and Dropout modules to improve the identification accuracy.
By generating more diverse samples and optimizing the model, the recognition accuracy of partial discharge modes in switchgear has been improved, solving the problem of low recognition accuracy in existing technologies and enabling faster training.
Smart Images

Figure CN118965142A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of partial discharge pattern recognition of electrical equipment, and in particular to a method for identifying partial discharge defect types in switch cabinets, an apparatus for identifying partial discharge defect types in switch cabinets, a computer-readable storage medium, an electronic device, and a computer program product. Background Art
[0002] Switchgear, as a crucial piece of electrical equipment in power systems, plays a crucial role in ensuring system safety. However, over long-term operation, partial discharge (PD) can occur inside switchgear due to factors such as insulation material aging, manufacturing defects, or improper installation. PD is an early sign of insulation defects in power equipment. If not detected and addressed promptly, it can cause equipment damage or even serious power incidents.
[0003] In recent years, with the rapid development of artificial intelligence (AI) technology, deep learning has been widely used in power equipment condition monitoring and fault diagnosis. In particular, deep learning models can effectively extract features from complex signals when identifying partial discharge in switchgear. However, existing techniques for identifying partial discharge signals in switchgear suffer from a limited number of partial discharge samples and low recognition accuracy.
[0004] Therefore, a method for improving the recognition accuracy of partial discharge signals is needed. Summary of the Invention
[0005] The main purpose of this application is to provide a method for identifying the type of partial discharge defect in a switch cabinet, an apparatus for identifying the type of partial discharge defect in a switch cabinet, a computer-readable storage medium, an electronic device, and a computer program product, so as to at least solve the problem of inaccurate identification of partial discharge types in the prior art.
[0006] To achieve the above-mentioned objectives, according to one aspect of the present application, a method for identifying partial discharge defect types of a switchgear is provided, comprising: obtaining partial discharge historical data of different defect types of the switchgear, processing the partial discharge historical data of different defect types through a WGAN-GP network model to obtain extended discharge data, wherein the WGAN-GP network model is obtained by training multiple sets of first historical data, each set of the first historical data includes: the partial discharge historical data and the extended discharge data label, and the extended discharge data is data obtained after extending the partial discharge historical data; obtaining partial discharge data of the switchgear to be identified, processing the partial discharge data of the switchgear to be identified through a residual neural network model to obtain the defect type of the partial discharge data of the switchgear to be identified, wherein the residual neural network model is obtained by training multiple sets of second historical data, each set of the second historical data includes: extended discharge data corresponding to the historical data of partial discharge of the switchgear of different defect types and a defect type label corresponding to the extended discharge data; and performing defect processing on the switchgear according to the defect type of the partial discharge data of the switchgear.
[0007] Optionally, the partial discharge history data of different defect types are processed by the WGAN-GP network model, including: determining the generator loss function of the WGAN-GP network model as L G =-E z~Pz ×[D(G(z))], where E represents the expected function, Z represents the random function, and P Z represents the prior distribution of random noise, D(G(Z)) represents the differentiable function of the generator and discriminator network, G(z) is the partial discharge historical data sample generated by the generator, L G Denotes the generator loss value; the discriminator loss function of the WGAN-GP network model is determined as Among them, L D represents the discriminator loss value, represents the gradient penalty term and x represents a real sample, Pr is the distribution of the real sample, D(x) is the distance cost function of the discriminator, λ is the regularization coefficient, ||.|| p is the P norm, is the random interpolation result between the real sample and the generated sample, Represents the gradient operator, and C represents the total samples consisting of the real samples and the generated samples.
[0008] Optionally, processing the partial discharge history data of different defect types through the WGAN-GP network model also includes: a first modification step: performing gradient truncation on the generator of the WGAN-GP network model to determine the first parameter of the generator, calculating the discriminator loss value according to the discriminator loss function of the WGAN-GP network model, solving the gradient and modifying the second parameter of the discriminator according to the Adam optimizer; a second modification step: performing gradient truncation on the discriminator of the WGAN-GP network model to determine the second parameter of the discriminator, calculating the generator loss value according to the generator loss function of the WGAN-GP network model, solving the gradient and modifying the first parameter of the generator according to the Adam optimizer; repeating the first modification step and the second modification step at least once until the WGAN-GP network model achieves Nash equilibrium.
[0009] Optionally, the partial discharge data of the switch cabinet to be identified is processed by a residual neural network model, including: obtaining weight parameters through pre-training of the large data set ImageNet-1K, and using the weight parameters as weight parameters of the ResNet50 network model; replacing the fully connected layer of the ResNet50 network model with a linear layer, a Relu activation function layer, a Dropout module, and a linear layer to obtain the residual neural network model.
[0010] Optionally, the process of processing the switch cabinet partial discharge data to be identified by a residual neural network model further includes: converting the cross entropy function Determine the loss function of the residual neural network model, where x is a randomly distributed sample value, p(x) is the expected probability distribution of sample x, q(x) is the actual probability distribution of sample x, and H(p,q) represents the cross entropy value; determine the learning rate change formula of the residual neural network model as lr_decayed=lr*gamma epoch , where lr_decayed represents the learning rate of the current iteration number, lr represents the current learning rate, and epoch represents the current iteration number; the switch cabinet partial discharge data is input into the residual neural network model, and the residual neural network model is iteratively processed until the loss function no longer decreases, and the iteration is stopped.
[0011] Optionally, obtaining partial discharge historical data of different defect types of the switchgear includes: obtaining initial partial discharge data, generating a partial discharge phase map of the initial partial discharge data; and gray-scaling the partial discharge phase map to obtain the partial discharge historical data.
[0012] According to another aspect of the present application, a device for identifying partial discharge defect types of a switchgear is provided, comprising: a first processing unit, configured to obtain partial discharge historical data of different defect types of the switchgear, and process the partial discharge historical data of different defect types using a WGAN-GP network model to obtain extended discharge data, wherein the WGAN-GP network model is trained by multiple sets of first historical data, each set of the first historical data including: the partial discharge historical data and the extended discharge data label, and the extended discharge data is data obtained by extending the partial discharge historical data; a second processing unit, configured to obtain partial discharge data of the switchgear to be identified, and process the partial discharge data of the switchgear to be identified using a residual neural network model to obtain the defect type of the partial discharge data of the switchgear to be identified, wherein the residual neural network model is trained by multiple sets of second historical data, each set of the second historical data including: extended discharge data corresponding to the historical data of partial discharge of the switchgear of different defect types and a defect type label corresponding to the extended discharge data; and a third processing unit, configured to perform defect processing on the switchgear according to the defect type of the partial discharge data of the switchgear.
[0013] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the methods for identifying the type of partial discharge defect in a switch cabinet.
[0014] According to another aspect of the present application, an electronic device is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include a method for executing any one of the methods for identifying a type of partial discharge defect in a switch cabinet.
[0015] By applying the technical solution of the present application, historical partial discharge data of different defect types of a switchgear is obtained, and the historical partial discharge data of different defect types is processed using a WGAN-GP network model to obtain expanded discharge data. Local discharge data of the switchgear to be identified is obtained, and the local discharge data of the switchgear to be identified is processed using a residual neural network model to obtain the defect type of the local discharge data of the switchgear to be identified. Defect treatment of the switchgear is performed based on the defect type of the local discharge data of the switchgear. Compared with existing methods for identifying local discharge defect types that have few samples and low recognition accuracy, the present application can generate more diverse samples using the WGAN-GP model, further address the overfitting problem caused by excessive model complexity by improving the residual network model, resulting in faster training speed and higher accuracy in local discharge pattern recognition. Therefore, the low accuracy of local discharge identification methods for switchgears in the prior art can be solved, thereby improving the recognition accuracy of defect types in switchgears. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings that constitute part of this application are used to provide a further understanding of this application. The illustrative embodiments of this application and their descriptions are used to explain this application and do not constitute an improper limitation on this application. In the drawings:
[0017] Figure 1 A hardware structure block diagram of a mobile terminal for executing a method for identifying a partial discharge defect type in a switch cabinet provided by an embodiment of the present application is shown;
[0018] Figure 2 A schematic flow chart of a method for identifying partial discharge defect types in a switch cabinet provided in an embodiment of the present application is shown;
[0019] Figure 3 A schematic diagram of the basic structure of a GAN provided in an embodiment of the present application is shown;
[0020] Figure 4 A schematic diagram of the structure of a residual neural network provided in an embodiment of the present application is shown;
[0021] Figure 5 A schematic diagram of the structure of an experimental device for a method for identifying partial discharge defect types in a switch cabinet provided in an embodiment of the present application is shown;
[0022] Figure 6 A schematic flow chart of a specific method for identifying partial discharge defect types in a switchgear provided in an embodiment of the present application is shown;
[0023] Figure 7 A structural block diagram of a device for identifying partial discharge defect types in a switch cabinet provided in an embodiment of the present application is shown.
[0024] The above drawings include the following reference numerals:
[0025] 102. Processor; 104. Memory; 106. Transmission device; 108. Input / output device. DETAILED DESCRIPTION
[0026] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in this application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0027] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] For ease of description, some nouns or terms involved in the embodiments of the present application are explained below:
[0030] Generative Adversarial Networks (GANs): GANs use adversarial learning to generate data distributions that approximate real-world data. In partial discharge recognition, GANs can be used to enhance datasets, especially when real partial discharge data is scarce. Synthetic data generated by GANs can effectively expand the dataset, thereby improving the model's generalization and recognition accuracy.
[0031] Residual Network (ResNet): ResNet addresses the difficulty of training deep networks by introducing residual learning units, enabling the network to extract more refined features through deeper learning layers. In partial discharge identification, ResNet effectively extracts deep features of partial discharge signals. This deep feature extraction makes ResNet more effective in processing complex and subtle partial discharge features, significantly improving partial discharge identification accuracy. Combining the high-quality data generated by GANs with the deep feature extraction capabilities of ResNets can build an efficient and accurate partial discharge identification system.
[0032] As introduced in the background technology, the existing technology is not accurate in identifying the type of partial discharge. To solve the problem of inaccurate identification of the type of partial discharge, the embodiments of the present application provide a method for identifying the type of partial discharge defect in a switch cabinet, an apparatus for identifying the type of partial discharge defect in a switch cabinet, a computer-readable storage medium, an electronic device, and a computer program product.
[0033] The technical solutions in the embodiments of the present invention will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present invention.
[0034] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a method for identifying partial discharge defect types in a switch cabinet according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown) a processor 102 (the processor 102 may include but is not limited to a microprocessor MCU or a programmable logic device FPGA and other processing devices) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It will be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components than shown, or with Figure 1 Different configurations shown.
[0035] The memory 104 can be used to store computer programs, such as application software programs and modules, such as the computer program corresponding to the method for identifying partial discharge defect types in switchgear according to an embodiment of the present invention. The processor 102 executes the computer programs stored in the memory 104 to execute various functional applications and data processing, thereby implementing the aforementioned method. The memory 104 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remote from the processor 102, which can be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network (LAN), a mobile communication network, and combinations thereof. The transmission device 106 is used to receive or transmit data via a network. Specific examples of such networks may include a wireless network provided by the mobile terminal's telecommunications provider. In one example, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0036] In this embodiment, a method is provided that runs on a mobile terminal, a computer terminal, or a similar computing device. It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0037] Figure 2 FIG. 1 is a flow chart of a method for identifying partial discharge defect types in a switch cabinet according to an embodiment of the present application. Figure 2 As shown, the method includes the following steps:
[0038] Step S201: Obtaining partial discharge historical data of different defect types of the switchgear, and processing the partial discharge historical data of different defect types using a WGAN-GP network model to obtain expanded discharge data, wherein the WGAN-GP network model is trained using multiple sets of first historical data, each set of the first historical data including the partial discharge historical data and the expanded discharge data label, and the expanded discharge data is data obtained by expanding the partial discharge historical data;
[0039] Specifically, GANs, short for Generative Adversarial Networks, employ an adversarial approach to pit two networks against each other, thereby driving the model to learn to generate high-quality data. GANs consist of two basic components: a generator and a discriminator. The goal of the generator is to generate data that is as realistic as possible in order to fool the discriminator. The discriminator's task is to distinguish whether the input data is from a real dataset or fake data generated by the generator.
[0040] Step S202: Obtaining partial discharge data of a switchgear to be identified, processing the partial discharge data of the switchgear to be identified using a residual neural network model to obtain a defect type of the partial discharge data of the switchgear to be identified, wherein the residual neural network model is trained using multiple sets of second historical data, each set of the second historical data including: expanded discharge data corresponding to the historical data of partial discharge of the switchgear of different defect types and defect type labels corresponding to the expanded discharge data;
[0041] Specifically, an improved residual neural network model is constructed, and the expanded discharge dataset is used as the input of the improved residual neural network model. The model is trained and the parameters are optimized to obtain the optimized improved residual neural network model; the original ResNet50 network model is improved by introducing transfer learning and Dropout modules to obtain the above-mentioned improved residual network model, wherein the model weight parameters obtained by pre-training on the large dataset ImageNet-1K are introduced into the current ResNet50 network model using transfer learning; the Dropout module is added and the fully connected layer is modified, specifically: the fully connected layer of the original ResNet50 network model is replaced by a network module containing a linear layer, a ReLu activation function layer, a Dropout module, and a linear layer structure.
[0042] Step S203 : performing defect processing on the switch cabinet according to the defect type of the partial discharge data of the switch cabinet.
[0043] Specifically, defect types include: pinpoint discharge, air gap discharge, surface discharge, and suspended metal discharge. In actual application, after identifying different defect types, different processing methods are used according to different types.
[0044] Through this embodiment, historical partial discharge data of different defect types of a switchgear is obtained, and the historical partial discharge data of different defect types is processed using a WGAN-GP network model to obtain expanded discharge data. Local discharge data of the switchgear to be identified is obtained, and the local discharge data of the switchgear to be identified is processed using a residual neural network model to obtain the defect type of the local discharge data of the switchgear to be identified. Defect treatment of the switchgear is performed based on the defect type of the local discharge data of the switchgear. Compared to existing methods for identifying local discharge defect types, which have limited sample sizes and low recognition accuracy, this application can generate more diverse samples using the WGAN-GP model. Furthermore, by improving the residual network model, it can solve the overfitting problem caused by excessive model complexity, resulting in faster training speed and higher accuracy in local discharge pattern recognition. Therefore, it can solve the low accuracy problem of local discharge identification methods for switchgear in the prior art, and achieve the effect of improving the recognition accuracy of defect types in switchgear.
[0045] In the specific implementation process, the above step S201 processes the above partial discharge history data of different defect types through the WGAN-GP network model, which can be achieved by the following steps: determining the generator loss function of the above WGAN-GP network model as L G =-E z~Pz ×[D(G(z))], where E represents the expected function, Z represents the random function, and P Z represents the prior distribution of random noise, D(G(Z)) represents the differentiable function of the generator and discriminator network, G(z) is the partial discharge historical data sample generated by the above generator, L G Represents the generator loss value; the discriminator loss function of the above WGAN-GP network model is determined as Among them, L D represents the discriminator loss value, represents the gradient penalty term and x represents the real sample, Pr is the distribution of the real sample, D(x) is the distance cost function of the discriminator, λ is the regularization coefficient, ||.|| p is the P norm, is the random interpolation result between the real sample and the generated sample, Represents the gradient operator, and C represents the total sample consisting of the above real samples and the above generated samples. This method determines the generator loss function and the discriminator loss function through the above steps, so that the authenticity of the sample can be judged by these two functions.
[0046] In the specific implementation process, the basic structure of GAN is as follows Figure 3As shown in the figure, random noise z is input into the generator G to generate sample Pz. This sample Pz and the real sample Pr are then input into the discriminator D. The discriminator determines whether the sample is real or fake, calculates the loss value, and backpropagates it to the generator G and the discriminator D. The WGAN-GP model improves on the GAN model by introducing the Wasserstein distance and gradient penalty term into its loss function. These two loss functions can be used to calculate the respective loss values.
[0047] In some optional embodiments, step S201 processes the partial discharge history data of different defect types using a WGAN-GP network model, further comprising the following steps: a first modification step: performing gradient truncation on the generator of the WGAN-GP network model to determine a first parameter of the generator, calculating a discriminator loss value according to the discriminator loss function of the WGAN-GP network model, solving for the gradient, and modifying the second parameter of the discriminator using an Adam optimizer; a second modification step: performing gradient truncation on the discriminator of the WGAN-GP network model to determine the second parameter of the discriminator, calculating a generator loss value according to the generator loss function of the WGAN-GP network model, solving for the gradient, and modifying the first parameter of the generator using an Adam optimizer; and repeating the first modification step and the second modification step at least once until the WGAN-GP network model achieves Nash equilibrium. The method iteratively trains the WGAN-GP network model through the above steps to obtain a more accurate model.
[0048] Specifically, the WGAN-GP model training steps are as follows: perform gradient truncation on the generator G to fix the parameters of the generator G, calculate the loss according to the WGAN-GP discriminator loss function, solve the gradient and use the Adam optimizer to modify the parameters θ of the discriminator D. D ; Perform gradient truncation on the discriminator D to fix the parameters of the discriminator D, calculate the loss according to the WGAN-GP generator loss function, solve the gradient and use the Adam optimizer to modify the parameters θ of the generator G G ; Repeat the above two steps until the network achieves Nash equilibrium and stops training.
[0049] In other optional embodiments, the above-mentioned step S202 processes the above-mentioned switchgear partial discharge data to be identified through a residual neural network model, which can be achieved by the following steps: obtaining weight parameters through pre-training of the large data set ImageNet-1K, and using the above-mentioned weight parameters as the weight parameters of the ResNet50 network model; replacing the fully connected layer of the above-mentioned ResNet50 network model with a linear layer, a Relu activation function layer, a Dropout module, and a linear layer to obtain the above-mentioned residual neural network model.
[0050] Specifically, the final residual network model structure diagram is as follows Figure 4 As shown in the figure, the input is Input, which passes through the convolution layer Conv, Batch Norm layer, Relu layer, Max Pool layer, and then through multiple Conv Block, ID Block layer, and finally through the AvgPool layer, Flattening layer and FC layer. The FC layer includes the Linear layer, Relu layer, Dropout layer and Linear layer to obtain the final output Output.
[0051] In some optional embodiments, the above step S202 processes the switch cabinet partial discharge data to be identified by the residual neural network model, which can be achieved by the following steps: Determine the loss function of the above residual neural network model, where x is a randomly distributed sample value, p(x) is the expected probability distribution of sample x, q(x) is the actual probability distribution of sample x, and H(p,q) represents the cross entropy value; the learning rate change formula for the above residual neural network model is determined as lr_decayed = lr*gamma epoch , where lr_decayed represents the learning rate for the current iteration, lr represents the current learning rate, and epoch represents the current iteration. The switchgear partial discharge data is input into the residual neural network model, and the residual neural network model is iteratively processed until the loss function no longer decreases, at which point the iteration is terminated. This method trains the residual neural network model through the above steps to obtain a more suitable model.
[0052] In the implementation, we set the network training hyperparameters to 30 training rounds, the initial learning rate lr to 0.001, and an exponential decay of the learning rate. We then fed the augmented dataset into the residual network model described above and iterated through the following steps: calculating the loss according to the loss function, solving for the network parameter gradients, and modifying the network parameters using the optimizer until the loss function no longer decreases, at which point we terminated the iteration.
[0053] In other optional embodiments, step S201 of obtaining historical partial discharge data for different defect types in the switchgear can be accomplished by: obtaining initial partial discharge data, generating a partial discharge phase map of the initial partial discharge data; and gray-scaling the partial discharge phase map to obtain the historical partial discharge data. This method pre-processes the initial data through the aforementioned steps, thereby facilitating subsequent network model training.
[0054] Specifically, build an experimental environment, such as Figure 5As shown, the hardware part of the non-partial discharge experimental device includes a non-partial discharge transformer, a protective resistor, a voltage divider, a cable under test, a voltage regulating box, a PD acquisition device, an oscilloscope, and an HFCT (High Frequency Current Transformer, HFCT for short). The switch cabinet partial discharge defect model is connected to the above-mentioned HFCT and the cable under test. The pulse current method is used to obtain the partial discharge historical data of different defect types. The partial discharge phase spectrum, i.e., the PRPD spectrum, is generated by the partial discharge acquisition software. The obtained PRPD spectrum is grayed and used as the partial discharge historical data; the pulse current signal of the switch cabinet partial discharge defect model after voltage division is sensed by the HFCT, and the waveform is recorded by the oscilloscope and uploaded to the upper computer PD acquisition device to generate the PRPD spectrum. The PRPD spectrum is one of the most commonly used ways to record partial discharge information, also known as the φ-qn mode. This mode describes the relationship between the power frequency phase φ (0°~360°), the discharge amount q, and the number of discharges n corresponding to the partial discharge pulse, and does not contain time information. By collecting partial discharge pulse data of multiple power frequency cycles, The plane is divided into By counting the number of discharges in a small grid, we can obtain the φ-qn three-dimensional statistical spectrum. Mode. Use the maximum value method to grayscale the image. The formula is: f(x,y) = max(R(x,y),G(x,y),B(x,y)), where R(x,y), G(x,y), and B(x,y) represent the grayscale values of the image in the R, G, and B channels, and f(x,y) represents the grayscale values of the three channels after grayscale processing.
[0055] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the method for identifying the partial discharge defect type of a switch cabinet of the present application will be described in detail below with reference to specific embodiments.
[0056] This embodiment relates to a specific method for identifying the type of partial discharge defect in a switch cabinet, such as Figure 6 As shown, the following steps are included:
[0057] Step S1: Start;
[0058] Step S2: Obtaining partial discharge data of switchgear with different defect types and performing data processing to obtain an original discharge data set;
[0059] Step S3: performing partial discharge data enhancement based on the WGAN-GP model to expand the partial discharge dataset;
[0060] Step S4: using the expanded partial discharge dataset to train the improved residual network model;
[0061] Step S5: inputting the switchgear partial discharge data to be identified into the improved residual neural network model to obtain a partial discharge defect type identification result;
[0062] Step S6: End.
[0063] The present application also provides a device for identifying the type of partial discharge defect in a switchgear. It should be noted that the device for identifying the type of partial discharge defect in a switchgear according to the present application can be used to implement the method for identifying the type of partial discharge defect in a switchgear provided in the present application. This device is used to implement the aforementioned embodiments and preferred implementations, and details already described will not be repeated. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0064] The following introduces the device for identifying the partial discharge defect type of a switch cabinet provided in an embodiment of the present application.
[0065] Figure 7 Schematic diagram of a device for identifying partial discharge defect types in a switch cabinet according to an embodiment of the present application. Figure 7 As shown, the device includes:
[0066] A first processing unit 10 is configured to obtain partial discharge historical data of different defect types of the switchgear, and process the partial discharge historical data of different defect types using a WGAN-GP network model to obtain expanded discharge data, wherein the WGAN-GP network model is trained using multiple sets of first historical data, each set of the first historical data including the partial discharge historical data and the expanded discharge data label, and the expanded discharge data is data obtained by expanding the partial discharge historical data;
[0067] Specifically, GANs, short for Generative Adversarial Networks, employ an adversarial approach to pit two networks against each other, thereby driving the model to learn to generate high-quality data. GANs consist of two basic components: a generator and a discriminator. The goal of the generator is to generate data that is as realistic as possible in order to fool the discriminator. The discriminator's task is to distinguish whether the input data is from a real dataset or fake data generated by the generator.
[0068] A second processing unit 20 is configured to obtain partial discharge data of a switchgear to be identified, and process the partial discharge data of the switchgear to be identified using a residual neural network model to obtain a defect type of the partial discharge data of the switchgear to be identified, wherein the residual neural network model is trained using multiple sets of second historical data, each set of the second historical data including: expanded discharge data corresponding to the historical data of partial discharge of the switchgear of different defect types and a defect type label corresponding to the expanded discharge data;
[0069] Specifically, an improved residual neural network model is constructed, and the expanded discharge dataset is used as the input of the improved residual neural network model. The model is trained and the parameters are optimized to obtain the optimized improved residual neural network model; the original ResNet50 network model is improved by introducing transfer learning and Dropout modules to obtain the above-mentioned improved residual network model, wherein the model weight parameters obtained by pre-training on the large dataset ImageNet-1K are introduced into the current ResNet50 network model using transfer learning; the Dropout module is added and the fully connected layer is modified, specifically: the fully connected layer of the original ResNet50 network model is replaced by a network module containing a linear layer, a ReLu activation function layer, a Dropout module, and a linear layer structure.
[0070] The third processing unit 30 is configured to perform defect processing on the switch cabinet according to the defect type of the partial discharge data of the switch cabinet.
[0071] Specifically, defect types include: pinpoint discharge, air gap discharge, surface discharge, and suspended metal discharge. In actual application, after identifying different defect types, different processing methods are used according to different types.
[0072] Through this embodiment, historical partial discharge data of different defect types for a switchgear is obtained and processed using a WGAN-GP network model to obtain expanded discharge data. Local discharge data of the switchgear to be identified is obtained and processed using a residual neural network model to obtain the defect type of the local discharge data. Defect treatment is then performed on the switchgear based on the defect type of the local discharge data. Compared to existing devices for identifying local discharge defect types, which have limited sample sizes and low recognition accuracy, this application generates more diverse samples using a WGAN-GP model. Furthermore, by improving the residual network model, the application solves the overfitting problem caused by excessive model complexity, resulting in faster training and higher accuracy in local discharge pattern recognition. Therefore, the low accuracy of local discharge identification devices for switchgear in the prior art can be addressed, thereby improving the accuracy of identifying defect types in the switchgear.
[0073] In the specific implementation process, the first processing unit includes a first determining module and a second determining module. The first determining module is used to determine that the generator loss function of the WGAN-GP network model is L G =-E z~Pz ×[D(G(z))], where E represents the expected function, Z represents the random function, and P Z represents the prior distribution of random noise, D(G(Z)) represents the differentiable function of the generator and discriminator network, G(z) is the partial discharge historical data sample generated by the above generator, L G Represents the generator loss value; the second determination module is used to determine the discriminator loss function of the above WGAN-GP network model as Among them, L D represents the discriminator loss value, represents the gradient penalty term and x represents the real sample, Pr is the distribution of the real sample, D(x) is the distance cost function of the discriminator, λ is the regularization coefficient, ||.|| p is the P norm, is the random interpolation result between the real sample and the generated sample, Represents the gradient operator, and C represents the total sample consisting of the above real samples and the above generated samples. The device determines the generator loss function and the discriminator loss function through the above steps, so that the authenticity of the sample can be judged by these two functions.
[0074] In the specific implementation process, the basic structure of GAN is as follows Figure 3 As shown in the figure, random noise z is input into the generator G to generate sample Pz. This sample Pz and the real sample Pr are then input into the discriminator D. The discriminator determines whether the sample is real or fake, calculates the loss value, and backpropagates it to the generator G and the discriminator D. The WGAN-GP model improves on the GAN model by introducing the Wasserstein distance and gradient penalty term into its loss function. These two loss functions can be used to calculate the respective loss values.
[0075] In some optional embodiments, the first processing unit further includes a first modification module, a second modification module, and a repetition module, wherein the first modification module is configured to perform a first modification step: performing gradient truncation on the generator of the WGAN-GP network model to determine a first parameter of the generator, calculating a discriminator loss value according to the discriminator loss function of the WGAN-GP network model, solving for the gradient, and modifying the second parameter of the discriminator according to an Adam optimizer; the second modification module is configured to perform a second modification step: performing gradient truncation on the discriminator of the WGAN-GP network model to determine the second parameter of the discriminator, calculating a generator loss value according to the generator loss function of the WGAN-GP network model, solving for the gradient, and modifying the first parameter of the generator according to an Adam optimizer; and the repetition module is configured to repeatedly perform the first modification step and the second modification step at least once until the WGAN-GP network model achieves Nash equilibrium. The device iteratively trains the WGAN-GP network model through the above steps to obtain a more accurate model.
[0076] Specifically, the WGAN-GP model training steps are as follows: perform gradient truncation on the generator G to fix the parameters of the generator G, calculate the loss according to the WGAN-GP discriminator loss function, solve the gradient and use the Adam optimizer to modify the parameters θ of the discriminator D. D ; Perform gradient truncation on the discriminator D to fix the parameters of the discriminator D, calculate the loss according to the WGAN-GP generator loss function, solve the gradient and use the Adam optimizer to modify the parameters θ of the generator G G ; Repeat the above two steps until the network achieves Nash equilibrium and stops training.
[0077] In other optional embodiments, the above-mentioned second processing unit includes a pre-training module and a replacement module. The pre-training module is used to obtain weight parameters through pre-training of the large data set ImageNet-1K, and use the above-mentioned weight parameters as the weight parameters of the ResNet50 network model; the replacement module is used to replace the fully connected layer of the above-mentioned ResNet50 network model with a linear layer, a Relu activation function layer, a Dropout module, and a linear layer to obtain the above-mentioned residual neural network model.
[0078] Specifically, the final residual network model structure diagram is as follows Figure 4As shown in the figure, the input is Input, which passes through the convolution layer Conv, Batch Norm layer, Relu layer, Max Pool layer, and then through multiple Conv Block, ID Block layer, and finally through the AvgPool layer, Flattening layer and FC layer. The FC layer includes the Linear layer, Relu layer, Dropout layer and Linear layer to obtain the final output Output.
[0079] In some optional embodiments, the second processing unit includes a third determining module, a fourth determining module and a stopping module, wherein the third determining module is used to convert the cross entropy function Determine the loss function of the above residual neural network model, where x is a randomly distributed sample value, p(x) is the expected probability distribution of sample x, q(x) is the actual probability distribution of sample x, and H(p,q) represents the cross entropy value; the fourth determination module is used to determine the learning rate change formula of the above residual neural network model as lr_decayed=lr*gamma epoch , where lr_decayed represents the learning rate for the current iteration, lr represents the current learning rate, and epoch represents the current iteration number. The stop module is configured to input the switchgear partial discharge data into the residual neural network model and iterate the residual neural network model until the loss function no longer decreases, at which point the iteration is terminated. The device trains the residual neural network model through these steps to obtain a more suitable model.
[0080] In the implementation, we set the network training hyperparameters to 30 training rounds, the initial learning rate lr to 0.001, and an exponential decay of the learning rate. We then fed the augmented dataset into the residual network model described above and iterated through the following steps: calculating the loss according to the loss function, solving for the network parameter gradients, and modifying the network parameters using the optimizer until the loss function no longer decreases, at which point we terminated the iteration.
[0081] In other optional embodiments, the first processing unit further includes an acquisition module and a processing module. The acquisition module is configured to acquire initial partial discharge data and generate a partial discharge phase map of the initial partial discharge data. The processing module is configured to grayscale the partial discharge phase map to obtain the partial discharge historical data. The device pre-processes the initial data through the above steps, thereby facilitating subsequent network model training.
[0082] Specifically, the experimental environment is set up. The hardware part of the non-PD experimental device includes a non-PD transformer, a protective resistor, a voltage divider, a cable under test, a voltage regulating box, a PD acquisition device, an oscilloscope, and an HFCT (High Frequency Current Transformer). The switchgear partial discharge defect model is connected to the above-mentioned HFCT and the cable under test, as shown in FIG. Figure 5 As shown, this method involves acquiring historical partial discharge data for different defect types using the pulse current method. PD acquisition software generates a partial discharge phase spectrum, or PRPD spectrum, which is then grayscaled and used as historical partial discharge data. High-frequency computed tomography (HFCT) is used to sense the divided pulse current signal of the switchgear partial discharge defect model. The waveform is recorded with an oscilloscope and uploaded to a host computer PD acquisition device to generate the PRPD spectrum. The PRPD spectrum is the most commonly used method for recording partial discharge information, also known as the φ-qn model. This model describes the relationship between the power frequency phase φ (0° to 360°) corresponding to the partial discharge pulse, the discharge amount q, and the number of discharges n. It does not include time information. By collecting partial discharge pulse data over multiple power frequency cycles, dividing the q-φ plane into Nφ×Nq grids, and counting the number of discharges within each grid, the φ-qn three-dimensional statistical spectrum Hn(q,φ) model is obtained. The maximum value method is used to grayscale the spectrum, and the formula is: f(x,y)=max(R(x,y),G(x,y),B(x,y)), where R(x,y), G(x,y), and B(x,y) represent the grayscale values of the spectrum in the R, G, and B channels, and f(x,y) represents the grayscale values of the three channels after grayscale processing.
[0083] The switchgear partial discharge defect type identification device includes a processor and a memory. The first, second, and third processing units are stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions. The modules are all located in the same processor; alternatively, the modules can be located in different processors in any combination.
[0084] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the accuracy of partial discharge type recognition can be improved by adjusting the kernel parameters.
[0085] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0086] An embodiment of the present invention provides a computer-readable storage medium, which includes a stored program. When the program is run, the device where the computer-readable storage medium is located is controlled to execute the method for identifying the type of partial discharge defect in a switch cabinet.
[0087] Specifically, the identification method of the switchgear partial discharge defect type includes:
[0088] Step S201: Obtaining partial discharge historical data of different defect types of the switchgear, and processing the partial discharge historical data of different defect types using a WGAN-GP network model to obtain expanded discharge data, wherein the WGAN-GP network model is trained using multiple sets of first historical data, each set of the first historical data including the partial discharge historical data and the expanded discharge data label, and the expanded discharge data is data obtained by expanding the partial discharge historical data;
[0089] Specifically, GANs, short for Generative Adversarial Networks, employ an adversarial approach to pit two networks against each other, thereby driving the model to learn to generate high-quality data. GANs consist of two basic components: a generator and a discriminator. The goal of the generator is to generate data that is as realistic as possible in order to fool the discriminator. The discriminator's task is to distinguish whether the input data is from a real dataset or fake data generated by the generator.
[0090] Step S202: Obtaining partial discharge data of a switchgear to be identified, processing the partial discharge data of the switchgear to be identified using a residual neural network model to obtain a defect type of the partial discharge data of the switchgear to be identified, wherein the residual neural network model is trained using multiple sets of second historical data, each set of the second historical data including: expanded discharge data corresponding to the historical data of partial discharge of the switchgear of different defect types and defect type labels corresponding to the expanded discharge data;
[0091] Specifically, an improved residual neural network model is constructed, and the expanded discharge dataset is used as the input of the improved residual neural network model. The model is trained and the parameters are optimized to obtain the optimized improved residual neural network model; the original ResNet50 network model is improved by introducing transfer learning and Dropout modules to obtain the above-mentioned improved residual network model, wherein the model weight parameters obtained by pre-training on the large dataset ImageNet-1K are introduced into the current ResNet50 network model using transfer learning; the Dropout module is added and the fully connected layer is modified, specifically: the fully connected layer of the original ResNet50 network model is replaced by a network module containing a linear layer, a ReLu activation function layer, a Dropout module, and a linear layer structure.
[0092] Step S203 : performing defect processing on the switch cabinet according to the defect type of the partial discharge data of the switch cabinet.
[0093] Specifically, defect types include: pinpoint discharge, air gap discharge, surface discharge, and suspended metal discharge. In actual application, after identifying different defect types, different processing methods are used according to different types.
[0094] Optionally, the partial discharge history data of different defect types are processed by the WGAN-GP network model, including: determining the generator loss function of the WGAN-GP network model as L G =-E z~Pz ×[D(G(z))], where E represents the expected function, Z represents the random function, and P Z represents the prior distribution of random noise, D(G(Z)) represents the differentiable function of the generator and discriminator network, G(z) is the partial discharge historical data sample generated by the above generator, L G Represents the generator loss value; the discriminator loss function of the above WGAN-GP network model is determined as Among them, L D represents the discriminator loss value, represents the gradient penalty term and x represents the real sample, Pr is the distribution of the real sample, D(x) is the distance cost function of the discriminator, λ is the regularization coefficient, ||.|| p is the P norm, is the random interpolation result between the real sample and the generated sample, Represents the gradient operator, and C represents the total sample consisting of the above real samples and the above generated samples.
[0095] Optionally, processing the above-mentioned partial discharge historical data of different defect types through the WGAN-GP network model also includes: a first modification step: performing gradient truncation on the generator of the WGAN-GP network model to determine the first parameter of the generator, calculating the discriminator loss value according to the discriminator loss function of the WGAN-GP network model, solving the gradient and modifying the second parameter of the discriminator according to the Adam optimizer; a second modification step: performing gradient truncation on the discriminator of the WGAN-GP network model to determine the above-mentioned second parameter of the discriminator, calculating the generator loss value according to the generator loss function of the WGAN-GP network model, solving the gradient and modifying the above-mentioned first parameter of the generator according to the Adam optimizer; repeating the above-mentioned first modification step and the above-mentioned second modification step at least once until the above-mentioned WGAN-GP network model achieves Nash equilibrium.
[0096] Optionally, the partial discharge data of the switchgear to be identified is processed by a residual neural network model, including: obtaining weight parameters through pre-training of the large dataset ImageNet-1K, and using the above weight parameters as weight parameters of the ResNet50 network model; replacing the fully connected layer of the above ResNet50 network model with a linear layer, a Relu activation function layer, a Dropout module, and a linear layer to obtain the above residual neural network model.
[0097] Optionally, processing the switchgear partial discharge data to be identified by the residual neural network model further includes: converting the cross entropy function Determine the loss function of the above residual neural network model, where x is a randomly distributed sample value, p(x) is the expected probability distribution of sample x, q(x) is the actual probability distribution of sample x, and H(p,q) represents the cross entropy value; the learning rate change formula for the above residual neural network model is determined as lr_decayed = lr*gamma epoch , where lr_decayed represents the learning rate of the current iteration, lr represents the current learning rate, and epoch represents the current iteration number. The switchgear partial discharge data is input into the residual neural network model, and the residual neural network model is iteratively processed until the loss function no longer decreases, and the iteration is stopped.
[0098] Optionally, obtaining partial discharge historical data of different defect types of the switchgear includes: obtaining initial partial discharge data, generating a partial discharge phase map of the initial partial discharge data; and gray-scaling the partial discharge phase map to obtain the partial discharge historical data.
[0099] An embodiment of the present invention provides an electronic device, including a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, at least the following steps are performed:
[0100] Step S201: Obtaining partial discharge historical data of different defect types of the switchgear, and processing the partial discharge historical data of different defect types using a WGAN-GP network model to obtain expanded discharge data, wherein the WGAN-GP network model is trained using multiple sets of first historical data, each set of the first historical data including the partial discharge historical data and the expanded discharge data label, and the expanded discharge data is data obtained by expanding the partial discharge historical data;
[0101] Step S202: Obtaining partial discharge data of a switchgear to be identified, processing the partial discharge data of the switchgear to be identified using a residual neural network model to obtain a defect type of the partial discharge data of the switchgear to be identified, wherein the residual neural network model is trained using multiple sets of second historical data, each set of the second historical data including: expanded discharge data corresponding to the historical data of partial discharge of the switchgear of different defect types and defect type labels corresponding to the expanded discharge data;
[0102] Step S203 : performing defect processing on the switch cabinet according to the defect type of the partial discharge data of the switch cabinet.
[0103] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0104] The present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, the steps of the above method in each embodiment of the present application are implemented:
[0105] Step S201: Obtaining partial discharge historical data of different defect types of the switchgear, and processing the partial discharge historical data of different defect types using a WGAN-GP network model to obtain expanded discharge data, wherein the WGAN-GP network model is trained using multiple sets of first historical data, each set of the first historical data including the partial discharge historical data and the expanded discharge data label, and the expanded discharge data is data obtained by expanding the partial discharge historical data;
[0106] Step S202: Obtaining partial discharge data of a switchgear to be identified, processing the partial discharge data of the switchgear to be identified using a residual neural network model to obtain a defect type of the partial discharge data of the switchgear to be identified, wherein the residual neural network model is trained using multiple sets of second historical data, each set of the second historical data including: expanded discharge data corresponding to the historical data of partial discharge of the switchgear of different defect types and defect type labels corresponding to the expanded discharge data;
[0107] Step S203 : performing defect processing on the switch cabinet according to the defect type of the partial discharge data of the switch cabinet.
[0108] Obviously, those skilled in the art will appreciate that the various modules or steps of the present invention described above can be implemented using a general-purpose computing device, can be centralized on a single computing device, or can be distributed across a network of multiple computing devices. They can be implemented using program code executable by the computing device, and thus, can be stored in a storage device and executed by the computing device. In some cases, the steps shown or described herein can be performed in a different order than that shown, or can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0109] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0110] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0111] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0112] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0113] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0114] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0115] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0116] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0117] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0118] 1) In the method for identifying partial discharge defect types of a switchgear of the present application, partial discharge historical data of different defect types of the switchgear is obtained, and the partial discharge historical data of different defect types is processed using a WGAN-GP network model to obtain expanded discharge data; partial discharge data of the switchgear to be identified is obtained, and the partial discharge data of the switchgear to be identified is processed using a residual neural network model to obtain the defect type of the partial discharge data of the switchgear to be identified, and the switchgear is defect-processed according to the defect type of the partial discharge data of the switchgear. Compared with the methods for identifying partial discharge defect types in the prior art, which have few samples and low recognition accuracy, the present application can generate more diverse samples through the WGAN-GP model, and further solve the overfitting problem caused by excessive model complexity by improving the residual network model, resulting in faster training speed and higher accuracy in partial discharge pattern recognition. Therefore, the problem of low accuracy of the partial discharge identification method of the switchgear in the prior art can be solved, and the recognition accuracy of the defect type of the switchgear can be improved.
[0119] 2) In the switchgear partial discharge defect type identification device of the present application, partial discharge historical data of different defect types of the switchgear is obtained, and the partial discharge historical data of different defect types is processed using a WGAN-GP network model to obtain expanded discharge data; partial discharge data of the switchgear to be identified is obtained, and the partial discharge data of the switchgear to be identified is processed using a residual neural network model to obtain the defect type of the switchgear partial discharge data to be identified, and the switchgear is defect-processed according to the defect type of the switchgear partial discharge data. Compared with the devices in the prior art that have few samples and low recognition accuracy for partial discharge defect type identification devices, the present application can generate more diverse samples through the WGAN-GP model, and further solve the overfitting problem caused by excessive model complexity by improving the residual network model, resulting in faster training speed and higher accuracy in partial discharge pattern recognition. Therefore, it can solve the problem of low accuracy of partial discharge identification devices for switchgear in the prior art, and achieve the effect of improving the recognition accuracy of defect types of switchgear.
[0120] The above description is merely a preferred embodiment of the present application and is not intended to limit the present application. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present application shall be included within the scope of protection of the present application.
Claims
1. A method for identifying the type of partial discharge defect in a switch cabinet, characterized in that: include: Obtaining partial discharge historical data of different defect types of the switch cabinet, and processing the partial discharge historical data of different defect types through a WGAN-GP network model to obtain extended discharge data, wherein the WGAN-GP network model is obtained by training multiple groups of first historical data, each group of the first historical data includes: the partial discharge historical data and the extended discharge data label, and the extended discharge data is data obtained after the partial discharge historical data is expanded; Obtaining partial discharge data of a switch cabinet to be identified, processing the partial discharge data of the switch cabinet to be identified through a residual neural network model to obtain a defect type of the partial discharge data of the switch cabinet to be identified, wherein the residual neural network model is obtained by training multiple groups of second historical data, and each group of the second historical data includes: expanded discharge data corresponding to the historical data of partial discharge of the switch cabinet of different defect types and a defect type label corresponding to the expanded discharge data; Defect processing is performed on the switch cabinet according to the defect type of the partial discharge data of the switch cabinet.
2. The identification method according to claim 1, characterized in that: The partial discharge historical data of different defect types are processed by the WGAN-GP network model, including: The generator loss function of the WGAN-GP network model is determined as Among them, E represents the expected function, Z represents the random function, and P Z represents the prior distribution of random noise, D(G(Z)) represents the differentiable function of the generator and discriminator network, G(z) is the partial discharge historical data sample generated by the generator, L G Represents the generator loss value; The discriminator loss function of the WGAN-GP network model is determined as Among them, L D represents the discriminator loss value, represents the gradient penalty term and x represents a real sample, Pr is the distribution of the real sample, D(x) is the distance cost function of the discriminator, λ is the regularization coefficient, ||.|| p is the P norm, is the random interpolation result between the real sample and the generated sample, represents the gradient operator, and C represents the total samples consisting of the real samples and the generated samples.
3. The identification method according to claim 1, characterized in that: Processing the partial discharge history data of different defect types by the WGAN-GP network model also includes: The first modification step: perform gradient truncation on the generator of the WGAN-GP network model to determine the first parameter of the generator, calculate the discriminator loss value according to the discriminator loss function of the WGAN-GP network model, solve the gradient and modify the second parameter of the discriminator according to the Adam optimizer; The second modification step: performing gradient truncation on the discriminator of the WGAN-GP network model to determine the second parameter of the discriminator, calculating the generator loss value according to the generator loss function of the WGAN-GP network model, solving the gradient and modifying the first parameter of the generator according to the Adam optimizer; The first modifying step and the second modifying step are repeatedly performed at least once until the WGAN-GP network model achieves Nash equilibrium.
4. The identification method according to claim 1, characterized in that: The partial discharge data of the switch cabinet to be identified is processed by a residual neural network model, including: The weight parameters are obtained by pre-training with the large dataset ImageNet-1K, and the weight parameters are used as the weight parameters of the ResNet50 network model; The fully connected layer of the ResNet50 network model is replaced with a linear layer, a Relu activation function layer, a Dropout module, and a linear layer to obtain the residual neural network model.
5. The identification method according to claim 1, characterized in that: The partial discharge data of the switch cabinet to be identified is processed by a residual neural network model, and further includes: The cross entropy function Determine the loss function of the residual neural network model, where x is a randomly distributed sample value, p(x) is the expected probability distribution of sample x, q(x) is the actual probability distribution of sample x, and H(p,q) represents the cross entropy value; The learning rate change formula for the residual neural network model is determined as lr_decayed = lr*gamma epoch , where lr_decayed represents the learning rate of the current iteration number, lr represents the current learning rate, and epoch represents the current iteration number; The partial discharge data of the switch cabinet is input into the residual neural network model, and the residual neural network model is iteratively processed until the loss function no longer decreases, and the iteration is stopped.
6. The identification method according to claim 1, characterized in that: Obtain partial discharge history data for different defect types of switchgear, including: Acquire partial discharge initial data, generate a partial discharge phase spectrum of the partial discharge initial data; perform grayscale processing on the partial discharge phase spectrum, and obtain the partial discharge historical data.
7. A device for identifying partial discharge defect types of switch cabinets, characterized in that: include: A first processing unit is used to obtain partial discharge historical data of different defect types of the switch cabinet, and process the partial discharge historical data of different defect types through a WGAN-GP network model to obtain extended discharge data, wherein the WGAN-GP network model is obtained by training multiple groups of first historical data, each group of the first historical data includes: the partial discharge historical data and the extended discharge data label, and the extended discharge data is data obtained after the partial discharge historical data is extended; A second processing unit is used to obtain the partial discharge data of the switch cabinet to be identified, and process the partial discharge data of the switch cabinet to be identified through a residual neural network model to obtain the defect type of the partial discharge data of the switch cabinet to be identified, wherein the residual neural network model is obtained by training multiple groups of second historical data, and each group of the second historical data includes: expanded discharge data corresponding to the historical data of partial discharge of the switch cabinet of different defect types and defect type labels corresponding to the expanded discharge data; The third processing unit is used to perform defect processing on the switch cabinet according to the defect type of the partial discharge data of the switch cabinet.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for identifying the partial discharge defect type of a switch cabinet according to any one of claims 1 to 7.
9. An electronic device, characterized in that: include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include a method for executing the method for identifying the partial discharge defect type of the switch cabinet as described in any one of claims 1 to 7.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for identifying the partial discharge defect type of a switch cabinet as claimed in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
User vulnerability analysis method oriented to social engineering attack
CN113780360A
Superconducting cable partial discharge mode identification method based on residual network Resnet50
CN114186589A
Switch cabinet partial discharge fault mode identification method based on GAN-CNN
CN115840116A
Convolutional neural network-based transformer partial discharge type identification method and equipment
CN116224000A
Cited By
Nondestructive testing method and system for surfaces of main shaft parts
CN119228795A
Switch cabinet partial discharge intelligent monitoring system for fault identification
CN121069116A
