A harmonic sensing method, system, device and storage medium

The graph convolutional neural network model is used to model the power grid topology data, identify the real-time and predicted harmonic values ​​of electrical nodes, solve the accuracy and real-time problems of harmonic detection in the existing technology, and realize the detection of various components in the power grid. Fast, high-precision detection of subharmonic components.

CN114740261BActive Publication Date: 2024-09-24STATE GRID BEIJING ELECTRIC POWER CO +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210397018.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-15
Publication Date
2024-09-24
Estimated Expiration
2042-04-15

AI Technical Summary

Technical Problem

Existing harmonic detection technology is difficult to quickly and accurately detect harmonic components in the power grid, and its real-time performance and calculation accuracy are not high. It cannot effectively take into account steady-state and non-steady-state signals, and does not consider the connections between system branches. Interaction of relationships and associated nodes.

Method used

The graph convolutional neural network model is used to model the power grid topology data, and the association of electrical nodes is described through an undirected graph. The graph convolutional neural network is trained to identify the real-time and predicted harmonic values ​​of electrical nodes, and realize the fundamental wave current , rapid detection of total harmonic components and multiple harmonic components.

Benefits of technology

It achieves high-precision and rapid detection of each harmonic component in the power grid, breaks through the limitations of time domain detection methods, has the advantages of high calculation accuracy, less measurement, and fast speed, and improves the real-time perception of power grid operating status and risk prediction. Sex and speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114740261B
    Figure CN114740261B
Patent Text Reader

Abstract

The present invention discloses a harmonic perception method, system, device and storage medium. The harmonic perception method of the present invention first obtains power grid topology data; then constructs an undirected graph based on the power grid topology data, and the vertices in the undirected graph correspond to electrical nodes in the power grid; the node features of the electrical nodes are used as input, and a pre-trained graph convolutional neural network model is used for recognition, and the graph convolutional neural network model outputs the real-time value and predicted value of the harmonics of the electrical nodes. Compared with the currently commonly used detection method based on instantaneous reactive power, the harmonic perception method provided by the present invention breaks through the limitation that the previous time domain detection method can only measure the total harmonic current, and can calculate each harmonic component in a single step, and has the advantages of high calculation accuracy, less measurement, and fast speed.
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 grid operation, and specifically relates to a harmonic sensing method, system, device and storage medium. Background Art

[0002] Graph Convolutional Network is a method that can perform deep learning on graph data.

[0003] With the continuous development of power systems, the extensive use of power electronic components has led to the inevitable impact of harmonics on power systems. Harmonics reduce the efficiency of power grid operation and are prone to form resonant circulating currents, which may burn out electrical equipment such as motors in severe cases. Harmonics pollute the operation quality of the power grid, threaten the safe, stable and economic operation of the power grid, and affect the surrounding electrical environment. It has become one of the main public safety hazards of the current power grid. Effective, timely and accurate detection of harmonics is the prerequisite for active filtering and is the key to solving the problem of harmonic pollution in power electronic devices and other harmonic sources. Therefore, harmonic detection is an important part of eliminating power pollution.

[0004] Existing harmonic detection technologies include harmonic detection methods based on instantaneous reactive power theory, harmonic detection methods based on wavelet transform, harmonic detection methods based on Fourier transform, and harmonic detection methods based on BP neural network. The harmonic detection algorithm based on instantaneous reactive power theory can effectively detect the harmonic components that need to be compensated, but the coordinate transformation calculations required by the algorithm are complicated, and the phase-locked loop is easily affected by voltage distortion, and it is also impossible to avoid the system delay caused by the low-pass filter; harmonic detection methods based on Fourier transform and wavelet transform are difficult to take into account the detection of steady-state and non-steady-state signals, and at the same time, the amount of calculation is large, the detection time is long, and the real-time performance is poor. The harmonic measurement method based on neural network has the characteristics of small calculation amount, high measurement accuracy, good real-time performance, and strong anti-interference ability. However, the existing harmonic detection methods based on artificial neural networks, such as BP network and LSTM network, do not consider the connection relationship between system branches and the mutual influence of related nodes, and the perception and calculation accuracy of harmonics is not high. As one of the key technologies of active power filtering, harmonic detection plays an important role in harmonic suppression and compensation. In order to detect and analyze more effectively, it is required to quickly and synchronously detect multiple parameters such as fundamental current, total harmonic components and fixed-order harmonics, such as the 3rd, 5th and 7th harmonics. Summary of the invention

