5 Conclusions
The focus of this paper is an inference engine that uses a new Rete-based algorithm
called Rete-ECA for device control and management. The Rete-ECA inference engine
uses device data to help determine the overall flow of control in a closed-loop system.
The Rete-ECA exploits the natural Event-Condition-Action feature of device control
situations. This enables the implemtation of the Rete-ECA algorithm to perform better
than the Rete algorithm with smaller size and more flexibility. This system explicitly
uses its events to determine when and which portions of the rule engine should activate
at a specific time and seperates the Rete network into two networks: one rule network
dedicated to matching the patterns provided in a user-specified set of rules, the other
dedicated to managing all devices in the network. The experiments on mouse-tracking
situations shows the Rete-ECA algorithm consumes only 2% of the original Rete algo-
rithm.
In the future work, we will apply the Rete-ECA algorithm to extended problems in
smart building or home automation control systems. The network partitioning technique
developed here can be extended more partitioins and will have many benefis for parallel
hardware architectures.
References
1. Perera, C., Zaslavsky, A., Christen, P., Georgakopoulos, D.: Context Aware Computing for
the Internet of Things: A Survey. IEEE Communications Surveys & Tutorials, Vol. 16, No. 1,
(2014) 414–454
2. Frederick, H.-R.: Rule-based systems. Communications of the ACM, Vol. 28, No. 9. (1985)
921–932
3. Forgy, C. L.: Rete: A fast algorithm for the many pattern/many object pattern match problem.
Artificial Intelligence, Vol. 19, No. 1. (1982) 17–37
4. Sottara, D., Mello, P., Proctor, M.: A Configurable Rete-oo Engine for Reasoning with Dif-
ferent Types of Imperfect Information. IEEE Trans. on Knowledge and Data Engineering,
Vol. 22, No. 11, (2010) 1535–1548
5. Miranker, D. P.: Treat: A Better Match Algorithm for AI Production Systems; long version:
Tech. Rep. (1987)
6. Batory, D.: The leaps algorithm. Technical report, Austin, TX, USA,(1994)
7. Miranker, D. P., Brant, D. A., Lofaso, B. J., Gadbois, D.: On the Performance of Lazy Match-
ing in Production Systems. AAAI, (1990) 685–692
8. Proctor, M., Neale, M., Lin, P., Frandsen, M.: Drools (2014)
9. Kim, M., Lee, K., Kim, Y., Kim, T., Lee,Y., Cho, S., Lee, C.-G.: Rete-adh: An improvement to
rete for composite context-aware service. Int. Journal of Distributed Sensor Networks, (2014)
10. Choi, C., Park, I., Hyun, S. J., Lee, D., Sim, D. H.: Mire: A minimal rule engine for context-
aware mobile devices. 3rd Int. Conf. on Digital Information Management, IEEE, (2008) 172–
177
102