Back to search

University of Saskatchewan

Sequence Diagrams as a Bridge Between Requirements and AI-Driven Debugging

Abstract

dc:description.abstract

This thesis investigates how sequence diagrams can function as a connecting medium between software requirements, and AI-driven debugging in modern software engineering workflows supported by Large Language Models (LLMs). This work studies four consecutive stages linked through a shared artifact, sequence diagrams, across the software lifecycle. The first part of the thesis evaluates an automated rule-based approach for generating UML sequence diagrams from user stories in natural language, comparing it with generative AI using ChatGPT on two benchmark datasets. Expert assessments reveal that the rule-based method effectively produces relevant, simplified diagrams for straightforward user stories, achieving approximately 70-80\% accuracy in identifying key elements like objects and interactions, whereas the LLM tends to create more complex diagrams by incorporating additional context that sometimes exceeds the simplicity of the original user stories. Building on this foundation, the second part establishes an automated pathway from natural language requirements to sequence diagrams by introducing US2SD, a large scale benchmark of 2,453 sequence diagrams generated from real world user stories using LLM based prompt engineering. A scalable pipeline is developed to convert user stories into PlantUML diagrams, followed by manual quality evaluation demonstrating improved adaptability and ambiguity handling compared to traditional NLP methods. This dataset provides a foundation for training and evaluating automated artifact generation systems. The next part extends sequence diagrams from design artifacts to operational debugging aids by embedding them within an agentic Retrieval Augmented Generation (RAG) framework for deep learning software repair. Diagrams derived from user stories are used as structured behavioral references to guide bug localization and fix generation. Empirical evaluations show improved fault detection accuracy and increased explainability compared to conventional automated debugging approaches. Building on this foundation, the fourth part examines how the use of AI tools during diagram construction influences developers’ cognitive engagement and perceived skill retention. Through surveys, cognitive assessments, interviews, and controlled experiments comparing AI assisted and manual sequence diagram creation, the study identifies measurable differences in attention, mental clarity, and proficiency, particularly among early career engineers, while also highlighting practical mitigation strategies. Together, these contributions demonstrate a continuous pipeline in which sequence diagrams connect requirement interpretation and AI assisted debugging, providing benchmarks, empirical evidence, and practical systems that collectively advance integrated LLM supported software engineering practices.

Degree

thesis:*
Name thesis:degree_name
Master of Science (M.Sc.)
Level thesis:degree_level
Masters
Discipline thesis:degree_discipline
Computer Science
Department thesis:degree_department
Computer Science
Grantor
University of Saskatchewan
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Golpayegani, Reza
Advisor dc:contributor.advisor
  • Roy, Chanchal
Committee members dc:contributor.committeemember
  • Roy, Banani
  • Hoque, Erfan
ORCID person:identifier.orcid

Subjects

dc:subject × 6

Rights

Language dc:language.iso
en

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/10388/18205

Chain of custody

source
Harvested from
University of Saskatchewan
Base URL
harvest.usask.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Golpayegani, Reza. Sequence Diagrams as a Bridge Between Requirements and AI-Driven Debugging. Masters thesis, University of Saskatchewan, 2026. https://hdl.handle.net/10388/18205