[0005] The purpose of the present invention is to provide a harmonic sensing method, system, device and storage medium. Compared with the currently commonly used detection method based on instantaneous reactive power, the harmonic sensing method provided by the present invention breaks through the limitation that the previous time domain detection method can only measure the total harmonic current, and can calculate each harmonic component in a single step, with the advantages of high calculation accuracy, less measurement and fast speed.

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

[0007] A first aspect of the present invention provides a harmonic sensing method, comprising the following steps:

[0008] Obtain power grid topology data;

[0009] Constructing an undirected graph based on the power grid topology data; wherein the vertices in the undirected graph correspond to electrical nodes in the power grid;

[0010] A pre-trained graph convolutional neural network model is used to identify the phase voltage u of the electrical node and the current signal sequence i(t) with each harmonic in the undirected graph; the graph convolutional neural network model outputs the real-time value and predicted value of the harmonics of the electrical node.

[0011] As an optional solution of the present invention, the graph convolutional neural network model includes 1 input layer, N hidden layers, 1 fully connected layer and 1 output layer.

[0012] As an optional solution of the present invention, the length of the current signal sequence i(t) is greater than 2 cycles.

[0013] As an optional solution of the present invention, the current signal i(t):

[0014]

[0015] Where: f h Indicates the frequency of the hth harmonic; A h and They represent the amplitude and phase of the hth harmonic respectively; n is the highest harmonic order.

[0016] As an optional solution of the present invention, the number of nodes in the fully connected layer is l N =log2K, where K is the number of input layer node features, and the Sigmoid function is used as the activation function.

[0017] As an optional solution of the present invention, the graph convolutional neural network model is obtained as follows:

[0018] Obtain training data and validation data for the graph convolutional neural network model;

[0019] The graph convolutional neural network is trained through multiple iterations based on the training data and the verification data.

[0020] As an optional solution of the present invention, in the step of obtaining training data and verification data of the graph convolutional neural network model, the specific method is as follows:

[0021] Obtain voltage and current periodic signals at the electrical node under test;

[0022] Preprocessing the data of the voltage and current periodic signals;

[0023] Based on the preprocessed voltage and current periodic signals, the fundamental component and each harmonic component are calculated by the FFT algorithm, and the fundamental current component, total harmonic component, 3rd, 5th, and 7th harmonic components are calculated as labeled training data and verification data.

[0024] A second aspect of the present invention provides a system for the above harmonic sensing method, comprising:

[0025] A data acquisition module, used to acquire power grid topology data;

[0026] An undirected graph construction module, used for constructing an undirected graph based on the power grid topology data;

[0027] The recognition module is used to use a pre-trained graph convolutional neural network model to identify the phase voltage u of the electrical node in the undirected graph and the current signal sequence i(t) with each harmonic, and output the real-time value and predicted value of the harmonic of the electrical node.

[0028] According to a third aspect of the present invention, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned harmonic sensing method when executing the computer program.

[0029] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and wherein when the computer program is executed by a processor, the above-mentioned harmonic sensing method is implemented.

[0030] The beneficial effects of the present invention are as follows:

[0031] The harmonic perception method of the present invention first obtains the power grid topology data; then constructs an undirected graph based on the power grid topology data, wherein the vertices in the undirected graph correspond to the electrical nodes in the power grid, and the node characteristics of the electrical nodes are the phase voltage u and the current signal sequence with each harmonic; the node characteristics of the electrical nodes are used as input, and a pre-trained graph convolutional neural network model is used for recognition, and the graph convolutional neural network model outputs the real-time value and predicted value of the harmonics of the electrical nodes. Compared with the currently commonly used detection method based on instantaneous reactive power, the harmonic perception method provided by the present invention breaks through the limitation that the previous time domain detection method can only measure the total harmonic current, and can calculate each harmonic component in a single step, and has the advantages of high calculation accuracy, less measurement, and fast speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The drawings constituting a part of the present application 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 drawings:

[0033] Figure 1 Schematic diagram of the principle of a harmonic perception method based on a graph convolutional neural network in an embodiment of the present invention.

[0034] Figure 2 Schematic diagram of a graph convolutional neural network model in an embodiment of the present invention. DETAILED DESCRIPTION

[0035] 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 application can be combined with each other without conflict.

