Construction method and system of power oscillation attack detector coordinated by power terminals

By establishing the system state equation in the power system and optimizing the transfer function of the detector, the problem of difficulty in detecting power oscillation attacks is solved, and the security and stability of the power grid are improved.

CN118300894BActive Publication Date: 2024-09-03LISHUI POWER SUPPLY COMPANY OF STATE GRID ZHEJIANG ELECTRIC POWER +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410711970.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-03
Estimated Expiration
2044-06-04

AI Technical Summary

Technical Problem

It is difficult to effectively detect power oscillation attacks with existing technology, especially because the attack targets are dispersed and the dynamic and static attack methods are different, which increases the difficulty of detection and threatens the distribution security and stability of the power grid.

Method used

By establishing the system state equation of the target power system, introducing dynamic and static attack signals, constructing the transfer function of the initial detector, and optimizing to maximize the residual signal, the transfer function of the target detector is obtained to identify power oscillation attacks.

Benefits of technology

It achieves effective detection of power oscillation attacks on critical power information terminals, improves the power distribution security and stability of the power grid, and reduces computational complexity and overhead.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118300894B
    Figure CN118300894B
Patent Text Reader

Abstract

The present invention discloses a construction method and system of a power terminal-coordinated power oscillation attack detector, the construction method comprising: after establishing a power oscillation attack signal, introducing the attack signal into a first system state equation to obtain a second system state equation; obtaining a system response equation and a system output signal of a target power system through a virtual output equation and a second system state equation; constructing a first transfer function of an initial detector; and obtaining a residual signal generated by the initial detector according to the system output signal and the first transfer function; under the conditions that the first sub-residual signal is not zero, the second sub-residual signal is not zero, and the third sub-residual signal is zero, optimizing the first transfer function with the residual signal maximization as the goal, and obtaining a second transfer function of the target detector. The technical solution of the present invention can effectively detect power oscillation attacks at power key information terminals, thereby improving the power distribution safety and stability of the power grid.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart grid information security, and in particular to a method and system for constructing a power oscillation attack detector coordinated by a power terminal. Background Art

[0002] With the continuous development and widespread application of communication technology, artificial intelligence technology and Internet of Things technology, more and more IoT power key information terminals are introduced into smart grids, including household and industrial air conditioners, household water heaters, electric vehicles and other loads, smart meters and inverters and other equipment. These terminals can be remotely monitored and controlled through communication technology and Internet of Things technology.

[0003] Although the Internet of Things brings convenience, it also has security risks. On the one hand, the vulnerability of the Internet of Things system may be maliciously exploited to form a large-scale botnet, which can then maliciously manipulate the key information terminals of the power system. On the other hand, a considerable number of load aggregator platforms have emerged in recent years, which are also at risk of malicious intrusion. Once a large number of key information terminals of the power system are maliciously manipulated, attackers can inject power disturbances into the power grid by affecting their power, destroying the original balance of power supply and demand, leading to a series of unstable events, and even causing large-scale power outages, seriously affecting the normal lives of residents and the stable operation of the economy and society. The above attacks are called power oscillation attacks. According to the different attack signals, power oscillation attacks are divided into static attacks and dynamic attacks. Among them, static attacks are one-time malicious tampering, while dynamic attacks are malicious tamperings that are carried out repeatedly according to the state of the power system.

[0004] However, it is extremely difficult to detect power oscillation attacks. First, the targets of power oscillation attacks are key power information terminals. Since these terminals are usually scattered everywhere and may be controlled by users, it increases the difficulty of detecting power oscillation attacks. Secondly, the attack amplitude of static attacks is usually relatively large, while the attack amplitude of dynamic attacks is gradually increased. Such dynamic and static attack methods cannot use exactly the same methods, which also increases the difficulty of detecting power oscillation attacks. Summary of the invention

[0005] The purpose of the embodiments of the present invention is to provide a method and system for constructing a power oscillation attack detector coordinated with power terminals, which can effectively detect power oscillation attacks at power key information terminals, thereby improving the power distribution security and stability of the power grid.

[0006] In a first aspect, an embodiment of the present invention provides a method for constructing a power oscillation attack detector coordinated by a power terminal, comprising:

[0007] According to the topological structure of the target power system, a first system state equation is established;

[0008] Establishing a power oscillation attack signal; wherein the power oscillation attack signal includes a dynamic attack signal and a static attack signal;

[0009] Introducing the power oscillation attack signal into the input variable of the first system state equation to obtain a second system state equation;

[0010] Establishing a virtual output equation of the target power system, and obtaining a system response equation and a system output signal of the target power system according to the virtual output equation and the second system state equation;

[0011] constructing a first transfer function of an initial detector;

[0012] Obtaining a residual signal generated by the initial detector according to the system output signal and the first transfer function; wherein the residual signal is composed of a first sub-residual signal generated by a dynamic attack, a second sub-residual signal generated by a static attack, and a third sub-residual signal generated by a signal that is not attacked;

