Predictive Business Process Monitoring with LSTM Neural Networks

Niek Tax, Ilya Verenich, Marcello La Rosa, Marlon Dumas

Introduction

Predictive business process monitoring aims to provide proactive insights into ongoing process instances, such as predicting the next activity, its expected completion time, or the final outcome. Traditionally, these tasks have been addressed using fragmented, "tailor-made" models—for instance, using transition systems for activity prediction and separate regression models for time estimation. These approaches often require significant manual feature engineering and lack robustness across different datasets.

This research proposes a unified framework based on Long Short-Term Memory (LSTM) neural networks. By treating event logs as sequences, the authors demonstrate that a single deep learning architecture can outperform specialized baselines across multiple predictive tasks including next activity prediction, suffix generation, and remaining cycle time estimation.

Methodology

LSTM Architecture and Sequential Modeling

The core of the approach is the LSTM network, a specialized Recurrent Neural Network (RNN) capable of learning long-term dependencies in sequential data. This is particularly relevant for business processes where early events in a case often influence later outcomes.

Unfolding of a Recurrent Neural Network over time.

As illustrated in the figure above, the network processes an input sequence $x$ through hidden states $s$, producing outputs $o$ at each time step. In this context, $x_t$ represents an event in a process log, and the hidden state $s_t$ captures the history of the process instance up to that point.

Multi-task Learning and Suffix Prediction

The authors explore three distinct architectures for predicting both the next activity and its timestamp simultaneously. This "multi-task learning" approach allows the model to learn the inherent relationship between the type of work and its duration.

Alternative LSTM architectures for multi-task predictive monitoring: (a) separate models, (b) shared LSTM layer, (c) shared base with task-specific LSTM layers.

Experimental results suggest that architectures with shared layers (specifically 'b' and 'c') generally perform better than training separate models. To predict the full process continuation (suffix), the model employs a recursive strategy: it predicts the next event, feeds it back as input, and repeats the process until an "end-of-case" token is generated. The remaining cycle time is then calculated by summing the predicted intervals within this generated suffix.

Experimental Setup

The framework was evaluated on three real-life event logs representing different levels of complexity:

  • Helpdesk: A ticketing management process from an Italian software company (~3,800 cases).
  • BPI'12 (W subprocess): Loan application data from a financial institution, focusing on manual work items.
  • Environmental Permit: A complex log from a Dutch municipality with 381 different event types and high trace variability.

Events were represented using one-hot encoding for activity types, supplemented by temporal features: time since the previous event, time of day, and day of the week. These features allow the LSTM to capture organizational rhythms, such as weekend pauses or end-of-week delays.

Key Results and Insights

  • Next Activity Prediction: The LSTM achieved 71% accuracy on the Helpdesk log and 76% on BPI'12, significantly outperforming state-of-the-art transition-system baselines which typically hover between 62-71%.
  • Time Prediction: The model consistently showed lower Mean Absolute Error (MAE) in predicting the time until the next event compared to traditional methods across almost all prefix lengths.
  • Suffix Similarity: Using Damerau-Levenshtein Similarity, the LSTM's predicted continuations were found to be more accurate than those from existing models, effectively capturing the likely future path of a process.

One significant insight was the "stuttering" problem: in logs with frequent repeated identical activities, the LSTM can become trapped in loops, over-predicting the same event and resulting in overly long suffixes.

Conclusion

This work demonstrates that LSTMs provide a powerful, unified framework for predictive business process monitoring, favoring generalization over manual feature engineering. While the model excels at capturing complex sequential patterns, future research is needed to address the "stuttering" issue in repetitive logs and to incorporate richer data attributes, such as resource information and case-specific variables, to further enhance predictive accuracy.

Summary updated

BibTeX
@inproceedings{tax2017predictive,
  author = {Niek Tax and Ilya Verenich and Marcello La Rosa and Marlon Dumas},
  title = {{Predictive Business Process Monitoring with LSTM Neural Networks}},
  booktitle = {CAiSE},
  year = {2017},
  doi = {10.1007/978-3-319-59536-8\_30},
}
Figure