Cross-project defect prediction based on G-LSTM model

被引:6
|
作者
Xing, Ying [1 ]
Qian, Xiaomeng [2 ]
Guan, Yu [3 ]
Yang, Bin [3 ]
Zhang, Yuwei [4 ]
机构
[1] Beijing Univ Posts & Telecommun, Sch Artificial Intelligence, 10 Xitucheng Rd, Beijing 100876, Peoples R China
[2] Beijing Univ Posts & Telecommun, Sch Modern Post, 10 Xitucheng Rd, Beijing 100876, Peoples R China
[3] Du Xiaoman Sci Technol Co Ltd, 10 Xitucheng Rd, Beijing 100085, Peoples R China
[4] Peking Univ, Sch Comp Sci, 5 Summer Palace Rd, Beijing 100871, Peoples R China
基金
中国国家自然科学基金;
关键词
Computational language processing; Cross-project defect prediction; Long-term and short-term memory neural network; Continuous bag-of-word model; Generative adversarial network;
D O I
10.1016/j.patrec.2022.04.039
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Cross-project defect prediction (CPDP) is currently a hot research direction in the field of software reliability. Traditional CPDP methods cannot capture the semantic and contextual information of programs by handcrafted features, which affects the prediction performance. In this paper, we apply technology in the NLP domain to solve it. We first extract token vectors from the abstract syntax tree (AST) of source and target code files, and then convert them into numerical vectors by the word embedding algorithm of continuous bag-of-word model (CBOW) as the input of the proposed deep learning model named Generative Adversarial Long-Short Term Memory Neural Networks (G-LSTM). The model integrates generative adversarial network (GAN) and bidirectional long-short term memory networks (BiLSTM) with attention mechanism to automatically learn semantic and contextual features of programs. Specifically, GAN is used to eliminate the differences in data distribution between source and target projects, and BiLSTM is the feature extraction encoder. We compose five projects of the PROMISE dataset into 20 source-target project pairs and conduct comparison experiments on them. The experimental results demonstrate that our method outperforms some traditional and state-of-the-art CPDP methods in terms of the evaluation metrics of AUC and Acc. (C) 2022 Published by Elsevier B.V.
引用
收藏
页码:50 / 57
页数:8
相关论文
共 50 条
  • [1] Cross-Project Defect Prediction Based on Domain Adaptation and LSTM Optimization
    Javed, Khadija
    Ren, Shengbing
    Asim, Muhammad
    Wani, Mudasir Ahmad
    [J]. ALGORITHMS, 2024, 17 (05)
  • [2] A Three-Stage Defect Prediction Model for Cross-Project Defect Prediction
    Huang, Song
    Wu, Yaning
    Ji, Haijin
    Bai, Chengzu
    [J]. 2017 FOURTH INTERNATIONAL CONFERENCE ON DEPENDABLE SYSTEMS AND THEIR APPLICATIONS (DSA 2017), 2017, : 169 - 169
  • [3] Cross-project smell-based defect prediction
    Bruno Sotto-Mayor
    Meir Kalech
    [J]. Soft Computing, 2021, 25 : 14171 - 14181
  • [4] Cross-project smell-based defect prediction
    Sotto-Mayor, Bruno
    Kalech, Meir
    [J]. SOFT COMPUTING, 2021, 25 (22) : 14171 - 14181
  • [5] HYDRA: Massively Compositional Model for Cross-Project Defect Prediction
    Xia, Xin
    Lo, David
    Pan, Sinno Jialin
    Nagappan, Nachiappan
    Wang, Xinyu
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2016, 42 (10) : 977 - 998
  • [6] Cross-Project Dynamic Defect Prediction Model for Crowdsourced test
    Yao, Yi
    Liu, Yuchan
    Huang, Song
    Chen, Hao
    Liu, Jialuo
    Yang, Fan
    [J]. 2020 IEEE 20TH INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY, AND SECURITY (QRS 2020), 2020, : 223 - 230
  • [7] A Framework for Homogeneous Cross-Project Defect Prediction
    Goel, Lipika
    Sharma, Mayank
    Khatri, Sunil Kumar
    Damodaran, D.
    [J]. INTERNATIONAL JOURNAL OF SOFTWARE INNOVATION, 2021, 9 (01) : 52 - 68
  • [8] DeepCPDP: Deep Learning Based Cross-Project Defect Prediction
    Chen, Deyu
    Chen, Xiang
    Li, Hao
    Xie, Junfeng
    Mu, Yanzhou
    [J]. IEEE ACCESS, 2019, 7 : 184832 - 184848
  • [9] Data Transformation in Cross-project Defect Prediction
    Feng Zhang
    Iman Keivanloo
    Ying Zou
    [J]. Empirical Software Engineering, 2017, 22 : 3186 - 3218
  • [10] An investigation on the feasibility of cross-project defect prediction
    Zhimin He
    Fengdi Shu
    Ye Yang
    Mingshu Li
    Qing Wang
    [J]. Automated Software Engineering, 2012, 19 : 167 - 199