Monitoring method and system for electricity stealing behavior
Through the combination of dynamic time warping distance and DTW algorithm, combined with dynamic topology map and Mix Hop's GCN model, the problem of low efficiency and accuracy of power theft behavior monitoring and identification is solved, and rapid and high-accuracy monitoring of power theft behavior is achieved. .
Patent Information
- Application Number
- CN202410965896.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-11-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The monitoring and identification of power theft behavior in the prior art is relatively low, and the accuracy needs to be improved.
The heuristic segmentation method based on dynamic time warping distance is used to perform the segmentation of the electricity consumption time series, and the Euro-type distance calculation and optimal warping path selection are performed through the DTW algorithm, combining dynamic topology map generation and Mix Hop's GCN model to extract the depth Time dependence and potential characteristics improve recognition accuracy.
It realizes rapid monitoring and high-accuracy recognition of power theft behavior, reduces the computational complexity and improves the identification efficiency.
Smart Images

Figure CN118885876A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of electricity theft identification and detection, and in particular relates to a monitoring method and system for electricity theft. Background Art
[0002] Electricity theft refers to the illegal acquisition or use of electricity resources from electrical equipment without legal authorization or payment. It usually involves bypassing the electricity supplier's metering equipment, meters or other electricity monitoring mechanisms to obtain electricity in an illegal manner. The power loss rate of distribution lines determines the power company's revenue in large periods of time and is of vital importance to the power company. The existing technology for monitoring and identifying electricity theft is usually data statistics and time series processing methods based on machine learning, but the existing technology has low monitoring and identification efficiency and its accuracy needs to be improved. Summary of the invention
[0003] In view of the problem that the monitoring and identification methods of electricity theft in the prior art are usually data statistics and time series processing methods based on machine learning, but the monitoring and identification efficiency of the prior art is low, the present invention adopts a heuristic segmentation method based on dynamic time warping distance to segment the user's electricity consumption time series, and uses the DTW (dynamic time warping) algorithm to calculate the Euclidean distance and select the optimal warping path for the segmented time series to achieve monitoring of electricity theft. The heuristic segmentation method based on dynamic time warping distance has low computational complexity and can achieve rapid monitoring of electricity theft. In view of the problem that the recognition accuracy of electricity theft in the prior art is low, the present invention adopts a dynamic topology map generation method, which allows the connection between nodes to be updated during training, dynamically and quickly generates an adjacency matrix, and uses the Mix Hop GCN model to extract deep time dependence, periodic patterns and potential features in the user's electricity consumption data, so as to improve the recognition accuracy of electricity theft.
[0004] The technical solution adopted by the present invention is as follows: A monitoring method for electricity theft behavior specifically comprises the following steps:
[0005] Step S1: Data collection, collecting users' annual power consumption sequence Y{Y1, Y2, ..., Ym} and circuit loss power sequence S{S1, S2, ..., Sm}. The set of annual power consumption sequences of all users is defined as K{K1, K2, ..., Ka}, where a represents the number of users;
[0006] Step S2: Data preprocessing, delete the user power consumption series with missing values exceeding 40%, use linear interpolation to fill in the blanks of the user power consumption series data, use the three sigma empirical method to identify and process the abnormal values in the power consumption series, and perform data normalization at the same time to obtain the preprocessed power consumption series X{X1, X2, ..., Xm}. The formula used in the three sigma empirical method is as follows: ;
[0007] In the formula, is the three sigma empirical function, represents a single sample mean, represents the standard deviation of the sample, Represents the user's annual electricity consumption sequence;
[0008] Step S3: Segmentation of electricity consumption sequence and monitoring of electricity theft. Use a heuristic segmentation method based on dynamic time warping distance to segment the electricity consumption sequence X{X1, X2, ..., Xm} and calculate the Euclidean distance. According to the calculation results, the suspected electricity theft is identified.
[0009] Further, step S3 specifically includes the following steps:
[0010] Step S31: For the power consumption time series X{X1, X2, ..., Xm}, calculate the average value of all power consumption time series X as needed. and and standard deviation and , and calculate the combined deviation of point i, the formula used is as follows: s d (i) =[ (N1-1)* s l ( i ) 2 +(N2-1)* s r ( i ) 2 N1+N2-2 ] 1 / 2 *[ 1 N1 + 1 N2 ] ;
[0011] In the formula, is the combined deviation, and Represents the number of points in the electricity consumption time series X at point i;
[0012] Step S32: Use T test to measure the mean difference of the power consumption time series X. The formula used is as follows: ;
[0013] In the formula, The sequence is the statistical value obtained by T test;
[0014] Step S33: Approximate calculation The statistical significance of the maximum value in the series is given by the following formula: ;
[0015] In the formula, for The maximum value of the sequence, =4.19lnm-11.54, m represents the length of the electricity consumption time series X, =m-2, =0.4, represents an incomplete Beta function;
[0016] Step S34: Initialize parameter α, if <α, then point i is defined as the change point, and i is used as the boundary to convert the power consumption time series X{X1, X2, ..., Xm}, retaining the power consumption sequence before point i, to obtain a new power consumption time series Z{Z1, Z2, ..., Zn}, n≤m;
[0017] Step S35: using the DTW algorithm, recursively calculating the Euclidean distance between the new power consumption time series Z and the circuit loss power series S and selecting the optimal warping path;
[0018] Step S36: setting a threshold of the Euclidean distance of the optimal warping path, and setting users whose distance is below the threshold as suspected electricity theft;
[0019] Step S4: Dynamic topology map generation and graph convolution network processing: Use the annual electricity consumption series of all users to generate a dynamic topology map, use the graph convolution network to predict and classify the dynamic topology map, obtain the prediction and classification results, and optimize the Euclidean distance threshold;
[0020] Further, step S4 specifically includes the following steps:
[0021] Step S41: Divide the power consumption sequence X{X1, X2, ..., Xm} by week, each user has m / 7 nodes, and each node has 7 dimensions;
[0022] Step S42: Use the embedding layer to transform the dimension of each node from 7 to d and generate a node vector, denoted as E (m / 7)×d ;
[0023] Step S43: using learnable linear mapping and nonlinear activation to update and enhance the representation of the node vector to obtain a node activation vector;
[0024] Step S44: Calculate the dot product of the activation vectors of all adjacent nodes to obtain similarity, and use the activation function to transfer the similarity to generate the original adjacency matrix;
[0025] Step S45: introducing random noise into the original adjacency matrix, selecting the first k values and the corresponding column index for each row of the original adjacency matrix, setting all elements in the adjacency matrix other than the selected k values to zero, generating an adjacency matrix C, and defining C as a dynamic topology graph;
[0026] Step S46: Use the Mix Hop GCN model to extract features from the dynamic topology map to obtain topological features;
[0027] Step S47: Use the maximum pooling layer to process the topological features, use the fully connected layer to predict and classify the topological features, obtain the prediction score, and generate the prediction classification result according to the prediction score;
[0028] Step S48: Calculate the actual accuracy of the predicted classification result, and use the prediction score with an accuracy above 95% to optimize the Euclidean distance threshold;
[0029] Step S5: Iterate the calculation and repeat steps S3 and S4 to identify the final suspect of electricity theft.
[0030] The present invention provides a monitoring system for electricity theft, comprising a data acquisition module, a data processing module, an electricity theft monitoring module, a graph convolution processing module and a user center module;
[0031] The data collection module collects the user's annual power consumption sequence Y{Y1, Y2, ..., Ym} and circuit loss power sequence S{S1, S2, ..., Sm}, and sends all collected data to the data processing module and the power theft behavior monitoring module;
[0032] The data processing module performs linear interpolation processing, outlier processing and normalization processing on the annual power consumption sequence Y{Y1, Y2, ..., Ym} of all users to obtain the preprocessed power consumption sequence X{X1, X2, ..., Xm}, and sends the preprocessed power consumption sequence X to the power theft behavior monitoring module and the graph convolution processing module;
[0033] The electricity theft behavior monitoring module uses a heuristic segmentation method based on dynamic time warping distance to segment the electricity consumption sequence X{X1, X2, ..., Xm} and calculate the Euclidean distance, and locks the electricity theft suspect according to the calculation results;
[0034] The graph convolution processing module generates a dynamic topology map using the annual electricity consumption sequence of all users, uses a graph convolution network to predict and classify the dynamic topology map, obtains the prediction and classification results, optimizes the Euclidean distance threshold, and sends the optimized Euclidean distance threshold to the electricity theft behavior monitoring module;
[0035] The user center module manages and stores information on the data acquisition module, the data processing module, the electricity theft behavior monitoring module and the graph convolution processing module, so that users can view the results of suspected electricity thefts.
[0036] The beneficial results achieved by the present invention using the above scheme are as follows:
[0037] (1) In view of the problem that the existing monitoring and identification methods for electricity theft are usually data statistics and time series processing methods based on machine learning, but the monitoring and identification efficiency of the existing technologies is low, the present invention adopts a heuristic segmentation method based on dynamic time warping distance to segment the user's electricity consumption time series, and uses the DTW algorithm to calculate the Euclidean distance and select the optimal warping path for the segmented time series to achieve monitoring of electricity theft. The heuristic segmentation method based on dynamic time warping distance has low computational complexity and can achieve rapid monitoring of electricity theft;
[0038] (2) In order to solve the problem of low accuracy in identifying electricity theft in the prior art, the present invention adopts a method for generating a dynamic topology graph, which allows the connection between nodes to be updated during training, dynamically and quickly generates an adjacency matrix, and uses the Mix Hop GCN model to extract deep time dependencies, periodic patterns and potential features in user electricity consumption data, thereby improving the accuracy of identifying electricity theft. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A flow chart of a method for monitoring electricity theft provided by the present invention;
[0040] Figure 2 A schematic diagram of a module of a monitoring system for electricity theft provided by the present invention.
[0041] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION
[0042] The technical solutions in the embodiments of the present invention will be clearly and completely described below 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, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0043] Example 1, see Figure 1 The present invention provides a method for monitoring electricity theft, which specifically includes the following steps:
[0044] Step S1: Data collection, collecting annual power consumption sequences Y{Y1, Y2, ..., Y12} and circuit loss power sequences S{S1, S2, ..., S12} of 20 users, and the set of annual power consumption sequences of all users is defined as K{K1, K2, ..., K20};
[0045] Step S2: Data preprocessing, delete the user power consumption series with missing values exceeding 40%, use linear interpolation to fill in the blanks of the user power consumption series data, use the three sigma empirical method to identify and process the outliers in the power consumption series, and perform data normalization at the same time to obtain the preprocessed power consumption series X{X1, X2, ..., X12}. The formula used in the three sigma empirical method is as follows: ;
[0046] In the formula, is the three sigma empirical function, represents a single sample mean, represents the standard deviation of the sample, Represents the user's annual electricity consumption sequence;
[0047] Step S3: Segmentation of electricity consumption sequence and monitoring of electricity theft. Use a heuristic segmentation method based on dynamic time warping distance to segment the electricity consumption sequence X{X1, X2, ..., X12} and calculate the Euclidean distance. According to the calculation results, the suspected electricity theft suspect is identified.
[0048] Step S4: Dynamic topology map generation and graph convolution network processing: Use the annual electricity consumption series of all users to generate a dynamic topology map, use the graph convolution network to predict and classify the dynamic topology map, obtain the prediction and classification results, and optimize the Euclidean distance threshold;
[0049] Step S5: Iterate the calculation and repeat steps S3 and S4 to identify the final suspect of electricity theft.
[0050] Embodiment 2: This embodiment is based on the above embodiment, and step S3 specifically includes the following steps:
[0051] Step S31: For the power consumption time series X{X1, X2, ..., X12}, calculate the average value of all power consumption time series X as needed. and and standard deviation and , and calculate the combined deviation of point i, the formula used is as follows: s d (i) =[ (N1-1)* s l ( i ) 2 +(N2-1)* s r ( i ) 2 N1+N2-2 ] 1 / 2 *[ 1 N1 + 1 N2 ] ;
[0052] In the formula, is the combined deviation, and Represents the number of points in the electricity consumption time series X at point i;
[0053] Step S32: Use T test to measure the mean difference of the power consumption time series X. The formula used is as follows: ;
[0054] In the formula, The sequence is the statistical value obtained by T test;
[0055] Step S33: Approximate calculation The statistical significance of the maximum value in the series is given by the following formula: ;
[0056] In the formula, for The maximum value of the sequence, =4.19lnm-11.54, m represents the length of the electricity consumption time series X, =m-2, =0.4, represents an incomplete Beta function;
[0057] Step S34: Initialize parameter α, if <α, then point i is defined as the change point, and i is used as the boundary to convert the power consumption time series X{X1, X2, ..., X12}, retaining the power consumption sequence before point i, to obtain a new power consumption time series Z{Z1, Z2, ..., Z10};
[0058] Step S35: using the DTW algorithm, recursively calculating the Euclidean distance between the new power consumption time series Z and the circuit loss power series S and selecting the optimal warping path;
[0059] Step S36: setting a threshold of the Euclidean distance of the optimal warping path, and setting users whose distance is below the threshold as suspected electricity theft users.
[0060] Since the composition of power loss is divided into technical and non-technical components, after investigating the relationship between the electricity meters of 20 households, it was determined that the non-technical power loss is mainly attributed to theft of electricity by users. Therefore, there is a mutual dependence between the power loss of high-loss lines and the power consumption pattern of users susceptible to power theft; that is, the power consumption pattern of users susceptible to power theft is similar to the power consumption pattern; by calculating the Euclidean distance between each user's power consumption and power loss, the users with the closest matching pattern to the power loss are preliminarily identified, and the data are shown in Table 1.
[0061] Table 1 User Euclidean distance table User serial number Euclidean distance User serial number Euclidean distance 1 1.212 11 2.008 2 2.897 12 1.156 3 2.954 13 1.553 4 1.532 14 0.426 5 1.923 15 1.425 6 1.489 16 2.136 7 2.346 17 1.872 8 2.941 18 1.238 9 1.334 19 0.953 10 1.563 20 1.201
[0062] It is obvious from Table 1 that user 14 has the smallest Euclidean distance, which means that the power consumption pattern of user 14 is most similar to the power loss pattern compared with other users, which indicates that the possibility of continuous power theft is higher;
[0063] By performing the above operations, in view of the problem that the monitoring and identification methods of electricity theft in the prior art are usually data statistics and time series processing methods based on machine learning, but the monitoring and identification efficiency of the prior art is low, the present invention adopts a heuristic segmentation method based on dynamic time warping distance to segment the user's electricity consumption time series, and performs Euclidean distance calculation and optimal warping path selection on the segmented time series through the DTW algorithm to realize the monitoring of electricity theft. The heuristic segmentation method based on dynamic time warping distance has low calculation complexity and can realize rapid monitoring of electricity theft.
[0064] Embodiment 3: This embodiment is based on the above embodiment, and step S4 specifically includes the following steps:
[0065] Step S41: Divide the electricity consumption sequence X{X1, X2, ..., X12} of 20 households by week, each user has m / 7 nodes, and each node has 7 dimensions;
[0066] Step S42: Use the embedding layer to transform the dimension of each node from 7 to d and generate a node vector, denoted as E (m / 7)×d ;
[0067] Step S43: using learnable linear mapping and nonlinear activation to update and enhance the representation of the node vector to obtain a node activation vector;
[0068] Step S44: Calculate the dot product of the activation vectors of all adjacent nodes to obtain similarity, and use the activation function to transfer the similarity to generate the original adjacency matrix;
[0069] Step S45: introducing random noise into the original adjacency matrix, selecting the first k values and the corresponding column index for each row of the original adjacency matrix, setting all elements in the adjacency matrix other than the selected k values to zero, generating an adjacency matrix C, and defining C as a dynamic topology graph;
[0070] Step S46: Use the Mix Hop GCN model to extract features from the dynamic topology map to obtain topological features;
[0071] Step S47: Use the maximum pooling layer to process the topological features, use the fully connected layer to predict and classify the topological features, obtain the prediction score, and generate the prediction classification result according to the prediction score;
[0072] Step S48: Calculate the actual accuracy of the predicted classification results, and use the prediction scores with an accuracy above 95% to optimize the Euclidean distance threshold.
[0073] Set different training set ratios; Select SVM, MLP, CNN, WDCNN, GNN-CNN, and Mix Hop as training models;
[0074] Different models are used for training to obtain the average AUC and MAP: Table 2 AUC and MAP of different models
[0075] Experiments were conducted on two different training set ratios to analyze the convergence performance of the model. Table 2 shows the changes in AUC and MAP of Mix Hop with training time under different training ratios. The table also shows the superior performance of Mix Hop. In the initial stage of training, the weight matrix of the model is initialized and not optimal, resulting in a rapid increase in AUC and MAP values. As the training cycle progresses and reaches a certain threshold, the AUC and MAP values grow slowly and fluctuate within a certain range. After more than 30 cycles, the indicators of the model tend to stabilize along an approximate straight line, indicating that the improvement in accuracy has become negligible. This phenomenon means that the model has reached the optimal accuracy level.
[0076] By performing the above operations, in order to solve the problem of low recognition accuracy of electricity theft in the prior art, the present invention adopts a method for generating a dynamic topology graph, allows the connection between nodes to be updated during training, dynamically and quickly generates an adjacency matrix, and uses the Mix Hop GCN model to extract deep time dependencies, periodic patterns and potential features in user electricity consumption data, thereby improving the recognition accuracy of electricity theft.
[0077] Example 4, see Figure 2 , a monitoring system for electricity theft provided by the present invention includes a data acquisition module, a data processing module, an electricity theft monitoring module, a graph convolution processing module and a user center module;
[0078] The data collection module collects the user's annual power consumption sequence Y{Y1, Y2, ..., Y12} and circuit loss power sequence S{S1, S2, ..., S12}, and sends all collected data to the data processing module and the power theft behavior monitoring module;
[0079] The data processing module performs linear interpolation processing, outlier processing and normalization processing on the annual power consumption sequence Y{Y1, Y2, ..., Y12} of all users to obtain the preprocessed power consumption sequence X{X1, X2, ..., X12}, and sends the preprocessed power consumption sequence X to the power theft behavior monitoring module and the graph convolution processing module;
[0080] The electricity theft behavior monitoring module uses a heuristic segmentation method based on dynamic time warping distance to segment the electricity consumption sequence X{X1, X2, ..., X12} and calculate the Euclidean distance, and locks the electricity theft suspect according to the calculation results;
[0081] The graph convolution processing module generates a dynamic topology map using the annual electricity consumption sequence of all users, uses a graph convolution network to predict and classify the dynamic topology map, obtains the prediction and classification results, optimizes the Euclidean distance threshold, and sends the optimized Euclidean distance threshold to the electricity theft behavior monitoring module;
[0082] The user center module manages and stores information on the data acquisition module, the data processing module, the electricity theft behavior monitoring module and the graph convolution processing module, so that users can view the results of suspected electricity thefts.
[0083] Embodiment 5: This embodiment is based on the above embodiment, and the DTW algorithm details are as follows:
[0084] Define distance metric: Define the distance metric between two time series. The distance metric uses Euclidean distance to calculate the distance between each time point in the time series.
[0085] Create a distance matrix: Based on the defined distance metric, create a distance matrix with the size of the two time series. Each element of the distance matrix represents the distance between corresponding time points;
[0086] Initialize the cumulative distance matrix: create a cumulative distance matrix of the same size as the distance matrix, each element of the cumulative distance matrix represents the minimum cumulative distance from the starting point to the current position;
[0087] Calculate the cumulative distance: Starting from the upper left corner of the distance matrix, calculate the value of each position in the cumulative distance matrix according to the rules;
[0088] Backtracking the optimal path: Starting from the lower right corner of the cumulative distance matrix, backtrack the optimal path, i.e. the optimal warping path, according to the calculated cumulative distance matrix;
[0089] Calculate similarity: Based on the optimal path, calculate the similarity score between the two time series.
[0090] Embodiment 6: This embodiment is based on the above embodiment, and the GCN model of Mix Hop is set as follows:
[0091] Input representation: The input feature of each node is represented as a 7-dimensional vector;
[0092] MixHop layer parameters:
[0093] Number of hops: Select 1 hop and 2 hops as neighbor subsets to mix multi-scale information examples;
[0094] Neighbor sampling: For each node, sample neighbor nodes from the graph. For 1-hop neighbors, select the direct neighbors of each node; for 2-hop neighbors, select the neighbors of the neighbors of each node;
[0095] Neighbor subset mixing: Mix 1-hop and 2-hop neighbor subsets;
[0096] MixHop layer output:
[0097] For each node, the feature representation of the 1-hop neighbor is mixed with the feature representation of the 2-hop neighbor.
[0098] Assuming that the feature representation of 1-hop neighbors is 5-dimensional and the feature representation of 2-hop neighbors is 4-dimensional, the mixed feature representation is 9-dimensional.
[0099] Embodiment 7: This embodiment is based on the above embodiment. In step S2, linear difference is used to supplement the blank of the user's power consumption sequence data, which specifically includes the following operations:
[0100] Select interpolation range: select the interpolation range according to the size of the missing fragment of the electricity consumption series data;
[0101] Determine interpolation neighbors: Determine known data points around the missing fragment as interpolation neighbors;
[0102] Calculate interpolation weights: Use the distance between the interpolation neighbors and the missing fragments to calculate the interpolation weights of the missing values;
[0103] Perform linear interpolation: Calculate the missing values using a one-dimensional linear interpolation formula based on the interpolation weights and the values of the known data points;
[0104] Apply interpolation results: fill the positions of missing segments with the calculated interpolation values to complete the blank value filling of the data.
[0105] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0106] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
[0107] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.
Claims
1. A method for monitoring electricity theft, characterized by: The following steps are involved: Step S1: Data collection, collecting users' annual power consumption sequence Y{Y1, Y2, ..., Ym} and circuit loss power sequence S{S1, S2, ..., Sm}. The set of annual power consumption sequences of all users is defined as K{K1, K2, ..., Ka}, where a represents the number of users; Step S2: Data preprocessing, delete the user power consumption series with missing values exceeding 40%, use linear interpolation to fill in the blanks of the user power consumption series data, use the three sigma empirical method to identify and process the abnormal values in the power consumption series, and perform data normalization at the same time to obtain the preprocessed power consumption series X{X1, X2, ..., Xm}. The formula used in the three sigma empirical method is as follows: ; In the formula, is the three sigma empirical function, represents a single sample mean, represents the standard deviation of the sample, Represents the user's annual electricity consumption sequence; Step S3: Segmentation of electricity consumption sequence and monitoring of electricity theft. Use a heuristic segmentation method based on dynamic time warping distance to segment the electricity consumption sequence X{X1, X2, ..., Xm} and calculate the Euclidean distance. According to the calculation results, the suspected electricity theft is identified. Step S4: Dynamic topology map generation and graph convolution network processing: Use the annual electricity consumption series of all users to generate a dynamic topology map, use the graph convolution network to predict and classify the dynamic topology map, obtain the prediction and classification results, and optimize the Euclidean distance threshold; Step S5: Iterate the calculation and repeat steps S3 and S4 to identify the final suspect of electricity theft.
2. A method for monitoring electricity theft according to claim 1, characterized in that: Step S3 specifically includes the following steps: Step S31: For the power consumption time series X{X1, X2, ..., Xm}, calculate the average value of all power consumption time series X as needed. and and standard deviation and , and calculate the combined deviation of point i, the formula used is as follows: ; In the formula, is the combined deviation, and Represents the number of points in the electricity consumption time series X at point i; Step S32: Use T test to measure the mean difference of the power consumption time series X. The formula used is as follows: ; In the formula, The sequence is the statistical value obtained by T test; Step S33: Approximate calculation The statistical significance of the maximum value in the series is given by the following formula: ; In the formula, for The maximum value of the sequence, =4.19lnm-11.54, m represents the length of the electricity consumption time series X, =m-2, =0.4, represents an incomplete Beta function; Step S34: Initialize parameter α, if <α, then point i is defined as the change point, and i is used as the boundary to convert the power consumption time series X{X1, X2, ..., Xm}, retaining the power consumption sequence before point i, to obtain a new power consumption time series Z{Z1, Z2, ..., Zn}, n≤m; Step S35: using the DTW algorithm, recursively calculating the Euclidean distance between the new power consumption time series Z and the circuit loss power series S and selecting the optimal warping path; Step S36: setting a threshold of the Euclidean distance of the optimal warping path, and setting users whose distance is below the threshold as suspected electricity theft users.
3. A method for monitoring electricity theft according to claim 1, characterized in that: Step S4 specifically includes the following steps: Step S41: Divide the power consumption sequence X{X1, X2, ..., Xm} by week, each user has m / 7 nodes, and each node has 7 dimensions; Step S42: Use the embedding layer to transform the dimension of each node from 7 to d and generate a node vector, denoted as E (m / 7)×d ; Step S43: using learnable linear mapping and nonlinear activation to update and enhance the representation of the node vector to obtain a node activation vector; Step S44: Calculate the dot product of the activation vectors of all adjacent nodes to obtain similarity, and use the activation function to transfer the similarity to generate the original adjacency matrix; Step S45: introducing random noise into the original adjacency matrix, selecting the first k values and the corresponding column index for each row of the original adjacency matrix, setting all elements in the adjacency matrix other than the selected k values to zero, generating an adjacency matrix C, and defining C as a dynamic topology graph; Step S46: Use the Mix Hop GCN model to extract features from the dynamic topology map to obtain topological features; Step S47: Use the maximum pooling layer to process the topological features, use the fully connected layer to predict and classify the topological features, obtain the prediction score, and generate the prediction classification result according to the prediction score; Step S48: Calculate the actual accuracy of the predicted classification results, and use the prediction scores with an accuracy above 95% to optimize the Euclidean distance threshold.
4. A monitoring system for electricity theft is used to implement a monitoring method for electricity theft as claimed in any one of claims 1 to 3, characterized in that: It includes data acquisition module, data processing module, electricity theft behavior monitoring module, graph convolution processing module and user center module; The data collection module collects the user's annual power consumption sequence Y{Y1, Y2, ..., Ym} and circuit loss power sequence S{S1, S2, ..., Sm}, and sends all collected data to the data processing module and the power theft behavior monitoring module; The data processing module performs linear interpolation processing, outlier processing and normalization processing on the annual power consumption sequence Y{Y1, Y2, ..., Ym} of all users to obtain the preprocessed power consumption sequence X{X1, X2, ..., Xm}, and sends the preprocessed power consumption sequence X to the power theft behavior monitoring module and the graph convolution processing module; The electricity theft behavior monitoring module uses a heuristic segmentation method based on dynamic time warping distance to segment the electricity consumption sequence X{X1, X2, ..., Xm} and calculate the Euclidean distance, and locks the electricity theft suspect according to the calculation results; The graph convolution processing module generates a dynamic topology map using the annual electricity consumption sequence of all users, uses a graph convolution network to predict and classify the dynamic topology map, obtains the prediction and classification results, optimizes the Euclidean distance threshold, and sends the optimized Euclidean distance threshold to the electricity theft behavior monitoring module; The user center module manages and stores information on the data acquisition module, the data processing module, the electricity theft behavior monitoring module and the graph convolution processing module, so that users can view the results of suspected electricity thefts.
Citation Information
Patent Citations
Electricity stealing monitoring method based on similarity measurement and decision tree support vector machine
CN117725496A
Semi-supervised learning-based abnormal electricity utilization user detection method
WO2019237492A1
