A method and system for judging transient stability of power system using multi-agents with a small number of PMU sampling
Through the multi-agent cooperation mode of the AI for AI model, key PMU nodes of the power grid are automatically selected and key feature nodes are extracted, which solves the problem of complex power system feature extraction, improves the efficiency and accuracy of transient stability discrimination, and reduces resource consumption and installation cost.
Patent Information
- Application Number
- CN202111151150.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-29
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-09-29
AI Technical Summary
Existing technology is difficult to extract power system features with complex functions, resulting in low efficiency in power system transient stability determination, high consumption of computing resources, and PMU location information cannot be effectively used for feature extraction.
The AI for AI model is used to roughly classify the PMU node data through the Pre-AI model, select the key node set, and input it into the Post-AI model for accurate stability judgment, realizing the transient stability judgment of the power system and reducing the data dimension and calculation Resource requirements.
It improves the efficiency and accuracy of transient stability determination of power systems, reduces the number of PMU nodes and computing resource consumption, reduces installation and communication costs, and provides PMU node installation suggestions for future systems.
Smart Images

Figure CN114818455B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology in power systems, and more specifically, to a method and system for judging transient stability of a power system using a small number of PMUs for sampling, as well as a storage medium and an electronic device. Background Art
[0002] With the development of smart grids and the increase in social electricity consumption, in order to ensure the economical and efficient operation of the power grid, the transmission capacity of the transmission network is gradually approaching the operating boundary of the power grid. In recent years, with the access of high-penetration renewable energy and a high proportion of power electronic devices to the power system, the operation mode of the power grid has changed, the inducing mechanism of the system transient stability problem is complex, and the processing speed of traditional simulation analysis methods is getting slower and slower. Although stability problems do not occur frequently, once the transient stability of the system is destroyed and the instability information is not obtained in time, it is very likely to cause serious consequences such as the decoupling of generator sets, damage to power equipment and major power outages. Therefore, building a reliable transient stability assessment method is an important basis for ensuring the safe and reliable operation of the power system.
[0003] The development of intelligent technology has provided a new way to judge the transient stability of power systems. Intelligent algorithms generally adopt the method of "offline training and online application". The trained intelligent agents can meet the requirements of fast real-time stability judgment. However, as the scale of power systems becomes larger and larger, the feature input dimension of the intelligent algorithm will inevitably show an exponential growth, which will seriously affect the training speed and online application efficiency of the intelligent agent. Existing studies have shown that the computing power required for the training of complex neural networks has exceeded the speed of hardware development, and the CO2 generated by the consumption of electricity during the training process has reached an uneconomical state. Therefore, it is of great significance to reduce the features of the data to simplify the neural network model.
[0004] The wide area monitoring system (WAMS) in the current power system collects data based on the PMU installation point as the smallest unit. Although existing feature extraction methods (such as autoencoders and deep networks) can reduce the dimension, they cannot extract features from the dimension of the installation location of the power system PMU. This is mainly because PMU location information is generally not part of the input data, so the single-agent structure is difficult to achieve feature extraction with complex functions and requires additional human help.
[0005] With respect to the technical problem that the existing feature extraction methods in the above-mentioned prior art are difficult to implement feature extraction of power systems with complex functions, no effective solution has been proposed so far. Summary of the invention
[0006] In view of the technical problem that existing feature extraction methods in the prior art are difficult to realize feature extraction of power systems with complex functions, the present invention provides a multi-agent transient stability judgment method and system for power systems with a small number of PMU sampling. The present invention is based on the time domain data of PMU nodes and designs an AI for AI model with multi-agent cooperation in a combination of "coarse classification" and "fine classification". Based on the model, a multi-agent transient stability judgment method for power systems with a small number of PMU sampling is established.
[0007] According to one aspect of the present invention, a method for determining transient stability of a power system using multi-agents with a small number of PMU sampling is provided, comprising:
[0008] Acquire a sample data set, wherein the sample data in the sample data set are characteristic data collected by multiple PMU nodes in a simulated power system, and each sample data has a label representing whether the power system can maintain transient stability;
[0009] A pre-trained artificial intelligence network is trained based on a sample data set, and a key node set is extracted from a plurality of PMU nodes according to a result of the training, wherein the key nodes in the key node set are a predetermined number of PMU nodes selected from the plurality of PMU nodes;
[0010] Based on the characteristic data corresponding to each key node in the key node set, the artificial intelligence network is trained to obtain a transient stability discrimination network;
[0011] The electrical quantity data collected by the PMU nodes in the actual power system that are consistent with the installation positions of each key node in the key node set are obtained, and the collected electrical quantity data are input into the transient stability judgment network to output the transient stability judgment result of the actual power system.
[0012] Optionally, obtaining a sample data set includes:
[0013] The initial sample data with time domain information collected by multiple PMU nodes in the power system is obtained by simulation;
[0014] Selecting a voltage item of a PMU node from the initial sample data as feature data; and
[0015] According to the maximum power angle difference Δδmax of the generator during the simulation process, a label corresponding to each characteristic data is generated to characterize whether the simulated power system can maintain transient stability.
[0016] Optionally, the pre-training artificial intelligence network based on the sample data set and extracting a key node set from a plurality of PMU nodes according to the training result include:
[0017] Select any one PMU node from the plurality of PMU nodes, and train a pre-AI network based on feature data corresponding to the selected PMU node in the sample data set;
[0018] Determining whether the accuracy of the previous artificial intelligence network meets a preset accuracy threshold according to the training result of the previous artificial intelligence network;
[0019] Determine whether the number of selected PMU nodes meets a preset minimum node number threshold;
[0020] When the accuracy of the artificial intelligence network before judgment meets the preset accuracy threshold and the number of selected PMU nodes meets the preset minimum node number threshold, the selected PMU nodes are extracted from multiple PMU nodes to obtain a key node set.
[0021] Optionally, the training of the artificial intelligence network based on the feature data corresponding to each key node in the key node set to obtain a transient stability discrimination network includes:
[0022] After the electrical quantities corresponding to each key node in the key node set are input, the artificial intelligence network is pre-trained and the accuracy of the pre-training is calculated;
[0023] When the accuracy of the post-AI network is not greater than the accuracy threshold, a PMU node is selected from the plurality of PMU nodes and added to the key node set to obtain a new key node set, wherein the selected PMU node belongs to other PMU nodes outside the key node set;
[0024] After the electrical quantities corresponding to each key node in the new key node set are input, the artificial intelligence network is pre-trained until the accuracy of the pre-training is greater than the accuracy threshold, and the training is stopped to obtain a transient stability discrimination network.
[0025] Optionally, the front artificial intelligence network is a time-delay neural network and output feedback is omitted, and the calculation formula of the front artificial intelligence network is as follows:
[0026]
[0027] In the formula, ypre is the output of the previous AI network, yt is the output of the time-delay neural network at time t, is a time series, x is a vector, and the superscript i is the number of the PMU node in the power system.
[0028] Optionally, the post-artificial intelligence network is composed of a bidirectional recurrent neural network and a BiLSTM layer, and the obtained transient stability discrimination network includes an input layer, a BiLSTM layer, a Dropout layer, a fully connected layer, a Softmax layer and a Classification layer.
[0029] Optionally, the method further comprises:
[0030] According to the maximum power angle difference Δδ of the generator max Determine the label of each feature data, where the determination formula is as follows:
[0031]
[0032]
[0033] Where TSI is a parameter used to determine whether the power angle of the simulated power system is stable, y Label is the label of the feature data.
[0034] According to another aspect of the present invention, a multi-agent transient stability judgment system for a power system with a small number of PMU sampling is provided, comprising:
[0035] A sample data set acquisition module is used to acquire a sample data set, wherein the sample data in the sample data set are characteristic data collected by multiple PMU nodes in a simulated power system, and each sample data has a label representing whether the power system can maintain transient stability;
[0036] A key node set determination module, used for training the pre-AI network based on the sample data set, and extracting a key node set from the plurality of PMU nodes according to the training result, wherein the key nodes in the key node set are a predetermined number of PMU nodes selected from the plurality of PMU nodes; and
[0037] A transient stability discrimination network determination module is used to train an artificial intelligence network based on characteristic data corresponding to each key node in the key node set to obtain a transient stability discrimination network;
[0038] The transient stability judgment module is used to obtain the electrical quantity data collected by the PMU nodes in the actual power system that are consistent with the installation positions of each key node in the key node set, and input the collected electrical quantity data into the transient stability judgment network to output the transient stability judgment result of the actual power system.
[0039] Optionally, the sample data set acquisition module is specifically used to:
[0040] The initial sample data with time domain information collected by multiple PMU nodes in the power system is obtained by simulation;
[0041] Selecting a voltage item of a PMU node from the initial sample data as feature data; and
[0042] According to the maximum power angle difference Δδ of the generator during the simulation process max, generate labels corresponding to each characteristic data to characterize whether the simulated power system can maintain transient stability.
[0043] Optionally, the key node set determination module is specifically used for:
[0044] Select any one PMU node from the plurality of PMU nodes, and train a pre-AI network based on feature data corresponding to the selected PMU node in the sample data set;
[0045] Determining whether the accuracy of the previous artificial intelligence network meets a preset accuracy threshold according to the training result of the previous artificial intelligence network;
[0046] Determine whether the number of selected PMU nodes meets a preset minimum node number threshold;
[0047] When the accuracy of the artificial intelligence network before judgment meets the preset accuracy threshold and the number of selected PMU nodes meets the preset minimum node number threshold, the selected PMU nodes are extracted from multiple PMU nodes to obtain a key node set.
[0048] Optionally, the transient stability discrimination network determination module is specifically used for:
[0049] After the electrical quantities corresponding to each key node in the key node set are input, the artificial intelligence network is pre-trained and the accuracy of the pre-training is calculated;
[0050] When the accuracy of the post-AI network is not greater than the accuracy threshold, a PMU node is selected from the plurality of PMU nodes and added to the key node set to obtain a new key node set, wherein the selected PMU node belongs to other PMU nodes outside the key node set;
[0051] After the electrical quantities corresponding to each key node in the new key node set are input, the artificial intelligence network is pre-trained until the accuracy of the pre-training is greater than the accuracy threshold, and the training is stopped to obtain a transient stability discrimination network.
[0052] Optionally, the front artificial intelligence network is a time-delay neural network and output feedback is omitted, and the calculation formula of the front artificial intelligence network is as follows:
[0053]
[0054] In the formula, ypre is the output of the previous AI network, yt is the output of the time-delay neural network at time t, is a time series, x is a vector, and the superscript i is the number of the PMU node in the power system.
[0055] Optionally, the post-artificial intelligence network is composed of a bidirectional recurrent neural network and a BiLSTM layer, and the obtained transient stability discrimination network includes an input layer, a BiLSTM layer, a Dropout layer, a fully connected layer, a Softmax layer and a Classification layer.
[0056] Optionally, the system further includes a tag determination module, which is specifically used to: max Determine the label of each feature data, where the determination formula is as follows:
[0057]
[0058]
[0059] Where TSI is a parameter used to determine whether the power angle of the simulated power system is stable, y Label is the label of the feature data.
[0060] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute the method described in any one of the above aspects of the present invention.
[0061] According to another aspect of the present invention, an electronic device is provided, comprising: a processor; a memory for storing instructions executable by the processor; the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method described in any one of the above aspects of the present invention.
[0062] Therefore, the present invention can automatically select key PMU nodes in the power grid with the AI for AI multi-agent series coordination mode, and realize an integrated stability judgment process that considers the physical structure of the power grid. And through the Pre-AI model, key feature nodes can be effectively extracted and the feature dimensions of data samples can be greatly reduced, the redundancy of the original data set can be reduced, and the training efficiency of the Post-AI model can be improved. In addition, after the Post-AI model training is completed, it is only necessary to collect the electrical quantities on the key node set determined by the Pre-AI model in the actual power grid, and input them into the Post-AI model for accurate stability / instability classification, and the transient stability judgment results of the actual power grid can be output. In addition, the key feature node set extracted by the Pre-AI model corresponds to the spatial structure of the actual power grid, and can provide PMU node installation suggestions for future systems based on intelligent stability judgment, thereby reducing installation costs. This AI for AI model provides reference significance for multi-agents to deal with complex problems in power systems. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] A more complete understanding of exemplary embodiments of the present invention may be obtained by referring to the following drawings:
[0064] Figure 1 is a framework diagram of an AI for AI model provided by an exemplary embodiment of the present invention;
[0065] Figure 2 It is a flow chart of a method for determining transient stability of a power system multi-agent with a small number of PMUs sampled according to an exemplary embodiment of the present invention;
[0066] Figure 3 is a schematic diagram of the structure of a time-delay neural network provided by an exemplary embodiment of the present invention;
[0067] Figure 4 It is a schematic diagram of the overall process of transient stability judgment of a power system multi-agent with a small number of PMU sampling provided by an exemplary embodiment of the present invention;
[0068] Figure 5 is a schematic diagram of the structure of a bidirectional recurrent neural network provided by an exemplary embodiment of the present invention;
[0069] Figure 6 is a schematic diagram of the structure of an LSTM neuron provided by an exemplary embodiment of the present invention;
[0070] Figure 7 is a schematic diagram of the structure of a transient stability discrimination network provided by an exemplary embodiment of the present invention;
[0071] Figure 8 It is a schematic diagram of the relationship between the accuracy rate η of the pre-artificial intelligence network and the extracted key node set provided by an exemplary embodiment of the present invention;
[0072] Fig. 9 is a γ based on the IEEE 39-node system provided by an exemplary embodiment of the present invention Δt A schematic diagram showing the relationship between the accuracy and the number of nodes in the key node set;
[0073] Fig.10 is a γ based on a 300-node system provided by an exemplary embodiment of the present invention. Δt A schematic diagram showing the relationship between the accuracy and the number of nodes in the key node set;
[0074] Fig.11 is a structural schematic diagram of a power system multi-agent transient stability judgment system with a small number of PMU sampling provided by an exemplary embodiment of the present invention; and
[0075] Fig.12 This is a structure of an electronic device provided by an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0076] Below, the exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments of the present invention, and it should be understood that the present invention is not limited to the exemplary embodiments described here.
[0077] It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
[0078] Those skilled in the art can understand that the terms "first" and "second" in the embodiments of the present invention are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor indicate the necessary logical order between them.
[0079] It should also be understood that, in the embodiments of the present invention, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.
[0080] It should also be understood that any component, data or structure mentioned in the embodiments of the present invention can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0081] In addition, the term "and / or" in the present invention is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present invention generally indicates that the associated objects before and after are in an "or" relationship.
[0082] It should also be understood that the description of the various embodiments of the present invention focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0083] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0084] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0085] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0086] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0087] Embodiments of the present invention can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with many other general or special computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers, etc. include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above systems, etc.
[0088] Electronic devices such as terminal devices, computer systems, servers, etc. can be described in the general context of computer system executable instructions (such as program modules) executed by computer systems. Generally, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.
[0089] Exemplary Methods
[0090] The present invention first designs the system structure, and the specific implementation steps are as follows:
[0091] With the continuous development of the power grid, the number of network nodes is increasing. If all the electrical quantities collected by each node are input into a complex neural network for temporary stability prediction, the model will inevitably become more and more complex, consume more computing resources, and the computing time of online applications will also be extended. This paper establishes the framework of the AI for AI model through the cooperation of dual intelligent agents. Figure 1As shown. Among them, the full set of data represents the electrical characteristics of each node collected by the PMU. The Pre-AI model first roughly classifies the original data to obtain the key feature set. The selected key feature set may not be the best, but it must ensure that the transient stability judgment of the Post-AI model is effective. After the Pre-AI model extracts the key feature set and uses it as the feature input of the Post-AI model, the training speed and online operation speed of the Post-AI model are improved due to the reduction in the dimension of the feature set, and the improvement effect is more obvious for larger power networks. If the power network undergoes major changes, or new technologies and equipment are connected to the power grid, the Pre-AI model can be restarted to extract a new key feature set B. At this time, the Post-AI model can be trained from feature set A to feature set B through transfer learning or retraining to adapt to the new power grid structure.
[0092] Based on the above-mentioned AI for AI model, a multi-agent transient stability judgment method for power systems based on a small number of PMU sampling (hereinafter referred to as "TSA-SPS") can be implemented. In TSA-SPS, the main function of the Pre-AI model is to pre-process the raw data collected by the PMU nodes according to its own training accuracy, and select the top few nodes with the best accuracy. The PMU data corresponding to the selected nodes is then input into the Post-AI model for accurate stability judgment and classification. Therefore, TSA-SPS can effectively reduce the number of PMU nodes required for stability judgment, and reduce the pressure brought by PMU nodes in the data communication system.
[0093] Figure 2 1 is a flow chart of a method for determining transient stability of a power system multi-agent system with a small number of PMUs sampled according to an exemplary embodiment of the present invention. This embodiment can be applied to electronic devices, such as Figure 2 As shown, the power system multi-agent transient stability judgment method 200 includes the following steps:
[0094] Step 201 : obtaining a sample data set, wherein the sample data in the sample data set are characteristic data collected by multiple PMU nodes in a simulated power system, and each sample data has a label representing whether the power system can maintain transient stability.
[0095] As an embodiment, obtaining a sample data set includes: obtaining initial sample data with time domain information collected by multiple PMU nodes in the power system by simulation; selecting a voltage item of the PMU node as feature data from the initial sample data; and according to the maximum power angle difference Δδ of the generator during the simulation process. max , generate labels corresponding to each characteristic data to characterize whether the simulated power system can maintain transient stability.
[0096] Usually, considering that the probability of failure of the actual power grid is extremely small, the data collected by the PMU node is highly biased data concentrated in the normal state, which is not conducive to the effect of our research on intelligent algorithms. Therefore, the present invention adopts a simulation method to obtain data with time domain information, and the sampling frequency of the simulated PMU node is 50Hz. For transient stability judgment, we only select the voltage item (including voltage amplitude and phase angle) of the PMU node as the characteristic quantity of interest. The collected initial sample data is as follows:
[0097]
[0098] Among them, M represents the total number of nodes in the transmission network under study, T represents the length of the time series, and for a network with M nodes, the total feature dimension is 2M.
[0099] As an embodiment, according to the maximum power angle difference Δδ of the generator max Determine the label of each feature data, where the determination formula is as follows:
[0100]
[0101]
[0102] Where TSI is a parameter used to determine whether the power angle of the simulated power system is stable, y Label is the label of the feature data.
[0103] Step 202, training the pre-AI network based on the sample data set, and extracting a key node set from the multiple PMU nodes according to the training results, wherein the key nodes in the key node set are a predetermined number of PMU nodes selected from the multiple PMU nodes.
[0104] As an embodiment, the front artificial intelligence network is a time-delay neural network and output feedback is omitted, and the calculation formula of the front artificial intelligence network is as follows:
[0105]
[0106] In the formula, ypre is the output of the previous AI network, yt is the output of the time-delay neural network at time t, is a time series, x is a vector, and the superscript i is the number of the PMU node in the power system.
[0107] Generally, the disturbance of the power system is a dynamic process of time evolution. In comparison, the neural network with time delay can better conform to the physical process of the power system after the disturbance than the neural network without time delay. Therefore, the transient stability judgment network (corresponding to Figure 1 The Post-AI model in the paper adopts a bidirectional long short-term memory network (BiLSTM). Therefore, when designing the pre-AI network (corresponding to Figure 1 The following two factors are mainly considered in the process of Pre-AI model:
[0108] 1) The Pre-AI model and the Post-AI model should have similar intelligent structures to ensure that the key features extracted by the Pre-AI model can be used by the Post-AI model;
[0109] 2) The Pre-AI model should run at a faster speed to ensure the efficiency of feature selection.
[0110] Based on the above two points, this paper selects the Pre-AI model as a simple time-delayed neural network (TDNN) and omits the output feedback. Its working principle is as follows Figure 3 As shown, y t Represents the output of TDNN at time t, and the input of the model is a time series arrive x is a vector, and the superscript i is the number of the power system node. The calculation formula of TDNN is as follows:
[0111]
[0112] In the formula, ypre is the output of the previous AI network, yt is the output of the time-delay neural network at time t, is a time series, x is a vector, and the superscript i is the number of the PMU node in the power system.
[0113] Compared with ordinary fully connected ANN networks, if the time domain evolution characteristics are to be considered, TDNN can share the weight matrix w in the time dimension, so it will be more efficient in executing time series.
[0114] As an embodiment, a front artificial intelligence network is trained based on a sample data set, and a key node set is extracted from multiple PMU nodes according to the training results, including: selecting any one PMU node from multiple PMU nodes, and training the front artificial intelligence network based on feature data corresponding to the selected PMU node in the sample data set; judging whether the accuracy of the front artificial intelligence network meets a preset accuracy threshold according to the training results of the front artificial intelligence network; judging whether the number of selected PMU nodes meets a preset minimum node number threshold; when it is judged that the accuracy of the front artificial intelligence network meets the preset accuracy threshold and the number of selected PMU nodes meets the preset minimum node number threshold, extracting the selected PMU nodes from multiple PMU nodes to obtain a key node set.
[0115] Usually, the raw data collected by PMU nodes are generally highly redundant. For an electric network containing M nodes, only the data collected by a few PMU nodes may play a major role in the final transient stability judgment, and the other nodes only play a weak role. If there are too many weakly playing data, it will cause a lot of computing resources to be consumed during the neural network training process and the final effect will be poor. The goal of the Pre-AI model is to select the nodes that play a major role in the spatial dimension and only use the information of these nodes as the input of the Post-AI model. Among them, the overall flow diagram of the multi-agent transient stability judgment method for power systems with a small number of PMU sampling is shown in the figure. Figure 4 shown.
[0116] Specifically, the Pre-AI model first selects any PMU node from multiple PMU nodes and sets it as the key node S k 1 and use only at this key node S k 1 Train the Pre-AI model (i.e., the pre-AI network) under the corresponding feature data set. If the accuracy of the Pre-AI model on the test set does not meet the set minimum accuracy η min and the minimum number of nodes n min If there is no untraversed node, select the best node and add another node until a key node set S that meets the requirements is found. k n .
[0117] Step 203, based on the feature data corresponding to each key node in the key node set, the artificial intelligence network is trained to obtain a transient stability discrimination network.
[0118] As an embodiment, the post-artificial intelligence network is composed of a bidirectional recurrent neural network and a BiLSTM layer, and the obtained transient stability discrimination network includes an input layer, a BiLSTM layer, a Dropout layer, a fully connected layer, a Softmax layer and a Classification layer.
[0119] Usually, since the signals collected by PMU nodes have time series characteristics, the use of recurrent neural networks (RNNs) can better reflect the dynamic process of power grid instability. Traditional unidirectional RNNs can only obtain information about positive time series when processing time series. However, feature extraction from the negative time series direction can also obtain some key information for a time series to enhance the accuracy and generalization performance of the entire neural network. Therefore, bidirectional recurrent neural networks have better performance and can obtain more information with less data, allowing the Pre-AI model to compress the number of PMU nodes to a greater extent. The structure of a bidirectional recurrent neural network is as follows: Figure 5 As shown, it includes not only the forward layer but also the reverse layer. Taking time t as an example, the calculation formula of the recurrent neural network is as follows:
[0120]
[0121] Among them, h → and h ← denote the output of the forward layer and the reverse layer, respectively, b→ and b← denote the bias on the forward layer and the reverse layer, respectively, and b y Represents the bias of the final output, x t and yt represent the input and output at time t respectively, and w is the weight matrix. If you only care about the result at the final moment, you can only output the value y at the final moment tmax .
[0122] Since traditional neurons have short-term memory, LSTM, as a variant of traditional RNN, not only extends the memory capacity, but also makes up for the disadvantage of gradient diffusion in standard RNN units. The network structure of LSTM neurons is as follows: Figure 6 shown.
[0123] Substitute the LSTM neuron into Figure 5 The bidirectional recurrent network shown in Figure 1 can establish a BiLSTM layer, and use the BiLSTM layer to establish a Post-AI model (corresponding to the transient stability discrimination network), as shown in Figure 1. Figure 7 To prevent overfitting during training, a Dropout layer is added after the BiLSTM layer. The probability of the Dropout layer is set to 0.5. The BiLSTM layer contains 128 hidden units, and the output size of the fully connected layer is 2.
[0124] As an embodiment, based on the characteristic data corresponding to each key node in the key node set, the artificial intelligence network is trained to obtain a transient stability discrimination network, including: inputting the electrical quantities corresponding to each key node in the key node set into the artificial intelligence network for pre-training, and calculating the accuracy of the pre-training; when the accuracy of the artificial intelligence network is not greater than the accuracy threshold, selecting a PMU node from multiple PMU nodes and adding it to the key node set to obtain a new key node set, wherein the selected PMU node belongs to other PMU nodes outside the key node set; inputting the electrical quantities corresponding to each key node in the new key node set into the artificial intelligence network for pre-training until the accuracy of the pre-training is greater than the accuracy threshold, stopping the training, and obtaining a transient stability discrimination network.
[0125] Set the key node The electrical quantities corresponding to each key node in the post-AI network are input into the post-AI network (corresponding to the Post-AI model) for pre-training, and the accuracy of the pre-training γ is calculated. If γ is less than the accuracy requirement γmin of the Post-AI model, then Add a node in the training process until the requirements are met and then output the trained Post-AI model network to obtain the following Figure 7 The transient stability discriminant network shown in Figure 1 is shown in Figure 1. The loss function of the Post-AI model training is expressed using the cross entropy error, as shown in the following formula:
[0126]
[0127] Where N represents the number of samples in the training set. Represents the predicted value of the neural network.
[0128] In addition, the training process uses the adma optimization algorithm to optimize the neural network parameters of the Post-AI model by minimizing the loss function L. The learning rate is reduced by 0.4 times after 60 iterations, and the mini-branch size is 512.
[0129] Therefore, the present invention introduces a hyperparameter η in the AI for AI model. min and n min To associate the coordination between the Pre-AI model and the Post-AI model. min The main function is to ensure the accuracy and stability of the Pre-AI model training results. min The main function is to ensure the stability of Post-AI model training, n min The larger the value of , the more stable the Post-AI model results are. Since the Post-AI model has a complex structure and a long training time, we should try to avoid the situation where γ < γ min By adjusting ηmin and n min The value of can ensure that the accuracy γ of the Post-AI model is greater than the threshold. In the IEEE 39-node system, the present invention takes η min =86%, n min =5.
[0130] Step 204, obtaining electrical quantity data collected by PMU nodes in the actual power system that are consistent with the installation positions of each key node in the key node set, and inputting the collected electrical quantity data into a transient stability judgment network to output a transient stability judgment result of the actual power system.
[0131] In the embodiment of the present invention, a transient stability judgment network can be obtained after the training of the post-artificial intelligence network is completed. When applied, it is only necessary to collect the electrical quantities on the key node set determined by the pre-artificial intelligence network in the actual power grid and input them into the transient stability judgment network for accurate stability / instability classification, thereby outputting the transient stability judgment result of the actual power grid.
[0132] Case analysis:
[0133] The present invention adopts the PSD power grid commercial simulation calculation software released by the China Electric Power Research Institute, and uses the IEEE39 node system to generate calculation examples, in which the generator and load changes take the base values of 0.8, 1, and 1.2 respectively, and performs N-1 fault scans on the system. The fault time is set to 0-0.4s, and a total of 9000 samples are generated.
[0134] 1) First, use the Pre-AI model to select key node sets:
[0135] Since the Pre-AI model is set to extract "coarse features" such as key nodes, there is no need to train on the entire sample set. Therefore, only 500 samples are extracted as the sample set of the Pre-AI model, and 85% of the sample set is used as the training set, and 15% is used as the test set. The time length T=3 is taken to ensure efficient operation speed. The Pre-AI model is used to extract key feature nodes of the IEEE 39-node system, and the training results under different node sets are as follows: Figure 8 As shown. The horizontal axis represents the order of adding the selected node set. For the first few nodes, the accuracy will increase rapidly. When the number of extracted key nodes is 3, η is satisfied. min >86%, but in order to ensure the stability of Post-AI model training and prevent the Post-AI model from experiencing γ<γ min So we take n min=5. As the number of nodes increases, nodes that have a weak effect on the training results will be incorporated into the node set, which may cause the accuracy to drop. This is consistent with the training experience of machine learning. The more input features, the better. Therefore, feature screening is generally performed in the early stage of training. Finally, as the number of nodes increases further, the accuracy will maintain a relatively stable value.
[0136] It should be noted that for each node set selection, the number of training iterations must be sufficient to make the neural network stable. Before the number of iterations reached 60, there was obvious oscillation in the training accuracy curve, which may cause the results of the extracted node set to not converge. The maximum number of iterations taken by the Pre-AI model in this paper is set to 100. Table 1 lists the node sets selected by the Pre-AI model 5 times. It can be seen that the key node sets selected by the Pre-AI model are very similar, especially the first three nodes. This also shows that the convergence of the Pre-AI model running results is good, which can provide a stable data set for the Post-AI model.
[0137] Table 1η min = The key node set selected by the Pre-AI model in 86% of cases
[0138]
[0139] 2) Determine the training time and network performance of the Post-AI model:
[0140] The CPU used for training in this invention is Intel i5 6500, 3.2GHz, which is used to calculate the time required for training. Since the training time using different CPUs or GPUs varies greatly, the relative reduction in calculation time γ is used here Δt The difference in computing resource requirements is shown in the following formula:
[0141]
[0142] Among them, t0 represents the time spent on training without pre-AI model preprocessing, t pre Indicates the time it takes for the Pre-AI model to extract key nodes, t post Indicates the time taken for Post-AI model training.
[0143] The relative reduction in training time under different key node training sets is calculated as follows: Fig. 9 As shown. It can be seen that preprocessing the key feature nodes through the Pre-AI model can effectively reduce the training time of the Post-AI model. When the number of feature node sets is less than 20, more than one-fifth of the computational workload can be saved. Even if 25 feature nodes are extracted, the computational workload can still be reduced by 14%. Fig. 9The figure shows the amount of computation saved by the Post-AI model when it is calculated once. Usually, the Post-AI model will be trained multiple times to select the result with the best training effect. In this case, the amount of computation saved is considerable.
[0144] See also Fig.10 As shown, it can be seen from the training results of the neural network that, compared with the method of randomly selecting a bus node set, the training mode of the AI for AI model can not only greatly reduce the amount of calculation, but also the performance of the Post-AI model can still maintain a relatively high accuracy rate. The accuracy of the test set remains above 98%, indicating that the key feature nodes extracted by the present invention are effective.
[0145] To further illustrate the advantages of TSA-SPS, a 300-node AC / DC hybrid power grid was established based on the actual AC / DC power supply form and related operating data. The 300-node standard example was analyzed using the AI for AI model of TSA-SPS. The results are as follows: Fig.10 shown.
[0146] Calculate γ using the above formula Δt like Fig.10 As shown in the figure, when the number of key node sets is less than 50, the Post-AI model can save more than 85% of the calculation amount in one calculation, and the relative saving of calculation time is much higher than that of 39 nodes, and the model accuracy of TSA-SPS is also maintained above 97.8%. This also shows that in large power grids with a large number of nodes, the use of TSA-SPS models can more effectively improve the training efficiency of intelligent models.
[0147] In addition, combined Figure 8 and Fig.10 As shown, after model verification, it is found that when the power grid is set with 39 nodes, the number of extracted key nodes is 5, and the model stability and accuracy of TSA-SPS are optimal. When the power grid is set with 300 nodes, the number of extracted key nodes is 50, and the model stability and accuracy of TSA-SPS are optimal. It can be seen that the present invention can realize the transient stability judgment of the power system by only using the data collected by PMU on fewer nodes.
[0148] Therefore, the present invention explores the cooperation of multiple agents in the transient stability judgment process of the power system, and proposes a transient stability judgment method of the power system multi-agent (TSA-SPS) with a small number of PMU sampling in the form of an AI for AI model. The method has the following beneficial effects:
[0149] 1) In TSA-SPS, the Pre-AI model can extract the key node set in the power grid according to the location of the PMU nodes, and realize transient stability judgment by using only the data of PMUs on fewer nodes.
[0150] 2) Since the number of required nodes is reduced, the computing resources required for Post-AI model training can be significantly reduced, which can improve the training efficiency of neural networks, and the improvement effect is more obvious for larger networks.
[0151] 3) The key node set extracted by the Pre-AI model can provide guidance for the selection of PMU locations in the power system, and due to the reduction in the number of required PMUs, the communication pressure in the WAMS system is reduced, and the construction cost of PMU installation and communication system is reduced.
[0152] 4) The AI for AI model established by the present invention is not limited to transient stability judgment in power grids, but can be extended to other power grid applications, avoiding the dimensionality disaster problem caused by directly using a single neural network to process high-dimensional data. At the same time, the working mode of the AI for AI model also provides reference and reference for the coordination and application of multi-agent technology in power systems or other industrial systems.
[0153] Therefore, the present invention can automatically select key PMU nodes in the power grid with the AI for AI multi-agent series coordination mode, realize an integrated stability judgment process that considers the physical structure of the power grid, and effectively extract key feature nodes through the Pre-AI model and greatly reduce the feature dimension of the data sample, thereby reducing the redundancy of the original data set and improving the training efficiency of the Post-AI model. Moreover, after the Post-AI model training is completed, when it is applied, it is only necessary to collect the electrical quantities on the key node set determined by the Pre-AI model in the actual power grid, and input them into the Post-AI model for accurate stability / instability classification, and then the transient stability judgment result of the actual power grid can be output. In addition, the key node set extracted by the Pre-AI model corresponds to the spatial structure of the actual power grid, and can provide PMU installation suggestions for future systems based on intelligent stability judgment, thereby reducing installation costs. This AI for AI model provides a reference for multi-agents to deal with complex problems in power systems.
[0154] Exemplary Systems
[0155] Fig.11 FIG. 1 is a schematic diagram of a structure of a multi-agent transient stability judgment system for a power system with a small number of PMU sampling provided by an exemplary embodiment of the present invention. Fig.11As shown, the system 1100 includes: a sample data set acquisition module 1101, which is used to acquire a sample data set, wherein the sample data in the sample data set is characteristic data collected by multiple PMU nodes in a simulated power system, and each sample data has a label that characterizes whether the power system can maintain transient stability; a key node set determination module 1102, which is used to train a pre-artificial intelligence network based on the sample data set, and extract a key node set from multiple PMU nodes according to the training result, wherein the key nodes in the key node set are a predetermined number of PMU nodes selected from multiple PMU nodes; and a transient stability judgment network determination module 1103, which is used to train a post-artificial intelligence network based on the characteristic data corresponding to each key node in the key node set to obtain a transient stability judgment network; a transient stability judgment module 1104, which is used to acquire electrical quantity data collected by PMU nodes in an actual power system that are consistent with the installation positions of each key node in the key node set, and input the collected electrical quantity data into the transient stability judgment network to output the transient stability judgment result of the actual power system.
[0156] In one embodiment, the sample data set acquisition module 1101 is specifically used to: obtain initial sample data with time domain information collected by multiple PMU nodes in the power system by simulation; select the voltage item of the PMU node as the feature data from the initial sample data; and according to the maximum power angle difference Δδ of the generator during the simulation process, max , generate labels corresponding to each characteristic data to characterize whether the simulated power system can maintain transient stability.
[0157] In one embodiment, the key node set determination module 1102 is specifically used to: select any one PMU node from multiple PMU nodes, and train a previous artificial intelligence network based on feature data corresponding to the selected PMU node in a sample data set; determine whether the accuracy of the previous artificial intelligence network meets a preset accuracy threshold according to the training result of the previous artificial intelligence network; determine whether the number of selected PMU nodes meets a preset minimum node number threshold; when it is determined that the accuracy of the previous artificial intelligence network meets the preset accuracy threshold and the number of selected PMU nodes meets the preset minimum node number threshold, extract the selected PMU node from the multiple PMU nodes to obtain a key node set.
[0158] In one embodiment, the transient stability discrimination network determination module 1103 is specifically used to: input the electrical quantity corresponding to each key node in the key node set into the artificial intelligence network for pre-training, and calculate the accuracy of the pre-training; when the accuracy of the post-artificial intelligence network is not greater than the accuracy threshold, select a PMU node from multiple PMU nodes to add to the key node set to obtain a new key node set, wherein the selected PMU node belongs to other PMU nodes outside the key node set; input the electrical quantity corresponding to each key node in the new key node set into the artificial intelligence network for pre-training until the accuracy of the pre-training is greater than the accuracy threshold, stop the training, and obtain the transient stability discrimination network.
[0159] In one embodiment, the front artificial intelligence network is a time-delay neural network and output feedback is omitted, and the calculation formula of the front artificial intelligence network is as follows:
[0160]
[0161] In the formula, ypre is the output of the previous AI network, yt is the output of the time-delay neural network at time t, is a time series, x is a vector, and the superscript i is the number of the PMU node in the power system.
[0162] In one embodiment, the post-artificial intelligence network is composed of a bidirectional recurrent neural network and a BiLSTM layer, and the obtained transient stability discrimination network includes an input layer, a BiLSTM layer, a Dropout layer, a fully connected layer, a Softmax layer and a Classification layer.
[0163] In one embodiment, the system 1100 further includes a tag determination module, which is specifically configured to: max Determine the label of each feature data, where the determination formula is as follows:
[0164]
[0165]
[0166] Where TSI is a parameter used to determine whether the power angle of the simulated power system is stable, y Label is the label of the feature data.
[0167] The multi-agent transient stability judgment system 1100 for a power system with a small number of PMUs sampled in an embodiment of the present invention corresponds to the multi-agent transient stability judgment method 200 for a power system with a small number of PMUs sampled in another embodiment of the present invention, and will not be described in detail here.
[0168] Exemplary Electronic Devices
[0169] Fig.12 The electronic device provided by an exemplary embodiment of the present invention may be any one or both of the first device and the second device, or a stand-alone device independent of them, and the stand-alone device may communicate with the first device and the second device to receive the collected input signals from them. Fig.12 FIG. 2 is a block diagram of an electronic device according to an embodiment of the present invention. Fig.12 As shown, the electronic device 120 includes one or more processors 121 and a memory 122 .
[0170] The processor 121 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
[0171] The memory 122 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 121 may run the program instructions to implement the method for information mining of historical change records and / or other desired functions of the software program of each embodiment of the present invention described above. In one example, the electronic device may also include: an input system 123 and an output system 124, and these components are interconnected through a bus system and / or other forms of connection mechanisms (not shown).
[0172] In addition, the input system 123 may also include, for example, a keyboard, a mouse, and the like.
[0173] The output system 124 can output various information to the outside. The output device 124 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto.
[0174] Of course, to simplify, Fig.12 Only some of the components related to the present invention in the electronic device are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application conditions, the electronic device may also include any other appropriate components.
[0175] Exemplary computer program products and computer-readable storage media
[0176] In addition to the above-mentioned methods and devices, an embodiment of the present invention may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method for performing information mining on historical change records according to various embodiments of the present invention described in the above "Exemplary Method" section of this specification.
[0177] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the embodiments of the present invention, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0178] In addition, an embodiment of the present invention may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enable the processor to execute the steps of the method for information mining of historical change records according to various embodiments of the present invention described in the above “Exemplary Method” section of this specification.
[0179] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, system or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0180] The basic principle of the present invention is described above in conjunction with specific embodiments. However, it should be pointed out that the advantages, strengths, effects, etc. mentioned in the present invention are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. must be possessed by each embodiment of the present invention. In addition, the specific details disclosed above are only for the purpose of illustration and facilitation of understanding, rather than limitation, and the above details do not limit the present invention to being implemented by adopting the above specific details.
[0181] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0182] The block diagrams of the devices, systems, equipment, and systems involved in the present invention are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, systems, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The word "such as" used here refers to the phrase "such as but not limited to", and can be used interchangeably with it.
[0183] The method and system of the present invention may be implemented in many ways. For example, the method and system of the present invention may be implemented by software, hardware, firmware or any combination of software, hardware, firmware. The above order of steps for the method is only for illustration, and the steps of the method of the present invention are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present invention may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present invention. Thus, the present invention also covers a recording medium storing a program for executing the method according to the present invention.
[0184] It should also be noted that in the system, device and method of the present invention, each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. The above description of the disclosed aspects is provided to enable any technician in the field to make or use the present invention. Various modifications to these aspects are very obvious to those skilled in the art, and the general principles defined here can be applied to other aspects without departing from the scope of the present invention. Therefore, the present invention is not intended to be limited to the aspects shown here, but in accordance with the widest range consistent with the principles and novel features disclosed here.
[0185] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present invention to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A method for determining transient stability of a power system using a multi-agent system with a small number of PMUs for sampling, characterized in that: include: Acquire a sample data set, wherein the sample data in the sample data set are characteristic data collected by multiple PMU nodes in a simulated power system, and each sample data has a label representing whether the power system can maintain transient stability; A pre-trained artificial intelligence network is trained based on a sample data set, and a key node set is extracted from a plurality of PMU nodes according to a result of the training, wherein the key nodes in the key node set are a predetermined number of PMU nodes selected from the plurality of PMU nodes; Based on the characteristic data corresponding to each key node in the key node set, the artificial intelligence network is trained to obtain a transient stability discrimination network; Obtain electrical quantity data collected by PMU nodes in the actual power system that are consistent with the installation positions of each key node in the key node set, input the collected electrical quantity data into the transient stability judgment network, and output the transient stability judgment result of the actual power system; The training of the artificial intelligence network based on the characteristic data corresponding to each key node in the key node set to obtain a transient stability discrimination network includes: After the electrical quantities corresponding to each key node in the key node set are input, the artificial intelligence network is pre-trained and the accuracy of the pre-training is calculated; When the accuracy of the post-AI network is not greater than the accuracy threshold, a PMU node is selected from the plurality of PMU nodes and added to the key node set to obtain a new key node set, wherein the selected PMU node belongs to other PMU nodes outside the key node set; After the electrical quantities corresponding to each key node in the new key node set are input, the artificial intelligence network is pre-trained until the accuracy of the pre-training is greater than the accuracy threshold, and the training is stopped to obtain a transient stability discrimination network; The former artificial intelligence network is a time-delay neural network and output feedback is omitted, and the calculation formula of the former artificial intelligence network is as follows: In the formula, y pre is the output of the previous artificial intelligence network, y t is the output of the time-delay neural network at time t, is a time series, x is a vector, and the superscript i is the number of the PMU node in the power system; The post-AI network is composed of a bidirectional recurrent neural network and a BiLSTM layer, and the obtained transient stability discrimination network includes an input layer, a BiLSTM layer, a Dropout layer, a fully connected layer, a Softmax layer, and a Classification layer.
2. The method according to claim 1, characterized in that The obtaining of the sample data set comprises: The initial sample data with time domain information collected by multiple PMU nodes in the power system is obtained by simulation; Selecting a voltage item of a PMU node from the initial sample data as feature data; and According to the maximum power angle difference Δδ of the generator during the simulation process max , generate labels corresponding to each characteristic data to characterize whether the simulated power system can maintain transient stability.
3. The method according to claim 1, characterized in that The artificial intelligence network is trained based on the sample data set, and a key node set is extracted from multiple PMU nodes according to the training results, including: Select any one PMU node from the plurality of PMU nodes, and train a pre-AI network based on feature data corresponding to the selected PMU node in the sample data set; Determining whether the accuracy of the previous artificial intelligence network meets a preset accuracy threshold according to the training result of the previous artificial intelligence network; Determine whether the number of selected PMU nodes meets a preset minimum node number threshold; When the accuracy of the artificial intelligence network before judgment meets the preset accuracy threshold and the number of selected PMU nodes meets the preset minimum node number threshold, the selected PMU nodes are extracted from multiple PMU nodes to obtain a key node set.
4. The method according to claim 2, characterized in that: Also includes: According to the maximum power angle difference Δδ of the generator max Determine the label of each feature data, where the determination formula is as follows: Where TSI is a parameter used to determine whether the power angle of the simulated power system is stable, y Label is the label of the feature data.
5. A multi-agent transient stability judgment system for power systems with a small number of PMU sampling, characterized in that: include: A sample data set acquisition module is used to acquire a sample data set, wherein the sample data in the sample data set are characteristic data collected by multiple PMU nodes in a simulated power system, and each sample data has a label representing whether the power system can maintain transient stability; A key node set determination module, used for training the pre-AI network based on the sample data set, and extracting a key node set from a plurality of PMU nodes according to the training result, wherein the key nodes in the key node set are a predetermined number of PMU nodes selected from the plurality of PMU nodes; as well as A transient stability discrimination network determination module is used to train an artificial intelligence network based on characteristic data corresponding to each key node in the key node set to obtain a transient stability discrimination network; The transient stability judgment module is used to obtain the electrical quantity data collected by the PMU nodes in the actual power system that are consistent with the installation positions of each key node in the key node set, and input the collected electrical quantity data into the transient stability judgment network to output the transient stability judgment result of the actual power system; The transient stability discrimination network determination module is specifically used for: After the electrical quantities corresponding to each key node in the key node set are input, the artificial intelligence network is pre-trained and the accuracy of the pre-training is calculated; When the accuracy of the post-AI network is not greater than the accuracy threshold, a PMU node is selected from the plurality of PMU nodes and added to the key node set to obtain a new key node set, wherein the selected PMU node belongs to other PMU nodes outside the key node set; After the electrical quantities corresponding to each key node in the new key node set are input, the artificial intelligence network is pre-trained until the accuracy of the pre-training is greater than the accuracy threshold, and the training is stopped to obtain a transient stability discrimination network; The former artificial intelligence network is a time-delay neural network and output feedback is omitted, and the calculation formula of the former artificial intelligence network is as follows: In the formula, y pre is the output of the previous artificial intelligence network, y t is the output of the time-delay neural network at time t, is a time series, x is a vector, and the superscript i is the number of the PMU node in the power system; The post-AI network is composed of a bidirectional recurrent neural network and a BiLSTM layer, and the obtained transient stability discrimination network includes an input layer, a BiLSTM layer, a Dropout layer, a fully connected layer, a Softmax layer, and a Classification layer.
6. The system according to claim 5, characterized in that The sample data set acquisition module is specifically used for: The initial sample data with time domain information collected by multiple PMU nodes in the power system is obtained by simulation; Select the voltage item of the PMU node from the initial sample data as the characteristic data; as well as According to the maximum power angle difference Δδ of the generator during the simulation process max , generate labels corresponding to each characteristic data to characterize whether the simulated power system can maintain transient stability.
7. The system according to claim 5, characterized in that The key node set determination module is specifically used for: Select any one PMU node from the plurality of PMU nodes, and train a pre-AI network based on feature data corresponding to the selected PMU node in the sample data set; Determining whether the accuracy of the previous artificial intelligence network meets a preset accuracy threshold according to the training result of the previous artificial intelligence network; Determine whether the number of selected PMU nodes meets a preset minimum node number threshold; When the accuracy of the artificial intelligence network before judgment meets the preset accuracy threshold and the number of selected PMU nodes meets the preset minimum node number threshold, the selected PMU nodes are extracted from multiple PMU nodes to obtain a key node set.
8. The system according to claim 6, characterized in that It also includes a tag determination module, which is specifically used to: max Determine the label of each feature data, where the determination formula is as follows: Where TSI is a parameter used to determine whether the power angle of the simulated power system is stable, y Label is the label of the feature data.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the method according to any one of claims 1 to 4.
10. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method described in any one of claims 1 to 4.
