Adaptive Ranking Relevant Source Files for Bug Reports Using Genetic Algorithm

被引:0
作者
Thi Mai Anh Bui [1 ]
Nhat Hai Nguyen [1 ]
机构
[1] Hanoi Univ Sci & Technol, Sch Informat & Commun Technol, Hanoi, Vietnam
来源
NEW TRENDS IN INTELLIGENT SOFTWARE METHODOLOGIES, TOOLS AND TECHNIQUES | 2021年 / 337卷
关键词
Bug localization; Genetic algorithm; bug report; semantic features; lexical features; LOCALIZATION;
D O I
10.3233/FAIA210042
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Precisely locating buggy files for a given bug report is a cumbersome and time-consuming task, particularly in a large-scale project with thousands of source files and bug reports. An efficient bug localization module is desirable to improve the productivity of the software maintenance phase. Many previous approaches rank source files according to their relevance to a given bug report based on simple lexical matching scores. However, the lexical mismatches between natural language expressions used to describe bug reports and technical terms of software source code might reduce the bug localization system's accuracy. Incorporating domain knowledge through some features such as the semantic similarity, the fixing frequency of a source file, the code change history and similar bug reports is crucial to efficiently locating buggy files. In this paper, we propose a bug localization model, BugLocGA that leverages both lexical and semantic information as well as explores the relation between a bug report and a source file through some domain features. Given a bug report, we calculate the ranking score with every source files through a weighted sum of all features, where the weights are trained through a genetic algorithm with the aim of maximizing the performance of the bug localization model using two evaluation metrics: mean reciprocal rank (MRR) and mean average precision (MAP). The empirical results conducted on some widely-used open source software projects have showed that our model outperformed some state of the art approaches by effectively recommending relevant files where the bug should be fixed.
引用
收藏
页码:430 / 443
页数:14
相关论文
共 50 条
[31]   Aerodynamic Optimization of Airfoils Using Adaptive Parameterization and Genetic Algorithm [J].
Ebrahimi, M. ;
Jahangirian, A. .
JOURNAL OF OPTIMIZATION THEORY AND APPLICATIONS, 2014, 162 (01) :257-271
[32]   Adaptive Gait Generation for Hexapod Robot using Genetic Algorithm [J].
Manglik, Aditya ;
Gupta, Kunal ;
Bhanot, Surekha .
PROCEEDINGS OF THE FIRST IEEE INTERNATIONAL CONFERENCE ON POWER ELECTRONICS, INTELLIGENT CONTROL AND ENERGY SYSTEMS (ICPEICES 2016), 2016,
[33]   MULTI-OBJECTIVE OPTIMIZATION FOR PID CONTROLLER TUNING USING THE GLOBAL RANKING GENETIC ALGORITHM [J].
Rani, Mohd Rahairi ;
Selamat, Hazlina ;
Zamzuri, Hairi ;
Ibrahim, Zuwairie .
INTERNATIONAL JOURNAL OF INNOVATIVE COMPUTING INFORMATION AND CONTROL, 2012, 8 (1A) :269-284
[34]   Pollution source identification using a coupled diffusion model with a genetic algorithm [J].
Khlaifi, Anis ;
Ionescu, Anda ;
Candau, Yves .
MATHEMATICS AND COMPUTERS IN SIMULATION, 2009, 79 (12) :3500-3510
[35]   Dynamic economic load dispatch using hybrid genetic algorithm and the method of fuzzy number ranking [J].
Zhang, GL ;
Lu, HY ;
Li, GY ;
Zhang, GQ .
Proceedings of 2005 International Conference on Machine Learning and Cybernetics, Vols 1-9, 2005, :2472-2477
[36]   Evaluation of the adaptive beamforming capability of an ESPAR antenna using the genetic algorithm [J].
Han, Qing ;
Briend, Victor ;
Ohira, Takashi .
2006 EUROPEAN CONFERENCE ON WIRELESS TECHNOLOGIES, 2006, :59-+
[37]   Cervical cancer prognosis using genetic algorithm and adaptive boosting approach [J].
Sharma, Manoj .
HEALTH AND TECHNOLOGY, 2019, 9 (05) :877-886
[38]   An adaptive and statistical approach for blood vessel segmentation using genetic algorithm [J].
Mandar K. Bivalkar .
Signal, Image and Video Processing, 2024, 18 :55-61
[39]   Optimal maintenance management of bridge structures using adaptive Genetic Algorithm [J].
Nakahara, K ;
Takahashi, Y ;
Furuta, H ;
Kameda, T .
APPLICATIONS OF STATISTICS AND PROBABILITY IN CIVIL ENGINEERING, VOLS 1 AND 2, 2003, :1109-1116
[40]   An adaptive and statistical approach for blood vessel segmentation using genetic algorithm [J].
Bivalkar, Mandar K. .
SIGNAL IMAGE AND VIDEO PROCESSING, 2024, 18 (01) :55-61