<!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>Process Analytics Workbench (PAW)</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Weixin</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Amann</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Martin</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Matzner</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Patrick</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Delfmann</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>tools</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Friedrich-Alexander-Universität Erlangen-Nürnberg</institution>
          ,
          <addr-line>Fürther Straße 248, 90429 Nürnberg</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>PAW 1.0 Apache 2.0 Python</institution>
          ,
          <addr-line>Java, Pytorch, PM4Py</addr-line>
          ,
          <institution>Camunda Microsoft Windows, GNU/Linux https://uni-ko.de/paw https://uni-ko.de/paw-docs https://uni-ko.de/paw-repo https://uni-ko.de/paw-demo</institution>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Universität Koblenz</institution>
          ,
          <addr-line>Universitätsstr. 1, 56072 Koblenz</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2024</year>
      </pub-date>
      <fpage>14</fpage>
      <lpage>18</lpage>
      <abstract>
        <p>The Process Analytics Workbench (PAW) is a comprehensive tool to streamline Predictive Process Monitoring (PPM) activities. It integrates functionalities like synthetic event log generation, model training, and prediction evaluation within a micro-service architecture, enabling agile and eficient experimentation.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Predictive Process Monitoring</kwd>
        <kwd>Process model</kwd>
        <kwd>Simulation</kwd>
        <kwd>Event log</kwd>
        <kwd>Rapid experimentation</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Value</p>
    </sec>
    <sec id="sec-2">
      <title>1. Introduction</title>
      <p>
        Predictive Process Monitoring (PPM) is a subcategory of process mining that is concerned
