复杂事件识别中用于聚合的正式查询语言和自动机模型
A formal query language and automata model for aggregation in complex event recognition
AI总结:
本文提出了一种扩展复杂事件逻辑(CEL)以支持聚合操作的查询语言ACEL,并引入了新的自动机模型ACEA,展示了其在复杂事件识别中的应用和表达力。
摘要:
复杂事件识别(CER)系统用于在事件流中识别复杂模式,例如在股票市场、传感器网络等应用中发现的模式。此类模式中的一个重要任务是聚合,即使用代数函数将一组值汇总为一个值,例如最大值、总和或平均值等。尽管这项任务的相关性很高,但CER中的查询语言通常只支持受限的语法形式,其语义通常未定义。在本工作中,我们迈出了一步,正式化CER中的带有聚合功能的查询语言。我们提出扩展复杂事件逻辑(CEL),一种用于CER的正式查询语言,以支持聚合操作。这项任务需要重新审视CEL的语义,使用基于元组袋而不是位置集合的新语义。然后,我们提出了一种扩展CEL的变种,称为聚合CEL(ACEL),它引入了适用于任何可交换单体运算的聚合运算符。该运算符可以自由地与之前的CEL运算符组合,允许用户定义复杂的查询和模式。我们展示了几个实际查询,其中ACEL被证明是自然地指定它们的。从计算的角度来看,我们提出了一种新的自动机模型,称为聚合复杂事件自动机(ACEA),它扩展了之前的复杂事件自动机(CEA)以支持聚合和过滤功能。此外,我们展示了ACEL中的每个查询都可以用ACEA表达,这展示了我们计算模型的有效性。最后,我们通过ACEL的视角研究ACEA的表达力,表明自动机模型比ACEL更具表达力。
英文摘要:
Complex Event Recognition (CER) systems are used to identify complex patterns in event streams, such as those found in stock markets, sensor networks, and other similar applications. An important task in such patterns is aggregation, which involves summarizing a set of values into a single value using an algebraic function, such as the maximum, sum, or average, among others. Despite the relevance of this task, query languages in CER typically support aggregation in a restricted syntactic form, and their semantics are generally undefined. In this work, we present a first step toward formalizing a query language with aggregation for CER. We propose to extend Complex Event Logic (CEL), a formal query language for CER, with aggregation operations. This task requires revisiting the semantics of CEL, using a new semantics based on bags of tuples instead of sets of positions. Then, we present an extension of CEL, called Aggregation CEL (ACEL), which introduces an aggregation operator for any commutative monoid operation. The operator can be freely composed with previous CEL operators, allowing users to define complex queries and patterns. We showcase several queries in practice where ACEL proves to be natural for specifying them. From the computational side, we present a novel automata model, called Aggregation Complex Event Automata (ACEA), that extends the previous proposal of Complex Event Automata (CEA) with aggregation and filtering features. Moreover, we demonstrate that every query in ACEL can be expressed in ACEA, illustrating the effectiveness of our computational model. Finally, we study the expressiveness of ACEA through the lens of ACEL, showing that the automata model is more expressive than ACEL.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。