[0013] Under the condition that the first sub-residual signal is not zero, the second sub-residual signal is not zero and the third sub-residual signal is zero, the first transfer function is optimized with the goal of maximizing the residual signal to obtain a second transfer function of the target detector.

[0014] Optionally, establishing a first system state equation according to the topological structure of the target power system includes:

[0015] According to the voltage phase angle of the power generation node , the frequency of the power generation node and the voltage phase angle at the load node , combined into the state variables of the target power system ;

[0016] The first system state equation is determined by the following formula:

[0017] ,

[0018] , , ,

[0019] in, is the input variable of the first system state equation and A vector consisting of power demands of all load nodes in the target power system; , and are coefficient matrices; , and They are respectively , and The time derivative of is the identity matrix; , , and are all diagonal matrices whose order is the number of power generation nodes, and The diagonal elements of are the inertia parameters and damping parameters of the generator at each power generation node. and The diagonal elements of are the proportional control coefficient and the integral control coefficient of the PI controller of each generator; , , and are the admittance matrices of the target power system The submatrix in .

[0020] Optionally, establishing a power oscillation attack signal includes:

[0021] The power oscillation attack signal is established by the following formula:

[0022] ;

[0023] in, It is a static attack signal. is a step signal, It is a dynamic attack signal. is the gain matrix of the dynamic attack signal, is the proportional term of the node frequency.

[0024] Optionally, the step of introducing the power oscillation attack signal into an input variable of the first system state equation to obtain a second system state equation includes:

[0025] The power oscillation attack signal is introduced into the input variable of the first system state equation according to the following formula to obtain an updated input variable:

[0026] ;in, is the updated input variable, A vector consisting of power demands of all safety load nodes in the target power system;

[0027] Substitute the updated input variables into the first system state equation, and merge each variable element in the state variables to obtain the second system state equation.

[0028] Optionally, the second system state equation is specifically:

[0029] ,

[0030] , , , ,

[0031] ;

[0032] in, ; It is used to describe the state variables of the target power system when it is not attacked. The coefficient matrix of its own evolution; is the matrix related to dynamic attack, is the gain matrix of the dynamic attack signal; The coefficient matrix with dynamic attack effects added; A vector consisting of power demands of all safety load nodes in the target power system; is a step signal used to represent the static attack signal; , and are the voltage phase angles of the generating nodes , the frequency of the power generation node and the voltage phase angle at the load node The time derivative of is the identity matrix; , , and are all diagonal matrices whose order is the number of power generation nodes, and The diagonal elements of are the inertia parameters and damping parameters of the generator at each power generation node. and The diagonal elements of are the proportional control coefficient and the integral control coefficient of the PI controller of each generator; , , and are the admittance matrices of the target power system The sub-matrix in .

[0033] Optionally, the establishing a virtual output equation of the target power system, and obtaining a system response equation and a system output signal of the target power system according to the virtual output equation and the second system state equation, comprises:

[0034] The virtual output equation of the target power system is established by the following formula:

[0035] ;

[0036] in, For virtual output, is a row vector whose elements are all 1, and The number of elements contained is number of rows;

[0037] The second system state equation is combined with the virtual output equation by the following formula to obtain the system response equation of the target power system:

[0038] ,

[0039] , , , ;

[0040] in, , is the Laplace operator;

[0041] The system output signal of the target power system is obtained by the following formula:

[0042] ;in Output signal for the system.

[0043] Optionally, the first transfer function of constructing the initial detector is specifically:

[0044] The first transfer function of the initial detector is obtained according to the following formula:

[0045] ;

[0046] in, is the first transfer function; About A maximum number of And the dimension is -dimensional polynomial vector; is the preset denominator polynomial; , .

[0047] Optionally, obtaining the residual signal generated by the initial detector according to the system output signal and the first transfer function includes:

[0048] The residual signal generated by the initial detector is obtained by the following formula:

[0049] ;

[0050] in, is the residual signal; is the first sub-residual signal generated by the dynamic attack; is the second sub-residual signal generated by the static attack; is the third sub-residual signal generated by the unattacked signal.

[0051] Optionally, the step of optimizing the first transfer function with the goal of maximizing the residual signal under the condition that the first sub-residual signal is not zero, the second sub-residual signal is not zero, and the third sub-residual signal is zero, to obtain a second transfer function of the target detector includes:

[0052] The condition that the first sub-residual signal is not zero is specifically: ;

[0053] The condition that the second sub-residual signal is not zero is specifically: ;

[0054] The condition that the third sub-residual signal is zero is specifically: ;

[0055] Under all the conditions, the first transfer function is updated with the goal of maximizing the residual signal. , and obtain the second transfer function of the target detector.

[0056] Optionally, the step of optimizing the first transfer function with the goal of maximizing the residual signal under the condition that the first sub-residual signal is not zero, the second sub-residual signal is not zero, and the third sub-residual signal is zero, to obtain a second transfer function of the target detector includes:

[0057] All the conditions and the objectives are converted into a mathematical optimization model, which is:

