Cross-Project Software Defect Prediction Based on SMOTE and Deep Canonical Correlation Analysis
Authors:
- Xin FanXFXin Fan
- Shuqing ZhangSZShuqing Zhang
- Kaisheng WuKWKaisheng Wu
- Wei ZhengWZWei Zheng
- Yu GeYGYu Ge
- 1 January 2024
- journal article
- research article
- Published by Tech Science Press in Computers, Materials & Continua
- Vol. 78 (2) , 1687-1711
Abstract
Cross-Project Defect Prediction (CPDP) is a method that utilizes historical data from other source projects to train predictive models for defect prediction in the target project. However, existing CPDP methods only consider linear correlations between features (indicators) of the source and target projects. These models are not capable of evaluating non-linear correlations between features when they exist, for example, when there are differences in data distributions between the source and target projects. As a result, the performance of such CPDP models is compromised. In this paper, this paper proposes a novel CPDP method based on Synthetic Minority Oversampling Technique (SMOTE) and Deep Canonical Correlation Analysis (DCCA), referred to as S-DCCA. Canonical Correlation Analysis (CCA) is employed to address the issue of non-linear correlations between features of the source and target projects. S-DCCA extends CCA by incorporating the MlpNet model for feature extraction from the dataset. The redundant features are then eliminated by maximizing the correlated feature subset using the CCA loss function. Finally, cross-project defect prediction is achieved through the application of the SMOTE data sampling technique. Area Under Curve (AUC) and F1 scores (F1) are used as evaluation metrics. This paper conducted experiments on 27 projects from four public datasets to validate the proposed method. The results demonstrate that, on average, our method outperforms all baseline approaches by at least 1.2% in AUC and 5.5% in F1 score. This indicates that the proposed method exhibits favorable performance characteristics.Keywords
This publication has 45 references indexed in Scilit:
- An Improved Method for Training Data Selection for Cross-Project Defect PredictionArabian Journal for Science and Engineering, 2021
- CFPS: Collaborative filtering based source projects selection for cross-project defect predictionApplied Soft Computing, 2021
- Adaptive Decision Threshold-Based Extreme Learning Machine for Classifying Imbalanced Multi-label DataNeural Processing Letters, 2020
- Cross Project Defect Prediction via Balanced Distribution Adaptation Based Transfer LearningJournal of Computer Science and Technology, 2019
- On the relative value of data resampling approaches for software defect predictionEmpirical Software Engineering, 2018
- Cost-sensitive transfer kernel canonical correlation analysis for heterogeneous defect predictionAutomated Software Engineering, 2017
- Value-cognitive boosting with a support vector machine for cross-project defect predictionEmpirical Software Engineering, 2014
- Evaluating defect prediction approaches: a benchmark and an extensive comparisonEmpirical Software Engineering, 2011
- On the relative value of cross-company and within-company data for defect predictionEmpirical Software Engineering, 2009
- Relations Between Two Sets of Variates1992