A Framework for Streaming Event-Log Prediction in Business Processes
Benedikt Bollig, Matthias Függer, Thomas Nowak
TL;DR
This work tackles streaming event-log prediction in business processes by casting base language models as automata (PDFA/FDFA) and unifying them under an automata-based framework. It introduces a Python-based framework that supports both batch and streaming predictions, enabling easy composition of base models (e.g., FPT, $n$-grams, bags) and their ensemble via soft, hard, or adaptive voting. Experimental results on seven real-world datasets show that LSTMs dominate in batch, but simple models augmented with ensemble methods often match or exceed LSTM performance in streaming, with substantially lower latency. The framework thus enables real-time, robust decision support in process mining and motivates further exploration of fallback strategies, online hyperparameter tuning, and global–local behavior modeling.
Abstract
We present a Python-based framework for event-log prediction in streaming mode, enabling predictions while data is being generated by a business process. The framework allows for easy integration of streaming algorithms, including language models like n-grams and LSTMs, and for combining these predictors using ensemble methods. Using our framework, we conducted experiments on various well-known process-mining data sets and compared classical batch with streaming mode. Though, in batch mode, LSTMs generally achieve the best performance, there is often an n-gram whose accuracy comes very close. Combining basic models in ensemble methods can even outperform LSTMs. The value of basic models with respect to LSTMs becomes even more apparent in streaming mode, where LSTMs generally lack accuracy in the early stages of a prediction run, while basic methods make sensible predictions immediately.
