Circuit parameter detection method, device, computer equipment and storage medium

By iteratively processing the circuit parameters and using the relational formula to narrow down the operating range, abnormal circuit parameters can be accurately identified, solving the problem of detection difficulties in existing technologies and improving the safety of power systems.

CN115469207BActive Publication Date: 2025-10-28SHENZHEN POWER SUPPLY BUREAU
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211005150.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-22
Publication Date
2025-10-28
Estimated Expiration
2042-08-22

AI Technical Summary

Technical Problem

Existing circuit parameter detection methods cannot effectively and accurately detect abnormal circuit parameters when the difference between abnormal circuit parameters and normal operating circuit parameters is small, leading to potential safety hazards to the power grid.

Method used

By obtaining the operating range and relational formula of the first circuit parameter of the preset circuit, the circuit parameter is iteratively processed using the first relational formula and the second relational formula to narrow down the operating range and determine whether the circuit parameter value is outside the target operating range, thereby determining whether it is an abnormal circuit parameter.

Benefits of technology

This improves the accuracy of detecting abnormal circuit parameters, avoids safety hazards caused by failure to detect them in a timely manner, and enhances the safety of the power system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115469207B_ABST
    Figure CN115469207B_ABST
Patent Text Reader

Abstract

This disclosure relates to a method, apparatus, computer device, storage medium, and computer program product for detecting circuit parameters. The method includes: obtaining a first operating range, a first relational expression, and a second relational expression for a first circuit parameter of a preset circuit, wherein the first relational expression and the second relational expression include the first circuit parameter; inputting the first operating range into the first relational expression to obtain a second operating range for the second circuit parameter; inputting the second operating range into the second relational expression to obtain a target operating range for the first circuit parameter; and determining that the first circuit parameter value is an abnormal circuit parameter value if the value of the first circuit parameter of the preset circuit is outside the target operating range. This method can accurately and effectively detect abnormal circuit parameters, improving the safety of power systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of power grid technology, and in particular to a method, apparatus, computer equipment, and storage medium for detecting circuit parameters. Background Technology

[0002] Existing power distribution networks cover vast areas with complex and diverse terrain features, thus primarily employing wireless communication. With wireless communication, attackers may inject erroneous data to modify transmitted data, causing abnormal circuit parameters and threatening power grid security. Therefore, it is crucial to promptly detect abnormal circuit parameters and implement appropriate security measures to mitigate potential threats. Current methods for detecting circuit parameters typically identify those that deviate significantly from historical normal operating parameters as abnormal circuit parameters.

[0003] However, this method cannot effectively and accurately detect abnormal circuit parameters when the difference between abnormal circuit parameters and normal operating circuit parameters is small. Summary of the Invention

[0004] Therefore, it is necessary to provide a method, apparatus, computer device, storage medium, and computer program product for accurately and effectively detecting abnormal circuit parameters, in order to address the aforementioned technical problems.

[0005] In a first aspect, embodiments of this disclosure provide a method for detecting circuit parameters. The method includes:

[0006] Obtain the first operating range, first relation, and second relation of the first circuit parameters of the preset circuit, wherein the first relation and the second relation include the first circuit parameters;

[0007] By inputting the first operating range into the first relational expression, the second operating range of the second circuit parameters is obtained;

[0008] Input the second operating range into the second relational expression to obtain the target operating range of the first circuit parameters;

[0009] If the first circuit parameter value of the preset circuit is outside the target operating range, the first circuit parameter value is determined to be an abnormal circuit parameter value.

[0010] In one embodiment, the step of inputting the second operating range into the second relational expression to obtain the target operating range of the first circuit parameters includes:

[0011] Input the second operating range into the second relational expression to obtain the first intermediate operating range of the first circuit parameters;

[0012] Repeatedly input the first intermediate operating range into the first relational expression to obtain the second intermediate operating range of the second circuit parameters, and input the second intermediate operating range into the second relational expression to obtain a new first intermediate operating range, until the preset condition is met;

[0013] A first intermediate operating range that satisfies the preset conditions is determined as the first target operating range of the first circuit parameters, and a second intermediate operating range that satisfies the preset conditions is determined as the second target operating range of the second circuit parameters.

[0014] When the first circuit parameter value of the preset circuit is outside the target operating range, determining the first circuit parameter value as an abnormal circuit parameter value includes:

[0015] If the first circuit parameter value of the preset circuit is outside the first target operating range, the first circuit parameter value is determined to be an abnormal circuit parameter value, and / or,

[0016] If the second circuit parameter value of the preset circuit is outside the second target operating range, the second circuit parameter value is determined to be an abnormal circuit parameter value.

[0017] In one embodiment, the second relational expression includes a first sub-relational expression and a second sub-relational expression; the step of inputting the second operating range into the second relational expression to obtain the target operating range of the first circuit parameters includes:

