Monitoring method and monitoring device for illegal power utilization of transformer area and computer program product
By analyzing the time series and behavioral characteristics of the electricity consumption data of users in the Taiwan area, the violation determination model is used to judge and monitor the illegal electricity consumption behavior of users in the Taiwan area, which solves the problem of low efficiency of manual inspection and regular detection in the existing technology, and realizes Real-time monitoring and high accuracy.
Patent Information
- Application Number
- CN202410633990.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-08-23
AI Technical Summary
The existing technology relies on manual inspections and regular inspections, which is inefficient and the monitoring system has deficiencies in accuracy, stability and intelligence, making it difficult to monitor and detect illegal power consumption behaviors of users in the Taiwan area in real time.
By obtaining the electricity consumption data of users in the Taiwan area, we analyze time series characteristics and user behavior characteristics, use the violation determination model to determine whether there are illegal electricity consumption behaviors, and generate early warning information and record violation information, reducing manual operations and improving monitoring efficiency and accuracy. sex.
It achieves real-time monitoring of electricity consumption by Taiwan users and timely discovery of violations, improves monitoring efficiency and accuracy, enhances the intelligence level of the system, and solves the shortcomings of existing technologies that rely on manual inspections and regular inspections.
Smart Images

Figure CN118539609A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of monitoring illegal electricity consumption in distribution networks, and specifically, to a monitoring method, monitoring device, computer-readable storage medium and computer program product for illegal electricity consumption in distribution networks. Background Art
[0002] With the rapid development of my country's economy, the demand for electricity continues to grow, and the power system is facing increasing pressure. In the process of electricity use by users in the substation area, due to the differences in users' demand for electricity and electricity usage habits, the phenomenon of illegal electricity use is becoming more and more serious. This not only wastes precious energy resources, but also may cause safety hazards to the power system. In order to solve this problem, it is necessary to strengthen the real-time monitoring and management of users' electricity use behavior. The existing technical electricity use violation management methods still rely on manual inspections and regular inspections in many areas. This method is not only inefficient, but also difficult to monitor and discover users' illegal electricity use behavior in real time. In addition, there are some monitoring systems, but they are insufficient in accuracy, stability, intelligence and other aspects. Summary of the invention
[0003] The main purpose of this application is to provide a monitoring method, monitoring device, computer-readable storage medium and computer program product for illegal electricity consumption in a substation, so as to at least solve the problem of reliance on manual inspections and regular detection and low accuracy of the monitoring system in the prior art.
[0004] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a monitoring method for illegal electricity usage in a substation is provided, including: obtaining electricity usage data of users in the substation, the electricity usage data at least including current data, voltage data, frequency data and electricity data corresponding to the users in the substation; performing time series feature and user behavior feature analysis on the electricity usage data to obtain abnormal electricity usage data, the user behavior features including the switching time and continuous use time corresponding to each user in the substation; inputting the abnormal electricity usage data into a violation determination model, and outputting the electricity usage behavior status of the users in the substation, the violation determination model being a model for determining whether there is illegal electricity usage behavior based on the abnormal electricity usage data, the electricity usage behavior status including normal electricity usage and illegal electricity usage; generating early warning information and recording the violation information when the electricity usage behavior status is the illegal electricity usage, the early warning information being used to prompt the users in the substation that there is illegal electricity usage behavior.
[0005] Optionally, after obtaining the electricity usage data of the substation users, the method further includes: matching in the user archive according to the unique identification code of the substation user, and storing the electricity usage data in the electricity usage archive corresponding to the user archive, wherein the unique identification code is the unique identification of the substation user, and the user archive is a database storing the electricity usage archives of all the substation users, and the electricity usage archive includes the electricity equipment information, historical electricity usage data and historical violation records corresponding to the substation user.
[0006] Optionally, time series feature analysis and user behavior feature analysis are performed on the electricity consumption data to obtain abnormal electricity consumption data, including: forming an electricity consumption time series from the electricity consumption data according to a set time interval, and calculating the autocorrelation coefficient corresponding to each time node according to the expectation, standard deviation and mean of the electricity consumption time series, generating an autocorrelation coefficient curve based on all the autocorrelation coefficients, the autocorrelation coefficient curve is a relationship curve between the autocorrelation coefficient and the time node, and the time interval between adjacent time nodes is the set time interval; calculating the average electricity consumption corresponding to each user in the substation based on the electricity consumption data; multiplying the continuous use time by the average electricity consumption to obtain the standard electricity consumption; and determining the corresponding electricity consumption data as abnormal electricity consumption data when a first condition is met, the first condition being that the actual electricity consumption in the electricity consumption data is greater than the standard electricity consumption and / or the autocorrelation coefficient on the autocorrelation coefficient curve is greater than a set threshold.
[0007] Optionally, before the abnormal power consumption data is input into the violation judgment model and the power consumption behavior status of the users in the substation area is obtained as output, the method further includes: screening out multiple frequent item sets in the abnormal power consumption data according to a support threshold, wherein the support threshold is the support of the minimum standard for screening the frequent item sets, and the support is the frequency of occurrence of any one of the frequent item sets in the abnormal power consumption data, and the frequent item set is an item set whose occurrence frequency in the abnormal power consumption data is greater than the support threshold, and a frequent item set includes multiple items; based on the frequent item sets, an association rule mining algorithm is used to generate multiple association rules, and the confidence and lift corresponding to each of the association rules are calculated, wherein the association rules are used to represent the association relationship between each of the frequent item sets, and one association rule corresponds to at least two of the frequent item sets; when the confidence is greater than the confidence threshold and the lift is greater than the lift threshold, the corresponding association rule is determined as a valid association rule; and the violation judgment model is generated according to all the valid association rules.
[0008] Optionally, an association rule mining algorithm is used based on the frequent item set to generate multiple association rules, and the confidence and lift corresponding to each of the association rules are calculated, including: calculating the probability that the existence of the prerequisite item in all the frequent item sets causes the associated item to exist, and obtaining the confidence, the prerequisite item represents the prerequisite for making a decision in the frequent item set, and the associated item is the item in the frequent item set other than the prerequisite item; calculating the ratio of the confidence to the random probability, and obtaining the lift, the random probability is the probability that the associated item exists in the frequent item set.
[0009] Optionally, the violation determination model is generated according to all the valid association rules, including: a first generation step, generating branches of a decision tree according to the characteristic attributes in each of the valid association rules, one frequent item set corresponds to one branch, and the characteristic attribute is a data attribute in the electricity consumption data; a second generation step, for the current branch, generating a sub-branch of the current branch according to the characteristic attribute corresponding to the frequent item set, and the current branch is the branch currently being processed; repeating the first generation step and the second generation step until all the frequent item sets are processed, and generating the decision tree; pruning the decision tree to obtain the violation determination model.
[0010] Optionally, when the electricity usage behavior status is the illegal electricity usage, after generating early warning information and recording violation information, the method also includes: when the total violation record of any one of the users in the substation area is greater than the violation threshold, generating a warning message, the warning information is used to prompt the substation area user that the violation record exceeds the violation threshold and there is an electricity usage risk, the total violation record is all the violation records recorded by the user in the substation area up to the current moment.
[0011] According to another aspect of the present application, a monitoring device for illegal electricity usage in a substation is provided, the device comprising: an acquisition unit, used to acquire electricity usage data of users in the substation, the electricity usage data at least comprising current data, voltage data, frequency data and electricity data corresponding to the users in the substation; an analysis unit, used to perform time series feature and user behavior feature analysis on the electricity usage data to obtain abnormal electricity usage data, the user behavior features comprising the switching time and continuous use time of the users in the substation; an output unit, used to input the abnormal electricity usage data into a violation determination model, and output the electricity usage behavior status of the users in the substation, the violation determination model being a model for determining whether there is illegal electricity usage behavior based on the abnormal electricity usage data, the electricity usage behavior status comprising normal electricity usage and illegal electricity usage; a first generation unit, used to generate warning information and record the violation information when the electricity usage behavior status is the illegal electricity usage, the warning information being used to prompt the users in the substation that there is illegal electricity usage behavior.
[0012] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the methods described.
[0013] According to another aspect of the present application, a computer program product is provided, comprising computer instructions, which implement any one of the methods described above when executed by a processor.
[0014] Applying the technical solution of the present application, in a monitoring method for illegal electricity usage in a substation, first, electricity usage data of users in the substation are obtained, the electricity usage data at least including current data, voltage data, frequency data and electricity data corresponding to the users in the substation; then, time series characteristics and user behavior characteristics of the electricity usage data are analyzed to obtain abnormal electricity usage data, the user behavior characteristics including the switching time and continuous use time of each user in the substation; thereafter, the abnormal electricity usage data are input into a violation determination model, and the electricity usage behavior status of the users in the substation is output, the violation determination model is a model for determining whether there is illegal electricity usage behavior based on the abnormal electricity usage data, and the electricity usage behavior status includes normal electricity usage and illegal electricity usage; finally, when the electricity usage behavior status is the illegal electricity usage, early warning information is generated and the violation information is recorded, the early warning information is used to prompt the users in the substation that there is illegal electricity usage behavior. This application uses the acquired real-time electricity consumption data of users to analyze the time series characteristics of electricity consumption and the characteristics of user behavior, and makes abnormal judgments based on the analysis results of the time series characteristics and the characteristics of user behavior. The abnormal electricity consumption data is input into the violation judgment model and judged whether the user's electricity consumption is in violation of the regulations. This reduces manual operations, manual inspections and regular inspections, improves monitoring efficiency, and can monitor and discover users' illegal electricity consumption behaviors in real time. The violation judgment based on the algorithm has also been significantly improved in accuracy, stability, and intelligence. This application solves the problem of relying on manual inspections and regular inspections and low accuracy of the monitoring system in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0016] Figure 1 A hardware structure block diagram of a mobile terminal for performing a monitoring method for illegal electricity use in a substation area provided in an embodiment of the present application is shown;
[0017] Figure 2 A flow chart of a method for monitoring illegal electricity use in a substation provided in accordance with an embodiment of the present application is shown;
[0018] Figure 3 A structural block diagram of a monitoring device for illegal electricity use in a substation provided according to an embodiment of the present application is shown;
[0019] The above drawings include the following reference numerals:
[0020] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION
[0021] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0022] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0024] As introduced in the background technology, the existing technical methods for managing electricity usage violations in the prior art still rely on manual inspections and regular inspections in many areas. This method is not only inefficient, but also difficult to monitor and discover users' illegal electricity usage in real time. In addition, there are some monitoring systems, but they have deficiencies in accuracy, stability, intelligence, etc. In order to solve the problem of reliance on manual inspections and regular inspections and low accuracy of monitoring systems in the prior art, the embodiments of the present application provide a monitoring method, monitoring device, computer-readable storage medium and computer program product for illegal electricity usage in a substation.
[0025] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0026] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for monitoring illegal electricity use in a substation according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0027] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the monitoring method for illegal electricity use in the substation in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0028] In this embodiment, a method for monitoring illegal electricity consumption in a substation running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0029] Figure 2 FIG. 1 is a flow chart of a method for monitoring illegal electricity use in a substation according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:
[0030] Step S201, obtaining electricity consumption data of users in the substation area, wherein the electricity consumption data at least includes current data, voltage data, frequency data and electricity data corresponding to the users in the substation area.
[0031] Specifically, the power consumption data of users in the substation area is collected in real time, including but not limited to current data, voltage data, frequency data and electricity data.
[0032] Step S202, analyzing the time series characteristics and user behavior characteristics of the above-mentioned power consumption data to obtain abnormal power consumption data, wherein the above-mentioned user behavior characteristics include the switching time and continuous use time of the corresponding electrical appliances of the users in each of the above-mentioned substations.
[0033] Specifically, the time series characteristics of electricity consumption and the characteristics of user behavior are analyzed based on the electricity consumption data of users in the substation area, and the electricity consumption data with abnormal analysis results are marked as abnormal electricity consumption data.
[0034] Step S203, input the above abnormal power consumption data into the violation determination model, and output the power consumption behavior status of the above substation users. The above violation determination model is a model that determines whether there is any illegal power consumption behavior based on the above abnormal power consumption data. The above power consumption behavior status includes normal power consumption and illegal power consumption.
[0035] Specifically, the violation determination model can make real-time violation determinations on the electricity usage behavior of users in the substation area. It can use association rule algorithms to construct a violation determination model from abnormal electricity usage data and determine whether the user's electricity usage is in violation of regulations. This can reduce manual operations, manual inspections and regular testing, improve monitoring efficiency, and monitor and discover users' illegal electricity usage behavior in real time. The algorithm-based violation determination has also been significantly improved in accuracy, stability, and intelligence.
[0036] Step S204, when the electricity usage behavior status is the illegal electricity usage, generate warning information and record the violation information, the warning information is used to remind the users in the above-mentioned area that there is illegal electricity usage behavior.
[0037] Specifically, after identifying the illegal electricity usage behavior of users in the suburban area, an early warning message is immediately generated, and the illegal information is recorded, including the illegal user, the illegal time, and the illegal warning information, and all illegal records are saved in the user file.
[0038] In this embodiment, first, electricity usage data of users in the substation are obtained, and the above electricity usage data at least include current data, voltage data, frequency data and electricity data corresponding to the above substation users; then, time series characteristics and user behavior characteristics of the above electricity usage data are analyzed to obtain abnormal electricity usage data, and the above user behavior characteristics include the switching time and continuous use time corresponding to each of the above substation users; thereafter, the above abnormal electricity usage data are input into a violation determination model, and the electricity usage behavior status of the above substation users is output. The above violation determination model is a model for determining whether there is any illegal electricity usage behavior based on the above abnormal electricity usage data, and the above electricity usage behavior status includes normal electricity usage and illegal electricity usage; finally, in the case that the above electricity usage behavior status is the above illegal electricity usage, early warning information is generated and the violation information is recorded, and the above early warning information is used to prompt the above substation users that there is illegal electricity usage behavior. This application uses the acquired real-time electricity consumption data of users to analyze the time series characteristics of electricity consumption and the characteristics of user behavior, and makes abnormal judgments based on the analysis results of the time series characteristics and the characteristics of user behavior. The abnormal electricity consumption data is input into the violation judgment model and judged whether the user's electricity consumption is in violation of the regulations. This reduces manual operations, manual inspections and regular inspections, improves monitoring efficiency, and can monitor and discover users' illegal electricity consumption behaviors in real time. The violation judgment based on the algorithm has also been significantly improved in accuracy, stability, and intelligence. This application solves the problem of relying on manual inspections and regular inspections and low accuracy of the monitoring system in the prior art.
[0039] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the method for monitoring illegal electricity consumption in a substation of the present application will be described in detail below in combination with specific embodiments.
[0040] In order to facilitate management and improve the intelligence of the monitoring system, in an optional implementation, after the above step S201, the method further includes:
[0041] Step S301, matching is performed in the user archive according to the unique identification code of the above-mentioned substation user, and the above-mentioned electricity usage data is stored in the electricity usage archive corresponding to the above-mentioned user archive, the above-mentioned unique identification code is the unique identification of the above-mentioned substation user, and the above-mentioned user archive is a database storing the above-mentioned electricity usage archives of all the above-mentioned substation users, and the above-mentioned electricity usage archive includes the electricity equipment information, historical electricity usage data and historical violation records corresponding to the above-mentioned substation users.
[0042] In the above embodiment, a unique identification code is assigned to each of the above-mentioned substation users. This unique identification code is the unique identity of the above-mentioned substation user in the substation illegal electricity consumption monitoring system. Based on the unique identification code, a detailed user file is established for each substation user. The user file content includes the user's power equipment information, historical power consumption data and historical violation records. After the power consumption data of each substation user is collected in real time, the power consumption data is matched with the established user file, and the real-time collected power consumption data is accurately classified into the corresponding user file based on the unique identification code. The power consumption data of the substation users is classified through identification and file establishment, which is convenient for better management and query.
[0043] In order to improve the accuracy of determining illegal electricity usage, in an optional implementation, the above step S202 includes:
[0044] Step S2021, forming an electricity consumption time series according to a set time interval with the above electricity consumption data, and calculating the autocorrelation coefficient corresponding to each time node according to the expectation, standard deviation and mean of the above electricity consumption time series, and generating an autocorrelation coefficient curve according to all the above autocorrelation coefficients, wherein the above autocorrelation coefficient curve is a relationship curve between the above autocorrelation coefficients and the above time nodes, and the time interval between adjacent time nodes is the above set time interval;
[0045] Step S2022, calculating the average power consumption corresponding to the users in each of the above-mentioned areas based on the above-mentioned power consumption data;
[0046] Step S2023, multiplying the continuous use time by the average power consumption to obtain the standard power consumption;
[0047] Step S2024, when the first condition is met, the corresponding power consumption data is determined as abnormal power consumption data, and the first condition is that the actual power consumption in the power consumption data is greater than the standard power consumption and / or the autocorrelation coefficient on the autocorrelation coefficient curve is greater than a set threshold.
[0048] In the above embodiment, the electricity consumption data forms a time series X(t) with a length of N according to a set time interval (for example, ten minutes), calculates the expected value E and standard deviation σ of the time series X(t), and calculates the autocorrelation coefficient corresponding to each time node Where K is the time lag, that is, the time interval between different time nodes, and μ represents the mean value; an autocorrelation coefficient curve is generated based on all autocorrelation coefficients. The autocorrelation coefficient curve is used to measure the degree of correlation between different time nodes. The abscissa of the autocorrelation coefficient curve represents the time lag K, and the ordinate of the autocorrelation coefficient curve represents the value of the autocorrelation coefficient ρ. The autocorrelation coefficient is an indicator for measuring the correlation of power consumption of time series under different time lags. When the autocorrelation coefficient on the autocorrelation coefficient curve is greater than the set threshold, the corresponding power consumption data is marked as abnormal. The average power consumption of each user is calculated based on the power consumption data of the users in the substation area, and the standard power consumption is obtained by multiplying the duration of the user behavior characteristics and the average power consumption. The actual power consumption is compared with the standard power consumption. If the actual power consumption is higher than the standard power consumption, the corresponding point data is marked as abnormal, otherwise, it is not marked. That is, when the actual power consumption in the above power consumption data is greater than the above standard power consumption and / or the above autocorrelation coefficient on the above autocorrelation coefficient curve is greater than the set threshold, the corresponding above power consumption data is determined as abnormal power consumption data.
[0049] In order to ensure the accuracy of the model, in an optional implementation, before the above step S203, the method further includes:
[0050] Step S401, filtering out multiple frequent item sets in the abnormal power consumption data according to a support threshold, wherein the support threshold is the support of the minimum standard for filtering the frequent item sets, and the support is the frequency of occurrence of any one of the frequent item sets in the abnormal power consumption data. The frequent item set is an item set whose frequency of occurrence in the abnormal power consumption data is greater than the support threshold, and one frequent item set includes multiple items;
[0051] Step S402, generating a plurality of association rules based on the frequent item sets by using an association rule mining algorithm, and calculating the confidence and lift corresponding to each of the association rules, wherein the association rules are used to represent the association relationship between the frequent item sets, and one association rule corresponds to at least two of the frequent item sets;
[0052] Step S403, when the confidence is greater than the confidence threshold and the lift is greater than the lift threshold, the corresponding association rule is determined as a valid association rule;
[0053] Step S404: generating the violation determination model according to all the valid association rules.
[0054] In the above embodiment, a support threshold is set to filter out frequent item sets from the abnormal power consumption data. The support represents the frequency of occurrence of a certain item set in the abnormal power consumption data. The support threshold is a minimum support standard for filtering frequent item sets. Frequent item sets are item sets that appear in the abnormal power consumption data with a frequency exceeding the support threshold. In order to reduce the amount of abnormal power consumption data, only frequently occurring item sets are focused on, because frequently occurring item sets are more likely to contain useful association rules. Based on the above frequent item sets, an association rule mining algorithm is used to generate multiple association rules. The confidence and lift of each of the above association rules filtered out are calculated, and thresholds corresponding to the confidence and lift are set. Association rules greater than the corresponding set thresholds are considered to be valid and more likely to reflect the real abnormal power consumption data. A violation determination model is generated based on the valid association rules.
[0055] In order to measure the effectiveness and relevance of the association rules, in an optional implementation, the above step S402 includes:
[0056] Step S4021, calculating the probability that the existence of the prerequisite item in all the frequent item sets will lead to the existence of the associated item, and obtaining the confidence level, wherein the prerequisite item represents the prerequisite for making a decision in the frequent item set, and the associated item is the item in the frequent item set other than the prerequisite item;
[0057] Step S4022, calculating the ratio of the confidence level to the random probability to obtain the lift, where the random probability is the probability that the associated item exists in the frequent item set.
[0058] In the above embodiment, confidence refers to the probability that when item X appears in an association rule, item Y also appears. Rules with high confidence are usually more reliable. Lift refers to the ratio of the probability that item Y appears when item X appears to the probability that item Y appears randomly. A lift greater than 1 indicates that the appearance of item X has a positive impact on item Y, that is, there is a positive correlation between item X and item Y. A lift less than 1 indicates that the appearance of item X has a negative impact on item Y or the two are independent. A lift equal to 1 indicates that item X and item Y are completely independent.
[0059] In order to ensure that the violation determination model makes efficient decisions and improves accuracy, in an optional implementation, the above step S404 includes:
[0060] Step S4041, a first generation step, generating branches of a decision tree according to the characteristic attributes in each of the valid association rules, one of the frequent itemsets corresponds to one of the branches, and the characteristic attributes are data attributes in the electricity consumption data;
[0061] Step S4042, a second generation step, for the current branch, generating a sub-branch of the current branch according to the feature attributes corresponding to the frequent itemset, the current branch being the branch currently being processed;
[0062] Step S4043, repeating the first generation step and the second generation step until all the frequent item sets are processed, and generating the decision tree;
[0063] The decision tree is pruned to obtain the violation determination model.
[0064] In the above embodiment, the abnormal power consumption data is used as the initial node. For each valid association rule, a branch of the decision tree is constructed according to its characteristic attributes. Each frequent item set corresponds to a branch. For multiple frequent item sets, multiple branches can be constructed until all frequent item sets are processed to form leaf nodes, generate a decision tree, and prune the generated decision tree; the pruned decision tree is used as a violation determination model.
[0065] In order to improve the comprehensiveness of illegal electricity usage monitoring, in an optional implementation, after the above step S204, the method further includes:
[0066] Step S501, when the total violation record of any of the above-mentioned users in the substation area is greater than the violation threshold, a warning message is generated. The above-mentioned warning message is used to remind the above-mentioned users in the substation area that there is a risk of electricity consumption because the above-mentioned violation record exceeds the above-mentioned violation threshold. The above-mentioned total violation record refers to all the above-mentioned violation records recorded by the above-mentioned users in the substation area up to the current moment.
[0067] In the above embodiment, the violation records of all users in the substation are monitored. If the violation records of some users in the substation exceed a certain number, it means that there are major hidden dangers in the electricity use of users in the substation. In order to reduce safety hazards, warnings and processing are carried out in advance to ensure that illegal electricity use can be fully monitored.
[0068] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0069] The embodiment of the present application also provides a monitoring device for illegal electricity use in a substation. It should be noted that the monitoring device for illegal electricity use in a substation in the embodiment of the present application can be used to execute the monitoring method for illegal electricity use in a substation provided by the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and those that have been described will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0070] The following is an introduction to the monitoring device for illegal electricity usage in a substation provided in an embodiment of the present application.
[0071] Figure 3 Schematic diagram of a monitoring device for illegal electricity use in a substation according to an embodiment of the present application. Figure 3 As shown, the device comprises:
[0072] The acquisition unit 10 is used to acquire the power consumption data of the users in the substation area, and the power consumption data at least includes the current data, voltage data, frequency data and electricity data corresponding to the users in the substation area.
[0073] Specifically, the power consumption data of users in the substation area is collected in real time, including but not limited to current data, voltage data, frequency data and electricity data.
[0074] The analysis unit 20 is used to analyze the time series characteristics and user behavior characteristics of the above-mentioned power consumption data to obtain abnormal power consumption data. The above-mentioned user behavior characteristics include the switching time and continuous use time of the corresponding electrical appliances of the users in each of the above-mentioned substations.
[0075] Specifically, the time series characteristics of electricity consumption and the characteristics of user behavior are analyzed based on the electricity consumption data of users in the substation area, and the electricity consumption data with abnormal analysis results are marked as abnormal electricity consumption data.
[0076] The output unit 30 is used to input the above-mentioned abnormal power consumption data into the violation determination model, and output the power consumption behavior status of the above-mentioned substation users. The above-mentioned violation determination model is a model that determines whether there is any illegal power consumption behavior based on the above-mentioned abnormal power consumption data. The above-mentioned power consumption behavior status includes normal power consumption and illegal power consumption.
[0077] Specifically, the violation determination model can make real-time violation determinations on the electricity usage behavior of users in the substation area. It can use association rule algorithms to construct a violation determination model from abnormal electricity usage data and determine whether the user's electricity usage is in violation of regulations. This can reduce manual operations, manual inspections and regular testing, improve monitoring efficiency, and monitor and discover users' illegal electricity usage behavior in real time. The algorithm-based violation determination has also been significantly improved in accuracy, stability, and intelligence.
[0078] The first generating unit 40 is used to generate warning information and record violation information when the power usage behavior status is the illegal power usage. The warning information is used to remind the users in the above-mentioned area that there is illegal power usage behavior.
[0079] Specifically, after identifying the illegal electricity use behavior of users in the suburbs, an early warning message is immediately generated, and the illegal information is recorded, including the illegal user, the illegal time, and the illegal warning information, and all illegal records are saved in the user file. As an optional solution,
[0080] In this embodiment, an acquisition unit is used to acquire electricity usage data of users in a substation, and the above-mentioned electricity usage data at least includes current data, voltage data, frequency data and electricity data corresponding to the above-mentioned users in the substation; an analysis unit is used to perform time series feature and user behavior feature analysis on the above-mentioned electricity usage data to obtain abnormal electricity usage data, and the above-mentioned user behavior features include the switching time and continuous use time of the above-mentioned users in the substation; an output unit is used to input the above-mentioned abnormal electricity usage data into a violation determination model, and output the electricity usage behavior status of the above-mentioned users in the substation, and the above-mentioned violation determination model is a model for determining whether there is illegal electricity usage behavior based on the above-mentioned abnormal electricity usage data, and the above-mentioned electricity usage behavior status includes normal electricity usage and illegal electricity usage; a first generation unit is used to generate warning information and record violation information when the above-mentioned electricity usage behavior status is the above-mentioned illegal electricity usage, and the above-mentioned warning information is used to prompt the above-mentioned users in the substation that there is illegal electricity usage behavior. This application uses the acquired real-time electricity consumption data of users to analyze the time series characteristics of electricity consumption and the characteristics of user behavior, and makes abnormal judgments based on the analysis results of the time series characteristics and the characteristics of user behavior. The abnormal electricity consumption data is input into the violation judgment model and judged whether the user's electricity consumption is in violation of the regulations. This reduces manual operations, manual inspections and regular inspections, improves monitoring efficiency, and can monitor and discover users' illegal electricity consumption behaviors in real time. The violation judgment based on the algorithm has also been significantly improved in accuracy, stability, and intelligence. This application solves the problem of relying on manual inspections and regular inspections and low accuracy of the monitoring system in the prior art.
[0081] In order to facilitate management and improve the intelligence of the monitoring system, in an optional implementation, the device further includes:
[0082] The storage unit is used to, after acquiring the electricity usage data of the users in the substation, match the data in the user archive according to the unique identification code of the users in the substation, and store the electricity usage data in the electricity archive corresponding to the user archive, wherein the unique identification code is the unique identification of the users in the substation, and the user archive is a database storing the electricity usage archives of all the users in the substation, and the electricity usage archive includes the electricity equipment information, historical electricity usage data and historical violation records corresponding to the users in the substation.
[0083] In the above embodiment, a unique identification code is assigned to each of the above-mentioned substation users. This unique identification code is the unique identity of the above-mentioned substation user in the substation illegal electricity consumption monitoring system. Based on the unique identification code, a detailed user file is established for each substation user. The user file content includes the user's power equipment information, historical power consumption data and historical violation records. After the power consumption data of each substation user is collected in real time, the power consumption data is matched with the established user file, and the real-time collected power consumption data is accurately classified into the corresponding user file based on the unique identification code. The power consumption data of the substation users is classified through identification and file establishment, which is convenient for better management and query.
[0084] In order to improve the accuracy of determining illegal electricity usage, in an optional implementation, the analysis unit includes:
[0085] A first calculation module forms an electricity consumption time series according to a set time interval using the electricity consumption data, and calculates the autocorrelation coefficient corresponding to each time node according to the expectation, standard deviation and mean of the electricity consumption time series, and generates an autocorrelation coefficient curve according to all the autocorrelation coefficients, wherein the autocorrelation coefficient curve is a relationship curve between the autocorrelation coefficients and the time nodes, and the time interval between adjacent time nodes is the set time interval;
[0086] A second calculation module calculates the average power consumption corresponding to each of the users in the above-mentioned area based on the above-mentioned power consumption data;
[0087] A third calculation module is configured to multiply the continuous use time by the average power consumption to obtain a standard power consumption;
[0088] The determination module determines the corresponding power consumption data as abnormal power consumption data when a first condition is met. The first condition is that the actual power consumption in the power consumption data is greater than the standard power consumption and / or the autocorrelation coefficient on the autocorrelation coefficient curve is greater than a set threshold.
[0089] In the above embodiment, the electricity consumption data forms a time series X(t) with a length of N according to a set time interval (for example, ten minutes), calculates the expected value E and standard deviation σ of the time series X(t), and calculates the autocorrelation coefficient corresponding to each time node Where K is the time lag, that is, the time interval between different time nodes, and μ represents the mean value; an autocorrelation coefficient curve is generated based on all autocorrelation coefficients. The autocorrelation coefficient curve is used to measure the degree of correlation between different time nodes. The abscissa of the autocorrelation coefficient curve represents the time lag K, and the ordinate of the autocorrelation coefficient curve represents the value of the autocorrelation coefficient ρ. The autocorrelation coefficient is an indicator for measuring the correlation of power consumption of time series under different time lags. When the autocorrelation coefficient on the autocorrelation coefficient curve is greater than the set threshold, the corresponding power consumption data is marked as abnormal. The average power consumption of each user is calculated based on the power consumption data of the users in the substation area, and the standard power consumption is obtained by multiplying the duration of the user behavior characteristics and the average power consumption. The actual power consumption is compared with the standard power consumption. If the actual power consumption is higher than the standard power consumption, the corresponding point data is marked as abnormal, otherwise, it is not marked. That is, when the actual power consumption in the above power consumption data is greater than the above standard power consumption and / or the above autocorrelation coefficient on the above autocorrelation coefficient curve is greater than the set threshold, the corresponding above power consumption data is determined as abnormal power consumption data.
[0090] In order to ensure the accuracy of the model, in an optional embodiment, the device further includes:
[0091] A screening unit is used to screen out a plurality of frequent item sets in the abnormal power consumption data according to a support threshold before inputting the abnormal power consumption data into the violation determination model and outputting the power consumption behavior status of the user in the above-mentioned substation area, wherein the support threshold is the support of the minimum standard for screening the frequent item sets, the support is the frequency of occurrence of any one of the frequent item sets in the abnormal power consumption data, the frequent item set is an item set whose occurrence frequency in the abnormal power consumption data is greater than the support threshold, and one frequent item set includes a plurality of items;
[0092] A calculation unit, used to generate multiple association rules based on the frequent item sets by using an association rule mining algorithm, and calculate the confidence and lift corresponding to each of the association rules, wherein the association rules are used to represent the association relationship between the frequent item sets, and one association rule corresponds to at least two of the frequent item sets;
[0093] A determination unit, configured to determine the corresponding association rule as a valid association rule when the confidence is greater than the confidence threshold and the lift is greater than the lift threshold;
[0094] The second generating unit is used to generate the above-mentioned violation determination model according to all the above-mentioned valid association rules.
[0095] In the above embodiment, a support threshold is set to filter out frequent item sets from the abnormal power consumption data. The support represents the frequency of occurrence of a certain item set in the abnormal power consumption data. The support threshold is a minimum support standard for filtering frequent item sets. Frequent item sets are item sets that appear in the abnormal power consumption data with a frequency exceeding the support threshold. In order to reduce the amount of abnormal power consumption data, only frequently occurring item sets are focused on, because frequently occurring item sets are more likely to contain useful association rules. Based on the above frequent item sets, an association rule mining algorithm is used to generate multiple association rules. The confidence and lift of each of the above association rules filtered out are calculated, and thresholds corresponding to the confidence and lift are set. Association rules greater than the corresponding set thresholds are considered to be valid and more likely to reflect the real abnormal power consumption data. A violation determination model is generated based on the valid association rules.
[0096] In order to measure the effectiveness and relevance of the association rules, in an optional implementation, the calculation unit includes:
[0097] A fourth calculation module calculates the probability that the existence of the prerequisite item in all the frequent item sets causes the existence of the associated item to obtain the confidence level, wherein the prerequisite item represents the prerequisite for making a decision in the frequent item set, and the associated item is the item in the frequent item set other than the prerequisite item;
[0098] The fifth calculation module calculates the ratio of the confidence level to the random probability to obtain the lift, where the random probability is the probability that the associated item exists in the frequent item set.
[0099] In the above embodiment, confidence refers to the probability that when item X appears in an association rule, item Y also appears. Rules with high confidence are usually more reliable. Lift refers to the ratio of the probability that item Y appears when item X appears to the probability that item Y appears randomly. A lift greater than 1 indicates that the appearance of item X has a positive impact on item Y, that is, there is a positive correlation between item X and item Y. A lift less than 1 indicates that the appearance of item X has a negative impact on item Y or the two are independent. A lift equal to 1 indicates that item X and item Y are completely independent.
[0100] In order to ensure that the violation determination model makes efficient decisions and improves accuracy, in an optional implementation, the second generation unit includes:
[0101] A first generating module, used to execute the first generating step, generating branches of a decision tree according to the characteristic attributes in each of the valid association rules, wherein one of the frequent item sets corresponds to one of the branches, and the characteristic attributes are data attributes in the electricity consumption data;
[0102] A second generating module is used to execute the second generating step, for a current branch, generating a sub-branch of the current branch according to the feature attributes corresponding to the frequent item set, the current branch being the branch currently being processed;
[0103] Repeating module, repeating the first generation step and the second generation step until all the frequent item sets are processed, and generating the decision tree;
[0104] The processing module prunes the decision tree to obtain the violation determination model.
[0105] In the above embodiment, the abnormal power consumption data is used as the initial node. For each valid association rule, a branch of the decision tree is constructed according to its characteristic attributes. Each frequent item set corresponds to a branch. For multiple frequent item sets, multiple branches can be constructed until all frequent item sets are processed to form leaf nodes, generate a decision tree, and prune the generated decision tree; the pruned decision tree is used as a violation determination model.
[0106] In order to improve the comprehensiveness of illegal electricity usage monitoring, in an optional implementation, the device further includes:
[0107] The prompt unit is used to generate early warning information and record violation information when the above-mentioned electricity usage behavior status is the above-mentioned illegal electricity usage. When the total violation record of any of the above-mentioned substation users is greater than the violation threshold, a warning message is generated. The above-mentioned warning information is used to prompt the above-mentioned substation users that the above-mentioned violation records exceed the above-mentioned violation threshold and there is a risk of electricity usage. The above-mentioned total violation records are all the above-mentioned violation records recorded by the above-mentioned substation users up to the current moment.
[0108] In the above embodiment, the violation records of all users in the substation are monitored. If the violation records of some users in the substation exceed a certain number, it means that there are major hidden dangers in the electricity use of users in the substation. In order to reduce safety hazards, warnings and processing are carried out in advance to ensure that illegal electricity use can be fully monitored.
[0109] The monitoring device for illegal electricity use in the above-mentioned substation includes a processor and a memory, and the above-mentioned acquisition unit, analysis unit, output unit and first generation unit are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions. The above-mentioned modules are all located in the same processor; or, the above-mentioned modules are located in different processors in any combination.
[0110] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the problem of relying on manual inspection and regular detection and low accuracy of the monitoring system in the prior art can be solved by adjusting kernel parameters.
[0111] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0112] An embodiment of the present invention provides a computer-readable storage medium, which includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned monitoring method for illegal electricity consumption in the substation.
[0113] Specifically, the monitoring methods for illegal electricity use in the substation include:
[0114] Step S201, obtaining electricity consumption data of users in the substation area, wherein the electricity consumption data at least includes current data, voltage data, frequency data and electricity data corresponding to the users in the substation area;
[0115] Step S202, analyzing the time series characteristics and user behavior characteristics of the above-mentioned power consumption data to obtain abnormal power consumption data, wherein the above-mentioned user behavior characteristics include the switching time and continuous use time of the corresponding electrical appliances of the users in each of the above-mentioned substations;
[0116] Step S203, inputting the abnormal power consumption data into a violation determination model, and outputting the power consumption behavior status of the users in the above-mentioned area, wherein the violation determination model is a model for determining whether there is any violation of power consumption behavior based on the abnormal power consumption data, and the power consumption behavior status includes normal power consumption and violation of power consumption;
[0117] Step S204, when the electricity usage behavior status is the illegal electricity usage, generate warning information and record the violation information, the warning information is used to remind the users in the above-mentioned area that there is illegal electricity usage behavior.
[0118] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the program executes the monitoring method for illegal electricity consumption in the above-mentioned area when running.
[0119] Specifically, the monitoring methods for illegal electricity use in the substation include:
[0120] Step S201, obtaining the electricity consumption data of users in the substation area, wherein the electricity consumption data at least includes current data, voltage data, frequency data and electricity data corresponding to the users in the substation area;
[0121] Step S202, analyzing the time series characteristics and user behavior characteristics of the above-mentioned power consumption data to obtain abnormal power consumption data, wherein the above-mentioned user behavior characteristics include the switching time and continuous use time of the corresponding electrical appliances of the users in each of the above-mentioned substations;
[0122] Step S203, inputting the abnormal power consumption data into a violation determination model, and outputting the power consumption behavior status of the users in the above-mentioned area, wherein the violation determination model is a model for determining whether there is any violation of power consumption behavior based on the abnormal power consumption data, and the power consumption behavior status includes normal power consumption and violation of power consumption;
[0123] Step S204, when the electricity usage behavior status is the illegal electricity usage, generate warning information and record the violation information, the warning information is used to remind the users in the above-mentioned area that there is illegal electricity usage behavior.
[0124] An embodiment of the present invention provides a system for monitoring illegal electricity consumption in a substation area. The system includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, at least the following steps are implemented:
[0125] Step S201, obtaining the electricity consumption data of users in the substation area, wherein the electricity consumption data at least includes current data, voltage data, frequency data and electricity data corresponding to the users in the substation area;
[0126] Step S202, analyzing the time series characteristics and user behavior characteristics of the above-mentioned power consumption data to obtain abnormal power consumption data, wherein the above-mentioned user behavior characteristics include the switching time and continuous use time of the corresponding electrical appliances of the users in each of the above-mentioned substations;
[0127] Step S203, inputting the abnormal power consumption data into a violation determination model, and outputting the power consumption behavior status of the users in the above-mentioned area, wherein the violation determination model is a model for determining whether there is any violation of power consumption behavior based on the abnormal power consumption data, and the power consumption behavior status includes normal power consumption and violation of power consumption;
[0128] Step S204, when the electricity usage behavior status is the illegal electricity usage, generate warning information and record the violation information, the warning information is used to remind the users in the above-mentioned area that there is illegal electricity usage behavior.
[0129] The present application also provides a computer program product, including computer instructions, which, when executed by a processor, at least implement the following method steps:
[0130] Step S201, obtaining the electricity consumption data of users in the substation area, wherein the electricity consumption data at least includes current data, voltage data, frequency data and electricity data corresponding to the users in the substation area;
[0131] Step S202, analyzing the time series characteristics and user behavior characteristics of the above-mentioned power consumption data to obtain abnormal power consumption data, wherein the above-mentioned user behavior characteristics include the switching time and continuous use time of the corresponding electrical appliances of the users in each of the above-mentioned substations;
[0132] Step S203, inputting the abnormal power consumption data into a violation determination model, and outputting the power consumption behavior status of the users in the above-mentioned area, wherein the violation determination model is a model for determining whether there is any violation of power consumption behavior based on the abnormal power consumption data, and the power consumption behavior status includes normal power consumption and violation of power consumption;
[0133] Step S204, when the electricity usage behavior status is the illegal electricity usage, generate warning information and record the violation information, the warning information is used to remind the users in the above-mentioned area that there is illegal electricity usage behavior.
[0134] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0135] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0136] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0137] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0138] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0139] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0140] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0141] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0142] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0143] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0144] 1) The monitoring method for illegal electricity usage in a substation of the present application first obtains electricity usage data of users in the substation, and the above electricity usage data at least includes current data, voltage data, frequency data and electricity data corresponding to the above users in the substation; then, the time series characteristics and user behavior characteristics of the above electricity usage data are analyzed to obtain abnormal electricity usage data, and the above user behavior characteristics include the switching time and continuous use time corresponding to each user in the above substation; thereafter, the above abnormal electricity usage data is input into a violation determination model, and the electricity usage behavior status of the users in the above substation is output. The above violation determination model is a model for determining whether there is illegal electricity usage behavior based on the above abnormal electricity usage data, and the above electricity usage behavior status includes normal electricity usage and illegal electricity usage; finally, in the case that the above electricity usage behavior status is the above illegal electricity usage, early warning information is generated and the violation information is recorded, and the above early warning information is used to prompt the users in the above substation that there is illegal electricity usage behavior. This application uses the acquired real-time electricity consumption data of users to analyze the time series characteristics of electricity consumption and the characteristics of user behavior, and makes abnormal judgments based on the analysis results of the time series characteristics and the characteristics of user behavior. The abnormal electricity consumption data is input into the violation judgment model and judged whether the user's electricity consumption is in violation of the regulations. This reduces manual operations, manual inspections and regular inspections, improves monitoring efficiency, and can monitor and discover users' illegal electricity consumption behaviors in real time. The violation judgment based on the algorithm has also been significantly improved in accuracy, stability, and intelligence. This application solves the problem of relying on manual inspections and regular inspections and low accuracy of the monitoring system in the prior art.
[0145] 2) The monitoring device for illegal electricity usage in the substation of the present application comprises an acquisition unit for acquiring electricity usage data of users in the substation, wherein the electricity usage data at least includes current data, voltage data, frequency data and electricity data corresponding to the users in the substation; an analysis unit for performing time series feature and user behavior feature analysis on the electricity usage data to obtain abnormal electricity usage data, wherein the user behavior features include the time of switching electrical appliances on and off and the continuous use time of the users in the substation; an output unit for inputting the abnormal electricity usage data into a violation determination model, and outputting the electricity usage behavior status of the users in the substation, wherein the violation determination model is a model for determining whether there is illegal electricity usage behavior based on the abnormal electricity usage data, and the electricity usage behavior status includes normal electricity usage and illegal electricity usage; a first generation unit for generating warning information and recording violation information when the electricity usage behavior status is the illegal electricity usage, wherein the warning information is used to prompt the users in the substation to have illegal electricity usage behavior. This application uses the acquired real-time electricity consumption data of users to analyze the time series characteristics of electricity consumption and the characteristics of user behavior, and makes abnormal judgments based on the analysis results of the time series characteristics and the characteristics of user behavior. The abnormal electricity consumption data is input into the violation judgment model and judged whether the user's electricity consumption is in violation of the regulations. This reduces manual operations, manual inspections and regular inspections, improves monitoring efficiency, and can monitor and discover users' illegal electricity consumption behaviors in real time. The violation judgment based on the algorithm has also been significantly improved in accuracy, stability, and intelligence. This application solves the problem of relying on manual inspections and regular inspections and low accuracy of the monitoring system in the prior art.
[0146] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for monitoring illegal electricity use in a substation, characterized in that: include: Acquire electricity consumption data of users in the substation area, wherein the electricity consumption data at least includes current data, voltage data, frequency data and electricity data corresponding to the users in the substation area; Perform time series feature and user behavior feature analysis on the power consumption data to obtain abnormal power consumption data, wherein the user behavior feature includes the switching time and continuous use time of the corresponding electrical appliances of the users in each of the substations; The abnormal power consumption data is input into a violation determination model, and the power consumption behavior status of the users in the substation area is obtained as an output. The violation determination model is a model for determining whether there is any violation of power consumption behavior based on the abnormal power consumption data, and the power consumption behavior status includes normal power consumption and violation of power consumption; In the case where the electricity usage behavior status is the illegal electricity usage, warning information is generated and the violation information is recorded, and the warning information is used to prompt the user in the substation area that there is illegal electricity usage behavior.
2. The method according to claim 1, characterized in that After obtaining the electricity consumption data of users in the substation area, the method further includes: The electricity usage data is stored in the electricity usage file corresponding to the user archive library according to the unique identification code of the substation user. The unique identification code is the unique identification of the substation user. The user archive library is a database that stores the electricity usage files of all the users in the substation. The electricity usage file includes the electricity equipment information, historical electricity usage data and historical violation records corresponding to the substation user.
3. The method according to claim 1, characterized in that Performing time series feature analysis and user behavior feature analysis on the power consumption data to obtain abnormal power consumption data, including: The power consumption data is formed into a power consumption time series according to a set time interval, and the autocorrelation coefficient corresponding to each time node is calculated according to the expectation, standard deviation and mean of the power consumption time series, and an autocorrelation coefficient curve is generated according to all the autocorrelation coefficients, wherein the autocorrelation coefficient curve is a relationship curve between the autocorrelation coefficient and the time node, and the time interval between adjacent time nodes is the set time interval; Calculate the average power consumption corresponding to each user in the substation based on the power consumption data; Multiplying the continuous use time by the average power consumption to obtain the standard power consumption; When a first condition is met, the corresponding power consumption data is determined as abnormal power consumption data, and the first condition is that the actual power consumption in the power consumption data is greater than the standard power consumption and / or the autocorrelation coefficient on the autocorrelation coefficient curve is greater than a set threshold.
4. The method according to claim 1, characterized in that: Before inputting the abnormal power consumption data into the violation determination model to output the power consumption behavior status of the users in the substation area, the method further includes: Filter out multiple frequent item sets in the abnormal power consumption data according to a support threshold, wherein the support threshold is the support of the minimum standard for filtering the frequent item sets, and the support is the frequency of occurrence of any one of the frequent item sets in the abnormal power consumption data. The frequent item set is an item set whose frequency of occurrence in the abnormal power consumption data is greater than the support threshold, and a frequent item set includes multiple items; Based on the frequent item sets, an association rule mining algorithm is used to generate multiple association rules, and the confidence and lift corresponding to each of the association rules are calculated. The association rules are used to represent the association relationship between the frequent item sets, and one association rule corresponds to at least two frequent item sets; In the case where the confidence is greater than the confidence threshold and the lift is greater than the lift threshold, determining the corresponding association rule as a valid association rule; The violation determination model is generated according to all the valid association rules.
5. The method according to claim 4, characterized in that Based on the frequent item sets, an association rule mining algorithm is used to generate multiple association rules, and the confidence and lift corresponding to each of the association rules are calculated, including: Calculating the probability that the existence of the prerequisite item in all the frequent item sets causes the existence of the associated item to obtain the confidence, wherein the prerequisite item represents the prerequisite for making a decision in the frequent item set, and the associated item is the item in the frequent item set other than the prerequisite item; The lift is obtained by calculating a ratio of the confidence level to a random probability, where the random probability is a probability that the associated item exists in the frequent item set.
6. The method according to claim 4, characterized in that Generating the violation determination model according to all the valid association rules includes: A first generation step is to generate branches of a decision tree according to characteristic attributes in each of the valid association rules, wherein one frequent item set corresponds to one branch, and the characteristic attributes are data attributes in the electricity consumption data; The second generation step is to generate, for a current branch, a sub-branch of the current branch according to the characteristic attributes corresponding to the frequent item set, wherein the current branch is the branch currently being processed; Repeating the first generating step and the second generating step until all the frequent item sets are processed, thereby generating the decision tree; The decision tree is pruned to obtain the violation determination model.
7. The method according to claim 1, characterized in that When the electricity usage behavior status is the illegal electricity usage, after generating warning information and recording the illegal information, the method further includes: When the total violation record of any one of the users in the substation area is greater than the violation threshold, a warning message is generated, wherein the warning message is used to remind the user in the substation area that there is a risk of electricity consumption because the violation record exceeds the violation threshold, and the total violation record refers to all the violation records recorded by the user in the substation area up to the current moment.
8. A monitoring device for illegal electricity use in a substation, characterized in that: The device comprises: An acquisition unit, used to acquire power consumption data of users in the substation area, wherein the power consumption data at least includes current data, voltage data, frequency data and electricity data corresponding to the users in the substation area; An analysis unit is used to analyze the power consumption data by time series characteristics and user behavior characteristics to obtain abnormal power consumption data, wherein the user behavior characteristics include the time of switching on and off electrical appliances and the continuous use time of the users in the substation area; An output unit, used to input the abnormal power consumption data into a violation determination model, and output the power consumption behavior status of the user in the substation area, wherein the violation determination model is a model for determining whether there is a violation of power consumption behavior based on the abnormal power consumption data, and the power consumption behavior status includes normal power consumption and violation of power consumption; The first generating unit is used to generate warning information and record violation information when the electricity usage behavior status is the illegal electricity usage, and the warning information is used to prompt the user in the substation area that there is illegal electricity usage behavior.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.
10. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Intelligent identification method for illegal power utilization in power distribution area considering multi-source measurement data quality
CN119416133A
Intelligent identification method of illegal power consumption in distribution substation area considering the quality of multi-source measurement data
CN119416133B
