Small sample expansion method and system for power anomaly scene

The cyclic adversarial generation network generates abnormal sample images from normal sample images and adds them to the sample set, which solves the problem of small data volume of abnormal image samples in power equipment, achieves the expansion of high-quality data sets and improves the robustness of the model, and can be used in Accurately detect anomalies in images of electrical equipment taken at long distances.

CN118537594APending Publication Date: 2024-08-23NARI INFORMATION & COMM TECH +3
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410711850.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In power equipment fault detection, the amount of abnormal image sample data is small. Especially for some special power equipment faults, such as expander overshooting, the sample size is extremely small, which leads to challenges in the use of data-driven methods, making it difficult to effectively detect and identify abnormal situations. .

Method used

Using a cyclic adversarial generation network (a cyclic adversarial generation network includes a forward codec and a reverse codec), by generating abnormal sample images from normal sample images and adding them to the sample set, the loss functions of the forward and inverse discriminant networks are used and exponential loss function to generate abnormal images consistent with actual scenes, avoid environmental interference, and improve the robustness of the model.

Benefits of technology

It effectively expands the abnormal sample data set, generates abnormal images that fit the actual scene, improves the robustness of the model, avoids model overfitting, enhances the sensitivity to noise, and can be used for long-distance shooting by drones and other equipment. Accurately detect anomalies in power equipment images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537594A
    Figure CN118537594A
Patent Text Reader

Abstract

The invention discloses an electric power abnormal scene small sample expansion method and system. The method comprises the following steps: firstly, shooting normal images of electric power equipment to construct a normal sample set, and shooting abnormal images of the electric power equipment to construct an abnormal sample set; performing target identification and extraction on the normal image of the power equipment to obtain a first image only containing the power equipment, inputting the first image into a cyclic generative adversarial network to obtain a second image, replacing the first image with the second image, and splicing the second image into the normal image of the power equipment to generate a second abnormal image of the power equipment; and finally, adding the second power equipment abnormal image into the abnormal sample set to expand the abnormal sample data set. According to the method, environmental interference except for power equipment can be avoided, power scene abnormal images obtained by similar shooting of a deploy and control ball, an unmanned aerial vehicle and a monitoring camera are generated, and a small sample data set of a power abnormal scene is expanded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of power equipment defect detection, and in particular to a method and system for expanding small samples of power abnormality scenarios. Background Art

[0002] The power system plays a vital role in modern society. It is responsible for the production and distribution of electricity and is the core support for various fields such as economy, industry, transportation and communication. The stable operation of the power system is directly related to the national economic development, social stability and the improvement of people's living standards. Therefore, it is of great significance to monitor the operation of power system equipment. At present, whether it is power transmission or substation equipment, most of their deployment locations are in outdoor environments. Outdoor power equipment is easily affected by various factors, such as metal corrosion, equipment damage, equipment oil leakage, etc., which lead to damage and failure. For this reason, we need an automated and intelligent equipment status monitoring system. Using artificial intelligence technology, anomalies can be detected and identified in time, and power equipment failures can be handled in time to avoid huge economic losses and inconveniences to the country and the people.

[0003] Before the use of machine learning technology, traditional defect detection algorithms generally use Canny edge detection, Hough transform, region segmentation and other technologies for anomaly detection. Such methods generally judge anomalies based on models and templates, that is, model-driven methods. With the development of machine learning technology, algorithms such as support vector machine (SVM) and random forest (RandomForest) are also used for anomaly detection of power images. Furthermore, convolutional neural networks are particularly suitable for anomaly detection of power equipment due to their powerful feature extraction capabilities, such as Faster R-CNN, yolo series, etc. This type of algorithm has greatly improved accuracy and universality compared to traditional algorithms, but the effect of this type of deep learning method depends on the size and quality of the data set, that is, data-driven methods. In power scenarios, compared with a large amount of normal sample data, the amount of abnormal image sample data is small, especially for some special power equipment failures, such as expander top, the sample size is extremely small compared to the normal sample size, which brings challenges to the use of data-driven methods. Summary of the invention

[0004] Purpose of the invention: The purpose of the present invention is to provide a method and system for expanding small samples of power abnormality scenarios, so as to solve the problem of small amount of sample data of equipment abnormality images in power scenarios, and provide high-quality data sets for visual models that require a large amount of sample data to improve their robustness.

[0005] Technical solution: The method for expanding a small sample of power anomaly scenarios described in the present invention comprises the following steps:

[0006] Obtaining a normal sample set constructed by normal images of electric power equipment and an abnormal sample set constructed by abnormal images of electric power equipment;

[0007] Performing target recognition and extraction on the normal image of the electric power equipment to obtain a first image containing only the electric power equipment, inputting the first image into a recurrent adversarial generation network to obtain a second image, replacing the first image with the second image and splicing it into the normal image of the electric power equipment to generate a second abnormal image of the electric power equipment;

[0008] The second abnormal image of the electric power equipment is added to the abnormal sample set.

[0009] Further, the cyclic adversarial generation network includes a forward codec generation network and a reverse codec generation network;

[0010] The forward codec generation network is used to generate abnormal sample images from normal sample images, and the reverse codec generation network is used to generate normal sample images from abnormal sample images; the cyclic adversarial generation network is trained cyclically to generate abnormal sample images according to the input normal sample images.

[0011] Furthermore, the forward codec generation network includes a forward encoder, a forward feature extraction network and a forward decoder; the forward encoder is a convolutional neural network, the forward feature extraction network is a Transformer module, and the forward decoder is a deconvolutional neural network.

[0012] Furthermore, the inverse codec generation network includes an inverse encoder, an inverse feature extraction network and an inverse decoder; the inverse encoder is a convolutional neural network, the inverse feature extraction network is a Transformer module, and the inverse decoder is a deconvolutional neural network.

[0013] Furthermore, the forward discriminant network is used to determine whether the image generated by the forward codec generation network is an abnormal sample image. The loss function of the forward discriminant network is for:

[0014]

[0015] Where D G is a positive discriminant network, x is a normal sample image, y is an abnormal sample image, t x ,t y are the labels corresponding to x and y respectively, G(x) is the image generated by the forward encoder-decoder generation network, and E[·] is the calculated mathematical expectation.

[0016] Furthermore, the reverse discriminant network is used to determine whether the image generated by the reverse codec generation network is a normal sample image. The loss function of the reverse discriminant network is for:

[0017]

[0018] Where D F is the reverse discriminant network, x is the normal sample image, y is the abnormal sample image, t x ,t y are the annotations corresponding to x and y respectively, and F(y) is the image generated by the inverse encoder-decoder network.

[0019] Furthermore, the cyclic adversarial generation network further comprises: comparing the similarity between the normal sample image input into the forward codec generation network and the normal sample image output from the reverse codec generation network

[0020]

[0021] Where x is a normal sample image, y is an abnormal sample image, G is the forward encoder-decoder generation network, F is the reverse encoder-decoder generation network, and E[·] is the calculated mathematical expectation.

[0022] The power abnormality scenario small sample expansion system of the present invention includes:

[0023] A sample set construction unit, used to obtain a normal sample set constructed by a normal image of the electric power equipment, and an abnormal sample set constructed by an abnormal image of the electric power equipment;

[0024] The small sample expansion unit is used to extract a first image containing the power equipment from the normal image of the power equipment, input the first image into a recurrent adversarial generation network to obtain a second image, replace the first image with the second image and splice it into the normal image of the power equipment to generate a second abnormal image of the power equipment; and add the second abnormal image of the power equipment to the abnormal sample set.

[0025] Furthermore, the cyclic adversarial generation network includes a forward codec generation network and a reverse codec generation network; the forward codec generation network is used to generate abnormal sample images from normal sample images, and the reverse codec generation network is used to generate normal sample images from abnormal sample images; the cyclic adversarial generation network is trained cyclically so that it generates abnormal sample images based on the input normal sample images.

[0026] Furthermore, the forward codec generation network includes a forward encoder, a forward feature extraction network and a forward decoder; the forward encoder is a convolutional neural network, the forward feature extraction network is a Transformer module, and the forward decoder is a deconvolutional neural network.

[0027] Furthermore, the inverse codec generation network includes an inverse encoder, an inverse feature extraction network and an inverse decoder; the inverse encoder is a convolutional neural network, the inverse feature extraction network is a Transformer module, and the inverse decoder is a deconvolutional neural network.

[0028] Furthermore, the forward discriminant network is used to determine whether the image generated by the forward codec generation network is an abnormal sample image. The loss function of the forward discriminant network is for:

[0029]

[0030] Where D G is a positive discriminant network, x is a normal sample image, y is an abnormal sample image, t x ,t y are the labels corresponding to x and y respectively, G(x) is the image generated by the forward encoder-decoder generation network, and E[·] is the calculated mathematical expectation.

