Transient stability assessment method for an electric power system

12100954 ยท 2024-09-24

Assignee

Inventors

Cpc classification

International classification

Abstract

A transient stability assessment method for an electric power system is disclosed. Transient stability tags and steady-state data of the electric power system before a failure occurs are collected from transient stability simulation data. Data sets under different predetermined failures are obtained based on a statistical result of the transient stability tags and a maximum-minimum method. A similarity evaluation index between different predetermined failures is constructed based on a Jaccard distance and a Hausdorff distance. Different predetermined failures are clustered based on a clustering algorithm. A parameters-shared siamese neural network is trained for different predetermined failures in each cluster to obtain a multi-task siamese neural network for the transient stability assessment. Transient stability assessment results of the electric power system under all the predetermined failures are obtained based on the statistical result of the transient stability tags and the multi-task siamese neural network for the transient stability assessment.

Claims

1. A transient stability assessment method for an electric power system, comprising: collecting steady-state data of the electric power system before a failure occurs and transient stability tags from transient stability simulation data; obtaining data sets under different predetermined failures based on a statistical result of the transient stability tags and a maximum-minimum method; constructing a similarity evaluation index between different predetermined failures based on a Jaccard distance and a Hausdorff distance; clustering the different predetermined failures based on a clustering algorithm; training a parameters-shared siamese neural network for different predetermined failures in each cluster to obtain a multi-task siamese neural network for the transient stability assessment; and obtaining transient stability assessment results of the electric power system under all the predetermined failures based on the statistical result of the transient stability tags and the multi-task siamese neural network for the transient stability assessment.

