Power system bad data identification method, device, equipment and medium

The gated recurrent unit neural network is used to identify the time correlation of power grid data in the power system, which solves the problem of insufficient accuracy in identifying bad data in the power system in the existing technology and achieves a more efficient data identification effect.

CN114510469BActive Publication Date: 2024-09-13CHINA ELECTRIC POWER RESEARCH INSTITUTE CO LTD +3
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202210119326.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-08
Publication Date
2024-09-13
Estimated Expiration
2042-02-08

AI Technical Summary

Technical Problem

The existing technology fails to fully consider the time correlation of data in the identification of bad data in power systems, which affects the accuracy of power grid data identification.

Method used

The gated recurrent unit neural network in the deep learning algorithm is used to extract low-order features through multi-scale convolution kernels, the residual block extracts high-order features, and the gated recurrent unit is used to process the high-order features. Combined with environmental variable data, the construction time Finally, the abnormal points of the data are identified through full connection operations and standard critical values.

Benefits of technology

It improves the accuracy of identifying bad data in the power system, reduces the complexity of feature engineering, and significantly shortens the sample test time under the same hardware conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114510469B
    Figure CN114510469B
Patent Text Reader

Abstract

The present invention belongs to the technical field of power data identification, and particularly discloses a method, device, equipment and medium for identifying bad data in a power system, the method comprising: obtaining power grid data and environmental variable data, and splicing the obtained power grid data and environmental variable data into vector data according to a time series to obtain an original power grid data sequence; extracting low-order features from the original power grid data sequence through a multi-scale convolution kernel, and splicing the extracted low-order features together according to channels to obtain a splicing feature map; extracting high-order features of the splicing feature map using a residual block; processing the high-order features using a gated cyclic unit to obtain a predicted feature map; converting the predicted feature map into an output sequence using a fully connected operation; and processing the output sequence using a standard critical value to obtain data abnormal points. The present invention does not require complex feature engineering, and the sample test time under the same hardware conditions is also much faster than most methods.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of power data identification, and in particular relates to a method, device, equipment and medium for identifying bad data in a power system. Background Art

[0002] The power grid data of the dispatching automation system generally goes through three major links, data collection, data transmission and data processing, from the equipment to the dispatching system. Therefore, the three aspects of measuring devices, transmission channels and data processing may all produce bad data of the power system. In terms of data collection errors and mistakes, there are data inaccuracies caused by the unstable quality of some measuring instruments, changes in the operating environment affecting the measurement accuracy, and the inability to keep up with the maintenance and verification work. There are also problems and phenomena such as acquisition device failure, unreasonable setting of telemetry dead zone, and telemetry data overflow, which will lead to deviations in real-time data or even unavailability; in terms of data conversion and transmission, telemetry data itself is a physical quantity, but data transmission requires digital quantity, so A / D and D / A conversion are required before and after transmission, and numerical conversion will inevitably lead to deviations. At the same time, the data transmission between the substation and the main station is affected by various factors such as channel quality, transmission protocol, and external environment, resulting in deviations in power grid data; in terms of data processing deviations, real-time data processing has links such as parameter maintenance, data conversion, data storage and release, and multi-source data selection. There is a possibility that the upper and lower limits, coefficients and other data will be incorrectly maintained in parameter maintenance, especially when the system encounters extreme situations (such as CPU resources being occupied, network congestion and abnormalities, commercial database failures, etc.), there is a possibility of errors in data processing. Bad data in the power system affects the state estimation results. In severe cases, the calculation results of power flow analysis, static safety analysis, etc. are unreliable, the early warning decision software will give false alarms or miss alarms, the decision-making measures of the auxiliary decision software will be unfeasible, and even the control measures of the automatic control software will be wrong, which will cause serious safety problems.

[0003] Based on the above background, it is necessary to propose an effective method for identifying bad data in the power system to solve the above technical problems. After preliminary search, two related patent applications were found:

[0004] 1) Existing patent application 1:

