Power line monitoring anomaly recognition method and system based on deep adversarial network
Through the power line monitoring anomaly identification method based on the deep adversarial network, the problem of poor identification effect of traditional patrol inspection and intelligent video surveillance technology in power line inspection has been solved, and high-precision anomaly identification and false data detection have been achieved, improving the efficiency of power line inspection. Intelligent level and early warning capabilities of power line monitoring.
Patent Information
- Application Number
- CN202110059517.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-11-19
- Filing Date
- 2021-01-18
- Publication Date
- 2024-08-13
- Estimated Expiration
- 2041-01-18
AI Technical Summary
The traditional power line inspection method cannot effectively grasp the latent faults in the equipment status, and the intelligent identification effect of intelligent video surveillance technology is poor, especially in environments with high equipment diversity and complexity, resulting in poor monitoring abnormality identification effects. .
The power line monitoring anomaly identification method based on deep adversarial network is adopted. By constructing a generator and a discriminator, the deep adversarial network is alternately trained to generate and identify false images, improve the recognition accuracy of monitoring images, and optimize the training process to reduce false alarms and omissions. Report rate.
It achieves high-precision identification of power line monitoring anomalies, reduces dependence on massive data, improves intelligence, enhances the system's early warning capabilities, and prevents the impact of false attack data.
Smart Images

