A blockchain-based electricity theft early warning system and method

Through a blockchain-based power stolen warning system, the secondary power monitoring device and blockchain storage control module are used to store power consumption data in the related storage, which solves the problems of low accuracy of power stolen monitoring, difficulty in positioning and poor anti-interference in the existing technology, and achieves efficient and accurate power stolen warning.

CN113886475BActive Publication Date: 2025-04-22NORTH CHINA ELECTRIC POWER UNIV
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111123251.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-24
Publication Date
2025-04-22
Estimated Expiration
2041-09-24

AI Technical Summary

Technical Problem

The prior art has low detection accuracy, inability to locate the power stolen point, low efficiency and poor anti-interference in power stolen monitoring.

Method used

The blockchain-based power stolen warning system is adopted, and the associated storage and power stolen warning of power consumption data are realized through the secondary power monitoring device, the blockchain storage control module and the warning module.

Benefits of technology

It improves the accuracy and efficiency of power theft warning, enhances the anti-interference ability, and can quickly and accurately monitor and locate power theft behavior.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113886475B_ABST
    Figure CN113886475B_ABST
Patent Text Reader

Abstract

The present invention provides a blockchain-based electricity theft warning system and method. The system includes: a secondary power monitoring device, which is used to monitor the power consumption data of the primary branch of the power grid trunk, and store the first associated parameter value and the second associated parameter value; a blockchain storage control module, which is used to regularly obtain the power consumption data monitored by each secondary power monitoring device at different times, and to associate the power consumption data of the same secondary power monitoring device at different times to form a first associated parameter value, and to associate the first associated parameter values ​​of different secondary power monitoring devices at the same time to form multiple second associated parameter values; an early warning module, which is used to determine whether it is necessary to issue an electricity theft warning. The present invention has the advantages of simple operation, high early warning accuracy, high efficiency and strong anti-interference.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electricity management, and in particular to a blockchain-based electricity theft early warning system and method. Background Art

[0002] When using electricity, users use meters to measure their electricity usage. However, in reality, various types of electricity theft may occur. For example, users steal electricity by bypassing the meter so that the current does not pass through the meter, or by modifying the data displayed on the meter. If the above-mentioned electricity theft methods rely on manual monitoring, they are often difficult to detect directly, and manual monitoring is costly and time-consuming.

[0003] An automatic monitoring method for electricity theft in the prior art includes directly monitoring the total electricity meter data and then comparing it with the sum of the data of each sub-meter. If they are the same, it is considered that there is no electricity theft, otherwise it is considered that there is electricity theft.

[0004] The above-mentioned disadvantages of an automatic monitoring method for electricity theft in the prior art are:

[0005] 1. Low detection accuracy. Since there will be transmission loss during the transmission of electric energy and measurement errors in the electric energy meter itself, there will be a certain difference between the total meter and the total of the sub-meters. If we simply compare the total meter and the total of the sub-meters, when there are very few users stealing electricity, the difference cannot directly determine whether it is caused by theft or line loss, etc. Therefore, the actual detection accuracy is not high, and it is difficult to accurately determine whether electricity theft has occurred;

[0006] 2. Unable to locate the electricity theft point and low efficiency. It can only simply determine whether there is electricity theft, but cannot accurately locate the location where the electricity theft occurs. It also takes a lot of time to identify the electricity theft point from a large number of electricity distribution meters, and the detection efficiency is still low.

[0007] 3. Poor anti-interference. Since it is just a simple comparison of the total meter and the total of the sub-meters, if there is a large measurement error or failure in each meter, the entire system will be unable to determine whether there is electricity theft. Summary of the invention

[0008] The embodiments of the present invention provide a blockchain-based electricity theft warning system and method, which can realize electricity theft warning with simple operation, high warning accuracy, high efficiency and strong anti-interference ability.

[0009] In order to achieve the above object, the present invention adopts the following technical scheme.

[0010] According to one aspect of the present invention, there is provided a blockchain-based electricity theft warning system, comprising: a secondary power monitoring device, a blockchain storage control module, and an early warning module;

[0011] The secondary power monitoring device is used to monitor the power consumption data of the primary branch of the power grid trunk, and store the first associated parameter value and the second associated parameter value sent by the blockchain storage control module;

[0012] The blockchain storage control module is used to periodically obtain the power consumption data monitored by each secondary power monitoring device at different times, perform data association on the power consumption data of the same secondary power monitoring device at different times to form a first associated parameter value, and perform data association on the first associated parameter values ​​of different secondary power monitoring devices at the same time to form multiple second associated parameter values, and send the first associated parameter value and the second associated parameter value to each secondary power monitoring device respectively;

