<!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>Causal Inference in ProM (Extended Abstract)</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Mahnaz Sadat Qafari, Wil M. P. van der Aalst Chair of Process and Data Science, RWTH Aachen University</institution>
          ,
          <addr-line>Aachen</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2021</year>
      </pub-date>
      <abstract>
        <p>-Process mining is widely used to turn the stored data by the information systems of companies into actionable information. Companies are not just interested in discovering their processes but also want to know how to enhance them. Thus, they are interested not just in detecting the performance and conformance problems in their processes, but also in designing specific action steps to reengineer their processes. Knowing the causal relationships among the process features is vital information that may help to improve a process. In this paper, we present a ProM plug-in that helps process owners discover the causal relationships among the features of their processes and also provide them with the possibility of foreseeing the effect of interventions on their processes. Index Terms-Process mining, Structural equation model, Process enhancement</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Process enhancement is one of the applications of
process mining which gain more and more attention from both
academic and industrial communities. Process enhancement
provides process managers and stockholders with insights on
the friction points of the process and actionable suggestions on
how to resolve each issue. Providing actionable insight towards
process reengineering requires a deep understanding of the
process, including the causal relationships among the process
features. Today, there are several robust techniques for process
monitoring and finding their friction points, but little work is
done on discovering the causal relationships. In the presented
tool, we focus on uncovering causal relationships among
process features and investigating the impact of interventions.</p>
      <p>
        The structure of the causal relationships among the process
features can be encoded and visualized using a graph which
is called the Causal Structure (CS). In a CS, each vertex is
corresponding to a process feature also the existence of a
directed edge (v1; v2) between two vertex v1 and v2 means
that the corresponding feature of v1 is a direct cause of the
corresponding feature of v2. The CS can be further used to
discover the Structural Equation Model (SEM) of the data
which is a set of equations encoding the observational and
interventional distribution of the data [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. Having CS and
the data, discovering the SEM of the features, is a statistical
estimation problem. The SEM can be used to foresee the effect
of the intervention on any of the process features. An example
of a CS is shown in Figure 1a and a possible SEM with the
same CS is shown in Figure 1b.
      </p>
      <p>Determining the CS and the SEM of a set of features
require incorporating both data-driven methods and domain</p>
      <p>
        We thank the Alexander von Humboldt (AvH) Stiftung for supporting our
research.
(a) An example of a CS with (b) A causal equation model with the
three features. same CS as the one in 1a.
Fig. 1: Suppose in a delivery process, the duration (D) and
the cost (C) of delivering items are correlated. If the CS of
these features is as in Figure 1a, where S indicates the size of
the item, then there is no causal relationship between C and
D. The correlation between C and D is explainable by their
common cause, S. This CS indicates that intervention on D
(e.g., by increasing the resources such that the delivery takes
a shorter time) does not have any effect on C.
knowledge. In this paper, we present a ProM plug-in, [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ],
that provides the process managers and stockholders with an
easy and interactive way of discovering the causal relationships
and their qualities among the process features.
      </p>
      <p>
        There exist relevant work on discovering the causal
relationships among process features. For example, in [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], the
goal is to uncover the causal equation model of the process
features at the process level. Moreover, in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], an approach
based on time series analysis is used to discover the
causeeffect relations. Also, causal reasoning in the case level has
been investigated in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
      </p>
      <p>The rest of the paper is organized as follows. In Section II
we explain the method used in the implemented plug-in. In
Section III, we mention some of the applications of the tool.
Finally, in IV, we depart with the conclusion.</p>
    </sec>
    <sec id="sec-2">
      <title>II. METHOD</title>
      <p>The inputs of our plug-in are the event log of the process,
the process model, and the conformance checking results of
replaying the given event log on the given model. An overview
of our approach is shown in Figure 2.</p>
      <p>As a preprocessing step, we enrich the event log by adding
