ScholarMate
English简体中文繁體中文
客服热线:400-1616-289
登录注册
期刊论文

Semantic Feature Learning via Dual Sequences for Defect Prediction

Lin, Junhao; Lu, Lu*
IEEE Access2021DOI: 10.1109/ACCESS.2021.3051957
15被引7阅读
引用收藏
分享

摘要

Software defect prediction (SDP) can help developers reasonably allocate limited resources for locating bugs and prioritizing their testing efforts. Existing methods often serialize an Abstract Syntax Tree (AST) obtained from the program source code into a token sequence, which is then inputted into the deep learning model to learn the semantic features. However, there are different ASTs with the same token sequence, and it is impossible to distinguish the tree structure of the ASTs only by a token sequence. To solve this problem, this paper proposes a framework called Semantic Feature Learning via Dual Sequences (SFLDS), which can capture the semantic and structural information in the AST for feature generation. Specifically, based on the AST, we select the representative nodes in the AST and convert the program source code into a simplified AST (S-AST). Our method introduces two sequences to represent the semantic and structural information of the S-AST, one is the result of traversing the S-AST node in pre-order, and another is composed of parent nodes. Then each token in the dual sequences is encoded as a numerical vector via mapping and word embedding. Finally, we use a bi-directional long short-term memory (BiLSTM) based neural network to automatically generate semantic features from the dual sequences for SDP. In addition, to leverage the statistical characteristics contained in the handcrafted metrics, we also propose a framework called Defect Prediction via SFLDS (DP-SFLDS) which combines the semantic features generated from SFLDS with handcrafted metrics to perform SDP. In our empirical studies, eight open-source Java projects from the PROMISE repository are chosen as our empirical subjects. Experimental results show that our proposed approach can perform better than several state-of-the-art baseline SDP methods.

学科与关键词

关键词
SemanticsMeasurementLogic gatesSoftwareFeature extractionSoftware metricsVegetationSoftware defect predictionabstract syntax treedeep learningbi-directional long short-term memory network
相关
加载中…
  • Defect Prediction via LSTM Based on Sequence and Tree Structure
    Zhou, Xuan*; Lu, Lu20th IEEE International Conference on Software Quality, Reliability, and Security (QRS), Macau, PEOPLES R CHINA, 2020-12-11 To 2020-12-14.被引 6
  • Software defect prediction via LSTM
    Deng, Jiehan; Lu, Lu*; Qiu, ShaojianIET Software, 2020, 14(4): 443-450.被引 23
  • Fine-Grained Software Defect Prediction Based on the Method-Call Sequence
    Yang, Fengyu*; Huang, Yaxuan; Xu, Haoming; Xiao, Peng; Zheng, WeiComputational Intelligence and Neuroscience, 2022, 2022: 4311548.被引 1
查看全部 →

发表信息

论文状态
公开发表
期刊
IEEE Access
发表日期
2021
卷期
第 9 卷
页码
13112-13124
DOI
10.1109/ACCESS.2021.3051957
语言
ENGLISH
期刊收录
NSL
期刊等级
3区
成果收录
SCIE
资助标注
National Nature Science Foundation of China [61370103]; Meizhou Produce and Research Fund [2019A0101019]; Guangzhou Produce and Research Fund [201902020004]

作者

  • L

    Lin, Junhao (第一作者)

  • L

    Lu, Lu (通讯)

登录解锁更多功能

  • 收藏这篇,随时在“我的 · 收藏”找回
  • 认领你的成果,生成推广素材
  • 关注作者获取最新成果
  • 加入项目组、协同写作
注册 / 登录

产品服务

  • 科研之友
  • 创新城
  • 科创云

服务支持

  • 帮助中心
  • 隐私政策
  • 服务条款

联系方式

在线客服:【】
客服热线:400-1616-289
电子邮箱:support@scholarmate.com

关注或下载科研之友

微信二维码
微信公众号
客户端下载二维码
下载客户端
科研成果科研人员科研机构科研动态爱瑞思软件

©2026 深圳市科研之友网络服务有限公司

公安备案图标粤公网安备 44030502000213
粤ICP备 16046710 号粤B2-20110417