JOURNAL ARTICLE

Software Defect Prediction Model based on AST and Deep Learning

Zhengfei YeChenghai YuZhilong Lu

Year: 2025 Journal:   Scalable Computing Practice and Experience Vol: 26 (5)Pages: 2183-2195

Abstract

Software reliability prediction (SDP) theory is crucial for balancing software value and assessing efficiency. Traditional defect prediction relies on static code metrics for machine learning, but these handcrafted features fail to capture the code’s syntactic structure and semantic information. In order to further predict the defects of the software, the Abstract Syntax Tree (AST) of the program was parsed on the basis of the metric data, and extracted as feature vectors, and the data was encoded by dictionary mapping and word embedding as the input of Convolutional Neural Network (CNN). On this basis, the Long Short-Term Memory network (LSTM) and Multi-head attention mechanism were used to further optimize the network, and the particle swarm optimization (PSO) was used to select the hyperparameters of the model, and the defects were predicted by using the model. The results show that the model can learn syntax and semantic features well, and the estimation accuracy is higher and the bias is smaller.

Keywords:
Computer science Artificial intelligence Software Deep learning Machine learning Programming language

Metrics

0
Cited By
0.00
FWCI (Field Weighted Citation Impact)
0
Refs
0.32
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Topics

Software Engineering Research
Physical Sciences →  Computer Science →  Information Systems

Related Documents

JOURNAL ARTICLE

Deep learning based software defect prediction

Lei QiaoXuesong LiQasim UmerPing Guo

Journal:   Neurocomputing Year: 2019 Vol: 385 Pages: 100-110
JOURNAL ARTICLE

Research on Software Defect Prediction Model based on Deep Learning

Liang Qi

Journal:   Highlights in Science Engineering and Technology Year: 2024 Vol: 122 Pages: 23-29
JOURNAL ARTICLE

Deep learning for software defect prediction

Syeda Roohi FatemaM. Pushpalatha

Journal:   AIP conference proceedings Year: 2023 Vol: 2931 Pages: 060023-060023
© 2026 ScienceGate Book Chapters — All rights reserved.