Optimizing LSTM for Code Smell Detection: The Role of Data Balancing
Infocommunications journal · 2024 · 16 (3) · 57-63
DOI: 10.36244/icj.2024.3.5 ↗Kurz gefasst
Fachartikel in der Zeitschrift Infocommunications journal, 2024. Verfasst von Alnor Adam Khleel Nasraldeen und 1 weiteren Autor:innen. Die Arbeit wurde bisher 1-mal zitiert (Crossref).
Abstract (Originalsprache)
Code smells are specific patterns or characteristics in software code that indicate potential design or implementation problems. Identifying code smells has gained significant attention in software engineering. It is essential to address code smells to maintain high-quality software systems. Machine learning (ML) models, such as Long Short-Term Memory (LSTM), have been to detect code smells automatically based on source code features. However, the imbalanced distribution of code smells within software projects poses a challenge to the accuracy of these models. This study explores the role of data balancing methods in optimizing the accuracy of the LSTM model for code smell detection. We investigate different techniques for addressing the class imbalance problem, including random oversampling and synthetic minority oversampling techniques (SMOTE). We evaluate the performance of the LSTM model with and without data balancing methods using accuracy, precision, recall, f-measure, Matthew’s correlation coefficient (MCC), and the area under a receiver operating characteristic curve (AUC). Our experimental results, conducted on four code smell datasets (God class, data class, feature envy, and long method) extracted from 74 open-source systems, demonstrate the effectiveness of data balancing methods in improving the accuracy of the LSTM model for code smell detection. The results indicate that the use of data balancing methods had a positive effect on the predictive accuracy of the LSTM model. In addition, we compared our proposed method with state-of-the-art code smell detection approaches. The findings from the comparison indicate that our proposed method performs notably better than existing state-of the-art approaches across the majority of datasets.
Zitieren
APA
Nasraldeen, A. A. K., & Nehéz, K. (2024). Optimizing LSTM for Code Smell Detection: The Role of Data Balancing. Infocommunications journal, 16(3), 57-63. https://doi.org/10.36244/icj.2024.3.5
Vancouver
Nasraldeen AAK, Nehéz K. Optimizing LSTM for Code Smell Detection: The Role of Data Balancing. Infocommunications journal. 2024;16(3):57-63. doi:10.36244/icj.2024.3.5
BibTeX
@article{Nasraldeen2024,
author = {Nasraldeen, Alnor Adam Khleel and Nehéz, Károly},
title = {Optimizing LSTM for Code Smell Detection: The Role of Data Balancing},
journal = {Infocommunications journal},
year = {2024},
volume = {16},
number = {3},
pages = {57--63},
doi = {10.36244/icj.2024.3.5}
}
EUVIMED