A transferable method for identifying dominant instability modes of power systems

By combining deep neural networks and active learning in the power system, using source domain and target domain sample features, the need for target domain sample labeling is reduced, the migration efficiency and applicability of the model are improved, and the adaptation of the deep learning model in the power system is solved. Difficulties in new working conditions.

CN114330577BActive Publication Date: 2024-09-06HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111670251.7
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

Technical Problem

In the identification of dominant instability modes of power systems, deep learning models require a large number of target domain sample annotations, resulting in high manual annotation costs and poor adaptability to new operating conditions, which affects the migration efficiency of the model.

Method used

A deep neural network model based on source domain sample training is used, combined with multiple groups of transiently stable simulations to extract target domain sample features, and forward active learning is used to select the most uncertain sample labels, and reverse active learning is used to delete source domain samples that deviate from the distribution to form a hybrid sample set, and perform model fine-tuning through transfer learning to reduce the need for sample labeling in the target domain.

Benefits of technology

It improves the migration efficiency of the dominant instability pattern recognition model, reduces the need for sample labeling in the target domain, and improves the applicability of the model and the safe and stable operation of the power system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114330577B
    Figure CN114330577B
Patent Text Reader

Abstract

The present invention discloses a transferable method for distinguishing the dominant instability mode of an electric power system, and belongs to the field of stability analysis of electric power systems. The present invention proposes a method for enabling a dominant instability mode distinguishing model of an electric power system based on deep learning to quickly adapt to changes in the operation mode of the electric power system. At the sample level, a small number of the most uncertain samples are selected from the unlabeled samples in the target domain through forward active learning and handed over to experts for labeling. The source domain samples that deviate from the target domain distribution are deleted from the source domain sample set through reverse active learning, and the selected labeled target domain samples and the remaining source domain samples are combined into a mixed sample set. At the model level, a fine-tuned transfer learning method is used to train the source domain model based on the mixed sample set. In this way, the present invention can migrate the model to the target domain through fewer labeled samples in the target domain, improve the efficiency of the dominant instability mode distinguishing model in adapting to changes in the operation mode of the power grid, thereby improving the safety of the electric power system, and has strong applicability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of power system stability analysis, and more specifically, relates to a transferable method for distinguishing a dominant instability mode of a power system. Background Art

[0002] The safe and stable operation of the power system is crucial to energy security and economic and social development. Its safety and stability are the key issues for system planning, operation, and protection workers. Quickly and accurately judging the stability and instability of the power system and the dominant instability mode (voltage instability, power angle instability) after a large disturbance will buy time for emergency control measures and provide a basis for what measures to take, thereby effectively ensuring the safety and stability of the system.

[0003] Time domain simulation, energy function, bifurcation analysis, etc. are commonly used methods for dominant instability mode identification, but there are many difficulties when applied to actual large power grids. In recent years, some studies have applied deep learning to dominant instability mode identification. Deep learning methods can get rid of complex physical mechanisms, learn the mapping relationship between simulation data or measurement data and stability and dominant instability modes, and make judgments directly based on data. It has broad application prospects in the problem of dominant instability mode identification.

[0004] The deep learning method adopts a data-driven approach, and all knowledge is learned from data, so the data set is required to have good representation. However, in practice, the training data set cannot cover all possible operating conditions, that is, operating conditions that are not in the data set may appear in actual operation. In this case, the performance of the deep learning model will decline, affecting the accuracy of the dominant instability mode identification, and thus affecting the safe and stable operation of the power system.

[0005] The adaptation of deep learning models to new methods generally requires retraining based on labeled samples under the new method (target domain), or fine-tuning through transfer learning methods. However, the number of samples required is large, and the cost of manual labeling is high, which affects the efficiency of model adaptation. In addition, the labeling requirements for target domain samples are not targeted, and labeling some target domain samples may not be very helpful for model adaptation.

[0006] Therefore, how to reduce the demand for target domain sample annotation and achieve rapid migration of deep learning models for dominant instability mode discrimination is a technical problem that needs to be solved urgently. Summary of the invention

