arrow
返回

Interpretable Deep Learning for Efficient Code Smell Prioritization in Software Development

delete2025-01-01
delete0
delete
OA
AI
M
Maaeda M. Rashid
M
Mohd Hafeez Osman *
K
Khaironi Yatim Sharif
H
Hazura Zulzalil
DOI:10.1109/ACCESS.2025.3543277delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Code smells indicate potential design flaws in software systems that can impair maintainability and increase technical debt. While existing approaches have advanced code smell priortization, they often lack effective prioritization mechanisms and interpretability, hindering developers' ability to make informed refactoring decisions. This paper presents a novel approach combining CodeBERT embeddings with Bidirectional Long Short-Term Memory (Bi-LSTM) networks for code smell prioritization, enhanced by Local Interpretable Model-agnostic Explanations (LIME) for model interpretability. The approach introduces specialized preprocessing for large-scale projects and implements a selectivity metric for validating explanation quality. Our comprehensive evaluation demonstrates that the Bi-LSTM approach consistently outperforms traditional architectures across various code smell types, achieving 0.90 across precision, recall, and F1-score metrics for complex class priortization, and precision of 0.88 with recall of 0.87 for feature envy priortization. The model also showed strong performance in identifying God classes, namely, 0.84 for precision, 0.77 for recall, and 0.89 for long methods. The integration of LIME provides developers with clear insights into the model's decision-making process, enhancing trust and facilitating more effective refactoring decisions. This work contributes a framework that not only accurately detects and prioritizes code smells but also offers transparent, interpretable results applicable in real-world software development.
Keyword:
Codes
Logic gates
Computer architecture
Deep learning
Mathematical models
Long short term memory
Software
Microprocessors
Computational modeling
Software reliability
Bidirectional long short-term memory
code smells
CodeBERT
deep learning
feedforward neural networks
local interpretable model-agnostic explanations
prioritization

期刊

IEEE Access 封面图
IEEE Access
IF:
3.6
论文数:
9.8W
被引数:
29.4W

机构

U
Universiti Putra Malaysia
学者数:
1.5W
论文数: 1.1W
被引数: 1.4W
U
University of Kirkuk
学者数:
299
论文数: 274
被引数: 681
U
Universiti Teknologi Petronas
学者数:
5.4K
论文数: 4.6K
被引数: 5.9K
学者 查看更多机构
引用论文

引用论文

暂无论文信息