[0005] The Chinese patent application with application number CN201610567194.2 discloses a bad data identification method and system based on historical measurement, including: recording all telesignal points where switch displacement occurs in two adjacent sections as mutation telesignal points; recording telemetering points where the change value between the predicted telemetering value and the actual telemetering value is greater than a predetermined threshold as mutation telemetering points; judging whether the telemetric value of the associated equipment corresponding to the mutation telesignaling point / mutation telemetering point has a mutation; if there is no mutation, judging the mutation telesignaling point as a bad telesignaling point / mutation telemetering point as a bad telemetering point; if there is a mutation, calculating the correlation coefficient between the associated equipment and the historical telemetering value; if the number of correlation coefficients that are not close to ±1 is greater than a predetermined number, judging the mutation telesignaling point as a bad telesignaling point / mutation telemetering point as a bad telemetering point; correcting the bad telesignaling data corresponding to the bad telesignaling point, and correcting the bad telemetering data corresponding to the bad telemetering point; thereby realizing the detection of bad telesignaling data and bad telemetering data existing in the EMS system and improving the accuracy of the measurement data.

[0006] 2) Existing patent application 2:

[0007] Chinese patent application with application number CN201810059612.6 discloses a method for identifying bad data of state estimation based on BP neural network. Aiming at the high requirements of the BP neural network bad data identification method on training samples, a BP neural network model for identifying bad data based on state estimation results is established. The online state estimation calculation result section is used as a sample for training, and the measurement value is used as the input data, and the state estimation value is the expected output. Through the back propagation of the error between the input and the output, the connection weights and thresholds are corrected based on multiple iterations of the samples, and a neural network based on measurement is trained. The new measurement section is detected by the trained neural network. When the deviation between the obtained measurement and the predicted value is large, it can be judged as bad data.

[0008] Since the grid measurement data has a certain periodicity or a strong progressive relationship in time, the above technical solution does not fully consider the temporal correlation of the data in the process of identifying the bad data of the power system, which affects the accuracy of the identification of the bad grid data. Summary of the invention

[0009] The purpose of the present invention is to provide a method, device, equipment and medium for identifying bad data in a power system to improve the accuracy of identifying bad data in a power grid. The present invention models the power system data through a gated recurrent unit neural network in a deep learning algorithm, effectively characterizes the periodicity and time-progressive relationship of the power grid data, and takes into account environmental impacts and electrical quantity constraints, thereby achieving effective identification of bad data in the power system.

[0010] In order to achieve the above object, the present invention adopts the following technical solution:

[0011] In a first aspect, the present invention provides a method for identifying bad data in a power system, comprising:

[0012] Acquire power grid data and environmental variable data, and splice the acquired power grid data and environmental variable data into vector data according to a time series to obtain an original power grid data sequence;

[0013] Extracting low-order features from the original power grid data sequence through a multi-scale convolution kernel, and splicing the extracted low-order features together according to channels to obtain a spliced ​​feature map;

[0014] Use residual blocks to extract high-order features of the spliced ​​feature map;

[0015] Processing the high-order features using a gated recurrent unit to obtain a predicted feature map;

[0016] Using the fully connected operation, the predicted feature map is converted into an output sequence;

[0017] The output sequence is processed using the standard critical value to obtain the abnormal points of the data.

[0018] A further improvement of the present invention is that in the step of acquiring power grid data and environmental variable data, the environmental variables include one or both of temperature and humidity.

[0019] A further improvement of the present invention is that in the step of extracting low-order features from the original power grid data sequence through a multi-scale convolution kernel, the multi-scale convolution kernel includes a 1×1 convolution kernel, a 3×1 convolution kernel and a 5×1 convolution kernel.

[0020] A further improvement of the present invention is that in the step of using a gated recurrent unit to process the high-order features to obtain a predicted feature map, the training step of the gated recurrent unit includes:

[0021] Combine power grid data and environmental variables and splice them into vector data based on time series; use sliding windows to sample training data and label data. The length of the sliding sampling window for training data is 500 numerical points, and the length of the sliding sampling window for label data is 50 numerical points.

