Remaining Activity Sequence Prediction for ongoing process instances

Xiaoxiao SunProceedings/Proceedings 2021

Abstract

Remaining activity sequence prediction (i.e., Activity suffix prediction) aims at recommending the most likely future behaviors for ongoing process instances (traces), which enables process managers to rationally allocate resources and detect process deviations in advance. Recently, techniques of neural networks have found promising applications in activity suffix prediction by training a prediction model for next activity and iteratively performing the model to achieve the whole sequence prediction. However, the iterative prediction accumulates the deviations of each iteration and the result also lacks interpretability. In this paper, we propose a novel method to predict activity suffixes from the perspective of control flow and data flow for ongoing traces, where process discovery and trace replay techniques are employed to simulate executions of traces under real conditions and Long Short-Term Memory (LSTM) is applied to characterize the correlation between executed information and future execution. Sequence matching between historical prefix traces and ongoing traces are performed based on the above information to select the optimal-matched (i.e., most similar) activity suffix for ongoing process instances. Experiments on real-life datasets demonstrates that our proposed method outperforms other methods.

Introduction

Predicting the remaining steps in a business process—known as Activity Suffix Prediction—is critical for proactive Business Process Management (BPM). Whether managing loan applications or hospital triage, knowing the likely future path of an ongoing process instance (trace) allows for better resource allocation and early detection of deviations.

Traditional deep learning approaches, primarily using Recurrent Neural Networks (RNNs) or Long Short-Term Memory (LSTM) networks, typically predict the "next" activity iteratively. This method suffers from two significant drawbacks: error accumulation, where small initial mistakes snowball into nonsensical sequences, and a lack of interpretability, as these "black box" models offer little insight into the logic behind their predictions.

Methodology: A Hybrid Sequence Matching Framework

To overcome these limitations, this paper proposes a framework that combines formal process modeling with deep learning to match ongoing traces with the most similar historical examples.

1. Behavioral Context via Petri Nets

Instead of treating a trace as a simple sequence of events, the method uses "Process Discovery" (specifically the Inductive Miner) to construct a Petri net from the event log. By "replaying" the ongoing trace on this Petri net, the system identifies the exact behavioral state (token distribution). This captures the formal control-flow logic of the process.

The framework for extracting behavioral context using Petri nets and trace replay.

2. Data Context via LSTM and UMAP

While Petri nets handle control flow, LSTMs are used to characterize the data context (e.g., timestamps, durations). To maintain efficiency, UMAP (Uniform Manifold Approximation Projection) is employed for dimensionality reduction before training the LSTM to correlate historical execution patterns with future outcomes.

3. Optimal Suffix Matching

Rather than generating a sequence step-by-step, the system calculates a Trace Behavioral Similarity (TBS) score. It searches the training set for the historical prefix that best matches the current trace's behavioral and data context. The suffix of this "best-matched" historical trace is then used as the prediction.

Experimental Evaluation

The model was evaluated on four real-life event logs:

  • Helpdesk: Software ticket management.
  • Sepsis: Hospital patient pathways.
  • BPIC2012W_Complete: Loan application processes.
  • BPIC2012W_Deduplication: A version of the loan log with repetitive "self-loops" removed to test noise sensitivity.

Performance was measured using Damerau-Levenshtein Similarity (DLS), which quantifies the closeness of the predicted sequence to the actual outcome.

Comparison of average DLS and Coincidence Degree (CD) across four real-life datasets.

Key Results and Insights

The proposed method demonstrated superior performance across multiple metrics:

  • Accuracy Gains: On the Helpdesk dataset, the method achieved a DLS of 0.8401, a 9.16% improvement over existing state-of-the-art iterative models.
  • Impact of Coincidence Degree (CD): The authors introduced the CD metric to measure dataset predictability. As shown in Figure 3, the model performs exceptionally well on datasets with high CD (like Helpdesk), where historical patterns are more consistent.
  • The "Self-Loop" Effect: Removing repetitive identical activities (self-loops) in the BPIC2012W_Deduplication dataset led to a 16.39% accuracy boost compared to standard LSTM approaches, highlighting how noise in process logs can degrade predictive quality.
  • Robustness: By matching entire historical suffixes, the model avoids the "snowball effect" of error accumulation inherent in iterative next-step prediction models.

Conclusion and Future Work

By integrating Petri nets for control-flow logic and LSTMs for data-flow patterns, this research provides a more accurate and interpretable solution for activity suffix prediction. While the current model excels at sequence prediction, future work will aim to incorporate temporal predictions (remaining time) and resource allocation. The reliance on high-quality historical data remains a constraint, suggesting that future iterations could benefit from synthetic data augmentation or more advanced transfer learning techniques.

Summary updated

BibTeX
@inproceedings{sun2021remaining,
  author = {Xiaoxiao Sun},
  title = {{Remaining Activity Sequence Prediction for ongoing process instances}},
  booktitle = {Proceedings/Proceedings},
  year = {2021},
  doi = {10.18293/seke2021-075},
}
Figure