The software defect prediction (SDP) methodology has the potential to increase software reliability by foreseeing any ominous problems in its source code. Nevertheless, as recent research has demonstrated, creating defective prediction models is a challenging issue. Several research methods for predicting source code defects have been proposed over time. However, the majority of previous research has concentrated on traditional feature extraction and modelling. Traditional methods frequently fail to locate the contextual information needed to build reliable prediction deep learning models in source code files. On the other hand, defect prediction semantic feature techniques have only lately changed and advanced. Using such techniques, it would be possible to forecast suspicious problems by automatically extracting contextual information from source code files. We suggest employing deep learning, a potent representation-learning approach, to fill the gap between defect prediction data and semantics. In order to automatically extract semantic properties from word vectors generated by program abstract syntax trees (AST) for file-level defect prediction models and source code updates for change-level defect prediction models, we use a Long-Short Term Memory (LSTM) model. Two tasks—one for defect prediction at the file level (within-project defect prediction and cross-project defect prediction) and one for defect prediction at the change level (within-project defect prediction and cross-project defect prediction)—were used to assess our methodology. Our findings demonstrate that LSTM-AST-based semantic features can greatly enhance fault identification tasks. The findings demonstrate that the deep learning model LSTM-AST is a practical choice for medium to low sparsity ratio datasets and that, in comparison to other machine models, it performs typically better in high and extremely high sparsity ratio datasets.
Song WangTaiyue LiuJaechang NamLin Tan
Ahmed AbduZhengjun ZhaiHakim A. AbdoRedhwan AlgabriMohammed A. Al‐masniMannan Saeed MuhammadYeong Hyeon Gu
Guisheng FanXuyang DiaoHuiqun YuKang YangLiqiong Chen
Achmad Iqbal Al FaizinEdy SuhartoAris Puji WidodoHendinur FaizalMuhammad Naufal PratamaRaihan MufadhalRafli Azra Virendra Azhari