Sensitivity analysis of image classification models using generalized polynomial chaos
Lukas Bahr, Lucas Poßner, Konstantin Weise, Sophie Gröger, Rüdiger Daub
TL;DR
This paper addresses the challenge of uncertainty in image-classification models under domain shifts by applying sensitivity analysis (SA) using generalized polynomial chaos (GPC). It builds a surrogate model of the transformed input-output behavior via a GPC expansion, enabling efficient computation of Sobol indices $S_\tau$ to quantify the influence of perturbations (e.g., brightness, rotation, tilt) and their interactions on predictions. The approach is demonstrated on two manufacturing-relevant case studies: TIG welding seam classification with a fine-tuned ResNet18 and a BMW emblem detection model, revealing that geometric perturbations (tilt/rotation) and their interactions can significantly impact performance, while brightness effects are often smaller. The work provides a framework to diagnose robustness and guide improvements under distributional shifts, with potential to enhance reliability in production-quality predictions.
Abstract
Integrating advanced communication protocols in production has accelerated the adoption of data-driven predictive quality methods, notably machine learning (ML) models. However, ML models in image classification often face significant uncertainties arising from model, data, and domain shifts. These uncertainties lead to overconfidence in the classification model's output. To better understand these models, sensitivity analysis can help to analyze the relative influence of input parameters on the output. This work investigates the sensitivity of image classification models used for predictive quality. We propose modeling the distributional domain shifts of inputs with random variables and quantifying their impact on the model's outputs using Sobol indices computed via generalized polynomial chaos (GPC). This approach is validated through a case study involving a welding defect classification problem, utilizing a fine-tuned ResNet18 model and an emblem classification model used in BMW Group production facilities.