[0007] In view of the above defects or improvement needs of the prior art, the present invention provides a transferable method for identifying the dominant instability mode of a power system, which aims to reduce the demand for labeling of target domain samples and improve the migration efficiency of the dominant instability mode recognition model.

[0008] To achieve the above object, according to a first aspect of the present invention, a method for identifying a dominant instability mode of a power system that can be migrated is provided, comprising:

[0009] S1, train the first deep neural network model M based on the source domain sample set 0 ;

[0010] S2, perform multiple groups of transient stability simulations in the target domain scenario, and extract statistical features of voltage data and power angle data in the simulation results as the target domain sample set;

[0011] S3, based on M 0 Obtain the marginal probability of each unlabeled target domain sample, label the dominant instability mode category of the first N target domain samples with smaller marginal probability values, and obtain a first sample set; add the first sample set to the source domain sample set to obtain a mixed sample set, and 0 Train to obtain the second deep neural network model M t ;

[0012] S4, based on M t Obtain the marginal probability of each unlabeled target domain sample, label the dominant instability mode categories of the first N target domain samples with smaller marginal probability values, and obtain a second sample set;

[0013] S5, calculate M t and M 0 For the difference in the predicted probability values ​​of the source domain samples in the mixed sample set, the first M source domain samples with the largest difference are deleted; and the second sample set is added to the mixed sample set after the deletion operation;

[0014] S6, based on the mixed sample set after the deletion and addition operations, t Fine-tune parameters;

[0015] S7, repeat S4-S6 until M t The test accuracy on the target domain sample set reaches a preset target value or reaches a preset number of iterations.

[0016] Preferably, performing multiple groups of temporary stability simulations in the target domain scenario includes:

[0017] Under the new power flow condition, different fault lines, fault locations and fault durations are set to conduct multiple groups of temporary stability simulations.

[0018] Preferably, based on M 0 or M t Obtain the marginal probability of each unlabeled target domain sample, including:

[0019]

[0020] Among them, x i is the i-th unlabeled target domain sample, margin(x i ) is its marginal probability, and x i Input to M 0 or M t , where t is the number of iterations, M 0 or M t Calculated pair x i The probability value of the dominant instability mode category with the largest probability in the predicted probability distribution, is the probability value of the dominant instability mode category with the second largest probability in the probability distribution.

[0021] Preferably, the calculation M t and M 0 The difference between the predicted probability values ​​of each source domain sample includes:

[0022]

[0023] Among them, s i is the i-th sample in the source domain, dist_deviation(s i ) is the change in its predicted probability distribution, is the second deep neural network model M t For i The predicted probability distribution vector of is the first deep neural network model M 0 For i The predicted probability distribution vector of .

[0024] Preferably, the statistical features of the voltage data and the power angle data include: a mean value, a standard deviation, an envelope, and first-order and second-order change rates of the mean value, standard deviation and envelope.

[0025] Preferably, the dominant instability modes include three categories: stability, power angle instability and voltage instability.

[0026] Preferably, the second deep neural network model M is based on the mixed sample set. t Fine-tune parameters, including:

[0027] Based on the mixed sample set, the second deep neural network model M is fine-tuned using a transfer learning method. t Conduct training.

[0028] According to a second aspect of the present invention, there is provided a migratable power system dominant instability mode identification system, comprising: a computer-readable storage medium and a processor;

[0029] The computer-readable storage medium is used to store executable instructions;

[0030] The processor is used to read the executable instructions stored in the computer-readable storage medium and execute the method as described in the first aspect.

[0031] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:

[0032] 1. Aiming at the problem of adaptability of the dominant instability mode recognition model based on deep neural network to changes in the operation mode of the power system, the present invention proposes a transferable dominant instability mode discrimination method, which combines active learning and transfer learning, makes full use of source domain samples and source domain model information, and realizes rapid migration of the model through a small number of target domain labeled samples to improve the applicability of the model; at the same time, it reduces the demand for the labeling of target domain samples and improves the migration efficiency of the dominant instability mode recognition model.