[0018] Input the second operating range into the first sub-relation to obtain the third operating range of the third circuit parameters;

[0019] The third operating range is input into the second sub-relation to obtain the target operating range of the first circuit parameters.

[0020] In one embodiment, the first circuit parameter includes circuit voltage, the second circuit parameter includes preset node current, and the third circuit parameter includes the current of the preset circuit.

[0021] In one embodiment, the operating range is set to be represented by a relative distance method.

[0022] In one embodiment, the first circuit parameter includes circuit voltage; the first operating range for obtaining the first circuit parameter of the preset circuit includes:

[0023] Obtain the maximum and minimum voltage values ​​of a preset circuit under different operating conditions of the power system;

[0024] The first operating range of the first circuit parameters of the preset circuit is determined based on the maximum voltage value and the minimum voltage value.

[0025] Secondly, embodiments of this disclosure also provide a circuit parameter detection device. The device includes:

[0026] The acquisition module is used to acquire the first operating range, the first relational expression, and the second relational expression of the first circuit parameters of the preset circuit, wherein the first relational expression and the second relational expression include the first circuit parameters;

[0027] The first input module is used to input the first operating range into the first relational expression to obtain the second operating range of the second circuit parameters;

[0028] The second input module is used to input the second operating range into the second relational expression to obtain the target operating range of the first circuit parameters;

[0029] The determination module is used to determine that the first circuit parameter value is an abnormal circuit parameter value when the first circuit parameter value of the preset circuit is outside the target operating range.

[0030] In one embodiment, the second input module includes:

[0031] The first input submodule is used to input the second operating range into the second relational expression to obtain the first intermediate operating range of the first circuit parameters;

[0032] The execution module is used to repeatedly execute the process of inputting the first intermediate operating range into the first relational expression to obtain the second intermediate operating range of the second circuit parameters, and inputting the second intermediate operating range into the second relational expression to obtain a new first intermediate operating range, until the preset conditions are met;

[0033] The first determining submodule is used to determine a first intermediate operating range that satisfies the preset conditions as a first target operating range of the first circuit parameters, and a second intermediate operating range that satisfies the preset conditions as a second target operating range of the second circuit parameters.

[0034] The determining module includes:

[0035] The second determining submodule is used to determine that the first circuit parameter value is an abnormal circuit parameter value when the first circuit parameter value of the preset circuit is outside the first target operating range, and / or,

[0036] The third determining submodule is used to determine that the second circuit parameter value is an abnormal circuit parameter value when the second circuit parameter value of the preset circuit is outside the second target operating range.

[0037] In one embodiment, the second relation includes a first sub-relation and a second sub-relation; the second input module includes:

[0038] The second input submodule is used to input the second operating range into the first sub-relation to obtain the third operating range of the third circuit parameters;

[0039] The third input submodule is used to input the third operating range into the second sub-relation to obtain the target operating range of the first circuit parameters.

[0040] In one embodiment, the first circuit parameter includes circuit voltage, the second circuit parameter includes preset node current, and the third circuit parameter includes the current of the preset circuit.

[0041] In one embodiment, the operating range is set to be represented by a relative distance method.

[0042] In one embodiment, the first circuit parameter includes circuit voltage; the acquisition module includes:

[0043] The acquisition submodule is used to acquire the maximum and minimum voltage values ​​of preset circuits under different operating conditions of the power system;

[0044] The fourth determining submodule is used to determine the first operating range of the first circuit parameters of the preset circuit based on the maximum voltage value and the minimum voltage value.

[0045] Thirdly, embodiments of this disclosure also provide a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the method described in any one of the embodiments of this disclosure.

[0046] Fourthly, embodiments of this disclosure also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the steps of the method described in any one of the embodiments of this disclosure.

[0047] Fifthly, embodiments of this disclosure also provide a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps of the method described in any one of the embodiments of this disclosure.

[0048] In this embodiment, a first operating range of a first circuit parameter of a preset circuit is obtained, along with a first relational expression and a second relational expression including the first circuit parameter. After inputting the first operating range into the first relational expression, a second operating range of the second circuit parameter in the first relational expression is obtained. Then, the second operating range is input into the second relational expression to obtain the target operating range of the first circuit parameter, thereby narrowing the operating range of the first circuit parameter and making the normal operating range more accurate. When the value of the first circuit parameter of the preset circuit is outside the target operating range, the first circuit parameter value is determined to be an abnormal circuit parameter value, realizing the monitoring of abnormal circuit parameter values. Furthermore, due to the improved accuracy of the operating range, abnormal circuit parameter values ​​that are close to the normal operating range can be detected more accurately and effectively, avoiding safety hazards caused by the inability to detect parameter anomalies in a timely manner and improving the safety of the power system. Attached Figure Description

