Method and system for cleaning and classifying abnormal power utilization data of power consumers

By preprocessing and expanding the power consumption data in the smart grid, a power theft discriminator is constructed, which solves the problems of data imbalance and classification difficulties, achieves more accurate power theft detection, improves data integrity and the power theft discriminator accuracy.

CN118734236AActive Publication Date: 2024-10-01STATE GRID TIANJIN ELECTRIC POWER COMPANY +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411224676.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-03
Publication Date
2024-10-01
Estimated Expiration
2044-09-03

AI Technical Summary

Technical Problem

The electricity consumption data in smart grids contains a large number of missing values, outliers and unbalanced data distribution, which makes it difficult to classify electricity theft and non-theft data, and is difficult to effectively solve with existing technology.

Method used

By collecting historical electricity consumption data, preprocessing and data set expansion are performed, a power theft discriminator is constructed, and neural networks are used for real-time classification to achieve data set balance and power theft detection.

Benefits of technology

It significantly improves data integrity and consistency, balances the distribution of data sets, improves the learning effect and detection accuracy of the electricity theft discriminator, reduces classification deviations, and can detect electricity theft more accurately.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734236A_ABST
    Figure CN118734236A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a system for cleaning and classifying abnormal power consumption data of power consumers. The method comprises the following steps: collecting historical power consumption data of a power consumer; preprocessing the historical electricity consumption data; expanding the preprocessed historical electricity consumption data to obtain a data set; constructing an electricity larceny discriminator; and classifying the electricity consumption data of the monitored power users in the power distribution network in real time by using the trained electricity stealing discriminator, and judging whether the monitored power users are non-electricity stealing users or electricity stealing users according to a classification result. According to the method, a scheme of expanding the historical electricity consumption data set is adopted, minority-class synthetic samples are added, redundant majority-class samples are deleted, balanced distribution of the data set is realized, the problem of imbalance of the data set is effectively solved, the detection accuracy of the electricity stealing discriminator on the minority-class samples is improved, and the detection efficiency of the electricity stealing discriminator on the majority-class samples is improved. Therefore, the electricity larceny discriminator can detect the electricity larceny behavior more accurately.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electricity consumption data cleaning, and in particular to a method and system for cleaning and classifying abnormal electricity consumption data of power users. Background Art

[0002] With the development of smart grids, the amount of data generated and collected in power systems has increased dramatically, making it possible to monitor and record users' electricity usage behavior in real time. However, these data usually contain a large number of missing values, outliers, and unbalanced data distribution, which brings great challenges to data cleaning and classification of electricity theft and non-electricity theft data. In view of this, it is necessary to study and improve related technologies to meet the needs of users. Summary of the invention

[0003] In order to meet the user's demand for cleaning and classifying electricity consumption data, the purpose of the present invention is to provide a method and system for cleaning and classifying abnormal electricity consumption data of power users.

[0004] To achieve the purpose of the present invention, the technical solution provided by the present invention is as follows: First aspect The present invention provides a method for cleaning and classifying abnormal power consumption data of power users, comprising the following steps: Step S1: Collect historical electricity consumption data of power users to form a historical electricity consumption data set X , wherein the historical electricity consumption data has been marked as electricity consumption data of non-electricity stealing users or electricity consumption data of electricity stealing users; Step S2: The historical electricity consumption data set X Perform preprocessing to obtain the preprocessed historical electricity consumption data set , the preprocessing includes recovering lost data, processing outliers, and data standardization; Step S3: Preprocess the historical electricity consumption data set Expand and get the data set ; The step S3 specifically includes the following: Step S3.1: Calculate the power consumption data of the electricity-stealing users to be increased: , and Electricity consumption data of electricity theft users and Splice into a power consumption matrix of electricity stealing users ; Step S3.2: Target , delete unnecessary non-electricity-stealing user electricity consumption data, and form a non-electricity-stealing user electricity consumption matrix ; Step S3.3: and Splice into data set ; Step S3.4: Calculation The degree of characteristic imbalance ratio , It is the ratio of the amount of electricity used by electricity-stealing users to the amount of electricity used by non-electricity-stealing users; Step S3.5: Repeat steps S3.1 to S3.4 until Output The dataset at that time , dataset The elements are used express; Step S4: Build a power theft detector and use the dataset In Training the electricity theft detector; Step S5: using the trained electricity theft discriminator to classify the electricity consumption data of the monitored power users in the distribution network in real time, and judging whether they are non-electricity theft users or electricity theft users according to the classification results.