[0033] 2. The transferable dominant instability mode discrimination method proposed in the present invention, at the sample level, actively selects the target domain samples with the most uncertainty in the model through forward active learning (query+) and submits them to experts for labeling, and actively deletes the source domain samples that deviate from the target domain sample distribution through reverse active learning (query-), and combines them into a mixed sample set. The mixed sample set introduces the most valuable new information in the target domain and retains the information contained in the samples in the source domain that are close to the target domain; at the model level, the source domain model is fine-tuned based on the mixed sample set through the most commonly used fine-tune method in transfer learning to achieve rapid update and migration of the model. In this way, the present invention reduces the demand for target domain sample labeling in the migration process of the dominant instability mode discrimination method based on deep learning through the combination of forward and reverse active learning and transfer learning. Compared with direct retraining, random selection of target domain samples, and no use of source domain samples, the effect is better, which can reduce the time cost of sample labeling, improve the efficiency of model migration, and ensure the safe and stable operation of the power system. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A schematic diagram of the migration process of the method for identifying the dominant instability mode of a power system based on active transfer learning provided by an embodiment of the present invention;

[0035] Figure 2 A flowchart of combining forward active learning (query+) and reverse active learning (query–) in active transfer learning provided by an embodiment of the present invention;

[0036] Figure 3 A neural network architecture diagram for distinguishing the dominant instability mode of a power system provided by an embodiment of the present invention;

[0037] Figure 4 The single line diagram of the 8-machine 36-node system of China Electric Power Research Institute provided in the embodiment of the present invention;

[0038] Figure 5 A comparison chart of the active transfer learning method provided by an embodiment of the present invention and other active learning and conventional passive learning effects;

[0039] Figure 6 A comparison diagram of the effects of the active migration method provided in an embodiment of the present invention and a single query (+) and a single query (–);

[0040] Figure 7 A diagram comparing the effects of the active migration method based on the combination of model and sample provided in an embodiment of the present invention, and active migration based on model and active migration based on sample. DETAILED DESCRIPTION

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

[0042] The embodiment of the present invention provides a method for determining the dominant instability mode of a power system that can be migrated, such as Figure 1-2 As shown, including:

[0043] S1, train the first deep neural network model M based on the source domain sample set 0 .

[0044] Specifically, the mapping relationship from simulation data to the dominant instability modes of the power system is mined through deep neural networks.

[0045] Preferably, the dominant instability modes include three categories: stability, power angle instability and voltage instability.

[0046] Among them, the first deep neural network model is the initial source domain deep neural network model.

[0047] Prepare a source domain sample set, and train an initial source domain deep neural network model based on the source domain sample set. The first deep neural network model is the initial source domain deep neural network model M 0 , is the deep neural network model that has been trained in the early stage and is currently in use (that is, the model currently used to identify the dominant instability mode of the power system), and the source domain samples are the samples used to train the source domain model.

[0048] Preferably, the initial source domain deep neural network model adopts a one-dimensional convolutional neural network model, such as Figure 3 When the operation mode of the power system changes, the performance of the source domain model will decline, affecting the correct identification of the dominant instability mode and even affecting the safe and stable operation of the system.

[0049] S2, perform multiple groups of transient stability simulations in the target domain scenario, and extract the statistical features of voltage data and power angle data in the simulation results as target domain samples.

[0050] It can be understood that the target domain samples are unlabeled target domain samples.

[0051] Preferably, performing multiple groups of temporary stability simulations in the target domain scenario includes:

[0052] Under the new power flow condition, different fault lines, fault locations and fault durations are set to conduct multiple groups of temporary stability simulations.

[0053] Specifically, according to the target domain scenario (i.e., changes in the operating conditions of the power system), multiple groups of transient stability simulations are performed, statistical features are extracted from the voltage data and power angle data of the simulation results, and unlabeled samples of the target domain are generated and placed in the unlabeled sample pool of the target domain.

