An Imbalanced Deep Learning Model for Bug Localization

被引:2
作者
Bui Thi Mai Anh [1 ]
Nguyen Viet Luyen [1 ]
机构
[1] Hanoi Univ Sci & Technol, Sch Informat & Commun Technol, Lab Intelligent Software Engn, Hanoi, Vietnam
来源
2021 28TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE WORKSHOPS (APSECW 2021) | 2021年
关键词
bug localization; deep neural network; imbalanced data-set; bootstrapping;
D O I
10.1109/APSECW53869.2021.00017
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Debugging and locating faulty source files are tedious and time-consuming tasks. To improve the productivity and to help developers focus on crucial files, automated bug localization models have been proposed for years. These models recommend buggy source files by ranking them according to their relevance to a given bug report. There are two significant challenges in this research field: (i) narrowing the lexical gap between bug reports which are typically described using natural languages and source files written in programming languages; (ii) reducing the impact of imbalanced data distribution in model training as a far fewer of source files relate to a given bug report while the majority of them are not relevant. In this paper, we propose a deep neural network model to investigate essential information hidden within bug reports and source files through capturing not only lexical relations but also semantic details as well as domain knowledge features such as historical bug fixings, code change history. To address the skewed class distribution, we apply a focal loss function combining with a bootstrapping method to rectify samples of the minority class within iterative training batches to our proposed model. We assessed the performance of our approach over six large scale Java open-source projects. The empirical results have showed that the proposed method outperformed other state-of-the-art models by improving the Mean Average Precision (MAP) and Mean Reciprocal Rank (MRR) scores from 3% to 11% and from 2% to 14%, respectively.
引用
收藏
页码:32 / 40
页数:9
相关论文
共 27 条
[1]   Bug Localization with Combination of Deep Learning and Information Retrieval [J].
An Ngoc Lam ;
Anh Tuan Nguyen ;
Hoan Anh Nguyen ;
Nguyen, Tien N. .
2017 IEEE/ACM 25TH INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC), 2017, :218-229
[2]  
Anh Tuan Nguyen, 2011, 2011 26th IEEE/ACM International Conference on Automated Software Engineering, P263, DOI 10.1109/ASE.2011.6100062
[3]   Software defect prediction using cost-sensitive neural network [J].
Arar, Omer Faruk ;
Ayan, Kursat .
APPLIED SOFT COMPUTING, 2015, 33 :263-277
[4]   Deep Neural Networks as Scientific Models [J].
Cichy, Radoslaw M. ;
Kaiser, Daniel .
TRENDS IN COGNITIVE SCIENCES, 2019, 23 (04) :305-317
[5]   Class-Balanced Loss Based on Effective Number of Samples [J].
Cui, Yin ;
Jia, Menglin ;
Lin, Tsung-Yi ;
Song, Yang ;
Belongie, Serge .
2019 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR 2019), 2019, :9260-9269
[6]   Imbalanced Deep Learning by Minority Class Incremental Rectification [J].
Dong, Qi ;
Gong, Shaogang ;
Zhu, Xiatian .
IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, 2019, 41 (06) :1367-1381
[7]   Deep Learning with MCA-based Instance Selection and Bootstrapping for Imbalanced Data Classification [J].
Guan, Sheng ;
Chen, Min ;
Ha, Hsin-Yu ;
Chen, Shu-Ching ;
Shyu, Mei-Ling ;
Zhang, Chengde .
2015 IEEE CONFERENCE ON COLLABORATION AND INTERNET COMPUTING (CIC), 2015, :288-295
[8]  
Huo X., 2016, IJCAI, P1606
[9]   Fault Localization with Code Coverage Representation Learning [J].
Li, Yi ;
Wang, Shaohua ;
Nguyen, Tien N. .
2021 IEEE/ACM 43RD INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2021), 2021, :661-673
[10]   Deep Learning With Customized Abstract Syntax Tree for Bug Localization [J].
Liang, Hongliang ;
Sun, Lu ;
Wang, Meilin ;
Yang, Yuxing .
IEEE ACCESS, 2019, 7 :116309-116320