[0058]

[0059]

[0060] in, , ; and ; , and All have The unit column vector of the row number, and only one element at any position is 1, and the other elements are 0; And it is a Dimensional square matrix; represents the two-norm, is an arbitrary finite constant; ; ;

[0061] By solving the mathematical optimization model, the first transfer function is updated. The coefficient vector of is used to obtain the second transfer function of the target detector.

[0062] In a second aspect, an embodiment of the present invention provides a system for constructing a power oscillation attack detector coordinated by a power terminal, including:

[0063] A first system state equation establishing module, used for establishing a first system state equation according to a topological structure of a target power system;

[0064] An attack signal establishing module, used to establish a power oscillation attack signal; wherein the power oscillation attack signal includes a dynamic attack signal and a static attack signal;

[0065] A second system state equation acquisition module, used for introducing the power oscillation attack signal into the input variable of the first system state equation to obtain a second system state equation;

[0066] A system output signal acquisition module, used to establish a virtual output equation of the target power system, and obtain a system response equation and a system output signal of the target power system according to the virtual output equation and the second system state equation;

[0067] A first transfer function building module, used to build a first transfer function of an initial detector;

[0068] A residual signal generating module, configured to obtain a residual signal generated by the initial detector according to the system output signal and the first transfer function; wherein the residual signal is composed of a first sub-residual signal generated by a dynamic attack, a second sub-residual signal generated by a static attack, and a third sub-residual signal generated by a signal that has not been attacked;

[0069] The target detector acquisition module is used to optimize the first transfer function with the goal of maximizing the residual signal under the condition that the first sub-residual signal is not zero, the second sub-residual signal is not zero and the third sub-residual signal is zero, so as to obtain a second transfer function of the target detector.

[0070] Compared with the prior art, the embodiment of the present invention provides a method and system for constructing a power oscillation attack detector coordinated by a power terminal, the construction method comprising: after establishing a dynamic attack signal and a static attack signal, introducing the attack signal into the input variable of the first system state equation to obtain a second system state equation; then obtaining the system response equation and the system output signal of the target power system through the virtual output equation and the second system state equation; then constructing the first transfer function of the initial detector; and obtaining the residual signal generated by the initial detector according to the system output signal and the first transfer function; finally, under the condition that the first sub-residual signal is not zero, the second sub-residual signal is not zero, and the third sub-residual signal is zero, optimizing the first transfer function with the goal of maximizing the residual signal, and obtaining the second transfer function of the target detector. The embodiment of the present invention can effectively detect power oscillation attacks at power key information terminals, thereby improving the power distribution security and stability of the power grid. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Figure 1 It is a flow chart of an embodiment of a method for constructing a power oscillation attack detector coordinated by a power terminal provided by the present invention;

[0072] Figure 2 It is a topological schematic diagram of a three-machine nine-node power system provided by the present invention;

[0073] Figure 3 It is a schematic diagram of the result of the target detector provided by the present invention detecting a dynamic attack;

[0074] Figure 4 It is a schematic diagram of the result of detecting a static attack by the target detector provided by the present invention;

[0075] Figure 5 It is a structural block diagram of an embodiment of a system for constructing a power oscillation attack detector coordinated by power terminals provided by the present invention. DETAILED DESCRIPTION

[0076] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this technical field without creative work are within the scope of protection of the present invention.

[0077] See also Figure 1 , is a flow chart of an embodiment of a method for constructing a power oscillation attack detector coordinated by a power terminal provided by the present invention.

[0078] The embodiment of the present invention provides a method for constructing a power oscillation attack detector coordinated by a power terminal, including steps S1 to S7, which are specifically as follows:

[0079] Step S1: establishing a first system state equation according to the topological structure of the target power system;

[0080] It should be noted that the first system state equation is an equation that describes the dynamic change of state variables in the target power system over time; wherein, the state variables in the embodiment of the present invention are composed of the voltage phase angle of the power generation node , the frequency of the power generation node and the voltage phase angle at the load node composition.

[0081] Step S2: establishing a power oscillation attack signal; wherein the power oscillation attack signal includes a dynamic attack signal and a static attack signal;

[0082] Step S3: introducing the power oscillation attack signal into the input variable of the first system state equation to obtain a second system state equation;

[0083] Step S4: establishing a virtual output equation of the target power system, and obtaining a system response equation and a system output signal of the target power system according to the virtual output equation and the second system state equation;

[0084] Step S5: constructing a first transfer function of an initial detector;

[0085] Step S6: obtaining a residual signal generated by the initial detector according to the system output signal and the first transfer function; wherein the residual signal is composed of a first sub-residual signal generated by a dynamic attack, a second sub-residual signal generated by a static attack, and a third sub-residual signal generated by a signal that has not been attacked;

[0086] Step S7: Under the condition that the first sub-residual signal is not zero, the second sub-residual signal is not zero and the third sub-residual signal is zero, the first transfer function is optimized with the goal of maximizing the residual signal to obtain a second transfer function of the target detector.

