Distributed real-time rule reasoning and scheduling method

A distributed real-time, rule-based technology, applied in the direction of reasoning methods, etc., can solve problems such as inability to process data, inability to ensure timely response to required attention scenarios, and low efficiency of rule matching

Active Publication Date: 2020-10-23
INST OF SOFTWARE - CHINESE ACAD OF SCI
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Traditional rule reasoning systems, including CLIPS, Drools, and JESS, etc., have low rule matching efficiency due to the limitations of their stand-alone machines. The patent application with publication number CN107145949A has improved this, and designed a The real-time rule reasoning method in a multi-core environment has improved the matching efficiency of rules to a certain extent, but because its rule reasoning is still based on a local stand-alone system, its performance is still difficult to meet the system resource requirements brought by massive real-time data processing
[0006] At present, scholars have proposed some distributed real-time reasoning methods for streaming data (Zhang Qi. Research and implementation of distributed rule matching system based on MapReduce [D]. Zhejiang University, 2011; Yi Chen, BehzadBordbar. DRESS: A Rule Engine on Spark for Event Stream Processing. BDCAT 2016; Zhang J, Yang J, Li J. When Rule Engine Meets Big Data: Design and Implementation of a Distributed Rule Engine Using Spark, 2017IEEE Third International Conference on Big Data Computing Service and Applications( BigDataService).IEEE, 2017.), these methods realize the parallel reasoning of the rules by using the distributed computing framework, and the patent application with the publication number CN108549939A proposes a load-balancing task distribution algorithm on this basis, which further improves the The efficiency of rule reasoning, but these methods do not consider the deadline of reasoning, and cannot process as much data as possible before the deadline, so that they cannot guarantee a timely response to the scene of interest.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Distributed real-time rule reasoning and scheduling method
  • Distributed real-time rule reasoning and scheduling method
  • Distributed real-time rule reasoning and scheduling method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] The technical solutions of the present invention will be clearly and completely described below in conjunction with the embodiments and accompanying drawings. It should be understood that the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present invention.

[0037] The present invention will be described below in conjunction with two specific rules and related data.

[0038]

[0039]

[0040] (1) figure 1It is the RETE network structure established by the above two rules. In this RETE network, there are 5 types of nodes A, B, C, D and E, respectively judge the fact data corresponding to types C1~C5; 4 α nodes F, G, H and I, respectively , C4 and C5 to judge the val value; 4 β nodes, J, K, L and M, among which node K is used to check that the val v...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a distributed real-time rule reasoning and scheduling method, comprising the following steps: 1) establishing a rule graph corresponding to a productive rule set; 2) convertingthe rule graph into a data operation graph; 3) dividing the data operation graph into a plurality of sub-graphs according to the received fact object by the rule inference system, and generating an inference job for each sub-graph; 4) setting priorities of the inference jobs according to the processing time of the inference jobs, creating n scheduling queues in the rule inference system, settingdifferent weight attributes for each scheduling queue, and calling the inference jobs into the corresponding scheduling queues according to a corresponding relationship between the priorities and theweights; 5) when ready tasks are submitted in different scheduling queues at the same time, selecting the inference task with the maximum weight in the scheduling queue, and creating and executing theinference task, and 6) deleting the inference task corresponding to the inference task from the scheduling queue to which the inference task belongs until all the scheduling queues are empty after the inference task is executed.

Description

technical field [0001] The invention belongs to the field of rule system and real-time technology, and in particular relates to a distributed real-time rule reasoning scheduling method. Background technique [0002] Rule reasoning expresses domain knowledge as rules, triggers and executes rules by matching rules with facts, so as to make automatic decisions. It has been widely used in various expert systems such as medical diagnosis, geological exploration, and intelligent decision-making. [0003] In recent years, with the popularization of Internet of Things technology, Internet of Things has been widely used in various industrial fields. At this time, the IoT application collects external environmental data through a series of sensors, monitors the continuous event flow, identifies scenes that need attention and makes automatic decisions, so as to execute actions in real time to respond to the identified scenes. Therefore, rule reasoning has begun to be applied to typic...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06N5/04
CPCG06N5/043
Inventor 彭程乔颖刘鸿儒王宏安
Owner INST OF SOFTWARE - CHINESE ACAD OF SCI
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products