Litcius/Paper detail

Software Defect Prediction Based on Gated Hierarchical LSTMs

Hao Wang, Weiyuan Zhuang, Xiaofang Zhang

2021IEEE Transactions on Reliability137 citationsDOI

Abstract

Software defect prediction, aimed at assisting software practitioners in allocating test resources more efficiently, predicts the potential defective modules in software products. With the development of defect prediction technology, the inability of traditional software features to capture semantic information is exposed, hence related researchers have turned to semantic features to build defect prediction models. However, sometimes traditional features such as lines of code (LOC) also play an important role in defect prediction. Most of the existing researches only focus on using a single type of feature as the input of the model. In this article, a defect prediction method based on gated hierarchical long short-term memory networks (GH-LSTMs) is proposed, which uses hierarchical LSTM networks to extract both semantic features from word embeddings of abstract syntax trees (ASTs) of source code files, and traditional features provided by the PROMISE repository. More importantly, we adopt a gated fusion strategy to combine the outputs of the hierarchical networks properly. Experimental results show that GH-LSTMs outperforms existing methods under both noneffort-aware and effort-aware scenarios.

Topics & Concepts

Computer scienceSoftwareFeature (linguistics)SyntaxArtificial intelligenceFocus (optics)Source codeCode (set theory)Software bugMachine learningData miningSemantics (computer science)Natural language processingProgramming languagePhilosophyPhysicsLinguisticsSet (abstract data type)OpticsSoftware Engineering ResearchSoftware Reliability and Analysis ResearchSoftware System Performance and Reliability
Software Defect Prediction Based on Gated Hierarchical LSTMs | Litcius