[0049] Figure 1 This is a diagram illustrating the application environment of a circuit parameter detection method in one embodiment.

[0050] Figure 2 This is a flowchart illustrating a method for detecting circuit parameters in one embodiment;

[0051] Figure 3 This is a flowchart illustrating a method for detecting circuit parameters in one embodiment;

[0052] Figure 4 This is a schematic diagram illustrating the distribution of injected erroneous data in one embodiment;

[0053] Figure 5 This is a structural block diagram of a circuit parameter detection device in one embodiment;

[0054] Figure 6 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0055] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the embodiments of this disclosure will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the embodiments of this disclosure and are not intended to limit the embodiments of this disclosure.

[0056] The circuit parameter detection method provided in this disclosure can be applied to, for example... Figure 1In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or located in the cloud or on other network servers. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. Server 104 can be implemented using a standalone server or a server cluster consisting of multiple servers.

[0057] In one embodiment, such as Figure 2 As shown, a method for detecting circuit parameters is provided, which can be applied to... Figure 1 Taking the terminal in the example, the explanation includes the following steps:

[0058] Step S110: Obtain the first operating range, first relational expression, and second relational expression of the first circuit parameters of the preset circuit, wherein the first relational expression and the second relational expression include the first circuit parameters;

[0059] Specifically, a power system architecture typically includes multiple sub-circuits, and the preset circuit in this embodiment is usually at least a part of the power system architecture. Circuit parameters may include, but are not limited to, the circuit's voltage, current, and power.

[0060] In this embodiment of the disclosure, a first operating range of the first circuit parameters of a preset circuit is obtained. In one example, the first operating range can be determined based on the circuit parameters corresponding to different operating states of the circuit, can be obtained by analyzing the normal historical operating data of the circuit, or can be obtained by manually determining and inputting an operating range instruction based on experience. The first operating range is the range obtained under the normal operating state of the circuit. A first relational expression and a second relational expression are obtained, which are typically relational expressions of the circuit parameters of the preset circuit. Both the first and second relational expressions include the first circuit parameters. In one example, the first and second relational expressions are equations of circuit parameters obtained based on circuit principles and circuit laws.

[0061] Step S120: Input the first operating range into the first relational expression to obtain the second operating range of the second circuit parameters;

[0062] In this embodiment of the disclosure, a first operating range is input into a first relational expression to obtain a second operating range of the second circuit parameter. The first relational expression further includes the second circuit parameter, meaning it contains the relationship between the first and second circuit parameters. Based on the operating range of the first circuit parameter, the operating range corresponding to the second circuit parameter can be obtained. The first relational expression can be one or more circuit parameter relations.

[0063] Step S130: Input the second operating range into the second relational expression to obtain the target operating range of the first circuit parameters;

[0064] In this embodiment, the second operating range of the second circuit parameter is input to the second relational expression, and the target operating range of the first circuit parameter is output through the second relational expression. The second relational expression further includes the second circuit parameter, and the target operating range of the first circuit parameter is a subset of the first operating range. In one example, the second relational expression can be one or more circuit parameter relations. It is understood that the first operating range is the operating range under normal circuit conditions; therefore, the target operating range obtained by narrowing the operating range using the first operating range and the circuit parameter relations can be considered the operating range under normal circuit conditions.

[0065] Step S140: If the first circuit parameter value of the preset circuit is outside the target operating range, the first circuit parameter value is determined to be an abnormal circuit parameter value.

[0066] In this embodiment of the disclosure, when the first circuit parameter value of the preset circuit is outside the target operating range, it is considered that the circuit parameter value exceeds the operating range under normal circuit operation, and the first circuit parameter value is determined to be an abnormal circuit parameter value. In one example, during the operation of the preset circuit, the first circuit parameter value of the preset circuit is acquired in real time, and it is determined whether the first circuit parameter value is within the target operating range. When the first circuit parameter value is within the target operating range, it can be considered that the circuit parameter value is a normal parameter value, there is no erroneous data injection or there is erroneous data injection that does not affect the operation of the circuit, and no processing is required. In one example, after confirming an abnormal circuit parameter value, a warning message corresponding to the abnormal circuit parameter value can be sent to facilitate subsequent processing measures. In one example, the target operating range of other circuit parameters of the circuit can also be obtained based on the target operating range of the first circuit parameter, and the other circuit parameter values ​​of the circuit can be monitored to determine whether they are abnormal circuit parameter values. In one example, the circuit parameters of the entire preset power system can be monitored based on multiple target operating ranges of the first circuit parameter values ​​of multiple preset circuits in the preset power system. For example, a sensor can be set on each branch, and the operating status of each branch can be determined based on the first circuit parameter values ​​detected by the sensor. Alternatively, the total target operating range of the first circuit parameters of the bus of the entire preset power system can be obtained based on the target operating range of the first circuit parameters of each branch, and the first circuit parameter values ​​of the bus can be monitored based on the total target operating range.

