Automated Derivation of UML Sequence Diagrams from User Stories: Unleashing the Power of Generative AI vs. a Rule-Based Approach
User stories are informal, non-technical descriptions of features from a user's perspective that guide collaboration and iterative development in Agile projects. However, ambiguities in user stories can lead to miscommunication among stakeholders. Design models, such as UML sequence diagrams, are essential for enhancing communication, clarifying system behavior, and improving the development process. This paper presents an automated approach for generating behavioral models specifically sequence diagrams from natural language requirements expressed as user stories. We also investigate the effectiveness of a Large Language Model (LLM) in using generative AI for this task. By applying our approach and ChatGPT to two benchmark datasets with the same set of user stories, we generated corresponding sequence diagrams for comparison. Expert evaluations in Software Engineering reveal that our approach effectively produces relevant, simplified diagrams for straightforward user stories, whereas the LLM tends to create more complex diagrams that sometimes go beyond the simplicity of the original user stories.
Authors
- Mohammad Mahdi Hassan (ORCID: https://orcid.org/0000-0003-0981-8258)
- Banani Roy (ORCID: https://orcid.org/0000-0003-1247-7781)
- R. M. Hashemi Golpayegani
- Munima Jahan (ORCID: https://orcid.org/0009-0008-3529-1334)
- Kevin A. Schneider (ORCID: https://orcid.org/0000-0003-1113-1754)
- Golshid Ranjbaran (ORCID: https://orcid.org/0009-0009-1691-7773)
- Chanchal K. Roy (ORCID: https://orcid.org/0000-0003-0519-6164)
Institutions
- Thompson Rivers University (CA)
- University of Prince Edward Island (CA)
- University of Saskatchewan (CA)
Publication Details
- Published
- 2024-09-22
- DOI
- https://doi.org/10.1145/3640310.3674081
- Citations
- 9
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 7.01