Skip to main content
QUICK REVIEW

[Paper Review] Interactive Classification for Deep Learning Interpretation

Ángel Alexander Cabrera, Fred Hohman|arXiv (Cornell University)|Jun 14, 2018
Explainable Artificial Intelligence (XAI)Computer Science11 references6 citations
TL;DR

This paper presents an interactive web-based system that enables real-time exploration of deep learning image classifier robustness by allowing users to remove image regions via inpainting and observe immediate classification changes. Using TensorFlow.js for in-browser inference and inpainting algorithms (Telea and PatchMatch), the system reveals both model failures and resilience, such as a dock image misclassifying as an ocean liner after removing boat masts, or a baseball player image remaining correctly classified after removing key objects.

ABSTRACT

We present an interactive system enabling users to manipulate images to explore the robustness and sensitivity of deep learning image classifiers. Using modern web technologies to run in-browser inference, users can remove image features using inpainting algorithms and obtain new classifications in real time, which allows them to ask a variety of "what if" questions by experimentally modifying images and seeing how the model reacts. Our system allows users to compare and contrast what image regions humans and machine learning models use for classification, revealing a wide range of surprising results ranging from spectacular failures (e.g., a "water bottle" image becomes a "concert" when removing a person) to impressive resilience (e.g., a "baseball player" image remains correctly classified even without a glove or base). We demonstrate our system at The 2018 Conference on Computer Vision and Pattern Recognition (CVPR) for the audience to try it live. Our system is open-sourced at https://github.com/poloclub/interactive-classification. A video demo is available at https://youtu.be/llub5GcOF6w.

Motivation & Objective

  • To develop an accessible, interactive system that enables users to explore how deep learning image classifiers respond to semantic image modifications.
  • To reveal discrepancies between human and model perception by comparing user-selected image manipulations with model predictions.
  • To provide real-time feedback on model behavior through inpainting and classification, facilitating intuitive understanding of model robustness and sensitivity.
  • To demonstrate the limitations and strengths of deep learning models through user-driven 'what if' experiments on real images.
  • To open-source the system for broader research and educational use in interpretable AI.

Proposed method

  • The system uses React.js to provide an interactive, browser-based interface for image manipulation.
  • TensorFlow.js runs pre-trained SqueezeNet and MobileNet models in the browser for real-time image classification.
  • Two inpainting algorithms—Telea (fast, JavaScript-implemented) and PatchMatch (higher quality, via Python server)—are used to remove user-selected image regions.
  • Class activation maps are computed on demand to visualize which image regions the model relies on for classification.
  • Users select regions to inpaint, and the system immediately reclassifies the modified image, showing updated top-5 predictions.
  • The system is deployed as a web application, enabling full client-side operation without server-side model inference.

Experimental results

Research questions

  • RQ1How do deep learning image classifiers respond to semantically meaningful image modifications, such as removing key objects?
  • RQ2To what extent do models rely on specific visual features, and how does this compare to human perception?
  • RQ3What types of robustness and failure modes emerge when users interactively manipulate images in real time?
  • RQ4Can interactive, user-driven experimentation reveal model vulnerabilities not detectable through static analysis?
  • RQ5How do different inpainting techniques affect the realism and interpretability of model behavior under modification?

Key findings

  • A dock image was misclassified as an ocean liner after the masts of two boats were removed, demonstrating a critical failure in model robustness.
  • A baseball player image remained classified as 'baseball player' even after removing the ball, glove, and base, indicating strong model resilience to feature removal.
  • The system revealed that models can be misled by subtle semantic changes, such as removing only the masts of boats, which altered the scene's perceived context.
  • Class activation maps highlighted that models often focus on salient but non-essential features, such as masts or background elements, rather than core objects.
  • The combination of user-driven inpainting and real-time classification enabled the discovery of both surprising failures and robust behaviors in state-of-the-art models.
  • The open-source system enables reproducible, interactive exploration of model behavior, supporting education and research in interpretable AI.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.