Multi-Source Heterogeneous Kernel Mapping in Software Defect Prediction
Source abstract
Abstract
Heterogeneous defect prediction (HDP) is a significant research topic in cross-project defect prediction (CPDP), due to the inconsistency of metrics used between source and target projects. While most HDP methods aim to improve the performance of models trained on data from one source project, few studies have investigated how the number of source projects affects predictive performance. In this paper, we propose a new multi-source heterogeneous kernel mapping (MSHKM) algorithm to analyze the effects of different numbers of source projects on prediction results. First, we introduce two strategies based on MSHKM for multi-source HDP. To determine the impact of the number of source projects on the predictive performance of the model, we regularly vary the number of source projects in each strategy. Then, we compare the proposed MSHKM with state-of-the-art HDP methods and within-project defect prediction (WPDP) methods, in terms of three common performance measures, using 28 data sets from five widely used projects. Our results demonstrate that, (1) in the multi-source HDP scenario, strategy 2 outperforms strategy 1; (2) for MSHKM, a lower number of source projects leads to better results and performance under strategy 1, while n = 4 is the optimal number under strategy 2; (3) MSHKM performs better than related state-of-the-art HDP methods; and (4) MSHKM outperforms WPDP. In summary, our proposed MSHKM algorithm provides a promising solution for heterogeneous cross-project defect prediction, and our findings suggest that the number of source projects should be carefully selected to achieve optimal predictive performance.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Software Engineering Research · Software Reliability and Analysis Research · Software Engineering Techniques and Practices
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
School of Reliability and Systems Engineering, Beihang University, Beijing 100191, China
Funding
National defense research foundation of China
References (50)
Show source-provided references
1. A critique of software defect prediction models10.1109/32.815326 ↗
2. A novel software defect prediction based on atomic class-association rule mining10.1016/j.eswa.2018.07.042 ↗
3. Software defect prediction based on correlation weighted class association rule mining10.1016/j.knosys.2020.105742 ↗
4. Software defect prediction using stacked denoising autoencoders and two-stage ensemble learning10.1016/j.infsof.2017.11.008 ↗
5. Zimmermann, T., Nagappan, N., Gall, H., Giger, E., and Murphy, B. (2009, January 24–29). Cross-project defect prediction: A large scale experiment on data vs. domain vs. process. Proceedings of the Joint 12th European Software Engineering Conference and 17th ACM SIGSOFT Symposium on the Foundations of Software Engineering (ESEC-FSE’09), Amsterdam, The Netherlands.10.1145/1595696.1595713 ↗
6. Qiu, S., Lu, L., Cai, Z., and Jiang, S. (2019, January 10–12). Cross-project defect prediction via transferable deep learning-generated and handcrafted features. Proceedings of the 31st International Conference on Software Engineering and Knowledge Engineering (SEKE 2019), Lisbon, Portugal.10.18293/SEKE2019-070 ↗
7. Global vs. local models for cross-project defect prediction10.1007/s10664-016-9468-y ↗
8. Feedback-based integrated prediction: Defect prediction based on feedback from software testing process10.1016/j.jss.2018.05.029 ↗
9. Heterogeneous Defect Prediction10.1109/TSE.2017.2720603 ↗
10. Jing, X., Wu, F., Dong, X., Qi, F., and Xu, B. (September, January 30). Heterogeneous cross-company defect prediction by unified metric representation and CCA-based transfer learning. Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering, Bergamo, Italy.10.1145/2786805.2786813 ↗
11. Cheng, M., Wu, G., Jiang, M., Wan, H., You, G., and Yuan, M. (2016, January 1–3). Heterogeneous Defect Prediction via Exploiting Correlation Subspace. Proceedings of the SEKE, Redwood City, CA, USA.10.18293/SEKE2016-090 ↗
12. Kernel CCA based transfer learning for software defect prediction10.1587/transinf.2016EDL8238 ↗
13. Cost-sensitive transfer kernel canonical correlation analysis for heterogeneous defect prediction10.1007/s10515-017-0220-7 ↗
14. A feature matching and transfer approach for cross-company defect prediction10.1016/j.jss.2017.06.070 ↗
15. Li, Z., Jing, X.Y., Zhu, X., and Zhang, H. (2017, January 17–22). Heterogeneous defect prediction through multiple kernel learning and ensemble learning. Proceedings of the IEEE International Conference on Software Maintenance and Evolution (ICSME), Shanghai, China.10.1109/ICSME.2017.19 ↗
16. Heterogeneous defect prediction with two-stage ensemble learning10.1007/s10515-019-00259-1 ↗
17. Kernel Spectral Embedding Transfer Ensemble for Heterogeneous Defect Prediction
18. HDA: Cross-project defect prediction via heterogeneous domain adaptation with dictionary learning10.1109/ACCESS.2018.2873755 ↗
19. Xu, Z., Ye, S., Zhang, T., Xia, Z., Pang, S., Wang, Y., and Tang, Y. (2019, January 22–26). Mvse: Effort-aware heterogeneous defect prediction via multiple-view spectral embedding. Proceedings of the IEEE 19th International Conference on Software Quality, Reliability and Security (QRS), Sofia, Bulgaria.10.1109/QRS.2019.00015 ↗
20. Unsupervised deep domain adaptation for heterogeneous defect prediction10.1587/transinf.2018EDP7289 ↗
21. MHCPDP: Multi-source heterogeneous cross-project defect prediction via multi-source transfer learning and autoencoder10.1007/s11219-021-09553-2 ↗
22. Few-shot learning based balanced distribution adaptation for heterogeneous defect prediction10.1109/ACCESS.2020.2973924 ↗
23. Heterogeneous cross-project defect prediction via optimal transport10.1109/ACCESS.2023.3241924 ↗
24. Transfer across completely different feature spaces via spectral embedding10.1109/TKDE.2011.252 ↗
25. Data quality: Some comments on the NASA software defect datasets10.1109/TSE.2013.11 ↗
26. On the relative value of cross-company and within-company data for defect prediction10.1007/s10664-008-9103-7 ↗
27. Wu, R., Zhang, H., Kim, S., and Cheung, S.C. (2011, January 5–9). Relink: Recovering links between bugs and changes. Proceedings of the 19th ACM SIGSOFT Symposium and the 13th European Conference on Foundations of Software Engineering, Szeged, Hungary.10.1145/2025113.2025120 ↗
28. Evaluating defect prediction approaches: A benchmark and an extensive comparison10.1007/s10664-011-9173-9 ↗
29. Peters, F., and Menzies, T. (2012, January 2–9). Privacy and utility for defect prediction: Experiments with morph. Proceedings of the 2012 34th International conference on software engineering (ICSE), Zurich, Switzerland.10.1109/ICSE.2012.6227194 ↗
30. Multiple graphs and low-rank embedding for multi-source heterogeneous domain adaptation
31. A multi-source heterogeneous data analytic method for future price fluctuation prediction10.1016/j.neucom.2020.07.073 ↗
32. Zhao, W., Fu, Z., Fan, T., and Wang, J. (2023). Ontology construction and mapping of multi-source heterogeneous data based on hybrid neural network and autoencoder. Neural Comput. Appl., 1–11.10.1007/s00521-023-08373-8 ↗
33. An empirical study on heterogeneous defect prediction approaches10.1109/TSE.2020.2968520 ↗
34. Liu, X., Li, Z., Zou, J., and Tong, H. (2022, January 6–9). An Empirical Study on Multi-Source Cross-Project Defect Prediction Models. Proceedings of the 2022 29th Asia-Pacific Software Engineering Conference (APSEC), Virtual Event.10.1109/APSEC57359.2022.00044 ↗
35. On the Multiple Sources and Privacy Preservation Issues for Heterogeneous Defect Prediction10.1109/TSE.2017.2780222 ↗
36. SMOTE: Synthetic minority over-sampling technique10.1613/jair.953 ↗
37. Karush, W. (2013). Traces and Emergence of Nonlinear Programming, Springer.
38. Matrix analysis10.1007/978-1-4612-0653-8_1 ↗
39. A Complexity Measure
40. Halstead, M.H., and Halstead, M. (1977). Advances in Computers, Elsevier.
41. A Metrics Suite for Object Oriented Design10.1109/32.295895 ↗
42. Evaluation: From precision, recall and F-measure to ROC, informedness, markedness and correlation
43. The impact of automated parameter optimization on defect prediction models10.1109/TSE.2018.2794977 ↗
44. Statistical comparisons of classifiers over multiple data sets
45. Dominance statistics: Ordinal analyses to answer ordinal questions10.1037/0033-2909.114.3.494 ↗
46. Cliff’s Delta Calculator: A non-parametric effect size program for two groups of observations10.11144/Javeriana.upsy10-2.cdcp ↗
47. The impact of using biased performance metrics on software defect prediction research10.1016/j.infsof.2021.106664 ↗
48. Yao, J., and Shepperd, M. (2020, January 15–17). Assessing software defection prediction performance: Why using the Matthews correlation coefficient matters. Proceedings of the Evaluation and Assessment in Software Engineering, Trondheim, Norway.10.1145/3383219.3383232 ↗
49. Data mining static code attributes to learn defect predictors10.1109/TSE.2007.256941 ↗
50. A systematic literature review on fault prediction performance in software engineering10.1109/TSE.2011.103 ↗