[0031] Furthermore, the reverse discriminant network is used to determine whether the image generated by the reverse codec generation network is a normal sample image. The loss function of the reverse discriminant network is for:

[0032]

[0033] Where D F is the reverse discriminant network, x is the normal sample image, y is the abnormal sample image, t x ,t y are the labels corresponding to x and y respectively, F(y) is the image generated by the inverse encoder-decoder generation network, and E[·] is the calculated mathematical expectation.

[0034] Furthermore, the cyclic adversarial generation network further comprises: comparing the similarity between the normal sample image input into the forward codec generation network and the normal sample image output from the reverse codec generation network

[0035]

[0036] Where x is a normal sample image, y is an abnormal sample image, G is the forward encoder-decoder generation network, F is the reverse encoder-decoder generation network, and E[·] is the calculated mathematical expectation.

[0037] The electronic device described in the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is loaded into the processor, the method for expanding the small sample of power anomaly scenarios is implemented.

[0038] The computer-readable storage medium of the present invention stores a computer program, and when the computer program is executed by a processor, the method for expanding the small sample size of power anomaly scenarios is implemented.

[0039] Beneficial effect: Compared with the prior art, the advantages of the present invention are: in the images of power equipment taken at a long distance by equipment such as drones, images containing only power equipment are captured, abnormal samples are generated from normal samples through a cyclic adversarial generation network, and then they are spliced ​​back into the original image, thereby avoiding environmental interference other than the power equipment and generating abnormal images of power scenes that are consistent with those obtained by similar surveillance balls, drones, and surveillance cameras; at the same time, the cyclic adversarial generation network of the present invention characterizes the effects of the forward and reverse encoding and decoding generation networks through an exponential loss function, making the model more sensitive to noise in the image, and adopting the L2 paradigm to evaluate the difference between the input image after passing through the cyclic network and the original image, effectively alleviating the problem of model overfitting. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 This is a flow chart of the method for expanding a small sample of power anomaly scenarios of the present invention;

[0041] Figure 2 A schematic diagram of the structure of a codec generation network according to an embodiment of the present invention;

[0042] Figure 3 Schematic diagram of the Transformer module structure of an embodiment of the present invention;

[0043] Figure 4 Schematic diagram of a discrimination network according to an embodiment of the present invention.

[0044] Figure 5 This is a flow chart of the method for expanding a small sample of power anomaly scenarios in this embodiment; DETAILED DESCRIPTION

[0045] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.

[0046] like Figure 1 As shown, the method for expanding a small sample of power anomaly scenarios includes the following steps:

[0047] (1) Perform data preprocessing on images of power equipment taken by surveillance cameras, surveillance cameras, drones, etc., and construct normal sample sets and abnormal sample sets for different equipment and scenes.

[0048] A variety of visual sensors are used to collect normal and abnormal samples of various power equipment in scenes at different times and places; preliminary data enhancement is performed on the collected normal and abnormal samples, and the enhancement methods include image rotation, image scaling, image cropping, image stitching, etc.; target recognition is performed on the obtained sample set, and the target power equipment is located and cut to obtain normal and abnormal samples of the corresponding power equipment, and thereby construct normal sample sets and abnormal sample sets of different equipment.

[0049] (2) Construct a cyclic adversarial generation network, including a forward encoder-decoder generation network G and a forward discriminant network D G , reverse encoder-decoder generation network F, reverse discriminant network D F .

[0050] The forward encoder-decoder generation network G consists of an encoder G E , feature extraction network G R and decoder G D , whose structure is as follows Figure 2 As shown, its role is to generate abnormal samples from normal samples, and the encoder G of the forward encoder-decoder generation network E Using convolutional neural network, decoder G D Using deconvolution neural network, feature extraction network G R The Transformer module is used to connect the encoder G E and decoder G D , the structure of the Transformer module is as follows Figure 3 As shown. Encoder G E The feature vector of the input image is extracted by convolution, and the feature extraction network G R The feature vector is extracted to obtain a new feature vector. The decoder G D The feature vector is restored to an image through deconvolution.

[0051] Forward Discriminant Network D G , which is used to determine whether the image generated by the forward codec generation network G is an abnormal sample. Its structure is as follows Figure 4 As shown. Forward discriminant network D G The features of the input image are extracted through several convolutional layers, and finally several fully connected layers are used to determine whether the input is an abnormal sample. The loss function of the forward encoding and decoding generation network G is:

[0052]

