摘要
Software quality plays an important role in the software lifecycle. Traditional software defect prediction approaches mainly focused on using hand-crafted features to detect defects. However, like human languages, programming languages contain rich semantic and structural information, and the cause of defective code is closely related to its context. Failing to catch this significant information, the performance of traditional approaches is far from satisfactory. In this study, the authors leveraged a long short-term memory (LSTM) network to automatically learn the semantic and contextual features from the source code. Specifically, they first extract the program's Abstract Syntax Trees (ASTs), which is made up of AST nodes, and then evaluate what and how much information they can preserve for several node types. They traverse the AST of each file and fed them into the LSTM network to automatically the semantic and contextual features of the program, which is then used to determine whether the file is defective. Experimental results on several opensource projects showed that the proposed LSTM method is superior to the state-of-the-art methods.
学科与关键词
- Defect Prediction via LSTM Based on Sequence and Tree StructureZhou, 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
- Semantic Feature Learning via Dual Sequences for Defect PredictionLin, Junhao; Lu, Lu*IEEE Access, 2021, 9: 13112-13124.被引 15
- Software Defect Prediction via GIN with Hybrid Graphical FeaturesWang, Xuanye; Lu, Lu*; Wang, Boye; Shang, Yudong; Yang, Hao22nd IEEE International Conference on Software Quality, Reliability and Security (QRS), Guangzhou, PEOPLES R CHINA, 2022-12-05 To 2022-12-09.
