On the use of Mahalanobis distance for out-of-distribution detection with neural networks for medical imaging

09/04/2023
by   Harry Anthony, et al.
0

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 different depths of the network can enhance the robustness for detecting different OOD patterns. These insights were validated on real-world OOD tasks, training models on CheXpert chest X-rays with no support devices, then using scans with unseen pacemakers (we manually labelled 50 for this research) and unseen sex as OOD cases. The results inform best-practices for the use of Mahalanobis distance for OOD detection. The manually annotated pacemaker labels and the project's code are available at: https://github.com/HarryAnthony/Mahalanobis-OOD-detection.

READ FULL TEXT
research
12/20/2019

Understanding Deep Neural Network Predictions for Medical Imaging Applications

Computer-aided detection has been a research area attracting great inter...
research
01/21/2019

CheXpert: A Large Chest Radiograph Dataset with Uncertainty Labels and Expert Comparison

Large, labeled datasets have driven deep learning methods to achieve exp...
research
03/31/2021

Spectral decoupling allows training transferable neural networks in medical imaging

Deep neural networks show impressive performance in medical imaging task...
research
06/27/2022

Distributional Gaussian Processes Layers for Out-of-Distribution Detection

Machine learning models deployed on medical imaging tasks must be equipp...
research
01/18/2022

Adversarial vulnerability of powerful near out-of-distribution detection

There has been a significant progress in detecting out-of-distribution (...
research
06/28/2019

A 1d convolutional network for leaf and time series classification

In this paper, a 1d convolutional neural network is designed for classif...

Please sign up or login with your details

Forgot password? Click here to reset