[0054] That is, under the new power flow conditions, different fault lines, fault locations and fault durations are set to carry out multiple groups of temporary stability simulations, and the voltage data and power angle data in the discrete sampling simulation results are used to calculate the statistical characteristics, and an unlabeled (i.e., no corresponding judgment result of the power system instability mode) dominant instability mode judgment sample set is obtained, and the unlabeled samples are placed in the sample pool.

[0055] Preferably, the statistical features of the voltage data and the power angle data include: a mean value, a standard deviation, an envelope, and first-order and second-order change rates of the mean value, standard deviation and envelope.

[0056] That is, the input of the deep neural network model is the statistical features extracted from the power angle data and voltage data obtained from the power system simulation, including the mean value, standard deviation, envelope and its first and second order change rates, etc., with a total of 30 dimensions.

[0057] Furthermore, the statistical features are selected as shown in Table 1.

[0058] Table 1 Statistical characteristics of voltage and power angle curves

[0059]

[0060] S3, based on M 0Obtain the marginal probability of each target domain sample, and mark the dominant instability mode category of the first N target domain samples with smaller marginal probability values ​​to obtain a first sample set; add the first sample set to the source domain sample set to obtain a mixed sample set, and 0 Train to obtain the second deep neural network model M t .

[0061] That is, based on the first deep neural network model M 0 Obtain the marginal probability of the unlabeled samples of each target domain, and sort the unlabeled samples of each target domain from small to large according to the marginal probability value; label the dominant instability mode categories of the first N unlabeled samples of the target domain to obtain a first target domain sample set; add the first sample set to the source domain sample set to obtain a mixed sample set, and train the first source domain deep neural network model based on the mixed sample set to obtain a second deep neural network model M t .

[0062] Among them, the second deep neural network model is M t .

[0063] Specifically, the predicted probability values ​​of the target domain unlabeled samples in the sample pool are obtained according to the first deep neural network model, and the N target domain unlabeled samples that are most uncertain in the current model are selected from the target domain sample pool through forward active learning, and their dominant instability mode categories are labeled (for example: manual labeling).

[0064] Preferably, the uncertainty of the unlabeled samples in the target domain is measured by marginal probability, that is, obtaining the marginal probability of each unlabeled sample in the target domain based on the first deep neural network model includes:

[0065]

[0066] Among them, x i is the unlabeled sample of the i-th target domain, margin(x i ) is its marginal probability, and x i Input to the first deep neural network model M 0 , For model M 0 Calculated pair x i The probability value of the dominant instability mode category with the largest probability in the predicted probability distribution, is the probability value of the second most likely dominant instability mode category in the probability distribution. Forward active learning selects N samples with the smallest marginal probability (i.e., the most uncertain) from them. Giving the most uncertain samples of the model the correct label and making them participate in the model training is most helpful for model training and performance improvement.

[0067] S4, based on M t The marginal probability of each unlabeled target domain sample is obtained, and the dominant instability mode categories of the first N target domain samples with smaller marginal probability values ​​are labeled to obtain a second sample set.

[0068] That is, based on the second deep neural network model, the marginal probability of the unlabeled target domain samples is obtained, and the unlabeled samples of the target domain are sorted from small to large according to the marginal probability value; the dominant instability mode categories of the first N unlabeled target domain samples are labeled to obtain the second target domain sample set;

[0069] The obtaining the marginal probability of unlabeled samples in each target domain based on the second deep neural network model includes:

[0070]

[0071] Among them, x i is the i-th unlabeled target domain sample, margin(x i ) is its marginal probability, and x i Input to the second deep neural network model M t , where t is the number of iterations, is the second deep neural network model M t Calculated pair x i The probability value of the dominant instability mode category with the largest probability in the predicted probability distribution, is the probability value of the second most likely dominant instability mode category in the probability distribution. Forward active learning selects N samples with the smallest marginal probability (i.e., the most uncertain) from them. Giving the most uncertain samples of the model the correct label and making them participate in the model training is most helpful for model training and performance improvement.

