Optimizing real-time equational rule-based systems

Analyzing and reducing the execution-time upper bound of real-time rule-based expert systems is a very important task because of the stringent timing constraints imposed on this class of systems. We present a new runtime optimization to reduce the execution-time upper bound of real-time rule-based expert systems. In order to determine rules to be evaluated at runtime, a predicate dependency list, which consists of a predicate, its active rule set and corresponding inactive rule set, is created for each predicate in a real-time rule-based program. Based on the predicate dependency list and the current value of each variable, the new runtime optimization dynamically selects rules to be evaluated at runtime. For the timing analysis of the proposed algorithm, we introduce a predicate-based rule dependency graph, a predicate-based enable-rule graph, and their construction algorithm. We also discuss the bounded time of the equational logic rule-based program using the predicate-based rule dependency graph as well as the predicate-based enable-rule graph. The implementation and performance evaluation of the proposed algorithm using both synthetic and practical real-time rule-base programs are also presented. The performance evaluation shows that the runtime optimizer reduces the number of rule evaluations and predicate evaluations as well as the response time upper bound significantly, and the new algorithm yields better execution-time upper bound compared to other optimization methods.

[1]  Albert Mo Kim Cheng,et al.  Optimization of Rule-Based Systems Using State Space Graphs , 1998, IEEE Trans. Knowl. Data Eng..

[2]  Matthias Jarke,et al.  Query Optimization in Database Systems , 1984, CSUR.

[3]  Eric N. Hanson,et al.  A performance comparison of the Rete and TREAT algorithms for testing database rule conditions , 1992, [1992] Eighth International Conference on Data Engineering.

[4]  Albert Mo Kim Cheng,et al.  Dynamic optimization for real-time rule-based systems using predicate dependency , 2000, Proceedings Sixth IEEE Real-Time Technology and Applications Symposium. RTAS 2000.

[5]  Daniel P. Miranker TREAT: A new and efficient match algorithm for AI production systems , 1988 .

[6]  Aloysius K. Mok,et al.  Response-time bounds of rule-based programs under rule priority structure , 1994, 1994 Proceedings Real-Time Systems Symposium.

[7]  Christopher A. Marsh The ISA expert system: a prototype system for failure diagnosis on the space station , 1988, IEA/AIE '88.

[8]  Toru Ishida,et al.  An Optimization Algorithm for Production Systems , 1994, IEEE Trans. Knowl. Data Eng..

[9]  Albert Mo Kim Cheng,et al.  Parallel execution of real-time rule-based systems , 1993, [1993] Proceedings Seventh International Parallel Processing Symposium.

[10]  Stanley B. Zdonik,et al.  Changing the rules: transformations for rule-based optimizers , 1998, SIGMOD '98.

[11]  Avelino J. Gonzalez,et al.  The Engineering of Knowledge-Based Systems , 1993 .

[12]  Albert M Cheng Analysis and Synthesis of Real-Time Rule-Based Decision Systems , 1991 .

[13]  Jeng-Rung Chen,et al.  Response Time Analysis of EQL Real-Time Rule-Based Systems , 1995, IEEE Trans. Knowl. Data Eng..

[14]  Daniel P. Miranker,et al.  An algorithmic basis for integrating production systems and large databases , 1990, [1990] Proceedings. Sixth International Conference on Data Engineering.

[15]  John J. Helly,et al.  A representational basis for the development of a distributed expert system for Space Shuttle flight control , 1984 .

[16]  Daniel P. Miranker,et al.  The Organization and Performance of a TREAT-Based Production System Compiler , 1991, IEEE Trans. Knowl. Data Eng..

[17]  Albert Mo Kim Cheng,et al.  Analysis of Real-Time Rule-Based Systems with Bahavioral Constraint Assertions Specified in Estella , 1993, IEEE Trans. Software Eng..

[18]  Albert Mo Kim Cheng,et al.  MRL: a real-time rule-based production system , 1990, [1990] Proceedings 11th Real-Time Systems Symposium.

[19]  Charles L. Forgy,et al.  Rete: a fast algorithm for the many pattern/many object pattern match problem , 1991 .

[20]  Jeng-Rung Chen,et al.  Predicting the response time of OPS5-style production systems , 1995, Proceedings the 11th Conference on Artificial Intelligence for Applications.

[21]  David Martin,et al.  Book review: The Engineering of Knowledge-based Systems Theory and Practice by Avelino J. Gonzales and Douglas D. Dankel (Prentice Hall, 1993) , 1993, SGAR.

[22]  Alexander J. Pasik,et al.  A Source-to-Source Transformation for Increasing Rule-Based System Parallelism , 1992, IEEE Trans. Knowl. Data Eng..

[23]  Jeng-Rung Chen,et al.  Predicting the response time of real-time rule-based programs with variable-expression assignments , 1994, Proceedings Sixth International Conference on Tools with Artificial Intelligence. TAI 94.

[24]  J. C. Browne,et al.  Estella; a facility for specifying behavioral constraint assertions in real-time rule-based systems , 1991, COMPASS '91, Proceedings of the Sixth Annual Conference on Computer Assurance.