scieee AI-readable full text Open interactive document viewer

Empowering conformance checking using Big Data through horizontal decomposition

Valencia Parra, Álvaro; Varela Vaca, Ángel Jesús; Gómez López, María Teresa; Carmona, Josep; Bergenthum, Robin

Abstract

Conformance checking unleashes the full power of process mining: techniques from this discipline enable the analysis of the quality of a process model through the discovery of event data, the identification of potential deviations, and the projection of real traces onto process models. In this way, the insights gained from the available event data can be transferred to a richer conceptual level, amenable for human interpretation. Unfortunately, most of the aforementioned functionalities are grounded in an extremely difficult fundamental problem: given an observed trace and a process model, find the model trace that most closely resembles to the trace observed. This paper presents an architecture that supports the creation and distribution of alignment subproblems based on an innovative horizontal acyclic model decomposition, disengaged from the conformance checking algorithm applied for their solution. This is supported by a Big Data infrastructure that facilitates the customised distribution of a gross amount of data. Experiments are provided that testify to the enormous potential of the architecture proposed, thereby opening the door to further research in several directions.

Full text

Information Systems 99 (2021) 101731 Contents lists available at ScienceDirect Information Systems journal homepage: www.elsevier.com/locate/is Empowering conformance checking using Big Data through horizontal decomposition Álvaro Valencia-Parraa, Ángel Jesús Varela-Vacaa,∗, María Teresa Gómez-Lópeza, Josep Carmonab, Robin Bergenthumc aDepartamento de Lenguajes y Sistemas Informáticos, Universidad de Sevilla, Spain1 bDepartment of Computer Science, Universitat Politècnica de Catalunya, Spain2 cFakultät für Mathematik und Informatik, FernUniversität in Hagen, Germany3 article info Article history: Received 1 March 2020 Received in revised form 17 November 2020 Accepted 24 January 2021 Available online 18 February 2021 Recommended by Gottfried Vossen Keywords: Conformance checking Decompositional techniques Big Data MapReduce abstract Conformance checking unleashes the full power of process mining: techniques from this discipline enable the analysis of the quality of a process model through the discovery of event data, the identification of potential deviations, and the projection of real traces onto process models. In this way, the insights gained from the available event data can be transferred to a richer conceptual level, amenable for human interpretation. Unfortunately, most of the aforementioned functionalities are grounded in an extremely difficult fundamental problem: given an observed trace and a process model, find the model trace that most closely resembles to the trace observed. This paper presents an architecture that supports the creation and distribution of alignment subproblems based on an innovative horizontal acyclic model decomposition, disengaged from the conformance checking algorithm applied for their solution. This is supported by a Big Data infrastructure that facilitates the customised distribution of a gross amount of data. Experiments are provided that testify to the enormous potential of the architecture proposed, thereby opening the door to further research in several directions. ©2021 Elsevier Ltd. All rights reserved. 1. Introduction By means of conceptual models, organisations tend to define complex business processes that must be followed to achieve their objectives [1]. Sometimes the corresponding processes are distributed across various systems, in which the majority of cases include human tasks, thereby inadvertently enabling the occurrence of unexpected deviations with respect to the (normative) process model. This is aggravated by the appearance of increasingly complex processes, where the observations are provided by heterogeneous sources, such as Internet-of-Things (IoT) devices involved in Cyber–physical Systems [2]. Conformance checking [3] techniques provide mechanisms to relate modelled and observed behaviour, so that the deviations ∗Corresponding author. E-mail addresses: [email protected] (Á. Valencia-Parra), [email protected] (Á.J. Varela-Vaca), [email protected] (M.T. Gómez-López), [email protected] (J. Carmona), [email protected] (R. Bergenthum). 1http://www.idea.us.es. 2https://www.cs.upc.edu. 3https://www.fernuni-hagen.de. between the footprints left by process executions and the process models that formalise the expected behaviour can be revealed. One of the major challenges in conformance checking is the alignment problem: given an observed trace σ, compute an end- to-end model run that more closely resembles σ. Computing alignments is an extremely difficult problem, with a complexity exponential in the size of the model or the trace [4]. Intuitively, computing an alignment requires a search through the state space of the model which, in certain cases implies an extensive exploration when the process model is large and/or highly concurrent. In order to face the challenge of computing alignments, the conformance checking community has proposed widely differing alternatives. Among these, we highlight decompositional techniques, which break the alignment problem into segments, whose solutions can be composed to reconstruct the final alignment [5– 8]. All these decompositional approaches feature a common strategy which involves decomposing the problem by means of vertical cuts of the process model, and then projecting the traces in the log accordingly in order to derive subtraces that only contain events of the alphabet corresponding to each model fragment. Although, in very particular cases (e.g., well-structured process models), the aforementioned decompositional approaches represent a significant alleviation of the alignment problem, they https://doi.org/10.1016/j.is.2021.101731 0306-4379/©2021 Elsevier Ltd. All rights reserved. Á. Valencia-Parra, Á.J. Varela-Vaca, M.T. Gómez-López et al. Information Systems 99 (2021) 101731 Fig. 1. Functional description of the Big Data architecture to compute alignments. rely on very stringent conditions (e.g., model fragments should agree on the alphabet at the frontiers), and provide weak guarantees (e.g., necessary conditions for deriving an alignment), which hamper them from being applied in general. In this paper, we step back from the decompositional approach, and focus on working at a more abstract, architectural level. As earlier mentioned, normally the complexity of computing the alignment problem has been addressed by means of the horizontal and vertical decomposition techniques [9]. We propose a Big Data infrastructure focused on a specific horizontal decomposition, which involves the unfolding of process models, and employing the MapReduce paradigm [10] for the decomposition and aggregation. At first sight, our functional strategy (depicted in Fig. 1) will not bring any new ideas to the landscape of decompositional techniques: the process model is decomposed into a set of partial models, and traces in the log are projected into subtraces. These two types of elements are then distributed and their partial solutions are composed to aggregate a final alignment. This distribution of the problem may facilitate the simplification of the problem, by splitting the conformance analysis into partial models (with smaller search spaces) and subtraces across several nodes (Map), and combining the partial alignments4obtained from different algorithms in the nodes (Reduce). The general idea of applying MapReduce for conformance checking is not new, as is analysed in the related work section. However, the Big Data [11] framework proposed in this paper is innovative for the following reasons: •A new decomposition is proposed, which differs from the aforementioned approaches in one important feature: instead of a vertical cut, it is based on horizontal, end-to-end cuts that can be obtained by what we call acyclic cover, which originates from a partial order representation of the initial process model. The horizontal decomposition of the model limits the search space dividing the model into its possible execution models, and analysing the alignment with every trace. However, in the vertical decomposition, both traces and the model are fragmented, thereby reducing the search space for each part of the model and each trace fragment. •The framework enables the construction, distribution, and parallelisation of the computing alignment between different nodes in a Big Data environment to be tuned in 4Partial alignment means the computation of the alignment for a partial model and a subtrace. accordance with the features of the problem and the available requirements. Moreover, the application of heuristics is proposed to optimise the resolution of the subproblems. •It enables us to choose and customise the conformance checking algorithm, by making it possible to compute the alignment with different techniques. In this case, we have used the A* algorithm as a classic solution, and the Constraint Programming Paradigm [12] as a new solution, in order to show how different types of alignment algorithms can be applied in the distributed paradigm. •The development of a practicable infrastructure based on Big Data represents a leap forward in the resolution of conformance checking problems of a more complex nature, and reduces the resource limitations of the current solutions evaluated locally. The paper is organised as follows: Section 2analyses the related work. Section 3includes the necessary foundations to understand the state of the art and the proposal. Section 4deter- mines how the use of Big Data techniques provides mechanisms for the partitioning and distribution of the computation of the conformance checking analysis. Section 5describes how the A* algorithm and Constraint Programming can be applied to traces that represent the acyclic horizontal partial models. Section 6 depicts the experiments carried out to evaluate our proposal, and finally, Section 7presents the conclusions. 2. Related work The seminal work in [4] proposed the notion of alignment and developed a technique based on A∗to compute optimal alignments for a particular class of process models. Improvements of this approach have been presented recently in various papers [13,14]. These approaches represent the state-of-the-art technique for computing alignments, and can be adapted (at the expense of a significant increase in the memory footprint) to provide all optimal alignments. Alternatives to A∗have appeared in recent years: in the approach presented in [15], the alignment problem is mapped as an instance of automated planning. Automata-based techniques have also appeared [16,17]. The techniques in [16] (and recently extended in [18]) rely on state-space exploration and determination of the automata corresponding to both the event log and the process model, whilst the technique in [17] is based on computing several subsets of activities and projecting the alignment instances accordingly. In spite of the significant progress made, the aforementioned techniques still have problems in dealing with large inputs. The work in [19] presents the notion of approximate alignment to alleviate computational demands by proposing a recursive paradigm on the basis of the structural theory of Petri nets. In spite of its resource efficiency, the solution is not guaranteed to be executable. Alternatively, the technique in [20] presents a framework to reduce a process model and the event log accordingly, with the goal of alleviating the computation of alignments. The obtained alignment, called macro-alignment since some of the positions are high-level elements, is expanded based on the information gathered during the initial reduction. Techniques using a local search have also recently been proposed [21]. Although the approximate techniques can provide solutions where exact/optimal techniques fail, they only provide certain guarantees for very restricted classes of models. Against this background, the process mining community has focused on dividing and conquering the problem of computing alignments as a valid alternative to this problem, with the aim of alleviating its complexity without degrading the quality of the solutions found. Our focus now turns to decompositional 2 Á. Valencia-Parra, Á.J. Varela-Vaca, M.T. Gómez-López et al. Information Systems 99 (2021) 101731 approaches towards the computation of alignments, which are more closely related to the research of this paper. Decompositional techniques have been presented [5–7] which, instead of computing optimal alignments, focus on the crucial problem of whether a given trace fits a process model. These techniques vertically decompose the process model into pieces that satisfy certain conditions. Therefore, only valid decompositions [5], which satisfy restrictive conditions on the labels and connections forming a decomposition, guarantee the derivation of a real alignment. The notion of recomposition has since been proposed on top of decompositional techniques, in order to obtain optimal alignments whenever possible by modifying the decomposition (typically by merging sets) when the required conditions are not met [8]. In contrast to the aforementioned vertical decomposition techniques, our methodology does not require this last modification of partial solutions, and therefore can provide a fast alternative to these methods at the expense of losing the guarantee of optimality. There has also been related work on the use of partial order representations of process models for the computation of alignments. In [22], unfoldings are employed to capture all possible transition relations of a model so that they can be used for online conformance checking. In contrast, unfoldings were used recently in a series of papers [23,24] to significantly accelerate the computation of alignments. We believe that these approaches, especially the latter two, can easily be integrated into our framework. The work of [18] can also be considered a decompositional approach since it proposes decomposing the model into sequential elements (S-components) so that the state-space explosion of having concurrent activities is significantly alleviated. This work is compatible with the framework suggested in this paper since the model restrictions assumed in [18] are satisfied by the partial models arising from our horizontal decomposition. Finally, the MapReduce distributed programming model has previously been considered for process mining. For instance, Evermann applies it to process discovery [25], whilst [26] applies it for monitoring declarative business processes. 3. Foundations We denote ⊥as the empty set. Let Abe a set of elements, and we denote A∗as the set of all sequences over elements of A. Let a,b∈(A∪{⊥})∗be two sequences. We denote a⊥ as the sequence a, but omit all elements ⊥from a. We write aˆ=bif a⊥ =b⊥ holds. 3.1. Process models In this paper, we describe process models and partial models by means of labelled Petri nets. Definition 1 (Labelled Petri Net).A labelled Petri net is a tuple (P,T,F,Σ, ℓ) where Pand Tare finite disjoint sets of places and transitions, respectively, F:(P×T)∪(T×P)→ {0,1}is the flow-relation, Σis the alphabet, and ℓ:T→Σ∪ {⊥} is the labelling function. Fig. 2 depicts a labelled Petri net. Places are represented by circles and transitions by rectangles. Every transition has a unique name and a label on top. Places and transitions are connected in accordance with the flow-relation. In Petri nets, there is the so-called firing rule. Transitions of a Petri net can be fired, thereby changing the state of the net. Fig. 2. A labelled Petri net. Definition 2 (Firing Rule).Let N=(P,T,F,Σ, ℓ) be a labelled Petri net. A function m:P→N0is a marking of N. We define, •t:P→ {0,1}as •t(p):= F(p,t), and t• : P→ {0,1}as t•(p):= F(t,p). A transition t∈Tis enabled at marking mif m≥ •tholds. If transition tis enabled, then transition tcan be fired. In this case, we write m[t⟩. Firing tchanges the marking m to m′:= m− •t+t•. In this case, we write m[t⟩m′. We depict a marking by putting black dots, called tokens, in the places of the marking. For example, Fig. 2 depicts the initial state of the labelled Petri net. The initial marking only contains place ionce. In this marking, only transition t1, labelled as A, is enabled. Firing t1leads to the marking where idoes not carry a token, and both places in the post-set of t1each carry a token. Starting at the initial marking, sequentially enabled sequences of transitions are words of the language of the Petri net. The related traces of labels are the so-called trace-language. Definition 3 (Language of a Petri Net).Let N=(P,T,F,Σ, ℓ) be a labelled Petri net. A marked Petri net is a tuple (N,m0,mf) where m0is the initial marking and mfis the final marking. A sequence ⟨t1,...,tn⟩∈T∗is a firing sequence. If there is a sequence of markings ⟨m1,...,mn+1⟩such that m1[t1⟩m2,m2[t2⟩m3,. . ., mn[tn⟩mn+1holds, we can write m1[t1,...,tn⟩mn+1. L(N):= {⟨t1,...,tn⟩∈T∗|m0[t1,...,tn⟩mf} T(N):= {σ∈Σ∗|⟨t1,...,tn⟩∈L(N)∧σˆ=⟨ℓ(t1), . . . , ℓ(tn)⟩} L(N) is the language of N;T(N) is the trace-language of N. In Fig. 2, if we assume the final marking where only place f carries one token, for example ⟨t1,t2,t3,t6,t7⟩and ⟨t1,t2,t3,t5, t4,t2,t3,t7⟩are words of the language, and ⟨A,B,C,F,G⟩and ⟨A,B,C,E,D,B,C,G⟩are the related traces. 3.2. Conformance checking Event logs record the behaviour observed from the execution of a business process. Definition 4 (Trace, Event Log).Let Σbe an alphabet. A sequence σ∈Σ∗is a trace. A multi-set of traces L:Σ∗→N0is an event log. The classic notion of aligning an event log and a process model was introduced by [4]. An alignment maps a trace of an event log to a firing sequence of the model. An alignment replays the trace and the firing sequence simultaneously, where either the trace, the firing sequence, or both move. Trace and sequence are allowed to move synchronously only if the label of the transition matches the event. We consider the Petri net depicted in Fig. 2 with initial state i and final state f. By aligning the Petri net to the trace ⟨A,A,B,C, 3 Á. Valencia-Parra, Á.J. Varela-Vaca, M.T. Gómez-López et al. Information Systems 99 (2021) 101731 D,B,C,G⟩for instance, we obtain numerous possible alignments, where moves of the trace are at the top, and moves of the model are at the bottom of a table. A A B C D B C ⊥G t1⊥t2t3t4t2t3t5t7 A A B C D B ⊥C G t1⊥t2t3t4t2t5t3t7 A A B C D B ⊥C G ⊥t1t2t3t4t2t6t3t7 . . . Definition 5 (Alignment).Let N=(P,T,F,Σ, ℓ, m0,mf) be a marked Petri net, σbe a trace of an event log L:Σ∗→N0, and τ∈L(N) be a firing sequence. The set M:= {(a,t)∈(Σ×T)|ℓ(t)=a} ∪ (Σ× {⊥})∪({⊥} × T) is the set of legal moves. An element ⟨(a1,t1),...,(an,tn)⟩∈M∗ is an alignment of σand τiff ⟨a1,...,an⟩ˆ=σand ⟨t1,...,tn⟩ ˆ=τholds. We define a cost-function to attain a cost for every alignment. Every move of an alignment adds to its cost, where asynchronous moves add greater cost than synchronous moves [4]. Definition 6 (Cost-Function).Let N=(P,T,F,Σ, ℓ) be a labelled Petri net and let L:Σ∗→N0be an event log. Let 0 ≤δ1< δ2, δ3 hold. We define the cost-function λδ1,δ2,δ3:M∗→N0as follows: for every alignment α=⟨(a1,t1),...,(an,tn)⟩∈M∗, we define λ(α)δ1,δ2,δ3:= δ1· |{(a,t)∈α|a=ℓ(t)}| +δ2· |{(a,⊥)∈α}| +δ3· |{(⊥,t)∈α}| We fix a cost-function to calculate a so-called optimal alignment between a trace of an event log and a process model. An optimal alignment is an alignment with a lowest cost. In the previous example, if we define the cost of an asynchronous move as 1 and the cost of a synchronous move as 0, then the depicted alignments have a cost of 2. 4. Computing conformance checking with big data 4.1. Overview of the approach The fundamental problem in conformance checking involves aligning a trace concerning a process model [3]. This problem, known as the alignment problem, is a search (which can be highly time-consuming) to find a model trace similar (according to a cost-function) to the observed trace. Please refer to Section 2for a complete overview of the current approaches for computing alignments. Derived from the complexity of the alignment problem, we present a solution based on the creation of simpler problems that can be distributed on a Big Data architecture that aims to facilitate the computation of alignments on a grand scale. In this paper, we assume both process models and logs can be decomposed so that we can take advantage of a Big Data infrastructure, and therefore the fundamental problem of computing an alignment can be distributed over the infrastructure in a MapReduce fashion [10]. As will be observed see in Section 5, to instantiate the architecture for a real situation, we build upon our previous work [12] and the case of a partial order decomposition of a process model (see Section 4.2). However, while the architecture presented in this section is not tied to any particular conformance checking algorithm, the decomposition technique must be based on the extraction of subtraces and the unfolding of a process model into partial models through horizontal decomposition. Other decompositional approaches available in the literature [5– 7] might be employed, but lead to changes in the way in which the Generate partitions of Problems,Map, and Reduce activities are implemented. Furthermore, it should be borne in mind that other decompositional approaches must be capable of forming partitions so that these can be distributed among the nodes of the cluster. In order to determine each of these parameters that describe how the subproblems are created, distributed, solved, and combined, Fig. 3 summarises the workflow followed in our approach. Since our proposal is not hooked to a specific alignment algorithm, it has been tested with two very different algorithms to analyse how the type of conformance technique algorithms can affect the Map and Reduce stages. In the first phase, the alignment algorithm is determined, as are the subtraces5and partial models. These are obtained through the unfolding process, which applies a horizontal decomposition technique. Once these aspects are defined, a subtrace and partial model pre-processing are needed (see Pre-process traces and partial models) to determine certain features used in the heuristics for the subsequent problem distribution. The system is then set up (see Setting parameters and heuristics) in terms of the number of partitions (set of alignment subproblems) to be distributed in each node, the subproblem assignations to each node according to the parameters obtained from the previous activity, the thresholds of time used for solving each subproblem, and the threshold of memory in the nodes of each cluster. When the parameters are configured, the MapReduce paradigm can be applied following the following three activities: Generate partitions of problems,Map — Distribution and compute partitions, and Reduce — Combine results. These are given in detail in Sections 4.2,4.3, and 4.4, respectively. The framework follows the idea of the MapReduce paradigm as depicted in Fig. 4. The input of the problem is the set of alignment problems formed of a combination of a subtrace and a partial model. These alignment problems will be distributed in different divisions solved in each node, where the Map function is applied obtaining a map ⟨key, value⟩whose key is the trace and the value is the alignment found for the set of traces involved in this subproblem. All the partial solutions represented by maps are then combined. Our framework provides a mechanism to set up the parameters to perform the alignment analysis in a more efficient way. Therefore, after a solution is found, the parameters (i.e., timeout and number of partitions) can be adjusted to re-execute the alignment analysis, thereby reducing the time. 4.2. Generate partitions of problems As indicated in Section 1, we aim to alleviate the complexity of a conformance checking problem by dividing a model into a set of partial models. A partial model covers a part of the behaviour of the original model. Furthermore, a partial model needs to be acyclic and conflict-free. Finally, it should be borne in mind that the approach assumes that partial models are generated through horizontal decomposition. 5As the reader will identify later, in this paper we use the term subtrace to stress the fact that the methodology proposed is general, although, in our particular explanations, subtraces will be full traces. 4 Á. Valencia-Parra, Á.J. Varela-Vaca, M.T. Gómez-López et al. Information Systems 99 (2021) 101731 Fig. 3. Workflow of the approach. Fig. 4. MapReduce for alignment analysis. Definition 7 (Partial Model, Cover).Let N=(P,T,F,Σ, ℓ, m0,mf) and N′=(P′,T′,F′,Σ′, ℓ′,m′ 0,m′ f) be two marked Petri nets. N′is conflict-free iff (m[t1⟩m′∧m[t2⟩)H⇒ m′[t2⟩holds. We call N′a partial model of Niff N′is conflict-free, acyclic, and T(N′)⊆T(N) holds. We call a set of partial models {N1,...,Nn} a cover of Niff ⋃iT(Ni)=T(N) holds. In this respect, a partial alignment is the computation of the alignment of a partial model. Fig. 5 depicts a partial model of Fig. 2. The depicted marked Petri net is conflict-free, acyclic, and its trace-language is {⟨A,B, C,E,G⟩,⟨A,B,E,C,G⟩,⟨A,E,B,C,G⟩}. Obviously, this tracelanguage is a sub-set of the trace-language of Fig. 2.Fig. 6 depicts another partial model. In this example, transitions t2and t5carry the label B, while transitions t3and t6carry the label C. Thus, the loop of Fig. 2 is unfolded. One straightforward approach to splitting a Petri net into a cover is to calculate its branching process [27]. It is well-known that the set of so-called process nets of a branching process is a cover. It should be borne in mind that the branching process itself can be infinite, but given the maximal length of a trace of the log, we can always determine a sufficient depth to calculate an appropriate prefix of a cover for the alignment problem at hand. In the literature, there is a rich body of approaches to calculating finite representations of an infinite branching process in a reasonable time [28]. Fig. 5. A partial model of Fig. 2. Fig. 7 depicts a prefix of the branching process of the model of Fig. 2. This acyclic labelled net is able to execute all traces up to length seven of the original model. It is a prefix because the looping behaviour of transitions B,C, and Dgenerate infinite behaviour. In a branching process, a model is unfolded so that all places have at most one preceding transition, for instance, the two places (see p5and p10) behind transitions labelled by Eand F. In Fig. 2, this pair is only one place (see p5). The same holds for all places before transitions labelled by Band places behind transitions labelled by D. In the original model, they are just one place (see p1in Fig. 2). Thus, conflicts and cycles are unfolded. Every connected subnet of a branching process, whereby all places have at most one subsequent transition, is called an occurrence net. For example, the set of transitions {t1,t2,t3,t5,t7}, with all connected places, form the partial model of Fig. 5. Transitions {t1,t2,t3,t4,t6,t8,t10,t13}are the partial model of Fig. 6. 5 Á. Valencia-Parra, Á.J. Varela-Vaca, M.T. Gómez-López et al. Information Systems 99 (2021) 101731 Fig. 6. Another partial model of Fig. 2. Fig. 7. A prefix of the branching process of Fig. 2. The use of occurrence nets of branching processes constitutes only one of many possibilities for the horizontal decomposition of a model. Log-based unfolding [29] and token flow-based unfolding [28] can generate similar decompositions. In the more general setting of the paper, the set of partial models is required to be given as a set of acyclic, conflict-free marked Petri nets. Every trace of a partial model can be replayed by its original model. Thus, for every alignment of the partial model, there is a related alignment in the original model that incurs the same cost. For example, the firing sequence ⟨t1,t2,t3,t4,t5,t7,t6,t8⟩of the partial model depicted in Fig. 6 can be replayed by the original model depicted in Fig. 2 by ⟨t1,t2,t3,t4,t2,t6,t3,t7⟩. Obviously, related (replayed) alignments have the same cost: A A B C D B ⊥C G ⊥t1t2t3t4t5t7t6t8 ↑↑↑↑↑↑↑↑↑ ⊥t1t2t3t4t2t6t3t7 If a set of partial models covers a Petri net, then, for every alignment of the original model, there exists a partial model covering each alignment. This holds true since the set of partial models can replay every trace of the original model. An optimal alignment can be therefore be calculated for the original model by calculating an optimal alignment for the set of partial models. The division of the problem into smaller partitions forms the base of the application of the MapReduce paradigm. It is therefore necessary to tackle the problem of partitioning an alignment problem (AP) into a set of subproblems by distributing the set of traces of an event log and the set of partial models extracted from a process model. Firstly, and Fig. 3, the process model and log are decomposed into subtraces and partial models that can be analysed independently, thereby obtaining the alignment in a more efficient way. Definition 8 (Decomposition, Alignment Subproblem).Let AP be an alignment problem aligning a set of traces Tr = {tr1,tr2,...,trn} to a model M. Let Pm = {pm1,pm2,...,pmm}be a cover of M. We call every element pr ∈(Tr ×Pm) an alignment subproblem. We write AP =(Tr ×Pm) and call (Tr ×Pm) a decomposition of AP into n·msubproblems. Fig. 8. Partitions and sets of subproblems. In an ideal scenario with unlimited resources, each alignment subproblem could be solved independently and in parallel. In this case, the total run-time needed to solve AP would be the time spent on the most complex subproblem plus the time spent combining the partial alignments. Here, we would need as many nodes as subproblems to process all subproblems in parallel. In real-life applications, the number of subproblems is much too high to simply generate a node for every problem. Thus, subproblems need to share nodes. To control the distribution of subproblems to nodes, the set of all possible subproblems is partitioned into groups of subproblems that share the same features. Features are made up of the involved trace and partial alignments 6 Á. Valencia-Parra, Á.J. Varela-Vaca, M.T. Gómez-López et al. Information Systems 99 (2021) 101731 Fig. 9. Activity diagram to describe the Map algorithm. calculated in other subproblems. How to properly group and distribute subproblems to calculate solutions efficiently is analysed below. Definition 9 (Partitions).Let Tr be a set of traces. We call a set of disjoint sets of traces {Tr1,Tr2,...,Trn} a partition of Tr if Tr =⋃n i=1Triholds. Let Pm be a set of partial models. We call a set of disjoint sets of partial models {Pm1,Pm2,...,Pmm} apartition of Pm if Pm =⋃m i=1Pmiholds. Let Tribe a set of the partition of Tr and let Pmjbe a set of the partition of Pm. We call pr(i,j):= (Tri×Pmj) a partition of the alignment subproblems. Partitions pr(i,j)define sets of alignment subproblems. When each alignment subproblem (Tri×Pmj) is solved, a partial alignment is obtained. Figure schematically 8depicts partitions of Tr and Pm and the resulting sets of alignment subproblems. In the next subsection, we will discuss the distribution of every partition of alignment problems following the MapReduce strategy [10], which is a programming model to support parallel computing for large collections of data. 4.3. Map - Distribute and compute alignment problem partitions The Map function is based on solving smaller problems, thereby obtaining partial solutions for their subsequent combination. The algorithm used in the map function is represented in Fig. 9. It receives a partition of subproblems and creates a dictionary of partial solutions with default values. For each subproblem, it then makes a lower-bound estimation for the possible alignment that can be taken before it is solved. This estimation is employed to sort the subproblems to solve in the same partition (sequentially solved). The estimation is obtained by comparing model and trace: (1) checking the size of the trace w.r.t. the maximum number of events that can be extracted from the submodel (e.g., if the trace has 100 events and the longest trace generated by the submodel is 90, then the alignment (see Definitions 5 and 6) must be at least 10); (2) the events that occur in the trace but not in the model and vice versa; and (3) considering the number of occurrences of events with regard to the submodel (e.g., if the event A is repeated three times in the 7 Á. Valencia-Parra, Á.J. Varela-Vaca, M.T. Gómez-López et al. Information Systems 99 (2021) 101731 trace but only twice in the submodel, then the alignment cost must be at least 1). These values are calculated and aggregated to generate an estimation as the lowest value that the alignment can take. If an alignment subproblem discovers better alignment than the estimation for the same trace, then it is illogical to evaluate the remaining subproblems with an inferior estimation. The partition of subproblems is then sorted by estimation in ascending order. Sorting is crucial for the optimisation of the execution time since it prevents the alignment process from executing subproblems that would fail to provide an improvement of the best alignment found up to that moment (see Note 1 in Fig. 9). If a new alignment is obtained, then the partial solution associated with that trace is updated if the new alignment value is better than the previous value (see Note 2 in Fig. 9). Note that the partial solutions have an attribute called isOptimal. This will be true when it is possible to guarantee that the solution associated with this trace is the optimal solution (note that the notion of non-optimality is introduced due to the existence of a timeout, which prevents the search space from being searched in its entirety). If the isOptimal attribute of any of the subproblems that were executed is marked as false due to the timeout being reached, then we cannot guarantee that the solution to any other subproblem associated to that trace is the optimal solution, because any other subproblem with a better previously executed estimation value could have returned a better alignment value if the timeout had not been reached. In order to illustrate the algorithm, Fig. 10 presents the iteration of the partition presented in Fig. 9. At this point, it should be borne in mind that the partitions are already sorted by estimation. There are four elements to process, and hence, there are four iterations. In Iteration 1, the subproblem ⟨tr1,pm2⟩is processed. The alignment process is then executed because the estimation yields a value of 2, which could improve the partial solution found until the moment (∞). Once the alignment value (6) has been computed, the partial solution for tr1⟨tr1,pm2,6,true⟩is stored. In Iteration 2, we have a similar situation with ⟨tr2,pm1⟩, where the partial solution is also updated after obtaining an alignment of 5. However, the timeout was fired, and therefore the alignment cannot be guaranteed to be optimal (⟨tr2,pm1,5,false⟩). However Iteration 3 does not execute the alignment process nor update the partial solution previously obtained for tr1, since the estimation for the subproblem ⟨tr1,pm1⟩is greater than the best optimal computed alignment. In Iteration 4, the same situation arises, and hence the partial solution formerly found for tr2 is not updated. 4.4. Reduce - Combining alignment problem result The Reduce phase is responsible for combining the partial solutions that are generated during the Map phase. Each partition yielded a set of partial solutions, with the following information: trace, partial model, alignment value, and an indicator pointing out whether the solution is optimal or if it is impossible to ensure that the alignment obtained is the optimal solution. In this phase, all the partial solutions corresponding to the same trace are combined, and that with the best alignment value is selected as the best solution for such a trace. Fig. 11 depicts the Reduce process, and includes some partial solutions to show the execution. The proposal is based on the function known as reduceByKey, which groups data in terms of the key of the data provided by the map function, and then applies a function in order to combine the values associated with each key. For the alignment problem, the Reduce phase groups the partial solutions with the same key (i.e., with the same trace), and combines every partial solution in the same group, thereby obtaining another partial solution. Following the example of Fig. 11, the tuples of Partial Solutions 1 and 2 are grouped according to their trace (tr1 and tr2). The tuples in each of these groups are combined returning a single tuple in each case. The new obtained partial solution follows the form: •trace: the trace that was employed to create the groups and is shared by every tuple in the group. •partial model: the partial model whose alignment is minimal for that trace. •alignment: the minimal alignment of every tuple. •isOptimal: the ∧combination of the isOptimal values of every tuple. This means that if it is false for a tuple, then the other tuples related to the same trace will also be marked as false, since it is impossible to ensure that the found alignment is optimal because the problem has not been fully analysed. 5. Interchangeable solutions for encoding alignment The MapReduce algorithm presented in the previous section can be applied to various types of alignment techniques, subtraces, and partial models. Several algorithms that have tackled the conformance checking problem in the context of business processes (see Section 2for a full description). In this section, two such algorithms are included: the A* algorithm as an example of a classic algorithm developed by other authors [4]; and a new implemented solution based on the Constraint Programming Paradigm. These two algorithms have the same objective (i.e., to discover the alignment). However, we have included the Constraint Programming Paradigm since it enables certain special features to be incorporated, such as restricting the domain of the possible value where the alignment can be found, and determining a maximum time of resolution per subproblem that returns the best solution found up until the timeout. 5.1. Alignment based on the A* algorithm One of the most relevant solutions to computing alignments found in the literature is the A* algorithm [4]. It has been successfully employed as a feasible approximation to discover the optimal alignment between the process model and traces [3]. Essentially, the model and trace are combined into a synchronous product. Fig. 12 illustrates the synchronous product, and presents the partial model, obtained from a cover (see Definition 7) given in Fig. 6, and the log trace:⟨A,B,E,D,C,B,C,F,G⟩. The simplest way to compute alignment is to build the reachability graph (see Definition 7, [3]) from the synchronous product, and then to deduce the shortest path from the initial marking to the final marking. However, the construction of the full reachability graph is not always possible due to the state space explosion problem. To overcome this problem, the reachability graph is built in pieces. The A* algorithm is efficiently used (see Chapter 7.3, Procedure 2 [3]) to compute the shortest path. The core of the A* algorithm relies on a heuristic function, f(m)= g(m)+h(m), which guides the search, where g(m) is the cost of the path from the initial marking to m. For instance, for any reachable state m, A* must determine h(m)≤h∗(m), where h∗(m) is the shortest path from mto the final marking. There are cases in which A* fails to compute the alignments since it is highly complex and time-consuming (e.g., in models with a very high levels of parallelism [18]). Our approach integrates the implementation of the A* algorithm provided by the Python library PM4Py.6 6PM4Py: https://pm4py.fit.fraunhofer.de/. 8 Á. Valencia-Parra, Á.J. Varela-Vaca, M.T. Gómez-López et al. Information Systems 99 (2021) 101731 Fig. 10. Execution trace of the Map function. Fig. 11. Execution trace of the Reduce function. Fig. 12. Example of synchronous product of model and trace. 5.2. Alignment based on constraint programming The Constraint Programming paradigm is a general-purpose technique that can be applied to optimise problems. Since the alignment problem is an optimisation problem that can be distributed, the incorporation of this new solution in our framework is considered to be relevant as an evolution of a previous proposal [12]. Moreover, since the alignment computation can be modelled as a variable and restrictions whose domain can be bounded, and thanks to the decomposition of the model into submodels, we consider it relevant to analyse how the former resolution of subproblems can be used to tighten the possible domain for the analysis in further resolutions. The partial model, obtained from a cover (see Definition 7) given in Fig. 6, and the log trace:⟨A,B,E,D,C,B,C,F,G⟩, are used as a running example to illustrate the encoding based on Constraint Programming. The partial model can contain concurrent paths, that is, there would be and-splits that divide the execution into various branches that can be executed in parallel. In our approach, the computation of the alignment problem of a log trace and a partial model is encoded as a Constraint Problem for the reduction in running time and resources of the proposal presented in [12]. Thus, the information extracted from the partial model and the trace, such as the name of transitions, events, the execution, order and their possible positions, are translated into variables, constraints, and an objective function of a Constraint Optimisation Problem (COP). The horizontal decomposition can ensure that the resulting partial models contain 9 Á. Valencia-Parra, Á.J. Varela-Vaca, M.T. Gómez-López et al. Information Systems 99 (2021) 101731 From this analysis of the experiments, it is possible to find examples where a local solver is more efficient, but for other examples, the distribution of the problem is more efficient than the local. By comparing the two algorithms in distributed scenarios, it is possible to pinpoint the problem areas where each algorithm can find a better solution or take a shorter time. This is why we plan to carry out a more in-depth analysis of the features of the models and logs in order to characterise the problems in terms of ascertaining which performs better before computing the alignments. Declaration of competing interest The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper. Acknowledgements This work has been partially funded by the Ministry of Science and Technology of Spain ECLIPSE (RTI2018-094283-B-C33) project, the European Regional Development Fund (ERDF/FEDER), MINECO, Spain (TIN2017-86727-C2-1-R), and by the University of Seville, Spain with VI Plan Propio de Investigación y Transferencia (VI PPIT-US). Disclosure All the authors are responsible for the concept of the paper, the results presented and the writing. All the authors have approved the final content of the manuscript. No potential conflict of interest was reported by the authors. References [1] M. Dumas, W.M.P. van der Aalst, A.H.M. ter Hofstede, Process-Aware Information Systems: Bridging People and Software Through Process Technology, Wiley, 2005, URL: http://eu.wiley.com/WileyCDA/WileyTitle/ productCd-0471663069.html. [2] H. Roehm, J. Oehlerking, M. Woehrle, M. Althoff, Model conformance for cyber-physical systems: A survey, TCPS 3 (2019) 30:1–30:26, http: //dx.doi.org/10.1145/3306157. [3] J. Carmona, B.F. van Dongen, A. Solti, M. Weidlich, Conformance Checking - Relating Processes and Models, Springer, 2018, http://dx.doi.org/10.1007/ 978-3-319-99414-7. [4] A. Adriansyah, Aligning Observed and Modeled Behavior (Ph.D. thesis), Technische Universiteit Eindhoven, 2014. [5] W.M.P. van der Aalst, Decomposing Petri nets for process mining: A generic approach, Distrib. Parallel Databases 31 (2013) 471–507, http://dx.doi.org/ 10.1007/s10619-013-7127-5. [6] J. Munoz-Gama, J. Carmona, W.M.P. van der Aalst, Single-entry singleexit decomposed conformance checking, Inf. Syst. 46 (2014) 102–122, http://dx.doi.org/10.1016/j.is.2014.04.003. [7] H.M.W. Verbeek, W.M.P. van der Aalst, Merging alignments for decomposed replay, in: F. Kordon, D. Moldt (Eds.), Application and Theory of Petri Nets and Concurrency: 37th International Conference, PETRI NETS 2016, Toruń, Poland, June 19-24, 2016; Proceedings, Springer International Publishing, Cham, 2016, pp. 219–239, http://dx.doi.org/10.1007/978-3-319-39086-4_14. [8] W.L.J. Lee, H.M.W. Verbeek, J. Munoz-Gama, W.M.P. van der Aalst, M. Sepúlveda, Recomposing conformance: Closing the circle on decomposed alignment-based conformance checking in process mining, Inform. Sci. 466 (2018) 55–91, http://dx.doi.org/10.1016/j.ins.2018.07.026. [9] W.M.P. van der Aalst, Distributed process discovery and conformance checking, in: J. de Lara, A. Zisman (Eds.), Fundamental Approaches to Software Engineering, Springer Berlin Heidelberg, Berlin, Heidelberg, 2012, pp. 1–25. [10] J. Dean, S. Ghemawat, MapReduce: Simplified data processing on large clusters, in: E.A. Brewer, P. Chen (Eds.), 6th Symposium on Operating System Design and Implementation (OSDI 2004), USENIX Association, San Francisco, 2004, pp. 137–150, URL: https://ai.google/research/pubs/pub62. [11] S. Sakr, Z. Maamar, A. Awad, B. Benatallah, W.M.P. van der Aalst, Business process analytics and big data systems: A roadmap to bridge the gap, IEEE Access 6 (2018) 77308–77320, http://dx.doi.org/10.1109/ACCESS.2018. 2881759. [12] M.T. Gómez-López, D. Borrego, J. Carmona, R.M. Gasca, Computing alignments with constraint programming: The acyclic case, in: Proceedings of the International Workshop on Algorithms & Theories for the Analysis of Event Data 2016 Satellite event of the conferences (ATAED) 2016, Torun, Poland, June 20-21, 2016, 2016, pp. 96–110. URL: http://ceur-ws.org/Vol- 1592/paper07.pdf. [13] B.F. van Dongen, J. Carmona, T. Chatain, F. Taymouri, Aligning modeled and observed behavior: A compromise between computation complexity and quality, in: Advanced Information Systems Engineering - 29th International Conference, Essen, Germany, June 12-16, 2017, 2017, pp. 94–109. [14] B.F. van Dongen, Efficiently computing alignments - using the extended marking equation, in: Business Process Management - 16th International Conference, BPM 2018, Sydney, NSW, Australia, September 9-14, 2018, Proceedings, 2018, pp. 197–214. [15] M. de Leoni, A. Marrella, Aligning real process executions and prescriptive process models through automated planning, Expert Syst. Appl. 82 (2017) 162–183. [16] D. Reißner, R. Conforti, M. Dumas, M.L. Rosa, A. Armas-Cervantes, Scalable conformance checking of business processes, in: OTM CoopIS, Rhodes, Greece, 2017, pp. 607–627. [17] S.J.J. Leemans, D. Fahland, W.M.P. van der Aalst, Scalable process discovery and conformance checking, Softw. Syst. Model. 17 (2018) 599–631, http: //dx.doi.org/10.1007/s10270-016-0545-x. [18] D. Reißner, A. Armas-Cervantes, R. Conforti, M. Dumas, D. Fahland, M. La Rosa, Scalable alignment of process models and event logs: An approach based on automata and s-components, Inf. Syst. 94 (2020) 101561, http: //dx.doi.org/10.1016/j.is.2020.101561, URL: http://www.sciencedirect.com/ science/article/pii/S0306437920300545. [19] F. Taymouri, J. Carmona, A recursive paradigm for aligning observed behavior of large structured process models, in: 14th International Conference of Business Process Management (BPM), Rio de Janeiro, Brazil, September 18-22, 2016, pp. 197–214. [20] F. Taymouri, J. Carmona, Model and event log reductions to boost the computation of alignments, in: P. Ceravolo, C. Guetl, S. Rinderle-Ma (Eds.), Data-Driven Process Discovery and Analysis, Springer International Publishing, 2018, pp. 1–21. [21] F. Taymouri, J. Carmona, Computing alignments of well-formed process models using local search, ACM Trans. Softw. Eng. Methodol. 29 (2020) 15:1–15:41, http://dx.doi.org/10.1145/3394056. [22] A. Burattin, S.J. van Zelst, A. Armas-Cervantes, B.F. van Dongen, J. Carmona, Online conformance checking using behavioural patterns, in: Business Process Management - 16th International Conference, BPM 2018, Sydney, NSW, Australia, September 9-14, 2018, Proceedings, 2018, pp. 250–267. [23] F. Taymouri, J. Carmona, Structural computation of alignments of business processes over partial orders, in: 19th International Conference on Application of Concurrency to System Design, ACSD 2019, Aachen, Germany, June 23-28, 2019, 2019, pp. 73–81. [24] L. Padró, J. Carmona, Approximate computation of alignments of business processes through relaxation labelling, in: Business Process Management - 17th International Conference, BPM 2019, Vienna, Austria, September 1-6, 2019, Proceedings, 2019, pp. 250–267. [25] J. Evermann, Scalable process discovery using map-reduce, IEEE Trans. Serv. Comput. 9 (2016) 469–481, http://dx.doi.org/10.1109/TSC.2014.2367525. [26] F. Chesani, A. Ciampolini, D. Loreti, P. Mello, Map reduce autoscaling over the cloud with process mining monitoring, in: M. Helfert, D. Ferguson, V. Méndez Muñoz, J. Cardoso (Eds.), Cloud Computing and Services Science, Springer International Publishing, Cham, 2017, pp. 109–130. [27] J. Engelfriet, Branching processes of petri nets, Acta Inf. 28 (1991) 575–591, http://dx.doi.org/10.1007/BF01463946. [28] R. Bergenthum, S. Mauser, R. Lorenz, G. Juhás, Unfolding semantics of petri nets based on token flows, Fund. Inform. 94 (2009) 331–360, http: //dx.doi.org/10.3233/FI-2009-134. [29] D. Fahland, W.M.P. van der Aalst, Simplifying discovered process models in a controlled manner, Inf. Syst. 38 (2013) 585–605, http://dx.doi.org/10. 1016/j.is.2012.07.004. [30] R. Dechter, Constraint Processing (The Morgan Kaufmann Series in Artificial Intelligence), Morgan Kaufmann, 2003. [31] K. Apt, Principles of Constraint Programming, Cambridge University Press, New York, NY, USA, 2003. [32] M.T. Gómez-López, R. Ceballos, R.M. Gasca, C.D. Valle, Developing a labelled object-relational constraint database architecture for the projection operator, Data Knowl. Eng. 68 (2009) 146–172, http://dx.doi.org/10.1016/ j.datak.2008.09.002. [33] A.J. Varela-Vaca, L. Parody, R.M. Gasca, M.T. Gómez-López, Automatic verification and diagnosis of security risk assessments in business process models, IEEE Access 7 (2019) 26448–26465, http://dx.doi.org/10.1109/ ACCESS.2019.2901408. 16 Á. Valencia-Parra, Á.J. Varela-Vaca, M.T. Gómez-López et al. Information Systems 99 (2021) 101731 [34] M.T. Gómez-López, R.M. Gasca, J.M. Pérez-Álvarez, Compliance validation and diagnosis of business data constraints in business processes at runtime, Inf. Syst. 48 (2015) 26–43, http://dx.doi.org/10.1016/j.is.2014.07.007. [35] M.T. Gómez-López, L. Parody, R.M. Gasca, S. Rinderle-Ma, Prognosing the compliance of declarative business processes using event trace robustness, in: On the Move to Meaningful Internet Systems: OTM 2014 Conferences - Confederated International Conferences: CoopIS, and ODBASE 2014, Amantea, Italy, October 27-31, 2014, Proceedings, 2014, pp. 327–344. [36] D. Borrego, R. Eshuis, M.T. Gómez-López, R.M. Gasca, Diagnosing correctness of semantic workflow models, Data Knowl. Eng. 87 (2013) 167–184. [37] R. Bergenthum, S. Mauser, Synthesis of petri nets from infinite partial languages with viptool, in: 15th German Workshop on Algorithms and Tools for Petri Nets, Algorithmen und Werkzeuge für Petrinetze, AWPN 2008, Rostock, Germany, September 26-27, 2008, Proceedings, 2008, pp. 81–86. URL: http://ceur-ws.org/Vol-380/paper13.pdf. [38] J. Buijs, Environmental permit application process (‘wabo’), in: CoSeLoG Project, 2014, http://dx.doi.org/10.4121/UUID:26ABA40D-8B2D-435B- B5AF-6D4BFBD7A270, URL: https://data.4tu.nl/collections/Environmental_ permit_application_process_WABO_CoSeLoG_project/5065529. [39] J. Munoz-Gama, J. Carmona, W.M.P. van der Aalst, Conformance checking in the large: Partitioning and topology, in: F. Daniel, J. Wang, B. Weber (Eds.), Business Process Management, Springer Berlin Heidelberg, Berlin, Heidelberg, 2013, pp. 130–145. [40] J. Cardoso, Business process control-flow complexity: Metric, evaluation, and validation, Int. J. Web Serv. Res. 5 (2008) 49–76, URL: http://www.igiglobal.com/bookstore/titledetails.aspx?titleid=1079. 17