[0072] That is, based on M 0 or M t Obtain the marginal probability of each target domain sample or each unlabeled target domain sample, including:

[0073]

[0074] Among them, x i is the i-th unlabeled target domain sample, margin(x i ) is its marginal probability, and x i Input to the first deep neural network model M 0 Or the second deep neural network model M t , where t is the number of iterations, M 0 or M t Calculated pair x iThe probability value of the dominant instability mode category with the largest probability in the predicted probability distribution, is the probability value of the dominant instability mode category with the second largest probability in the probability distribution.

[0075] S5, calculate M t and M 0 For the difference in the predicted probability values ​​of the source domain samples in the mixed sample set, the first M source domain samples with larger differences are deleted; and the second sample set is added to the mixed sample set after the deletion operation.

[0076] That is, calculate the difference between the predicted probability values ​​of each source domain sample in the mixed sample set by the second deep neural network model and the first deep neural network model, sort the source domain samples from large to small according to the difference, delete the first M source domain samples from the mixed sample set; and add the second target domain sample set to the mixed sample set.

[0077] Specifically, the current neural network model M is calculated respectively t and the initial source domain neural network model M 0 For the predicted probability distribution of source domain samples, the M samples with the largest change in predicted probability distribution are deleted from the source domain sample set through reverse active learning.

[0078] Preferably, the current model M t The predicted probability distribution of the source domain initial model is changed, that is, the difference between the predicted probability values ​​of the second deep neural network model and the first deep neural network model for each source domain sample is calculated, including:

[0079]

[0080] Among them, s i is the i-th sample in the source domain, dist_deviation(s i ) is the change in its predicted probability distribution, is the second deep neural network model M t For i The predicted probability distribution vector of is the first deep neural network model M 0 For i The predicted probability distribution vector of . Reverse active learning selects the source domain samples with the largest change in the model's predicted probability distribution and deletes them.

[0081] Source domain model M 0 All are learned based on the source domain sample distribution, and the current model M tIt also contains a lot of information about target domain samples (that is, target domain samples are added during the iteration process). If a source domain sample is closer to the target domain sample distribution, then M trained based on the source domain sample set including the source domain sample is 0 and M trained on a dataset containing samples from the target domain t The predicted probability value of it should be close; on the contrary, if a source domain sample deviates from the target domain sample distribution, then M t and M 0 The predicted values ​​of will be very different. At this time, deleting it from the training set will help the model adapt to the target domain more. Therefore, through reverse active learning, we select M source domain samples with the largest change in the model prediction probability distribution and delete them.

[0082] S6, based on the mixed sample set after the deletion and addition operations, the second deep neural network model M t Fine tune the parameters.

[0083] Preferably, fine-tuning parameters of the second deep neural network model based on the mixed sample set includes:

[0084] Based on the mixed sample set, the second deep neural network model is trained using a fine-tuning transfer learning method.

[0085] Specifically, the N second target domain samples selected by S4 are added to the mixed sample set remaining after deleting M samples in S5, and the current model M is optimized based on the mixed sample set after the deletion and addition operations. t Fine tune the parameters.

[0086] Based on the mixed sample set, the most commonly used transfer learning method, namely fine-tuning, is used to train the current model with a smaller learning rate. In other words, based on the mixed sample set, the model is trained using the fine-tuning transfer learning method.

[0087] S7, repeat S4-S6, or until the second deep neural network model M t When the test accuracy on the target domain sample set reaches a preset target value or reaches a preset number of iterations, the model can be used in the target domain.

[0088] It should be noted that in each iteration, the forward active learning adds the target domain samples with the most uncertainty in the model, and the reverse active learning removes the source domain samples with large differences from the target domain. The resulting mixed sample set introduces the most valuable new information in the target domain, and retains the information contained in the samples in the source domain that are close to the target domain. Compared with only the target domain samples and randomly selected target domain samples, it has more information. At the same time, the source domain model is fine-tuned through the transfer learning method, making full use of the information in the source domain model. The combination of active learning and transfer learning reduces the demand for labeled samples in the target domain, reduces the migration cost, and improves the migration efficiency. Therefore, when the operating conditions of the power system change, the model can be quickly adapted to the new conditions through the above active transfer learning steps.

