Rule engine-based power terminal parameter information diagnosis method and system

By applying a rule engine-based method in the power automation system, the power terminal parameter information is automatically diagnosed and analyzed, and the problems of low manual diagnosis efficiency and error-proneness are solved, and efficient and accurate diagnosis and analysis of terminal parameter information are achieved.

CN119513773APending Publication Date: 2025-02-25NARI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411589288.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

In power automation systems, when managing a large amount of terminal parameter information, manual diagnosis under the prior art is burdened and prone to errors, making it difficult to achieve efficient automated diagnosis.

Method used

Using a rule engine-based method, by establishing rule types and rules, using a linear forward chain algorithm to perform pattern matching, automatically diagnose and analyze power terminal parameter information, and generate diagnostic reports.

Benefits of technology

It realizes the second-level diagnosis and analysis of power terminal parameter information, replaces manual hourly diagnostic operations, improves operation and maintenance efficiency, avoids the hidden danger of missing diagnosis, and has good flexibility and scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119513773A_ABST
    Figure CN119513773A_ABST
Patent Text Reader

Abstract

The invention discloses a power terminal parameter information diagnosis method and system based on a rule engine, and the method comprises the steps: building a rule type for each type of terminal accessed to a power automation system, describing the parameter information composition of the terminal, building a rule according to the rule type and a terminal parameter value, and carrying out the diagnosis of the parameter information of the terminal. The parameter description module is used for describing correct parameter values of the terminal during operation; secondly, creating a sub-rule base and a fact base of parameter information of a to-be-diagnosed terminal; finally, reasoning and comparing the terminal parameter information with the rules in the same type of sub-rule base one by one, if the two are the same, determining that the terminal parameter information is correct and activating the rules, and reordering the rules in the sub-rule base; if not, selecting a rule to analyze the abnormal parameter when the terminal has the abnormal parameter; and after the diagnosis is completed, outputting a diagnosis report. The rule type and the rule are flexibly created according to the actual operation parameter information of the terminal, the adaptability and the expansibility are high, the accuracy and the performance are high, and the working efficiency is remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electric power automation systems, and in particular to a method and system for diagnosing electric power terminal parameter information based on a rule engine. Background Art

[0002] With the development of new generation information technology, power grid construction is rapidly transforming towards intelligence. In order to ensure the reliable operation of the power grid, power supply companies install a large number of intelligent terminal devices to control and monitor it. Before the power terminal is connected to the power automation system, it is necessary to create and manage the working parameters of the power terminal in the power automation system to establish a safe and reliable communication mechanism with it. In the traditional operation and maintenance mode, the manual "check-modify-check" method is usually used to check the power terminal information parameters one by one, which has problems such as low efficiency and easy omissions. With the continuous enrichment of terminal types and the rapid growth in number, the workload of operation and maintenance personnel has increased sharply, and the disadvantages of manual operation have become more prominent. It is an urgent problem to realize the automatic diagnosis and analysis of terminal parameter information in the power automation system and further improve the level of automation. Summary of the invention

[0003] Purpose of the invention: The first purpose of the present invention is to provide a method for diagnosing power terminal parameter information based on a rule engine. The second purpose of the present invention is to provide a system for diagnosing power terminal parameter information based on a rule engine, so as to solve the problem that manual diagnosis is burdensome and error-prone under the existing technology in the process of managing a large amount of terminal parameter information in the power automation system.

[0004] Technical solution: The power terminal parameter information diagnosis method based on rule engine described in the present invention comprises the following steps:

[0005] (1) Establish a rule type for each type of terminal connected to the power automation system to describe the parameter information of the terminal;

[0006] (2) creating rules according to the rule type of each terminal, wherein the rules are used to describe the correct parameter values ​​of the terminal during operation;

[0007] (3) Read all rules to form a rule base, and organize the rules belonging to the same rule type into a sub-rule base of the rule type; read the parameter information setting values ​​of all terminals to be diagnosed to form a fact base;

