An Ensemble Learning Method Based on Neighborhood Granularity Discrimination Index and Its Application in Software Defect Prediction
Software defect prediction (SDP) is a primary field of study in software engineering, aiming to optimize test resource allocation by highlighting the defect-prone software modules. Over the last few years, ensemble learning method has been extensively adopted in SDP. However, how to strengthen the diversity of base learners is an issue in ensemble learning. In this paper, we consider the problem of diversity in the eye of feature space perturbation. First, we propose the notion of neighborhood granularity discrimination index (NGDI), by combining the neighborhood knowledge granularity with the neighborhood discrimination index within the framework of neighborhood rough sets. NGDI can not only measure the uncertainty of feature subsets' discriminant capability, but also characterize the granularity of neighborhood knowledge induced by feature subsets. Second, we propose an ensemble learning algorithm, EL-NGDI, established on the NGDI. ELNGDI disturbs the feature space using multiple NGDI-based neighborhood approximate reducts. Third, we use ELNGDI to predict software defects. ELNGDI and the Synthetic Minority Oversampling Technique (SMOTE) are combined in order to handle the class imbalance issue in SDP, and propose a mechanism called SMOTE-ELNGDI. Experimental results on 20 datasets demonstrate that ELNGDI effectively improves the performance of SDP compared with existing ensemble learning methods.
Authors
- Feng Jiang (ORCID: https://orcid.org/0009-0001-6271-9526)
- Qiang Hu (ORCID: https://orcid.org/0000-0002-8251-1669)
- Yifan He (ORCID: https://orcid.org/0000-0003-2142-3208)
- Yuqi Sha (ORCID: https://orcid.org/0009-0004-7360-0688)
Institutions
- Qingdao University of Science and Technology (CN)
- Beijing Technology and Business University (CN)
Publication Details
- Published
- 2025-03-04
- DOI
- https://doi.org/10.1109/saner64311.2025.00047
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00