arrow
Return

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
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

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.
Keywords:
Software defect prediction
Semantic features
Transformer

Journal

Journal of Systems and Software cover
Journal of Systems and Software
IF:
4.1
Papers:
5.5K
Citations:
8.4K

Organization

B
Beihang University
Scholars:
5.2W
Papers: 4.1W
Citations: 37
Cited Papers

Cited Papers

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é
errShare
errSave
errShare
errSave
Product metrics for object-oriented systems
err2003-06-01
err55
PREAI
errPurao, S; Vaishnavi, V
errShare
errSave
The effects of demographic variables on knowledge sharing
err2015-04-13
err0
PREAI
errHenry Boateng; Michael Dzigbordi Dzandu; Franklin Gyamfi Agyemang
errShare
errSave
Binary survival in the outer solar system
err2019-10-01
err0
errOAAI
errDavid Nesvorný; David Vokrouhlický
errShare
errSave
researcher View more