<!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>PMSD: Data-Driven Simulation Using System Dynamics and Process Mining ?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Mahsa Pourbafrani</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Wil M. P. van der Aalst</string-name>
          <email>wvdaalstg@pads.rwth-aachen.de</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>What-if</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Chair of Process and Data Science, RWTH Aachen University</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Process mining extends far beyond process discovery and conformance checking, and also provides techniques for bottleneck analysis and organizational mining. However, these techniques are mostly backward-looking. PMSD is a web application tool that supports forwardlooking simulation techniques. It transforms the event data and process mining results into a simulation model which can be executed and validated. PMSD includes log transformation, time window selection, relation detection, interactive model generation, simulating and validating the models in the form of system dynamics, i.e., a technique for an aggregated simulation. The results of the modules are visualized in the tool for a better interpretation.</p>
      </abstract>
      <kwd-group>
        <kwd>Process mining</kwd>
        <kwd>Simulation</kwd>
        <kwd>System Dynamics analysis</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Process mining uses stored event data of organizations, i.e., event logs, to provide
actionable insights for organizations [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Di erent tools address process discovery,
performance analysis, bottleneck analysis, and deviation detection. Yet, the gap
between the backward-looking and the forward-looking process mining techniques
remains. Traditional forward-looking techniques as mentioned in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], use events
in the process as a basis of simulation. They aimed to mimic the process at the
level of detail and simulate it. In more recent simulation tool such as [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], di erent
level of detail for simulation is acquired, e,g., duration of activities and the ow
of activities are used. Moreover, the Monte Carlo technique is used in the pm4py
tool1 for simulating discovered Petri nets.
      </p>
      <p>In PMSD, we use the idea that a simulation model can be learned from the
event data at an aggregated level. The traditional connections between process
mining and simulation mainly use a descriptive model discovered in the
discovery step to enrich the simulation models at the level of the process instances,
e.g., Discrete Event Simulation (DES). The presented tool is the result of our</p>
      <p>Event Log</p>
      <p>Tool Scope
PreEvpernotcLeosgsing SD-Log ModeRleGlaetinoenrDaettieoNcntoion
Preparation Generation SDLog CLDModelGeneration
TimSeeleWctiniodnow ASnDa-lLyosgis SFDModelGeneration</p>
      <p>Simulation</p>
      <p>Model
Validation Yes Refinement</p>
      <p>
        Further
