Skip to main content
NC State Home
Symposium 2026 Projects

Seeing What AI Sees: Spatially Grounded Explanations for Visual Classification

Our research explores whether showing people not only what an AI predicts, but which recognizable features it used and where it found them, can help people make better decisions alongside AI.

Spatial concept heatmaps of dog highlighting different identifiers in the image

Project team members:

  • Michael Raymer, Cara Widmer, Louis Martí, Amy Summerville (Kairos Research)
  • Lori Watcher, Eric K. (Laboratory for Analytic Sciences)

AI systems are becoming increasingly powerful and useful, but a fundamental challenge remains: determining when its outputs can be trusted, especially when incorrect conclusions are presented with confidence. Our research explores whether showing people not only what an AI predicts, but which recognizable features it used and where it found them, can help people make better decisions alongside AI.

When Should We Trust an AI?

AI systems are capable at recognizing images, interpreting documents, and solving complex problems. Yet even sophisticated systems produce mistakes, sometimes with confidence that masks the need for scrutiny.

Using AI for high-stakes, mission-critical tasks requires calibrated trust: relying on AI when warranted, and questioning or checking its conclusions when appropriate. This distinction is especially relevant for intelligence analysts.

Explainable artificial intelligence (XAI) investigates ways to make model behavior more understandable and actionable. Explanations can serve several related, but distinct, purposes:

  • Calibrating trust: helping users distinguish correct from questionable AI recommendations.
  • Teaching: revealing useful patterns and distinguishing features that help a person perform the task independently.
  • Correcting systems: exposing erroneous or undesirable decision factors that can guide retraining, model revision, or other interventions.
  • Improving teamwork: enabling humans and AI to combine their complementary strengths for better overall task performance.

These goals can conflict. A complete explanation may overwhelm users; a technically faithful account may be incomprehensible; and robustness to minor input changes may come at the expense of instance-specific detail. Explanation quality depends on the user’s task.

From Highlighted Pixels to Human-Understandable Concepts

Computer vision provides a rich test bed for XAI. Earlier explanation approaches often focused on the image regions or input features associated with a prediction. Saliency maps highlight influential pixels; class activation mapping identifies image regions important to a class; and integrated gradients estimates feature contributions relative to a baseline. Testing with Concept Activation Vectors (TCAV) takes a step toward human concepts by measuring a prediction’s sensitivity to movement along a learned concept direction.

These methods are, in essence, post-hoc attempts to understand what an opaque AI model is attending to, and its reasoning, in drawing a conclusion. Concept bottleneck models (CBMs) take a different approach. Rather than predicting a class directly from opaque image features, the network first estimates a set of interpretable concepts and then uses those concepts to make its prediction. For example, a vehicle classifier might rely on a distinctive grille, swept-back headlights, large side mirrors, and a particular body shape. When the concept-to-class stage is a simple linear model, the contribution of each concept to a class score can be inspected directly. This approach provides an explanation that directly maps to the internal reasoning of the model, and one that is grounded in real-world, understandable concepts.

Figure 1. Concept bottleneck models first transform the input image into interpretable concepts and then map those concepts to output classes. This structure makes the contribution of individual concepts to a prediction directly inspectable.

Traditional CBMs, however, leave an important question unanswered: Where in this particular image did the model detect that concept? A prediction attributed to “round headlights” is much more convincing if the system can point to the headlights rather than merely assert their presence.

We selected the Spatially-Aware and Label-Free Concept Bottleneck Model (SALF-CBM) as the basis for exploring this issue. SALF-CBM generates a spatial activation map for each concept, relating concept evidence to particular image locations. This makes it possible to examine not only which concepts contribute to a classification, but also which parts of an image support each concept.

Figure 2. Examples of spatial concept maps generated by SALF-CBM. Heatmaps show which image regions contribute most strongly to concepts including “a hat,” “an intelligent expression,” “long, shaggy hair,” “a ball,” and “a pot.” Reproduced from Figure 1 of Benou, I., & Riklin Raviv, T. (2025), Show and Tell: Visually Explainable Deep Neural Nets via Spatially-Aware Concept Bottleneck Models, Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 30063–30072.

A Demanding Test: Identifying Vehicle Makes and Models

