Early Software Defects Density Prediction: Training the International Software Benchmarking Cross Projects Data Using Supervised Learning
Göster/ Aç
Erişim
info:eu-repo/semantics/openAccessTarih
2023Yazar
Tahir, TouseefGencel, Cigdem
Rasool, Ghulam
Umer, Tariq
Rasheed, Jawad
Yeo, Sook Fern
Cevik, Taner
Üst veri
Tüm öğe kaydını gösterKünye
Tahir, T., Gencel, C., Rasool, G., Umer, T., Rasheed, J., Yeo, S. F., & Cevik, T. (2023). Early Software Defects Density Prediction: Training the International Software Benchmarking Cross Projects Data Using Supervised Learning. IEEE Access, 11, 141965-141986.Özet
Recent reviews of the literature indicate the need for empirical studies on cross-project defect prediction (CPDP) that would allow aggregation of the evidence and improve predictive performance. Most empirical studies predict defects at granularity levels of method, class, file, and module/package during the coding phase, and thereby avoid external failure costs. The main goal of this study is to perform an empirical study on early defect prediction at the beginning of a project at the product level of granularity for using it as input in planning quality activities of the project. Hence, both internal and external failure costs could be avoided as much as possible through proper planning of quality. We first made a systematic mapping study (SMS) on secondary studies (literature reviews) on defect prediction to identify the most used datasets, the project attributes and metrics utilized as estimators, and the supervised learning methods employed for training the data. Then, we made an empirical study on defect density prediction using cross-project data. We collected 760 project data from the International Software Benchmarking (ISBSG) dataset version 11, which reported both defects and functional size attributes. We trained the prediction models using: i) the complete set of project attributes, ii) the individual attributes, and iii) multiple subsets of attributes. We employed classification and regression approaches of machine learning. The machine learning models are trained using original values of the dataset, and z-score and logged transformations of original values to explore the effects of data normalization on prediction. Most machine learning models trained on the z-score transformation of the dataset performed best for classifying defects. The Multilayer-Perceptron (Neural Network) model trained on the z-score transformation of complete dataset predicted defects with the highest F1-score of 0.89 using binary classification. The logged transformation and feature selection methods improved the results for multivariable regression. The multivariable regression predicted defects with the highest Root Mean Squared Error (RMSE) and R2 (r-squared) values of 0.4 and 0.9, respectively, with a subset of 11 features using logged transformation. The results of classification and regression approaches indicate that defects can be predicted with reasonable accuracy at the software product level using cross-project data. © 2013 IEEE.