Chameleons do not Forget: Prompt-Based Online Continual Learning for Next Activity Prediction
About
Predictive process monitoring (PPM) focuses on predicting future process trajectories, including next activity predictions. This is crucial in dynamic environments where processes change or face uncertainty. However, current frameworks often assume a static environment, overlooking dynamic characteristics and concept drifts. This results in catastrophic forgetting, where training while focusing merely on new data distribution negatively impacts the performance on previously learned data distributions. Continual learning addresses, among others, the challenges related to mitigating catastrophic forgetting. This paper proposes a novel approach called Continual Next Activity Prediction with Prompts (CNAPwP), which adapts the DualPrompt algorithm for next activity prediction to improve accuracy and adaptability while mitigating catastrophic forgetting. We introduce new datasets with recurring concept drifts, alongside a task-specific forgetting metric that measures the prediction accuracy gap between initial occurrence and subsequent task occurrences. Extensive testing on three synthetic and two real-world datasets representing several setups of recurrent drifts shows that CNAPwP achieves SOTA or competitive results compared to five baselines, demonstrating its potential applicability in real-world scenarios. An open-source implementation of our method, together with the datasets and results, is available at: https://github.com/SvStraten/CNAPwP.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Process prediction | RandTasks | Accuracy81.3 | 6 | |
| Process prediction | RecurTasks | Average Accuracy78.9 | 6 | |
| Process prediction | ImbalTasks | Average Accuracy79.7 | 6 | |
| Process prediction | BPIC Recur 15 | Average Accuracy66.2 | 6 | |
| Event processing | ImbalTasks | Processing Time (ms)2.98 | 6 | |
| Event processing | BPIC17 | Processing Time per Event (ms)10.12 | 6 | |
| Process prediction | BPIC17 | Average Accuracy81.8 | 6 | |
| Event processing | RandTasks | Latency (ms)3.29 | 6 | |
| Event processing | RecurTasks | Processing Time per Event (ms)3.16 | 6 | |
| Event processing | BPIC Recur 15 | Processing Time (ms)25.04 | 6 |