Software Defect Prediction Based on Cost-Sensitive Dictionary Learning
Authors:
- 1 September 2019
- journal article
- research article
- Published by World Scientific Pub Co Pte Ltd in International Journal of Software Engineering and Knowledge Engineering
- Vol. 29 (09) , 1219-1243
Abstract
Software defect prediction technology has been widely used in improving the quality of software system. Most real software defect datasets tend to have fewer defective modules than defective-free modules. Highly class-imbalanced data typically make accurate predictions difficult. The imbalanced nature of software defect datasets makes the prediction model classifying a defective module as a defective-free one easily. As there exists the similarity during the different software modules, one module can be represented by the sparse representation coefficients over the pre-defined dictionary which consists of historical software defect datasets. In this study, we make use of dictionary learning method to predict software defect. We optimize the classifier parameters and the dictionary atoms iteratively, to ensure that the extracted features (sparse representation) are optimal for the trained classifier. We prove the optimal condition of the elastic net which is used to solve the sparse coding coefficients and the regularity of the elastic net solution. Due to the reason that the misclassification of defective modules generally incurs much higher cost risk than the misclassification of defective-free ones, we take the different misclassification costs into account, increasing the punishment on misclassification defective modules in the procedure of dictionary learning, making the classification inclining to classify a module as a defective one. Thus, we propose a cost-sensitive software defect prediction method using dictionary learning (CSDL). Experimental results on the 10 class-imbalance datasets of NASA show that our method is more effective than several typical state-of-the-art defect prediction methods.Keywords
Funding Information
- National Nature Science Foundation of China (61872272, 61640221, 61562047)
This publication has 55 references indexed in Scilit:
- Sample-based software defect prediction with active and semi-supervised learningAutomated Software Engineering, 2011
- Cost-sensitive boosting neural networks for software defect predictionExpert Systems with Applications, 2010
- Predicting defect-prone software modules using support vector machinesJournal of Systems and Software, 2008
- An overview of bilevel optimizationAnnals of Operations Research, 2007
- $rm K$-SVD: An Algorithm for Designing Overcomplete Dictionaries for Sparse RepresentationIEEE Transactions on Signal Processing, 2006
- Recovery of Exact Sparse Representations in the Presence of Bounded NoiseIEEE Transactions on Information Theory, 2005
- Regularization and Variable Selection Via the Elastic NetJournal of the Royal Statistical Society Series B: Statistical Methodology, 2005
- Comparative Assessment of Software Quality Classification Techniques: An Empirical Case StudyEmpirical Software Engineering, 2004
- A bit-serial VLSI architecture for generating moments in real-timeIEEE Transactions on Systems, Man, and Cybernetics, 1993
- Individual Comparisons by Ranking MethodsBiometrics Bulletin, 1945