[0013] The early warning module is used to determine whether it is necessary to issue an electricity theft early warning based on the correlation between the first associated parameter value and the second associated parameter value stored in each secondary power monitoring device.

[0014] Preferably, the system further comprises:

[0015] The primary power monitoring device is used to be arranged on the main line of the power grid to monitor the power consumption on the main line of the power grid. The primary power monitoring device and the secondary power monitoring device perform high-performance liquid chromatography (HPLC) high-speed carrier communication through power lines.

[0016] Preferably, the blockchain storage control module includes:

[0017] a first association unit, configured to periodically obtain power consumption data monitored by each secondary power monitoring device at different times, and to associate the obtained power consumption data with the first association parameter value obtained last time each time the power consumption data is obtained, so as to generate a new first association parameter value;

[0018] A second association unit is used to periodically obtain the first associated parameter value corresponding to each secondary power monitoring device at the same time, and each time the first associated parameter value is obtained, the obtained first associated parameter value is data-associated with the second associated parameter value obtained last time to form a new second associated parameter value;

[0019] A storage control unit is used to send all the first associated parameter values ​​and the second associated parameter values ​​to each secondary power monitoring device for storage, thereby forming a blockchain storage of the first associated parameter values ​​and the second associated parameter values.

[0020] Preferably, the early warning module includes:

[0021] A judging unit, used to judge whether the first associated parameter value and the second associated parameter value stored in each secondary power monitoring device are consistent, and if there is inconsistency, obtain information of the inconsistent secondary power monitoring device and transfer it to the early warning unit;

[0022] The early warning unit is used to send electricity theft early warning information according to the information of the inconsistent secondary power monitoring device.

[0023] Preferably, the secondary power monitoring device comprises an electric energy metering unit, a processor unit and a communication module, and the secondary power monitoring device is connected to a primary power monitoring device for monitoring a power grid trunk line.

[0024] According to another aspect of the present invention, a blockchain-based electricity theft early warning method is provided, the method comprising:

[0025] S1. Monitor the power consumption data of each primary branch of the power grid through each secondary power monitoring device;

[0026] S2. Regularly obtain the power consumption data monitored by each secondary power monitoring device at different times, associate the power consumption data of the same secondary power monitoring device at different times to form a first associated parameter value, and associate the first associated parameter values ​​of different secondary power monitoring devices at the same time to form multiple second associated parameter values, and store the first associated parameter values ​​and the second associated parameter values ​​in each secondary power monitoring device respectively;

[0027] S3. Determine whether it is necessary to issue a power theft warning based on the correlation between the first associated parameter value and the second associated parameter value stored in each secondary power monitoring device.

[0028] Preferably, the step S2 specifically includes:

[0029] S101. Regularly obtain the power consumption data monitored by each secondary power monitoring device at different times, and associate the obtained power consumption data with the first associated parameter value obtained last time each time the power consumption data is obtained to generate a new first associated parameter value;

[0030] S102. Periodically obtain the first associated parameter value corresponding to each secondary power monitoring device at the same time, and each time the first associated parameter value is obtained, the obtained first associated parameter value is associated with the second associated parameter value obtained last time to form a new second associated parameter value;

[0031] S103. All the first associated parameter values ​​and the second associated parameter values ​​are sent to each secondary power monitoring device for storage, forming a blockchain storage of the first associated parameter values ​​and the second associated parameter values.

[0032] Preferably, the step S101 specifically includes:

[0033] When the power consumption data monitored by the target secondary power monitoring device at the specified time is obtained for the first time, the first hash value of the target secondary power monitoring device is generated using a hash function based on the obtained power consumption data. When the power consumption data monitored by the target secondary power monitoring device at the specified time is obtained next time, a new hash value of the target secondary power monitoring device is generated based on the obtained power consumption data and the hash value obtained last time.

[0034] Preferably, the step S102 specifically includes:

[0035] When the first associated parameter value of the target secondary power monitoring device at a specified time is obtained for the first time, a first hash header is generated using a hash function. When the first associated parameter value corresponding to the adjacent secondary power monitoring device at the same time is obtained next time, a new hash header value of the target secondary power monitoring device is generated based on the first associated parameter value obtained and the hash header value obtained last time.

[0036] Preferably, the step S3 specifically includes:

[0037] S301. Determine whether the first associated parameter value and the second associated parameter value stored in each secondary power monitoring device are consistent. If there is inconsistency, obtain the information of the inconsistent secondary power monitoring device and proceed to S302;

[0038] S302. Send electricity theft warning information based on the information of the inconsistent secondary power monitoring device, judge the relationship between the power consumption data obtained by the primary power monitoring device at the same time and the sum of the power consumption data obtained by all the secondary power monitoring devices, and determine whether it is necessary to issue an electricity theft alarm information based on the judgment result.