[0005] Second aspect Corresponding to the above method, the present invention provides a power user power consumption abnormal data cleaning and classification system, comprising the following units: a historical power consumption data set X forming unit, a preprocessing unit, a data set expansion unit, a power theft discriminator building unit, and a classification unit; The historical power consumption data set X forming unit is used to collect the historical power consumption data of power users to form a historical power consumption data set X , wherein the historical electricity consumption data has been marked as electricity consumption data of non-electricity stealing users or electricity consumption data of electricity stealing users; The preprocessing unit is used to process the historical power consumption data set X Perform preprocessing to obtain the preprocessed historical electricity consumption data set , the preprocessing includes recovering lost data, processing outliers, and data standardization; The data set expansion unit is used to expand the preprocessed historical power consumption data set. Expand and get the data set ; The data set expansion unit is specifically used to perform the following steps: Step S3.1: Calculate the power consumption data of the electricity-stealing users to be increased: , and Electricity consumption data of electricity theft users and Splice into a power consumption matrix of electricity stealing users ; Step S3.2: Target , delete unnecessary non-electricity-stealing user electricity consumption data, and form a non-electricity-stealing user electricity consumption matrix ; Step S3.3: and Splice into data set ; Step S3.4: Calculation The degree of characteristic imbalance ratio , It is the ratio of the amount of electricity used by electricity-stealing users to the amount of electricity used by non-electricity-stealing users; Step S3.5: Repeat steps S3.1 to S3.4 until Output The dataset at that time , dataset The elements are used express; The electricity theft discriminator unit is used to construct an electricity theft discriminator and use a data set In Training the electricity theft detector; The classification unit is used to classify the power consumption data of the monitored power users in the distribution network in real time using the trained power theft discriminator, and judge whether the users are non-power theft users or power theft users according to the classification results.

[0006] Compared with the prior art, the present invention preprocesses the historical electricity consumption data set, significantly improving the integrity and consistency of the data; the present invention adopts a scheme for expanding the historical electricity consumption data set, adds synthetic samples of the minority class and deletes redundant majority class samples, thereby achieving a balanced distribution of the data set, effectively solving the problem of imbalanced data sets, significantly improving the learning effect of the electricity theft discriminator on minority class samples, reducing classification bias, thereby improving the detection accuracy of the electricity theft discriminator on minority class samples, and enabling the electricity theft discriminator to more accurately detect electricity theft behavior. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] Figure 1 A schematic diagram of a method flow chart provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0008] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments 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. Example 1

[0009] like Figure 1 As shown, this embodiment provides a method for cleaning and classifying abnormal power consumption data of power users, including the following steps: Step S1: Collect historical electricity consumption data of power users to form a historical electricity consumption data set X , wherein the historical electricity consumption data has been marked as electricity consumption data of non-electricity stealing users or electricity consumption data of electricity stealing users; Among them, the historical electricity consumption data set X as follows:

[0010] In the formula, Represents the historical electricity consumption data of power users, x mn Indicates m The first electricity user n The power consumption at each timestamp.

[0011] It should be noted that in the above historical electricity consumption data, it has been marked which data are the electricity consumption data of non-electricity theft users. Identify which are the electricity consumption data of electricity theft users and which are the electricity consumption data of electricity theft users. Logo.

