Skip to main navigation Skip to search Skip to main content

A Hybrid Instance Selection Using Nearest-Neighbor for Cross-Project Defect Prediction

  • Duksan Ryu*
  • , Jong In Jang
  • , Jongmoon Baik
  • *Corresponding author for this work
  • Korea Advanced Institute of Science and Technology

Research output: Contribution to journalJournal articlepeer-review

Abstract

Software defect prediction (SDP) is an active research field in software engineering to identify defect-prone modules. Thanks to SDP, limited testing resources can be effectively allocated to defect-prone modules. Although SDP requires sufficient local data within a company, there are cases where local data are not available, e.g., pilot projects. Companies without local data can employ cross-project defect prediction (CPDP) using external data to build classifiers. The major challenge of CPDP is different distributions between training and test data. To tackle this, instances of source data similar to target data are selected to build classifiers. Software datasets have a class imbalance problem meaning the ratio of defective class to clean class is far low. It usually lowers the performance of classifiers. We propose a Hybrid Instance Selection Using Nearest-Neighbor (HISNN) method that performs a hybrid classification selectively learning local knowledge (via k-nearest neighbor) and global knowledge (via naïve Bayes). Instances having strong local knowledge are identified via nearest-neighbors with the same class label. Previous studies showed low PD (probability of detection) or high PF (probability of false alarm) which is impractical to use. The experimental results show that HISNN produces high overall performance as well as high PD and low PF.

Original languageEnglish
Pages (from-to)969-980
Number of pages12
JournalJournal of Computer Science and Technology
Volume30
Issue number5
DOIs
StatePublished - 2015.09.22

Keywords

  • data cleaning
  • instance-based learning
  • nearest-neighbor algorithm
  • software defect analysis

Fingerprint

Dive into the research topics of 'A Hybrid Instance Selection Using Nearest-Neighbor for Cross-Project Defect Prediction'. Together they form a unique fingerprint.

Cite this