LLM ‐Based Domain Model Extraction From Requirements: A Case Study on Smart Tourism Applications
Hamza Abdelmalek, Adnane Souha, Charaf Ouaddi, Lamya Benaddi, Abdeslam Jakimi, Abdellah Chehri, Rachid Saadane
Key points
From the paper's conclusion- To evaluate the approach, a case study on smart tourism software requirements was conducted, comparing the LLM‐generated domain model with an expert‐constructed reference model using both qualitative expert assessments and quantitative metrics.
Abstract
Automating the extraction of domain models from natural language requirements remains a central challenge in model‐driven engineering (MDE), particularly at the level of the computation‐independent model (CIM), the most abstract layer of the model‐driven architecture (MDA). This paper introduces an approach that uses large language models (LLMs) to generate domain models from software requirements. Unlike prior work that relies on a single monolithic prompt or on generic task decomposition, our approach organises the modelling task as a modular chain of prompts with dedicated stages for enumerations, entities, and relationships, each producing an explicit intermediate output that feeds the next stage before a final consolidation step. The approach is implemented as a Visual Studio Code extension called SmartModel, which integrates generation, visualisation, and requirement‐level traceability into the developer's environment. To evaluate the approach, a case study on smart tourism software requirements was conducted, comparing the LLM‐generated domain model with an expert‐constructed reference model using both qualitative expert assessments and quantitative metrics. Results show that LLMs achieve high precision in identifying entities and enumerations, whereas relationship and attribute extraction remain considerably less reliable and require systematic human review. The findings underscore the value of LLMs in accelerating early‐stage MDE tasks, while highlighting the necessity of human feedback to ensure semantic integrity. This work contributes a practical and extensible tool and empirical insights that inform future research into hybrid AI‐human modelling workflows and advanced LLM techniques for software modelling.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- LLMs for Model-driven Engineering: A Systematic Literature ReviewACM Transactions on Software Engineering and Methodology · 2026
- From Language-Specific to Cross-DSL: Semantic-Role-Guided Model Completion with LLMsarXiv · 2026
- Requirements Engineering with Generative AI: A Systematic Literature Review of Using AI Agents for Requirements Engineering AutomationAutomation · 2026
- Semi-formal modeling as foundation for hybrid model-driven and LLM-based code generationSoftware and Systems Modeling · 2026
- We Used It Anyway: Low Trust and High Adoption of Large Language Models in Requirements Engineering EducationarXiv · 2026
- Formal Modeling in Software Engineering with LLMs: A Systematic Literature ReviewarXiv · 2026