Relay protection device fault determination method based on apriori

Through the improved Apriori algorithm and DAM model, strong association rules of relay protection devices are extracted, fault information is locked, the problems of low fault diagnosis efficiency and high cost in the existing technology are solved, and efficient fault diagnosis and repair are achieved.

WO2024221735A1PCT designated stage expired Publication Date: 2024-10-31YUNNAN POWER GRID CO LTD PUER POWER SUPPLY BUREAU

Patent Information

Application Number
PCT/CN2023/121449
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-28
Filing Date
2023-09-26
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Existing fault diagnosis methods for relay protection devices are inefficient and costly, and rely on the experience of operation and maintenance personnel, making troubleshooting time-consuming and labor-intensive. The Apriori algorithm has high computational complexity and takes up a large amount of memory.

Method used

The improved Apriori algorithm is used to extract strong association rules from alarm information, and combined with the DAM model to lock the fault information of relay protection device components, provide fault handling plans and improve maintenance efficiency.

Benefits of technology

It realizes intelligent fault diagnosis of relay protection devices, shortens fault repair time, reduces investment in test equipment and labor costs, and improves operation and inspection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023121449_31102024_PF_FP_ABST
    Figure CN2023121449_31102024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of relay protection device fault determination. Disclosed is a relay protection device fault determination method based on Apriori. The method comprises: on the basis of a pre-acquired alarm information data set, obtaining frequent itemsets of all categories; using an improved Apriori algorithm to extract strong association rules from the frequent itemsets; and using a DAM to extract an association relationship between logic nodes in the strong association rules, so as to obtain fault information of a relay protection device element. According to the present invention, the association between discrete alarm information of substations and defective entities is mined by means of an improved Apriori algorithm, and by means of a DAM, logic nodes are further checked and a defective device is located, so that the intelligent level of fault diagnosis of a relay protection device element is improved, and the problems such as large amount of information, large difficulty of manual troubleshooting and limitation of personal experience and cognition are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Apriori-based fault determination method for relay protection devices Technical Field

[0001] The invention relates to a relay protection device fault determination method based on Apriori, and belongs to the technical field of relay protection device fault determination. Background Art

[0002] Relay protection devices play a vital role in protecting power grids. Due to their unique operating characteristics, components remain powered year-round, significantly increasing the probability of failure. Coupled with the sheer number of relay protection devices, routine inspections are a massive undertaking. Power utilities incur significant annual maintenance costs, yet the failure rate continues to increase year by year.

[0003] There are two main methods for diagnosing faults in conventional relay protection devices:

[0004] 1) Device self-test: Based on the output results of each device function, the device's self-test program is used to perform inspections and diagnoses, and alarms are issued for abnormal or missing functions. The advantages of this method are high informationization and efficiency. However, the disadvantages are that the test items are limited, the alarms are mainly based on the output results of each device function and do not involve device components, and the analysis of the cause of the fault is insufficient.

[0005] 2) Manual testing: Operations and maintenance personnel use test equipment to comprehensively test the functionality of the relay protection device and conduct further investigation and analysis of components causing malfunctions. This method has the advantages of comprehensive testing and high fault diagnosis accuracy, but the disadvantages are low efficiency and high cost.

[0006] In daily equipment operation and maintenance, a combination of the two methods mentioned above is often required. Upon arrival, maintenance personnel first review the equipment's self-test information, inferring potential faulty components based on experience, and then further verifying these faults through testing. This approach relies heavily on the personnel's personal experience. With the increasing variety of equipment and the rapid pace of technological advancement, the limitations of personal experience are becoming increasingly prominent. Often, assistance is required from the equipment manufacturer. Once the problem is thoroughly identified, corrective measures can be developed, consuming significant manpower, material resources, and time.

[0007] The Apriori algorithm is an association rule mining algorithm that primarily mines relationship rules between alarms and defects by scanning frequent item sets in alarm information. However, the Apriori algorithm requires frequent scans of the alarm information database to calculate support and confidence, resulting in high memory usage and time complexity.

[0008] Summary of the Invention

[0009] The technical problem to be solved by the present invention is to overcome the defects of the existing technology and provide an Apriori-based relay protection device fault determination method. First, the Apriori algorithm is used to find the strong association rules between the device alarm information and the device component failure. Secondly, the device alarm information is collected through the information master station, and the device component failure is locked according to the association rules, providing the operation and maintenance personnel with a fault handling plan to improve the maintenance efficiency.

[0010] In a first aspect, the present invention provides a method for determining a fault of a relay protection device based on Apriori, comprising:

[0011] Based on the pre-acquired alarm information dataset, obtain frequent item sets of all categories;

[0012] Using the improved Apriori algorithm, strong association rules are extracted from frequent item sets;

[0013] The DAM model is used to extract the association relationship between logical nodes in the strong association rules and obtain the fault information of relay protection device components.

