A Software Defect Prediction Method Based on Program Semantic Feature Mining

被引:5
作者
Yao, Wenjun [1 ]
Shafiq, Muhammad [1 ,2 ]
Lin, Xiaoxin [1 ]
Yu, Xiang [3 ]
机构
[1] Guangzhou Univ, Cyberspace Inst Adv Technol, Guangzhou 510000, Peoples R China
[2] Shenyang Normal Univ, Sch Comp Sci, Shenyang 110136, Peoples R China
[3] Taizhou Univ, Sch Elect & Informat Engn, Taizhou 318000, Peoples R China
基金
中国国家自然科学基金;
关键词
software defect prediction; abstract syntax tree; tree based on convolution neural network; semantic extraction; feature mining;
D O I
10.3390/electronics12071546
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
As the size and complexity of software systems grow, knowing how to effectively judge whether there are defects in the programs has attracted extensive attention in research. However, current software defect prediction methods only extract semantic information at the syntactic level and lack features to mine defect manifestations at the semantic level of code, because defective software is incomplete or defective in semantic representation. Defective software exhibits incomplete or flawed semantic behavior. This paper proposes a software defect prediction method based on the program semantics feature mining (PSFM) method. Specifically, the semantic information is first extracted from the code grammatical structure information and code text information. Then, the defect feature is mined through the semantic information. Finally, software defects are predicted by using the mined defect features. The experimental results show that, compared with the existing software defect prediction methods, the method in this paper (PSFM method) obtained a higher F-measure value.
引用
收藏
页数:14
相关论文
共 34 条
  • [1] Path-Sensitive Code Embedding via Contrastive Learning for Software Vulnerability Detection
    Cheng, Xiao
    Zhan, Guanqin
    Wang, Haoyu
    Sui, Yulei
    [J]. PROCEEDINGS OF THE 31ST ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, ISSTA 2022, 2022, : 519 - 531
  • [2] [董玉坤 Dong Yukun], 2022, [计算机工程与应用, Computer Engineering and Application], V58, P84
  • [3] Elbosaty A.T., 2022, P 2022 INT AR C INF
  • [4] Software Defect Prediction via Attention-Based Recurrent Neural Network
    Fan, Guisheng
    Diao, Xuyang
    Yu, Huiqun
    Yang, Kang
    Chen, Liqiong
    [J]. SCIENTIFIC PROGRAMMING, 2019, 2019
  • [5] Revisiting Unsupervised Learning for Defect Prediction
    Fu, Wei
    Menzies, Tim
    [J]. ESEC/FSE 2017: PROCEEDINGS OF THE 2017 11TH JOINT MEETING ON FOUNDATIONS OF SOFTWARE ENGINEERING, 2017, : 72 - 83
  • [6] github, US
  • [7] He Z., 2013, P 2013 ACM IEEE INT
  • [8] On the Naturalness of Software
    Hindle, Abram
    Barr, Earl T.
    Gabel, Mark
    Su, Zhendong
    Devanbu, Premkumar
    [J]. COMMUNICATIONS OF THE ACM, 2016, 59 (05) : 122 - 131
  • [9] 基于重子节点抽象语法树的软件缺陷预测
    黄晓伟
    范贵生
    虞慧群
    杨星光
    [J]. 计算机工程, 2021, 47 (12) : 230 - 235+248
  • [10] Jin Zhi, 2019, Journal of Software, V30, P110, DOI 10.13328/j.cnki.jos.005643