A method, device and system for detecting electricity theft based on the information and physical sides of a distribution network

Through a joint detection method that combines physical side measurement data and information side transmission data in the distribution network station area, and uses the improved WGAN network and power theft suspicion weight algorithm, the difficulty in obtaining the physical side topology and the information side in power theft detection is solved. The problem of sample imbalance enables accurate identification and tracking of electricity theft and reduces detection costs.

CN118364416BActive Publication Date: 2024-09-17STATE GRID JIANGSU ELECTRIC POWER CO LTD RESEARCH INSTITUTE +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410797351.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-17
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

When the existing electricity theft detection method is applied separately on the physical side and the information side, the topology of the physical side is difficult to obtain and the electricity theft samples on the information side are unbalanced, resulting in difficulties in detecting electricity theft behavior and the inability to effectively track specific suspicious users, which increases This reduces the cost of on-site inspections and the instability of testing.

Method used

A joint detection method for electricity theft that combines both cyber-physical sides of the distribution network is adopted. Through the combination of the physical side measurement data monitoring module and the information side transmission data identification module, the improved WGAN network and the power theft suspicion weight algorithm are used to determine the theft behavior. The time period when electricity theft occurred and the ID of the suspicious user were analyzed to complete the joint detection of electricity theft.

Benefits of technology

It solves the problems of difficulty in obtaining physical side topology and unbalanced information side samples, improves the accuracy and stability of electricity theft detection, reduces on-site inspection costs, and can quickly and effectively identify electricity theft in smart power systems. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118364416B
    Figure CN118364416B
Patent Text Reader

Abstract

The present invention discloses a joint detection method, device and system for electricity theft behavior in the information and physical sides of a distribution network substation, including inputting physical side measurement data into a physical side measurement data monitoring module, monitoring the line loss, line loss rate and voltage and current abnormal conditions on the physical side of the distribution substation, and outputting a suspicious time period in which electricity theft behavior is suspected to exist; inputting information side transmission data into an information side transmission data identification module, inputting the electricity consumption sequence uploaded by all users in the distribution substation into a user side data electricity theft detection classifier trained with the electricity consumption sequence when the typical electricity theft behavior occurs, and obtaining the suspicious user ID when the suspected electricity theft behavior occurs; performing correlation analysis on the actual line loss sequence of the substation and the electricity consumption sequence of the suspicious user in each suspicious time period, and obtaining the suspicious user ID with a negative correlation analysis result. The present invention solves the problems of difficulty in obtaining the physical side topology structure and imbalance of information side electricity theft samples.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of distribution network detection, and in particular relates to a method, device and system for joint detection of electricity theft by combining information and physics on both sides of a distribution network station area. Background Art

[0002] In recent years, with the continuous advancement of the intelligentization of power systems, the access of a high proportion of intelligent terminals and a high proportion of power electronic equipment has become a prominent feature of modern power systems, and the power system has gradually developed into a power information-physical system (CPS) with close integration of information and physics. In the five stages of "generation, transmission, transformation, distribution, and use" of power transmission, the distribution network connected to a large number of users has more potential risks than other links. The access of intelligent terminals in the distribution network substations not only improves the substations' ability to monitor power quality fluctuations, but also improves the substations' ability to handle and regulate emergencies and abnormal conditions, providing strong support for ensuring the stable operation of the power system. At the same time, the intelligent terminals in the distribution network substations monitor the data recorded by the physical side facilities and receive a large amount of data from the power users in the substations, which also brings opportunities to solve many problems based on data analysis.

[0003] Electricity theft by users is the largest non-technical loss in the transmission and distribution of electric energy by the power grid. Currently, the main methods for detecting electricity theft can be divided into the following two types:

[0004] 1. Electricity theft detection technology based on electrical models and metering equipment

[0005] 1) Method through electrical rule formulation: Electricity theft detection is performed based on whether the data of key nodes exceeds the threshold when the power system is running. This method is highly subjective and requires the establishment of an expert system for auxiliary judgment.

[0006] 2) Through the method of identifying non-technical losses: The theoretical line loss is calculated based on the detailed line impedance to infer the line loss caused by the theft of electricity for theft detection. This method is highly theoretical and reliable, but it requires the complete electrical parameters and topological structure of the system for calculation.

[0007] 3) Methods through equipment hardware upgrade and equipment deployment optimization: Based on the application of the new generation of smart meters, electricity theft by users who damage the meters is prevented. This method only has a good detection effect on electricity theft by invading smart meters, and has low applicability to other types of electricity theft. Based on reasonable planning and deployment of feeder terminals, electricity theft is regionally accurately located. This method has strong accuracy and real-time performance, but its actual hardware cost is too high.

[0008] 2. Data-driven electricity theft detection technology

[0009] 1) Method of sample learning: Use machine learning algorithms and artificial intelligence algorithms to learn electricity theft sample data, so as to train a classifier that can distinguish between normal users and electricity theft users. However, the proportion of electricity theft samples in real data is very small, and the sample imbalance problem has a great impact on the model training effect.

[0010] 2) Through the method of abnormal analysis: Based on the definition of the characteristic difference indicators between a few electricity thieves and the majority of normal users, the outlier detection algorithm is used to identify electricity thieves. However, it assumes that the power consumption data of all normal users are similar and is easily affected by the randomness of users' electricity consumption behavior.

[0011] 3) Through the state estimation method: According to the mathematical relationship equations of various parameters when the power system is running, the specific phenomena that occur in the system when the power theft occurs are determined, so as to detect the power theft behavior, but it requires the system to provide a clear network topology structure and electrical parameters with a high acquisition frequency.

[0012] The above two categories of electricity theft detection methods are classified according to those based on the data on the substation side and those based on the data on the user side. One category is mainly based on the actual structure, operating parameters and intelligent devices on the physical side of the distribution network substation to realize abnormal state monitoring and non-technical line loss estimation on the substation side, and complete the detection of electricity theft. However, the detection method based only on the substation side data can only detect the existence of electricity theft and the time period when the electricity theft occurs, and cannot track the electricity theft to specific suspicious users for inspection, which leads to excessively high costs for on-site inspections of electricity theft. The other category is mainly based on user-side power consumption data, using data-driven electricity theft detection methods such as machine learning algorithms, neural network algorithms and outlier algorithms. However, it is susceptible to interference from the randomness of user electricity consumption behavior based only on user-side data, and has the disadvantages of insufficient stability and reliability of electricity theft identification features and unclear physical meanings. Summary of the invention

[0013] In view of the above problems, the present invention proposes a method, device and system for joint detection of electricity theft on both the information and physical sides of a distribution network, which solves the problems that the physical side topology structure is difficult to obtain and the information side electricity theft samples are unbalanced when the physical side-based and information side-based electricity theft detection methods are used separately.

[0014] In order to achieve the above technical objectives and the above technical effects, the present invention is implemented through the following technical solutions:

[0015] In a first aspect, the present invention provides a method for detecting electricity theft by combining both the cyber and physical sides of a distribution network, comprising:

[0016] The physical side measurement data recorded within the preset time by the intelligent terminal of the distribution network substation is input into the physical side measurement data monitoring module to monitor the line loss, line loss rate and abnormal voltage and current conditions on the physical side of the distribution network substation, and output the suspicious time period where electricity theft is suspected;

[0017] The information side transmission data received by the intelligent terminal in the distribution network area within the preset time is input into the information side transmission data identification module, and the suspicious user ID when the suspected electricity theft occurs is determined by inputting the electricity consumption sequence uploaded by all users in the distribution network area into the user side data electricity theft detection classifier trained with the electricity consumption sequence when the typical electricity theft behavior occurs;

[0018] A correlation analysis is performed on the actual line loss sequence of the substation area and the electricity consumption sequence of the suspicious user in each suspicious time period, and the suspicious user ID with a negative correlation analysis result is obtained to complete the joint detection of electricity theft.

[0019] In combination with the first aspect, optionally, the physical side measurement data monitoring module executes a first preset step to obtain a suspicious time period in which electricity theft is suspected to exist, and the first preset step includes:

[0020] Determine the theoretical line loss Actual line loss Whether the difference exceeds the first threshold value, the actual line loss rate Whether the second threshold is exceeded, and whether abnormal spectrum phenomenon occurs after frequency domain analysis is performed on the historical measurement sequences of the real-time voltage and the real-time current;

[0021] Determine the suspicious time period when electricity theft is suspected based on the time point when the threshold is exceeded or the abnormal frequency occurs ;

[0022] The information side transmission data identification module executes a second preset step to obtain a suspicious user ID when the suspected electricity theft behavior occurs, and the second preset step includes:

[0023] The discriminator part of the improved WGAN network after training with artificial electricity theft samples is used as the user-side data electricity theft detection classifier to determine whether the similarity between the electricity consumption sequence uploaded by all users in the distribution station area and the electricity consumption sequence when the typical electricity theft behavior occurs exceeds the set threshold, so as to output the electricity theft suspicion weight sequence corresponding to the detected user electricity consumption sequence on a weekly basis. , and based on the user autocorrelation threshold Determine the suspicious user ID when suspected electricity theft occurs.

[0024] In combination with the first aspect, optionally, the theoretical line loss calculation formula is:

[0025]

[0026] in, is the theoretical line loss value, in units of ; is the average current, is the time period; is the equivalent resistance of the transmission line, in units of ; for time;

[0027] The transmission line equivalent resistance The calculation formula is:

[0028]

[0029] in, is the actual length of the transmission line, is the actual resistance of the transmission line;

[0030] The actual line loss calculation formula is:

[0031]

[0032] in, is the actual line loss value, in units of , is the actual power supply, The total amount of power consumption data transmitted by the user-side smart meter;

[0033] The actual line loss rate calculation formula is:

[0034]

[0035] in, is the actual line loss rate.

[0036] In combination with the first aspect, optionally, when performing abnormal spectrum phenomenon analysis, the following steps are included:

[0037] Has a length of Discrete real number sequence , the discrete real number sequence is the historical measurement sequence of real-time voltage or real-time current, and its discrete Fourier transform calculation formula is:

[0038]

[0039]

[0040] in, is the sequence after discrete Fourier transform calculation;

[0041] Divide the above sequence after discrete Fourier transform into odd items and even items:

[0042] ;

[0043] in, and They represent discrete real number sequences The even and odd terms of ;

[0044] Extracting the general term yields:

[0045]

[0046] because , we can get:

[0047]

[0048]

[0049] because , we can get:

[0050]

[0051]

[0052] Based on the and Get the spectrum diagram;

[0053] An abnormal spectrum phenomenon analysis is performed based on the spectrum diagram.

[0054] In combination with the first aspect, optionally, the information side transmission data identification module is an improved WGAN network, and the improved WGAN network includes a generator and a discriminator;

[0055] The network structure of the generator is a four-layer convolutional neural network;

[0056] The network structure of the discriminator is a four-layer transposed convolutional neural network;

[0057] The improved WGAN network uses Wasserstein distance as the loss function, and the calculation formula is:

[0058]

[0059] The training objective of the discriminator is:

[0060]

[0061] The training objective of the generator is:

[0062]

[0063] in, is the loss function, is the discriminator function, is the generator function, and are the data from a given sample and noise respectively, E [ ] To find the expected value.

[0064] In combination with the first aspect, optionally, during the application process, the input data of the user-side data theft detection classifier is the electricity consumption sequence uploaded from the user-side meter to the distribution network station area smart terminal within one month, and the sampling time interval is hours, each user in the area generates The output result of the user-side data theft detection classifier is the weight sequence of suspected theft corresponding to the four-week data of the user in the area corresponding to the input data within one month. , ;

[0065] Based on the weight sequence of suspected electricity theft Calculate the user autocorrelation threshold , the user's autocorrelation threshold The calculation formula is as follows:

[0066] τ = max δ 1 , δ 2 , δ 3 , δ 4 - min δ 1 , δ 2 , δ 3 , δ 4 E [ δ ]

[0067] in, To find the maximum value, To find the minimum value, E [ ] To find expected value;

[0068] when When , it means that the user's electricity consumption behavior fluctuates randomly and there is suspected electricity theft; when , which means that the user’s electricity usage behavior is regular, has periodic similar characteristics, and there is no suspicion of electricity theft.

[0069] In combination with the first aspect, optionally, the input data of the improved WGAN network during training is artificially synthesized samples of electricity theft in weeks, and the output data is the probability of electricity theft by the user corresponding to the input data, that is, the suspected weight of electricity theft;

[0070] When training the improved WGAN network, typical electricity theft behavior features are added to the normal user electricity consumption sequence according to a preset formula to generate multiple electricity theft behavior synthetic sequences, and random Gaussian noise and the multiple electricity theft behavior synthetic sequences are respectively input into the generator and the discriminator, and the discriminator and the generator reach Nash equilibrium after confrontation game, thereby completing the training of the discriminator and the generator;

[0071] The preset formula includes:

[0072]

[0073]

[0074]

[0075]

[0076]

[0077]

[0078] in, They are synthesized sequences for different electricity theft behaviors. is the normal user electricity consumption sequence, For proportion; is a function that changes over time, mean [ ] It means taking the average value, For the time period, for time, Respectively Moment and time.

[0079] In combination with the first aspect, optionally, if within the same time period, both the physical side measurement data monitoring module and the information side transmission data identification module confirm that an abnormality has occurred, then for the distribution station area where suspected electricity theft occurs, a correlation analysis is performed on the actual line loss sequence of the area within the suspicious time period and the electricity consumption sequence of the suspicious user; if only one of the physical side measurement data monitoring module or the information side transmission data identification module confirms that an abnormality has occurred, then it is determined whether there is a fault or disturbance on the physical side or whether there is a communication delay on the information side.

[0080] In combination with the first aspect, optionally, performing a correlation analysis on the actual line loss sequence of the substation area and the power consumption sequence of the suspicious user in the suspicious time period includes the following steps:

[0081] Define the suspicious time period as , , is the total number of time periods with abnormalities. Power consumption sequence of suspicious users Conduct secondary screening for electricity theft, including The suspicious user ID in the distribution area is The power consumption sequence index subscript of ;

[0082] The secondary screening of electricity theft specifically includes:

[0083] For abnormal power consumption time period The suspicious user ID is The electricity consumption sequence is , The weight sequence of suspected electricity theft corresponding to the user in this time period is: , the actual line loss sequence of the substation area is , then the calculation formula of the weighted Pearson correlation coefficient of electricity theft suspicion is:

[0084]

[0085] in, The time period of abnormal power consumption The suspicious user ID is The weighted Pearson correlation analysis results of electricity theft suspicion, yes and The covariance of and They are and The standard deviation of The closer the value is to 1, the stronger the positive correlation between the two sets of data is; Express request and Pearson correlation of ; Expressing hope;

[0086] If a certain abnormal power consumption period If the weighted Pearson correlation analysis result of the suspected electricity theft of any suspicious user is negative, the abnormal physical indicators in the abnormal electricity consumption period may correspond to other disturbances or faults in the system; if the weighted Pearson correlation analysis results of the suspected electricity theft of a suspicious user in all abnormal electricity consumption periods are not negative, the abnormal characteristics of the user's electricity consumption data may be caused by the randomness of the user's electricity consumption behavior or abnormal communication conditions;

[0087] If the power consumption period is abnormal If the weighted Pearson correlation analysis result of a suspicious user's suspicion of electricity theft is negative, the abnormal electricity usage time period is determined as the corresponding electricity theft time period when the electricity theft behavior occurs. The estimated power theft formula is as follows:

[0088]

[0089] in, is the estimated amount of electricity stolen, and They are the abnormal power consumption time periods output by the measurement data monitoring module on the physical side of the distribution station area. The corresponding actual line loss sum and theoretical line loss sum.

[0090] In a second aspect, the present invention provides a device for detecting electricity theft by combining both the information and physical sides of a distribution network area, including:

[0091] The first data processing module is used to input the physical side measurement data recorded by the intelligent terminal of the distribution network area within the preset time into the physical side measurement data monitoring module, monitor the line loss, line loss rate and abnormal voltage and current conditions on the physical side of the distribution network area, and output the suspicious time period where the electricity theft is suspected;

[0092] The second data processing module is used to input the information side transmission data received by the intelligent terminal in the distribution network area within a preset time into the information side transmission data identification module, and input the power consumption sequence uploaded by all users in the distribution network area into the user side data power theft detection classifier trained with the power consumption sequence when the typical power theft behavior occurs, to determine the suspicious user ID when the suspected power theft behavior occurs;

[0093] The secondary detection module for electricity theft is used to perform correlation analysis on the actual line loss sequence of the substation area and the electricity consumption sequence of the suspicious user in each suspicious time period, obtain the suspicious user ID with a negative correlation analysis result, and complete the joint detection of electricity theft.

[0094] In a third aspect, the present invention provides a power theft behavior joint detection system for the information and physical sides of a distribution network area, characterized in that it includes a storage medium and a processor;

[0095] The storage medium is used to store instructions;

[0096] The processor is configured to operate according to the instructions to execute the method according to any one of the first aspects.

[0097] Compared with the prior art, the present invention has the following beneficial effects:

[0098] The present invention is based on the intelligent terminal of the distribution network substation, and combines the physical side measurement data and information side transmission data of the substation. According to the constructed physical side measurement data monitoring module and information side transmission data identification module, the time period of electricity theft can be determined on the physical side, and the suspicious users with electricity theft can be determined on the information side. The problems such as the difficulty in obtaining the physical side topology structure and the imbalance of information side electricity theft samples when the physical side-based and information side-based electricity theft detection methods are used separately are solved. The present invention can provide a method for detecting electricity theft in the context of the increasingly prominent intelligent features of the current new power system, which has a promoting effect on the safe and stable operation of the power system. BRIEF DESCRIPTION OF THE DRAWINGS

[0099] 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 are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative labor, among which:

[0100] Figure 1 This is a flowchart for implementing a solution for joint detection of electricity theft in a distribution network area based on both the information and physical sides of the distribution network in this embodiment;

[0101] Figure 2 This is a flow chart of the physical side measurement data monitoring module of the distribution network area used in this embodiment;

[0102] Figure 3 This is a flow chart of the training of the data identification module for the information side of the distribution network area adopted in this embodiment;

[0103] Figure 4 This is a flow chart for implementing the data identification module on the information side of the distribution network area adopted in this embodiment. DETAILED DESCRIPTION

[0104] 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.

[0105] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0106] Example 1

[0107] The present invention provides a method for detecting electricity theft by combining both the cyber and physical sides of a distribution network, including the following steps:

[0108] (1) Input the physical side measurement data recorded by the intelligent terminal of the distribution network area within the preset time into the physical side measurement data monitoring module, monitor the line loss, line loss rate and abnormal voltage and current conditions on the physical side of the distribution network area, and output the suspicious time period where electricity theft is suspected;

[0109] (2) The information side transmission data received by the intelligent terminal in the distribution network area within the preset time is input into the information side transmission data identification module, and the suspicious user ID when the suspected electricity theft occurs is determined by inputting the electricity consumption sequence uploaded by all users in the distribution network area into the user side data electricity theft detection classifier trained with the electricity consumption sequence when the typical electricity theft behavior occurs;

[0110] (3) Perform a correlation analysis on the actual line loss sequence of the substation area and the electricity consumption sequence of the suspicious users in each suspicious time period, obtain the suspicious user ID with a negative correlation analysis result, and complete the joint detection of electricity theft.

[0111] In a specific implementation of the embodiment of the present invention, the physical side measurement data monitoring module executes a first preset step to obtain a suspicious time period in which electricity theft is suspected to exist, and the first preset step includes:

[0112] Determine the theoretical line loss Actual line loss Whether the difference exceeds the first threshold value, the actual line loss rate Whether the second threshold is exceeded, and whether abnormal spectrum phenomenon occurs after frequency domain analysis is performed on the historical measurement sequences of the real-time voltage and the real-time current;

[0113] Determine the suspicious time period when electricity theft is suspected based on the time point when the threshold is exceeded or the abnormal frequency occurs ;

[0114] The information side transmission data identification module executes a second preset step to obtain a suspicious user ID when the suspected electricity theft behavior occurs, and the second preset step includes:

[0115] The discriminator part of the improved WGAN network after training with artificial electricity theft samples is used as the user-side data electricity theft detection classifier to determine whether the similarity between the electricity consumption sequence uploaded by all users in the distribution station area and the electricity consumption sequence when the typical electricity theft behavior occurs exceeds the set threshold, so as to output the electricity theft suspicion weight sequence corresponding to the detected user electricity consumption sequence on a weekly basis. , and based on the user autocorrelation threshold Determine the suspicious user ID when suspected electricity theft occurs.

[0116] In a specific implementation of the embodiment of the present invention, the theoretical line loss calculation formula is:

[0117]

[0118] in, The theoretical line loss value is in units of , is the average current, For the time period, is the equivalent resistance of the transmission line, in units of ; for time;

[0119] The transmission line equivalent resistance The calculation formula is:

[0120]

[0121] in, is the actual length of the transmission line, is the actual resistance of the transmission line;

[0122] The actual line loss calculation formula is:

[0123]

[0124] in, is the actual line loss value, in units of , is the actual power supply, It is the total amount of power consumption data transmitted by the user-side smart meters.

[0125] In a specific implementation of the embodiment of the present invention, the actual line loss rate calculation formula is:

[0126]

[0127] in, is the actual line loss rate.

[0128] In a specific implementation of the embodiment of the present invention, when performing abnormal spectrum phenomenon analysis, the following steps are included:

[0129] Has a length of Discrete real number sequence , the discrete real number sequence is the historical measurement sequence of real-time voltage or real-time current, and its discrete Fourier transform calculation formula is:

[0130]

[0131]

[0132] in, is the sequence after discrete Fourier transform calculation;

[0133] Divide the above sequence after discrete Fourier transform into odd items and even items:

[0134] ;

[0135] in, and They represent discrete real number sequences The even and odd terms of ;

[0136] Extracting the general term yields:

[0137]

[0138] because , we can get:

[0139]

[0140]

[0141] because , we can get:

[0142]

[0143] .

[0144] The above two relations prove that the calculation time of discrete Fourier transform operation can be greatly reduced by butterfly crossover calculation method, and the fast Fourier transform of discrete data can be realized;

[0145] Real-time voltage , real-time current After the above transformations are performed on the historical measurement sequences, the corresponding frequency spectrum is obtained to monitor the abnormal frequencies.

[0146] In a specific implementation of the embodiment of the present invention, the information side transmission data identification module is an improved WGAN network, and the improved WGAN network includes a generator and a discriminator;

[0147] The network structure of the generator is a four-layer convolutional neural network;

[0148] The network structure of the discriminator is a four-layer transposed convolutional neural network;

[0149] The loss function of the improved WGAN network is:

[0150]

[0151] The training objective of the discriminator is:

[0152]

[0153] The training objective of the generator is:

[0154]

[0155] in, is the loss function, is the discriminator function, is the generator function, and are the data from a given sample and noise respectively, E [ ] To find the expected value.

[0156] In a specific implementation process, the method for constructing the information side transmission data identification module includes:

[0157] (1) An improved WGAN network is used as the information side transmission data recognition module, wherein the improved WGAN network is composed of a generator and a discriminator, wherein the generator network structure is a four-layer convolutional neural network, and the discriminator network structure is a four-layer transposed convolutional neural network.

[0158] The improved WGAN network uses Wasserstein distance to replace the JS distance of traditional GAN ​​when the generator and discriminator alternately update the network weights during the original GAN ​​network training process to measure the gap between the samples generated by the generator and the given sample distribution, and increases the proportion of convolutional layers in the network structure. This solves the problems of mode collapse, gradient disappearance, and convergence failure in the original GAN ​​network training. At the same time, the added convolutional layers are used to improve the autocorrelation, periodicity, and time correlation of the synthetic electricity theft sample time series. Specifically:

[0159] The loss function of the traditional GAN ​​algorithm is:

[0160]

[0161] The training objective of the discriminator is:

[0162]

[0163] The training objective of the generator is:

[0164]

[0165] in, is the loss function, is the discriminator function, is the generator function, and are the data from a given sample and noise respectively, To find the expected value.

[0166] The improved WGAN network in the present invention uses Wasserstein distance to replace the loss function in the original GAN ​​network:

[0167]

[0168] At this point, the training objective of the discriminator is:

[0169]

[0170] The training objective of the generator is:

[0171]

[0172] (2) Random Gaussian noise and synthetic electricity theft samples are input into the generator and discriminator respectively for training. After the adversarial game between the discriminator and the generator, the Nash equilibrium is reached, thus completing the training process of both parties. Finally, the trained discriminator is extracted as the user-side data electricity theft detection classifier.

[0173] The synthetic electricity theft sample is created by adding typical electricity theft behavior characteristics to the normal user electricity consumption sequence. The specific algorithm is as follows:

[0174]

[0175]

[0176]

[0177]

[0178]

[0179]

[0180] in, They are synthesized sequences for different electricity theft behaviors. is the normal user electricity consumption sequence, For proportion; is a function that changes over time, mean [ ] It means taking the average value, For the time period, for time, Respectively Moment and Formula (1) indicates that the normal user data is reduced according to a certain ratio, and the ratio is randomly selected as ; Formula (2) indicates that the reduction ratio is changed to a function that changes with time ; Formula (3) indicates that the average value of the data is used to form all the electricity theft sample data; Formula (4) indicates that the function that changes with time is proportional to the average value of the data. Formula (5) indicates that the original data is arranged in reverse order to form a power theft sample; Formula (6) indicates that the value of the original data within a period of time is set to 0, and the rest remains unchanged, thereby forming this type of power theft sample. For details, see Figure 3 .

[0181] Before inputting the synthetic electricity theft samples into the improved WGAN network, the data needs to be preprocessed, such as Figure 2 As shown, it includes filling in missing data, correcting abnormal data, and normalization, where:

[0182] The missing data is filled in by interpolation method, and the formula is as follows:

[0183]

[0184] In the formula, is the user's electricity consumption sequence over a period of time, is the index subscript of the time series of normal user electricity consumption sequence. In the embodiment of the present invention, the time node set is 30 minutes. is a set containing non-numeric characters and the empty set.

[0185] According to the Three Sigma rule, the abnormal data is corrected as follows:

[0186]

[0187] In the formula, is a vector consisting of the user's power consumption data in one day, is the average value of the vector, is the standard deviation of the vector, is the user's electricity consumption sequence over a period of time, It is the index subscript of the normal user electricity consumption time series.

[0188] The data is normalized according to the MAX-MIN scaling method, and the formula is as follows:

[0189]

[0190] in, is the minimum value in the user power consumption data vector, It is the maximum value in the user power consumption data vector.

[0191] (3) In the application process, the input data of the discriminator of the improved WGAN network (i.e., the user-side data theft detection classifier) ​​is defined as the user electricity consumption sequence uploaded by the meter to the distribution network substation smart terminal within the preset time period on the user side. The interval time can be set according to actual needs. Then, each substation user generates The output result of the discriminator is the weight sequence of suspected electricity theft corresponding to the four-week data of the user in the area corresponding to the input data within one month. , In the specific implementation process, the interval time can be set to 30 minutes, then each user in the area generates 4 means four weeks, 7 means seven days, see Figure 4 ;

[0192] Based on the weight sequence of suspected electricity theft Calculate the user autocorrelation threshold , the user's autocorrelation threshold The calculation formula is as follows:

[0193] τ = max δ 1 , δ 2 , δ 3 , δ 4 - min δ 1 , δ 2 , δ 3 , δ 4 E [ δ ]

[0194] in, To find the maximum value, To find the minimum value, E [ ] To find expected value;

[0195] when When , it means that the user's electricity consumption behavior fluctuates randomly and there is suspected electricity theft; when , which means that the user’s electricity usage behavior is regular, has periodic similar characteristics, and there is no suspicion of electricity theft.

[0196] In a specific implementation of an embodiment of the present invention, if within the same time period, both the physical side measurement data monitoring module and the information side transmission data identification module confirm that an abnormality has occurred, then for the distribution station area where suspected electricity theft occurs, a correlation analysis is performed on the actual line loss sequence of the area within the suspicious time period and the electricity consumption sequence of the suspicious user; if only one of the physical side measurement data monitoring module or the information side transmission data identification module confirms that an abnormality has occurred, then it is determined whether there is a fault or disturbance on the physical side or whether there is a communication delay on the information side.

[0197] The correlation analysis of the actual line loss sequence of the substation area and the power consumption sequence of the suspicious user in the suspicious time period includes the following steps:

[0198] Define the suspicious time period as , , is the total number of time periods with abnormalities. Power consumption sequence of suspicious users Conduct secondary screening for electricity theft, including The suspicious user ID in the distribution area is The power consumption sequence index subscript of ;

[0199] The secondary screening of electricity theft specifically includes:

[0200] For abnormal power consumption time period The suspicious user ID is The electricity consumption sequence is , The weight sequence of suspected electricity theft corresponding to the user in this time period is: , the actual line loss sequence of the substation area is , then the calculation formula of the weighted Pearson correlation coefficient of electricity theft suspicion is:

[0201]

[0202] in, The time period of abnormal power consumption The suspicious user ID is The weighted Pearson correlation analysis results of electricity theft suspicion, yes and The covariance of and They are and The standard deviation of The closer the value is to 1, the stronger the positive correlation between the two sets of data is; Express request and Pearson correlation of ; Expressing hope;

[0203] If a certain abnormal power consumption period If the weighted Pearson correlation analysis result of the suspected electricity theft of any suspicious user is negative, the abnormal physical indicators in the abnormal electricity consumption period may correspond to other disturbances or faults in the system; if the weighted Pearson correlation analysis results of the suspected electricity theft of a suspicious user in all abnormal electricity consumption periods are not negative, the abnormal characteristics of the user's electricity consumption data may be caused by the randomness of the user's electricity consumption behavior or abnormal communication conditions;

[0204] If the power consumption period is abnormal If the weighted Pearson correlation analysis result of a suspicious user's suspicion of electricity theft is negative, the abnormal electricity usage time period can be determined as the corresponding electricity theft time period when the electricity theft behavior occurs. The estimated power theft formula is as follows:

[0205]

[0206] in, is the estimated amount of electricity stolen, and They are the abnormal power consumption time periods output by the measurement data monitoring module on the physical side of the distribution station area. The corresponding actual line loss sum and theoretical line loss sum.

[0207] The following is a detailed description of a method for detecting electricity theft by combining both cyber-physical sides of a distribution network area in an embodiment of the present invention in conjunction with a specific implementation.

[0208] This embodiment provides a joint detection scheme for electricity theft behavior on both the information and physical sides of the distribution network substation. According to the physical side measurement data recorded by the intelligent terminal every 30 minutes in the distribution network substation within one month and the information side user transmission data received every 30 minutes, the time of suspected electricity theft behavior is determined by monitoring the nodes where the physical side measurement data exceeds the threshold or abnormal frequency phenomenon occurs; by identifying whether the power consumption data of the substation users received on the information side (i.e., the power consumption sequence) is similar to the characteristics of typical power theft samples, the power theft suspicion weight of the user data suspected of power theft behavior is output. Combined with the suspected power theft behavior occurrence time determined by the physical side measurement data monitoring module and the power theft suspicion weight of the substation users suspected of power theft determined by the information side transmission data identification module, the power theft suspicion weight of the substation users suspected of power theft behavior is determined by cross-validation of whether the power theft suspicion weighted correlation analysis results of the actual line loss sequence of the substation and the power consumption sequence of the suspicious user are negative values ​​in each abnormal power consumption time period, the power theft user, power theft time and the corresponding specific power theft amount are determined, so that the staff can quickly and efficiently conduct on-site inspections of power theft behavior. This scheme is only based on the electricity consumption information collection system composed of smart terminals in the distribution network area and smart meters on the user side. The selected physical side indicators are simple and easy to obtain, and no additional hardware costs are required. The designed information side user power consumption data theft detection classifier overcomes the adverse effects of sample imbalance on the model training effect. In addition, the theft detection classifier trained by artificially synthesized theft samples also has a certain defense capability against the theft method of tampering with power consumption data by false data injection attacks launched by network attacks.

[0209] The process of the joint detection method for power theft behavior by combining both sides of the information and physics of the distribution network area is as follows: Figure 1 As shown, the following steps are included:

[0210] Step 1: Based on the physical side measurement data recorded by the intelligent terminal of the distribution network area within one month, the theoretical line loss is determined by establishing a physical side measurement data monitoring module. Actual line loss Whether the difference exceeds the threshold value and the actual line loss rate Whether it exceeds the threshold, the real-time voltage and real-time current The historical measurement sequences are analyzed in the frequency domain to see if there are abnormal spectrum phenomena, and the suspicious time period of suspected electricity theft is determined according to the time point when the threshold is exceeded or the abnormal frequency occurs. .

[0211] Step 2: Based on the information transmission data received by the intelligent terminal in the distribution network area within one month, the information transmission data recognition module is established, that is, the discriminator part in the improved WGAN network after the artificial electricity theft sample training is used as the user-side data electricity theft detection classifier to determine whether the power consumption data uploaded by all users in the distribution network area (i.e., the power consumption sequence) is highly similar to the power consumption data when the typical electricity theft behavior occurs (i.e., the power consumption sequence), so as to output the suspected electricity theft weight sequence corresponding to the detected user data on a weekly basis. , and based on the user autocorrelation threshold Determine the suspicious user ID where the electricity theft is suspected to have occurred.

[0212] Step 3: Determine the existence of electricity theft based on the abnormal results output by both the physical side measurement data monitoring module and the information side transmission data identification module, and calculate the corresponding amount of electricity theft during the abnormal electricity consumption time based on the monitoring results of the physical side module; further screen out the electricity theft user ID with negative correlation analysis results in each abnormal electricity consumption time period through the electricity theft suspicion weighted correlation scoring algorithm based on the information side identification results, and then determine the electricity theft user ID, electricity theft time and corresponding amount of electricity theft through cross-validation; finally, assign staff to conduct on-site inspections of electricity theft. If only one side is abnormal, maintenance personnel are required to determine whether there is a fault on the physical side of the distribution station area and whether there is a communication abnormality on the information side.

[0213] In this embodiment, the data required for the power theft detection cycle are all provided by the distribution network substation intelligent terminal, the average current is calculated from the terminal historical measurement record data, and the total time period of analysis is determined by the actual power supply time. In addition, the actual length of the transmission line, the actual resistance parameters of the transmission line, the actual power supply, the real-time voltage and current measurement sequence of the total meter on the substation side during the power theft detection cycle, and the power consumption data transmitted by all user-side smart meters in the substation are also provided by the distribution network substation intelligent terminal.

[0214] In step 1 of this specific implementation, based on the physical side measurement data, the physical side measurement data monitoring module constructed includes: Figure 2 After all the steps shown in the flowchart are processed as above, the key measurement data on the physical side of the distribution network can be monitored for abnormalities. The selected indicators are typical indicators that are easy to obtain on the physical side when abnormal electricity consumption occurs. Based on the corresponding data of the intelligent terminal of the distribution network in one month, we first monitored whether the difference between the theoretical line loss value and the actual line loss value exceeded the threshold, then monitored whether the actual line loss rate exceeded the threshold, and finally monitored whether the voltage signal and current signal had abnormal spectrum phenomena, so as to infer the corresponding time period when the suspected electricity theft occurred.

[0215] In step 2 of this specific implementation, the main part of the information side transmission data identification module is a discriminator part that has been trained in an improved WGAN network. Random Gaussian noise and artificial electricity theft labeled samples are respectively input into the generator and the discriminator for training. After the discriminator and the generator reach Nash equilibrium through adversarial game, the training process of both parties is completed. Finally, the trained discriminator is extracted as the user side transmission information electricity theft suspect identification module. In this embodiment, the training process adopted by the information side transmission data identification module is as follows: Figure 3 As shown in the flow chart.

[0216] In step 2 of this specific implementation, based on the information side transmission data, the information side transmission data identification module is constructed by a discriminator part trained in an improved WGAN network, and its input is the power consumption data uploaded from the smart meter readings on the user side of the distribution network to the smart terminal of the distribution network distribution network within one month, with an interval of 30 minutes. Each user in the distribution network generates 4 7 48 data, forming a three-dimensional matrix input network. Its output is the suspected power theft weight sequence when the power user in the substation corresponding to the input data is judged as power theft based on the user's autocorrelation threshold. The information side transmission data identification module used in this embodiment implements the flow chart as shown in Figure 4 shown.

[0217] The improved WGAN network in this embodiment is composed of a generator and a discriminator, the generator network structure is a four-layer convolutional neural network, and the discriminator network structure is a four-layer transposed convolutional neural network. The structure and parameter settings of each layer in this specific implementation are shown in Table 1.

[0218] Table 1 Structural parameters of each layer of the improved WGAN network

[0219]

[0220] In this example, the Irish CER Smart Metering Project dataset is used as a normal user power consumption dataset (i.e., a dataset consisting of a user's normal power consumption sequence) for transforming artificially synthesized power theft samples. The dataset collects power consumption data of more than 5,000 household or commercial users from 2009 to 2010. The data is sampled at intervals of 30 minutes, i.e., 48 sampling points per user ID per day.

[0221] The synthetic electricity theft sample in this embodiment is created by adding typical electricity theft behavior characteristics to the user's normal electricity consumption data (i.e., the user's normal electricity consumption sequence). The specific algorithm is as follows:

[0222]

[0223]

[0224]

[0225]

[0226]

[0227]

[0228] in It is a mathematical model corresponding to six typical electricity theft behaviors. is the user's normal electricity consumption sequence. Formula (23) indicates that the user's normal electricity consumption sequence is reduced according to a certain ratio. The ratio is randomly selected as ; Formula (24) means setting the reduction ratio as a function that changes over time Formula (25) indicates that the average value of the user's normal electricity consumption sequence is used to form the electricity theft sample data; Formula (26) indicates that the average value of the user's normal electricity consumption sequence is used as the basis, and the proportion is a function that changes over time. Formula (27) indicates that the original data is arranged in reverse order to form the electricity theft sample data; Formula (28) indicates that the value of the user's normal electricity consumption sequence is set to 0 for a period of time, and the remaining time periods remain unchanged to form the electricity theft sample data.

[0229] In this embodiment, the above typical mathematical simulation formula for electricity theft behavior is used to artificially synthesize electricity theft samples for training the electricity theft detection classifier. 4232 customers processed in the Irish CER Smart Metering Project data set are selected, and 535 days of electricity consumption data of each customer are used to artificially synthesize electricity theft samples. In order to reduce the impact of the randomness of user electricity consumption behavior on the periodicity of electricity consumption data, data of 28 days in a month are selected as a group of data corresponding to a user ID to artificially synthesize electricity theft samples. At the same time, a user with a long recording period in the data set can be divided into several users, thereby increasing the diversity of samples.

[0230] In step 3 of this specific implementation, based on the output results of the physical side measurement data monitoring module and the information side transmission data identification module, if there are abnormal phenomena on both the physical side and the information side, the occurrence of electricity theft in the substation is confirmed. By performing a weighted Pearson correlation analysis on the substation line loss sequence and the power consumption data of suspicious users in each abnormal power consumption time period, a secondary screening of suspected electricity theft users identified by the information side module is achieved through cross-validation; and based on the difference between the actual line loss and the theoretical line loss on the substation side during the time when the electricity theft occurred determined by the physical side module, the specific value of the stolen electricity is estimated; that is, the electricity theft user ID and the corresponding electricity theft time, as well as the corresponding amount of stolen electricity, which can be used for on-site inspection by staff, are obtained.

[0231] This embodiment further compares the method in the embodiment of the present invention with the traditional detection algorithm, including a single classifier that does not consider the imbalance of sample data: Support Vector Machines (SVM), Recurrent Neural Networks (RNN), Convolutional Neural Networks (CNN), and a model that solves the sample imbalance problem based on the SMOTE algorithm and combines it with a single classifier. The specific effects are shown in Table 2.

[0232] Table 2 Detection results of each model

[0233]

[0234] Through the analysis of experimental data, it can be obtained that the imbalance between normal electricity consumption data and electricity theft data in the actual system has a certain impact on the detection effect of a single classifier, and the electricity theft samples generated by the linear difference method of the SMOTE algorithm can improve the impact of sample imbalance on the classifier training effect in a small range. Compared with other types of models, the improved WGAN network in the scheme proposed by the present invention can learn the potential distribution law of samples, and its synthesized electricity theft samples greatly increase the randomness of data on the basis of retaining the characteristics of real samples, effectively reducing the adverse effects of sample imbalance on the detection effect, and the accuracy of the proposed electricity theft detection model can be effectively improved. In addition, based on the weighted Pearson correlation algorithm for electricity theft suspicion proposed by the present invention, the output results of the electricity theft detection model can be screened twice during the abnormal electricity consumption time by cross-validation, further improving the accuracy of the electricity theft detection scheme. And according to the data and corresponding modules on both sides of the information physics of the distribution station area, the occurrence time of electricity theft behavior in the station area, the specific user ID and the amount of electricity theft can be cross-validated, effectively improving the reliability of the electricity theft judgment criteria of the scheme.

[0235] This implementation provides a method for detecting electricity theft on both sides of the information and physics of a distribution network. The specific application method is as follows: Figure 1 As shown, the proposed scheme can realize the joint detection of electricity theft on both sides according to the physical side device information and information side user information recorded and received by the intelligent terminal in the distribution network substation, which effectively reduces the difficulty and high cost of implementing electricity theft detection based on single-side information, and provides a fast, accurate and detailed electricity theft detection scheme.

[0236] Example 2

[0237] Based on the same inventive concept as that of Embodiment 1, an embodiment of the present invention provides a power theft behavior joint detection device for information and physical dual sides of a distribution network area, comprising:

[0238] The first data processing module is used to input the physical side measurement data recorded by the intelligent terminal of the distribution network area within the preset time into the physical side measurement data monitoring module, monitor the line loss, line loss rate and abnormal voltage and current conditions on the physical side of the distribution network area, and output the suspicious time period where the electricity theft is suspected;