[0053] Where D G is the forward generation network corresponding to the discriminant network, x is the normal sample set data, y is the abnormal sample set data, t x ,t yThe present invention adopts an exponential loss function to characterize the effect of the forward encoding and decoding generation network, making the model more sensitive to noise in the image.

[0054] The inverse encoder-decoder generation network F consists of an encoder F E , feature extraction network F R and decoder F D , which is used to generate normal samples from abnormal samples. Similar to the forward encoding and decoding generation network, its structure is as follows Figure 2 As shown, the encoder F of the reverse encoding and decoding generation network E A convolutional neural network is used to extract the feature vector of the input image. The feature extraction network F R The new feature vector is obtained by feature extraction through the Transformer module, and the decoder F D The new feature vector is restored to an image through deconvolution. The structure of the Transformer module is as follows Figure 3 shown.

[0055] Reverse Discriminant Network D F , structure and forward discriminant network D G Similar, such as Figure 4 As shown, it is used to determine whether the image generated by the reverse codec generation network F is a normal sample. The loss function of the reverse codec generation network F is:

[0056]

[0057] Where D F is the forward generation network corresponding to the discriminant network, x is the normal sample set data, y is the abnormal sample set data, t x ,t y They are the labels corresponding to x and y respectively.

[0058] (3) Use normal and abnormal sample sets of different components and scenes to train the recurrent adversarial generative network to obtain the encoder-decoder generation network of different components that can generate abnormal samples from normal samples. Figure 5 shown.

[0059] The recurrent adversarial generative network combines the forward codec generation network G and the reverse codec generation network F. That is, the normal sample x first passes through the forward codec generation network G to obtain the generated abnormal sample x', which is then used as the input of the reverse codec generation network F to obtain the generated normal sample x", and the similarity between x' and x" It is also a component of the cyclic adversarial generation network. To this end, the loss function of the entire cyclic adversarial generation network should consist of three parts, namely the loss function of the forward encoder-decoder generation network G The loss function of the inverse encoder-decoder generation network F Similarity between the input and output of the recurrent network It can be expressed as follows:

[0060]

[0061] The L2 paradigm used in this paper is used to evaluate the difference between the input image and the original image after passing through the recurrent network, and can effectively alleviate the problem of model overfitting. The overall loss function of the recurrent adversarial generative network is:

[0062] The overall loss function of the cyclic adversarial generation network is:

[0063]

[0064] pass

[0065]

[0066] The network can be trained to obtain the forward codec generation network G and the reverse codec generation network F.

[0067] (4) After processing the data in the normal sample sets of different devices using the codec, the corresponding abnormal samples are obtained, and they are pasted back into the original image to obtain samples corresponding to the power abnormality scene.

[0068] The forward codec generated by network training is used to generate network G, which is used to generate abnormal samples from normal target power equipment image samples. The samples generated by network G are abnormal samples generated for target power equipment. By replacing the original image with this image and splicing it into the image, an abnormal image of the power scene similar to that taken by a surveillance ball, a drone, or a surveillance camera can be obtained.

[0069] This embodiment uses 3000 image samples containing oil-filled equipment collected by surveillance balls, drones, surveillance cameras and other equipment, of which 2800 samples only contain normal oil-filled equipment, and 200 samples contain samples containing abnormal oil-filled equipment. Data enhancement is performed on 1300 of the 2800 samples, that is, the forward codec generates a network G using normal samples to generate abnormal samples. For the oil storage tanks and coolers in this batch of data, the present invention generates an enhanced abnormal sample set by cutting the normal oil storage tanks and coolers, generating corresponding abnormal samples through G, and then splicing them back to the original image. The original sample set and the enhanced sample set are trained separately using different models, and the model is tested on the new test set. The test results are shown in the following table:

[0070]

[0071] The power abnormality scenario small sample expansion system of the present invention includes:

[0072] A sample set construction unit, used to obtain a normal sample set constructed by a normal image of the electric power equipment, and an abnormal sample set constructed by an abnormal image of the electric power equipment;

[0073] The small sample expansion unit is used to extract a first image containing the power equipment from the normal image of the power equipment, input the first image into a recurrent adversarial generation network to obtain a second image, replace the first image with the second image and splice it into the normal image of the power equipment to generate a second abnormal image of the power equipment; and add the second abnormal image of the power equipment to the abnormal sample set.

[0074] The cyclic adversarial generation network includes a forward codec generation network and a reverse codec generation network; the forward codec generation network is used to generate abnormal sample images from normal sample images, and the reverse codec generation network is used to generate normal sample images from abnormal sample images; the cyclic adversarial generation network is trained cyclically so that it generates abnormal sample images according to the input normal sample images.

