Abnormal power consumption detection method, system, storage medium, and electronic terminal

Through cleaning and feature extraction of power consumption data, combined with multi-feature fusion algorithms, the problem of low efficiency of abnormal power consumption detection in the existing technology is solved, fast and accurate abnormal power consumption identification is achieved, and the safety of the power grid is ensured.

CN118534189BActive Publication Date: 2024-09-24STATE GRID TIANJIN ELECTRIC POWER COMPANY +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410985618.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-09-24
Estimated Expiration
2044-07-23

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively detect and identify abnormal power usage behaviors, resulting in loss of revenue for power supply companies, damage to power facilities, and threats to grid security. Moreover, detection efficiency is low when there are few abnormal power usage samples.

Method used

By obtaining the user's electricity consumption data, perform data cleaning and feature extraction, combine Manhattan distance, Euclidean distance and distance weighted formula to calculate the normal, suspect and abnormal probabilities of electricity consumption characteristics, and build a multi-feature fusion algorithm to determine abnormal electricity consumption users. Improve detection accuracy.

Benefits of technology

It achieves rapid identification and repair with a small number of abnormal power consumption samples, improves the accuracy and efficiency of detection, can effectively identify abnormal power users, and ensures the safety and stability of the power grid.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118534189B
    Figure CN118534189B
Patent Text Reader

Abstract

The present invention discloses an abnormal power consumption detection method, system, storage medium and electronic terminal. The method includes the following: obtaining the power consumption data to be tested of the user; performing data cleaning on the obtained power consumption data; performing feature extraction on the cleaned power consumption data; combining the power consumption characteristics of the power consumption data to be tested with the power consumption characteristics extracted from the historical power consumption data, obtaining the normal, suspected and abnormal probabilities corresponding to the power consumption characteristics of the power consumption data to be tested, and determining the first abnormal power consumption suspected user; constructing a multi-feature fusion algorithm based on the normal, suspected and abnormal probabilities corresponding to the power consumption characteristics of the obtained power consumption data to be tested, and determining the second abnormal power consumption suspected user according to the multi-feature fusion algorithm; taking the intersection of the first abnormal power consumption suspected user determined in step S4 and the second abnormal power consumption suspected user determined in step S5 as the abnormal power consumption user. The adoption of this scheme greatly improves the accuracy rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of abnormal electricity usage behavior detection, and in particular to an abnormal electricity usage detection method, system, storage medium, and electronic terminal. Background Art

[0002] With the rapid development of the economy, electricity consumption has also shown explosive growth, and higher requirements have been put forward for abnormal electricity consumption detection. Abnormal electricity consumption behavior directly affects the income of power supply companies and hinders the development of smart grids. Some abnormal electricity consumption behaviors may even damage power facilities, which may easily cause fires and threaten the safe and stable operation of the power grid. In view of this, it is necessary to develop abnormal electricity consumption detection technology for users to meet their needs. Summary of the invention

[0003] In order to meet the needs of users, the purpose of the present invention is to provide an abnormal power consumption detection method, system, storage medium, and electronic terminal.

[0004] To achieve the purpose of the present invention, the technical solution provided by the present invention is as follows:

[0005] First aspect

[0006] The present invention provides a method for detecting abnormal power consumption, comprising the following steps:

[0007] Step S1: Acquire the user's power consumption data to be tested, including voltage and current data and the corresponding user ID;

[0008] Step S2: performing data cleaning on the acquired voltage and current data to obtain cleaned voltage and current data;

[0009] Step S3: extracting features from the cleaned voltage and current data to obtain power consumption features of the power consumption data to be tested;

[0010] Step S4: combining the power consumption characteristics of the power consumption data to be tested with the power consumption characteristics extracted from the historical power consumption data, calculating based on the Manhattan distance, the Euclidean distance and the distance weighted formula, obtaining the normal, suspicious and abnormal probabilities corresponding to the power consumption characteristics of the power consumption data to be tested, and determining the first abnormal power consumption suspected user;

[0011] Step S5: constructing a multi-feature fusion algorithm based on the normal, suspicious, and abnormal probabilities corresponding to the power consumption features of the acquired power consumption data to be tested, and determining the second abnormal power consumption suspect user according to the multi-feature fusion algorithm;

[0012] Step S6: The intersection of the first suspected abnormal electricity user determined in step S4 and the second suspected abnormal electricity user determined in step S5 is taken as the abnormal electricity user.

[0013] Second aspect