[0022] First, the input data is passed through the network to extract features and obtain the output sequence; then, the output sequence and label sequence are used to construct the loss function, which uses the mean square error loss, as shown below:

[0023]

[0024] In the above formula, represents the predicted output value, Y represents the label value; n sample points in the data set; n represents the total number of input data points, that is, the total number of sample points, and t is the sample point number;

[0025] The loss function is derived using gradient descent, and the parameters of the entire gated recurrent unit neural network model are updated by backpropagation; training is performed until the maximum number of training times is reached or the loss function converges to obtain a trained gated recurrent unit neural network model.

[0026] A further improvement of the present invention is that in the step of processing the output sequence using a standard critical value to obtain the abnormal point of the data, the standard critical value ω k As shown below:

[0027] ω k =γ(m k -n k )

[0028] In the above formula, m k is the kth data point in the original power grid data sequence, n k is the kth data point of the output sequence, γ is the critical value coefficient; when |ω k |>λ is considered a bad data point; the value of λ is determined according to the data point type: when it is active power type, λ=2%; when it is reactive power type, λ=3%; when it is voltage type, λ=0.5%.

[0029] In a second aspect, the present invention provides a device for identifying bad data in a power system, comprising:

[0030] An acquisition module is used to acquire power grid data and environmental variable data, and splice the acquired power grid data and environmental variable data into vector data according to a time series to obtain an original power grid data sequence;

[0031] A multi-scale convolution kernel extraction module, used to extract low-order features from the original power grid data sequence through a multi-scale convolution kernel, and splice the extracted low-order features together according to channels to obtain a spliced ​​feature map;

[0032] A residual block extraction module is used to extract high-order features of the spliced ​​feature map using residual blocks;

[0033] A gated recurrent unit processing module, used for processing the high-order features using a gated recurrent unit to obtain a predicted feature map;

[0034] A fully connected module, used to convert the predicted feature map into an output sequence using a fully connected operation;

[0035] The outlier identification module is used to process the output sequence using a standard critical value to obtain the outliers of the data.

[0036] A further improvement of the present invention is that the multi-scale convolution kernel includes a 1×1 convolution kernel, a 3×1 convolution kernel and a 5×1 convolution kernel.

[0037] A further improvement of the present invention is that: the standard critical value ω k As shown below:

[0038] ω k =γ(m k -n k )

[0039] In the above formula, m k is the kth data point in the original power grid data sequence, n k is the kth data point of the output sequence, γ is the critical value coefficient; when |ω k |>λ is considered a bad data point; the value of λ is determined according to the data point type: when it is active power type, λ=2%; when it is reactive power type, λ=3%; when it is voltage type, λ=0.5%.

[0040] In a third aspect, the present invention provides an electronic device, comprising a processor and a memory, wherein the processor is used to execute a computer program stored in the memory to implement the method for identifying bad data in a power system.

[0041] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, the method for identifying bad data in a power system is implemented.

[0042] Compared with the prior art, the present invention has the following beneficial effects:

[0043] The present invention provides a method, device, equipment and medium for identifying bad data in a power system, which uses multiple convolution scales to extract shallow low-order features, and splices feature maps according to channels; then, extracts multiple residual unit high-order features, represents sequence information as a feature vector of the main sequence, introduces a gated recurrent unit, outputs a predicted feature map, and then maps the feature map to an output sequence through a fully connected layer; finally, the output sequence is processed through a standard critical value to obtain data anomalies. Compared with the prior art, the present invention does not require complex feature engineering, and the sample test time under the same hardware conditions is much faster than most methods.

[0044] The present invention comprehensively considers environmental factors and electrical quantity constraints, constructs a multi-scale residual gated recurrent unit neural network model, and realizes effective identification of bad data in the power system through deep learning. The present invention combines the power grid data results of the previous moment with the power grid data of the current moment, and by introducing a memory matrix and controlling the "gate" of the memory matrix, enhances the ability to extract long-term dependencies and improves the accuracy of identifying bad power grid data.

