A Machine-learning Based Ensemble Method For Anti-patterns Detection
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). First posted on arXiv 29 Jan 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 0; 2023: 1; 2024: 0; 2025: 1.
4 papers.
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 24
- 2023A systematic literature review on the code smells datasets and validation mechanismscited by 3
- 2025Semantic-Preserving Transformations as Mutation Operators: A Study on Their Effectiveness in Defect Detectioncited by 2
- 2021Is the Rush to Machine Learning Jeopardizing Safety? Results of a Surveycited by 0
- 2025Semantic-Preserving Transformations as Mutation Operators: A Study on Their Effectiveness in Defect Detection30 Mar 2025
- 2023A systematic literature review on the code smells datasets and validation mechanisms2 Jun 2023
- 2021Is the Rush to Machine Learning Jeopardizing Safety? Results of a Survey29 Nov 2021
- 2021A Survey on Machine Learning Techniques for Source Code Analysis18 Oct 2021