EconPapers    
Economics at your fingertips  
 

Software Defect Prediction Using Abstract Syntax Trees Features and Object—Oriented Metrics

Anushka Sethi (), Aseem Sangalay () and Ruchika Malhotra ()
Additional contact information
Anushka Sethi: Delhi Technological University
Aseem Sangalay: Delhi Technological University
Ruchika Malhotra: Delhi Technological University

A chapter in Reliability Engineering for Industrial Processes, 2024, pp 189-201 from Springer

Abstract: Abstract Bug prediction systems have developed to assist developers in prioritizing testing tasks as software releases become more frequent due to changing requirements. Previous studies used methods such as classifying modules as faulty or not, or performing multi-class classification to predict the number of bugs. Some studies used Object-Oriented (OO) metrics, while others used Abstract Syntax Trees (ASTs) to extract code features for bug prediction. This research treated bug prediction as a regression problem and used deep learning models, such as LSTM and CNN, to solve it. The study compared the results of LSTM and CNN models trained on OO metrics with classical machine learning models and a multilayer perceptron model, and found that their LSTM model performed better in terms of MAE and MRE than three of the classical models. The LSTM and CNN models were also trained on features extracted from file-level ASTs of the source code of projects and compared with the models trained on OO metrics. The CNN model trained on file-level AST features produced MAE results similar to the LSTM model trained on OO metrics, but outperformed it in terms of MRE.

Keywords: Software defect prediction; Object-oriented metrics; Abstract syntax trees; LSTM (long short term memory); CNN (convolutional neural network) (search for similar items in EconPapers)
Date: 2024
References: Add references at CitEc
Citations:

There are no downloads for this item, see the EconPapers FAQ for hints about obtaining it.

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:spr:ssrchp:978-3-031-55048-5_13

Ordering information: This item can be ordered from
http://www.springer.com/9783031550485

DOI: 10.1007/978-3-031-55048-5_13

Access Statistics for this chapter

More chapters in Springer Series in Reliability Engineering from Springer
Bibliographic data for series maintained by Sonal Shukla () and Springer Nature Abstracting and Indexing ().

 
Page updated 2025-04-01
Handle: RePEc:spr:ssrchp:978-3-031-55048-5_13