TL;DR
This paper introduces Timed Partial Orders (TPOs), a novel model for specifying complex workflow schedules that combines event ordering with precise timing constraints using clocks. They also present an algorithm to automatically infer these TPO models from logged workflow data, enabling better understanding and optimization of processes like manufacturing and gameplays.
What Problem Does This Paper Address?
Modern workflows, from manufacturing lines to complex software processes, involve not just the sequence of tasks but also critical timing dependencies. Traditional process mining techniques often focus on the order of events (partial orders) but struggle to capture the nuances of timing constraints (e.g., "task A must finish within 5 minutes of task B starting"). This gap makes it difficult to accurately model, monitor, and optimize workflows where timing is crucial for efficiency, cost, and success. Existing methods for handling timing often rely on simpler models or require significant manual input, leaving a need for a more expressive and automated approach.
Methods
The core contribution is the Timed Partial Order (TPO) model. TPOs extend traditional partial orders by incorporating timing constraints inspired by timed automata. Key features include:
- Partial Orders: Standard "happens-before" relationships between events.
- Clocks: Timers that track elapsed time since a specific event.
- Guards: Conditions on clocks that must be met for an event to occur (e.g.,
clock_1 < 10s). - Resets: Actions that reset clocks to zero upon the occurrence of an event.
The paper also introduces a TPO mining algorithm that takes timestamped event logs as input and outputs a TPO specification. This algorithm involves:
- Partial Order Identification: Inferring the basic event sequence from the logs.
- Timing Constraint Formulation: Determining the tightest possible timing bounds from the data.
- Redundancy Elimination: Simplifying these constraints using optimization techniques.
- Clock Allocation: A novel approach that uses a graph coloring problem to minimize the number of clocks needed to represent the constraints, making the TPO more efficient.
A specific class of TPOs called "race-free TPOs" is defined, which simplifies reasoning and ensures timing constraints are independent of the order of parallel events.
Datasets
The paper evaluates their approach on:
- Synthetic Datasets: Randomly generated TPOs and traces to test scalability and correctness.
- Aircraft Turnaround Data: Synthesized data inspired by real-world aircraft servicing processes.
- Overcooked Gameplay Data: Publicly available YouTube videos of the Overcooked multiplayer game, analyzed for both beginner and professional players.
Key Insights and Ideas
- TPOs as a Unified Model: TPOs elegantly combine event ordering and timing constraints, offering a more comprehensive view of workflows than traditional methods.
- Clocks for Temporal Reasoning: The use of clocks, inspired by timed automata, provides a structured way to express and enforce time-based dependencies.
- Graph Coloring for Clock Minimization: Framing clock allocation as a graph coloring problem is a clever way to reduce model complexity and computational overhead, a significant practical advantage.
- Race-Free TPOs Simplify Analysis: This restricted class of TPOs makes it easier to understand and reason about timing constraints, especially in scenarios with parallel tasks.
- Interpretable Insights: The mined TPOs provide valuable, human-readable insights into workflow dependencies and timing, useful for process improvement.
Key Results
- The TPO mining algorithm can infer TPOs with hundreds of events from thousands of data points in seconds.
- Experiments on synthetic data show the number of clocks increases with the number of events, but heuristics keep this manageable.
- The algorithm successfully mined TPOs for aircraft turnaround and Overcooked gameplay, revealing interesting differences between beginner and professional players (e.g., task ordering in Overcooked).
- The TPO model provides a more succinct and procedural way to represent timing constraints compared to raw difference constraints.
- The approach demonstrated better performance and scalability compared to existing methods like CSTNUD mining, especially on complex real-world scenarios.
Limitations and Future Work
- NP-Hardness: Minimizing the number of clocks is NP-hard, and while the graph coloring approach is effective, it relies on heuristics for optimal solutions.
- Repetitive Events and Loops: The current formulation assumes unique events per trace. Handling workflows with repetitive events or explicit loops requires extensions, potentially involving integer programming or relabeling strategies.
- Data Quality: The accuracy of mined TPOs depends on the quality and completeness of the input logs.
- Future Work: The authors suggest exploring more sophisticated heuristics for clock minimization, extending the model to handle loops and repetitive events, and applying it to a wider range of real-world industrial processes.
Summary updated