2. The method of claim 1, comprising: (1) setting so operating conditions based on historical operational aspects and future plannings of the electric power system in consideration of a situation that the electric power system has heavy loads in future, setting ? predetermined failures for each operating condition, performing a simulating calculation on transient stabilities of the electric power system under the ? predetermined failures occurring in the so operating conditions using a numerical computation method, respectively, collecting generator features and line features before a failure occurs as well as transient stability tags under different predetermined failures, and obtaining a data set O.sub.0 based on a statistical result of the transient stability tags and a maximum-minimum normalization method; wherein the step (1) includes the following: (1-1) for the electric power system having N generators, setting the so operating conditions based on the historical operational aspects and the future plannings of the electric power system in consideration of the situation that the electric power system has heavy loads in future, setting the ? predetermined failures for each operating condition, performing a simulating calculation on the transient stabilities of the electric power system under the ? predetermined failures occurring in the so operating conditions using a numerical computation method, respectively, collecting active power P.sub.Gi.sup.k and a generator voltage V.sub.Gi.sup.k of each generator, an active power P.sub.Lj.sup.k and an reactive power Q.sub.Lj.sup.k of each line before the failure occurs as well as the transient stability tags [y.sub.1.sup.k, y.sub.2.sup.k . . . ,y.sub.a.sup.k, . . . ,y.sub.?.sup.k] in the k-th operating condition to construct a raw data set [P.sub.Gi.sup.k, V.sub.Gi.sup.k,P.sub.Lj.sup.k, Q.sub.Lj.sup.ky.sub.1.sup.k, y.sub.2.sup.k, . . . , y.sub.a.sup.k, . . . ,y.sub.?.sup.k], where k represents a numerical order of the operating condition, which indicates the k-th operating condition in the so operating conditions, k=1,2, . . . ,s.sub.0, i represents the i-th generator, i=1, . . . ,N, j represents the j-th line, j=1, . . . ,M, M represents a total number of lines in the electric power system, y.sub.a.sup.k represents the transient stability tag of the electric power system under the a-th predetermined failure occurring in the k-th operating condition, a represents the a-th predetermined failure, a=1, . . . ? wherein when a transient instability occurs in the electric power system after the a-th predetermined failure occurs in the k-th operating condition, y.sub.a.sup.k=1; and when the electric power system maintains transient stability after the a-th predetermined failure occurs in the k-th operating condition, y.sub.a.sup.k=0; (1-2) normalizing P.sub.Gi.sup.k, V.sub.Gi.sup.k, P.sub.Lj.sup.k and Q.sub.Lj.sup.k in the raw data set obtained in step (1-1) based on the maximum-minimum normalization method to obtain a normalized active power {tilde over (P)}.sub.Gi.sup.k and a normalized generator voltage {tilde over (V)}.sub.Gi.sup.k of each generator, a normalized active power {tilde over (P)}.sub.Lj.sup.k and a normalized reactive power {tilde over (Q)}.sub.Lj.sup.k of each line before the failure occurs in the k-th operating condition, wherein a normalization formula is denoted as follows: P ~ Gi k = P Gi k - min k = 1 , .Math. , s 0 ( P Gi k ) max k = 1 , .Math. , s 0 ( P Gi k ) - min k = 1 , .Math. , s 0 ( P Gi k ) V ~ Gi k = V Gi k - min k = 1 , .Math. , s 0 ( V Gi k ) max k = 1 , .Math. , s 0 ( V Gi k ) - min k = 1 , .Math. , s 0 ( V Gi k ) P ~ Lj k = P Lj k - min k = 1 , .Math. , s 0 ( P Lj k ) max k = 1 , .Math. , s 0 ( P Lj k ) - min k = 1 , .Math. , s 0 ( P Lj k ) Q ~ Lj k = Q Lj k - min k = 1 , .Math. , s 0 ( Q Lj k ) max k = 1 , .Math. , s 0 ( Q Lj k ) - min k = 1 , .Math. , s 0 ( Q Lj k ) (1-3) counting values of the transient stability tags [y.sub.1.sup.k, y.sub.2.sup.k . . . ,y.sub.a.sup.k, . . . ,y.sub.?.sup.k] in the s.sub.0 operating conditions obtained in step (1-1) wherein when the transient stability tag y.sub.a.sup.k under the a-th predetermined failure satisfies .Math. k = 1 s 0 y a k = s 0 , the a-th predetermined failure is classified into a k=1 failure set Z.sub.1 for which a subsequent construction of siamese neural network is not performed, when the transient stability tag y.sub.a.sup.k under the a-th predetermined failure satisfies .Math. k = 1 s 0 y a k = 0 , the a-th predetermined failure is classified into a failure set Z.sub.0 for which the subsequent construction of siamese neural network is not performed, and when the transient stability tag y.sub.a.sup.k under the a-th predetermined failure satisfies 0 < .Math. k = 1 s 0 y a k < s 0 , the a-th predetermined failure is classified into a failure set Z.sub.2, wherein the failure set Z.sub.2 includes b predetermined failures which are denoted as E(1), E(2), . . . ,E(b), and the transient stability tags of the b predetermined failures are denoted as; (1-4) obtaining a pre-processed data set O.sub.0 based on {tilde over (P)}.sub.Gi.sup.k, {tilde over (V)}.sub.Gi.sup.k, {tilde over (P)}.sub.Lj.sup.k and {tilde over (Q)}.sub.Lj.sup.k obtained in step (1-2) and the transient stability tags y.sub.E(1).sup.k y.sub.E(2).sup.k, . . . , y.sub.E(b).sup.k in the failure set Z.sub.2 obtained in step (1-3); wherein the data set O.sub.0 is represented as follows:
O.sub.0=[{tilde over (P)}.sub.Gi.sup.k,{tilde over (V)}.sub.Gi.sup.k,{tilde over (P)}.sub.Lj.sup.k,{tilde over (Q)}.sub.Lj.sup.k,y.sub.E(1).sup.ky.sub.E(2).sup.k, . . . ,y.sub.E(b).sup.k] (2-1) setting s.sub.1?b operating conditions based on the historical operational aspects and the future plannings of the electric power system in consideration of the situation that the electric power system has heavy loads in future, performing a transient stability simulating calculation using a numerical computation method in consideration of the b predetermined failures in the failure set Z.sub.2 obtained in step (1-3), obtaining generator features and line features before a failure occurs as well as transient stability tags under different predetermined failures from result data of the transient stability simulating calculation, and obtaining a new data set O.sub.new based on a statistical result of the transient stability tags and the maximum-minimum normalization method as described in step (1-2), wherein the step (2) includes the following: (2-1) setting the s.sub.1?b operating conditions s.sub.0+1,s.sub.0+2, . . . ,s.sub.0+s.sub.1?b based on the historical operational aspects and the future plannings of the electric power system in consideration of the situation that the electric power system has heavy loads in future, performing the transient stability simulating calculation on the E(1+?(d?1?s.sub.0)/s.sub.1 ?)-th predetermined failure in the failure set Z.sub.2 occurring in the d-th operating condition obtained in step (1-3) using the numerical computation method, collecting an active power P.sub.Gi.sup.d and a generator voltage V.sub.Gi.sup.d of each generator, an active power P.sub.Lj.sup.d and an reactive power Q.sub.Lj.sup.d of each line before a failure occurs as well as the transient stability tags y.sub.E(1+?(d?1?s.sub.0.sub.)/s.sub.1.sub.?).sup.d in the d-th operating condition to obtain a data set [P.sub.Gi.sup.d,V.sub.Gi.sup.d,P.sub.Lj.sup.d Q.sub.Lj.sup.d, y.sub.E(1+?(d?1?s.sub.0.sub.)/s.sub.1.sub.?).sup.d], where d=s.sub.0+1,s.sub.0+2, . . . ,s.sub.0+s.sub.1?b; (2-2) normalizing P.sub.Gi.sup.d,V.sub.Gi.sup.d,P.sub.Lj.sup.d and Q.sub.Lj.sup.d in the data set [P.sub.Gi.sup.d,V.sub.Gi.sup.d,P.sub.Lj.sup.d Q.sub.Lj.sup.d, y.sub.E(1+?(d?1?s.sub.0.sub.)/s.sub.1.sub.?).sup.d] obtained in step (2-1) based on the maximum-minimumnormalization method as described in step (1-2) to obtain a normalized active power P.sub.Gi.sup.d and a normalized generator voltage V.sub.Gi.sup.d of each generator, a normalized active power P.sub.Lj.sup.d and a normalized reactive power Q.sub.Lj.sup.d of each line before the failure occurs in the d-th operating condition; (2-3) obtaining a pre-processed data set O.sub.new based on {tilde over (P)}.sub.Gi.sup.d, {tilde over (V)}.sub.Gi.sup.d, {tilde over (P)}.sub.Lj.sup.d and {tilde over (Q)}.sub.Lj.sup.d obtained in step (2-2) and the transient stability tags y.sub.E(1+?(d?1?s.sub.0.sub.)/s.sub.1.sub.?).sup.d obtained in step (2-1), wherein the data set O.sub.new is represented as follows:
O.sub.new=[{tilde over (P)}.sub.Gi.sup.d,{tilde over (V)}.sub.Gi.sup.d,{tilde over (P)}.sub.Lj.sup.d,{tilde over (Q)}.sub.Lj.sup.dy.sub.E(1+?(d?1?s.sub.0.sub.)/s.sub.1.sub.?).sup.d] (3) calculating a similarity evaluation index D(e,g) of the b predetermined failures in the failure set Z.sub.2 obtained in step (1-3) based on a Jaccard distance index and a Hausdorff distance index, wherein e represents the e-th predetermined failure in the failure set Z.sub.2 obtained in step (1-3), e=E(1), . . . , E(b), g represents the g-th predetermined failure in the failure set Z.sub.2 obtained in step (1-3), g=E(1), . . . , E(b) and g?e; clustering the b predetermined failures in the failure set Z.sub.2 obtained in step (1-3) based on the similarity evaluation index D(e,g) and the clustering algorithm to obtain B clusters, wherein the i-th cluster includes p(l) predetermined failures, l=1, . . . ,B, and the step (3) includes the following: (3-1) determining a Jaccard distance index between a transient stability tag vector (y.sub.e.sup.1, y.sub.e.sup.2, . . . , y.sub.e.sup.s.sup.0) under the e-th predetermined failure in the failure set Z.sub.2 occurring in all the so operating operations and a transient stability tag vector (y.sub.g.sup.1, y.sub.g.sup.2, . . . y.sub.g.sup.s.sup.0) under the g-th predetermined failure in the failure set Z.sub.2 occurring in all the so operating operations as follows: J ( e , g ) = M 01 + M 10 M 01 + M 11 + M 10 wherein M.sub.00 represents a number of operating conditions where both y.sub.e.sup.k and y.sub.g.sup.k equal to 0, M.sub.01 represents a number of operating conditions where y.sub.e.sup.k equals to 0 but y.sub.g.sup.k equals to 1, M.sub.01 represents a number of operating conditions where y.sub.e.sup.k equals to 1 but y.sub.g.sup.k equals to 0, M.sub.11 represents a number of operating conditions where both y.sub.e.sup.k and y.sub.g.sup.k equal to 0, where k-1,2, . . . ,so; (3-2) obtaining a feature set {({tilde over (P)}.sub.Gi.sup.m, {tilde over (V)}.sub.Gi.sup.m, {tilde over (P)}.sub.Lj.sup.m, {tilde over (Q)}.sub.Lj.sup.m) m ? h(e)} of the operating conditions corresponding to y.sub.e.sup.k=1 which indicates that the transient stability tag y.sub.e.sup.k under the e-th predetermined failure in the failure set Z.sub.2 equals to 1 and a feature set {({tilde over (P)}.sub.Gi.sup.n, {tilde over (V)}.sub.Gi.sup.n, {tilde over (P)}.sub.Lj.sup.n, {tilde over (Q)}.sub.Lj.sup.n) n ? h(e)} of the operating conditions corresponding to y.sub.e.sup.k=l which indicates that the transient stability tag y.sub.g.sup.k under the g-th predetermined failure in the failure set Z.sub.2 equals to 1, and calculating a Hausdorff distance H(e,g) between {({tilde over (P)}.sub.Gi.sup.m, {tilde over (V)}.sub.Gi.sup.m, {tilde over (P)}.sub.Lj.sup.m, {tilde over (Q)}.sub.Lj.sup.m) m ? h(e)} and {({tilde over (P)}.sub.Gi.sup.n, {tilde over (V)}.sub.Gi.sup.n, {tilde over (P)}.sub.Lj.sup.n, {tilde over (Q)}.sub.Lj.sup.n) n ? h(e)}, where h(e) represents a set of the operating conditions corresponding to y.sub.e.sup.k=1, and h(g) represents a set of the operating conditions corresponding to y.sub.g.sup.k=1; (3-3) calculating the similarity evaluation index D(e,g) between different predetermined failures in the failure set Z.sub.2 based on J(e,g) obtained in step (3-1) and H(e,g) obtained in step (3-2) as follows:
D(e,g)=w.sub.1?J(e,g)+w.sub.2?H(e,g) wherein w.sub.1 and w.sub.2 represent predetermined weights and satisfy w.sub.1+w.sub.2=1; (3-4) clustering the b predetermined failures in the failure set Z.sub.2 based on the similarity evaluation index D(e,g) between different predetermined failures in the failure set Z.sub.2 obtained in step (3-3)to obtain the B clusters, wherein the i-th cluster includes p(l) predetermined failures, l=1, . . . ,B, the i-th cluster is denoted as C(l)={q(l).sub.1, q(l).sub.2, . . . , q(l).sub.r(l), . . . q(l).sub.p(l)}, q(l).sub.r(l) represents a numerical order of the predetermined failure whose numerical order is r(l)-th in the i-th cluster C(l) in the failure set Z.sub.2, where r(l)=1, . . . ,p(l), wherein the clustering algorithm and the cluster number B are set according to human experiences, or the cluster number B is set to 2, 3, . . . ,b, respectively; calculating silhouette coefficients of clusters corresponding to different cluster numbers, and selecting the cluster number corresponding to a maximum silhouette coefficient as an optimum cluster number; (4) training the multi-task siamese neural network for the transient stability assessment based on the data set O.sub.0 obtained in step (1), the data set O.sub.new obtained in step (2) and the B clusters obtained in step (3), wherein The step (4) includes the following: (4-1) classifying the data set O.sub.0 obtained in step (1-4) and the data set O.sub.new obtained in step (2-3) into b data sets D.sub.fault(1), D.sub.fault(2), . . . ,D.sub.fault(b) corresponding respectively to the b predetermined failures in step (1-3) based on difference in the predetermined failures, wherein input features of the data set corresponding to the e-th predetermined failure include a normalized active power {tilde over (P)}.sub.Gi.sup.u(e) and a normalized generator voltage {tilde over (V)}.sub.Gi.sup.u(e) of each generator, a normalized active power {tilde over (P)}.sub.Lj.sup.u(e)and a normalized reactive power {tilde over (Q)}.sub.Lj.sup.u(e)of each line before the failure occurs; the transient stability tag of each data set is denoted as y.sub.e.sup.u(e), wherein u(e) represents the u(e)-th operating condition corresponding to the e-th predetermined failure, and u(e)=1,2, . . . , s.sub.0, s.sub.0+s.sub.1?(e?1)?b+1, s.sub.0+s.sub.1?(e?1)?b+2, . . . , s.sub.0+s.sub.1?e?b; (4-2) obtaining B multi-task siamese neural networks for the transient stability assessment by training based on the data sets D.sub.fault(1), D.sub.fault(2), . . . ,D.sub.fault(b) obtained in step (4-1), the clusters in step (3-4) and a siamese neural network training algorithm, wherein training data used for the l-th multi-task siamese neural network M.sub.l is the data sets D.sub.fault(q(l).sub.1), D.sub.fault(q(l).sub.2), . . . ,D.sub.fault(q(l).sub.r(l), . . . ,D.sub.fault(q(l).sub.p(l)) corresponding to the predetermined failures in the l-th cluster C(l); wherein M.sub.l has the following structure: (4-2-1)p(l) Input Layers of M.sub.l wherein M.sub.l includes p(l) input layers, the r(l)-th input layer includes 2?N+2?M neurons, inputs of each neuron include a normalized active power {tilde over (P)}.sub.Gi.sup.u(q(l).sup.r(l).sup.) and a normalized generator voltage {tilde over (V)}.sub.Gi.sup.u(q(l).sup.r(l).sup.) of each generator, a normalized active power {tilde over (P)}.sub.Lj.sup.u(q(l).sup.r(l).sup.) and a normalized reactive power Q.sub.Lj.sup.u(q(l).sup.r(l).sup.) of each line before the failure occurs, where u(q(l).sub.r(l)) represents the u(q(l).sub.r(l)-th operating condition corresponding to the q(l).sub.r(l)-th predetermined failure in the l-th cluster; (4-2-2) Parameter-Shared Unit of M.sub.l wherein the parameter-shared unit of M.sub.l includes t.sub.2(l) hidden layers, inputs of the first hidden layer h.sub.1(l) include the p(l) input layers of M.sub.l in step (3-2-1), inputs of the c-th hidden layer h.sub.c(l) include outputs of the (c-1)-th hidden layer h.sub.c-1(l), where c=2, . . . ,t.sub.1(l), a number t.sub.1(l) of the hidden layers and a number of neurons in each hidden layer are determined according to human experiences or repeated experiments meeting a calculation precision; (4-2-3)p(l) Output Units of M.sub.l wherein the p(l) output units of M.sub.l include t.sub.2(l) hidden layers and one output layer, inputs of the first hidden layer in each output unit include outputs of the t.sub.1(l)-th hidden layer of the parameter-shared unit in step (4-2-2), a number t.sub.2(l) of hidden layers and a number of neurons in each hidden layer are determined according to human experiences or repeated experiments meeting a calculation precision, the output layer includes one neuron, and the output layer adopts the Sigmoid function as an activation function, wherein an output of the r(l)-th output unit of M.sub.l is ?(q(l).sub.r(l).sup.u(q(l).sup.r(l).sup.), wherein when ?(q(l).sub.r(l).sup.u(q(l).sup.r(l).sup.)>0.5, it indicates that a transient instability occurs in the electric power system after the q(l).sub.r(l)-th predetermined failure in the l-th cluster occurs under the u(q(l).sub.r(l))-th operating condition, when ?(q(l).sub.r(l).sup.u(q(l).sup.r(l).sup.)?0.5, it indicates that the electric power system maintains transient stability after the q(l).sub.r(l))-th predetermined failure under the l-th cluster occurs in the u(q(l).sub.r(l))-th operating condition; (5) obtaining the transient stability assessment results of the electric power system under all the ?predetermined failures in the failure sets Z.sub.0, Z.sub.1 and are Z.sub.2 based on the statistical result of the transient stability tags in step (1-3) and the multi-task siamese neural networks obtained in step (4), wherein the step (5) includes the following: (5-1) obtaining the transient stability assessment results of the electric power system under the predetermined failures in the failure sets Z.sub.0 and Z.sub.1 in step (1-3) based on the statistical result of the transient stability tags in step (1-3), wherein the step (5-1) includes the following: (5-1-1) determining the transient stability assessment results of the electric power system under the predetermined failures in the failure set Z.sub.0 in step (1-3) as maintaining transient stability; (5-1-2) determining the transient stability assessment results of the electric power system under the predetermined failures in the failure set Z.sub.1 in step (1-3) as occurring transient instability; (5-2) using the B multi-task siamese neural networks obtained in step (4) to obtain the transient stability assessment results of the electric power system under the b predetermined failures in the failure set Z.sub.2 in step (1-3), wherein the step (5-2) includes the following: (5-2-1) collecting an active power PG, and a generator voltage VG, of each generator, an active power P.sub.Lj and an reactive power Q.sub.Lj of each line of the electric power system from a data collecting and monitoring system or a wide are measurement system to construct initial input features; (5-2-2) using the maximum-minimum normalization described in step (1-2) to normalize the initial input features to obtain normalized input features; (5-2-3) inputting the normalized input features obtained in step (5-2-2) into the B multi-task siamese neural networks obtained in step (4) respectively to obtain the transient stability assessment results of the electric power system under the b predetermined failures in the failure set Z.sub.2 in step (1-3).

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) FIG. 1A is a flow chart of a transient stability assessment method for an electric power system according to an embodiment of the present disclosure.

(2) FIG. 1B is a schematic diagram showing a l-th multi-task siamese neural network M.sub.l as mentioned in step (4) of FIG. 1A.

(3) FIG. 2A and FIG. 2B are a schematic diagrams showing step (4-1) of FIG. 1A.

DETAILED DESCRIPTION

(4) The transient stability assessment method for an electric power system provided in the present disclosure collects data and transient stability tags of the electric power system before a failure occurs from transient stability simulation data, obtains data sets under different predetermined failures based on a statistical result of the transient stability tags and a maximum-minimum method, constructs a similarity evaluation index between different predetermined failures based on a Jaccard distance and a Hausdorff distance, obtains clusters of different failures based on a clustering algorithm, trains a parameters-shared siamese neural network for different predetermined failures in each cluster to obtain a multi-task siamese neural network for the transient stability assessment, and obtains transient stability assessment results of the electric power system under all ? predetermined failures based on the statistical result of the transient stability tags and the multi-task siamese neural network for the transient stability assessment.

(5) As illustrated in FIG. 1A, the transient stability assessment method for an electric power system may include the following steps.

(6) (1) s.sub.0 operating conditions are set based on historical operational aspects and future plannings of the electric power system in consideration of a situation that the electric power system may have heavy loads in future. ? predetermined failures are set for each operating condition. A simulating calculation is performed on transient stabilities of the electric power system under the ? predetermined failures occurring in the so operating conditions using a numerical computation method, respectively. Generator features and line features before the failure occurs as well as transient stability tags under different predetermined failures are collected. A data set O.sub.0 is obtained based on a statistical result of the transient stability tags and a maximum-minimum normalization method. The step may include the following.

(7) (1-1) for the electric power system having N generators, so operating conditions are set based on historical operational aspects and future plannings of the electric power system in consideration of a situation that the electric power system may have heavy loads in future. ? predetermined failures are set for each operating condition. A simulating calculation is performed on transient stabilities of the electric power system under the ? predetermined failures in the so operating conditions using a numerical computation method. An active power P.sub.Gi.sup.k and a generator voltage V.sub.Gi.sup.k of each generator, an active power P.sub.Lj.sup.k and an reactive power Q.sub.Lj.sup.k of each line before a failure occurs and the transient stability tags [y.sub.1.sup.k, y.sub.2.sup.k, . . . ,y.sub.a.sup.k, . . . ,y.sub.?.sup.k] in the k-th operating condition are collected to construct a raw data set [P.sub.Gi.sup.k, V.sub.Gi.sup.k,P.sub.Lj.sup.k, Q.sub.Lj.sup.ky.sub.1.sup.k, y.sub.2.sup.k, . . . , y.sub.a.sup.k, . . . ,y.sub.?.sup.k]. k represents a numerical order of the operating condition, i.e., the k-th operating condition in the so operating conditions, k=1,2, . . . ,s.sub.0. i represents a numerical order of the generator, i.e., the i-th generator, i=1, . . . ,N. j represents a numerical order of the line, i.e., the j-th line, j=1, . . . ,M. Mrepresents a total number of lines in the electric power system. y.sub.a.sup.k represents the transient stability tag of the electric power system under the a-th predetermined failure occurring in the k-th operating condition. a represents a numerical order of the predetermined failure, i.e., the a-th predetermined failure, a=1, . . . ? If a transient instability occurs in the electric power system after the a-th predetermined failure occurs in the k-th operating condition, y.sub.a.sup.k=1. If the electric power system can maintain transient stability after the a-th predetermined failure occurs in the k-th operating condition, y.sub.a.sup.k=0. In an embodiment of the present disclosure, the electric power system may be a New England 10 Generator 39 Bus System which includes N=10 generators and M=34 lines. The number of operating conditions is set to s.sub.0=5000. The predetermined failures may include three-phase permanent short-circuit faults occurring in each of the 34 lines, and the fault clearing time may be 0.1 second, such that the number of predetermined failures is set to ?=34.

(8) (1-2) based on a maximum-minimum normalization method, P.sub.Gi.sup.k, V.sub.Gi.sup.k, P.sub.Lj.sup.k and Q.sub.Lj.sup.k in the raw data set obtained in step (1-1) are normalized to obtain a normalized active power {tilde over (P)}.sub.Gi.sup.k and a normalized generator voltage {tilde over (V)}.sub.Gi.sup.k of each generator, a normalized active power {tilde over ({tilde over (P)})}.sub.Lj.sup.k and a normalized inactive power {tilde over (Q)}.sub.Lj.sup.k of each line before a failure occurs in the k-th operating condition.

(9) A normalization formula may be denoted as follows.

(10) P ~ Gi k = P Gi k - min k = 1 , .Math. , s 0 ( P Gi k ) max k = 1 , .Math. , s 0 ( P Gi k ) - min k = 1 , .Math. , s 0 ( P Gi k ) V ~ Gi k = V Gi k - min k = 1 , .Math. , s 0 ( V Gi k ) max k = 1 , .Math. , s 0 ( V Gi k ) - min k = 1 , .Math. , s 0 ( V Gi k ) P ~ Lj k = P Lj k - min k = 1 , .Math. , s 0 ( P Lj k ) max k = 1 , .Math. , s 0 ( P Lj k ) - min k = 1 , .Math. , s 0 ( P Lj k ) Q ~ Lj k = Q Lj k - min k = 1 , .Math. , s 0 ( Q Lj k ) max k = 1 , .Math. , s 0 ( Q Lj k ) - min k = 1 , .Math. , s 0 ( Q Lj k )
(1-3) values of the transient stability tags [y.sub.1.sup.k, y.sub.2.sup.k . . . ,y.sub.a.sup.k, . . . ,y.sub.?.sup.k] in the s.sub.0 operating conditions obtained in step (1-1) are counted. If the transient stability tag y.sub.a.sup.k under the a-th predetermined failure satisfies

(11) .Math. k = 1 s 0 y a k = s 0 ,
it indicates that the a-th predetermined failure always causes the k=1 transient instability of the electric power system, then the a-th predetermined failure may be classified into a failure set Z.sub.1 and the subsequent construction of transient stability assessment siamese neural network is not performed. If the transient stability tag y.sub.a.sup.k under the a-th predetermined failure satisfies

(12) .Math. k = 1 s 0 y a k = 0 ,
it indicates that the a-th predetermined failure does not cause the transient instability of the electric power system, then the a-th predetermined failure may be classified into a failure set Z.sub.0 and the subsequent construction of transient stability assessment siamese neural network is not performed. If the transient stability tag y.sub.a.sup.k under the a-th predetermined failure satisfies

(13) 0 < .Math. k = 1 s 0 y a k < s 0 ,
it indicates that the a-th predetermined failure may cause the transient instability of the electric power system in some operating conditions, then the a-th predetermined failure may be classified into a failure set Z.sub.2. Assuming that Z.sub.2 includes b predetermined failures, the b predetermined failures may be denoted as E(1), E(2), . . . ,E(b), and the transient stability tags of the b predetermined failures may be denoted as y.sub.E(1).sup.k, y.sub.E(2).sup.k, y.sub.E(b).sup.k. In an embodiment of the present disclosure, the failure set Z.sub.1 is empty, the failure set Z.sub.0 includes one predetermined failure, and the failure set Z.sub.2 includes 33 predetermined failures, i.e., b=33.

(14) (1-4) a pre-processed data set O.sub.0 is obtained based on {tilde over (P)}.sub.Gi.sup.k, {tilde over (V)}.sub.Gi.sup.k, {tilde over (P)}.sub.Lj.sup.k and {tilde over (Q)}.sub.Lj.sup.k obtained in step (1-2) and the transient stability tags y.sub.E(1).sup.k y.sub.E(2).sup.k, . . . , y.sub.E(b).sup.k in the failure set Z.sub.2 obtained in step (1-3). The data set O.sub.0 may be represented as follows.
O.sub.0=[{tilde over (P)}.sub.Gi.sup.k,{tilde over (V)}.sub.Gi.sup.k,{tilde over (P)}.sub.Lj.sup.k,{tilde over (Q)}.sub.Lj.sup.k,y.sub.E(1).sup.ky.sub.E(2).sup.k, . . . ,y.sub.E(b).sup.k]

(15) (2) s.sub.1?b operating conditions are set based on historical operational aspects and future plannings of the electric power system in consideration of a situation that the electric power system may have heavy loads in future. By considering the b predetermined failures in the failure set Z.sub.2 obtained in step (1-3), a transient stability simulating calculation is performed using a numerical computation method to obtain generator features and line features before a failure occurs as well as transient stability tags under different predetermined failures. And a new data set O.sub.new is obtained based on a statistical result of the transient stability tags and a maximum-minimum normalization method as described in step (1-2). The step may include the following.

(16) (2-1) s.sub.1?b operating conditions are set for the electric power system as described in step (1-1) based on historical operational aspects and future plannings of the electric power system in consideration of a situation that the electric power system may have heavy loads in future. The s.sub.1?b operating conditions may be denoted as s.sub.0+1,s.sub.0+2, . . . ,s.sub.0+s.sub.1?b. A transient stability simulating calculation is performed on the E(1+?(d?1?s.sub.0)/s.sub.1?)-th predetermined failure in the failure set Z.sub.2 occurring in the d-th operating condition obtained in step (1-3) using a numerical computation method. An active power P.sub.Gi.sup.d and a generator voltage V.sub.Gi.sup.d of each generator, an active power P.sub.Lj.sup.dand an reactive power Q.sub.Lj.sup.d of each line before a failure occurs and the transient stability tags y.sub.E(1+?(d?1?s.sub.0.sub.)/s.sub.1.sub.?).sup.d in the d-th operating condition are collected to obtain a data set [P.sub.Gi.sup.d,V.sub.Gi.sup.d,P.sub.Lj.sup.d Q.sub.Lj.sup.d, y.sub.E(1+?(d?1?s.sub.0.sub.)/s.sub.1.sub.?).sup.d], where d=s.sub.0+1,s.sub.0+2, . . . ,s.sub.0+s.sub.1?b. In an embodiment of the present disclosure, s.sub.1=3000.

(17) (2-2) based on a maximum-minimum normalization method as described in step (1-2), P.sub.Gi.sup.dV.sub.Gi.sup.d, P.sub.Lj.sup.d and Q.sub.Lj.sup.d in the data set [P.sub.Gi.sup.dV.sub.Gi.sup.d, P.sub.Lj.sup.d Q.sub.Lj.sup.d, y.sub.E(1+?(d?1?s.sub.0.sub.)/s.sub.1.sub.?).sup.d] obtained in step (2-1) are normalized to obtain a normalized active power {tilde over (P)}.sub.Gi.sup.d and a normalized generator voltage {tilde over (V)}.sub.Gi.sup.d of each generator, a normalized active power {tilde over (P)}.sub.Lj.sup.d and a normalized reactive power {tilde over (Q)}.sub.Lj.sup.d of each line before a failure occurs in the d-th operating condition.

(18) (2-3) a pre-processed data set O.sub.new is obtained based on {tilde over (P)}.sub.Gi.sup.d, {tilde over (V)}.sub.Gi.sup.d, {tilde over (P)}.sub.Lj.sup.d and {tilde over (Q)}.sub.Lj.sup.d obtained in step (2-2) and the transient stability tags y.sub.E(1+?(d?1?s.sub.0.sub.)/s.sub.1.sub.?).sup.d obtained in step (2-1). The data set O.sub.new may be represented as follows.
O.sub.new=[{tilde over (P)}.sub.Gi.sup.d,{tilde over (V)}.sub.Gi.sup.d,{tilde over (P)}.sub.Lj.sup.d,{tilde over (Q)}.sub.Lj.sup.dy.sub.E(1+?(d?1?s.sub.0.sub.)/s.sub.1.sub.?).sup.d]

(19) (3) based on a Jaccard distance index and a Hausdorff distance index, a similarity evaluation index D(e,g) of the b predetermined failures in the failure set Z.sub.2 obtained in step (1-3) is calculated. e represents the e-th predetermined failure in the failure set Z.sub.2 obtained in step (1-3), e=E(1), . . . , E(b). g represents the g-th predetermined failure in the failure set Z.sub.2 obtained in step (1-3), g=E(1), . . . , E(b) and g?e. The b predetermined failures in the failure set Z.sub.2 obtained in step (1-3) are clustered based on the similarity evaluation index D(e,g) and a clustering algorithm, to obtain B clusters. The l-th cluster includes p(l) predetermined failures, l=1, . . . ,B. The step may include the following.

(20) (3-1) a Jaccard distance index between a transient stability tag vector (y.sub.e.sup.1, y.sub.e.sup.2 . . . , y.sub.e.sup.s.sup.0) under the e-th predetermined failure in the failure set Z.sub.2 occurring in all the so operating operations and a transient stability tag vector (y.sub.g.sup.1, y.sub.g.sup.2, . . . ,y.sub.g.sup.s.sup.0) under the g-th predetermined failure in the failure set Z.sub.2 occurring in all the so operating operations is determined as follows.

(21) J ( e , g ) = M 01 + M 10 M 01 + M 11 + M 10

(22) M.sub.00 represents the number of operating conditions where both y.sub.e.sup.k and y.sub.g.sup.k equal to 0, M.sub.01 represents the number of operating conditions where y.sub.e.sup.k equals to 0 but y.sub.g.sup.k equals to 1, M.sub.01 represents the number of operating conditions where y.sub.e.sup.k equals to 1 but y.sub.g.sup.k equals to 0, M.sup.11 represents the number of operating conditions where both y.sub.e.sup.k and y.sub.g.sup.k equal to 0, where k=1,2, . . . ,s.sub.0.

(23) (3-2) a feature set {({tilde over (P)}.sub.Gi.sup.m, {tilde over (V)}.sub.Gi.sup.m, {tilde over (P)}.sub.Lj.sup.m {tilde over (Q)}.sub.Lj.sup.m): m ? h(e)} of the operating conditions corresponding to y.sub.e.sup.k=1 (a transient stability tag under the e-th predetermined failure in the failure set Z.sub.2 equals to 1) and a feature set {({tilde over (P)}.sub.Gi.sup.n, {tilde over (V)}.sub.Gi.sup.n, {tilde over (P)}.sub.Lj.sup.n {tilde over (Q)}.sub.Lj.sup.n): n ? h(g)} of the operating conditions corresponding to y.sub.e.sup.k=1 (a transient stability tag under the g-th predetermined failure in the failure set Z.sub.2 equals to 1) are obtained, and a Hausdorff distance between {({tilde over (P)}.sub.Gi.sup.m, {tilde over (V)}.sub.Gi.sup.m, {tilde over (P)}.sub.Lj.sup.m, {tilde over (Q)}.sub.Lj.sup.m) m ? h(e)} and {({tilde over (P)}.sub.Gi.sup.n, {tilde over (V)}.sub.Gi.sup.n, {tilde over (P)}.sub.Lj.sup.n {tilde over (Q)}.sub.Lj.sup.n): n ? h(g)} is calculated and denoted as H(e,g). h(e) represents a set of the operating conditions corresponding to y.sub.e.sup.k=1, and h(g) represents a set of the operating conditions corresponding to y.sub.g.sup.k=1.

(24) (3-3) the similarity evaluation index D(e,g) between different predetermined failures in the failure set Z.sub.2 is calculated based on J(e,g) obtained in step (3-1) and H(e,g) obtained in step (3-2).
D(e,g)=w.sub.1?J(e,g)+w.sub.2?H(e,g)

(25) w.sub.1 and w.sub.2 represent predetermined weights and satisfy w.sub.1+w.sub.2=1. In an embodiment of the present disclosure, w.sub.1=0.5 and w.sub.2=0.5.

(26) (3-4) based on the similarity evaluation index D(e,g) between different predetermined failures in the failure set Z.sub.2 obtained in step (3-3), the b predetermined failures in the failure set Z.sub.2 are clustered to obtain B clusters. The l-th cluster includes p(l) predetermined failures, l=1, . . . , B. The l-th cluster may be denoted as C(l)={q(l).sub.1, q(l).sub.2, . . . , q(l).sub.r(l), . . . , q(l).sub.p(l)}. q(l).sub.r(l) represents a numerical order of the predetermined failure (whose numerical order is r(l)-th in the l-th cluster C(l)) in the failure set Z.sub.2, where r(l)=1, . . . , p(l). The clustering algorithm and the cluster number B may be set according to human experiences. Or the cluster number B may be set to 2, 3, . . . ,b. Silhouette coefficients of cluster results corresponding to different cluster numbers are calculated, and the cluster number corresponding to the highest silhouette coefficient is determined as the optimum cluster number. In an embodiment of the present disclosure, the clustering algorithm may be a spectral clustering algorithm. And the cluster number is determined to B=2 based on the highest silhouette coefficient.

(27) (4) a multi-task siamese neural network for the transient stability assessment is trained based on the data set O.sub.0 obtained in step (1), the data set O.sub.new obtained in step (2) and the B cluster results obtained in step (3). The step may include the following.

(28) (4-1) the data set O.sub.0 obtained in step (1-4) and the data set O.sub.new obtained in step (2-3) are classified into b data sets D.sub.fault(1), D.sub.fault(2), . . . ,D.sub.fault(b) corresponding respectively to the b predetermined failures in step (1-3) based on difference in the predetermined failures. The input features of the data set corresponding to the e-th predetermined failure include a normalized active power {tilde over (P)}.sub.Gi.sup.u(e) and a normalized generator voltage {tilde over (V)}.sub.Gi.sup.u(e) of each generator, a normalized active power {tilde over (P)}.sub.Lj.sup.u(e) and a normalized reactive power {tilde over (Q)}.sub.Lj.sup.u(e) of each line before the failure occurs. The transient stability tag of each data set is denoted as y.sub.e.sup.u(e). u(e) represents the u(e)-th operating condition corresponding to the e-th predetermined failure, and u(e)=1, 2, . . . , s.sub.0, s.sub.0+s.sub.1?(e?1)?b+1, s.sub.0+s.sub.1?(e?1)?b+2, . . . , s.sub.0+s.sub.1?e?b. A schematic diagram of the data sets is shown in FIG. 2A and FIG. 2B.

(29) (4-2) B multi-task siamese neural networks for the transient stability assessment are obtained by training based on the data sets D.sub.fault(1), D.sub.fault(2), . . . ,D.sub.fault(b) obtained in step (4-1), the cluster results in step (3-4) and a siamese neural network training algorithm. The training data used by l-th multi-task siamese neural network M.sub.l is the data sets D.sub.fault(q(l).sub.1), D.sub.fault(q(l).sub.2), . . . , D.sub.fault(q(l).sub.r(l)), . . . , D.sub.fault(q(l).sub.p(l)(y)) corresponding to the predetermined failures in the l-th cluster C(l). A structure of M.sub.l may be described as follows, as illustrated in FIG. 1B.

(30) (4-2-1)p(l) Input Layers of M.sub.l

(31) M.sub.l includes p(l) input layers. The r(l)-th input layer includes 2?N+2?M neurons. The inputs of each neuron may include a normalized active power {tilde over (P)}.sub.Gi.sup.u(q(i)r(l)) and a normalized generator voltage {tilde over (V)}.sub.Gi.sup.u(q(i)r(l)) of each generator, a normalized active power P.sub.Lj.sup.u(q(i)r(l)) and a normalized reactive power {tilde over (Q)}.sub.Lj.sup.u(q(i)r(l)) of each line before the failure occurs. u(q(l).sub.r(l)) represents the u(q(l)r(1))-th operating condition corresponding to the q(l).sub.r(l)(-th predetermined failure in the l-th cluster.

(32) (4-2-2) Parameter-Shared Unit of M.sub.l

(33) The parameter-shared unit of M.sub.l includes t.sub.1(l) hidden layers. The inputs of the first hidden layer h.sub.1(l) may be the p(l) input layers of M.sub.l in step (3-2-1). The inputs of the c-th hidden layer h.sub.c(l) may be outputs of the (c-1)-th hidden layer h.sub.c-1(l), where c=2, . . . , t.sub.1(l). The number t.sub.1(l) of the hidden layers and the number of neurons in each hidden layer may be determined according to human experiences or repeated experiments meeting a calculation precision. In an embodiment of the present disclosure, t.sub.1(l)=.sup.3, i.e., the parameter-shared unit of the l-th neural network M.sub.l may include three hidden layers. The first hidden layer may include 128 neurons, the second hidden layer may include 64 neurons and the third hidden layer may include 32 neurons.

(34) (4-2-3)p(l) Output Units of M.sub.l

(35) The p(l) output units of M.sub.l may include t.sub.2(l) hidden layers and one output layer. The inputs of the first hidden layer in each output unit may be outputs of the t.sub.1(l)-th hidden layer of the parameter-shared unit in step (4-2-2). The number t.sub.2(l) of hidden layers and the number of neurons in each hidden layer may be determined according to human experiences or repeated experiments meeting a calculation precision. In an embodiment of the present disclosure, t.sub.2(l)=1, i.e., each output unit may include one hidden layer and the number of neurons in the hidden layer may be 32. The output layer may include one neuron, and the output layer may adopt the Sigmoid function as an activation function. The output of the r(l)-th output unit of M.sub.l may be ?(q(l).sub.r(l).sup.u(q(l).sup.r(l).sup.). When ?(q(l).sub.r(l).sup.u(q(l).sup.r(l).sup.)>0.5, it indicates that the transient instability occurs in the electric power system after the q(l).sub.r(l)-th predetermined failure in the l-th cluster occurs under the u(q(l).sub.r(l)-th operating condition. When ?(q(l).sub.r(l).sup.u(q(l).sup.r(l).sup.)?0.5, it indicates that the electric power system maintains transient stability after the q(l)r(-th predetermined failure in the l-th cluster occurs under the q(l).sub.r(l)-th operating condition.

(36) (5) the transient stability assessment results of the electric power system under all the ? predetermined failures in the failure sets Z.sub.0, Z.sub.1 and are Z.sub.2 are obtained based on the statistical result of the transient stability tags in step (1-3) and the multi-task siamese neural networks obtained in step (4). The step may include the following.

(37) (5-1) the transient stability assessment results of the electric power system under the predetermined failures in the failure sets Z.sub.0 and Z.sub.1 in step (1-3) are obtained based on the statistical result of the transient stability tags in step (1-3). The step may include the following.

(38) (5-1-1) the transient stability assessment results of the electric power system under the predetermined failures in the failure set Z.sub.0 in step (1-3) are determined as maintaining transient stability.

(39) (5-1-2) the transient stability assessment results of the electric power system under the predetermined failures in the failure set Z.sub.1 in step (1-3) are determined as occurring transient instability.

(40) (5-2) the B multi-task siamese neural networks obtained in step (4) are used to obtain the transient stability assessment results of the electric power system under the b predetermined failures in the failure set Z.sub.2 in step (1-3). The step may include the following.

(41) (5-2-1) an active power P.sub.Gi and a generator voltage V.sub.Gi of each generator, an active power P.sub.Lj and an reactive power Q.sub.Lj of each line of the electric power system are collected from a data collecting and monitoring system or a wide are measurement system to construct initial input features.

(42) (5-2-2) the maximum-minimum normalization described in step (1-2) is used to normalize the initial input features to obtain normalized input features.

(43) (5-2-3) the normalized input features obtained in step (5-2-2) are inputted into the B multi-task siamese neural networks obtained in step (4) to obtain the transient stability assessment results of the electric power system under the b predetermined failures in the failure set Z.sub.2 in step (1-3).