scieee AI-readable full text Open interactive document viewer

Deep Learning for Predictive Business Process Monitoring: Review and Benchmark

Rama Maneiro, Efrén; Vidal Aguiar, Juan Carlos; Lama Penín, Manuel

Abstract

Predictive monitoring of business processes is concerned with the prediction of ongoing cases on a business process. Lately, the popularity of deep learning techniques has propitiated an ever-growing set of approaches focused on predictive monitoring based on these techniques. However, the high disparity of event logs and experimental setups used to evaluate these approaches makes it especially difficult to make a fair comparison. Furthermore, it also difficults the selection of the most suitable approach to solve a specific problem. In this article, we provide both a systematic literature review of approaches that use deep learning to tackle the predictive monitoring tasks. In addition, we performed an exhaustive experimental evaluation of 10 different approaches over 12 publicly available event logs.

Full text

1939-1374 (c) 2021 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission. See http://www.ieee.org/publications_standards/publications/rights/index.html for more information. This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI 10.1109/TSC.2021.3139807, IEEE Transactions on Services Computing 1 Deep Learning for Predictive Business Process Monitoring: Review and Benchmark Efr´ en Rama-Maneiro, Juan C. Vidal, and Manuel Lama Abstract—Predictive monitoring of business processes is concerned with the prediction of ongoing cases on a business process. Lately, the popularity of deep learning techniques has propitiated an ever-growing set of approaches focused on predictive monitoring based on these techniques. However, the high disparity of event logs and experimental setups used to evaluate these approaches makes it especially difficult to make a fair comparison. Furthermore, it also difficults the selection of the most suitable approach to solve a specific problem. In this paper, we provide both a systematic literature review of approaches that use deep learning to tackle the predictive monitoring tasks. In addition, we performed an exhaustive experimental evaluation of 10 different approaches over 12 publicly available event logs. Index Terms—Process Mining, Business Process Monitoring, Neural Networks, Systematic Literature Review, Deep Learning F 1 INTRODUCTION A business process is a series of tasks performed by a set of resources, which can be human, software or hardware, to achieve a goal [1]. The execution of a business process is recorded in an event log [2], storing for each event, at least, its case identifier, the activity performed, and its timestamp. Optionally, case attributes which are shared by events of the same case, or event attributes, specific to each event, are also recorded. Process mining is the discipline concerned with the analysis of these logs, tackling it from different perspectives such as discovering the underlying process model from the log, checking that the executions registered in the log are conformant with the process model, or extracting or inferring analytics that enhance the description of what has happened in the process executions [2]. In this paper, we focus on predictive monitoring [3], a process mining technique which aims to predict how an ongoing process case is going to unfold using the information of the event log. Making predictions is useful for foreseeing problems before they occur, helping reallocate resources before they are wasted, or to make recommendations. Taking as an example the event log of TABLE 1, we might want to forecast which would be the next medical trial applied to a patient but also, the remaining time until a patient is discharged, or whether a patient is going to be intervened or not. The learning phase of a classifier trained to forecast these problems is performed on partial traces (prefixes). A wide array of traditional machine learning techniques has been applied to predictive monitoring such as Decision •Efr´en Rama-Maneiro, Juan C. Vidal, and Manuel Lama are with the Centro Singular de Investigaci´on en Tecnolox´ıas Intelixentes (CiTIUS), Universidade de Santiago de Compostela, Santiago de Compostela, Spain. Juan C. Vidal is also with the Departamento de Electr´onica e Computaci´on, Universidade de Santiago de Compostela, Galicia, Spain. email: {efren.rama.maneiro, juan.vidal, manuel.lama}@usc.es Manuscript received December 29, 2021 revised X Trees [4], Factorization Machines [5], Probabilistic Finite Automatons [6], [7], or Support Vector Machines [8], [9]. More recently, deep neural networks have gained a lot of attention in process mining due to their success in fields such as computer vision [10], [11] or natural language processing [12], [13]. Firstly, Recurrent Neural Networks (RNNs) were found to be a good fit to approach predictive monitoring [14], [15] because of the sequential nature of event logs. However, nowadays, many other deep learning approaches to predictive monitoring can be found in the literature [16], [17], [18], [19], improving in most cases classical machine learning approaches [20]. Unfortunately, the high number of neural network architectures, the different ways of encoding the partial traces and events, the number of predictive tasks available, and, sometimes, the difficulty of quantifying the differences and contributions between the works may complicate the task of defining what has already been done, what can be researched and future research directions. Furthermore, and more importantly, approaches are applied to a reduced number of datasets and with significantly different experimental setups. This makes it difficult to new researchers to compare their new approach with existent state-of-the-art works. To solve these issues, in this paper, we identify the most relevant deep learning approaches for predictive monitoring. Then, using these approaches as a starting point, we select those that have their implementation available and perform an experimentation and a statistical comparison in a fair setting using a wide number of event logs. Then, we use the results to highlight the most relevant differences between them. We have made public the source code1, trained models and results of the experimentation in the hope that it serves as a starting point for new researchers in predictive monitoring. The rest of the paper is structured as follows: Section 2 formally defines the most common predictive monitoring problems. Section 3 highlights the difference between 1. The code link is available in the supplementary material. Authorized licensed use limited to: UNIVERSIDADE DE SANTIAGO. Downloaded on November 22,2022 at 19:47:35 UTC from IEEE Xplore. Restrictions apply. 1939-1374 (c) 2021 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission. See http://www.ieee.org/publications_standards/publications/rights/index.html for more information. This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI 10.1109/TSC.2021.3139807, IEEE Transactions on Services Computing 2 TABLE 1: Excerpt of a business event log about the medial trials performed in a hospital. Case ID Activity Timestamp Resource Case2118 Inclusion 14-01-2010 07:52:50 Peter Case2118 TAC 09-02-2010 13:01:11 Joseph Case2118 Blood Analysis 17-02-2010 07:44:53 Joseph Case2118 Intervention 17-02-2020 07:44:59 Joseph Case2118 Discharge patient 18-02-2020 09:00:10 Joseph Case2088 Inclusion 04-02-2010 08:37:45 Peter Case2088 Pneumothorax scan 04-02-2010 09:01:28 Peter Case2088 TAC 04-02-2010 09:01:35 Peter Case2088 Blood Analysis 16-03-2010 13:08:40 Peter Case2088 Discharge patient 31-03-2010 11:08:53 Dio this survey and other predictive monitoring surveys. Section 4 highlights the search methodology to perform the systematic literature review. Section 5 shows the classification and taxonomy of the retrieved studies, explaining its main achievements. Section 6 shows the experimental setup, results, and discussion of the benchmarking of the available approaches. Finally, Section 7 concludes the paper highlighting future lines of work. 2 DEFINITIONS Given an event prefix of a running case, predictive monitoring is concerned with forecasting how different aspects of the next event or sequence of events will unfold until the end of the case. Formally, let A, T, O be the set all possible activities, timestamps, and outcomes. In order to define the attributes of a log and their bindings, we will first introduce the concept of datatype. Let Sbe a set of datatype names and Ψ : S→VSa function that maps each datatype to the set VSof values in an algebra. Let Dbe the set of attribute names of the log and λ:D→Sa function that maps each attribute to its datatype. We define an attribute binding as a function Υ : D→VSsuch that if Υ(d) = vfor d∈Dthen λ(d) = s,Ψ(s) = Vs, and v∈Vs. Let also e= (a, t, (d1, v1), ..., (dn, vn)) be an event where a∈A, t ∈T,dn∈D, and vn∈VS. Let hdk(σ)be an event prefix such as hdk(σ) = he1, . . . , eki,e0 k+1 be a predicted k+ 1 event by a function Ω,πTa projection function that maps an event to its timestamp πT(e) = t|t∈T, and let ⊕be the concatenation operator between two traces. Finally, to simplify the notation, the superscript 0indicates that the annotated symbol is a prediction. Depending on the predictive task at hand, we can define the following functions Ω: Definition 1. The next activity prediction problem can be defined as ΩA(hdk(σ)) = a0, where a0∈Ais the predicted activity. Definition 2. The next attribute prediction problem can be defined as Ω(d,VS)(hdk(σ)) = v0, where d∈D,Υ(d) = v0, and v0∈VSreflect the predicted attribute. Definition 3. The next timestamp prediction problem can be defined as ΩT(hdk(σ)) = πT(ek) + t0, where t0∈Ris the predicted duration, and ekdenotes the last event of the prefix. Definition 4. The outcome of an event prefix can be predicted as ΩO(hdk(σ)) = o0, where o0∈Ois the predicted outcome. The activity suffix prediction problem can be defined in two different ways: as the recursive prediction of A, i.e, using the newly predicted activities as the inputs for the next prediction until the end of the case (“[EOC]”) is reached (Definition 5) or directly predicting the activity suffix (Definition 6). Definition 5. An activity suffix can be recursively predicted as ΩSA =hΩA(σ0) = a0|σ0=hdk(σ)⊕he0 k+1, . . . , e0 i−1ii while a06= [EOC]being a0∈A. Definition 6. An activity suffix can be directly predicted as ΩSA(hdk(σ)) = ha0 k+1 . . . a0 ni, where a0 i∈A∀i∈[k+ 1, n]. Functions for predicting an attribute suffix and remaining time can be defined analogously. Definition 7. An attribute suffix can be recursively predicted as ΩSd =hΩ(d,VS)(σ0) = v0|σ0=hdk(σ)⊕ he0 k+1, . . . , e0 i−1ii while a06= [EOC], being d∈D, Υ(d) = v0, and v0∈VS Definition 8. An attribute suffix can be directly predicted as ΩSd(hdk(σ)) = hv0 k+1 . . . v0 ni, where v0 i∈VS∀i∈ [k+ 1, n]. Definition 9. Let θbe the sequence of predicted next timestamps such as θ=hΩT(σ0) = t0+πT(e0 i−1)|σ0= hdk(σ)⊕ he0 k+1, . . . , e0 i−1ii while a06= [EOC], then the remaining time can be calculated as ΩRT (hdk(σ)) = Pn i=kt0 i, where πT(e0 i−1)denotes the timestamp of the last event of the prefix, t0∈Ris the predicted next timestamp, and a0∈A. Definition 10. The remaining time can be directly calculated as ΩRT (hdk(σ)) = rt0, where rt0∈R, and it is the predicted remaining time for the whole prefix. 3 RELATED WORK Several authors have addressed the problem of reviewing the current state of the art in predictive monitoring. In [21], the authors review a set of studies and classify them in process-aware methods and non-process aware methods, depending on whether they require a process model as an input or not, and also whether they treat predictive monitoring as a regression problem or as a classification problem. In [22], the authors perform a systematic literature review with the aim of helping companies to select their best suited predictive monitoring framework according to multiple dimensions such as the predictions made by the approach, the domain where it is applied, the algorithm developed, and the input used. In [23], the authors perform a study of three deep learning approaches for predictive monitoring, taking into account different dimensions, such as the encoding scheme or the prediction target. Regarding to benchmarking studies, in [24], the authors compare the performance of 20 different supervised learning classification techniques over 6 different event logs to predict the next event in a business process. They conclude that the best machine learning classifier, in terms of accuracy, is the credal decision tree. In [20], a comparison of the following families of techniques for the next activity prediction problem is made: (i) Authorized licensed use limited to: UNIVERSIDADE DE SANTIAGO. Downloaded on November 22,2022 at 19:47:35 UTC from IEEE Xplore. Restrictions apply. 1939-1374 (c) 2021 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission. See http://www.ieee.org/publications_standards/publications/rights/index.html for more information. This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI 10.1109/TSC.2021.3139807, IEEE Transactions on Services Computing 3 recurrent neural networks, (ii) markov models, (iii) grammar induction techniques, which learn a set of production rules that describe a language (in this case, an event log), (iv) process discovery-based techniques, and (v) automata based prediction techniques. In [25], the authors focus their study on the prediction of the remaining time in a business process, comparing several bucketing, encoding, and supervised learning techniques in terms of the Mean Absolute Error of the predictions. They also compare the supervised learning techniques with 3 different process-aware methods. Their conclusion is that LSTMs outperform other approaches for remaining time prediction. In [26], the authors provide a systematic literature review of outcome-oriented predictive monitoring and compare the performance of four different machine learning techniques (random forest, logistic regression, support vector machines and extreme gradient boosting) with multiple encodings to predict the outcome of a business process. In [27], the authors perform a similar analysis for outcome prediction but comparing another set of machine learning techniques (random forest, support vector machines, deep feedforward networks, and LSTMs). In [28] they perform a similar review to this one, but they do not provide any fair benchmarking of the approaches. In [29] they perform an experimentation to compare CNN, LSTM, and LSTM with an attention mechanism to predict the outcome of a running case. They conclude that CNNs perform similar to LSTMs, and, since the former is computationally faster, it should be the architecture to use. In [30] they introduce key-value-predict attention networks to improve the performance of LSTMs, and introduce the usage of process data properties as additional features. However, their experimentation is limited to a few approaches and not every approach is tested in every proposed dataset. Only [23] and [28] have similar objectives as the review conducted in this paper. In [23], the analysis is limited to the first three deep learning approaches in predictive monitoring, but without any benchmarking, so the results reported are taken directly from the papers. In [28], even though a more thoroughly review is provided, the analysis also lacks any benchmarking between the approaches. Other authors include Deep Learning approaches when comparing their solution with the state-of-the-art in predictive monitoring. However, they limit their comparison to evaluating LSTM [20], [25], [27], and GRU [20] alongside other machine learning algorithms. No other review study benchmarks the original deep learning implementations of the state-of-the-art approaches under controlled conditions to provide a fair comparison between them. 4 ANALYSIS AND CLASSIFICATION We performed an analysis and classification of the predictive monitoring that use deep learning2. The results of this classification are available in TABLE 3. TABLE 2 reflects every possibility for each of the classification criteria. •Input data: data from the event logs used to train the predictive model. 2. The details of the search methodology are available in the supplementary material. •Predictions: the elements of the events that the neural network is trained to forecast. •Neural Network Type: type of neural network used such as feedforward, autoencoder, convolutional, recurrent or transformer. •Sequence encoding: how event prefixes are converted into learnable tensors by the neural net. •Event encoding: how each individual categorical and continuous variable is encoded in a feature vector. 4.1 Input data The selection of input data used in a neural network is one of the most crucial decisions to make when designing a predictive monitoring approach based on deep learning. In general, the most important information attributes in an event log, for the majority of prediction problems, would be the case identifier, the activities and the timestamp. If the prediction problem is an attribute or outcome, the required information will be dependent on the attribute in case. Since most event logs used in the literature are reallife logs, these are prone to have noisy data. We refer to noisy data as a set of problems that includes missing data, duplicated tasks, inconsistent tasks, or other incorrect behavior [46]. Given that most logs used in predictive monitoring are real use cases, noisy logs are a prominent problem in process mining, even though most predictive monitoring approaches disregard this problem, or only try to minimize this problem by filtering traces using some condition. Missing data, as the absence of data values for a given variable in an observation [47], is the most paradigmatic case of noise in process mining. This problem can take multiple dimensions. On the worst case, a task could be missing from the event log, so no information would be recorded in that case. On the best case, an event-level attribute could be missing for a given event. For example, the resource that executes the activity of an event could not be present. In the latter case, imputation techniques could be used directly over the event log to help improve the prediction performance [48]. The time information available in the log requires some preprocessing to be exploited since it can not be used directly as inputs of the neural network. The most usual preprocessing applied to timestamps involves computing the difference between the timestamp of the current event and the timestamp of the previous event [15], [16], [17], [18], [32], [37], [41]. Another used feature involves computing the difference between the current event timestamp and the timestamp from the beginning of the case [15], [16], [17], [32], [41]. Other potentially useful features are the day of the week [15], [16], [17], [32] or the time until the midnight [15], [16], [17], [32], [41]. Additionally, the difference between the current timestamp and the timestamp of the last activation on a Petri net can be applied to a decay function which makes the calculated time decrease as the place is not activated [40]. As far as the attributes of the log are concerned, it is possible that not every attribute adds significant information to the predictive problem [31], [32], [35], [36], [38], [39], [40], [41], [42], [43]. For example, and returning to the example in TABLE 1, if the e-mail information is present as part of an additional trace-level attribute, it will not be useful to Authorized licensed use limited to: UNIVERSIDADE DE SANTIAGO. Downloaded on November 22,2022 at 19:47:35 UTC from IEEE Xplore. Restrictions apply. 1939-1374 (c) 2021 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission. See http://www.ieee.org/publications_standards/publications/rights/index.html for more information. This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI 10.1109/TSC.2021.3139807, IEEE Transactions on Services Computing 4 Network type Sequence encoding Event Encoding Input data Time features Prediction Long Short Term Memory (LSTM) Continuous (CONT) Embedding (EMB) Activity (ACT) Time since start of the case (TSSC) Activity (ACT) Autoencoder (AE) Prefixes padded (PRFX) One-hot encoding (OH) Linear Temporal Logic (LTL) Time since previous event (TSP) Activity Suffix (SFX) Deep feedforward network (DFNN) N-gram (N-GRAM) Pretrained embedding (P-EMB) Attributes (ATTR) Day of week (WK) Next timestamp (NT) Differentiable Neural Computer (DNC) Single event (SE) Frequency based (FB) Clustered attributes (C-ATTR) Time since midnight (TMD) Remaining time (RT) Gated Recurrent Unit (GRU) Timed state sample (TSS) Process model (PM) Decayed time since previous place activation (DTPA) Outcome (OUT) Bidirectional LSTM (B-LSTM) Role (R) Resource (RES) Transformer (TRANS) Role (ROLE) Activity prediction in checkpoints (ACT [CP ]) Role suffix (RLSFX) Attribute suffix (ATTRSFX) TABLE 2: Morphological box of every possibility for each characteristic. Author, Year Reference Network type Sequence encoding Event encoding Input data Time features Prediction Evermann et al., 2017 [14] LSTM CONT EMB ACT - ACT Francescomarino et al., 2017 [15] LSTM PRFX OH ACT, LTL TSP, TSSC, WK, TMD SFX Mehdiyev et al., 2017 [31] AE + DFNN NGRAM - ACT, ATTR - ACT Tax et al., 2017 [16] LSTM PRFX OH ACT TSP, TSSC, WK, TMD ACT, NT, SFX, RT Navarin et al., 2017 [32] LSTM PRFX OH ACT, ATTR TSP, TSSC, WK, TMD RT Al-Jebrni et al., 2018 [33] CNN CONT EMB ACT - ACT Khan et al., 2018 [17] DNC PRFX OH ACT TSP, TSSC, WK, TMD ACT, NT, RT, SFX Metzger et al., 2018 [34] LSTM PRFX OH ACT - OUT Sch¨ onig et al. 2018 [35] LSTM CONT OH ACT, ATTR - ACT, RES Mehdiyev et al., 2018 [36] AE + LR NGRAM - ACT, ATTR - ACT Camargo et al., 2019 [37] LSTM PRFX P-EMB ACT, R TSP ACT, ROLE, NT, RT, SFX, RLSFX Lin et al., 2019 [38] LSTM CONT EMB ACT, ATTR - ACT, ATTR, SFX, ATTRSFX Hinkka et al., 2019 [39] GRU PRFX OH ACT, ATTR, C-ATTR - ACT [CP] Theis et al., 2019 [40] DFNN TSS FB ACT, PM, ATTR DTPA ACT Wahid et al., 2019 [41] DFNN SE EMB ACT, ATTR TSP, TSSC RT Pasquadibisceglie et al., 2019 [19] CNN PRFX FB ACT TSSC ACT Wang et al., 2019 [42] B-LSTM PRFX OH ACT, ATTR - OUT Mauro et al., 2019 [18] CNN PRFX EMB ACT TSP ACT Folino et al., 2019 [43] LSTM PRFX OH, EMB ACT, ATTR - OUT Hinkka et al., 2019 [44] GRU/LSTM CONT OH ACT - OUT Philipp et al., 2020 [45] TRANS CONT EMB ACT - ACT TABLE 3: Collected studies for Predictive Monitoring that use Deep Learning. predict the next medical test. [38] trains a predictive model where an alignment weight vector learns the importance of each attribute. [39] clusters the attributes together using the x-means algorithm. The belonging to a cluster is added as an additional feature to the feature vector of each event. Furthermore, resources in an event log are often noisy since some resources could potentially appear only once in the whole event log, even though they adhere to an organizational scheme. To solve this problem, [37] groups resources depending on their activity execution profiles. Note that, as shown in TABLE 3 this is the only approach that distinguishes the resources from other attributes of the event log. As far as the approaches that use time features [15], [16], [17], [18], [19], [37], [40], [41], they face the problem of a high variability in the time between the events, so these time features may complicate the training phase. 4.2 Predictions Regarding the prediction targets, there are multiple possibilities: •Activity [14], [16], [17], [18], [19], [31], [33], [35], [36], [37], [38], [39], [40], [45]: the next activity of a running case. •Activity suffix [15], [16], [17], [37], [38]: the sequence of activities given a running case. •Next timestamp [16], [17], [37]: the difference between the next timestamp of an event and the timestamp of the current event. •Remaining time [16], [17], [32], [37], [41]: the difference between the timestamp of the last case of a trace and the current timestamp of an event. •Outcome [34], [42], [43], [44]: refers to the outcome of a Authorized licensed use limited to: UNIVERSIDADE DE SANTIAGO. Downloaded on November 22,2022 at 19:47:35 UTC from IEEE Xplore. Restrictions apply. 1939-1374 (c) 2021 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission. See http://www.ieee.org/publications_standards/publications/rights/index.html for more information. This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI 10.1109/TSC.2021.3139807, IEEE Transactions on Services Computing 5 given running case. •Attributes [37], [38]: other event-level attributes present in the log. We include here the roles from [37] since they are derived from the resources of the log, which are, in turn, attributes of the log. •Attribute suffix [37], [38]: the approaches that predict the activity suffix and use other attributes of the log as inputs must predict also the sequence of attributes since the inputs for these attributes in the predicted events would be missing otherwise. The most common prediction problem is the prediction of the next activity given a partial event prefix. When this is the case, other prediction tasks are taken up as auxiliary tasks that may help improve the prediction performance [49]. However, when the prediction problem is the remaining time, and it is approached as a direct prediction, it is the only predictive task at hand. Note that no surveyed approach has tried the direct prediction of activity and attribute suffixes, because, contrary to the remaining time prediction, it has the disadvantage of assigning completely different labels to potentially similar suffixes. As far as the outcome prediction problem is concerned, most studies assume that the log is fully labeled and, thus, the problem is treated in a supervised manner. The exception to this is [43], where they do not make such assumptions and, instead, consider the log as a partially labeled dataset. Thus, the problem is treated in a semisupervised manner which has two stages: (i) an LSTM is trained on the full event log to predict the next activity, and (ii) another LSTM is initialized with the parameters learned by the previous model, and it is trained over the log that is labeled to predict the outcome of a running case. When the objective is to predict the activity suffix from an event prefix, the next event must be sampled from the output probability distribution of the last neural network’s prediction layer. A simple choice would be selecting the event with the highest probability in the vector [16]. However, this solution often makes the predictions to be very repetitive on the same top probability activity when the process is complex enough. Even more, it could happen that the end of the trace is never predicted with this method, which forces to add a maximum trace length constraint to avoid the prediction to be infinite. Another solution is to perform a beam search that explores a limited space of solutions by retaining the btraces that have the highest composed probability of events. This is the approach used by [15] in which the generation procedure stops when a complete candidate trace is compliant with a series of mined LTL rules is found. They also decrease the probability of subsequent predictions of the same event. In [37], another approach is taken, in which the next event is sampled randomly following the probability distribution of the neural network. Note that there exist more sampling methods, such as top-k sampling [50] or nucleus sampling [51]. When predicting an activity suffix, every feature used as input, such as attributes or time features, must be predicted in subsequent steps. These predictions are often approached using the same neural network to predict multiple features simultaneously. Predicting multiple outputs at once in a neural network is also called multitask learning [52]. It has been shown that predicting multiple tasks at once helps to enhance the generalization of the neural network due to the extra information available by the results of multiple prediction tasks [52], i.e, assuming a hard parameter sharing model, the shared layers of the neural network would be affected by the gradients of all prediction tasks. Given that every prediction task is, by its nature, noisy, training a model for the main prediction task ideally should be able to not overfit that noise. For example, assuming that we are interested in forecasting the next activity, we could use the next timestamp and next resource prediction problems as auxiliary tasks. Since each task has a different noise pattern, a model that jointly learns multiple tasks would “average” those noise patterns, achieving thus a better representation of the main prediction task [53]. This effect is especially relevant in predictive monitoring, where the event logs are often scarce of data. Each prediction task has attached its own loss, and the set of losses must be combined so that they can be minimized. In predictive monitoring, the most usual form to combine the losses is depicted in equation 1, where Ltis the total combined loss, |T|is the total number of tasks, and Liis the loss of an individual task. Lt= |T| X i=1 Li(1) This form of combining the task losses poses the problem that different tasks could have different magnitudes, and one task could dominate others just for a bigger value, which explains why sometimes multitask learning is avoided in predictive monitoring when the prediction target is only the next activity and not the activity suffix. Some solutions to this problem pose by manually setting a different weight for each of the tasks or by automatically learning the weights for those tasks [54]. 4.3 Neural network types 4.3.1 Feedforward networks Feedforward networks [55] are the most basic models for deep learning. In this type of neural network, the information flows through it without any recurrence. This lack of recurrence makes them well suited for tabular data [41] but not in process mining, where event logs have dependencies between the activities that are not exploited by this type of network. Thus, feedforward networks are not often used in predictive monitoring. However, this type of neural network is commonly used in combination with other methods, such as autoencoders [31], [36] or after extracting features from the process model [40]. Every method described in this section uses an algorithm called backpropagation which computes the gradients of a loss function with respect to the weights of the neural network. This allows the information from the loss function to flow “backwards” through the network to compute the gradient [55]. 4.3.2 Autoencoders The predictive monitoring approaches presented in [31] and [36] use autoencoders as their type of neural network. This kind of neural network learns how to reconstruct its own input. An autoencoder has two main parts: the encoder, Authorized licensed use limited to: UNIVERSIDADE DE SANTIAGO. Downloaded on November 22,2022 at 19:47:35 UTC from IEEE Xplore. Restrictions apply. 1939-1374 (c) 2021 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission. See http://www.ieee.org/publications_standards/publications/rights/index.html for more information. This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI 10.1109/TSC.2021.3139807, IEEE Transactions on Services Computing 6 h X U W o Unfolded h t −1 X t −1 U o t −1 h t X t U o t h t +1 X t +1 U o t +1 W W …… Fig. 1: Graphical representation of a vanilla recurrent neural network. In the left part, the general model is presented. In the right part, the computational graph is unfolded three timesteps. which learns to map its input xinto a hidden representation h, and the decoder, which learns to map a given hidden representation hback into the original input x0. The loss function is configured to penalize x0from being different from x. Formally, we would train an encoder eand a decoder dsuch as: d(e(x)) = x0(2) The autoencoders usually trained are undercomplete, which means that the dimension of the hidden representation is less than the input dimension. This forces the autoencoder to discern the most useful features of the input in a smaller hidden representation. As shown in TABLE 3, this approach is followed by [31], [36] in which their inputs to the first autoencoder are the hashed n-grams for each event prefix used to train the network. These approaches use the two-step procedure to train an autoencoder. First, an autoencoder is trained to represent the most useful features by reducing the dimensionality of its input. Then the already trained encoder is used to map the input to a hidden representation. Then, a feedforward network is attached using the hidden representation of the encoder as an input, which is in charge of making the final predictions. In the context of predictive monitoring, an autoencoder approach may be useful when the number of attributes of the log is very high since it could help to reduce the dimensionality of the input data by selecting the most important features for each event. However, the main disadvantage of this approach resides in that they disregard longer dependencies between events of the prefix. The autoencoder architecture presented here could be improved by adding a sparsity penalty to the loss function [56] or by corrupting the inputs with noise [57], but these improvements have not yet been explored in predictive monitoring. 4.3.3 Recurrent Neural Network Many deep predictive monitoring approaches [14], [15], [16], [17], [32], [34], [35], [37], [38], [39], [42], [43], [44], [44], [45], [58] are based on Recurrent Neural Networks (RNN) [55]. RNNs are neural networks specialized in processing sequential data, that is, they operate with a sequence of vectors x1, . . . , xτ, where τis the sequence length. The ability of processing sequence-like data makes this type of neural networks very useful to predictive monitoring. The vanilla implementation of the RNN depicted in Fig. 1 poses an important problem: the gradients propagated using Back Propagation Through Time (BPTT), which is an algorithm that allows applying the backpropagation algorithm to RNNs [59], either vanish or explode when trying to learn long dependencies. There exists multiple alternative models that have been proposed to alleviate this problem: Long Short-Term Memory (LSTM), Gated Recurrent Unit (GRU) and Memory Augmented Networks (MANN). LSTM and GRU. As shown in TABLE 3, LSTMs [14], [15], [16], [32], [34], [35], [37], [38], [43], [44], [58] and GRUs [39], [44] have been widely applied in predictive monitoring and are two of the most popular architectures in this field. LSTMs [60] and GRUs [61] create paths through time that allow the gradients to flow deeper in the input prefix than in a vanilla RNN. Thus, instead of using the previous state directly, ht−1, LSTM, and GRUs use a memory cell Ct that has an internal recurrence and the usual recurrence of vanilla RNN. In the case of LSTMs, this internal recurrence is controlled by three different gates, ft,ot, and it, which control the flow of information inside the cell. ftis called the “forget gate”, which filters what information is thrown away from the cell state; itis the “input gate”, which controls what information is going to be updated; and otis the “output gate”, which decides what information is exposed from the cell. The definition of the formulas that define an LSTM is as follows: ft=σ(bf+Ufxt+Wfht−1) it=σ(bi+Uixt+Wiht−1) ot=σ(bo+Uoxt+Woht−1) ˜ Ct=tanh(bC+UCxt+WCht−1) Ct=ft◦Ct−1+it◦˜ Ct ht=ot◦tanh(Ct) (3) In the previous equations, xtrepresents the input to the LSTM in the timestep t,bis a bias vector; Uand W are trainable weight matrices; ht−1represents the previous hidden state; ˜ Ctis the calculation of the cell state for the current timestep; and, finally Ctis the combination of the past information of the cell with the current information of the cell. The ◦operation denotes the Hadamard product between two matrices. GRUs are similar to LSTMs with the main difference that they do not have an output gate. Formally, GRUs can be formally defined as follows: zt=σ(Wzxt+Uzht−1+bz) rt=σ(Wrxt+Urht−1+br) ˜ ht=tanh(Whxt+Uh(rt◦ht−1) + bz) ht=zt◦ht−1+ (1 −zt)◦˜ ht (4) In the previous equations, zrefers to the “update gate”, which controls the amount of information that flows from the past to the future; ris called the “reset gate”, which filters how much information from the past is forgotten; ˜ h represents the calculation of the current memory; and ht corresponds to the final calculation of the memory of the cell, which can be interpreted as how much information is retained from the past and how much information is updated. Authorized licensed use limited to: UNIVERSIDADE DE SANTIAGO. Downloaded on November 22,2022 at 19:47:35 UTC from IEEE Xplore. Restrictions apply. 1939-1374 (c) 2021 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission. See http://www.ieee.org/publications_standards/publications/rights/index.html for more information. This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI 10.1109/TSC.2021.3139807, IEEE Transactions on Services Computing 7 In practice, there is almost no difference in the performance of GRUs against LSTMs, but the former has the advantage of a faster training [62], [63]. Bidirectional Recurrent Neural Network. [42] uses a bidirectional LSTM with an attention mechanism to predict the outcome of an input event prefix. Bi-directional recurrent neural networks, such as [42], consist on applying one RNN forward and another RNN backwards, concatenating their hidden states of each timestep. Moreover, the attention mechanism, originally devised in [64] and [65], allows learning an alignment vector to weight the importance of each event in the prediction. Memory Augmented Neural Network. In the predictive monitoring approach of [17], an architecture that belongs to the family of the Memory Augmented Neural Networks (MANN) is proposed. The family of MANN architectures may be useful in predictive monitoring for learning longer dependencies when the traces of the log are very long or when cycles of the same event may make the LSTM and GRU to “forget” events in the beginning of the prefix. However, these architectures are expensive to train and often very sensitive to the hyperparameters used. MANNs use an external memory unit to enhance the learning of longer term dependencies in event prefixes. The controller is often a Feedforward or a RNN that reads the inputs and, with the help of data from the memory, produces the corresponding outputs. The oldest MANN architecture is the Neural Turing Machines [66] (NTM). Instead of depending on a single cell for having information from the past, the NTMs use an addressing mechanism to access to this external memory cells. This addressing is based on an attention mechanism that provides a weight vector, w, which highlights the region of the memory more relevant for reading or writing at each timestep. This addressing mechanism allows the neural network to both interact with contiguous regions of memory and jump random addresses. One possible implementation of the memory addressing would use as keys the internal state of the controller LSTM in a certain timestep [67]. This kind of neural network is able to learn longerterm dependencies than its LSTM counterpart. However, the NTMs suffer from training issues (slow convergence, NaNs in gradients, etc.). The Differentiable Neural Computer [68] (DNC) further improves the memory management of the NTM by allowing freeing allocated blocks, keeping track of the writes in memory and avoiding overlapping between memory blocks. In [17], a variation of the DNC is proposed. In this architecture, the controller is separated into two controllers, the encoder controller and the decoder controller, where both controllers are LSTMs. The encoder reads the input event prefix reading and writing the contents of the memory when necessary. Then, the decoder is initialized with the last state of the LSTM encoder, and the suffix is then predicted. One notable aspect of this architecture is that the decoder is prevented from writing into memory, so this architecture is write-protected. Fig. 2 shows a comparison between the NTM from [66], the DNC implementation from [68], and the DNC implementation from [17]. Transformers. The predictive monitoring approach of [45] uses a different architecture named the transformer. Memory Controller External input External Output Memory Memory usage and temporal links Memory External input External Output Memory usage and temporal links state Encoder controller Decoder controller (a) (b) (c) state state state Read heads Controller External input External Output state Read heads Write head Read heads Write head Write heads Read heads Fig. 2: Comparison between the Neural Turing Machine [66] (Fig. 2a) the Differentiable Neural Computer [68] (Fig. 2b) and the variation of the DNC proposed by Khan et al. [17] (Fig. 2). These type of architectures, originally proposed in [12], substitute the recurrence entirely by attention mechanisms. They rely on performing an attention operation over different parts of the sequence simultaneously (multi-head attention). In [45], instead of training an encoder-decoder like in the original proposal of the architecture, they only use the decoder part of the Transformer. Even though the transformer allows a faster training and inference due to the usage of only attention modules, it is still unclear how would the transformer deal with multiple heterogeneous input data, that is, when the inputs to the transformer model are both categorical and continuous data, such as the resources or time-related measures from the events. 4.3.4 Convolutional neural network Convolutional Neural Networks were applied in the approaches of [18], [33] and [19], as shown in TABLE 3. This type of neural network is specialized in processing grid-like data. Most CNN applied to sequence prediction problems process the data as if it were a one-dimensional (1D) grid [18], [33]. In contrast, some CNNs reengineer their preprocessing of the prefixes to adapt them to a twodimensional (2D) grid [19]. The two main operations performed by this type of neural network are the convolution and the pooling operations. The convolution operation slides the kernel through the input grid across the input grid’s width and height. The output of the convolution operation is called the feature map. Fig. 3 highlights the differences between a 1D convolution and a 2D convolution. In the case of 1D data, the convolution operation is applied over the tensor full width, which is the feature vector size, and with a certain height (which is the time axis of the tensor, as shown in Fig. 3a). Note that for a 2D convolution the time dimension has to be added as an additional channel of the input, while for the 1D convolution, it would just enlarge the feature vector of each event. Thus, for 2D convolutions, including information about the attributes of the event log requires adding additional channels, which might pose a problem when the number of different attributes is mismatched from Authorized licensed use limited to: UNIVERSIDADE DE SANTIAGO. Downloaded on November 22,2022 at 19:47:35 UTC from IEEE Xplore. Restrictions apply. 1939-1374 (c) 2021 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission. See http://www.ieee.org/publications_standards/publications/rights/index.html for more information. This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI 10.1109/TSC.2021.3139807, IEEE Transactions on Services Computing 8 Time Feature vector size Time Maximum number of activities (a) (b) Fig. 3: Differences between 1D convolutions [18], [33] (Fig. 3a) and 2D convolutions [19] (Fig. 3b) for processing the trace ABBBCDEACB[EOC]assuming a total of 6 different activities, including the end of case, on the whole log. The blue square represents the filter and the blue arrow represents the direction of movement over the input matrix. For 1D convolutions, the filter is slid over the time dimension using the full width of the feature vector corresponding to the activities. For 2D convolutions, the filter is slid from right to left and from top to bottom using a smaller kernel size. the number of different activities (the width of the matrix would not be the same). After a convolution layer, the most usual next layer is the pooling layer, which applies a statistical summary of its output, often the maximum or average of certain portions of the input grid. This kind of transformation has the advantage of learning invariant features to the position inside the trace (local translation invariance). Furthermore, applying a pooling operation can further reduce the dimensionality of the problem, thus speeding up the training procedure. The most usual basic architecture for a CNN is a series of building blocks. Each block has a convolutional layer followed by a non-linear activation function, and a pooling layer. The works [19], [33] are based on this neural architecture. [33] follows the 1D convolutional approach, using embeddings for the log categorical variables, whereas [19] uses the 2D convolutional approach, using a frequencybased encoding for continuous and discrete variables, as shown in Fig. 3b. In both studies, the non-linear activation function used between layers is the ReLU function, which allows a faster training and alleviates the vanishing gradient problem [69]. There are two ways to increase the expressiveness of a neural network: increasing its depth or its width. When increasing the depth the vanishing gradient problem arises: the gradient updates in latter layers of the network are too small and impede the network to learn properly [10]. When increasing the width, the number of parameters, and therefore, its computational complexity, grows very rapidly. This latter problem has been tackled in [70], where multiple modules of the neural perform both a convolutional operation with different kernel sizes and a pooling operation simultaneously. This approach is used by [18] but with two main differences: they use 1D convolutions, and they do not perform a 1×1convolution before applying a convolution with a bigger size. Comparing CNNs against RNNs for predictive monitoring, the former may have the advantage of a faster training and inference, specially for events logs with longer traces. However, RNNs may capture longer dependencies between the events of the trace since the hidden state for a given event depends on every event before it, whereas on a CNN it only depends on the kmost recent events, where kis the size of the kernel. 4.4 Sequence encoding In deep learning architectures, traces must be encoded in tensors of fixed size. However, there is a big variability in the length of every trace in a business process, so this step poses an important challenge. Furthermore, this step also conditions how the training targets are fed to the neural network. We have identified the following encoding formats: •Continuous [14], [33], [38], [44], [45]: this encoding technique is inspired by the training of neural language models [71]. Here, the log is viewed as a text, each trace as a sentence of that text, and each activity as a word of a sentence. In this type of encoding, only a window Wof events is considered, and each window can include events from different traces. In case a window is incomplete, it could either be discarded or padded with zeroes. For example, let Lbe the set of traces {[A, B, C],[C, D]}. Then, with a window size W= 3 we would have the set of windows {[A, B, C],[EOC, C, D],[EOC, 0,0]} as an input. In this case, the training targets fed to the neural network are, in each timestep, the same set of windows shifted one position to the left, i.e, {[B, C, EOC],[C, D, EOC],[0,0,0]}. •Prefixes padded [15], [16], [17], [18], [19], [32], [34], [37], [39], [42], [43]: in this type of encoding, every possible set of event prefixes hdkwhere k∈(1, ..., n)for each trace is considered. There are two different approaches to apply this encoding. The first one considers only the Wmost recent events (as in [37]). The second one considers all the events (as in [16]). In both approaches, the event prefixes must be padded with zeroes in case they are shorter than the specified vector length. In the second case, the vector length is often set to the length of the longest trace of the log. The approaches that use this encoding set the training target for each event prefix to the next event that follows in the event prefix, even though the full event suffix of events could also be the training target. •N-gram [31], [36]: this encoding, used by [31], represents each trace as a set of all subsequences up to length k contained in it. The total number of possible sequences for an event log of |A|distinct activities can be calculated using equation 5. N= k X i=1 |A|i(5) Authorized licensed use limited to: UNIVERSIDADE DE SANTIAGO. Downloaded on November 22,2022 at 19:47:35 UTC from IEEE Xplore. Restrictions apply. 1939-1374 (c) 2021 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission. See http://www.ieee.org/publications_standards/publications/rights/index.html for more information. This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI 10.1109/TSC.2021.3139807, IEEE Transactions on Services Computing 9 Since the space of n-gram combinations is very large, the “hashing trick” [72] (also known as “feature hashing”) is used to reduce this dimensionality to a fixed length vector. The hashing trick is defined as in equation 6: ni=X i:h(i)=k ξ(i)xi(6) A hash function his used to determine the kposition in the fixed vector that has to be updated with a feature xi. Another hash function ξcounters the effect of hash collisions by determining the sign of the update. In predictive monitoring, this type of encoding has only been used for autoencoders [31], [36] so, in these proposals the training targets as well as the inputs of the NN are equal. •Single event [41]: in this encoding, only a single event and its attributes are considered, so the sequence of events in the trace is disregarded. The approach of [41] uses this encoding, setting the training targets as the next event to the event in question. •Timed state [40]: proposed by [40], this encoding represents the inner state of a Petri net after replaying a partial trace in it. Each place of the Petri net is enhanced with a “decay function” that counts the time between the current timestamp and the last time a token was in a given place. The sequence encoded vector is defined as a concatenation of the following hand-crafted vectors: Ftgives the value of the decay function for each place of the Petri net; Ctcounts the number of times a token has gone through a place of the Petri net; Mtcounts where the tokens are in the Petri net, and Rt: counts the occurrence of other attributes of the trace. The training target is the next event after the replayed activity prefix on the Petri net. The most used encoding schemes are Continuous and Prefixes padded, since they are versatile enough to be used with both CNNs and RNNs. The single event encoding is used less since it disregards the dependencies between the events of the input prefix. The timed state encoding has the advantage of using the model as an input and, potentially, to capture dependencies between the activities that are not present by examining the literal ordering of the events in the prefix. However, this encoding is not directly compatible with more expressive models such as RNNs or CNNs. Furthermore, these encodings show the two philosophies regarding the existence of long-term dependencies in the logs. On the one hand, the encodings continuous, prefixes padded from a window of events, and single event, implicitly assume that long-term dependencies do not exist or are not relevant in event logs. This is due to the fact that these encoding approaches discard the oldest events in their predictive models. On the other hand, the encodings prefixes padded considering every event of the prefix, and timed state3 assume that these long-term dependencies may exist since they consider every event of the prefix, and, thus, they could detect these dependencies if they would exist. 3. Even though they consider every single event of the prefix, this encoding still could overwrite features when a loop occurs in the process model, and it does not enforce a strict sequentiality on the representation of the prefix. 4.5 Event encoding Attribute variables can be either categorical variables or continuous variables. On the one hand, continuous variables must be normalized before feeding to the neural network. There are multiple techniques such as lognormalization [37], min-max normalization [37], z-score normalization [73] or tanh-estimators [74]. On the other hand, each categorical variable must be encoded in fixed feature vectors that uniquely represents them. There are various strategies used in the literature for that: •One-hot [15], [16], [17], [32], [34], [35], [39], [39], [42], [43]: categorizing the variable with an integer is not enough since this categorization assumes that the higher the value of the variable is, the more important it is. To avoid that problem, the feature is represented in a binary vector where its size corresponds to the number of possible distinct values for that variable, and its position in the vector is a one if the category corresponds with the variable. •Embedding [14], [18], [33], [38], [41], [43], [45]: the embedding encoding creates a matrix W∈Rn×fwhere each row corresponds to each of the categories of the variable, and columns correspond to the feature dimension. The parameters of this matrix can be either established randomly or be learned with stochastic gradient descent, so the learned embeddings are optimal for the prediction task at hand. •Frequency-based [19], [40]: this type of encoding [75] indicates how many times the activity ihas happened until the current event of the trace. This encoding is useful when temporal information must be added to the encoding of the activities. Note that in the case of [40] the frequency does not represent directly activities but the number of times a token has gone through a place. •Pretrained embedding [37]: instead of directly training the embedding vectors with stochastic gradient descent, the embeddings can be pretrained for another task that gives additional information. For example, in [37], a neural network is trained to learn embeddings by discriminating role-activity pairs. A positive instance means that a role-activity pair exists on the log whereas a negative pair means otherwise. They claim that the embeddings learned this way can discriminate better between different events. While the pretrained embedding and embedding approaches have the main purpose of learning a set of embeddings to represent the categorical variables, the former are richer and may provide more information, which eases the convergence of the neural network, as many works in NLP that used similar techniques have shown [76], [77]. Moreover, the one-hot encoding is a good solution in terms of easiness of computation and implementation, because it does not use additional parameters, otherwise, the size of the vector could dramatically increase the memory usage of the neural network. Note that associating an integer to a category and using that directly as an input is heavily discouraged, due to imposing an implicit order of the categorical variable that it is not true (i.e, category number 2 would be more important than category number 1) [78]. Authorized licensed use limited to: UNIVERSIDADE DE SANTIAGO. Downloaded on November 22,2022 at 19:47:35 UTC from IEEE Xplore. Restrictions apply. 1939-1374 (c) 2021 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission. See http://www.ieee.org/publications_standards/publications/rights/index.html for more information. This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI 10.1109/TSC.2021.3139807, IEEE Transactions on Services Computing 16 (either by the abundance of data or by the need for a quick testing phase). Concerning the sequence and event encoding perspectives, even though the experimentation does not highlight differences on the performance of the multiple possibilities of encoding, there are differences on the efficiency between the encodings. For example, the onehot event encoding uses more memory than the embedding event encoding when the number of different activities is very high or the continuous sequence encoding has a faster training procedure than the prefixes padded sequence encoding. We expect the experiments serve as a baseline for future works in predictive monitoring. As a future line of work, this experimentation could be enhanced with nondeep learning approaches but also using specific synthetic datasets to further clarify the properties of neural networks for predictive monitoring. 7 ACKNOWLEDGMENTS This work has received financial support from the Conseller´ ıa de Educaci´ on, Universidade e Formaci´ on Profesional (accreditation 2019-2022 ED431G-2019/04), the European Regional Development Fund (ERDF), which acknowledges the CiTIUS - Centro Singular de Investigaci´ on en Tecnolox´ ıas Intelixentes da Universidade de Santiago de Compostela as a Research Center of the Galician University System, and the Spanish Ministry of Science and Innovation (grants PDC2021-121072-C21 and PID2020-112623GB-I00). E. Rama-Maneiro is supported by the Spanish Ministry of Education, under the FPU national plan (FPU18/05687) REFERENCES [1] M. Kirchmer, High Performance Through Business Process Management. Springer International Publishing, 2017. [2] W. M. P. van der Aalst, Process Mining. Springer Berlin Heidelberg, 2011. [3] F. M. Maggi, C. D. Francescomarino, M. Dumas, and C. Ghidini, “Predictive monitoring of business processes,” in Proceedings of the 26th International Conference on Advanced Information Systems Engineering (CAISE 2014), ser. Lecture Notes in Computer Science, vol. 8484. Springer, 2014, pp. 457–472. [4] C. D. Francescomarino, M. Dumas, F. M. Maggi, and I. Teinemaa, “Clustering-based predictive process monitoring,” IEEE Transactions on Services Computing, vol. 12, no. 6, pp. 896–909, nov 2019. [5] W. L. J. Lee, D. Parra, J. Munoz-Gama, and M. Sep´ ulveda, “Predicting process behavior meets factorization machines,” Expert Systems with Applications, vol. 112, pp. 87–98, 2018. [6] J. Becker, D. Breuker, P. Delfmann, and M. Matzner, “Designing and implementing a framework for event-based predictive modelling of business processes,” in Proceedings of the Enterprise Modelling and Information Systems Architectures (EMISA 2014), ser. LNI, vol. P-234. GI, 2014, pp. 71–84. [7] D. Breuker, , M. Matzner, P. Delfmann, J. Becker, , and and, “Comprehensible predictive models for business processes,” MIS Quarterly, vol. 40, no. 4, pp. 1009–1034, 2016. [8] B. Kang, D. Kim, and S.-H. Kang, “Periodic performance prediction for real-time business process monitoring,” Industrial Management & Data Systems, vol. 112, no. 1, pp. 4–23, 2012. [9] C. Cabanillas, C. D. Ciccio, J. Mendling, and A. Baumgrass, “Predictive task monitoring for business processes,” in Proceedings of the 12th International Conference on Business Process Management (BPM 2014), ser. Lecture Notes in Computer Science, S. W. Sadiq, P. Soffer, and H. V¨ olzer, Eds., vol. 8659. Springer, 2014, pp. 424– 432. [10] K. He, X. Zhang, S. Ren, and J. Sun, “Deep residual learning for image recognition,” in Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR 2016). IEEE, 2016, pp. 770–778. [11] K. Simonyan and A. Zisserman, “Very deep convolutional networks for large-scale image recognition,” in Proceedings of the 3rd International Conference on Learning Representations (ICLR 2015), Y. Bengio and Y. LeCun, Eds., 2015. [12] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, and I. Polosukhin, “Attention is all you need,” in Proceedings of the 30th Annual Conference on Neural Information Processing Systems (NIPS 2017), 2017, pp. 5998–6008. [13] I. Sutskever, O. Vinyals, and Q. V. Le, “Sequence to sequence learning with neural networks,” in Proceedings of the 27th Annual Conference on Neural Information Processing Systems (NIPS 2014), Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, and K. Q. Weinberger, Eds., 2014, pp. 3104–3112. [14] J. Evermann, J.-R. Rehse, and P. Fettke, “Predicting process behaviour using deep learning,” Decision Support Systems, vol. 100, pp. 129–140, 2017. [15] C. D. Francescomarino, C. Ghidini, F. M. Maggi, G. Petrucci, and A. Yeshchenko, “An eye into the future: Leveraging apriori knowledge in predictive business process monitoring,” in Proceedings of the 15th International Conference on Business Process Management (BPM 2017), ser. Lecture Notes in Computer Science, vol. 10445. Springer, 2017, pp. 252–268. [16] N. Tax, I. Verenich, M. L. Rosa, and M. Dumas, “Predictive business process monitoring with LSTM neural networks,” in Proceedings of the 29th International Conference on Advanced Information Systems Engineering (CAISE 2017), ser. Lecture Notes in Computer Science, vol. 10253. Springer, 2017, pp. 477–492. [17] A. Khan, H. Le, K. Do, T. Tran, A. Ghose, H. Dam, and R. Sindhgatta, “Memory-augmented neural networks for predictive process analytics.” [18] N. D. Mauro, A. Appice, and T. M. A. Basile, “Activity prediction of business process instances with inception CNN models,” in Proceedings of the 18th International Conference of the Italian Association for Artificial Intelligence (AIIA 2019), ser. Lecture Notes in Computer Science, vol. 11946. Springer, 2019, pp. 348–361. [19] V. Pasquadibisceglie, A. Appice, G. Castellano, and D. Malerba, “Using convolutional neural networks for predictive process analytics,” in Proceedings of the 2019 International Conference on Process Mining (ICPM 2019). IEEE, 2019, pp. 129–136. [20] N. Tax, I. Teinemaa, and S. J. van Zelst, “An interdisciplinary comparison of sequence modeling methods for next-element prediction,” Software and Systems Modeling, 2020. [21] A. E. Marquez-Chamorro, M. Resinas, and A. Ruiz-Cortes, “Predictive monitoring of business processes: A survey,” IEEE Transactions on Services Computing, vol. 11, no. 6, pp. 962–977, 2018. [22] C. D. Francescomarino, C. Ghidini, F. M. Maggi, and F. Milani, “Predictive process monitoring methods: Which one suits me best?” in Proceedings of the 16th International Conference on Business Process Management (BPM 2018), ser. Lecture Notes in Computer Science, vol. 11080. Springer, 2018, pp. 462–479. [23] N. Harane and S. Rathi, “Comprehensive survey on deep learning approaches in predictive business process monitoring,” in Studies in Computational Intelligence. Springer International Publishing, 2020, pp. 115–128. [24] B. A. Tama and M. Comuzzi, “An empirical comparison of classification techniques for next event prediction using business process event logs,” Expert Systems with Applications, vol. 129, pp. 233–245, 2019. [25] I. Verenich, M. Dumas, M. L. Rosa, F. M. Maggi, and I. Teinemaa, “Survey and cross-benchmark comparison of remaining time prediction methods in business process monitoring,” ACM Transactions on Intelligent Systems and Technology, vol. 10, no. 4, pp. 1–34, 2019. [26] I. Teinemaa, M. Dumas, M. L. Rosa, and F. M. Maggi, “Outcomeoriented predictive process monitoring,” ACM Transactions on Knowledge Discovery from Data, vol. 13, no. 2, pp. 1–57, 2019. [27] W. Kratsch, J. Manderscheid, M. R¨ oglinger, and J. Seyfried, “Machine learning in business process monitoring: A comparison of deep learning and classical approaches used for outcome prediction,” Business & Information Systems Engineering, 2020. [28] D. A. Neu, J. Lahann, and P. Fettke, “A systematic literature review on state-of-the-art deep learning methods for process prediction,” Artificial Intelligence Review, mar 2021. [29] H. Weytjens and J. D. Weerdt, “Process outcome prediction: CNN vs. LSTM (with attention),” in Business Process Management Workshops - BPM 2020 International Workshops, Seville, Spain, September Authorized licensed use limited to: UNIVERSIDADE DE SANTIAGO. Downloaded on November 22,2022 at 19:47:35 UTC from IEEE Xplore. Restrictions apply. 1939-1374 (c) 2021 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission. See http://www.ieee.org/publications_standards/publications/rights/index.html for more information. This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI 10.1109/TSC.2021.3139807, IEEE Transactions on Services Computing 17 13-18, 2020, Revised Selected Papers, ser. Lecture Notes in Business Information Processing, vol. 397. Springer, 2020, pp. 321–333. [30] K. Heinrich, P. Zschech, C. Janiesch, and M. Bonin, “Process data properties matter: Introducing gated convolutional neural networks (GCNN) and key-value-predict attention networks (KVP) for next event prediction with deep learning,” Decision Support Systems, vol. 143, p. 113494, apr 2021. [31] N. Mehdiyev, J. Evermann, and P. Fettke, “A multi-stage deep learning approach for business process event prediction,” in Proceedings of the 2017 IEEE 19th Conference on Business Informatics (CBI 2017). IEEE, 2017, pp. 119–128. [32] N. Navarin, B. Vincenzi, M. Polato, and A. Sperduti, “LSTM networks for data-aware remaining time prediction of business process instances,” in Proceedings of the 2017 IEEE Symposium Series on Computational Intelligence (SSCI 2017). IEEE, 2017, pp. 1–7. [33] A. Al-Jebrni, H. Cai, and L. Jiang, “Predicting the next process event using convolutional neural networks,” in Proceedings of the 2018 IEEE International Conference on Progress in Informatics and Computing (PIC 2018). IEEE, 2018, pp. 332–338. [34] A. Metzger and A. Neubauer, “Considering non-sequential control flows for process prediction with recurrent neural networks,” in Proceedings of the 44th Euromicro Conference on Software Engineering and Advanced Applications (SEAA 2018). IEEE, 2018, pp. 268–272. [35] S. Sch¨ onig, R. Jasinski, L. Ackermann, and S. Jablonski, “Deep learning process prediction with discrete and continuous data features,” in Proceedings of the 13th International Conference on Evaluation of Novel Approaches to Software Engineering (ENASE 2018). SCITEPRESS - Science and Technology Publications, 2018, pp. 314– 319. [36] N. Mehdiyev, J. Evermann, and P. Fettke, “A novel business process prediction model using a deep learning method,” Business & Information Systems Engineering, 2018. [37] M. Camargo, M. Dumas, and O. G. Rojas, “Learning accurate LSTM models of business processes,” in Proceedings of the 17th International Conference on Business Process Management (BPM 2019), ser. Lecture Notes in Computer Science, vol. 11675. Springer, 2019, pp. 286–302. [38] L. Lin, L. Wen, and J. Wang, “Mm-pred: A deep predictive model for multi-attribute event sequence,” in Proceedings of the 2019 SIAM International Conference on Data Mining (SDM 2019). SIAM, 2019, pp. 118–126. [39] M. Hinkka, T. Lehto, and K. Heljanko, “Exploiting event log event attributes in RNN based prediction,” in Proceedings of the 9th International Symposium on Data-Driven Process Discovery and Analysis (SIMPDA 2019), ser. Lecture Notes in Business Information Processing, vol. 379. Springer, 2019, pp. 67–85. [40] J. Theis and H. Darabi, “Decay replay mining to predict next process events,” IEEE Access, vol. 7, pp. 119787–119 803, 2019. [41] N. A. Wahid, T. N. Adi, H. Bae, and Y. Choi, “Predictive business process monitoring – remaining time prediction using deep neural network with entity embedding,” Procedia Computer Science, vol. 161, pp. 1080–1088, 2019. [42] J. Wang, D. Yu, C. Liu, and X. Sun, “Outcome-oriented predictive process monitoring with attention-based bidirectional LSTM neural networks,” in Proceedings of the 2019 IEEE International Conference on Web Services (ICWS 2019). IEEE, 2019, pp. 360–367. [43] F. Folino, G. Folino, M. Guarascio, and L. Pontieri, “Learning effective neural nets for outcome prediction from partially labelled log data,” in Proceedings of the 2019 IEEE 31st International Conference on Tools with Artificial Intelligence (ICTAI 2019). IEEE, 2019, pp. 1396–1400. [44] M. Hinkka, T. Lehto, K. Heljanko, and A. Jung, “Classifying process instances using recurrent neural networks,” in Proceedings of the 16th International Conference on Business Process Management Workshops (BPM 2018), ser. Lecture Notes in Business Information Processing, vol. 342. Springer, 2018, pp. 313–324. [45] P. Philipp, R. Jacob, S. Robert, and J. Beyerer, “Predictive analysis of business processes using neural networks with attention mechanism,” in Proceedings of the 2nd International Conference on Artificial Intelligence in Information and Communication (ICAIIC 2020). IEEE, 2020, pp. 225–230. [46] H.-J. Cheng and A. Kumar, “Process mining on noisy logs — can log sanitization help to improve performance?” Decision Support Systems, vol. 79, pp. 138–149, nov 2015. [47] J. W. Graham, “Missing data analysis: Making it work in the real world,” Annual Review of Psychology, vol. 60, no. 1, pp. 549–576, jan 2009. [48] M. S. Osman, A. M. Abu-Mahfouz, and P. R. Page, “A survey on data imputation techniques: Water distribution system as a use case,” IEEE Access, vol. 6, pp. 63 279–63 291, 2018. [49] M. Crawshaw, “Multi-task learning with deep neural networks: A survey,” 2020. [50] A. Fan, M. Lewis, and Y. Dauphin, “Hierarchical neural story generation,” in Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (ACL 2018). Association for Computational Linguistics, 2018, pp. 889–898. [51] A. Holtzman, J. Buys, L. Du, M. Forbes, and Y. Choi, “The curious case of neural text degeneration,” in Proceedings of the 8th International Conference on Learning Representations (ICLR 2020). OpenReview.net, 2020. [52] R. Caruana, “Multitask learning,” Machine Learning, vol. 28, no. 1, pp. 41–75, 1997. [53] S. Ruder, “An overview of multi-task learning in deep neural networks,” Jun. 2017. [54] R. Cipolla, Y. Gal, and A. Kendall, “Multi-task learning using uncertainty to weigh losses for scene geometry and semantics,” in Proceedings of the 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR 2018). IEEE, 2018, pp. 7482–7491. [55] I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning. MIT Press, 2016, http://www.deeplearningbook.org. [56] M. Ranzato, C. Poultney, S. Chopra, and Y. LeCun, “Efficient learning of sparse representations with an energy-based model,” in Proceedings of the 19th International Conference on Neural Information Processing Systems (NIPS ’06), ser. NIPS’06. Cambridge, MA, USA: MIT Press, 2006, pp. 1137––1144. [57] G. Alain and Y. Bengio, “What regularized auto-encoders learn from the data-generating distribution,” J. Mach. Learn. Res., vol. 15, no. 1, p. 3563–3593, 2014. [58] J. Evermann, J. Rehse, and P. Fettke, “A deep learning approach for predicting process behaviour at runtime,” in Proceedings of the 14th International Business Process Management Workshops (BPM 2016), ser. Lecture Notes in Business Information Processing, vol. 281, 2016, pp. 327–338. [59] M. C. Mozer, “A focused backpropagation algorithm for temporal pattern recognition,” Complex Systems, vol. 3, 1989. [60] F. Gers, “Learning to forget: continual prediction with LSTM,” in Proceedings of the 9th International Conference on Artificial Neural Networks (ICANN '99). IEEE, 1999, pp. 850–855. [61] K. Cho, B. van Merri¨ enboer, C. Gulcehre, D. Bahdanau, F. Bougares, H. Schwenk, and Y. Bengio, “Learning phrase representations using RNN encoder–decoder for statistical machine translation,” in Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP 2014). Doha, Qatar: Association for Computational Linguistics, 2014, pp. 1724– 1734. [62] J. Chung, C. Gulcehre, K. Cho, and Y. Bengio, “Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling,” 2014. [63] W. Yin, K. Kann, M. Yu, and H. Sch¨ utze, “Comparative Study of CNN and RNN for Natural Language Processing,” 2017. [64] T. Luong, H. Pham, and C. D. Manning, “Effective approaches to attention-based neural machine translation,” in Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing (EMNLP 2015). Association for Computational Linguistics, 2015, pp. 1412–1421. [65] D. Bahdanau, K. Cho, and Y. Bengio, “Neural machine translation by jointly learning to align and translate,” in Proceedings of the 3rd International Conference on Learning Representations (ICLR 2015), 2015. [66] A. Graves, G. Wayne, and I. Danihelka, “Neural Turing Machines,” 2014. [67] A. Santoro, S. Bartunov, M. Botvinick, D. Wierstra, and T. Lillicrap, “One-shot Learning with Memory-Augmented Neural Networks,” 2016. [68] A. G. et al., “Hybrid computing using a neural network with dynamic external memory,” Nature, vol. 538, no. 7626, pp. 471– 476, 2016. [69] A. Krizhevsky, I. Sutskever, and G. E. Hinton, “ImageNet classification with deep convolutional neural networks,” Communications of the ACM, vol. 60, no. 6, pp. 84–90, 2017. [70] C. Szegedy, W. Liu, Y. Jia, P. Sermanet, S. Reed, D. Anguelov, D. Erhan, V. Vanhoucke, and A. Rabinovich, “Going deeper with convolutions,” in Proceedings of the 28th IEEE Conference on Com- Authorized licensed use limited to: UNIVERSIDADE DE SANTIAGO. Downloaded on November 22,2022 at 19:47:35 UTC from IEEE Xplore. Restrictions apply. 1939-1374 (c) 2021 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission. See http://www.ieee.org/publications_standards/publications/rights/index.html for more information. This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI 10.1109/TSC.2021.3139807, IEEE Transactions on Services Computing 18 puter Vision and Pattern Recognition (CVPR 2015). IEEE, 2015, pp. 1–9. [71] T. Mikolov, M. Karafi´ at, L. Burget, J. Cernock´ y, and S. Khudanpur, “Recurrent neural network based language model,” in Proceedings of the 11th Annual Conference of the International Speech Communication Association (INTERSPEECH 2010), T. Kobayashi, K. Hirose, and S. Nakamura, Eds. ISCA, 2010, pp. 1045–1048. [72] K. Weinberger, A. Dasgupta, J. Langford, A. Smola, and J. Attenberg, “Feature hashing for large scale multitask learning,” in Proceedings of the 26th Annual International Conference on Machine Learning (ICML 2009). ACM Press, 2009, pp. 1113–1120. [73] “Score normalization,” in Encyclopedia of Biometrics. Springer US, 2009, pp. 1134–1135. [74] W. J. Scheirer, A. Rocha, R. J. Micheals, and T. E. Boult, “Robust fusion: Extreme value theory for recognition score normalization,” in Proceedings of the 11th European Conference on Computer Vision (ECCV 2010), ser. Lecture Notes in Computer Science, vol. 6313. Springer, 2010, pp. 481–495. [75] A. Leontjeva, R. Conforti, C. D. Francescomarino, M. Dumas, and F. M. Maggi, “Complex symbolic sequence encodings for predictive monitoring of business processes,” in Proceedings of the 13th International Conference on Business Process Management (BPM 2015), ser. Lecture Notes in Computer Science, vol. 9253. Springer, 2015, pp. 297–313. [76] T. Mikolov, K. Chen, G. Corrado, and J. Dean, “Efficient estimation of word representations in vector space,” in 1st International Conference on Learning Representations, ICLR 2013, Scottsdale, Arizona, USA, May 2-4, 2013, Workshop Track Proceedings, Y. Bengio and Y. LeCun, Eds., 2013. [77] M. Peters, M. Neumann, M. Iyyer, M. Gardner, C. Clark, K. Lee, and L. Zettlemoyer, “Deep contextualized word representations,” in Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers). Association for Computational Linguistics, 2018. [78] J. T. Hancock and T. M. Khoshgoftaar, “Survey on categorical data for neural networks,” Journal of Big Data, vol. 7, no. 1, apr 2020. [79] B. Matthews, “Comparison of the predicted and observed secondary structure of t4 phage lysozyme,” Biochimica et Biophysica Acta (BBA) - Protein Structure, vol. 405, no. 2, pp. 442–451, 1975. [80] C. Willmott and K. Matsuura, “Advantages of the mean absolute error (MAE) over the root mean square error (RMSE) in assessing average model performance,” Climate Research, vol. 30, pp. 79–82, 2005. [81] A. Benavoli, G. Corani, J. Demsar, and M. Zaffalon, “Time for a change: a tutorial for comparing multiple classifiers through bayesian analysis,” J. Mach. Learn. Res., vol. 18, pp. 77:1–77:36, 2017. [82] J. Demsar, “Statistical comparisons of classifiers over multiple data sets,” J. Mach. Learn. Res., vol. 7, pp. 1–30, 2006. [83] B. Calvo and G. Santaf´ e, “scmamp: Statistical comparison of multiple algorithms in multiple problems,” The R Journal, vol. 8, no. 1, p. 248, 2016. [84] B. Calvo, J. Ceberio, and J. A. Lozano, “Bayesian inference for algorithm ranking analysis,” in Proceedings of the Genetic and Evolutionary Computation Conference Companion. ACM, jul 2018. [85] G. Corani, A. Benavoli, J. Demˇ sar, F. Mangili, and M. Zaffalon, “Statistical comparison of classifiers through bayesian hierarchical modelling,” Machine Learning, vol. 106, no. 11, pp. 1817–1837, may 2017. [86] M. Hutson, “Core progress in ai has stalled in some fields,” Science, vol. 368, no. 6494, pp. 927–927, 2020. [87] A. Berti, S. J. van Zelst, and W. M. P. van der Aalst, “Process mining for python (pm4py): Bridging the gap between process- and data science,” 2019. 8 BIOGRAPHIES EFR ´ EN RAMA-MANEIRO received the B.Eng. degree in computer engineering and the M.Sc. degree in Big Data from the University of Santiago de Compostela, Spain in 2018 and 2019 respectively. He is a Researcher and currently working toward the Ph.D. degree at the Centro Singular de Investigaci´ on en Tecnolox´ ıas Intelixentes, University of Santiago de Compostela. His research interests include process mining and deep learning. JUAN C. VIDAL received the B.Eng. degree in computer science from the University of La Coru˜ na, La Coru˜ na, Spain, in 2000, and the Ph.D. degree in artificial intelligence from the University of Santiago de Compostela (USC), Santiago de Compostela, Spain, in 2010, where he was an Assistant Professor with the Department of Electronics and Computer Science, from 2010 to 2017. He is currently an Associate Researcher with the Centro Singular de Investigaci´ on en Tecnolox´ ıas Intelixentes (CiTIUS), USC. His research interests include process mining, fuzzy logic, machine learning, and linguistic summarization. MANUEL LAMA received the Ph.D. degree in physics from the University of Santiago de Compostela, in 2000, where he is currently an Associate Professor of artificial intelligence. He has collaborated on more than 30 projects and research contracts financed by public calls, participating as a principal investigator in 20 of them. These activities were implemented in areas, such as process discovery, predictive monitoring, and management of dynamic processes. As a result of this research, he has published over 150 scientific articles with review process in conference and national and international journals. Authorized licensed use limited to: UNIVERSIDADE DE SANTIAGO. Downloaded on November 22,2022 at 19:47:35 UTC from IEEE Xplore. Restrictions apply.