arrow
Return

Enhancing software defect prediction: a framework with improved feature selection and ensemble machine learning

delete2024-02-28
delete9
delete
OA
AI
M
Misbah Ali
T
Tehseen Mazhar *
A
Amal Al‐Rasheed
T
Tariq Shahzad
Y
Yazeed Yasin Ghadi
M
Muhammad Amir Khan *
DOI:10.7717/peerj-cs.1860delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
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 naive 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, Fmeasure, 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:
Features selections
Software defect predication
Machine learning
Ensemble
Deep learning
AI
Quality
RN
SVM
NB
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

PeerJ Computer Science cover
PeerJ Computer Science
IF:
2.5
Papers:
3.4K
Citations:
6.9K

Organization

V
Virtual University of Pakistan
Scholars:
313
Papers: 265
Citations: 1
P
Princess Nourah bint Abdulrahman University
Scholars:
8.0K
Papers: 9.4K
Citations: 10
C
comsats university islamabad (cui)
Scholars:
1.1W
Papers: 1.1W
Citations: 7
U
Universiti Teknologi MARA
Scholars:
5.7K
Papers: 4.1K
Citations: 4.8K
researcher View more organizations