[0014] Combined with the first aspect, the improved Apriori algorithm is used to extract strong association rules from frequent item sets, including:

[0015] If the support of the association rule in the frequent item set is greater than the preset minimum support threshold, the confidence of the association rule in the frequent item set is greater than the preset minimum confidence threshold, and the lift of the association rule in the frequent item set is greater than the preset minimum lift threshold, then the association rule in the frequent item set is regarded as a strong association rule.

[0016] In conjunction with the first aspect, in a first possible implementation of the first aspect, using the DAM model to extract association relationships between logical nodes in strong association rules to obtain relay protection device component fault information includes:

[0017] Determine whether the logical nodes in the strong association rule are in a subordinate relationship. If so, obtain the fault information of the relay protection device components including the location of the device from the strong association rule;

[0018] It is determined whether the strong association rule is a single source relationship. If so, the fault information of the relay protection device component including the location of the sending end and the location of the receiving end corresponding to the sending end is obtained from the strong association rule.

[0019] In combination with the first aspect, in a second possible implementation of the first aspect, using the DAM model to extract association relationships between logical nodes in strong association rules to obtain relay protection device component fault information includes:

[0020] Determine whether the strong association rule is a homology relationship, and if so, obtain the relay protection device component fault information including the location of the sending end and the location of the receiving end corresponding to the sending end from the strong association rule;

[0021] It is determined whether the strong association rule is an upper-level homology relationship. If so, the fault information of the relay protection device component including the defect is obtained from the strong association rule.

[0022] In combination with any of the first and second possible implementations of the first aspect, after extracting the association relationship between logical nodes in the strong association rule using the DAM model and obtaining relay protection device component fault information, the confidence level of the association relationship is corrected using the DAM model, including:

[0023] In a single-source relationship and a homologous-source relationship, if the sending end raises an alarm, the receiving end must raise an alarm. In this case, the confidence level of the single-source relationship and the confidence level of the homologous-source relationship are corrected:

[0024] Among them, the confidence of the single source relationship after correction is: C R (I1)=C(O1)×C(I1), C R (O1)=1-C R (I1),

[0025] Where C(O1) is the confidence level of the relay protection device component fault information obtained from the transmitter O1 in the single source relationship, and C(I1) is the confidence level of the relay protection device component fault information obtained from the receiver I1 corresponding to the transmitter O1 in the single source relationship; C R (I1) is the corrected confidence level of the relay protection device component fault information obtained from the receiving end I1 corresponding to the sending end O1 in the single source relationship, C R (O1) is the corrected confidence level of the relay protection device component fault information obtained from the sending end O1;

[0026] The confidence after homology correction is: C R (I 1~n )=C(O 1~n )×C(I1)×C(I2)×…×C(I n ), C R (O 1~n )=1-C R (I 1~n ),

[0027] Among them, C(O 1~n ) is the sending end O from the same source relationship 1~n The confidence level of the relay protection device component fault information obtained is C(I1), which is the confidence level of the fault information from the sending end O in the homology relationship. 1~nThe confidence level of the relay protection device component fault information obtained by the corresponding receiving end I1, C(I2) is the confidence level of the fault information of the sending end O from the homology relationship. 1~n The confidence level of the fault information of the relay protection device component obtained by the corresponding receiving end I2, C(I n ) is the sending end O from the same source relationship 1~n The corresponding receiving end I n The confidence level of the fault information of the relay protection device component obtained, C R (I 1~n ) are all the receiving ends (I1, I2, ..., I n ) is the corrected unified confidence level of the relay protection device component fault information obtained, C R (O 1~n ) is the sending end O from the same source relationship 1~n The corrected confidence level of the fault information obtained for the relay protection device component.

[0028] In conjunction with the second possible implementation of the first aspect, after extracting the association relationship between logical nodes in the strong association rule using the DAM model, the confidence of the association relationship is corrected using the DAM model, including:

[0029] In the upper layer homology relationship, the confidence level for correcting the alarm association between the devices on both sides is: C R (B1)=C(B1)+C(B1)×C(B2), C R (B2)=C(B2)+C(B1)×C(B2),

[0030] Wherein, B1 is the first set of relay protection devices in the upper homology relationship, B2 is the second set of relay protection devices in the upper homology relationship, C(B1) is the confidence level of the relay protection device component fault information obtained from B1, C(B2) is the confidence level of the relay protection device component fault information obtained from B2, and C R (B1) is the corrected confidence level of the relay protection device component fault information obtained from B1, C R (B2) is the corrected confidence level of the relay protection device component fault information obtained from B2.

[0031] Combined with the first aspect, based on the pre-acquired alarm information dataset, frequent item sets of all categories are obtained, including:

[0032] Based on the pre-acquired alarm information dataset, all transactions containing projects are obtained. Each transaction containing projects contains only one project of one category.