[0008] (4) The rule engine traverses all terminals in the fact base for diagnosis, and compares the parameter information of each terminal with the rules in the corresponding sub-rule base. If the two are the same, the parameter information of the terminal is correct, and the corresponding rule in the sub-rule base is sorted in advance; otherwise, the terminal has abnormal parameters, and a rule in the sub-rule base is used to analyze the abnormal parameters; after all terminals are diagnosed, a diagnosis report is output.

[0009] Furthermore, in step (1), it is determined whether the terminals are of the same type based on the communication protocol type of the terminals and whether they are encrypted.

[0010] Furthermore, in step (2), the rule includes a number, a rule type number, and serial numbers and actual values ​​of all parameter information.

[0011] Furthermore, in step (3), the rules in the sub-rule base are initially arranged in ascending order according to their serial numbers.

[0012] Furthermore, in step (4), the parameter information of each terminal is inferred and compared with the rules in its corresponding sub-rule base using a pattern matching algorithm.

[0013] Furthermore, the pattern matching algorithm is a linear forward chaining algorithm.

[0014] Furthermore, in step (4), the parameter information of each terminal is compared with the rules in the corresponding sub-rule base by reasoning. If the two are the same, the parameter information of the terminal is correct and the corresponding rule is activated. The initial weight of the rule is 0, and the weight increases by 1 each time it is activated. The rules in the sub-rule base are arranged in descending order according to the weight.

[0015] If multiple rules have the same weight, the most recently activated rule is placed before the rules with the same weight.

[0016] Furthermore, in step (4), if there are abnormal parameters in the terminal, the last rule in the sub-rule base is used to analyze the abnormal parameters.

[0017] Furthermore, in step (4), the diagnostic report includes the diagnosis time, the total number of diagnosed terminals, the number of correct terminals, the number of abnormal terminals and detailed information of abnormal terminals, and the detailed information of abnormal terminals includes the terminal number and the names of all abnormal parameter information.

[0018] The power terminal parameter information diagnosis system based on rule engine of the present invention comprises:

[0019] A rule type establishing unit, used to establish a rule type for each type of terminal connected to the power automation system, used to describe parameter information of the terminal of this type;

[0020] A rule creation unit, used to create a rule according to the rule type of each terminal, wherein the rule is used to describe the correct parameter value of the terminal during operation;

[0021] A sub-rule base building unit is used to read all rules to form a rule base, and to form rules belonging to the same rule type into a sub-rule base of the rule type;

[0022] A fact base building unit, used for reading parameter information setting values ​​of all terminals to be diagnosed to form a fact base;

[0023] The terminal parameter information diagnosis unit is used to traverse all terminals in the fact base for diagnosis through the rule engine, and infer and compare the parameter information of each terminal with the rules in its corresponding sub-rule base. If the two are the same, the parameter information of the terminal is correct, and the corresponding rules in the sub-rule base are sorted in advance; otherwise, the terminal has abnormal parameters, and a rule in the sub-rule base is used to analyze the abnormal parameters; after all terminals are diagnosed, a diagnosis report is output.

[0024] The electronic device described in the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is loaded into the processor, the power terminal parameter information diagnosis method based on the rule engine is implemented.

[0025] The computer-readable storage medium of the present invention stores a computer program, and when the computer program is executed by a processor, the power terminal parameter information diagnosis method based on a rule engine is implemented.

