Manuscript Offprint

arXiv:2610.28532

TracePrism: Extending Semantic Trace Topics to Iterative, Encoding-Aware Trace Partitioning

Gennady Andrienko, Natalia Andrienko, Manuel Resinas, Stef van den Elzen, Barbara Weber

Gennady Andrienko, Natalia Andrienko, Manuel Resinas, Stef van den Elzen, and Barbara Weber

Abstract—Process mining typically explains an event log with a single model, clustering, or classifier fitted to all cases, although real logs often mix cases that follow different sub-processes. Trace clustering separates sub-populations, but it fixes one notion of trace similarity for the whole analysis. We propose TracePrism, which treats process discovery as iterative partitioning with three characteristics. The trace encoding is adaptive: it is chosen for each working set of remaining traces from a library of encodings, with suggestions scored for that set. The partitioning is iterative: the analyst forms a candidate group based on a rule, a dominant topic, a cluster over topic weights, or a region of an embedding, accepts it if it is coherent in both process structure and outcome, and continues with the remaining traces. Decisions are revisable and recorded: a group can be reopened under a different working set or encoding, and the findings repository keeps both the earlier decision and its revision. We implement TracePrism as an open-source prototype and demonstrate it in usage scenarios on three real-world event logs. The scenarios also revealed behavior that we had not anticipated, such as process drift.

Index Terms—Visual analytics, process mining.

I. INTRODUCTION

Process mining reconstructs the behavior of a business process from event data that information systems record during execution [1]. An event log is a collection of traces, each an ordered sequence of events belonging to one case, for example one loan application, one hospital stay, or one traffic fine. Process discovery derives a model from the log, most often a graph of frequent transitions such as a directly-follows graph (DFG), in which nodes are activities and edges connect an activity to the activity that directly follows it [2].

A DFG is a single aggregate: every edge is computed over the whole case population. Real logs routinely mix cases governed by different policies, channels, or periods of the same procedure. Consider traffic fines that are paid without incident, fines for which notification fails and the case escalates to collection, and fines that take much longer and end differently again. A DFG of all three shows every activity and most transitions, but it merges three regimes into one picture that corresponds to no actual case. Filtering by variant, frequency, or case attribute helps only if the analyst already knows which partition to use. Finding that partition is the problem we address, specifically the discovery of several models of coherent sub-populations of cases instead of one model of the whole log.

Trace clustering is the usual response [3]–[5]. It represents cases under a chosen notion of similarity, partitions them into groups, and analyzes each group separately. The representation is typically selected once for the whole analysis. It then determines what similarity means: distinctions that the representation does not express cannot drive the partition. This is restrictive when sub-populations differ in different aspects of behavior. One group may be characterized by a local sequence of activities, another by timing, and another by case attributes. A representation that exposes one of them may obscure another. In addition, a group that looked plausible may become questionable once the analyst has examined it in context. This calls for revising the representation under which groups were found, and not only their number or boundaries.

The intended users are process analysts and process owners who examine the event log of a process that they want to understand or improve, with an outcome of interest in mind, such as payment, admission, or escalation. Their questions have the form: which kinds of cases exist, how do they proceed, and how do they end? An answer is a set of named sub-processes, each with a description and a known outcome profile.

Another question is when a candidate group is worth retaining. Two properties are important. The members of a group must look alike under an inspectable description of the trace, which we call structural coherence, and they must behave alike with respect to an outcome of interest, which we call outcome coherence. Neither is sufficient alone. Structural coherence alone can accept a group with a shared pattern but no consistent outcome, which does not help an analyst who asks what distinguishes good outcomes from bad ones. Outcome coherence alone can accept a group with similar outcomes but no process description that explains why they belong together. A system should report both to the analyst and not combine them into one score, since no fixed weighting of structural tightness against outcome purity holds across domains. Trace clustering does not in general require outcome coherence, and outcome-oriented predictive process monitoring [6] does not require structural coherence. Either can yield groups that are coherent in both senses, but neither uses the two as an acceptance criterion. Where no outcome label exists, any case-level partition of interest, such as a duration tier, a conformance verdict, or a cost band, can play a role instead.

Some methods iterate. Closest to our work is the interactive

