• Home
  • Search
  • Bug Prediction Using Source Code Embedding Based on Doc2Vec
  • Open Access IconOpen Access
  • Cite Icon6
  • https://doi.org/10.1007/978-3-030-87007-2_27Copy DOI Icon

Bug Prediction Using Source Code Embedding Based on Doc2Vec

  • Jan 1, 2021
  • Tamás Aladics +2 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Bug prediction is a resource demanding task that is hard to automate using static source code analysis. In many fields of computer science, machine learning has proven to be extremely useful in tasks like this, however, for it to work we need a way to use source code as input. We propose a simple, but meaningful representation for source code based on its abstract syntax tree and the Doc2Vec embedding algorithm. This representation maps the source code to a fixed length vector which can be used for various upstream tasks – one of which is bug prediction. We measured this approach’s validity by itself and its effectiveness compared to bug prediction based solely on code metrics. We also experimented on numerous machine learning approaches to check the connection between different embedding parameters with different machine learning models. Our results show that this representation provides meaningful information as it improves the bug prediction accuracy in most cases, and is always at least as good as only using code metrics as features.

Similar Papers
  • PDF
  • Research Article
  • Citations13

Enhanced Bug Prediction in JavaScript Programs with Hybrid Call-Graph Based Invocation Metrics

  • Dec 30, 2020
  • Technologies
  • Gábor Antal +3
  • Research Article
  • Citations1

A systematic mapping study on graph machine learning for static source code analysis

  • Jul 01, 2025
  • Information and Software Technology
  • Jesse Maarleveld +2
  • Research Article

Method level static source code analysis on behavioral change impact analysis in software regression testing

  • Jul 01, 2024
  • Indonesian Journal of Electrical Engineering and Computer Science
  • Fredrick Mugambi Muthengi +3
  • Conference Article
  • Citations1

Rule based graph visualization for software systems

  • Jan 01, 2015
  • Tibor Brunner +1
  • Research Article

КОМБІНОВАНІ ПІДХОДИ ДО СТАТИЧНОГО АНАЛІЗУ КОДУ З ВИКОРИСТАННЯМ НЕЙРОННИХ МЕРЕЖ

  • Jan 01, 2023
  • Інфокомунікаційні та комп’ютерні технології
  • Illia Vokhranov +1
  • Conference Article
  • Citations20

An Extensive Analysis of Efficient Bug Prediction Configurations

  • Nov 08, 2017
  • Haidar Osman +3
  • PDF
  • Research Article
  • Citations55

A public unified bug dataset for java and its assessment regarding metrics and bug prediction

  • Jun 03, 2020
  • Software Quality Journal
  • Rudolf Ferenc +4
  • Dissertation

Software reliability prediction of mobile applications using machine learning techniques

  • Apr 30, 2021
  • Sumaya Hoosen
  • PDF
  • Research Article
  • Citations2

SOFTWARE QUALITY PREDICTION USING MACHINE LEARNING TECHNIQUES AND SOURCE CODE METRICS: A REVIEW

  • Dec 20, 2022
  • International Journal of Advanced Research in Computer Science
  • Santosh Saklani
  • Conference Article
  • Citations3

Exploring Violations of Programming Styles

  • Dec 08, 2018
  • Chunyu Yang +2
  • Conference Article
  • Citations5

Enhancing Performance Bug Prediction Using Performance Code Metrics

  • Apr 15, 2024
  • Guoliang Zhao +5
  • Research Article
  • Citations10

An empirical study on bug severity estimation using source code metrics and static analysis

  • Aug 06, 2024
  • The Journal of Systems & Software
  • Ehsan Mashhadi +4
  • Preprint Article
  • Citations1

Impact of restricted forward greedy feature selection technique on bug prediction

  • Oct 01, 2015
  • Muthukumaran Kasinathan +1
  • Research Article

A new method for determining the characteristics of block algorithms

  • Aug 10, 2025
  • Herald of Dagestan State Technical University. Technical Sciences
  • V A Egunov
  • Conference Article
  • Citations10

Static analysis of program source code using EDSA

  • Oct 16, 1989
  • L.I Vanek +1
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.