[0026] Beneficial effects: Compared with the prior art, the advantages of the present invention are: the present invention applies the rule engine to the automatic diagnosis and analysis of power terminal parameter information. The operation and maintenance personnel create rule types and rules based on the parameter information used when the terminal establishes a communication mechanism with the power automation system. The rule engine uses the linear forward chaining algorithm LFA for reasoning, automatically completes the diagnosis and analysis of all terminal parameter information, and outputs a diagnosis report. The operation and maintenance personnel can quickly determine the abnormal terminals and parameters based on the diagnosis report. The terminal parameter information diagnosis method and system based on the rule engine of the present invention realizes the diagnosis and analysis of terminal parameter information in seconds, effectively replacing the manual diagnosis operation in hours, and avoiding the hidden dangers of missing diagnosis while improving the operation and maintenance efficiency. The operation and maintenance personnel can flexibly create rule types and rules according to the terminal parameter information to achieve rapid access to new power terminals. It has good flexibility and scalability, can meet the use requirements of different power automation systems, and has good application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 This is a flow chart of the power terminal parameter information diagnosis method of the present invention. DETAILED DESCRIPTION

[0028] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.

[0029] like Figure 1 As shown, the power terminal parameter information diagnosis method based on the rule engine includes the following steps.

[0030] Step 1: Create rule types based on the number and meaning of parameters of different types of terminals connected to the power automation system.

[0031] The rule type is used to describe the classification conditions and composition information of a certain type of terminal parameters, including the serial number, name, communication protocol type, encryption, and the serial number and meaning of all detailed parameter information. The rule type is saved in the configuration file, among which the communication protocol type and encryption constitute the classification conditions.

[0032] There is a one-to-one mapping relationship between rule types and terminal types, that is, one rule type corresponds to one type of terminal. There is no one-to-many or many-to-many relationship, and there are no identical rule types.

[0033] Step 2: Create rules based on the rule type corresponding to the terminal parameter information and the actual values ​​during operation.

[0034] A rule is an instance of a rule type, which describes the actual and correct parameter information under the working state of the terminal. The correct value of each parameter is a pattern of the rule and is the basis for diagnosis. Based on the differences in the specific values ​​of the terminal parameter information connected to the power automation system, multiple rules can be created for the same rule type. The rule includes the number, the rule type number, the sequence number and actual value of all parameter information. Each specific parameter value is a pattern of the rule, and the rules are saved in the configuration file.

[0035] Step 3: The rule engine reads all rule information to form a rule base, which is divided into multiple sub-rule bases according to the rule type, and reads the parameter information setting values ​​of all terminals to be diagnosed from the power automation system database to form a fact base.

[0036] The sub-rule base of the rule engine contains all rule information of the same rule type, and the initial arrangement order of the rules in the sub-rule base is in ascending order of numbers.

[0037] The types of all terminals to be diagnosed read by the rule engine are the same as the rule types created in the system. The terminal parameter information is consistent with the meaning and order of the parameter information described by the rule type. The fact database saves the parameter information of all terminals in the order read.

[0038] Step 4: The rule engine traverses all terminals in the fact base, and then uses the pattern matching algorithm to infer and compare all parameter information of each terminal with the rule patterns in the sub-rule base of the same type. If any rule is activated, it means that all parameter information of the terminal is correct, and the rules in the sub-rule base are dynamically sorted; if no rule in the sub-rule base is activated, it means that there are abnormal parameters in the terminal, and a rule in the sub-rule base is taken to analyze the abnormal parameters. After all terminals are diagnosed, a diagnostic report is generated and published.

[0039] The pattern matching algorithm is the linear forward chaining algorithm LFA. The communication protocol type and whether to encrypt constitute the rule schema part of the LFA algorithm, and the rules in the sub-rule base constitute the rule body part of the LFA algorithm.

[0040] Dynamic sorting of rules is based on weight. The weight indicates the number of times the rule is activated. The initial value is 0. The rules in each sub-rule base are sorted in descending order according to the weight. If multiple rules have the same weight, the most recently activated rule is placed at the front of the rules with the same weight.

[0041] Take a rule in the sub-rule base as the last rule.

[0042] The diagnostic report content includes the report time, the total number of diagnosed terminals, the number of correct terminals, the number of incorrect terminals and detailed information of abnormal terminals, and the detailed information of abnormal terminals includes the terminal number and the names of all abnormal parameter information.