[0036] 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 application belongs. The terms used in the present invention are only for describing specific embodiments, and are not intended to limit exemplary embodiments according to the present invention.

[0037] The first aspect of the embodiment of the present invention provides a harmonic perception method, which is based on a graph convolutional neural network, describes the relationship between the measured electrical nodes and related branches in the power grid through an undirected graph, constructs and trains a graph convolutional neural network, and uses the trained graph convolutional neural network to calculate data such as harmonic real-time values ​​and predicted values. It can quickly and effectively calculate the fundamental current component, total harmonic component, 2nd, 5th, and 7th harmonic components of the measured point, realize the real-time and rapidity of harmonic detection, and help to realize the perception of power grid operation status and risk prediction. When the load current suddenly changes, the algorithm has a smaller delay and a faster convergence speed.

[0038] like Figure 1As shown, the harmonic sensing method provided by the embodiment of the present invention includes the following steps:

[0039] S1, obtaining power grid topology data, and constructing an undirected graph based on the power grid topology data.

[0040] The vertices in the undirected graph correspond to electrical nodes in the power grid, and the electrical nodes include information such as phase voltage u and current signal sequence i(t) with various harmonics.

[0041] An undirected graph is used to describe the topological relationship between the electrical node under test, the related electrical nodes electrically connected to the electrical node under test, and the branches, to form an adjacency matrix A, and to construct a Laplacian matrix.

[0042] Specifically, the method of constructing the Laplace matrix is ​​as follows:

[0043] For an undirected graph G = (V, E), its Laplacian matrix is ​​defined as L = DA, where L is the Laplacian matrix, D = diag(d) is the degree matrix of the vertices (diagonal matrix), d = rowSum(A), and the elements on the diagonal are the degrees of each vertex in turn;

[0044] For each element A in the adjacency matrix A ij , if nodes i and j are adjacent, then A ij =1, otherwise A ij =0.

[0045] S2, build a graph convolutional neural network model.

[0046] The graph convolutional neural network model designed in this embodiment is as follows Figure 2 As shown: It includes 1 input layer, N hidden layers, 1 fully connected layer and 1 output layer.

[0047] The characteristics of each node in the input layer are: the phase voltage u of the corresponding electrical node in the power grid, the current signal sequence i(t) with each harmonic, and the length of the current signal i(t) is greater than 2 cycles:

[0048]

[0049] Where: f h Indicates the frequency of the hth harmonic; A h and They represent the amplitude and phase of the hth harmonic respectively; n is the highest harmonic order.

[0050] Hidden layer: The number of hidden layers is determined by the maximum value of the shortest path from any electrical node to other electrical nodes in step S1. After experimental verification, the number of hidden layers in this embodiment is 2 or 3.

[0051] Using Leaky ReLU as the activation function:

[0052]

[0053] Among them, when a is 0.06, better training effect can be achieved.

[0054] The number of nodes in the fully connected layer is l N =log2K, where K is the number of input layer node features, and the Sigmoid function is used as the activation function:

[0055]

[0056] The output layer is used to output the fundamental current component, total harmonic component, and 3rd, 5th, and 7th harmonic components at the current moment.

[0057] S3, obtains training data and validation data for training graph convolutional neural network.

[0058] Specifically, in step S3, the steps of obtaining training data and verification data are as follows:

[0059] S31, sampling actual system operation data of the power grid, the actual system operation data including voltage and current periodic signals at the measured electrical nodes, for example: phase voltage u and current signal sequence i(t) with various harmonics.

[0060] S32, performing data preprocessing on the sampled voltage and current periodic signals, mainly for fast detection and interpolation of missing values ​​and abnormal values, to obtain complete voltage and current periodic signal data.

[0061] S33, based on the preprocessed voltage and current periodic signals, the fundamental component and each harmonic component are calculated through the FFT algorithm, and the fundamental current component, total harmonic component, 3rd, 5th, and 7th harmonic components are calculated to generate labeled training data and verification data.

[0062] S4, based on the above training data and verification data, train the graph convolutional neural network through multiple iterations.

[0063] Specifically, the training process of each iteration is as follows:

[0064] S41, hidden layer parameters for training graph convolutional neural networks.

[0065] For each object node in step S1, its node features are aggregated with the node features of its neighboring nodes according to the adjacency matrix A to form a new aggregate feature matrix as the node features of the next layer.

