Abnormal power consumption data detection system for low-voltage transformer area
Through the low-voltage station area abnormal power consumption data detection system, the data input, clustering and anomaly detection modules are used to solve the problem of unutilized power big data resources and achieve the rapid positioning of abnormal power consumption data and the stable operation of the power system.
Patent Information
- Application Number
- CN202410585730.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-13
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Power big data resources are not fully utilized in the power system, resulting in the inability to deeply explore the energy needs of end users and the inability to adhere to customer orientation, thus causing peak power loads.
Design an abnormal power consumption data detection system in a low-voltage station area, including a data input module, a data clustering module and an abnormal data detection module. By constructing a power consumption data matrix, filling in missing data, setting a sliding window, and calculating the density mean point and mean value The drift vector divides data into clusters, calculates the correlation between outlier points and cluster center points, and marks points with correlations less than the threshold as abnormal data.
It can quickly locate abnormal power consumption data, help power companies conduct power dispatching, ensure stable operation of the power system, and avoid peak power loads.
Smart Images

Figure CN118536031A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of abnormal power consumption data detection, and in particular to a low-voltage area abnormal power consumption data detection system. Background Art
[0002] With the popularization and application of smart meters, the interaction between power supply companies and users is becoming more and more frequent, and the electricity consumption data on the user side is growing rapidly, which has promoted the development of user-side power big data. Classification and analysis of power users' electricity consumption data can more accurately understand the electricity consumption behavior of different types of power users, detect and eliminate abnormal electricity consumption data, and provide a basic basis for power companies to provide high-quality and precise services.
[0003] However, in the operation of the power system, the information value of power big data has not been fully utilized, resulting in a waste of power big data resources. The promotion and application of big data technology in the power system is insufficient, so it is impossible to deeply explore the energy needs of end users, nor can it adhere to customer orientation and guide users to change their electricity consumption behavior, which in turn causes peak electricity load. Summary of the invention
[0004] The purpose of the present invention is to provide a low voltage area abnormal power consumption data detection system to solve the problems raised in the above background technology.
[0005] To achieve the above-mentioned purpose, the present invention provides the following technical solutions: a low-voltage area abnormal power consumption data detection system, comprising a data input module, a data clustering module and an abnormal data detection module;
[0006] The data input module is used to form a one-dimensional column vector from the user's daily electricity consumption data, form a two-dimensional matrix from the electricity consumption data of all users in the substation area, and fill in the missing data in the matrix to obtain an electricity consumption data matrix;
[0007] The data clustering module is used to set the size of the sliding data window, obtain the local density maximum point by calculating the density mean point and the mean shift vector in the data window, and divide the data into clusters to obtain outliers;
[0008] The abnormal data detection module is used to calculate the correlation between each outlier point and each cluster center point, and mark the outlier point with a correlation less than a set threshold as abnormal data.
[0009] A detection method for a low-voltage area abnormal power consumption data detection system, using the detection system according to claim 1, the detection method comprising the following steps:
[0010] In the first step, the low-voltage area power consumption data is obtained through the data input module to form the power consumption data matrix X∈R m ×n, record the missing data location set Ω, forming the location operator P Ω , and fill in the missing data in the electricity consumption data matrix X;
[0011] The second step is to set the sliding window size h of the data clustering module and calculate the data density mean point and mean drift vector M in each window. h ;
[0012] The third step is to update the candidate point of the window center point to the mean value of all electricity data points within the search radius, find the dense area in the electricity data matrix X, locate the center points of different clusters, complete the data clustering, and obtain the outlier points;
[0013] The fourth step is to set the abnormal data judgment threshold r, calculate the correlation R between the outlier points and the center points of each cluster, and mark the points with R < r as abnormal data;
[0014] Step 5: Output abnormal data detection results and data clustering results.
[0015] Preferably, the calculation formula of the missing data position operator PΩ in the first step is:
[0016]
[0017] Where X is the missing electricity consumption data matrix.
[0018] Preferably, the method for filling the missing data matrix of the electricity consumption data matrix X is:
[0019]
[0020] Among them, U is the restored complete electricity consumption data matrix.
[0021] Preferably, in the second step, the mean point of the data density in the window and the mean drift vector M h The calculation method is:
[0022]
[0023] Among them, x is the center point of the sliding window, x i is the i-th user data in the window, h is the window bandwidth, and G(x) is the Gaussian kernel function.
[0024] Preferably, the calculation formula of G(x) is:
[0025]
[0026] Preferably, the calculation formula for the correlation R between each outlier point and each cluster center point in the fourth step is:
[0027]
[0028] Among them, x is the outlier, x(i) is the i-th point in vector x, c is the cluster center point; x is the average value of all electricity consumption data.
[0029] Technical effects and advantages of the present invention:
[0030] The present invention first sets the size of the sliding data window through a data clustering module, obtains the local density maximum point by calculating the density mean point and the mean drift vector in the data window, and divides the data into clusters to obtain outliers. Then, the abnormal data detection module calculates the correlation between each outlier and each cluster center point. At this time, the data with a small correlation is abnormal data. Through such a calculation method, the calculation is simpler, so that the abnormal power consumption data can be quickly located, which can help the power company to carry out power dispatching and ensure the stable operation of the power system. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is a block diagram of the detection system of the present invention.
[0032] Figure 2 Flow chart of the detection method of the present invention.
[0033] Figure 3 It is a schematic diagram of the data clustering and abnormal data detection effect of the present invention.
[0034] Figure 4 This is a schematic diagram of actual low-voltage power consumption data.
[0035] Figure 5 Schematic diagram of the singular value distribution characteristics of the electricity consumption data matrix. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] Embodiment 1, the present invention provides as follows Figure 1 A low-voltage area abnormal power consumption data detection system shown includes a data input module, a data clustering module and an abnormal data detection module;
[0038] The data input module is used to form a one-dimensional column vector from the user's daily electricity consumption data, form a two-dimensional matrix from the electricity consumption data of all users in the substation area, and fill in the missing data in the matrix to obtain an electricity consumption data matrix;
[0039] It should be noted that when inputting data, it is necessary to construct an electricity consumption data matrix, in which the daily electricity consumption data of each user constitutes a column vector, and the electricity consumption data of all users in the substation constitutes a two-dimensional matrix. At the same time, to fill in the missing data in the matrix, it is necessary to collect the daily electricity consumption data of the users and determine how to handle the missing data. The specific steps of this process include:
[0040] Data collection: Collect users’ daily electricity consumption data through smart meters, sensors or user self-reporting to ensure that there is enough data to represent each user’s electricity consumption over a period of time.
[0041] Data cleaning: Check the data for missing values or outliers. Missing values may be caused by equipment failure, sensor error, or other reasons. You need to decide how to handle these missing values, whether to fill them in or delete them. At the same time, find and handle any outliers to ensure the accuracy and consistency of the data.
[0042] Data organization: Organize the daily electricity consumption data of each user into a column vector, and the data of all users in the substation area into a two-dimensional matrix. Use spreadsheet software or programming language to do this.
[0043] Missing data filling: For missing data, filling methods are used to estimate missing values, including mean filling, median filling, and interpolation.
[0044] Data analysis: After constructing the electricity consumption data matrix, analysis is performed, including user electricity consumption pattern analysis, anomaly detection and load forecasting, which is used to understand users' electricity consumption habits, optimize power supply and improve energy utilization efficiency.
[0045] Data visualization: Use data visualization tools to visualize the analysis results for more intuitive understanding and communication.
[0046] The data clustering module is used to set the size of the sliding data window, obtain the local density maximum point by calculating the density mean point and the mean shift vector in the data window, and divide the data into clusters to obtain outliers;
[0047] The abnormal data detection module is used to calculate the correlation between each outlier point and each cluster center point, and mark the outlier point with a correlation less than a set threshold as abnormal data.
[0048] Embodiment 2, the present invention provides as follows Figure 2 A detection method of a low-voltage area abnormal power consumption data detection system is shown, using the detection system in Example 1, and the detection method includes the following steps:
[0049] In the first step, the low-voltage area power consumption data is obtained through the data input module to form the power consumption data matrix X∈R m ×n , record the missing data location set Ω, forming the location operator P Ω , and fill in the missing data in the electricity consumption data matrix X;
[0050] Specifically, the calculation formula of the missing data position operator PΩ in the first step is:
[0051]
[0052] Where X is the missing electricity consumption data matrix.
[0053] The method for filling the missing data matrix of the electricity consumption data matrix X is:
[0054]
[0055] Among them, U is the restored complete electricity consumption data matrix.
[0056] It should be noted that low-voltage power consumption data refers to the power consumption data for low-voltage power supply areas (generally referring to areas with voltages below 1000V) in the power industry. These data include information such as power consumption, peak and valley conditions, and power load characteristics in the area.
[0057] Analysis of low-voltage power consumption data can help the power department better understand the power consumption in the area and take corresponding measures, including:
[0058] Load forecasting, through the analysis of historical electricity consumption data, can predict the electricity load situation in a certain period of time in the future, which helps to arrange the power supply plan reasonably and avoid power shortage or waste.
[0059] Energy consumption management, analyzing the electricity consumption data of low-voltage substations can help identify peak and trough periods of energy consumption and formulate reasonable energy management strategies, such as encouraging activities with higher energy consumption during trough periods to smooth the load curve.
[0060] Fault detection and monitoring of changes in low-voltage power consumption data can help detect power supply equipment failures or abnormal conditions early, take appropriate repair and maintenance measures, and ensure the stability and reliability of power supply.
[0061] Energy conservation and emission reduction: By analyzing electricity consumption data, we can identify areas or equipment with high energy consumption, make targeted suggestions for energy conservation and emission reduction, and promote the rational use of energy and environmental protection.
[0062] The second step is to set the sliding window size h of the data clustering module and calculate the data density mean point and mean drift vector M in each window. h ;
[0063] Specifically, in the second step, the mean point of the data density in the window and the mean drift vector M h The calculation method is:
[0064]
[0065] Among them, x is the center point of the sliding window, x i is the i-th user data in the window, h is the window bandwidth, and G(x) is the Gaussian kernel function, which realizes the high-dimensional separability of user electricity consumption data and improves the robustness of classification.
[0066] Furthermore, the calculation formula of G(x) is:
[0067]
[0068] It should be noted that the Gaussian kernel function is a kernel function commonly used in machine learning algorithms such as support vector machines. It is also called the radial basis function. In vector machines, the role of the kernel function is to map the input space to a high-dimensional feature space, so that the problem that is linearly inseparable in the original space becomes linearly separable in the feature space.
[0069] The robustness of classification refers to the ability of a classification model to withstand changes in data or noise under different conditions. A robust classification model can maintain good performance in the face of data changes or noise without over-relying on specific data distribution or local features.
[0070] The third step is to update the candidate point of the window center point to the mean value of all electricity data points within the search radius, find the dense area in the electricity data matrix X, locate the center points of different clusters, complete the data clustering, and obtain the outlier points;
[0071] It should be noted that the region is first divided, and then the average value of the electricity consumption data in the region is calculated to represent the region, which compresses the final number of calculations and makes the system calculate faster.
[0072] The fourth step is to set the abnormal data judgment threshold r, calculate the correlation R between the outlier points and the center points of each cluster, and mark the points with R < r as abnormal data;
[0073] Specifically, the calculation formula for the correlation R between each outlier point and each cluster center point in the fourth step is:
[0074]
[0075] Among them, x is the outlier point, x(i) is the i-th point in vector x, and c is the cluster center point; is the average value of all electricity consumption data.
[0076] Step 5: Output abnormal data detection results and data clustering results.
[0077] Embodiment three, as Figure 3 As shown, it is a schematic diagram of the data clustering and abnormal data detection effect of the present invention. In the present invention, in the mean shift clustering process of electricity data, the density center point of the data is found according to the mean shift vector and the data clustering division is completed. The method of the present invention obtains a good effect of dividing clusters and outliers.
[0078] Embodiment 4, as Figure 4 As shown, it is a schematic diagram of actual low-voltage area electricity consumption data. In order to verify the effectiveness of the low-voltage area abnormal electricity consumption data detection system of the present invention, the actual low-voltage area user electricity consumption data is clustered and analyzed. As shown in the figure, it is an image of the actual low-voltage area user electricity consumption data, which shows that the electricity consumption data types are diverse and the behaviors are complex.
[0079] Embodiment 5, as Figure 5 As shown, it is a schematic diagram of the singular value distribution characteristics of the electricity consumption data matrix, which shows the singular value distribution characteristics of the original electricity consumption data, the random data matrix and the clustered data matrix. The clustering result obtained by the clustering method of the present invention classifies the data of similar electricity consumption behaviors into one category, and the singular value distribution characteristics of the matrix are significantly changed.
[0080] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A low voltage area abnormal power consumption data detection system, characterized in that: It includes a data input module, a data clustering module and an abnormal data detection module; The data input module is used to form a one-dimensional column vector from the user's daily electricity consumption data, form a two-dimensional matrix from the electricity consumption data of all users in the substation area, and fill in the missing data in the matrix to obtain an electricity consumption data matrix; The data clustering module is used to set the size of the sliding data window, obtain the local density maximum point by calculating the density mean point and the mean shift vector in the data window, and divide the data into clusters to obtain outliers; The abnormal data detection module is used to calculate the correlation between each outlier point and each cluster center point, and mark the outlier point with a correlation less than a set threshold as abnormal data.
2. A detection method for a low voltage area abnormal power consumption data detection system, characterized in that: Using the detection system according to claim 1, the detection method comprises the following steps: In the first step, the low-voltage area power consumption data is obtained through the data input module to form the power consumption data matrix X∈R m×n , record the missing data location set Ω, forming the location operator P Ω , and fill in the missing data in the electricity consumption data matrix X; The second step is to set the sliding window size h of the data clustering module and calculate the data density mean point and mean drift vector M in each window. h ; The third step is to update the candidate point of the window center point to the mean value of all electricity data points within the search radius, find the dense area in the electricity data matrix X, locate the center points of different clusters, complete the data clustering, and obtain the outlier points; The fourth step is to set the abnormal data judgment threshold r, calculate the correlation R between the outlier points and the center points of each cluster, and mark the points with R < r as abnormal data; Step 5: Output abnormal data detection results and data clustering results.
3. The detection method of a low voltage area abnormal power consumption data detection system according to claim 2 is characterized in that: The calculation formula of the missing data position operator PΩ in the first step is: Where X is the missing electricity consumption data matrix.
4. The detection method of the low voltage area abnormal power consumption data detection system according to claim 3 is characterized in that: The method for filling the missing data matrix of the electricity consumption data matrix X is: Among them, U is the restored complete electricity consumption data matrix.
5. The detection method of a low voltage area abnormal power consumption data detection system according to claim 2, characterized in that: The data density mean point and mean shift vector M in the window in the second step h The calculation method is: Among them, x is the center point of the sliding window, x i is the i-th user data in the window, h is the window bandwidth, and G(x) is the Gaussian kernel function.
6. The detection method of the low voltage area abnormal power consumption data detection system according to claim 5 is characterized in that: The calculation formula of G(x) is:
7. The detection method of a low voltage area abnormal power consumption data detection system according to claim 2, characterized in that: The calculation formula for the correlation R between each outlier and each cluster center in the fourth step is: Among them, x is the outlier point, x(i) is the i-th point in vector x, and c is the cluster center point; is the average value of all electricity consumption data.
