Software Defect Prediction Based on Deep Representation Learning of Source Code From Contextual Syntax and Semantic Graph

计算机科学 源代码 自然语言处理 语法 人工智能 图形 抽象语法 抽象语法树 程序设计语言 控制流程图 深度学习 语义学(计算机科学) 理论计算机科学
作者
Ahmed Abdu,Zhengjun Zhai,Hakim A. Abdo,Redhwan Algabri
出处
期刊:IEEE Transactions on Reliability [Institute of Electrical and Electronics Engineers]
卷期号:73 (2): 820-834 被引量:27
标识
DOI:10.1109/tr.2024.3354965
摘要

Software defect prediction approaches play an essential role in the software development life cycle to help developers predict defects early, thus, preventing wasted time and effort. Defect prediction techniques based on semantic features have recently gained success over approaches based on traditional features. Existing semantic features-based defect prediction approaches use a single source code representation. Most studies focus on contextual syntax represented by abstract syntax trees, and some studies use a control flow graph to represent code graphs. However, a single representation is still limited for predicting defects that call multiple functions and have a high probability of false positives. To close the gap between source code representations on software defect prediction, we propose a defect prediction model based on multiple source code representations. The proposed model is a deep hierarchical convolutional neural network (DH-CNN). The syntax features extracted from abstract syntax trees using Word2vec are fed into syntax-level DH-CNN, and the semantic-graph features extracted from the control flow graph and data dependence graph using Node2vec are fed into semantic-level DH-CNN. In addition, the proposed model includes a gated merging mechanism that combines DH-CNN outputs to estimate the combination ratio of both types of features. Experimental results indicate that DH-CNN outperforms existing methods under cross-project and within-project scenarios.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
General完成签到 ,获得积分10
1秒前
能干戎完成签到,获得积分10
2秒前
Present完成签到,获得积分10
4秒前
11完成签到,获得积分10
4秒前
勤奋的秋烟完成签到,获得积分10
5秒前
李洪星完成签到 ,获得积分10
5秒前
10秒前
www完成签到 ,获得积分10
10秒前
qin完成签到,获得积分10
14秒前
neversay4ever发布了新的文献求助10
15秒前
1111发布了新的文献求助10
16秒前
dde应助去看海吧采纳,获得10
16秒前
不朽丶哀默完成签到,获得积分10
17秒前
猪哥完成签到 ,获得积分10
18秒前
黑猫小苍完成签到,获得积分0
18秒前
Akim应助宇宙超人007008采纳,获得10
19秒前
幽默豆芽完成签到 ,获得积分10
20秒前
Ashao完成签到,获得积分10
21秒前
22秒前
23秒前
liu完成签到,获得积分10
24秒前
24秒前
算命的完成签到,获得积分10
24秒前
25秒前
cc完成签到,获得积分10
26秒前
蝌蚪完成签到,获得积分10
26秒前
雨过天晴发布了新的文献求助10
27秒前
淡淡依霜完成签到 ,获得积分10
27秒前
小武完成签到,获得积分10
28秒前
29秒前
开心的BILL发布了新的文献求助10
29秒前
白火完成签到,获得积分10
29秒前
30秒前
对方正在输入完成签到 ,获得积分10
31秒前
neversay4ever完成签到,获得积分10
33秒前
氘代乙腈是不贵的呀完成签到,获得积分10
34秒前
35秒前
穿肠酒发布了新的文献求助10
35秒前
小超完成签到,获得积分10
35秒前
六六发布了新的文献求助10
36秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Developing Genetic Editing Tools for Lysobacter 2000
卤化钙钛矿人工突触的研究 2000
Моделирование процессов самоорганизации в кристаллообразующих системах 1000
History of U.S. Space Surveillance and Satellite Cataloging 1000
Signals, Systems, and Signal Processing 610
Fundamentals of Pharmaceutical and Biologics Regulations: A Global Perspective, Second Edition 600
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6519034
求助须知:如何正确求助?哪些是违规求助? 8311677
关于积分的说明 17770184
捐赠科研通 5621020
什么是DOI,文献DOI怎么找? 2926629
邀请新用户注册赠送积分活动 1903438
关于科研通互助平台的介绍 1764139