[0033] Remove items with a number of elements less than a pre-set value and combine the remaining transactions to generate a database;

[0034] Calculate the first intersection of each transaction with other transactions in the same category, and remove the first intersections with fewer items than a preset value to obtain a new transaction set;

[0035] Calculate the union of the corresponding item sets of the new transaction set in the same category to obtain the frequent two-item set.

[0036] Combined with the first aspect, based on the pre-acquired alarm information dataset, frequent item sets of all categories are obtained, including:

[0037] Calculate the second intersection of each transaction in the frequent binomial set with other transactions, and remove the second intersections with fewer items than a preset value to obtain a second new transaction set;

[0038] Calculate the union of the item sets corresponding to the second new transaction set in the same category, remove the redundant transaction sets, and obtain the frequent three-item set;

[0039] Calculate the third intersection of each transaction in the frequent three-item set with other transactions, remove the third intersections with fewer items than a preset value, and obtain the third new transaction set;

[0040] Calculate the union of the item sets corresponding to the third new transaction set in the same category, remove redundant item sets, and obtain the frequent four-item set.

[0041] In a second aspect, an electronic device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any one of the methods described in the first aspect are implemented.

[0042] In a third aspect, a computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect.

[0043] The beneficial effects achieved by the present invention are:

[0044] 1) The present invention realizes intelligent fault diagnosis of relay protection device components: The present invention mines the association between discrete alarm information of substations and defective entities through an improved Apriori algorithm, further checks logical nodes and locks defective equipment through the DAM model, thereby improving the intelligent level of fault diagnosis of relay protection device components and overcoming problems such as large amount of information, difficulty of manual investigation and limitations of personal experience and cognition.

[0045] 2) The present invention improves operation and inspection efficiency: The present invention can be used on the dispatching side to provide operation and inspection personnel with proactive defect detection and disposal plan support, which can significantly shorten the time for defect repair and reduce the cost investment in test equipment, labor, and time. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0047] FIG1 is an example diagram of a DAM model in some embodiments of the present application. DETAILED DESCRIPTION

[0048] To facilitate the technical solution of the application, some concepts involved in this application are first explained below.

[0049] Example 1

[0050] When the traditional Apriori algorithm scans frequent item sets, a candidate set often appears. The candidate set contains multiple items with similar attributes, such as {Manufacturer 1, signal light off, process layer equipment} and {Manufacturer 2, signal light off, process layer equipment}. Items with similar attributes are linked to produce the candidate set {Manufacturer 1, Manufacturer 2, signal light off, process layer equipment}. However, in reality, a set of equipment can only correspond to one manufacturer, so this invalid candidate set should be deleted. In order to identify and delete these invalid candidate sets, this application encodes and numbers the alarm information categories.

[0051] The abnormal alarm information in the frequent item set is divided into four categories and coded. The four categories are unit alarm information coding, intelligent terminal alarm information coding, protection and measurement and control device alarm information coding, and switch alarm information coding. The combined unit alarm information is coded as A, the intelligent terminal alarm information is coded as B, the protection and measurement and control device alarm information is coded as C, and the switch alarm information is coded as D. The merging unit device alarm information codes include sampling anomaly A1, timing anomaly A2, and sampled value message SV (Sampled Value, SV) general alarm A3. The intelligent terminal alarm information codes include intelligent terminal device sampling anomaly B1, intelligent terminal generic object oriented substation event message GOOSE (Generic Object Oriented Substation Events, GOOSE) general alarm B2, and intelligent terminal GOOSE link interruption B3. The protection measurement and control device alarm information codes include measurement and control device SV general alarm C1, measurement and control device GOOSE general alarm C2, and measurement and control device SV sampling data anomaly C3. The switch alarm information codes include bay layer switch anomaly D1 and process layer switch failure D2. Each type of code is numbered in sequence according to the frequency of occurrence of the abnormal alarm information, as shown in Table 1 below.

[0052] Table 1 Alarm information number

[0053] The present invention provides an Apriori-based method for determining relay protection device faults, comprising: obtaining frequent item sets of all categories based on a pre-acquired alarm information data set; extracting strong association rules from the frequent item sets using an improved Apriori algorithm; and extracting the association relationship between logical nodes in the strong association rules using a DAM model to obtain relay protection device component fault information.

[0054] In this embodiment, an improved Apriori algorithm is used to extract strong association rules from frequent itemsets, including: if the support of the association rule in the frequent itemset is greater than a preset minimum support threshold, the confidence of the association rule in the frequent itemset is greater than a preset minimum confidence threshold, and the lift of the association rule in the frequent itemset is greater than a preset minimum lift threshold, then the association rule in the frequent itemset is regarded as a strong association rule.

