Transformer-based out-of-distribution detection for clinically safe segmentationDownload PDF

08 Dec 2021, 13:56 (edited 22 Jun 2022)MIDL 2022Readers: Everyone
  • Keywords: Transformers, out-of-distribution detection, segmentation, uncertainty.
  • TL;DR: Transformers perform well for out-of-distribution detection on 3D imaging data, and be used to filter out samples that segmentation networks will perform poorly on.
  • Abstract: In a clinical setting it is essential that deployed image processing systems are robust to the full range of inputs they might encounter and, in particular, do not make confidently wrong predictions. The most popular approach to safe processing is to train networks that can provide a measure of their uncertainty, but these tend to fail for inputs that are far outside the training data distribution. Recently, generative modelling approaches have been proposed as an alternative; these can quantify the likelihood of a data sample explicitly, filtering out any out-of-distribution (OOD) samples before further processing is performed. In this work, we focus on image segmentation and evaluate several approaches to network uncertainty in the far-OOD and near-OOD cases for the task of segmenting haemorrhages in head CTs. We find all of these approaches are unsuitable for safe segmentation as they provide confidently wrong predictions when operating OOD. We propose performing full 3D OOD detection using a VQ-GAN to provide a compressed latent representation of the image and a transformer to estimate the data likelihood. Our approach successfully identifies images in both the far- and near-OOD cases. We find a strong relationship between image likelihood and the quality of a model's segmentation, making this approach viable for filtering images unsuitable for segmentation. To our knowledge, this is the first time transformers have been applied to perform OOD detection on 3D image data.
  • 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: Unsupervised Learning and Representation Learning
  • Secondary Subject Area: Segmentation
  • Confidentiality And Author Instructions: I read the call for papers and author instructions. I acknowledge that exceeding the page limit and/or altering the latex template can result in desk rejection.
  • Code And Data: The datasets are from the two hospital trusts we work with (KCH and UCH) and our data access agreements do not enable us to share the data. The codebase is a collaboration between several authors and it contains other unpublished work it is. We plan to make the codebase available once these works have also been published.
6 Replies