Object-Centric Directly-Follows Graphs
- OC-DFGs are advanced modeling constructs that capture multi-object event sequences by extending traditional DFGs to handle object-centric data.
- The Markov Directly-Follows Multigraph (MDFMG) assigns local transition probabilities, enabling quantitative comparisons of control-flow behavior across object types.
- Automated threshold-based clustering using cosine-like similarity measures groups object types with similar patterns, enhancing scalability and interpretability.
Object-Centric Directly-Follows Graphs (OC-DFGs) and their Markov-based multigraph variant, the Markov Directly-Follows Multigraph (MDFMG), are advanced modeling constructs in object-centric process mining. OC-DFGs extend the classic Directly-Follows Graph (DFG) model to handle event data with multiple, co-evolving object types. MDFMG enhances OC-DFGs by assigning transition probabilities and enabling quantitative comparison between the behavioral control flows of different object types. These structures support principled, automated clustering of object types with similar control-flow behavior, transforming the interpretability and scalability of process mining in complex real-world settings (Jalali, 2022).
1. Classic DFGs and Their Limitations
The Directly-Follows Graph (DFG) is a fundamental tool in classical process mining. For an event log over activity set and a case identifier , the DFG is a directed graph where:
- Vertices represent activities .
- consists of pairs if is directly followed by in a trace.
- records the frequency of each directly-follows relation.
This formalism assumes a single case notion, constraining its expressiveness in domains where multiple interacting entities (e.g., orders, items, packages) participate in events. The necessity for a more flexible representation capable of modelling "object-centric" event data motivates the development of OC-DFGs.
2. Object-Centric Event Logs and Directly-Follows Multigraphs
In Object-Centric Event Logs (OCEL), each event 0 logs an activity 1 and can refer to multiple objects. Every object 2 possesses a type 3, where 4 denotes the set of object types. Rather than treating each trace as a case, OCEL enables extraction of a local event sequence 5—the ordered list of events relevant to each object 6.
The Directly-Follows Multigraph (DFM), the "object-centric DFG," is formally defined as 7 with:
- 8 encoding directly-follows relations for each object type: 9 represents activity 0 directly preceding 1 for objects of type 2.
- 3 counts occurrences of each triple.
This model captures the possibility that each object type induces its own characteristic directly-follows behavioral pattern.
3. Markov Directly-Follows Multigraph: Probabilistic Extension
The Markov Directly-Follows Multigraph (MDFMG) extends the DFM to support quantitative comparison between object types by introducing "Markovization"—the normalization of transition frequencies:
- For each 4, define the local transition probability
5
ensuring that, for fixed 6, the outgoing probabilities sum to 1.
Each object type 7 is thus associated with a row-stochastic matrix 8 where entries 9 give the probability of 0 directly preceding 1 for this type.
Pairwise similarity between object types is quantified using a cosine-like normalized inner product:
2
This measure enables rigorous behavioral comparison between the Markov chains induced by each object type.
4. Algorithmic Construction from OCEL
The construction of MDFMG from an OCEL involves several steps:
- Counting directly-follows triples: For each object 3 of type 4, extract the sequence of events 5 sorted by timestamp, then for every consecutive pair of events 6, increment 7.
- Aggregating relations: Form 8.
- Computing transition probabilities: For every 9 in 0, compute 1 as above.
- Building probability matrices: Assemble 2 for each object type.
- Calculating pairwise similarities: Compute 3 for all 4.
Efficient sparse-array or map-based data structures are recommended for 5 and 6. The 7 similarity matrix enables subsequent clustering.
5. Threshold-Based Clustering of Object Types
The similarity matrix 8 supports partitioning of object types into clusters that share control-flow behavior. The clustering procedure is single-linkage based:
- Each object type initially forms its own cluster.
- For every pair 9 with 0, their clusters are merged.
Selection of the threshold 1 has critical impact on the number and composition of clusters. A half-interval search algorithm systematically identifies all breakpoints—values of 2 where the number of clusters changes:
- For given 3, compute clusters at both thresholds.
- If cardinalities agree, no further subdivision is required.
- If not, test the midpoint 4, and recurse on 5 and 6.
- Continue until all breakpoints are discovered.
This automated threshold-tuning framework removes reliance on ad-hoc analyst choices and exposes "meaningful" behavioral groupings inherent in the data.
6. Empirical Example and Interpretive Impact
Consider 7 and 8, where 9 yields different directly-follows frequencies by type (see (Jalali, 2022)). Transition-probability matrices 0 are computed and the similarity matrix constructed:
| o | i | p | |
|---|---|---|---|
| o | 1.00 | 0.76 | 0.00 |
| i | 0.76 | 1.00 | 0.00 |
| p | 0.00 | 0.00 | 1.00 |
- At 1, all are merged: 2.
- At 3, 4 and 5 cluster (6), 7 is separate.
- At 8, all are singletons.
Flattening the log on 9 yields a simpler DFG than on 0; isolating 1 focuses on "shipping" behavior. This illustrates MDFMG’s utility in decomposing process complexity.
7. Evaluation and Significance
Application of MDFMG to a real Purchase-to-Pay (P2P) OCEL with nine object types and ~24,000 events revealed multiple behavioral groupings as the threshold varied—e.g., at 2, object types EBELN and EBELN_EBELP merged, reflecting nearly identical control-flow; other types remained distinct. Footprint-based conformance checking via inductive miner validated these groupings, with low model-difference for merged clusters and pronounced divergence otherwise.
In summary, the Markov Directly-Follows Multigraph extends the DFG framework by:
- Recording directly-follows behavior per object type, supporting the object-centric paradigm.
- Assigning local transition probabilities and facilitating Markovian behavioral similarity analysis.
- Enabling automated, data-driven clustering, reducing interpretational and technical complexity inherent in object-centric process mining contexts.
This approach substantially streamlines model discovery and analysis for data sets with multiple, intertwined case notions (Jalali, 2022).