[0045] The present invention proposes a method for obtaining an output sequence of power system time series data based on a gated recurrent unit neural network: the gated recurrent unit is the key to establishing temporal dependencies. Considering the temporal relevance of power system data, the gated recurrent unit neural network combines the power grid data results of the previous moment with the power grid data of the current moment as the total input of the current moment, and enhances the ability to extract long-term dependencies by introducing a memory matrix and a "gate" that controls the memory matrix. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:

[0047] Figure 1 A basic flow chart of an embodiment of a method for identifying bad data in a power system based on a gated recurrent unit neural network;

[0048] Figure 2 Schematic diagram of the gated recurrent unit structure;

[0049] Figure 3 This is a schematic diagram of the gated recurrent unit neural network model;

[0050] Figure 4 A flowchart of another embodiment of a method for identifying bad data in a power system according to the present invention;

[0051] Figure 5 This is a structural block diagram of a bad data identification device for a power system according to the present invention;

[0052] Figure 6 The present invention is a structural block diagram of an electronic device. DETAILED DESCRIPTION

[0053] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present invention can be combined with each other without conflict.

[0054] The following detailed description is an exemplary description, which is intended to provide further detailed description of the present invention. Unless otherwise specified, all technical terms used in the present invention have the same meaning as those generally understood by those skilled in the art to which the present invention belongs. The terms used in the present invention are only for describing specific embodiments, and are not intended to limit the exemplary embodiments according to the present invention.

[0055] Explanation of relevant terms

[0056] 1) Bad data: The Technical Specifications for Smart Grid Dispatching and Control Systems Part 2: Terminology stipulates that measurement errors will occur during the acquisition, analog / digital conversion, and transmission of measurement data, and the standard deviation of the error is σ. Measurement data with an error greater than ±3σ is considered bad data.

[0057] 2) Gated recurrent unit: A gated recurrent unit is a type of recurrent neural network that uses a reset gate and an update gate. The reset gate determines how to combine new input information with previous memory, and the update gate defines how much of the previous memory is saved to the current time step. This modifies the way hidden states are calculated in the recurrent neural network.

[0058] The purpose of the present invention is to overcome the shortcomings of the background technology and provide a method, device, equipment and medium for identifying bad data in an electric power system.

[0059] See also Figure 1 As shown, the present invention provides a method for identifying bad data in a power system, comprising the following steps:

[0060] Multi-scale residual gated recurrent unit neural network model construction: The gated recurrent unit structure is shown in the attached Figure 2 As shown. First, the current input x t and the result h of the previous moment t-1 concatenate to the total input at time t; then use the weight matrix W before different control "gates" to extract features and activate them by activation functions δ and tanh; finally, the control "gate" is updated to output h at time t t The gated recurrent unit neural network model is shown in the attached Figure 3As shown. First, the power grid data and environmental variables (temperature, humidity) are combined and spliced ​​into vector data according to the time series to obtain the original power grid data sequence; the input power grid data sequence uses 1×1, 3×1, and 5×1 convolution scales to extract low-order features, and then the extracted low-order features are spliced ​​together according to the channel to obtain a spliced ​​feature map; then, the deep network constructed by the residual block is used to extract high-order features. At this time, the extracted feature expression ability is limited to the size of the convolution kernel and cannot reflect the temporal dependency. The gated recurrent unit is introduced to construct the temporal association relationship and output the predicted feature map; finally, the predicted feature map is mapped to the output sequence using the full connection operation. Residual unit in the present invention: A residual unit is composed of several layers of naive network structures connected by jump connections. The convolution kernel sizes of the residual unit of the present invention are 1×1, 3×1, and 1×1, respectively, and batch normalization and ReLU activation functions are used before the convolution operation. The residual module is composed of three or more residual units. The first residual block in the deep residual network is composed of three residual units for underlying feature extraction. The second residual block consists of 4 residual units, and the third residual block consists of 6 residual units. The structure of each residual unit is the same as that of the first residual block. The number of convolution kernels in the first residual block is 30, the number of convolution kernels in the second residual block is 40, and the number of convolution kernels in the third residual block is 50. Residual units solve the problem of network performance degradation caused by the deepening of the network depth. The feature maps processed by the three residual blocks actually contain rich multi-scale time series characteristics. The scale is small in the first multi-scale convolution. In order to further increase the receptive field of the convolution kernel to extract high-level multi-scale information, a larger scale multi-scale convolution is established before the final residual block. The final representation is completed by applying a residual block with 50 filters. After feature extraction of multiple residual blocks, the sequence information is flattened into a one-dimensional feature vector representing the main sequence, and the feature vector is reduced by using a hidden layer with a node number smaller than the dimension of the feature vector, and then the vector is mapped to the error sequence through a fully connected layer.