[0039] It can be seen from the technical solutions provided by the above-mentioned embodiments of the present invention that the present invention can realize electricity theft warning based on the blockchain model. Due to the use of a distributed storage method, once the associated parameter value in a block on any power monitoring device changes, the changed power monitoring device can be easily and quickly monitored through the associated parameter values ​​stored in the remaining power monitoring devices, thereby facilitating the monitoring of electricity theft by modifying the meter value.

[0040] Additional aspects and advantages of the present invention will be given in part in the following description, which will become obvious from the following description, or may be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0042] Figure 1 It is a structural schematic diagram of a blockchain-based electricity theft warning system according to an embodiment of the present invention.

[0043] Figure 2 Schematic diagram of the structure of the sensor module in the embodiment of the present invention.

[0044] Figure 3 It is a schematic diagram of the implementation process of the electricity theft warning method based on blockchain in an embodiment of the present invention.

[0045] Figure 4 It is a detailed flow chart of generating the first associated parameter value in a specific application embodiment of the present invention.

[0046] Figure 5 It is a detailed flow chart of generating the second associated parameter value in a specific application embodiment of the present invention. DETAILED DESCRIPTION

[0047] The embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be interpreted as limiting the present invention.

[0048] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, the "connection" or "coupling" used herein may include wireless connection or coupling. The term "and / or" used herein includes any unit and all combinations of one or more associated listed items.

[0049] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless defined as herein.

[0050] To facilitate understanding of the embodiments of the present invention, several specific embodiments will be further explained below with reference to the accompanying drawings, and each embodiment does not constitute a limitation on the embodiments of the present invention.

[0051] The structure diagram of a blockchain-based electricity theft warning system provided by an embodiment of the present invention is as follows: Figure 1 As shown, the following modules are included: an early warning module, a blockchain storage control module, a secondary power monitoring device, a primary power monitoring device and a data center that are connected to each other in sequence. There are multiple secondary power monitoring devices, which are respectively arranged on the primary branches of each power grid trunk, and there is one primary power monitoring device, which is arranged on the power grid trunk.

[0052] The early warning module and the blockchain storage control module do not need to process the electricity consumption data monitored by the first-level power monitoring device. The early warning module only compares the correlation between the first associated parameter value and the second associated parameter value stored in each second-level power monitoring device to determine whether it is necessary to issue an electricity theft warning. The blockchain storage control module is only used to obtain the electricity consumption data monitored by each second-level power monitoring device at different times.

[0053] The blockchain storage control module is used to periodically obtain the power consumption data monitored by each secondary power monitoring device at different times. Each secondary power monitoring device is used to monitor the power consumption data of the primary branch of the power grid trunk, and the power consumption data of the same secondary power monitoring device at different times are data-associated to form a first associated parameter value, and the first associated parameter values ​​of different secondary power monitoring devices at the same time are data-associated to form multiple second associated parameter values, and the above-mentioned first associated parameter values ​​and second associated parameter values ​​are respectively stored in each secondary power monitoring device to form blockchain storage;

[0054] The early warning module is used to determine whether it is necessary to issue an electricity theft early warning according to the correlation between the first associated parameter value and the second associated parameter value stored in each secondary power monitoring device.

[0055] The embodiment of the present invention configures a blockchain storage control module and an early warning module, and the blockchain storage control module regularly associates the power consumption data of the same secondary power monitoring device at different times to form a first associated parameter value, and at the same time associates the first associated parameter value of each secondary power monitoring device at the same time to form a second associated parameter value, and stores the second associated parameter value in each secondary power monitoring device in a distributed manner. Then, the early warning module performs an electricity theft early warning based on the correlation of the second associated parameter values ​​stored in each secondary power monitoring device, and an electricity theft early warning based on the blockchain mode can be realized. Due to the use of a distributed storage method, the possibility of simultaneous tampering of the data of the secondary power monitoring devices is very small. Therefore, once the associated parameter value in the block on any power monitoring device changes, the changed power monitoring device can be easily and quickly monitored through the associated parameter values ​​stored on the remaining power monitoring devices, which is convenient for monitoring the electricity theft behavior by modifying the meter value.

[0056] The embodiment of the present invention forms a first associated parameter value by associating the power consumption data of the secondary power monitoring device. Once the power consumption data at any time is tampered with, the first associated parameter value of the power consumption data at the subsequent time will also change. At the same time, by associating the first associated parameter value of each secondary power monitoring device at the same time, once the power consumption data of any secondary power monitoring device is tampered with, the tampering behavior can be monitored by comparing the second associated parameter values ​​stored in other secondary power monitoring devices, which can facilitate fast and accurate monitoring of power theft behaviors that modify table values. At the same time, since only the associated parameter values ​​need to be stored, the amount of data storage can be greatly reduced, and accurate power theft warning can be achieved without storing complete power consumption data.

