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 条
  • [31] A constraint-based collaborative environment for learning UML class diagrams
    Baghaei, Nilufar
    Mitrovic, Antonija
    INTELLIGENT TUTORING SYSTEMS, PROCEEDINGS, 2006, 4053 : 176 - 186
  • [32] Using Jaza to animate RoZ specifications of UML class diagrams
    Ledru, Y.
    30th Annual IEEE/NASA Software Engineering Workshop, Proceedings, 2006, : 253 - 262
  • [33] Similarity Assessment of UML Class Diagrams using Simulated Annealing
    Al-Khiaty, Mojeeb Al-Rhman
    Ahmed, Moataz
    2014 5TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND SERVICE SCIENCE (ICSESS), 2014, : 19 - 23
  • [34] Evolving XML schemas and documents using UML class diagrams
    Domínguez, E
    Lloret, J
    Rubio, AL
    Zapata, MA
    DATABASE AND EXPERT SYSTEMS APPLICATIONS, PROCEEDINGS, 2005, 3588 : 343 - 352
  • [35] Definition of the Criteria for Layout of the UML Use Case Diagrams
    Filipova, Olga
    Nikiforova, Oksana
    APPLIED COMPUTER SYSTEMS, 2019, 24 (01) : 75 - 81
  • [36] On the verification of UML/OCL class diagrams using constraint programming
    Cabot, J.
    Clariso, R.
    Riera, D.
    JOURNAL OF SYSTEMS AND SOFTWARE, 2014, 93 : 1 - 23
  • [37] Organizing UML class diagrams in layers
    Kumar, V
    Deka, JK
    Enabling Technologies for the New Knowledge Society, 2005, : 39 - 55
  • [38] Full Satisfiability of UML Class Diagrams
    Artale, Alessandro
    Calvanese, Diego
    Ibanez-Garcia, Angelica
    CONCEPTUAL MODELING - ER 2010, 2010, 6412 : 317 - 331
  • [39] Composition inference for UML class diagrams
    Ana Milanova
    Automated Software Engineering, 2007, 14 : 179 - 213
  • [40] DEPENDENCE ANALYSIS FOR UML CLASS DIAGRAMS
    Wu Fangjun~* Yi Tong~* ** ~*(Dept of Computer Science and Eng.
    Journal of Electronics(China), 2004, (03) : 249 - 254