# US 2021/0287109 A1 · Analyzing test result failures using artificial intelligence models

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0287109 A1
- Document ID: US20210287109A1
- Status: Published application
- Kind: A1
- Application number: 16/815,952
- Filed: 2020-03-11
- Published: 2021-09-16
- Earliest claimed: 2020-03-11
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Lukasz G. Cmielowski; Maksymilian Erazmus; Rafal Bigaj; Wojciech Sobala
- Web page: https://patentgrep.com/patent/US20210287109A1

## CPC

- G06N 5/04: Inference or reasoning models
- G06F 11/3692: {for test results analysis}
- G06N 20/00: Machine learning
- G06N 7/023: {Learning or tuning the parameters of a fuzzy system}
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer-implemented method, system and computer program product for analyzing test result failures using artificial intelligence models. A first machine learning model is trained to differentiate between a bug failure and a test failure within the test failures based on the failure attributes and historical failures. The failure type for each failed test in test failure groups is then determined using the first machine learning model. The failed tests in the test failure groups are then clustered into a set of clusters according to the failure attributes and the determined failure type for each failed test. A root cause failure for each cluster is identified based on the set of clusters and the failure attributes. The root cause of an unclassified failure is predicted using a second machine learning model trained to predict a root cause of the unclassified failure based on identifying the root cause failure for each cluster.

## Claims

### Claim 1

A computer-implemented method for analyzing test result failures using artificial intelligence models, the method comprising:
grouping a set of test failures within a plurality of test results into one or more sets of test failure groups according to a set of failure attributes;
training a first machine learning model to differentiate between a bug failure and a test failure within said set of test failures based on said set of failure attributes and a set of historical failures;
determining a failure type for each failed test in said one or more sets of test failure groups using said first machine learning model;
clustering said failed tests in said one or more sets of test failure groups into a set of clusters according to said set of failure attributes and said determined failure type for each failed test;
identifying a root cause failure for each cluster based on said set of clusters and said set of failure attributes;
training a second machine learning model to predict a root cause of an unclassified failure based on identifying said root cause failure for each cluster; and
predicting said root cause of said unclassified failure using said second machine learning model.

### Claim 2 (depends on 1)

The method as recited in claim 1 further comprising:
identifying a set of correlations between said root cause of said unclassified failure and said set of historical failures.

### Claim 3 (depends on 2)

The method as recited in claim 2 further comprising:
labeling said set of correlations according to said set of failure attributes.

### Claim 4 (depends on 3)

The method as recited in claim 3 further comprising:
updating said first and second machine learning models according to said set of correlations.

### Claim 5 (depends on 1)

The method as recited in claim 1 further comprising:
clustering said failed tests in said one or more sets of test failure groups into said set of clusters according to said set of failure attributes and said determined failure type for each failed test as well as clustering failed tests in said set of historical failures into said set of clusters according to said set of failure attributes.

### Claim 6 (depends on 1)

The method as recited in claim 1, wherein said grouping is performed by one or more unsupervised clustering algorithms.

### Claim 7 (depends on 6)

The method as recited in claim 6, wherein said one or more unsupervised clustering algorithms use K-means or Fuzzy c-means clustering.

### Claim 8

A computer program product for analyzing test result failures using artificial intelligence models, the computer program product comprising one or more computer readable storage mediums having program code embodied therewith, the program code comprising the programming instructions for:
grouping a set of test failures within a plurality of test results into one or more sets of test failure groups according to a set of failure attributes;
training a first machine learning model to differentiate between a bug failure and a test failure within said set of test failures based on said set of failure attributes and a set of historical failures;
determining a failure type for each failed test in said one or more sets of test failure groups using said first machine learning model;
clustering said failed tests in said one or more sets of test failure groups into a set of clusters according to said set of failure attributes and said determined failure type for each failed test;
identifying a root cause failure for each cluster based on said set of clusters and said set of failure attributes;
training a second machine learning model to predict a root cause of an unclassified failure based on identifying said root cause failure for each cluster; and
predicting said root cause of said unclassified failure using said second machine learning model.

### Claim 9 (depends on 8)

The computer program product as recited in claim 8, wherein the program code further comprises the programming instructions for:
identifying a set of correlations between said root cause of said unclassified failure and said set of historical failures.

### Claim 10 (depends on 9)

The computer program product as recited in claim 9, wherein the program code further comprises the programming instructions for:
labeling said set of correlations according to said set of failure attributes.

### Claim 11 (depends on 10)

The computer program product as recited in claim 10, wherein the program code further comprises the programming instructions for:
updating said first and second machine learning models according to said set of correlations.

### Claim 12 (depends on 8)

The computer program product as recited in claim 8, wherein the program code further comprises the programming instructions for:
clustering said failed tests in said one or more sets of test failure groups into said set of clusters according to said set of failure attributes and said determined failure type for each failed test as well as clustering failed tests in said set of historical failures into said set of clusters according to said set of failure attributes.

### Claim 13 (depends on 8)

The computer program product as recited in claim 8, wherein said grouping is performed by one or more unsupervised clustering algorithms.

### Claim 14 (depends on 13)

The computer program product as recited in claim 13, wherein said one or more unsupervised clustering algorithms use K-means or Fuzzy c-means clustering.

### Claim 15

A system, comprising:
a memory for storing a computer program for analyzing test result failures using artificial intelligence models; and
a processor connected to said memory, wherein said processor is configured to execute the program instructions of the computer program comprising:
grouping a set of test failures within a plurality of test results into one or more sets of test failure groups according to a set of failure attributes;
training a first machine learning model to differentiate between a bug failure and a test failure within said set of test failures based on said set of failure attributes and a set of historical failures;
determining a failure type for each failed test in said one or more sets of test failure groups using said first machine learning model;
clustering said failed tests in said one or more sets of test failure groups into a set of clusters according to said set of failure attributes and said determined failure type for each failed test;
identifying a root cause failure for each cluster based on said set of clusters and said set of failure attributes;
training a second machine learning model to predict a root cause of an unclassified failure based on identifying said root cause failure for each cluster; and
predicting said root cause of said unclassified failure using said second machine learning model.

### Claim 16 (depends on 15)

The system as recited in claim 15, wherein the program instructions of the computer program further comprise:
identifying a set of correlations between said root cause of said unclassified failure and said set of historical failures.

### Claim 17 (depends on 16)

The system as recited in claim 16, wherein the program instructions of the computer program further comprise:
labeling said set of correlations according to said set of failure attributes.

### Claim 18 (depends on 17)

The system as recited in claim 17, wherein the program instructions of the computer program further comprise:
updating said first and second machine learning models according to said set of correlations.

### Claim 19 (depends on 15)

The system as recited in claim 15, wherein the program instructions of the computer program further comprise:
clustering said failed tests in said one or more sets of test failure groups into said set of clusters according to said set of failure attributes and said determined failure type for each failed test as well as clustering failed tests in said set of historical failures into said set of clusters according to said set of failure attributes.

### Claim 20 (depends on 15)

The system as recited in claim 15, wherein said grouping is performed by one or more unsupervised clustering algorithms.
