@inproceedings{oai:ipsj.ixsq.nii.ac.jp:00212701, author = {Dingbang, Fang and Shaoying, Liu and Ai, Liu and Dingbang, Fang and Shaoying, Liu and Ai, Liu}, book = {ソフトウェアエンジニアリングシンポジウム2021論文集}, month = {Aug}, note = {Software reliability plays an important role in the software lifecycle. Traditional defect prediction adopts static metrics as manual features to predict defects. Although static metrics can measure the complexity of software, they lack semantic and structural information about the code. This paper proposes a novel neural network: GB-ODCN, capable of capturing critical features from the source code to predict defects. GL-ODCN consists of a gated bi-directional long short-term memory network (Bi-LSTM) and a one-dimensional convolutional neural network (ODCN). Bi-LSTM constructs dependency of semantic features from the code. Besides, ODCN captures high-level semantic features for judging whether there are defects in the code. Moreover, attention mechanisms based on both networks enhance the importance of features by assigning weights. Experimental results show that GB-ODCN outperforms current state-of-the-art algorithms on several open-source repositories., Software reliability plays an important role in the software lifecycle. Traditional defect prediction adopts static metrics as manual features to predict defects. Although static metrics can measure the complexity of software, they lack semantic and structural information about the code. This paper proposes a novel neural network: GB-ODCN, capable of capturing critical features from the source code to predict defects. GL-ODCN consists of a gated bi-directional long short-term memory network (Bi-LSTM) and a one-dimensional convolutional neural network (ODCN). Bi-LSTM constructs dependency of semantic features from the code. Besides, ODCN captures high-level semantic features for judging whether there are defects in the code. Moreover, attention mechanisms based on both networks enhance the importance of features by assigning weights. Experimental results show that GB-ODCN outperforms current state-of-the-art algorithms on several open-source repositories.}, pages = {175--180}, publisher = {情報処理学会}, title = {Combining Attention-based Gated Bidirectional LSTM and ODCN for Software Defect Prediction}, volume = {2021}, year = {2021} }