journal article·2022-11-28Open access

Impact of Optimal Feature Selection Using Hybrid Method for a Multiclass Problem in Cross Project Defect Prediction

Abeer Jalil, Rizwan Bin Faiz, Sultan Alyahya, Mohamed Maddeh

Applied Sciences· Volume 12· Issue 23

Abstract

The objective of cross-project defect prediction (CPDP) is to develop a model that trains bugs on current source projects and predicts defects of target projects. Due to the complexity of projects, CPDP is a challenging task, and the precision estimated is not always trustworthy. Our goal is to predict the bugs in the new projects by training our model on the current projects for cross-projects to save time, cost, and effort. We used experimental research and the type of research is explanatory. Our research method is controlled experimentation, for which our independent variable is prediction accuracy and dependent variables are hyper-parameters which include learning rate, epochs, and dense layers of neural networks. Our research approach is quantitative as the dataset is quantitative. The design of our research is 1F1T (1 factor and 1 treatment). To obtain the results, we first carried out exploratory data analysis (EDA). Using EDA, we found that the dataset is multi-class. The dataset contains 11 different projects consisting of 28 different versions of all the projects in total. We also found that the dataset has significant issues of noise, class imbalance, and distribution gaps between different projects. We pre-processed the dataset for experimentation by resolving all these issues. To resolve the issue of noise, we removed duplication from the dataset by removing redundant rows. We then covered the data distribution gap between different sources and target projects using the min-max normalization technique. After covering the data distribution gap, we generated synthetic data using a CTGANsynthesizer to solve class imbalance issues. We solved the class imbalance issue by generating an equal number of instances, as well as an equal number of output classes. After carrying out all of these steps, we obtained normalized data. We applied the hybrid feature selection technique on the pre-processed data to optimize the feature set. We obtained significant results of an average AUC of 75.98%. From the empirical study, it was demonstrated that feature selection and hyper-parameter tuning have a significant impact on defect prediction accuracy in cross-projects.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Software Engineering Research · Software Reliability and Analysis Research · Imbalanced Data Classification Techniques

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Faculty of Computing, Riphah International University, Islamabad 46000, Pakistan

Department of Information Systems, King Saud University, Ar Riyadh 12372, Saudi Arabia

College of Applied Computer Science, King Saud University, Ar Riyadh 12372, Saudi Arabia

Funding

Deanship of Scientific Research at King Saud University

References (16)

Show source-provided references
1. Adversarial Learning for Cross-Project Semi-Supervised Defect Prediction10.1109/ACCESS.2020.2974527 ↗
2. A benchmark study on the effectiveness of search-based data selection and feature selection for cross-project defect prediction10.1016/j.infsof.2017.06.004 ↗
3. An Empirical Study on the Effectiveness of Feature Selection for Cross Project Defect Prediction10.1109/ACCESS.2019.2895614 ↗
4. A novel multi-level based cross defect prediction model for multiple software defect databases
5. A Hybrid Instance Selection Using Nearest-Neighbor for Cross-Project Defect Prediction10.1007/s11390-015-1575-5 ↗
6. Applications of Generative Adversarial Networks (GANs): An Updated Review10.1007/s11831-019-09388-y ↗
7. Xu, L., and Veeramachaneni, K. (2018). Synthesizing tabular data using GAN. arXiv.
8. Data Synthesis based on Generative Adversarial Networks10.14778/3231751.3231757 ↗
9. Quintana, M., and Miller, C. (2019, January 13–14). Towards Class-Balancing Human Comfort Datasets with GANs. Proceedings of the 6th ACM International Conference on Systems for Energy-Efficient Buildings, Cities, and Transportation, New York, NY, USA.10.1145/3360322.3361016 ↗
10. Khoshgoftaar, M.T., Gao, K., and Seliya, N. (2010, January 27–29). Attribute Selection and Imbalanced Data: Problems in Software Defect Prediction. Proceedings of the 22nd IEEE International Conference on Tools with Artificial Intelligence, Arras, France.10.1109/ICTAI.2010.27 ↗
11. Bejjanki, K.K., Gyani, J., and Gugulothu, N. (2020). Class Imbalance Reduction (CIR): A Novel Approach to Software Defect Prediction in the Presence of Class Imbalance. Symmetry, 12.10.3390/sym12030407 ↗
12. Sayyad Shirabad, J., and Menzies, T.J. (2022, January 01). PROMISE Software Engineering Repository. Available online: http://promise.site.uottawa.ca/SERepository.
13. Rodriguez, D., Herraiz, I., and Harrison, R. (2012, January 5). On Software Engineering Repositories and Their Open Problems. Proceedings of the First International Workshop on Realizing AI Synergies in Software Engineering (RAISE), Zurich, Switzerland.10.1109/RAISE.2012.6227971 ↗
14. Fallah, S.N., Deo, R.C., Shojafar, M., Conti, M., and Shamshirband, S. (2018). Computational Intelligence Approaches for Energy Load Forecasting in Smart Energy Management Grids: State of the Art, Future Challenges, and Research Directions. Energies, 11.10.3390/en11030596 ↗
15. The Use of Machine Learning in Software Defect Prediction10.1109/TSE.2014.2322358 ↗
16. Defect prediction from static code features current results, limitations, new approaches10.1007/s10515-010-0069-5 ↗