[0057] In an embodiment of the present invention, a primary power monitoring device monitors power consumption on a main power grid, a secondary power monitoring device monitors power consumption on a primary branch, and HPLC (High Performance Liquid Chromatography) high-speed carrier communication is performed between the primary power monitoring device and the secondary power monitoring device via power lines.

[0058] In a specific application embodiment, the primary power monitoring device specifically includes a primary meter, a primary processor, a wireless communication module and a concentrator, the concentrator is electrically connected to the primary processor, the primary meter is electrically connected to the primary processor, the wireless communication module is electrically connected to the primary processor, the wireless communication module is electrically connected to the data center, and the primary power monitoring device is electrically connected to the power grid trunk. The secondary power monitoring device includes a secondary meter, a secondary processor, a secondary carrier transmitter and a secondary carrier receiver, and different secondary power monitoring devices are connected to each other through the secondary carrier receiver, so that the secondary power monitoring devices can communicate with each other, the secondary carrier transmitter is specifically connected to the primary processor wire, the secondary meter is connected to the secondary processor wire, the secondary carrier transmitter is connected to the concentrator wire through the power line, and the secondary power monitoring device wire is connected to the primary branch under the power grid trunk where the secondary power monitoring device is located. The secondary power monitoring device is specifically set to N units, and N is a positive integer greater than 1. The concentrator is used for HPLC carrier transmission and reception, the secondary carrier receiver is a device for HPLC carrier reception, and the secondary carrier transmitter is a device for HPLC carrier transmission. The above-mentioned primary processor and secondary processor can specifically adopt controller components with peripheral circuits such as Arduino, PLC or Raspberry Pi.

[0059] In the embodiment of the present invention, a sensor module is further provided on the primary branch between the primary power monitoring device and the secondary power monitoring device. Figure 2 is a schematic diagram of the structure of the sensor module in an embodiment of the present invention. Figure 2 As shown, the sensing module specifically includes a temperature sensor, a humidity sensor, and a sensing carrier transmitter, etc. The sensing carrier transmitter is connected to the temperature sensor and the humidity sensor. The temperature sensor and the humidity sensor are used to monitor the temperature and humidity parameters of the primary branch, respectively, so as to predict the power loss of the primary branch. The power theft alarm threshold is adjusted in real time through the prediction of the power loss to avoid the problem of false alarm or no alarm. The sensing carrier transmitter is used for HPLC carrier transmission. The sensing carrier transmitter is electrically connected to the concentrator through the power line. The sensing module can be specifically set to j, where j is a positive integer greater than 1.

[0060] In an embodiment of the present invention, the blockchain storage control module includes:

[0061] A first association unit is used to periodically obtain power consumption data monitored by each secondary power monitoring device at different times, and each time the power consumption data is obtained, the obtained power consumption data is associated with the first association parameter value obtained last time to generate a new first association parameter value;

[0062] A second association unit is used to periodically obtain the first associated parameter value corresponding to each secondary power monitoring device at the same time, and each time the first associated parameter value is obtained, the obtained first associated parameter value is data associated with the second associated parameter value obtained last time to form a new second associated parameter value;

[0063] The storage control unit is used to store all the first associated parameter values ​​and the second associated parameter values ​​in each secondary power monitoring device respectively.

[0064] In the embodiment of the present invention, the first association unit associates the power consumption data of each secondary power monitoring device with the first association parameter value obtained last time each time to form a new first association parameter value, so that the power consumption data at different times can be associated. The second association unit associates the first association parameter values ​​corresponding to different secondary power monitoring devices at the same time each time to obtain a second association parameter value to form a new second association parameter value, so that the power consumption data of different secondary power monitoring devices at the same time can be associated. The encrypted power consumption data is finally formed in this specific form, which can further improve the encryption performance and avoid the possibility of data tampering. After the power consumption data is associated, once the data of the secondary power monitoring device is tampered with, it can be quickly identified.

[0065] In the embodiment of the present invention, the early warning module includes:

[0066] A judgment unit, used to judge whether the first associated parameter value and the second associated parameter value stored in each secondary power monitoring device are consistent, and if there is inconsistency, obtain information of the inconsistent secondary power monitoring device and transfer it to the early warning unit;

[0067] The early warning unit is used to send electricity theft early warning information according to the inconsistent information of the secondary power monitoring device.