[0014] Corresponding to the above method, the present invention provides an abnormal power consumption detection system, comprising the following units: a power consumption data acquisition unit, a data cleaning unit, a power consumption feature extraction unit, a first abnormal power consumption suspected user determination unit, a second abnormal power consumption suspected user determination unit, and an abnormal power consumption user determination unit;

[0015] The power consumption data acquisition unit is used to acquire the user's power consumption data to be tested, including voltage and current data and the corresponding user ID;

[0016] The data cleaning unit is used to clean the acquired voltage and current data to obtain cleaned voltage and current data;

[0017] The power consumption feature extraction unit extracts features from the cleaned voltage and current data to obtain power consumption features of the power consumption data to be tested;

[0018] The first abnormal electricity user suspected determination unit is used to combine the electricity usage characteristics of the electricity usage data to be tested with the electricity usage characteristics extracted from the historical electricity usage data, calculate based on the Manhattan distance, the Euclidean distance and the distance weighted formula, obtain the normal, suspected and abnormal probabilities corresponding to the electricity usage characteristics of the electricity usage data to be tested, and determine the first abnormal electricity user suspected;

[0019] The second abnormal electricity user suspected determination unit is used to construct a multi-feature fusion algorithm based on the normal, suspected, and abnormal probabilities corresponding to the electricity usage features of the acquired electricity usage data to be tested, and determine the second abnormal electricity user suspected according to the multi-feature fusion algorithm;

[0020] The abnormal power user determination unit is configured to take an intersection of a first abnormal power user determined by the first suspected abnormal power user determination unit and a second suspected abnormal power user determined by the second suspected abnormal power user determination unit as the abnormal power user.

[0021] The third aspect

[0022] The present invention provides a storage medium, in which at least one instruction, at least one program, a code set or an instruction set is stored. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the above-mentioned abnormal power consumption detection method.

[0023] The fourth aspect

[0024] The present invention provides an electronic terminal, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the above-mentioned abnormal power consumption detection method.

[0025] Compared with the prior art, the abnormal electricity consumption detection method provided by the present invention can be better applied to the current situation where there are few abnormal electricity consumption samples, and by analyzing and detecting samples constructed from single-day data, it can quickly respond to abnormalities, control and repair the scene. In addition, the method determines abnormal electricity users from two dimensions by determining the probability of normal, suspicious, and abnormal corresponding to each electricity consumption feature and determining the probability of normal, suspicious, and abnormal corresponding to all electricity consumption features according to the constructed multi-feature fusion algorithm, which greatly improves the accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A schematic diagram of a method flow chart provided by an embodiment of the present invention;

[0027] Figure 2 A distribution diagram of probability versus eigenvalue provided by an embodiment of the present invention. DETAILED DESCRIPTION

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

[0029] Example 1

[0030] like Figure 1 As shown, this embodiment provides a method for detecting abnormal power consumption, comprising the following steps:

[0031] Step S1: Acquire the user's power consumption data to be tested, including voltage and current data and the corresponding user ID;

[0032] It should be noted that the electricity consumption data to be tested and collected is data for a single day and 24 moments.

[0033] It should be noted that the present application utilizes unattended technology to use smart meters to obtain the user's electricity usage data, including: user ID, user voltage, user current and other required electricity usage parameters, to form a data set W.

[0034]

[0035] Where s is the user ID; t is the timestamp and t=[1,24]; w st =[I A ,I B ,I C ,V A ,V B ,V C ]; w st represents the voltage and current data of the user with user ID s at time t; I A ,I B ,I C The currents of the three phases A, B, and C are respectively, V A ,V B ,V C They are the voltages of the three phases A, B, and C respectively.

[0036] The acquired electricity consumption data is uploaded to the electricity consumption inspection center for processing in the following steps.

[0037] Step S2: Cleaning the acquired voltage and current data to obtain cleaned voltage and current data; specifically including the following:

[0038] Step S2.1: extract all voltage and current data according to categories to form single-phase current matrices and single-phase voltage matrices at different times;

[0039] For the user whose user ID is 1, a single-phase current matrix I1 is generated = [I A,1 ,I A,2 ,...,I A,t ]、I2=[I B,1 ,I B,2 ,...,I B,t ]、I3=[I C,1 ,I C,2 ,...,I C,t ], single-phase voltage matrix V1 = [V A,1 ,V A,2 ,...,V A,t ]、V2=[V B,1 ,V B,2 ,...,V B,t ]、V3=[V C,1 ,V C,2 ,...,V C,t ]. The same applies to other users.

[0040] Step S2.2: sorting the data in the single-phase current matrix and the single-phase voltage matrix in ascending order respectively to obtain ascending sorted matrices;