[0089] The method provided by the present invention is further illustrated by taking a specific example as follows.

[0090] The above method is specifically explained using the 8-machine 36-node test system of China Electric Power Research Institute as an example. The system single-line diagram is as follows: Figure 4 As shown. A transient stability simulation is performed on the PSASP software to simulate the voltage data collected by the PMU and WAMS systems. The operating conditions before the fault include three load levels: 90%, 100%, and 110%. The generator output level is adjusted accordingly according to the load level, and the voltage of each bus is guaranteed to be within the allowable range. A three-phase metallic short-circuit fault is set on all 26 non-transformer lines. The short-circuit positions are 2%, 20%, 50%, 80%, and 98% of the line position, respectively. The faults last for 0.05s, 0.15s, 0.25s, or 0.3s, respectively. The simulation duration is set to 20s, and 7,800 samples are finally obtained as the source domain. After dividing the training and test sets, statistical features are extracted and the source domain model is trained.

[0091] In order to simulate the changes in the system operating conditions, each line is considered to be out of operation in turn, and a temporary stability simulation is performed under similar settings. A total of 4914 samples are generated as the target domain, and the training set and test set are randomly divided.

[0092] Preferably, N is set to 50 and M is set to 500, that is, 50 target domain samples are added and 500 source domain samples are deleted in each iteration. The fine-tuning learning rate is set to 1e -5 After each round of iterative fine-tuning, the model’s performance on the target domain test set was tested and recorded. To eliminate the contingency of training and testing, the process was repeated 5 times and the average test accuracy was taken.

[0093] In order to verify the effect of the method proposed in the present invention, multiple groups of comparative experiments were carried out to verify the effects of active learning and transfer learning respectively.

[0094] In the active learning part, in addition to selecting the sample with the smallest marginal probability, the effects of information entropy sampling and random sampling (passive learning) are tested under the same conditions. The results are as follows Figure 5 As shown in Figure 2. It can be seen that for the same number of target domain labeled samples, the samples selected by marginal probability active learning make the model learning effect better than information entropy sampling and randomly selected samples. On the other hand, to achieve a certain set accuracy, the number of labeled samples required for active learning is less than that of random control, which can reduce the cost of target domain sample labeling required in the migration of the dominant instability mode discrimination model.

[0095] Further comparison and verification of the effect of the combination of forward active learning (query+) and reverse active learning (query–). The effects of query+ combined with query– and query+ and query– alone were tested respectively. The results are as follows: Figure 6 As shown in Figure 2, it can be seen that the effect of introducing new samples in the target domain by combining the two and removing samples with large differences between the source domain and the target domain is better than using only samples in the target domain or only samples in the source domain.

[0096] Further comparisons were made to verify the effect of transfer learning. The tests were conducted separately: 1. Only target domain data was used, and active learning was started from scratch, which was unrelated to the source domain (non-transfer); 2. No source domain data was used, and target domain samples were actively selected to fine-tune the source domain model (transfer based on model parameters); 3. Target domain samples were actively selected, and source domain samples with large distribution differences from the target domain were used and actively deleted, and a new model was trained through a mixed sample set (transfer based on samples); 4. Target domain samples were actively selected, and source domain samples with large distribution differences from the target domain were used and actively deleted, and the source domain model was fine-tuned through a mixed sample set (combination of the two transfers). The results are shown in the figure below. Figure 7 As shown, the effects of model parameter migration, sample migration and the better effect of combining the two are verified respectively.

[0097] Therefore, in the migration process, the forward active learning adds the target domain samples with the least certainty in the model, and the reverse active learning removes the source domain samples with large differences from the target domain. The resulting mixed sample set introduces the most valuable new information in the target domain, and retains the information contained in the samples in the source domain that are close to the target domain. Compared with only the target domain samples and randomly selected target domain samples, it has more information. At the same time, the source domain model is fine-tuned through the transfer learning method, making full use of the information in the source domain model. The combination of active learning and transfer learning reduces the demand for labeled samples in the target domain, reduces the migration cost, improves the migration efficiency, and ensures the safe and stable operation of the power system.