[0055] In this embodiment, the DAM model is used to extract the association relationship between the logical nodes in the strong association rule to obtain the fault information of the relay protection device component, including: judging whether the logical nodes in the strong association rule are subordinate relationships, and if so, obtaining the fault information of the relay protection device component including the location of the equipment from the strong association rule; judging whether the strong association rule is a single-source relationship, and if so, obtaining the fault information of the relay protection device component including the location of the sending end and the location of the receiving end corresponding to the sending end from the strong association rule.

[0056] In this embodiment, the DAM model is used to extract the association relationship between logical nodes in the strong association rule to obtain the fault information of the relay protection device component, including: judging whether the strong association rule is a homology relationship, if so, obtaining the fault information of the relay protection device component including the location of the sending end and the location of the receiving end corresponding to the sending end from the strong association rule; judging whether the strong association rule is an upper-level homology relationship, if so, obtaining the fault information of the relay protection device component including the defect from the strong association rule.

[0057] In this embodiment, based on the pre-acquired alarm information data set, frequent item sets of all categories are obtained, including: based on the pre-acquired alarm information data set, all transactions containing items are obtained, and each transaction containing items has only one category of items; items with a number of elements less than a preset value are removed, and the remaining transactions are combined to generate a database; the first intersection of each transaction and other transactions in the same category is calculated, and the first intersection with the number of items less than the preset value is removed to obtain a new transaction set; and the union of the item sets corresponding to the new transaction sets in the same category is calculated to obtain a frequent two-item set.

[0058] In this embodiment, based on the pre-acquired alarm information data set, frequent item sets of all categories are obtained, including: calculating the second intersection of each transaction in the frequent two-item set with other transactions, and removing the second intersection with a number of items less than a preset value to obtain a second new transaction set; calculating the union of the item sets corresponding to the second new transaction set in the same category, and removing redundant transaction sets to obtain a frequent three-item set; calculating the third intersection of each transaction in the frequent three-item set with other transactions, and removing the third intersection with a number of items less than a preset value to obtain a third new transaction set; calculating the union of the item sets corresponding to the third new transaction set in the same category, and removing redundant item sets to obtain a frequent four-item set.

[0059] Association rule mining based on the improved Apriori algorithm, including:

[0060] Define the association rule of alarm information data set → defect entity as Q: alarm information M → defect entity N, and M and N are disjoint sets, that is,

[0061] In this step, based on support, confidence and lift, strong association rules between alarm information and defect entities are extracted from all frequent item sets.

[0062] In this embodiment, support is the probability of association rule Q appearing in the frequent item set, and is a key indicator for measuring the importance of the rule, that is, the probability of M and N occurring simultaneously: Support(M→N)=S(MN).

[0063] In this embodiment, confidence is a measure of the accuracy of the association rule Q in the frequent item set, that is, the probability of N occurring under the condition that M occurs:

[0064] In this embodiment, lift is the correlation between M and N under association rule Q in the frequent item set. If Lift(M→N)>1, the higher the value, the higher the positive correlation; if Lift(M→N)<1, the lower the value, the higher the negative correlation; if Lift(M→N)=1, it means there is no correlation.

[0065] If the association rule Q in the frequent item set meets the following three conditions, then Q is a strong association rule, indicating that M and N have a strong correlation.

[0066] Where Support min Confidence min 、Lift min Indicates the minimum support threshold, minimum confidence threshold, and minimum lift threshold that the association rule needs to meet.

[0067] Most abnormal alarm information from relay protection devices refers to a specific functional anomaly, which may be caused by a fault in a component of the device itself or in an upstream device. To further lock in the strong association rules between alarm information and defect entities, this paper designs a device association model (DAM) that describes the relationship between the device, its functional elements, and logical nodes. A typical DAM model example of the associated functional nodes in the model is shown in Figure 1. In Figure 1:

[0068] DAM: represents an instance of the Device Association Model (DAM) of a power grid;

[0069] Substation represents a substation node; there are usually multiple Substation nodes in a DAM model;

[0070] VoltageLevel represents the voltage level node; there are usually multiple VoltageLevel nodes under a Substation node;

[0071] Bay represents an interval node. There are usually multiple Bay nodes under a VoltageLevel node. Bay nodes are divided into bus bays, transmission line bays, and main transformer bays according to their functions.

[0072] IED stands for device node. IED originally refers to all types of intelligent electronic devices (IEDs) in smart substations. In this embodiment, it specifically refers to relay protection devices. A Bay node generally has multiple IED nodes.

[0073] LDevice represents a functional element node. LDevice originally refers to the logical device (LDevice or LD) of an IED. In this embodiment, it specifically refers to the functional elements of a relay protection device, such as the action functional element, sampling functional element, configuration functional element, and alarm functional element. An IED node generally has multiple LDevice nodes.