[0068] If the electricity usage data of a secondary power monitoring device is tampered with, the first associated parameter value or the second associated parameter value stored on the secondary power monitoring device will be inconsistent with that of other secondary power monitoring devices. Based on the consistency of the first associated parameter value and the second associated parameter value in each secondary power monitoring device, the secondary power monitoring device that has committed electricity theft can be quickly and accurately located, thereby providing an accurate electricity theft warning.

[0069] Figure 3 The figure is a schematic diagram of the implementation process of the power theft warning method based on blockchain in an embodiment of the present invention. The steps of the power theft warning method based on blockchain in an embodiment of the present invention include:

[0070] S1. Monitor the power consumption data of each primary branch of the power grid through each secondary power monitoring device;

[0071] S2. Regularly obtain the power consumption data monitored by each secondary power monitoring device at different times, associate the power consumption data of the same secondary power monitoring device at different times to form a first associated parameter value, and associate the first associated parameter values ​​of different secondary power monitoring devices at the same time to form multiple second associated parameter values, which are stored in each secondary power monitoring device to form a blockchain storage;

[0072] S3. Determine whether it is necessary to issue a power theft warning based on the correlation between the first associated parameter value and the second associated parameter value stored in each secondary power monitoring device.

[0073] Through the above steps, once the associated parameter value in the block on any power monitoring device changes, the changed power monitoring device can be easily and quickly monitored through the associated parameter values ​​stored on the remaining power monitoring devices, and the power theft behavior by modifying the meter value can be monitored to provide a quick and accurate power theft warning.

[0074] In the embodiment of the present invention, step S2 includes:

[0075] S201. Regularly obtain the power consumption data monitored by each secondary power monitoring device at different times, and associate the obtained power consumption data with the first associated parameter value obtained last time each time the power consumption data is obtained to generate a new first associated parameter value;

[0076] S202. Regularly obtain the first associated parameter value corresponding to each secondary power monitoring device at the same time, and each time the first associated parameter value is obtained, the first associated parameter value obtained is associated with the second associated parameter value obtained last time to form a new second associated parameter value;

[0077] S203. Store all first associated parameter values ​​and second associated parameter values ​​in each secondary power monitoring device respectively.

[0078] The above steps form a new first associated parameter value by associating the power consumption data of each secondary power monitoring device with the first associated parameter value obtained last time each time, and form a new second associated parameter value by associating the first associated parameter value corresponding to the secondary power monitoring device at the same time with the second associated parameter value obtained last time. Finally, the encrypted power consumption data is formed in this specific form, which can further improve the encryption performance and avoid the possibility of data tampering, so that once the data of the secondary power monitoring device is tampered with, it can be quickly identified.

[0079] In an embodiment of the present invention, data association is specifically performed based on a hash function in step S201, and the first association parameter value obtained is a hash value. Specifically, when the power consumption data monitored by the target secondary power monitoring device at a specified time is obtained for the first time, the hash function is used to generate the first hash value of the target secondary power monitoring device according to the obtained power consumption data. When the power consumption data monitored by the target secondary power monitoring device at the specified time is obtained next time, a new hash value of the target secondary power monitoring device is generated according to the obtained power consumption data and the hash value obtained last time.

[0080] In a specific application embodiment, Figure 4 FIG. 1 is a detailed flow chart of generating the first associated parameter value in a specific application embodiment of the present invention. Figure 4 As shown, the detailed steps for generating the above-mentioned first associated parameter value are: obtaining the power consumption data of the i-th secondary power monitoring device in January of each year, i is the serial number of the secondary power monitoring device, and generating the hash value of the i-th secondary power monitoring device in January according to the power consumption data of the i-th secondary power monitoring device In February of each year, the power consumption data of the i-th secondary power monitoring device is obtained. Generate the February hash value of the i-th secondary power monitoring device Similarly, the power consumption data of the ith secondary power monitoring device in month S is obtained, where S is a positive integer greater than 1 and less than 12. Generate S month hash value The power consumption data of the i-th secondary power monitoring device and all hash values ​​of the current year are stored in the i-th secondary power monitoring device. The above time settings can be specifically set according to actual needs.

[0081] In step S202 of the embodiment of the present invention, data association is specifically performed based on a hash function, and the second associated parameter value obtained is a hash header value. Specifically, when the first associated parameter value of the target secondary power monitoring device at the specified time is first obtained, the first hash header is generated using a hash function, and the first associated parameter value corresponding to the adjacent secondary power monitoring device at the same time is obtained next time, and a new hash header value of the target secondary power monitoring device is generated according to the obtained first associated parameter value and the hash header value obtained last time. The present invention determines the power monitoring device that has undergone modification behavior by monitoring the difference in hash headers, and identifies the user who has undergone modification behavior by obtaining the user identifier of the power monitoring device with different hash headers, and promptly issues an alarm and accurately locates the device.

