arrow
返回

DeepCSS: severity classification for code smell based on deep learning

delete2025-05-01
delete0
PRE
AI
张杨 封面图
张杨 (Yang Zhang) *
张春辉 封面图
张春辉 (Chunhui Zhang)
K
Kun Zheng
G
Grant Meredith
DOI:10.1007/s10664-025-10637-xdelete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
Code smell severity refers to the different levels of impact extent that smelly instances may have upon a specific project when more than one kind of code smell exists. Severity classification helps developers better understand a code smell and prioritize multiple refactoring operations more efficiently, thus improving the efficiency of software maintenance. However, existing studies on code smell severity assessment and classification suffer from insufficient quantitative evaluation and low accuracy. To this end, this paper proposes DeepCSS, a novel approach to classify code smell severity based on deep learning. To evaluate the severity of code smells reasonably and accurately, a quantitative evaluation framework is proposed to evaluate the importance of assessing each related metric. With this evaluation framework, datasets are constructed for four types of code smell (including data class, god class, long method, and feature envy) extracted from 100 real-world projects. DeepCSS acquires structural and semantic information from which features are extracted by leveraging BiLSTM-Attention and the improved CNN model. Then the final classification is done by a fully connected network containing the Attention mechanism and softmax functions. The experimental results show that DeepCSS can achieve an accuracy ranging from 95.11% to 98.97%. Compared to other studies, DeepCSS obtained an average improvement of 6.97% and 1.39% in MCC, demonstrating its effectiveness.
Keyword:
Code smell
Severity classification
Deep learning
Pre-training model
FSM quality model
Code smell severity classification using machine learning techniques
err2017-07-01
err98
PREAI
errFontana, Francesca Arcelli; Zanoni, Marco
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收藏
Code smell detection by deep direct-learning and transfer-learning?
err2021-06-01
err51
errOAAI
errSharma, Tushar; Efstathiou, Vasiliki; Louridas, Panos; Spinellis, Diomidis
err分享
err收藏
ENSESMELLS : Deep ensemble and programming language models for automated code smells detection
err2025-06-01
err0
errOAAI
errHo, Anh; Bui, Anh M. T.; Nguyen, Phuong T.; Di Salle, Amleto; Le, Bach
err分享
err收藏
DeleSmell: Code smell detection based on deep learning and latent semantic analysis
err2022-11-01
err14
PREAI
errZhang, Yang; Ge, Chuyan; Hong, Shuai; Tian, Ruili; Dong, Chunhao; Liu, Jingjing
err分享
err收藏
Revisiting Code Smell Severity Prioritization using learning to rank techniques
err2024-09-01
err2
PREAI
errLiu, Lei; Lin, Guancheng; Zhu, Lin; Yang, Zhen; Song, Peilin; Wang, Xin; Hu, Wenhua
err分享
err收藏

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
6.4K

机构

F
Federation University Australia
学者数:
38
论文数: 28
被引数: 1.4K
引用论文

引用论文

暂无论文信息