Back to search

University of Cincinnati

Harnessing Large Language Models for Automated Software Diagram Generation

Abstract

dc:description

Software diagramming is essential for visualizing system architectures, yet it faces challengessuch as inconsistency, misinterpretation, and the loss of informal sketches. Traditional auto-mated solutions often focus on text or images in isolation, limiting their adaptability. This the-sis introduces a unified, multi-modal framework that integrates text-based and image-basedinputs to automate software diagram generation using Large Language Models (LLMs). Theproposed system combines Optical Character Recognition (OCR) for digitizing visual inputswith prompt engineering principles to enhance contextual accuracy and standardization.The methodology employs a hybrid OCR approach, merging Tesseract for raw text extrac-tion and GPT-4o for contextual error correction, enabling robust processing of both computer-generated and hand-drawn diagrams. Diagram generation is standardized through Domain-Specific Languages (DSLs), with Mermaid and PlantUML emerging as optimal choices dueto their balance of flexibility and structural rigor. Evaluations across diverse inputs—includingclass diagrams, flowcharts, and C4 models—demonstrate superior compilation success ratesfor Mermaid and higher visual coherence for PlantUML. Key innovations include modularprompt engineering for iterative refinement and a preprocessing pipeline that mitigates com-mon OCR limitations.

Degree

thesis:*
Name thesis:degree_name
MS
Level thesis:degree_level
masters
Discipline thesis:degree_discipline
Engineering and Applied Science: Computer Science
Grantor dc:publisher
University of Cincinnati
Year dc:date
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Guernsey, Grant
Chair dc:contributor.committeechair
  • Cheng, Yizong

Subjects

dc:subject × 5

Rights

dc:rights
Statement dc:rights
  • unrestricted
  • This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws.
Language dc:language
English

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
OhioLINK
Base URL
etd.ohiolink.edu/acprod/odb_etd/ws/oai/oai
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
citation

Guernsey, Grant. Harnessing Large Language Models for Automated Software Diagram Generation. masters thesis, University of Cincinnati, 2025. http://rave.ohiolink.edu/etdc/view?acc_num=ucin1746701542674719