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

Non-supervision defect prediction method based on probabilities

A prediction method and unsupervised technology, applied in error detection/correction, software testing/debugging, instrumentation, etc., can solve problems such as information loss and threshold sensitivity, achieve the effects of reducing sensitivity, improving performance, and avoiding information loss

Active Publication Date: 2016-10-12
重庆优霓空科技有限公司
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the clustering process of this method compares the software metric element value with its threshold value, the judgment result is sensitive to the threshold value, and there is a problem of information loss

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
  • Non-supervision defect prediction method based on probabilities
  • Non-supervision defect prediction method based on probabilities
  • Non-supervision defect prediction method based on probabilities

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0066] S1: Obtain the metric element threshold;

[0067] S1a: Obtain the source code of the target software, and obtain the metric value of the target software source code; the values ​​of all metric elements of the target software source code form a set X:

[0068] Specifically as table 1, in table 1, I=7, J=7, namely target software comprises seven files, obtains the value of seven metric elements of the source code in these seven files;

[0069] Table 1

[0070] x i,j

j=1

j=2

j=3

j=4

j=5

j=6

j=7

i=1

3

1

3

0

5

1

9

i=2

1

1

2

0

7

3

8

i=3

2

3

2

5

5

2

1

i=4

0

0

8

1

0

1

9

i=5

1

0

2

5

6

10

8

i=6

1

4

1

1

7

1

1

i=7

1

0

1

0

0

1

7

[0071] S1b: Use the median of the metric values ​​of each metric on all files as the threshold of the metric, see Table 2:

[0072] ...

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 a non-supervision defect prediction method based on probabilities. The non-supervision defect prediction method based on probabilities comprises the following steps that firstly, metric unit threshold values are acquired, wherein a median of metric unit values of source codes of each metric serves as a threshold value; secondly, difference values of the metric unit values and the threshold values are subjected to randomization; thirdly, clustering is carried out, wherein the sum of the probabilities of files under all metric units is calculated, and the files with the same values are classified to the same kind; fourthly, if the probability sum corresponding to the some kind of files is larger than or equal to L, the files are marked to be defective, if not, the files are marked to be not defective, and therefore all kinds of files are marked to be a defective kind and a non-defective kind. The possibility of defects of the kinds is represented through the probabilities, the different probabilities are obtained for the different metric units, and the information of the possibilites of defects of the kinds is remained. In the process of marking, an appropriate critical value is selected to carry out marking according to the distribution character of the data concentration defects. While information losses are avoided, the appropriate marking critical value is selected, and the performance of defect prediction is improved.

Description

technical field [0001] The invention relates to the technical field of software defect prediction, in particular to a probability-based unsupervised defect prediction method. Background technique [0002] With the rapid development of the Internet, the application of computer systems in various industries has further expanded, and the maintenance cost of software has received more and more attention. Software defects are the main cause of increased software maintenance costs. In the process of software development, early discovery of software defects and completion of modification can improve software quality and reduce maintenance costs. Software defect prediction refers to the use of source code data in the software development process to predict whether software has defects. By analyzing the values ​​of different metrics in the software source code, such as Halstead, McCabe, etc., it is possible to predict the modules, classes or methods that may have defects in the 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
IPC IPC(8): G06F11/36
CPCG06F11/3684
Inventor 徐玲陆正发鄢萌杨梦宁葛永新洪明坚张小洪周末杨丹
Owner 重庆优霓空科技有限公司
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