PET: An Annotated Dataset for Process Extraction from Natural Language Text Tasks

Patrizio Bellan, Han van der Aa, Mauro Dragoni, Chiara Ghidini, Simone Paolo Ponzetto

Abstract

The PET paper introduces the first gold-standard, human-annotated dataset specifically designed for extracting business process models from natural language text. By providing a benchmark for entities like actors and activities alongside their logical relationships, the authors enable the transition from manual, rule-based extraction to modern, data-driven NLP approaches.

Introduction

In Business Process Management (BPM), organizational workflows are frequently documented in unstructured formats such as employee handbooks, emails, or Standard Operating Procedures (SOPs). To analyze or automate these workflows, they must be converted into formal process models, such as BPMN diagrams.

While automating "Process Extraction from Text" (PET) has been a research goal for years, progress has been hindered by a lack of high-quality, labeled data. Without a "gold standard" dataset, it is impossible to objectively compare extraction tools or train modern machine learning models. Most existing tools rely on rigid, hand-crafted rules that struggle with the complexity of human language.

The PET Annotation Schema

To address this gap, the authors developed a rigorous multi-stage pipeline to create a reliable dataset. They defined a granular annotation schema that decomposes processes into specific components.

The PET annotation schema for behavioral entities and their relations.

The schema distinguishes between:

  • Entities: Activities (verbs), Activity Data (nouns), Actors, and Gateways.
  • Relations: Sequence Flows, Actor-Performer, Actor-Recipient, and Same Gateway links.

By separating the "action" from the "data," the schema aligns more closely with how modern NLP models process linguistic structures.

Dataset Composition and Reliability

The PET Dataset, now available on Hugging Face, is based on 45 classic process descriptions originally compiled by Friedrich et al. (2010). It comprises 413 sentences with an average of nine sentences per document. In total, the dataset contains 501 activities, 439 actors, and 689 sequence flows.

To ensure the dataset's quality, each document was labeled by three experts. The authors achieved high inter-annotator agreement, which serves as a testament to the dataset's reliability as a gold standard.

Inter-annotator agreement scores for entities (left) and relations (right) demonstrating high dataset reliability.

As shown in the agreement metrics, experts reached an F1-score of 0.85 for entities and 0.81 for relations. The lowest agreement occurred in the "Further Specification" category, which describes how a task is performed; these details are often linguistically diverse and difficult to categorize consistently.

Baseline Performance and Insights

The authors established benchmarks using three baseline systems: a Conditional Random Field (CRF) for entity extraction (B1), a rule-based system for relations using gold entities (B2), and an end-to-end system (B3).

Key findings from these baselines include:

  • The Pipeline Penalty: There is a significant performance drop when moving from gold entities (B2) to predicted entities (B3). Errors in identifying who and what cascade into larger errors when determining the process flow.
  • Logic Sparsity: "AND Gateways" (parallel logic) appeared only 8 times in the dataset. This rarity makes it extremely difficult for models to learn to identify simultaneous process steps.
  • Precision vs. Recall: Baselines generally showed higher precision than recall, suggesting models are good at identifying standard patterns but miss elements described in complex or unusual ways.

Conclusion and Future Work

The PET dataset provides a necessary foundation for moving process extraction into the era of deep learning. While the current sample size of 45 documents is a starting point, future work will focus on scaling the dataset with more diverse descriptions and utilizing Large Language Models (LLMs) to better handle long-distance dependencies and cross-sentence logic.

Summary updated

BibTeX
@inproceedings{bellan2022pet,
  author = {Patrizio Bellan and Han van der Aa and Mauro Dragoni and Chiara Ghidini and Simone Paolo Ponzetto},
  title = {{PET: An Annotated Dataset for Process Extraction from Natural Language Text Tasks}},
  booktitle = {Business Process Management Workshops},
  year = {2022},
  doi = {10.1007/978-3-031-25383-6\_23},
}
Figure