Metric Learning for Novelty and Anomaly Detection

Marc Masana, Idoia Ruiz, Joan Serrat, Joost van de Weijer, Antonio M. Lopez
8/16/2018
cs.CV

Official code: mmasana/OoD_Mining (37 stars, Python, last commit 2019-05-28).

Abstract

When neural networks process images which do not resemble the distribution seen during training, so called out-of-distribution images, they often make wrong predictions, and do so too confidently. The capability to detect out-of-distribution images is therefore crucial for many real-world applications.

Show full abstract

We divide out-of-distribution detection between novelty detection ---images of classes which are not in the training set but are related to those---, and anomaly detection ---images with classes which are unrelated to the training set. By related we mean they contain the same type of objects, like digits in MNIST and SVHN. Most existing work has focused on anomaly detection, and has addressed this problem considering networks trained with the cross-entropy loss. Differently from them, we propose to use metric learning which does not have the drawback of the softmax layer (inherent to cross-entropy methods), which forces the network to divide its prediction power over the learned classes. We perform extensive experiments and evaluate both novelty and anomaly detection, even in a relevant application such as traffic sign recognition, obtaining comparable or better results than previous works.

View on arXivView PDF

Code Implementations(1)

mmasana/OoD_MiningOfficial100%

Implementation of "Metric Learning for Novelty and Anomaly Detection", BMVC 2018

376PythonJul 12, 20187 years ago

Similar Papers

Cite this paper

@article{masana2018metric,
  title  = {Metric Learning for Novelty and Anomaly Detection},
  author = {Marc Masana and Idoia Ruiz and Joan Serrat and Joost van de Weijer and Antonio M. Lopez},
  year   = {2018},
  eprint = {1808.05492},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1808.05492}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1808.05492.svg)](https://codeofpaper.com/paper/1808.05492)

Discussion