[0087] It should be noted that the system output signal The detector is equivalent to a tool that can convert the system output signal into a first output signal generated by a dynamic attack signal, a second output signal generated by a static attack signal, and a third output signal generated by a signal that has not been attacked. Convert to residual signal , and the purpose of designing the detector is to make the residual signal 0 under normal conditions, and to generate significant residual signals under static attack signals and dynamic attack signals. Therefore, under the conditions that the first sub-residual signal is not zero, the second sub-residual signal is not zero, and the third sub-residual signal is zero, the first transfer function initialized is optimized with the goal of maximizing the residual signal, and the second transfer function of the target detector is obtained, so that the target detector is used to adjust or "filter out" the residual signal output from the system. The irrelevant signal parts in the system are removed (avoiding false positive attacks under normal circumstances), leaving only the signal features related to potential attacks (used to indicate that the system has been attacked). The embodiment of the present invention transforms the detection problem into an optimization problem to find the optimal transfer function to obtain the target detector, realize the effective detection of power oscillation attacks at the power key information terminal, and thus improve the power distribution security and stability of the power grid.

[0088] In an optional embodiment, the step S1 described above of establishing a first system state equation according to the topology of the target power system includes:

[0089] According to the voltage phase angle of the power generation node , the frequency of the power generation node and the voltage phase angle at the load node , combined into the state variables of the target power system ;

[0090] The first system state equation is determined by the following formula:

[0091] ,

[0092] , , ,

[0093] in, is the input variable of the first system state equation and A vector consisting of power demands of all load nodes in the target power system; , and are coefficient matrices; , and They are respectively , and The time derivative of is the identity matrix; , , and are all diagonal matrices whose order is the number of power generation nodes, and The diagonal elements of are the inertia parameters and damping parameters of the generator at each power generation node. and The diagonal elements of are the proportional control coefficient and the integral control coefficient of the PI controller of each generator; , , and are the admittance matrices of the target power system The submatrix in .

[0094] In the specific implementation, firstly, according to the topological structure of the target power system, the order information of the target power system is obtained, including the system order , load node order and the order of the generating nodes , where the system order is defined as the number of all nodes in the system topology, the load node order is defined as the number of nodes containing loads, and the generation node order is defined as the number of nodes containing generation units. Figure 2 Taking the topological diagram of the three-machine nine-node power system shown in the figure as an example, the system order is obtained. , load node order and the order of the generating nodes . The voltage phase angle of the electrical node , the frequency of the power generation node and the voltage phase angle at the load node , combined into the state variables of the target power system , and according to the physical relationship in the operation process of the power system, the first system state equation (order 9) is sorted out as follows:

[0095] ;

[0096] The expanded form of the first system state equation is:

[0097] ;

[0098] in, is the input variable of the first system state equation and A vector consisting of power demands of all load nodes in the target power system; , and are coefficient matrices; , and They are respectively , and The time derivative of is the identity matrix; , , and are all diagonal matrices whose order is the number of power generation nodes, and The diagonal elements of are the inertia parameters and damping parameters of the generator at each power generation node. and The diagonal elements of are the proportional control coefficient and the integral control coefficient of the PI controller of each generator; , , and are the admittance matrices of the target power system The submatrix in .

[0099] In an optional embodiment, the step of establishing the power oscillation attack signal in step S2 includes:

[0100] The power oscillation attack signal is established by the following formula:

[0101] ;

[0102] in, It is a static attack signal. is a step signal, It is a dynamic attack signal. is the gain matrix of the dynamic attack signal, is the proportional term of the node frequency.

[0103] It should be noted that according to the attack mode of power oscillation attack, power oscillation attack signals are divided into two categories: static attack signals and dynamic attack signals. Usually, the static attack amplitude is larger, so the static attack signal Modeled as a step signal Dynamic attacks are usually carried out based on node frequency, so the dynamic attack signal Modeled as a proportional term of node frequency ;in, is the gain matrix of the dynamic attack signal, the number of rows is the number of load nodes, and the number of columns is the number of power generation nodes.

[0104] In an optional embodiment, the step S3 described above of introducing the power oscillation attack signal into the input variable of the first system state equation to obtain the second system state equation includes:

[0105] The power oscillation attack signal is introduced into the input variable of the first system state equation according to the following formula to obtain an updated input variable:

[0106] ;in, is the updated input variable, A vector consisting of power demands of all safety load nodes in the target power system;

[0107] Substitute the updated input variables into the first system state equation, and merge each variable element in the state variables to obtain the second system state equation.

[0108] It should be noted that, depending on whether the terminals in the power system are protected, the total load nodes can be divided into safe load nodes and vulnerable load nodes. Depend on and Composition, remember ;in, is a static attack signal, is a dynamic attack signal, then The expression form is updated to or Furthermore, the first system state equation of the target power system can be transformed into the intermediate state equation .

[0109] In an optional embodiment, the second system state equation in the above step S3 is:

[0110] ,

[0111] , , , ,

