A ranking-based approach for effort-aware software defect prediction.
Keywords:
Effort-aware defect prediction, Random-forest regression, Software quality assurance, Particle Swarm OptimizationAbstract
Predicting software defects is a critical aspect of software quality assurance, as early identification of potential faults enables better resource allocation and ensures high-quality software production. Effort-aware defect prediction enhances testing and maintenance by prioritizing software modules that maximize defect detection while minimizing inspection effort. Traditional methods typically predict defect probability or defect density and rank modules accordingly, often optimizing metrics such as the Proportion of Found Bugs at 20% LOC (PofB@20%) using linear regression models. In this study, we proposed a novel ranking approach that directly predicts the total number of defects per software module using a Random Forest Regressor. Each module is assigned a custom score that balances two objectives: selecting modules with more predicted defects and minimizing effort, measured as lines of code. Particle Swarm Optimization (PSO) is employed to optimize the scoring function with respect to effort-aware metrics PofB@20%, Initial False Alarms (IFA), and Popt, ensuring early defect detection and near-ideal module ranking. After the initial ranking, a defect-aware re-ranking strategy adjusts the top 20% of LOC modules by replacing them with better candidates from the remaining modules, provided that doing so improves defect coverage without exceeding the LOC budget. Experimental results demonstrate that the proposed approach outperforms baseline methods, achieving a higher PofB@20% (0.402), a lower IFA (5.1), and a better Popt (0.756). The findings indicate that ranking modules based on predicted defects and inspection effort effectively helps testers detect more faults with reduced effort, confirming the superiority of the PSO-optimized ranking methodology over traditional approaches.
Downloads
Published
Versions
- 2025-12-26 (2)
- 2025-12-21 (1)
How to Cite
Issue
Section
License
Copyright (c) 2025 University of Sindh Journal of Information and Communication Technology

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
University of Sindh Journal of Information and Communication Technology (USJICT) follows an Open Access Policy under Attribution-NonCommercial CC-BY-NC license. Researchers can copy and redistribute the material in any medium or format, for any purpose. Authors can self-archive publisher's version of the accepted article in digital repositories and archives.
Upon acceptance, the author must transfer the copyright of this manuscript to the Journal for publication on paper, on data storage media and online with distribution rights to USJICT, University of sindh, Jamshoro, Pakistan. Kindly download the copyright for below and attach as a supplimentry file during article submission