[0041] Sort the data in the matrices I1, I2, I3, V1, V2, and V3 in ascending order respectively to obtain the ascending sorted matrices I1`, I2`, I3`, V1`, V2`, and V3`.

[0042] Step S3.3: Clean the data in the ascending sorted matrix one by one.

[0043] Specifically, the median cleaning method is used to clean the data in the matrix in turn, as follows:

[0044] (1) Set a data access frame that can accommodate l data. Take the first data in the above matrix as the starting point of the data access frame (for example, when processing the data matrix I1', take the first data in I1' as the starting point of the data access frame). The data access frame frames l data in the matrix at one time, and the data access frame slides from left to right on the matrix. The data in the i-th data access frame is recorded as v = {v i,1 ,v i,2 ,...,v i,l};

[0045] (2) Calculate the median Q1 of the data in the i-th data frame;

[0046]

[0047] When l is an even number, v is divided into two parts from Q1, Q1 is not included in the two parts of data, and the medians Q1' and Q1" of the two parts are calculated respectively;

[0048] When l = 4k + 3, k is a natural number. Natural numbers usually refer to a set of positive integers starting from 1, such as 1, 2, 3, 4, etc. The specific value of k is determined by the formula l = 4k + 3, and the value of k is linearly related to l, as follows:

[0049]

[0050] When l = 4k + 1, we have the following:

[0051]

[0052] The reason for choosing l=4k+3 and l=4k+1 is to ensure that the number of data in each sliding window is an odd number, thereby simplifying the calculation process of the median. Through this specific segmentation form, the median of the data can be effectively processed and calculated, while facilitating the identification and processing of outliers in the data. This method plays an important role in data smoothing and improving data quality. 3 / 4 and 1 / 4 are selected as weight coefficients in order to achieve smoothing, reduce noise and simplify calculations in data processing.

[0053] (3) Calculate the distance I between Q1' and Q1".QR :

[0054] I QR =Q”-Q’.

