arrow
Return

Deep Semantic Feature Learning for Software Defect Prediction

delete2020-12-01
delete185
PRE
AI
S
Song Wang *
T
Taiyue Liu
J
Jaechang Nam
L
Lin Tan
DOI:10.1109/TSE.2018.2877612delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Software defect prediction, which predicts defective code regions, can assist developers in finding bugs and prioritizing their testing efforts. Traditional defect prediction features often fail to capture the semantic differences between different programs. This degrades the performance of the prediction models built on these traditional features. Thus, the capability to capture the semantics in programs is required to build accurate prediction models. To bridge the gap between semantics and defect prediction features, we propose leveraging a powerful representation-learning algorithm, deep learning, to learn the semantic representations of programs automatically from source code files and code changes. Specifically, we leverage a deep belief network (DBN) to automatically learn semantic features using token vectors extracted from the programs' abstract syntax trees (AST) (for file-level defect prediction models) and source code changes (for change-level defect prediction models). We examine the effectiveness of our approach on two file-level defect prediction tasks (i.e., file-level within-project defect prediction and file-level cross-project defect prediction) and two change-level defect prediction tasks (i.e., change-level within-project defect prediction and change-level cross-project defect prediction). Our experimental results indicate that the DBN-based semantic features can significantly improve the examined defect prediction tasks. Specifically, the improvements of semantic features against existing traditional features (in F1) range from 2.1 to 41.9 percentage points for file-level within-project defect prediction, from 1.5 to 13.4 percentage points for file-level cross-project defect prediction, from 1.0 to 8.6 percentage points for change-level within-project defect prediction, and from 0.6 to 9.9 percentage points for change-level cross-project defect prediction.
Keywords:
Semantics
Predictive models
Feature extraction
Task analysis
Computer bugs
Data models
Defect prediction
quality assurance
deep learning
semantic features
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
2.9K
Citations:
1.1W

Organization

H
Handong Global University
Scholars:
565
Papers: 411
Citations: 361
U
University of Waterloo
Scholars:
2.2W
Papers: 2.3W
Citations: 3.3W
Cited Papers

Cited Papers

Rating of acoustic performance levels of NBR 15575 (2013) based on user perception: A case study in the Brazilian Amazon
err2017-11-13
err0
PREAI
errWylliam Bessa Santana; Luiz Mauricio Furtado Maués; Newton Sure Soeiro; Marcelo de Souza Picanço
errShare
errSave
Spatial patterns of the semi-aquatic rodentNectomys squamipesin Atlantic forest streams
err2015-08-06
err0
errOAAI
errDaniela Oliveira Lima; Gabriela Medeiros Pinho; Fernando A. S. Fernandez
errShare
errSave
Lys63/Met1-hybrid ubiquitin chains are commonly formed during the activation of innate immune signalling
err2016-06-01
err0
errOAAI
errChristoph H. Emmerich; Siddharth Bakshi; Ian R. Kelsall; Juanma Ortiz-Guerrero; Natalia Shpiro; Philip Cohen
errShare
errSave
Crosstalk Between Autophagy and Apoptosis in RAW 264.7 Macrophages Infected With Ectromelia Orthopoxvirus
err2013-10-01
err0
errOAAI
errLech Martyniszyn; Lidia Szulc-Dąbrowska; Anna Boratyńska-Jasińska; Justyna Struzik; Anna Winnicka; Marek Niemiałtowski
errShare
errSave
researcher View more