[0075] The forward codec generation network includes a forward encoder, a forward feature extraction network and a forward decoder; the forward encoder is a convolutional neural network, the forward feature extraction network is a Transformer module, and the forward decoder is a deconvolutional neural network.

[0076] The forward discriminant network is used to determine whether the image generated by the forward codec generation network is an abnormal sample image. The loss function of the forward discriminant network is for:

[0077]

[0078] Where D G is a positive discriminant network, x is a normal sample image, y is an abnormal sample image, t x ,t y are the annotations corresponding to x and y respectively, and G(x) is the image generated by the forward encoder-decoder generation network.

[0079] The reverse codec generation network includes a reverse encoder, a reverse feature extraction network and a reverse decoder; the reverse encoder is a convolutional neural network, the reverse feature extraction network is a Transformer module, and the reverse decoder is a deconvolutional neural network.

[0080] The reverse discriminant network is used to determine whether the image generated by the reverse codec generation network is a normal sample image. The loss function of the reverse discriminant network is for:

[0081]

[0082] Where D F is the reverse discriminant network, x is the normal sample image, y is the abnormal sample image, t x ,t y are the annotations corresponding to x and y respectively, and F(y) is the image generated by the inverse encoder-decoder network.

[0083] The cyclic adversarial generation network also includes: comparing the similarity between the normal sample image input to the forward encoder-decoder generation network and the normal sample image output by the reverse encoder-decoder generation network

[0084]

[0085] Where x is a normal sample image, y is an abnormal sample image, G is the forward encoder-decoder generation network, and F is the reverse encoder-decoder generation network.

[0086] The electronic device described in the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is loaded into the processor, the method for expanding small samples of power anomaly scenarios based on a cyclic adversarial generation network is implemented.

[0087] The computer-readable storage medium of the present invention stores a computer program, and when the computer program is executed by a processor, the method for expanding small samples of power anomaly scenarios based on a cyclic adversarial generation network is implemented.

[0088] The computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, flash memory, or any other medium that can be used to store the desired program code in the form of instructions or data structures and that can be accessed by a computer.

[0089] The processor is used to execute the computer program stored in the memory to implement each step of the method involved in the above embodiment.

[0090] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, electronic devices or computer-readable storage media. Therefore, the present application can adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt one or more computer-readable storage media including computer-usable program codes, and the computer-readable storage media can include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, flash memory or any other media that can be used to store the desired program code of the form of instructions or data structures and can be accessed by a computer. The scheme in the embodiments of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript etc.

[0091] The present application is described with reference to the flowcharts and / or block diagrams of the methods, systems, and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks 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 generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. 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.

[0092] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate 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 A function specified in one or more boxes.

[0093] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0094] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0095] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for expanding small samples of power anomaly scenarios, characterized in that: The steps include: Obtaining a normal sample set constructed by normal images of electric power equipment and an abnormal sample set constructed by abnormal images of electric power equipment; Extracting a first image containing the electric power equipment from the normal image of the electric power equipment, inputting the first image into a recurrent adversarial generative network to obtain a second image, replacing the first image with the second image and splicing it into the normal image of the electric power equipment to generate a second abnormal image of the electric power equipment; The second abnormal image of the electric power equipment is added to the abnormal sample set.

2. The method for expanding small samples of power anomaly scenarios according to claim 1 is characterized in that: The cyclic adversarial generation network includes a forward codec generation network and a reverse codec generation network; The forward codec generation network is used to generate abnormal sample images from normal sample images, and the reverse codec generation network is used to generate normal sample images from abnormal sample images; The cyclic adversarial generation network is cyclically trained so as to generate abnormal sample images according to the input normal sample images.

3. The method for expanding small samples of power anomaly scenarios according to claim 2 is characterized in that: The forward codec generation network includes a forward encoder, a forward feature extraction network and a forward decoder; the forward encoder is a convolutional neural network, the forward feature extraction network is a Transformer module, and the forward decoder is a deconvolutional neural network.

4. The method for expanding a small sample of power anomaly scenarios according to claim 2 is characterized in that: The inverse codec generation network includes an inverse encoder, an inverse feature extraction network and an inverse decoder; the inverse encoder is a convolutional neural network, the inverse feature extraction network is a Transformer module, and the inverse decoder is a deconvolutional neural network.

