arrow
返回

Semantic feature learning for software defect prediction from source code and external knowledge

delete2023-10-01
delete12
PRE
AI
J
Jingyu Liu
J
Jun Ai *
M
Minyan Lu
J
Jie Wang
H
Haoxiang Shi
DOI:10.1016/j.jss.2023.111753delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Software defects not only reduce operational reliability but also significantly increase overall maintenance costs. Consequently, it is necessary to predict software defects at an early stage. Existing software defect prediction studies work with artificially designed metrics or features extracted from source code by machine learning-based approaches to perform classification. However, these methods fail to make full use of the defect-related information other than code, such as comments in codes and commit messages. Therefore, in this paper, additional information extracted from natural language text is combined with the programming language codes to enrich the semantic features. A novel model based on Transformer architecture and multi-channel CNN, PM2-CNN, is proposed for software defect prediction. Pretrained language model and CNN-based classifier are utilized in the model to obtain context-sensitive representations and capture the local correlation of sequences. A large and widely used dataset is utilized to verify the effectiveness of the proposed method. The results show that the proposed method has improvements in generic evaluation metrics compared with the optimal baseline method. Accordingly, external information can have a positive impact on software defect prediction, and our model effectively incorporates such information to improve detection performance. & COPY; 2023 Elsevier Inc. All rights reserved.
Keyword:
Software defect prediction
Semantic features
Transformer

期刊

Journal of Systems and Software 封面图
Journal of Systems and Software
IF:
4.1
论文数:
5.5K
被引数:
8.4K

机构

B
Beihang University
学者数:
5.2W
论文数: 4.1W
被引数: 37
引用论文

引用论文

A NEW ABSOLUTE FREQUENCY REFERENCE GRID IN THE 28 THz RANGE
err1981-12-01
err0
PREAI
errA. Clairon; A. Van Lerberghe; Ch. Bréant; Ch. Salomon; G. Camy; Ch. J. Bordé
err分享
err收藏
err分享
err收藏
err分享
err收藏
The effects of demographic variables on knowledge sharing
err2015-04-13
err0
PREAI
errHenry Boateng; Michael Dzigbordi Dzandu; Franklin Gyamfi Agyemang
err分享
err收藏
Binary survival in the outer solar system
err2019-10-01
err0
errOAAI
errDavid Nesvorný; David Vokrouhlický
err分享
err收藏
学者 查看更多内容