[0098] The following is a description of the system for distinguishing the dominant instability mode of a portable electric power system provided by the present invention. The system for distinguishing the dominant instability mode of a portable electric power system described below and the method for distinguishing the dominant instability mode of a portable electric power system described above can be referred to in correspondence with each other.

[0099] An embodiment of the present invention provides a migratable power system dominant instability mode identification method, including: a computer-readable storage medium and a processor;

[0100] The computer-readable storage medium is used to store executable instructions;

[0101] The processor is used to read the executable instructions stored in the computer-readable storage medium and execute the method described in any of the above embodiments.

[0102] 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 transferable method for identifying the dominant instability mode of power systems. It is characterized in that include: S1, train the first deep neural network model M based on the source domain sample set 0 ; S2, perform multiple groups of transient stability simulations in the target domain scenario, and extract statistical features of voltage data and power angle data in the simulation results as the target domain sample set; S3, based on M 0 Obtain the marginal probability of each unlabeled target domain sample, label the dominant instability mode category of the first N target domain samples with smaller marginal probability values, and obtain a first sample set; add the first sample set to the source domain sample set to obtain a mixed sample set, and 0 Train to obtain the second deep neural network model M t ; S4, based on M t Obtain the marginal probability of each unlabeled target domain sample, label the dominant instability mode categories of the first N target domain samples with smaller marginal probability values, and obtain a second sample set; S5, calculate M t and M 0 For the difference in the predicted probability values ​​of the source domain samples in the mixed sample set, the first M source domain samples with the largest difference are deleted; and adding the second sample set to the mixed sample set after the deletion operation; S6, based on the mixed sample set after the deletion and addition operations, t Fine-tune parameters; S7, repeat S4-S6 until M t The test accuracy on the target domain sample set reaches a preset target value or reaches a preset number of iterations.

2. The method according to claim 1, It is characterized in that The performing of multiple groups of temporary stability simulations in the target domain scenario includes: Under the new power flow condition, different fault lines, fault locations and fault durations are set to conduct multiple groups of temporary stability simulations.

3. The method according to claim 1 or 2, It is characterized in that Based on M 0 or M t Get the marginal probability of each unlabeled target domain sample, include: Among them, x i is the i-th unlabeled target domain sample, margin(x i ) is its marginal probability, and x i Input to M 0 or M t , where t is the number of iterations, M 0 or M t Calculated pair x i The probability value of the dominant instability mode category with the largest probability in the predicted probability distribution, is the probability value of the dominant instability mode category with the second largest probability in the probability distribution.

4. The method according to claim 1 or 2, It is characterized in that The calculation M t and M 0 The difference between the predicted probability values ​​of each source domain sample includes: Among them, s i is the i-th sample in the source domain, dist_deviation(s i ) is the change in its predicted probability distribution, is the second deep neural network model M t For i The predicted probability distribution vector of is the first deep neural network model M 0 For i The predicted probability distribution vector of .

5. The method according to claim 1, It is characterized in that The statistical features of the voltage data and the power angle data include: a mean value, a standard deviation, an envelope, and first-order and second-order change rates of the mean value, the standard deviation, and the envelope.

6. The method according to claim 1, It is characterized in that The dominant instability modes include three categories: stability, power angle instability and voltage instability.

7. The method according to claim 1, It is characterized in that The method based on the mixed sample set M t Fine-tune parameters, including: Based on the mixed sample set, a fine-tuned transfer learning method is used to t Conduct training.

8. A portable power system dominant instability mode identification system. It is characterized in that include: A computer readable storage medium and a processor; The computer-readable storage medium is used to store executable instructions; The processor is used to read the executable instructions stored in the computer-readable storage medium and execute the method according to any one of claims 1 to 7.