[0066] As an example of the present invention, when aggregating the node features of an electrical node and the node features of its neighboring nodes, the aggregation algorithm adopts a weighted mean fusion method, that is, a weighted average value is calculated for the node features and the node features of its neighboring nodes.

[0067] It should be noted that when aggregating feature information, attention weights are assigned to different neighbor nodes as follows:

[0068]

[0069] in: is the current node feature, ∑ u∈N(v)∪{v}· Refers to all neighbor nodes and its own node, weight μ u,v is the attention weight coefficient between the uth node and the vth node. During training, the attention weight coefficient of each node needs to be learned, W k is the aggregation weight, is the neighbor node feature of the previous layer.

[0070] Based on the N hidden layers contained in the graph convolutional neural network, the embedding vector of the node is determined, and the graph convolution operation is performed on the node features. After the activation function, the graph signal matrix is ​​obtained as the input of the next layer;

[0071] Determine the training gradients and attention weights of the parameters in the graph convolutional neural network; based on the training gradients and attention weights, update the parameters of the hidden layer in the graph convolutional neural network.

[0072] S42, the stochastic gradient descent method with momentum is used to train the parameters of the fully connected layer and the output layer. As an exemplary illustration, the initial learning rate is selected as 0.05 and the momentum hyperparameter is selected as 0.75.

[0073] S5, takes the node features of the electrical nodes corresponding to the vertices of the undirected graph as input, and uses the trained graph convolutional neural network model to calculate the real-time value and predicted value of harmonics.

[0074] In some other embodiments of the present invention, a full-link perception system for power quality of a power grid is also provided. The system is composed of a cloud server, a full-link perception device and related sensors.

[0075] The cloud server includes historical database services, real-time data cache services, message response services, etc. It is responsible for collecting real-time data, fault alarms, and four-remote data information uploaded by each full-link sensing device, and relaying the communication between each full-link sensing device;

[0076] The full-link sensing device includes a comprehensive power quality analysis terminal unit, an intelligent micro-fusion terminal unit, and an edge computing unit, which is responsible for the collection of electrical parameters and other sensor data at the load end of the power grid, power quality analysis, and communication.

[0077] The sensors include voltage and current transformers located in the full-link sensing device, temperature and humidity sensors, smoke sensors, and sensors in the external extended detection unit of the full-link sensing device.

[0078] Before the system runs in real time, the graph convolutional neural network is first trained, and the target weights of the neural network are obtained through online learning. After reaching a steady state, the trained network is used for real-time harmonic detection and perception. The perception results are transmitted to the cloud in real time through the communication module in the edge computing unit of the full-link perception device.

[0079] It should be noted that previous methods based on big data and neural networks usually only consider the numerical characteristics of a large amount of data, train the neural network model through a large amount of historical data, and then use the trained model to calculate the harmonic components. This type of method does not take into account the topological structure of the power grid, and does not build information such as the connection relationship between the calculation point and other power grid nodes and the operating status of the nodes associated with the calculation point into the neural network model. The graph convolutional neural network used in this embodiment takes into account the topological structure of the power grid, the relationship between the power grid nodes, and the mutual influence between the nodes during the construction and training process, and builds this information into the graph convolutional neural network. The model constructed in this way can calculate the harmonic components more accurately and quickly.

[0080] A second aspect of the present invention provides a system for the above harmonic sensing method, comprising:

[0081] A data acquisition module, used to acquire power grid topology data;

[0082] An undirected graph construction module, used for constructing an undirected graph based on the power grid topology data;

[0083] The recognition module is used to use a pre-trained graph convolutional neural network model to identify the phase voltage u of the electrical node in the undirected graph and the current signal sequence i(t) with each harmonic, and output the real-time value and predicted value of the harmonic of the electrical node.

[0084] According to a third aspect of the present invention, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned harmonic sensing method when executing the computer program.

[0085] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and wherein when the computer program is executed by a processor, the above-mentioned harmonic sensing method is implemented.

[0086] 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 adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0087] 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, 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 generate 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.

[0088] 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.

[0089] 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.

[0090] It is known from common technical knowledge that the present invention can be implemented by other embodiments that do not deviate from its spirit or essential features. Therefore, the above disclosed embodiments are only illustrative in all respects and are not exclusive. All changes within the scope of the present invention or within the scope equivalent to the present invention are included in the present invention.

Claims

