A machine-learning based ensemble method for anti-patterns detection

被引:23
|
作者
Barbez, Antoine [1 ]
Khomh, Foutse [1 ]
Gueheneuc, Yann-Gael [2 ]
机构
[1] Polytech Montreal, Montreal, PQ, Canada
[2] Concordia Univ, Dept Comp Sci & Software Engn, Montreal, PQ, Canada
基金
加拿大自然科学与工程研究理事会;
关键词
Software quality; Anti-patterns; Machine learning; Ensemble methods; IDENTIFICATION; IMPACT; SMELLS; CODE;
D O I
10.1016/j.jss.2019.110486
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Anti-patterns are poor solutions to recurring design problems. Several empirical studies have highlighted their negative impact on program comprehension, maintainability, as well as fault-proneness. A variety of detection approaches have been proposed to identify their occurrences in source code. However, these approaches can identify only a subset of the occurrences and report large numbers of false positives and misses. Furthermore, a low agreement is generally observed among different approaches. Recent studies have shown the potential of machine-learning models to improve this situation. However, such algorithms require large sets of manually-produced training-data, which often limits their application in practice. In this paper, we present SMAD (SMart Aggregation of Anti-patterns Detectors), a machine-learning based ensemble method to aggregate various anti-patterns detection approaches on the basis of their internal detection rules. Thus, our method uses several detection tools to produce an improved prediction from a reasonable number of training examples. We implemented SMAD for the detection of two well known anti-patterns: God Class and Feature Envy. With the results of our experiments conducted on eight java projects, we show that: (1) Our method clearly improves the so aggregated tools; (2) SMAD significantly outperforms other ensemble methods. (C) 2019 Elsevier Inc. All rights reserved.
引用
收藏
页数:11
相关论文
共 50 条
  • [1] Detection of web service anti-patterns using weighted extreme learning machine
    Tummalapalli, Sahithi
    Kumar, Lov
    Neti, Lalita Bhanu Murthy
    Krishna, Aneesh
    [J]. COMPUTER STANDARDS & INTERFACES, 2022, 82
  • [2] Detection of web service anti-patterns using weighted extreme learning machine
    Tummalapalli, Sahithi
    Kumar, Lov
    Neti, Lalita Bhanu Murthy
    Krishna, Aneesh
    [J]. Computer Standards and Interfaces, 2022, 82
  • [3] Uncertainty-wise software anti-patterns detection: A possibilistic evolutionary machine learning approach
    Boutaib, Sofien
    Elarbi, Maha
    Bechikh, Slim
    Coello, Carlos A. Coello
    Ben Said, Lamjed
    [J]. APPLIED SOFT COMPUTING, 2022, 129
  • [4] Machine learning with word embedding for detecting web-services anti-patterns
    Kumar, Lov
    Tummalapalli, Sahithi
    Rathi, Sonika Chandrakant
    Murthy, Lalita Bhanu
    Krishna, Aneesh
    Misra, Sanjay
    [J]. JOURNAL OF COMPUTER LANGUAGES, 2023, 75
  • [5] A Malware Detection Method Based on Machine Learning and Ensemble of Regression Trees
    Li, Xinghua
    Li, Xiaolong
    Wang, Feng
    Li, Wenna
    Li, Ang
    [J]. PROCEEDINGS OF 2021 2ND INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE AND INFORMATION SYSTEMS (ICAIIS '21), 2021,
  • [6] SQLCheck: Automated Detection and Diagnosis of SQL Anti-Patterns
    Dintyala, Prashanth
    Narechania, Arpit
    Arulraj, Joy
    [J]. SIGMOD'20: PROCEEDINGS OF THE 2020 ACM SIGMOD INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA, 2020, : 2331 - 2345
  • [7] Prediction of Web Service Anti-patterns Using Aggregate Software Metrics and Machine Learning Techniques
    Tummalapalli, Sahithi
    Kumar, Lov
    Murthy, N. L. Bhanu
    [J]. ISOFT: PROCEEDINGS OF THE 13TH INNOVATIONS IN SOFTWARE ENGINEERING CONFERENCE, 2020,
  • [8] Anti-patterns for rule-based languages
    Cirstea, Horatiu
    Kirchner, Claude
    Kopetz, Radu
    Moreau, Pierre-Etienne
    [J]. JOURNAL OF SYMBOLIC COMPUTATION, 2010, 45 (05) : 523 - 550
  • [9] A Machine-learning based Unbiased Phishing Detection Approach
    Shirazi, Hossein
    Zweigle, Landon
    Ray, Indrakshi
    [J]. PROCEEDINGS OF THE 17TH INTERNATIONAL JOINT CONFERENCE ON E-BUSINESS AND TELECOMMUNICATIONS (SECRYPT), VOL 1, 2020, : 423 - 430
  • [10] Expdf: Exploits Detection System Based on Machine-Learning
    Xin Zhou
    Jianmin Pang
    [J]. International Journal of Computational Intelligence Systems, 2019, 12 : 1019 - 1028