[0112] ;

[0113] in, ; It is used to describe the state variables of the target power system when it is not attacked. The coefficient matrix of its own evolution; is the matrix related to dynamic attack, is the gain matrix of the dynamic attack signal; The coefficient matrix with dynamic attack effects added; A vector consisting of power demands of all safety load nodes in the target power system; is a step signal used to represent the static attack signal; , and are the voltage phase angles of the generating nodes , the frequency of the power generation node and the voltage phase angle at the load node The time derivative of is the identity matrix; , , and are all diagonal matrices whose order is the number of power generation nodes, and The diagonal elements of are the inertia parameters and damping parameters of the generator at each power generation node. and The diagonal elements of are the proportional control coefficient and the integral control coefficient of the PI controller of each generator; , , and are the admittance matrices of the target power system The sub-matrix in .

[0114] In specific implementation, the embodiment of the present invention converts the power oscillation attack signal Substitute into the intermediate state equation , and merge each variable element in the equation (that is, the elements in the state variable Merge, so that Updated to ), the state equation of the second system is obtained as follows:

[0115] ;

[0116] The expanded form of the state equation of the second system is:

[0117] ;

[0118] in, , Obviously, It is used to describe the state variables of the target power system when it is not attacked. The coefficient matrix of its own evolution, is a matrix related to dynamic attack, then Added dynamic attack effects The coefficient matrix of .

[0119] In an optional embodiment, the step of establishing a virtual output equation of the target power system in step S4, and obtaining a system response equation and a system output signal of the target power system according to the virtual output equation and the second system state equation, includes:

[0120] The virtual output equation of the target power system is established by the following formula:

[0121] ;

[0122] in, For virtual output, is a row vector whose elements are all 1, and The number of elements contained is number of rows;

[0123] The second system state equation is combined with the virtual output equation by the following formula to obtain the system response equation of the target power system:

[0124] ,

[0125] , , , ;

[0126] in, , is the Laplace operator;

[0127] The system output signal of the target power system is obtained by the following formula:

[0128] in Output signal for the system.

[0129] It should be noted that in order to obtain the system output signal for power oscillation attack detection through the detector, it is necessary to introduce a virtual output equation and combine it with the second system state equation to obtain the system response equation of the target power system. Then, the system output signal is calculated through the system response equation.

[0130] In the specific implementation, firstly, the elements in the unmerged state variables are The intermediate state equation With the virtual output equation Combined, the expanded form of the intermediate system response equation is obtained:

[0131]

[0132] That is, the intermediate system response equation corresponding to the intermediate state equation is:

[0133] ;

[0134] , , , , ;

[0135] Then the second system state equation With the virtual output equation Combined with the above, the specific system response equation when the target power system is attacked by power oscillation is obtained:

[0136] ;

[0137] That is, the system response equation corresponding to the second system state equation (subject to static and dynamic attacks) is:

[0138] ;

[0139] in, ; .

[0140] The system output signal can be calculated from the system response equation corresponding to the second system state equation: :

[0141] ;

[0142] It can be seen that the output signal of the above system is The first output signal generated by the dynamic attack signal ( ), the second output signal generated by the static attack signal ( ) and the third output signal generated by the unattacked signal ( )composition.

[0143] In an optional embodiment, the first transfer function of the initial detector constructed in the above step S5 is specifically:

[0144] The first transfer function of the initial detector is obtained according to the following formula:

[0145] ;

[0146] in, is the first transfer function, About A maximum number of And the dimension is dimensional polynomial vector, is the preset denominator polynomial, , .

[0147] It should be noted that the first transfer function is the initialization equation of the detector, where About One dimensional polynomial vector, Equal to twice the number of state variables, the highest number is , the dimension refers to the number of exponential powers in the polynomial vector, and the degree refers to the highest exponent of s in the polynomial vector. The purpose of this is to adjust or "filter" the output signal from the system The signal parts that are not relevant to the detection are removed, leaving only the signal features related to potential power oscillation attacks. is the preset denominator polynomial. The selection criteria are that the order is greater than the order of the numerator polynomial. However, since the denominator order is too high, it will make the solution complicated. The order of is generally the order of the numerator polynomial plus one; in addition The root of , that is, the pole of the detector, is usually selected as a point close to the imaginary axis.

[0148] It is worth noting that with the increasing number of distributed renewable energy sources, the modeling complexity of the power system is increasing, and the order of the existing attack detection model also increases with the increase of the system dimension, which reduces the calculation speed under the same computing power conditions, affecting the real-time detection. In comparison, the order of the detector designed in the embodiment of the present invention is much smaller than the order of the target power system, which reduces the computing cost and computing overhead, realizes lightweight computing and can adapt to complex power grid environments, thereby improving the real-time detection.

[0149] In an optional embodiment, the step S6 of obtaining the residual signal generated by the initial detector according to the system output signal and the first transfer function includes:

[0150] The residual signal generated by the initial detector is obtained by the following formula:

[0151] ;