[0061] Sample data generation and gated recurrent unit neural network model training: Use sliding windows to sample training data and label data, set input and output of different sizes according to different task requirements and actual conditions. After the input data passes through the network to extract features, the output sequence is obtained, and then the output sequence and label sequence are used to construct the loss function, and the loss function is derived using gradient descent, and the parameters of the entire network are updated through back propagation.

[0062] Identification of bad data in power system based on gated recurrent unit neural network: Use the trained gated recurrent unit neural network for prediction, ensure that the input size is consistent with that during training, input the multi-scale residual gated recurrent unit network with loaded weights, obtain the predicted output sequence, process the output sequence through a standard critical value, and obtain the bad data of the power system.

[0063] Example 1

[0064] See also Figure 1 As shown, the present invention provides a method for identifying bad data in a power system, comprising:

[0065] (1) Construct a neural network model based on multi-scale residual gated recurrent unit:

[0066] The structure of the gated recurrent unit is as follows Figure 2 As shown in the figure, a multi-scale residual gated recurrent unit neural network model is constructed by using the gated recurrent unit in combination with the residual block.

[0067] The multi-scale residual gated recurrent unit neural network model constructed by the present invention comprises a multi-scale convolution kernel, a residual unit, a residual block, a gated recurrent unit and a fully connected layer connected in sequence;

[0068] 1.1) Input power grid data sequence is processed through multi-scale convolution kernel to extract low-order features;

[0069] 1.2) The extracted low-order features are spliced ​​according to the channels to obtain a spliced ​​feature map;

[0070] 1.3) The concatenated feature map is input into the deep network constructed by the residual block, and the deep network constructed by the residual block is used to extract high-order features. The characteristic value of the high-order feature is the convolution kernel size;

[0071] 1.4) High-order features are input into the gated recurrent unit; the gated recurrent unit is introduced to construct the temporal correlation of the power grid data and output the predicted feature map;

[0072] 1.5) Use the fully connected operation to convert the predicted feature map into an output sequence.

[0073] (2) Sample data generation and gated recurrent unit neural network model training

[0074] 2.1) Combine power grid data and environmental variables (such as temperature, humidity and other environmental variables) and splice them into vector data based on time series; use sliding windows to sample training data and label data. Considering the time dependency and the performance of the network gated recurrent unit, the length of the sliding sampling window for training data is 500 numerical points, and the length of the sliding sampling window for label data is 50 numerical points.

[0075] 2.2) Set input and output of different sizes. First, the input data is extracted through the network to obtain the output sequence; then, the output sequence and label sequence are used to construct the loss function, which uses the mean square error loss as shown below:

[0076]

[0077] In the above formula, represents the predicted output value, Y represents the true value (label value); there are n sample points in the data set; n represents the total number of input data points, that is, the total number of sample points, and t is the sample point number.

[0078] 2.3) Use gradient descent to derive the loss function and back-propagate to update the parameters of the entire gated recurrent unit neural network model; train until the maximum number of training times is reached or the loss function converges to obtain a trained gated recurrent unit neural network model.

