Supercharge Your Innovation With Domain-Expert AI Agents!

Cross-software defect prediction method based on adversarial discrimination

A software defect prediction and defect technology, applied in the field of software engineering, can solve problems such as impact, failure to consider the difference in feature distribution between source items and target items, defect prediction performance, etc., to achieve simple use, solve feature distribution differences, and improve development quality Effect

Active Publication Date: 2020-06-16
深圳市祥瑞莱科技有限公司
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, there are some problems with this type of method, which does not consider the feature distribution difference between the source item and the target item, which also affects the defect prediction performance.

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
  • Cross-software defect prediction method based on adversarial discrimination
  • Cross-software defect prediction method based on adversarial discrimination
  • Cross-software defect prediction method based on adversarial discrimination

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] 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.

[0028] Such as figure 1 As shown, a cross-software defect prediction method based on adversarial discrimination, the specific steps are as follows:

[0029] 1) Select a mature project (with rich label information) from the open source project as the source project, and the project that needs defect prediction as the target project. Nowadays, there are many open source warehouses such as PROMISE, NASA, AEEEM, etc. that provide rich project label information of various mainstream programming languages, and you can find the corresponding source code on GitHub according to the information provided by the warehouse.

[0030] 2) Convert the source codes in the source software project and the target software project selected in step 1) into an Abstract Syntax Tree (AST), and e...

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 cross-software defect prediction method based on adversarial discrimination. The method comprises the following steps: selecting a source project and a target project; converting source codes in the source project and the target project into an abstract syntax tree, and extracting a node vector set; encoding the nodes, and converting the node vector set into an integer vector set; processing the integer vector set in the source project to train a source project feature extractor and a target project feature extractor at the same time, and extracting transferable codesemantic features in the source project and the target project; inputting the code semantic features capable of being migrated by the source project into a logistic regression classifier, training a cross-software defect prediction model, applying the defect prediction model to the target project, and performing defect prediction classification. According to the method, the adversarial discrimination method is used as one of powerful domain adaptive technologies, and the problem of feature distribution difference can be solved by minimizing the distance between the source project mapping distribution and the target project mapping distribution.

Description

technical field [0001] The invention relates to the field of software engineering, in particular to a cross-software defect prediction method based on adversarial discrimination. Background technique [0002] In the software development life cycle, if internal potential defects are discovered later, the later costs for repairing these defects will be greater. However, if each software module is fully and comprehensively tested, it is bound to inject too many human resources. So the project manager wants to identify possible defects in the software module in advance and focus on testing the module. Therefore, software defect prediction technology has attracted more and more attention from software engineering researchers and testers, and some software defect methods based on machine learning and deep learning have been proposed to detect defective files that may exist in software. [0003] The software defect prediction method based on machine learning uses features manuall...

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/36
CPCG06F11/3608
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