[0012] Step S2: Preprocess the historical electricity consumption data set X to obtain a preprocessed historical electricity consumption data set , the preprocessing includes recovering lost data, processing outliers, and data standardization; The details are as follows: Step S2.1: restore missing values ​​based on interpolation method; Step S2.2: Use the “three sigma rule of thumb” to handle outliers; Step S2.3: Data standardization, as follows: Use the MIN-MAX scaling method to rescale the data set processed in the above steps to the range of 0 to 1 to obtain the preprocessed historical electricity consumption data set : .

[0013] Step S3: Preprocess the historical electricity consumption data set Expand and get the data set ; It should be noted that, because the electricity consumption data of electricity theft users accounts for a very small proportion of the entire data set, in order to highlight the characteristics of their electricity theft data, it is necessary to supplement the electricity consumption data of electricity theft users.

[0014] The details are as follows: Step S3.1: Calculate the power consumption data of the electricity-stealing users to be increased: , and Electricity consumption data of electricity stealing users and Splice into a power consumption matrix of electricity stealing users ; The details include: Step S3.1.1: Calculate the electricity consumption data of the electricity-stealing users to be increased: , including the following: Step S3.1.1.1: Electricity consumption data of electricity theft users And non-electricity-stealing users' electricity consumption data , using the distance formula , find v Individual and The nearest ; in, It refers to the pth , It refers to the zth ; and They are The amount of electricity consumed by non-electricity-stealing users and the amount of electricity consumed by electricity-stealing users, that is, and The number of is related as follows: and , m is the index of electricity users, n Represents a time index; Step S3.1.1.2: Use the obtained v and To calculate the ratio radius , the specific formula is as follows: ; Step S3.1.1.3: Use the formula , the ratio radius Normalized to get the normalized ratio radius ; Step S3.1.1.4: Use the normalized ratio radius , calculate the power consumption data of the electricity-stealing users that need to be increased as , as follows: ; In the formula, the variable λ represents the random number ; express Difference vector in dimensional space; parameters ,Depend on To obtain, G is the number of electricity consumption data of users who need to synthesize electricity theft, ,in, Indicates the degree of characteristic imbalance ratio, that is, the balance level of electricity theft data and non-electricity theft data required after synthesizing the electricity consumption data of electricity theft users; Electricity usage data for electricity theft users Remove the other data of the i-th data.

[0015] Step S3.1.2: and Splice into a power consumption matrix of electricity stealing users .

[0016] Step S3.2: Target , delete unnecessary non-electricity-stealing user electricity consumption data, and form a non-electricity-stealing user electricity consumption matrix ; These include: Step S3.2.1: From Select ; Step S3.2.2: Delete unnecessary non-electricity-stealing user electricity consumption data, including the following: First, in Find the distance The electricity consumption of the three most recent non-electricity-stealing users; secondly, only keep With the smallest distance , delete the other two ; Finally, there will be no deleted Save and splice into the power consumption matrix of non-electricity-stealing users .

[0017] Step S3.3: and Splice into data set ; Step S3.4: Calculation The degree of characteristic imbalance ratio , It is the ratio of the amount of electricity used by electricity-stealing users to the amount of electricity used by non-electricity-stealing users; Step S3.5: Repeat steps S3.1 to S3.4 until Output The dataset at that time , dataset The elements are used It should be noted that this means that the electricity theft data and the non-electricity theft data are equal. In this case, the electricity theft data features and the non-electricity theft data features are equally important to the identifier.

[0018] Step S4: Build a power theft detector and use the dataset In Training the electricity theft detector; It should be noted that a neural network is established in this step.

[0019] The electricity theft detector consists of an input layer, an output layer, and a hidden layer. Their structures are similar to Composition, receiving data The one that outputs whether electricity is stolen is the output layer, and the one between the two is the hidden layer.

[0020] Step S4.1: Establish a neural network, as follows: ; ; In the formula, Indicates the hidden layer Neurons are input The corresponding output is: is 1, 2, 3; Represents matrix transpose; and represents the parameters (weights and biases) of the neural network, and the activation function is used express; For judgment The type value (whether it is the user data of electricity theft determined by the electricity theft detector) is obtained by weighted summation of three neurons; is the weight of each neuron.