several derived attributes; e.g. conformance diagnostics. Then
the user determines the target and the descriptive features. A
tabular data is extracted from the enriched event log such that
all the data related to each occurrence of the target feature
are gathered from the part of the trace that happens before.
In this plug-in, we focus on three types of target features,
which we call them situations: 1) choice situation, e.g., which
factors influence the decision made in a choice place, 2) trace
situation, e.g., why deviations happen in some cases, and
3) event situation, e.g., what causes the bottleneck in an event.</p>
      <p>Fig. 2: The general overview of the implemented causal
inference method.</p>
      <p>
        In the next step, the user who possesses the domain
knowledge can provide the CS of the process features in the form
of a directed acyclic graph. However, usually, the process
owner does not have such knowledge, so we use a causal
structure learning algorithm, also called search algorithm, to
uncover the CS in a data-driven manner. The input of a search
algorithm is a data table (and possibly domain knowledge) and
its output is a partial ancestral graph which is a graphical
object that encodes the set of CSs that have been statistically
supported by the data. A partial ancestral graph generated by
our plug-in for the data extracted from a real event log is
shown in Figure 3. This graph reveals valuable information
about the possible causal relationships in the process and
can be used as initial insight into the CS of the features.
The user modifies this graph further by editing the graph or
adding domain knowledge to the search algorithm and turn
this graph into the CS of the process features. In this plug-in,
we assume the linear dependencies. Also, we used the Tetrad,
[
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], implementation of greedy fast causal inference algorithm,
[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], as the search algorithm. The final step involves estimating
the strength of the causal relationships in the CS which results
in the SEM of the data. The output of this approach can be
used to predict the effect of an intervention on the process
features which is crucial for process enhancement planning.
      </p>
    </sec>
    <sec id="sec-3">
      <title>III. MATURITY OF THE TOOL</title>
      <p>
        The implemented plug-in is available in the nightly build
of ProM under the name root-cause analysis using structural
equation model. Also, the source code of our tool1 and
a video tutorial2 are publicly available. The tool has been
used in multiple academic projects to discover the causal
relationships among the process features. For example, to
generate the experimental results of [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] and [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], this
plugin has been used on several synthetic and real event logs.
Moreover, for providing case-level counterfactual explanations
using the method proposed in [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], this plug-in has been used
as a preprocessing step to discover the causal equation model
of the features extracted from an event log. The results of these
papers show the validity of the proposed method.
1https://svn.win.tue.nl/repos/prom/Packages/CausalityInference
2https://youtu.be/jcBqExtJRO8
Fig. 3: In the above partial ancestral graph, “trace delay” is the
target and the corresponding features of the yellow vertices are
the descriptive features. This graph shows the existence of four
statistically supported causal relationships among the features.
If we use the CS in which the “resource of confirmation of
receipt” is the cause of other features, and do the estimation, in
the resulting SEM we can see that the intervention “resource
of confirmation of receipt = resource23” results in “delay”
with probability 0.29 and “on-time” with probability 0.71.
      </p>
    </sec>
    <sec id="sec-4">
      <title>IV. CONCLUSION</title>
      <p>The structure of the causal relationship among process
features provides indispensable information for process
enhancement. The CS can further be used to discover the causal
equation model of the process features which provides the user
the possibility of investigating the effect of interventions on
the process in a data-driven manner.</p>
      <p>In this paper, we have introduced a plug-in in ProM, which
