arrow
Return

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

delete2023-01-01
delete9
delete
OA
AI
T
Touseef Tahir
Ç
Çiğdem Gencel
G
Ghulam Rasool
T
T. Umer
J
Jawad Rasheed *
S
Sook Fern Yeo *
T
Taner Çevik
DOI:10.1109/ACCESS.2023.3339994delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
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 R-2 (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.
Keywords:
Software engineering
Costs
Machine learning
Codes
Predictive models
Training
Size measurement
Fault detection
Prediction methods
Supervised learning
Project management
Cross projects dataset
defect prediction
feature selection
fault prediction
ISBSG dataset
machine learning

Journal

IEEE Access cover
IEEE Access
IF:
3.6
Papers:
9.8W
Citations:
29.4W

Organization

Istanbul Arel University cover
Istanbul Arel University
Scholars:
280
Papers: 309
Citations: 221
A
ankara medipol university
Scholars:
294
Papers: 265
Citations: 2
M
multimedia university
Scholars:
1.8K
Papers: 1.6K
Citations: 0
I
Istanbul Sabahattin Zaim University
Scholars:
328
Papers: 323
Citations: 1
C
comsats university islamabad (cui)
Scholars:
1.1W
Papers: 1.1W
Citations: 7
researcher View more organizations