[0152] in, is the residual signal; is the first sub-residual signal generated by the dynamic attack; is the second sub-residual signal generated by the static attack; is the third sub-residual signal generated by the unattacked signal.

[0153] Specifically, the system output signal of the target power system After entering the detector, it is converted into a residual signal :

[0154] ;

[0155] According to Further expanding the above formula, we can get

[0156] ;

[0157] It can be seen that the residual signal The first sub-residual signal generated by the dynamic attack ( ), the second sub-residual signal generated by static attack ( ) and the third sub-residual signal generated by the unattacked signal ( ); among them, the third sub-residual signal is related to the normal operation of the system.

[0158] In an optional embodiment, in the above step S7, under the condition that the first sub-residual signal is not zero, the second sub-residual signal is not zero, and the third sub-residual signal is zero, optimizing the first transfer function with the goal of maximizing the residual signal to obtain the second transfer function of the target detector includes:

[0159] The condition that the first sub-residual signal is not zero is specifically: ;

[0160] The condition that the second sub-residual signal is not zero is specifically: ;

[0161] The condition that the third sub-residual signal is zero is specifically: ;

[0162] Under all the conditions, the first transfer function is updated with the goal of maximizing the residual signal. , and obtain the second transfer function of the target detector.

[0163] It should be noted that the purpose of the target detector is to convert the system output signal Convert to residual signal , the residual signal It can change significantly when the target power system is attacked, so it can be used to detect whether the target power system is attacked. That is, when the target power system is operating normally, this signal is expected is equal to zero, when attacked, Based on the above idea, the second transfer function of the target detector is obtained, that is, under the following conditions, the residual signal Maximizing the goal is to update the first transfer function , and the second transfer function of the target detector is obtained:

[0164]

[0165] Understandably, Used to ensure that no false alarms are generated under normal conditions; Used to ensure that dynamic attack signals can be detected, It is used to ensure that the static attack signal can generate enough residual signal to be recognized by the detector.

[0166] In another optional embodiment, under the condition that the first sub-residual signal is not zero, the second sub-residual signal is not zero, and the third sub-residual signal is zero, optimizing the first transfer function with the goal of maximizing the residual signal to obtain a second transfer function of the target detector includes:

[0167] All the conditions and the objectives are converted into a mathematical optimization model, which is:

[0168]

[0169]

[0170] in, , ; and ; , and All have The unit column vector of the row number, and only one element at any position is 1, and the other elements are 0; And it is a Dimensional square matrix; represents the two-norm, is an arbitrary finite constant; ; ;

[0171] By solving the mathematical optimization model, the first transfer function is updated. The coefficient vector of is used to obtain the second transfer function of the target detector.

[0172] Specifically, by The equation of the first sub-residual signal is not zero, the second sub-residual signal is not zero, and the third sub-residual signal is zero.

[0173] ; (1)

[0174] For the above formula (1), The details are as follows:

[0175] ; can be Convert to ,in is a row vector whose elements are all 1, and The number of elements is equal to The number of columns, so the above conditional equation (1) can be transformed into:

[0176] ; (2)

[0177] Furthermore, the polynomial Expand to ;in, are the polynomial coefficients. Similarly, the response matrix of the power system during normal operation is Expand to Therefore, the first condition in equation (2) Translates to:

[0178] ;

[0179] In the formula, ; .

[0180] The second condition in equation (2) Translates to:

[0181] ;

[0182] In the formula, , Used to characterize the detection sensitivity of the detector regarding dynamic attacks. , ; is a unit column vector, The number of rows is Only one element is 1, and the other elements are all 0. The position of element 1 is arbitrary. The specific element to be set to 1 can be set according to the convenience of solving the problem, as described later. and The same goes for this.

[0183] The third condition in equation (2) Translates to:

[0184] ;

[0185] In the formula, , Used to characterize the detection sensitivity of the detector regarding static attacks; , is a dimensional square matrix, that is, the number of rows of this square matrix is and The product of ), the number of columns is also .

[0186] In addition, to ensure that the polynomial in the detector The coefficient vector of To be practical and feasible, The norm of is constrained to ensure the maximum parameter range in optimization and prevent Infinity:

[0187] ;

[0188] In the formula, represents the two-norm, is an arbitrary finite constant.

[0189] Therefore, the above-mentioned conditions and the above-mentioned residual signal are maximized as the goal and converted into a mathematical optimization model, and then the polynomial in the above-mentioned transfer function is updated by solving the following mathematical optimization model: The coefficient vector of :

[0190]

[0191]

[0192] In the formula, The maximization of is equivalent to maximizing the residual signal as the goal. The embodiment of the present invention transforms the construction process of the power oscillation attack detector into a convex optimization problem for solution. The order of the designed target detector is much smaller than the system order of the target power system. It is a reduced-order detection method, which can reduce the computational complexity and computational cost to a certain extent and improve the real-time performance of the detection.

[0193] For example, the detection results of dynamic attack and static attack using target detector are as follows: Figure 3 and Figure 4 As shown in the figure is the residual signal The integral of Used to represent the residual signal energy.

