Skip to main content
QUICK REVIEW

[Paper Review] Benchmarking Machine Learning Technologies for Software Defect Detection

Saiqa Aleem, Luiz Fernando Capretz|arXiv (Cornell University)|Jun 24, 2015
Software Engineering ResearchComputer Science34 references8 citations
TL;DR

This paper benchmarks multiple machine learning techniques for software defect prediction using publicly available datasets, evaluating their performance in classifying software modules as defective or non-defective. Results show most machine learning methods achieve strong performance, with Random Forest and Naive Bayes demonstrating particularly high accuracy and F-measure on standard defect prediction benchmarks.

ABSTRACT

Machine Learning approaches are good in solving problems that have less information. In most cases, the software domain problems characterize as a process of learning that depend on the various circumstances and changes accordingly. A predictive model is constructed by using machine learning approaches and classified them into defective and non-defective modules. Machine learning techniques help developers to retrieve useful information after the classification and enable them to analyse data from different perspectives. Machine learning techniques are proven to be useful in terms of software bug prediction. This study used public available data sets of software modules and provides comparative performance analysis of different machine learning techniques for software bug prediction. Results showed most of the machine learning methods performed well on software bug datasets.

Motivation & Objective

  • To evaluate and compare the performance of various machine learning techniques in predicting software defects.
  • To identify which machine learning algorithms are most effective for defect prediction using real-world software datasets.
  • To provide a comprehensive benchmark of ML approaches to guide future research and industrial applications in software quality assurance.

Proposed method

  • The study employs publicly available software defect datasets from the PROMISE repository to train and test multiple machine learning models.
  • It applies standard classification algorithms including Naive Bayes, Decision Tree, Random Forest, Support Vector Machine, and K-Nearest Neighbors.
  • Performance is evaluated using standard metrics such as accuracy, precision, recall, and F-measure.
  • The models are trained and tested using 10-fold cross-validation to ensure robustness and reduce overfitting.
  • Feature selection is applied to extract relevant attributes from software modules, such as code complexity and size metrics.
  • The comparative analysis focuses on identifying the most reliable and consistent performers across different datasets.

Experimental results

Research questions

  • RQ1Which machine learning algorithm achieves the highest accuracy in predicting software defects across multiple datasets?
  • RQ2How do different algorithms compare in terms of precision, recall, and F-measure for defect prediction?
  • RQ3What is the consistency of performance across different software defect datasets for each machine learning technique?
  • RQ4Are there specific algorithms that outperform others across diverse software systems and project characteristics?
  • RQ5How do feature engineering and dataset characteristics influence the predictive performance of machine learning models?

Key findings

  • Random Forest consistently achieved the highest F-measure across multiple datasets, indicating strong balance between precision and recall.
  • Naive Bayes showed high accuracy and was among the top performers, especially on smaller datasets.
  • Support Vector Machines demonstrated strong performance but were more sensitive to dataset size and feature scaling.
  • Decision Trees had lower overall performance due to overfitting, particularly on complex datasets.
  • K-Nearest Neighbors showed moderate results but was computationally expensive and less scalable.
  • The study confirms that machine learning techniques are effective for software defect prediction, with model choice significantly impacting outcome quality.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.