Cross Project Defect Prediction via Balanced Distribution Adaptation Based Transfer Learning

被引:0
|
作者
Zhou Xu
Shuai Pang
Tao Zhang
Xia-Pu Luo
Jin Liu
Yu-Tian Tang
Xiao Yu
Lei Xue
机构
[1] Harbin Engineering University,College of Computer Science and Technology
[2] Wuhan University,School of Computer Science
[3] The Hong Kong Polytechnic University,Department of Computing
[4] Chinese Academy of Sciences,Key Laboratory of Network Assessment Technology, Institute of Information Engineering
[5] Guilin University of Electronic Technology,Guangxi Key Laboratory of Trusted Software
[6] City University of Hong Kong,Department of Computer Science
关键词
cross-project defect prediction; transfer learning; balancing distribution; effort-aware indicator;
D O I
暂无
中图分类号
学科分类号
摘要
Defect prediction assists the rational allocation of testing resources by detecting the potentially defective software modules before releasing products. When a project has no historical labeled defect data, cross project defect prediction (CPDP) is an alternative technique for this scenario. CPDP utilizes labeled defect data of an external project to construct a classification model to predict the module labels of the current project. Transfer learning based CPDP methods are the current mainstream. In general, such methods aim to minimize the distribution differences between the data of the two projects. However, previous methods mainly focus on the marginal distribution difference but ignore the conditional distribution difference, which will lead to unsatisfactory performance. In this work, we use a novel balanced distribution adaptation (BDA) based transfer learning method to narrow this gap. BDA simultaneously considers the two kinds of distribution differences and adaptively assigns different weights to them. To evaluate the effectiveness of BDA for CPDP performance, we conduct experiments on 18 projects from four datasets using six indicators (i.e., F-measure, g-means, Balance, AUC, EARecall, and EAF-measure). Compared with 12 baseline methods, BDA achieves average improvements of 23.8%, 12.5%, 11.5%, 4.7%, 34.2%, and 33.7% in terms of the six indicators respectively over four datasets.
引用
收藏
页码:1039 / 1062
页数:23
相关论文
共 50 条
  • [21] IAPCP: An Effective Cross-Project Defect Prediction Model via Intra-Domain Alignment and Programming-Based Distribution Adaptation
    Zhang, Nana
    Zhu, Kun
    Zhu, Dandan
    IET SOFTWARE, 2024, 2024
  • [22] DeepCPDP: Deep Learning Based Cross-Project Defect Prediction
    Chen, Deyu
    Chen, Xiang
    Li, Hao
    Xie, Junfeng
    Mu, Yanzhou
    IEEE ACCESS, 2019, 7 : 184832 - 184848
  • [23] Balanced Adversarial Tight Matching for Cross-Project Defect Prediction
    Jiang, Siyu
    Zhang, Jiapeng
    Guo, Feng
    Ouyang, Teng
    Li, Jing
    IET SOFTWARE, 2024, 2024
  • [24] 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
  • [25] Adversarial domain adaptation for cross-project defect prediction
    Song, Hengjie
    Wu, Guobin
    Ma, Le
    Pan, Yufei
    Huang, Qingan
    Jiang, Siyu
    EMPIRICAL SOFTWARE ENGINEERING, 2023, 28 (05)
  • [26] Heterogeneous Cross-Project Defect Prediction Using Encoder Networks and Transfer Learning
    Haque, Radowanul
    Ali, Aftab
    McClean, Sally
    Cleland, Ian
    Noppen, Joost
    IEEE ACCESS, 2024, 12 : 409 - 419
  • [27] Cross-Project Transfer Learning on Lightweight Code Semantic Graphs for Defect Prediction
    Fang, Dingbang
    Liu, Shaoying
    Li, Yang
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2023, 33 (07) : 1095 - 1117
  • [28] Correlation feature and instance weights transfer learning for cross project software defect prediction
    Zou, Quanyi
    Lu, Lu
    Qiu, Shaojian
    Gu, Xiaowei
    Cai, Ziyi
    IET SOFTWARE, 2021, 15 (01) : 55 - 74
  • [29] A two-phase transfer learning model for cross-project defect prediction
    Liu, Chao
    Yang, Dan
    Xia, Xin
    Yan, Meng
    Zhang, Xiaohong
    INFORMATION AND SOFTWARE TECHNOLOGY, 2019, 107 : 125 - 136
  • [30] A Cross-project Defect Prediction Model Using Feature Transfer and Ensemble Learning
    Zeng, Fuping
    Lin, Wanting
    Xing, Ying
    Sun, Lu
    Yang, Bin
    TEHNICKI VJESNIK-TECHNICAL GAZETTE, 2022, 29 (04): : 1089 - 1099