[0074] LN stands for Logical Node (Logic Node, LN). LN can have different data types, such as status values, sampled values, parameters, and alarm information. An LDevice node generally has at least one LN node. An LN node is the smallest node that establishes a logical connection between different functional components.

[0075] Association relationship ① Subordinate relationship, which represents the hierarchical relationship between nodes. For example, a substation has several voltage levels, a bay has several sets of relay protection devices, and a functional element has several logical nodes. The position of a node in the model is determined by the path: Substation → Voltage Level → Bay → Equipment (IED) → Functional Element (LDevice) → Logical Node (LN), and its uniqueness in the model can be ensured.

[0076] Association relationship ② Single source relationship. Indicates that there is only one virtual circuit connection between logical nodes;

[0077] Association relationship ③ Homologous relationship. Indicates that there is a virtual circuit connection between a logical node and multiple logical nodes;

[0078] Association ④ Upper-level homologous relationship: The same busbar bay of the same substation or the same transmission line bay between different substations.

[0079] The DAM model is used to extract the association relationship between logical nodes in the strong association rules and the confidence of the corrected association relationship to obtain the fault information of relay protection device components.

[0080] Among them, the DAM model is a model extracted from the Substation Configuration Description (SCD) that specifically describes the relationship between logical nodes. The conventional method used for SCD model parsing will not be repeated here, but after initialization, the DAM model hides some unnecessary version configuration, network communication parameters, data set type and other information. The purpose is to shorten the model reading time compared to the huge SCD model and virtual terminal table, and to support defect entity locking more quickly.

[0081] As shown in Figure 1, the DAM model reconstructs the equipment association model from the perspective of the dispatching master station into: substation (Substation) → voltage level (VoltageLevel) → bay (Bay) → equipment (IED) → functional element (LDevice) → logical node (LN). They are arranged in a tree shape, representing the first type of association relationship: subordinate relationship. The subordinate relationship mainly describes the position of the above nodes in the model and the upper and lower layer relationships between the nodes.

[0082] LN represents a logical node. LN can have different data types, such as status values, sample values, parameters, alarm information, etc. There are two types of association relationships between logical nodes: one is that there is only one virtual circuit connection between logical nodes, which is represented by the second type of association relationship: a single source relationship; the other is that there is a virtual circuit connection between a logical node and multiple logical nodes, which is represented by the third type of association relationship: a homologous relationship. A single source or homologous relationship mainly describes the association relationship and virtual circuit direction between logical nodes: in a single source relationship, the message sending end is O1 and the message receiving end is I1; in a homologous relationship, the message sending end is O 1~n , n receiving ends are I1, I2, ..., I n The single source or homology relationship is mainly used for causal reasoning of alarm information between logical nodes to further identify defects and obtain fault information of relay protection device components.

[0083] There is also a relationship between bays. For example, the same bus bay within the same substation or the same transmission line bay between different substations may have a primary circuit relationship, but there may not be a direct virtual circuit connection between the logical nodes of the IED devices within the bay. We call this fourth type of relationship the upper-level homology relationship. The upper-level homology relationship is mainly used when common defects in the homology relationship require third-party verification, such as defects in clocks, settings, and networks.

[0084] Through the device management model, the confidence of alarm information between devices with logical node association or interval association can be corrected.

[0085] After using the DAM model to extract the association relationship between logical nodes in the strong association rules and obtain the fault information of the relay protection device components, the DAM model is used to correct the confidence of the association relationship, including:

[0086] In a single-source and homologous relationship, if the sender issues an alarm, the receiver must also issue an alarm. Therefore, the confidence level after correction is:

[0087] 1) The confidence level after correction of the single source relationship is: C(I1')=C(O1)×C(I1), C(O1')=1-C(I1'),

[0088] Where C(O1) is the confidence level of the relay protection device component fault information obtained from the transmitter O1 in a single source relationship, and C(I1) is the confidence level of the relay protection device component fault information obtained from the receiver I1 corresponding to the transmitter O1. C(I1') is the corrected confidence level of the relay protection device component fault information obtained from the receiver I1 corresponding to the transmitter O1, and C(O') is the corrected confidence level of the relay protection device component fault information obtained from the transmitter O1.

[0089] 2) The confidence after homology correction is: C(I 1~n ')=C(O 1~n )×C(I1)×C(I2)×…×C(I n ), C(O 1~n ')=1-C(I 1~n '),

[0090] Among them, C(O) is the sending end O from the homology relationship 1~n The confidence level of the relay protection device component fault information obtained, C(I1) is the confidence level of the relay protection device component fault information obtained from the sending end O 1~n The confidence level of the relay protection device component fault information obtained by the corresponding receiving end I1, C(I2) is the confidence level of the relay protection device component fault information obtained from the sending end O 1~n The confidence level of the fault information of the relay protection device component obtained by the corresponding receiving end I2, and so on C(I n ) is from the sending end O 1~n The corresponding receiving end I n The confidence level of the fault information of the relay protection device component obtained, C(I 1~n ') are all the receiving ends (I1, I2, ...I n ) is the corrected unified confidence level of the relay protection device component fault information obtained, C(O 1~n ') is from the sending end O 1~n The corrected confidence level of the fault information obtained for the relay protection device component.

[0091] In the upper layer homology relationship, the confidence level for correcting the alarm association between the two relay protection devices is: C R (B1)=C(B1)+C(B1)×C(B2), C R (B2)=C(B2)+C(B1)×C(B2),

[0092] Among them, B1 and B2 are two sets of relay protection devices in the upper homology relationship, C(B1) is the confidence level of the relay protection device component fault information obtained from the B1 relay protection device, C(B2) is the confidence level of the relay protection device component fault information obtained from the B2 relay protection device, and C R (B1) is the corrected confidence level of the relay protection device component fault information obtained from the B1 relay protection device, C R (B2) is the corrected confidence level of the relay protection device component fault information obtained from the B2 relay protection device.

[0093] In this embodiment, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above methods when executing the program.

[0094] In this embodiment, the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of any one of the above methods are implemented.

[0095] Example 2

[0096] In this embodiment, based on the pre-acquired alarm information dataset, frequent item sets of all categories are obtained, including:

[0097] Based on the pre-acquired alarm information dataset, all transactions containing items are obtained, and each transaction containing items contains only one category of items; items with a number of elements less than a preset value are removed, and the remaining transactions are combined to generate a database; the first intersection of each transaction and other transactions in the same category is calculated, and the first intersection with the number of items less than a preset value is removed to obtain a new transaction set; the union of the corresponding item sets of the new transaction set in the same category is calculated to obtain a frequent two-item set.

[0098] Calculate the second intersection of each transaction in the frequent two-item set with other transactions, and remove the second intersection with a number of items less than a preset value to obtain a second new transaction set; calculate the union of the item sets corresponding to the second new transaction set in the same category, remove redundant transaction sets, and obtain a frequent three-item set; calculate the third intersection of each transaction in the frequent three-item set with other transactions, remove redundant item sets, and remove the third intersection with a number of items less than a preset value to obtain a third new transaction set;

[0099] Calculate the union of the item sets corresponding to the third new transaction set in the same category to obtain the frequent four-item set. This is achieved by the following steps:

[0100] The alarm information dataset L contains Ln categories, {A, B, C, D, E, F, ...}, each of which consists of multiple items, such as A = {A1, A2, A3, A4, ..., Ax}. Each data record in the alarm information dataset L is a transaction, which is the collection of alarm information packets (item sets) for each relay protection device in a regional power grid within a specific time interval. Each alarm information packet (item set) consists of multiple alarm information (items). In each improved Apriori algorithm process, transactions matching a certain category are scanned to form a new transaction set, TID (1, ..., T). Each transaction matching a certain category is an element in the new transaction set and is associated with a unique identifier, Tid, in the new transaction set. The minimum support of the new transaction set is min_sup = s%, and the minimum number of transactions is P (P = S% * n), where Num is the number of elements in the TID.

[0101] The steps of the improved algorithm are as follows:

[0102] 1) Scan the data records in the alarm information data set L, scan out the transactions containing item A1, and obtain a new transaction set AT1; scan out the transactions containing item A2, and obtain a new transaction set AT2; ...;

[0103] Scan the transactions containing item Ak to obtain a new transaction set ATk, k∈[1,x];

[0104] 2) The newly generated database is L(AT1-ATk). To simplify the database L(AT1-ATk), the new transaction sets whose number of elements Num is less than the preset value P are removed.

[0105] 3) Calculate the intersection of AT1 and AT2, remove the intersections with fewer items than a pre-set value, and then calculate the intersections of AT1 and AT3, AT1 and AT4, ..., AT1 and ATk respectively based on this method;

[0106] Calculate the intersection of AT2 and AT3, AT2 and AT4, ..., AT2 and ATk;

[0107] ...;

[0108] Calculate the intersection of ATk-1 and ATk, and finally obtain the retained new transaction set a(a1-ak);

[0109] 4) Calculate the union of the item sets corresponding to the new transaction set, ai∪aj, and store it as a new item set to obtain the frequent binomial set of category A;

[0110] 5) Repeat steps 3) and 4) for the frequent two-item set of category A, remove the redundant transaction set, and generate the frequent three-item set of category A;

[0111] Repeat steps 3) and 4) for the frequent three-item set of category A, remove the redundant item sets, and generate the frequent four-item set of category A.