[0021] Step S4.2: Initialize network parameters, and All are 0; Step S4.3: Input and output and ; Step S4.4: Calculate the current loss function L , as follows: ; in, express The corresponding real type value (whether it is electricity theft user data).

[0022] Step S4.5: Calculate the The error of a neuron ; ; Step S4.6: Update the weights of the neurons to obtain ;

[0023] in, is the coefficient of variation; Step S4.7: Calculate the partial derivatives of w and b, the formula is as follows; ; Step S4.8: Calculate the change in weight , the formula is as follows: ; Step S4.9: Combination , update the weights ,get , the formula is as follows: ; In the formula, and Respectively represent the learning rate and momentum terms in artificial neural networks; Indicates Neural network parameters of neurons The attenuation parameter of , the weight decay property can be easily disabled to obtain typical behavior.

[0024] Step S4.10: Calculate weights The offset before and after the update; the formula is as follows:

[0025] If the offset is greater than 0.25, it is discarded. ,wrong Otherwise, keep the updated ; Step S4.11: Update bias get ; ; Step S4.12: Repeat steps S4.1-S4.11 until all Use them all to complete the training.

[0026] Step S5: using the trained electricity theft discriminator to classify the electricity consumption data of the monitored power users in the distribution network in real time, and judging whether they are non-electricity theft users or electricity theft users according to the classification results.

[0027] Specifically, using the electricity theft detector The power consumption data of the power users in the distribution network are judged. If the power consumption data is judged to be a non-power stealing user, then the user is a non-power stealing user; if the power consumption data is judged to be a power stealing user, then the user is a power stealing user.

[0028] in, The power consumption data of the monitored power users in the distribution network; is the weight of each neuron; , , Respectively represent the 1st, 2nd, and 3rd neurons in the hidden layer at the input The corresponding output is: For judgment The type value is obtained by weighted summation of three neurons.

[0029] Example 2 This embodiment provides a power user power consumption abnormal data cleaning and classification system, including the following units: a historical power consumption data set X forming unit, a preprocessing unit, a data set expansion unit, a power theft discriminator building unit, and a classification unit; The historical power consumption data set X forming unit is used to collect the historical power consumption data of power users to form a historical power consumption data set X , wherein the historical electricity consumption data has been marked as electricity consumption data of non-electricity stealing users or electricity consumption data of electricity stealing users; The preprocessing unit is used to process the historical power consumption data set X Perform preprocessing to obtain the preprocessed historical electricity consumption data set , the preprocessing includes recovering lost data, processing outliers, and data standardization; The data set expansion unit is used to expand the preprocessed historical power consumption data set. Expand and get the data set ; The data set expansion unit is specifically used to perform the following steps: Step S3.1: Calculate the power consumption data of the electricity-stealing users to be increased: , and Electricity consumption data of electricity theft users and Splice into a power consumption matrix of electricity stealing users ; Step S3.2: Target , delete unnecessary non-electricity-stealing user electricity consumption data, and form a non-electricity-stealing user electricity consumption matrix ; Step S3.3: and Splice into data set ; Step S3.4: Calculation The degree of characteristic imbalance ratio , It is the ratio of the amount of electricity used by electricity-stealing users to the amount of electricity used by non-electricity-stealing users; Step S3.5: Repeat steps S3.1 to S3.4 until Output The dataset at that time , dataset The elements are used express; The electricity theft discriminator unit is used to construct an electricity theft discriminator and use a data set In Training the electricity theft detector; The classification unit is used to classify the power consumption data of the monitored power users in the distribution network in real time using the trained power theft discriminator, and judge whether the users are non-power theft users or power theft users according to the classification results.

[0030] The preprocessing unit is specifically used to perform the following steps: Step S2.1: for the historical electricity consumption dataset X, restore missing values ​​based on an interpolation method; Step S2.2: For the historical electricity consumption dataset with restored missing values, use the three sigma rule of thumb to handle outliers; Step S2.3: Standardize the historical electricity consumption dataset after processing outliers, and use the MIN-MAX scaling method to rescale the historical electricity consumption dataset to the range of 0 to 1 to obtain the preprocessed historical electricity consumption dataset. .

