Improving the undersampling technique by optimizing the termination condition for software defect prediction

被引:25
作者
Feng, Shuo [1 ]
Keung, Jacky [2 ]
Xiao, Yan [3 ,4 ]
Zhang, Peichang [5 ]
Yu, Xiao [6 ]
Cao, Xiaochun [3 ]
机构
[1] Zhengzhou Univ, Sch Comp & Artificial Intelligence, Zhengzhou, Peoples R China
[2] City Univ Hong Kong, Dept Comp Sci, Kowloon, Hong Kong, Peoples R China
[3] Sun Yat Sen Univ, Sch Cyber Sci & Technol, Shenzhen, Peoples R China
[4] Natl Univ Singapore, Sch Comp, Singapore, Singapore
[5] Shenzhen Univ, Coll Elect & Informat Engn, Shenzhen, Peoples R China
[6] Wuhan Univ Technol, Sch Comp Sci & Artificial Intelligence, Wuhan, Peoples R China
关键词
Software defect prediction; Class imbalance; Learning-to-rank; Undersampling; Oversampling; Data resampling; DIFFERENTIAL EVOLUTION; EFFECT SIZE; SMOTE; QUALITY; METRICS; FAULTS;
D O I
10.1016/j.eswa.2023.121084
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
The class imbalance problem significantly hinders the ability of the software defect prediction (SDP) models to distinguish between defective (minority class) and non-defective (majority class) software instances. Recent studies on the data resampling technique have shown that Random UnderSampling (RUS) is more effective than several complex oversampling techniques at alleviating this problem. However, RUS blindly removes majority class instances, leading to significant information loss. These studies have also pointed out that the conventional termination condition (i.e., terminating the data resampling technique when the number of instances for both the minority and majority classes are the same) of the data resampling technique can result in suboptimal performance. In fact, the undersampling technique can be likened to a recommender system or a web search engine that recommends majority class instances to SDP models. Therefore, we propose the Learning-To-Rank Undersampling technique (LTRUS). Our work is novel in two aspects: (1) We consider the undersampling process as a learning-to-rank task, optimizing a linear model to rank majority class instances and remove them from the bottom of the rank to alleviate the class imbalance problem. (2) We propose two termination conditions for the undersampling technique, which differ from the conventional termination condition. LTRUS significantly outperforms RUS, the clustering-based undersampling technique, the complexity-based oversampling technique, SMOTUNED, and Borderline-SMOTE in terms of F-measure, AUC, and MCC by 8.9%, 7.6%, and 18.0% on average under the conventional termination condition. Furthermore, LTRUS under the two termination conditions we propose yield similar performance, and both outperform LTRUS and all the other baselines under the conventional termination condition. The experimental results demonstrate the effectiveness of LTRUS and indicate that the conventional termination condition for the data resampling technique is improper.
引用
收藏
页数:13
相关论文
共 50 条
[31]   Cascade Generalization-Based Classifiers for Software Defect Prediction [J].
Bashir, Aminat T. ;
Balogun, Abdullateef O. ;
Adigun, Matthew O. ;
Ajagbe, Sunday A. ;
Capretz, Luiz Fernando ;
Awotunde, Joseph B. ;
Mojeed, Hammed A. .
SOFTWARE ENGINEERING METHODS DESIGN AND APPLICATION, VOL 1, CSOC 2024, 2024, 1118 :22-42
[32]   Hybrid SMOTE-Ensemble Approach for Software Defect Prediction [J].
Alsawalqah, Hamad ;
Faris, Hossam ;
Aljarah, Ibrahim ;
Alnemer, Loai ;
Alhindawi, Nouh .
SOFTWARE ENGINEERING TRENDS AND TECHNIQUES IN INTELLIGENT SYSTEMS, CSOC2017, VOL 3, 2017, 575 :355-366
[33]   On the relative value of data resampling approaches for software defect prediction [J].
Bennin, Kwabena Ebo ;
Keung, Jacky W. ;
Monden, Akito .
EMPIRICAL SOFTWARE ENGINEERING, 2019, 24 (02) :602-636
[34]   Prospect theory-based oversampling for software defect prediction [J].
Xu, Biao ;
Yan, Yuanting ;
Zhang, Yiwen .
Jisuanji Jicheng Zhizao Xitong/Computer Integrated Manufacturing Systems, CIMS, 2024, 30 (08) :2822-2831
[35]   A Comprehensive Investigation of the Role of Imbalanced Learning for Software Defect Prediction [J].
Song, Qinbao ;
Guo, Yuchen ;
Shepperd, Martin .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2019, 45 (12) :1253-1269
[36]   Tackling class overlap and imbalance problems in software defect prediction [J].
Chen, Lin ;
Fang, Bin ;
Shang, Zhaowei ;
Tang, Yuanyan .
SOFTWARE QUALITY JOURNAL, 2018, 26 (01) :97-125
[37]   DefectGRANDE: Hybrid Approach for Class Imbalance in Software Defect Prediction [J].
Ju, Eunjeong ;
Lee, Jeonghwa ;
Ryu, Duksan .
2025 IEEE INTERNATIONAL CONFERENCE ON BIG DATA AND SMART COMPUTING, BIGCOMP, 2025, :90-91
[38]   On cost-effective software defect prediction: Classification or ranking? [J].
Huo, Xuan ;
Li, Ming .
NEUROCOMPUTING, 2019, 363 :339-350
[39]   Class Imbalance Reduction (CIR): A Novel Approach to Software Defect Prediction in the Presence of Class Imbalance [J].
Bejjanki, Kiran Kumar ;
Gyani, Jayadev ;
Gugulothu, Narsimha .
SYMMETRY-BASEL, 2020, 12 (03)
[40]   Combining Integreted Sampling Technique with Feature Selection for Software Defect Prediction [J].
Putri, Sukmawati Anggraeni ;
Frieyadie .
2017 5TH INTERNATIONAL CONFERENCE ON CYBER AND IT SERVICE MANAGEMENT (CITSM 2017), 2017, :235-240