Classification of UML Diagrams from Images in Software Engineering Using Deep Learning
Abstract
Software design is a fundamental phase in software engineering, where Unified Modeling Language (UML) diagrams play a critical role in representing system structures and behavior for software engineers. However, UML diagrams are often available only as images, which limits their automated processing and integration into tools such as search engines, software documentation systems, and accessibility solutions for visually impaired users. In this study, we propose a deep learning approach for automatically classifying UML diagrams from images. A lightweight convolutional neural network (CNN) model is designed with a minimal number of layers and reduced trainable parameters, providing an efficient solution without requiring data augmentation or transfer learning. The model is trained to accurately classify six UML diagram types: Activity, Component, Class, Sequence, Deployment, and Use-Case. Experimental evaluations on a UML image dataset demonstrated a high classification accuracy of 94.61%, highlighting its strong predictive capability despite its compact design.
Keywords
References
- [1]. Rumpe, B. Modeling with UML: Language, Concepts, Methods; Springer International Publishing: Cham, Switzerland, 2016; pp 281.
- [2]. Hernandez, JCS, Sanchez-García, AJ, Alonso-Ramírez, O. 2021. Features Used to Classify UML Diagrams from Images: a Systematic Literature Review. Research in Computing Science; 150(11): 197–205.
- [3]. Polischuk, V. 2025. Automatic recognition of UML diagrams in images: Approaches, trends, and challenges. Technologies and Engineering; 26(1): 23-35.
- [4]. Nedelcu, IG, Mocanu, SA, Saru, D, Caramihai, SI, Ionita, AD. Performance of Neural Networks for Recognizing Images of UML Class, Sequence and State Diagrams. In: Graf, S, Markos, A. (eds) Generative Systems and Intelligent Tutoring Systems. Lecture Notes in Computer Science, vol 15724, Springer, Cham, Switzerland, 2026, pp 104–113.
- [5]. Lakehal, A, Alti, A, Annane, B, Imene, B, Afaf, SA., Meriem, M. Multi-classification and Multi-labeling of UML Diagrams Using Transfer Learning and CNN. In: Hatti, M. (ed) Smart Computing and Control Renewable Energy Systems. Lecture Notes in Networks and Systems, vol 1238, Springer, Cham, Switzerland, 2025, pp 573–583.
- [6]. Shehzadi, N, Ferzund, J, Fatima, R, Riaz, A. 2025. Automatic Complexity Analysis of UML Class Diagrams Using Visual Question Answering (VQA) Techniques. Software; 4: 1-29.
- [7]. Kour, M, Hains, G, Saber, M. 2025. Diagram Analysis for Visually Impaired Readers. Hyper Articles en Ligne (HAL) Science; 2025: pp. 1-9.
- [8]. Nedelcu, I-G, Ionita, AD. 2024. Evaluating the Conformity to Types of Unified Modeling Language Diagrams with Feature-Based Neural Networks. Applied Sciences; 14(20): 1-22.
Details
Primary Language
English
Subjects
Software Engineering (Other)
Journal Section
Research Article
Authors
Publication Date
June 30, 2026
Submission Date
January 27, 2026
Acceptance Date
April 7, 2026
Published in Issue
Year 2026 Volume: 22 Number: 2