G. Andrienko and N. Andrienko are with Fraunhofer IAIS, Germany, and City St George's, University of London, UK. E-mail: gennady.andrienko@iais.fraunhofer.de, natalia.andrienko@iais.fraunhofer.de

M. Resinas is with the University of Seville, Spain. E-mail: resinas@us.es

S. van den Elzen is with Eindhoven University of Technology, The Netherlands. E-mail: s.j.v.d.elzen@tue.nl

B. Weber is with the University of St. Gallen, Switzerland. E-mail: barbara.weber@unisg.ch

This work has been submitted to the IEEE Transactions on Visualization and Computer Graphics for possible publication.

outcome explanation of Völzer et al. [7]. The analyst accepts a rule over case predicates, removes the cases it covers from further search, and continues with the rest, revising the attribute vocabulary along the way. Their acceptance criteria resemble ours: an explanation must be precise with respect to the outcome and meaningful to the analyst. Active trace clustering [8], interactive discovery [9], [10], and process cubes [11] iterate over clusters, model fragments, or predefined attribute dimensions. In none of these approaches are the representation of a trace and the notion of similarity revised as the analysis proceeds. Section II discusses these differences in more detail.

In earlier work, we proposed Semantic Trace Topics [12], a text-inspired encoding that represents each trace as a document of tokens describing activities, local sequence, and timing. Non-negative matrix factorization (NMF) of the resulting trace-token matrix yields topics, which are interpretable, combinable components of process behavior, each tied to the traces that predominantly express it. That paper evaluated the encoding in a single pass over one working set and one encoding. It left open how to choose among encodings and the topic count, how a topic-based decomposition relates to other ways of forming groups, and what to do once an initial decomposition has been interpreted. We also build on SmartIterator [13], which supports an informed choice of parameters for a single grouping step from a whole sweep of results instead of one result. TracePrism carries this principle from the group count to the working set and the encoding.

TracePrism extends trace clustering from a one-shot partition under a fixed representation to an iterative, revisable process in which the notion of trace similarity can change as different parts of the log are examined. The contributions are as follows.

  1. Adaptive encoding. The trace representation is chosen per working set, not once for the whole analysis. We propose a library of composable encodings that includes token families for activities, n-grams, timing, and case attributes. The analyst selects encoding components guided by system-computed scores and by the analyst's knowledge of the process.

  2. Iterative partitioning. The analyst forms a candidate group from a topic, a cluster, or a manual selection in an embedding, checks its structural and outcome coherence, commits it, and continues with the remaining traces. The commit-and-continue loop is adapted from [7]. What differs is what is committed: a group formed under a trace representation that the analyst has chosen.

  3. Revisability and provenance. A committed group can be reopened and refined under a different working set or encoding. The findings repository (as in [14]) keeps the earlier entry, the working set and encoding under which it was formed, and how it was later revised. The analyst's growing understanding of the log is thus an explicit record.

Figure 1 summarizes the workflow. The system supports each step with visual and quantitative evidence, including a topic-stability diagram, paired coherence measures, and

Figure

Fig. 1. The iterative partitioning workflow, corresponding to tasks T1–T7 of Table I.

attribute fingerprints. Its encoding library extends [12] with additional token families and a candidate-scoring mechanism.

We implement TracePrism as an open-source, browser-based prototype at https://geoanalytics.net/TracePrism/, and apply it to three real-world event logs from municipal traffic-fine administration, hospital sepsis care, and IT incident management. Following Isenberg et al. [15], we evaluate the approach through usage scenarios. The claim under test is that the analysis can identify sub-populations that are coherent in structure and outcome, and record the findings. We describe a complete session on the Road Traffic Fines log in detail and compare it with the sessions on the other two logs. The sessions show that the workflow separates the logs into subpopulations that are coherent in structure and outcome, that the findings repository remains auditable from start to end, and that the workflow applies to logs with different process structures, vocabularies, and case attributes. The auditability includes a point in the session where an earlier decision is reopened and revised on record instead of being replaced silently. The sessions also led to observations that we had not anticipated: groups formed from behavior alone occupy different periods of the Fines log, which points to process drift, and the outcome that resists grouping is not always the rarest one. A formal user study is left for future work.

