Token-based replay

Last updated

Token-based replay technique is a conformance checking algorithm [1] that checks how well a process conforms with its model by replaying each trace on the model (in Petri net notation ). [2] Using the four counters produced tokens, consumed tokens, missing tokens, and remaining tokens, it records the situations where a transition is forced to fire and the remaining tokens after the replay ends. Based on the count at each counter, we can compute the fitness value between the trace and the model.

Contents

The algorithm

Source: [2]

The token-replay technique uses four counters to keep track of a trace during the replaying:

Place-tbr.png

Invariants:

At the beginning, a token is produced for the source place (p = 1) and at the end, a token is consumed from the sink place (c' = c + 1). When the replay ends, the fitness value can be computed as follows:

Example

Suppose there is a process model in Petri net notation as follows:

A process model M with the activities a, b, c, d Pm-tbr.png
A process model M with the activities a, b, c, d

Example 1: Replay the trace (a, b, c, d) on the model M

Replay-abd-tbr-wrong-1.png
Replay-abd-tbr-right-2.png
Replay-abcd-tbr-right-3.png
Replay-abcd-tbr-right-5.png

The fitness of the trace () on the model is:

Example 2: Replay the trace (a, b, d) on the model M

Replay-abd-tbr-wrong-1.png
Replay-abd-tbr-right-2.png
Replay-abcd-tbr-right-3.png
Replay-abd-tbr-6.png


The fitness of the trace () on the model is:

References

  1. van der Aalst, Wil (2016), van der Aalst, Wil (ed.), "Data Science in Action" , Process Mining: Data Science in Action, Berlin, Heidelberg: Springer, pp. 3–23, doi:10.1007/978-3-662-49851-4_1, ISBN   978-3-662-49851-4 , retrieved 2021-11-16
  2. 1 2 Rozinat, A.; van der Aalst, W.M.P. (March 2008). "Conformance checking of processes based on monitoring real behavior" . Information Systems. 33 (1): 64–95. doi:10.1016/j.is.2007.07.001. ISSN   0306-4379.