[go: up one dir, main page]

CN116226125A - A method and system for expressing industrial alarm information based on state association rules - Google Patents

A method and system for expressing industrial alarm information based on state association rules Download PDF

Info

Publication number
CN116226125A
CN116226125A CN202310144561.8A CN202310144561A CN116226125A CN 116226125 A CN116226125 A CN 116226125A CN 202310144561 A CN202310144561 A CN 202310144561A CN 116226125 A CN116226125 A CN 116226125A
Authority
CN
China
Prior art keywords
rule
information
alarm
original
rules
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310144561.8A
Other languages
Chinese (zh)
Inventor
迟海龙
杨廷勇
张卫君
邓小刚
赵勇飞
陈小松
汪华强
朱学勤
龚传利
邓子夜
颜现波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Institute of Water Resources and Hydropower Research
Original Assignee
China Institute of Water Resources and Hydropower Research
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Institute of Water Resources and Hydropower Research filed Critical China Institute of Water Resources and Hydropower Research
Priority to CN202310144561.8A priority Critical patent/CN116226125A/en
Publication of CN116226125A publication Critical patent/CN116226125A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Health & Medical Sciences (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Public Health (AREA)
  • Water Supply & Treatment (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Alarm Systems (AREA)

Abstract

本发明的基于状态关联规则的工业告警信息表达的方法和系统,系统包括原始告警信息、规则分析引擎、规则数据库、规则配置、告警面板;本发明通过对原始事件信息的重新定义与转写,将诸多分立的事件,高效的综合为,一个有机统一的整体事件信息;提高了运维人员有效掌握生产过程中有效告警信息的学习成本,减少了运维人员的信息识别工作量以及工作强度;并且可以从独立的告警中抽象和分析出内在后台设备状态运行告警信息,具有深层溯源信息的高等级告警信息,可为运维人员提供更加精准快速的定位信息;并且实现了大量等价点动作信息的消除和信息压缩,降低了告警数量,提升了告警效率。

Figure 202310144561

The method and system for expressing industrial alarm information based on state association rules of the present invention, the system includes original alarm information, rule analysis engine, rule database, rule configuration, and alarm panel; the present invention redefines and transcribes original event information, Efficiently integrate many discrete events into an organic and unified overall event information; improve the learning cost for the operation and maintenance personnel to effectively grasp the effective alarm information in the production process, and reduce the information identification workload and work intensity of the operation and maintenance personnel; And it can abstract and analyze the internal background equipment status operation alarm information from independent alarms, and the high-level alarm information with deep traceability information can provide more accurate and fast positioning information for operation and maintenance personnel; and realize a large number of equivalent point actions Information elimination and information compression reduce the number of alarms and improve alarm efficiency.

Figure 202310144561

Description

一种基于状态关联规则的工业告警信息表达的方法和系统A method and system for expressing industrial alarm information based on state association rules

技术领域technical field

本发明涉及工业告警技术领域,尤其涉及一种基于状态关联规则的工业告警信息表达的方法和系统。The invention relates to the technical field of industrial alarms, in particular to a method and system for expressing industrial alarm information based on state association rules.

背景技术Background technique

报警信息作为生产信息的外在表现,其中的每一种信息表达都是与具体生产行为一一对应的,并非孤立存在的;所以每一种模式的设备工作方式都会产生固定模式的告警事件序列;正是固有内在关联的规律将很多看似纷繁散乱的信息串在了一起,进而产生一种有意义的信息表达;而对告警信息的内在规律进行发掘,并对分立的事件进行分析,即可以得到很多额外的有用信息;As the external manifestation of production information, alarm information is one-to-one corresponding to specific production behaviors, and does not exist in isolation; therefore, each mode of equipment operation will generate a fixed mode of alarm event sequence ; It is the law of inherent internal correlation that strings together a lot of seemingly complicated and scattered information, and then produces a meaningful information expression; and excavates the internal law of alarm information, and analyzes the discrete events, that is, A lot of additional useful information can be obtained;

目前主流的现有技术告警信息系统往往采用“忠于现场数据”的原则,告警系统只是按照时间发生时间顺序如实禀告;告警系统不足以‘聪明’到可以分析并‘理解’每一事件内在关联和含义;At present, the mainstream existing technology alarm information system often adopts the principle of "loyalty to field data", and the alarm system only reports truthfully according to the order of chronological occurrence; the alarm system is not 'smart' enough to analyze and 'understand' the internal correlation and meaning;

现有技术中的SCADA告警系统都是对测点进行独立按时序的方式进行处理,也就是所有的事件信息仅仅表达了事件的时序和状态等信息,而对于报警内在的关联关系及逻辑没有采取任何分析处理措施;The SCADA alarm system in the prior art processes the measurement points independently and sequentially, that is, all event information only expresses information such as the sequence and status of the event, and does not adopt the internal relationship and logic of the alarm. any analytical processing measures;

现有技术的这种处理方式,在过去计算机计算水平不发达的情况是能够满足当时需求的,但是随着计算机性能的水平与性能不断的提高,计算机和生产实时系统的测点数据量的不断增加,计算机与告警系统的联系不断加深;现有技术在实际应用中,首先被大量的分立的事件占用了很多宝贵的存储展示资源,使得现有技术告警系统的运维人员管理工作量大大增加;This processing method of the existing technology can meet the needs of the time when the computer computing level is not developed in the past, but with the continuous improvement of the computer performance level and performance, the amount of measuring point data of the computer and the production real-time system is constantly increasing. increase, the connection between the computer and the alarm system continues to deepen; in the actual application of the prior art, a large number of discrete events occupy a lot of precious storage and display resources, which greatly increases the management workload of the operation and maintenance personnel of the prior art alarm system ;

其次现有技术在面对众多分散的貌似纷繁复杂的独立事件,无法找到并洞察到各个事件的内在关联关系,现有技术中各个事件都是孤立的,使得每个告警都会呈现在运维人员眼前,大大降低了降低告警的数量以及告警效率;Secondly, in the face of many scattered and seemingly complicated independent events, the existing technology cannot find and gain insight into the internal correlation of each event. In the existing technology, each event is isolated, so that each alarm will be presented to the operation and maintenance personnel. At present, the number of alarms and alarm efficiency are greatly reduced;

并且现有技术也无法从每个独立告警中抽象和分析出内在后台设备状态运行警告信息,使得现有技术的告警效率依旧极端依赖告警系统前的运维人员,并且生产过程中,大量纷扰复杂的信息对运维人员的的工作强度与信息识别量也极大;大量的信息浮于表面,无法快速精准的定位信息。Moreover, the existing technology cannot abstract and analyze the internal background device status operation warning information from each independent alarm, so that the alarm efficiency of the existing technology is still extremely dependent on the operation and maintenance personnel in front of the alarm system, and in the production process, a large number of disturbances and complex The information on the operation and maintenance personnel's work intensity and the amount of information identification are also extremely large; a large amount of information is floating on the surface, and it is impossible to quickly and accurately locate the information.

因此,本领域技术人员致力于开发一种基于状态关联规则的工业告警信息表达的方法和系统,旨在解决现有技术中存在的缺陷问题。Therefore, those skilled in the art are devoting themselves to developing a method and system for expressing industrial alarm information based on state association rules, aiming at solving the defects existing in the prior art.

发明内容Contents of the invention

有鉴于现有技术的上述缺陷,本发明所要解决的技术问题是目前现有技术中,告警系统被大量的分立的事件占用了很多宝贵的存储展示资源,使得现有技术告警系统的运维人员管理工作量大大增加;并且无法从每个独立告警中抽象和分析出内在后台设备状态运行警告信息,使得现有技术的告警效率依旧极端依赖告警系统前的运维人员,大大降低了降低告警的数量以及告警效率。In view of the above-mentioned defects of the prior art, the technical problem to be solved by the present invention is that in the prior art, a large number of discrete events in the alarm system occupy a lot of valuable storage and display resources, so that the operation and maintenance personnel of the alarm system in the prior art The management workload is greatly increased; and it is impossible to abstract and analyze the internal background device status operation warning information from each independent alarm, so that the alarm efficiency of the existing technology is still extremely dependent on the operation and maintenance personnel in front of the alarm system, which greatly reduces the cost of reducing alarms. Quantity and alert efficiency.

为实现上述目的,本发明一种基于状态关联规则的工业告警信息表达的方法和系统,包括如下步骤:In order to achieve the above object, the present invention provides a method and system for expressing industrial alarm information based on state association rules, including the following steps:

步骤1、对原始事件信息完成定义与转写;Step 1. Complete the definition and transcription of the original event information;

步骤2、将转写后的数据存储在规则数据库中;Step 2, storing the transcribed data in the rule database;

步骤3、当规则查询关键词需要被查找时,枚举查找每个条件,将满足条件的具体规则并压入规则栈;Step 3. When the rule query keywords need to be searched, enumerate and search for each condition, and push the specific rules that meet the conditions into the rule stack;

步骤4、再次收到原始事件信息后,使用规则栈对原始事件进行分析处理;Step 4. After receiving the original event information again, use the rule stack to analyze and process the original event;

所述步骤1、对原始事件信息完成定义与转写;The step 1, completing the definition and transcription of the original event information;

所述对原始事件信息的定义即将每个顺序的原始事件告警对应一个预定义的字串,每个预定义的字串都代表了某种顺序发生的事件链;The definition of the original event information is that each sequence of original event alarms corresponds to a predefined string, and each predefined string represents an event chain that occurs in a certain order;

进一步地,所述步骤1对原始事件信息完成定义与转写采用的是正则表达式来完成对原始事件信息的定义与转写;Further, the step 1 defines and transcribes the original event information using regular expressions to complete the definition and transcribe of the original event information;

所述步骤2、将转写后的数据存储在规则数据库中;The step 2, storing the transcribed data in the rule database;

所述转写后的数据是以散列表的形式<Key,Item>存储在规则数据库中的;The transcribed data is stored in the rule database in the form of a hash table <Key, Item>;

所述散列表中的Key为每个规则的查询关键字,Item为规则定义项;Key in the hash table is the query keyword of each rule, and Item is a rule definition item;

所述每个规则Item都可以组织成为一个规则树的形式,Item项中存储着由各个条件与规则定义的多分支树;Each of the rule Items can be organized into a form of a rule tree, and the item stores a multi-branch tree defined by various conditions and rules;

进一步地,所述每个Item项的叶子节点都存储着规则的具体定义与描述;其中的字母表代表了描述某种事件的简化字符;Further, the leaf node of each Item item stores the specific definition and description of the rule; the alphabet in it represents a simplified character describing a certain event;

步骤3、当规则查询关键词需要被查找时,枚举查找每个条件,将满足条件的具体规则并压入规则栈;Step 3. When the rule query keyword needs to be searched, enumerate and search for each condition, and push the specific rules that meet the conditions into the rule stack;

所述规则的查询关键字需要被查找时,首先在步骤2建立的散列表里查找具体的对应项目;When the query keyword of the rule needs to be searched, first search for a specific corresponding item in the hash table established in step 2;

所述对应的项目即步骤2中很多条件的集合,枚举查找每个条件,并按照条件进行判断,判断后若满足能提取出以规则名字为代表的具体规则则压入规则栈;The corresponding item is the set of many conditions in step 2, enumerates and searches each condition, and judges according to the conditions, if satisfied after the judgment, the specific rules represented by the rule name can be extracted and then pushed into the rule stack;

步骤4、再次收到原始事件信息后,使用规则栈对原始事件进行分析处理;Step 4. After receiving the original event information again, use the rule stack to analyze and process the original event;

所述步骤3中的规则压入规则栈中后,即会在每个原始事件信息到达后,对原始事件信息进行第次分析处理;After the rules in step 3 are pushed into the rule stack, the original event information will be analyzed and processed for the first time after each original event information arrives;

所述原始事件信息到达后,会通过每个规则的审查,若该规则对该条原始事件信息可以适用,则对其进行分析处理,处理后的结果有3种结果;After the original event information arrives, it will pass the review of each rule. If the rule is applicable to the original event information, it will be analyzed and processed. There are three types of results after processing;

所述分析处理结果其一是,适用该规则且满足该时序规则的预设子模式,则在处理过程中对原始事件信息进行缓存并“吞掉”该信息;直到最后一个模式结束的原始事件信息到达规则会发出结论;One of the results of the analysis and processing is that if the rule is applicable and the preset sub-mode that meets the timing rule, the original event information is cached and "swallowed" during the processing; the original event until the end of the last mode Message arrival rules issue conclusions;

所述分析处理结果其二是,适用该规则且不满足该时序规则的预设子模式时,则将之前缓存吞掉的原始事件信息释掉,一并“吐出”,并给出该规则不满足的具体原因;The second analysis and processing result is that when the rule is applicable and the preset sub-mode of the timing rule is not satisfied, the original event information swallowed by the previous buffer is released and "spit out" together, and the rule is given. the specific reason for the satisfaction;

所述分析处理结果其三是,不适用该规则则顺次进入到规则链中的下一个规则处理中,直到找到使用的时序规则并处理之,或者如果规则栈中没有任何适用的规则则该原始事件信息会保持原始状态;The third result of the analysis and processing is that if the rule is not applicable, it will enter the next rule processing in the rule chain in sequence until the timing rule used is found and processed, or if there is no applicable rule in the rule stack, the Raw event information will remain in its original state;

进一步地,所述规则在规则栈中是以链式的方式进行存储的;Further, the rules are stored in a chained manner in the rule stack;

进一步地,所述规则可以被预设写入规则栈中,用以检查工业生产过程是否正常进行;Further, the rules can be preset and written into the rule stack to check whether the industrial production process is going on normally;

本发明第二方面提供了一种基于状态关联规则的工业告警信息表达的系统,用于实现第一方面所述的方法,系统包括原始告警信息、规则分析引擎、规则数据库、规则配置、告警面板;The second aspect of the present invention provides a system for expressing industrial alarm information based on state association rules, which is used to implement the method described in the first aspect. The system includes original alarm information, a rule analysis engine, a rule database, rule configuration, and an alarm panel. ;

所述规则分析引擎中又包括规则分析NFA和规则栈;Include rule analysis NFA and rule stack again in described rule analysis engine;

所述规则栈的工作核心为一个NFA(非确定自动状态机),NFA是由一系列状态驱动的状态结合,它可用于字符串的模式检查,通过将各个事件集合映射为字符串集后,就可通过由规则构造的NFA对字符字串的模式进行分析处理,一个时序规则就可以对应一个NFA状态转换图,系统内置了正则表达式NFA生成和工作模块;The working core of the rule stack is an NFA (non-deterministic automatic state machine). NFA is a combination of states driven by a series of states. It can be used for pattern checking of strings. After each event set is mapped to a string set, The pattern of character strings can be analyzed and processed through the NFA constructed by the rules. A timing rule can correspond to an NFA state transition diagram. The system has built-in regular expression NFA generation and working modules;

所述原始告警信息到达后首先要进入到规则分析引擎中;After the original alarm information arrives, it first enters into the rule analysis engine;

所述规则引擎首先提出出告警信息中的规则的查询关键字信息,然后用得到的查询关键字信息到规则数据库中查找已有的规则信息当查到后需要将查到的规则压入规则栈中;The rule engine first proposes the query keyword information of the rules in the alarm information, and then uses the obtained query keyword information to search the existing rule information in the rule database. When it is found, it needs to push the found rule into the rule stack middle;

所述原始告警到达规则分析引擎后经过一簇规则序列处理后得到结论告警信息发送给告警面板或者没有相关处理规则的时候,告警信息原样的发送给告警面板;After the original alarm arrives at the rule analysis engine, it is processed by a cluster of rule sequences to obtain a conclusion that the alarm information is sent to the alarm panel or when there is no relevant processing rule, the alarm information is sent to the alarm panel as it is;

所述每个原始告警到达告警协议栈时,都要经过协议栈中所有规则处理后决定其下一步处理方式,这样处理后的原始告警的生数据信息经过处理后变成了人为更容易识别的熟数据;When each original alarm reaches the alarm protocol stack, it must be processed by all the rules in the protocol stack to determine its next processing method, so that the raw data information of the processed original alarm becomes easier to identify after processing. cooked data;

所述规则配置模块为人为配置信息输入窗口,系统启动后会自动装载预设的规则信息;The rule configuration module is an artificial configuration information input window, and the preset rule information will be automatically loaded after the system starts;

采用以上方案,本发明公开的基于状态关联规则的工业告警信息表达的方法和系统,具有以下优点:Using the above scheme, the method and system for expressing industrial alarm information based on state association rules disclosed in the present invention have the following advantages:

(1)本发明的基于状态关联规则的工业告警信息表达的方法,通过对原始事件信息的重新定义与转写,使得纷繁复杂的储存展示资源得到解放,通过预设的规则将诸多分立的事件,高效的综合为,一个有机统一的整体事件信息;大量的节约了事件信息的展示版面空间,并且也提高了运维人员有效掌握生产过程中有效告警信息的学习成本,减少了运维人员的信息识别工作量以及工作强度;(1) The method for expressing industrial alarm information based on state association rules of the present invention liberates complicated storage and display resources by redefining and transcribing the original event information, and separates many discrete events through preset rules , the efficient synthesis is an organic and unified overall event information; a large amount of event information display layout space is saved, and it also improves the learning cost for the operation and maintenance personnel to effectively grasp the effective alarm information in the production process, and reduces the operation and maintenance personnel's workload. Information identification workload and work intensity;

(2)本发明的基于状态关联规则的工业告警信息表达的方法和系统,可以基于规则栈实现从独立的告警中抽象和分析出内在后台设备状态运行告警信息,并且可以实现大量等价点动作信息的消除和信息压缩,使得本发明的告警的数量大大降低,但是极大的提升了告警效率;(2) The method and system for expressing industrial alarm information based on state association rules of the present invention can abstract and analyze internal background equipment state operation alarm information from independent alarms based on rule stacks, and can realize a large number of equivalent point actions The information elimination and information compression greatly reduce the number of alarms in the present invention, but greatly improve the alarm efficiency;

(3)告警采用具有深层溯源信息的高等级告警信息,可为运维人员提供更加精准快速的定位信息。(3) The alarm adopts high-level alarm information with in-depth traceability information, which can provide more accurate and fast positioning information for operation and maintenance personnel.

综上所述,本发明公开的基于状态关联规则的工业告警信息表达的方法和系统,通过对原始事件信息的重新定义与转写,将诸多分立的事件,高效的综合为,一个有机统一的整体事件信息;提高了运维人员有效掌握生产过程中有效告警信息的学习成本,减少了运维人员的信息识别工作量以及工作强度;并且可以从独立的告警中抽象和分析出内在后台设备状态运行告警信息,具有深层溯源信息的高等级告警信息,可为运维人员提供更加精准快速的定位信息;并且实现了大量等价点动作信息的消除和信息压缩,降低了告警数量,提升了告警效率。In summary, the method and system for expressing industrial alarm information based on state association rules disclosed in the present invention, through redefining and transcribing the original event information, efficiently synthesize many discrete events into an organic and unified Overall event information; improve the learning cost for operation and maintenance personnel to effectively grasp effective alarm information in the production process, reduce the workload and work intensity of information identification for operation and maintenance personnel; and can abstract and analyze the internal background device status from independent alarms Operational alarm information, high-level alarm information with in-depth traceability information, can provide more accurate and fast positioning information for operation and maintenance personnel; and realize the elimination and information compression of a large number of equivalent point action information, reduce the number of alarms, and improve the number of alarms. efficiency.

以下将结合具体实施方式对本发明的构思、具体技术方案及产生的技术效果作进一步说明,以充分地了解本发明的目的、特征和效果。The idea, specific technical solutions and technical effects of the present invention will be further described below in conjunction with specific embodiments, so as to fully understand the purpose, features and effects of the present invention.

附图说明Description of drawings

图1是本发明的基于状态关联规则的工业告警信息表达的方法流程示意图;Fig. 1 is a schematic flow chart of the method for expressing industrial alarm information based on state association rules of the present invention;

图2是本发明实施例1的基于状态关联规则的工业告警信息表达的系统总结构示意图;2 is a schematic diagram of the general structure of the system for expressing industrial alarm information based on state association rules in Embodiment 1 of the present invention;

图3是本发明实施例1的基于状态关联规则的工业告警信息表达的规则状态转换图;Fig. 3 is a rule state transition diagram of industrial alarm information expression based on state association rules in Embodiment 1 of the present invention;

图4是本发明实施例1的基于状态关联规则的工业告警信息表达的规则树模型示意图;4 is a schematic diagram of a rule tree model for expressing industrial alarm information based on state association rules in Embodiment 1 of the present invention;

图5是本发明实施例1的基于状态关联规则的工业告警信息表达的规则栈工作原理示意图;Fig. 5 is a schematic diagram of the working principle of the rule stack of industrial alarm information expression based on state association rules in Embodiment 1 of the present invention;

图6是本发明实施例1具体实施中,水电站开机流程的六步框图;Fig. 6 is a six-step block diagram of the start-up process of the hydropower station in the specific implementation of Embodiment 1 of the present invention;

图7是本发明实施例1具体实施中,状态关联规则处理后的场景展示示意图;Fig. 7 is a schematic diagram showing a scene after state association rules are processed in the specific implementation of Embodiment 1 of the present invention;

图8是本发明实施例1具体实施中,状态关联规则处理后出现‘锁锭退出状态复归’的场景展示示意图;Fig. 8 is a schematic diagram showing the scene of 'locking ingot exit state return' after processing state association rules in the specific implementation of embodiment 1 of the present invention;

图9是本发明对比例1具体实施中,未采用状态关联规则处理后的场景展示示意图;Fig. 9 is a schematic diagram showing a scene after processing without state association rules in the specific implementation of Comparative Example 1 of the present invention;

图10是本发明对比例1具体实施中,未采用状态关联规则处理后出现‘锁锭退出状态复归’的场景展示示意图。Fig. 10 is a schematic diagram showing the scene of 'returning to the exit state of the lock' after the state association rule is not used in the specific implementation of Comparative Example 1 of the present invention.

具体实施方式Detailed ways

以下介绍本发明的多个优选实施例,使其技术内容更加清楚和便于理解。本发明可以通过许多不同形式的实施例来得以体现,这些实施例为示例性描述,本发明的保护范围并非仅限于文中提到的实施例。A number of preferred embodiments of the present invention are introduced below to make the technical content clearer and easier to understand. The present invention can be embodied in many different forms of embodiments, and these embodiments are described as examples, and the protection scope of the present invention is not limited to the embodiments mentioned herein.

实施例1、基于状态关联规则的水电站机组开机流程的告警信息表达系统Embodiment 1. An alarm information expression system for the start-up process of a hydropower station unit based on state association rules

本实施例1的系统总结构示意图如图2所示,本实施例1的系统所执行的方法流程示意图如图1所示;The schematic diagram of the general structure of the system of the present embodiment 1 is shown in Figure 2, and the schematic diagram of the method flow executed by the system of the present embodiment 1 is shown in Figure 1;

首先进行实施例1的步骤1、对原始事件信息完成定义与转写;Firstly carry out step 1 of embodiment 1, complete the definition and transcription of the original event information;

所述对原始事件信息的定义即将每个顺序的原始事件告警对应一个预定义的字串,每个预定义的字串都代表了某种顺序发生的事件链;The definition of the original event information is that each sequence of original event alarms corresponds to a predefined string, and each predefined string represents an event chain that occurs in a certain order;

所述步骤1对原始事件信息完成定义与转写采用的是正则表达式来完成对原始事件信息的定义与转写;The step 1 completes the definition and transliteration of the original event information using regular expressions to complete the definition and transliteration of the original event information;

所述正则表达式可以描述顺序的乃至周期循环的各种事件的信息;该方法可以表达分支(或)循环某个子模式的重复等信息;具体语法描述如下表1所示:The regular expression can describe the information of various events in sequence or even cycle; this method can express information such as the repetition of a sub-pattern in a branch (or) cycle; the specific syntax description is shown in Table 1 below:

表1正则表达式规则描述Table 1 Description of regular expression rules

Figure BDA0004088768410000051
Figure BDA0004088768410000051

所述正则表达式表达到具体的事件信息上就是‘命令下达’后紧随‘命令收到’后面就是若干次的‘增磁’或者‘减磁‘动作最后以命令到位结束本次顺序事件过程;如果事件顺序满足这个规则则报告一条综合信息‘命令执行成功’,如果不满足此规则会给出具体不满足规则的具体原因;具体可参考如图3所示的规则状态转换图;When the regular expression is expressed in the specific event information, the "command issued" followed by the "command received" is followed by several "magnetization" or "magnetization demagnetization" actions, and finally the sequence event process is ended with the command in place. ; If the sequence of events satisfies this rule, a comprehensive message 'command execution is successful' will be reported. If this rule is not satisfied, the specific reason for not satisfying the rule will be given; for details, please refer to the rule state transition diagram shown in Figure 3;

本次实施例1的水电站开机流程的六步框图如图6所示;本次实施例1水电站机组开机流程的时序规则字母映射表如下表2所示;The six-step block diagram of the start-up process of the hydropower station in Embodiment 1 is shown in Figure 6; the letter mapping table of the time sequence rules for the start-up process of the hydropower unit in Embodiment 1 is shown in Table 2 below;

表2开机流程时序规则字母映射表Table 2 Alphabetical mapping table of timing rules for startup process

Figure BDA0004088768410000061
Figure BDA0004088768410000061

在采用了步骤1的正则表达式对开机流程的原始事件信息完成定义与转写后,定义开机模式字符串表示如下:After the regular expression in step 1 is used to define and transcribe the original event information of the boot process, the defined boot mode string is expressed as follows:

Figure BDA0004088768410000062
Figure BDA0004088768410000062

该字符串代表的是‘s’执行完后执行‘t’并以此类推,最后‘$’结尾;具体实施中,本发明实施例1在,采用本发明后,处理后的状态关联规则处理后的场景展示示意图,如图7所示;The character string represents the execution of 't' after the execution of 's' and so on, and finally the end of '$'; in the specific implementation, the embodiment 1 of the present invention, after adopting the present invention, processes the state association rules after processing A schematic diagram of the final scene display, as shown in Figure 7;

从系统的报警窗口的信息名字当中我们可以看到这是一个状态关联规则模式综合报警,他的信息名称显示他是一个sequenceRule并且规则为“stfdw$”;From the information name in the alarm window of the system, we can see that this is a comprehensive alarm in the state association rule mode, and its information name shows that it is a sequenceRule and the rule is "stfdw$";

步骤2、将转写后的数据存储在规则数据库中;Step 2, storing the transcribed data in the rule database;

所述转写后的数据是以散列表的形式<Key,Item>存储在规则数据库中的;The transcribed data is stored in the rule database in the form of a hash table <Key, Item>;

所述散列表中的Key为每个规则的查询关键字,Item为规则定义项;Key in the hash table is the query keyword of each rule, and Item is a rule definition item;

所述每个规则Item都可以组织成为一个规则树的形式,Item项中存储着由各个条件与规则定义的多分支树,规则树的模型示意图如图4所示;Each of the rule items can be organized into a form of a rule tree, and the multi-branch tree defined by various conditions and rules is stored in the Item item, and the schematic diagram of the model of the rule tree is shown in Figure 4;

所述每个Item项的叶子节点都存储着规则的具体定义与描述;其中的字母表代表了描述某种事件的简化字符;The leaf node of each Item item stores the specific definition and description of the rule; the alphabet in it represents a simplified character describing a certain event;

步骤3、当规则查询关键词需要被查找时,枚举查找每个条件,将满足条件的具体规则并压入规则栈;Step 3. When the rule query keyword needs to be searched, enumerate and search for each condition, and push the specific rules that meet the conditions into the rule stack;

所述规则的查询关键字需要被查找时,首先在步骤2建立的散列表里查找具体的对应项目;When the query keyword of the rule needs to be searched, first search for a specific corresponding item in the hash table established in step 2;

所述对应的项目即步骤2中很多条件的集合,枚举查找每个条件,并按照条件进行判断,判断后若满足能提取出以规则名字为代表的具体规则则压入规则栈;The corresponding item is the set of many conditions in step 2, enumerates and searches each condition, and judges according to the conditions, if satisfied after the judgment, the specific rules represented by the rule name can be extracted and then pushed into the rule stack;

步骤4、再次收到原始事件信息后,使用规则栈对原始事件进行分析处理;Step 4. After receiving the original event information again, use the rule stack to analyze and process the original event;

所述步骤3中的规则压入规则栈中后,即会在每个原始事件信息到达后,对原始事件信息进行第次分析处理;所述规则在规则栈中是以链式的方式进行存储的;After the rules in step 3 are pushed into the rule stack, the original event information will be analyzed and processed for the second time after each original event information arrives; the rules are stored in a chained manner in the rule stack of;

所述原始事件信息到达后,会通过每个规则的审查,若该规则对该条原始事件信息可以适用,则对其进行分析处理,处理后的结果有3种结果;规则栈处理工作原理如图5所示;After the original event information arrives, it will pass the review of each rule. If the rule is applicable to the original event information, it will be analyzed and processed. There are three types of results after processing; the working principle of rule stack processing is as follows: As shown in Figure 5;

所述分析处理结果其一是,适用该规则且满足该时序规则的预设顶子模式,则在处理过程中对原始事件信息进行缓存并“吞掉”该信息;直到最后一个模式结束的原始事件信息到达规则会发出结论;One of the analysis and processing results is that if the rule is applicable and the preset top sub-mode that satisfies the timing rule, the original event information is cached and "swallowed" during the processing; the original event information until the end of the last mode Event message arrival rules issue conclusions;

所述分析处理结果其二是,适用该规则且不满足该时序规则的预设子模式时,则将之前缓存吞掉的原始事件信息释掉,一并“吐出”,并给出该规则不满足的具体原因;The second analysis and processing result is that when the rule is applicable and the preset sub-mode of the timing rule is not satisfied, the original event information swallowed by the previous buffer is released and "spit out" together, and the rule is given. the specific reason for the satisfaction;

所述分析处理结果其三是,不适用该规则则顺次进入到规则链中的下一个规则处理中,直到找到使用的时序规则并处理之,或者如果规则栈中没有任何适用的规则则该原始事件信息会保持原始状态;The third result of the analysis and processing is that if the rule is not applicable, it will enter the next rule processing in the rule chain in sequence until the timing rule used is found and processed, or if there is no applicable rule in the rule stack, the Raw event information will remain in its original state;

所述规则可以被预设写入规则栈中,用以检查工业生产过程是否正常进行;The rules can be preset and written into the rule stack to check whether the industrial production process is going on normally;

具体实施时,本发明实施例1还可以在步骤4中,通过预设的规则来检查生产的流程信息是否满足规则即生产过程是否在正常预设的轨道上进行,当事件的顺序没有按照预定要求出现或者顺序发生偏差时,本实施例1可以将事件信息出现的实际情况与规则基线进行比对;从而发现并给出偏差的信息或者错误的原因;During specific implementation, Embodiment 1 of the present invention can also check whether the production flow information satisfies the rules through preset rules in step 4, that is, whether the production process is carried out on a normal preset track. When the sequence of events is not in accordance with the predetermined When a deviation occurs in the requirement or sequence, this embodiment 1 can compare the actual situation of the occurrence of the event information with the rule baseline; thereby discovering and giving the information of the deviation or the cause of the error;

具体到本实施例1中,在如图8所示的的异常事件中,同样的开机流程中,同正常的基线事件时序对比可以看到事件的第四步也就是“锁锭退出状态复归”这一状态这一事件没有如期出现,即出现了异常事件;Specifically in this embodiment 1, in the abnormal event shown in Figure 8, in the same boot process, compared with the normal baseline event sequence, it can be seen that the fourth step of the event is "return to the lock exit state" This event in this state did not occur as expected, that is, an abnormal event occurred;

而当出现“锁锭退出状态复归”没有如期出现,本实施例1的步骤4、即将收到的上述原始事件信息,使用规则栈进行分析处理;本次顺序时序事件缺少d即缺少“锁锭退出状态复归”异常时候报警信息如下图8所示,同样地分析人员可以从事件信息点名中看出这是一个时序规则综合报警信息,并且从信息内容可以看到本次事件集合出现问题,时序规则没有满足并且不满足的原因是该规则所期待的“锁锭退出状态复归”这一事件没有如期望那样到达;However, when the "locking ingot exit status return" does not appear as scheduled, step 4 of this embodiment 1, the above-mentioned original event information to be received, is analyzed and processed using the rule stack; the lack of d in this sequential sequence event means the lack of "locking ingot The alarm information when "Exit Status Returns" is abnormal is shown in Figure 8 below. Similarly, analysts can see from the event information roll call that this is a comprehensive alarm information based on timing rules. The rule is not satisfied and the reason for the dissatisfaction is that the event "locking ingot exit status return" expected by the rule does not arrive as expected;

及时分析并发现时序事件的问题应该是比正常合规事件更重要的信息;该综合信息可以方便并及时给运行人员传达重要并且比较本质的信息;方便人员对生产过程中的异常给与足够的重视并及时的纠正并解决问题。Timely analysis and discovery of timing event issues should be more important information than normal compliance events; this comprehensive information can facilitate and timely convey important and essential information to operating personnel; it is convenient for personnel to give sufficient feedback on abnormalities in the production process. Pay attention to and promptly correct and solve problems.

对比例1、基于现有技术的无状态关联规则的水电站机组开机流程的告警信息表达系统Comparative example 1. An alarm information expression system based on the stateless association rules of the prior art for the start-up process of hydropower station units

所述对比例1使用现有技术进行开机流程的告警信息表达如下所示:The alarm information expression of the comparative example 1 using the prior art to carry out the boot process is as follows:

01.EB001.SEQ__START_DI62 1F:开机流程启动01.EB001.SEQ__START_DI62 1F: Boot process starts

。。。。。。。。。。。。。。。。。。。。。。开机流程从此开始。。。。。。。。。。。。。。。。。。。。。。。。。. . . . . . . . . . . . . . . . . . . . . . The boot process starts from here. . . . . . . . . . . . . . . . . . . . . . . . .

1.01.EB001.STRT_STEP6_DI62 1F:开机流程第6步启动(动作)1.01.EB001.STRT_STEP6_DI62 1F: Step 6 of boot process starts (action)

2.10.AE001.PG02_LM____DO12 1F:锁定退出(动作)2.10.AE001.PG02_LM____DO12 1F: Lock out (action)

3.10.AE001.PG02_SDTR__DI28 1F:锁定投入状态(复归)3.10.AE001.PG02_SDTR__DI28 1F: Lock input state (reset)

4.10.AE001.PG02_SDTC__DI12 1F:锁锭退出状态(动作)4.10.AE001.PG02_SDTC__DI12 1F: lock spindle exit state (action)

5.20.AU001.P104_KAUX02DI37 1F:制动风闸落下(动作)5.20.AU001.P104_KAUX02DI37 1F: Brake air brake down (action)

6.01.EB001.STRT_STEP6_DI62 1F:开机流程第6步启动(复归)6.01.EB001.STRT_STEP6_DI62 1F: Step 6 of boot process starts (reset)

。。。。。。。。。。。。。。。。。。。。。开机流程第六步到此结束。。。。。。。。。。。。。。。。。。。。. . . . . . . . . . . . . . . . . . . . . The sixth step of the boot process ends here. . . . . . . . . . . . . . . . . . . .

01.EB001.STRT_STEP7_DI62 1F:开机流程第7步启动(动作)01.EB001.STRT_STEP7_DI62 1F: Step 7 of the boot process starts (action)

本对比例1在无状态关联规则模式下显示的情况如图9所示;图中六条报警顺序依次用箭头指出,并且按照前面实施例1中所述的定义方式进行了标注;The situation displayed in the stateless association rule mode of this comparative example 1 is shown in Figure 9; the six alarm sequences in the figure are pointed out by arrows in sequence, and are marked according to the definition method described in the previous embodiment 1;

具体实施时,对比例1、在如图10所示的未采用状态关联规则处理后出现‘锁锭退出状态复归’的场景,可以从图10中看到,用箭头指向了缺失d的命令行;即同样的开机流程中,同正常的基线事件时序对比可以看到事件的第四步也就是“锁锭退出状态复归”这一状态这一事件没有如期出现。In the specific implementation, in comparative example 1, the scene of "locking ingot exit state return" after processing without state association rules as shown in Figure 10 can be seen from Figure 10, the arrow points to the command line missing d ; That is, in the same boot process, compared with the normal baseline event timing, it can be seen that the event of the fourth step of the event, which is the state of "locking the exit state and returning", did not occur as scheduled.

实施例2、基于状态关联规则的水电站GCB发电机开关主变侧接地闸刀的告警信息表达系统Embodiment 2. An alarm information expression system for the grounding switch on the main transformer side of the GCB generator switch of a hydropower station based on state association rules

本实施例2的背景为,水电站GCB发电机开关主变侧接地闸刀中设置了两个节点,合闸节点和分闸节点;在正常的事件中每次闸刀的动作会使合闸节点动作的同时也对应分闸节点复归这样一对对偶的事件对;这两个事件表明的其实是一件事情,所以对偶点的事件事实上就成为了闸刀动作或者复归的冗余事件,将这样的事件信息点找到并利用规则“综合”之可以是报警的信息消除50%,虽然对于单个点可能消除的信息并不客观,但如果在某个事件范围内如果有大量等价点动作信息这个消除和信息压缩的工作是有意义的;The background of this embodiment 2 is that two nodes are set in the grounding switch on the main transformer side of the GCB generator switch of the hydropower station, the closing node and the opening node; in normal events, each action of the switch will make the closing node At the same time, the action also corresponds to a pair of dual event pairs such as the return of the opening node; these two events actually indicate the same thing, so the event of the dual point actually becomes a redundant event of the switch blade action or return. Such an event information point is found and used to "synthesize" the information that can be alarmed by 50%. Although the information that may be eliminated for a single point is not objective, if there are a large number of equivalent point action information within a certain event range This work of elimination and information compression is meaningful;

在等价点规则定义中我们为每一个参与的节点定义了动作含义和代表符号以便于我们对规则的定义和说明,具体符号含义定义如下:In the definition of equivalence point rules, we define action meanings and representative symbols for each participating node to facilitate our definition and description of the rules. The specific symbol meanings are defined as follows:

Figure BDA0004088768410000081
Figure BDA0004088768410000081

Figure BDA0004088768410000091
Figure BDA0004088768410000091

按照时序规则的同样的处理规方式,当异常发生并被规则识别后,会启动相关分析程序对不满规则的原因进行报警。例如如果缺少对偶点的信息则会报出‘对偶点的信息不存在’的信息。According to the same processing method of timing rules, when an exception occurs and is recognized by the rule, the relevant analysis program will be started to give an alarm to the cause of dissatisfaction with the rule. For example, if the information of the dual point is missing, the message "the information of the dual point does not exist" will be reported.

对比例2、基于现有技术的无状态关联规则的水电站GCB发电机开关主变侧接地闸刀的告警信息表达系统Comparative example 2. An alarm information expression system based on the stateless association rules of the prior art for the grounding switch knife on the main transformer side of the GCB generator switch of the hydropower station

所述对比例2除采用的告警信号表达系统与实施例2不一致外,其余相关设置完全一致;Except that the alarm signal expression system adopted in the comparative example 2 is inconsistent with the embodiment 2, all the other relevant settings are completely consistent;

对比例2综合前事件为:The comprehensive pre-event of comparative example 2 is:

。。。。。。。。。。。。。。。。. . . . . . . . . . . . . . . .

20.GS003.P401_QC92__DI03'GCB发电机开关主变侧接地闸刀分闸动作20.GS003.P401_QC92__DI04'GCB发电机开关主变侧接地闸刀合闸复归20.GS003.P401_QC92__DI03'GCB generator switch main transformer side grounding knife opening action 20.GS003.P401_QC92__DI04'GCB generator switch main transformer side grounding knife closing reset

。。。。。。。。。。。。。。。. . . . . . . . . . . . . . .

20.GS003.P401_QC92__DI03'GCB发电机开关主变侧接地闸刀分闸复归20.GS003.P401_QC92__DI04'GCB发电机开关主变侧接地闸刀合闸动作20.GS003.P401_QC92__DI03'GCB Generator Switch Main Transformer Side Grounding Knife Opening Reset 20.GS003.P401_QC92__DI04'GCB Generator Switch Main Transformer Side Grounding Knife Closing Action

。。。。。。。。。。。。。。。. . . . . . . . . . . . . . .

如果等价点当中的每个信息点按照该规则的期望的工作方式,规则内的多条正常报警会被综合为两条事件,前后分别对应以下事件:If each information point in the equivalence point works according to the expected working method of the rule, multiple normal alarms in the rule will be synthesized into two events, which correspond to the following events:

Equiv_key‘x’,’y’ GCB发电机开关主变侧接地闸刀分闸Equiv_key‘a’,’b’ GCB发电机开关主变侧接地闸刀合闸Equiv_key'x','y' GCB generator switch main transformer side grounding knife open Equiv_key'a','b' GCB generator switch main transformer side grounding knife close

上述为对比例2告警说显示在告警面板上的信息。The above is the information displayed on the alarm panel in the alarm statement of Comparative Example 2.

对比分析:在实施例1与对比例1的分析中,可以从实施例1的采用状态关联规则处理的图7、图8与未采用状态关联规则处理的对比例图9、图10;Contrastive analysis: in the analysis of embodiment 1 and comparative example 1, it can be processed from Fig. 7 and Fig. 8 which adopt state association rules of embodiment 1 and comparative examples Fig. 9 and Fig. 10 which are not processed by state association rules;

本实施例1基于状态关联规则的工业告警信息表达的界面,信息密度明显更高,使得可以大量的节约了事件信息的展示版面空间,提高了运维人员有效掌握生产过程中有效告警信息的学习成本,减少了运维人员的信息识别工作量以及工作强度;In Embodiment 1, the interface for expressing industrial alarm information based on state association rules has significantly higher information density, which saves a lot of display space for event information and improves the learning of effective alarm information in the production process for operation and maintenance personnel. Cost, reducing the information identification workload and work intensity of operation and maintenance personnel;

在实施例1与对比例1中,发生同样的“锁锭退出状态复归”异常时,本实施1因为有规则栈机制,可基于规则栈实现从独立的告警中抽象和分析出内在后台设备状态运行告警信息,将出现的实际情况与规则基线进行比对,本实施例1明确的发现并给出偏差的信息以及错误的原因;In Example 1 and Comparative Example 1, when the same "locking ingot exit status reset" exception occurs, this implementation 1 can abstract and analyze the internal background device status from independent alarms based on the rule stack mechanism because of the rule stack mechanism. Run the alarm information, compare the actual situation with the rule baseline, and this embodiment 1 clearly finds and gives the information of the deviation and the cause of the error;

而在采用现有技术的对比例1中,第四步也就是“锁锭退出状态复归”这一状态这一事件没有如期出现,如图10所述,图10箭头部分指出了现有技术中缺失的部分;对比分析可得,采用本发明的告警系统具有深层溯源信息的高等级告警信息,可为运维人员提供更加精准快速的定位信息;However, in comparative example 1 using the prior art, the event of the fourth step, namely the state of "returning of the lock ingot exit state", did not occur as expected, as shown in Figure 10, and the arrow part of Figure 10 points out that in the prior art The missing part; comparative analysis shows that the alarm system of the present invention has high-level alarm information with deep traceability information, which can provide more accurate and fast positioning information for operation and maintenance personnel;

对比分析实施例2与对比例2,可以看到,本发明的实施例2基于规则栈,可以实现大量等价点动作信息的消除和信息压缩,可以将同样性质的告警信息消除50%,实现大量等价点动作信息的消除和信息压缩,极大的提升了告警效率。Comparing and analyzing Example 2 and Comparative Example 2, it can be seen that Example 2 of the present invention is based on the rule stack, which can realize the elimination and information compression of a large number of equivalent point action information, and can eliminate 50% of the alarm information of the same nature, realizing The elimination and compression of a large number of equivalent point action information greatly improves the alarm efficiency.

综上所述,本专利技术方案,通过对原始事件信息的重新定义与转写,将诸多分立的事件,高效的综合为,一个有机统一的整体事件信息;提高了运维人员有效掌握生产过程中有效告警信息的学习成本,减少了运维人员的信息识别工作量以及工作强度;并且可以从独立的告警中抽象和分析出内在后台设备状态运行告警信息,具有深层溯源信息的高等级告警信息,可为运维人员提供更加精准快速的定位信息;并且实现了大量等价点动作信息的消除和信息压缩,降低了告警数量,提升了告警效率。To sum up, this patent technical solution, through redefining and transcribing the original event information, efficiently synthesizes many discrete events into an organic and unified overall event information; improves the operation and maintenance personnel to effectively grasp the production process The learning cost of effective alarm information reduces the information identification workload and work intensity of operation and maintenance personnel; and it can abstract and analyze internal background equipment status operation alarm information from independent alarms, and high-level alarm information with deep traceability information , can provide operation and maintenance personnel with more accurate and fast positioning information; and realize the elimination and information compression of a large number of equivalent point action information, reduce the number of alarms, and improve the alarm efficiency.

以上详细描述了本发明的较佳具体实施例。应当理解,本领域的普通技术人员,无需创造性劳动就可以根据本发明的构思做出诸多修改和变化。因此,凡本技术领域中技术人员依本发明的构思在现有技术的基础上通过逻辑分析、推理或者有限的试验可以得到的技术方案,皆应在由权利要求书所确定的保护范围内。The preferred specific embodiments of the present invention have been described in detail above. It should be understood that those skilled in the art can make many modifications and changes according to the concept of the present invention without creative work. Therefore, all technical solutions that can be obtained by those skilled in the art based on the concept of the present invention through logical analysis, reasoning or limited experiments on the basis of the prior art shall be within the scope of protection defined by the claims.

Claims (9)

1.一种基于状态关联规则的工业告警信息表达的方法,其特征在于,包括如下步骤:1. A method for expressing industrial alarm information based on state association rules, characterized in that, comprising the steps: 步骤1、对原始事件信息完成定义与转写;Step 1. Complete the definition and transcription of the original event information; 步骤2、将转写后的数据存储在规则数据库中;Step 2, storing the transcribed data in the rule database; 步骤3、当规则查询关键词需要被查找时,枚举查找每个条件,将满足条件的具体规则并压入规则栈;Step 3. When the rule query keywords need to be searched, enumerate and search for each condition, and push the specific rules that meet the conditions into the rule stack; 步骤4、再次收到原始事件信息后,使用规则栈对原始事件进行分析处理。Step 4. After receiving the original event information again, use the rule stack to analyze and process the original event. 2.如权利要求1所述工业告警信息表达的方法,其特征在于,2. The method for industrial warning message expression as claimed in claim 1, is characterized in that, 所述步骤1、对原始事件信息完成定义与转写;The step 1, completing the definition and transcription of the original event information; 所述对原始事件信息的定义即将每个顺序的原始事件告警对应一个预定义的字串,每个预定义的字串都代表了某种顺序发生的事件链。The definition of the original event information is that each sequence of original event alarms corresponds to a predefined string, and each predefined string represents a sequence of event chains. 3.如权利要求1所述工业告警信息表达的方法,其特征在于,3. The method for industrial warning message expression as claimed in claim 1, is characterized in that, 所述步骤2、将转写后的数据存储在规则数据库中;The step 2, storing the transcribed data in the rule database; 所述转写后的数据是以散列表的形式<Key,Item>存储在规则数据库中的;The transcribed data is stored in the rule database in the form of a hash table <Key, Item>; 所述散列表中的Key为每个规则的查询关键字,Item为规则定义项;Key in the hash table is the query keyword of each rule, and Item is a rule definition item; 所述每个规则Item都可以组织成为一个规则树的形式,Item项中存储着由各个条件与规则定义的多分支树;Each of the rule Items can be organized into a form of a rule tree, and the item stores a multi-branch tree defined by various conditions and rules; 所述每个Item项的叶子节点都存储着规则的具体定义与描述;其中的字母表代表了描述某种事件的简化字符。The leaf node of each item stores the specific definition and description of the rule; the alphabet in it represents the simplified characters describing a certain event. 4.如权利要求1所述工业告警信息表达的方法,其特征在于,4. The method for industrial warning message expression as claimed in claim 1, is characterized in that, 步骤3、当规则查询关键词需要被查找时,枚举查找每个条件,将满足条件的具体规则并压入规则栈;Step 3. When the rule query keyword needs to be searched, enumerate and search for each condition, and push the specific rules that meet the conditions into the rule stack; 所述规则的查询关键字需要被查找时,首先在步骤2建立的散列表里查找具体的对应项目;When the query keyword of the rule needs to be searched, first search for a specific corresponding item in the hash table established in step 2; 所述对应的项目即步骤2中很多条件的集合,枚举查找每个条件,并按照条件进行判断,判断后若满足能提取出以规则名字为代表的具体规则则压入规则栈。The corresponding item is the collection of many conditions in step 2. Enumerate and search for each condition, and judge according to the conditions. After the judgment, if the specific rule represented by the rule name can be extracted, it will be pushed into the rule stack. 5.如权利要求1所述工业告警信息表达的方法,其特征在于,5. The method for industrial warning message expression as claimed in claim 1, is characterized in that, 步骤4、再次收到原始事件信息后,使用规则栈对原始事件进行分析处理;Step 4. After receiving the original event information again, use the rule stack to analyze and process the original event; 所述规则压入规则栈中后,即会在每个原始事件信息到达后,对原始事件信息进行第次分析处理;After the rule is pushed into the rule stack, the original event information will be analyzed and processed for the first time after each original event information arrives; 所述原始事件信息到达后,会通过每个规则的审查,若该规则对该条原始事件信息可以适用,则对其进行分析处理,处理后的结果有3种结果;After the original event information arrives, it will pass the review of each rule. If the rule is applicable to the original event information, it will be analyzed and processed. There are three types of results after processing; 所述分析处理结果其一是,适用该规则且满足该时序规则的预设子模式,则在处理过程中对原始事件信息进行缓存并“吞掉”该信息;直到最后一个模式结束的原始事件信息到达规则会发出结论;One of the results of the analysis and processing is that if the rule is applicable and the preset sub-mode that meets the timing rule, the original event information is cached and "swallowed" during the processing; the original event until the end of the last mode Message arrival rules issue conclusions; 所述分析处理结果其二是,适用该规则且不满足该时序规则的预设子模式时,则将之前缓存吞掉的原始事件信息释掉,一并“吐出”,并给出该规则不满足的具体原因;The second analysis and processing result is that when the rule is applicable and the preset sub-pattern of the timing rule is not satisfied, the original event information swallowed by the previous buffer is released and "spit out" together, and the rule is given. the specific reason for the satisfaction; 所述分析处理结果其三是,不适用该规则则顺次进入到规则链中的下一个规则处理中,直到找到使用的时序规则并处理之,或者如果规则栈中没有任何适用的规则则该原始事件信息会保持原始状态。The third result of the analysis and processing is that if the rule is not applicable, it will enter the next rule processing in the rule chain in sequence until the timing rule used is found and processed, or if there is no applicable rule in the rule stack, the Raw event information remains pristine. 6.如权利要求1所述工业告警信息表达的方法,其特征在于,6. The method for industrial warning message expression as claimed in claim 1, is characterized in that, 所述规则在规则栈中是以链式的方式进行存储的;The rules are stored in a chained manner in the rule stack; 所述规则可以被预设写入规则栈中,用以检查工业生产过程是否正常进行。The rules can be preset and written into the rule stack to check whether the industrial production process is going on normally. 7.如权利要求1所述工业告警信息表达的方法,其特征在于,7. The method for industrial warning message expression as claimed in claim 1, is characterized in that, 所述步骤1对原始事件信息完成定义与转写采用的是正则表达式来完成对原始事件信息的定义与转写。The step 1 defines and transcribes the original event information using regular expressions to complete the definition and transcribe of the original event information. 8.一种基于状态关联规则的工业告警信息表达的系统,其特征在于,系统包括原始告警信息、规则分析引擎、规则数据库、规则配置、告警面板;8. A system for expressing industrial alarm information based on state association rules, characterized in that the system includes original alarm information, a rule analysis engine, a rule database, rule configuration, and an alarm panel; 所述规则分析引擎中又包括规则分析NFA和规则栈;Include rule analysis NFA and rule stack again in described rule analysis engine; 所述原始告警信息到达后首先要进入到规则分析引擎中;After the original alarm information arrives, it first enters into the rule analysis engine; 所述规则引擎首先提出出告警信息中的规则的查询关键字信息,然后用得到的查询关键字信息到规则数据库中查找已有的规则信息当查到后需要将查到的规则压入规则栈中;The rule engine first proposes the query keyword information of the rules in the alarm information, and then uses the obtained query keyword information to search the existing rule information in the rule database. When it is found, it needs to push the found rule into the rule stack middle; 所述原始告警到达规则分析引擎后经过一簇规则序列处理后得到结论告警信息发送给告警面板或者没有相关处理规则的时候,告警信息原样的发送给告警面板;After the original alarm arrives at the rule analysis engine, it is processed by a cluster of rule sequences to obtain a conclusion that the alarm information is sent to the alarm panel or when there is no relevant processing rule, the alarm information is sent to the alarm panel as it is; 所述每个原始告警到达告警协议栈时,都要经过协议栈中所有规则处理后决定其下一步处理方式,这样处理后的原始告警的生数据信息经过处理后变成了人为更容易识别的熟数据;When each original alarm reaches the alarm protocol stack, it must be processed by all the rules in the protocol stack to determine its next processing method, so that the raw data information of the processed original alarm becomes easier to identify after processing. cooked data; 所述规则配置模块为人为配置信息输入窗口,系统启动后会自动装载预设的规则信息。The rule configuration module is an artificially configured information input window, and the preset rule information will be automatically loaded after the system is started. 9.如权利要求8所述工业告警信息表达的系统,其特征在于,9. The system of industrial warning message expression as claimed in claim 8, is characterized in that, 所述规则栈的工作核心为一个NFA(非确定自动状态机),NFA是由一系列状态驱动的状态结合,它可用于字符串的模式检查,通过将各个事件集合映射为字符串集后,就可通过由规则构造的NFA对字符字串的模式进行分析处理,一个时序规则就可以对应一个NFA状态转换图,系统内置了正则表达式NFA生成和工作模块。The working core of the rule stack is an NFA (non-deterministic automatic state machine). NFA is a combination of states driven by a series of states. It can be used for pattern checking of strings. After each event set is mapped to a string set, The pattern of character strings can be analyzed and processed through the NFA constructed by the rules. A timing rule can correspond to an NFA state transition diagram. The system has built-in regular expression NFA generation and working modules.
CN202310144561.8A 2023-02-07 2023-02-07 A method and system for expressing industrial alarm information based on state association rules Pending CN116226125A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310144561.8A CN116226125A (en) 2023-02-07 2023-02-07 A method and system for expressing industrial alarm information based on state association rules

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310144561.8A CN116226125A (en) 2023-02-07 2023-02-07 A method and system for expressing industrial alarm information based on state association rules

Publications (1)

Publication Number Publication Date
CN116226125A true CN116226125A (en) 2023-06-06

Family

ID=86588721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310144561.8A Pending CN116226125A (en) 2023-02-07 2023-02-07 A method and system for expressing industrial alarm information based on state association rules

Country Status (1)

Country Link
CN (1) CN116226125A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080201277A1 (en) * 2007-02-16 2008-08-21 Matsushita Electric Industrial Co., Ltd. System architecture and process for automating intelligent surveillance center operation
CN101902336A (en) * 2009-05-27 2010-12-01 北京启明星辰信息技术股份有限公司 Rule model-based security event correlation analysis system and method
CN102098175A (en) * 2011-01-26 2011-06-15 浪潮通信信息系统有限公司 Alarm association rule obtaining method of mobile internet
CN104636989A (en) * 2015-02-11 2015-05-20 广东电网有限责任公司中山供电局 Power system monitoring alarm information processing method and system
CN110336375A (en) * 2019-06-26 2019-10-15 国网江苏省电力有限公司 A method and system for processing power grid monitoring alarm information
CN113596043A (en) * 2021-08-03 2021-11-02 中国电信股份有限公司 Attack detection method, attack detection device, storage medium and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080201277A1 (en) * 2007-02-16 2008-08-21 Matsushita Electric Industrial Co., Ltd. System architecture and process for automating intelligent surveillance center operation
CN101902336A (en) * 2009-05-27 2010-12-01 北京启明星辰信息技术股份有限公司 Rule model-based security event correlation analysis system and method
CN102098175A (en) * 2011-01-26 2011-06-15 浪潮通信信息系统有限公司 Alarm association rule obtaining method of mobile internet
CN104636989A (en) * 2015-02-11 2015-05-20 广东电网有限责任公司中山供电局 Power system monitoring alarm information processing method and system
CN110336375A (en) * 2019-06-26 2019-10-15 国网江苏省电力有限公司 A method and system for processing power grid monitoring alarm information
CN113596043A (en) * 2021-08-03 2021-11-02 中国电信股份有限公司 Attack detection method, attack detection device, storage medium and electronic device

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
徐绪松: "管理信息系统", 30 April 1998, 武汉大学出版社, pages: 218 - 219 *
徐鹏;吕海军;李明伟;: "基于事件树模型的电力通信网告警过滤机制", 电网技术, no. 08, 20 April 2008 (2008-04-20), pages 91 - 94 *
蒋加伏,等: "Python程序设计基础 第2版", 31 August 2021, 北京邮电大学出版社, pages: 134 *
郑南宁: "智能控制导论", 31 August 2022, 中国科学技术出版社, pages: 026 - 027 *

Similar Documents

Publication Publication Date Title
CN110928718B (en) Abnormality processing method, system, terminal and medium based on association analysis
US11593370B2 (en) Systems and methods for dynamic query prediction and optimization
US8423493B2 (en) Condition monitoring with automatically generated error templates from log messages and sensor trends based on time semi-intervals
CN112579728B (en) Behavior abnormity identification method and device based on mass data full-text retrieval
CN117406689A (en) Data driving and knowledge guiding fault diagnosis method and system
CN106341257B (en) Device for self-defining log analysis rule and automatically analyzing log
CN112580831A (en) Intelligent auxiliary operation and maintenance method and system for power communication network based on knowledge graph
CN117971606B (en) Log management system and method based on elastic search
Duan et al. QLLog: A log anomaly detection method based on Q-learning algorithm
CN117951128A (en) A data quality audit method based on artificial intelligence
CN105791028A (en) Monitoring method, server and system of server cluster
CN117150439B (en) Automobile manufacturing parameter detection method and system based on multi-source heterogeneous data fusion
CN118863259B (en) Industrial production fault tracing analysis system based on digital twin
CN114647558A (en) A method and device for log anomaly detection
CN105335488A (en) Knowledge base construction method
CN116302984B (en) A root cause analysis method, device and related equipment for test tasks
CN110175272A (en) One kind realizing the convergent control method of work order and control device based on feature modeling
CN115495587A (en) Alarm analysis method and device based on knowledge graph
CN115034671A (en) Secondary system information fault analysis method based on association rule and cluster
CN116955071A (en) Fault classification methods, devices, equipment and storage media
CN116048866A (en) Data fault detection method, system and medium based on real-time stream computing engine
CN120196543A (en) An automated software testing method and system based on artificial intelligence
CN112147974B (en) An alarm root cause diagnosis method based on chemical process knowledge automation
CN118885354A (en) Log anomaly detection method based on LSTM network and process status inspection
WO2021128721A1 (en) Method and device for text classification

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20230606

RJ01 Rejection of invention patent application after publication