EUVIMEDEUVIMED entdecken
Crossref

AUTO-GENERATION OF UML SEQUENCE DIAGRAMS FROM NATURAL LANGUAGE REQUIREMENTS USING GPT-4 MODEL

Ji Yong Loo, Moon Ting Su

Malaysian Journal of Computer Science · 30.04.2026 · 39 (2) · 110-133

DOI: 10.22452/mjcs.vol39no2.1 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Malaysian Journal of Computer Science, online erschienen am 30.04.2026. Verfasst von Ji Yong Loo und 1 weiteren Autor:innen.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Automating the generation of Unified Modelling Language (UML) sequence diagrams from software functional requirements (FRs) can improve productivity. However, existing methods often require user intervention and therefore are not fully automated. To address this gap, this research proposed a novel LLM-based method for automating the generation of UML sequence diagrams from FRs written in English for the web application domain, without requiring human intervention. The proposed method leverages OpenAI’s Generative Pre-Trained Transformer-4 (GPT-4), extracts key information from FRs and constructs corresponding PlantUML statements, which are rendered into UML sequence diagrams. A proof-of-concept prototype implementing the proposed method was developed. The correctness of the artefacts generated by the prototype was evaluated by calculating cosine similarity between them and ground truth (“oracle”) created by third-party experts. An average similarity score of 86.14% across 10 FR sets was obtained, demonstrating a high level of correctness of the generated artefacts. This result shows the potential of LLM, particularly GPT-4 in automatically generating UML sequence diagrams from English FRs.

Zitieren

APA

Loo, J. Y., & Su, M. T. (2026). AUTO-GENERATION OF UML SEQUENCE DIAGRAMS FROM NATURAL LANGUAGE REQUIREMENTS USING GPT-4 MODEL. Malaysian Journal of Computer Science, 39(2), 110-133. https://doi.org/10.22452/mjcs.vol39no2.1

Vancouver

Loo JY, Su MT. AUTO-GENERATION OF UML SEQUENCE DIAGRAMS FROM NATURAL LANGUAGE REQUIREMENTS USING GPT-4 MODEL. Malaysian Journal of Computer Science. 2026;39(2):110-133. doi:10.22452/mjcs.vol39no2.1

BibTeX
@article{Loo2026,
  author = {Loo, Ji Yong and Su, Moon Ting},
  title = {AUTO-GENERATION OF UML SEQUENCE DIAGRAMS FROM NATURAL LANGUAGE REQUIREMENTS USING GPT-4 MODEL},
  journal = {Malaysian Journal of Computer Science},
  year = {2026},
  volume = {39},
  number = {2},
  pages = {110--133},
  doi = {10.22452/mjcs.vol39no2.1}
}
Kostenlos starten →