Dual-distribution discrepancy with self-supervised refinement for anomaly detection in medical images

Yu Cai, Hao Chen, Xin Yang, Yu Zhou, Kwang-Ting Cheng

TL;DR

Researchers have developed a new framework called Dual-distribution Discrepancy for Anomaly Detection (DDAD) that leverages the "gold mine" of unlabeled clinical images to improve medical diagnosis. By comparing a model trained only on healthy images against one trained on a mix of healthy and unlabeled data, and then refining the results with a specialized neural network, the system achieves state-of-the-art performance in detecting abnormalities across X-rays, MRIs, and retinal scans.

What Problem Does This Paper Address?

In medical imaging, "anomalies" (diseases or lesions) are diverse and expensive to label. Because of this, most AI models use One-Class Classification (OCC): they are trained only on "normal" (healthy) images and flag anything that looks different as an anomaly.

However, this approach ignores a massive resource: the vast quantities of unlabeled images sitting in hospital databases. These unlabeled sets naturally contain a mix of healthy and diseased cases. Standard OCC models can't use this data effectively, and existing semi-supervised methods often require at least some labeled abnormal examples, which are hard to get. The authors address this gap by proposing a One-Class Semi-Supervised Learning (OC-SSL) setting that mines useful information from unlabeled data without needing any manual "abnormal" labels.

Methods

The DDAD framework operates in two main stages:

  1. Dual-Distribution Modeling: The authors use two ensembles of reconstruction networks (Autoencoders):
  2. Normative Distribution Module (NDM): Trained only on known normal images. It learns what "healthy" looks like.
  3. Unknown Distribution Module (UDM): Trained on both normal and unlabeled images. Because it sees some anomalies during training, it learns to reconstruct them differently than the NDM.
  4. Anomaly Scoring: They calculate two scores: Intra-discrepancy (variance within the NDM ensemble) and Inter-discrepancy (the difference between NDM and UDM outputs).
  5. Anomaly Score Refinement (ASR-Net): Raw anomaly maps are often noisy. The authors introduce ASR-Net, a secondary network trained via self-supervised learning. Instead of trying to detect anomalies from scratch, ASR-Net learns to "clean up" and fuse the raw discrepancy maps. It uses Foreign Patch Interpolation (FPI)—pasting a patch from one healthy image into another—to create synthetic training data, teaching the network to distinguish between true lesion patterns and reconstruction artifacts.

Datasets

The study evaluates the method on five diverse benchmarks:

  • RSNA: Chest X-rays for pneumonia detection.
  • VinDr-CXR: A large-scale chest X-ray dataset with 14 types of anomalies.
  • CXAD: A newly organized benchmark by the authors containing 18 categories of chest X-ray anomalies.
  • Brain Tumor MRI: Slices containing glioma and meningioma.
  • LAG: Retinal fundus images for glaucoma detection.

Key Insights and Ideas

  • Unlabeled Data is a Feature, Not a Bug: Even if the unlabeled data contains 0% anomalies, the UDM still benefits from seeing more "normal" variations, making the model more robust. As the "Anomaly Rate" in the unlabeled data increases, the performance of the Inter-discrepancy score improves significantly.
  • Refinement over Detection: Most self-supervised methods fail because they overfit to synthetic anomalies (like square patches). ASR-Net is different; it doesn't look at the original image to find the patch. It looks at the behavior of the reconstruction models. This makes it much better at generalizing to real, organic-shaped lesions.
  • The Power of Discrepancy: By comparing two different distributions (Normal vs. Mixed), the model can "see" anomalies that a standard model trained only on normal data might accidentally reconstruct too well (a common failure mode called "memorization").

Key Results

The DDAD framework consistently outperformed existing state-of-the-art (SOTA) methods like MemAE, f-AnoGAN, and CutPaste.

  • Performance Boost: On the RSNA dataset, DDAD achieved an AUC of 89.3%, a massive jump from the 66.9% achieved by a standard Autoencoder.
  • Robustness: The method proved effective even when the unlabeled data had a 0% anomaly rate, but saw significant gains (up to 7.9% AUC increase) when the anomaly rate was realistic (around 20%).
  • Generalization: The model successfully detected "unseen" pathologies—diseases that were not present in the unlabeled training set—demonstrating its utility for rare disease detection.

Limitations and Future Work

  • Backbone Ceiling: The authors noted that if the underlying reconstruction model (the "backbone") is already performing very well, the ASR-Net refinement provides smaller incremental gains.
  • Normal Data Requirement: While it uses unlabeled data, the method still requires a clean set of "known normal" images for the NDM.
  • Future Directions: The authors suggest moving toward a fully unsupervised approach where no labels at all (not even "normal") are required, potentially by using advanced pseudo-labeling techniques to separate healthy from abnormal cases automatically.

Summary updated

BibTeX
@article{cai2023dual,
  author = {Yu Cai and Hao Chen and Xin Yang and Yu Zhou and Kwang-Ting Cheng},
  title = {{Dual-distribution discrepancy with self-supervised refinement for anomaly detection in medical images}},
  journal = {Medical Image Analysis},
  year = {2023},
  url = {https://openreview.net/forum?id=32pesTdR4P},
}
Figure