[0067] In this embodiment, a first operating range of a first circuit parameter of a preset circuit is obtained, along with a first relational expression and a second relational expression including the first circuit parameter. After inputting the first operating range into the first relational expression, a second operating range of the second circuit parameter in the first relational expression is obtained. Then, the second operating range is input into the second relational expression to obtain the target operating range of the first circuit parameter, thereby narrowing the operating range of the first circuit parameter and making the normal operating range more accurate. When the value of the first circuit parameter of the preset circuit is outside the target operating range, the first circuit parameter value is determined to be an abnormal circuit parameter value, realizing the monitoring of abnormal circuit parameter values. Furthermore, due to the improved accuracy of the operating range, abnormal circuit parameter values ​​that are close to the normal operating range can be detected more accurately and effectively, avoiding safety hazards caused by the inability to detect parameter anomalies in a timely manner and improving the safety of the power system.

[0068] In one embodiment, inputting the second operating range into the second relational expression to obtain the target operating range of the first circuit parameters includes:

[0069] Input the second operating range into the second relational expression to obtain the first intermediate operating range of the first circuit parameters;

[0070] Repeatedly input the first intermediate operating range into the first relational expression to obtain the second intermediate operating range of the second circuit parameters, and input the second intermediate operating range into the second relational expression to obtain a new first intermediate operating range, until the preset condition is met;

[0071] A first intermediate operating range that satisfies the preset conditions is determined as the first target operating range of the first circuit parameters, and a second intermediate operating range that satisfies the preset conditions is determined as the second target operating range of the second circuit parameters.

[0072] When the first circuit parameter value of the preset circuit is outside the target operating range, determining the first circuit parameter value as an abnormal circuit parameter value includes:

[0073] If the first circuit parameter value of the preset circuit is outside the first target operating range, the first circuit parameter value is determined to be an abnormal circuit parameter value, and / or,

[0074] If the second circuit parameter value of the preset circuit is outside the second target operating range, the second circuit parameter value is determined to be an abnormal circuit parameter value.

[0075] In this embodiment, when determining the target operating range of the first circuit parameters, the second operating range is input into the second relational expression to obtain the first intermediate operating range of the first circuit parameters; the first intermediate operating range is then input into the first relational expression again to obtain the second intermediate operating range of the second circuit parameters; the second intermediate operating range is then input into the second relational expression to obtain a new first intermediate operating range; and then the new first intermediate operating range is input into the first relational expression to obtain a new second intermediate operating range. The above steps are repeated, iterating through each intermediate operating range input into the corresponding relational expression until a preset condition is met. The preset condition is typically set in advance based on the actual application scenario. In one example, the preset condition could be that the number of repetitions meets a preset number, or that the first and second intermediate operating ranges no longer shrink. The smallest first and second intermediate operating ranges can be used as the first and second intermediate operating ranges that meet the preset condition. The first and second intermediate operating ranges that meet the preset condition are then used as the first target operating range and the second target operating range. When the preset circuit is running, it is determined whether the value of the first circuit parameter is within the first target operating range. If the value of the first circuit parameter is outside the first target operating range, the first circuit parameter is determined to be an abnormal circuit parameter value. Similarly, it is determined whether the value of the second circuit parameter is within the second target operating range. If the value of the second circuit parameter is outside the second target operating range, the second circuit parameter is determined to be an abnormal circuit parameter value. Typically, if any one circuit parameter is an abnormal circuit parameter value, the circuit's operating state is abnormal, and an early warning message needs to be sent so that maintenance personnel can take targeted measures to handle the situation.

[0076] In this embodiment, the operating ranges of the first and second circuit parameters are iteratively processed using a first relation and a second relation to obtain a target operating range that meets preset conditions. This further narrows the operating range of the circuit parameters under normal operating conditions, improves the accuracy of the operating range of the circuit parameters, and thus enhances the accuracy of judging abnormal circuit parameter values, thereby further ensuring the safety of the power system.

[0077] In one embodiment, such as Figure 3 As shown, the second relational expression includes a first sub-relational expression and a second sub-relational expression; the step of inputting the second operating range into the second relational expression to obtain the target operating range of the first circuit parameters includes:

[0078] Step S131: Input the second operating range into the first sub-relation to obtain the third operating range of the third circuit parameters;

[0079] Step S132: Input the third operating range into the second sub-relation to obtain the target operating range of the first circuit parameters.

[0080] In this embodiment, the second relational expression consists of two sub-relational expressions: a first sub-relational expression and a second sub-relational expression. The second operating range is input into the first sub-relational expression to obtain the third operating range of the third circuit parameter, wherein the first sub-relational expression includes both the second and third circuit parameters. The obtained third operating range is input into the second sub-relational expression to obtain the target operating range of the first circuit parameter, wherein the second sub-relational expression includes both the first and third circuit parameters. In one example, the first and second sub-relational expressions are typically formulas that reflect the correlation between circuit parameters.

