Skip to main content
QUICK REVIEW

[Paper Review] Towards Cross-Project Defect Prediction with Imbalanced Feature Sets

Peng He, Bing Li|arXiv (Cornell University)|Nov 16, 2014
Software Engineering ResearchComputer Science35 references54 citations
TL;DR

This paper proposes a distribution characteristic-based instance mapping method for cross-project defect prediction with imbalanced feature sets (CPDP-IFS), enabling defect prediction across projects with differing metrics by projecting instances into a latent space of metric distribution indicators. The approach achieves performance comparable to regular CPDP and significantly improves prediction in low-defect scenarios, especially when combined with a hybrid CPDP-IFS model.

ABSTRACT

Cross-project defect prediction (CPDP) has been deemed as an emerging technology of software quality assurance, especially in new or inactive projects, and a few improved methods have been proposed to support better defect prediction. However, the regular CPDP always assumes that the features of training and test data are all identical. Hence, very little is known about whether the method for CPDP with imbalanced feature sets (CPDP-IFS) works well. Considering the diversity of defect data sets available on the Internet as well as the high cost of labeling data, to address the issue, in this paper we proposed a simple approach according to a distribution characteristic-based instance (object class) mapping, and demonstrated the validity of our method based on three public defect data sets (i.e., PROMISE, ReLink and AEEEM). Besides, the empirical results indicate that the hybrid model composed of CPDP and CPDP-IFS does improve the prediction performance of the regular CPDP to some extent.

Motivation & Objective

  • To address the challenge of cross-project defect prediction (CPDP) when training and test projects have imbalanced or non-overlapping feature sets.
  • To investigate whether CPDP with imbalanced feature sets (CPDP-IFS) can achieve comparable or better performance than regular CPDP.
  • To reduce the cost and redundancy of data collection and annotation by enabling reuse of defect data from projects with different metric sets.
  • To develop a hybrid model combining CPDP and CPDP-IFS to enhance prediction performance, especially in data-scarce scenarios.
  • To validate the feasibility and effectiveness of the proposed method on public defect data sets with diverse metric sets.

Proposed method

  • The method maps instances from source and target projects into a latent space defined by distribution indicators (e.g., mean, variance) of their metric values, rather than raw metrics.
  • It assumes that defective instances exhibit abnormal distribution characteristics (e.g., high variance or skewed mean), which can serve as indicators of defect proneness.
  • Instances from different projects are projected into a common latent space using these distribution-based features, enabling CPDP even when original metric sets differ.
  • The approach uses logistic regression for classification in the transformed space, maintaining compatibility with standard CPDP pipelines.
  • The method does not require feature alignment or selection; instead, it relies on statistical distribution similarity to transfer knowledge across projects.
  • A hybrid model is constructed by combining predictions from both regular CPDP and CPDP-IFS to improve overall performance.

Experimental results

Research questions

  • RQ1Can cross-project defect prediction be effectively performed when training and test projects have different sets of software metrics (i.e., imbalanced feature sets)?
  • RQ2Does the proposed distribution characteristic-based instance mapping method achieve prediction performance comparable to regular CPDP in such settings?
  • RQ3In what scenarios does CPDP-IFS provide a significant improvement over regular CPDP, especially when defect ratios are low?
  • RQ4Can a hybrid model combining CPDP and CPDP-IFS enhance prediction performance compared to either method alone?
  • RQ5How robust is the proposed method across diverse public defect data sets with varying metric sets and project characteristics?

Key findings

  • The proposed CPDP-IFS method achieves prediction performance comparable to regular CPDP across three public defect data sets (PROMISE, ReLink, AEEEM), demonstrating its feasibility.
  • The hybrid model of CPDP and CPDP-IFS significantly improves prediction performance in scenarios with low defect ratios, particularly increasing the F-measure in such cases.
  • For the Xalan project, the DPR (Defect Prediction Ratio) reached 0.86 using the CPDP-mix_pure hybrid model, approaching the ideal value of 1.
  • The method effectively handles non-overlapping metric sets without requiring feature alignment or selection, reducing data collection and annotation overhead.
  • The Wilcoxon signed-rank test and Cliff’s delta confirmed the statistical significance of performance improvements, especially in low-defect scenarios.
  • The approach is robust across projects of different sizes and metric sets, suggesting potential for generalization in real-world software engineering contexts.

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.