2017 · 451 citations · 44 references
ComputingComputer EngineeringComputer ScienceFeature EngineeringMachine LearningSoftware EngineeringAbstract Syntax TreesDeep LearningDefect DetectionFeature ConstructionRepresentation LearningSoftware ModelingConvolutional Neural Network DetectionConvolutional Neural NetworksDefect PredictionHand-crafted FeaturesLearned Feature RepresentationsSoftware Fault PredictionSoftware ReliabilityToken Mapping
Software defect prediction improves reliability by helping developers locate bugs, but traditional methods rely on hand‑crafted features that often miss semantic and structural program information, limiting accuracy. The paper proposes DP‑CNN, a deep‑learning framework that generates effective features for defect prediction. DP‑CNN extracts token vectors from ASTs, encodes them with word embeddings, feeds them into a CNN to learn semantic and structural features, then combines these with hand‑crafted features and evaluates on seven open‑source projects using F‑measure. DP‑CNN achieves an average 12 % improvement over state‑of‑the‑art defect‑prediction methods.
To improve software reliability, software defect prediction is utilized to assist developers in finding potential bugs and allocating their testing efforts. Traditional defect prediction studies mainly focus on designing hand-crafted features, which are input into machine learning classifiers to identify defective code. However, these hand-crafted features often fail to capture the semantic and structural information of programs. Such information is important in modeling program functionality and can lead to more accurate defect prediction. In this paper, we propose a framework called Defect Prediction via Convolutional Neural Network (DP-CNN), which leverages deep learning for effective feature generation. Specifically, based on the programs' Abstract Syntax Trees (ASTs), we first extract token vectors, which are then encoded as numerical vectors via mapping and word embedding. We feed the numerical vectors into Convolutional Neural Network to automatically learn semantic and structural features of programs. After that, we combine the learned features with traditional hand-crafted features, for accurate software defect prediction. We evaluate our method on seven open source projects in terms of F-measure in defect prediction. The experimental results show that in average, DP-CNN improves the state-of-the-art method by 12%.
44
Adam: A Method for Stochastic Optimization
Diederik P. Kingma, Jimmy Ba · UvA-DARE (University of Amsterdam) · 2014 · 84.8K citations · Full text
Gradient-based learning applied to document recognition
Yann LeCun, Léon Bottou, Yoshua Bengio et al. · Proceedings of the IEEE · 1998 · 58.2K citations · Full text
Introduction to information retrieval
Choice Reviews Online · 2009 · 12.6K citations
Thomas J. McCabe · IEEE Transactions on Software Engineering · 1976 · 5.8K citations