journal article·2019-06-29Open access

Transfer Convolutional Neural Network for Cross-Project Defect Prediction

Shaojian Qiu, Hao Xu, Jiehan Deng, Siyu Jiang, Lu Lu

Applied Sciences· Volume 9· Issue 13

Abstract

Cross-project defect prediction (CPDP) is a practical solution that allows software defect prediction (SDP) to be used earlier in the software lifecycle. With the CPDP technique, the software defect predictor trained by labeled data of mature projects can be applied for the prediction task of a new project. Most previous CPDP approaches ignored the semantic information in the source code, and existing semantic-feature-based SDP methods do not take into account the data distribution divergence between projects. These limitations may weaken defect prediction performance. To solve these problems, we propose a novel approach, the transfer convolutional neural network (TCNN), to mine the transferable semantic (deep-learning (DL)-generated) features for CPDP tasks. Specifically, our approach first parses the source file into integer vectors as the network inputs. Next, to obtain the TCNN model, a matching layer is added into convolutional neural network where the hidden representations of the source and target project-specific data are embedded into a reproducing kernel Hilbert space for distribution matching. By simultaneously minimizing classification error and distribution divergence between projects, the constructed TCNN could extract the transferable DL-generated features. Finally, without losing the information contained in handcrafted features, we combine them with transferable DL-generated features to form the joint features for CPDP performing. Experiments based on 10 benchmark projects (with 90 pairs of CPDP tasks) showed that the proposed TCNN method is superior to the reference methods.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Software Engineering Research · Software Reliability and Analysis Research · Software System Performance and Reliability

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

Affiliations

School of Computer Science and Engineering, South China University of Technology, Guangzhou 510006, China

College of Software Engineering, South China Agricultural University, Guangzhou 510642, China

School of Software Engineering, South China University of Technology, Guangzhou 510006, China

Modern Industrial Technology Research Institute, South China University of Technology, Zhongshan 528400, China

References (37)

