Process Discovery Using Graph Neural Networks

Dominique Sommers, Vlado Menkovski, Dirk Fahland

This paper presents a novel shift in how we approach Automated Process Discovery (APD), moving it from the realm of unsupervised heuristic algorithms into the world of supervised deep learning.

TL;DR

The authors introduce a supervised learning approach to process discovery using Graph Neural Networks (GNNs) that learns to map event logs to Petri nets. By training on thousands of synthetic examples, the model learns to emulate human modeling logic, producing sound process models that rival state-of-the-art algorithmic miners in accuracy while often exceeding them in structural simplicity.

What Problem Does This Paper Address?

Automated Process Discovery (APD) is the "holy grail" of process mining: taking a raw event log (a digital trail of activities) and automatically generating a process model (like a Petri net) that explains that behavior.

Historically, this has been treated as an unsupervised learning problem. Existing algorithms (like the Inductive Miner or Split Miner) rely on hard-coded heuristics and "representational biases"—predefined rules about what makes a model "good" (e.g., fitness, precision, simplicity). The problem is that no single set of heuristics works for every dataset. Some algorithms produce models that are too complex to read, while others oversimplify and miss critical behavior.

The authors argue that human modelers don't follow rigid algorithms; they learn from experience. This paper asks: can we train a neural network to "learn" the art of process modeling by showing it thousands of examples of logs and their corresponding "correct" models?

Methods

The authors propose a supervised framework using Graph Neural Networks (GNNs). The discovery process is treated as a sequential decision-making task.

  1. Graph Encoding: The input is converted into a large heterogeneous graph containing three parts:
  2. A Trace Graph representing the event log.
  3. A Candidate Petri Net containing a "template" of all possible transitions and potential places.
  4. Links connecting events in the log to their corresponding transitions in the model.
  5. The GNN Pipeline:
    • Propagation Network 1 (PN1): Uses an attention mechanism to "flow" behavioral information from the event log nodes to the candidate place nodes.
  6. Select Candidate NN: A classifier that looks at the updated embeddings and decides which candidate place is most likely to be part of the final model.
  7. Propagation Network 2 (PN2): After a place is selected, this network updates the entire graph state so the model "knows" what it has already built before making the next choice.
  8. Stop NN: Determines when the model is complete.
  9. Soundness and Search: To ensure the resulting Petri net isn't "broken" (e.g., containing deadlocks), the authors incorporate S-coverability checks to prune the search space. They also use Beam Search during inference to explore multiple high-probability modeling paths simultaneously rather than just picking the single best next step greedily.

Datasets

  • Synthetic Training/Test Data: The authors generated a dataset of 2,663 random "block-structured" process trees, converted them to Petri nets, and simulated 1,000 traces for each to create event logs. 2,000 were used for training and 663 for testing.
  • Real-Life Data: To test generalization, the model was evaluated on 11 real-world datasets from the BPI Challenge (Business Process Intelligence), including Road Traffic Fines, Sepsis cases, and various insurance/permit declaration logs.

Key Insights and Ideas

  • Modeling as Sequential Selection: Instead of trying to generate a whole graph at once, the model builds the Petri net "place by place." This mimics the iterative way humans comprehend and model complex information.
  • Learning the Bias: Unlike traditional miners where the bias is fixed by the programmer, here the bias is learned from the training data. If the training data consists of "clean" models, the GNN learns to prefer those structures.
  • Generalization Beyond Training: Remarkably, even though the model was trained only on "block-structured" (neatly nested) models, it successfully discovered unstructured, complex patterns in real-world data that it had never seen during training.

Key Results

  • Simplicity vs. Accuracy: On real-life datasets, the GNN approach consistently produced models with the highest simplicity (fewer nodes and arcs) compared to state-of-the-art miners (Inductive Miner, Split Miner, Heuristics Miner) while maintaining competitive F-scores (a balance of fitness and precision).
  • Generalization: In the "Road Traffic Fine" dataset, the model discovered a complex, unstructured loop involving appeals and penalties that traditional block-structured miners often struggle to represent elegantly.
  • Performance: On the synthetic test set, the model achieved high accuracy, finding valid sound models for approximately 65% of the cases, with many achieving near-perfect F-scores relative to the ground truth.

Limitations and Future Work

  • Scalability of Labels: The current model uses one-hot encoding for activity labels. This means it is limited to a predefined maximum number of unique activities (e.g., 20 in this study). Future work needs a more scalable label encoding (like word embeddings).
  • Soundness Guarantees: While S-coverability helps, the model doesn't yet guarantee 100% soundness in all cases. Some models were "easy sound" (no deadlocks) but contained "dead" parts that could never be triggered.
  • Training Variety: The authors note that the model's performance is heavily tied to the quality and variety of the synthetic training data. Expanding the training set to include more diverse, non-block-structured examples is a clear next step.

Summary updated

BibTeX
@inproceedings{sommers2021process,
  author = {Dominique Sommers and Vlado Menkovski and Dirk Fahland},
  title = {{Process Discovery Using Graph Neural Networks}},
  booktitle = {ICPM},
  year = {2021},
  url = {https://openreview.net/forum?id=wnjvBXWN1U},
}

Loading related content...

Figure