A systematic analysis on machine learning classifiers with data pre-processing to detect anti-pattern from source code
<p>Automatic detection of anti-patterns from source code can reduce software maintenance costs massively. Nowadays, machine learning approaches are very commonly used to identify anti-patterns. Hence, it is very crucial to choose a classifier that can be useful for detecting anti-patterns. This work aims to help practitioners to choose a suitable classifier to detect anti-patterns. In this paper, we highlight 16 classifiers in four different categories to detect anti-patterns. Furthermore, the performance of these classifiers is identified with the data pre-processing (DPP) to detect four commonly occurring anti-patterns from the three commonly used open-source Java projects’ source code. The accuracy of Dagging classifiers is 98.4%. Kernel logistic regression (KLR) also performs well i.e., 97%. In the case of time complexity, naive Bayes (NB), decision trees (DT), support vector machines (SVM), library for support vector machines (LibSVM), logistic, and LightGBM (LB) have less time complexity to build a model in all the projects.</p>
Authors
- Md. Sazzadur Rahman (ORCID: https://orcid.org/0000-0002-9178-3711)
- Afrina Khatun
- A. S. M. Sanwar Hosen (ORCID: https://orcid.org/0000-0003-0934-0995)
- Md. Shahidul Islam (ORCID: https://orcid.org/0000-0001-7344-6984)
- Nazneen Akhter (ORCID: https://orcid.org/0009-0004-4206-7577)
Institutions
- Woosong University (KR)
- Bangladesh University of Professionals (BD)
Publication Details
- Journal
- IAES International Journal of Artificial Intelligence
- Published
- 2024-11-29
- DOI
- https://doi.org/10.11591/ijai.v14.i1.pp376-384
- Citations
- 1
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 0.78
Funders
- Woosong University