Skip to main content
QUICK REVIEW

[Paper Review] Simplification of Training Data for Cross-Project Defect Prediction

Peng He, Bing Li|arXiv (Cornell University)|May 5, 2014
Software Engineering ResearchComputer Science33 references17 citations
TL;DR

This paper proposes a multi-granularity training data simplification method for cross-project defect prediction (CPDP), combining release-level and instance-level filtering to improve prediction performance. Using 34 releases from 10 open-source projects, it demonstrates that Naïve Bayes classifiers trained on simplification-optimized data achieve superior F-measure and G-measure, with a 50% reduction in training data size and improved defect detection via DPR-based filtering thresholds.

ABSTRACT

Cross-project defect prediction (CPDP) plays an important role in estimating the most likely defect-prone software components, especially for new or inactive projects. To the best of our knowledge, few prior studies provide explicit guidelines on how to select suitable training data of quality from a large number of public software repositories. In this paper, we have proposed a training data simplification method for practical CPDP in consideration of multiple levels of granularity and filtering strategies for data sets. In addition, we have also provided quantitative evidence on the selection of a suitable filter in terms of defect-proneness ratio. Based on an empirical study on 34 releases of 10 open-source projects, we have elaborately compared the prediction performance of different defect predictors built with five well-known classifiers using training data simplified at different levels of granularity and with two popular filters. The results indicate that when using the multi-granularity simplification method with an appropriate filter, the prediction models based on Naive Bayes can achieve fairly good performance and outperform the benchmark method.

Motivation & Objective

  • Address the challenge of selecting high-quality training data from large public software repositories for cross-project defect prediction (CPDP), especially for new or inactive projects with limited local data.
  • Overcome the limitations of prior CPDP methods that rely on single-level granularity (e.g., release-level or instance-level) simplification without systematic comparison.
  • Provide practical, data-driven guidelines for selecting optimal filtering strategies and classifiers in CPDP by evaluating multiple combinations of granularity, filters, and classifiers.
  • Improve prediction performance and reduce training data volume through a two-step simplification strategy that filters redundant and irrelevant instances based on defect proneness ratio (DPR).

Proposed method

  • Propose a multi-granularity simplification framework that applies filtering at both release and instance levels to reduce training data volume while preserving defect-prone components.
  • Implement two filtering strategies: (1) filtering by defect proneness ratio (DPR) at the release level, and (2) filtering by instance-level defect likelihood using KNN-based neighbor analysis.
  • Use the DPR index (defect-prone ratio) to determine optimal filtering thresholds, with a threshold of 0.3 found effective for instance-level filtering.
  • Apply a two-step simplification process: first filter releases based on DPR, then filter individual instances within selected releases using KNN-based neighbor selection.
  • Preprocess features using log transformation to stabilize variance and improve classifier performance.
  • Evaluate five classifiers (Naïve Bayes, KNN, SVM, C4.5, Logistic Regression) on simplified training data to identify the most effective model for CPDP.

Experimental results

Research questions

  • RQ1RQ1: Does the proposed multi-granularity training data simplification method outperform benchmark methods based on single-level granularity?
  • RQ2RQ2: Which classifier performs best when training data is simplified using the proposed method?
  • RQ3RQ3: Can the DPR index be used to guide the selection of an effective filtering strategy for instance-level simplification in CPDP?

Key findings

  • The multi-granularity simplification method achieved competitive F-measure and G-measure values compared to benchmark methods, with no statistically significant difference in performance.
  • Training data size was reduced by approximately 50% when increasing the number of neighbors in the KNN-based filtering step at the release level.
  • Naïve Bayes classifiers outperformed other models on simplified training data, achieving the highest F-measure and G-measure across all evaluated classifiers.
  • The DPR index was effective in identifying optimal filtering thresholds; a DPR threshold of 0.3 was found to significantly improve prediction performance at the instance level.
  • The proposed filtering strategy based on DPR and KNN-based neighbor analysis successfully retained more actually defective instances while reducing false positives.
  • The study confirms that data quality, not just data volume, is critical in CPDP, and that simplification based on multi-granularity filtering enhances model performance and efficiency.

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.