[0081] In this embodiment of the disclosure, the second relation includes a first sub-relation and a second sub-relation. The target operating range of the first circuit parameter is obtained through the first and second sub-relations. A third circuit parameter is introduced. By limiting the operating range of the circuit parameter through multiple parameters, the accuracy of the target operating range is further improved, thereby improving the accuracy of judging abnormal circuit parameter values ​​and further ensuring the safety of the power system.

[0082] In one embodiment, the first circuit parameter includes circuit voltage, the second circuit parameter includes preset node current, and the third circuit parameter includes the current of the preset circuit.

[0083] In this embodiment, the first circuit parameter includes circuit voltage, the second circuit parameter includes a preset node current, and the third circuit parameter includes the current of a preset circuit. The operating range of the circuit voltage is obtained, and this operating range is input into a first relational expression to obtain the operating range of the preset node current. The operating range of the preset node current is then input into a first sub-relational expression to obtain the operating range of the current in the preset circuit. Finally, the operating range of the current in the preset circuit is input into a second sub-relational expression to obtain the target operating range of the circuit voltage. In one example, the preset node current can be the node current of a node selected in the preset circuit based on the actual application scenario.

[0084] In this embodiment, the target operating range of the voltage can be obtained by measuring voltage, node current, and circuit current. Furthermore, the circuit parameter values ​​can be monitored, and it is possible to determine whether there are abnormal voltage values ​​during circuit operation based on the target operating range of the circuit voltage. This improves the accuracy of abnormal circuit parameter value judgment and ensures the safety of the power system.

[0085] In one embodiment, the operating range is set to be represented by a relative distance method.

[0086] In this embodiment of the disclosure, the operating range of the circuit parameters is set to be represented by the relative distance method. The upper and lower bounds of the circuit parameters are determined according to the maximum and minimum values ​​of the operating range of the circuit parameters, and the operating range of the circuit parameters is represented by the upper and lower bounds according to the relative distance method.

[0087] In one example, suppose Y is a variable. This is the upper bound (similar overlines all indicate the upper bound). y This is the lower bound (similar underscores all indicate lower bounds). Using RDM (Relative-Distance-Measure), it can be converted to:

[0088]

[0089] α y The value range is from 0 to 1.

[0090] In RDM, addition, subtraction, multiplication, and division operations can be performed:

[0091] If another power quality indicator is X Effective attack data that is difficult to detect can be represented as:

[0092]

[0093] The operations between X and Y are:

[0094] addition:

[0095]

[0096] Subtraction:

[0097]

[0098] multiplication:

[0099]

[0100] division:

[0101]

[0102] In addition to the above operations, RDM also satisfies the commutative, associative, distributive, and multiplicative factor elimination properties. That is, in RDM, if there is a variable Z, it can be directly calculated using the associative law.

[0103] In this embodiment, the operating range of circuit parameters is identified by the relative distance method, and the parameters are substituted into the formula for calculation. The calculation is performed according to the calculation law in the relative distance method, which makes it easier and more convenient to obtain the operating range of circuit parameters, improves the efficiency of determining the target operating range, and enables the target operating range to be determined more timely and effectively according to the circuit conditions, thereby ensuring the safety of the power system.

[0104] In one embodiment, the first circuit parameter includes circuit voltage; the first operating range for obtaining the first circuit parameter of the preset circuit includes:

[0105] Obtain the maximum and minimum voltage values ​​of a preset circuit under different operating conditions of the power system;

[0106] The first operating range of the first circuit parameters of the preset circuit is determined based on the maximum voltage value and the minimum voltage value.

[0107] In this embodiment, the first circuit parameter includes the circuit voltage. The maximum and minimum voltage values ​​of the preset circuit under different operating conditions of the power system are obtained, and the maximum voltage value is used as the upper limit, and the minimum voltage value as the lower limit, to obtain the operating range of the first circuit parameter of the preset circuit. In one example, different operating conditions may include abundant water, abundant water, low water, high water, and low water. These four conditions represent four typical operating modes of the power system and also four typical power flow patterns. Abundant water refers to the maximum operating mode of the system during the wet season, abundant water refers to the minimum operating mode of the system during the wet season, low water refers to the maximum operating mode of the system during the dry season, and low water refers to the minimum operating mode of the system during the dry season. In another example, different operating conditions may also include the operating conditions of the power system during peak electricity consumption season and the operating conditions of the power system during off-peak electricity consumption season.