[0082] In a specific application embodiment, Figure 5FIG. 1 is a detailed flow chart of generating the second associated parameter value in a specific application embodiment of the present invention. Figure 5 As shown, the detailed steps of generating and storing the second associated parameter value are as follows: in the Sth month, the hash value of the first secondary power monitoring device is obtained. And according to Generate the first hash header The first hash header corresponds one-to-one to the power consumption data of the No. 1 secondary power monitoring device;

[0083] Get the hash value of the second secondary power monitoring device in the Sth month according to and Generate the second hash header And so on, get the hash header of the i-th secondary power monitoring device According to the hash header of the i-th secondary power monitoring device and the hash header of the i-1th secondary power monitoring device Generate the i-th hash header. Then copy and save the hash headers of all the secondary power monitoring devices in the current year in the primary power monitoring device and N secondary power monitoring devices.

[0084] The embodiment of the present invention first associates the electricity consumption data of each month through a hash function. Once the electricity consumption data of any month is tampered with, the hash value of the electricity consumption data after this month will also change. Then, the hash value of the electricity consumption data of each device in each month is associated through a hash function. Once the electricity consumption data of any secondary power monitoring device is tampered with, the tampering of the electricity consumption data can be detected by comparing the differences in the hash headers stored in other secondary power monitoring devices. Therefore, the electricity theft behavior of modifying the data can be quickly and accurately detected. At the same time, since each secondary power monitoring device only needs to store its own electricity consumption data and the blockchain composed of the hash header, the storage space occupied is smaller than that of traditional blockchain technology, which can greatly reduce the storage space and further improve the early warning efficiency.

[0085] In the embodiment of the present invention, step S3 includes:

[0086] S301. Determine whether the first associated parameter value and the second associated parameter value stored in each secondary power monitoring device are consistent. If there is inconsistency, obtain the information of the inconsistent secondary power monitoring device and proceed to S302;

[0087] S302. Send electricity theft warning information according to the inconsistent information of the secondary power monitoring device.

[0088] If the first associated parameter value or the second associated parameter value in a secondary power monitoring device is inconsistent with that stored in other secondary power monitoring devices, it is determined that the inconsistent secondary power monitoring device may have modified data to steal electricity, and an electricity theft warning is issued for further investigation.

[0089] In a specific application embodiment, based on the above-mentioned storage of the hash header of the secondary power monitoring device, by traversing and comparing the hash headers stored by all secondary power monitoring devices before S months every month, if there are different hash headers, an early warning is issued. The early warning information can further carry the user information corresponding to the inconsistent secondary power monitoring device to identify suspicious users who may have stolen electricity.

[0090] In a specific application embodiment, the electricity consumption data may specifically include information such as user identification, electricity consumption time, and electricity consumption. The user identification corresponds to the user one-to-one and is used to identify the user. The electricity consumption time is the time when the electricity consumption data is obtained, and the electricity consumption is the difference between the value measured by the power monitoring device when the electricity consumption data is obtained this time and the value measured by the power monitoring device when the electricity consumption data is obtained last time. If the hth hash head stored on one of the power monitoring devices is different from the hth hash head stored on the other power monitoring devices, the user identification of the power monitoring device storing the different hth hash head is sent to the first-level power monitoring device, and the first-level power monitoring device sends the alarm signal and the user identification to the data center, where h is a positive integer greater than 1. If the Sth hash head stored on one of the power monitoring devices is different from the hth hash head stored on the other power monitoring devices, the user identification of the power monitoring device storing the different hth hash head is sent to the first-level power monitoring device, and the first-level power monitoring device sends the alarm signal and the user identification to the data center, where h is a positive integer greater than 1. The hash header of the S month stored on other power monitoring devices If different, different S month i hash headers will be stored The user identification of the power monitoring device is sent to the first-level power monitoring device, and the first-level power monitoring device sends the alarm signal and the user identification to the data center.

[0091] It is understandable that the generation method of the first associated parameter value and the second associated parameter value may also adopt other methods. The first associated parameter value and the second associated parameter value may adopt the same associated function or different associated functions, which may be configured according to actual needs.

[0092] In step S3 of the embodiment of the present invention, it is also included: judging the relationship between the power consumption data obtained by the primary power monitoring device and the sum of the power consumption data obtained by all secondary power monitoring devices at the same time, and determining whether it is necessary to issue a power theft alarm message according to the judgment result. By calculating the difference between the power consumption of the main line of the power grid and the total power consumption of the primary branch, the power theft behavior that bypasses the meter can be monitored, and various power theft behaviors can be realized in combination with the power theft behavior of modifying the data.