[0079] (3) Identification of bad data in power system based on gated recurrent unit neural network

[0080] The power grid data sampled by the sliding window is used as the input of the trained gated recurrent unit neural network model. The output sequence is predicted by the trained gated recurrent unit neural network model. The output sequence is processed with the standard critical value to obtain the abnormal points of the data, thereby realizing the identification of bad data in the power system.

[0081] Standard critical value ω k As shown below:

[0082] ω k =γ(m k -n k )

[0083] In the above formula, m k is the kth data point in the original power grid data sequence, n k is the kth data point of the output sequence, and γ is the critical value coefficient. k|>λ (λ is the amplitude critical value), it is considered to be a bad data point. γ is determined according to the voltage level and data point type: when it is 500kV and the data point type is power, γ=1 / 1082, when it is 220kV and the data point type is power, γ=1 / 305, when it is 110kV and the data point type is power, γ=1 / 114; when it is 500kV and the data point type is voltage, γ=1 / 600, when it is 220kV and the data point type is voltage, γ=1 / 264, when it is 110kV and the data point type is voltage, γ=1 / 132. It should be noted that the unit for power type data points is MW (megawatt) and the unit for voltage type data points is kV (kilovolt). The value of λ is determined according to the data point type: when it is an active power type, λ=2%; when it is a reactive power type, λ=3%; when it is a voltage type, λ=0.5%.

[0084] Example 2

[0085] See also Figure 4 As shown, the present invention provides a method for identifying bad data in a power system, comprising:

[0086] S1. Obtain power grid data and environmental variable data (temperature, humidity, etc.), and splice the acquired power grid data and environmental variable data into vector data according to the time series to obtain the original power grid data sequence;

[0087] S2, extracting low-order features from the original power grid data sequence through a multi-scale convolution kernel, and splicing the extracted low-order features together according to channels to obtain a spliced ​​feature map; the multi-scale convolution kernel includes a 1×1 convolution kernel, a 3×1 convolution kernel, and a 5×1 convolution kernel;

[0088] S3, using residual blocks to extract high-order features of the spliced ​​feature map;

[0089] S4, using a pre-trained gated recurrent unit to process the high-order features to obtain a predicted feature map;

[0090] The pre-trained training steps include:

[0091] Combine power grid data and environmental variables and splice them into vector data based on time series; use sliding windows to sample training data and label data. The length of the sliding sampling window for training data is 500 numerical points, and the length of the sliding sampling window for label data is 50 numerical points.

[0092] First, the input data is passed through the network to extract features and obtain the output sequence; then, the output sequence and label sequence are used to construct the loss function, which uses the mean square error loss, as shown below:

[0093]

[0094] In the above formula, represents the predicted output value, Y represents the label value; there are n sample points in the data set; n represents the total number of input data points, that is, the total number of sample points, and t is the sample point number.

[0095] The loss function is derived using gradient descent, and the parameters of the entire gated recurrent unit neural network model are updated by backpropagation; training is performed until the maximum number of training times is reached or the loss function converges to obtain a trained gated recurrent unit neural network model.

[0096] S5. Use the full connection operation to convert the predicted feature map into an output sequence;

[0097] S6. Process the output sequence using a standard critical value to obtain abnormal points of the data; the standard critical value ω k As shown below:

[0098] ω k =γ(m k -n k )

[0099] In the above formula, m k is the kth data point in the original power grid data sequence, n k is the kth data point of the output sequence, and γ is the critical value coefficient. k |>λ is considered a bad data point. The value of λ is determined according to the data point type: when it is active power type, λ=2%; when it is reactive power type, λ=3%; when it is voltage type, λ=0.5%.

[0100] Example 3

[0101] See also Figure 5 As shown, the present invention provides a bad data identification device for a power system, comprising:

[0102] An acquisition module is used to acquire power grid data and environmental variable data, and splice the acquired power grid data and environmental variable data into vector data according to a time series to obtain an original power grid data sequence;