[0108] In this embodiment, the operating range of circuit voltage is determined by the operating state of the power system. Since the voltage in the power system is usually relatively stable, the operating range of the voltage obtained by determining the voltage value under different operating states is more stable and accurate compared to other circuit parameters. This can improve the accuracy of the target operating range, more accurately determine abnormal circuit parameter values, and ensure the safety of the power system.

[0109] Figure 4 This is a distribution map of injected erroneous data according to an exemplary embodiment. For an attacker to achieve an effective attack, the injected erroneous data needs to differ significantly from the normal data. When the difference between the injected erroneous data and the normal data is large, i.e., distributed in a pattern such as... Figure 4 When the easily detectable segment is shown, it can be easily detected; when the difference between the injected erroneous data and the normal operating data is very small, that is, when it is distributed in areas such as... Figure 4When invalid attack data segments are shown, the impact on the power system is relatively small and usually does not threaten the security of the power system; however, when the injected erroneous data is distributed in areas such as... Figure 4 When the effective attack segment shown is encountered, it will create security risks that are not easily detected. This embodiment of the disclosure determines the target operating range by limiting the circuit's operating range; this embodiment can be understood as... Figure 4 In the invalid supply data segment, when the circuit parameters are outside the target operating range, the circuit parameter values ​​at this time can be considered as abnormal circuit parameter values, thereby effectively identifying the injected erroneous data in the effective attack segment that is difficult to detect, and ensuring the safety of the power system.

[0110] In one embodiment, a method for detecting circuit parameters is provided. In this embodiment, the relationship between the circuit parameters is obtained as follows: the grid voltage and current are essentially a vector, therefore the DC current can be expressed as shown in equation (7), that is, the current amplitude of branch ij. Through the imaginary part Wajitsube It can be calculated.

[0111]

[0112] For ease of explanation, let's set... Can Represented using RDM, i.e., (rdm).

[0113]

[0114]

[0115]

[0116] Based on the properties of RMD, equation (7) can be expanded using equations (8), (9), and (10).

[0117] A similar method can be used to obtain the RMD relationship between voltage amplitude and the imaginary and real parts of voltage.

[0118] For any branch ij, according to Kirchhoff's current law, we can obtain (11) and (12), where and This represents the real and imaginary parts of the current flowing through node j.

[0119]

[0120]

[0121] Based on the power flow of the power system, i.e., the relationship between current, active power, reactive power, and voltage, equations (13) and (14) are obtained. That is, the real part of the current at node j is calculated. virtual part In the formula P m j Indicates active power amplitude, Q m j Represents reactive power amplitude, e j and f j These represent the imaginary and real parts of the voltage, respectively.

[0122]

[0123]

[0124] Substituting equations (13) and (14) into equations (11) and (12) respectively, we can obtain...

[0125]

[0126]

[0127] Similarly, voltage and current, active power and reactive power satisfy the relationship of equation (17), which is essentially the same as equations (15) and (16).

[0128]

[0129] In equation (17), V j =e j +f j ,

[0130] Similarly, equation (17) can be expanded into RDM form.

[0131] Based on the relationship between the voltage and current of branch ij, equations (18) and (19) can be obtained, r ij x ij These represent the resistance and reactance between branches ij, respectively. These two parameters can be calculated by consulting the manual based on the line model.

[0132]

[0133]

[0134] Equations (18) and (19) can be expanded into RDM form.

[0135] After obtaining the above circuit parameter relationships, the next step is to determine the target operating range of the circuit parameters.

[0136] First, initialize the data. For ease of representation, we will use [] to denote the RDM form. Let the initial voltage value of node j be... The imaginary and real parts of the voltage can then be obtained.

[0137]

[0138]

[0139] The voltage initialization value can be obtained based on the four power flow operation modes of the power grid, namely, the minimum value under the four modes of abundant flow, abundant flow, dry flow, and dry flow. The lower bound is taken as the maximum value, and the upper bound is taken as the maximum value. Accordingly, we obtain... The minimum and maximum phase angles under the four operating modes are used as The initial value is chosen similarly for the active and reactive power ranges.

[0140] Since it is difficult to determine a reasonable range for current variation with load, it can be assumed that the current varies in the range of [-n, n], where n can take a large value. The specific range can be estimated based on the line current conditions.

[0141] Then, the operating range, or the operating interval, is narrowed down. The specific process is as follows:

[0142] Step 1, narrow down the current range at node j: Substituting into equations (13) and (14), we can calculate... and The current range is determined by finding the intersection of this range and the initialization range, thereby narrowing its range.

[0143] Step 2, narrowing the current range of branch ij: Substitute the current range of j from step 1 into equations (11) and (12) to calculate... and The current range is determined by finding the intersection of this range and the initialization range, thereby narrowing its range.

[0144] Step 3, reduce the imaginary and real parts of the voltage: (This is the process from step 2...) and Substituting the intervals into equations (18) and (19), we can calculate e. j and f j The voltage range is narrowed down by taking the intersection of this range and the initialization range.