[0093] In a specific application embodiment, the detailed steps of monitoring the electricity theft behavior bypassing the electricity meter are as follows:

[0094] All secondary power monitoring devices obtain the power consumption p of each primary branch i , sent to the primary power monitoring device via HPLC carrier communication, and the primary processor calculates the sum of the power consumption of all primary branches

[0095] At the same time, the primary power monitoring device obtains the power consumption P on the main line of the power grid real

[0096] The first-level processor calculates P real -P total , if P real -P total ≥λ, the primary processor sends a power theft alarm message to the data center, and λ is the power theft alarm threshold.

[0097] The embodiment of the present invention further adopts a machine learning method to determine the electricity theft alarm threshold to further improve the monitoring accuracy of electricity theft behavior that bypasses the electricity meter. The method for setting the electricity theft alarm threshold specifically includes the following steps:

[0098] Step 1: Collect the temperature data set, humidity data set and corresponding loss data set between the primary branch between the primary power monitoring device and the secondary power monitoring device, and obtain a training sample set based on the data;

[0099] Step 2: Generate a prediction model from the training samples using a machine learning algorithm;

[0100] Step 3: Predict the current power loss value using the current temperature data, the current humidity data and the prediction model;

[0101] Step 4: Set the power theft alarm threshold λ = power loss value.

[0102] The embodiment of the present invention generates a prediction model through a machine learning algorithm, and predicts the power loss value under the current temperature and humidity through the prediction model, so as to set the power theft alarm threshold according to the environmental conditions, thereby avoiding the problem of false alarms or no alarms caused by environmental changes and improving the reliability of early warning.

[0103] In summary, the present invention configures a blockchain storage control module and an early warning module, and the blockchain storage control module regularly associates the electricity consumption data at different times to form a first associated parameter value, and at the same time associates the first associated parameter values ​​of different secondary power monitoring devices at the same time to form a second associated parameter value, and the second associated parameter value is distributedly stored in each secondary power monitoring device. The early warning module performs an electricity theft early warning according to the correlation of the second associated parameter values ​​stored in each secondary power monitoring device, and can realize an electricity theft early warning based on the blockchain mode. Due to the use of a distributed storage method, the possibility of simultaneous tampering of the data of the secondary power monitoring devices is very small. Therefore, once the associated parameter value in the block on any power monitoring device changes, the changed power monitoring device can be conveniently and quickly monitored through the associated parameter values ​​stored on the remaining power monitoring devices, which is convenient for monitoring the electricity theft behavior by modifying the meter value.

[0104] The present invention forms a first associated parameter value by associating the power consumption data of the secondary power monitoring device. Once the power consumption data at any time is tampered with, the first associated parameter value of the power consumption data at subsequent times will also change. At the same time, by associating the first associated parameter value of each secondary power monitoring device at the same time, once the power consumption data of any secondary power monitoring device is tampered with, the tampering behavior can be monitored by comparing the second associated parameter values ​​stored in other secondary power monitoring devices, which can facilitate fast and accurate monitoring of power theft behaviors that modify table values. At the same time, since only the associated parameter values ​​need to be stored, the amount of data storage can be greatly reduced, and accurate power theft warning can be achieved without storing complete power consumption data.

[0105] The system of the present invention has the advantages of simple operation, high early warning accuracy, high efficiency and strong anti-interference ability.

[0106] Those skilled in the art can understand that the accompanying drawings are only schematic diagrams of an embodiment, and the modules or processes in the accompanying drawings are not necessarily required to implement the present invention.

[0107] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention or certain parts of the embodiments.

[0108] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The device and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiment of the present invention. Ordinary technicians in this field can understand and implement it without creative work.

