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 条
  • [1] On evaluating the layout of UML class diagrams for program comprehension
    Sun, D
    Wong, K
    [J]. 13TH INTERNATIONAL WORKSHOP ON PROGRAM COMPREHENSION, PROCEEDINGS, 2005, : 317 - 326
  • [2] On evaluating the layout of UML diagrams for program comprehension
    Wong, Kenny
    Sun, Dabo
    [J]. SOFTWARE QUALITY JOURNAL, 2006, 14 (03) : 233 - 259
  • [3] On evaluating the layout of UML diagrams for program comprehension
    Kenny Wong
    Dabo Sun
    [J]. Software Quality Journal, 2006, 14 : 233 - 259
  • [4] Caesar automatic layout of UML class diagrams
    Gutwenger, C
    Jünger, M
    Klein, K
    Kupke, J
    Leipert, S
    Mutzel, P
    [J]. GRAPH DRAWING, 2002, 2265 : 461 - 462
  • [5] On the Impact of Layout Quality to Understanding UML Diagrams
    Storrle, Harald
    [J]. 2011 IEEE SYMPOSIUM ON VISUAL LANGUAGES AND HUMAN-CENTRIC COMPUTING (VL/HCC 2011), 2011, : 135 - 142
  • [6] The Effect of Layout on the Comprehension of UML Class Diagrams: A Controlled Experiment
    Sharif, Bonita
    Maletic, Jonathan I.
    [J]. 2009 5TH IEEE INTERNATIONAL WORKSHOP ON VISUALIZING SOFTWARE FOR UNDERSTANDING AND ANALYSIS, 2009, : 11 - 18
  • [7] Several Issues on the Definition of Algorithm for the Layout of the UML Class Diagrams
    Galapovs, Arturs
    Nikiforova, Oksana
    [J]. MODEL-DRIVEN ARCHITECTURE AND MODEL-DRIVEN SOFTWARE DEVELOPMENT, 2011, : 68 - 78
  • [8] Evaluating structure complexity metric for UML class diagrams
    Xu Shenghua
    Yi Tong
    Wu Fangjun
    [J]. CHINESE JOURNAL OF ELECTRONICS, 2006, 15 (03) : 389 - 392
  • [9] Guidelines on the aesthetic quality of UML class diagrams
    Eichelberger, Holger
    Schmid, Klaus
    [J]. INFORMATION AND SOFTWARE TECHNOLOGY, 2009, 51 (12) : 1686 - 1698
  • [10] On the impact of layout quality to understanding UML diagrams: Size matters
    [J]. Störrle, Harald, 1600, Springer Verlag (8767):