[0031] Wherein, the step S3.1 includes the following: Step S3.1.1: Calculate the electricity consumption data of the electricity-stealing users to be increased: , including the following: Step S3.1.1.1: Electricity consumption data of electricity theft users And non-electricity-stealing users' electricity consumption data , using the distance formula , find v Individual and The nearest ; in, It refers to the pth , It refers to the zth ; and They are The relationship between the amount of electricity consumed by non-electricity theft users and the amount of electricity consumed by electricity theft users is: and ; m is the index of electricity users, n Represents a time index; Step S3.1.1.2: Use the obtained v and To calculate the ratio radius , the specific formula is as follows: ; Step S3.1.1.3: Use the formula , the ratio radius Normalized to get the normalized ratio radius ; Step S3.1.1.4: Use the normalized ratio radius , calculate the power consumption data of the electricity-stealing users that need to be increased as , as follows: ; In the formula, the variable λ represents the random number ; express Difference vector in dimensional space; parameters ,Depend on To obtain, G is the number of electricity consumption data of users who need to synthesize electricity theft, ,in, Indicates the degree of feature imbalance ratio; Electricity usage data for electricity theft users Remove the other data of the i-th data.

[0032] Step S3.1.2: and Splice into a power consumption matrix of electricity stealing users .

[0033] Wherein, the step S3.2 includes the following: Step S3.2.1: From Select ; Step S3.2.2: Delete unnecessary non-electricity-stealing user electricity consumption data, including the following: First, in Find the distance The electricity consumption of the three most recent non-electricity-stealing users; secondly, only keep With the smallest distance , delete the other two ; Finally, there will be no deleted Save and splice into the power consumption matrix of non-electricity-stealing users .

[0034] Wherein, the electricity theft detector is: ; in, The power consumption data of the monitored power users in the distribution network; is the weight of each neuron; , , Respectively represent the 1st, 2nd, and 3rd neurons in the hidden layer at the input The corresponding output is: For judgment The type value is obtained by weighted summation of three neurons.

[0035] Finally, it should be noted that the above embodiments are only used to illustrate and explain the present invention, and are not intended to limit the present invention to the scope of the described embodiments. In addition, those skilled in the art can understand that the present invention is not limited to the above embodiments, and more variations and modifications can be made according to the teachings of the present invention, and these variations and modifications all fall within the scope of the protection claimed by the present invention.

Claims

1. A method for cleaning and classifying abnormal power consumption data of power users, characterized in that: The steps include: Step S1: Collect historical electricity consumption data of power users to form a historical electricity consumption data set X , wherein the historical electricity consumption data has been marked as electricity consumption data of non-electricity stealing users or electricity consumption data of electricity stealing users; Step S2: The historical electricity consumption data set X Perform preprocessing to obtain the preprocessed historical electricity consumption data set , the preprocessing includes recovering lost data, processing outliers, and data standardization; Step S3: Preprocess the historical electricity consumption data set Expand and obtain the data set ; The step S3 specifically includes the following: Step S3.1: Calculate the power consumption data of the electricity-stealing users to be increased: , and Electricity consumption data of electricity stealing users and Splice into a power consumption matrix of electricity stealing users ; Step S3.2: Target , delete unnecessary non-electricity-stealing user electricity consumption data, and form a non-electricity-stealing user electricity consumption matrix ; Step S3.3: and Splice into data set ; Step S3.4: Calculation The degree of characteristic imbalance ratio , It is the ratio of the amount of electricity used by electricity-stealing users to the amount of electricity used by non-electricity-stealing users; Step S3.5: Repeat steps S3.1 to S3.4 until Output The dataset at that time , dataset The elements are used express; Step S4: Build a power theft detector and use the dataset In Training the electricity theft detector; Step S5: using the trained electricity theft discriminator to classify the electricity consumption data of the monitored power users in the distribution network in real time, and judging whether they are non-electricity theft users or electricity theft users according to the classification results.

