{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,11,5]],"date-time":"2025-11-05T09:13:32Z","timestamp":1762334012201,"version":"build-2065373602"},"reference-count":46,"publisher":"Institution of Engineering and Technology (IET)","issue":"1","license":[{"start":{"date-parts":[[2024,11,13]],"date-time":"2024-11-13T00:00:00Z","timestamp":1731456000000},"content-version":"vor","delay-in-days":317,"URL":"http:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["ietresearch.onlinelibrary.wiley.com"],"crossmark-restriction":true},"short-container-title":["IET Software"],"published-print":{"date-parts":[[2024,1]]},"abstract":"<jats:p>\n                    Software defect prediction (SDP) is a crucial phase preceding the launch of software products. Cross\u2010project defect prediction (CPDP) is introduced for the anticipation of defects in novel projects lacking defect labels. CPDP can use defect information of mature projects to speed up defect prediction for new projects. So that developers can quickly get the defect information of the new project, so that they can test the software project pertinently. At present, the predominant approaches in CPDP rely on deep learning, and the performance of the ultimate model is notably affected by the quality of the training dataset. However, the dataset of CPDP not only has few samples but also has almost no label information in new projects, which makes the general deep\u2010learning\u2010based CPDP model not ideal. In addition, most of the current CPDP models do not fully consider the enrichment of classification boundary samples after cross\u2010domain, leading to suboptimal predictive capabilities of the model. To overcome these obstacles, we present contrastive learning pretraining for CPDP (ConCPDP), a CPDP method integrating contrastive pretraining and category boundary adjustment. We first perform data augmentation on the source and target domain code files and then extract the enhanced data as an abstract syntax tree (AST). The AST is then transformed into an integer sequence using specific mapping rules, serving as input for the subsequent neural network. A neural network based on bidirectional long short\u2010term memory (Bi\u2010LSTM) will receive an integer sequence and output a feature vector. Then, the feature vectors are input into the contrastive module to optimise the feature extraction network. The pretrained feature extractor can be fine\u2010tuned by the maximum mean discrepancy (MMD) between the feature distribution of the source domain and the target domain and the binary classification loss on the source domain. This paper conducts a large number of experiments on the PROMISE dataset, which is commonly used for CPDP, to validate ConCPDP\u2019s efficacy, achieving superior results in terms of\n                    <jats:italic>F<\/jats:italic>\n                    <jats:sub>1<\/jats:sub>\n                    measure, area under curve (AUC), and Matthew\u2019s correlation coefficient (MCC).\n                  <\/jats:p>","DOI":"10.1049\/2024\/5102699","type":"journal-article","created":{"date-parts":[[2024,11,13]],"date-time":"2024-11-13T06:22:54Z","timestamp":1731478974000},"update-policy":"https:\/\/doi.org\/10.1002\/crossmark_policy","source":"Crossref","is-referenced-by-count":1,"title":["ConCPDP: A Cross\u2010Project Defect Prediction Method Integrating Contrastive Pretraining and Category Boundary Adjustment"],"prefix":"10.1049","volume":"2024","author":[{"given":"Hengjie","family":"Song","sequence":"first","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0009-0003-8299-7974","authenticated-orcid":false,"given":"Yufei","family":"Pan","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0009-0009-9933-2462","authenticated-orcid":false,"given":"Feng","family":"Guo","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0009-0001-9537-6363","authenticated-orcid":false,"given":"Xue","family":"Zhang","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1394-2174","authenticated-orcid":false,"given":"Le","family":"Ma","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4763-5762","authenticated-orcid":false,"given":"Siyu","family":"Jiang","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"265","published-online":{"date-parts":[[2024,11,13]]},"reference":[{"key":"e_1_2_11_1_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.infsof.2014.11.006"},{"key":"e_1_2_11_2_2","doi-asserted-by":"publisher","DOI":"10.1109\/32.815326"},{"key":"e_1_2_11_3_2","doi-asserted-by":"crossref","unstructured":"NamJ.andClamiKim. S. Defect Prediction on Unlabeled Datasets 30th IEEE\/ACM International Conference on Automated Software Engineering (ASE) 2015 IEEE 452\u2013463.","DOI":"10.1109\/ASE.2015.56"},{"key":"e_1_2_11_4_2","doi-asserted-by":"publisher","DOI":"10.1109\/TR.2022.3151125"},{"key":"e_1_2_11_5_2","unstructured":"GuoD. RenS. andLuS. et al.Graphcodebert: Pre-Training Code Representations With Data Flow 2020 arXiv preprint arXiv: 2009.08366."},{"key":"e_1_2_11_6_2","unstructured":"FengZ. GuoD. andTangD. et al.Codebert: A Pre-Trained Model for Programming and Natural Languages 2020 arXiv preprint arXiv: 2002.08155."},{"key":"e_1_2_11_7_2","unstructured":"DevlinJ. ChangM. W. LeeK. andToutanovaK. Bert: Pre-Training of Deep Bidirectional Transformers for Language Understanding 2018."},{"key":"e_1_2_11_8_2","doi-asserted-by":"publisher","DOI":"10.3390\/app9132660"},{"key":"e_1_2_11_9_2","doi-asserted-by":"crossref","unstructured":"NamJ. PanS. J. andKimS. Transfer Defect Learning 2013 35th International Conference on Software Engineering (ICSE) 2013 IEEE 382\u2013391.","DOI":"10.1109\/ICSE.2013.6606584"},{"key":"e_1_2_11_10_2","doi-asserted-by":"crossref","unstructured":"LiJ. HeP. ZhuJ. andLyuM. R. Software Defect Prediction via Convolutional Neural Network 2017 IEEE International Conference on Software Quality Reliability and Security (QRS) 2017 IEEE 318\u2013328.","DOI":"10.1109\/QRS.2017.42"},{"key":"e_1_2_11_11_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-021-10103-4"},{"key":"e_1_2_11_12_2","doi-asserted-by":"crossref","unstructured":"CuiS. WangS. ZhuoJ. LiL. HuangQ. andTianQ. Towards Discriminability and Diversity: Batch Nuclear-Norm Maximization Under Label Insufficient Situations Proceedings of the IEEE\/CVF Conference on Computer Vision and Pattern Recognition 2020 IEEE 3941\u20133950.","DOI":"10.1109\/CVPR42600.2020.00400"},{"key":"e_1_2_11_13_2","doi-asserted-by":"crossref","unstructured":"ChenM. XueH. andCaiD. Domain Adaptation for Semantic Segmentation With Maximum Squares Loss Proceedings of the IEEE\/CVF International Conference on Computer Vision 2019 IEEE 2090\u20132099.","DOI":"10.1109\/ICCV.2019.00218"},{"key":"e_1_2_11_14_2","doi-asserted-by":"crossref","unstructured":"VuT.-H. JainH. BucherM. CordM. andP\u00e9rezP. Advent: Adversarial Entropy Minimization for Domain Adaptation in Semantic Segmentation Proceedings of the IEEE\/CVF Conference on Computer Vision and Pattern Recognition 2019 IEEE 2517\u2013\u20132526.","DOI":"10.1109\/CVPR.2019.00262"},{"key":"e_1_2_11_15_2","doi-asserted-by":"crossref","unstructured":"HuangJ. LuS. GuanD. andZhangX. Contextual-Relation Consistent Domain Adaptation for Semantic Segmentation European Conference on Computer Vision 2020 Springer 705\u2013722.","DOI":"10.1007\/978-3-030-58555-6_42"},{"key":"e_1_2_11_16_2","doi-asserted-by":"crossref","unstructured":"JureczkoM.andMadeyskiL. Towards Identifying Software Project Clusters With Regard to Defect Prediction Proceedings of the 6th International Conference on Predictive Models in Software Engineering 2010 1\u201310.","DOI":"10.1145\/1868328.1868342"},{"key":"e_1_2_11_17_2","doi-asserted-by":"crossref","unstructured":"ZimmermannT. NagappanN. GallH. GigerE. andMurphyB. 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 2009 91\u2013100.","DOI":"10.1145\/1595696.1595713"},{"key":"e_1_2_11_18_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.jss.2022.111537"},{"key":"e_1_2_11_19_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.infsof.2011.09.007"},{"key":"e_1_2_11_20_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.ins.2008.11.007"},{"key":"e_1_2_11_21_2","doi-asserted-by":"publisher","DOI":"10.1109\/TNN.2010.2091281"},{"key":"e_1_2_11_22_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-008-9103-7"},{"key":"e_1_2_11_23_2","unstructured":"LiuY. OttM. andGoyalN. et al.Roberta: A Robustly Optimized Bert Pretraining Approach 2019 arXiv preprint arXiv:1907.11692."},{"key":"e_1_2_11_24_2","unstructured":"BalogM. GauntA. L. BrockschmidtM. NowozinS. andTarlowD. Deepcoder: Learning to Write Programs 2016 arXiv preprint arXiv: 1611.01989."},{"key":"e_1_2_11_25_2","article-title":"Latent Attention for if-Then Program Synthesis","volume":"29","author":"Liu C.","year":"2016","journal-title":"Advances in Neural Information Processing Systems"},{"key":"e_1_2_11_26_2","doi-asserted-by":"crossref","unstructured":"WangK. ChenG. HuangZ. WanX. andHuangF. Bridging the Domain Gap: Improve Informal Language Translation via Counterfactual Domain Adaptation 35 Proceedings of the AAAI Conference on Artificial Intelligence 2021 13970\u201313978.","DOI":"10.1609\/aaai.v35i16.17645"},{"key":"e_1_2_11_27_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2018.2877612"},{"key":"e_1_2_11_28_2","doi-asserted-by":"publisher","DOI":"10.1049\/iet-sen.2019.0149"},{"key":"e_1_2_11_29_2","doi-asserted-by":"crossref","unstructured":"HuangJ. GuanX. andLiS. Software Defect Prediction Model Based on Attention Mechanism 2021 International Conference on Computer Engineering and Application (ICCEA) 2021 IEEE 338\u2013345.","DOI":"10.1109\/ICCEA53728.2021.00073"},{"key":"e_1_2_11_30_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-018-9633-6"},{"key":"e_1_2_11_31_2","doi-asserted-by":"publisher","DOI":"10.1109\/TKDE.2008.239"},{"key":"e_1_2_11_32_2","doi-asserted-by":"publisher","DOI":"10.1109\/TR.2020.2996261"},{"key":"e_1_2_11_33_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2016.2597849"},{"key":"e_1_2_11_34_2","first-page":"331","article-title":"Survey on Software Defect Prediction Techniques","volume":"17","author":"Thota M. K.","year":"2020","journal-title":"International Journal of Applied Science and Engineering"},{"key":"e_1_2_11_35_2","doi-asserted-by":"publisher","DOI":"10.4018\/IJeC.315777"},{"key":"e_1_2_11_36_2","doi-asserted-by":"publisher","DOI":"10.1142\/S0218001419590377"},{"key":"e_1_2_11_37_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2014.2322358"},{"key":"e_1_2_11_38_2","doi-asserted-by":"publisher","DOI":"10.1613\/jair.953"},{"key":"e_1_2_11_39_2","doi-asserted-by":"publisher","DOI":"10.1049\/sfw2.12053"},{"key":"e_1_2_11_40_2","doi-asserted-by":"crossref","unstructured":"HerboldS. TrautschA. andGrabowskiJ. A Comparative Study to Bench Mark Cross-Project Defect Prediction Approaches Proceedings of the 40th International Conference on Software Engineering 2018 1063\u20131063.","DOI":"10.1145\/3180155.3182542"},{"key":"e_1_2_11_41_2","unstructured":"KingmaD. P.andBaJ. Adam: A Method for Stochastic Optimization 2014 arXiv preprint arXiv: 1412.6980."},{"key":"e_1_2_11_42_2","article-title":"Evaluation Measures for Models Assessment Over Imbalanced Data Sets","volume":"3","author":"Bekkar M.","year":"2013","journal-title":"Journal of Information Engineering and Applications"},{"key":"e_1_2_11_43_2","doi-asserted-by":"publisher","DOI":"10.1049\/iet-sen.2019.0389"},{"key":"e_1_2_11_44_2","doi-asserted-by":"publisher","DOI":"10.3390\/sym14020401"},{"key":"e_1_2_11_45_2","doi-asserted-by":"publisher","DOI":"10.1109\/TR.2019.2895462"},{"key":"e_1_2_11_46_2","doi-asserted-by":"publisher","DOI":"10.1007\/s00500-022-06830-5"}],"container-title":["IET Software"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/ietresearch.onlinelibrary.wiley.com\/doi\/pdf\/10.1049\/2024\/5102699","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,11,5]],"date-time":"2025-11-05T09:08:29Z","timestamp":1762333709000},"score":1,"resource":{"primary":{"URL":"https:\/\/ietresearch.onlinelibrary.wiley.com\/doi\/10.1049\/2024\/5102699"}},"subtitle":[],"editor":[{"given":"Antonio","family":"Galli","sequence":"additional","affiliation":[],"role":[{"role":"editor","vocabulary":"crossref"}]}],"short-title":[],"issued":{"date-parts":[[2024,1]]},"references-count":46,"journal-issue":{"issue":"1","published-print":{"date-parts":[[2024,1]]}},"alternative-id":["10.1049\/2024\/5102699"],"URL":"https:\/\/doi.org\/10.1049\/2024\/5102699","archive":["Portico"],"relation":{},"ISSN":["1751-8806","1751-8814"],"issn-type":[{"type":"print","value":"1751-8806"},{"type":"electronic","value":"1751-8814"}],"subject":[],"published":{"date-parts":[[2024,1]]},"assertion":[{"value":"2024-01-02","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2024-09-02","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2024-11-13","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}],"article-number":"5102699"}}