1. A harmonic sensing method, It is characterized in that The steps include: Obtain power grid topology data; Constructing an undirected graph based on the power grid topology data; wherein the vertices in the undirected graph correspond to electrical nodes in the power grid; A pre-trained graph convolutional neural network model is used to identify the phase voltage u of the electrical node in the undirected graph and the current signal sequence i(t) with each harmonic; the graph convolutional neural network model outputs the real-time value and predicted value of the harmonic of the electrical node; The method for constructing an undirected graph based on the power grid topology data is as follows: The vertices in the undirected graph correspond to electrical nodes in the power grid. The electrical nodes include information such as phase voltage u and current signal sequence i(t) with various harmonics. The undirected graph is used to describe the topological relationship between the electrical node under test, the related electrical nodes and branches that are electrically connected to the electrical node under test, to form an adjacency matrix A, and to construct a Laplace matrix. The method to construct the Laplacian matrix is ​​as follows: For an undirected graph G = (V, E), its Laplacian matrix is ​​defined as L = DA, where L is the Laplacian matrix, D = diag(d) is the vertex degree matrix, d = rowSum(A), and the elements on the diagonal are the degrees of each vertex in turn; for each element A in the adjacency matrix A ij , if nodes i and j are adjacent, then A ij =1, otherwise A ij =0; The graph convolutional neural network model is obtained as follows: Acquire training data and verification data for training the graph convolutional neural network; train the graph convolutional neural network through multiple iterations based on the training data and verification data; The training process for each iteration is as follows: Train the hidden layer parameters of the graph convolutional neural network; for each node, aggregate its node features with the node features of its neighboring nodes according to the adjacency matrix A to form a new aggregate feature matrix as the node features of the next layer; when aggregating feature information, assign attention weights to different neighboring nodes as follows: in: is the current node feature, ∑ u∈N(v)∪{v} Refers to all neighbor nodes and the node itself, with weight μ u,v is the attention weight coefficient between the uth node and the vth node. During training, the attention weight coefficient of each node needs to be learned, W k is the aggregation weight, is the feature of the neighbor node in the previous layer; σ represents the activation function; Based on the N hidden layers contained in the graph convolutional neural network, the embedding vector of the node is determined, and the graph convolution operation is performed on the node features. After the activation function, the graph signal matrix is ​​obtained as the input of the next layer; the training gradient and attention weight of the parameters in the graph convolutional neural network are determined; based on the training gradient and attention weight, the parameters of the hidden layer in the graph convolutional neural network are updated; and the parameters of the fully connected layer and the output layer are trained by the stochastic gradient descent method using momentum.

2. The harmonic sensing method according to claim 1, It is characterized in that The graph convolutional neural network model includes 1 input layer, N hidden layers, 1 fully connected layer and 1 output layer.

3. The harmonic sensing method according to claim 1, It is characterized in that The length of the current signal sequence i(t) is greater than 2 cycles.

4. The harmonic sensing method according to claim 1, It is characterized in that The current signal sequence i(t): Where: f h Indicates the frequency of the hth harmonic; A h and They represent the amplitude and phase of the hth harmonic respectively; n is the highest harmonic order.

5. The harmonic sensing method according to claim 1, It is characterized in that The number of nodes in the fully connected layer is l N =log 2 K, where K is the number of input layer node features, and the Sigmoid function is used as the activation function.

6. The harmonic sensing method according to claim 1, It is characterized in that The steps for obtaining training data and validation data for training graph convolutional neural networks are as follows: Obtain voltage and current periodic signals at the electrical node under test; Preprocessing the data of the voltage and current periodic signals; Based on the preprocessed voltage and current periodic signals, the fundamental component and each harmonic component are calculated by the FFT algorithm, and the fundamental current component, total harmonic component, 3rd, 5th, and 7th harmonic components are calculated as labeled training data and verification data.

7. A system for the harmonic sensing method according to any one of claims 1 to 6, It is characterized in that include: A data acquisition module, used to acquire power grid topology data; An undirected graph construction module, used for constructing an undirected graph based on the power grid topology data; The recognition module is used to use a pre-trained graph convolutional neural network model to identify the phase voltage u of the electrical node in the undirected graph and the current signal sequence i(t) with each harmonic, and output the real-time value and predicted value of the harmonic of the electrical node.

8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the harmonic sensing method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the harmonic perception method according to any one of claims 1 to 6 is implemented.