Electricity stealing detection method and device
By calculating voltage peak factors and effective voltage values, and combining this with abnormal cycle determination, the problems of low efficiency and low accuracy in electricity theft detection have been solved, enabling efficient identification and accurate determination of various electricity theft methods.
Patent Information
- Application Number
- CN202510909169.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-02
- Publication Date
- 2025-11-11
AI Technical Summary
Existing technologies for detecting electricity theft are inefficient and inaccurate, and it is difficult to effectively identify different methods of electricity theft, resulting in damage to the safety and stability of the power system and the interests of legitimate users.
By calculating the peak factor and effective voltage of voltage data, waveform distortion, voltage clipping, and voltage surges are determined. Combined with continuous abnormal cycle determination, electricity theft can be identified.
It improves the accuracy and efficiency of electricity theft detection, and can effectively identify various electricity theft methods such as dynamic interference, peak clamping, and voltage reduction, reducing false positives and false negatives.
Smart Images

Figure CN120928020A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of electricity theft detection technology, and more specifically, to a method and apparatus for electricity theft detection. Background Technology
[0002] Electricity theft in power distribution networks is a serious illegal act that not only threatens the safe and stable operation of the power system, but also harms the interests of power supply companies and legitimate electricity users, and may even lead to safety accidents.
[0003] Manual investigation of electricity theft is one of the traditional methods of combating electricity theft, but it has many drawbacks due to limitations in manpower, technology and environment, such as low efficiency of electricity theft detection, low accuracy of electricity theft detection, and uncertainty about the means by which electricity is stolen. Summary of the Invention
[0004] In a first aspect of the embodiments of this disclosure, a method for detecting electricity theft is provided, the method comprising: Obtain the voltage value data for the current detection cycle, determine the peak voltage and effective voltage for the current detection cycle based on the voltage value data, and calculate the peak factor for the current detection cycle based on the peak voltage and effective voltage. Determine whether the absolute value of the difference between the peak factor and the basic peak factor is greater than the peak factor threshold. If the absolute value of the difference between the peak factor and the basic peak factor is greater than the peak factor threshold, it is determined that waveform distortion has occurred in the current detection period; if waveform distortion has occurred in the current detection period, it is determined that the current detection period is abnormal. If the current detection cycle is abnormal, it is determined whether the detection cycle abnormality occurs N times consecutively. When the detection cycle abnormality occurs N times consecutively, it is determined that there is electricity theft.
[0005] Preferably, determining the peak voltage and RMS voltage of the current detection cycle based on voltage value data, and calculating the peak factor of the current detection cycle based on the peak voltage and RMS voltage, specifically includes: The voltage data is grouped into multiple sub-voltage data sets by grouping them into single AC cycles. The corresponding sub-peak voltage and sub-effective voltage are calculated based on the sub-voltage value data of each group; Calculate the average of all sub-peak voltages to obtain the peak voltage, and calculate the average of all sub-effective voltages to obtain the effective voltage.
[0006] Preferably, the peak factor of the current detection cycle calculated based on the peak voltage and the effective voltage specifically includes: Divide the peak voltage by the effective voltage to obtain the crest factor.
[0007] Preferably, the threshold value of the peak factor is in the range of 0.18-0.22.
[0008] As a preferred option, it also includes: When the absolute value of the difference between the peak factor and the basic peak factor is less than or equal to the peak factor threshold, it is determined whether the peak voltage is greater than the voltage threshold. When the peak voltage is greater than the voltage threshold, it is determined that high voltage clipping has occurred in the current detection cycle. If high voltage clipping occurs in the current detection cycle, it is determined that the current detection cycle is abnormal. If the current detection cycle is abnormal, it is determined whether the detection cycle abnormality occurs N times consecutively. When the detection cycle abnormality occurs N times consecutively, it is determined that there is electricity theft.
[0009] Preferably, the voltage threshold is determined by the following formula: Where S is the voltage threshold, Y is the effective voltage, and a is an empirical value, with the value of a ranging from 9 to 11.
[0010] As a preferred option, it also includes: Obtain the voltage value data of the previous detection cycle, and calculate the average voltage value of each AC cycle in the previous detection cycle based on the voltage value data of the previous detection cycle. Obtain the voltage value data of the current detection cycle, and calculate the average voltage value of each AC cycle in the current detection cycle based on the voltage value data of the current detection cycle. Determine whether the absolute value of the difference between average voltage value one and average voltage value two is greater than the voltage difference threshold. If the absolute value of the difference between average voltage value one and average voltage value two is greater than the voltage difference threshold, it is determined that a voltage sudden change has occurred in the current detection cycle; if a voltage sudden change occurs in the current detection cycle, it is determined that the current detection cycle is abnormal. If the current detection cycle is abnormal, it is determined whether the duration of the abnormality is greater than the duration threshold. If the duration of the abnormality is greater than the duration threshold, it is determined that there is electricity theft.
[0011] In a second aspect of the embodiments of this disclosure, an electricity theft detection device is provided, the device comprising: The peak factor calculation module is configured to acquire voltage value data for the current detection cycle, determine the peak voltage and effective voltage for the current detection cycle based on the voltage value data, and calculate the peak factor for the current detection cycle based on the peak voltage and effective voltage. The waveform distortion determination module is configured to determine whether the absolute value of the difference between the peak factor and the basic peak factor is greater than the peak factor threshold. When the absolute value of the difference between the peak factor and the basic peak factor is greater than the peak factor threshold, waveform distortion is determined to occur in the current detection period; if waveform distortion occurs in the current detection period, the current detection period is determined to be abnormal. The first module for determining electricity theft is configured to determine whether an abnormal detection cycle has occurred N times consecutively if the current detection cycle is abnormal. If an abnormal detection cycle occurs N times consecutively, electricity theft is determined to have occurred.
[0012] In a third aspect of the embodiments of this disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the method provided according to the first aspect.
[0013] In a fourth aspect of the embodiments of this disclosure, an electronic device is provided, including one or more processors and a memory associated with the one or more processors, the memory being used to store program instructions that, when read and executed by the one or more processors, perform the method provided according to the first aspect.
[0014] It should be understood that the description in the Summary of the Invention section is not intended to limit the key or essential features of the embodiments of this disclosure, nor is it intended to restrict the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description.
[0015] Beneficial effects 1. The electricity theft detection method and apparatus of this disclosure can determine whether the current detection period is abnormal due to the electricity theft behavior of "dynamic interference" by first calculating the peak factor in the current detection period, then obtaining the absolute value of the difference between the peak factor and the basic peak factor, and then comparing the absolute value of the difference with the peak factor threshold to determine whether waveform distortion occurs. Furthermore, the accuracy of electricity theft behavior determination can be improved by continuously determining the abnormality of the period N times.
[0016] 2. The electricity theft detection method and apparatus of this disclosure can determine whether the current detection cycle is abnormal due to the electricity theft behavior of "peak clamping" by first calculating the voltage threshold based on the effective voltage value, and then comparing the peak voltage with the voltage threshold to determine whether high voltage clipping occurs. Furthermore, the accuracy of electricity theft behavior determination can be improved by continuously determining the abnormality of the cycle N times.
[0017] 3. The electricity theft detection method and apparatus of this disclosure can determine whether the current detection period is abnormal due to the electricity theft behavior of "voltage reduction theft" by first calculating the average voltage value 1 of the previous detection period and the average voltage value 2 in the current detection period, then obtaining the absolute value of the difference between the average voltage value 1 and the average voltage value 2, and then comparing the absolute value of the difference with the voltage difference threshold to determine whether a sudden voltage change has occurred. Furthermore, by determining whether the duration of the abnormality is greater than or equal to the duration threshold, the accuracy of the electricity theft behavior determination can be improved. Attached Figure Description
[0018] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. In the drawings, the same or similar reference numerals denote the same or similar elements, wherein: Figure 1 A flowchart of an electricity theft detection method according to some embodiments of the present disclosure is shown; Figure 2 A block diagram of an electricity theft detection device according to some embodiments of the present disclosure is shown; Figure 3 Block diagrams of electronic devices according to some embodiments of the present disclosure are shown. Detailed Implementation
[0019] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0020] In the description of embodiments of this disclosure, the term "comprising" and similar terms should be understood as open-ended inclusion, i.e., "including but not limited to". The term "based on" should be understood as "at least partially based on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc., may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0021] The applicant discovered that the principles of electricity theft in existing technologies generally fall into the following categories: 1. Voltage reduction for electricity theft: This involves lowering the input voltage using an external transformer (e.g., reducing a 220V input voltage to 190V), thus causing the meter to falsely indicate a lower power reading. 2. Peak clamping: This involves using a thyristor to cut off the peak of the voltage waveform (e.g., clipping by 30%), thus distorting the effective value measurement. 3. Dynamic interference: This involves periodically injecting high-voltage pulses (e.g., 300V / 5ms), thus interfering with the timing of the metering chip.
[0022] In response to these principles of electricity theft, embodiments of this disclosure propose an electricity theft detection method.
[0023] Figure 1 A flowchart of an electricity theft detection method 100 according to some embodiments of the present disclosure is shown. The method 100 includes: Step 102. Obtain the voltage value data of the current detection cycle, determine the peak voltage and effective voltage of the current detection cycle based on the voltage value data, and calculate the peak factor of the current detection cycle based on the peak voltage and effective voltage.
[0024] Typically, each household has one electricity meter, and each meter contains three metering chips. One metering chip is used to collect voltage data for one of the three phases (A, B, or C). An electricity theft detection device can automatically acquire the data collected by the three metering chips; therefore, it can automatically obtain the voltage value data for the current detection cycle.
[0025] Furthermore, in this embodiment, the electricity theft detection method 100 only detects one phase of data from phase A, phase B, or phase C each time it is executed. For a single electricity meter, one, two, or three phases of data from phases A, B, and C can be selected for electricity theft detection based on actual usage needs (one phase of data corresponds to one execution of the electricity theft detection method 100).
[0026] Furthermore, in this embodiment, determining the peak voltage and effective voltage of the current detection cycle based on voltage value data specifically includes: Step 302. Group the voltage data into multiple sub-voltage data sets by grouping them into single AC cycles.
[0027] In this embodiment, the detection cycle can be 10 seconds. Since the power grid uses alternating current (AC) (one AC cycle is 0.02 seconds), one detection cycle includes voltage value data for 500 AC cycles. The number of AC cycles in one detection cycle determines the number of sub-voltage value data groups the voltage value data is divided into. For example, in this embodiment, the voltage value data can be divided into 500 sub-voltage value data groups.
[0028] Step 304. Calculate the corresponding sub-peak voltage and sub-effective voltage based on the sub-voltage value data of each group.
[0029] Assuming a set of sub-voltage data includes M instantaneous voltage values, then the sub-peak voltage is the maximum value among the M instantaneous voltage values. The calculation process for the sub-RMS voltage is as follows: first, square the M instantaneous voltage values to obtain M squared values; then sum the M squared values; divide the sum by M to obtain the average value; finally, take the square root of the average value to obtain the sub-RMS voltage of the set of sub-voltage data. In this embodiment, 500 sub-peak voltages and 500 sub-RMS voltages can be obtained from 500 sets of sub-voltage data.
[0030] Step 306. Calculate the average value of all sub-peak voltages to obtain the peak voltage, and calculate the average value of all sub-effective voltages to obtain the effective voltage.
[0031] In this embodiment, the required peak voltage can be obtained simply by calculating the average of all sub-peak voltages, and the required effective voltage can be obtained simply by calculating the average of all sub-effective voltages.
[0032] Furthermore, in this embodiment, the peak factor of the current detection cycle calculated based on the peak voltage and the effective voltage specifically includes: Divide the peak voltage by the effective voltage to obtain the crest factor.
[0033] For example, a normal AC power grid has a peak voltage of 311V and an effective voltage of 220V, so its crest factor is 1.414. Since the crest factor of a normal AC power grid is 1.414, this embodiment can set the basic crest factor to 1.414.
[0034] Furthermore, such as Figure 1 As shown, the electricity theft detection method 100 in this embodiment further includes: Step 104. Determine whether the absolute value of the difference between the peak factor and the basic peak factor is greater than the peak factor threshold. If the absolute value of the difference between the peak factor and the basic peak factor is greater than the peak factor threshold, it is determined that waveform distortion has occurred in the current detection period; if waveform distortion has occurred in the current detection period, it is determined that the current detection period is abnormal.
[0035] After calculating the peak factor for the current detection period, it is only necessary to first obtain the absolute value of the difference between the peak factor and the basic peak factor. Assuming the peak factor is 1.785, then the absolute value of the difference between the peak factor and the basic peak factor is 0.371. Then, it is determined whether the absolute value of the difference is greater than the peak factor threshold. In this embodiment, the peak factor threshold ranges from 0.18 to 0.22, specifically 0.2. The peak factor threshold was obtained by the applicant through extensive experimentation. When the peak factor threshold is 0.2, the accuracy in determining whether waveform distortion occurs in the current detection period is highest. If the absolute value of the difference is greater than the peak factor threshold, it is determined that waveform distortion occurs in the current detection period; otherwise, it is determined that no waveform distortion occurs in the current detection period. In this embodiment, when the absolute value of the difference is 0.371 and the peak factor threshold is 0.2, then the absolute value of the difference is greater than the peak factor threshold, and in this case, it is determined that waveform distortion occurs in the current detection period.
[0036] In summary, the applicant discovered that when someone steals electricity through "dynamic interference," it causes "waveform distortion," resulting in a significant difference between the obtained peak factor and the baseline peak factor. Therefore, the method 100 in this embodiment first calculates the peak factor within the current detection period, then obtains the absolute value of the difference between the peak factor and the baseline peak factor, and then compares the absolute value of the difference with the peak factor threshold to determine whether "waveform distortion" has occurred. If "waveform distortion" occurs, the current detection period can be determined to be abnormal.
[0037] Furthermore, such as Figure 1 As shown, the electricity theft detection method 100 in this embodiment further includes: Step 106. If the current detection cycle is abnormal, determine whether the detection cycle is abnormal N times consecutively. If the detection cycle is abnormal N times consecutively, it is determined that there is electricity theft.
[0038] In this embodiment, N can be 5. When five consecutive abnormal detection cycles occur with the cause of "waveform distortion," it can be determined that electricity theft has occurred, and it is highly likely that someone is stealing electricity through "dynamic interference." Detecting N consecutive abnormal cycles can improve the accuracy of electricity theft detection.
[0039] When the absolute value of the difference between the peak factor and the baseline peak factor is less than or equal to the peak factor threshold, although "waveform distortion" cannot be determined, it does not necessarily mean that the voltage waveform of the current detection cycle is normal. Therefore, this embodiment requires further judgment on the voltage waveform.
[0040] Therefore, the electricity theft detection method 100 in this embodiment further includes: Step 402. When the absolute value of the difference between the peak factor and the basic peak factor is less than or equal to the peak factor threshold, determine whether the peak voltage is greater than the voltage threshold. If the peak voltage is greater than the voltage threshold, determine that high voltage clipping has occurred in the current detection cycle. If high voltage clipping has occurred in the current detection cycle, determine that the current detection cycle is abnormal.
[0041] The voltage threshold in this embodiment is determined by the following formula: Where S is the voltage threshold, Y is the effective voltage, and a is an empirical value, with the value of a ranging from 9 to 11.
[0042] The effective voltage Y here is the effective voltage calculated in step 306. In this embodiment, 'a' can specifically be 10. The empirical value 'a' was obtained by the applicant through numerous experiments. When the empirical value 'a' is 10, the accuracy in determining whether high-voltage clipping occurs in the current detection cycle is the highest. Assuming the effective voltage Y is 120V, then the voltage threshold S is equal to 186; assuming the effective voltage Y is 220V, then the voltage threshold S is equal to 342.
[0043] If the waveform is normal, then the effective voltage Y is 220V, the peak voltage is 311V, and the voltage threshold S is 342. Since the peak voltage is less than the voltage threshold, it is determined that no high-voltage clipping occurred in the current detection cycle.
[0044] If the effective voltage Y is 120V and the crest factor is 1.6, then the peak voltage is 196V. The voltage threshold S is 186V. Since the peak voltage exceeds the voltage threshold, high-voltage clipping is detected in the current detection cycle. If high-voltage clipping occurs in the current detection cycle, then the current detection cycle is considered abnormal.
[0045] In summary, the applicant discovered that when someone steals electricity using a "peak clamping" method, it causes "high-voltage clipping," resulting in a peak voltage exceeding the voltage threshold. Therefore, the method 100 in this embodiment first calculates the voltage threshold based on the effective voltage value, and then compares the peak voltage with the voltage threshold to determine whether "high-voltage clipping" has occurred. If "high-voltage clipping" occurs, the current detection cycle can be determined to be abnormal.
[0046] Step 404. If the current detection cycle is abnormal, determine whether the detection cycle is abnormal N times consecutively. If the detection cycle is abnormal N times consecutively, it is determined that there is electricity theft.
[0047] In this embodiment, N can be 5. When five consecutive abnormal detection cycles occur with the cause of "high-voltage clipping," it can be determined that electricity theft has occurred, and it is highly likely that someone is stealing electricity through "peak clamping." Detecting N consecutive abnormal cycles can improve the accuracy of electricity theft detection.
[0048] Even if neither "waveform distortion" nor "high voltage clipping" is detected in the current detection cycle, it does not necessarily mean that the voltage waveform in the current detection cycle is normal. Therefore, this embodiment still needs to further determine the voltage waveform.
[0049] Therefore, the electricity theft detection method 100 in this embodiment further includes: Step 502. Obtain the voltage value data of the previous detection cycle, and calculate the average voltage value of each AC cycle in the previous detection cycle based on the voltage value data of the previous detection cycle. The average voltage value of 1 in this step can be the average of the sub-effective voltage values of all AC cycles in the previous detection cycle, so the average voltage value of 1 is the effective voltage value of the previous detection cycle.
[0050] Step 504. Obtain the voltage value data for the current detection cycle, and calculate the average voltage value 2 for each AC cycle in the current detection cycle based on the voltage value data for the current detection cycle. The average voltage value 2 in this step can be the average of the sub-effective voltage values of all AC cycles in the current detection cycle, and then the average voltage value 2 is the effective voltage value of the current detection cycle.
[0051] Step 506. Determine whether the absolute value of the difference between average voltage value one and average voltage value two is greater than the voltage difference threshold. If the absolute value of the difference between average voltage value one and average voltage value two is greater than the voltage difference threshold, it is determined that a voltage sudden change has occurred in the current detection cycle. If a voltage sudden change has occurred in the current detection cycle, it is determined that the current detection cycle is abnormal.
[0052] In this embodiment, the voltage difference threshold can be 15. The voltage difference threshold was obtained by the applicant through a large number of experiments. When the voltage difference threshold is 15, the accuracy of determining whether a sudden voltage change has occurred in the current detection cycle is the highest.
[0053] Assuming average voltage value one is 220V and average voltage value two is 190V, then the absolute value of the difference between average voltage value one and average voltage value two is 30. Since the absolute value of the difference between average voltage value one and average voltage value two is greater than the voltage difference threshold, it is determined that a sudden voltage change has occurred in the current detection cycle.
[0054] In summary, the applicant discovered that when someone steals electricity by "reducing voltage," it causes a "sudden voltage change," which in turn causes the absolute value of the difference between the obtained average voltage value one and the average voltage value two to exceed the voltage difference threshold. Therefore, the method 100 of this embodiment first calculates the average voltage value one of the previous detection cycle and the average voltage value two of the current detection cycle, then obtains the absolute value of the difference between the average voltage value one and the average voltage value two, and then compares the absolute value of the difference with the voltage difference threshold to determine whether a "sudden voltage change" has occurred. If a "sudden voltage change" occurs, the current detection cycle can be determined to be abnormal.
[0055] Step 508. If the current detection cycle is abnormal, determine whether the abnormal duration is greater than or equal to the duration threshold. If the abnormal duration is greater than or equal to the duration threshold, it is determined that there is electricity theft.
[0056] In this embodiment, the duration threshold can be the duration of n detection cycles. For example, the duration threshold can be the duration of 3 detection cycles. When the detection cycle is 10 seconds, the duration threshold is 30 seconds.
[0057] If the current detection cycle is abnormal, the abnormal duration can be initially determined to be at least 10 seconds. Next, the average voltage for the next detection cycle is calculated. If the absolute value of the difference between the average voltage of the next detection cycle and the average voltage of the current detection cycle is less than or equal to the voltage difference threshold, it indicates that the abnormality has continued for another detection cycle, and the abnormal duration can be determined to be at least 20 seconds. The average voltage for the next detection cycle is then calculated. If the absolute value of the difference between the average voltage of the cycle after that and the average voltage of the next detection cycle is less than or equal to the voltage difference threshold, it indicates that the abnormality has continued for another detection cycle, and the abnormal duration can be determined to be at least 30 seconds (i.e., the abnormal duration is greater than or equal to the duration threshold). Therefore, it can be determined that electricity theft has occurred, and it is highly likely that someone is stealing electricity by "voltage reduction." Determining whether the abnormal duration is greater than or equal to the duration threshold improves the accuracy of electricity theft detection.
[0058] Figure 2 A block diagram of an electricity theft detection device 200 according to some embodiments of the present disclosure is shown. The device 200 includes: The peak factor calculation module 202 is configured to acquire voltage value data of the current detection cycle, determine the peak voltage and effective voltage of the current detection cycle based on the voltage value data, and calculate the peak factor of the current detection cycle based on the peak voltage and effective voltage.
[0059] The waveform distortion judgment module 204 is configured to determine whether the absolute value of the difference between the peak factor and the basic peak factor is greater than the peak factor threshold. When the absolute value of the difference between the peak factor and the basic peak factor is greater than the peak factor threshold, waveform distortion is determined to occur in the current detection period; if waveform distortion occurs in the current detection period, the current detection period is determined to be abnormal.
[0060] The electricity theft detection module 206 is configured to determine whether an abnormal detection cycle has occurred N times consecutively if the current detection cycle is abnormal. When an abnormal detection cycle occurs N times consecutively, it is determined that electricity theft has occurred.
[0061] Furthermore, the peak factor calculation module 202 in this embodiment also includes: The sub-voltage value data acquisition unit is configured to group the voltage value data into multiple groups of sub-voltage value data by taking a single AC cycle as a group.
[0062] The sub-peak voltage and sub-RMS voltage calculation unit is configured to calculate the corresponding sub-peak voltage and sub-RMS voltage based on each group of sub-voltage value data.
[0063] The peak voltage and RMS voltage calculation unit is configured to calculate the average value of all sub-peak voltages to obtain the peak voltage, and to calculate the average value of all sub-RMS voltages to obtain the RMS voltage.
[0064] The crest factor calculation unit is configured to divide the peak voltage by the effective voltage to obtain the crest factor.
[0065] Furthermore, the electricity theft detection device 200 in this embodiment also includes: The high-voltage clipping determination module is configured to determine whether the peak voltage is greater than the voltage threshold when the absolute value of the difference between the peak factor and the basic peak factor is less than or equal to the peak factor threshold. If the peak voltage is greater than the voltage threshold, it is determined that high-voltage clipping has occurred in the current detection cycle. If high-voltage clipping has occurred in the current detection cycle, it is determined that the current detection cycle is abnormal.
[0066] The second module for determining electricity theft is configured to determine whether an abnormal detection cycle has occurred N times consecutively if the current detection cycle is abnormal. If an abnormal detection cycle occurs N times consecutively, electricity theft is determined to have occurred.
[0067] Furthermore, the electricity theft detection device 200 in this embodiment also includes: The average voltage value calculation module is configured to acquire the voltage value data of the previous detection cycle and calculate the average voltage value of each AC cycle in the previous detection cycle based on the voltage value data of the previous detection cycle.
[0068] The average voltage value calculation module is configured to acquire the voltage value data of the current detection cycle and calculate the average voltage value of each AC cycle in the current detection cycle based on the voltage value data of the current detection cycle.
[0069] The voltage sudden change judgment module is configured to determine whether the absolute value of the difference between the average voltage value one and the average voltage value two is greater than the voltage difference threshold. When the absolute value of the difference between the average voltage value one and the average voltage value two is greater than the voltage difference threshold, it is determined that a voltage sudden change has occurred in the current detection cycle; if a voltage sudden change occurs in the current detection cycle, it is determined that the current detection cycle is abnormal.
[0070] The third module for determining electricity theft is configured to determine whether the duration of the abnormality exceeds a time threshold if the current detection cycle is abnormal. If the duration of the abnormality exceeds the time threshold, electricity theft is determined to have occurred.
[0071] Figure 3A block diagram of an electronic device 300 according to some embodiments of the present disclosure is shown. The device 300 includes a processor 301, which performs various appropriate actions and processes based on computer program instructions loaded into random access memory (RAM) 303 according to computer program instructions stored in read-only memory (ROM) 302. Various programs and data required for the operation of the device 300 may also be stored in RAM 303. The processor 301, ROM 302, and RAM 303 are interconnected via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0072] The various processes and procedures described above, such as method 100, can be executed by processor 301. For example, in some embodiments, method 100 may be implemented as a software program tangibly contained in a machine-readable medium. In some embodiments, part or all of the software program may be loaded and / or installed on device 300 via ROM 302. When the software program is loaded into RAM 303 and executed by processor 301, one or more actions of method 100 described above may be performed.
[0073] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: field programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload programmable logic devices (CPLDs), and so on.
[0074] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing device, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be... Implementation. The program code can be executed entirely on the machine, partially on the machine, or as a standalone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0075] This disclosure can be a method, apparatus, system, and / or program product. The program product may include a machine-readable storage medium on which machine-readable program instructions for performing various aspects of this disclosure are loaded. The machine-readable program instructions described herein can be downloaded from the machine-readable storage medium to various computing / processing devices, or downloaded via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the machine-readable program instructions from the network and forwards them to the machine-readable storage medium in the respective computing / processing device.
[0076] Machine program instructions used to perform the operations of this disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. Machine-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as a standalone software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing state information from the machine-readable program instructions. This electronic circuitry can execute the machine-readable program instructions to implement various aspects of this disclosure.
[0077] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. Furthermore, although operations are depicted in a specific order, this should be understood as requiring that such operations be performed in the specific order shown or in sequential order, or requiring that all illustrated operations be performed to achieve the desired result. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the foregoing discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0078] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A method for detecting electricity theft, characterized in that, include: Obtain the voltage value data of the current detection cycle, determine the peak voltage and effective voltage of the current detection cycle based on the voltage value data, and calculate the peak factor of the current detection cycle based on the peak voltage and effective voltage. Determine whether the absolute value of the difference between the peak factor and the basic peak factor is greater than the peak factor threshold. When the absolute value of the difference between the peak factor and the basic peak factor is greater than the peak factor threshold, it is determined that waveform distortion has occurred in the current detection cycle. If waveform distortion occurs in the current detection cycle, the current detection cycle is determined to be abnormal. If the current detection cycle is abnormal, it is determined whether the detection cycle abnormality occurs N times consecutively. When the detection cycle abnormality occurs N times consecutively, it is determined that there is electricity theft.
2. The method according to claim 1, characterized in that, Based on the voltage data, the peak voltage and effective voltage of the current detection cycle are determined, and the peak factor of the current detection cycle is calculated based on the peak voltage and effective voltage. Specifically, this includes: The voltage data is grouped into multiple sub-voltage data sets by grouping them into single AC cycles. The corresponding sub-peak voltage and sub-effective voltage are calculated based on the sub-voltage value data of each group; The average value of all sub-peak voltages is calculated to obtain the peak voltage, and the average value of all sub-effective voltages is calculated to obtain the effective voltage.
3. The method according to claim 2, characterized in that, The peak factors for the current detection cycle, calculated based on the peak voltage and RMS voltage, specifically include: The peak voltage is divided by the effective voltage to obtain the crest factor.
4. The method according to claim 3, characterized in that, The threshold value of the peak factor is in the range of 0.18-0.
22.
5. The method according to claim 2, characterized in that, Also includes: When the absolute value of the difference between the peak factor and the basic peak factor is less than or equal to the peak factor threshold, it is determined whether the peak voltage is greater than the voltage threshold. When the peak voltage is greater than the voltage threshold, it is determined that high voltage clipping has occurred in the current detection cycle. If high voltage clipping occurs in the current testing cycle, the current testing cycle is determined to be abnormal. If the current detection cycle is abnormal, it is determined whether the detection cycle abnormality occurs N times consecutively. When the detection cycle abnormality occurs N times consecutively, it is determined that there is electricity theft.
6. The method according to claim 5, characterized in that, The voltage threshold is determined by the following formula: Where S is the voltage threshold, Y is the effective voltage, and a is an empirical value, with the value of a ranging from 9 to 11.
7. The method according to claim 1, characterized in that, Also includes: Obtain the voltage value data of the previous detection cycle, and calculate the average voltage value of each AC cycle in the previous detection cycle based on the voltage value data of the previous detection cycle. Obtain the voltage value data of the current detection cycle, and calculate the average voltage value of each AC cycle in the current detection cycle based on the voltage value data of the current detection cycle. Determine whether the absolute value of the difference between the first average voltage value and the second average voltage value is greater than a voltage difference threshold. When the absolute value of the difference between the first average voltage value and the second average voltage value is greater than the voltage difference threshold, it is determined that a sudden voltage change has occurred in the current detection cycle. If a sudden voltage change occurs during the current detection cycle, the current detection cycle is determined to be abnormal. If the current detection cycle is abnormal, it is determined whether the duration of the abnormality is greater than the duration threshold. If the duration of the abnormality is greater than the duration threshold, it is determined that there is electricity theft.
8. A device for detecting electricity theft, characterized in that, include: The peak factor calculation module is configured to acquire voltage value data of the current detection cycle, determine the peak voltage and effective voltage of the current detection cycle based on the voltage value data, and calculate the peak factor of the current detection cycle based on the peak voltage and effective voltage. The waveform distortion determination module is configured to determine whether the absolute value of the difference between the peak factor and the basic peak factor is greater than the peak factor threshold. When the absolute value of the difference between the peak factor and the basic peak factor is greater than the peak factor threshold, it is determined that waveform distortion has occurred in the current detection period. If waveform distortion occurs in the current detection cycle, the current detection cycle is determined to be abnormal. The first module for determining electricity theft is configured to determine whether an abnormal detection cycle has occurred N times consecutively if the current detection cycle is abnormal. If an abnormal detection cycle occurs N times consecutively, electricity theft is determined to have occurred.
9. A computer program product, characterized in that, Includes a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1-7.
10. An electronic device, characterized in that, include: One or more processors, and A memory associated with the one or more processors, the memory being used to store program instructions that, when read and executed by the one or more processors, perform the steps of the method according to any one of claims 1-7.