A Cross-Project Defect Prediction Approach Based on Code Semantics and Cross-Version Structural Information

被引:0
作者
Zou, Yifan [1 ]
Wang, Huiqiang [1 ]
Lv, Hongwu [1 ]
Zhao, Shuai [1 ]
Tian, Haoye [2 ]
机构
[1] Harbin Engn Univ, Coll Comp Sci & Technol, Harbin 150000, Peoples R China
[2] Univ Melbourne, Grattan St, Parkville, Vic 3052, Australia
基金
中国国家自然科学基金;
关键词
Cross-project defect prediction; deep learning; abstract syntax tree; class dependency network; FRAMEWORK;
D O I
10.1142/S0218194024500165
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Context: Cross-project defect prediction (CPDP), due to the potential of adaption by industry in realistic scenarios, had gained significant attention from the research community. Currently, existing CPDP studies use static statistical features designed by experts, which might not capture the semantic and structural aspects of software, resulting in low accuracy in defect prediction. Meanwhile, they tend to overlook the valuable iterative information brought about by version updates in mature software projects.Objective: This paper introduces DETECTOR, a novel CPDP approach based on coDE semanTic and cross-vErsion struCTural infORmation to leverage cross-versions features of the software and improve the performance of CPDP.Methods: DETECTOR parses source code to exploit Abstract Syntax Trees (ASTs) and cross-version software network (Cross-SN) that consists of internal class dependency network and cross-version class dependency edges. It utilizes Attention-based Bi-LSTM and simplified graph convolutional neural networks to automatically extract software features from ASTs and Cross-SN. The extracted features are fused using gate(& sdot;) to generate more effective cross-version features. Finally the source project is selected to carry out the data used to train the classifier to predict the defects.Results: Empirical studies on seven open-source Java projects, the experiment results show that: (1) DETECTOR outperforms the state-of-the-art models in CPDP; (2) our proposed cross-version dependent edges positively contribute to DETECTOR performance; (3) gate(& sdot;) outperforms existing strategies in fusion features; (4) more multi-versions information enhance DETECTOR's performance.Conclusion: DETECTOR can predict more defects in CPDP and improve the accuracy and effectiveness of prediction.
引用
收藏
页码:1135 / 1171
页数:37
相关论文
共 50 条
  • [21] Adversarial domain adaptation for cross-project defect prediction
    Hengjie Song
    Guobin Wu
    Le Ma
    Yufei Pan
    Qingan Huang
    Siyu Jiang
    Empirical Software Engineering, 2023, 28
  • [22] A Survey on Transfer Learning for Cross-Project Defect Prediction
    Sotto-Mayor, Bruno
    Kalech, Meir
    IEEE ACCESS, 2024, 12 : 93398 - 93425
  • [23] Multi-Objective Cross-Project Defect Prediction
    Canfora, Gerardo
    De Lucia, Andrea
    Di Penta, Massimiliano
    Oliveto, Rocco
    Panichella, Annibale
    Panichella, Sebastiano
    2013 IEEE SIXTH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION (ICST 2013), 2013, : 252 - 261
  • [24] CFPS: Collaborative filtering based source projects selection for cross-project defect prediction
    Sun, Zhongbin
    Li, Junqi
    Sun, Heli
    He, Liang
    APPLIED SOFT COMPUTING, 2021, 99
  • [25] A transfer cost-sensitive boosting approach for cross-project defect prediction
    Ryu, Duksan
    Jang, Jong-In
    Baik, Jongmoon
    SOFTWARE QUALITY JOURNAL, 2017, 25 (01) : 235 - 272
  • [26] An Abstract Syntax Tree Encoding Method for Cross-Project Defect Prediction
    Cai, Ziyi
    Lu, Lu
    Qiu, Shaojian
    IEEE ACCESS, 2019, 7 : 170844 - 170853
  • [27] A transfer cost-sensitive boosting approach for cross-project defect prediction
    Duksan Ryu
    Jong-In Jang
    Jongmoon Baik
    Software Quality Journal, 2017, 25 : 235 - 272
  • [28] An Adversarial Discriminative Convolutional Neural Network for Cross-Project Defect Prediction
    Sheng, Lei
    Lu, Lu
    Lin, Junhao
    IEEE ACCESS, 2020, 8 : 55241 - 55253
  • [29] Adversarial Learning for Cross-Project Semi-Supervised Defect Prediction
    Sun, Ying
    Jing, Xiao-Yuan
    Wu, Fei
    Li, Juanjuan
    Xing, Danlei
    Chen, Haowen
    Sun, Yanfei
    IEEE ACCESS, 2020, 8 : 32674 - 32687
  • [30] Cross-Version Software Defect Prediction Considering Concept Drift and Chronological Splitting
    Kabir, Md Alamgir
    Rehman, Atiq Ur
    Islam, M. M. Manjurul
    Ali, Nazakat
    Baptista, Marcia L.
    SYMMETRY-BASEL, 2023, 15 (10):