Working with our Laboratory for Analytic Sciences (LAS) and government collaborators, we selected vehicle make-and-model recognition as a challenging proxy for visual identification tasks. Vehicles can look remarkably similar across manufacturers and models. Subtle variations in headlight geometry, grille configuration, body contours, or taillight design may distinguish one class from another. These are precisely the details a useful explanation should be able to expose.

We used 8,144 images from the Stanford Cars data assembled for our training and evaluation workflow, grouped into 189 make-and-model classes after consolidating labels. Class sizes ranged from 24 Hyundai Accent Sedan images to 90 Dodge Durango SUV images, making this a difficult fine-grained classification task.

Building the Concepts and Finding Them in Images

A concept-based model is only as useful as its vocabulary. Generic labels such as “wheel” or “headlight” are easy to understand, but rarely sufficient to distinguish vehicles that all share those components. The model needs more discriminating concepts: round versus rectangular headlights, different grille configurations, body silhouettes, trim details, and contextual cues.

We therefore used an OpenAI frontier model to generate a structured vocabulary in two stages. First, the model suggested broad categories covering vehicle parts, body style, and environmental features. It then generated more specific variations within each category. The resulting initial vocabulary contained 486 concepts across 22 categories.

Figure 3. Example of the hierarchical concept structure used to build the vehicle vocabulary. Broad categories such as body shape and front grille branch into more specific, visually discriminative concepts that can be used for classification and explanation.

Creating the vocabulary was only the first challenge. Training a spatially grounded CBM also requires knowing approximately where each concept appears in each training image. We explored several ways of obtaining these locations. Vision-Language model-based localization using CLIP produced inconsistent results. Frontier vision-language models proved promising at deciding whether concepts were present, but direct requests for bounding-box coordinates sometimes returned locations shifted away from the correct image regions.

Our solution combined two complementary capabilities:

  1. Concept identification: a multimodal frontier model (GPT 4.1) assessed which candidate concepts were present in each image and how many instances appeared.
  2. Spatial grounding: GroundingDINO, a text-guided object localization model, proposed bounding boxes for identified concepts. The highest-ranked boxes, informed by the estimated instance count, were used to construct spatial concept maps.

This division of labor was especially valuable for qualified concepts such as “swept-back headlight” rather than simply “headlight.” The frontier model helped identify the more precise semantic attribute, while GroundingDINO supplied a more reliable mechanism for locating the corresponding image region. We then assembled the resulting image-by-concept-by-location evidence into a training tensor for SALF-CBM.

Training a Custom Spatial Concept Bottleneck Model

Training our model required some reverse engineering, as the inference code and weights for SALF-CBM are publically available, but not the complete training code. We reconstructed training from the authors’ paper, repository, and checkpoints, making decisions where details were unspecified.

The resulting pipeline learned spatial concept activations from visual backbone features and then trained a sparse, interpretable mapping from pooled concept activations to vehicle classes. This gave us a working end-to-end system capable of producing both make-and-model predictions and spatial concept explanations for previously unseen images.

91Training epochs
(early stopping)

54%Test top-1
accuracy

83%Test top-5
accuracy

189Vehicle make-and-model
classes

The trained model achieved 67% top-1 and 86% top-5 training accuracy, with 54% top-1 and 83% top-5 test accuracy (over 189 classes). These results reflect the task’s difficulty and provide both correct and incorrect predictions for studying trust calibration.

Three Ways to Explore an AI Decision

With a trained spatially grounded model, we developed three interactive explanation formats. Each presents a different perspective on the same underlying concept evidence, giving users control over the level and location of detail they inspect.

1. Concept contributions and Sankey diagrams

A Sankey-style diagram connects the most influential concepts to the model’s top three predicted vehicle classes. Users can inspect which features support each alternative, rather than seeing only the winning class. Selecting a concept displays its spatial activation map over the original image, connecting the named evidence to the pixels that produced it. The default presentation emphasizes the five leading concepts for each predicted class.

Figure 4. A concept-to-class Sankey explanation shows which recognized concepts contribute most strongly to the top three predicted classes. Selecting a concept reveals its spatial concept map over the original image, linking abstract evidence to specific image regions.

2. Explanations for automatically segmented regions

Some users may want to start with a particular part of the image rather than with a predicted class. We integrated image segmentation using the Segment Anything Model (SAM), allowing users to select a region and view the concepts most strongly activated within it. A bar chart summarizes the leading concepts for the selected segment, while a corresponding overlay can reveal the spatial pattern supporting an individual concept.