provides the user a simple yet sophisticated interactive method
to discover not just the CS, but also the SEM of the process
features.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Z. D.</given-names>
            <surname>Bozorgi</surname>
          </string-name>
          , I. Teinemaa,
          <string-name>
            <given-names>M.</given-names>
            <surname>Dumas</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.</surname>
          </string-name>
          <article-title>La Rosa, and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Polyvyanyy</surname>
          </string-name>
          .
          <article-title>Process mining meets causal machine learning: Discovering causal rules from event logs</article-title>
          .
          <source>In 2020 2nd International Conference on Process Mining (ICPM)</source>
          , pages
          <fpage>129</fpage>
          -
          <lpage>136</lpage>
          . IEEE,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>B. F.</given-names>
            <surname>Hompes</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Maaradji</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. La</given-names>
            <surname>Rosa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Dumas</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. C.</given-names>
            <surname>Buijs</surname>
          </string-name>
          , and W. M. van der Aalst.
          <article-title>Discovering causal factors explaining business process performance variation</article-title>
          .
          <source>In International Conference on Advanced Information Systems Engineering</source>
          , pages
          <fpage>177</fpage>
          -
          <lpage>192</lpage>
          . Springer,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>T.</given-names>
            <surname>Narendra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Agarwal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Gupta</surname>
          </string-name>
          , and
          <string-name>
            <given-names>S.</given-names>
            <surname>Dechu</surname>
          </string-name>
          .
          <article-title>Counterfactual reasoning for process optimization using structural causal models</article-title>
          .
          <source>In Proceedings of Business Process Management Forum</source>
          , volume
          <volume>360</volume>
          , pages
          <fpage>91</fpage>
          -
          <lpage>106</lpage>
          . Springer,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>J. M.</given-names>
            <surname>Ogarrio</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Spirtes</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J.</given-names>
            <surname>Ramsey</surname>
          </string-name>
          .
          <article-title>A hybrid causal search algorithm for latent variable models</article-title>
          .
          <source>In Proceedings of Probabilistic Graphical</source>
          Models - Eighth International Conference, pages
          <fpage>368</fpage>
          -
          <lpage>379</lpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>J.</given-names>
            <surname>Pearl</surname>
          </string-name>
          . Causality. Cambridge university press,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>M. S.</given-names>
            <surname>Qafari</surname>
          </string-name>
          and W. van der Aalst.
          <article-title>Root cause analysis in process mining using structural equation models</article-title>
          .
          <source>In International Conference on Business Process Management</source>
          , pages
          <fpage>155</fpage>
          -
          <lpage>167</lpage>
          . Springer,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>M. S.</given-names>
            <surname>Qafari</surname>
          </string-name>
          and W. van der Aalst.
          <article-title>Feature recommendation for structural equation model discovery in process mining</article-title>
          ,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>M. S.</given-names>
            <surname>Qafari</surname>
          </string-name>
          and
          <string-name>
            <given-names>W. M. van der</given-names>
            <surname>Aalst</surname>
          </string-name>
          .
          <article-title>Case level counterfactual reasoning in process mining</article-title>
          .
          <source>In International Conference on Advanced Information Systems Engineering</source>
          , pages
          <fpage>55</fpage>
          -
          <lpage>63</lpage>
          . Springer,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>R.</given-names>
            <surname>Scheines</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Spirtes</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Glymour</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Meek</surname>
          </string-name>
          , and
          <string-name>
            <given-names>T.</given-names>
            <surname>Richardson</surname>
          </string-name>
          .
          <article-title>The tetrad project: Constraint based aids to causal model specification</article-title>
          .
          <source>Multivariate Behavioral Research</source>
          ,
          <volume>33</volume>
          (
          <issue>1</issue>
          ):
          <fpage>65</fpage>
          -
          <lpage>117</lpage>
          ,
          <year>1998</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>H.</given-names>
            <surname>Verbeek</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Buijs</surname>
          </string-name>
          ,
          <string-name>
            <surname>B. Van Dongen</surname>
          </string-name>
          , and
          <string-name>
            <surname>W. M. van der Aalst.</surname>
          </string-name>
          <article-title>Prom 6: The process mining toolkit</article-title>
          .
          <source>Proc. of BPM Demonstration Track</source>
          ,
          <volume>615</volume>
          :
          <fpage>34</fpage>
          -
          <lpage>39</lpage>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>