Power system dominant instability mode recognition method and system based on transfer learning
Through the deep neural network model based on transfer learning, feature extraction and loss calculation are optimized to solve the adaptability and robustness problems of dominant instability mode recognition in power systems, and achieve accurate identification and adaptability improvement under unknown working conditions. .
Patent Information
- Application Number
- CN202111663449.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-12-31
AI Technical Summary
Existing methods for identifying dominant instability modes based on physical mechanisms have poor adaptability and complex calculations in power systems. Deep learning models have poor robustness when facing unknown operating conditions, which affects the accuracy of simulation data analysis.
Using a method based on transfer learning, through a preset deep neural network model, the state data of the source domain and the target domain are used for feature extraction and loss calculation, optimizing the model to adapt to new working conditions, reducing sample labeling costs, and improving adaptability.
The adaptive ability of the deep neural network model is realized, which can accurately identify the dominant instability mode of the power system under unknown working conditions, reduce the cost of sample labeling, and adapt to the actual power grid environment.
Smart Images

Figure CN114330571B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of power system stability judgment, and more specifically, relates to a method and system for identifying dominant instability patterns of a power system based on transfer learning. Background Art
[0002] The operational stability of the power system is closely related to the sustainable development of the social economy. In order to ensure that the power system operates in a safe and stable state, power companies need to conduct large-scale digital simulation work every year. Digital simulation provides strong guidance for the operation mode of the power system and the formulation of stabilization measures, which is of great significance in practical engineering.
[0003] Power grid simulation can be divided into two parts: simulation calculation and simulation data analysis, with the former providing data support for the latter. In the process of simulation calculation, a large amount of high-dimensional, sparse and complex simulation data will be generated. At present, most simulation data methods are still implemented manually, relying heavily on expert experience and consuming a lot of manpower and energy. In simulation data analysis, the power system will become unstable after a fault, and transient power angle instability and transient voltage instability will appear intertwined. However, existing research and engineering practice have shown that system instability must be dominated by an instability mode, and different instability modes correspond to different control strategies. At present, the dominant instability mode discrimination method based on physical mechanism has problems such as weak adaptability and complex calculation, and it is difficult to adapt to large-scale simulation data analysis process. Artificial intelligence methods have the advantages of fast discrimination and strong adaptability, and can play a great role in simulation data analysis.
[0004] Traditional machine learning methods require experts to manually extract features, which is heavily dependent on expert experience and has a certain degree of subjectivity, making it difficult to ensure the applicability of the model. The deep learning method that has emerged in recent years has a strong feature extraction capability and can achieve end-to-end learning from raw data to targets, without relying on experts to perform tedious feature extraction engineering, thereby greatly improving the adaptability of machine learning models. However, deep learning models often have poor robustness, especially when the distribution of samples in the application process is very different from that of samples used in training, the results will have a large deviation, which will affect the accuracy of the dominant instability mode recognition in simulation data analysis. Generally speaking, when applying a deep learning trained model to identify the dominant instability mode, it is likely that the sample conditions that need to be judged to be unstable do not exist during training, such as power flow transfer, fault duration, fault location, and grid topology changes; in these cases, the effect of the deep learning model will be greatly affected. Summary of the invention
[0005] In view of the defects and improvement needs of the prior art, the present invention provides a method and system for identifying the dominant instability pattern of an electric power system based on transfer learning, which aims to enable the deep neural network model to have the ability to adapt to unknown operating conditions in the electric power system.
[0006] To achieve the above-mentioned purpose, according to one aspect of the present invention, a method for identifying the dominant instability mode of a power system based on transfer learning is provided, comprising: S1, simulating and acquiring the state data of the power system under different working conditions, and acquiring the corresponding manual annotation results to form a source domain, and using the source domain to train a preset deep neural network model, the deep neural network model comprising a feature extraction network and a fully connected classification network connected in sequence; S2, when using the deep neural network model to identify the dominant instability mode of the power system, if a new working condition occurs, simulating and acquiring the state data of the power system under the new working condition to form a target domain; S3, inputting the state data in the target domain and the source domain into the deep neural network model respectively, and outputting the corresponding feature data after feature extraction through the feature extraction network; S4, calculating the distribution difference loss between the source domain and the target domain based on the local maximum average difference between the feature data, calculating the cross entropy classification loss of the deep neural network model using the source domain, and performing weighted summation of the distribution difference loss and the cross entropy classification loss to obtain the final loss; S5, optimizing the deep neural network model according to the final loss, and using the optimized deep neural network model to identify the dominant instability mode of the power system.
[0007] Furthermore, S4 also includes: respectively calculating the maximum average difference between the feature data of the source domain and the feature data of the target domain corresponding to the same category, and weighting the maximum average difference corresponding to each category according to the proportion of each category in all categories to obtain the local maximum average difference, and the category is the type of the dominant instability mode of the power system.
[0008] Furthermore, the local maximum average difference is:
[0009]
[0010] in, is the local maximum average difference, C is the number of categories of the dominant instability mode, is the source domain, is the target domain, X i is the i-th state data in the source domain, X j is the jth state data in the target domain, For X i The corresponding feature data, For X j The corresponding feature data, is the proportion of samples of the cth category in the source domain among samples of all categories in the source domain, is the proportion of samples of the cth category in the target domain among all samples of the target domain, Φ(·) is the mapping function, is the two-norm of the RKHS space.
[0011] Furthermore, the final loss is:
[0012]
[0013] in, is the final loss, n s is the number of samples in the source domain, J(·) is the cross entropy classification loss function, For X i The corresponding feature data, X i is the i-th state data in the source domain, f(·) is the output of the deep neural network model, For X i The corresponding manual annotation results, α is the weight coefficient, is the local maximum average difference.
[0014] Furthermore, the feature extraction network and the fully connected classification network are both multi-layer networks, and the optimization of the deep neural network model in S5 includes: freezing the other layers except the last layer in the feature extraction network, optimizing the last layer of the feature extraction network and all layers of the fully connected classification network.
[0015] Furthermore, in the deep neural network model, the last layer of the neural network uses the softmax function as the activation function, and the other layers of the neural network use the ReLU function as the activation function.
[0016] Furthermore, the state data includes bus voltage and phase angle, and S1 includes: simulating to obtain the bus voltage and phase angle of the power system under different operating conditions, and generating corresponding bus voltage matrix and phase angle matrix; using z-score standardization method to normalize the bus voltage matrix and phase angle matrix respectively, and generating corresponding manual annotation results based on the normalized results; using the bus voltage and phase angle as input and the manual annotation results as labels to train the deep neural network model.
[0017] According to another aspect of the present invention, a system for identifying dominant instability patterns of power systems based on transfer learning is provided, comprising: a source domain acquisition module, used to simulate and acquire state data of the power system under different working conditions, and to acquire corresponding manual annotation results to form a source domain; a pre-training module, used to train a preset deep neural network model using the source domain, wherein the deep neural network model comprises a feature extraction network and a fully connected classification network connected in sequence; a target domain acquisition module, used to simulate and acquire the state data of the power system under the new working condition to form a target domain when using the deep neural network model to identify the dominant instability patterns of the power system; a feature extraction module, used to The state data in the target domain and the source domain are respectively input into the deep neural network model, and the corresponding feature data is output after feature extraction through the feature extraction network; a final loss calculation module is used to calculate the distribution difference loss between the source domain and the target domain based on the local maximum average difference between the feature data, and the cross entropy classification loss of the deep neural network model is calculated using the source domain, and the distribution difference loss and the cross entropy classification loss are weightedly summed to obtain the final loss; an optimization and identification module is used to optimize the deep neural network model according to the final loss, and use the optimized deep neural network model to identify the dominant instability mode of the power system.
[0018] According to another aspect of the present invention, there is provided an electronic device, comprising: a processor; and a memory storing a computer executable program, wherein when the program is executed by the processor, the processor executes the method for identifying the dominant instability pattern of a power system based on transfer learning as described above.
[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method for identifying the dominant instability mode of a power system based on transfer learning as described above is implemented.
[0020] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects: the method for identifying the dominant instability pattern of a power system based on transfer learning proposed in the present invention can optimize the pre-trained deep neural network model through transfer learning, so that the migrated model has the ability to adapt to new working conditions. This method is an unsupervised method, and no labeling of new working condition samples is required during the transfer learning process. In addition, this method is simple to train and can be widely adapted to various deep learning networks. Test results show that this method can greatly reduce the labeling cost of samples and has the ability to adapt to actual power grids. In addition, a distribution difference calculation method that considers the maximum average difference of different categories is proposed to further improve the effect of transfer learning. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A flow chart of a method for identifying dominant instability patterns of a power system based on transfer learning provided by an embodiment of the present invention;
[0022] Figure 2 A wiring diagram of a test power system provided as an example study in an embodiment of the present invention;
[0023] Figure 3 A structural diagram of a deep neural network model preferably used in an embodiment of the present invention, and the processing of the model during the migration process;
[0024] Figure 4 A training curve diagram for verifying the effectiveness of the proposed method provided by the embodiment of the present invention;
[0025] Figure 5 A block diagram of a power system dominant instability mode recognition system based on transfer learning provided by an embodiment of the present invention;
[0026] Figure 6 A block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0028] In the present invention, the terms "first", "second", etc. (if any) in the present invention and the accompanying drawings are used to distinguish similar objects but not necessarily to describe a specific order or sequence.
[0029] Phase instability is manifested as the phenomenon that the synchronous generator no longer maintains synchronous operation after the power system is disturbed. From the perspective of system energy, phase instability is caused by the fact that after the system fails and becomes unstable, the excess acceleration unbalanced energy cannot be absorbed by the system potential energy. Therefore, in the case where phase instability is dominant, the control measure of cutting the generator is usually adopted to restore the system to stable operation. From the perspective of physical mechanism, voltage instability is mainly due to the load's excessive current requirement for the system, which eventually exceeds the maximum current that the equivalent current source can provide, reflecting the lack of dynamic reactive power support in the system. Therefore, the control measure taken for voltage instability is usually to cut the load. If phase instability is misjudged as voltage instability, it will cause the control measures to malfunction and aggravate the fault.
[0030] In order to quickly and accurately determine the dominant instability mode of the system after a fault, the present invention introduces a machine learning method. Specifically, a deep graph attention network is used to learn the original input features, obtain an effective dimensionality reduction feature representation, and pass the learned features into the fully connected layer for classification. This machine learning method can construct a complex mapping relationship from raw data to the dominant instability mode. A well-trained model can quickly and accurately determine the dominant instability mode of the system, effectively distinguish between the two instability categories of voltage instability and phase angle instability, and provide a basis for the subsequent formulation of control decision tables in simulation data analysis.
[0031] It should be noted that the power system stability types can be divided into phase angle stability, voltage stability and frequency stability. Since the control measures for frequency instability are relatively independent, they are not considered together with the other two instability modes during the identification process. Specifically, phase angle stability can be further subdivided into large disturbance phase angle stability and small disturbance phase angle stability according to the size of the disturbance. Similarly, voltage instability can also be divided into small disturbance voltage stability (static voltage stability) and large disturbance voltage stability. Among them, there is no specific quantitative standard for the size of the disturbance. Generally speaking, large disturbances include short circuits, circuit breaks, etc., and small disturbances include: load changes, generator output changes, etc. Large and small disturbances need to be studied separately, and different methods are adopted. The embodiment of the present invention mainly studies the characteristics after a short circuit fault, that is, the problem of large disturbance stability.
[0032] At present, deep learning methods applied in the field of power system stability analysis usually face the problem of poor robustness, which is specifically manifested as follows: when applying a trained deep learning model for stability prediction and discrimination, if the samples that need to be predicted and discriminated are working conditions that were not considered during training, such as the topology of the scene to be analyzed has changed or the generator has been started and stopped, or a fault location that was not considered in the training set has appeared, etc., then the accuracy of the pre-trained deep learning model will often be greatly reduced when applied, thereby affecting the subsequent formulation of control measures. The embodiment of the present invention takes the above-mentioned problems into consideration and introduces a simple and easy-to-train transfer learning method. When unknown working conditions appear during the application process, transfer learning can be used to enable the pre-trained deep neural network model to achieve adaptation to the unknown working conditions to be applied.
[0033] In recent years, transfer learning methods based on deep learning have developed rapidly, mainly divided into methods based on adversarial training and methods based on evaluating distribution differences. The former has a complex model structure and a complex training process, but has better results when there are fewer samples; the latter has a simple structure and only needs to introduce a new sample distribution difference loss value on the structure of the original deep neural network, but requires more source domain and target domain samples. In the analysis of power grid simulation data, the generation of simulation samples is simple and efficient, but it is very difficult to label samples. Therefore, the embodiment of the present invention selects an unsupervised transfer learning method based on evaluating sample distribution differences. When performing transfer learning, there is no need to label target domain samples, which greatly reduces the difficulty of transfer learning applications.
[0034] In the embodiment of the present invention, first, it is necessary to build a deep neural network model, use the feature extraction network to characterize and learn the original data, and then use the fully connected layer to classify the features learned by the graph convolutional network. The model will cover all states after the power system fault, including stability, voltage instability and phase angle instability. Secondly, the benchmark sample set (i.e., the source domain) is rationally divided into a training set, a validation set, and a test set. The training set and the validation set are used to train the parameters in the deep neural network model, and the test set is used to verify the performance of the deep neural network model. This sample division method can effectively observe the generalization ability of the model. In subsequent applications, if the working condition to be analyzed is already included in the training set, the original data can be directly input into the model to quickly determine the dominant instability mode; if it is a new working condition, then the domain adaptation of the pre-trained deep neural network model is achieved through transfer learning, so that the migrated deep neural network model can accurately analyze the working conditions in the benchmark test set and the new working conditions at the same time.
[0035] Figure 1 A flow chart of a method for identifying dominant instability patterns of a power system based on transfer learning provided by an embodiment of the present invention. Figure 1 , combined with Figure 2-Figure 4 , the method for identifying the dominant instability mode of the power system based on transfer learning in this embodiment is described in detail, and the method includes operations S1-S4.
[0036] Operation S1, simulates and obtains state data of the power system under different working conditions, and obtains corresponding manual annotation results to form a source domain, and uses the source domain to train a preset deep neural network model, which includes a feature extraction network and a fully connected classification network connected in sequence.
[0037] According to an embodiment of the present invention, the state data includes bus voltage and phase angle, and operation S1 includes sub-operations S11 to S13.
[0038] In sub-operation S11, bus voltage and phase angle of the power system under different operating conditions are obtained by simulation, and corresponding bus voltage matrix and phase angle matrix are generated.
[0039] Different operating conditions include different power flow operating conditions, fault lines, fault locations, fault durations, and load induction motor ratios. Different operating conditions are constructed, and the bus voltage and phase angle within a certain observation time window are obtained in batch simulation and used as input features.
[0040] Preferably, in sub-operation S11, multiple groups of original measurement data under different power flow operating conditions, fault lines, fault locations, fault durations and load motor ratios are obtained; the bus voltage amplitude and phase angle every 0.01s in each group of original measurement data in its corresponding observation window are extracted to form a corresponding matrix.
[0041] Since phase instability and voltage instability may interweave after a fault, if the observation window is short, the network cannot obtain enough information for feature extraction. Therefore, the observation window should be relatively long, and 1 to 2 seconds is more appropriate. Based on the data in the observation window, the long-term stability after the fault (for example, 20 seconds after the fault) is predicted. By training the mapping relationship of the neural network, the data in the observation window can be used to predict the stability or instability of the subsequent time period.
[0042] The generated bus voltage matrix and phase angle matrix are as follows:
[0043]
[0044] Among them, U i,j and α i,j (i=1, 2, ..., N; j=1, 2, ..., T) are the bus voltage and phase angle of the i-th node at the j-th sampling time, T is the number of sampling points corresponding to the observation window length, and N is the number of buses in the power system. The bus voltage matrix and phase angle matrix are stacked to obtain a size of The three-dimensional input features.
[0045] In sub-operation S12, the bus voltage matrix and the phase angle matrix are normalized respectively using the z-score normalization method, and corresponding manual annotation results are generated based on the normalized results.
[0046] The input feature matrix is z-score standardized to cancel the dimension. Specifically, for example, a small number of samples are randomly selected based on the normalized bus voltage and phase angle to draw the corresponding voltage amplitude curve and phase angle curve. The dominant instability mode of the system is mainly observed by the curves fitted by the bus voltage matrix and the phase angle matrix, and the corresponding dominant instability mode is identified as a label by assisting expert experience.
[0047] In sub-operation S13, the bus voltage and phase angle are used as inputs and the manual annotation results are used as labels to train the deep neural network model.
[0048] Preferably, a cross entropy loss function is used to calculate the loss during the deep neural network model training process, and the model hyperparameters are evaluated through the validation set effect. After the training is completed, a pre-trained model can be obtained.
[0049] The deep neural network model includes a feature extraction network for feature extraction and a fully connected classification network for classification. The fully connected classification network outputs the final predicted dominant instability mode. Figure 3 Preferably, in the deep neural network model, the feature extraction network is a three-layer dual-channel graph neural network (GNN), and the fully connected classification network is a two-layer fully connected layer. In the deep neural network model, the last layer of the neural network uses the softmax function as the activation function, and the other layers of the neural network use the ReLU function as the activation function.
[0050] Operation S2, when using the deep neural network model to identify the dominant instability mode of the power system, if a new operating condition occurs, the state data of the power system under the new operating condition is obtained by simulation to form a target domain.
[0051] In operation S3, the state data in the target domain and the source domain are respectively input into the deep neural network model, and the corresponding feature data is output after feature extraction through the feature extraction network.
[0052] Operation S4, calculating the distribution difference loss between the source domain and the target domain based on the local maximum average difference between the feature data, calculating the cross entropy classification loss of the deep neural network model using the source domain, and performing weighted summation of the distribution difference loss and the cross entropy classification loss to obtain the final loss.
[0053] According to an embodiment of the present invention, operation S4 also includes: respectively calculating the maximum average difference between the feature data of the source domain and the feature data of the target domain corresponding to the same category, and weighting the maximum average difference corresponding to each category according to the proportion of each category in all categories to obtain the local maximum average difference, and the category is the type of the dominant instability mode of the power system.
[0054] Specifically, the distribution of the two sample sets in the source domain and the target domain is mapped to points in the Reproducing Kernel Hilbert Space (RKHS) using the Gaussian kernel function. The distance between the two points reflects the difference in the distribution of the two sample sets, and the size of the distance is called the maximum average difference. Due to the large differences between different categories in the samples, the local maximum average difference of the differences between different categories is further considered in this embodiment, that is, the maximum average difference of the same category in the two sample sets is calculated separately, and then the final local maximum average difference is obtained by weighting according to the proportion of different categories.
[0055] According to an embodiment of the present invention, the local maximum average difference is obtained as follows:
[0056]
[0057] in, is the local maximum average difference, C is the number of categories of the dominant instability mode, is the source domain, is the target domain, X i is the i-th state data in the source domain, X j is the jth state data in the target domain, For X i The corresponding feature data, For X j The corresponding feature data, is the proportion of samples of the cth category in the source domain among samples of all categories in the source domain, is the proportion of samples of the cth category in the target domain among all samples of the target domain, Φ(·) is the mapping function, is the two-norm of the RKHS space.
[0058] and are the weighted coefficients of the target domain and the source domain respectively. For the source domain, its label is fixed, and the proportion of each category is used as the weight:
[0059]
[0060] For the target domain, there is no label, so the pre-training sample is used to predict the pseudo label of the target domain sample calculate.
[0061] According to an embodiment of the present invention, the final loss obtained after weighted summation is:
[0062]
[0063] in, is the final loss, n sis the number of samples in the source domain, J(·) is the cross entropy classification loss function, For X i The corresponding feature data, X i is the i-th state data in the source domain, f(·) is the output of the deep neural network model, For X i The corresponding manual annotation results, α is the weight coefficient, is the local maximum average difference.
[0064] Operation S5, optimizing the deep neural network model according to the final loss, and using the optimized deep neural network model to identify the dominant instability mode of the power system.
[0065] According to an embodiment of the present invention, the feature extraction network and the fully connected classification network are both multi-layer networks, and the optimization of the deep neural network model in operation S5 includes: freezing the other layers except the last layer in the feature extraction network, optimizing the last layer of the feature extraction network and all layers of the fully connected classification network.
[0066] by Figure 3 Taking the deep neural network model shown in as an example, the parameters of the first two layers of dual-channel graph neural network in the feature extraction network are frozen, that is, the parameters of the first two layers of GNN remain unchanged during the transfer learning process (always the parameters obtained during pre-training), and only the last layer of dual-channel graph neural network and two fully connected layers are optimized. Specifically, the parameters of the third layer of GNN and the parameters of the first layer of fully connected layer are fine-tuned based on the pre-trained model, but the learning rate is 1 / 10 of the preset learning rate. The last layer of fully connected layer is a brand new structure, and the parameters are updated at the preset learning rate.
[0067] In the embodiment of the present invention, the Figure 3 The deep neural network model shown in the figure is used to identify the 8-machine 36-node system of China Electric Power Research Institute as an example to illustrate its method. The system wiring diagram is shown in Figure 2As shown. In order to simulate the working conditions that may be encountered in actual operation as much as possible, the initial operating conditions that are changed during the sample generation process include the system operating flow level and the proportion of generators in the load; the faults are all set to three-phase short-circuit faults. Only one short-circuit fault occurs during each sample generation process. The fault traverses all AC lines. The adjustable fault conditions are the fault duration and the fault location. The specific settings in the sample generation process are shown in Table 1, and a total of 7800 samples are generated. The simulation time is set to 20s, and Matlab is used to fit the discrete sampling points obtained by PSASP into a curve to assist in observation and mark the samples. Among them, there are 2553 stable samples (32.73%), 1863 phase angle instability (23.88%), and 3384 voltage instability (43.38%). After fully considering the judgment accuracy and response speed, the model determines that the observation period required for the input sample is 1.0s and the sampling period is 0.01s. Therefore, the number of sampling points for each node of a single sample is T=1.0 / 0.01=100, and the feature set size of each sample is
[0068] Table 1
[0069] Specific settings Number of types Test system CEPRI 8-machine 36-node system 1 Trend Level 90%,100%,110% 3 Load motor ratio 50%,60%,70%,80%,90% 5 Fault line All AC lines 26 Fault location 2%,20%,50%,80%,98% 5 Fault duration 0.05s,0.15s,0.25s,0.3s 4 Fault type Three-phase metallic short circuit 1
[0070] First, in order to illustrate the advantages of GNN in solving complex classification problems such as dominant instability pattern recognition, this embodiment first compares multiple machine learning methods with the GNN network used in this embodiment for supervised learning. The selected machine learning methods are: convolutional neural network (CNN), support vector machine (SVM), decision tree (DT), K-nearest neighbor (KNN) and random forest (RF). The accuracy comparison results of different machine learning methods are shown in Table 2. The test results show that the CNN network based on deep learning has the best judgment accuracy.
[0071] Table 2
[0072] method GNN CNN SVM DT KNN RF Accuracy (%) 96.7% 96.2% 94.4% 93.1% 93.6% 95.8%
[0073] Furthermore, the method in the embodiment of the present invention is used to implement the adaptation of the pre-trained model when the power flow level, power grid topology, fault duration and fault location are not present in the benchmark data set. For the data set of 7800 samples generated in Table 1, the ability of the model to adapt to the change of power flow level is tested: any two samples under power flow conditions are selected as the benchmark sample set (5200) and a pre-trained model is obtained therefrom, and the remaining samples under one power flow condition (2600) are used as the sample set to be applied. The test results are shown in Table 3.
[0074] Table 3
[0075]
[0076] Similarly, based on the samples generated in Table 1, the ability of the model to adapt to fault duration is tested: samples with any three fault durations are selected as the benchmark sample set and a pre-trained model is obtained based on this, and the sample with the remaining one fault duration is used as the sample set to be applied. The test results are shown in Table 4.
[0077] Table 4
[0078]
[0079] According to the samples generated in Table 1, the ability of the model to adapt to the fault location is tested: samples at any three fault locations are selected as the benchmark sample set and a pre-trained model is obtained based on this, and the samples at the remaining one fault location are used as the sample set to be applied. The test results are shown in Table 5.
[0080] Table 5
[0081]
[0082] In order to verify the ability of the model to adapt to changes in power grid topology, 4206 new samples under N-1 topology (one line is disconnected under the baseline topology) are additionally generated as the sample set to be applied. The samples generated in Table 1 are still used as the baseline sample set. The test results are shown in Table 4. At the same time, in order to illustrate the effectiveness of the transfer learning method proposed in the present invention, the validation set loss of the source domain samples during the pre-training process and the distribution difference loss between the source domain and the target domain during the migration process and the changes in the validation set loss are plotted, as shown in Table 6.
[0083] Table 6
[0084]
[0085] Figure 5 A block diagram of a power system dominant instability mode recognition system based on transfer learning provided by an embodiment of the present invention. Figure 5The power system dominant instability pattern recognition system 500 based on transfer learning includes a source domain acquisition module 510, a pre-training module 520, a target domain acquisition module 530, a feature extraction module 540, a final loss calculation module 550 and an optimization and recognition module 560.
[0086] The source domain acquisition module 510 is used to simulate and acquire the state data of the power system under different working conditions, and to acquire the corresponding manual annotation results to form a source domain.
[0087] The pre-training module 520 is used to train a preset deep neural network model using a source domain. The deep neural network model includes a feature extraction network and a fully connected classification network connected in sequence.
[0088] The target domain acquisition module 530 is used to use a deep neural network model to identify the dominant instability mode of the power system. If a new operating condition occurs, the state data of the power system under the new operating condition is simulated to form a target domain.
[0089] The feature extraction module 540 is used to input the state data in the target domain and the source domain into the deep neural network model respectively, and output the corresponding feature data after performing feature extraction through the feature extraction network.
[0090] The final loss calculation module 550 is used to calculate the distribution difference loss between the source domain and the target domain based on the local maximum average difference between the feature data, use the source domain to calculate the cross entropy classification loss of the deep neural network model, and perform weighted summation of the distribution difference loss and the cross entropy classification loss to obtain the final loss.
[0091] The optimization and identification module 560 is used to optimize the deep neural network model according to the final loss, and use the optimized deep neural network model to identify the dominant instability mode of the power system.
[0092] The power system dominant instability mode recognition system 500 based on transfer learning is used to perform the above Figure 1-Figure 4 The power system dominant instability mode recognition method based on transfer learning in the illustrated embodiment. For details not covered in this embodiment, please refer to the aforementioned Figure 1-Figure 4 The method for identifying the dominant instability pattern of a power system based on transfer learning in the illustrated embodiment will not be described in detail here.
[0093] The embodiment of the present disclosure also shows an electronic device, such as Figure 6 As shown, the electronic device 600 includes a processor 610 and a readable storage medium 620. The electronic device 600 can execute the above Figure 1-Figure 4 A method for identifying dominant instability patterns of a power system based on transfer learning in the illustrated embodiment.
[0094] Specifically, the processor 610 may include, for example, a general-purpose microprocessor, an instruction set processor and / or a related chipset and / or a dedicated microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 610 may also include an onboard memory for cache purposes. The processor 610 may be a processor for executing reference Figure 1-Figure 4 The described method flow according to the embodiment of the present disclosure may be a single processing unit or multiple processing units for different actions.
[0095] The readable storage medium 620, for example, can be any medium capable of containing, storing, conveying, propagating or transmitting instructions. For example, the readable storage medium can include, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device, device or propagation medium. Specific examples of readable storage media include: a magnetic storage device, such as a magnetic tape or a hard disk (HDD); an optical storage device, such as a compact disk (CD-ROM); a memory, such as a random access memory (RAM) or flash memory; and / or a wired / wireless communication link.
[0096] The readable storage medium 620 may include a computer program 621, which may include code / computer executable instructions, which when executed by the processor 610 causes the processor 610 to perform, for example, the above-mentioned combination Figure 1-Figure 4 The described method sequences and any variations thereof.
[0097] The computer program 621 may be configured to have, for example, computer program codes including computer program modules. For example, in an exemplary embodiment, the codes in the computer program 621 may include one or more program modules, for example, including 621A, module 621B, ... It should be noted that the division method and number of modules are not fixed, and those skilled in the art may use appropriate program modules or program module combinations according to actual conditions. When these program module combinations are executed by the processor 610, the processor 610 may execute, for example, the above combination of Figure 1-Figure 4 The described method sequences and any variations thereof.
[0098] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for identifying dominant instability patterns of power systems based on transfer learning, characterized in that: include: S1, simulating and acquiring state data of the power system under different operating conditions, and acquiring corresponding manual annotation results to form a source domain, and using the source domain to train a preset deep neural network model, wherein the deep neural network model includes a feature extraction network and a fully connected classification network connected in sequence; S2, when using the deep neural network model to identify the dominant instability mode of the power system, if a new operating condition occurs, simulate and obtain state data of the power system under the new operating condition to form a target domain; S3, inputting the state data in the target domain and the source domain into the deep neural network model respectively, performing feature extraction through the feature extraction network and outputting corresponding feature data; S4, calculating a distribution difference loss between the source domain and the target domain based on the local maximum average difference between the feature data, calculating a cross entropy classification loss of the deep neural network model using the source domain, and performing a weighted summation of the distribution difference loss and the cross entropy classification loss to obtain a final loss; S5. Optimize the deep neural network model according to the final loss, and use the optimized deep neural network model to identify the dominant instability mode of the power system.
2. The method for identifying dominant instability patterns of power systems based on transfer learning according to claim 1, characterized in that: The S4 also includes: respectively calculating the maximum average difference between the characteristic data of the source domain and the characteristic data of the target domain corresponding to the same category, and weighting the maximum average difference corresponding to each category according to the proportion of each category in all categories to obtain the local maximum average difference, and the category is the type of the dominant instability mode of the power system.
3. The method for identifying dominant instability patterns of power systems based on transfer learning according to claim 2, characterized in that: The local maximum average difference is: in, is the local maximum average difference, C is the number of categories of the dominant instability mode, is the source domain, is the target domain, X i is the i-th state data in the source domain, X j is the jth state data in the target domain, For X i The corresponding feature data, For X j The corresponding feature data, is the proportion of samples of the cth category in the source domain among all categories of samples in the source domain, is the proportion of samples of the cth category in the target domain among all categories of samples in the target domain, Φ(·) is the mapping function, is the two-norm of the RKHS space.
4. The method for identifying dominant instability patterns of a power system based on transfer learning according to any one of claims 1 to 3, characterized in that: The final loss is: in, is the final loss, n s is the number of samples in the source domain, J(·) is the cross entropy classification loss function, For X i The corresponding feature data, X i is the i-th state data in the source domain, f(·) is the output of the deep neural network model, For X i The corresponding manual annotation results, α is the weight coefficient, is the local maximum average difference.
5. The method for identifying dominant instability patterns of power systems based on transfer learning according to claim 1, characterized in that: The feature extraction network and the fully connected classification network are both multi-layer networks. The optimization of the deep neural network model in S5 includes: freezing the other layers except the last layer in the feature extraction network, optimizing the last layer of the feature extraction network and all layers of the fully connected classification network.
6. The method for identifying dominant instability patterns of power systems based on transfer learning according to claim 1 or 5, characterized in that: In the deep neural network model, the last layer of the neural network uses the softmax function as the activation function, and the other layers of the neural network use the ReLU function as the activation function.
7. The method for identifying dominant instability patterns of power systems based on transfer learning according to claim 1, characterized in that: The state data includes bus voltage and phase angle, and S1 includes: The simulation obtains the bus voltage and phase angle of the power system under different working conditions, and generates the corresponding bus voltage matrix and phase angle matrix; The bus voltage matrix and the phase angle matrix are normalized respectively using a z-score normalization method, and corresponding manual annotation results are generated based on the normalized results; The deep neural network model is trained using the bus voltage and phase angle as input and the manual labeling results as labels.
8. A power system dominant instability pattern recognition system based on transfer learning, characterized by: include: The source domain acquisition module is used to simulate and obtain the state data of the power system under different working conditions, and obtain the corresponding manual annotation results to form the source domain; A pre-training module, configured to train a preset deep neural network model using the source domain, wherein the deep neural network model includes a feature extraction network and a fully connected classification network connected in sequence; a target domain acquisition module, configured to simulate and acquire state data of the power system under a new operating condition to form a target domain when using the deep neural network model to identify the dominant instability mode of the power system; A feature extraction module is used to input the state data in the target domain and the source domain into the deep neural network model respectively, perform feature extraction through the feature extraction network, and output corresponding feature data; a final loss calculation module, configured to calculate a distribution difference loss between the source domain and the target domain based on the local maximum average difference between the feature data, calculate a cross entropy classification loss of the deep neural network model using the source domain, and perform a weighted summation of the distribution difference loss and the cross entropy classification loss to obtain a final loss; An optimization and identification module is used to optimize the deep neural network model according to the final loss, and use the optimized deep neural network model to identify the dominant instability mode of the power system.
9. An electronic device, characterized in that: include: processor; A memory storing a computer executable program, wherein when the program is executed by the processor, the processor executes the method for identifying the dominant instability pattern of a power system based on transfer learning according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for identifying dominant instability patterns of a power system based on transfer learning according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Transfer learning-oriented power system fault sample generation and model construction method
CN110943453A
Deep transfer learning intelligent fault diagnosis method and device, storage medium and equipment
CN111898095A
Dominant instability mode identification method and system for power system
WO2018006499A1
