arrow
返回

Improving code readability classification using convolutional neural networks

delete2018-12-01
delete34
PRE
AI
Q
Qing Mi *
J
Jacky Keung
肖艳 封面图
肖艳 (Yan Xiao)
S
Solomon Mensah
Y
Yujin Gao
DOI:10.1016/j.infsof.2018.07.006delete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
Context Code readability classification (which refers to classification of a piece of source code as either readable or unreadable) has attracted increasing concern in academia and industry. To construct accurate classification models, previous studies depended mainly upon handcrafted features. However, the manual feature engineering process is usually labor-intensive and can capture only partial information about the source code, which is likely to limit the model performance. Objective: To improve code readability classification, we propose the use of Convolutional Neural Networks (ConvNets). Method: We first introduce a representation strategy (with different granularities) to transform source codes into integer matrices as the input to ConvNets. We then propose DeepCRM, a deep learning-based model for code readability classification. DeepCRM consists of three separate ConvNets with identical architectures that are trained on data preprocessed in different ways. We evaluate our approach against five state-of-the-art code readability models. Results: The experimental results show that DeepCRM can outperform previous approaches. The improvement in accuracy ranges from 2.4% to 17.2%. Conclusions: By eliminating the need for manual feature engineering, DeepCRM provides a relatively improved performance, confirming the efficacy of deep learning techniques in the task of code readability classification.
Keyword:
Code readability
Convolutional Neural Network
Deep learning
Program comprehension
Empirical software engineering
Open source software
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

err分享
err收藏
How do annotations affect Java code readability?注释如何影响Java代码的可读性?
err2024-05-03
err0
PREAI
errGuerra, Eduardo; Gomes, Everaldo; Ferreira, Jeferson; Wiese, Igor; Lima, Phyllipe; Gerosa, Marco; Meirelles, Paulo
err分享
err收藏
Code authorship identification using convolutional neural networks
err2019-06-01
err41
PREAI
errAbuhamad, Mohammed; Rhim, Ji-su; AbuHmed, Tamer; Ullah, Sana; Kang, Sanggil; Nyang, DaeHun
err分享
err收藏
err分享
err收藏
Code classification with graph neural networks: Have you ever struggled to make it work?
err2023-12-01
err1
PREAI
errYu, Qingchen; Xin, Liu; Zhou, Qingguo; Zhuge, Jianwei; Wu, Chunming
err分享
err收藏

期刊

Information and Software Technology 封面图
Information and Software Technology
IF:
4.3
论文数:
3.8K
被引数:
9.5K

机构

北京理工大学 封面图
北京理工大学
学者数:
7.8K
论文数: 2.3K
被引数: 3.6W
C
City University of Hong Kong
学者数:
3.7K
论文数: 1.7K
被引数: 3.3W
引用论文

引用论文

A tutorial on the cross-entropy method关于交叉熵方法的教程
err2005-02-01
err2.2K
PREAI
errDe Boer, PT; Kroese, DP; Mannor, S; Rubinstein, RY
err分享
err收藏
Coding Guidelines: Finding the Art in the Science
err2011-12-01
err19
errOAAI
errGreen, Robert; Ledgard, Henry
err分享
err收藏
Behavioural and neuronal basis of olfactory imprinting and kin recognition in larval fish
err2019-02-06
err0
errOAAI
errGabriele Gerlach; Kristin Tietje; Daniela Biechl; Iori Namekawa; Gregor Schalm; Astrid Sulmann
err分享
err收藏
Crowdsourcing Systems on the World-Wide Web
err2011-04-01
err857
PREAI
errDoan, Anhai; Ramakrishnan, Raghu; Halevy, Alon Y.
err分享
err收藏
学者 查看更多内容