[0145] Step 4, take the e obtained in step 3 j and f j Substitute the voltage range back into step 1 and repeat the calculation until [U j Until it remains unchanged.

[0146] Through the above steps, various power quality indicators can be obtained, namely the upper and lower bounds of different circuit parameters. This means that data within these ranges is reasonable and does not affect power grid decision analysis. When power quality indicators fall outside the calculated ranges, it can be considered that erroneous data has been injected. This embodiment effectively and accurately identifies abnormal parameters during power system operation, thereby determining the injection of erroneous data and ensuring the safety of the power system.

[0147] It should be understood that although the steps in the flowcharts of the accompanying drawings are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the accompanying drawings may include multiple steps or stages, which are not necessarily completed at the same time, but may be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but may be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0148] Based on the same inventive concept, this disclosure also provides a circuit parameter detection device for implementing the circuit parameter detection method described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations of one or more circuit parameter detection device embodiments provided below can be found in the limitations of the circuit parameter detection method described above, and will not be repeated here.

[0149] In one embodiment, such as Figure 5 As shown, a circuit parameter detection device 500 is provided, comprising:

[0150] The acquisition module 510 is used to acquire the first operating range, the first relational expression, and the second relational expression of the first circuit parameters of the preset circuit, wherein the first relational expression and the second relational expression include the first circuit parameters;

[0151] The first input module 520 is used to input the first operating range into the first relational expression to obtain the second operating range of the second circuit parameters;

[0152] The second input module 530 is used to input the second operating range into the second relational expression to obtain the target operating range of the first circuit parameters;

[0153] The determination module 540 is used to determine that the first circuit parameter value is an abnormal circuit parameter value when the first circuit parameter value of the preset circuit is outside the target operating range.

[0154] In one embodiment, the second input module includes:

[0155] The first input submodule is used to input the second operating range into the second relational expression to obtain the first intermediate operating range of the first circuit parameters;

[0156] The execution module is used to repeatedly execute the process of inputting the first intermediate operating range into the first relational expression to obtain the second intermediate operating range of the second circuit parameters, and inputting the second intermediate operating range into the second relational expression to obtain a new first intermediate operating range, until the preset conditions are met;

[0157] The first determining submodule is used to determine a first intermediate operating range that satisfies the preset conditions as a first target operating range of the first circuit parameters, and a second intermediate operating range that satisfies the preset conditions as a second target operating range of the second circuit parameters.

[0158] The determining module includes:

[0159] The second determining submodule is used to determine that the first circuit parameter value is an abnormal circuit parameter value when the first circuit parameter value of the preset circuit is outside the first target operating range, and / or,

[0160] The third determining submodule is used to determine that the second circuit parameter value is an abnormal circuit parameter value when the second circuit parameter value of the preset circuit is outside the second target operating range.

[0161] In one embodiment, the second relation includes a first sub-relation and a second sub-relation; the second input module includes:

[0162] The second input submodule is used to input the second operating range into the first sub-relation to obtain the third operating range of the third circuit parameters;

[0163] The third input submodule is used to input the third operating range into the second sub-relation to obtain the target operating range of the first circuit parameters.

[0164] In one embodiment, the first circuit parameter includes circuit voltage, the second circuit parameter includes preset node current, and the third circuit parameter includes the current of the preset circuit.

[0165] In one embodiment, the operating range is set to be represented by a relative distance method.

[0166] In one embodiment, the first circuit parameter includes circuit voltage; the acquisition module includes:

[0167] The acquisition submodule is used to acquire the maximum and minimum voltage values ​​of preset circuits under different operating conditions of the power system;

[0168] The fourth determining submodule is used to determine the first operating range of the first circuit parameters of the preset circuit based on the maximum voltage value and the minimum voltage value.

[0169] Each module in the aforementioned circuit parameter detection device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0170] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 6 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores data such as circuit parameters. The network interface communicates with external terminals via a network connection. When executed by the processor, the computer program implements a method for detecting circuit parameters.

[0171] Those skilled in the art will understand that Figure 6 The structures shown are merely block diagrams of some structures related to the embodiments of this disclosure and do not constitute a limitation on the computer devices on which the embodiments of this disclosure are applied. Specific computer devices may include more or fewer components than those shown in the figures, or combine certain components, or have different component arrangements.

[0172] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.

[0173] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.

[0174] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0175] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the embodiments of this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0176] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this disclosure can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this disclosure may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this disclosure may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0177] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0178] The above-described embodiments are merely illustrative of several implementation methods of the present disclosure, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the patent for the embodiments of the present disclosure. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the embodiments of the present disclosure, and these all fall within the protection scope of the embodiments of the present disclosure. Therefore, the protection scope of the embodiments of the present disclosure should be determined by the appended claims.

Claims

