Enhancing software defect prediction: a framework with improved feature selection and ensemble machine learning
Open Access
- 28 February 2024
- journal article
- research article
- Published by PeerJ in PeerJ Computer Science
- Vol. 10, e1860
Abstract
Effective software defect prediction is a crucial aspect of software quality assurance, enabling the identification of defective modules before the testing phase. This study aims to propose a comprehensive five-stage framework for software defect prediction, addressing the current challenges in the field. The first stage involves selecting a cleaned version of NASA’s defect datasets, including CM1, JM1, MC2, MW1, PC1, PC3, and PC4, ensuring the data’s integrity. In the second stage, a feature selection technique based on the genetic algorithm is applied to identify the optimal subset of features. In the third stage, three heterogeneous binary classifiers, namely random forest, support vector machine, and naïve Bayes, are implemented as base classifiers. Through iterative tuning, the classifiers are optimized to achieve the highest level of accuracy individually. In the fourth stage, an ensemble machine-learning technique known as voting is applied as a master classifier, leveraging the collective decision-making power of the base classifiers. The final stage evaluates the performance of the proposed framework using five widely recognized performance evaluation measures: precision, recall, accuracy, F-measure, and area under the curve. Experimental results demonstrate that the proposed framework outperforms state-of-the-art ensemble and base classifiers employed in software defect prediction and achieves a maximum accuracy of 95.1%, showing its effectiveness in accurately identifying software defects. The framework also evaluates its efficiency by calculating execution times. Notably, it exhibits enhanced efficiency, significantly reducing the execution times during the training and testing phases by an average of 51.52% and 52.31%, respectively. This reduction contributes to a more computationally economical solution for accurate software defect prediction.Keywords
Funding Information
- Princess Nourah Bint Abdulrahman University Researchers Supporting Project Number (PNURSP2024R235)
- Princess Nourah bint Abdulrahman University, Riyadh, Saudi Arabia
This publication has 66 references indexed in Scilit:
- An Empirical Study on Data Sampling Methods in Addressing Class Imbalance Problem in Software Defect Prediction2022
- Handling Class-Imbalance with KNN (Neighbourhood) Under-Sampling for Software Defect PredictionArtificial Intelligence Review, 2021
- Transport infrastructure connectivity and conflict resolution: a machine learning analysisNeural Computing and Applications, 2021
- Improved prediction of software defects using ensemble machine learning techniquesNeural Computing and Applications, 2021
- SMOTE-Based Homogeneous Ensemble Methods for Software Defect Prediction2020
- Search-Based Wrapper Feature Selection Methods in Software Defect Prediction: An Empirical Analysis2020
- An efficient optimization approach for designing machine learning models based on genetic algorithmNeural Computing and Applications, 2020
- Software defect prediction model based on LASSO–SVMNeural Computing and Applications, 2020
- Software fault prediction using particle swarm algorithm with genetic algorithm and support vector machine classifierSoftware: Practice and Experience, 2020
- SVM with Feature Selection and Extraction Techniques for Defect-Prone Software Module PredictionAdvances in Intelligent Systems and Computing, 2017