Figure 5. Segment-level explanations enable users to select an automatically identified image region and view its strongest concept activations. In this example, the selected front wheel is associated with concepts including a large wheel, a five-spoke wheel, and a sporty vehicle appearance.

3. Explanations for user-drawn regions

A third interface lets a user draw a polygon around any region of interest. The system then reports which concepts have the strongest activations inside that boundary. This enables open-ended questions such as, “What is the AI detecting near this headlight?” without limiting exploration to a predefined segmentation.

Figure 6. User-defined region explanations allow a user to draw attention to any region of interest and then inspect the concepts most strongly activated within that region. In this example, selecting the vehicle’s front grille yields a ranked list of the top five associated concepts.

From Technical Demonstration to Human Evaluation

Producing plausible-looking explanations is not the same as demonstrating that they help people. To investigate practical value, we designed a human-subjects study around two questions: Do explanations improve people’s ability to distinguish correct from incorrect AI predictions? And do they improve human performance on vehicle identification?

The study compares four conditions in a 2 × 2 design: an AI prediction alone; the prediction with comparable vehicle images (ground-truth-labeled images for the top three AI predicted classes); the prediction with interactive concept-based explanations; and the prediction with both explanation types. Comparable images are selected to maximize concept-map similarity with the target image, which tended to yield images with similar scale, orientation and camera angle as the target.

The study, conducted online using the Prolific and Qualtrics platforms, used 50 judgments per participant (25 correct and 25 incorrect AI predictions), with tutorials and standardized questions.The resulting analysis includes 487 usable tasks from unique participants, totaling 24,350 vehicle-identification judgments. Participants’ baseline expertise was estimated by combining self-reported vehicle knowledge with eight unaided vehicle-make identification questions, and statistical estimates were adjusted for continuous exptertise and recuritment phase.

The most promising result was obtained when concept-based explanations and comparable vehicles were provided together. In the figure below, correct make-and-model identification increased from 58.2% with no tool to 61.0% in the combined condition. After adjusting for participant expertise, the estimated gain was 2.58 percentage points (95% CI: +0.55 to +4.62; unadjusted p = 0.013). The Holm-adjusted p value was 0.064. This is encouraging, if not conclusive, evidence that combining complementary forms of explanation may help users make better decisions.

Figure 7. Vehicle make-and-model identification accuracy by study condition. The combined explanation condition had the highest observed accuracy (61.0%), compared with 58.2% for the no-tool baseline. Sample sizes represent participants (each completing 50 judgments); error bars are pointwise 95% confidence intervals around unadjusted participant means. The expertise-adjusted combined-versus-baseline difference was +2.58 percentage points (95% CI: +0.55 to +4.62; p = 0.013; Holm-adjusted p = 0.064).

The other individual tool conditions did not show a reliable improvement in vehicle-identification accuracy after multiplicity. For the separate outcome measuring judgments about whether the AI was correct, the Sankey-only condition performed worse than baseline after adjusting for expertise (−4.45 percentage points; 95% CI: −6.81 to −2.09; Holm-adjusted p = 0.001) and the average across all explanation combinations was essentially neutral (−0.39 percentage points, 95% CI −2.21 to +1.42). An interesting exploratory finding was that the benefit of explanations was expertise-dependent (p=0.16) with the comparable images providing more advantage at lower expertise. Together, these findings suggest that explanations are not automatically beneficial: their value depends on how information is presented, user expertise, and on the decision users are being asked to make.

Why This Matters

An analyst may need to decide whether an AI classification is credible, whether further investigation is necessary, or which visual evidence deserves attention. An unexplained label or confidence score offers limited assistance. A concept-based, spatially grounded explanation instead provides testable statements: the model considered “a swept-back headlight” important; it associated that concept with this region; and the evidence contributed to these alternative classifications.

Our work demonstrates a practical pathway from modern vision-language models to explanations that are both semantically meaningful and spatially inspectable. It also illustrates why explanation research must extend beyond model architecture and visual appeal to human evaluation. Ultimately, the measure of success is not whether an explanation makes an AI seem convincing, but whether it helps people recognize when the AI is right, challenge it when it is wrong, and accomplish their tasks more effectively.

This material is based upon work supported in whole or in part with funding from the Department of Defense (DoD). Any opinions, findings, conclusions, or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the DoD and/or any agency or entity of the United States Government.