[0103] A multi-scale convolution kernel extraction module is used to extract low-order features from the original power grid data sequence through a multi-scale convolution kernel, and to splice the extracted low-order features together according to channels to obtain a spliced ​​feature map; the multi-scale convolution kernel includes a 1×1 convolution kernel, a 3×1 convolution kernel, and a 5×1 convolution kernel;

[0104] A residual block extraction module is used to extract high-order features of the spliced ​​feature map using residual blocks;

[0105] A gated recurrent unit processing module, used for processing the high-order features using a gated recurrent unit to obtain a predicted feature map;

[0106] A fully connected module, used to convert the predicted feature map into an output sequence using a fully connected operation;

[0107] The outlier identification module is used to process the output sequence using a standard critical value to obtain the outlier points of the data; the standard critical value ω k As shown below:

[0108] ω k =γ(m k -n k )

[0109] In the above formula, m k is the kth data point in the original power grid data sequence, n k is the kth data point of the output sequence, and γ is the critical value coefficient. k |>λ is considered a bad data point. The value of λ is determined according to the data point type: when it is active power type, λ=2%; when it is reactive power type, λ=3%; when it is voltage type, λ=0.5%.

[0110] Example 4

[0111] See also Figure 6 As shown, the present invention also provides an electronic device 100 for a method for identifying bad data in a power system; the electronic device 100 includes a memory 101, at least one processor 102, a computer program 103 stored in the memory 101 and executable on the at least one processor 102, and at least one communication bus 104.

[0112] The memory 101 can be used to store the computer program 103, and the processor 102 implements the method steps of the power system bad data identification method described in any one of embodiments 1 to 2 by running or executing the computer program stored in the memory 101 and calling the data stored in the memory 101. The memory 101 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data (such as audio data) created according to the use of the electronic device 100, etc. In addition, the memory 101 can include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices.

[0113] The at least one processor 102 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor 102 may be a microprocessor or any conventional processor, etc. The processor 102 is the control center of the electronic device 100, and uses various interfaces and lines to connect various parts of the entire electronic device 100.

[0114] The memory 101 in the electronic device 100 stores a plurality of instructions to implement a method for identifying bad data in a power system, and the processor 102 can execute the plurality of instructions to implement:

[0115] Acquire power grid data and environmental variable data, and splice the acquired power grid data and environmental variable data into vector data according to a time series to obtain an original power grid data sequence;

[0116] Extracting low-order features from the original power grid data sequence through a multi-scale convolution kernel, and splicing the extracted low-order features together according to channels to obtain a spliced ​​feature map;

[0117] Use residual blocks to extract high-order features of the spliced ​​feature map;

[0118] Processing the high-order features using a gated recurrent unit to obtain a predicted feature map;

[0119] Using the fully connected operation, the predicted feature map is converted into an output sequence;

[0120] The output sequence is processed using the standard critical value to obtain the abnormal points of the data.

[0121] Specifically, the specific implementation method of the processor 102 for the above instructions can refer to the description of the relevant steps in Example 1 or 2, which will not be repeated here.

[0122] Example 5

[0123] If the module / unit integrated in the electronic device 100 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory and read-only memory (ROM, Read-Only Memory).

[0124] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0125] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to 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 processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0126] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0127] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0128] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A method for identifying bad data in a power system, characterized in that: include: Acquire power grid data and environmental variable data, and splice the acquired power grid data and environmental variable data into vector data according to a time series to obtain an original power grid data sequence; Extracting low-order features from the original power grid data sequence through a multi-scale convolution kernel, and splicing the extracted low-order features together according to channels to obtain a spliced ​​feature map; Use residual blocks to extract high-order features of the spliced ​​feature map; Processing the high-order features using a gated recurrent unit to obtain a predicted feature map; Using the fully connected operation, the predicted feature map is converted into an output sequence; The output sequence is processed using the standard critical value to obtain the abnormal points of the data.