[0109] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A blockchain-based electricity theft early warning system, characterized in that: include: Secondary power monitoring device, blockchain storage control module and early warning module; The secondary power monitoring device is used to monitor the power consumption data of the primary branch of the power grid trunk, and store the first associated parameter value and the second associated parameter value sent by the blockchain storage control module; The blockchain storage control module is used to periodically obtain the power consumption data monitored by each secondary power monitoring device at different times, perform data association on the power consumption data of the same secondary power monitoring device at different times to form a first associated parameter value, and perform data association on the first associated parameter values ​​of different secondary power monitoring devices at the same time to form multiple second associated parameter values, and send the first associated parameter value and the second associated parameter value to each secondary power monitoring device respectively; The warning module is used to determine whether it is necessary to issue a power theft warning according to the correlation between the first associated parameter value and the second associated parameter value stored in each secondary power monitoring device; The blockchain storage control module includes: a first association unit, configured to periodically obtain power consumption data monitored by each secondary power monitoring device at different times, and to associate the obtained power consumption data with the first association parameter value obtained last time each time the power consumption data is obtained, so as to generate a new first association parameter value; A second association unit is used to periodically obtain the first associated parameter value corresponding to each secondary power monitoring device at the same time, and each time the first associated parameter value is obtained, the obtained first associated parameter value is data-associated with the second associated parameter value obtained last time to form a new second associated parameter value; A storage control unit, used to send all the first associated parameter values ​​and the second associated parameter values ​​to each secondary power monitoring device for storage, so as to form a blockchain storage of the first associated parameter values ​​and the second associated parameter values; The early warning module comprises: A judging unit, used to judge whether the first associated parameter value and the second associated parameter value stored in each secondary power monitoring device are consistent, and if there is inconsistency, obtain information of the inconsistent secondary power monitoring device and transfer it to the early warning unit; The early warning unit is used to send electricity theft early warning information according to the information of the inconsistent secondary power monitoring device.

2. The system according to claim 1, characterized in that The system further comprises: The primary power monitoring device is used to be arranged on the main line of the power grid to monitor the power consumption on the main line of the power grid. The primary power monitoring device and the secondary power monitoring device perform high-performance liquid chromatography (HPLC) high-speed carrier communication through power lines.

3. The system according to claim 1 or 2, characterized in that: The secondary power monitoring device comprises an electric energy metering unit, a processor unit and a communication module, and the secondary power monitoring device is connected to a primary power monitoring device for monitoring a main line of a power grid.

4. A blockchain-based electricity theft warning method, characterized in that: Applicable to the system according to any one of claims 1 to 3, the method comprising: S1. Monitor the power consumption data of each primary branch of the power grid through each secondary power monitoring device; S2. Regularly obtain the power consumption data monitored by each secondary power monitoring device at different times, associate the power consumption data of the same secondary power monitoring device at different times to form a first associated parameter value, and associate the first associated parameter values ​​of different secondary power monitoring devices at the same time to form multiple second associated parameter values, and store the first associated parameter values ​​and the second associated parameter values ​​in each secondary power monitoring device respectively; S3. Determine whether it is necessary to issue a power theft warning based on the correlation between the first associated parameter value and the second associated parameter value stored in each secondary power monitoring device.

5. The method according to claim 4, characterized in that The step S2 specifically includes: S101. Regularly obtain the power consumption data monitored by each secondary power monitoring device at different times, and associate the obtained power consumption data with the first associated parameter value obtained last time each time the power consumption data is obtained to generate a new first associated parameter value; S102. Periodically obtain the first associated parameter value corresponding to each secondary power monitoring device at the same time, and each time the first associated parameter value is obtained, the obtained first associated parameter value is associated with the second associated parameter value obtained last time to form a new second associated parameter value; S103. All the first associated parameter values ​​and the second associated parameter values ​​are sent to each secondary power monitoring device for storage, forming a blockchain storage of the first associated parameter values ​​and the second associated parameter values.

6. The method according to claim 5, characterized in that: The step S101 specifically includes: When the power consumption data monitored by the target secondary power monitoring device at the specified time is obtained for the first time, the first hash value of the target secondary power monitoring device is generated using a hash function based on the obtained power consumption data. When the power consumption data monitored by the target secondary power monitoring device at the specified time is obtained next time, a new hash value of the target secondary power monitoring device is generated based on the obtained power consumption data and the hash value obtained last time.

7. The method according to claim 5, characterized in that The step S102 specifically includes: When the first associated parameter value of the target secondary power monitoring device at a specified time is obtained for the first time, a first hash header is generated using a hash function. When the first associated parameter value corresponding to the adjacent secondary power monitoring device at the same time is obtained next time, a new hash header value of the target secondary power monitoring device is generated based on the first associated parameter value obtained and the hash header value obtained last time.

8. The method according to claim 5, characterized in that The step S3 specifically includes: S301. Determine whether the first associated parameter value and the second associated parameter value stored in each secondary power monitoring device are consistent. If there is inconsistency, obtain the information of the inconsistent secondary power monitoring device and proceed to S302; S302. Send electricity theft warning information based on the information of the inconsistent secondary power monitoring device, judge the relationship between the power consumption data obtained by the primary power monitoring device at the same time and the sum of the power consumption data obtained by all the secondary power monitoring devices, and determine whether it is necessary to issue an electricity theft alarm information based on the judgment result.

Citation Information

Patent Citations

  • Blockchain-based environmental monitoring method and system

    CN108632381A