Enhancing Code Smell Classification with Code Refactoring-Based Data Augmentation

Yükleniyor...
Küçük Resim

Tarih

Dergi Başlığı

Dergi ISSN

Cilt Başlığı

Yayıncı

Springer

Erişim Hakkı

info:eu-repo/semantics/embargoedAccess

Özet

One of the primary challenges in training deep neural networks is the requirement for a robust and diverse data source. To address this limitation, data augmentation techniques have emerged as a promising solution, enabling the expansion of training datasets without requiring additional data collection. This study investigates the effectiveness of code refactoring-based augmentation and the role of augmented data volume in improving code smell classification in deep learning systems. We conducted a comparative analysis of rule and large language model-based augmentation with a loss penalty, an algorithmic data balancing approach for neural networks. Additionally, a novel weighting strategy was developed to optimize the evaluation of augmentation volume distribution, reducing the computational overhead while maintaining analytical precision. We used pre-trained BERT, CodeBERT, and GraphCodeBERT models to generate code embeddings and evaluated their performance for model training. Our findings demonstrate that code refactoring-based augmentation using GraphCodeBERT and large language model enhances model performance, particularly in addressing class imbalances. The impact of data volume varies depending on the size of the classes, with the greatest improvement observed during the initial augmentation increments applied to underrepresented classes. Conversely, the influence of the loss penalty, BERT, and CodeBERT-based augmentation on overall performance was found to be negligible or, in some cases, detrimental. These results emphasize the potential of code refactoring-based augmentation to drive the development of more efficient data augmentation strategies, ultimately enabling better performance in code smell classification tasks and other deep learning applications.

Açıklama

Anahtar Kelimeler

Code Embedding, Data Augmentation, Code Smell, Code Refactoring, Loss Penalty, Weight Factor, Classification

Kaynak

Knowledge and Information Systems

WoS Q Değeri

Scopus Q Değeri

Cilt

68

Sayı

1

Künye

NİZAM, Ali, Musa AYDIN, Ertuğrul İSLAMOGLU, Shaaban SAHMOUD & Samil Bilal ÖZAYDIN. "Enhancing Code Smell Classification with Code Refactoring-Based Data Augmentation". Knowledge and Information Systems, 68.1 (2026): 1-32.

Onay

İnceleme

Ekleyen

Referans Veren