On the use of Mahalanobis distance for out-of-distribution detection with neural networks for medical imaging
Harry Anthony, Konstantinos Kamnitsas

TL;DR
This paper investigates the effectiveness of Mahalanobis distance for out-of-distribution detection in medical imaging neural networks, revealing that optimal detection depends on the OOD pattern and network layer, and proposing multi-layer detection for robustness.
Contribution
It demonstrates that there is no single optimal layer for Mahalanobis-based OOD detection and introduces multi-layer detection to improve robustness across different OOD patterns.
Findings
Optimal Mahalanobis layer varies with OOD pattern
Multi-layer detection enhances robustness
Validated on CheXpert chest X-ray OOD tasks
Abstract
Implementing neural networks for clinical use in medical applications necessitates the ability for the network to detect when input data differs significantly from the training data, with the aim of preventing unreliable predictions. The community has developed several methods for out-of-distribution (OOD) detection, within which distance-based approaches - such as Mahalanobis distance - have shown potential. This paper challenges the prevailing community understanding that there is an optimal layer, or combination of layers, of a neural network for applying Mahalanobis distance for detection of any OOD pattern. Using synthetic artefacts to emulate OOD patterns, this paper shows the optimum layer to apply Mahalanobis distance changes with the type of OOD pattern, showing there is no one-fits-all solution. This paper also shows that separating this OOD detector into multiple detectors at…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMedical Imaging Techniques and Applications · Digital Radiography and Breast Imaging · Atomic and Subatomic Physics Research