[0112] 6) Repeat steps 1) to 5) for other categories to obtain frequent item sets of category B, frequent item sets of category B, frequent item sets of category B, frequent item sets of category B, frequent item sets of category C, frequent item sets of category C, frequent item sets of category C, frequent item sets of category C, frequent item sets of category D, frequent item sets of category D, frequent item sets of category D, frequent item sets of category D, and frequent item sets of category D. This improved method can quickly identify and delete invalid candidate sets, reduce the number of scans, and optimize the algorithm's computational time and memory.

[0113] Taking the application of a power supply bureau as an example, based on the abnormal operation data of secondary equipment in the region from 2019 to 2022, the alarm information dataset L including 3890 transactions was classified and sorted out, and the strong association rules between them and defects were mined and sorted using the improved Apriori algorithm. First, the secondary equipment operation status data was inspected to generate the data that meets the minimum support threshold Support min The frequent itemsets are then filtered out, and the strong association rules that meet the minimum confidence threshold and the minimum lift threshold are selected. According to the actual situation, the minimum support threshold, the minimum confidence threshold and the minimum lift threshold are set to 2.8%, 65% and 3 respectively, and 168 strong association rules are obtained. Some of the strong association rules are shown in Table 2.

[0114] Integrating relevant grid company regulations, guidance, and the experience of secondary equipment experts, the mined strong association rules were deduplicated and ambiguous and confusing terms were corrected to form a precise and complete entity set. Taking the fourth association rule in Table 2, "Measurement and Control Device SV Total Alarm Internal Component Damage / Sampling Data Abnormal," as an example, its support, confidence, and lift all met the preset minimum support, confidence, and lift thresholds, respectively. This indicates that measurement and control device SV total alarms, caused by internal component damage and sampling data abnormalities, are common in secondary equipment operation management. If a measurement and control device SV disconnection alarm occurs, combined with other information, the defective entities (internal component damage and sampling data abnormality) should be prioritized.

[0115] Table 2 Some strong association rules

[0116] As shown in Table 2, "Intelligent terminal device abnormality" and "Protection device GOOSE total alarm" are single-source relationships, where "Intelligent terminal device abnormality" is 0 and "Protection device GOOSE total alarm" is 1; "Merging unit SV total alarm" and "Measurement and control device SV total alarm" are homologous relationships, where "Merging unit SV total alarm" is 0 and "Measurement and control device SV total alarm" is 1. n.

[0117] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments.

[0118] Other embodiments of the present invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not invented herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the invention being indicated by the following claims.

[0119] The above specific implementation methods further illustrate the purpose, technical solutions and beneficial effects of this application in detail. It should be understood that the above are only specific implementation methods of this application and are not intended to limit the scope of protection of this application. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of this application should be included in the scope of protection of this application.

Claims

1. A method for determining faults of relay protection devices based on Apriori, characterized in that: include: Based on the pre-acquired warning information dataset, frequent item sets of all categories are obtained; Using the improved Apriori algorithm, strong association rules are extracted from frequent item sets; The DAM model is used to extract the association relationship between logical nodes in the strong association rules and obtain the fault information of relay protection device components.

2. The Apriori-based relay protection device fault determination method according to claim 1, characterized in that: Using the improved Apriori algorithm, strong association rules are extracted from frequent item sets, including: If the support of the association rule in the frequent item set is greater than the preset minimum support threshold, the confidence of the association rule in the frequent item set is greater than the preset minimum confidence threshold, and the lift of the association rule in the frequent item set is greater than the preset minimum lift threshold, then the association rule in the frequent item set is regarded as a strong association rule.

3. The Apriori-based relay protection device fault determination method according to claim 1, characterized in that: The DAM model is used to extract the association relationship between the logical nodes in the strong association rules to obtain the fault information of the relay protection device components, including: Determine whether the logical nodes in the strong association rule are subordinate relationships, and if so, obtain the fault information of the relay protection device components including the location of the device from the strong association rule; It is determined whether the strong association rule is a single source relationship. If so, the fault information of the relay protection device components including the location of the sending end and the location of the receiving end corresponding to the sending end is obtained from the strong association rule.

4. The Apriori-based relay protection device fault determination method according to claim 1, characterized in that: The DAM model is used to extract the association relationship between the logical nodes in the strong association rules to obtain the fault information of the relay protection device components, including: Determine whether the strong association rule is a homology relationship, and if so, obtain the relay protection device component fault information including the location of the sending end and the location of the receiving end corresponding to the sending end from the strong association rule; It is determined whether the strong association rule is an upper-level homology relationship. If so, the fault information of the relay protection device components including the defect is obtained from the strong association rule.