Show source-provided references
1. Researcher bias: The use of machine learning in software defect prediction10.1109/TSE.2014.2322358 ↗
2. Software defect prediction using ensemble learning on selected features10.1016/j.infsof.2014.07.005 ↗
3. Song, Q., Guo, Y., and Shepperd, M. (2018). A comprehensive investigation of the role of imbalanced learning for software defect prediction. IEEE Trans. Softw. Eng.10.1109/TSE.2018.2836442 ↗
4. A survey on transfer learning10.1109/TKDE.2009.191 ↗
5. Halstead, M.H. (1977). Elements of Software Science, Elsevier.
6. A complexity measure10.1109/TSE.1976.233837 ↗
7. A metrics suite for object oriented design10.1109/32.295895 ↗
8. Li, J., He, P., Zhu, J., and Lyu, M.R. (2017, January 25–29). Software defect prediction via convolutional neural network. Proceedings of the 2017 IEEE International Conference on Software Quality, Reliability and Security (QRS), Prague, Czech Republic.10.1109/QRS.2017.42 ↗
9. Wang, S., Liu, T., Nam, J., and Tan, L. (2018). Deep semantic feature learning for software defect prediction. IEEE Trans. Softw. Eng.
10. Nam, J., Pan, S.J., and Kim, S. (2013, January 18–26). Transfer defect learning. Proceedings of the 2013 35th International Conference on Software Engineering (ICSE), San Francisco, CA, USA.10.1109/ICSE.2013.6606584 ↗
11. A comparative study to benchmark cross-project defect prediction approaches10.1109/TSE.2017.2724538 ↗
12. Tzeng, E., Hoffman, J., Zhang, N., Saenko, K., and Darrell, T. (2014). Deep domain confusion: Maximizing for domain invariance. arXiv.
13. On the relative value of cross-company and within-company data for defect prediction10.1007/s10664-008-9103-7 ↗
14. Transfer learning for cross-company software defect prediction10.1016/j.infsof.2011.09.007 ↗
15. Caglayan, B., Kocaguneli, E., Krall, J., Peters, F., and Turhan, B. (2012). The PROMISE Repository of Empirical Software Engineering Data, West Virginia University Department of Computer Science.
16. D’Ambros, M., Lanza, M., and Robbes, R. (2010, January 2–3). An extensive comparison of bug prediction approaches. Proceedings of the 2010 7th IEEE Working Conference on Mining Software Repositories (MSR 2010), Cape Town, South Africa.10.1109/MSR.2010.5463279 ↗
17. Zimmermann, T., Nagappan, N., Gall, H., Giger, E., and Murphy, B. (2009, January 24–28). Cross-project defect prediction: A large scale experiment on data vs. domain vs. process. Proceedings of the 7th Joint Meeting of the European Software Engineering Conference and the ACM SIGSOFT Symposium on the Foundations of Software Engineering, Amsterdam, The Netherlands.10.1145/1595696.1595713 ↗
18. An empirical study on software defect prediction with a simplified metric set10.1016/j.infsof.2014.11.006 ↗
19. Data gravitation based classification10.1016/j.ins.2008.11.007 ↗
20. Domain adaptation via transfer component analysis10.1109/TNN.2010.2091281 ↗
21. Hydra: Massively compositional model for cross-project defect prediction10.1109/TSE.2016.2543218 ↗
22. Wang, S., Liu, T., and Tan, L. (2016, January 14–22). Automatically learning semantic features for defect prediction. Proceedings of the 2016 IEEE/ACM 38th International Conference on Software Engineering (ICSE), Austin, TX, USA.10.1145/2884781.2884804 ↗
23. Integrating structured biological data by kernel maximum mean discrepancy10.1093/bioinformatics/btl242 ↗
24. Huang, J., Gretton, A., Borgwardt, K., Schölkopf, B., and Smola, A.J. (2006, January 4–7). Correcting sample selection bias by unlabeled data. Proceedings of the 19th International Conference on Neural Information Processing Systems, Vancouver, BC, Canada.10.7551/mitpress/7503.003.0080 ↗
25. An improved SDA based defect prediction framework for both within-project and cross-project class-imbalance problems10.1109/TSE.2016.2597849 ↗
26. Multiple-components weights model for cross-project software defect prediction10.1049/iet-sen.2017.0111 ↗
27. Zhang, X., Ben, K., and Zeng, J. (2018, January 16–20). Cross-entropy: A new metric for software defect prediction. Proceedings of the 2018 IEEE International Conference on Software Quality, Reliability and Security (QRS), Lisbon, Portugal.10.1109/QRS.2018.00025 ↗
28. Negative samples reduction in cross-company software defects prediction10.1016/j.infsof.2015.01.014 ↗
29. Qiu, S., Lu, L., Jiang, S., and Guo, Y. (2019). An investigation of imbalanced ensemble learning methods for cross-project defect prediction. Int. J. Pattern Recognit. Artif. Intell.10.1142/S0218001419590377 ↗
30. Han, J., Pei, J., and Kamber, M. (2011). Data Mining: Concepts and Techniques, Elsevier.
31. Jelihovschi, E., Faria, J.C., and Allaman, I.B. (2014). The ScottKnott Clustering Algorithm, Universidade Estadual de Santa Cruz-UESC.
32. An empirical comparison of model validation techniques for defect prediction models10.1109/TSE.2016.2584050 ↗
33. Comments on ScottKnottESD in response to “An empirical comparison of model validation techniques for defect prediction models”10.1109/TSE.2017.2748129 ↗
34. Long, M., Cao, Y., Wang, J., and Jordan, M.I. (2015). Learning transferable features with deep adaptation networks. arXiv.
35. Value-cognitive boosting with a support vector machine for cross-project defect prediction10.1007/s10664-014-9346-4 ↗
36. Data Transformation in Cross-project Defect Prediction10.1007/s10664-017-9516-2 ↗
37. Software defect prediction using stacked denoising autoencoders and two-stage ensemble learning10.1016/j.infsof.2017.11.008 ↗