journal article·2023-09-19Open access

Improving Software Defect Prediction in Noisy Imbalanced Datasets

Haoxiang Shi, Jun Ai, Jingyu Liu, Jiaxi Xu

Applied Sciences· Volume 13· Issue 18

Abstract

Software defect prediction is a popular method for optimizing software testing and improving software quality and reliability. However, software defect datasets usually have quality problems, such as class imbalance and data noise. Oversampling by generating the minority class samples is one of the most well-known methods to improving the quality of datasets; however, it often introduces overfitting noise to datasets. To better improve the quality of these datasets, this paper proposes a method called US-PONR, which uses undersampling to remove duplicate samples from version iterations and then uses oversampling through propensity score matching to reduce class imbalance and noise samples in datasets. The effectiveness of this method was validated in a software prediction experiment that involved 24 versions of software data in 11 projects from PROMISE in noisy environments that varied from 0% to 30% noise level. The experiments showed a significant improvement in the quality of datasets pre-processed by US-PONR in noisy imbalanced datasets, especially the noisiest ones, compared with 12 other advanced dataset processing methods. The experiments also demonstrated that the US-PONR method can effectively identify the label noise samples and remove them.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Software Engineering Research · Software Reliability and Analysis Research · Imbalanced Data Classification Techniques

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Reliability and Systems Engineering, Beihang University, Beijing 100191, China

China Electronic Product Reliability and Environmental Testing Research Institute, Guangzhou 510610, China

References (61)

