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 条
  • [41] IDS alerts correlation using grammar-based approach
    Al-Mamory, Safaa O.
    Zhang, Hongli
    [J]. JOURNAL OF COMPUTER VIROLOGY AND HACKING TECHNIQUES, 2009, 5 (04): : 271 - 282
  • [42] Improving grammar-based evolutionary algorithms via attributed derivation trees
    Zvada, S
    Vanyi, B
    [J]. GENETIC PROGRAMMING, PROCEEDINGS, 2004, 3003 : 208 - 219
  • [43] Grammar-based evolutionary approach for automated workflow composition with domain-specific operators and ensemble diversity
    Barbudo, Rafael
    Ramirez, Aurora
    Romero, Jose Raul
    [J]. APPLIED SOFT COMPUTING, 2024, 153
  • [44] Parallel Computing Scheme for Graph Grammar-Based Syntactic Pattern Recognition
    Flasinski, Mariusz
    Jurek, Janusz
    Myslinski, Szymon
    [J]. PARALLEL PROCESSING AND APPLIED MATHEMATICS, PT I, 2010, 6067 : 156 - 165
  • [45] GEML: A Grammatical Evolution, Machine Learning Approach to Multi-class Classification
    Fitzgerald, Jeannie M.
    Azad, R. Muhammad Atif
    Ryan, Conor
    [J]. COMPUTATIONAL INTELLIGENCE, IJCCI 2015, 2017, 669 : 113 - 134
  • [46] Design Pattern Detection using Machine Learning Techniques
    Chaturvedi, Shivam
    Chaturvedi, Amrita
    Tiwari, Anurag
    Agarwal, Shalini
    [J]. 2018 7TH INTERNATIONAL CONFERENCE ON RELIABILITY, INFOCOM TECHNOLOGIES AND OPTIMIZATION (TRENDS AND FUTURE DIRECTIONS) (ICRITO) (ICRITO), 2018, : 246 - 251
  • [47] On applying machine learning techniques for design pattern detection
    Zanoni, Marco
    Fontana, Francesca Arcelli
    Stella, Fabio
    [J]. JOURNAL OF SYSTEMS AND SOFTWARE, 2015, 103 : 102 - 117
  • [48] Design-Pattern based Parallel Programming Model and System Implementation
    Wu, Huabei
    [J]. 2008 4TH INTERNATIONAL CONFERENCE ON WIRELESS COMMUNICATIONS, NETWORKING AND MOBILE COMPUTING, VOLS 1-31, 2008, : 12500 - 12504
  • [49] A GRAMMAR-BASED APPROACH TOWARDS UNIFYING HIERARCHICAL DATA MODELS
    GYSSENS, M
    PAREDAENS, J
    VANGUCHT, D
    [J]. SIAM JOURNAL ON COMPUTING, 1994, 23 (06) : 1093 - 1137
  • [50] A Grammar-Based Approach for Applying Visualization Taxonomies to Interaction Logs
    Gathani, Sneha
    Monadjemi, Shayan
    Ottley, Alvitta
    Battle, Leilani
    [J]. COMPUTER GRAPHICS FORUM, 2022, 41 (03) : 489 - 500