<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Granularity in Process Mining: Can we fix it?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Francesca Zerbato</string-name>
          <email>francesca.zerbato@unisg.ch</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ronny Seiger</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Gemma Di Federico</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andrea Burattin</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Barbara Weber</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Technical University of Denmark</institution>
          ,
          <addr-line>Kgs. Lyngby</addr-line>
          ,
          <country country="DK">Denmark</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University of St. Gallen</institution>
          ,
          <country country="CH">Switzerland</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Process mining techniques rely on the availability of event logs, where events have a certain granularity that is deemed appropriate for representing business activities. In this paper, we discuss why choosing a proper granularity level during preprocessing can be challenging and reflect on the implications that such a “fixed” view over the process bears for the analysis. Then, inspired by use cases in the context of user behavior analysis, we envision possible solutions that allow exploring and mining multiple granularity levels of process activities.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Introduction
Process mining enables the analysis of process execution data in the form of
events to understand and streamline business processes. Most process mining
techniques presume the presence of well-defined processes, whose execution is
recorded in event logs. Event logs represent data about the execution of
process activities at a certain level of granularity, which is often assumed to be the
same for all the events in the log. The level of granularity is usually fixated
during the preprocessing phase with the help of event abstraction techniques [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ],
which allow aggregating fine-grained events into coarse-grained events based on
numerical factors, such as temporal or geographical proximity, concept
hierarchies derived from domain knowledge [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] or common execution patterns [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. The
obtained coarse-grained events describe process activities at the business level,
bearing a specific granularity that results from design choices carried out during
the preprocessing phase and based on the purpose of the analysis.
      </p>
      <p>
        However, in some application areas, such as the discovery and analysis of
patterns of human [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] and user [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] behavior, fixating the granularity level of
process activities during the preprocessing phase can be challenging and the
resulting “fixed” view over the process bears implications for the analysis and
its outcomes. In this paper, we discuss the problem of choosing a fixed granularity
level for process activities during the preprocessing phase. In detail, in Sect. 2,
we explain why this is a challenging problem and discuss the implications of
having a fixed granularity level on the analysis. Then, in Sect. 3, we introduce
related work, while in Sect. 4, we elaborate on possible solutions allowing for the
representation and mining of multi-granular activities.
      </p>
      <p>Copyright © 2021 for this paper by its authors. Use permitted
Creative Commons License Attribution 4.0 International (CC BY 4.0).
under</p>
      <p>
        Fixed Granularity: Challenges and Implications
Process mining has expanded to many application areas, including the
discovery and analysis of patterns of human [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] and user [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] behavior from sequences
of events, such as sensor data or keystrokes, recording the activities of humans
interacting with smart environments or software systems and artifacts over a
period of time (hereinafter interaction traces). Interaction traces include activities
that can be described at many diferent levels of granularity, i.e., a coarse-grained
activity is composed of multiple finer-grained activities, which are sometimes
organized in a hierarchy. For example, let us consider a user filtering an event log
in a process mining tool and assume that activity A in Fig. 1 corresponds to
“filter event log” at level `1. A can be further detailed into “filter by attribute”
(a1) in `2, or into “select attribute filter”( a1:1), “choose attribute”(a1:2), “choose
cases or events”(a1:3), and “apply attribute filter”( a1:4) in `3.
      </p>
      <p>
        Usually, the granularity level of the activities in an event log is fixated
during preprocessing with the help of event abstraction techniques [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. However,
during log preparation, it is not always possible to know (C1) what is the exact
purpose of the analysis, as this often evolves as data are analyzed, and (C2) what
is the most appropriate granularity level of process activities for finding
meaningful patterns. Let us consider again the discovery of activity patterns from the
interaction traces of users doing process mining and assume that we aim to find
common patterns of behavior among users. This goal may change during the
analysis, e.g., from analyzing user behavior at a high level to understanding if
users implement workarounds to filter the event log. Besides, the expected
structure of meaningful patterns is often unknown during preprocessing and emerges
after some analysis iterations while exploring the data from diferent viewpoints
s
l
e
v
e
l
y
t
i
r
a
l
u
n
a
r
G
      </p>
      <p>Activities</p>
      <p>A
a1
a1.1
a1.2
a1.3
a1.4</p>
      <p>a2
a2.1…
b1.1
b1
b1.2</p>
      <p>B
b2
b1.3
b2.1 b2.2 b2.3</p>
      <p>…
b3 …
b3.1 …
t1( ) = {B, A, B}
t1( ) = {b1, a1, a2, b3}
t1( ) = {b1.1, b1.2, b1.3, a1.1, a1.2, a1.3, a1.4, b3.1, b2.3}
t2( ) = {A, B}
t2( ) = {a2, a1, b3}
t3( ) = {A, B, A}
t3( ) = {a2, b2, a1, a2}
Fig. 1. (Top) Activities (A, B) defined at diferent levels of granularity ( `1; `2; `3).
(Bottom) Interaction traces (t1, t2, t3) shown for diferent levels of granularity. In `1,
pattern fA; Bg is common to all traces (3); in `2 it can be seen in t1 and t2 if a1 and
a2 can be executed in any order ( ? ), while it cannot be observed in t3 (7).
and at varying granularity levels. Indeed, patterns can be discovered at all levels
of the granularity spectrum and, sometimes, across granularity levels.</p>
      <p>
        While fixating the granularity level of activities during preprocessing can be