Show source-provided references
1. Be more familiar with our enemies and pave the way forward: A review of the roles bugs played in software failures10.1016/j.jss.2017.06.069 ↗
2. Wong, W.E., Debroy, V., Surampudi, A., Kim, H., and Siok, M.F. (2010, January 9–11). Recent catastrophic accidents: Investigating how software was responsible. Proceedings of the SSIRI 2010—4th IEEE International Conference on Secure Software Integration and Reliability Improvement, Singapore.10.1109/SSIRI.2010.38 ↗
3. Benchmarking Machine Learning Techniques for Software Defect Detection
4. Software Defect Prediction Using Supervised Machine Learning and Ensemble Techniques: A Comparative Study10.4236/jsea.2019.125007 ↗
5. A Study on Software Metrics based Software Defect Prediction using Data Mining and Machine Learning Techniques10.14257/ijdta.2015.8.3.15 ↗
6. A Metric suite for object oriented design10.1109/32.295895 ↗
7. Nagappan, N., and Ball, T. (2005, January 15–21). Use of relative code churn measures to predict system defect density. Proceedings of the 27th International Conference on Software Engineering, ICSE05, St. Louis, MO, USA.10.1145/1062455.1062514 ↗
8. Khoshgoftaar, T., Allen, E., Goel, N., Nandi, A., and McMullan, J. (November, January 30). Detection of software modules with high debug code churn in a very large legacy system. Proceedings of the ISSRE ‘96: 7th International Symposium on Software Reliability Engineering, White Plains, NY, USA.
9. Nikora, A.P., and Munson, J.C. (2004, January 5). Developing fault predictors for evolving software systems. Proceedings of the 5th International Workshop on Enterprise Networking and Computing in Healthcare Industry, Sydney, Australia.
10. Hassan, A.E. (2009, January 16–24). Predicting faults using the complexity of code changes. Proceedings of the International Conference on Software Engineering, Vancouver, BC, Canada.10.1109/ICSE.2009.5070510 ↗
11. Yang, Y., Ai, J., and Wang, F. (2018, January 16–20). Defect Prediction Based on the Characteristics of Multilayer Structure of Software Network. Proceedings of the 2018 IEEE International Conference on Software Quality, Reliability, and Security Companion (QRS-C), Lisbon, Portugal.10.1109/QRS-C.2018.00019 ↗
12. A Software Network Model for Software Structure and Faults Distribution Analysis10.1109/TR.2019.2909786 ↗
13. Zimmermann, T., and Nagappan, N. (2008, January 10–18). Predicting defects using network analysis on dependency graphs. Proceedings of the International Conference on Software Engineering, Leipzig, Germany.10.1145/1368088.1368161 ↗
14. Zhang, S., Ai, J., and Li, X. (2016, January 1–3). Correlation between the Distribution of Software Bugs and Network Motifs. Proceedings of the 2016 IEEE International Conference on Software Quality, Reliability and Security (QRS), Vienna, Austria.10.1109/QRS.2016.32 ↗
15. Using Tri-Relation Networks for Effective Software Fault-Proneness Prediction10.1109/ACCESS.2019.2916615 ↗
16. Improving Ranking-Oriented Defect Prediction Using a Cost-Sensitive Ranking SVM10.1109/TR.2019.2931559 ↗
17. Tackling Class Imbalance Problem in Software Defect Prediction through Cluster-Based Over-Sampling with Filtering10.1109/ACCESS.2019.2945858 ↗
18. A dissimilarity-based imbalance data classification algorithm10.1007/s10489-014-0610-5 ↗
19. Performance of corporate bankruptcy prediction models on imbalanced dataset: The effect of sampling methods10.1016/j.knosys.2012.12.007 ↗
20. SMOTE: Synthetic Minority Over-sampling Technique10.1613/jair.953 ↗
21. Mahakil: Diversity based oversampling approach to alleviate the class imbalance issue in software defect prediction10.1109/TSE.2017.2731766 ↗
22. Finding defective modules from highly unbalanced datasets
23. Pandey, Kumar, S., and Tripathi, A.K (2021). An empirical study toward dealing with noise and class imbalance issues in software defect prediction. Soft Comput., 25, 13465–13492.10.1007/s00500-021-06096-3 ↗
24. Progress on approaches to software defect prediction10.1049/iet-sen.2017.0148 ↗
25. Kim, H., Just, S., and Zeller, A. (2013, January 18–26). It’s not a bug, it’s a feature: How misclassification impacts bug prediction. Proceedings of the 2013 35th International Conference on Software Engineering (ICSE), San Francisco, CA, USA.
26. The impact of tangled code changes on defect prediction models10.1007/s10664-015-9376-6 ↗
27. Noise Reduction A Priori Synthetic Over-Sampling for class imbalanced data sets10.1016/j.ins.2017.04.046 ↗
28. A general software defect-proneness prediction framework10.1109/TSE.2010.90 ↗
29. Software defect prediction model based on distance metric learning10.1007/s00500-020-05159-1 ↗
30. Effective software defect prediction using support vector machines (SVMs)10.1007/s13198-021-01326-1 ↗
31. ACGDP: An Augmented Code Graph-Based System for Software Defect Prediction10.1109/TR.2022.3161581 ↗
32. Hanif, H., and Maffeis, S. (2022, January 18–23). Vulberta: Simplified source code pre-training for vulnerability detection. Proceedings of the 2022 International Joint Conference on Neural Networks (IJCNN), Padua, Italy.10.1109/IJCNN55064.2022.9892280 ↗
33. Do too many cooks spoil the broth? Using the number of developers to enhance defect prediction models10.1007/s10664-008-9082-8 ↗
34. DBIG-US: A two-stage under-sampling algorithm to face the class imbalance problem10.1016/j.eswa.2020.114301 ↗
35. Tax, D.M.J. (2002). One-Class Classification: Concept Learning in the Absence of Counter-Examples, Netherlands Participating Organizations.
36. Agrawal, A., and Menzies, T. (June, January 27). Is ‘better data’ better than ‘better data miners’?: On the benefits of tuning SMOTE for defect prediction. Proceedings of the International Conference on Software Engineering, Gothenburg, Sweden.
37. COSTE: Complexity-based OverSampling TEchnique to alleviate the class imbalance problem in software defect prediction10.1016/j.infsof.2020.106432 ↗
38. Ochal, M., Patacchiola, M., Vazquez, J., Storkey, A., and Wang, S. (2023). Few-shot learning with class imbalance. IEEE Trans. Artif. Intell.10.1109/TAI.2023.3298303 ↗
39. Bennin, K.E., Keung, J., Phannachitta, P., and Mensah, S. (2017, January 9–10). The significant effects of data sampling approaches on software defect prioritization and classification. Proceedings of the 2017 ACM/IEEE International Symposium on Empirical Software Engineering and Measurement (ESEM), Toronto, ON, Canada.10.1109/ESEM.2017.50 ↗
40. Investigation on the stability of SMOTE-based oversampling techniques in software defect prediction10.1016/j.infsof.2021.106662 ↗
41. RCSMOTE: Range-Controlled synthetic minority over-sampling technique for handling the class imbalance problem10.1016/j.ins.2020.07.014 ↗
42. A study of the behavior of several methods for balancing machine learning training data10.1145/1007730.1007735 ↗
43. Borderline-SMOTE: A new over-sampling method in imbalanced data sets learning10.1007/11538059_91 ↗
44. He, H., Bai, Y., Garcia, E.A., and Li, S. (2008, January 1–8). ADASYN: Adaptive synthetic sampling approach for imbalanced learning. Proceedings of the International Joint Conference on Neural Networks, Hong Kong, China.
45. Improving imbalanced learning through a heuristic oversampling method based on k-means and SMOTE10.1016/j.ins.2018.06.056 ↗
46. Self-Organizing Map Oversampling (SOMO) for imbalanced data set learning10.1016/j.eswa.2017.03.073 ↗
47. Gaussian-based SMOTE algorithm for solving skewed class distributions10.5391/IJFIS.2017.17.4.229 ↗
48. MWMOTE—Majority weighted minority oversampling technique for imbalanced data set learning10.1109/TKDE.2012.232 ↗
49. Ahluwalia, A., Falessi, D., and Di Penta, M. (2019, January 25–31). Snoring: A noise in defect prediction datasets. Proceedings of the IEEE International Working Conference on Mining Software Repositories, Montreal, QC, Canada.10.1109/MSR.2019.00019 ↗
50. Hu, S., Liang, Y., Ma, L., and He, Y. (2009, January 28–30). MSMOTE: Improving classification performance when training data is imbalanced. Proceedings of the 2nd International Workshop on Computer Science and Engineering, WCSE 2009, Qingdao, China.10.1109/WCSE.2009.756 ↗
51. SMOTE-IPF: Addressing the noisy and borderline examples problem in imbalanced classification by a re-sampling method with filtering10.1016/j.ins.2014.08.051 ↗
52. CCR: A combined cleaning and resampling algorithm for imbalanced data classification10.1515/amcs-2017-0050 ↗
53. SMOTE-RSB *: A hybrid preprocessing approach based on oversampling and undersampling for high imbalanced data-sets using SMOTE and rough sets theory10.1007/s10115-011-0465-6 ↗
54. Fuzzy-rough imbalanced learning for the diagnosis of High Voltage Circuit Breaker maintenance: The SMOTE-FRST-2T algorithm10.1016/j.engappai.2015.10.009 ↗
55. Improving software quality prediction by noise filtering techniques10.1007/s11390-007-9054-2 ↗
56. Software defect prediction using ensemble learning: A systematic literature review10.1109/ACCESS.2021.3095559 ↗
57. Menzies, T., Caglayan, B., Kocaguneli, E., Krall, J., Peters, F., and Turhan, B. (2007, December 31). The Promise Repository of Empirical Software Engineering Data. Available online: http://promise.site.uottawa.ca/SERepository/.
58. Cheikhi, L., and Abran, A. (2013, January 23–26). PROMISE and ISBSG software engineering data repositories: A survey. Proceedings of the Joint Conference of the 23rd International Workshop on Software Measurement and the 8th International Conference on Software Process and Product Measurement, IWSM-MENSURA 2013, Ankara, Turkey.10.1109/IWSM-Mensura.2013.13 ↗
59. Ghotra, B., McIntosh, S., and Hassan, A.E. (2015, January 16–24). Revisiting the impact of classification techniques on the performance of defect prediction models. Proceedings of the International Conference on Software Engineering, Florence, Italy.10.1109/ICSE.2015.91 ↗
60. Smote-variants: A python implementation of 85 minority oversampling techniques10.1016/j.neucom.2019.06.100 ↗
61. On the Hausdorff distance between the Heaviside step function and Verhulst logistic function10.1007/s10910-015-0552-0 ↗