with the prediction of the future state of process instances, which are currently being executed.
Common predictions are, for example, the next events or the duration till the process is
completed. PPM tools usually rely on Machine Learning (ML) algorithms trained on event log data
[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Several diferent tools have been developed in the past. However, none of them provide
complete and comprehensive support for all PPM-related activities.
      </p>
      <p>Our goal is to provide a tool that supports all major aspects of PPM. We therefore propose
the Process Analytics Workbench (PAW), which supports all the main PPM functionalities out
of the box and can easily be extended to meet the specific application requirement. Through
components including the model training, predictions and synthetic log generation, experiments
can be quickly set up and conducted with little efort.</p>
    </sec>
    <sec id="sec-3">
      <title>2. Tool Description</title>
      <p>PAW consists of a collection of micro-services, each fulfilling a single purpose. This design
approach is central to the tool, providing many advantages for end users. Users can determine
the modules which are relevant to their application and run the corresponding micro-services.
This approach optimizes time and resource utilization while maintaining minimal complexity
in the PPM environment. Figure 1 shows an overview of the currently available modules.</p>
      <p>Process</p>
      <p>Model
Generator</p>
      <p>Simulator</p>
      <p>Connector</p>
      <p>Trainer</p>
      <p>Predictor</p>
      <p>The currently available micro-service modules can be broadly categorized into three major
groups, namely the process model generation and simulation, the data connector, and the training
and prediction module.</p>
      <sec id="sec-3-1">
        <title>2.1. Process Model Generation and Simulation</title>
        <p>The process model generation and simulation module allows users to quickly and easily create
batches of diferent process models and simulate the respective event logs. It provides vast
configurability to support a large number of experimental purposes.</p>
        <p>
          We developed the process model generator based on an algorithm proposed by F. Bezerra et
al.[
          <xref ref-type="bibr" rid="ref2">2</xref>
          ]. This algorithm addresses the generation of models using a divide and conquer strategy,
recursively applying the algorithm to each divided segment of the model until it reaches the
three atomic components of all models, e.g., tasks, parallel gateways, and exclusive gateways.
We selected BPMN1 as the format for the generated process models because of its widespread
acceptance and readability.
        </p>
        <p>
          The process model simulation is realized by integrating the agent-based workflow simulator
proposed by Amann and Delfmann [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ]. Combined with the process model generator, this allows
for the straightforward and configurable generation of any number of synthetic event logs.
Through this, predictive models’ performance can be evaluated using specific types of BPMN
diagrams and event logs.
        </p>
        <p>To enhance reproducibility, random seeds used for stochastic functions in the process model
generation and event log simulation modules can be set with presets, enabling researchers to
replicate experiments without additional efort.</p>
      </sec>
      <sec id="sec-3-2">
        <title>2.2. Data Connector</title>
        <p>The data connector provides all process data to the trainer and predictor. It takes raw process
data from a source and transforms it into a standardized format that the trainer and predictor
can use. The current data connector is developed to extract event log data from the Camunda
8 workflow management system. This makes the integration into an environment running
on Camunda 8 efortless. The main idea behind the connector is to provide a single piece
of software for the provision of process data.For other use cases, a modified version of the
connector could be developed to connect to a diferent workflow management system.</p>
      </sec>
      <sec id="sec-3-3">
        <title>2.3. Model Training and Prediction</title>
        <p>
          The training and prediction modules constitute the core components of PAW, facilitating the
training of predictive models and the prediction of attributes for ongoing process instances. Data
preprocessing described in [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ] and result evaluation, respectively positioned before the model
training phase and after the prediction phase, enable the modules to fulfill the complete machine
learning pipeline. These stages ensure that the input data is optimally prepared for training
and that the predictive outcomes are rigorously assessed, enhancing the overall efectiveness of
the pipeline. At present, Long Short-Term Memory (LSTM) networks [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ] implemented with
PyTorch [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ] and Extreme Gradient Boosting (XGBoost) [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ] are implemented as the primary
predictive models; However, the program interfaces provided by our architecture facilitate the
seamless integration of additional artifacts from other researches within the community.
        </p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>3. Case Study</title>
      <p>To demonstrate PAW’s potential application scenarios, we conducted a preliminary experiment
evaluating the correlation between the control flow complexity (CFC) of a process model and
the performance of a predictive model trained using event logs simulated based on this process
model.</p>
      <sec id="sec-4-1">
        <title>3.1. Experiment Design</title>
        <p>
          Cardoso [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] classified and defined four distinct dimensions of complexity measures for business
processes:
1. Control flow complexity: structure characteristics such as splits, joins, and loops.
2. Activity complexity: number of total activities.
3. Data flow complexity: interfaces and information flow within the process.
        </p>
        <p>4. Resource complexity: resources required to execute the activities and the process.
First, we randomly generated 25 process models, each containing a fixed number of 10 tasks. No
data dependencies or information flows were assigned to these process models. The predictive
task was set as the next activity prediction, ensuring that activity, data flow, and resource
complexities were excluded, leaving only CFC to influence the ground truth for prediction. The
25 process models were categorized into five groups based on their control flow complexity,
with values of 1, 3, 5, 7, and 9. Event logs with 200 cases each were simulated from the process
models with same simulation parameters.</p>
        <p>In the subsequent phase, XGBoost models with identical hyperparameters were trained
and evaluated with the simulated event logs, employing a split ratio of 64:16:20 for training,
validation, and testing.</p>
      </sec>
      <sec id="sec-4-2">
        <title>3.2. Result Analysis</title>
        <p>We conducted experiments on five groups, each comprising five process models, and consolidated
the results into mean and standard deviation values, reflecting the distribution of the results in
each group.</p>
        <p>Model CFC</p>
        <p>Based on the provided results, a general observation can be made that as the process model
CFC increases, the predictive model’s performance tends to decline in terms of precision, recall,
and F1 score. However, an exception to this trend is observed between the CFC values of 5 and
7. This deviation suggests that the relationship between control-flow complexity and predictive
performance may not be strictly linear, and other factors might influence the results.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>4. Evaluation</title>
      <p>
        During the literature review, we could not identify publicly available BPMN generators with
comprehensive documentation besides PLG2[
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. Multiple publications adopted it as the
generation tool to generate artificial event logs. The limitations of PLG2 render it unsuitable for
our implementation, as the experimental workflow necessitates precise control over generation
parameters, including the exact numbers of tasks and gateways in the generated process model.
Similar to our case study, PLG2 was employed to generate synthetic event logs in a study on the
relations between event log characteristics and optimal machine learning algorithms [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. Our
case study demonstrated how PAW is designed and specialized to streamline such experimental
workflow compared to the existing tools such as PLG2.
      </p>
      <p>We also identified other popular and publicly available BPMN model simulators, namely
BIMP2 and Apromore3, and compared them to our tool. Table 2 provides an overview of the
main diferences. The major distinction between our BPMN simulator and others lies in the basic
approach of the simulation engine. While the established simulators rely on the propagation of
simulated tokens through the process model, our approach simulates the whole environment
in which the process runs. This provides many more configuration options and allows for a
high complexity in the simulation. For example, while the established simulators select a path
after an XOR gateway by defining fixed probabilities for each path, our approach handles the
selection based on the values of variables in the simulated environment. This allows for very
high flexibility and simulates dynamic scenarios, including concept drift. However, because of
the added complexity, our simulation approach takes several minutes, while the established
simulators usually finish in several seconds.</p>
      <p>Simulation Approach
Simulation Complexity</p>
      <p>Simulation Time</p>
      <p>BIMP
Token-Based</p>
      <p>Low
Fast</p>
      <p>Apromore
Token-Based</p>
      <p>Low
Fast</p>
      <p>PAW
Agent-Based</p>
      <p>High
Slow</p>
      <p>No comparable applications within the Business Process Monitoring (BPM) domain have been
identified that simplify and automate the machine learning pipeline for PPM. As demonstrated
in the case study, our tool enables rapid experiment execution, produces statistically robust
results, and efectively addresses randomness issues in experimental design.</p>
    </sec>
    <sec id="sec-6">
      <title>5. Conclusion</title>
      <p>PAW provides a comprehensive solution for PPM activities. It supports many diferent
application scenarios, from industry utilization to research. The micro-service architecture provides
plenty of opportunities for customization and future expansions. Our case study showed how
PAW can facilitate and support experiments in the PPM domain.</p>
      <p>However, this work only represents the initial development iteration of the tool and does
not constitute a final and complete state of the software. Currently, its complex installation
process is not friendly for users without solid computer and programming knowledge. Also,
the current user interface does not allow for the control of all aspects of the tool. We plan to
address these shortcomings with the upcoming releases. We also plan to expand the existing
platform further to include additional features in the form of new micro-service modules, such
as hyperparameter optimization and data clustering.
2https://bimp.cs.ut.ee/
3https://apromore.com/
This research is funded by the Deutsche Forschungsgemeinschaft (DFG, German Research
Foundation) – 456415646, 432399058.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>C.</given-names>
            <surname>Di Francescomarino</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Ghidini</surname>
          </string-name>
          ,
          <article-title>Predictive process monitoring</article-title>
          ,
          <source>in: Process Mining Handbook</source>
          , Springer International Publishing Cham,
          <year>2022</year>
          , pp.
          <fpage>320</fpage>
          -
          <lpage>346</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>F.</given-names>
            <surname>Bezerra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Wainer</surname>
          </string-name>
          ,
          <article-title>Algorithms for anomaly detection of traces in logs of process aware information systems</article-title>
          ,
          <source>Information Systems</source>
          <volume>38</volume>
          (
          <year>2013</year>
          )
          <fpage>33</fpage>
          -
          <lpage>44</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>E.</given-names>
            <surname>Amann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Delfmann</surname>
          </string-name>
          ,
          <article-title>An agent-based workflow simulator</article-title>
          ,
          <source>Proceedings of the Best BPM Dissertation Award</source>
          , Doctoral Consortium, and
          <article-title>Demonstrations Resources Forum co-located with 22nd International Conference on Business Process Management (BPM</article-title>
          <year>2024</year>
          )
          <article-title>(</article-title>
          <year>2024</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>I.</given-names>
            <surname>Teinemaa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Dumas</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. L.</given-names>
            <surname>Rosa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F. M.</given-names>
            <surname>Maggi</surname>
          </string-name>
          ,
          <string-name>
            <surname>Outcome-Oriented Predictive</surname>
          </string-name>
          Process Monitoring:
          <article-title>Review and Benchmark</article-title>
          ,
          <source>ACM Transactions on Knowledge Discovery from Data</source>
          <volume>13</volume>
          (
          <year>2019</year>
          )
          <fpage>1</fpage>
          -
          <lpage>57</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>N.</given-names>
            <surname>Tax</surname>
          </string-name>
          , I. Verenich,
          <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>
          ,
          <article-title>Predictive Business Process Monitoring with LSTM Neural Networks</article-title>
          , in: E. Dubois,
          <string-name>
            <surname>K.</surname>
          </string-name>
          Pohl (Eds.),
          <source>Advanced Information Systems Engineering</source>
          , Springer International Publishing, Cham,
          <year>2017</year>
          , pp.
          <fpage>477</fpage>
          -
          <lpage>492</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>A.</given-names>
            <surname>Paszke</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Gross</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Massa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Lerer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Bradbury</surname>
          </string-name>
          , G. Chanan,
          <string-name>
            <given-names>T.</given-names>
            <surname>Killeen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Lin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Gimelshein</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Antiga</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Desmaison</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Köpf</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>DeVito</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Raison</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Tejani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Chilamkurthy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Steiner</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Fang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Bai</surname>
          </string-name>
          , S. Chintala,
          <article-title>PyTorch: an imperative style, highperformance deep learning library</article-title>
          ,
          <source>in: Proceedings of the 33rd International Conference on Neural Information Processing Systems</source>
          ,
          <volume>721</volume>
          , Curran Associates Inc.,
          <string-name>
            <surname>Red</surname>
            <given-names>Hook</given-names>
          </string-name>
          ,
          <string-name>
            <surname>NY</surname>
          </string-name>
          , USA,
          <year>2019</year>
          , pp.
          <fpage>8026</fpage>
          -
          <lpage>8037</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>T.</given-names>
            <surname>Chen</surname>
          </string-name>
          , C. Guestrin,
          <article-title>XGBoost: A Scalable Tree Boosting System</article-title>
          ,
          <source>in: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining</source>
          , KDD '16,
          <string-name>
            <surname>Association</surname>
          </string-name>
          for Computing Machinery, New York, NY, USA,
          <year>2016</year>
          , pp.
          <fpage>785</fpage>
          -
          <lpage>794</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>J.</given-names>
            <surname>Cardoso</surname>
          </string-name>
          ,
          <article-title>Control-flow complexity measurement of processes and weyuker's properties</article-title>
          , in: 6th international enformatika conference, volume
          <volume>8</volume>
          ,
          <year>2005</year>
          , pp.
          <fpage>213</fpage>
          -
          <lpage>218</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>A.</given-names>
            <surname>Burattin</surname>
          </string-name>
          ,
          <article-title>PLG2: multiperspective process randomization with online and ofline simulations</article-title>
          , in: L.
          <string-name>
            <surname>Azevedo</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          Cabanillas (Eds.),
          <source>Proceedings of the BPM Demo Track 2016 Co-located with the 14th International Conference on Business Process Management (BPM</source>
          <year>2016</year>
          ), Rio de Janeiro, Brazil,
          <year>September 21</year>
          ,
          <year>2016</year>
          , volume
          <volume>1789</volume>
          <source>of CEUR Workshop Proceedings, CEUR-WS.org</source>
          ,
          <year>2016</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>6</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>C.</given-names>
            <surname>Drodt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Weinzierl</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Matzner</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Delfmann</surname>
          </string-name>
          , Predictive Recommining:
          <article-title>Learning Relations Between Event Log Characteristics and Machine Learning Approaches for Supporting Predictive Process Monitoring</article-title>
          ,
          <source>in: Intelligent Information Systems</source>
          , Springer International Publishing,
          <year>2023</year>
          , pp.
          <fpage>69</fpage>
          -
          <lpage>76</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>