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

Software defect prediction method based on convolutional neural network

A convolutional neural network and software defect prediction technology, applied in the field of software defect prediction based on convolutional neural network, can solve the problem of missing semantic features of manual features, and achieve the effect of improving accuracy

Active Publication Date: 2018-11-16
SOUTH CHINA UNIV OF TECH
View PDF4 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art, and provide a software defect prediction method based on convolutional neural network, which combines the technology of neural network automatic feature generation to solve the problem of traditional manual features in existing software defect prediction methods. The problem of missing semantic features

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 based on convolutional neural network
  • Software defect prediction method based on convolutional neural network
  • Software defect prediction method based on convolutional neural network

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The present invention will be further described in detail below in conjunction with the embodiments and the accompanying drawings, but the embodiments of the present invention are not limited thereto.

[0032] Such as figure 1 , 2 , 3, 4, a software defect prediction method based on a convolutional neural network, comprising the following steps:

[0033] Step 1) Analyze the source code of each file in the software project to obtain the Abstract Syntax Trees (AST) Token vector of each file to form a set of AST Token vectors. The specific implementation is as follows: the present invention selects the nodes in the AST of the source code file as the parsing granularity of the vector. Use an open source Java library called JDT-core to parse the source code of the software file into the AST Token vector. We mainly choose three types of nodes as markers on the AST: 1) declaration nodes (including method declarations, type declarations, etc.), whose values ​​are extracted a...

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 based on a convolutional neural network. The software defect prediction method comprises the following steps that various source codes in asoftware project are parsed to form an AST Token vector set; mapping between integers and Token is established, and AST Token vectors are converted into value vectors; a SMOTE technology is utilized to dispose the problem of unbalanced classification of the data in a data vector set; the convolutional neural network is established based on the data vector set, and feature vectors capable of expressing code semantics are extracted; convolutional neural network learning characteristics and traditional manual static characteristics are merged; the data set having the merging characteristics is input into a support vector machine classifier, and a software defect prediction model is trained. The software defect prediction method can be directly applied to defect prediction tasks of practical software and can capture the semantic characteristics of source codes, the problem of semantic feature analysis missing in traditional methods is solved, and thus the accuracy of the defect predictionmodel is improved.

Description

technical field [0001] The invention relates to the field of software analysis and defect prediction in software engineering, in particular to a software defect prediction method based on a convolutional neural network. Background technique [0002] Potential and unknown defects in software will seriously affect the quality of software, so software analysis and defect prediction techniques play an important role in software quality assurance tasks. If software defects can be found early, it will help the software team understand the quality status of the current project, and then allocate testing resources reasonably. However, it is impractical to manually review all code units in a project. Therefore, more and more software engineering researchers and practitioners have begun to pay close attention to software defect prediction technology based on machine learning, and try to use a variety of machine learning methods to Detect potentially defective modules and files in sof...

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/36G06N3/04
CPCG06F11/3604G06N3/04
Inventor 陆璐邱少健
Owner SOUTH CHINA UNIV OF TECH
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