Cross-project defect prediction based on G-LSTM model

被引:10
|
作者
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 条
  • [21] Cross-project software defect prediction based on the reduction and hybridization of software metrics
    Abdu, Ahmed
    Zhai, Zhengjun
    Abdo, Hakim A.
    Lee, Sungon
    Al-masni, Mohammed A.
    Gu, Yeong Hyeon
    Algabri, Redhwan
    ALEXANDRIA ENGINEERING JOURNAL, 2025, 112 : 161 - 176
  • [22] Cross-project software defect prediction based on domain adaptation learning and optimization
    Jin, Cong
    EXPERT SYSTEMS WITH APPLICATIONS, 2021, 171
  • [23] Correlation Metric Selection based Correlation Alignment for Cross-project Defect Prediction
    Niu, Jingwen
    Li, Zhiqiang
    Qi, Chao
    20TH INT CONF ON UBIQUITOUS COMP AND COMMUNICAT (IUCC) / 20TH INT CONF ON COMP AND INFORMATION TECHNOLOGY (CIT) / 4TH INT CONF ON DATA SCIENCE AND COMPUTATIONAL INTELLIGENCE (DSCI) / 11TH INT CONF ON SMART COMPUTING, NETWORKING, AND SERV (SMARTCNS), 2021, : 490 - 495
  • [24] Graph-Based Feature Learning for Cross-Project Software Defect Prediction
    Abdu, Ahmed
    Zhai, Zhengjun
    Abdo, Hakim A.
    Algabri, Redhwan
    Lee, Sungon
    CMC-COMPUTERS MATERIALS & CONTINUA, 2023, 77 (01): : 161 - 180
  • [25] A Cluster Based Feature Selection Method for Cross-Project Software Defect Prediction
    Chao Ni
    Wang-Shu Liu
    Xiang Chen
    Qing Gu
    Dao-Xu Chen
    Qi-Guo Huang
    Journal of Computer Science and Technology, 2017, 32 : 1090 - 1107
  • [26] Dissimilarity Space Based Multi-Source Cross-Project Defect Prediction
    Ren, Shengbing
    Zhang, Wanying
    Munir, Hafiz Shahbaz
    Xia, Lei
    ALGORITHMS, 2019, 12 (01)
  • [27] Improving Relevancy Filter Methods for Cross-Project Defect Prediction
    Kawata, Kazuya
    Amasaki, Sousuke
    Yokogawa, Tomoyuki
    APPLIED COMPUTING & INFORMATION TECHNOLOGY, 2016, 619 : 1 - 12
  • [28] Improving transfer learning for software cross-project defect prediction
    Omondiagbe, Osayande P.
    Licorish, Sherlock A.
    Macdonell, Stephen G.
    APPLIED INTELLIGENCE, 2024, 54 (07) : 5593 - 5616
  • [29] A Cluster Based Feature Selection Method for Cross-Project Software Defect Prediction
    Ni, Chao
    Liu, Wang-Shu
    Chen, Xiang
    Gu, Qing
    Chen, Dao-Xu
    Huang, Qi-Guo
    JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY, 2017, 32 (06) : 1090 - 1107
  • [30] Transfer Convolutional Neural Network for Cross-Project Defect Prediction
    Qiu, Shaojian
    Xu, Hao
    Deng, Jiehan
    Jiang, Siyu
    Lu, Lu
    APPLIED SCIENCES-BASEL, 2019, 9 (13):