arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1612.05110cs.DB
收藏

基于懒惰链自动机的复杂事件模式检测

Efficient Detection of Complex Event Patterns Using Lazy Chain Automata

Ilya Kolchinsky, Assaf Schuster, Danny Keren

摘要:

复杂事件处理(CEP)是一个新兴的领域,在许多领域有着重要的应用. CEP系统收集来自输入数据流的事件,并根据预定义的模式使用它们来推断更复杂的事件。非确定性有限自动机(NFA)是此类系统所基于的最流行的机制之一。在事件检测过程中,NFA会逐步扩展先前观察到的部分匹配,直到找到查询的完全匹配。因此,需要处理每个到达的事件,以确定是要启动新的部分匹配还是扩展现有的部分匹配。当许多事件未导致输出匹配时,此方法可能效率极低。我们提出了一个懒惰的评估机制,推迟处理频繁的事件类型,并将它们存储在内部到达。然后,事件以频率的升序进行匹配,从而最大限度地减少潜在的冗余计算。我们引入了一个Lazy Chain NFA,它利用了上述原理,并且不依赖于底层模式结构。提出了一种构造常见模式类型的懒惰链NFA的算法,包括合取、求反和迭代。最后,我们实验评估我们的机制在真实世界的股票交易数据。结果表明,两个数量级的性能增益比传统的基于NFA的方法,显着降低内存资源的要求。

英文摘要:

Complex Event Processing (CEP) is an emerging field with important applications in many areas. CEP systems collect events arriving from input data streams and use them to infer more complex events according to predefined patterns. The Non-deterministic Finite Automaton (NFA) is one of the most popular mechanisms on which such systems are based. During the event detection process, NFAs incrementally extend previously observed partial matches until a full match for the query is found. As a result, each arriving event needs to be processed to determine whether a new partial match is to be initiated or an existing one extended. This method may be highly inefficient when many of the events do not result in output matches. We present a lazy evaluation mechanism that defers processing of frequent event types and stores them internally upon arrival. Events are then matched in ascending order of frequency, thus minimizing potentially redundant computations. We introduce a Lazy Chain NFA, which utilizes the above principle, and does not depend on the underlying pattern structure. An algorithm for constructing a Lazy Chain NFA for common pattern types is presented, including conjunction, negation and iteration. Finally, we experimentally evaluate our mechanism on real-world stock trading data. The results demonstrate a performance gain of two orders of magnitude over traditional NFA-based approaches, with significantly reduced memory resource requirements.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