1. A method for detecting circuit parameters, characterized in that, The method includes: Obtain the first operating range, first relation, and second relation of the first circuit parameters of the preset circuit, wherein the first relation and the second relation include the first circuit parameters; By inputting the first operating range into the first relational expression, the second operating range of the second circuit parameters is obtained; The first relation includes: (1), (2); where the second circuit parameters include node current, and the real part of the current in node j virtual part In the formula Indicates active power amplitude, Represents reactive power amplitude. and These represent the imaginary and real parts of the voltage, respectively; the second operating range of the second circuit parameters includes... and The current range; Input the second operating range into the second relational expression to obtain the target operating range of the first circuit parameters; The second relation includes: (3), (4), (5), (6); among which, , These represent the resistance and reactance between branches ij, respectively. The target operating range of the first circuit parameters includes and Voltage range, substituting the second operating range of the second circuit parameters into equations (3) and (4), calculate the voltage range of branch ij. and From the current range, we obtain the current range of branch ij; and Substituting the intervals into equations (5) and (6), we can calculate... and Voltage range; If the first circuit parameter value of the preset circuit is outside the target operating range, the first circuit parameter value is determined to be an abnormal circuit parameter value.

2. The method according to claim 1, characterized in that, The step of inputting the second operating range into the second relational expression to obtain the target operating range of the first circuit parameters includes: Input the second operating range into the second relational expression to obtain the first intermediate operating range of the first circuit parameters; Repeatedly input the first intermediate operating range into the first relational expression to obtain the second intermediate operating range of the second circuit parameters, and input the second intermediate operating range into the second relational expression to obtain a new first intermediate operating range, until the preset condition is met; A first intermediate operating range that satisfies the preset conditions is determined as the first target operating range of the first circuit parameters, and a second intermediate operating range that satisfies the preset conditions is determined as the second target operating range of the second circuit parameters. When the first circuit parameter value of the preset circuit is outside the target operating range, determining the first circuit parameter value as an abnormal circuit parameter value includes: If the first circuit parameter value of the preset circuit is outside the first target operating range, the first circuit parameter value is determined to be an abnormal circuit parameter value, and / or, If the second circuit parameter value of the preset circuit is outside the second target operating range, the second circuit parameter value is determined to be an abnormal circuit parameter value.

3. The method according to claim 1, characterized in that, The second relation includes a first sub-relation and a second sub-relation; the step of inputting the second operating range into the second relation to obtain the target operating range of the first circuit parameters includes: Input the second operating range into the first sub-relation to obtain the third operating range of the third circuit parameters; The third operating range is input into the second sub-relation to obtain the target operating range of the first circuit parameters.

4. The method according to claim 3, characterized in that, The first circuit parameter includes the circuit voltage, the second circuit parameter includes the preset node current, and the third circuit parameter includes the current of the preset circuit.

5. The method according to claim 1, characterized in that, The operating range is set to be represented by a relative distance method.

6. The method according to claim 1, characterized in that, The first circuit parameters include circuit voltage; the first operating range for obtaining the first circuit parameters of the preset circuit includes: Obtain the maximum and minimum voltage values ​​of a preset circuit under different operating conditions of the power system; The first operating range of the first circuit parameters of the preset circuit is determined based on the maximum voltage value and the minimum voltage value.

7. A circuit parameter detection device, characterized in that, The device includes: The acquisition module is used to acquire the first operating range, the first relational expression, and the second relational expression of the first circuit parameters of the preset circuit, wherein the first relational expression and the second relational expression include the first circuit parameters; The first input module is used to input the first operating range into the first relational expression to obtain the second operating range of the second circuit parameters; The first relation includes: (1), (2); where the second circuit parameters include node current, and the real part of the current in node j virtual part In the formula Indicates active power amplitude, Represents reactive power amplitude. and These represent the imaginary and real parts of the voltage, respectively; the second operating range of the second circuit parameters includes... and The current range; The second input module is used to input the second operating range into the second relational expression to obtain the target operating range of the first circuit parameters; The second relation includes: (3), (4), (5), (6); among which, , These represent the resistance and reactance between branches ij, respectively. The target operating range of the first circuit parameters includes and Voltage range, substituting the second operating range of the second circuit parameters into equations (3) and (4), calculate the voltage range of branch ij. and From the current range, we obtain the current range of branch ij; and Substituting the intervals into equations (5) and (6), we can calculate... and Voltage range; The determination module is used to determine that the first circuit parameter value is an abnormal circuit parameter value when the first circuit parameter value of the preset circuit is outside the target operating range.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method for detecting circuit parameters according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the method for detecting the circuit parameters according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the method for detecting the circuit parameters according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • A method and system for optimizing allocation of reactive power compensation

    CN109038599A

  • Circuit diagram query method and device, server and medium

    CN110472750A