Electric energy meter anomaly detection method and system

Through the convolutional neural network model based on the optimal differential interval of residual optimization, the problem of capturing data change trends in energy meter anomaly detection is solved, achieving more accurate and efficient anomaly detection, and improving the safety and stability of the power system. sex.

CN118707429APending Publication Date: 2024-09-27STATE GRID HUNAN ELECTRIC POWER COMPANY LIMITED +2
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410769981.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The existing technology has problems such as high difficulty in troubleshooting and low timeliness in detecting abnormality in electric energy meters. It cannot effectively capture the changing trend of characteristic data of electric energy meters, which affects the safety and stability of the power system.

Method used

A convolutional neural network model based on the optimal differential interval of residual optimization is used. By collecting the root mean square data of the three-phase voltage, a residual optimization model is established, the optimal differential interval is calculated, and the convolutional neural network is trained as the characteristic data of the electric energy meter. , to achieve real-time anomaly detection.

Benefits of technology

It improves the accuracy and timeliness of abnormal detection of electric energy meters, can more accurately capture the periodic changing characteristics of data, enhances the scope of application and robustness of the system, and ensures the safety and stability of the power system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118707429A
    Figure CN118707429A
Patent Text Reader

Abstract

The invention discloses an electric energy meter anomaly detection method and system. The method comprises the following steps: collecting three-phase voltage of an electric energy meter, and taking the root mean square of the three-phase voltage as original feature data; establishing a residual error optimization model, and solving an optimal difference interval by minimizing the residual error of the residual error optimization model; calculating an average difference value of the original characteristic data in each optimal difference interval, and taking the average difference value as electric energy meter characteristic data; using the electric energy meter characteristic data as a sample to train a convolutional neural network model, and using the trained convolutional neural network model to detect the data collected by the electric energy meter in real time. According to the method, the change trend of the characteristic data of the electric energy meter is accurately captured by constructing the convolutional neural network anomaly monitoring model of the optimal difference interval based on residual optimization, and a more accurate and reliable result is provided for anomaly detection of the electric energy meter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electric power systems, and in particular to an abnormality detection method and system for electric energy meters. Background Art

[0002] As the level of intelligence of the power system continues to improve, the role of energy meters in the field of power monitoring and management is becoming increasingly significant. The responsibilities of energy meters include not only measuring power parameters, measuring two-way power, achieving real-time data interaction, monitoring power quality, and supporting remote monitoring, but also their accuracy and stability directly affect the trade settlement and fair transactions between power generation companies, power grid companies, power sales companies, and power users.

[0003] However, due to long-term operation, power equipment is easily affected by various unpredictable factors, which may lead to equipment failure, communication interruption, power theft and other problems. Traditional power meter abnormality analysis usually relies on on-site inspection by staff, which has problems such as high difficulty and low timeliness. With the development of smart grids, power grid data is growing rapidly, but the related status monitoring technology is still in its infancy.

[0004] The National Energy Administration has put forward new requirements for the operation and management of electric energy metering devices in the "DLT 448-2016 Technical Management Regulations for Electric Energy Metering Devices", encouraging the development of new technologies such as modern detection technology. In this context, abnormal monitoring of electric energy meters has become a vital task, and intelligent methods are needed to ensure the reliable operation of electric energy meters and further improve the safety and stability of power systems. Under the current research trend, strengthening the research and improvement of abnormal monitoring methods for electric energy meters, especially focusing on combining advanced status monitoring technology, will hopefully provide more reliable and efficient solutions for the intelligent development of power systems. Summary of the invention

[0005] The technical problem to be solved by the present invention is as follows: In view of the above-mentioned problems in the prior art, a method and system for detecting anomaly of an electric energy meter are provided. By constructing a convolutional neural network anomaly monitoring model with an optimal differential interval based on residual optimization, the changing trend of the characteristic data of the electric energy meter can be accurately captured, so as to provide more accurate and reliable results for the anomaly detection of the electric energy meter.

[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0007] A method for detecting abnormality of an electric energy meter comprises the following steps:

[0008] Collecting the three-phase voltage of the electric energy meter and taking the root mean square of the three-phase voltage as original characteristic data;

