A method and device for monitoring abnormal electricity consumption on the user side based on power data mining
Through power data mining technology, feature matrices and fitting models are constructed to monitor users' power consumption behavior, solving the problem of low efficiency of traditional manual detection, achieving efficient monitoring of abnormal power consumption and ensuring the safety of electrical equipment.
Patent Information
- Application Number
- CN202410834737.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-26
AI Technical Summary
Traditional abnormal power usage behavior detection methods rely on on-site manual inspection, which is inefficient and difficult to detect abnormal power usage phenomena in time, affecting the safety of users and equipment.
A user-side abnormal power consumption monitoring method based on power data mining is adopted. By obtaining historical data of power consumption information, a feature matrix is constructed for data dimensionality reduction. The Gaussian mixture model and BP neural network are used to fit the typical daily load curve, combined with the gated cyclic unit. Make predictions and set power consumption confidence intervals to monitor abnormal power consumption.
It improves the efficiency of abnormal power consumption detection, promptly discovers safety hazards of electrical equipment, improves the efficiency of the government regulatory market, and reduces data dimensionality and computational complexity.
Smart Images

Figure CN118379088B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of abnormal electricity consumption detection, and in particular to a method and device for monitoring abnormal electricity consumption at a user side based on power data mining. Background Art
[0002] Electricity is one of the important forms of energy in modern society. Stable and safe power supply is crucial to ensuring life, industrial production and economic development.
[0003] Different users have different electricity usage habits and needs. Some users may have malicious or improper electricity usage behaviors, such as illegal electricity theft, electrical equipment failure, circuit short circuit, etc. These behaviors may lead to abnormal electricity usage. Therefore, it is necessary to detect abnormal electricity usage behaviors to ensure the safety of users and equipment.
[0004] Traditional abnormal power consumption behavior detection methods mainly rely on on-site manual inspections, which require a lot of manpower and are inefficient. Therefore, how to improve the detection efficiency of abnormal power consumption behavior so as to timely discover abnormal power consumption phenomena has become a technical problem that technicians in this field need to solve urgently. Summary of the invention
[0005] The present invention provides a method for monitoring abnormal power consumption on the user side based on power data mining, which solves the problem of effective monitoring of abnormal power consumption behavior and improves the efficiency of detecting abnormal power consumption on the user side, thereby ensuring the safety of users and equipment.
[0006] In order to solve the above technical problems, an embodiment of the present invention provides a method for monitoring abnormal power consumption at a user side based on power data mining, comprising:
[0007] Obtain the target user's electricity consumption information historical data set;
[0008] Acquire daily power consumption and daily power load according to the power consumption information historical data set, construct a feature matrix according to the daily power consumption and the daily power load, and perform data dimensionality reduction on the feature matrix to obtain dimensionality reduction features;
[0009] Clustering the dimension reduction features by using a Gaussian mixture model, and constructing a typical daily load curve according to the clustering results;
[0010] Constructing a first BP neural network fitting model, inputting the typical daily load curve into the first BP neural network fitting model for fitting, and outputting a typical daily electricity consumption value;
[0011] Inputting the electricity consumption information historical data set into a pre-built gated recurrent unit network for prediction to obtain a daily electricity consumption prediction value of the target user;
[0012] According to the relationship between the daily power consumption forecast value, the typical daily power consumption value and the typical daily load curve, the normal power consumption confidence interval is calculated, the current power consumption value of the target user is monitored, and the current power consumption value that exceeds the normal power consumption confidence interval is marked as an abnormal power consumption value.
[0013] As one of the preferred solutions, the data type of the electricity consumption information historical data set includes at least one or more of the following:
[0014] The target user's account name, account number, unified social credit code, daily electricity consumption, daily electricity load, transformer operating capacity, transformer active power, three-phase voltage or three-phase current.
[0015] As one of the preferred solutions, data dimension reduction is performed based on the feature matrix to obtain dimension reduction features, including:
[0016] Standardizing the electricity consumption features in the feature matrix to obtain an electricity consumption feature data set;
[0017] Calculating the covariance matrix of the electricity consumption characteristic data set;
[0018] Performing eigenvalue decomposition on the covariance matrix to obtain a plurality of eigenvalues and an eigenvector corresponding to each of the eigenvalues;
[0019] Based on the feature vector, determining the principal component of the electricity consumption feature data set;
[0020] The electricity consumption feature data set is projected onto the principal component to obtain a data set after dimension reduction.
[0021] As one of the preferred solutions, the typical daily load curve is constructed according to the clustering result, including:
[0022] Construct a daily load curve matrix based on the clustering results;
[0023] A BP neural network fitting model is constructed, and the daily load curve matrix is input into the BP neural network fitting model for fitting to obtain a typical daily load curve.
[0024] As one of the preferred solutions, the BP neural network fitting model is constructed, and the power consumption information historical data set is input into a pre-constructed gated recurrent unit network for prediction to obtain the daily power consumption prediction value of the target user, including:
[0025] Constructing a two-dimensional array according to the electricity consumption information historical data set, the acquired weather data set, the seasonal characteristic data set, and the holiday characteristic data set;
[0026] The two-dimensional array is input into the gated recurrent unit network for prediction to obtain the predicted value of daily power consumption of the target user.
[0027] As one of the preferred solutions, the calculation of the normal power consumption confidence interval by combining the daily power consumption forecast value, the typical daily power consumption value and the typical daily load curve includes:
[0028] Obtaining a ratio of the daily power consumption prediction value to the typical daily power consumption value;
[0029] Calculating an ideal value of a user load curve based on the ratio and the typical daily load curve;
[0030] A confidence interval is constructed based on the ideal value of the user load curve and the obtained historical load curve prediction deviation value.
[0031] As one preferred solution, after marking the power consumption value exceeding the normal power consumption confidence interval as an abnormal power consumption value, the method further includes:
[0032] Based on the abnormal power consumption value, generating a number of warning signals;
[0033] If the number of times the warning signal is detected exceeds a preset threshold, an operator maintenance signal is generated and sent to a corresponding operator mobile terminal.
[0034] Another embodiment of the present invention provides a user-side abnormal power consumption monitoring device based on power data mining, comprising:
[0035] An acquisition module is used to obtain a historical data set of electricity consumption information of a target user;
[0036] A dimension reduction module, used for obtaining daily power consumption and daily power load according to the power consumption information historical data set, constructing a feature matrix according to the daily power consumption and the daily power load, and performing data dimension reduction on the feature matrix to obtain dimension reduction features;
[0037] A clustering module, used for clustering the dimension reduction features by using a Gaussian mixture model, and constructing a typical daily load curve according to the clustering results;
[0038] A fitting module, used for constructing a first BP neural network fitting model, inputting the typical daily load curve into the first BP neural network fitting model for fitting, and outputting a typical daily electricity consumption value;
[0039] A prediction module, used to input the electricity consumption information historical data set into a pre-built gated recurrent unit network for prediction, and obtain a daily electricity consumption prediction value of the target user;
[0040] A monitoring module is used to calculate a normal power consumption confidence interval based on the relationship between the daily power consumption forecast value, the typical daily power consumption value and the typical daily load curve, monitor the current power consumption value of the target user, and mark the current power consumption value that exceeds the normal power consumption confidence interval as an abnormal power consumption value.
[0041] Another embodiment of the present invention provides a user-side abnormal electricity consumption monitoring device based on power data mining, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, it implements the user-side abnormal electricity consumption monitoring method based on power data mining as described above.
[0042] Yet another embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein when the device where the computer-readable storage medium is located executes the computer program, the user-side abnormal electricity consumption monitoring method based on power data mining as described above is implemented.
[0043] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0044] 1) The present invention provides a user-side abnormal power consumption monitoring method based on power data mining, which is implemented based on principal component analysis, Gaussian mixture model, BP neural network and gated recurrent unit, wherein principal component analysis is used to screen power consumption features according to contribution rate, reduce the dimension of data, eliminate the correlation between evaluation indicators, reduce the workload of indicator selection, reduce data dimension, simplify problems, and calculate norms, which is easy to implement;
[0045] 2) The present invention uses a gated cyclic unit to predict power consumption and obtains multiple characteristic values as input quantities, thereby improving the reliability of the prediction model;
[0046] 3) The present invention sets a confidence interval for electricity consumption and marks the time points of electricity consumption that exceed the interval, thereby achieving the purpose of abnormal electricity consumption monitoring, improving the work efficiency of traditional manual abnormal electricity consumption behavior detection, allowing users to promptly discover safety hazards of electrical equipment, and at the same time helping to improve the efficiency of government market supervision at the electricity consumption information level. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 It is a flow chart of a method for monitoring abnormal power consumption at the user side based on power data mining in one embodiment of the present invention;
[0048] Figure 2 It is a schematic diagram of the structure of a BP neural network model in one embodiment of the present invention;
[0049] Figure 3 It is a schematic diagram of a user-side abnormal power consumption monitoring technology and a hidden danger investigation and rectification process in one embodiment of the present invention;
[0050] Figure 4 It is a structural schematic diagram of a user-side abnormal power consumption monitoring device based on power data mining in one embodiment of the present invention;
[0051] Figure 5 It is a schematic diagram of a user-side abnormal power consumption monitoring device based on power data mining in one embodiment of the present invention. DETAILED DESCRIPTION
[0052] 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. The purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive. 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.
[0053] In the description of this application, the terms "first", "second", "third", etc. are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", "third", etc. may explicitly or implicitly include one or more of the feature. In the description of this application, unless otherwise specified, "plurality" means two or more.
[0054] In the description of the present application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a connection between the two elements. The terms "vertical", "horizontal", "left", "right", "upper", "lower" and similar expressions used herein are only for illustrative purposes, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0055] In the description of this application, it should be noted that, unless otherwise defined, all technical and scientific terms used in the present invention have the same meaning as those commonly understood by those skilled in the art. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood by specific circumstances.
[0056] An embodiment of the present invention provides a method for monitoring abnormal power consumption at the user side based on power data mining. For details, see Figure 1 , Figure 1 The flowchart of the abnormal power consumption monitoring method at the user side based on power data mining provided in one embodiment of the present invention is shown. It includes steps S1 to S6:
[0057] S1. Obtain the target user's electricity consumption information historical data set;
[0058] In the embodiment of the present invention, preferably, the data type of the electricity consumption information historical data set includes one or more of the following:
[0059] The target user's account name, account number, unified social credit code, daily electricity consumption, daily electricity load, transformer operating capacity, transformer active power, three-phase voltage or three-phase current.
[0060] Specifically, the specific process of data collection and preliminary processing is as follows: the marketing system 2.0 system collects household names, household numbers, and unified social credit codes; the electricity collection system 2.0 collects daily electricity consumption, daily electricity load, transformer operating capacity, transformer active power, three-phase voltage, three-phase current and other data; the emergency bureau collects the list of supervised enterprises and the list of closed enterprises; the meteorological bureau collects intelligent grid forecasts, short-term grid forecasts, and meteorological regional fine forecasts through multiple channels to collect and establish target electricity information data. The target electricity data set is preprocessed, including discarding the same data for a long time, interpolating missing data values according to the Lagrange interpolation method, and deleting numerical errors or outlier data, so as to obtain complete electricity information data.
[0061] S2. acquiring daily power consumption and daily power load according to the power consumption information historical data set, constructing a feature matrix according to the daily power consumption and the daily power load, and performing data dimensionality reduction on the feature matrix to obtain dimensionality reduction features;
[0062] The daily electricity consumption and daily electricity load are extracted from the processed electricity consumption information data to form a feature matrix, each row of the feature matrix represents an independent date, and each column represents a different electricity consumption feature or variable, wherein the daily electricity load is taken once every 15 minutes.
[0063] In the embodiment of the present invention, preferably, performing data dimension reduction based on the feature matrix to obtain dimension reduction features includes:
[0064] The power consumption features in the feature matrix are standardized to obtain a power consumption feature data set, wherein the mean value of each power consumption feature is 0 and the standard deviation is 1;
[0065] Calculating the covariance matrix of the electricity consumption characteristic data set;
[0066] Performing eigenvalue decomposition on the covariance matrix to obtain a plurality of eigenvalues and an eigenvector corresponding to each of the eigenvalues;
[0067] Based on the eigenvector, determining the principal component of the power consumption characteristic data set; specifically, according to the size of the eigenvalue, selecting the eigenvectors corresponding to the largest k eigenvalues as the principal component;
[0068] The electricity consumption feature data set is projected onto the principal component to obtain a data set after dimension reduction.
[0069] S3, clustering the dimension reduction features by using a Gaussian mixture model, and constructing a typical daily load curve according to the clustering results;
[0070] Specifically, a Gaussian mixture model is established, and the reduced-dimensional data set is used as the input of the Gaussian mixture model to cluster the historical data. The steps can be divided into:
[0071] S31, randomly initialize the parameters of the Gaussian mixture model GMM, including the number of mixture components, the mean of each Gaussian distribution, the covariance matrix and the weight;
[0072] S32. Using the Expectation Maximization (EM) algorithm:
[0073] S321, step E: for each data point, use the probability density function of the Gaussian distribution to calculate its posterior probability belonging to each Gaussian distribution;
[0074] S322, step M: based on the result of step E, re-estimate the parameters of each Gaussian distribution, including the mean, covariance matrix and weight.
[0075] S33, check whether the parameters have converged, if not, return to step S321;
[0076] S34. According to the result of GMM, each data point is assigned to the Gaussian distribution with the highest posterior probability. According to the assignment, the data set is divided into two subsets: working days and non-working days;
[0077] S35. Use the likelihood function value to evaluate the model's fitting effect and classification accuracy.
[0078] In the embodiment of the present invention, preferably, before the working day electricity consumption characteristics and the non-working day electricity consumption characteristics are respectively input into the BP neural network fitting model, the method further includes:
[0079] A daily load curve matrix is constructed according to the clustering result, and the daily load curve matrix is:
[0080] ;
[0081] in, Indicates that the user day The load value at each recording moment;
[0082] A second BP neural network fitting model is constructed, and the daily load curve matrix is input into the second BP neural network fitting model for fitting to obtain the typical daily load curve.
[0083] S4, constructing a first BP neural network fitting model, inputting the typical daily load curve into the first BP neural network fitting model for fitting, and outputting a typical daily electricity consumption value;
[0084] Establish the BP neural network model structure as follows Figure 2 As shown in Figure 1, the BP neural network consists of an input layer, a hidden layer, and an output layer. Specifically, the BP neural network fitting model is constructed to obtain the typical load curves of working days and non-working days. The steps are as follows:
[0085] S41, input user daily load curve matrix feature normalization and network initialization;
[0086] S42, the hidden layer output is calculated by the input sample, the threshold of the hidden layer, and the weight between the input layer and the hidden layer:
[0087] ;
[0088] in, is the activation function, is the hidden layer output weight, is the output layer bias;
[0089] S43, the neural network prediction output is:
[0090] ;
[0091] in, is the weight from hidden layer to output layer, is the bias from hidden layer to output layer;
[0092] S44, Error calculation:
[0093] ;
[0094] S45 updates weights and biases, the formula is:
[0095] ,
[0096] ;
[0097] S46, repeat S42 to S45 until the fitting error meets the prediction accuracy requirement.
[0098] S5, inputting the electricity consumption information historical data set into a pre-built gated recurrent unit network for prediction, and obtaining a predicted value of daily electricity consumption of the target user;
[0099] Specifically, the gated recurrent unit (GRU) is used to predict the daily electricity consumption of the target user, and the center line of the confidence interval is further determined to solve the problem that the load curve deviates from the confidence interval due to the change of daily electricity consumption.
[0100] In the embodiment of the present invention, preferably, the power consumption information historical data set is input into a pre-built gated recurrent unit network for prediction to obtain the daily power consumption prediction value of the target user, including:
[0101] Constructing a two-dimensional array according to the electricity consumption information historical data set, the acquired weather data set, the seasonal characteristic data set, and the holiday characteristic data set;
[0102] The two-dimensional array is input into the gated recurrent unit network for prediction to obtain the predicted value of daily power consumption of the target user.
[0103] S6. Calculate a normal power consumption confidence interval based on the relationship between the daily power consumption forecast value, the typical daily power consumption value and the typical daily load curve, monitor the current power consumption value of the target user, and mark the current power consumption value that exceeds the normal power consumption confidence interval as an abnormal power consumption value.
[0104] In the embodiment of the present invention, preferably, a ratio of the daily power consumption prediction value to the typical daily power consumption value is obtained;
[0105] Based on the above ratio and the typical daily load curve, the ideal value of the user load curve is calculated based on the following calculation formula;
[0106] ;
[0107] in, represents the ideal load curve, Represents a typical load curve, Indicates typical power consumption, Indicates the predicted electricity consumption;
[0108] Based on the ideal value of the user load curve and the obtained historical load curve prediction deviation value, a confidence interval is constructed based on the following calculation formula;
[0109] ;
[0110] in, represents the confidence interval, The variance of the historical load curve at the corresponding moment.
[0111] Furthermore, the actual real-time user load curve collected is compared with the calculated confidence interval. If the predicted value exceeds the confidence interval, the user can be marked as abnormal power consumption. As time goes by, the historical data is continuously updated and the confidence interval is recalculated to adapt to the changes in power consumption. At the same time, the parameters of the confidence interval can also be adjusted according to the actual situation to improve the detection accuracy of abnormal power consumption.
[0112] In the embodiment of the present invention, preferably, after marking the current power consumption value exceeding the normal power consumption confidence interval as an abnormal power consumption value, the method further includes:
[0113] Based on the abnormal power consumption value, generating a number of warning signals;
[0114] If the number of times the warning signal is detected exceeds a preset threshold, an operator maintenance signal is generated and sent to a corresponding operator mobile terminal.
[0115] Example, combined Figure 3 As shown, in view of the characteristics and needs of traditional user-side power monitoring, a user-side abnormal power consumption monitoring technology and hidden danger investigation and rectification process are constructed. The process mainly monitors the user's power consumption status through the user-side abnormal power consumption monitoring technology. When the abnormal status is detected, an early warning message is sent to promptly notify the user to rectify the problem by themselves. When the early warning is issued more than three times, a door-to-door hidden danger investigation and supervision and rectification are carried out by dispatching orders. The present invention can enable government departments to effectively obtain the power consumption of key supervision objects, thereby understanding the production status of the supervision objects and strengthening the supervision and management of enterprises. On the other hand, this invention can promptly discover power failure problems on the user side, arrange personnel for on-site inspections in a targeted manner, reduce safety hazards such as fire and leakage, and improve the safety of power use.
[0116] In order to better illustrate the advantages of the embodiments of the present invention, a specific example is briefly introduced below: By analyzing and reviewing the cases of enterprise fire accidents in Ruian City in recent years, it can be seen that the main characteristics of enterprise fire accidents are: First, from the cause of the fire, the cause of electrical line and equipment failure ranks first in the enterprise fires in our city, accounting for as high as 77.1%, of which line insulation aging and short circuit account for 55.4%, and equipment failure accounts for 21.7%. Second, from the time period of the fire, the proportion of fires on rest days and non-working hours is relatively high, reaching 72.3%; third, from the perspective of industry type, weaving, luggage, shoemaking and other industries are the hardest hit areas of fire, accounting for as high as 46.4%; fourth, from the perspective of enterprise type, fires in "factories within factories" are frequent, accounting for 41.7%. After visiting and investigating, we can find the intrinsic connection between production safety and power data: although there are many factors for enterprise fires, there are also certain rules. In the early stage, most enterprises are always accompanied by many precursors such as decreased insulation of electrical lines, aging of equipment, increased tripping, abnormal load, chaotic management, and careless fire. If these risk points can be given enough attention and intervened and rectified, and the chain of fire formation can be cut off in time, accidents can be completely avoided. As the source of energy for enterprise production, the load fluctuation of electricity is like the "electrocardiogram" of a person, from which many potential safety problems hidden behind the massive data can be interpreted.
[0117] like Figure 4 As shown, another embodiment of the present invention provides a user-side abnormal power consumption monitoring device based on power data mining, including an acquisition module 11, a dimensionality reduction module 12, a clustering module 13, a fitting module 14, a prediction module 15, and a monitoring module 16, wherein
[0118] An acquisition module is used to obtain a historical data set of electricity consumption information of a target user;
[0119] A dimension reduction module, used for obtaining daily power consumption and daily power load according to the power consumption information historical data set, constructing a feature matrix according to the daily power consumption and the daily power load, and performing data dimension reduction on the feature matrix to obtain dimension reduction features;
[0120] A clustering module, used for clustering the dimension reduction features by using a Gaussian mixture model, and constructing a typical daily load curve according to the clustering results;
[0121] A fitting module, used for constructing a first BP neural network fitting model, inputting the typical daily load curve into the first BP neural network fitting model for fitting, and outputting a typical daily electricity consumption value;
[0122] A prediction module, used to input the electricity consumption information historical data set into a pre-built gated recurrent unit network for prediction, and obtain a daily electricity consumption prediction value of the target user;
[0123] A monitoring module is used to calculate a normal power consumption confidence interval based on the relationship between the daily power consumption forecast value, the typical daily power consumption value and the typical daily load curve, monitor the current power consumption value of the target user, and mark the current power consumption value that exceeds the normal power consumption confidence interval as an abnormal power consumption value.
[0124] Compared with the prior art, the user-side abnormal power consumption monitoring method disclosed in the embodiment of the present invention is implemented based on principal component analysis, Gaussian mixture model, BP neural network and gated loop unit, wherein principal component analysis is used to screen power consumption features according to contribution rate and reduce dimensionality of data; Gaussian mixture model is used to cluster power consumption features corresponding to dates into working day features and non-working day features as a preparation for obtaining a typical load curve; BP neural network is used to fit the load value at each moment of the same type of load curve, and fit a typical load curve and typical power consumption; gated loop unit is used to predict power consumption, obtain multiple characteristic values as input, and improve the reliability of the prediction model; by setting a normal power consumption confidence interval, by marking the power consumption time point that exceeds the interval, the purpose of abnormal power consumption monitoring is achieved. It has certain practical significance for abnormal power consumption monitoring on the user side, improves the work efficiency of traditional manual abnormal power consumption behavior detection, enables users to timely discover safety hazards of electrical equipment, and is conducive to improving the efficiency of government regulatory market at the power consumption information level.
[0125] like Figure 5 As shown, another embodiment of the present invention provides a user-side abnormal power consumption monitoring device based on power data mining, including a processor 21, a memory 22, and a computer program stored in the memory 22 and configured to be executed by the processor 21. When the processor 21 executes the computer program, the steps in the above-mentioned user-side abnormal power consumption monitoring method embodiment based on power data mining are implemented, for example Figure 1 or, the processor 21 implements the functions of each module in the above-mentioned device embodiments, such as the acquisition module 11, when executing the computer program.
[0126] Exemplarily, the computer program can be divided into one or more modules, and the one or more modules are stored in the memory 22 and executed by the processor 21 to complete the present invention. The one or more modules can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the user-side abnormal power consumption monitoring device based on power data mining. For example, the computer program can be divided into an acquisition module 11, a dimensionality reduction module 12, a clustering module 13, a fitting module 14, a prediction module 15, and a monitoring module 16.
[0127] The processor 21 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 21 is the control center of the user-side abnormal power consumption monitoring device based on power data mining, and uses various interfaces and lines to connect various parts of the entire user-side abnormal power consumption monitoring device based on power data mining.
[0128] The memory 22 can be used to store the computer program and / or module. The processor 21 realizes various functions of the abnormal power consumption monitoring device on the user side based on power data mining by running or executing the computer program and / or module stored in the memory 22 and calling the data stored in the memory 22. The memory 22 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.). In addition, the memory 22 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0129] Wherein, if the module integrated by the user-side abnormal power consumption monitoring device based on power data mining is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0130] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0131] Accordingly, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to perform the steps in the user-side abnormal power consumption monitoring method based on power data mining as described in the above embodiment, for example Figure 1 Steps S1 to S6 described in .
[0132] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A method for monitoring abnormal power consumption at the user side based on power data mining, characterized in that: The following steps are involved: Obtain the target user's electricity consumption information historical data set; Acquire daily power consumption and daily power load according to the power consumption information historical data set, construct a feature matrix according to the daily power consumption and the daily power load, and perform data dimensionality reduction on the feature matrix to obtain dimensionality reduction features; Clustering the dimension reduction features by using a Gaussian mixture model, and constructing a typical daily load curve according to the clustering results; The step of constructing a typical daily load curve according to the clustering result includes: Construct a daily load curve matrix based on the clustering results; Constructing a BP neural network fitting model, inputting the daily load curve matrix into the BP neural network fitting model for fitting, and obtaining a typical daily load curve; Constructing a first BP neural network fitting model, inputting the typical daily load curve into the first BP neural network fitting model for fitting, and outputting a typical daily electricity consumption value; Inputting the electricity consumption information data set into a pre-built gated recurrent unit network for prediction to obtain a daily electricity consumption prediction value; A normal power consumption confidence interval is calculated based on the relationship between the daily power consumption forecast value, the typical daily power consumption value and the typical daily load curve, the current power consumption value of the target user is monitored, and the current power consumption value that exceeds the normal power consumption confidence interval is marked as an abnormal power consumption value.
2. The user-side abnormal power consumption monitoring method based on power data mining according to claim 1 is characterized in that: The data type of the electricity consumption information historical data set includes one or more of the following: The target user's account name, account number, unified social credit code, daily electricity consumption, daily electricity load, transformer operating capacity, transformer active power, three-phase voltage or three-phase current.
3. The user-side abnormal power consumption monitoring method based on power data mining according to claim 1 is characterized in that: The performing data dimension reduction based on the feature matrix to obtain dimension reduction features includes: Standardizing the electricity usage features in the feature matrix to obtain an electricity usage feature data set; Calculating the covariance matrix of the electricity consumption characteristic data set; Performing eigenvalue decomposition on the covariance matrix to obtain a plurality of eigenvalues and an eigenvector corresponding to each of the eigenvalues; Based on the feature vector, determining the principal component of the electricity consumption feature data set; The electricity consumption feature data set is projected onto the principal component to obtain a data set after dimension reduction.
4. The user-side abnormal power consumption monitoring method based on power data mining according to claim 1 is characterized in that: The step of inputting the electricity consumption information historical data set into a pre-built gated recurrent unit network for prediction to obtain the daily electricity consumption prediction value of the target user includes: Constructing a two-dimensional array according to the electricity consumption information historical data set, the acquired weather data set, the seasonal characteristic data set, and the holiday characteristic data set; The two-dimensional array is input into the gated recurrent unit network for prediction to obtain the predicted value of daily power consumption of the target user.
5. The user-side abnormal power consumption monitoring method based on power data mining according to claim 1 is characterized in that: The calculating of the normal power consumption confidence interval according to the relationship between the daily power consumption prediction value, the typical daily power consumption value and the typical daily load curve comprises: Obtaining a ratio of the daily power consumption prediction value to the typical daily power consumption value; Calculating an ideal value of a user load curve based on the ratio and the typical daily load curve; A confidence interval is constructed based on the ideal value of the user load curve and the obtained historical load curve prediction deviation value.
6. The user-side abnormal power consumption monitoring method based on power data mining according to claim 1 is characterized in that: After marking the power consumption value exceeding the normal power consumption confidence interval as an abnormal power consumption value, the method further includes: Based on the abnormal power consumption value, generating a number of warning signals; If the number of times the warning signal is detected exceeds a preset threshold, an operator maintenance signal is generated and sent to a corresponding operator mobile terminal.
7. A user-side abnormal power consumption monitoring device based on power data mining, characterized in that: include: An acquisition module is used to obtain a historical data set of electricity consumption information of a target user; A dimension reduction module, used for obtaining daily power consumption and daily power load according to the power consumption information historical data set, constructing a feature matrix according to the daily power consumption and the daily power load, and performing data dimension reduction on the feature matrix to obtain dimension reduction features; A clustering module, used for clustering the dimension reduction features by using a Gaussian mixture model, and constructing a typical daily load curve according to the clustering results; The step of constructing a typical daily load curve according to the clustering result includes: Construct a daily load curve matrix based on the clustering results; Constructing a BP neural network fitting model, inputting the daily load curve matrix into the BP neural network fitting model for fitting, and obtaining a typical daily load curve; A fitting module, used for constructing a first BP neural network fitting model, inputting the typical daily load curve into the first BP neural network fitting model for fitting, and outputting a typical daily electricity consumption value; A prediction module, used to input the electricity consumption information historical data set into a pre-built gated recurrent unit network for prediction, and obtain a daily electricity consumption prediction value of the target user; A monitoring module is used to calculate a normal power consumption confidence interval based on the relationship between the daily power consumption forecast value, the typical daily power consumption value and the typical daily load curve, monitor the current power consumption value of the target user, and mark the current power consumption value that exceeds the normal power consumption confidence interval as an abnormal power consumption value.
8. A user-side abnormal power consumption monitoring device based on power data mining, characterized in that: It includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the user-side abnormal power consumption monitoring method based on power data mining as described in any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, the user-side abnormal power consumption monitoring method based on power data mining as described in any one of claims 1 to 6 is implemented.
