A Controlled Comparative Framework for Metaheuristic Guided Random Forest Hyperparameter Optimization in Reliability Oriented Software Defect Prediction
Prashanth Kumar BolisettyResearch Scholar, School of AI Computing and Multimedia, Lincoln University College, Petaling Jaya, Malaysia. bolisetty.phdscholar@lincoln.edu.my0000-0003-1190-0402
Dr. Midhun chakkaravarthyProfessor & Dean, Department of AI Computing and Multimedia, Lincoln University College, Petaling Jaya, Malaysia. midhun@lincoln.edu.my0000-0002-0107-885X
Dr. D. ShanthiProfessor & Head, Department of Information Technology, Vignan's Institute of Management and Technology for Women, Hyderabad, Telangana, India. drshanthicse@gmail.com0000-0001-8472-0694
Keywords: Software Defect Prediction, Grey Wolf Optimizer, Metaheuristic Hyperparameter Optimization, Random Forest, NASA PROMISE JM1/CM1, SMOTE, Cross Project Validation.
Abstract
Software defect prediction plays an important role in improving the quality of software production. Usually, Random Forest is considered as the best classifier model for predicting defects. It is versatile in nature; however, it suffers in performance due to class imbalance and improper hyperparameter tuning. Many other models are suited to detecting defects, but often it is difficult to confirm the performance difference among optimizers is due to algorithmic behaviour or distinct experimental setups. This study proposes a controlled environment to compare and evaluate the four metaheuristic optimizers used to tune the Random Forest classifier, Particle Swarm Optimization (PSO), Grey Wolf Optimizer (GWO), Genetic Algorithm (GA), and Ant Colony Optimization (ACO). This study uses NASA PROMISE JM1 and CM1 datasets within a standard pipeline having train test split applied before preprocessing to prevent data leakage. With this experimental setup, results show GWO achieved the highest accuracy of 88.57%, precision of 88.27%, AUC ROC of 94.32% and F1-score of 88.61%, though the margin over PSO’s accuracy 88.54% is narrow. The challenges of cross-project generalization are seen when evaluation shows that while overall accuracy on CM1 was 89.16%, defect class precision was only 30.77%. These findings show that GWO is competent in enhancing software defect prediction models within controlled experimental conditions.