Official PyTorch implementation for our MICCAI 2024 early accepted paper: "Revisiting Deep Ensemble Uncertainty for Enhanced Medical Anomaly Detection"
Illustration of the redundancy-aware repulsion and dual-space uncertainty:
(a):An illustration of redundancy-aware repulsion (RAR). Disagreement on anomalies is amplified between different learners’ feature spaces, while normal input converges to similar reconstructions guided by reconstruction training. (b): A t-SNE plot of feature spaces from three learners on the anomaly. Feature spaces are pushed away by RAR during training. (c): An illustration of dual-space uncertainty (DSU) in 1D regression with two learners. Utilizing output space uncertainty fails to differentiate the anomaly at the upper point. In comparison, DSU utilizes the disagreement on
Overview of D2UE:
In the training stage, the redundancy-aware repulsion (RAR) module amplifies the diversity of different models with both isotropic and scaling invariance. In the inference stage, the dual-space uncertainty is calculated, utilizing both
Visualization results
Organize the Med-AD benchmarks manually follow the guidance.
- NVIDIA GeForce RTX 3090
- Python 3.8.16
- Cuda 11.7
conda create --name d2ue python=3.8.16
conda activate d2ue
pip install torch==2.0.0+cu117 --index-url https://download.pytorch.org/whl/cu117
pip install -r requirements.txt
All scripts are available in scripts/
, and configuration files are in cfgs/
.
For example, you can choose to train and evaluate the method on RSNA dataset using AE as the backbone: ./scripts/RSNA_AE.sh
The trained models and results are available here.
We appreciate these open-source codes and datasets for implementing our paper:
- RSNA Pneumonia Detection Challenge dataset
- Vin-BigData Chest X-ray Abnormalities Detection dataset (VinDr-CXR)
- Brain Tumor MRI dataset
- Large-scale Attention-based Glaucoma (LAG) dataset
If this work is helpful for you, please cite our papers:
@misc{gu2024revisitingdeepensembleuncertainty,
title={Revisiting Deep Ensemble Uncertainty for Enhanced Medical Anomaly Detection},
author={Yi Gu and Yi Lin and Kwang-Ting Cheng and Hao Chen},
year={2024},
eprint={2409.17485},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2409.17485},
}