# 一致性检查

一致性检查是一种过程挖掘技术，它将从真实过程记录下来的事件日志与过程模型进行比较，以检测观测行为与建模行为之间的不一致，并用指标量化这些不一致。它位于过程发现与过程扩展之间：过程发现从日志数据中提取模型，过程扩展则用基于日志的属性丰富模型；其核心任务是将已有模型与相应日志进行比较，输出则是诸如拟合度等质量指标，以及对这些指标背后偏差的诊断。<sup>[1](https://doi.org/10.1016/j.is.2007.07.001)</sup> 现代一致性检查需要一种对齐，将日志中的事件与模型元素关联起来，反之亦然；正是这种对齐使偏差和瓶颈能够被定位和量化。<sup>[2](https://vdaalst.com/publications/p664.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 输入数据 | 事件日志至少需要每个事件具有唯一案例标识符、活动标签和时间戳。<sup>[3](https://ar5iv.labs.arxiv.org/html/2007.10903)</sup> |
| 质量维度 | 拟合度、精确度、泛化度和简洁度是用于比较模型与日志的四个维度。<sup>[2](https://vdaalst.com/publications/p664.pdf)</sup> |
| 核心计算 | 计算最优对齐等价于在模型与事件数据的同步乘积网状态空间上求解最短路径问题，通常用 A* 算法求解。<sup>[4](https://sebastiaanvanzelst.com/wp-content/uploads/2019/06/topnoc_si_paper_1_after_minor_revision.pdf)</sup> |
| 标准代价函数 | 同步移动和静默移动代价为 0，仅日志移动和仅模型移动代价为 1，当日志与模型在活动上不一致时代价为无穷大。<sup>[2](https://vdaalst.com/publications/p664.pdf)</sup> |
| 复杂度 | 计算最优对齐与Petri网可达性同样复杂；一般Petri网的可达性是可判定的，尽管计算上极其困难；其他综述则在实践中将其视为NP难问题。<sup>[5](https://link.springer.com/chapter/10.1007/978-3-031-08848-3_5)</sup><sup> • </sup><sup>[19](https://dl.acm.org/doi/10.1145/3313276.3316369)</sup><sup> • </sup><sup>[20](https://www2.informatik.uni-hamburg.de/TGI/pnbib/m/mayr_e_w2.html)</sup> |
| 技术 | 存在三类：规则检查、令牌重放和对齐，其中对齐使用最广。<sup>[5](https://link.springer.com/chapter/10.1007/978-3-031-08848-3_5)</sup> |
| 工具 | ProM 是一致性检查论文中使用最多的平台；自定义工具比标准库 PM4Py 出现得更频繁。<sup>[6](https://link.springer.com/article/10.1007/s44311-025-00015-7)</sup> |

## 工作原理

日志是一组事件序列，称为轨迹，每个案例一条；模型通常是Petri网，其变迁带有活动标签。<sup>[1](https://doi.org/10.1016/j.is.2007.07.001)</sup> 形式上，事件日志是由活动构成的序列的多重集，\( L \in B(A^{*}) \)。<sup>[4](https://sebastiaanvanzelst.com/wp-content/uploads/2019/06/topnoc_si_paper_1_after_minor_revision.pdf)</sup> 对齐是一个步骤序列，每一步是一对 \( (x, y) \in A_{\perp L} \times A_{\perp M} \)，其中 \( \perp \) 表示无移动：日志移动表示日志中发生了一个事件，而模型中没有对应变迁；模型移动表示模型中触发了一个变迁，而日志中没有对应事件；同步移动同时匹配二者；静默移动涉及一个不可见变迁。<sup>[2](https://vdaalst.com/publications/p664.pdf)</sup><sup> • </sup><sup>[7](https://www.vdaalst.com/publications/p1034.pdf)</sup> 当对齐各移动的代价之和最小时，该对齐就是最优的。<sup>[5](https://link.springer.com/chapter/10.1007/978-3-031-08848-3_5)</sup>

标准距离函数规定 \( \delta_{S}(x, \perp) = 1 \)、\( \delta_{S}(\perp, y) = 1 \)、若 \( x = y \) 则 \( \delta_{S}(x, y) = 0 \)、若 \( x \neq y \) 则 \( \delta_{S}(x, y) = \infty \)；只有日志与模型在活动上一致的移动才是零代价的。<sup>[2](https://vdaalst.com/publications/p664.pdf)</sup> 每条轨迹基于对齐的拟合度等于 1 减去最优对齐代价除以仅由日志移动和模型移动构成的对齐的最坏情况代价。<sup>[8](https://ceur-ws.org/Vol-1701/paper22.pdf)</sup><sup> • </sup><sup>[21](https://vdaalst.com/publications/p1093.pdf)</sup> 在计算上，最著名的技术使用 A* 在同步乘积网的可达图中寻找最短路径；当启发式始终低估到最终状态的实际距离时，A* 是可采纳的，从而保证得到最短路径。<sup>[5](https://link.springer.com/chapter/10.1007/978-3-031-08848-3_5)</sup><sup> • </sup><sup>[4](https://sebastiaanvanzelst.com/wp-content/uploads/2019/06/topnoc_si_paper_1_after_minor_revision.pdf)</sup>

可信来源对计算最优对齐的复杂度的表述并不一致：一份 2022 年手册章节指出，该任务与Petri网中的可达性同样复杂，而对于一般Petri网，该问题是不可判定的；<sup>[5](https://link.springer.com/chapter/10.1007/978-3-031-08848-3_5)</sup> 而一篇文献综述和符号对齐论文则将在大规模日志与模型之间寻找最优对齐描述为 NP难问题。<sup>[3](https://ar5iv.labs.arxiv.org/html/2007.10903)</sup><sup> • </sup><sup>[7](https://www.vdaalst.com/publications/p1034.pdf)</sup> 基于对齐的技术在事件日志和过程模型规模上具有指数时间复杂度，这常常妨碍实际应用。<sup>[6](https://link.springer.com/article/10.1007/s44311-025-00015-7)</sup>

## 实施方法

首先，准备日志，使每个事件都带有案例标识符、活动标签和时间戳。<sup>[3](https://ar5iv.labs.arxiv.org/html/2007.10903)</sup> 其次，选择或获取过程模型，通常是Petri网。<sup>[1](https://doi.org/10.1016/j.is.2007.07.001)</sup> 第三，分两个阶段运行一致性分析：先确保拟合度，再评估结构与行为适当性；测量值被归一化到 0（最差）与 1（最好）之间。<sup>[1](https://doi.org/10.1016/j.is.2007.07.001)</sup> 在令牌重放变体中，每条轨迹都在模型中被重放，同时统计死端处产生的缺失令牌、重放后剩余的令牌，以及消耗和产生的令牌。<sup>[1](https://doi.org/10.1016/j.is.2007.07.001)</sup><sup> • </sup><sup>[3](https://ar5iv.labs.arxiv.org/html/2007.10903)</sup> 在对齐变体中，为每条轨迹计算一个最优对齐，偏差可直接从其日志移动（相对于模型插入或跳过的事件）和模型移动中读出。<sup>[2](https://vdaalst.com/publications/p664.pdf)</sup>

## 起源

基于监控真实行为的一致性检查由 A. 罗齐纳特（A. Rozinat）和威尔·范德阿尔斯特（W.M.P. van der Aalst）于 2007 年在《Information Systems》上提出。<sup>[1](https://doi.org/10.1016/j.is.2007.07.001)</sup> 这项工作引入了带拟合度和适当性指标的基于令牌的重放，并在 ProM 框架中实现为一致性检查器插件。<sup>[1](https://doi.org/10.1016/j.is.2007.07.001)</sup> 更早的工作已经量化了事件日志与过程模型之间的关系，而 2007 年的论文在后来的综述中被描述为一致性分析的首个综合性方法。<sup>[2](https://vdaalst.com/publications/p664.pdf)</sup>

基于对齐的方法由威尔·范德阿尔斯特、阿里亚·阿德里安夏（Arya Adriansyah）和布德维恩·范东恩（Boudewijn van Dongen）在 2012 年一篇关于在过程模型上重放历史的 WIREs 文章中进一步阐述，<sup>[2](https://vdaalst.com/publications/p664.pdf)</sup> 并在阿里亚·阿德里安夏 2014 年于[埃因霍温理工大学](https://www.edgepedia.org/zh/eindhoven-university-of-technology)完成的博士论文《对齐观测行为与建模行为》中加以发展。<sup>[9](https://doi.org/10.6100/ir770080)</sup>

## 变体

有三类算法将建模行为与观测行为关联起来。规则检查比较日志与模型的结构足迹；令牌重放在模型中重放每条轨迹，并观察其是否为有效执行序列；对齐求解上述优化问题，是使用最广的一类。<sup>[5](https://link.springer.com/chapter/10.1007/978-3-031-08848-3_5)</sup> 在对齐计算中，最先进的方法将 A* 与通过整数线性规划求解的Petri网标识方程相结合，以剪枝搜索空间并提供启发式。<sup>[7](https://www.vdaalst.com/publications/p1034.pdf)</sup> 另一种最大同步代价函数只惩罚日志移动，因此最优对齐会最大化同步移动；在该代价函数下，配合传递闭包图预处理步骤，一种专用算法在含大量轨迹的工业模型上比 A* 快一个数量级。<sup>[10](https://www.vdaalst.rwth-aachen.de/publications/p1026.pdf)</sup>

还存在视角扩展。数据感知一致性检查使用带数据的Petri网，它对数据变量、守卫以及读/写动作进行建模，用以诊断仅控制流检查会遗漏的、与数据相关的偏差。<sup>[11](https://www.math.unipd.it/~deleoni/documenti/COOPIS14.pdf)</sup> 对于对象中心过程，近期工作定义了带标识符的对象中心Petri网，并将最优对象中心对齐计算转化为可满足性/优化模理论（Satisfiability/Optimization Modulo Theory）问题，在工具 oCoCoMoT 中实现。<sup>[12](https://arxiv.org/html/2312.08537v2)</sup>

## 应用

这项技术的动机来自审计：组织使用事务日志和审计轨迹来审计并监控其所支持的过程，而其中许多过程都被显式建模；原始论文以 [SAP R/3](https://www.edgepedia.org/zh/sap-r-3) 事务日志对照 EPC（事件驱动过程链）模型进行检查为例。<sup>[1](https://doi.org/10.1016/j.is.2007.07.001)</sup> 除这一审计动机之外，已发表的应用案例研究证据较少。在工具方面，所综述的一致性检查论文中使用最多的平台是 ProM，它是首个实现一致性检查技术并带可视化支持的开源平台，而自定义工具似乎比标准库 PM4Py 更受欢迎。<sup>[6](https://link.springer.com/article/10.1007/s44311-025-00015-7)</sup>

## 局限与替代方案

令牌重放有已知的失效模式：当模型被多余令牌淹没时，进行令牌游戏通常会高估拟合度，<sup>[2](https://vdaalst.com/publications/p664.pdf)</sup> 而早期重放技术常常产生歧义或不可预测的结果，这促使人们采用对齐作为一种无歧义的方式来解释和量化偏差。<sup>[13](https://ceur-ws.org/Vol-1847/paper01.pdf)</sup> 将模型的所有触发序列与日志轨迹进行比较的朴素方法用途有限，因为触发序列的数量会随并行性极快增长，并且在存在循环时可能无限。<sup>[1](https://doi.org/10.1016/j.is.2007.07.001)</sup> 替代的问题表述将一致性检查映射为自动规划，如 M. 德莱奥尼（M. de Leoni）和 A. 马雷拉（A. Marrella）所报告，<sup>[14](https://doi.org/10.1016/j.eswa.2017.03.047)</sup> 或映射为布尔可满足性及相关编码，以复用高效求解器。<sup>[6](https://link.springer.com/article/10.1007/s44311-025-00015-7)</sup>

在线与流式一致性检查是一项重要发展。前缀对齐将事件流与过程模型关联起来：轨迹前缀的最优前缀对齐总是低估完整轨迹最优对齐的代价，因此非零前缀代价保证存在偏差；复用先前计算的前缀对齐可在保持最优性的同时提高内存效率。<sup>[15](https://doi.org/10.1007/s41060-017-0078-6)</sup> 布拉蒂恩（Burattin）和卡莫纳（Carmona）提出了一个框架，通过使用区域理论与状态相似性离线预计算在线一致性迁移系统（OCTS），将在线计算限制为每个事件的常数时间，并在 ProM 中实现；累计代价大于 0 的运行实例即为偏离实例，代价越大表示实例问题越多。<sup>[16](https://andrea.burattin.net/public-files/publications/2017-bpi.pdf)</sup><sup> • </sup><sup>[17](https://dl.acm.org/doi/10.1145/3329007.3329014)</sup> 标准的基于对齐的检查只识别事件级偏差，即插入或跳过的事件；一篇 BPM 2024 论文将其扩展到过程级偏差模式，覆盖插入、跳过、重复、替换和交换行为。<sup>[18](https://eprints.cs.univie.ac.at/8136/1/BPM2024%20Beyond%20Log%20and%20Model%20Moves%20in%20Conformance%20Checking-%20Discovering%20Process-Level%20Deviation%20Patterns.pdf)</sup>

## References

1. [A. Rozinat, W.M.P. van der Aalst (2007). Conformance checking of processes based on monitoring real behavior. Information Systems.](https://doi.org/10.1016/j.is.2007.07.001)
2. [Replaying History on Process Models for Conformance Checking and Performance Analysis (van der Aalst, Adriansyah, van Dongen, WIREs 2(2):182–192, 2012)](https://vdaalst.com/publications/p664.pdf)
3. [Conformance checking: A state-of-the-art literature review (arXiv:2007.10903)](https://ar5iv.labs.arxiv.org/html/2007.10903)
4. [Computing Alignments of Event Data and Process Models (van Zelst et al.)](https://sebastiaanvanzelst.com/wp-content/uploads/2019/06/topnoc_si_paper_1_after_minor_revision.pdf)
5. [Conformance Checking: Foundations, Milestones and Challenges (Carmona et al., Springer process mining handbook chapter, 2022)](https://link.springer.com/chapter/10.1007/978-3-031-08848-3_5)
6. [Artificial intelligence in conformance checking: state of the art and research agenda (Process Science, 2025)](https://link.springer.com/article/10.1007/s44311-025-00015-7)
7. [Observed and Modelled Behaviour (symbolic alignment computation with LTSMIN)](https://www.vdaalst.com/publications/p1034.pdf)
8. [Alignment-based Metrics in Conformance Checking (van Dongen, Carmona, Chatain; EMISA 2016)](https://ceur-ws.org/Vol-1701/paper22.pdf)
9. [Adriansyah, A Arya (2014). Aligning observed and modeled behavior. .](https://doi.org/10.6100/ir770080)
10. [Maximizing Synchronization for Aligning Observed and Modelled Behaviour (van der Aalst group)](https://www.vdaalst.rwth-aachen.de/publications/p1026.pdf)
11. [Decomposing Alignment-based Conformance Checking of Data-aware Process Models (de Leoni et al., COOPIS 2014)](https://www.math.unipd.it/~deleoni/documenti/COOPIS14.pdf)
12. [Object-Centric Conformance Alignments with Synchronization (Extended Version)](https://arxiv.org/html/2312.08537v2)
13. [Parametrization of the A* Algorithm for Alignment Computation (van Dongen et al., CEUR-WS)](https://ceur-ws.org/Vol-1847/paper01.pdf)
14. [M. de Leoni, A. Marrella (2017). Aligning Real Process Executions and Prescriptive Process Models through Automated Planning. Expert Systems with Applications.](https://doi.org/10.1016/j.eswa.2017.03.047)
15. [Sebastiaan J. van Zelst and colleagues (2017). Online conformance checking: relating event streams to process models using prefix-alignments. International Journal of Data Science and Analytics.](https://doi.org/10.1007/s41060-017-0078-6)
16. [A Framework for Online Conformance Checking (Burattin & Carmona, BPM/BPI workshops 2017)](https://andrea.burattin.net/public-files/publications/2017-bpi.pdf)
17. [Conformance checking: a state-of-the-art literature review (ACM)](https://dl.acm.org/doi/10.1145/3329007.3329014)
18. [Beyond Log and Model Moves in Conformance Checking: Discovering Process-Level Deviation Patterns (BPM 2024)](https://eprints.cs.univie.ac.at/8136/1/BPM2024%20Beyond%20Log%20and%20Model%20Moves%20in%20Conformance%20Checking-%20Discovering%20Process-Level%20Deviation%20Patterns.pdf)
19. [dl.acm.org](https://dl.acm.org/doi/10.1145/3313276.3316369)
20. [An Algorithm for the General Petri Net Reachability Problem.](https://www2.informatik.uni-hamburg.de/TGI/pnbib/m/mayr_e_w2.html)
21. [vdaalst.com](https://vdaalst.com/publications/p1093.pdf)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026; Oct 21, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Databases and data systems › Data mining, warehousing, and big data › Data mining concepts and tasks

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/conformance-checking

English original: https://www.edgepedia.org/conformance-checking
