Gifsplanation via Latent Shift: A Simple Autoencoder Approach to Counterfactual Generation for Chest X-rays
Keywords: Counterfactual Generation, Attribution Maps, Interpretable Deep Learning, Chest X-ray
TL;DR: Explaining neural network predictions by transforming input images to exaggerate or curtail the features used for prediction. Then studies the impact on Chest X-ray interpretation by radiologists.
Abstract: Motivation: Traditional image attribution methods struggle to satisfactorily explain predictions of neural networks. Prediction explanation is important, especially in medical imaging, for avoiding the unintended consequences of deploying AI systems when false positive predictions can impact patient care. Thus, there is a pressing need to develop improved models for model explainability and introspection.
Specific problem: A new approach is to transform input images to increase or decrease features which cause the prediction. However, current approaches are difficult to implement as they are monolithic or rely on GANs. These hurdles prevent wide adoption.
Our approach: Given an arbitrary classifier, we propose a simple autoencoder and gradient update (Latent Shift) that can transform the latent representation of a specific input image to exaggerate or curtail the features used for prediction. We use this method to study chest X-ray classifiers and evaluate their performance. We conduct a reader study with two radiologists assessing 240 chest X-ray predictions to identify which ones are false positives (half are) using traditional attribution maps or our proposed method.
Results: We found low overlap with ground truth pathology masks for models with reasonably high accuracy. However, the results from our reader study indicate that these models are generally looking at the correct features.
We also found that the Latent Shift explanation allows a user to have more confidence in true positive predictions compared to traditional approaches (0.15±0.95 in a 5 point scale with p=0.01) with only a small increase in false positive predictions (0.04±1.06 with p=0.57).
Accompanying webpage: https://mlmed.org/gifsplanation/
Source code: https://github.com/mlmed/gifsplanation
Registration: I acknowledge that publication of this at MIDL and in the proceedings requires at least one of the authors to register and present the work during the conference.
Authorship: I confirm that I am the author of this work and that it has not been submitted to another publication before.
Paper Type: both
Primary Subject Area: Interpretability and Explainable AI
Secondary Subject Area: Application: Radiology
Source Code Url: https://github.com/mlmed/gifsplanation,
https://github.com/mlmed/torchxrayvision
Data Set Url: NIH: https://academictorrents.com/details/e615d3aebce373f1dc8bd9d11064da55bdadede0,
RSNA: https://academictorrents.com/details/95588a735c9ae4d123f3ca408e56570409bcf2a9,
PadChest: https://academictorrents.com/details/96ebb4f92b85929eadfb16761f310a6d04105797,
CheXpert: https://stanfordmlgroup.github.io/competitions/chexpert/,
SIIM: https://academictorrents.com/details/6ef7c6d039e85152c4d0f31d83fa70edc4aba088
Source Latex: zip
Community Implementations: [![CatalyzeX](/images/catalyzex_icon.svg) 1 code implementation](https://www.catalyzex.com/paper/gifsplanation-via-latent-shift-a-simple/code)
13 Replies
Loading