Use case modeling employs user-centered scenarios to outline system requirements. These help to achieve consensus among relevant stakeholders. Because the manual creation of use case models is demanding and time-consuming, it is often skipped in practice. This study explores the potential of Large Language Models (LLMs) to assist in this tedious process. The proposed method integrates an open-weight LLM to systematically extract actors and use cases from software requirements with advanced prompt engineering techniques. The method is evaluated using an exploratory study conducted with five professional software engineers, which compares traditional manual modeling to the proposed LLM-based approach. The results show a substantial acceleration, reducing the modeling time by 60\%. At the same time, the model quality remains on par. Besides improving the modeling efficiency, the participants indicated that the method provided valuable guidance in the process.
翻译:用例建模采用以用户为中心的场景来概述系统需求,有助于相关利益相关者达成共识。由于手动创建用例模型要求高且耗时,实践中常被跳过。本研究探索了大型语言模型(LLMs)在这一繁琐过程中提供辅助的潜力。所提出的方法整合了开放权重的LLM,通过先进的提示工程技术,从软件需求中系统化提取参与者和用例。该方法通过一项探索性研究进行评估,研究涉及五位专业软件工程师,比较了传统手动建模与所提出的基于LLM的方法。结果显示建模时间显著缩短了60%,同时模型质量保持相当水平。除了提高建模效率外,参与者指出该方法在过程中提供了有价值的指导。