arrow
Return

Improving code readability classification using convolutional neural networks

delete2018-12-01
delete34
PRE
AI
Q
Qing Mi *
J
Jacky Keung
肖艳 cover
肖艳 (Yan Xiao)
S
Solomon Mensah
Y
Yujin Gao
DOI:10.1016/j.infsof.2018.07.006delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

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.
Keywords:
Code readability
Convolutional Neural Network
Deep learning
Program comprehension
Empirical software engineering
Open source software

AI Summary

The summary could not be loaded. Please check again.

errShare
errSave
How do annotations affect Java code readability?
err2024-05-03
err0
PREAI
errGuerra, Eduardo; Gomes, Everaldo; Ferreira, Jeferson; Wiese, Igor; Lima, Phyllipe; Gerosa, Marco; Meirelles, Paulo
errShare
errSave
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
errShare
errSave
A graph-based code representation method to improve code readability classification
err2023-05-23
err4
PREAI
errMi, Qing; Zhan, Yi; Weng, Han; Bao, Qinghang; Cui, Longjie; Ma, Wei
errShare
errSave
Learning a Metric for Code Readability
err2010-07-01
err256
PREAI
errBuse, Raymond P. L.; Weimer, Westley R.
errShare
errSave
Improving Source Code Lexicon via Traceability and Information Retrieval
err2011-03-01
err43
PREAI
errDe Lucia, Andrea; Di Penta, Massimiliano; Oliveto, Rocco
errShare
errSave
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
errShare
errSave

Journal

Information and Software Technology cover
Information and Software Technology
IF:
4.3
Papers:
3.8K
Citations:
9.5K

Organization

Beijing Institute of Technology cover
Beijing Institute of Technology
Scholars:
7.8K
Papers: 2.3K
Citations: 3.6W
C
City University of Hong Kong
Scholars:
3.7K
Papers: 1.7K
Citations: 3.3W
Cited Papers

Cited Papers

A tutorial on the cross-entropy method
err2005-02-01
err2.2K
PREAI
errDe Boer, PT; Kroese, DP; Mannor, S; Rubinstein, RY
errShare
errSave
Coding Guidelines: Finding the Art in the Science
err2011-12-01
err19
errOAAI
errGreen, Robert; Ledgard, Henry
errShare
errSave
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
errShare
errSave
Gradient-based learning applied to document recognition
err1998-01-01
err3.8W
PREAI
errLecun, Y; Bottou, L; Bengio, Y; Haffner, P
errShare
errSave
Crowdsourcing Systems on the World-Wide Web
err2011-04-01
err857
PREAI
errDoan, Anhai; Ramakrishnan, Raghu; Halevy, Alon Y.
errShare
errSave
Viscosity of (C2–C14) 1-alkyl-3-methylimidazolium bis(trifluoromethylsulfonyl)amide ionic liquids in an extended temperature range
err2011-02-01
err0
PREAI
errMohammad Tariq; Pedro J. Carvalho; João A.P. Coutinho; Isabel M. Marrucho; José N. Canongia Lopes; Luís P.N. Rebelo
errShare
errSave
researcher View more