[0194] See also Figure 5 , is a structural block diagram of an embodiment of a system for constructing a power oscillation attack detector coordinated by a power terminal provided by the present invention.

[0195] An embodiment of the present invention provides a system for constructing a power oscillation attack detector coordinated by a power terminal, including:

[0196] A first system state equation establishing module 11, used to establish a first system state equation according to a topological structure of a target power system;

[0197] An attack signal establishing module 12, used to establish a power oscillation attack signal; wherein the power oscillation attack signal includes a dynamic attack signal and a static attack signal;

[0198] A second system state equation acquisition module 13, used for introducing the power oscillation attack signal into the input variable of the first system state equation to obtain a second system state equation;

[0199] A system output signal acquisition module 14 is used to establish a virtual output equation of the target power system, and obtain a system response equation and a system output signal of the target power system according to the virtual output equation and the second system state equation;

[0200] A first transfer function building module 15, used to build a first transfer function of an initial detector;

[0201] A residual signal generating module 16, configured to obtain a residual signal generated by the initial detector according to the system output signal and the first transfer function; wherein the residual signal is composed of a first sub-residual signal generated by a dynamic attack, a second sub-residual signal generated by a static attack, and a third sub-residual signal generated by a signal that has not been attacked;

[0202] The target detector acquisition module 17 is used to optimize the first transfer function with the goal of maximizing the residual signal under the condition that the first sub-residual signal is not zero, the second sub-residual signal is not zero and the third sub-residual signal is zero, so as to obtain a second transfer function of the target detector.

[0203] It should be noted that the system for constructing a power oscillation attack detector coordinated by power terminals provided in the embodiments of the present invention can implement all the processes of the method for constructing a power oscillation attack detector coordinated by power terminals described in the above embodiments, and the functions of each module in the system and the technical effects achieved are respectively the same as the functions and technical effects achieved by the method for constructing a power oscillation attack detector coordinated by power terminals described in the above embodiments, and will not be repeated here. The embodiments of the present invention also provide a computer-readable storage medium, the computer-readable storage medium including a stored computer program; wherein the computer program, when running, controls the device where the computer-readable storage medium is located to execute the method for constructing a power oscillation attack detector coordinated by power terminals described in any of the above embodiments.

[0204] It should be noted that the system embodiment described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the system embodiment provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.

[0205] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for constructing a power oscillation attack detector coordinated by a power terminal, characterized in that: include: According to the topological structure of the target power system, a first system state equation is established; Establishing a power oscillation attack signal; wherein the power oscillation attack signal includes a dynamic attack signal and a static attack signal; Introducing the power oscillation attack signal into the input variable of the first system state equation to obtain a second system state equation; Establishing a virtual output equation of the target power system, and obtaining a system response equation and a system output signal of the target power system according to the virtual output equation and the second system state equation; constructing a first transfer function of an initial detector; Obtaining a residual signal generated by the initial detector according to the system output signal and the first transfer function; wherein the residual signal is composed of a first sub-residual signal generated by a dynamic attack, a second sub-residual signal generated by a static attack, and a third sub-residual signal generated by a signal that is not attacked; Under the condition that the first sub-residual signal is not zero, the second sub-residual signal is not zero, and the third sub-residual signal is zero, optimizing the first transfer function with the goal of maximizing the residual signal to obtain a second transfer function of the target detector; The first system state equation is: ; in, , is the voltage phase angle of the power generation node, is the frequency of the power generation node and is the voltage phase angle of the load node; is the input variable of the first system state equation and A vector consisting of power demands of all load nodes in the target power system; , and are coefficient matrices; for The time derivative of The virtual output equation is: ; in, For virtual output, is a row vector whose elements are all 1, and The number of elements contained is number of rows; The system response equation is: , , , , ; in, , is the Laplace operator; ; is the identity matrix; , It is used to describe the state variables of the target power system when it is not attacked. The coefficient matrix of its own evolution, is the matrix related to dynamic attack, Added dynamic attack effects The coefficient matrix of is a step signal used to represent the static attack signal; Output signal for the system; The first transfer function is: ; in, is the first transfer function; About A maximum number of And the dimension is -dimensional polynomial vector; is the preset denominator polynomial.

2. The method for constructing a power oscillation attack detector coordinated by power terminals according to claim 1, characterized in that: The step of establishing a first system state equation according to the topological structure of the target power system includes: The first system state equation is determined by the following formula: , , , , in, , and They are respectively , and The time derivative of , , and are all diagonal matrices whose order is the number of power generation nodes, and The diagonal elements of are the inertia parameters and damping parameters of the generator at each power generation node. and The diagonal elements of are the proportional control coefficient and the integral control coefficient of the PI controller of each generator; , , and are the admittance matrices of the target power system The submatrix in .

