[Paper Review] A Benchmark of Medical Out of Distribution Detection
The paper benchmarks multiple OoD detection methods across four medical imaging domains (chest X-ray, fundus imaging, histology) using three OoD use-cases, finding that simple binary feature classifiers often perform best and that detection is hard for samples near training distribution.
Motivation: Deep learning models deployed for use on medical tasks can be equipped with Out-of-Distribution Detection (OoDD) methods in order to avoid erroneous predictions. However it is unclear which OoDD method should be used in practice. Specific Problem: Systems trained for one particular domain of images cannot be expected to perform accurately on images of a different domain. These images should be flagged by an OoDD method prior to diagnosis. Our approach: This paper defines 3 categories of OoD examples and benchmarks popular OoDD methods in three domains of medical imaging: chest X-ray, fundus imaging, and histology slides. Results: Our experiments show that despite methods yielding good results on some categories of out-of-distribution samples, they fail to recognize images close to the training distribution. Conclusion: We find a simple binary classifier on the feature representation has the best accuracy and AUPRC on average. Users of diagnostic tools which employ these OoDD methods should still remain vigilant that images very close to the training distribution yet not in it could yield unexpected results.
Motivation & Objective
- Define three OoD use-cases in medical imaging and motivate the need for robust OoD detection.
- Evaluate a wide range of OoD methods (data-only, classifier-only, and methods with auxiliary models) on multiple medical imaging domains.
- Provide practical guidance on effective OoD methods and highlight limitations when inputs are near the training distribution.
Proposed method
- Define three OoD categories: unrelated inputs, incorrectly prepared inputs, and unseen conditions due to training bias.
- Construct experiments with In distributions from four medical datasets across chest X-ray, fundus, and histology, and Out datasets per-use-case.
- Evaluate three classes of OoD methods: data-only (e.g., KNN), classifier-only (e.g., thresholding, SVM, binary classifier), and methods with auxiliary models (e.g., autoencoders, VAEs, ALI/BiGAN).
- Train task networks (DenseNet-121) on In data; train OoD methods on validation sets that mix In and Out samples; test on balanced In/Out test sets.
- Explore hyperparameters and perform multiple trials to assess stability and generalization across Out data partitions.
Experimental results
Research questions
- RQ1Which OoD methods best separate In from Out samples across diverse medical imaging domains?
- RQ2Do simple classifier-based OoD detectors match or outperform methods with auxiliary models in medical OoD tasks?
- RQ3How does OoD performance vary across use-cases that include unrelated data, incorrect preparation, and unseen diseases?
- RQ4What is the impact of multiple Out datasets on OoD detector generalization?
- RQ5What are the practical trade-offs in setup and runtime for OoD methods in clinical workflows?
Key findings
- Classifier-only methods, particularly binary classifier and Mahalanobis, achieve strong accuracy and AUPRC overall, often surpassing auxiliary-model methods.
- Detection performance deteriorates significantly for use-case 3 (unseen diseases), with all methods performing near random in some evaluations.
- Using multiple Out datasets for D_val_Out improves boundary stability and generalization, boosting performance for some methods.
- KNN-based data-only methods offer favorable setup/run-time trade-offs but can be memory-intensive due to storage of training data.
- Autoencoder-based and other auxiliary-model approaches do not consistently outperform simpler classifier-based approaches across all domains, with fundus imaging as a notable exception.
- Across evaluations, many OoD methods struggle to detect samples that are very close to the training distribution.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.