Multi-Label Code Smell Detection with Hybrid Model based on Deep Learning

计算机科学 编码(集合论) 人工智能 深度学习 程序设计语言 集合(抽象数据类型)
作者
Yichen Li,Xiaofang Zhang
出处
期刊:Proceedings 被引量:12
标识
DOI:10.18293/seke2022-077
摘要

smell is an indicator of potential problems in a software design that have a negative impact on readability and maintainability.Hence, it is essential for developers to make out the code smell to get tips on code maintenance in time.Fortunately, many approaches like metric-based, heuristic-based, machine-learning based and deep-learning based have been proposed to detect code smells.However, existing methods, using the simple code representation to describe different code smells unilaterally, cannot efficiently extract enough rich information from source code.What is more, one code snippet often has several code smells at the same time and there is a lack of multilabel code smell detection based on deep learning.In this paper, we propose a hybrid model with multi-level code representation to further optimize the code smell detection.First, we parse the code into the abstract syntax tree(AST) with control and data flow edges and the graph convolution network is applied to get the prediction at the syntactic and semantic level.Then we use the bidirectional long-short term memory network with attention mechanism to analyze the code tokens at the token-level in the meanwhile.Finally we get the fusion prediction result of the models.Experimental results show that our model can perform outstanding not only in single code smell detection but also in multi-label code smell detection.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
2秒前
取法乎上发布了新的文献求助10
2秒前
4秒前
古月完成签到,获得积分10
6秒前
好旺完成签到,获得积分10
6秒前
小蘑菇应助xjy采纳,获得10
10秒前
Tonald Yang发布了新的文献求助10
10秒前
动漫大师发布了新的文献求助10
12秒前
恸哭的千鸟完成签到,获得积分10
14秒前
滴滴完成签到 ,获得积分10
19秒前
赘婿应助精明平露采纳,获得10
20秒前
20秒前
20秒前
kinksaber完成签到,获得积分10
22秒前
小青年儿完成签到 ,获得积分10
22秒前
小二郎应助科研通管家采纳,获得10
25秒前
华仔应助科研通管家采纳,获得10
25秒前
CodeCraft应助科研通管家采纳,获得10
25秒前
传奇3应助科研通管家采纳,获得10
25秒前
充电宝应助Tonald Yang采纳,获得10
26秒前
nuonuo发布了新的文献求助10
26秒前
科研通AI2S应助温柔的如采纳,获得10
26秒前
000完成签到 ,获得积分10
27秒前
30秒前
风趣的芝麻完成签到 ,获得积分10
30秒前
34秒前
温柔的如完成签到,获得积分20
35秒前
无语的诗柳完成签到 ,获得积分10
36秒前
Buxi完成签到,获得积分10
36秒前
36秒前
37秒前
我爱科研完成签到,获得积分20
38秒前
搜集达人应助童心采纳,获得10
38秒前
司徒冬菱发布了新的文献求助10
39秒前
Mas发布了新的文献求助10
41秒前
酷波er应助珮2021采纳,获得10
41秒前
41秒前
skbkbe完成签到,获得积分10
41秒前
希望天下0贩的0应助卡尔采纳,获得10
42秒前
乐乐应助evilhag采纳,获得10
43秒前
高分求助中
Les Mantodea de Guyane Insecta, Polyneoptera 2500
Technologies supporting mass customization of apparel: A pilot project 450
Brain and Heart The Triumphs and Struggles of a Pediatric Neurosurgeon 400
Cybersecurity Blueprint – Transitioning to Tech 400
Mixing the elements of mass customisation 400
Периодизация спортивной тренировки. Общая теория и её практическое применение 310
the MD Anderson Surgical Oncology Manual, Seventh Edition 300
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 物理 生物化学 纳米技术 计算机科学 化学工程 内科学 复合材料 物理化学 电极 遗传学 量子力学 基因 冶金 催化作用
热门帖子
关注 科研通微信公众号,转发送积分 3783242
求助须知:如何正确求助?哪些是违规求助? 3328572
关于积分的说明 10237098
捐赠科研通 3043689
什么是DOI,文献DOI怎么找? 1670627
邀请新用户注册赠送积分活动 799792
科研通“疑难数据库(出版商)”最低求助积分说明 759130