challenging, the resulting “fixed view” over the process has implications on what
analyses can be done and what patterns can be observed. In the remainder, we
discuss some of these important implications (I1–I4). To focus on our problem,
we set aside the typical challenges of event abstraction and correlation [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] and
assume to have the set of all possible activity classes available at diferent levels
of granularity, potentially organized in a hierarchy like the one in Fig. 1.
      </p>
      <p>
        (I1) First, fixating the granularity of process activities during preprocessing
afects what analyses can be done on the log. Indeed, some techniques do not
work well with fine- or mixed-grained events [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] as they generate models that
are dificult to comprehend and, thus, hinder the (visual) discovery of patterns.
      </p>
      <p>(I2) Second, the results of the analysis can be observed only at the chosen
level of abstraction. This may lead to the discovery of unrepresentative patterns
(e.g., in Fig. 1, pattern fA; Bg in `1 is not maintained in `2) or can prevent
the discovery of patterns at other granularity levels. For example, by choosing a
too-coarse level of granularity, we lose information about fine-grained events that
are mapped into multiple high-level activities. Let us assume that activity B in
Fig. 1 corresponds to “discover process”, b2 is “discover process with heuristic
miner”, b3 is “discover process with inductive visual miner”, and b2:3, which is
mapped to both b2 and b3, is “inspect process model”. If we select `1, we cannot
observe that users always inspect the process model (b2:3) after having discovered
the process with the heuristic (b2) or inductive visual miner (b3). Similarly, we
lose information about the order of fine-grained activities, including concurrency
or interleaving. For example, we cannot detect that activities a1 (e.g., “filter by
attribute”) and a2 (e.g., “filter by variant”) are executed interchangeably in t1
and t2. Last but not least, when analyzing an event log with a fixed granularity,
it is not possible to observe patterns at diferent levels of abstraction within the
same analysis nor patterns that span multiple granularity levels. For example, if
we select `1, we cannot observe that both patterns fA; Bg and fa1; a2g occur in
t1 and t3 within the same analysis, nor can we observe patterns such as fA; b3g.</p>
      <p>
        (I3) Third, fixating the granularity of process activities during preprocessing
prevents analysts from controlling it and changing it during the analysis, e.g.,
to obtain details-on-demand [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] by showing specific parts at a fine-grained level
while keeping other less relevant parts more abstract. Some process mining
algorithms and tools allow adjusting the mined process model based on certain
metrics, but they do not allow users to play with the granularity of activities,
e.g., to explore diferent granularities based on the analysis focus.
      </p>
      <p>(I4) Also, a fixed granularity hinders the possibility of tracing and explaining
the journey from raw data to ready-to-use event logs, as the original events are
often “lost” in the abstraction phase. From interviews and conversations with
process mining users and experts, we have gathered anecdotal evidence that
analysts struggle to explain the models produced by discovery algorithms and
often need to access the raw data or re-engage in preprocessing to validate them.</p>
      <p>Relation between Problem and Existing Work