[0239] The second data processing module is used to input the information side transmission data received by the intelligent terminal in the distribution network area within a preset time into the information side transmission data identification module, and input the power consumption sequence uploaded by all users in the distribution network area into the user side data power theft detection classifier trained with the power consumption sequence when the typical power theft behavior occurs, to determine the suspicious user ID when the suspected power theft behavior occurs;

[0240] The secondary detection module for electricity theft is used to perform correlation analysis on the actual line loss sequence of the substation area and the electricity consumption sequence of the suspicious user in each suspicious time period, obtain the suspicious user ID with a negative correlation analysis result, and complete the joint detection of electricity theft.

[0241] The rest are the same as in Example 1.

[0242] Example 3

[0243] Based on the same inventive concept as that of Example 1, an embodiment of the present invention provides a power theft behavior joint detection system for information and physical sides of a distribution network area, including a storage medium and a processor;

[0244] The storage medium is used to store instructions;

[0245] The processor is configured to operate according to the instructions to execute the method according to any one of the embodiments 1.

[0246] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0247] 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 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.

[0248] 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.

[0249] 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 in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0250] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present invention and the claims, which all fall within the protection of the present invention.

[0251] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.

Claims

1. A method for detecting electricity theft based on both sides of the information and physics of a distribution network, characterized in that: include: The physical side measurement data recorded within the preset time by the intelligent terminal of the distribution network substation is input into the physical side measurement data monitoring module to monitor the line loss, line loss rate and abnormal voltage and current conditions on the physical side of the distribution network substation, and output the suspicious time period where electricity theft is suspected; The information side transmission data received by the intelligent terminal in the distribution network area within the preset time is input into the information side transmission data identification module, and the suspicious user ID when the suspected electricity theft occurs is determined by inputting the electricity consumption sequence uploaded by all users in the distribution network area into the user side data electricity theft detection classifier trained with the electricity consumption sequence when the typical electricity theft behavior occurs; Perform correlation analysis on the actual line loss sequence of the substation area and the power consumption sequence of the suspicious user in each suspicious time period, obtain the suspicious user ID with negative correlation analysis results, and complete the joint detection of power theft; If both the physical-side measurement data monitoring module and the information-side transmission data identification module confirm that an abnormality has occurred in the same time period, a correlation analysis is performed on the actual line loss sequence of the distribution station area in the suspicious time period and the power consumption sequence of the suspicious user for the distribution station area where the suspected electricity theft occurs; if only one of the physical-side measurement data monitoring module or the information-side transmission data identification module confirms that an abnormality has occurred, it is determined whether there is a fault or disturbance on the physical side or a communication delay on the information side; The correlation analysis is performed on the actual line loss sequence of the substation area and the power consumption sequence of the suspicious user during the suspicious time period, including the following steps: Define the suspicious time period as T * , T * =(t1,t2,t3,…,t m ), m is the total number of time periods with abnormalities, and for each abnormal power consumption time period t j Power consumption sequence of suspicious users Conduct secondary screening for electricity theft, where IDi is the index subscript of the electricity consumption sequence of the suspicious user ID i in the distribution station area; The secondary screening of electricity theft specifically includes: For abnormal power consumption time period t j The electricity consumption sequence of the suspicious user ID i is The weight sequence of suspected electricity theft corresponding to the user in this time period is: The actual line loss sequence of the substation area is: The calculation formula of the weighted Pearson correlation coefficient of electricity theft suspicion is: in, is the abnormal power consumption time period t j The weighted Pearson correlation analysis results of the suspected electricity theft of the suspicious user ID i, yes and The covariance of and They are and The standard deviation of The closer the value is to 1, the stronger the positive correlation between the two sets of data is; Express request and Pearson correlation of ; E() means to find the expectation; If an abnormal power consumption period t j If the weighted Pearson correlation analysis result of the suspected electricity theft of any suspicious user is negative, the abnormal physical indicators in the abnormal electricity consumption period may correspond to other disturbances or faults in the system; if the weighted Pearson correlation analysis results of the suspected electricity theft of a suspicious user in all abnormal electricity consumption periods are not negative, the abnormal characteristics of the user's electricity consumption data may be caused by the randomness of the user's electricity consumption behavior or abnormal communication conditions; If the abnormal power consumption time period t j If the weighted Pearson correlation analysis result of a suspicious user's suspicion of electricity theft is negative, the abnormal electricity usage time period is determined as the corresponding electricity theft time period when the electricity theft behavior occurs. j The estimated power theft formula is as follows: in, is the estimated amount of electricity stolen, and They are respectively the abnormal power consumption time period t output by the measurement data monitoring module on the physical side of the distribution station area j The corresponding actual line loss sum and theoretical line loss sum.

2. According to claim 1, a method for detecting electricity theft by combining both sides of the information and physics of a distribution network, characterized in that: The physical side measurement data monitoring module executes a first preset step to obtain a suspicious time period in which electricity theft is suspected to exist, and the first preset step includes: Determine the theoretical line loss S t The actual line loss S r Whether the difference exceeds the first threshold, whether the actual line loss rate σ exceeds the second threshold, and whether abnormal spectrum phenomena appear after performing frequency domain analysis on the historical measurement sequences of real-time voltage and real-time current; According to the time point when the threshold is exceeded or the abnormal frequency occurs, the suspicious time period T where the electricity theft behavior is suspected is determined. * ; The information side transmission data identification module executes a second preset step to obtain a suspicious user ID when the suspected electricity theft behavior occurs, and the second preset step includes: The discriminator part of the improved WGAN network after training with artificial electricity theft samples is used as the user-side data electricity theft detection classifier to judge whether the similarity between the electricity consumption sequence uploaded by all users in the distribution station area and the electricity consumption sequence when the typical electricity theft behavior occurs exceeds the set threshold, so as to output the electricity theft suspicion weight sequence δ corresponding to the detected user electricity consumption sequence on a weekly basis, and determine the suspicious user ID when the suspected electricity theft behavior occurs according to the user autocorrelation threshold τ.

3. According to claim 2, a method for detecting electricity theft by combining both sides of the information and physics of a distribution network, characterized in that: The theoretical line loss calculation formula is: Among them, S t is the theoretical line loss value, in kw·h; I is the average current, T is the time period; R is the equivalent resistance of the transmission line, in Ω / km; t is the time instant; The calculation formula of the equivalent resistance R of the transmission line is: R=L×R r ; Where L is the actual length of the transmission line, R r is the actual resistance of the transmission line; The actual line loss calculation formula is: S r =W-W sum ; Among them, S r is the actual line loss value, the unit is kw·h, W is the actual power supply, W sum The total amount of power consumption data transmitted by the user-side smart meter; The actual line loss rate calculation formula is: Among them, σ is the actual line loss rate.

4. According to claim 2, a method for detecting electricity theft by combining both information and physics on both sides of a distribution network, characterized in that: When analyzing abnormal spectrum phenomena, the following steps are included: There is a discrete real number sequence x(n) of length k, n=0, 1, ..., N-1, the discrete real number sequence x(n) is a historical measurement sequence of real-time voltage or real-time current, and its discrete Fourier transform calculation formula is: Wherein, X(k) is the sequence after discrete Fourier transform calculation; Divide the above sequence after discrete Fourier transform into odd items and even items: Where x1(n) and x2(n) represent the even and odd terms of the discrete real number sequence x(n), respectively; Extracting the general term yields: because We can get: because We can get: Based on X(k) and Get the spectrum diagram; An abnormal spectrum phenomenon analysis is performed based on the spectrum diagram.

