Supercharge Your Innovation With Domain-Expert AI Agents!

Software defect prediction method based on multi-granularity nodes

A software defect prediction and multi-granularity technology, applied in the G06F11/36 field, can solve problems such as poor performance of the defect prediction model, inaccurate prediction effect of the prediction model, etc., to achieve improved effectiveness, high practical application value, and prediction effect The effect of high accuracy

Pending Publication Date: 2022-04-19
诺维艾创(广州)科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, such Handcrafted features usually cannot fully contain the semantic and structural information of the code, which may lead to poor prediction performance of the software defect prediction model. If the selected node granularity is not suitable for the software defect prediction task, the prediction effect of the prediction model may not be good. precise

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 multi-granularity nodes
  • Software defect prediction method based on multi-granularity nodes
  • Software defect prediction method based on multi-granularity nodes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] see figure 1 , figure 2 ,in figure 1 It is a flow chart in the software defect prediction method based on multi-granularity nodes in the present invention; figure 2 It is a schematic flowchart of a software defect prediction method based on multi-granularity nodes in the present invention.

[0052] The embodiment of the present application provides a software defect prediction method based on multi-granularity nodes, which specifically includes the following steps:

[0053] Step 1: Code Analysis.

[0054] Use Python's Javalang toolkit to parse Java files to generate the corresponding abstract syntax tree. Each structural element in the Java code fragment is represented as a node of the abstract syntax tree. By traversing the abstract syntax tree, it is converted into a sequence of nodes, and the Node types are classified.

[0055] Step 2: Vector conversion.

[0056] (1) Use the code files known to be defective in the old version of the software project and the...

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 relates to the field of G06F11 / 36, in particular to a software defect prediction method based on a multi-granularity node, which comprises a code analysis step, a vector conversion step, a feature extraction step and a defect prediction step, and is characterized in that DL-Generated features are extracted from codes by adopting a DBN and a CNN respectively, a model is constructed, software defect prediction is carried out, and a defect prediction result is obtained. The selection of the node granularity is studied and discussed to obtain a proper granularity selection, so that the effectiveness of deep learning feature extraction can be further improved, the effectiveness is compared, and the proper node granularity is selected for software defect prediction. The method provides reference for software defect prediction researchers to select abstract syntax tree granularity, can effectively assist developers in judging and identifying potential risks and software defects in a new version software project in a software development process, and has very high practical application value.

Description

technical field [0001] The invention relates to the field of G06F11 / 36, in particular to a software defect prediction method based on multi-granularity nodes. Background technique [0002] As the scale of modern software continues to increase, the complexity of software increases, so the tasks of debugging and testing become more difficult in the process of software development and maintenance. In recent years, relevant researchers have begun to explore software defect prediction methods to assist and help developers find and predict software defects. Software defect prediction technology is based on machine learning methods, using historical defect data to build models to predict whether new codes are prone to defects. An excellent software defect prediction model can effectively count and predict the number and distribution of defects in the software system, so as to help the development and testing teams understand the software quality status, so as to rationally allocat...

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
IPC IPC(8): G06F11/36G06N3/04G06N3/08
CPCG06F11/368G06F11/3688G06N3/08G06N3/045
Inventor 邱少健林子濠丰鑫
Owner 诺维艾创(广州)科技有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More