cs.SEAug 7, 2026

CAS2UML: A Handwritten Sketch-to-PlantUML Dataset for Class and Activity Diagrams

Authors: Simon ScholzMersedeh Sadeghi

Organizations: University of Cologne Cologne, Germany

Abstract

Automated UML generation from sketches and images is gaining renewed attention with the rise of large language models and multimodal AI. However, reproducible evaluation remains difficult due to the lack of public datasets with executable groundtruth models. We present CAS2UML, a public dataset of 557 handdrawn UML diagrams, including 271 class diagrams and 286 activity diagrams, each paired with manually validated PlantUML code. We also provide a PlantUML-based validation tool and reusable scripts for checking the syntactic correctness and renderability of generated UML artifacts, enabling reproducible benchmarking of sketch-to-UML approaches. The dataset, validation tool, processing scripts, documentation, and demonstration video are publicly available at: Dataset: https://huggingface.co/datasets/Seym0n /cas2uml_hand-drawn_to_plantuml_dataset; Tool and Scripts: https://github.com/Seym0n/handwritten-uml-dataset; Video: https://www.youtube.com/watch?v=KQrYeGgT3hs.

Explore similar work

CardsList
  1. Query2Diagram: Answering Developer Queries with UML Diagrams

    Apr 26, 2026Oleg Baryshnikov, Anton M. Alekseev, Sergey I. NikolenkoDiagramsCode Generation

  2. Code2UML: Agentic LLMs with context engineering for scalable software visualization

    May 23, 2026Alin-Gabriel Văduva, Anca-Ioana Andreescu, Simona-Vasilica Oprea +1DiagramsAgentic Systems