2. A method for cleaning and classifying abnormal power consumption data of power users according to claim 1, characterized in that: The step S2 includes the following: Step S2.1: for the historical electricity consumption dataset X, restore missing values ​​based on an interpolation method; Step S2.2: For the historical electricity consumption dataset with restored missing values, use the three sigma rule of thumb to handle outliers; Step S2.3: Standardize the historical electricity consumption dataset after processing outliers, and use the MIN-MAX scaling method to rescale the historical electricity consumption dataset to the range of 0 to 1 to obtain the preprocessed historical electricity consumption dataset. .

3. A method for cleaning and classifying abnormal power consumption data of power users according to claim 2, characterized in that: The step S3.1 includes the following: Step S3.1.1: Calculate the electricity consumption data of the electricity-stealing users to be increased: , including the following: Step S3.1.1.1: Electricity consumption data of electricity theft users And non-electricity-stealing users' electricity consumption data , using the distance formula , find v Individual and The nearest ; in, It refers to the pth , It refers to the zth ; and They are The relationship between the amount of electricity consumed by non-electricity theft users and the amount of electricity consumed by electricity theft users is: and , m is the index of electricity users, n Represents a time index; Step S3.1.1.2: Use the obtained v and To calculate the ratio radius , the specific formula is as follows: ; Step S3.1.1.3: Use the formula , the ratio radius Normalized to get the normalized ratio radius ; Step S3.1.1.4: Use the normalized ratio radius , calculate the power consumption data of the electricity-stealing users that need to be increased as , as follows: ; In the formula, the variable λ represents the random number ; express Difference vector in dimensional space; parameters ,Depend on To obtain, G is the number of electricity consumption data of users who need to synthesize electricity theft, ,in, Indicates the degree of feature imbalance ratio; Electricity usage data for electricity theft users Remove the other data of the i-th data; Step S3.1.2: and Splice into a power consumption matrix of electricity stealing users .

4. A method for cleaning and classifying abnormal power consumption data of power users according to claim 3, characterized in that: The step S3.2 includes the following: Step S3.2.1: From Select ; Step S3.2.2: Delete unnecessary non-electricity-stealing user electricity consumption data, including the following: First, in Find the distance The electricity consumption of the three most recent non-electricity-stealing users; secondly, only keep With the smallest distance , delete the other two ; Finally, there will be no deleted Save and splice into the power consumption matrix of non-electricity-stealing users .

5. A method for cleaning and classifying abnormal power consumption data of power users according to claim 4, characterized in that: In step S5, the electricity theft detector is: ; in, The power consumption data of the monitored power users in the distribution network; is the weight of each neuron; , , Respectively represent the 1st, 2nd, and 3rd neurons in the hidden layer at the input The corresponding output is: For judgment The type value is obtained by weighted summation of three neurons.

6. A power user power consumption abnormal data cleaning and classification system, characterized in that: It includes the following units: a historical electricity consumption data set X forming unit, a preprocessing unit, a data set expansion unit, a power theft discriminator building unit, and a classification unit; The historical power consumption data set X forming unit is used to collect the historical power consumption data of power users to form a historical power consumption data set X , wherein the historical electricity consumption data has been marked as electricity consumption data of non-electricity stealing users or electricity consumption data of electricity stealing users; The preprocessing unit is used to process the historical power consumption data set X Perform preprocessing to obtain the preprocessed historical electricity consumption data set , the preprocessing includes recovering lost data, processing outliers, and data standardization; The data set expansion unit is used to expand the preprocessed historical power consumption data set. Expand and get the data set ; The data set expansion unit is specifically used to perform the following steps: Step S3.1: Calculate the power consumption data of the electricity-stealing users to be increased: , and Electricity consumption data of electricity theft users and Splice into a power consumption matrix of electricity stealing users ; Step S3.2: Target , delete unnecessary non-electricity-stealing user electricity consumption data, and form a non-electricity-stealing user electricity consumption matrix ; Step S3.3: and Splice into data set ; Step S3.4: Calculation The degree of characteristic imbalance ratio , It is the ratio of the amount of electricity used by electricity-stealing users to the amount of electricity used by non-electricity-stealing users; Step S3.5: Repeat steps S3.1 to S3.4 until Output The dataset at that time , dataset The elements are used express; The electricity theft discriminator unit is used to construct an electricity theft discriminator and use a data set In Training the electricity theft detector; The classification unit is used to classify the power consumption data of the monitored power users in the distribution network in real time using the trained power theft discriminator, and judge whether the users are non-power theft users or power theft users according to the classification results.

