Early Software Defects Density Prediction: Training the International Software Benchmarking Cross Projects Data Using Supervised Learning

Citation

Tahir, Touseef and Gencel, Cigdem and Rasool, Ghulam and Umer, Tariq and Rasheed, Jawad and Yeo, Sook Fern and Cevik, Taner (2023) Early Software Defects Density Prediction: Training the International Software Benchmarking Cross Projects Data Using Supervised Learning. IEEE Access, 11. pp. 141965-141986. ISSN 2169-3536

[img] Text
15.pdf - Published Version
Restricted to Repository staff only

Download (7MB)

Abstract

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 com�plete 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.

Item Type: Article
Uncontrolled Keywords: Machine learning.
Subjects: Q Science > Q Science (General) > Q300-390 Cybernetics
Divisions: Faculty of Business (FOB)
Depositing User: Ms Nurul Iqtiani Ahmad
Date Deposited: 02 Jan 2024 08:17
Last Modified: 02 Jan 2024 08:17
URII: http://shdl.mmu.edu.my/id/eprint/11974

Downloads

Downloads per month over past year

View ItemEdit (login required)