AI Models for Automated Test Failure Root Cause Analysis

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Manual analysis of failed test cases in software testing is time-consuming and overwhelming, as it requires determining the cause of failures and identifying the appropriate team or component to address them, especially with hundreds of tests across different environments.

Innovation Solution

A computer-implemented method using artificial intelligence models to differentiate between bug failures and test failures, cluster failed tests, identify root causes, and predict the root cause of unclassified failures, thereby automating the analysis process.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If manual analysis of failed test cases is performed, then detailed investigation of each failure can be conducted, but the process becomes time-consuming and overwhelming

Engineering Contradiction:
Improvefailure analysis accuracyVSAvoidtime required for manual analysis
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent replaces manual mechanical analysis with an AI-based automated system. The machine learning model automatically classifies failure types (bug failures vs. test failures) and identifies root causes, substituting human cognitive processing with computational algorithms that operate continuously without fatigue or time loss.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Solution Approach 2:

The system performs self-service by automatically analyzing its own outputs. The AI model processes test failure data, categorizes failures, and generates root cause analyses without requiring external human intervention for each individual failure case, enabling the system to serve itself in the analysis process.

Inventive Principle:
Principle #25Self-service

2Adaptability or versatility

If comprehensive failure analysis is performed across hundreds of tests, then complete coverage of all failure types is achieved, but the complexity and overwhelming nature of the task increases

Engineering Contradiction:
Improvecoverage of failure typesVSAvoidcomplexity of analysis process
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent segments the complex analysis task into distinct manageable components: (1) classifying failure types using the first machine learning model, (2) clustering similar failures together, and (3) identifying root causes for each cluster. This segmentation breaks down the overwhelming complexity into systematic, sequential steps that are easier to implement and maintain.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The AI system provides universal functionality by handling multiple failure types and analysis tasks through a single integrated approach. The same machine learning model and clustering mechanism work across different test environments, failure categories, and scales, making the system adaptable and versatile without requiring separate specialized processes for each failure type.

Inventive Principle:
Principle #6Universality (Multi-functionality)

3Productivity

If automated test automation is implemented, then repetitive testing tasks are streamlined, but the complexity of the testing system increases

Engineering Contradiction:
Improvetesting efficiencyVSAvoidcomplexity of automated test system
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent introduces an AI intermediary layer between the automated test execution and the analysis phase. This intermediary (the machine learning model) processes test results, classifies failures, and identifies root causes, acting as a mediator that simplifies the overall system architecture by providing a clear separation of concerns between testing and analysis functions.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS11790256B2Analyzing test result failures using artificial intelligence models
Publication Date: 2023.10.17 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US11790256B2 patent drawing
  • US11790256B2 patent drawing
  • US11790256B2 patent drawing

AI summary

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.