Figure CN112613494B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power line detection, and in particular to a power line monitoring anomaly recognition method and system based on a deep adversarial network. Background Art
[0002] Power line inspection is an important part of daily operation and maintenance management of power distribution. During line operation, if there is long-term partial discharge in high-voltage electrical equipment, it will accelerate equipment aging and eventually lead to failures. At present, my country's power companies are constantly increasing their requirements for lean production and operation and maintenance. The continuous growth of new equipment and new materials and the sharp increase in the overall scale of power grid equipment have led to a sharp increase in on-site maintenance and daily operation and maintenance work, and the contradiction between structural production shortages and power supply reliability requirements has become increasingly prominent. The traditional way of conducting daily inspections of power lines through appearance inspections and manual records cannot effectively grasp the latent faults of equipment state machines, especially the current methods of regular maintenance of power transmission and distribution equipment, which are not very targeted.
[0003] The video image acquisition and monitoring equipment currently used has a low level of intelligence and requires a large amount of manual work to find defects. Especially when the number of video devices increases significantly, manual data review becomes increasingly difficult and unreliable.
[0004] At present, some manufacturers have proposed intelligent video surveillance technology, but the current intelligent recognition technology is mostly based on unidirectional neural networks, using image classification and image detection technology. Due to the diversity and complexity of power equipment, this image recognition technology has poor results.
[0005] Some literature has proposed methods of using generative adversarial networks to improve the recognition model effect, but these methods basically use generative adversarial networks to enrich the training database, which has a poor effect on improving the recognition effect of model recognition models, resulting in poor recognition effect of power line monitoring anomalies. Summary of the invention
[0006] The purpose of the present invention is to provide a method and system for identifying anomalies in power line monitoring based on a deep adversarial network, so as to improve the accuracy of identifying anomalies in power line monitoring.
[0007] To achieve the above object, the present invention provides the following solutions:
[0008] A method for identifying abnormalities in power line monitoring based on a deep adversarial network, comprising:
[0009] Constructing a deep adversarial network; the deep adversarial network includes a generator and a discriminator; the generator is used to generate a fake picture; the discriminator is used to determine whether the input image is a fake picture;
[0010] Based on a training sample set, alternately training the generator and the discriminator in the deep adversarial network to obtain a trained discriminator; the training sample set includes a plurality of real samples and a corresponding plurality of false samples;
[0011] Acquire a monitoring image of a power line to be identified;
[0012] The power line monitoring image to be identified is input into the trained discriminator to identify whether the power line monitoring image to be identified is a false image, thereby obtaining a recognition result.
[0013] Optionally, the deep adversarial network also includes: a first decoder network and a second decoder network; the real sample generates a first latent space variable corresponding to the real sample through the first decoder network; the first latent space variable passes through the generator to generate a false picture corresponding to the real sample; the false picture generates a second latent space variable through the second decoder network.
[0014] Optionally, the step of alternately training the generator and the discriminator in the deep adversarial network based on the training sample set to obtain a trained discriminator specifically includes:
[0015] According to the training sample set, a generated sample of each real sample is generated based on a generator to obtain a plurality of training sample pairs; the generated sample is a false image corresponding to the real sample, and each training sample pair includes a real sample and a corresponding generated sample;
[0016] The generator is fixed, the discriminator is trained once based on all training sample pairs, and the parameters of the discriminator are updated based on the first loss function to complete a discriminator iteration;
[0017] After completing k discriminator iterations, the parameters of the generator are updated once based on the learning rate, completing an initial iteration of the generator;
[0018] After completing n initial iterations of the generator, a generated sample for each real sample is generated based on the updated generator, completing an update of multiple training sample pairs;
[0019] After completing the update of multiple training sample pairs d times, the generator is trained once through all the training sample pairs, the parameters of the generator are updated based on the second loss function, and the update iteration of the generator is completed once; and the second decoder network is trained once through all the training sample pairs, the parameters of the second decoder network are updated in combination with the third loss function, and the update of the second decoder network is completed once;
[0020] Lock the second decoder network after the update, train the generator once based on all training sample pairs, and update the parameters of the generator based on the third loss function, completing a final iteration of the generator; return to the step of "fixing the generator, training the discriminator once based on all training sample pairs, and updating the parameters of the discriminator based on the first loss function, completing a discriminator iteration";
[0021] When the cumulative number of iterations of the discriminator reaches the maximum number of iterations, the discriminator after the last discriminator iteration parameter update is determined as the trained discriminator.
[0022] Optionally, the first loss function is the Euclidean distance between the recognition result of the generated sample output by the discriminator and the corresponding false sample; the second loss function is the Manhattan distance between the real sample and the generated sample generated by the generator; the third loss function is the Euclidean distance between the first latent space variable and the second latent space variable.
[0023] Optionally, the discriminator includes an encoder and a fully connected neural network layer connected to the encoder.
[0024] The present invention also provides a power line monitoring anomaly recognition system based on a deep adversarial network, comprising:
[0025] A deep adversarial network construction module, used to construct a deep adversarial network; the deep adversarial network includes a generator and a discriminator; the generator is used to generate a fake picture; the discriminator is used to determine whether the input image is a fake picture;
[0026] A training module, used for alternately training the generator and the discriminator in the deep adversarial network based on a training sample set to obtain a trained discriminator; the training sample set includes a plurality of real samples and a corresponding plurality of false samples;
[0027] A module for acquiring monitoring images of power lines to be identified, used for acquiring monitoring images of power lines to be identified;
[0028] The recognition module is used to input the power line monitoring image to be recognized into the trained discriminator, recognize whether the power line monitoring image to be recognized is a false image, and obtain a recognition result.
[0029] Optionally, the deep adversarial network also includes: a first decoder network and a second decoder network; the real sample generates a first latent space variable corresponding to the real sample through the first decoder network; the first latent space variable passes through the generator to generate a false picture corresponding to the real sample; the false picture generates a second latent space variable through the second decoder network.
[0030] Optionally, the training module specifically includes:
[0031] A training sample pair generating unit, configured to generate generated samples of each real sample based on the generator according to the training sample set, so as to obtain a plurality of training sample pairs; the generated samples are false images corresponding to the real samples, and each training sample pair includes a real sample and a corresponding generated sample;
[0032] A discriminator updating unit, used to fix the generator, train the discriminator once based on all training sample pairs, and update the parameters of the discriminator based on a first loss function to complete a discriminator iteration;
[0033] A generator initial update unit, used to update the parameters of the generator once based on the learning rate after completing k discriminator iterations, and complete an initial iteration of the generator;
[0034] A training sample pair updating unit, used for generating a generated sample for each real sample based on the updated generator after completing n initial iterations of the generator, and completing an update of multiple training sample pairs;
[0035] A generator secondary updating unit, used for training the generator once through all the training sample pairs after completing the updating of the plurality of training sample pairs d times, updating the parameters of the generator based on the second loss function, and completing an update iteration of the generator;
[0036] A second encoder network updating unit, configured to train the second decoder network once through all training sample pairs, update the parameters of the second decoder network in combination with a third loss function, and complete an update of the second decoder network;
[0037] The generator three-time updating unit is used to lock the second decoder network after the update, train the generator once based on all training sample pairs, and update the parameters of the generator based on the third loss function to complete a final iteration of the generator; and return to the step of "fixing the generator, training the discriminator once based on all training sample pairs, and updating the parameters of the discriminator based on the first loss function to complete a discriminator iteration";
[0038] The trained discriminator determination unit is used to determine the discriminator after the last discriminator iteration parameter update as the trained discriminator when the cumulative number of discriminator iterations reaches a maximum number of iterations.
[0039] Optionally, the first loss function is the Euclidean distance between the recognition result of the generated sample output by the discriminator and the corresponding false sample; the second loss function is the Manhattan distance between the real sample and the generated sample generated by the generator; the third loss function is the Euclidean distance between the first latent space variable and the second latent space variable.
[0040] Optionally, the discriminator includes an encoder and a fully connected neural network layer connected to the encoder.
[0041] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0042] A large number of video image monitoring systems do not have the ability to intelligently detect anomalies and alarm. The present invention is based on a method of jointly training a small amount of historical data and a generative adversarial network to achieve the ability to detect and alarm abnormal images and videos. At the same time, the training process is optimized, so that a higher-precision detection capability can be achieved without the need for massive data, the accuracy rate is reduced, the false alarm and missed alarm rates are reduced, and the intelligent level of power line video monitoring is improved. In addition, false attack data detection can be achieved to prevent malicious network attacks from using false data to deceive the system, thereby improving the system's early warning capability. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0044] Figure 1 It is a flow chart of a method for identifying abnormalities in power line monitoring based on a deep adversarial network according to the present invention;
[0045] Figure 2 A schematic diagram of a generative adversarial network;
[0046] Figure 3 A schematic diagram of a deep adversarial network of the present invention;
[0047] Figure 4 A schematic diagram of the discriminator of the present invention identifying a power line monitoring image;
[0048] Figure 5 It is a structural schematic diagram of a power line monitoring anomaly recognition system based on a deep adversarial network of the present invention;
[0049] Figure 6 It is a schematic diagram of the hardware structure when implementing the present invention;
[0050] Figure 7 It is an overall block diagram of the hardware system of the present invention. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0053] Figure 1 FIG. 1 is a flow chart of a method for identifying abnormalities in power line monitoring based on a deep adversarial network according to the present invention. Figure 1 As shown, the power line monitoring anomaly recognition method based on deep adversarial network includes the following steps:
[0054] Step 100: Build a deep adversarial network. Figure 2 A schematic diagram of a generated adversarial network is shown in Figure 2 As shown in the figure, in the traditional generative adversarial network, a deep inverse convolutional neural network model (also regarded as a decoder) is used as the generator G, which can input a vector and output a set pixel image. The input variable is called the latent variable z in the latent space; the deep network is used as a discriminator to determine whether the image is real or fake. The deep network includes two partial convolutional neural networks (also regarded as encoders), connected to a fully connected layer network (also regarded as a classifier), inputs the image, and outputs the judgment result of whether the image is normal or abnormal.
[0055] The generator, also called the decoder, has the same inverse convolutional neural network structure. It inputs an n-dimensional vector, which is related to the n-dimensional latent space of the feature and is often called the latent variance. The output is a picture of the pixel size. For example, if the dimension of the input latent variable is set to 100, after passing through a 4-layer inverse convolutional neural network, a 64*64 image can be output.
[0056] The encoder is a completely opposite process, except that the inverse convolutional neural network is replaced by a convolutional neural network. The discriminator consists of an encoder and connects the output vector to a fully connected layer classifier.
[0057] Based on the structure of a generative adversarial network, the deep adversarial network constructed by the present invention includes a generator and a discriminator. The generator is used to generate false images, and the discriminator is used to determine whether an input image is a false image.
[0058] The present invention constructs a deep adversarial network that can identify abnormal or false images in general situations when there are a large number of normal image data sets and a small number of abnormal and attacked false data. A photo is input into the deep adversarial network, and the abnormality and falseness scores A(x) of the photo are calculated. When the abnormality and falseness scores A(x) are less than a threshold, the abnormality of the image can be determined. Figure 3 It is a schematic diagram of the deep adversarial network of the present invention, such as Figure 3 As shown, the deep adversarial network of the present invention also includes: a first decoder network D1 and a second decoder network D2, the real sample generates a first latent space variable corresponding to the real sample through the first decoder network; the first latent space variable passes through the generator to generate a false picture corresponding to the real sample; the false picture generates a second latent space variable through the second decoder network. The entire deep adversarial network includes three sub-networks: sub-network 1, sub-network 2 and sub-network 3.
[0059] Subnetwork 1 is an autoencoder network including a first decoder network D1 and a generator G. The generator G learns the representation (latent variable) z of the input image x in the latent space and reconstructs it into the input image xr.
[0060] The calculation process of the network is as follows:
[0061] First, the image x is forwarded through the first decoder network D1 to obtain a set of vectors z, z=D1(x), which is the representation of the image in the latent space. This representation can be regarded as the lowest dimension that contains the best representation of the image features; the vector z is then forwarded through the generator G to restore the representation in the latent space to an image with the same dimension as the input, expressed as xr=G(z).
[0062] Subnetwork 1 uses the Manhattan distance between the input image and the output generated image to form a loss function, through which various optimization algorithms based on the gradient descent algorithm can be used to learn the background similarity between the generated image and the original image. The loss function is as follows:
[0063] L1=||x-xr||1
[0064] Subnetwork 2 includes the discriminator in the generative adversarial network, which consists of an encoder connected to a fully connected neural network layer. The goal of the discriminator is to classify the input real sample x, the input generated sample xr and the fake sample x′ into real pictures and abnormal or fake pictures respectively.
[0065] Subnetwork 2 uses the Euclidean distance between the output recognition result of the generated sample and the corresponding false sample to form a loss function. The loss function is as follows:
[0066] L2=||D(xr)-D(x′)||2
[0067] Sub-network 3 is the second decoder network D2, which recalculates the image xr into a set of latent space variables. The second decoder network D2 has the same network structure and different parameters as the discriminator D. Unlike all other methods based on generative adversarial networks and auto-encoding networks that minimize the dimension of latent variables through bottlenecks, the sub-network 3 of the present invention uses an explicit training process of an additional decoder network to obtain the network model parameters of the second decoder network D2.
[0068] The Euclidean distance between the output z' of the second decoder network D2 and the intermediate variable z of the subnetwork 1 constitutes a loss function, through which various optimization algorithms based on the gradient descent algorithm can be used. The loss function is as follows:
[0069] L3=||zz′||2
[0070] Step 200: Based on the training sample set, alternately train the generator and discriminator in the deep adversarial network to obtain a trained discriminator. The training sample set includes multiple real samples and corresponding multiple false samples. The specific training process is as follows:
[0071] Step 1: Based on the training sample set, generate samples for each real sample based on the generator to obtain multiple training sample pairs. Sample m samples (x1, x2, ..., x m ), sample m noise samples (z1,z2,…,z m ) and obtain m generated samples (xr1, xr2, ..., xr m ). The generated sample is a false image corresponding to the real sample, and each training sample pair includes a real sample and a corresponding generated sample;
[0072] Step 2: Fix the generator, train the discriminator based on all training samples, and update the parameters of the discriminator based on the first loss function L2 to complete a discriminator iteration. Specifically, the discriminator D of subnetwork 2 calculates (A1, A2, ..., A m ), try to distinguish the correct false samples from the generated samples. The parameter gradient error of the discriminator D is calculated through the loss function L2, and the parameters of D are updated. When the next discriminator iteration is performed, continue to execute Step 2.
[0073] Step 3: After completing k discriminator iterations, the discriminator D is improved, and the images generated by the generator are difficult to distinguish from real data. At this time, the parameters of the generator are updated once based on a smaller learning rate to complete an initial iteration of the generator.
[0074] Step 4: After completing n initial iterations of the generator, the performance of the generator G is improved. Generate a generated sample for each real sample based on the updated generator, and complete the update of multiple training sample pairs.
[0075] Step 5: After completing the update of multiple training sample pairs d times, train the generator once through all training sample pairs, update the parameters of the generator based on the second loss function, complete an update iteration of the generator, and reversely calculate the loss function L1 to train the generator so that it can reduce the gap between the generated samples and the real samples as much as possible.
[0076] At the same time, the second decoder network is trained once through all training sample pairs, and the parameters of the second decoder network are updated in combination with the third loss function L3, thereby completing an update of the second decoder network.
[0077] Step 6: Lock the second decoder network D2 after an update, train the generator once based on all training samples generated by the generator G several times, and update the parameters of the generator based on the third loss function L3 to complete the final iteration of the generator.
[0078] Step 1-Step 6 is an overall training process. After the training is completed, return to Step 1 and enter the next overall iteration. When the cumulative number of discriminator iterations reaches the maximum number of iterations, the discriminator after the last discriminator iteration parameter update is determined as the trained discriminator.
[0079] Step 300: Acquire a monitoring image of a power line to be identified.
[0080] Step 400: Input the power line monitoring image to be identified into the trained discriminator to identify whether the power line monitoring image to be identified is a false image, and obtain the identification result. Figure 4 As shown, the power line monitoring image to be identified is input into the trained discriminator D, and the abnormality and falseness scores A(x) of the photo are calculated. When A(x) is less than the threshold, the image can be judged to be abnormal.
[0081] Based on the above method, the present invention also provides a power line monitoring anomaly recognition system based on a deep adversarial network. Figure 5 FIG. 1 is a schematic diagram of the structure of the power line monitoring anomaly recognition system based on the deep adversarial network of the present invention. Figure 5As shown, the power line monitoring anomaly recognition system based on the deep adversarial network of the present invention includes:
[0082] A deep adversarial network construction module 501 is used to construct a deep adversarial network; the deep adversarial network includes a generator and a discriminator; the generator is used to generate false images; the discriminator is used to determine whether the input image is a false image.
[0083] The training module 502 is used to alternately train the generator and the discriminator in the deep adversarial network based on a training sample set to obtain a trained discriminator; the training sample set includes multiple real samples and corresponding multiple false samples.
[0084] The to-be-identified power line monitoring image acquisition module 503 is used to acquire the to-be-identified power line monitoring image.
[0085] The recognition module 504 is used to input the power line monitoring image to be recognized into the trained discriminator, recognize whether the power line monitoring image to be recognized is a false image, and obtain a recognition result.
[0086] As a specific embodiment, in the power line monitoring anomaly recognition system based on a deep adversarial network of the present invention, the deep adversarial network also includes: a first decoder network and a second decoder network; the real sample generates a first latent space variable corresponding to the real sample through the first decoder network; the first latent space variable passes through the generator to generate a false picture corresponding to the real sample; the false picture generates a second latent space variable through the second decoder network.
[0087] As a specific embodiment, in the power line monitoring anomaly recognition system based on the deep adversarial network of the present invention, the training module 502 specifically includes:
[0088] A training sample pair generation unit is used to generate generated samples for each real sample based on the generator according to the training sample set to obtain multiple training sample pairs; the generated samples are false images corresponding to the real samples, and each training sample pair includes a real sample and a corresponding generated sample.
[0089] The discriminator updating unit is used to fix the generator, train the discriminator once based on all training sample pairs, and update the parameters of the discriminator based on the first loss function to complete a discriminator iteration.
[0090] The generator initial update unit is used to update the parameters of the generator once based on the learning rate after completing k discriminator iterations, thereby completing an initial iteration of the generator.
[0091] The training sample pair updating unit is used to generate a generated sample for each real sample based on the updated generator after completing n initial iterations of the generator, thereby completing an update of multiple training sample pairs.
[0092] The generator secondary update unit is used to train the generator once through all training sample pairs after completing the update of multiple training sample pairs d times, update the parameters of the generator based on the second loss function, and complete an update iteration of the generator.
[0093] The second encoder network updating unit is used to train the second decoder network once through all training sample pairs, update the parameters of the second decoder network in combination with the third loss function, and complete the update of the second decoder network once.
[0094] The generator three-time update unit is used to lock the second decoder network after one update, train the generator once based on all training sample pairs, and update the parameters of the generator based on the third loss function to complete a final iteration of the generator; and return to the step of "fixing the generator, training the discriminator once based on all training sample pairs, and updating the parameters of the discriminator based on the first loss function to complete a discriminator iteration".
[0095] The trained discriminator determination unit is used to determine the discriminator after the last discriminator iteration parameter update as the trained discriminator when the cumulative number of discriminator iterations reaches a maximum number of iterations.
[0096] When the present invention is implemented, the trained deep adversarial network is deployed on the device as a model, and the false attack data and abnormal data identification of the video surveillance data is realized on the on-site device. Figure 6 is a schematic diagram of the hardware structure when the present invention is implemented, Figure 7 FIG. 1 is an overall block diagram of the hardware system of the present invention. Figure 6 and Figure 7 As shown, when applied to field equipment, its hardware equipment consists of an image display sensor - high-definition night vision CMOS, a central processing unit, an edge computing module, and an alarm output and communication system.
[0097] The device can also be applied to a variety of other intelligent image acquisition systems of deep neural networks.
[0098] The hardware of the central computing module is composed of a central processing unit, and its software is mainly an operating system. This device uses a Linux-based tailored system that supports Docker.
[0099] The edge computing module also needs to support docker's acceleration operations, and use a dedicated TPU hardware module to enable the computing power to reach 2.0T floating-point operations.
[0100] The alarm and output system is determined by the user management department and can be various background management systems. The problems are presented and managed through the identification results provided by this patent.
[0101] In specific applications, the real image defect dataset uses the power line image online monitoring defect database, which is composed of previously collected data, as well as labels manually annotated and analyzed by experts. It is the dataset required for deep learning network training in the present invention. The deep adversarial network model is trained using this dataset and installed on the edge computing module.
[0102] Identification and analysis process Figure 7 As shown, the power line image acquisition device collects images, and then uses the edge computing module to train the deep adversarial network model. The results are processed and transmitted back to the background, where reports and alarm information are generated and displayed on the operation and maintenance management platform.
[0103] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0104] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A power line monitoring anomaly recognition method based on deep adversarial network, characterized in that: include: Building deep adversarial networks; The deep adversarial network includes a generator and a discriminator; The generator is used to generate a false picture; The discriminator is used to determine whether the input image is a false image; The deep adversarial network also includes: a first decoder network and a second decoder network; the real sample generates a first latent space variable corresponding to the real sample through the first decoder network; the first latent space variable passes through the generator to generate a false picture corresponding to the real sample; the false picture generates a second latent space variable through the second decoder network; the deep adversarial network includes sub-network 1, sub-network 2 and sub-network 3; sub-network 1 includes a first decoder network D1 and a generator G, sub-network 2 includes a discriminator, and sub-network 3 is a second decoder network D2; Based on a training sample set, alternately training the generator and the discriminator in the deep adversarial network to obtain a trained discriminator; the training sample set includes a plurality of real samples and a corresponding plurality of false samples; Acquire a monitoring image of a power line to be identified; Inputting the power line monitoring image to be identified into the trained discriminator, identifying whether the power line monitoring image to be identified is a false image, and obtaining a recognition result; The calculation process of the deep adversarial network is as follows: First, the image x is forwarded through the first decoder network D1 to obtain a set of vectors z, z=D1(x), which is the representation of the image in the latent space; the vector z is then forwarded through the generator G to restore the representation in the latent space to an image with the same dimension as the input, represented as xr=G(z); Subnetwork 1 uses the Manhattan distance between the input image and the output generated image to form the second loss function, which is as follows: Subnetwork 2 uses the Euclidean distance between the output recognition result of the generated sample and the corresponding false sample to form the first loss function. The first loss function is as follows: , where D is the discriminator and x′ is a fake image; Subnetwork 3 is the second decoder network D2, which recalculates the image xr into a set of latent space variables; the output of the second decoder network D2 The Euclidean distance between the vector z of sub-network 1 and the vector z of sub-network 1 constitutes the third loss function, which is as follows: 。 2. The power line monitoring anomaly identification method based on deep adversarial network according to claim 1 is characterized in that: The method of alternately training the generator and the discriminator in the deep adversarial network based on the training sample set to obtain a trained discriminator specifically includes: According to the training sample set, a generated sample of each real sample is generated based on a generator to obtain a plurality of training sample pairs; the generated sample is a false image corresponding to the real sample, and each training sample pair includes a real sample and a corresponding generated sample; The generator is fixed, the discriminator is trained once based on all training sample pairs, and the parameters of the discriminator are updated based on the first loss function to complete a discriminator iteration; After completing k discriminator iterations, the parameters of the generator are updated once based on the learning rate, completing an initial iteration of the generator; After completing n initial iterations of the generator, a generated sample for each real sample is generated based on the updated generator, completing an update of multiple training sample pairs; After completing the update of multiple training sample pairs d times, the generator is trained once through all the training sample pairs, the parameters of the generator are updated based on the second loss function, and the update iteration of the generator is completed once; and the second decoder network is trained once through all the training sample pairs, the parameters of the second decoder network are updated in combination with the third loss function, and the update of the second decoder network is completed once; Lock the second decoder network after the update, train the generator once based on all training sample pairs, and update the parameters of the generator based on the third loss function, completing a final iteration of the generator; return to the step of "fixing the generator, training the discriminator once based on all training sample pairs, and updating the parameters of the discriminator based on the first loss function, completing a discriminator iteration"; When the cumulative number of iterations of the discriminator reaches the maximum number of iterations, the discriminator after the last discriminator iteration parameter update is determined as the trained discriminator.
3. The power line monitoring anomaly identification method based on deep adversarial network according to claim 1 is characterized in that: The discriminator includes an encoder and a fully connected neural network layer connected to the encoder.
4. A power line monitoring anomaly recognition system based on deep adversarial network, characterized in that: include: Deep adversarial network building module, used to build deep adversarial networks; The deep adversarial network includes a generator and a discriminator; The generator is used to generate a false picture; The discriminator is used to determine whether the input image is a false image; The deep adversarial network also includes: a first decoder network and a second decoder network; the real sample generates a first latent space variable corresponding to the real sample through the first decoder network; the first latent space variable passes through the generator to generate a false picture corresponding to the real sample; the false picture generates a second latent space variable through the second decoder network; the deep adversarial network includes subnetwork 1, subnetwork 2 and subnetwork 3; subnetwork 1 includes a first decoder network D1 and a generator G, subnetwork 2 includes a discriminator, and subnetwork 3 is a second decoder network D2; the calculation process of the deep adversarial network is as follows: first, the picture x is forwarded through the first decoder network D1 to obtain a set of vectors z, z=D1(x), which is the representation of the picture in the latent space; the vector z then passes forward through the generator G to restore the representation in the latent space to a picture with the same dimension as the input, expressed as xr=G(z); subnetwork 1 forms a second loss function with the Manhattan distance between the input picture and the output generated picture, and the second loss function is as follows: ; Subnetwork 2 uses the Euclidean distance between the outputted recognition result of the generated sample and the corresponding false sample to form the first loss function, and the first loss function is as follows: , where D is the discriminator, x′ is a fake image; subnetwork 3 is the second decoder network D2, which recalculates the image xr into a set of latent space variables; the output of the second decoder network D2 The Euclidean distance between the vector z of sub-network 1 and the vector z of sub-network 1 constitutes the third loss function, which is as follows: ; A training module, used for alternately training the generator and the discriminator in the deep adversarial network based on a training sample set to obtain a trained discriminator; the training sample set includes a plurality of real samples and a corresponding plurality of false samples; A monitoring image acquisition module for a power line to be identified, used to acquire a monitoring image of a power line to be identified; The recognition module is used to input the power line monitoring image to be recognized into the trained discriminator, recognize whether the power line monitoring image to be recognized is a false image, and obtain a recognition result.
5. The power line monitoring anomaly identification system based on deep adversarial network according to claim 4 is characterized in that: The training module specifically includes: A training sample pair generating unit, configured to generate generated samples of each real sample based on the generator according to the training sample set, so as to obtain a plurality of training sample pairs; the generated samples are false images corresponding to the real samples, and each training sample pair includes a real sample and a corresponding generated sample; A discriminator updating unit, used to fix the generator, train the discriminator once based on all training sample pairs, and update the parameters of the discriminator based on a first loss function to complete a discriminator iteration; A generator initial update unit, used to update the parameters of the generator once based on the learning rate after completing k discriminator iterations, and complete an initial iteration of the generator; A training sample pair updating unit is used to generate a generated sample for each real sample based on the updated generator after completing n initial iterations of the generator, thereby completing an update of multiple training sample pairs; A generator secondary updating unit, used for training the generator once through all the training sample pairs after completing the updating of the plurality of training sample pairs d times, updating the parameters of the generator based on the second loss function, and completing an update iteration of the generator; A second encoder network updating unit, configured to train the second decoder network once through all training sample pairs, update the parameters of the second decoder network in combination with a third loss function, and complete an update of the second decoder network; The generator three-time updating unit is used to lock the second decoder network after the update, train the generator once based on all training sample pairs, and update the parameters of the generator based on the third loss function to complete a final iteration of the generator; and return to the step of "fixing the generator, training the discriminator once based on all training sample pairs, and updating the parameters of the discriminator based on the first loss function to complete a discriminator iteration"; The trained discriminator determination unit is used to determine the discriminator after the last discriminator iteration parameter update as the trained discriminator when the cumulative number of discriminator iterations reaches a maximum number of iterations.
6. The power line monitoring anomaly identification system based on deep adversarial network according to claim 4 is characterized in that: The discriminator includes an encoder and a fully connected neural network layer connected to the encoder.
Citation Information
Patent Citations
Semi-supervised image classification method based on generative adversarial network
CN110097103A
Conditional generative adversarial network training method and device, equipment and storage medium
CN111582348A
Image authenticity detection method and device
CN111709408A
Method of anomaly detection and system thereof
WO2020100136A1