Regarding activity granularity, the process mining literature has mainly focused
on the problem of event abstraction, which has been tackled from two angles.
On the one hand, techniques capable of dealing with abstraction to produce a
refined version of the log were proposed. On the other hand, research focused on
mining algorithms embedding the abstraction directly into the mining phase.</p>
      <p>
        One of the first works in the first category addresses the issue by describing
a taxonomy of abstraction patterns [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], showing how diferent process constructs
related to abstraction might be observed and processed. Instead, one of the
most recent approaches constructs graph-based models for event data that
support the creation and analysis of event logs where events are related to multiple
activities [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Another recent approach [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] focuses on slicing and dicing event
logs where abstraction is handled via process cubes (i.e., where fluid notions
of case are possible and each dimension has a value and a granularity). Many
other techniques have been proposed, as thoroughly reviewed in [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. A result
of the literature review is that works can be characterized based on: supervision
strategy (unsupervised vs. unsupervised); interleaving of fine-grained events;
deterministic nature of the outcome; and whether additional data/perspectives are
considered. Approaches in this group focus on raising all the events in the log to
the same granularity during preprocessing and, thus, assume that a proper level
of granularity is known or discovered before the analysis (cf. C1 and C2).
      </p>
      <p>
        On the second family of approaches, one of the first works is the Fuzzy
Miner [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], which introduces the metaphor of a process model as a road map,
where relevant information is shown, whereas less significant but highly
correlated behavior is aggregated, and less significant and lowly correlated behavior
is hidden. These notions of significance and correlations are parametric (and the
user can control them) yet are based on predefined heuristics. Other approaches
focused on subsets of activities [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] to create and analyze “local models”, while
domain-specific techniques based on well-defined execution subtraces have also
been proposed, e.g., to focus on software system processes [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. A recent approach
allows to iteratively project and abstract the event log and discover a multi-level
process model starting from activity trees [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], i.e., hierarchical clusters of
activities. While these approaches allow the user to adjust the abstraction level during
the mining phase, i.e., partially addressing challenges C1 and C2 and
implications I1 and I2, they focus on reducing the complexity of the mined models based
on predefined metrics or subprocesses and do not support the interactive
exploration of activity granularities (I3), e.g., based on semantic relationships among
activity classes, nor they explicitly address traceability and explainability (I4).
4
      </p>
      <p>
        Solving the Fixed Granularity Problem: Initial Ideas
How to best tackle the introduced challenges (C1, C2) and the implications
(I1–I4) is still not clear. Currently, we are thinking about two possible directions,
envisioning a scenario where the choice of the granularity level of activities is
deferred from the traditional preprocessing phase to the analysis, where users
can explore multiple granularity levels and select the desired one interactively.
(i) A first approach could consist of changing the typical process mining
worklfow by introducing a new step in charge of preprocessing the log to be
consumed by mining algorithms. Envisioning an interactive system, we should
be able to repeat the preprocessing on-the-fly, thus allowing users to quickly
explore scenarios where activities have diferent granularity levels while
leveraging existing process mining algorithms and process modeling languages.
(ii) Another approach would comprise the construction of novel process mining
algorithms capable of mining models from event logs that allow the
speciifcation of multiple granularity levels for process activities within the same
model (e.g., along the lines of subprocesses in BPMN or activity trees [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]).
Acknowledgment. This work is part of the ProMiSE project, funded by the
Swiss National Science Foundation (SNSF) under Grant No.: 200021_197032.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Abbad</given-names>
            <surname>Andaloussi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Zerbato</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            ,
            <surname>Burattin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Slaats</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            ,
            <surname>Hildebrandt</surname>
          </string-name>
          , T.T.,
          <string-name>
            <surname>Weber</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>Exploring how users engage with hybrid process artifacts based on declarative process models: a behavioral analysis based on eye-tracking and thinkaloud</article-title>
          .
          <source>Software and Systems Modeling</source>
          (
          <year>2020</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Baier</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mendling</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Weske</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Bridging abstraction layers in process mining</article-title>
          .
          <source>Information Systems</source>
          <volume>46</volume>
          ,
          <fpage>123</fpage>
          -
          <lpage>139</lpage>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Esser</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fahland</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <article-title>: Multi-dimensional event data in graph databases</article-title>
          .
          <source>Journal on Data Semantics</source>
          (
          <year>2021</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Ghahfarokhi</surname>
            ,
            <given-names>A.F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Berti</surname>
          </string-name>
          , A.,
          <string-name>
            <surname>van der Aalst</surname>
          </string-name>
          , W.M.:
          <article-title>Process comparison using object-centric process cubes</article-title>
          .
          <source>arXiv preprint arXiv:2103.07184</source>
          (
          <year>2021</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Günther</surname>
            ,
            <given-names>C.W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Van Der Aalst</surname>
          </string-name>
          , W.M.:
          <article-title>Fuzzy mining-adaptive process simplification based on multi-perspective metrics</article-title>
          .
          <source>In: Int. Conf. on Business Process Management</source>
          . pp.
          <fpage>328</fpage>
          -
          <lpage>343</lpage>
          . Springer (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Jagadeesh</given-names>
            <surname>Chandra</surname>
          </string-name>
          <string-name>
            <surname>Bose</surname>
          </string-name>
          , R.P., van der Aalst,
          <string-name>
            <surname>W.M.P.:</surname>
          </string-name>
          <article-title>Abstractions in process mining: A taxonomy of patterns</article-title>
          .
          <source>In: BPM</source>
          . pp.
          <fpage>159</fpage>
          -
          <lpage>175</lpage>
          . Springer (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Leemans</surname>
          </string-name>
          , M.,
          <string-name>
            <surname>van der Aalst</surname>
            , W.M.P., van den Brand,
            <given-names>M.G.J.:</given-names>
          </string-name>
          <article-title>Hierarchical performance analysis for process mining</article-title>
          .
          <source>In: Int. Conf. on Software and System Process</source>
          . p.
          <fpage>96</fpage>
          -
          <lpage>105</lpage>
          . ICSSP '18,
          <string-name>
            <surname>ACM</surname>
          </string-name>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Lu</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gal</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Reijers</surname>
            ,
            <given-names>H.A.</given-names>
          </string-name>
          :
          <article-title>Discovering hierarchical processes using flexible activity trees for event abstraction</article-title>
          .
          <source>In: ICPM</source>
          . pp.
          <fpage>145</fpage>
          -
          <lpage>152</lpage>
          (
          <year>2020</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Shneiderman</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>The eyes have it: A task by data type taxonomy for information visualizations</article-title>
          .
          <source>In: IEEE Symp. on Visual Languages</source>
          . pp.
          <fpage>336</fpage>
          -
          <lpage>343</lpage>
          . IEEE (
          <year>1996</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Tax</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sidorova</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Haakma</surname>
          </string-name>
          , R., van der Aalst, W.:
          <article-title>Mining process model descriptions of daily life through event abstraction</article-title>
          .
          <source>In: Intelligent Systems and Applications</source>
          . pp.
          <fpage>83</fpage>
          -
          <lpage>104</lpage>
          . Springer (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Tax</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sidorova</surname>
          </string-name>
          , N.,
          <string-name>
            <surname>van der Aalst</surname>
            ,
            <given-names>W.M.P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Haakma</surname>
          </string-name>
          , R.:
          <article-title>Heuristic approaches for generating local process models through log projections</article-title>
          .
          <source>In: IEEE Symp. Series on Computational Intelligence (SSCI)</source>
          . pp.
          <fpage>1</fpage>
          -
          <lpage>8</lpage>
          . IEEE (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12. van Zelst,
          <string-name>
            <given-names>S.J.</given-names>
            ,
            <surname>Mannhardt</surname>
          </string-name>
          , F.,
          <string-name>
            <surname>de Leoni</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Koschmider</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Event abstraction in process mining: literature review and taxonomy</article-title>
          . Granular Computing pp.
          <fpage>1</fpage>
          -
          <lpage>18</lpage>
          (
          <year>2020</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>