Electricity stealing detection circuit and electricity stealing analysis method
By collecting data and building a rank matrix of distribution meters, the power stolen coefficient is calculated to judge the power stolen behavior, the impact of power stolen power on the operation of the power grid is solved and effective monitoring of power stolen power is achieved.
Patent Information
- Application Number
- CN202411787330.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-03-11
AI Technical Summary
Theft of electricity will affect the normal operation of the state power grid, resulting in incorrect power usage estimates and overloading of power supply equipment, affecting its life.
By configuring the distribution meter file, collecting the meter data and building a row and matrix, and calculating the power stolen coefficient to determine whether there is power stolen behavior.
Effective monitoring of power theft behavior is achieved, and it can promptly discover and judge whether there is power theft behavior of power distribution meters, thereby preventing the impact of power theft on the operation of the power grid.
Smart Images

Figure CN119595991A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of electricity theft detection, in particular to an electricity theft detection circuit and an electricity theft analysis method. Background Art
[0002] Power theft will affect the normal statistics of power consumption by the State Grid, causing errors in power consumption estimation. Insufficient power transmission will lead to overload of power supply equipment, shortening its service life, and even damaging equipment at all levels in severe cases.
[0003] How to effectively monitor electricity theft is a problem we need to solve. To this end, a power theft detection circuit and a power theft analysis method are now provided. Summary of the invention
[0004] The object of the present invention is to provide an electricity theft detection circuit and an electricity theft analysis method.
[0005] The purpose of the present invention can be achieved through the following technical solution: A method for analyzing electricity theft, comprising the following steps:
[0006] Step S1: by configuring the meter files for the distribution meters, collecting and sampling the meter data of each meter according to the configured meter files, and obtaining the corresponding meter sampling data;
[0007] Step S2: constructing a row and column matrix of a corresponding electric meter according to the obtained electric meter sampling data;
[0008] Step S3: Obtain the electricity theft coefficient of the corresponding electricity meter according to the constructed row and column matrix of the electricity meter, and determine whether there is electricity theft in the distribution meter according to the obtained electricity theft coefficient of the electricity meter.
[0009] Furthermore, the meter files are configured for the distribution meters, and meter data are collected and sampled for each meter according to the configured meter files. The process of obtaining the corresponding meter sampling data includes:
[0010] A main electricity meter is set up, and the main electricity meter is connected to a number of distribution electricity meters, and a meter file is configured for each distribution electricity meter, wherein the meter file includes the meter number, rated voltage, rated current and the corresponding basic information of the user, and the basic information of the user includes the user's name, address and contact information;
[0011] Setting a sampling period, performing periodic data collection on the distribution meter according to the set sampling period, and obtaining meter sampling data of the distribution meter;
[0012] The obtained meter sampling data of each group of distribution meters are labeled as i, where i=1, 2, ..., n;
[0013] The meter sampling data includes the main meter power consumption and the distribution meter power consumption.
[0014] Furthermore, the process of constructing a row-column matrix of a corresponding electric meter according to the obtained electric meter sampling data includes:
[0015] Constructing an electric meter row-column matrix, wherein the electric meter row-column matrix is an n×N matrix, that is, the matrix has n columns and N rows, wherein N represents the number of acquisitions, and N=n;
[0016] Map the power consumption of the distribution meter labeled i to the i-th column in the meter row-column matrix, and record the obtained meter row-column matrix as A;
[0017] According to the power consumption of the main electric meter, a corresponding sequence is generated, which is recorded as sequence b;
[0018] Replace the obtained number sequence b with the i-th column in the meter row-column matrix A to obtain the meter row-column matrix A i .
[0019] Furthermore, according to the constructed meter row and column matrix, the corresponding meter electricity theft coefficient is obtained, and the process of judging whether the distribution meter has electricity theft behavior according to the obtained meter electricity theft coefficient includes:
[0020] According to the obtained meter row and column matrix A i And the meter row and column matrix A, obtain the distribution coefficient of each distribution meter, and record the distribution coefficient of the distribution meter labeled i as X i ;
[0021] Then we can get the electricity theft coefficient Q of the distribution meter labeled i: i ;
[0022] Set the electricity theft coefficient threshold Q0;
[0023] If Q i ≥Q0, it means that the corresponding distribution meter has electricity theft;
[0024] If Q i <Q0, it means that there is no electricity theft in the corresponding distribution meter.
[0025] An electricity theft detection circuit of an electricity theft analysis method includes a power supply module, a sampling module and a communication module;
[0026] The power supply module includes a network port labeled VCC, a network port labeled V485, a network port labeled GND, a network port labeled AGND, and a network port labeled G485, and is used to provide the circuit with the power required for operation;
[0027] The sampling module includes a voltage sampling circuit and a current sampling circuit;
[0028] The voltage sampling circuit includes a resistor R1, a first end of the resistor R1 is connected to the power line VA, a second end of the resistor R1 is connected to the first end of the resistor R2, a second end of the resistor R2 is connected to the first end of the resistor R3, a second end of the resistor R3 is connected to the first end of the resistor R4, a second end of the resistor R4 is connected to the first end of the resistor R5, a second end of the resistor R5 is connected to the first end of the resistor R6, a second end of the resistor R6 is connected to the first end of the resistor R7 and the second end of the tunnel diode D1, a first end of the tunnel diode D1 is connected to the network port label AGND, a second end of the resistor R7 is connected to the power line VN, and a capacitor C1 is connected in parallel to the resistor R7;
[0029] Connect the voltage sampling circuit to U in+ and U in- of the MCU chip U1.
[0030] Further, the current sampling circuit includes a resistor R8, a second end of the resistor R8 is connected to a resistor R9, and a current input terminal IA+ is connected between the resistor R8 and the resistor R9, a second end of the resistor R11 is connected to a resistor R10, and a current output terminal IA- is connected between the resistor R11 and the resistor R10;
[0031] The resistors R8 and R9 are connected in parallel with a capacitor C2, and the resistors R10 and R11 are connected in parallel with a capacitor C3;
[0032] Connect the current sampling circuit to I in+ and I in- of the MCU chip U1.
[0033] Further, the optical coupler OPT1 is connected to the RO terminal of the 485 chip U2;
[0034] The optical coupler OPT1 is connected to a resistor R12 and a resistor R13;
[0035] Connect the optical coupler OPT2 to the RE and DE terminals of the 485 chip U2;
[0036] The optical coupler OPT2 is connected to a resistor R15 and a resistor R16;
[0037] Connect the optical coupler OPT3 to the DI terminal of the 485 chip U2;
[0038] The optical coupler OPT3 is connected to a resistor R18 and a resistor R19;
[0039] The A end and the B end of the 485 chip U2 are connected to the 485 signal line A and the 485 signal line B respectively;
[0040] The 485 signal line B is connected with a resistor R14, a capacitor C4, a transient diode PK1 and a transient diode PK2;
[0041] The 485 signal line A is connected to a resistor R17 and a thermistor F1. One end of the transient diode PK1 is connected between the resistor R14 of the 485 signal line B and the transient diode PK2, and the other end is connected between the resistor R17 of the 485 signal line A and the thermistor F1.
[0042] Compared with the prior art, the present invention has the following beneficial effects:
[0043] By sampling the meter data of each distribution meter and obtaining the corresponding meter row and column matrix based on the sampled data, the meter theft coefficient of each distribution meter is obtained based on the obtained meter row and column matrix, and it is judged whether the distribution meter has the possibility of electricity theft based on the meter theft coefficient, thereby realizing effective monitoring of electricity theft. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0045] Figure 1 A flowchart of a method for analyzing electricity theft in the present invention;
[0046] Figure 2 It is a voltage sampling circuit of the electricity theft analysis circuit in the present invention;
[0047] Figure 3 It is a current sampling circuit of the electricity theft analysis circuit in the present invention;
[0048] Figure 4 It is a schematic diagram of the MCU chip of the power theft analysis circuit in the present invention;
[0049] Figure 5 It is a schematic diagram of the communication module of the electricity theft analysis circuit in the present invention. DETAILED DESCRIPTION
[0050] like Figure 1 As shown, a method for analyzing electricity theft includes the following steps:
[0051] Step S1: by configuring the meter files for the distribution meters, collecting and sampling the meter data of each meter according to the configured meter files, and obtaining the corresponding meter sampling data;
[0052] Step S2: constructing a row and column matrix of a corresponding electric meter according to the obtained electric meter sampling data;
[0053] Step S3: Obtain the electricity theft coefficient of the corresponding electricity meter according to the constructed row and column matrix of the electricity meter, and determine whether there is electricity theft in the distribution meter according to the obtained electricity theft coefficient of the electricity meter.
[0054] It should be further explained that, in the specific implementation process, the meter files are configured for the distribution meters, and meter data are collected and sampled for each meter according to the configured meter files. The process of obtaining the corresponding meter sampling data includes:
[0055] A main electricity meter is set up, and the main electricity meter is connected to a number of distribution electricity meters, and a meter file is configured for each distribution electricity meter, wherein the meter file includes the meter number, rated voltage, rated current and the corresponding basic information of the user, and the basic information of the user includes the user's name, address and contact information;
[0056] Setting a sampling period, performing periodic data collection on the distribution meter according to the set sampling period, and obtaining meter sampling data of the distribution meter;
[0057] The obtained meter sampling data of each group of distribution meters are labeled as i, where i=1, 2, ..., n;
[0058] The meter sampling data includes the main meter power consumption and the distribution meter power consumption, which are recorded as Nz and Wz respectively. i ;
[0059] It should be further explained that, in the specific implementation process, the power consumption of the main meter is the sum of the power consumption of all distribution meters.
[0060] It should be further explained that, in the specific implementation process, the process of constructing the corresponding meter row and column matrix according to the obtained meter sampling data includes:
[0061] Constructing an electric meter row-column matrix, wherein the electric meter row-column matrix is an n×N matrix, that is, the matrix has n columns and N rows, wherein N represents the number of acquisitions, and N=n;
[0062] The power consumption of the distribution meter labeled i is mapped to the i-th column in the meter row-column matrix, and the obtained meter row-column matrix is recorded as A, where:
[0063]
[0064] Among them, Wz im Indicates the power consumption of the distribution meter corresponding to the mth sampling of the distribution meter labeled i;
[0065] According to the power consumption of the main electric meter, a corresponding sequence is generated, which is recorded as sequence b, b = Among them, Nz N Indicates the power consumption of the main electric meter corresponding to the Nth sampling;
[0066] Replace the obtained number sequence b with the i-th column in the meter row-column matrix A to obtain the meter row-column matrix A i ,
[0067]
[0068] It should be further explained that, in the specific implementation process, the corresponding electricity meter theft coefficient is obtained according to the constructed electricity meter row and column matrix, and the process of judging whether the distribution meter has electricity theft behavior according to the obtained electricity meter theft coefficient includes:
[0069] According to the obtained meter row and column matrix A i And the meter row and column matrix A, obtain the distribution coefficient of each distribution meter, and record the distribution coefficient of the distribution meter labeled i as X i ;
[0070]
[0071] Then the electricity theft coefficient of the distribution meter labeled i is obtained, denoted as Q i ,in,
[0072] Set the electricity theft coefficient threshold Q0;
[0073] If Q i ≥Q0, it means that the corresponding distribution meter has electricity theft;
[0074] If Q i <Q0, it means that there is no electricity theft in the corresponding distribution meter.
[0075] like Figures 2 to 5 As shown, the present invention also discloses an electricity theft detection circuit for implementing an electricity theft analysis method, including a power supply module, a sampling module and a communication module;
[0076] The power supply module includes a network port labeled VCC, a network port labeled V485, a network port labeled GND, a network port labeled AGND, and a network port labeled G485, and is used to provide the circuit with the power required for operation;
[0077] The sampling module includes a voltage sampling circuit and a current sampling circuit;
[0078] The voltage sampling circuit includes a resistor R1, a first end of the resistor R1 is connected to the power line VA, a second end of the resistor R1 is connected to the first end of the resistor R2, a second end of the resistor R2 is connected to the first end of the resistor R3, a second end of the resistor R3 is connected to the first end of the resistor R4, a second end of the resistor R4 is connected to the first end of the resistor R5, a second end of the resistor R5 is connected to the first end of the resistor R6, a second end of the resistor R6 is connected to the first end of the resistor R7 and the second end of the tunnel diode D1, a first end of the tunnel diode D1 is connected to the network port label AGND, a second end of the resistor R7 is connected to the power line VN, and a capacitor C1 is connected in parallel to the resistor R7;
[0079] Connect the voltage sampling circuit to Uin+ and Uin- of the MCU chip U1;
[0080] The power line VA and the power line VN are the live line and the neutral line of the single-phase electricity respectively, and the capacitor C1 is used to filter high-frequency noise to make the input waveform stable;
[0081] The current sampling circuit includes: the second end of the resistor R8 is connected to the resistor R9, and the current input terminal IA+ is connected between the resistor R8 and the resistor R9, the second end of the resistor R11 is connected to the resistor R10, and the current output terminal IA- is connected between the resistor R11 and the resistor R10;
[0082] The resistors R8 and R9 are connected in parallel with a capacitor C2, and the resistors R10 and R11 are connected in parallel with a capacitor C3;
[0083] Connect the current sampling circuit to I in+ and I in- of the MCU chip U1;
[0084] The current passes through the current input terminal IA+ to the current output terminal IA-, and the current signal is converted into a voltage signal through resistors R9 and R10. The high-frequency filtering is then performed through a filter circuit constructed by resistors R8, R11, capacitors C2, and C3, making the I in+ and I in- signals input to the MCU chip U1 more stable.
[0085] The communication module includes an optical coupler OPT1, an optical coupler OPT2, and an optical coupler OPT3;
[0086] Connect the optical coupler OPT1 to the RO terminal of the 485 chip U2;
[0087] The optical coupler OPT1 is connected to a resistor R12 and a resistor R13. The resistor R12 is a pull-up resistor of RX in UART, which defaults to a high level for the network port RX to ensure that the UART works normally. The resistor R13 is a driving resistor, which is used to control the conduction degree of the optical coupler OPT1.
[0088] Connect the optical coupler OPT2 to the RE and DE terminals of the 485 chip U2;
[0089] The optical coupler OPT2 is connected to a resistor R15 and a resistor R16. The resistor R15 is a pull-down resistor after the control signal Ctr l of the 485 chip U2 is transmitted. The default low level corresponds to the 485 chip working in the receiving mode. The resistor R16 is a driving resistor used to control the conduction degree of the optical coupler OPT2.
[0090] Connect the optical coupler OPT3 to the DI terminal of the 485 chip U2;
[0091] The optical coupler OPT3 is connected to a resistor R18 and a resistor R19. The resistor R18 is a pull-up resistor of TX in UART, which gives a default high level to the signal input to the 485 chip U2 to ensure that the 485 chip U2 works normally. The resistor R19 is a driving resistor for controlling the conduction degree of the optical coupler OPT3.
[0092] The A end and the B end of the 485 chip U2 are connected to the 485 signal line A and the 485 signal line B respectively;
[0093] The 485 signal line B is connected with a resistor R14, a capacitor C4, a transient diode PK1 and a transient diode PK2;
[0094] The 485 signal line A is connected to a resistor R17 and a thermistor F1. One end of the transient diode PK1 is connected between the resistor R14 of the 485 signal line B and the transient diode PK2, and the other end is connected between the resistor R17 of the 485 signal line A and the thermistor F1. The 485 circuit is protected by the thermistor F1. When high voltage is continuously applied, the thermistor F1 heats up, causing the resistance to increase, so that most of the voltage drop is dropped on the thermistor, thereby protecting other circuits.
[0095] The resistor R17 is a pull-up resistor of 485A, and the resistor R14 is a pull-down resistor of 485B, so that the electrical signal of 485A is higher than that of 485B by default, providing communication for the 485 bus.
[0096] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technical personnel in this field can make some changes or modify the technical contents disclosed above into equivalent embodiments with equivalent changes without departing from the scope of the technical solution of the present invention. However, any modification or equivalent replacement of the above embodiments made according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of the technical solution of the present invention.
Claims
1. A method for analyzing electricity theft, characterized in that: The following steps are involved: Step S1: by configuring the meter files for the distribution meters, collecting and sampling the meter data of each meter according to the configured meter files, and obtaining the corresponding meter sampling data; Step S2: constructing a row and column matrix of a corresponding electric meter according to the obtained electric meter sampling data; Step S3: Obtain the electricity theft coefficient of the corresponding electricity meter according to the constructed row and column matrix of the electricity meter, and determine whether there is electricity theft in the distribution meter according to the obtained electricity theft coefficient of the electricity meter.
2. The electricity theft analysis method according to claim 1, characterized in that: The meter files are configured for the distribution meters, and meter data are collected and sampled for each meter according to the configured meter files. The process of obtaining the corresponding meter sampling data includes: A main electricity meter is set up, and the main electricity meter is connected to a number of distribution electricity meters, and a meter file is configured for each distribution electricity meter, wherein the meter file includes the meter number, rated voltage, rated current and the corresponding basic information of the user, and the basic information of the user includes the user's name, address and contact information; Setting a sampling period, performing periodic data collection on the distribution meter according to the set sampling period, and obtaining meter sampling data of the distribution meter; The obtained meter sampling data of each group of distribution meters are labeled as i, where i=1, 2, ..., n; The meter sampling data includes the main meter power consumption and the distribution meter power consumption.
3. The electricity theft analysis method according to claim 2, characterized in that: The process of constructing the corresponding meter row and column matrix according to the obtained meter sampling data includes: Constructing an electric meter row-column matrix, wherein the electric meter row-column matrix is an n×N matrix, that is, the matrix has n columns and N rows, wherein N represents the number of acquisitions, and N=n; Map the power consumption of the distribution meter labeled i to the i-th column in the meter row-column matrix, and record the obtained meter row-column matrix as A; According to the power consumption of the main electric meter, a corresponding sequence is generated, which is recorded as sequence b; Replace the obtained number sequence b with the i-th column in the meter row-column matrix A to obtain the meter row-column matrix A i .
4. The electricity theft analysis method according to claim 3 is characterized in that: According to the constructed meter row and column matrix, the corresponding meter electricity theft coefficient is obtained, and the process of judging whether the distribution meter has electricity theft behavior according to the obtained meter electricity theft coefficient includes: According to the obtained meter row and column matrix A i And the meter row and column matrix A, obtain the distribution coefficient of each distribution meter, and record the distribution coefficient of the distribution meter labeled i as X i ; Then we can get the electricity theft coefficient Q of the distribution meter labeled i: i ; Set the electricity theft coefficient threshold Q0; If Q i ≥Q0, it means that the corresponding distribution meter has electricity theft; If Q i <Q0, it means that there is no electricity theft in the corresponding distribution meter.
5. An electricity theft detection circuit for implementing an electricity theft analysis method according to any one of claims 1 to 4, characterized in that: Including power module, sampling module and communication module; The power supply module includes a network port labeled VCC, a network port labeled V485, a network port labeled GND, a network port labeled AGND, and a network port labeled G485, and is used to provide the circuit with the power required for operation; The sampling module includes a voltage sampling circuit and a current sampling circuit; The voltage sampling circuit includes a resistor R1, a first end of the resistor R1 is connected to the power line VA, a second end of the resistor R1 is connected to the first end of the resistor R2, a second end of the resistor R2 is connected to the first end of the resistor R3, a second end of the resistor R3 is connected to the first end of the resistor R4, a second end of the resistor R4 is connected to the first end of the resistor R5, a second end of the resistor R5 is connected to the first end of the resistor R6, a second end of the resistor R6 is connected to the first end of the resistor R7 and the second end of the tunnel diode D1, a first end of the tunnel diode D1 is connected to the network port label AGND, a second end of the resistor R7 is connected to the power line VN, and a capacitor C1 is connected in parallel to the resistor R7; Connect the voltage sampling circuit to Uin+ and Uin- of the MCU chip U1.
6. The electricity theft detection circuit according to claim 5, characterized in that: The current sampling circuit includes a resistor R8, a second end of the resistor R8 is connected to a resistor R9, and a current input terminal IA+ is connected between the resistor R8 and the resistor R9, a second end of the resistor R11 is connected to a resistor R10, and a current output terminal IA- is connected between the resistor R11 and the resistor R10; The resistors R8 and R9 are connected in parallel with a capacitor C2, and the resistors R10 and R11 are connected in parallel with a capacitor C3; Connect the current sampling circuit to Iin+ and Iin- of the MCU chip U1.
7. The electricity theft detection circuit according to claim 6, characterized in that: Connect the optical coupler OPT1 to the RO terminal of the 485 chip U2; The optical coupler OPT1 is connected to a resistor R12 and a resistor R13; Connect the optical coupler OPT2 to the RE and DE terminals of the 485 chip U2; The optical coupler OPT2 is connected to a resistor R15 and a resistor R16; Connect the optical coupler OPT3 to the DI terminal of the 485 chip U2; The optical coupler OPT3 is connected to a resistor R18 and a resistor R19; The A end and the B end of the 485 chip U2 are connected to the 485 signal line A and the 485 signal line B respectively; The 485 signal line B is connected with a resistor R14, a capacitor C4, a transient diode PK1 and a transient diode PK2; The 485 signal line A is connected to a resistor R17 and a thermistor F1. One end of the transient diode PK1 is connected between the resistor R14 of the 485 signal line B and the transient diode PK2, and the other end is connected between the resistor R17 of the 485 signal line A and the thermistor F1.