[0043] Taking the OPEN 5200 distribution network automation system as an example, three terminals of the encrypted IEC 104 communication protocol type are selected to be diagnosed, and the method of the present invention is described in detail.

[0044] (1) Analyze the type and composition of the information parameters of the three terminals. The communication protocol type of the three terminals is IEC 104, and the communication mode is encrypted communication. They have the same parameter information and belong to the same type of terminal. Create a rule type for the terminal, named "Encrypted IEC104 Type", numbered 1, the communication protocol type is "IEC104", the encryption mode is "Yes", and the serial numbers and meanings of all detailed parameter information are: 1_Encryption mode, 2_Asymmetric key index, 3_Symmetric key index, 4_Plan value curve, 5_Remote signal category, 6_SOE category, 7_Protocol details. The created rule type information is saved in the configuration file rule_type.sys.

[0045] (2) Analyze the actual parameter information of the three terminals during operation. The parameter information values ​​of two terminals are exactly the same. The other terminal has the same parameter information as the other terminals except for the different SOE category. The three terminals belong to two subtypes. Create two rules based on the rule type number 1:

[0046] Rule 1: Rule number 1, rule type number 1, encryption method_Kedong parallel encryption, asymmetric key index_first group of passwords, symmetric key index_1, remote signaling category_0, SOE category_0, regulations_JM104-2017;

[0047] Rule 2: Rule number 2, rule type number 1, encryption method_Kedong parallel encryption, asymmetric key index_first group of passwords, symmetric key index_1, remote signal category_0, SOE category_3, regulations_JM104-2017.

[0048] The two rule information is saved in the configuration file rule_details.sys.

[0049] (3) The rule engine reads the rule type and rule information from the configuration files rule_type.sys and rule_details.sys to build a rule base. The rule base contains only one sub-rule base, which includes two rules, arranged in ascending order, that is, rule 1 first and rule 2 second, and the initial value of the rule weight is 0. The rule engine reads all the terminal parameter information to be diagnosed from the power automation system database:

[0050] (a) The parameter information of the first terminal is: terminal type is encryption IEC104 protocol type, encryption method_Kedong parallel encryption, asymmetric key index_first group of passwords, symmetric key index_1, remote signaling category_0, SOE category_3, protocol details_JM104-2017;

[0051] (b) The parameter information of the second terminal is: terminal type is encryption IEC 104 protocol type, encryption method_Kedong parallel encryption, asymmetric key index_first group of passwords, symmetric key index_1, remote signaling category_0, SOE category_3, protocol details_JM104-2017;

[0052] (c) The parameter information of the third terminal is: terminal type is encryption IEC 104 protocol type, encryption method_serial encryption, asymmetric key index_first group of passwords, symmetric key index_1, remote signaling category_1, SOE category_0, protocol details_97 issued.

[0053] The rule base information and fact base information are stored in the system working memory.

[0054] (4) The rule engine traverses all the terminals in the fact base in turn, and performs reasoning comparison between the terminal parameter information and the rules in the rule base according to the linear forward joining algorithm LFA. Specifically:

[0055] The rule engine first diagnoses the parameter information of the first terminal. If there is a rule type with the same type in the rule base, it will continue to take the rules of the sub-rule base corresponding to the rule type to perform reasoning comparison. The parameter information of terminal 1 is compared with the component patterns of rule 1 in turn. If the SOE category information is inconsistent, the comparison with rule 1 ends; the pattern of rule 2 is compared in turn. The terminal parameter information completely matches all the patterns in rule 2, rule 2 is activated, the parameter information of terminal 1 is verified correctly, and the weight of rule 2 is increased by 1. The rule engine dynamically adjusts the order of rules in the rule base according to the weight. After the adjustment, rule 2 is in front and rule 1 is in the back.

