EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Enhancing Software Quality with AI: A Transformer-Based Approach for Code Smell Detection

Israr Ali, Syed Sajjad Hussain Rizvi, Syed Hasan Adil

Applied Sciences · 21.04.2025 · 15 (8) · 4559

DOI: 10.3390/app15084559 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Applied Sciences, online erschienen am 21.04.2025. Verfasst von Israr Ali und 2 weiteren Autor:innen. Die Arbeit wurde bisher 11-mal zitiert (Crossref) und nennt 45 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Software quality assurance is a critical aspect of software engineering, directly impacting maintainability, extensibility, and overall system performance. Traditional machine-learning techniques, such as gradient boosting and support vector machines (SVM), have demonstrated effectiveness in code smell detection but require extensive feature engineering and struggle to capture intricate semantic dependencies in software structures. In this study, we introduce Relation-Aware BERT (RABERT), a novel transformer-based model that integrates relational embeddings to enhance automated code smell detection. By modeling interdependencies among software complexity metrics, RABERT surpasses classical machine-learning methods, achieving an accuracy of 90.0% and a precision of 91.0%. However, challenges such as low recall (53.0%) and computational overhead indicate the need for further optimization. We present a comprehensive comparative analysis between classical machine-learning models and transformer-based architectures, evaluating their computational efficiency and predictive capabilities. Our findings contribute to the advancement of AI-driven software quality assurance, offering insights into optimizing transformer-based models for practical deployment in software development workflows. Future research will focus on lightweight transformer variants, cost-sensitive learning techniques, and cross-language generalizability to enhance real-world applicability.

Zitieren

APA

Ali, I., Rizvi, S. S. H., & Adil, S. H. (2025). Enhancing Software Quality with AI: A Transformer-Based Approach for Code Smell Detection. Applied Sciences, 15(8), 4559. https://doi.org/10.3390/app15084559

Vancouver

Ali I, Rizvi SSH, Adil SH. Enhancing Software Quality with AI: A Transformer-Based Approach for Code Smell Detection. Applied Sciences. 2025;15(8):4559. doi:10.3390/app15084559

BibTeX
@article{Ali2025,
  author = {Ali, Israr and Rizvi, Syed Sajjad Hussain and Adil, Syed Hasan},
  title = {Enhancing Software Quality with AI: A Transformer-Based Approach for Code Smell Detection},
  journal = {Applied Sciences},
  year = {2025},
  volume = {15},
  number = {8},
  pages = {4559},
  doi = {10.3390/app15084559}
}
Kostenlos starten →