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

被引:9
作者
Tahir, Touseef [1 ]
Gencel, Cigdem [2 ]
Rasool, Ghulam [1 ]
Umer, Tariq [1 ]
Rasheed, Jawad [3 ,4 ,5 ]
Yeo, Sook Fern [6 ,7 ]
Cevik, Taner [8 ]
机构
[1] COMSATS Univ Islamabad, Dept Comp Sci, Lahore Campus, Lahore 54000, Pakistan
[2] Ankara Medipol Univ, Dept Management Informat Syst, TR-06050 Ankara, Turkiye
[3] Istanbul Sabahattin Zaim Univ, Dept Comp Engn, TR-34303 Istanbul, Turkiye
[4] Istanbul Nisantasi Univ, Dept Software Engn, TR-34398 Istanbul, Turkiye
[5] Bogazici Univ, Deep Learning & Med Image Anal Lab, TR-34342 Istanbul, Turkiye
[6] Multimedia Univ, Fac Business, Malacca 75450, Malaysia
[7] Daffodil Int Univ, Dept Business Adm, Dhaka 1207, Bangladesh
[8] Istanbul Arel Univ, Dept Comp Engn, TR-34537 Istanbul, Turkiye
关键词
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;
D O I
10.1109/ACCESS.2023.3339994
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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.
引用
收藏
页码:141965 / 141986
页数:22
相关论文
共 42 条
[1]  
Abedjan Z., 2022, Data Profiling, DOI [10.1007/978-3-031-01865-7, DOI 10.1007/978-3-031-01865-7]
[2]  
Alpaydin E., 2020, Introduction to Machine Learning, V4th
[3]  
[Anonymous], 2021, Guide to the Project Management Body of Knowledge
[4]  
Belsley D.A., 1980, REGRESSION DIAGNOSTI, DOI [10.1002/0471725153, DOI 10.1002/0471725153]
[5]   UNDERSTANDING AND CONTROLLING SOFTWARE COSTS [J].
BOEHM, BW ;
PAPACCIO, PN .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1988, 14 (10) :1462-1477
[6]   A framework for cost-based feature selection [J].
Bolon-Canedo, V. ;
Porto-Diaz, I. ;
Sanchez-Marono, N. ;
Alonso-Betanzos, A. .
PATTERN RECOGNITION, 2014, 47 (07) :2481-2489
[7]   Software fault prediction: A literature review and current trends [J].
Catal, Cagatay .
EXPERT SYSTEMS WITH APPLICATIONS, 2011, 38 (04) :4626-4636
[8]   A systematic review of software fault prediction studies [J].
Catal, Cagatay ;
Diri, Banu .
EXPERT SYSTEMS WITH APPLICATIONS, 2009, 36 (04) :7346-7354
[9]   An experimental study on the conversion between IFPUG and COSMIC functional size measurement units [J].
Cuadrado-Gallego, Juan J. ;
Buglione, Luigi ;
Dominguez-Alda, Maria J. ;
Fernandez de Sevilla, Marian ;
Antonio Gutierrez de Mesa, J. ;
Demirors, Onur .
INFORMATION AND SOFTWARE TECHNOLOGY, 2010, 52 (03) :347-357
[10]  
Demarco T., 1986, Controlling Software Projects: Management, Measurement, and Estimates