5. The method for determining a relay protection device fault based on Apriori according to claim 3 or 4, characterized in that: After using the DAM model to extract the association relationship between the logical nodes in the strong association rules and obtain the fault information of the relay protection device components, the DAM model is used to correct the confidence of the association relationship, including: In a single-source relationship and a homologous relationship, if the sender alarms, the receiver must alarm, so the confidence of the single-source relationship and the confidence of the homologous relationship are corrected: Among them, the confidence after correction of the single source relationship is: C R (I1)=C(O1)×C(I1), C R (O1)=1-C R (I1), Wherein, C(O1) is the confidence of the relay protection device component fault information obtained from the sending end O1 in the single source relationship, and C(I1) is the confidence of the relay protection device component fault information obtained from the receiving end I1 corresponding to the sending end O1 in the single source relationship; C R (I1) is the corrected confidence of the fault information of the relay protection device element obtained from the receiving end I1 corresponding to the sending end O1 in the single source relationship, C R (O1) is the corrected confidence of the relay protection device component fault information obtained from the sending end O1; The confidence after homology correction is: C R (I 1~n )=C(O 1~n )×C(I1)×C(I2)×…×C(I n ), C R (O 1~n )=1-C R (I 1~n ), Among them, C(O 1~n ) is the sender O from the same source relationship 1~n The confidence level of the relay protection device component fault information obtained, C(I1) is the confidence level of the fault information from the sending end O in the homology relationship. 1~n The confidence level of the relay protection device component fault information obtained by the corresponding receiving end I1, C(I2) is the confidence level of the fault information of the sending end O from the homology relationship. 1~n The confidence level of the fault information of the relay protection device component obtained by the corresponding receiving end I2, C(I n ) is the sender O from the same source relationship 1~n The corresponding receiving end I n The confidence level of the fault information of the relay protection device component obtained, C R (I 1~n ) are all the receiving ends (I1, I2, ..., I n ) is the corrected unified confidence level of the relay protection device component fault information obtained, C R (O 1~n ) is the sender O from the same source relationship 1~n The corrected confidence level of the fault information of the relay protection device components obtained.

6. The Apriori-based relay protection device fault determination method according to claim 4 is characterized in that: After using the DAM model to extract the association relationship between logical nodes in the strong association rule, the DAM model is used to correct the confidence of the association relationship, including: In the upper layer homology relationship, the confidence level for correcting the alarm association of the devices on both sides is: C R (B1)=C(B1)+C(B1)×C(B2), C R (B2)=C(B2)+C(B1)×C(B2), Wherein, B1 is the first set of relay protection devices in the upper homology relationship, B2 is the second set of relay protection devices in the upper homology relationship, C(B1) is the confidence of the relay protection device component fault information obtained from B1, C(B2) is the confidence of the relay protection device component fault information obtained from B2, and C R (B1) is the corrected confidence level of the relay protection device component fault information obtained from B1, C R (B2) is the corrected confidence of the relay protection device component fault information obtained from B2.

7. The Apriori-based relay protection device fault determination method according to claim 1, characterized in that: Based on the pre-acquired warning information dataset, frequent item sets of all categories are obtained, including: Based on the pre-acquired alarm information dataset, all transactions containing projects are obtained. Each transaction containing projects contains only one category of projects. Remove items with a number of elements less than a preset value and combine the remaining transactions to generate a database; Calculate the first intersection of each transaction and other transactions in the same category, and remove the first intersection with a number of items less than a preset value to obtain a new transaction set; Calculate the union of the corresponding item sets of the new transaction set in the same category to obtain the frequent binomial set.

8. The Apriori-based relay protection device fault determination method according to claim 7, characterized in that: Based on the pre-acquired warning information dataset, frequent item sets of all categories are obtained, including: Calculate the second intersection of each transaction in the frequent binomial set with other transactions, and remove the second intersection with the number of items less than a preset value to obtain a second new transaction set; Calculate the union of the item sets corresponding to the second new transaction set in the same category, remove the redundant transaction sets, and obtain the frequent three-item set; Calculate the third intersection of each transaction in the frequent three-item set with other transactions, remove the third intersection with the number of items less than a preset value, and obtain the third new transaction set; Calculate the union of the item sets corresponding to the third new transaction set in the same category, remove the redundant item sets, and obtain the frequent four-item set.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 8 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • A fault diagnosis method and device for distribution network switch equipment

    CN109697455A

  • Relay protection device defect data correlation analysis method and system based on Apriori algorithm

    CN112308118A

  • Power grid secondary equipment state evaluation index information mining processing method based on FP-Tree algorithm

    CN114881418A

  • Apriori-based relay protection device fault determination method

    CN116450707A

  • Disjunctive rule mining with finite automaton hardware

    US20180285424A1

Cited By

  • Water supply and drainage pipe network inspection order dispatching method and system

    CN119168334A

  • Judicial evidence association relationship construction method and device and storage medium

    CN119988701A

  • Method for monitoring operation state of transformer substation of electric power system

    CN120262687A

  • Log data management method for terminal access authentication

    CN120639378A

  • Fault diagnosis method and device for stirring bearing, medium and product

    CN121632589A