arrow
Return

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
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

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.
Keywords:
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
errShare
errSave
errShare
errSave
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
errShare
errSave
Industry 4.0-Oriented Deep Learning Models for Human Activity Recognition
err2021-01-01
err33
errOAAI
errMohsen, Saeed; Elkaseer, Ahmed; Scholz, Steffen G.
errShare
errSave
Developing Novel Activation Functions Based Deep Learning LSTM for Classification
err2022-01-01
err8
errOAAI
errAli, Mohamed H. Essai; Abdel-Raman, Adel B.; Badry, Eman A.
errShare
errSave
Deep Learning Based Code Smell Detection
err2021-01-01
err79
PREAI
errLiu, Hui; Jin, Jiahao; Xu, Zhifeng; Zou, Yanzhen; Bu, Yifan; Zhang, Lu
errShare
errSave
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
errShare
errSave

Journal

IEEE Access cover
IEEE Access
IF:
3.6
Papers:
10.1W
Citations:
36.3W

Organization

U
universiti putra malaysia
Scholars:
769
Papers: 287
Citations: 7.0K
U
Universiti Teknologi Petronas
Scholars:
288
Papers: 113
Citations: 3.1K
U
University of Kirkuk
Scholars:
36
Papers: 32
Citations: 122
researcher View more organizations
Cited Papers

Cited Papers

No cited papers available