Skip to main content

Bug Localization Using Multi-objective Approach and Information Retrieval

  • Conference paper
  • First Online:
International Conference on Innovative Computing and Communications

Abstract

Detecting software bugs is considered to be an active area of research as bugs detected after the delivery of software is considered to be very expensive to deal with. Whenever a new software bug is detected, software developer faces extreme difficulty in detecting the exact location of the bug in the product. Identifying bugs efficiently through genetic algorithms is the active area of research nowadays. Based on the bug reports dataset, a self-operating genetic algorithm, Strength Pareto Evolutionary Algorithm (SPEA II) identifies and ranks the application files in the reference code as per their likelihood of carrying bugs. In the presented exposition, a text-mining strategy, term frequency–inverse document frequency (TFIDF) is applied for the proper ranking of application files. The ranking is based on the history-based similarity and lexical similarity within the generated report of bugs and the documentation of the application program interface (API). The striking feature of the paper is that a multi-objective approach is used to improve upon the conventional techniques such that contradictory demands of increasing the similarity index and minimizing the number of suggested classes are met simultaneously. Thus, the proposed new approach employs SPEA II as the multi-objective genetic algorithm to meet the conflicting demands and uses both history-based as well as lexical similarity for information retrieval and ranking.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. R. Almhana, W. Mkaouer, M. Kassentini, A. Ouni, Recommending relevant classes for bug reports using multi-objective search. in 31st IEEE/ACM International Conference on Automated Software Engineering—ASE (2016)

    Google Scholar 

  2. G. Salton, A. Wong, C.-S. Yang, A vector space model for automatic indexing. Commun. ACM. 18, 613–620 (1975)

    Google Scholar 

  3. C.D. Manning, P. Raghavan, H. Sch€utze, Introduction to Information Retrieval (Cambridge University Press, New York, NY, USA) (2008)

    Google Scholar 

  4. B. Ashok, J. Joy, H. Liang, S.K. Rajamani, G. Srinivasa, V. Vangala, DebugAdvisor: a recommender system for debugging. in 7th Joint Meeting of the European Software Engineering Conference and the ACM SIGSOFT Symposium on the Foundations of Software Engineering, ACM, pp. 373–382 (2009)

    Google Scholar 

  5. A.T. Nguyen, T.T. Nguyen, J. Al-Kofahi, H.V. Nguyen, T.N. Nguyen, A topic based approach for narrowing the search space of buggy files from a bug report. in IEEE/ACM International Conference on Automated Software Engineering (ASE), pp. 263–272 (2011)

    Google Scholar 

  6. J. Zhou, H. Zhang, D. Lo, Where should the bugs be fixed? more accurate information retrieval-based bug localization based on bug reports, in 34th International Conference on Software Engineering (ICSE), IEEE, pp. 14–24 (2012)

    Google Scholar 

  7. R.K. Saha, M. Lease, S. Khurshid, D.E. Perry, Improving bug localization using structured information retrieval, in IEEE/ACM International Conference on Automated Software Engineering (ASE), pp. 345–355 (2013)

    Google Scholar 

  8. R.K. Saha, J. Lawall, S. Khurshid, D.E. Perry, Effectiveness of information retrieval based bug localization for C programs. ICSME, 161–170 (2014)

    Google Scholar 

  9. X. Ye, R. Bunescu, C. Liu, Learning to rank relevant files for bug reports using domain knowledge, in 22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering, ACM, pp. 689–699 (2014)

    Google Scholar 

  10. X. Ye, R. Bunescu, C. Liu, Mapping bug reportsto relevant files: a ranking model, a fine-grained benchmark, and feature evaluation. IEEE Trans. Softw. Eng. 379–402 (2016)

    Google Scholar 

  11. M. Tamoor, S. Osama, I. Younas, S. Asif, Comparison of different multi objective evolutionary algorithms for bug localization, in International Conference on Advances on Applied Cognitive Computing—ACC (2018)

    Google Scholar 

  12. S.T. Dumais, Latent semantic analysis. Annu Rev Inf Sci Technol, 188–230 (2004)

    Google Scholar 

  13. David M. Blei, Andrew Y. Ng, Michael I. Jordan, Latent Dirichlet allocation. J. Mach. Learn. 3, 993–1002 (2003)

    Google Scholar 

  14. C. Bird, A. Bachmann, E. Aune, J. Duffy, A. Bernstein, V. Filkov, P. Devanbu, Fair and balanced? Bias in bug-fix datasets. ESEC/FSE (2009)

    Google Scholar 

  15. A. Kumar, R. Chugh, R. Girdhar, S. Aggarwal, Classification of faults in web applications using machine learning, in International Conference on Intelligent Systems, Metaheuristics and Swarm Intelligence (Hong Kong, 2017), pp. 62–67

    Google Scholar 

  16. X. Ye, R. Bunescu, C. Liu, Learning to rank relevant files for bug reports using domain knowledge, in 22nd ACM SIGSOFT International Symposium Foundation of Software Engineering (New York, NY, USA, 2014), pp. 689–699

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Akanksha Sood .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Sood, A. et al. (2021). Bug Localization Using Multi-objective Approach and Information Retrieval. In: Gupta, D., Khanna, A., Bhattacharyya, S., Hassanien, A.E., Anand, S., Jaiswal, A. (eds) International Conference on Innovative Computing and Communications. Advances in Intelligent Systems and Computing, vol 1165. Springer, Singapore. https://doi.org/10.1007/978-981-15-5113-0_58

Download citation

Publish with us

Policies and ethics