[0009] Establish a residual optimization model and solve the optimal difference interval by minimizing the residual of the residual optimization model;

[0010] Calculate the average difference value of the original characteristic data in each optimal difference interval and use it as the characteristic data of the electric energy meter;

[0011] The characteristic data of the electric energy meter is used as a sample to train the convolutional neural network model, and the trained convolutional neural network model is used to detect the data collected by the electric energy meter in real time.

[0012] Furthermore, when establishing the residual optimization model, it includes:

[0013] Perform Fourier transform on the root mean square value of the three-phase voltage of the electric energy meter to obtain the corresponding spectrum X(f);

[0014] Perform amplitude averaging on the spectrum X(f), and then extract the peak value as the target frequency value for initial estimation;

[0015] Construct a model signal s(t) based on the information of each pulse in the time domain sequence x(n) of the input feature, calculate the differential interval T based on the target frequency value and assign values ​​to the variables in the model signal s(t) to obtain the model signal s(nT);

[0016] The residual R between the time domain sequence x(n) of the input feature and the model signal s(nT) is calculated to obtain the residual optimization model.

[0017] Furthermore, the model signal s(t) is expressed as follows:

[0018]

[0019] In the above formula, A i is the amplitude of the ith pulse, t i is the position of the ith pulse, Δt is the pulse width, and f i is the frequency of the ith pulse, and g() is the gate signal.

[0020] Furthermore, the expression of the residual optimization model is as follows:

[0021]

[0022] Among them, R represents the residual, x(n) is the time domain sequence of the input feature, s(nT) is the model signal, and f i is the frequency of the ith pulse.

[0023] Furthermore, when solving the optimal difference interval by minimizing the residual of the residual optimization model, it includes:

[0024] The model signal parameters are iteratively adjusted, and the residual R is continuously optimized using the gradient descent method until the convergence condition of the gradient descent method is reached, and the corresponding differential interval T is output as the optimal differential interval.

[0025] Furthermore, when using the electric energy meter characteristic data as samples to train the convolutional neural network model, it includes: using the electric energy meter characteristic data as input and the corresponding labels as output to train the convolutional neural network.

[0026] Furthermore, the loss function of the convolutional neural network is:

[0027]

[0028] Among them, J represents the loss function, m is the number of samples, and y (i) is the actual label, is the predicted value of the model.

[0029] Furthermore, after using the trained convolutional neural network model to detect the data collected in real time by the electric energy meter, if an abnormality is detected, an alarm message is generated and relevant personnel are notified.

[0030] The present invention also provides an electric energy meter abnormality detection system, comprising a microprocessor and a memory connected to each other, wherein the microprocessor is programmed or configured to execute any one of the electric energy meter abnormality detection methods.

[0031] The present invention further proposes a computer-readable storage medium, in which a computer program is stored. The computer program is used to be programmed or configured by a microprocessor to execute any one of the methods for detecting abnormality of an electric energy meter.

[0032] Compared with the prior art, the advantages of the present invention are:

[0033] 1. The present invention collects the three-phase voltage of the electric energy meter and calculates its RMS value, extracts the comprehensive characteristics of the three-phase voltage, and helps to fully reflect the voltage situation of the electric energy meter, rather than just the single-phase voltage value. The normal operation of the electric energy meter should maintain a stable three-phase voltage. By calculating the RMS value, the stability of the electric energy meter voltage can be better reflected, and the abnormal detection effect of the system can be improved.

[0034] 2. Since abnormal data often manifests as periodic changes or sudden fluctuations, compared with the traditional differential calculation method, the present invention uses the optimal differential interval estimation method based on residual optimization to ensure that each differential window contains complete periodic change information. This can effectively capture the periodic change characteristics of the data and improve the accuracy of data analysis.

[0035] 3. The present invention proposes an optimal differential interval estimation method based on residual optimization, which adaptively adjusts the differential interval according to the periodic characteristics of different data, making it more universal and adaptable. Different electric energy meter data may have different periodic characteristics. By adjusting the differential interval, it can adapt to the characteristics of various data, thereby improving the scope of application and robustness of the algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 Schematic diagram of the basic flow of the method of the embodiment of the present invention.

[0037] Figure 2 The figure is a schematic diagram of the confusion matrix of the model according to the embodiment of the present invention for detecting actual data. DETAILED DESCRIPTION

[0038] The present invention is further described below in conjunction with the accompanying drawings and specific preferred embodiments, but the protection scope of the present invention is not limited thereby.

[0039] like Figure 1 As shown, in view of the current need to strengthen the research and improvement of the abnormality monitoring method of the electric energy meter, this embodiment proposes an abnormality detection method of the electric energy meter, including the following steps:

[0040] S101, collecting the three-phase voltage of the electric energy meter and taking the root mean square of the three-phase voltage as the original feature data; then using the optimal differential interval estimation method based on residual optimization to determine the differential signal calculation range, specifically, establishing a residual optimization model, and solving the optimal differential interval by minimizing the residual of the residual optimization model;

[0041] S102, using the differential signal calculation range to complete the calculation of the average differential value, specifically, calculating the average differential value of the original characteristic data within each optimal differential interval, and using it as the characteristic data of the electric energy meter to capture the trend and change rate of the data, thereby obtaining more information about the dynamic changes of the data

[0042] S103, using the average difference value as a sample to complete the training of a convolutional neural network (CNN) model, specifically using the electric energy meter feature data as a sample to train the convolutional neural network model;

[0043] S104, using the trained convolutional neural network model to detect the data collected in real time by the electric energy meter, once an abnormality is detected, an alarm message is immediately generated and relevant personnel are notified in time to quickly respond to and handle the abnormal situation.

[0044] Each step is described in detail below.

[0045] In step S101 of this embodiment, the original feature data is recorded as x, which can be expressed as:

[0046]

[0047] In the above formula, U a is the phase A voltage, U b is the B phase voltage, U c is the C phase voltage.

[0048] Traditional anomaly detection models for electric energy meters are mainly based on static features, such as root mean square, which cannot fully reflect the dynamic changes of the voltage of the electric energy meter, so they are less sensitive to abnormal data. In addition, traditional models find it difficult to capture the trend and rate of change of the voltage of the electric energy meter over time, which may lead to omissions or false alarms in anomaly detection. The characteristic data of the electric energy meter is characterized by time series and dynamics, and its voltage value changes continuously over time. Traditional models cannot make full use of this time series information, but only focus on the numerical value of static features, ignoring the dynamic change process of the voltage of the electric energy meter. In addition, the characteristic data of the electric energy meter may be interfered by noise, and measures need to be taken to suppress it.

[0049] In order to improve the accuracy and sensitivity of the model, the optimal differential interval estimation method based on residual optimization is introduced in this embodiment to obtain the changing trend of the characteristic data of the electric energy meter. Simple differential operations cannot accurately capture the periodic change characteristics. The traditional fixed differential interval cannot adapt to the needs of periodic changes in data, so it is necessary to adjust the differential interval to ensure that each differential window contains complete periodic change information, so as to more accurately reflect the true change trend of the data. In response to these problems, the optimal differential interval estimation algorithm based on residual optimization is used in this embodiment to complete the determination of the optimal differential interval.

[0050] In this embodiment, the optimal difference interval estimation method based on residual optimization specifically includes:

[0051] First, a residual optimization model is established, which includes the following steps:

[0052] S201, perform Fourier transform on the root mean square value of the three-phase voltage of the electric energy meter to obtain the corresponding spectrum X(f), which is expressed as follows:

[0053]

[0054] In the above formula, x(n) is the time domain sequence of the input feature, N is the number of sampling points of the signal, T is the sampling interval, and f is the frequency;

[0055] S202, perform amplitude averaging on the spectrum X(f) to reduce the influence of noise and improve the accuracy of parameter estimation. The expression is as follows:

[0056]

[0057] In the above formula, M is the number of frequency components, Xi (f) is the i-th frequency component.

[0058] S203, extracting the spectrum after amplitude averaging The peak value of is taken as the initial estimated target frequency value f0;

[0059] S204, constructing a model signal s(t) according to the information of each pulse in the time domain sequence x(n) of the input feature. In this embodiment, the expression of the model signal s(t) is defined as follows:

[0060]

[0061] In the above formula, A i is the amplitude of the ith pulse, t i is the position of the ith pulse, Δt is the pulse width, and f i is the frequency of the ith pulse, and g() is the gate signal.

[0062] S205, calculate the difference interval T according to the target frequency value and assign values ​​to the variables in the model signal s(t) to obtain the model signal s(nT), and then calculate the residual R between the time domain sequence x(n) of the input feature and the model signal s(nT), the expression is as follows:

[0063]

[0064] Among them, R represents the residual, x(n) is the time domain sequence of the input feature, s(nT) is the model signal, and f i is the frequency of the ith pulse.

[0065] After obtaining the residual model, the parameter T is optimized by minimizing the residual R i , that is, solving the optimal difference interval by minimizing the residual of the residual optimization model, specifically including:

[0066] The model signal s(t) parameters are iteratively adjusted, and the residual R is continuously optimized using the gradient descent method until the convergence condition of the gradient descent method is reached, and the corresponding differential interval T is output as the optimal differential interval.

[0067] In step S102 of this embodiment, the optimal differential interval T is used to determine the differential data calculation range and complete the optimization calculation of the differential data ΔX, so as to more accurately capture the trend and change rate of the characteristic data and obtain more information about the dynamic change of the data. The differential data calculation formula in the optimal differential interval is:

[0068]

[0069] In the above formula, x nRepresents the value of the nth sampling point of the feature data within an optimal difference interval T, where N is the number of sampling points within an optimal difference interval T.

[0070] The average difference value within each optimal difference interval T can be calculated by formula (7), and the average difference value is used as the characteristic data X of the electric energy meter. The expression is as follows:

[0071]

[0072] In the above formula, is the average difference value of the tth optimal difference interval.

[0073] In step S103 of this embodiment, when the electric energy meter characteristic data is used as a sample to train the convolutional neural network model, the electric energy meter characteristic data is used as input, and the corresponding label is used as output to train the convolutional neural network. The loss function of the convolutional neural network is:

[0074]

[0075] Among them, J represents the loss function, m is the number of samples, and y (i) is the actual label, is the predicted value of the model.

[0076] The following is a further detailed description of the electric energy meter abnormality detection method of this embodiment, taking the actual electric energy meter characteristic data from a southern province as an example. It should be noted that the electric energy meter abnormality detection method and system of this embodiment can be applied to all three-phase voltage data of three-phase electric energy meters, and does not depend on a specific three-phase electric energy meter equipment type.

[0077] In step S101 of this embodiment, an actual electric energy meter characteristic data set from a southern province is used. The data set contains three types of anomalies. Specifically, the A-phase voltage, B-phase voltage, and C-phase voltage of the electric energy meter are collected, and the root mean square value of the three-phase voltage is calculated. The optimal differential interval estimation method based on residual optimization is used to determine the differential signal calculation range. The average differential value is calculated and used as the characteristic data of the electric energy meter. The data set contains a total of 4557 samples, as shown in Table 1.

[0078] Table 1 Sample size table.

[0079] category Sample size Normal 0 4248 Anomaly 1 203 Anomaly 2 73 Anomaly 3 33

[0080] In step S103 of this embodiment, the effects of different learning rates and convolutional layer depths on the CNN model are explored, and partial comparison results are shown in Table 2.

[0081] Table 2 Comparison results of the effects of different learning rates and convolutional layer depths on CNN models

[0082] Learning Rate Convolutional layer depth Accuracy 0.001 3 93.3% 0.01 4 97.3% 0.1 5 89.72% 0.2 6 87.62% 0.3 7 79.86%

[0083] From the comparison in Table 2, we can see that the best effect is achieved when the learning rate of the model is 0.01 and the convolution block depth is 3. Subsequently, the actual collected data without training is used as the test set to verify the detection performance of the model. Figure 2 The confusion matrix presented in Figure 2 shows that the CNN model performs well and successfully distinguishes normal and abnormal data, meeting the needs of abnormal detection of electric energy meters. When CNN detects a fault, it immediately triggers the alarm mechanism to promptly alert the relevant person in charge.

[0084] Embodiment 2