[0055] The normal value range of the data in the matrices I1`, I2`, I3`, V1`, V2`, and V3` is [Q1'-1.5I QR ,Q1”+1.5I QR ], and the data outside this range are called outliers. The outliers are replaced with the average of two adjacent values, and the cleaned voltage and current data I1``, I2``, I3``, V1``, V2``, and V3`` are obtained through this improved median cleaning method.

[0056] Step S3: Extract the characteristics of the cleaned voltage and current data to obtain the power characteristics of the power data to be tested; the power characteristics include: current three-phase imbalance, current correlation coefficient, voltage three-phase imbalance, voltage offset, and power factor. The specific calculation is as follows:

[0057] (1) The three-phase current imbalance degree ib is calculated as follows:

[0058]

[0059] Among them, Mean(I A ,I B ,I C ) is the average value of the user's three-phase current, abs(I h -Mean(I A ,I B ,I C )) is the absolute value of the deviation between the user's h-phase current and the average value of the user's three-phase current; when the ABC three-phase current is valid, h is A, B, and C in sequence; when the AC two-phase current is valid, h is A and C in sequence; for example:

[0060]

[0061] The smaller the three-phase current imbalance, the lower the probability of current abnormality, and vice versa.

[0062] (2) Current correlation coefficient IR is calculated as follows:

[0063] The current correlation coefficient adopts the minimum value of the Pearson correlation coefficient between the two phases. The Pearson correlation coefficient between the currents of two different phases is:

[0064]

[0065] Where m and n belong to any two different phases among the three phases A, B, and C; I msis the current value of the user with user ID s in phase m, I ns is the current value of the user with user ID s in phase n, is the average value of the m-phase current, is the average value of the n-phase current, is the standard deviation of the m-phase current, is the standard deviation of the n-phase current, IR mn is the Pearson correlation coefficient between the m and n phases.

[0066] Refer to the above formula to calculate the three current correlation coefficients IR of the three phases AC, BC, and AB respectively AC IR BC IR AB ;

[0067] Then the current correlation coefficient IR is:

[0068]

[0069] (3) Voltage deviation vd, calculated as follows:

[0070]

[0071] Among them, V u is the user voltage value, V r is the rated voltage value.

[0072] For three-phase electricity users, the voltage deviation is the value with the largest deviation among the three phases, as shown below:

[0073]

[0074] Among them, the smaller the rated voltage deviation is, the lower the probability of voltage abnormality is, and vice versa, the higher the probability of voltage abnormality is.

[0075] (4) The calculation of voltage three-phase unbalance vb is similar to that of current three-phase unbalance, as shown below:

[0076]

[0077] Among them, Mean(V A ,V B ,V C ) is the average voltage of the user, abs(V h -Mean(V A ,V B ,V C )) is the absolute value of the deviation between the user's h-phase voltage and the three-phase average value.

[0078] The smaller the three-phase voltage imbalance, the lower the probability of voltage abnormality, and vice versa.

[0079] (5) Power factor λ, calculated as follows:

[0080]

[0081] Among them, P represents active power, Q represents reactive power, and the larger the λ is, the greater the proportion of active power in the total power is.

[0082] Step S4: combining the power consumption characteristics of the power consumption data to be tested with the power consumption characteristics extracted from the historical power consumption data, calculating based on the Manhattan distance, the Euclidean distance and the distance weighted formula, obtaining the normal, suspicious and abnormal probabilities corresponding to the power consumption characteristics of the power consumption data to be tested, and determining the first abnormal power consumption suspected user;

[0083] First, after the historical data (the previous electricity consumption data of the user stored in the database) is processed in steps S2 and S3, the electricity consumption characteristics of the historical data are obtained. The electricity consumption characteristics of the historical data are expressed by Y, and its internal elements are y r The electricity consumption feature extracted in step S3 is expressed as X, and its internal element is x r , r is the index of the internal element of Y and X, such as y r is the rth element in Y, and the upper limit of r is the number of users H multiplied by 5.

[0084] Secondly, use the Manhattan distance formula to find the Manhattan distance between Y and X:

[0085]

[0086] Use the Euclidean distance definition to find the Euclidean distance between Y and X:

[0087]

[0088] Use the distance weighted formula to calculate the weighted distance: d = w1*od+w2*td

[0089] in, Use K-means clustering to get the center point of Y and the center point of X d1 is x r and r The sum of the average Euclidean distances to the respective cluster centers, d2 is x r and r The sum of the Manhattan distances to the respective cluster centers.

[0090] Again, with td, od, d as the radius, Draw concentric circles with the center as the center. These circles represent normal, suspicious, and abnormal from the inside to the outside.

[0091] Finally, using x r The number of samples falling into the above circles is used to calculate the probability that X is normal, suspicious, or abnormal. The details are as follows:

[0092]

[0093] Among them, N(normal), N(suspect), and N(abnormal) correspond to the number of current three-phase unbalance, voltage three-phase unbalance, and power factor characteristics falling in the normal, suspect, and abnormal circles within 1 day, respectively.

[0094] m(normal), m(suspicious), and m(abnormal) are the probabilities corresponding to the power usage characteristics.

[0095] For thermal characteristics such as current correlation characteristics and voltage offset:

[0096]

[0097] Among them, d(normal), d(suspicious), and d(abnormal) are the distances from the corresponding feature values ​​to the center points of normal, suspicious, and abnormal, respectively. m(normal), m(suspicious), and m(abnormal) are the probabilities corresponding to the features.

[0098] like Figure 2 As shown, the center points of normal, suspected, and abnormal are 0.5, 2, and 5 respectively. The closer the characteristic value is to the normal center point, the greater the probability of normal, and the smaller the probability of suspected and abnormal. If for a user whose meter ID is s, the probability of suspected in the normal, suspected, and abnormal probabilities obtained from the collected data to be tested is higher than 0.5, or the difference between the probabilities of normal, suspected, and abnormal and the probabilities of normal, suspected, and abnormal obtained from historical data is greater than 0.2, then this user is determined to be the first abnormal electricity user suspect, and the user ID of the first abnormal electricity user suspect is read according to the position of the data in the data set W.

[0099] Step S5: Based on the normal, suspicious, and abnormal probabilities corresponding to the power consumption features of the acquired power consumption data to be tested, a multi-feature fusion algorithm is constructed, and the second abnormal power consumption suspect user is determined according to the multi-feature fusion algorithm; the details are as follows:

[0100] (1) m1, m2, m3, m4, and m5 correspond to five power consumption characteristics (m1-m5 correspond to current three-phase imbalance, current correlation coefficient, voltage three-phase imbalance, voltage offset, and power factor, respectively). The probability distribution of normal, suspicious, and abnormal corresponding to each power consumption characteristic is m z (A1),m z (A2),m z (A3), let F zj Denotes the conflict size z between features z and j, j∈[1,5], then:

[0101]

[0102] Among them, p and q are any two unequal numbers among 1, 2, and 3, which respectively represent two states of normal, suspicious, and abnormal.

[0103] (2) Define B to represent the degree of conflict between the five power consumption characteristics, as follows:

[0104]

[0105] (3) ε is defined as the credibility of the electricity consumption characteristics, and its calculation formula is:

[0106] ε=e -k

[0107] (4) Define p(A) and q(A) as the product and average of the five power consumption features. The power consumption anomaly credibility distribution of p(A) is p(A1), p(A2), and p(A3), which represent the credibility distribution of normal, suspicious, and abnormal, respectively. The power consumption anomaly credibility distribution of q(A) is q(A1), q(A2), and q(A3), which represent the credibility distribution of normal, suspicious, and abnormal, respectively.

[0108] So:

[0109]

[0110] Among them, s=1, 2, 3 represent the calculation of the product and average of normal, suspicious, and abnormal values ​​respectively.

[0111] (5) Let the normalization constant

[0112] The new synthesis formula is defined as follows:

[0113]

[0114] According to the above formula, the probabilities of normal, suspicious, and abnormal corresponding to the power consumption characteristics are calculated;

[0115] When the evidence conflict is small, the synthesis result is similar to the DS evidence theory; when there is no conflict, that is, O=0, the new synthesis formula is equivalent to the DS synthesis formula; when O→1, that is, the evidence is highly conflicting, the synthesis result will be mainly determined by ε*q(A) in the formula.

[0116] (6) In order to obtain a unified parameter that can characterize the degree of abnormality, the power consumption behavior abnormality index algorithm formula is adopted, and the formula is as follows:

[0117] score={m(abnormal)+(m(suspicious)+m(X))*[1-m(normal)]}×100%

[0118] Among them, score represents the final abnormal power consumption index, X represents the uncertain part of the multi-feature fusion result, and the higher the score value, the more abnormal the user's power consumption behavior is; otherwise, the lower the score value.

[0119] If the score value is higher than 0.4, the second abnormal electricity usage suspect user is determined, and then the user ID is read according to the position of the data in the data set W.

[0120] It should be noted that the multi-feature fusion algorithm analyzes electrical parameter data, extracts power consumption features that can characterize abnormal power consumption, performs multi-feature fusion, and finally uses the abnormal index algorithm to make a unified judgment on the power consumption data to detect whether there is abnormal power consumption. Compared with a single, targeted anti-abnormal power consumption method, the multi-feature fusion algorithm is more universal, portable, and efficient.

[0121] Step S6: The intersection of the first suspected abnormal electricity user determined in step S4 and the second suspected abnormal electricity user determined in step S5 is taken as the abnormal electricity user.

[0122] For example, in step S4, the user IDs suspected of abnormal electricity usage are 1, 6, 10, and 56. In step S5, the user IDs suspected of abnormal electricity usage are 10, 16, 56, and 60. Then, taking the intersection means taking the same part, that is, the users with IDs 10 and 56 are directly determined as abnormal electricity users.

[0123] Example 2

[0124] This embodiment provides an abnormal power usage detection system, comprising the following units: a power usage data acquisition unit, a data cleaning unit, a power usage feature extraction unit, a first abnormal power usage suspected user determination unit, a second abnormal power usage suspected user determination unit, and an abnormal power usage user determination unit;

[0125] The power consumption data acquisition unit is used to acquire the user's power consumption data to be tested, including voltage and current data and the corresponding user ID;

[0126] The data cleaning unit is used to clean the acquired voltage and current data to obtain cleaned voltage and current data;

[0127] The power consumption feature extraction unit is used to extract features from the cleaned voltage and current data to obtain power consumption features of the power consumption data to be tested;

[0128] The first abnormal electricity user suspected determination unit is used to combine the electricity usage characteristics of the electricity usage data to be tested with the electricity usage characteristics extracted from the historical electricity usage data, calculate based on the Manhattan distance, the Euclidean distance and the distance weighted formula, obtain the normal, suspected and abnormal probabilities corresponding to the electricity usage characteristics of the electricity usage data to be tested, and determine the first abnormal electricity user suspected;

[0129] The second abnormal electricity user suspected determination unit is used to construct a multi-feature fusion algorithm based on the normal, suspected, and abnormal probabilities corresponding to the electricity usage features of the acquired electricity usage data to be tested, and determine the second abnormal electricity user suspected according to the multi-feature fusion algorithm;

[0130] The abnormal power user determination unit is configured to take an intersection of a first abnormal power user determined by the first suspected abnormal power user determination unit and a second suspected abnormal power user determined by the second suspected abnormal power user determination unit as the abnormal power user.

[0131] The data cleaning unit is specifically used to perform the following steps:

[0132] Step S2.1: extract all voltage and current data according to categories to form single-phase current matrices and single-phase voltage matrices at different times;

[0133] Step S2.2: sorting the data in the single-phase current matrix and the single-phase voltage matrix in ascending order respectively to obtain ascending sorted matrices;

[0134] Step S3.3: Clean the data in the ascending sorted matrix one by one.

[0135] Among them, in step S3.3, the data in the matrix are cleaned using the median cleaning method in turn.

[0136] The power consumption characteristics include: three-phase current unbalance, current correlation coefficient, three-phase voltage unbalance, voltage offset, and power factor.

[0137] Example 3

[0138] This embodiment provides a storage medium, in which at least one instruction, at least one program, a code set or an instruction set is stored. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the above-mentioned abnormal power consumption detection method.

[0139] Example 4

[0140] This embodiment provides an electronic terminal, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the above-mentioned abnormal power consumption detection method.

[0141] 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 detecting abnormal power consumption, characterized in that: The steps include: Step S1: Acquire the user's power consumption data to be tested, including voltage and current data and the corresponding user ID; Step S2: performing data cleaning on the acquired voltage and current data to obtain cleaned voltage and current data; Step S3: extracting features from the cleaned voltage and current data to obtain power consumption features of the power consumption data to be tested; The power consumption characteristics include: current three-phase imbalance, current correlation coefficient, voltage three-phase imbalance, voltage offset, and power factor, which are specifically calculated as follows: (1) The three-phase current imbalance degree ib is calculated as follows: Among them, Mean(I A ,I B ,I C ) is the average value of the user's three-phase current, abs(I h -Mean(I A ,I B ,I C )) is the absolute value of the deviation between the user's h-phase current and the average value of the user's three-phase current; when the ABC three-phase current is valid, h is A, B, and C in sequence; when the AC two-phase current is valid, h is A and C in sequence; (2) Current correlation coefficient IR is calculated as follows: The current correlation coefficient adopts the minimum value of the Pearson correlation coefficient between the two phases. The Pearson correlation coefficient between the currents of two different phases is: Where m and n belong to any two different phases among the three phases A, B, and C; I ms is the current value of the user with user ID s in phase m, I ns is the current value of the user with user ID s in phase n, is the average value of the m-phase current, is the average value of the n-phase current, is the standard deviation of the m-phase current, is the standard deviation of the n-phase current, IR mn is the current correlation coefficient between phases m and n; Refer to the above formula to calculate the three current correlation coefficients IR of the three phases AC, BC, and AB respectively AC IR BC IR AB ; Then the current correlation coefficient IR is: (3) Voltage deviation vd, calculated as follows: Among them, V u is the user voltage value, V r is the rated voltage value; For three-phase electricity users, the voltage deviation is the value with the largest deviation among the three phases, as shown below: (4) The calculation of the three-phase voltage unbalance vb is as follows: Among them, Mean(V A ,V B ,V C ) is the average voltage of the user, abs(V h -Mean(V A ,V B ,V C )) is the absolute value of the deviation between the user's h-phase voltage and the three-phase average value; (5) Power factor λ, calculated as follows: Among them, P represents active power and Q represents reactive power; Step S4: combining the power consumption characteristics of the power consumption data to be tested with the power consumption characteristics extracted from the historical power consumption data, calculating based on the Manhattan distance, the Euclidean distance and the distance weighted formula, obtaining the normal, suspicious and abnormal probabilities corresponding to the power consumption characteristics of the power consumption data to be tested, and determining the first abnormal power consumption suspected user; The details include: First, after the historical data is processed in steps S2 and S3, the power consumption characteristics of the historical data are obtained; the power consumption characteristics of the historical data are expressed by Y, and its internal elements are y r The electricity consumption feature extracted in step S3 is expressed as X, and its internal element is x r , r is the index of the internal element of Y and X, y r is the rth element in Y, and the upper limit of r is the number of users H times 5; Secondly, use the Manhattan distance formula to find the Manhattan distance between Y and X: Use the Euclidean distance definition to find the Euclidean distance between Y and X: Use the distance weighted formula to calculate the weighted distance: d = w1*od+w2*td in, Use K-means clustering to get the center point of Y and the center point of X d1 is x r and r The sum of the average Euclidean distances to the respective cluster centers, d2 is x r and r The sum of the Manhattan distances to the respective cluster centers; Again, with td, od, d as the radius, Draw concentric circles for the center of the circle. These circles represent normal, suspicious, and abnormal from the inside to the outside. Finally, using x r The number of cases falling into the above circles is used to calculate the probability that X is normal, suspicious, or abnormal, as follows: Among them, N(normal), N(suspected), and N(abnormal) correspond to the number of current three-phase unbalance, voltage three-phase unbalance, and power factor characteristics falling in the normal, suspect, and abnormal circles within one day, respectively. m(normal), m(suspect), and m(abnormal) are the probabilities corresponding to the electricity usage characteristics; For current correlation characteristics and voltage offset: Among them, d(normal), d(suspicious), and d(abnormal) are the distances from the corresponding feature values ​​to the center points of normal, suspicious, and abnormal, respectively, and m(normal), m(suspicious), and m(abnormal) are the probabilities corresponding to the features; The center points of normal, suspected, and abnormal are 0.5, 2, and 5 respectively. For a user whose meter ID is s, if the probability of suspected among the normal, suspected, and abnormal probabilities obtained from the collected data to be tested is higher than 0.5 or the difference between the probabilities of normal, suspected, and abnormal and the probabilities of normal, suspected, and abnormal obtained from the historical data is greater than 0.2, then this user is determined to be the first abnormal electricity user suspect, and the user ID of the first abnormal electricity user suspect is read according to the position of the data in the data set W; Step S5: constructing a multi-feature fusion algorithm based on the normal, suspicious, and abnormal probabilities corresponding to the power consumption features of the acquired power consumption data to be tested, and determining the second abnormal power consumption suspect user according to the multi-feature fusion algorithm; Step S6: The intersection of the first suspected abnormal electricity user determined in step S4 and the second suspected abnormal electricity user determined in step S5 is taken as the abnormal electricity user.

2. The abnormal power consumption detection method according to claim 1, characterized in that: Step S2 specifically includes the following: Step S2.1: extract all voltage and current data according to categories to form single-phase current matrices and single-phase voltage matrices at different times; Step S2.2: sorting the data in the single-phase current matrix and the single-phase voltage matrix in ascending order respectively to obtain ascending sorted matrices; Step S3.3: Clean the data in the ascending sorted matrix one by one.

3. The abnormal power consumption detection method according to claim 2, characterized in that: In step S3.3, the data in the matrix are cleaned using the median cleaning method.

4. The abnormal power consumption detection method according to claim 1, characterized in that: In step S3, the power usage characteristics include: three-phase current unbalance, current correlation coefficient, three-phase voltage unbalance, voltage offset, and power factor.

5. An abnormal power consumption detection system, characterized in that: The system comprises the following units: a power consumption data acquisition unit, a data cleaning unit, a power consumption feature extraction unit, a first abnormal power consumption suspected user determination unit, a second abnormal power consumption suspected user determination unit, and an abnormal power consumption user determination unit; The power consumption data acquisition unit is used to acquire the user's power consumption data to be tested, including voltage and current data and the corresponding user ID; The data cleaning unit is used to clean the acquired voltage and current data to obtain cleaned voltage and current data; The power consumption feature extraction unit is used to extract features from the cleaned voltage and current data to obtain power consumption features of the power consumption data to be tested; The power consumption characteristics include: current three-phase imbalance, current correlation coefficient, voltage three-phase imbalance, voltage offset, and power factor, which are specifically calculated as follows: (1) The three-phase current imbalance degree ib is calculated as follows: Among them, Mean(I A ,I B ,I C ) is the average value of the user's three-phase current, abs(I h -Mean(I A ,I B ,I C )) is the absolute value of the deviation between the user's h-phase current and the average value of the user's three-phase current; when the ABC three-phase current is valid, h is A, B, and C in sequence; when the AC two-phase current is valid, h is A and C in sequence; (2) Current correlation coefficient IR is calculated as follows: The current correlation coefficient adopts the minimum value of the Pearson correlation coefficient between the two phases. The Pearson correlation coefficient between the currents of two different phases is: Where m and n belong to any two different phases among the three phases A, B, and C; I ms is the current value of the user with user ID s in phase m, I ns is the current value of the user with user ID s in phase n, is the average value of the m-phase current, is the average value of the n-phase current, is the standard deviation of the m-phase current, is the standard deviation of the n-phase current, IR mn is the current correlation coefficient between phases m and n; Refer to the above formula to calculate the three current correlation coefficients IR of the three phases AC, BC, and AB respectively AC IR BC IR AB ; Then the current correlation coefficient IR is: (3) Voltage deviation vd, calculated as follows: Among them, V u is the user voltage value, V r is the rated voltage value; For three-phase electricity users, the voltage deviation is the value with the largest deviation among the three phases, as shown below: (4) The calculation of the three-phase voltage unbalance vb is as follows: Among them, Mean(V A ,V B ,V C ) is the average voltage of the user, abs(V h -Mean(V A ,V B ,V C )) is the absolute value of the deviation between the user's h-phase voltage and the three-phase average value; (5) Power factor λ, calculated as follows: Among them, P represents active power and Q represents reactive power; The first abnormal electricity user suspected determination unit is used to combine the electricity usage characteristics of the electricity usage data to be tested with the electricity usage characteristics extracted from the historical electricity usage data, calculate based on the Manhattan distance, the Euclidean distance and the distance weighted formula, obtain the normal, suspected and abnormal probabilities corresponding to the electricity usage characteristics of the electricity usage data to be tested, and determine the first abnormal electricity user suspected; The details include: First, after the historical data is processed in steps S2 and S3, the power consumption characteristics of the historical data are obtained; the power consumption characteristics of the historical data are expressed by Y, and its internal elements are y r The electricity consumption feature extracted in step S3 is expressed as X, and its internal element is x r , r is the index of the internal element of Y and X, y r is the rth element in Y, and the upper limit of r is the number of users H times 5; Secondly, use the Manhattan distance formula to find the Manhattan distance between Y and X: Use the Euclidean distance definition to find the Euclidean distance between Y and X: Use the distance weighted formula to calculate the weighted distance: d = w1*od+w2*td in, Use K-means clustering to get the center point of Y and the center point of X d1 is x r and r The sum of the average Euclidean distances to the respective cluster centers, d2 is x r and r The sum of the Manhattan distances to the respective cluster centers; Again, with td, od, d as the radius, Draw concentric circles for the center of the circle. These circles represent normal, suspicious, and abnormal from the inside to the outside. Finally, using x r The number of cases falling into the above circles is used to calculate the probability that X is normal, suspicious, or abnormal, as follows: Among them, N(normal), N(suspected), and N(abnormal) correspond to the number of current three-phase unbalance, voltage three-phase unbalance, and power factor characteristics falling in the normal, suspect, and abnormal circles within one day, respectively. m(normal), m(suspect), and m(abnormal) are the probabilities corresponding to the electricity usage characteristics; For current correlation characteristics and voltage offset: Among them, d(normal), d(suspicious), and d(abnormal) are the distances from the corresponding feature values ​​to the center points of normal, suspicious, and abnormal, respectively, and m(normal), m(suspicious), and m(abnormal) are the probabilities corresponding to the features; The center points of normal, suspected, and abnormal are 0.5, 2, and 5 respectively. For a user whose meter ID is s, if the probability of suspected among the normal, suspected, and abnormal probabilities obtained from the collected data to be tested is higher than 0.5 or the difference between the probabilities of normal, suspected, and abnormal and the probabilities of normal, suspected, and abnormal obtained from the historical data is greater than 0.2, then this user is determined to be the first abnormal electricity user suspect, and the user ID of the first abnormal electricity user suspect is read according to the position of the data in the data set W; The second abnormal electricity user suspected determination unit is used to construct a multi-feature fusion algorithm based on the normal, suspected, and abnormal probabilities corresponding to the electricity usage features of the acquired electricity usage data to be tested, and determine the second abnormal electricity user suspected according to the multi-feature fusion algorithm; The abnormal power user determination unit is configured to take an intersection of a first abnormal power user determined by the first suspected abnormal power user determination unit and a second suspected abnormal power user determined by the second suspected abnormal power user determination unit as the abnormal power user.

6. The abnormal power consumption detection system according to claim 5, characterized in that: The data cleaning unit is specifically used to perform the following steps: Step S2.1: extract all voltage and current data according to categories to form single-phase current matrices and single-phase voltage matrices at different times; Step S2.2: sorting the data in the single-phase current matrix and the single-phase voltage matrix in ascending order respectively to obtain ascending sorted matrices; Step S3.3: Clean the data in the ascending sorted matrix one by one.

7. The abnormal power consumption detection system according to claim 6, characterized in that: In step S3.3, the data in the matrix are cleaned using the median cleaning method.

8. The abnormal power consumption detection system according to claim 5, characterized in that: The power consumption characteristics include: three-phase current unbalance, current correlation coefficient, three-phase voltage unbalance, voltage offset, and power factor.

9. A storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the abnormal power consumption detection method as described in any one of claims 1-4.

10. An electronic terminal, characterized in that: The terminal includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the abnormal power consumption detection method as described in any one of claims 1-4.