5. According to claim 2, a method for detecting electricity theft by combining both cyber and physical sides of a distribution network, characterized in that: The information side transmission data identification module is an improved WGAN network, and the improved WGAN network includes a generator and a discriminator; The network structure of the generator is a four-layer convolutional neural network; The network structure of the discriminator is a four-layer transposed convolutional neural network; The improved WGAN network uses Wasserstein distance as the loss function, and the calculation formula is: L=E x [D(x)]-E z [D(G(z))]; The training objective of the discriminator is: maximize E x [D(x)]-E z [D(G(z))]; The training objective of the generator is: minimize-E z [D(G(z))]; Among them, L is the loss function, D(x) is the discriminator function, G(z) is the generator function, x and z are the data from the given sample and noise respectively, and E[] is the expected value.

6. The method for detecting electricity theft based on the information and physical dual sides of a distribution network area according to claim 2 is characterized by: In the application process, the input data of the user-side data theft detection classifier is the electricity consumption sequence uploaded by the user's meter to the distribution network area intelligent terminal within one month. The sampling time interval is h hours. Then each area user generates The output result of the user-side data electricity theft detection classifier is the electricity theft suspicion weight sequence δ corresponding to the four-week data of the user in the area corresponding to the input data within one month, δ = (δ1, δ2, δ3, δ4); The user's autocorrelation threshold τ is calculated based on the suspected electricity theft weight sequence δ. The calculation formula of the user's autocorrelation threshold τ is as follows: Among them, max is for finding the maximum value, min is for finding the minimum value, and E[] is for finding the expected value; When τ>1, it means that the user's electricity usage behavior has large random fluctuations and there is suspected electricity theft; when τ<1, it means that the user's electricity usage behavior is regular and has periodic similar characteristics, and there is no suspicion of electricity theft.

7. The method for detecting electricity theft based on the information and physical dual sides of a distribution network area according to claim 2 is characterized by: The input data of the improved WGAN network during training is artificially synthesized samples of electricity theft in weeks, and its output data is the probability of electricity theft by the user corresponding to the input data, that is, the suspicion weight of electricity theft; When training the improved WGAN network, typical electricity theft behavior features are added to the normal user electricity consumption sequence according to a preset formula to generate multiple electricity theft behavior synthetic sequences, and random Gaussian noise and the multiple electricity theft behavior synthetic sequences are respectively input into the generator and the discriminator, and the discriminator and the generator reach Nash equilibrium after confrontation game, thereby completing the training of the discriminator and the generator; The preset formula includes: W th1 (t)=μW ho (t),0.1<μ<0.7; W th2 (t)=μ(t)W ho (t),0.1<μ(t)<0.7; W th3 (t)=mean[W ho (t)]; W th4 (t)=μ(t)·mean[W ho (t)],0.1<μ(t)<0.7; W th5 (t)=W ho (T-t); Among them, W th1 -W th6 are synthetic sequences of different electricity stealing behaviors, W ho is the normal user electricity consumption sequence, μ is the proportion; μ(t) is the function that changes with time, mean[] represents the average value, T is the time period, t is the time moment, t1 and t2 represent the time moment t1 and t2 respectively.

8. A device for detecting electricity theft by combining both information and physics on both sides of a distribution network, characterized in that: include: The first data processing module is used to input the physical side measurement data recorded by the intelligent terminal of the distribution network area within the preset time into the physical side measurement data monitoring module, monitor the line loss, line loss rate and abnormal voltage and current conditions on the physical side of the distribution network area, and output the suspicious time period where the electricity theft is suspected; The second data processing module is used to input the information side transmission data received by the intelligent terminal in the distribution network area within a preset time into the information side transmission data identification module, and input the power consumption sequence uploaded by all users in the distribution network area into the user side data power theft detection classifier trained with the power consumption sequence when the typical power theft behavior occurs, to determine the suspicious user ID when the suspected power theft behavior occurs; The secondary detection module for electricity theft is used to perform correlation analysis on the actual line loss sequence of the substation area and the electricity consumption sequence of the suspicious user in each suspicious time period, obtain the suspicious user ID with a negative correlation analysis result, and complete the joint detection of electricity theft; If both the physical-side measurement data monitoring module and the information-side transmission data identification module confirm that an abnormality has occurred in the same time period, a correlation analysis is performed on the actual line loss sequence of the distribution station area in the suspicious time period and the power consumption sequence of the suspicious user for the distribution station area where the suspected electricity theft occurs; if only one of the physical-side measurement data monitoring module or the information-side transmission data identification module confirms that an abnormality has occurred, it is determined whether there is a fault or disturbance on the physical side or a communication delay on the information side; The correlation analysis is performed on the actual line loss sequence of the substation area and the power consumption sequence of the suspicious user during the suspicious time period, including the following steps: Define the suspicious time period as T * , T * =(t1,t2,t3,…,t m ), m is the total number of time periods with abnormalities, and for each abnormal power consumption time period t j Power consumption sequence of suspicious users Conduct secondary screening for electricity theft, where IDi is the index subscript of the electricity consumption sequence of the suspicious user ID i in the distribution station area; The secondary screening of electricity theft specifically includes: For abnormal power consumption time period t j The electricity consumption sequence of the suspicious user ID i is The weight sequence of suspected electricity theft corresponding to the user in this time period is: The actual line loss sequence of the substation area is: The calculation formula of the weighted Pearson correlation coefficient of electricity theft suspicion is: in, is the abnormal power consumption time period t j The weighted Pearson correlation analysis results of the suspected electricity theft of the suspicious user ID i, yes and The covariance of and They are and The standard deviation of The closer the value is to 1, the stronger the positive correlation between the two sets of data is; Express request and Pearson correlation of ; E() means to find the expectation; If an abnormal power consumption period t j If the weighted Pearson correlation analysis result of the suspected electricity theft of any suspicious user is negative, the abnormal physical indicators in the abnormal electricity consumption period may correspond to other disturbances or faults in the system; if the weighted Pearson correlation analysis results of the suspected electricity theft of a suspicious user in all abnormal electricity consumption periods are not negative, the abnormal characteristics of the user's electricity consumption data may be caused by the randomness of the user's electricity consumption behavior or abnormal communication conditions; If the abnormal power consumption time period t j If the weighted Pearson correlation analysis result of a suspicious user's suspicion of electricity theft is negative, the abnormal electricity usage time period is determined as the corresponding electricity theft time period when the electricity theft behavior occurs. j The estimated power theft formula is as follows: in, is the estimated amount of electricity stolen, and They are respectively the abnormal power consumption time period t output by the measurement data monitoring module on the physical side of the distribution station area j The corresponding actual line loss sum and theoretical line loss sum.

9. A power theft detection system combining both cyber and physical sides of a distribution network, characterized in that: including storage media and processors; The storage medium is used to store instructions; The processor is configured to operate according to the instructions to perform the method according to any one of claims 1-7.