JOURNAL ARTICLE

Software Defect Prediction with Bayesian Approaches

Abstract

Software defect prediction is an important area in software engineering because it helps developers identify and fix problems before they become costly and hard-to-fix bugs. Early detection of software defects helps save time and money in the software development process and ensures the quality of the final product. This research aims to evaluate three algorithms to build Bayesian Networks to classify whether a project is prone to defects. The choice is based on the fact that the most used approach in the literature is Naive Bayes, but no works use Bayesian Networks. Thus, K2, Hill Climbing, and TAN are used to construct Bayesian Networks. On the other hand, three public PROMISE data sets are used based on McCabe and Halstead complexity metrics. The results are compared with the most used approaches in the literature, such as Decision Tree and Random Forest. The results from different performance metrics applied to a cross-validation process show that the classification results are comparable to Decision Tree and Random Forest, with the advantage that Bayesian algorithms show less variability, which helps engineering software to have greater robustness in their predictions since the selection of training and test data do not give variable results, unlike Decision Tree and Random Forest.

Keywords:
Computer science Machine learning Bayesian network Decision tree Naive Bayes classifier Random forest Artificial intelligence Data mining Software Software quality Bayesian probability Robustness (evolution) Tree (set theory) Software bug Software development Support vector machine Mathematics

Metrics

22
Cited By
13.61
FWCI (Field Weighted Citation Impact)
30
Refs
0.98
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Software Engineering Research
Physical Sciences →  Computer Science →  Information Systems
Software Reliability and Analysis Research
Physical Sciences →  Computer Science →  Software
Software System Performance and Reliability
Physical Sciences →  Computer Science →  Computer Networks and Communications

Related Documents

JOURNAL ARTICLE

SOFTWARE DEFECT PREDICTION APPROACHES REVISITED

Khaled SheblYasmine M. AfifyNagwa Badr

Journal:   International journal of intelligent computing and information sciences/International Journal of Intelligent Computing and Information Sciences Year: 2023 Vol: 23 (3)Pages: 31-58
JOURNAL ARTICLE

Software defect prediction using Bayesian networks

Ahmet OkutanOlcay Taner Yıldız

Journal:   Empirical Software Engineering Year: 2012 Vol: 19 (1)Pages: 154-181
BOOK-CHAPTER

Software Defect Prediction Using Augmented Bayesian Networks

K. MuthukumaranSrinivas SuriAruna MalapatiLalita Bhanu Murthy Neti

Advances in intelligent systems and computing Year: 2017 Pages: 279-293
JOURNAL ARTICLE

Bayesian Meta-Analysis of Software Defect Prediction With Machine Learning

Majid MohammadiDario Di NucciDamian A. Tamburri

Journal:   IEEE Transactions on Industrial Cyber-Physical Systems Year: 2023 Vol: 1 Pages: 147-156
© 2026 ScienceGate Book Chapters — All rights reserved.