Method of using artificial intelligence for creating and reverse engineering graphical software models
DOI:
https://doi.org/10.20535/2411-1031.2025.13.2.344711Keywords:
artificial intelligence, graphical software models, DSLAbstract
The article presents a method of using generative artificial intelligence systems (AIS) based on large language models to build graphical software models from prompts and restore them from source code. The developed method is considered the basis for integrating AIS and graphical systems (GS), which are traditionally used to build graphical software models. In the process of research, such methods and notations of graphical modeling as BPMN, IDEF, ERD, UML and C4 were considered. In the process of analyzing the formats of representation of graphical models by different GS, it was determined that the most convenient for the use by AIS are language descriptions of models, unlike XML-like and binary formats. The idea of the method is to use the syntax of DSL (Domain Specific Language) of popular GS as intermediate languages for interaction between AIS and GS, which provides the possibility of both intelligent processing of the language description of the graphical model by AIS and its high-quality display by GS. The essence of the method is to represent each graphic model scheme by a three-level architecture and apply a composition of inter-level transformation functions. The three-level architecture of the graphic scheme representation includes an input prompt (model semantics), a DSL description of the scheme for the selected GS (syntactic representation) and a graphic image in the form of a GS export file (visual representation). The inter-level transformation functions include: a prompt translation function in DSL, which is performed by the AIS; a DSL rendering function by the GS and exporting the graphic file; a prompt refinement function based on a human assessment of the adequacy of the resulting visual representation (feedback). This method allows to build a discrete dynamic system for graphical software modeling with iterative refinement. The presented method of using AI for creating and reverse-engineering graphic software models allows to increase the overall efficiency of implementing software life cycle (LC) processes by combining intellectual and representative functions in the process of creating and analyzing software.
References
D.N. Dolha, and R.A. Buchmann, “Generative AI for BPMN Process Analysis: Experiments with Multi-modal Process Representations,” in Proc. Perspectives in Business Informatics Research, vol. 529, pp. 19-35, 2024. doi: https://doi.org/10.1007/978-3-031-71333-0_2.
J. Köpke, and A. Safan, “Introducing the BPMN-Chatbot for Efficient LLM-Based Process Modeling,” in Proc. of the Best BPM Disser. Aw., Doc. Cons., and Demonstr. & Res. Forum co-located with 22nd Inter. Conf. on Bus. Proc. Man. (BPM 2024), Krakow, Poland, 2024, vol. 3758, pp/86-90, 2024. [Online]. Available: https://ceur-ws.org/Vol-3758/paper-15.pdf. Accessed on: Sep. 11, 2025.
J.T. Licardo, N. Tankovic, and D. Etinger, “BPMN Assistant: An LLM-Based Approach to Business Process Modeling”, arXiv preprint, 2025. doi: https://doi.org/10.48550/arXiv.2509.24592.
M. Alenezi, and M. Akour, “AI-Driven Innovations in Software Engineering: A Review of Current Practices and Future Directions,” Applied Sciences. AI in Software Engineering: Challenges, Solutions and Applications (Special Issue), vol. 15, iss. 3, art. 1344, 26 p., 2025. doi: https://doi.org/10.3390/app15031344.
S. Heuel, “Creating Architecture Diagrams with C4 and AI”, Heuel Blog, 2025. [Online]. Available: https://blog.heuel.org/2025/01/creating-architecture-diagrams-with-c4-and-ai/. Accessed on: Sep. 17, 2025.
“C4 Model for Mobile App Architecture with AI-Powered Diagramming”, Diagrams-AI, 2025. [Online]. Available: https://www.diagrams-ai.com/blog/c4-model-for-mobile-app-architecture/. Accessed on: Sep. 17, 2025.
“C4-PlantUML: Combining PlantUML and C4 with AI Tools”, PlantUML Community, GitHub Repository, 2024. [Online]. Available: https://github.com/plantuml-stdlib/C4-PlantUML. Accessed on: Aug. 05, 2025.
“Free ERD Diagram Maker: AI-Generated Database Diagrams,” MyMap.AI, 2023. [Online]. Available: https://www.mymap.ai/er-diagram-tool. Accessed on: Aug. 08, 2025.
M. Singh, “Integrating Artificial Intelligence with Legacy Systems: A Systematic Analysis of Challenges and Strategic Considerations,” European Journal of Computer Science and Information Technology, vol. 13, iss. 32, pp. 38-45, 2025. doi: https://doi.org/10.37745/ejcsit.2013/vol13n323845.
S.S. Saxena, I. Alam, V. Sharma, U. Vats, and V. K. Chundury, “Dynamic creation of UML diagrams using generative AI”, Technical Disclosure Commons. Defensive Publications Series, Art. 7993, 7 p., 2025. [Online]. Available: https://www.tdcommons.org/dpubs_series/7993. Accessed on: Sep. 12, 2025.
H.A. Siala, and K. Lano, “A Comparison of Large Language Models and Model-Driven Reverse Engineering for Reverse Engineering”, Frontiers in Computer Science, vol. 7, art. 1516410. doi: https://doi.org/10.3389/fcomp.2025.1516410.
D. Lande, and L. Strashnoy, “VizPrompt: A Framework for Structured Prompt Generation in Diagram Synthesis using Generative AI”, SSRN, 2025. [Online]. Available: https://ssrn.com/abstract=5628310. Accessed on: Sep. 10, 2025.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Collection "Information Technology and Security"

This work is licensed under a Creative Commons Attribution 4.0 International License.
The authors that are published in this collection, agree to the following terms:
- The authors reserve the right to authorship of their work and pass the collection right of first publication this work is licensed under the Creative Commons Attribution License, which allows others to freely distribute the published work with the obligatory reference to the authors of the original work and the first publication of the work in this collection.
- The authors have the right to conclude an agreement on exclusive distribution of the work in the form in which it was published this anthology (for example, to place the work in a digital repository institution or to publish in the structure of the monograph), provided that references to the first publication of the work in this collection.
- Policy of the journal allows and encourages the placement of authors on the Internet (for example, in storage facilities or on personal web sites) the manuscript of the work, prior to the submission of the manuscript to the editor, and during its editorial processing, as it contributes to productive scientific discussion and positive effect on the efficiency and dynamics of citations of published work (see The Effect of Open Access).