Software Defect Prediction via Attention-Based Recurrent Neural Network

被引:60
|
作者
Fan, Guisheng [1 ,2 ]
Diao, Xuyang [1 ]
Yu, Huiqun [1 ]
Yang, Kang [1 ]
Chen, Liqiong [3 ]
机构
[1] East China Univ Sci & Technol, Dept Comp Sci & Engn, Shanghai, Peoples R China
[2] Shanghai Key Lab Comp Software Evaluating & Testi, Shanghai 201112, Peoples R China
[3] Shanghai Inst Technol, Dept Comp Sci & Informat Engn, Shanghai 201418, Peoples R China
关键词
Recurrent neural networks;
D O I
10.1155/2019/6230953
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In order to improve software reliability, software defect prediction is applied to the process of software maintenance to identify potential bugs. Traditional methods of software defect prediction mainly focus on designing static code metrics, which are input into machine learning classifiers to predict defect probabilities of the code. However, the characteristics of these artificial metrics do not contain the syntactic structures and semantic information of programs. Such information is more significant than manual metrics and can provide a more accurate predictive model. In this paper, we propose a framework called defect prediction via attention-based recurrent neural network (DP-ARNN). More specifically, DP-ARNN first parses abstract syntax trees (ASTs) of programs and extracts them as vectors. Then it encodes vectors which are used as inputs of DP-ARNN by dictionary mapping and word embedding. After that, it can automatically learn syntactic and semantic features. Furthermore, it employs the attention mechanism to further generate significant features for accurate defect prediction. To validate our method, we choose seven open-source Java projects in Apache, using F1-measure and area under the curve (AUC) as evaluation criteria. The experimental results show that, in average, DP-ARNN improves the F1-measure by 14% and AUC by 7% compared with the state-of-the-art methods, respectively.
引用
收藏
页数:14
相关论文
共 50 条
  • [1] Attention-based recurrent neural network for influenza epidemic prediction
    Zhu, Xianglei
    Fu, Bofeng
    Yang, Yaodong
    Ma, Yu
    Hao, Jianye
    Chen, Siqi
    Liu, Shuang
    Li, Tiegang
    Liu, Sen
    Guo, Weiming
    Liao, Zhenyu
    [J]. BMC BIOINFORMATICS, 2019, 20 (Suppl 18)
  • [2] Attention-based recurrent neural network for influenza epidemic prediction
    Xianglei Zhu
    Bofeng Fu
    Yaodong Yang
    Yu Ma
    Jianye Hao
    Siqi Chen
    Shuang Liu
    Tiegang Li
    Sen Liu
    Weiming Guo
    Zhenyu Liao
    [J]. BMC Bioinformatics, 20
  • [3] Attention-based Recurrent Neural Network for Traffic Flow Prediction
    Chen, Qi
    Wang, Wei
    Huang, Xin
    Liang, Hai-ning
    [J]. JOURNAL OF INTERNET TECHNOLOGY, 2020, 21 (03): : 831 - 839
  • [4] Interpretable clinical prediction via attention-based neural network
    Chen, Peipei
    Dong, Wei
    Wang, Jinliang
    Lu, Xudong
    Kaymak, Uzay
    Huang, Zhengxing
    [J]. BMC MEDICAL INFORMATICS AND DECISION MAKING, 2020, 20 (Suppl 3)
  • [5] Interpretable clinical prediction via attention-based neural network
    Peipei Chen
    Wei Dong
    Jinliang Wang
    Xudong Lu
    Uzay Kaymak
    Zhengxing Huang
    [J]. BMC Medical Informatics and Decision Making, 20
  • [6] Attention-based Recurrent Neural Network for Urban Vehicle Trajectory Prediction
    Choi, Seongjin
    Kim, Jiwon
    Yeo, Hwasoo
    [J]. 10TH INTERNATIONAL CONFERENCE ON AMBIENT SYSTEMS, NETWORKS AND TECHNOLOGIES (ANT 2019) / THE 2ND INTERNATIONAL CONFERENCE ON EMERGING DATA AND INDUSTRY 4.0 (EDI40 2019) / AFFILIATED WORKSHOPS, 2019, 151 : 327 - 334
  • [7] Attention-Based Convolutional Recurrent Neural Network for Traffic Index Prediction
    Liu, Xiaolei
    Duan, Zhengyu
    Luo, Songwen
    Zhao, Yixin
    [J]. CICTP 2023: INNOVATION-EMPOWERED TECHNOLOGY FOR SUSTAINABLE, INTELLIGENT, DECARBONIZED, AND CONNECTED TRANSPORTATION, 2023, : 1140 - 1149
  • [8] Predicting taxi demands via an attention-based convolutional recurrent neural network
    Liu, Tong
    Wu, Wenbin
    Zhu, Yanmin
    Tong, Weiqin
    [J]. KNOWLEDGE-BASED SYSTEMS, 2020, 206
  • [9] Attention-Based Recurrent Neural Network for Multicriteria Recommendations
    Bougteb, Yahya
    Frikh, Bouchra
    Ouhbi, Brahim
    Zemmouri, El Moukhtar
    [J]. INTELLIGENT SYSTEMS AND APPLICATIONS, VOL 2, INTELLISYS 2023, 2024, 823 : 264 - 274
  • [10] Attention-based Recurrent Neural Network for Location Recommendation
    Xia, Bin
    Li, Yun
    Li, Qianmu
    Li, Tao
    [J]. 2017 12TH INTERNATIONAL CONFERENCE ON INTELLIGENT SYSTEMS AND KNOWLEDGE ENGINEERING (IEEE ISKE), 2017,