<!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>Fig4PM: A Library for Calculating Event Log Measures (Extended Abstract)</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Fareed Zandkarimi</string-name>
          <email>zandkarimi@uni-mannheim.de</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Peter Decker</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jana-Rebecca Rehse</string-name>
          <email>rehse@uni-mannheim.de</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>University of Mannheim</institution>
          ,
          <addr-line>Mannheim</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2021</year>
      </pub-date>
      <abstract>
        <p>-Calculating event log measures (also known as features, metrics, and characteristics) is a common task required by many process mining applications. Process mining research studies and industrial applications often need to generate measures depending on their requirements. This has resulted in a plethora of event log measures being (re-)invented and (re-)implemented on different platforms. Fig4PM is an attempt toward building a standard, comprehensive, and reusable library for calculating event log measures. The current version of this open-source program offers 73 distinct control-flow measures either directly extracted from the literature (48 measures) or derived from the existing measures (25 measures). Eventually, our objective is to build a standard public Python library to facilitate feature generation in process mining applications.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>I. INTRODUCTION</title>
      <p>
        Process mining projects typically start with extracting data
from a process-aware information system and transforming
them into an event log [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. These event logs serve as input
for virtually all process mining applications. In order to
characterize the event logs and assess the specific differences
(and similarities) among the traces, process analysts often
employ event log measures, i.e., , “numeric representations of
raw data” [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. These measures can provide a priori insights
about a log, which can then be used to draw conclusions
about their properties. Typically, a measure is calculated at
trace level and then aggregated to represent the event log
characteristics. For example, calculating the length of each
trace helps building the average trace length at event log level.
      </p>
      <p>
        A wide range of process mining applications utilize such
measures. We conducted a literature review to collect the
studies that considered implementing new measures based on
an event log’s control-flow and found 21 scientific papers1
ranging from 2001 to 2020. Interestingly, we noticed a certain
level of overlap among these studies, i.e., different studies do
not refer to fully-distinct and exclusive measures. According to
the results of our literature review, many approaches require
implementing measures, including (but not limited to) data
preprocessing [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], data quality [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], predictive process mining
[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], approaches that use deep learning techniques [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], business
process simulation [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], process complexity analysis [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], and
trace clustering [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
      </p>
      <p>To avoid the repeated (re-)invention and (re-)implemented
of the same event log measures on different platforms, we
1Material is available at https://doi.org/10.6084/m9.figshare.14912313.v2.
introduce the Fig4PM library.2 It provides researchers and
practitioners with a basic library to access previously
implemented event log measures and is specifically set out to
be a starting point for ongoing development efforts.
Prospective users may contribute to this project by developing new
measures, improving the existing functions, add more data
connectors, and improve its overall performance3.</p>
      <p>
        In Fig4PM, we distinguish two types of measures based on
the underlying data structure. Linear measures perceive a trace
as an array, matrix, or sequence of letters (a string), whereas
non-linear measures perceive a trace as a directed graph, i.e.,
nodes represent activities while sequences determine edges [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
A. Measures Derived From Linear Structures
      </p>
    </sec>
    <sec id="sec-2">
      <title>2Code is available at https://github.com/f-zand/fig4pm.</title>
    </sec>
    <sec id="sec-3">
      <title>3Demo video available at https://bit.ly/3iTt5MR.</title>
      <p>Abbreviation
ne
nec
nt
ntc
atl
mitl
matl
ats
nsec
ntec
ntsl
ntr
rnsec
rntec
rntsl
rntr
anslt
manslt
asslt
masslt
tcpht
tco
rtco
edn
thr
tsr
cf
std
atd
tentr
prentr
abentr</p>
      <sec id="sec-3-1">
        <title>Total number of events [10]–[12]</title>
      </sec>
      <sec id="sec-3-2">
        <title>Total number of event classes [10]–[12]</title>
      </sec>
      <sec id="sec-3-3">
        <title>Total number of traces [10]–[12]</title>
      </sec>
      <sec id="sec-3-4">
        <title>Total number of trace classes [10], [11]</title>
      </sec>
      <sec id="sec-3-5">
        <title>Average trace length [13], [14]</title>
      </sec>
      <sec id="sec-3-6">
        <title>Minimum trace length [13], [14]</title>
      </sec>
      <sec id="sec-3-7">
        <title>Maximum trace length [13], [14]</title>
        <p>
          Avg. trace size (level of detail) [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ], [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ], [
          <xref ref-type="bibr" rid="ref15">15</xref>
          ]
        </p>
      </sec>
      <sec id="sec-3-8">
        <title>Number of distinct start events [10], [13]</title>
      </sec>
      <sec id="sec-3-9">
        <title>Number of distinct end events [10], [13]</title>
      </sec>
      <sec id="sec-3-10">
        <title>Abs. # traces with a self-loop [13]</title>
      </sec>
      <sec id="sec-3-11">
        <title>Abs. # traces with a repetition [13]</title>
      </sec>
      <sec id="sec-3-12">
        <title>Rel.# distinct start events [13]</title>
      </sec>
      <sec id="sec-3-13">
        <title>Rel. # distinct end events [13]</title>
      </sec>
      <sec id="sec-3-14">
        <title>Rel. # traces with a self-loop [13]</title>
      </sec>
      <sec id="sec-3-15">
        <title>Rel. # traces with a repetition [13]</title>
      </sec>
      <sec id="sec-3-16">
        <title>Avg. # self-loops per trace [13]</title>
      </sec>
      <sec id="sec-3-17">
        <title>Max. # self-loops per trace [13]</title>
      </sec>
      <sec id="sec-3-18">
        <title>Avg. size of self-loops per trace [13]</title>
      </sec>
      <sec id="sec-3-19">
        <title>Max. size of self-loops per trace [13]</title>
        <p>
          # distinct traces per hundred traces [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ]
        </p>
      </sec>
      <sec id="sec-3-20">
        <title>Absolute trace coverage [13]</title>
      </sec>
      <sec id="sec-3-21">
        <title>Relative trace coverage [13]</title>
        <p>
          Event density [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ], [
          <xref ref-type="bibr" rid="ref15">15</xref>
          ]
        </p>
      </sec>
      <sec id="sec-3-22">
        <title>Traces heterogeneity rate [11]</title>
      </sec>
      <sec id="sec-3-23">
        <title>Trace similarity rate [11]</title>
      </sec>
      <sec id="sec-3-24">
        <title>Complexity factor [11]</title>
      </sec>
      <sec id="sec-3-25">
        <title>Simple trace diversity [15]</title>
      </sec>
      <sec id="sec-3-26">
        <title>Advanced trace diversity [15]</title>
      </sec>
      <sec id="sec-3-27">
        <title>Trace entropy [16]</title>
      </sec>
      <sec id="sec-3-28">
        <title>Prefix entropy [16]</title>
      </sec>
      <sec id="sec-3-29">
        <title>All-block entropy [16]</title>
        <p>B. Measures Derived From Non-Linear Structure</p>
        <p>Table II lists the literature-based measures derived from
non-linear structures. In comparison to the linear measures,
their number is rather limited. Many measures from the
literature require post-discovery knowledge which is out of
scope for this study. The remaining measures mainly focus on
the directly-follows-graph (DFG) of the event log, quantifying
the relationship between its nodes N and edges A.</p>
        <p>TABLE II</p>
      </sec>
      <sec id="sec-3-30">
        <title>LITERATURE-BASED MEASURES - NON-LINEAR STRUCTURE</title>
        <sec id="sec-3-30-1">
          <title>Abbreviation</title>
          <p>N</p>
          <p>A
gcnc
gand
gmnd
gdn
gst
gcn
gdm
gcv
gsepr
gseqr
gcy
gaf
gspc</p>
        </sec>
        <sec id="sec-3-30-2">
          <title>Measure</title>
        </sec>
      </sec>
      <sec id="sec-3-31">
        <title>Number of nodes / vertices</title>
      </sec>
      <sec id="sec-3-32">
        <title>Number of arcs / edges</title>
      </sec>
      <sec id="sec-3-33">
        <title>Coefficient of network connectivity [17], [18]</title>
      </sec>
      <sec id="sec-3-34">
        <title>Average node degree [17]</title>
      </sec>
      <sec id="sec-3-35">
        <title>Maximum node degree [17]</title>
      </sec>
      <sec id="sec-3-36">
        <title>Density [17]</title>
      </sec>
      <sec id="sec-3-37">
        <title>Structure [12]</title>
      </sec>
      <sec id="sec-3-38">
        <title>Cyclomatic number [18]</title>
      </sec>
      <sec id="sec-3-39">
        <title>Graph diameter [17]</title>
      </sec>
      <sec id="sec-3-40">
        <title>Number of cut vertices [14]</title>
      </sec>
      <sec id="sec-3-41">
        <title>Separability ratio [17]</title>
      </sec>
      <sec id="sec-3-42">
        <title>Sequentiality ratio [17]</title>
      </sec>
      <sec id="sec-3-43">
        <title>Cyclicity [17]</title>
      </sec>
      <sec id="sec-3-44">
        <title>Affinity [12]</title>
      </sec>
      <sec id="sec-3-45">
        <title>Simple path complexity [19]</title>
        <p>Inspired by the initial set of measures, we created 25
new measures to improve comprehensiveness and cover more
topics. Linear structure includes measures focusing on
frequency, connectedness, trace length, trace profile, and spatial
proximity. Non-linear structure measures include measures
based on modularity, cut-vertices, and activity labeling. In the
additional material to this work, we provide a summary of the
literature review and a list of all measures plus their respective
formulas.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>W. van der Aalst</surname>
          </string-name>
          , “
          <article-title>Process-aware information systems: Lessons to be learned from process mining,” in Transactions on Petri Nets and Other Models of Concurrency II</article-title>
          . Springer,
          <year>2009</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>26</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>A.</given-names>
            <surname>Zheng</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Casari</surname>
          </string-name>
          ,
          <article-title>Feature engineering for machine learning: principles and techniques for data scientists</article-title>
          .
          <source>O'Reilly Media</source>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>M.</given-names>
            <surname>Fani Sani</surname>
          </string-name>
          ,
          <string-name>
            <surname>S. van Zelst</surname>
          </string-name>
          , and W. van der Aalst, “
          <article-title>Repairing outlier behaviour in event logs using contextual behaviour,” Enterprise Modelling and Information Systems Architectures</article-title>
          , vol.
          <volume>14</volume>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>S.</given-names>
            <surname>Suriadi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Andrews</surname>
          </string-name>
          ,
          <string-name>
            <surname>A. H.</surname>
          </string-name>
          <article-title>ter</article-title>
          <string-name>
            <surname>Hofstede</surname>
          </string-name>
          , and M. T. Wynn, “
          <article-title>Event log imperfection patterns for process mining: Towards a systematic approach to cleaning event logs,” Information systems</article-title>
          , vol.
          <volume>64</volume>
          , pp.
          <fpage>132</fpage>
          -
          <lpage>150</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>A. E.</given-names>
            <surname>Ma</surname>
          </string-name>
          <article-title>´rquez-</article-title>
          <string-name>
            <surname>Chamorro</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Resinas</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <surname>A.</surname>
          </string-name>
          <article-title>Ruiz-Corte´s, “Predictive monitoring of business processes: a survey</article-title>
          ,
          <source>” IEEE Transactions on Services Computing</source>
          , vol.
          <volume>11</volume>
          , no.
          <issue>6</issue>
          , pp.
          <fpage>962</fpage>
          -
          <lpage>977</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>F.</given-names>
            <surname>Taymouri</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. La</given-names>
            <surname>Rosa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Erfani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z. D.</given-names>
            <surname>Bozorgi</surname>
          </string-name>
          ,
          <string-name>
            <surname>and I. Verenich</surname>
          </string-name>
          , “
          <article-title>Predictive business process monitoring via generative adversarial nets: The case of next event prediction</article-title>
          ,” in International Conference on Business Process Management. Springer,
          <year>2020</year>
          , pp.
          <fpage>237</fpage>
          -
          <lpage>256</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>N.</given-names>
            <surname>Martin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Depaire</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Caris</surname>
          </string-name>
          , “
          <article-title>The use of process mining in business process simulation model construction,”</article-title>
          <source>Business &amp; Information Systems Engineering</source>
          , vol.
          <volume>58</volume>
          , no.
          <issue>1</issue>
          , pp.
          <fpage>73</fpage>
          -
          <lpage>87</lpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>A.</given-names>
            <surname>Augusto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Mendling</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Vidgof</surname>
          </string-name>
          , and
          <string-name>
            <given-names>B.</given-names>
            <surname>Wurm</surname>
          </string-name>
          , “
          <article-title>The connection between process complexity of event sequences and models discovered by process mining</article-title>
          ,
          <source>” arXiv preprint arXiv:2106.07990</source>
          ,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>F.</given-names>
            <surname>Zandkarimi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.-R.</given-names>
            <surname>Rehse</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Soudmand</surname>
          </string-name>
          , and
          <string-name>
            <given-names>H.</given-names>
            <surname>Hoehle</surname>
          </string-name>
          , “
          <article-title>A generic framework for trace clustering in process mining,” in 2020 2nd International Conference on Process Mining (ICPM)</article-title>
          . IEEE,
          <year>2020</year>
          , pp.
          <fpage>177</fpage>
          -
          <lpage>184</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>J.</given-names>
            <surname>Ribeiro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Carmona</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Misir</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Sebag</surname>
          </string-name>
          , “
          <article-title>A recommender system for process discovery</article-title>
          ,” in Business Process Management. Springer,
          <year>2014</year>
          , pp.
          <fpage>67</fpage>
          -
          <lpage>83</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>M.</given-names>
            <surname>Kherbouche</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Laga</surname>
          </string-name>
          , and
          <string-name>
            <given-names>P.</given-names>
            <surname>Masse</surname>
          </string-name>
          , “
          <article-title>Towards a better assessment of event logs quality</article-title>
          ,
          <source>” in Symposium Series on Computational Intelligence. IEEE</source>
          , 2
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>C.</surname>
          </string-name>
          <article-title>Gu¨nther, “Process mining in flexible environments</article-title>
          ,
          <source>” Ph.D. dissertation</source>
          , Eindhoven University of Technology,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>M.</given-names>
            <surname>Swennen</surname>
          </string-name>
          , G. Janssenswillen,
          <string-name>
            <given-names>M.</given-names>
            <surname>Jans</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Depaire</surname>
          </string-name>
          , and
          <string-name>
            <given-names>K.</given-names>
            <surname>Vanhoof</surname>
          </string-name>
          , “
          <article-title>Capturing Process Behavior with Log-Based Process Metrics</article-title>
          ,” in SIMPDA,
          <year>2015</year>
          , pp.
          <fpage>141</fpage>
          -
          <lpage>144</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>S.</given-names>
            <surname>Van den Broucke</surname>
          </string-name>
          , C. Delvaux,
          <string-name>
            <given-names>J.</given-names>
            <surname>Freitas</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Rogova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Vanthienen</surname>
          </string-name>
          , and
          <string-name>
            <given-names>B.</given-names>
            <surname>Baesens</surname>
          </string-name>
          , “
          <article-title>Uncovering the relationship between event log characteristics and process discovery techniques,” in Business Process Management</article-title>
          . Springer,
          <year>2014</year>
          , pp.
          <fpage>41</fpage>
          -
          <lpage>53</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>M.</given-names>
            <surname>Benner-Wickner</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Book</surname>
          </string-name>
          , T. Bru¨ckmann, and
          <string-name>
            <given-names>V.</given-names>
            <surname>Gruhn</surname>
          </string-name>
          , “
          <article-title>Examining case management demand using event log complexity metrics,” in 18th International Enterprise Distributed Object Computing Conference Workshops and Demonstrations</article-title>
          . IEEE,
          <year>2014</year>
          , pp.
          <fpage>108</fpage>
          -
          <lpage>115</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>C.</given-names>
            <surname>Back</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Debois</surname>
          </string-name>
          , and T. Slaats, “
          <article-title>Towards an entropy-based analysis of log variability</article-title>
          ,
          <source>” in Business Process Management Workshop</source>
          , vol.
          <volume>308</volume>
          . Springer,
          <year>2018</year>
          , pp.
          <fpage>53</fpage>
          -
          <lpage>70</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>J.</given-names>
            <surname>Mendling</surname>
          </string-name>
          , “
          <article-title>Detection and Prediction of Errors in EPC Business Process Models,”</article-title>
          <source>Ph.D. dissertation</source>
          , Vienna University of Business Administration,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>A.</given-names>
            <surname>Latva-Koivisto</surname>
          </string-name>
          , “
          <article-title>Finding a Complexity Measure for Business Process Models</article-title>
          ,” Helsinki University of Technology,
          <source>Tech. Rep.</source>
          ,
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>B.</given-names>
            <surname>Pentland</surname>
          </string-name>
          , P. Liu,
          <string-name>
            <given-names>W.</given-names>
            <surname>Kremser</surname>
          </string-name>
          , and T. Haerem, “The Dynamics of Drift in Digitized Processes,
          <source>” MIS Quarterly</source>
          , vol.
          <volume>44</volume>
          , no.
          <issue>1</issue>
          , pp.
          <fpage>19</fpage>
          -
          <issue>47</issue>
          , 1
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>