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收藏
摘要

摘要

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
A Cross-Project Defect Prediction Model Based on Deep Learning With Self-Attention基于深度学习和自我注意的跨项目缺陷预测模型
err2022-01-01
err5
errOAAI
errWen, Wanzhi; Zhang, Ruinian; Wang, Chuyue; Shen, Chenqiang; Yu, Meng; Zhang, Suchuan; Gao, Xinxin
err分享
err收藏
Hybrid Deep Learning: An Efficient Reconnaissance and Surveillance Detection Mechanism in SDN
err2020-01-01
err52
errOAAI
errMalik, Jahanzaib; Akhunzada, Adnan; Bibi, Iram; Imran, Muhammad; Musaddiq, Arslan; Kim, Sung Won
err分享
err收藏
Deep Learning Based Code Smell Detection
err2021-01-01
err79
PREAI
errLiu, Hui; Jin, Jiahao; Xu, Zhifeng; Zou, Yanzhen; Bu, Yifan; Zhang, Lu
err分享
err收藏
Implementation of deep learning methods in prediction of adsorption processes深度学习方法在吸附过程预测中的实现
err2022-11-01
err59
PREAI
errSkrobek, Dorian; Krzywanski, Jaroslaw; Sosnowski, Marcin; Kulakowska, Anna; Zylka, Anna; Grabowska, Karolina; Ciesielska, Katarzyna; Nowak, Wojciech
err分享
err收藏

期刊

IEEE Access 封面图
IEEE Access
IF:
3.6
论文数:
10.1W
被引数:
36.3W

机构

博
博特拉大学
学者数:
769
论文数: 287
被引数: 7.0K
国
国油大学
学者数:
288
论文数: 113
被引数: 3.1K
U
University of Kirkuk
学者数:
36
论文数: 32
被引数: 122
学者 查看更多机构
引用论文

引用论文

暂无论文信息