Generating Use Case Diagrams from User Stories Using Large Language Models
Journal of Engineering Research and Reports · pp. 227–247 · Published 4 Jun 2026
10.9734/jerr/2026/v28i61925Abstract
Background: While user stories are effective for defining features and supporting release planning in agile software engineering, they do not provide a comprehensive view of the system being developed. UML use case diagrams address this limitation by providing a visual representation of the overall system. Large language models (LLMs) have recently been adopted to support software modeling, mainly for generating UML models such as use case diagrams. Aim: This paper proposes a multistep methodology, guided by well-designed prompts, that enables LLMs to generate UML use case diagrams from user stories. Method: The methodology consists of three sequential processing steps, each guided by a well-designed prompt and processed progressively by four LLMs: ChatGPT, Gemini, Claude, and DeepSeek, to generate the final scripts of the use case diagrams from user stories. The performance of the four LLMs is evaluated using an inter-LLM agreement approach to assess their consistency. Results: The experimental results of applying the multistep methodology to the four LLMs across six datasets show high consistency among them in generating use case diagrams from user stories. The highest inter-LLM agreement values achieved are 95.88%, 99.1%, and 100% for Step 1, Step 2, and Step 3 of the methodology, respectively. Conclusions: LLMs can consistently extract and transform user stories into structured UML representations, and well-designed prompts reduce variability and produce high agreement across models. Although a preliminary qualitative semantic evaluation was achieved, this study remains focused on consistency among LLMs.
Cited by 0
No indexed citations yet.
Related research
- Dynamic Modeling of a Futuristic Frame-Based Knowledge Representation Using Unified Modeling Language (UML): A Case of an Intelligent Drug Marketers Tracking System (IDMTS) — shares topic coverage
- A Comparative Study of Three Heuristic Functions Used to Solve the 8-Puzzle — shares topic coverage
- Unified Modeling Language for Requirements Engineering, Strategies and Best Practices for FinTech and Beyond — shares topic coverage
- Assessing the Potential Impact of Large Language Models on Labor Markets and Business Cycles in China: A Preliminary Study — shares topic coverage
- Redesigning the Future of AI in Education: A Proposed Academic Large Language Model Framework for Institutions of Higher Learning — shares topic coverage
Article metrics
Real usage data collected on this platform.
0
Page views
0
PDF downloads
0
Outbound clicks
0
Citations
Views by country
Approximate, from request IP at view time — not citizenship or institution. Countries with fewer than 5 views are grouped as "Other".
No views recorded yet.
Traffic sources
Referring site, by host.
No traffic recorded yet.
Views and downloads exclude known bots/crawlers. Citations combines this platform's own DOI-resolved index with each external source's own reported total — see Cited by above for individually listed citing works. Last refreshed 0 seconds ago.