Event Abstraction for Process Mining Using Supervised Learning Techniques

Niek Tax, Natalia Sidorova, Reinder Haakma, Wil M. P. van der Aalst

Introduction

Process mining serves as a vital link between data science and business process management, enabling organizations to discover, monitor, and optimize real-world workflows by extracting insights from event logs. However, a significant "granularity gap" often hinders these efforts. While process discovery algorithms perform best with high-level, meaningful activities (e.g., "Invoice Approved"), raw event logs frequently record low-level technical signals (e.g., "Sensor 12: ON" or "Database Write: Success").

When these fine-grained events are fed directly into discovery algorithms, the result is typically a "spaghetti model"—a chaotic, uninterpretable web of nodes and edges. To transform these into structured, "lasagna-like" models, events must be abstracted. This paper proposes a supervised learning framework using Conditional Random Fields (CRFs) to bridge this gap, leveraging a small amount of annotated data to map low-level signals to high-level business activities.

Methodology

Supervised Event Abstraction

Unlike unsupervised methods such as clustering, which often require extensive trial-and-error and struggle with semantic labeling, the authors' supervised approach uses a subset of manually labeled traces to train a predictive model. This allows the system to learn the specific context and intent behind sequences of low-level events.

Feature Engineering from XES

The framework utilizes the eXtensible Event Stream (XES) standard to generate rich feature vectors from four primary extensions:

  1. Concept Extension: Uses n-grams of preceding low-level event names to provide local context.
  2. Organizational Extension: Incorporates information about the resources or roles (human or machine) that triggered the event.
  3. Time Extension: Employs Gaussian Mixture Models (GMMs) to capture the periodic nature of activities. By modeling time as a probability distribution, the system can distinguish between activities that occur at specific times (e.g., morning routines) without being misled by the linear progression of time.
  4. Lifecycle Extension: Calculates the duration of activities by measuring the time delta between 'start' and 'complete' events.

Sequence Modeling with CRFs

The authors selected Linear-chain Conditional Random Fields (CRFs) for the classification task. CRFs are particularly suited for process mining because they model dependencies between consecutive events. Rather than classifying an event in isolation, the CRF considers the entire sequence, recognizing that the meaning of a "door open" event changes significantly depending on whether it follows a "fridge open" or a "front door open" event.

Abstraction and Collapsing

After the CRF predicts a high-level label for each low-level event, the system performs a "collapsing" step. Sequences of identical predicted labels are merged into a single high-level activity instance, complete with calculated start and end timestamps, which can then be used for standard process discovery.

Evaluation and Results

Metrics

To evaluate performance, the authors moved beyond standard machine learning accuracy (which often overvalues time-slice precision) and utilized Levenshtein similarity. This metric measures how closely the predicted sequence of high-level activities matches the ground truth sequence, providing a more accurate reflection of the model's utility for process discovery.

Experimental Datasets

The approach was validated on two distinct datasets:

  • Smart Home Environment (Van Kasteren): This real-world dataset involved mapping binary sensor data (e.g., motion sensors, cupboard contacts) to human activities like "Eating" or "Taking Medicine." The supervised abstraction successfully converted a chaotic sensor graph into a clean, logical process model showing a clear daily routine (e.g., Breakfast → Shower → Work).
  • Artificial Digital Photocopier: This synthetic dataset tested the model's ability to handle complex, hierarchical processes and "many-to-many" mappings. In this scenario, a single low-level event (like "Drum Spin") could belong to different high-level subprocesses depending on the context. The framework achieved a Levenshtein similarity of 0.9667, nearly perfectly reconstructing the intended high-level process.

Conclusion

By introducing supervision into the event abstraction process, this research provides a robust method for generating interpretable process models from messy, low-level data. While the requirement for annotated training data remains a limitation in some industrial contexts, the use of CRFs and sophisticated temporal features (GMMs) demonstrates that a small amount of human guidance can significantly improve the clarity and business value of discovered process models. Future work will focus on improving the handling of parallel activities and exploring more complex probabilistic graphical models.

Summary updated

BibTeX
@inproceedings{tax2016event,
  author = {Niek Tax and Natalia Sidorova and Reinder Haakma and Wil M. P. van der Aalst},
  title = {{Event Abstraction for Process Mining Using Supervised Learning Techniques}},
  booktitle = {IntelliSys},
  year = {2016},
  doi = {10.1007/978-3-319-56994-9\_18},
}
Figure