Fusion of deep convolutional and LSTM recurrent neural networks for automated detection of code smells

计算机科学 代码气味 人工智能 卷积神经网络 机器学习 软件质量 深度学习 水准点(测量) 背景(考古学) 编码(集合论) 软件 可维护性 软件开发 软件工程 程序设计语言 古生物学 大地测量学 集合(抽象数据类型) 地理 生物
作者
Anh Ho,Anh M. T. Bui,Phuong T. Nguyen,Amleto Di Salle
标识
DOI:10.1145/3593434.3593476
摘要

Code smells is the term used to signal certain patterns or structures in software code that may contain a potential design or architecture problem, leading to maintainability or other software quality issues. Detecting code smells early in the software development process helps prevent these problems and improve the overall software quality. Existing research concentrates on the process of collecting and handling dataset, then exploring the potential of utilizing deep learning models to detect smells, while ignoring extensive feature engineering. Though these approaches obtained promising results, the following issues need to be tackled: (i) extracting both structural and semantic features from the software units; (ii) mitigating the effects of imbalanced data distribution on the performance.In this paper, we propose DeepSmells as a novel approach to code smells detection. To learn the complex hierarchical representations of the code fragment, we apply a deep convolutional neural network (CNN). Then, in order to improve the quality of the context encoding and preserve semantic information, long short-term memory networks (LSTM) is placed immediately after the CNN. The final classification is conducted by deep neural networks with weighted loss function to reduce the impact of skewed data distribution. We performed an empirical study using the existing code smell benchmark datasets to assess the performance of our proposed approach, and compare it with state-of-the-art baselines. The results demonstrate the effectiveness of our proposed method for all kinds of code smells with outperformed evaluation metrics in terms of F1 score and MCC.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
1秒前
科研通AI5应助清清佑佑采纳,获得10
2秒前
3秒前
子车安萱发布了新的文献求助10
4秒前
AlwaysKim发布了新的文献求助10
7秒前
子车安萱完成签到,获得积分10
9秒前
鸡蛋灌饼与掉渣饼完成签到,获得积分10
9秒前
10秒前
ddd完成签到 ,获得积分10
12秒前
清清佑佑发布了新的文献求助10
16秒前
田様应助AlwaysKim采纳,获得10
18秒前
18秒前
霸气安蕾发布了新的文献求助10
22秒前
唯梦完成签到 ,获得积分10
22秒前
23秒前
1111完成签到,获得积分10
23秒前
万能图书馆应助Du采纳,获得10
27秒前
whl发布了新的文献求助10
28秒前
29秒前
xifeng完成签到 ,获得积分10
31秒前
65556发布了新的文献求助10
33秒前
40秒前
42秒前
翟煜发布了新的文献求助10
43秒前
Lu完成签到 ,获得积分10
46秒前
cun完成签到,获得积分10
47秒前
垚垚发布了新的文献求助10
47秒前
iNk应助wodetaiyangLLL采纳,获得10
51秒前
田様应助应应采纳,获得10
52秒前
秋山伊夫完成签到,获得积分10
53秒前
gzj完成签到,获得积分10
53秒前
三水完成签到,获得积分10
57秒前
华仔应助zbb采纳,获得10
58秒前
58秒前
李健应助科研通管家采纳,获得10
1分钟前
汉堡包应助科研通管家采纳,获得10
1分钟前
1分钟前
科研通AI5应助南风知我意采纳,获得10
1分钟前
1分钟前
小二郎应助唐唐采纳,获得10
1分钟前
高分求助中
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小时)
化学 材料科学 医学 生物 工程类 有机化学 物理 生物化学 纳米技术 计算机科学 化学工程 内科学 复合材料 物理化学 电极 遗传学 量子力学 基因 冶金 催化作用
热门帖子
关注 科研通微信公众号,转发送积分 3783222
求助须知:如何正确求助?哪些是违规求助? 3328565
关于积分的说明 10236984
捐赠科研通 3043669
什么是DOI,文献DOI怎么找? 1670627
邀请新用户注册赠送积分活动 799792
科研通“疑难数据库(出版商)”最低求助积分说明 759126