arXiv:2609.08622cs.LGSep 2026

Manuscript Offprint

arXiv:2609.08622

Leveraging contextual events on structure-aware next activity prediction

Alessandro Mele, Claudia Diamantini, Domenico Potena

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Alessandro Mele¹[0009-0009-7852-0528], Claudia Diamantini¹[0000-0001-8143-7615], and Domenico Potena¹[0000-0002-7067-5463]

Department of Information Engineering, Polytechnic University of Marche, Ancona, Marche, Italy

Abstract. Predictive process monitoring aims at forecasting various aspects of running processes. Among the different tasks, next activity prediction represents the most extensively investigated. However, only a limited number of existing approaches explicitly encode contextual information, i.e., the environmental conditions in which the process is executed, typically modeled through event log attributes or aggregated measures. In this paper, an approach based on the concept of Instance Graphs is introduced. To incorporate contextual process instances, several encoding strategies are proposed and evaluated by measuring their impact on prediction performance. For each encoding strategy, a set of prefix-Instance Graphs is generated and subsequently provided as input to a Graph Neural Network for the classification task. The proposed approach is evaluated on multiple real-world event logs, and the experimental results demonstrate that incorporating contextual process instances benefits prediction performance.

Keywords: next activity prediction · contextual events · graph neural networks

1 Introduction

Predictive process monitoring (PPM) is a branch of process mining that leverages historical data to predict the evolution of ongoing process instances. In the last decade, the scientific community shifted from rule-based predictions to data-driven approaches, in which models are trained on historical data to automatically learn process behaviors [3]. PPM tasks can be categorized in three fields, namely the predictions of categorical outcome values, measures of interest taking continuous values, and the sequences of future activities and related data payloads, i.e., next event predictions [3]. To perform prediction, most of the existing approaches model process executions without considering that a process typically executes in a context where multiple other process instances are running concurrently, i.e. at the same time. Let us consider a help desk ticket management process, in which two tickets may be in exactly the same process state, e.g., “assigned to an operator”. Their evolution may differ due to the context in which they are executed. In the first case, the ticket is handled

A. Mele et al.

quickly because only a few other tickets are open at that time and the operators have a low workload. In the second case, instead, the ticket experiences delays because many other urgent requests are being processed concurrently, occupying the same operators.

The proposed study investigates whether modeling contextual process instances provides benefits for the next activity prediction task, i.e., a sub-field of next event prediction [3], where the objective is to predict the next activity to be executed given a running process instance. To this end, an approach based on the concept of Instance Graphs [5] is proposed to model running process instances. Several encoding strategies are introduced to model contextual process instances, and their impact on Graph Neural Network performance is systematically evaluated. More specifically, the proposed approach aims to address the following research questions:

– RQ1: which encoding strategy achieves the best prediction performance?

– RQ2: how the best strategy performs compared with graph-based approaches for next activity prediction?

The rest of this manuscript is structured as follows. Section 2 provides an overview of existing methods for predictive process monitoring, focusing on graph-based approaches and the modeling of inter-case dependencies. Section 3 illustrates the proposed methodology. Section 4 illustrates the experimental settings, the dataset, and the results achieved. Finally, Section 5 concludes the paper and delineates future research works.