ML Model Visualization via Heatmap Segmentation and Upscaling

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing machine learning model visualization methods, such as GradCAM and AblationCAM, have limitations in explaining model behavior due to their low resolution, which hinders human interpretability and trust in model decisions, especially in applications like autonomous driving where fine details are crucial.

Innovation Solution

A method that generates a first heatmap to identify the most important area for classification, crops and upscales this area to the original input resolution, and then produces a second heatmap using a different visualization method to provide a more detailed visualization of the influence on the classification result, enhancing explainability.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If existing visualization methods like GradCAM and AblationCAM are used, then computational efficiency is maintained, but resolution and detail of the visualization are limited

Engineering Contradiction:
Improvevisualization resolutionVSAvoidmethod complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The method segments the original image into multiple patches and generates heatmaps for each patch separately. This segmentation allows each patch to be visualized at higher resolution while maintaining overall computational efficiency through selective processing of only relevant regions identified by the model.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The method transitions from generating a single low-resolution heatmap to generating multiple high-resolution heatmaps at the patch level. This dimensional change from one coarse visualization to many fine-grained visualizations resolves the contradiction between resolution and complexity.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

2Loss of information

If high resolution visualizations are generated to improve interpretability, then human understanding of model behavior improves, but computational cost increases

Engineering Contradiction:
Improveinformation loss in visualizationVSAvoidcomputational energy
Core Design Contradiction:
Loss of informationVSUse of energy by moving object

Solution Approach 1:

The method applies local quality by generating high-resolution heatmaps only for specific patches that are most relevant to the model's prediction, rather than uniformly processing the entire image. This selective approach reduces overall computational energy while preserving critical information in the most important regions.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The method uses partial action by focusing computational resources on generating heatmaps for only the most informative patches rather than processing the entire image at high resolution. This partial processing achieves sufficient information retention with reduced computational cost.

Inventive Principle:
Principle #16Partial or excessive action

3Reliability

If multiple visualization methods are combined to improve explanation quality, then model behavior explanation improves, but processing time increases

Engineering Contradiction:
Improveexplanation reliabilityVSAvoidprocessing time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The method segments the image into patches and applies multiple visualization methods to each patch independently. This segmentation allows parallel processing of different visualization techniques on smaller regions, reducing overall processing time while maintaining reliable explanations through method combination.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS11688112B2Method for generating detailed visualization of machine learning model behavior
Publication Date: 2023.06.27 NXP BV
  • US11688112B2 patent drawing
  • US11688112B2 patent drawing
  • US11688112B2 patent drawing

AI summary

A method is provided for generating a visualization for explaining a behavior of a machine learning (ML) model, the method includes inputting an image into a machine learning (ML) model for an inference operation. A first heatmap is generated for the image using a first visualization method. An area of highest attention is selected on the first heatmap based a predetermined threshold. The selected area is cropped from the image. The cropped selected area is upscaled. A second heatmap is generated for the cropped and upscaled selected area of the image. A final visualization is presented for analysis. In another embodiment, a computer program comprising instructions for executing the method is provided.