Temporal Deviations on Event Sequences

Janina Sontheim, Florian Richter, Thomas Seidl

Abstract

Traditional process mining focuses on structural conformance—determining whether the sequence of activities in a case follows a prescribed model. However, this approach often neglects the temporal dimension, failing to distinguish between cases that are structurally identical but temporally distinct. This paper introduces the "temporal deviation signature," a mathematical framework that transforms event timestamps into a normalized vector. By analyzing all-pairs activity durations and applying z-score normalization with sigmoid squashing, the method enables the detection of subtle temporal anomalies and the clustering of process variants based on performance rather than just sequence.

Introduction

In process mining, conformance checking typically identifies whether a specific sequence of events (a "case") adheres to a business model. While effective at detecting skipped steps or ordering errors, these tools are often blind to temporal anomalies. For instance, two technicians might complete the same three-step repair process; if one takes ten minutes and the other four hours, standard structural analysis treats them as identical. This paper addresses the need for representing temporal "accelerations" and "decelerations" as first-class citizens in process analysis, allowing organizations to identify bottlenecks and best practices that are invisible to sequence-only models.

The Temporal Signature Framework

The authors propose a novel "temporal signature" for individual cases, shifting the focus from absolute timestamps to relative deviations. The framework consists of four primary steps:

  1. All-Pairs Analysis: Rather than examining only consecutive steps, the method considers all succeeding activity pairs within a case (e.g., A to B, A to C, B to C). This captures long-range temporal dependencies.
  2. Z-Scoring: To normalize durations across different activities, the mean ($\mu$) and standard deviation ($\sigma$) for the time elapsed between every possible pair are calculated across the entire log. A z-score is then derived for each pair in a specific case, indicating its distance from the "norm."
  3. Sigmoid Squashing: To handle outliers and bound the data for machine learning applications, a fast sigmoid function $S(x) = x / (1 + |x|)$ is applied. This maps z-scores into a range between -1 (strong acceleration) and +1 (strong deceleration).
  4. The Signature Vector: The final output is a high-dimensional vector where each element represents the temporal behavior of a specific activity pair, acting as a unique fingerprint of the case's performance.

Evaluation on Synthetic Data

The framework was demonstrated using a synthetic manufacturing log involving three activities: Craft Components (A), Assemble Chair (B), and Remedy Deficiencies (C). The sample log contains five cases (C1-C5) with identical structural sequences (A-B-C) but varying timestamps.

Synthetic event log and corresponding case timelines illustrating identical sequences with varying temporal behavior.

As shown in the figure above, while the sequence is constant, the duration between activities varies significantly across cases. The temporal signature method successfully distinguishes these cases. For example, Case 3 yielded a signature of $(-0.59, -0.60, -0.29)$, indicating it was consistently faster than average.

Graphical representation of a temporal signature, where blue bars indicate decelerations and red bars indicate accelerations.

The resulting signatures can be visualized as "barcodes" of performance (see figure above). This transformation turns a temporal problem into a geometric one, allowing the use of standard clustering algorithms like K-Means to group cases by their temporal behavior.

Discussion and Limitations

While the temporal signature offers a high-resolution view of process behavior, it faces challenges regarding dimensionality and sparsity. For a process with $N$ unique activities, the signature vector size is $N^2$. In complex industrial environments with hundreds of activities, these vectors may become large and sparse. Furthermore, the current work serves as a formal definition; future research will focus on applying these signatures to large-scale real-world datasets to discover hidden process variants that differ solely in their timing.

Conclusion

By treating time as a normalized vector, the temporal deviation signature provides a robust mechanism for identifying performance anomalies. This approach moves beyond simple cycle-time metrics, offering a detailed view of where a process "rushes" or "lags," ultimately facilitating deeper insights into organizational efficiency.

Summary updated

BibTeX
@inproceedings{sontheim2019temporal,
  author = {Janina Sontheim and Florian Richter and Thomas Seidl},
  title = {{Temporal Deviations on Event Sequences}},
  booktitle = {LWDA},
  year = {2019},
}
Figure