Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Software defect prediction method and terminal based on bidirectional long short-term memory neural network

A software defect prediction, long-term and short-term memory technology, applied in neural learning methods, biological neural network models, software testing/debugging, etc. Defect prediction results, the effect of optimizing software defect prediction models

Pending Publication Date: 2022-03-15
NANJING UNIV OF AERONAUTICS & ASTRONAUTICS
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Aiming at the deficiencies of the above-mentioned prior art, the purpose of the present invention is to provide a software defect prediction method and terminal based on a bidirectional long-short-term memory neural network, so as to solve the single and insufficient representation of defect code information in the prior art. Problem: The present invention enriches code semantic features by combining code change information and abstract syntax tree information, and at the same time combines traditional measurement features to supplement information that cannot be represented by semantic features, so as to achieve more accurate defect prediction results

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Software defect prediction method and terminal based on bidirectional long short-term memory neural network
  • Software defect prediction method and terminal based on bidirectional long short-term memory neural network
  • Software defect prediction method and terminal based on bidirectional long short-term memory neural network

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] In order to facilitate the understanding of those skilled in the art, the present invention will be further described below in conjunction with the embodiments and accompanying drawings, and the contents mentioned in the embodiments are not intended to limit the present invention.

[0040] refer to figure 1 As shown, a kind of software defect prediction method based on two-way long-short-term memory neural network of the present invention, comprises steps as follows:

[0041] Step 1) Preprocess 10 open source Java projects selected from the PROMISE library (or other numbers in other examples), labeling whether the project file is defective or not, based on the source code parsing abstract syntax tree and the above A version of the code change data is used as an attribute to build a dataset. in,

[0042] 11) Obtain 10 open source Java projects (Ant, Camel, Jedit, Log4j, Lucene, Poi, etc.) from the PROMISE library, process the obtained projects, and filter out files tha...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a software defect prediction method and terminal based on a bidirectional long short-term memory neural network, and the method comprises the steps: enabling an abstract syntax tree of a source code file and a source code to correspond to code change information between different versions through the bidirectional long short-term memory neural network; screening and extracting an abstract syntax tree point node sequence and a code change node sequence, connecting and constructing a combined sequence, inputting the combined sequence into a Word2Vec word embedding model, encoding the combined sequence into a word vector, fusing semantic features and traditional features by utilizing traditional measurement features provided by a PROMISE library and combining a gating fusion strategy to form combined features, and constructing a word vector; and inputting the combined features and the corresponding labels into a classifier to train a defect prediction model. According to the method, richer code semantic features are extracted from a source code abstract syntax tree and code change data, traditional features provided by a PROMISE storage library are combined, a classifier model is better helped to learn the semantic features, and a more accurate defect prediction result is obtained.

Description

technical field [0001] The invention belongs to the technical field of file-level software defect prediction, and in particular relates to a software defect prediction method and terminal based on a bidirectional long-short-term memory neural network. Background technique [0002] With the continuous increase of software size and complexity, software defect prediction technology has received extensive attention in recent years. The results given by the defect prediction model can help developers or testers determine whether a software module is defective in the early stages of the software development life cycle, so that they can better allocate test resources and arrange the test process more efficiently, thereby improving software products. the quality of. It is generally believed that fixing defects after deployment is more expensive than dealing with them during development. Therefore, it is very important to improve the defect prediction ability. The important compon...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36G06F16/35G06N3/04G06N3/08
CPCG06F11/3616G06F16/35G06N3/08G06N3/047G06N3/048G06N3/044
Inventor 陶传奇王涛黄志球
Owner NANJING UNIV OF AERONAUTICS & ASTRONAUTICS
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products