Knowledge Graph Completion for Activity Recommendation in Business Process Modeling

Keyvan Amiri Elyasi, Diana Sola, Christian Meilicke, Han van der Aa, Heiner StuckenschmidtKI 2024

Abstract

Activity recommendation is an approach to assist process modelers by recommending suitable activities to be inserted at a user-defined position. In this paper, we suggest approaching activity recommendation as a knowledge graph completion task. We convert business process models into knowledge graphs through various translation methods and apply embedding- and rule-based knowledge graph completion techniques to the translated models. Our experimental evaluation reveals that generic knowledge graph completion methods do not perform well on the given task. They lack the flexibility to capture complex regularities that can be learned using a rule-based approach specifically designed for activity recommendation.

Introduction: The "Autocomplete" for Business Processes

Creating business process models, such as those using the Business Process Model and Notation (BPMN) standard, is a complex, expert-level task. To streamline this process, researchers have developed activity recommendation systems. These systems function similarly to "autocomplete" in text editors, suggesting the next logical activity to a modeler based on the current state of the process. For instance, after a "Receive invoice" activity, a system might suggest "Analyze purchase order."

An example of activity recommendation within a BPMN process model, where the system suggests potential next steps like 'Create sales order'.

While existing recommendation tools are often highly specialized, this research explores a more generalizable approach: treating business processes as Knowledge Graphs (KGs). By leveraging established KG completion (KGC) algorithms, the field could potentially benefit from the extensive research and development invested in KG embeddings and link prediction.

Methodology: Bridging Processes and Knowledge Graphs

To test the efficacy of KGC for activity recommendation, the authors developed a pipeline to translate process models into "triples" (head, relation, tail). This translation is essential for applying standard KG models.

Graph Translation Approaches

The study proposed three distinct methods for representing process models as triples:

  1. Basic Representation (Approach 1): Uses fundamental relations like followedBy to denote sequence and hasLabel to link a node to its human-readable name.
  2. Co-occurrence (Approach 2a): Introduces an inSameProcess relation between all activities within a single model to capture broader context beyond linear sequences.
  3. Process Identification (Approach 2b): Links every activity node to a unique process identifier via an inProcess relation, providing a clear structural boundary for each model.

The Prediction Task

The goal is to predict a missing activity label at a specific point in the process. In KG terms, this involves predicting the tail of a triple where the head is a process node and the relation is a label link.

A simplified process model illustrating the activity recommendation task as predicting the missing node '?' (n4).

Models and Augmentation

The researchers evaluated five popular embedding models—TransE, DistMult, TuckER, HittER*, and RotatE—alongside a symbolic rule learner, AnyBURL. They also experimented with "training augmentation," doubling the number of hasLabel triples to force the models to prioritize the recommendation task.

Challenges: Sparsity and "Type Blindness"

The study identified two primary hurdles for generic KGC models in this domain:

  • Data Sparsity: Unlike standard KG benchmarks (e.g., FB15k-237) that feature hundreds of relation types and dense interconnections, process-derived graphs are extremely sparse, typically featuring only two or three relation types. Embedding-based models (KGEs) often struggle to capture structural logic without dense local evidence.
  • Type Blindness: Generic models do not inherently distinguish between an activity node (a specific instance in a flowchart) and an activity label (the text "Approve Request"). Without specialized post-processing, models often predicted the next node ID correctly but failed to provide the human-readable label required by the user.

Key Results and Findings

The experimental evaluation utilized the BPMAI (Business Process Management Academic Initiative) dataset, filtered to 3,688 English-language BPMN 2.0 models.

Initially, generic KGC methods performed poorly, with Hits@10 scores significantly lower than specialized baselines. However, the introduction of a Post-Processing Filter—which removed non-label entities and duplicate suggestions—dramatically improved performance. For example, TransE's Hits@10 increased from approximately 29% to 41%.

Despite these gains, the specialized rule-based approach (Sola et al., 2021) remained the top performer, achieving a Hits@10 of 47.5% and an MRR of 41.4%. Among the generic KGC models, TuckER and DistMult (using translation approach 2b) proved the most robust.

Conclusion and Future Directions

The research concludes that while generic KGC models can be adapted for activity recommendation, they currently require significant post-processing to compete with domain-specific symbolic logic. Business processes follow strict logical regularities that are better captured by rules than by current vector space embeddings.

Future work may involve moving toward Path-Based methods or Graph Neural Networks (GNNs) that can explicitly traverse the process graph. Additionally, integrating Large Language Models (LLMs) could help the system understand the semantic meaning of activity labels, allowing it to recognize that "Verify" and "Check" represent similar actions.

Summary updated

BibTeX
@inproceedings{elyasi2024knowledge,
  author = {Keyvan Amiri Elyasi and Diana Sola and Christian Meilicke and Han van der Aa and Heiner Stuckenschmidt},
  title = {{Knowledge Graph Completion for Activity Recommendation in Business Process Modeling}},
  booktitle = {KI},
  year = {2024},
  doi = {10.1007/s13218-024-00880-7},
}
Figure