[0056] The rule engine continues to perform the diagnosis of the second terminal. There is a rule type with the same type as terminal 2 in the rule base. The rule engine continues to take the rules of the sub-rule base corresponding to the rule type to perform reasoning comparison. The parameter information of terminal 2 is compared with the pattern of rule 2 in sequence. The terminal parameter information completely matches all the patterns in rule 2. The parameter information of terminal 2 is correct. Rule 2 is activated again and its weight continues to increase by 1 to 2. The rule engine recognizes that rule 2 is already at the front and does not need to be reordered, and ends the diagnosis operation on the terminal.

[0057] The rule engine continues to perform the diagnosis of the third terminal. The rule base has the same rule type as terminal 3. The rule engine continues to take the rules of the sub-rule base corresponding to the rule type to perform reasoning comparison. The parameter information of terminal 3 is compared with the mode of rule 2 in sequence. The encryption methods are inconsistent, so the comparison with rule 2 is exited. Rule 1 is continued to be compared with the terminal parameter information. The encryption method information is different, so the comparison with rule 1 is exited.

[0058] At this point, all the rules in the sub-rule base have been compared, and no rule has been activated. The rule engine confirms that there is an error in the parameter information of terminal 3. The last rule in the rule base, rule 1, is used to analyze the parameter information of terminal 3, and it is found that there are errors in the encryption method, telesignaling category, and protocol details information, and there is no need to readjust the rule order. At this point, the diagnosis and analysis of all terminals are completed, and the rule engine outputs a diagnostic report. The diagnostic report file name is diagnosis_result_20240222165919.txt, and the details are as follows:

[0059] Diagnostic results: The total number of diagnosed terminals is 3, the number of correct terminals is 2, and the number of incorrect terminals is 1.

[0060] Detailed fault parameter information of the error terminal: Terminal No. 1: encryption type; remote signal category; protocol details.

[0061] The method of the present invention can diagnose and analyze all power terminal information parameters that have been managed in the power automation system, and the diagnosis results include correct and incorrect results. If the diagnosis result is incorrect, the incorrect parameter information in the terminal is automatically analyzed.

[0062] The power terminal parameter information diagnosis system based on rule engine of the present invention comprises:

[0063] A rule type establishing unit, used to establish a rule type for each type of terminal connected to the power automation system, used to describe parameter information of the terminal of this type;

[0064] A rule creation unit, used to create a rule according to the rule type of each terminal, wherein the rule is used to describe the correct parameter value of the terminal during operation;

[0065] A sub-rule base building unit is used to read all rules to form a rule base, and to form rules belonging to the same rule type into a sub-rule base of the rule type;

[0066] A fact base building unit, used for reading parameter information setting values ​​of all terminals to be diagnosed to form a fact base;

[0067] The terminal parameter information diagnosis unit is used to traverse all terminals in the fact base for diagnosis through the rule engine, and infer and compare the parameter information of each terminal with the rules in its corresponding sub-rule base. If the two are the same, the parameter information of the terminal is correct, and the corresponding rules in the sub-rule base are sorted in advance; otherwise, the terminal has abnormal parameters, and a rule in the sub-rule base is used to analyze the abnormal parameters; after all terminals are diagnosed, a diagnosis report is output.

[0068] The electronic device described in the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is loaded into the processor, the power terminal parameter information diagnosis method based on the rule engine is implemented.

[0069] The computer-readable storage medium of the present invention stores a computer program, and when the computer program is executed by a processor, the power terminal parameter information diagnosis method based on a rule engine is implemented.

[0070] The computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, flash memory, or any other medium that can be used to store program code in the form of instructions or data structures and that can be accessed by a computer.

[0071] The processor is used to execute the computer program stored in the memory to implement each step of the method involved in the above embodiment.

Claims

