CDS: A Cross–Version Software Defect Prediction Model With Data Selection
Open Access
- 10 June 2020
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Access
- Vol. 8, 110059-110072
Abstract
Over the past decade, a large number of software defect prediction approaches have been proposed to identify the defect-prone modules by mining software repositories. Recently, a novel scenario called Cross-Version Defect Prediction (CVDP) begins to draw increasing research interests, as it is more reasonable and applicable in practice to adopt the labeled defect data of previous versions to predict defects in the current version of the same project. As a software project often has multiple previous versions, CVDP on this kind of projects will face the following two critical but seldom reported issues, namely, data distribution difference and class overlapping. In this paper, we address these two issues by solving a version selection problem via a Cross-version model with Data Selection (CDS). The proposed CDS is a novel framework which treats the defect prediction of existing and new files in different ways. For the existing files, we propose a novel Clustering-based Multi-Version Classifier (CMVC), which can automatically select the training data from the most relevant and noise-free versions by assigning them higher weights than the others. We proposed a Weighted Sampling Model (WSM) for the new files which have never appeared in previous version by incorporating the outputs of CMVC. We evaluate the proposed CDS model on 28 versions across 8 software projects, and the experimental results demonstrate that CDS outperforms three baseline methods and a state-of-the-art approach in terms of three prevalent performance indicators.Keywords
Funding Information
- National Basic Research Program of China (2016YFB1000101)
- National Natural Science Foundation of China (61973325, 61503420, 61722214)
This publication has 47 references indexed in Scilit:
- Negative samples reduction in cross-company software defects predictionInformation and Software Technology, 2015
- LACE2: Better Privacy-Preserving Data Sharing for Cross Project Defect Prediction2015
- A Learning-to-Rank Approach to Software Defect PredictionIEEE Transactions on Reliability, 2014
- Two-Stage Cost-Sensitive Learning for Software Defect PredictionIEEE Transactions on Reliability, 2014
- Transfer learning for cross-company software defect predictionInformation and Software Technology, 2012
- The WEKA data mining softwareACM SIGKDD Explorations Newsletter, 2009
- Tool Writing: A Forgotten Art?IEEE Software, 2005
- Predicting fault-prone software modules in telephone switchesIEEE Transactions on Software Engineering, 1996
- A validation of object-oriented design metrics as quality indicatorsIEEE Transactions on Software Engineering, 1996
- Gauss and the Invention of Least SquaresThe Annals of Statistics, 1981