Evaluating the layout quality of UML class diagrams using machine learning

被引:1
|
作者
Bergstroem, Gustav [1 ]
Hujainah, Fadhl [1 ,2 ]
Truong, Ho-Quang [1 ,2 ]
Jolak, Rodi [1 ,2 ]
Rukmono, Satrio Adi [3 ,5 ]
Nurwidyantoro, Arif [4 ]
Chaudron, Michel R. V. [1 ,3 ]
机构
[1] Chalmers Gothenburg Univ, Gothenburg, Sweden
[2] Volvo Car Corp, Gothenburg, Sweden
[3] Eindhoven Univ Technol, Eindhoven, Netherlands
[4] Monash Univ, Melbourne, Australia
[5] Inst Teknol Bandung, Bandung, Indonesia
关键词
Quality of layout; Machine learning; Quality of UML class diagrams; AESTHETICS;
D O I
10.1016/j.jss.2022.111413
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
UML is the de facto standard notation for graphically representing software. UML diagrams are used in the analysis, construction, and maintenance of software systems. Mostly, UML diagrams capture an abstract view of a (piece of a) software system. A key purpose of UML diagrams is to share knowledge about the system among developers. The quality of the layout of UML diagrams plays a crucial role in their comprehension. In this paper, we present an automated method for evaluating the layout quality of UML class diagrams. We use machine learning based on features extracted from the class diagram images using image processing. Such an automated evaluator has several uses: (1) From an industrial perspective, this tool could be used for automated quality assurance for class diagrams (e.g., as part of a quality monitor integrated into a DevOps toolchain). For example, automated feedback can be generated once a UML diagram is checked in the project repository. (2) In an educational setting, the evaluator can grade the layout aspect of student assignments in courses on software modeling, analysis, and design. (3) In the field of algorithm design for graph layouts, our evaluator can assess the layouts generated by such algorithms. In this way, this evaluator opens up the road for using machine learning to learn good layouting algorithms.Approach. We use machine learning techniques to build (linear) regression models based on features extracted from the class diagram images using image processing. As ground truth, we use a dataset of 600+ UML Class Diagrams for which experts manually label the quality of the layout.Contributions. This paper makes the following contributions:(1) We show the feasibility of the automatic evaluation of the layout quality of UML class diagrams.(2) We analyze which features of UML class diagrams are most strongly related to the quality of their layout.(3) We evaluate the performance of our layout evaluator.(4) We offer a dataset of labeled UML class diagrams. In this dataset, we supply for every diagram the following information: (a) a manually established ground truth of the quality of the layout, (b) an automatically established value for the layout-quality of the diagram (produced by our classifier), and (c) the values of key features of the layout of the diagram (obtained by image processing). This dataset can be used for replication of our study and others to build on and improve on this work. Editor's note: Open Science material was validated by the Journal of Systems and Software Open Science Board..(c) 2022 The Author(s). Published by Elsevier Inc. This is an open access article under the CC BY license (http://creativecommons.org/licenses/by/4.0/).
引用
下载
收藏
页数:20
相关论文
共 50 条
  • [21] Reasoning on UML class diagrams
    Berardi, D
    Calvanese, D
    De Giacomo, G
    ARTIFICIAL INTELLIGENCE, 2005, 168 (1-2) : 70 - 118
  • [22] Reduction of UML class diagrams
    Linde, G
    DATABASES AND INFORMATION SYSTEMS II, 2002, : 199 - 208
  • [23] Modeling legislation by using uml state machine diagrams
    Strahonja, Vjeran
    2006 Canadian Conference on Electrical and Computer Engineering, Vols 1-5, 2006, : 2376 - 2379
  • [24] Reasoning with UML class diagrams
    Evans, AS
    2ND IEEE WORKSHOP ON INDUSTRIAL STRENGTH FORMAL SPECIFICATION TECHNIQUES - PROCEEDINGS, 1999, : 102 - 113
  • [25] Formalization of the UML Class Diagrams
    Osis, Janis
    Donins, Uldis
    EVALUATION OF NOVEL APPROACHES TO SOFTWARE ENGINEERING, 2010, 69 : 180 - 192
  • [26] From UML Class Diagrams to Aspect-Oriented Class Diagrams Using Graph Transformation
    Aouag, Mouna
    Chaoui, Allaoua
    2013 INTERNATIONAL CONFERENCE ON CONTROL, DECISION AND INFORMATION TECHNOLOGIES (CODIT), 2013, : 458 - 463
  • [27] Diagram Size vs. Layout Flaws: erstanding Quality Factors of UML Diagrams
    Storrle, Harald
    ESEM'16: PROCEEDINGS OF THE 10TH ACM/IEEE INTERNATIONAL SYMPOSIUM ON EMPIRICAL SOFTWARE ENGINEERING AND MEASUREMENT, 2016,
  • [28] Automatic Classification of UML Class Diagrams Using Deep Learning Technique: Convolutional Neural Network
    Gosala, Bethany
    Chowdhuri, Sripriya Roy
    Singh, Jyoti
    Gupta, Manjari
    Mishra, Alok
    APPLIED SCIENCES-BASEL, 2021, 11 (09):
  • [29] Online ontological quality assessment of converted UML class diagrams in SRE
    Chen, Chung-Yang
    Tai, Kuang-Yen
    AUTOMATED SOFTWARE ENGINEERING, 2023, 30 (02)
  • [30] Online ontological quality assessment of converted UML class diagrams in SRE
    Chung-Yang Chen
    Kuang-Yen Tai
    Automated Software Engineering, 2023, 30