1. A power terminal parameter information diagnosis method based on rule engine, characterized in that: The steps include: (1) Establish a rule type for each type of terminal connected to the power automation system to describe the parameter information of the terminal; (2) creating rules according to the rule type of each terminal, wherein the rules are used to describe the correct parameter values ​​of the terminal during operation; (3) Read all rules to form a rule base, and organize the rules belonging to the same rule type into a sub-rule base of the rule type; read the parameter information setting values ​​of all terminals to be diagnosed to form a fact base; (4) The rule engine traverses all terminals in the fact base for diagnosis, and compares the parameter information of each terminal with the rules in the corresponding sub-rule base. If the two are the same, the parameter information of the terminal is correct, and the corresponding rule in the sub-rule base is sorted in advance; otherwise, the terminal has abnormal parameters, and a rule in the sub-rule base is used to analyze the abnormal parameters; after all terminals are diagnosed, a diagnosis report is output.

2. The power terminal parameter information diagnosis method based on rule engine according to claim 1 is characterized in that: In step (1), it is determined whether the terminals are of the same type based on the communication protocol type of the terminals and whether they are encrypted.

3. The power terminal parameter information diagnosis method based on rule engine according to claim 1 is characterized in that: In step (2), the rule includes a number, a rule type number, and the sequence numbers and actual values ​​of all parameter information.

4. The power terminal parameter information diagnosis method based on rule engine according to claim 1 is characterized in that: In step (3), the rules in the sub-rule base are initially arranged in ascending order according to their serial numbers.

5. The power terminal parameter information diagnosis method based on rule engine according to claim 1 is characterized in that: In step (4), the pattern matching algorithm is used to infer and compare the parameter information of each terminal with the rules in its corresponding sub-rule base.

6. The power terminal parameter information diagnosis method based on rule engine according to claim 5 is characterized in that: The pattern matching algorithm is a linear forward chaining algorithm.

7. The power terminal parameter information diagnosis method based on rule engine according to claim 1 is characterized in that: In step (4), the parameter information of each terminal is compared with the rules in the corresponding sub-rule base. If the two are the same, the parameter information of the terminal is correct and the corresponding rule is activated. The initial weight of the rule is 0, and the weight increases by 1 each time it is activated. The rules in the sub-rule base are arranged in descending order according to the weight. If multiple rules have the same weight, the most recently activated rule is placed before the rules with the same weight.

8. The power terminal parameter information diagnosis method based on rule engine according to claim 7 is characterized in that: In step (4), if there are abnormal parameters in the terminal, the last rule in the sub-rule base is used to analyze the abnormal parameters.

9. The power terminal parameter information diagnosis method based on rule engine according to claim 1 is characterized in that: In step (4), the diagnosis report includes the diagnosis time, the total number of diagnosed terminals, the number of correct terminals, the number of abnormal terminals and detailed information of abnormal terminals, and the detailed information of abnormal terminals includes the terminal number and the names of all abnormal parameter information.

10. A power terminal parameter information diagnosis system based on rule engine, characterized in that: include: A rule type establishing unit, used to establish a rule type for each type of terminal connected to the power automation system, used to describe parameter information of the terminal of this type; A rule creation unit, used to create a rule according to the rule type of each terminal, wherein the rule is used to describe the correct parameter value of the terminal during operation; A sub-rule base building unit is used to read all rules to form a rule base, and to form rules belonging to the same rule type into a sub-rule base of the rule type; A fact base building unit, used for reading parameter information setting values ​​of all terminals to be diagnosed to form a fact base; The terminal parameter information diagnosis unit is used to traverse all terminals in the fact base for diagnosis through the rule engine, and infer and compare the parameter information of each terminal with the rules in its corresponding sub-rule base. If the two are the same, the parameter information of the terminal is correct, and the corresponding rules in the sub-rule base are sorted in advance; otherwise, the terminal has abnormal parameters, and a rule in the sub-rule base is used to analyze the abnormal parameters; after all terminals are diagnosed, a diagnosis report is output.

11. 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 computer program is loaded into the processor, the power terminal parameter information diagnosis method based on the rule engine according to any one of claims 1 to 9 is implemented.

12. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the power terminal parameter information diagnosis method based on a rule engine according to any one of claims 1 to 9 is implemented.