7. A power user power consumption abnormal data cleaning and classification system according to claim 6, characterized in that: The preprocessing unit is specifically used to perform the following steps: Step S2.1: for the historical electricity consumption dataset X, restore missing values ​​based on an interpolation method; Step S2.2: For the historical electricity consumption dataset with restored missing values, use the three sigma rule of thumb to handle outliers; Step S2.3: Standardize the historical electricity consumption dataset after processing outliers, and use the MIN-MAX scaling method to rescale the historical electricity consumption dataset to the range of 0 to 1 to obtain the preprocessed historical electricity consumption dataset. .

8. A power user power consumption abnormal data cleaning and classification system according to claim 7, characterized in that: The step S3.1 includes the following: Step S3.1.1: Calculate the electricity consumption data of the electricity-stealing users to be increased: , including the following: Step S3.1.1.1: Electricity consumption data of electricity theft users And non-electricity-stealing users' electricity consumption data , using the distance formula , find v Individual and The nearest ; in, It refers to the pth , It refers to the zth ; and They are The relationship between the amount of electricity consumed by non-electricity theft users and the amount of electricity consumed by electricity theft users is: and , m is the index of electricity users, n Represents a time index; Step S3.1.1.2: Use the obtained v and To calculate the ratio radius , the specific formula is as follows: ; Step S3.1.1.3: Use the formula , the ratio radius Normalized to get the normalized ratio radius ; Step S3.1.1.4: Use the normalized ratio radius , calculate the power consumption data of the electricity-stealing users that need to be increased as , as follows: ; In the formula, the variable λ represents the random number ; express Difference vector in dimensional space; parameters ,Depend on To obtain, G is the number of electricity consumption data of users who need to synthesize electricity theft, ,in, Indicates the degree of feature imbalance ratio; Electricity usage data for electricity theft users Remove the other data of the i-th data; Step S3.1.2: and Splice into a power consumption matrix of electricity stealing users .

9. A power user power consumption abnormal data cleaning and classification system according to claim 8, characterized in that: The step S3.2 includes the following: Step S3.2.1: From Select ; Step S3.2.2: Delete unnecessary non-electricity-stealing user electricity consumption data, including the following: First, in Find the distance The electricity consumption of the three most recent non-electricity-stealing users; secondly, only keep With the smallest distance , delete the other two ; Finally, there will be no deleted Save and splice into the power consumption matrix of non-electricity-stealing users .

10. A power user power consumption abnormal data cleaning and classification system according to claim 9, characterized in that: The electricity theft detector is: ; in, The power consumption data of the monitored power users in the distribution network; is the weight of each neuron; , , Respectively represent the 1st, 2nd, and 3rd neurons in the hidden layer at the input The corresponding output is: For judgment The type value is obtained by weighted summation of three neurons.

Citation Information

Patent Citations

  • Method for calculating limit transmission capacity based on deep learning

    CN112001066A

  • Electricity stealing detection method and system based on ResNet-LSTM

    CN112098714A

  • Electricity stealing sample generation method and device, computer equipment and storage medium

    CN113673564A

  • Power consumer electricity stealing identification method and system based on deep learning

    CN113901977A

  • Residential electricity consumption abnormity discovery method based on big data mining

    CN117974218A