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

A 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: 2021-08-10
SOUTH CHINA UNIV OF TECH
View PDF4 Cites 0 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
  • A Software Defect Prediction Method Based on Convolutional Neural Network
  • A Software Defect Prediction Method Based on Convolutional Neural Network
  • A 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

A method for predicting software defects based on a convolutional neural network disclosed by the present invention comprises the following steps: analyzing the source codes of each file in a software project to form a set of AST Token vectors; establishing a mapping between integers and Tokens, and converting the AST Token vectors to Convert it into a numerical vector; use SMOTE technology to deal with the problem of unbalanced classification of the numerical vector set data; build a convolutional neural network on the basis of the numerical vector set, and extract the feature vector that can express the semantics of the code; use the convolutional neural network to learn The feature is merged with the traditional manual static feature; the data set with the merged feature is input into the support vector machine classifier, and the software defect prediction model is trained. The invention can be directly applied to the defect prediction task of actual software, can capture the semantic features of the source code, solve the problem of lack of semantic feature analysis in the traditional method, and further improve the accuracy of the defect prediction model.

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 Patents(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