Next Article in Journal
A Review of Generative Models in Generating Synthetic Attack Data for Cybersecurity
Next Article in Special Issue
Enhancing Code Readability through Automated Consistent Formatting
Previous Article in Journal
Augmenting Large Language Models with Rules for Enhanced Domain-Specific Interactions: The Case of Medical Diagnosis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Two-Level Information-Retrieval-Based Model for Bug Localization Based on Bug Reports

1
Department of Computer Science, Faculty of Computing and Information Technology, King Abdulaziz University, Jeddah 21589, Saudi Arabia
2
Department of Computer Science, College of Computer Science and Engineering, Taibah University, Yanbu 46421, Saudi Arabia
*
Author to whom correspondence should be addressed.
Electronics 2024, 13(2), 321; https://doi.org/10.3390/electronics13020321
Submission received: 16 November 2023 / Revised: 27 December 2023 / Accepted: 8 January 2024 / Published: 11 January 2024
(This article belongs to the Special Issue Software Engineering: Status and Perspectives)

Abstract

Software bugs are a noteworthy concern for developers and maintainers. When a failure is detected late, it costs more to be fixed. To repair the bug that caused the software failure, the location of the bug must first be known. The process of finding the defective source code elements that led to the failure of the software is called bug localization. Effective approaches for automatically locating bugs using bug reports are highly desirable, as they would reduce bug-fixing time, consequently lowering software maintenance costs. With the increasing size and complexity of software projects, manual bug localization methods have become complex, challenging, and time-consuming tasks, which motivates research on automated bug localization techniques. This paper introduces a novel bug localization model, which works on two levels. The first level localizes the buggy classes using an information retrieval approach and it has two additional sub-phases, namely the class-level feature scoring phase and the class-level final score and ranking phase, which ranks the top buggy classes. The second level localizes the buggy methods inside these classes using an information retrieval approach and it has two sub-phases, which are the method-level feature scoring phase and the method-level final score and ranking phase, which ranks the top buggy methods inside the localized classes. A model is evaluated using an AspectJ dataset, and it can correctly localize and rank more than 350 classes and more than 136 methods. The evaluation results show that the proposed model outperforms several state-of-the-art approaches in terms of the mean reciprocal rank (MRR) metrics and the mean average precision (MAP) in class-level bug localization.
Keywords: fault localization; software maintenance; information retrieval; class localization; method localization fault localization; software maintenance; information retrieval; class localization; method localization

Share and Cite

MDPI and ACS Style

Alsaedi, S.; Gad-Elrab, A.A.A.; Noaman, A.; Eassa, F. Two-Level Information-Retrieval-Based Model for Bug Localization Based on Bug Reports. Electronics 2024, 13, 321. https://doi.org/10.3390/electronics13020321

AMA Style

Alsaedi S, Gad-Elrab AAA, Noaman A, Eassa F. Two-Level Information-Retrieval-Based Model for Bug Localization Based on Bug Reports. Electronics. 2024; 13(2):321. https://doi.org/10.3390/electronics13020321

Chicago/Turabian Style

Alsaedi, Shatha, Ahmed A. A. Gad-Elrab, Amin Noaman, and Fathy Eassa. 2024. "Two-Level Information-Retrieval-Based Model for Bug Localization Based on Bug Reports" Electronics 13, no. 2: 321. https://doi.org/10.3390/electronics13020321

APA Style

Alsaedi, S., Gad-Elrab, A. A. A., Noaman, A., & Eassa, F. (2024). Two-Level Information-Retrieval-Based Model for Bug Localization Based on Bug Reports. Electronics, 13(2), 321. https://doi.org/10.3390/electronics13020321

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop