GEML: A grammar-based evolutionary machine learning approach for design-pattern detection

被引:6
|
作者
Barbudo, Rafael [1 ]
Ramirez, Aurora [1 ]
Servant, Francisco [2 ]
Romero, Jose Raul [1 ]
机构
[1] Univ Cordoba, Dept Comp Sci & Numer Anal, Cordoba 14071, Spain
[2] Virginia Tech, Dept Comp Sci, Blacksburg, VA 24060 USA
关键词
Design pattern detection; Reverse engineering; Machine learning; Associative classification; Grammar-guided genetic programming; CLASSIFICATION; ALGORITHM;
D O I
10.1016/j.jss.2021.110919
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Design patterns (DPs) are recognised as a good practice in software development. However, the lack of appropriate documentation often hampers traceability, and their benefits are blurred among thousands of lines of code. Automatic methods for DP detection have become relevant but are usually based on the rigid analysis of either software metrics or specific properties of the source code. We propose GEML, a novel detection approach based on evolutionary machine learning using software properties of diverse nature. Firstly, GEML makes use of an evolutionary algorithm to extract those characteristics that better describe the DP, formulated in terms of human-readable rules, whose syntax is conformant with a context-free grammar. Secondly, a rule-based classifier is built to predict whether new code contains a hidden DP implementation. GEML has been validated over five DPs taken from a public repository recurrently adopted by machine learning studies. Then, we increase this number up to 15 diverse DPs, showing its effectiveness and robustness in terms of detection capability. An initial parameter study served to tune a parameter setup whose performance guarantees the general applicability of this approach without the need to adjust complex parameters to a specific pattern. Finally, a demonstration tool is also provided. (c) 2021 Elsevier Inc. All rights reserved.
引用
收藏
页数:24
相关论文
共 50 条
  • [21] THE DESIGN AND IMPLEMENTATION OF A GRAMMAR-BASED DATA GENERATOR
    MAURER, PM
    [J]. SOFTWARE-PRACTICE & EXPERIENCE, 1992, 22 (03): : 223 - 244
  • [22] A graph grammar-based approach for graph layout
    Liu, Yufeng
    Zeng, Xiaoqin
    Zou, Yang
    Zhang, Kang
    [J]. SOFTWARE-PRACTICE & EXPERIENCE, 2018, 48 (09): : 1523 - 1535
  • [23] A grammar-based multiagent system in dynamic design
    Slusarczyk, Grazyna
    [J]. AI EDAM-ARTIFICIAL INTELLIGENCE FOR ENGINEERING DESIGN ANALYSIS AND MANUFACTURING, 2008, 22 (02): : 129 - 145
  • [24] Constrained Level Generation Through Grammar-Based Evolutionary Algorithms
    Font, Jose M.
    Izquierdo, Roberto
    Manrique, Daniel
    Togelius, Julian
    [J]. APPLICATIONS OF EVOLUTIONARY COMPUTATION, EVOAPPLICATIONS 2016, PT I, 2016, 9597 : 558 - 573
  • [25] A "design-pattern"-based approach for analyzing e-health business models
    Mettler, Tobias
    Eurich, Markus
    [J]. HEALTH POLICY AND TECHNOLOGY, 2012, 1 (02) : 77 - 85
  • [26] Improving design-pattern identification: a new approach and an exploratory study
    Yann-Gaël Guéhéneuc
    Jean-Yves Guyomarc’h
    Houari Sahraoui
    [J]. Software Quality Journal, 2010, 18 : 145 - 174
  • [27] Reducing the Cost of Grammar-Based Testing Using Pattern Coverage
    Hentz, Cleverton
    Vinju, Jurgen J.
    Moreira, Anamaria M.
    [J]. TESTING SOFTWARE AND SYSTEMS, ICTSS 2015, 2015, 9447 : 71 - 85
  • [28] On the Automatic Design of a Representation for Grammar-Based Genetic Programming
    Medvet, Eric
    Bartoli, Alberto
    [J]. GENETIC PROGRAMMING (EUROGP 2018), 2018, 10781 : 101 - 117
  • [29] Scalable Detection of Frequent Substrings by Grammar-Based Compression
    Nakahara, Masaya
    Maruyama, Shirou
    Kuboyama, Tetsuji
    Sakamoto, Hiroshi
    [J]. IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2013, E96D (03): : 457 - 464
  • [30] A model for user interaction in grammar-based design systems
    Chase, SC
    [J]. AUTOMATION IN CONSTRUCTION, 2002, 11 (02) : 161 - 172