5. The method for expanding small samples of power anomaly scenarios according to claim 2 is characterized in that: The forward discriminant network is used to determine whether the image generated by the forward codec generation network is an abnormal sample image. The loss function of the forward discriminant network is for: Where D G is a positive discriminant network, x is a normal sample image, y is an abnormal sample image, t x ,t y are the labels corresponding to x and y respectively, G(x) is the image generated by the forward encoder-decoder generation network, and E[·] is the calculated mathematical expectation.

6. The method for expanding a small sample of power anomaly scenarios according to claim 2 is characterized in that: The reverse discriminant network is used to determine whether the image generated by the reverse codec generation network is a normal sample image. The loss function of the reverse discriminant network is for: Where D F is the reverse discriminant network, x is the normal sample image, y is the abnormal sample image, t x ,t y are the labels corresponding to x and y respectively, F(y) is the image generated by the inverse encoder-decoder generation network, and E[·] is the calculated mathematical expectation.

7. The method for expanding a small sample of power anomaly scenarios according to claim 2 is characterized in that: The cyclic adversarial generation network also includes: comparing the similarity between the normal sample image input to the forward codec generation network and the normal sample image output by the reverse codec generation network Where x is a normal sample image, y is an abnormal sample image, G is the forward encoder-decoder generation network, F is the reverse encoder-decoder generation network, and E[·] is the calculated mathematical expectation.

8. A small sample expansion system for power anomaly scenarios, characterized in that: include: A sample set construction unit, used to obtain a normal sample set constructed by a normal image of the electric power equipment, and an abnormal sample set constructed by an abnormal image of the electric power equipment; A small sample expansion unit is used to extract a first image containing the power equipment from the normal image of the power equipment, input the first image into a recurrent adversarial generation network to obtain a second image, replace the first image with the second image and splice it into the normal image of the power equipment to generate a second abnormal image of the power equipment; The second abnormal image of the electric power equipment is added to the abnormal sample set.

9. The power anomaly scenario small sample expansion system according to claim 8 is characterized in that: The cyclic adversarial generation network includes a forward codec generation network and a reverse codec generation network; The forward codec generation network is used to generate abnormal sample images from normal sample images, and the reverse codec generation network is used to generate normal sample images from abnormal sample images; The cyclic adversarial generation network is cyclically trained so as to generate abnormal sample images according to the input normal sample images.

10. The power anomaly scenario small sample expansion system according to claim 9, characterized in that: The forward codec generation network includes a forward encoder, a forward feature extraction network and a forward decoder; the forward encoder is a convolutional neural network, the forward feature extraction network is a Transformer module, and the forward decoder is a deconvolutional neural network.

11. The power anomaly scenario small sample expansion system according to claim 9, characterized in that: The inverse codec generation network includes an inverse encoder, an inverse feature extraction network and an inverse decoder; the inverse encoder is a convolutional neural network, the inverse feature extraction network is a Transformer module, and the inverse decoder is a deconvolutional neural network.

12. The power anomaly scenario small sample expansion system according to claim 9, characterized in that: The forward discriminant network is used to determine whether the image generated by the forward codec generation network is an abnormal sample image. The loss function of the forward discriminant network is for: Where D G is a positive discriminant network, x is a normal sample image, y is an abnormal sample image, t x ,t y are the labels corresponding to x and y respectively, G(x) is the image generated by the forward encoder-decoder generation network, and E[·] is the calculated mathematical expectation.

13. The power anomaly scenario small sample expansion system based on cyclic adversarial generative network according to claim 9 is characterized in that: The reverse discriminant network is used to determine whether the image generated by the reverse codec generation network is a normal sample image. The loss function of the reverse discriminant network is for: Where D F is the reverse discriminant network, x is the normal sample image, y is the abnormal sample image, t x ,t y are the labels corresponding to x and y respectively, F(y) is the image generated by the inverse encoder-decoder generation network, and E[·] is the calculated mathematical expectation.

14. The power anomaly scenario small sample expansion system according to claim 9, characterized in that: The cyclic adversarial generation network also includes: comparing the similarity between the normal sample image input to the forward codec generation network and the normal sample image output by the reverse codec generation network Where x is a normal sample image, y is an abnormal sample image, G is the forward encoder-decoder generation network, F is the reverse encoder-decoder generation network, and E[·] is the calculated mathematical expectation.

15. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the computer program is loaded into a processor, the method for expanding a small sample of power anomaly scenarios according to any one of claims 1 to 7 is implemented.

16. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for expanding a small sample of power anomaly scenarios according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Visual inspection method for multiple types of assembly defects in cylinder

    CN122244018A