References (74)

  • Data Science in Action, 2nd ed. Springer, 2016
  • Visual analytics meets process mining: Challenges and opportunities
  • A generic framework for trace clustering in process mining
  • Context aware trace clustering: Towards improving process mining results
  • Multi-perspective clustering of process execution traces
  • Deep learning for predictive business process monitoring: Review and benchmark
  • A fresh approach to analyze process outcomes
  • Active trace clustering for improved process discovery
  • Interactive data-driven process model construction
  • Interactive discovery and visualization of process trees
  • Process Cubes: Slicing, dicing, rolling up and drilling down event data for process mining
  • Semantic trace topics: Text-based encodings for interpretable multi-faceted process exploration
  • SmartIterator: Visual analytics workflows for supervising unsupervised data grouping (opens arXiv in a new tab)
  • Supporting story synthesis: Bridging the gap between visual analytics and storytelling
  • A systematic review on the practice of evaluating visualization
  • Trace encoding in process mining: A survey and benchmarking
  • Trace encoding techniques for multi-perspective process mining: A comparative study
  • Trace clustering in process mining
  • A novel multi-perspective trace clustering technique for IoT-enhanced processes: A case study in smart manufacturing
  • act2vec, trace2vec, log2vec, and model2vec: Representation learning for business processes
  • Process mining embeddings: Learning vector representations for Petri nets (opens arXiv in a new tab)
  • On the surprising behavior of distance metrics in high dimensional space
  • Discovering expressive process models by clustering log traces
  • Explainable predictive process monitoring
  • Explainability in predictive process monitoring: When understanding helps improving
  • An algorithm for multi-relational discovery of subgroups
  • Subgroup discovery
  • Exceptional model mining: Supervised descriptive local pattern mining with complex target concepts
  • Slice finder: Automated data slicing for model validation
  • Sliceline: Fast, linear-algebra-based slice finding for ML model debugging
  • Domino: Discovering systematic errors with cross-modal embeddings (opens arXiv in a new tab)
  • Subplex: A visual analytics approach to understand local model explanations at the subpopulation level
  • Fairvis: Visual analytics for discovering intersectional bias in machine learning
  • The what-if tool: Interactive probing of machine learning models
  • A review of topic modeling methods
  • Learning the parts of objects by non-negative matrix factorization
  • Probabilistic non-negative matrix factorization and its robust extensions for topic modeling
  • Lifeflow: Visualizing an overview of event sequences
  • Temporal event sequence simplification
  • Coreflow: Extracting and visualizing branching patterns from event sequences
  • Sequence synopsis: Optimize visual summary of temporal event data
  • Matrixwave: Visual comparison of event sequence data
  • Eventthread: Visual summarization and stage analysis of event sequence data
  • Visual progression analysis of event sequence data
  • Unbiased, fine-grained description of processes performance from event data
  • Termite: Visualization techniques for assessing textual topic models
  • LDAvis: A method for visualizing and interpreting topics
  • Task-driven comparison of topic models
  • Topic model diagnostics: Assessing domain relevance via topical alignment
  • Towards comprehensive support for organizational mining
  • Process mining manifesto
  • Springer, 2011
  • Initial insights into exploratory process mining practices
  • The sensemaking process and leverage points for analyst technology as identified through cognitive task analysis
  • Knowledge generation model for visual analytics
  • Characterizing provenance in visualization and data analysis: An organizational framework of provenance types and purposes
  • Survey on the analysis of user interactions and visualization provenance
  • Characterizing guidance in visual analytics
  • Towards multi-faceted visual process analytics
  • State of the art: Coordinated and multiple views in exploratory visualization
  • Toward a quantitative survey of dimension reduction techniques
  • Control-flow anomaly detection by process mining-based feature extraction and dimensionality reduction
  • KAVA-PM: Knowledge-assisted visual process mining
  • Visual analytics for human-centered machine learning
  • The flow of trust: A visualization framework to externalize, explore, and explain trust in ML applications
  • Coordinated projections: A new approach to multi-faceted process exploration
  • UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction
  • A multi-level typology of abstract visualization tasks
  • Road traffic fine management process
  • Sepsis cases – event log
  • BPI challenge 2013, incidents
  • Silhouettes: A graphical aid to the interpretation and validation of cluster analysis
  • Dealing with concept drifts in process mining
  • A survey on concept drift in process mining