Predictive Business Process Monitoring via Generative Adversarial Nets: The Case of Next Event Prediction

Farbod Taymouri, Marcello La Rosa, Sarah M. Erfani, Zahra Dasht Bozorgi, Ilya Verenich

TL;DR

This paper introduces a novel framework for predictive business process monitoring that applies Generative Adversarial Networks (GANs) to sequential event data. By framing next-event prediction as a "minmax game" between a generator and a discriminator, the authors achieve significantly higher accuracy and more precise timestamp predictions than state-of-the-art LSTM and CNN baselines, even when using simpler data encoding techniques.

What Problem Does This Paper Address?

Predictive business process monitoring helps organizations anticipate the next steps in a workflow—such as which activity will happen next and exactly when. While Deep Learning models like Long Short-Term Memory (LSTM) networks and Convolutional Neural Networks (CNNs) have become the standard for these tasks, they face a significant hurdle: generalization.

Real-life business event logs are often small compared to the millions of parameters in a deep neural network. This leads to models that overfit or fail to capture the underlying distribution of the process. Furthermore, standard models often show "fluctuating" accuracy depending on how much of the process has already been completed (the prefix length). The authors sought a training framework that could produce more robust, "indistinguishable from reality" predictions even with limited data.

Methods

The authors propose an Adversarial Predictive Process Monitoring Net. Unlike a standard GAN (Vanilla GAN) that generates images from random noise, this architecture is specifically adapted for temporal sequences:

  1. The Generator ($G$): An LSTM-based network that takes an ongoing process prefix and predicts the next event's label and timestamp.
  2. The Discriminator ($D$): Another LSTM-based network that acts as a binary classifier. Its job is to look at a sequence and determine if it is a "real" prefix from the event log or a "fake" one created by the Generator’s prediction.
  3. The Minmax Game: The two networks are trained simultaneously. The Generator tries to "fool" the Discriminator by making its predictions as realistic as possible, while the Discriminator gets better at spotting fakes.
  4. Hybrid Loss Function: To prevent a common GAN failure called "mode collapse" (where the generator fails to learn the data distribution), the authors added a standard supervised loss term to the Generator's objective. This ensures that, in the worst-case scenario, the GAN performs at least as well as a conventionally trained LSTM.

Datasets

The researchers evaluated their approach using four publicly available real-life event logs from the 4TU Centre for Research Data:

  • Helpdesk: Ticketing management process from an Italian software company.
  • BPI12 & BPI12(W): Loan application processes from a global financial organization.
  • BPI17: A large loan application dataset from a Dutch financial institute.

These logs vary in complexity, ranging from 6 to 26 unique activity labels and varying trace lengths.

Key Insights and Ideas

  • Adversarial Training as a Regularizer: The adversarial process forces the model to learn the actual probability distribution of the data rather than just memorizing sequences. This leads to better generalization on unseen data.
  • Robustness to Prefix Length: One of the most striking "aha moments" is that while baseline models' accuracy fluctuates wildly as a process nears completion, the GAN-based approach remains stable or improves monotonically.
  • Simplicity Wins: The authors used a "naive" one-hot encoding for features (rather than complex embeddings). Despite this simplicity, the adversarial framework allowed them to outperform models that used much more sophisticated data engineering.
  • Performance Lower Bound: By incorporating the standard loss function ($J(\theta_g)$) into the adversarial training, they formally proved that the model's accuracy is lower-bounded by that of a non-adversarial setting.

Key Results

The proposed approach systematically outperformed three major baselines (Tax et al., Camargo et al., and Pasquadibisceglie et al.):

  • Accuracy: The GAN approach achieved weighted average accuracies between 91.5% and 95.1% across the datasets, significantly higher than the baselines (which mostly hovered between 70% and 89%).
  • Timestamp Precision: For the BPI12 log, the GAN's Mean Absolute Error (MAE) for predicting the next event's time was 14 times lower than the best-performing baseline (0.0169 days vs. 0.2457 days).
  • Earliness: The model achieved high accuracy (98%+) much earlier in the process lifecycle compared to other methods, which is critical for proactive business interventions.

Limitations and Future Work

While the results are impressive, the authors note a few areas for further exploration:

  • Scope of Prediction: This paper focuses specifically on the next event. Future work could extend this to "suffix prediction" (predicting the entire remaining sequence) or "remaining time" until the end of the case.
  • Architectural Variety: The study used a simple two-layer LSTM. Exploring more complex architectures (like Transformers or different GAN variants) might yield even better results.
  • Broader Applications: The authors suggest this adversarial approach could be adapted for other process mining tasks, such as automated process discovery, alignment computation, and detecting "process drift" (when a business process changes over time).

Summary updated

BibTeX
@inproceedings{taymouri2020predictive,
  author = {Farbod Taymouri and Marcello La Rosa and Sarah M. Erfani and Zahra Dasht Bozorgi and Ilya Verenich},
  title = {{Predictive Business Process Monitoring via Generative Adversarial Nets: The Case of Next Event Prediction}},
  booktitle = {BPM},
  year = {2020},
  url = {https://openreview.net/forum?id=GcOuE15j2I4},
}
Figure