Prediction
approach in generating simulation results for business processes at an aggregated
level providing the option to add external factors into the simulation [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Figure 1
shows the overview of the approach starting from an event log and ending with
a scenario-based simulation model. The steps indicated in the highlighted parts
are supported by the tool. We extract possible variables from the process in
different steps of time instead of taking the events into account for the simulation
as shown in Fig. 2.
      </p>
      <p>
        The Model generation module is introduced
in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] and the preprocessing step is presented
in [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. The event log is transformed into a set
of variables over time and the values of these
variables form the System Dynamics logs
(SDLogs). To generate more stable SD-Logs, we use
time series analysis over the values. The
relations between variables over time in the
SDLog are used for creating the system dynamics
models. We support both causal loop diagrams
vvFasi.rgi.aP2bMl.eSsDT(mr.a)WdiotevioeernxattilrmaceStismtpeuoplssast(iibkol)ne. (dCynLaDm)iacsndmsotodcekls- tohwe dsiyasgtreammss
a(nSdFDt)h.eSirysrteelamtions with the environment [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. CLDs represent
these conceptual relationships and SFDs model
the underlying equations using stock, ow and
variable notations. Flows add/remove to/from the values of stocks, also,
variables a ect/get a ected by the ows, other variables. PMSD provides insights
through the processes over time which can be hidden from the user, e.g., a
nonlinear relation between the workload of resources and the speed of performing
tasks.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Description of Functionalities</title>
      <p>In our approach, the possible process variables are extracted over time, e.g.,
arrival rate per day and average service time per day. The newly generated log
(SD-Log) is the cornerstone of the simulation. The preprocessing step and
extracting the best parameters in the framework by means of time series analysis</p>
      <p>
        Visualized Validation Results
User
proposed in [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. To form a valid system dynamics model, we have to discover
all the relations, i.e., linear and nonlinear correlations, between the generated
process variables over time as introduced in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Analyzing a process and
creating aggregated features of the process over time (process variables) for further
analyses is the main focus of the tool.
      </p>
      <p>PMSD is being designed in such a way that in all the steps, the outputs are
accessible for users. Figure 3 depicts the data ow diagram of the application.
The inputs and generated outputs in each module and the interactions with the
user are shown. The generated SD-Logs including active steps in the processes as
well as all the steps for the di erent selected time windows in the form of .csv are
captured. Also, all the designed CLDs and SFDs in the .mdl format are stored
locally for the user. To run the tool locally, the home page can be accessed via
any browser using the http://127.0.0.1:5000 URL. All the modules are designed
as di erent tabs and are visually accessible. PMSD is a fully interactive tool with
a user interface based on Python and Flask technology. The results of the steps
are shown graphically to provide an easier interpretation possible. It contains
8 tabs and each tab can be run separately with di erent inputs/output of the
other modules/tabs. Currently, the following components are available:
{ Event log transformation indicates the main attributes of the event log,
discovers the directly follows graph, and presents the event log's information.
{ Time window selection assesses the quality of the user's preference for
selecting a time window for generating simulation data.
{ Simulation log generator uses the transformed event log and the selected time
window to generate simulation data (SD-Log). It generates an SD-Log for
di erent aspects and levels, i.e., general process, organizational, and activity
aspects. For instance, an SD-Log of the general aspect of a process includes
the arrival rate of the process, and average service time in the process and
other possible measurable variables per day.
{ Relation detection investigates whether there is any strong relationship
between the variables in the extracted SD-Log. Furthermore, the user can look
for the relations between variables in di erent steps of time.
{ Detailed relations, presents the existing relations between every two variables
in the SD-log for further investigation on the types of relations.
{ Interactive conceptual model generation provides the option for the user to
choose between all the strong relations discovered in the relation detection
module and creates CLD, i.e., e ects and relations between process variables.
It generates both the graphical model in the tool and the .mdl (text format)
le to be used in most of the system dynamics tools, e.g., Vensim2.
{ Interactive stock- ow diagram generates SFDs graphically in PMSD and the
(.mdl) le. The relations are directly transformed from the CLD (previous
step) and the user can map the process variables to the SFD elements.
{ Simulation and validation simulates the SFD model using the values in the
SD-Log and validates the results using the pair-wise comparison of the
SDLog and simulation results values and their distributions.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Maturity of the Tool</title>
      <p>
        The evaluation results of our proposed forward-looking approaches in process
mining are represented using di erent modules of the tool. PMSD along with a
tutorial and a screen-cast is available on GitHub.3 It has also been used in some
industrial projects, e.g., in the project of Internet of Production in the context
of Industry 4.0. In [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], part of the results of using PMSD for the production line
is presented. By an example, i.e., an event log of a call center designed by the
CPN tool, we show some similar results.
      </p>
      <p>We use di erent suggested time
windows to extract values over time
for the possible process variables
using the time window test. The result
in Fig. 4 shows the selected time
windows by the user and the errors of
trained models for each time window.</p>
      <p>Figure 5 represents the user interface
for selecting the strong detected
relations between the variables. Finally,
by uploading the generated SFD and
SD-log (both are automatically
genFig. 4. Stability test showing the error of erated), the automatic simulation is
training models for the time windows. performed and the validation results
are shown in validation module. The results include a comparison between the
real values and the simulated ones and their distributions for the selected
variables.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Conclusion</title>
      <p>In this paper, we introduced PMSD to support designing system dynamics
models for simulation in the context of business processes. Using PMSD, we look into
2 www.vensim.com
3 https://github.com/mbafrani/PMSD
PMSD
the processes at di erent aggregation levels, e.g., hourly or daily, as well as
different aspects, e.g., overall process or organizational aspects. The provided user
interface and the graphical outputs make the interpretation of the results easy.
Applying PMSD, the underlying e ects and relations at the instance level can be
detected and modeled in an aggregated manner. Besides the option to simulate
and validate the models directly in the tool, the models can be simulated or
re ned by adding external variables using simulation software like Vensim.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>van der Aalst</surname>
            ,
            <given-names>W.M.P.</given-names>
          </string-name>
          : Process Mining - Data Science in Action,
          <source>Second Edition</source>
          . Springer (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>van der Aalst</surname>
            ,
            <given-names>W.M.P.</given-names>
          </string-name>
          :
          <article-title>Process Mining and Simulation: A Match Made in Heaven</article-title>
          ! In: Computer Simulation Conference. pp.
          <volume>1</volume>
          {
          <fpage>12</fpage>
          . ACM Press (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Camargo</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dumas</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rojas</surname>
            ,
            <given-names>O.G.</given-names>
          </string-name>
          :
          <article-title>Simod: A tool for automated discovery of business process simulation models</article-title>
          .
          <source>In: Proceedings of Demonstration Track at BPM 2019</source>
          . pp.
          <volume>139</volume>
          {
          <issue>143</issue>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Pourbafrani</surname>
          </string-name>
          , M.,
          <string-name>
            <surname>van Zelst</surname>
            , S.J., van der Aalst,
            <given-names>W.M.P.</given-names>
          </string-name>
          :
          <article-title>Scenario-based prediction of business processes using system dynamics</article-title>
          .
          <source>In: On the Move to Meaningful Internet Systems: OTM 2019</source>
          Conferences - Confederated International Conferences: CoopIS, ODBASE,
          <string-name>
            <surname>C</surname>
          </string-name>
          &amp;
          <article-title>TC 2019, Rhodes</article-title>
          , Greece,
          <source>October 21-25</source>
          ,
          <year>2019</year>
          , Proceedings. pp.
          <volume>422</volume>
          {
          <issue>439</issue>
          (
          <year>2019</year>
          ). https://doi.org/10.1007/978-3-
          <fpage>030</fpage>
          -33246-4 27, https://doi.org/10.1007/978-3-
          <fpage>030</fpage>
          -33246-4 27
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Pourbafrani</surname>
          </string-name>
          , M.,
          <string-name>
            <surname>van Zelst</surname>
            , S.J., van der Aalst,
            <given-names>W.M.P.</given-names>
          </string-name>
          :
          <article-title>Semi-automated timegranularity detection for data-driven simulation using process mining and system dynamics</article-title>
          .
          <source>In: Conceptual Modeling - 39th International Conference, ER 2020</source>
          , Vienna, Austria, November 3-
          <issue>6</issue>
          ,
          <year>2020</year>
          ,
          <string-name>
            <surname>Proceedings</surname>
          </string-name>
          (
          <year>2020</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Pourbafrani</surname>
          </string-name>
          , M.,
          <string-name>
            <surname>van Zelst</surname>
            , S.J., van der Aalst,
            <given-names>W.M.P.</given-names>
          </string-name>
          :
          <article-title>Supporting automatic system dynamics model generation for simulation in the context of process mining</article-title>
          .
          <source>In: Business Information Systems - 23st International Conference, BIS</source>
          <year>2020</year>
          ,
          <string-name>
            <surname>Colorado</surname>
            <given-names>Springs</given-names>
          </string-name>
          ,USA,
          <fpage>8</fpage>
          -
          <lpage>10</lpage>
          June ,
          <year>2020</year>
          ,
          <string-name>
            <surname>Proceedings</surname>
          </string-name>
          (
          <year>2020</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Pourbafrani</surname>
          </string-name>
          , M.,
          <string-name>
            <surname>van Zelst</surname>
            , S.J., van der Aalst,
            <given-names>W.M.P.</given-names>
          </string-name>
          :
          <article-title>Supporting decisions in production line processes by combining process mining and system dynamics</article-title>
          .
          <source>In: Proceedings of the 3rd International Conference on Intelligent Human Systems Integration</source>
          . pp.
          <volume>461</volume>
          {
          <issue>467</issue>
          (
          <year>2020</year>
          ). https://doi.org/10.1007/978-3-
          <fpage>030</fpage>
          -39512-4 72
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Sterman</surname>
          </string-name>
          , J.:
          <article-title>System Dynamics: Systems Thinking and Modeling for a Complex World (</article-title>
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>