3. The method for constructing a power oscillation attack detector coordinated by power terminals according to claim 1, characterized in that: The step of establishing a power oscillation attack signal comprises: The power oscillation attack signal is established by the following formula: ; in, It is a static attack signal. is a step signal, It is a dynamic attack signal. is the gain matrix of the dynamic attack signal, is the proportional term of the node frequency.

4. The method for constructing a power oscillation attack detector coordinated by power terminals according to claim 2, characterized in that: The step of introducing the power oscillation attack signal into the input variable of the first system state equation to obtain the second system state equation comprises: The power oscillation attack signal is introduced into the input variable of the first system state equation according to the following formula to obtain an updated input variable: ;in, is the updated input variable, A vector consisting of power demands of all safety load nodes in the target power system; is a step signal and Used to indicate static attack signals; is the proportional term of the node frequency and Used to indicate dynamic attack signals. is the gain matrix of the dynamic attack signal; Substitute the updated input variables into the first system state equation, and merge each variable element in the state variables to obtain the second system state equation.

5. The method for constructing a power oscillation attack detector coordinated by power terminals according to claim 1, characterized in that: The second system state equation is specifically: , , , , , ; in, ; is the gain matrix of the dynamic attack signal; , and are the voltage phase angles of the generating nodes , the frequency of the power generation node and the voltage phase angle at the load node The time derivative of , , and are all diagonal matrices whose order is the number of power generation nodes, and The diagonal elements of are the inertia parameters and damping parameters of the generator at each power generation node. and The diagonal elements of are the proportional control coefficient and the integral control coefficient of the PI controller of each generator; , , and are the admittance matrices of the target power system The sub-matrix in .

6. The method for constructing a power oscillation attack detector coordinated by power terminals according to claim 5, characterized in that: The step of establishing a virtual output equation of the target power system and obtaining a system response equation and a system output signal of the target power system according to the virtual output equation and the second system state equation includes: The system output signal of the target power system is obtained by the following formula: ;in Output signal for the system.

7. The method for constructing a power oscillation attack detector coordinated by power terminals according to claim 6, characterized in that: The step of obtaining the residual signal generated by the initial detector according to the system output signal and the first transfer function comprises: The residual signal generated by the initial detector is obtained by the following formula: ; in, is the residual signal; is the first sub-residual signal generated by the dynamic attack; is the second sub-residual signal generated by the static attack; is the third sub-residual signal generated by the unattacked signal.

8. The method for constructing a power oscillation attack detector coordinated by power terminals according to claim 7, characterized in that: The step of optimizing the first transfer function with the goal of maximizing the residual signal under the condition that the first sub-residual signal is not zero, the second sub-residual signal is not zero, and the third sub-residual signal is zero, to obtain a second transfer function of the target detector includes: The condition that the first sub-residual signal is not zero is specifically: ; The condition that the second sub-residual signal is not zero is specifically: ; The condition that the third sub-residual signal is zero is specifically: ; Under all the conditions, the first transfer function is updated with the goal of maximizing the residual signal. , and obtain the second transfer function of the target detector.

9. The method for constructing a power oscillation attack detector coordinated by power terminals according to claim 7, characterized in that: The step of optimizing the first transfer function with the goal of maximizing the residual signal under the condition that the first sub-residual signal is not zero, the second sub-residual signal is not zero, and the third sub-residual signal is zero, to obtain a second transfer function of the target detector includes: All the conditions and the objectives are converted into a mathematical optimization model, which is: in, , ; and ; , and All have The unit column vector of the row number, and only one element at any position is 1, and the other elements are 0; And it is a Dimensional square matrix; represents the two-norm, is an arbitrary finite constant; ; ; By solving the mathematical optimization model, the first transfer function is updated. The coefficient vector of is used to obtain the second transfer function of the target detector.

10. A system for constructing a power oscillation attack detector coordinated by a power terminal, characterized in that: A method for constructing a power oscillation attack detector coordinated by a power terminal according to any one of claims 1 to 9, the system comprising: A first system state equation establishing module, used for establishing a first system state equation according to a topological structure of a target power system; An attack signal establishing module, used to establish a power oscillation attack signal; wherein the power oscillation attack signal includes a dynamic attack signal and a static attack signal; A second system state equation acquisition module, used for introducing the power oscillation attack signal into the input variable of the first system state equation to obtain a second system state equation; A system output signal acquisition module, used to establish a virtual output equation of the target power system, and obtain a system response equation and a system output signal of the target power system according to the virtual output equation and the second system state equation; A first transfer function building module, used to build a first transfer function of an initial detector; A residual signal generating module, configured to obtain a residual signal generated by the initial detector according to the system output signal and the first transfer function; wherein the residual signal is composed of a first sub-residual signal generated by a dynamic attack, a second sub-residual signal generated by a static attack, and a third sub-residual signal generated by a signal that has not been attacked; The target detector acquisition module is used to optimize the first transfer function with the goal of maximizing the residual signal under the condition that the first sub-residual signal is not zero, the second sub-residual signal is not zero and the third sub-residual signal is zero, so as to obtain a second transfer function of the target detector.