Abstract
Traditional trace clustering in process mining often relies on vector space embeddings that lose structural process logic. We present $k$-process, a novel clustering framework that replaces geometric centroids with discovered process models. By using conformance checking for cluster assignment, $k$-process preserves the behavioral semantics of event logs, leading to more interpretable and accurate clusters. Our evaluation on real-world datasets demonstrates that $k$-process significantly improves cluster quality, especially when initialized with vector-based heuristics.
Introduction
In the field of process mining, event logs serve as the primary data source for analyzing business operations. As these logs grow in complexity and volume, researchers employ trace clustering to group similar sequences of activities. This partitioning makes it easier to discover models that are both precise and readable.
However, standard clustering approaches typically map traces into a high-dimensional vector space—for instance, by counting activity frequencies or n-gram occurrences. This "flattening" process is inherently lossy; it discards the structural logic of the process, such as loops, parallel branches, and strict temporal dependencies. To address this, we propose $k$-process, an algorithm that clusters traces based on the underlying process models that best explain their behavior.
The $k$-process Framework
The $k$-process algorithm adapts the iterative logic of the classic $k$-means algorithm but operates directly on process models rather than vectors. The framework follows a four-stage iterative cycle:
- Initialization: Traces are initially partitioned into $k$ sublogs, often through random assignment or a simple heuristic.
- Centroid Determination (Discovery): Instead of calculating a geometric mean, $k$-process uses a process discovery algorithm to create a representative model for each sublog. In this work, the authors utilize a modified Heuristic Miner.
- Cluster Assignment (Conformance): To determine cluster membership, the algorithm performs conformance checking using token replay. Each trace is compared against all $k$ candidate models; it is then assigned to the cluster whose model "fits" its behavior most accurately.
- Iteration: The sublogs are updated based on these new assignments, and the cycle repeats until the clusters stabilize.
To ensure computational efficiency, the authors optimized the Heuristic Miner to produce models using Conjunctive Normal Form (CNF) for parallel relations. This simplification allows for significantly faster conformance checking without sacrificing the expressive power needed to distinguish between process variants.
Experimental Evaluation
The researchers evaluated $k$-process using real-world datasets from the Business Process Intelligence (BPI) Challenges, specifically the 2012, 2015, and 2017 logs. To test the algorithm's robustness, they created "ground truth" scenarios by merging distinct logs to see if $k$-process could successfully recover the original groupings.
Key Results
- Superior Accuracy: In head-to-head comparisons, $k$-process consistently achieved higher Silhouette scores than traditional n-gram clustering. For example, on the BPI 2015 dataset, n-gram methods stagnated at a score of ~0.31, whereas $k$-process reached ~0.45.
- The Start Heuristic: The authors observed that $k$-process is sensitive to its initial state. By using a hybrid approach—initializing with a fast n-gram vector clustering and then refining with $k$-process—the final Silhouette score improved to ~0.65. This suggests that $k$-process is exceptionally effective at refining structurally sound groups from rough statistical clusters.
- Interpretability: A major advantage of $k$-process is that it is "self-documenting." Each cluster is defined by a visual process model, allowing analysts to immediately understand the specific behavior represented by each group. Furthermore, the study found a near-perfect correlation between the Silhouette Coefficient and the F1-measure, validating the use of Silhouette scores as a reliable metric for process cluster quality.
Conclusion
By integrating process discovery and conformance checking into the clustering loop, $k$-process offers a semantically rich alternative to traditional vector-based methods. While the computational cost of token replay is higher than Euclidean distance calculations, the gains in accuracy and interpretability are substantial. Future research will focus on exploring alternative discovery algorithms, such as the Inductive Miner, and adapting the framework for real-time online process monitoring.
Summary updated