2. The method for identifying bad data in a power system according to claim 1, characterized in that: In the step of acquiring power grid data and environmental variable data, the environmental variables include one or both of temperature and humidity.

3. The method for identifying bad data in a power system according to claim 1, characterized in that: In the step of extracting low-order features from the original power grid data sequence through a multi-scale convolution kernel, the multi-scale convolution kernel includes a 1×1 convolution kernel, a 3×1 convolution kernel and a 5×1 convolution kernel.

4. The method for identifying bad data in a power system according to claim 1, characterized in that: In the step of using a gated recurrent unit to process the high-order features to obtain a predicted feature map, the training step of the gated recurrent unit includes: Combine power grid data and environmental variables and splice them into vector data based on time series; use sliding windows to sample training data and label data. The length of the sliding sampling window for training data is 500 numerical points, and the length of the sliding sampling window for label data is 50 numerical points. First, the input data is passed through the network to extract features and obtain the output sequence; then, the output sequence and label sequence are used to construct the loss function, which uses the mean square error loss, as shown below: In the above formula, represents the predicted output value, Y represents the label value; n represents the total number of sample points, and t represents the sample point number; The loss function is derived using gradient descent, and the parameters of the entire gated recurrent unit neural network model are updated by backpropagation; training is performed until the maximum number of training times is reached or the loss function converges to obtain a trained gated recurrent unit neural network model.

5. The method for identifying bad data in a power system according to claim 1, characterized in that: In the step of processing the output sequence using the standard critical value to obtain the abnormal point of the data, the standard critical value ω k As shown below: oh k =γ(m k -n k ) In the above formula, m k is the kth data point in the original power grid data sequence, n k is the kth data point of the output sequence, γ is the critical value coefficient; when |ω k |>λ is considered a bad data point; the value of λ is determined according to the data point type: when it is active power type, λ=2%; when it is reactive power type, λ=3%; when it is voltage type, λ=0.5%.

6. A device for identifying bad data in a power system, characterized in that: include: An acquisition module is used to acquire power grid data and environmental variable data, and splice the acquired power grid data and environmental variable data into vector data according to a time series to obtain an original power grid data sequence; A multi-scale convolution kernel extraction module, used to extract low-order features from the original power grid data sequence through a multi-scale convolution kernel, and splice the extracted low-order features together according to channels to obtain a spliced ​​feature map; A residual block extraction module is used to extract high-order features of the spliced ​​feature map using residual blocks; A gated recurrent unit processing module, used for processing the high-order features using a gated recurrent unit to obtain a predicted feature map; A fully connected module, used to convert the predicted feature map into an output sequence using a fully connected operation; The outlier identification module is used to process the output sequence using a standard critical value to obtain the outliers of the data.

7. The bad data identification device for a power system according to claim 6, characterized in that: The multi-scale convolution kernel includes a 1×1 convolution kernel, a 3×1 convolution kernel and a 5×1 convolution kernel.

8. The bad data identification device for a power system according to claim 6, characterized in that: The standard critical value ω k As shown below: oh k =γ(m k -n k ) In the above formula, m k is the kth data point in the original power grid data sequence, n k is the kth data point of the output sequence, γ is the critical value coefficient; when |ω k |>λ is considered a bad data point; the value of λ is determined according to the data point type: when it is active power type, λ=2%; when it is reactive power type, λ=3%; when it is voltage type, λ=0.5%.

9. An electronic device, characterized in that: The electronic device includes a processor and a memory, and the processor is used to execute a computer program stored in the memory to implement the method for identifying bad data in a power system as described in any one of claims 1 to 5.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by the processor, the method for identifying bad data in a power system according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Historical measurement-based bad data identification method and system

    CN106295850A

  • BP neural network-based state estimation bad data identification method

    CN108491404A

  • Identification method and system for bad data of power system

    CN110298369A

  • Power system time sequence abnormal data detection and correction method and system

    CN111695620A

  • Data exception identification method and device, storage medium and electronic equipment

    CN112221156A