[0085] This embodiment further provides an electric energy meter abnormality detection system, comprising a microprocessor and a memory connected to each other, wherein the microprocessor is programmed or configured to execute the electric energy meter abnormality detection method described in the first embodiment.

[0086] This embodiment further provides a computer-readable storage medium, in which a computer program is stored. The computer program is used to be programmed or configured by a microprocessor to execute the electric energy meter abnormality detection method described in the first embodiment.

[0087] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, may be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the functions in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0088] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.

Claims

1. A method for detecting abnormality of an electric energy meter, characterized in that: The following steps are involved: Collecting the three-phase voltage of the electric energy meter and taking the root mean square of the three-phase voltage as original characteristic data; Establish a residual optimization model and solve the optimal difference interval by minimizing the residual of the residual optimization model; Calculate the average difference value of the original characteristic data in each optimal difference interval and use it as the characteristic data of the electric energy meter; The characteristic data of the electric energy meter is used as a sample to train the convolutional neural network model, and the trained convolutional neural network model is used to detect the data collected by the electric energy meter in real time.

2. The method for detecting abnormality of an electric energy meter according to claim 1, characterized in that: When building a residual optimization model, include: Perform Fourier transform on the root mean square value of the three-phase voltage of the electric energy meter to obtain the corresponding spectrum X(f); Perform amplitude averaging on the spectrum X(f), and then extract the peak value as the target frequency value for initial estimation; Construct a model signal s(t) based on the information of each pulse in the time domain sequence x(n) of the input feature, calculate the differential interval T based on the target frequency value and assign values ​​to the variables in the model signal s(t) to obtain the model signal s(nT); The residual R between the time domain sequence x(n) of the input feature and the model signal s(nT) is calculated to obtain the residual optimization model.

3. The method for detecting abnormality of an electric energy meter according to claim 2, characterized in that: The model signal s(t) is expressed as follows: In the above formula, A i is the amplitude of the ith pulse, t i is the position of the ith pulse, Δt is the pulse width, and f i is the frequency of the ith pulse, and g() is the gate signal.

4. The method for detecting abnormality of an electric energy meter according to claim 2, characterized in that: The expression of the residual optimization model is as follows: Among them, R represents the residual, x(n) is the time domain sequence of the input feature, s(nT) is the model signal, and f i is the frequency of the ith pulse.

5. The method for detecting abnormality of an electric energy meter according to claim 2, characterized in that: When solving the optimal difference interval by minimizing the residual error of the residual optimization model, it includes: The model signal parameters are iteratively adjusted, and the residual R is continuously optimized using the gradient descent method until the convergence condition of the gradient descent method is reached, and the corresponding differential interval T is output as the optimal differential interval.

6. The method for detecting abnormality of an electric energy meter according to claim 1, characterized in that: When using the electric energy meter characteristic data as samples to train the convolutional neural network model, it includes: using the electric energy meter characteristic data as input and the corresponding labels as output to train the convolutional neural network.

7. The method for detecting abnormality of an electric energy meter according to claim 6, characterized in that: The loss function of the convolutional neural network is: Among them, J represents the loss function, m is the number of samples, and y (i) is the actual label, is the predicted value of the model.

8. The method for detecting abnormality of an electric energy meter according to claim 1, characterized in that: After using the trained convolutional neural network model to detect the data collected by the electric energy meter in real time, including: if an abnormality is detected, an alarm message is generated and relevant personnel are notified.

9. An electric energy meter abnormality detection system, comprising a microprocessor and a memory connected to each other, characterized in that: The microprocessor is programmed or configured to execute the electric energy meter abnormality detection method according to any one of claims 1 to 8.

10. A computer-readable storage medium having a computer program stored therein, characterized in that: The computer program is used to be programmed or configured by a microprocessor to execute the electric energy meter abnormality detection method according to any one of claims 1 to 8.

Citation Information

Cited By

  • Fault detection method and system for metering chip of electricity meter

    CN121278452A

  • Three-phase electric energy meter burning detection method and system based on hybrid deep learning model

    CN121524585A

  • Three-phase electric energy meter burning detection method and system based on hybrid deep learning model

    CN121524585B