Many Tasks Make Light Work: Learning to Localise Medical Anomalies from Multiple Synthetic Tasks

Matthew Baugh, Jeremy Tan, Johanna P. Müller, Mischa Dombrowski, James Batten, Bernhard Kainz

Introduction

Medical anomaly detection faces a significant challenge: the "long-tail" distribution of pathologies. Because diseases can manifest in infinite variations of size, shape, and location, creating a comprehensive supervised dataset is practically impossible. While unsupervised methods—which learn to identify deviations from "healthy" patterns—offer a solution, they are notoriously difficult to validate and tune without relying on real anomalous data, which risks overfitting.

This paper introduces a self-supervised framework that leverages multiple synthetic tasks to train and validate models for medical anomaly detection. By treating distinct synthetic anomalies as proxies for unseen real-world pathologies, the authors achieve state-of-the-art (SOTA) performance in localizing brain tumors and chest X-ray abnormalities without ever seeing a real "sick" image during training.

The Validation Bottleneck

A primary hurdle in unsupervised anomaly detection is the lack of a principled validation strategy. Most researchers use a small set of real anomalies to determine when to stop training or to select hyperparameters. This practice undermines the unsupervised nature of the task and risks overfitting to specific examples.

The authors propose a multi-task cross-validation framework. By generating several types of synthetic anomalies, they can train on one task (e.g., Blending) and validate on another (e.g., Deformation). If a model generalizes across these distinct synthetic tasks, it is highly likely to generalize to real-world clinical anomalies.

Synthetic Anomaly Generation

The framework utilizes five distinct synthetic tasks categorized into three main types:

  1. Blending: Using Poisson image editing to integrate patches from the same dataset (Intra-dataset) or an external dataset (Inter-dataset) into a healthy scan.
  2. Deformation: "Sink" and "Source" tasks that warp the image by pulling or pushing pixels relative to a center point, simulating mass effects.
  3. Intensity: Subtle, smooth intensity changes that brighten or darken regions without creating sharp edges.
Example of intra-dataset blending showing the synthetic anomaly and the corresponding smooth intensity profile.

Technical Innovations

To improve the realism and stability of training, the authors introduced two key technical refinements:

  • D-Dimensional Poisson Blending: They extended 2D Poisson blending to 3D volumes using Discrete Sine Transforms (DST), enabling seamless integration of 3D patches in MRI scans.
  • Continuous Labeling Function: Instead of using binary or discontinuous labels, the authors implemented a flipped Gaussian shape ($C^1$ continuous). This provides smoother transitions between healthy and anomalous regions, reducing training instability and "noisy" predictions.
Example of sink deformation, illustrating how physical warping is used as a synthetic task alongside its smooth labeling profile.

Results and Generalization

The proposed method significantly outperformed existing SOTA models like NSA and CRADL across multiple benchmarks:

  • Brain MRI: On the BraTS 2017 (glioma) and ISLES 2015 (stroke) datasets, the model achieved pixel-wise Average Precision (AP) scores of 76.2 and 45.9, respectively.
  • Chest X-ray: On the DDAD test set, the model reached an image-level AP of 78.4, a 12.6-point improvement over the previous SOTA.

Crucially, the model demonstrated strong generalization to real clinical data even when trained on high-resolution research scans, suggesting robustness to domain shifts.

Conclusion

By shifting the focus from complex disease simulation to a diverse set of simple geometric and intensity-based synthetic tasks, this work provides a scalable and principled approach to medical anomaly detection. The use of cross-task validation addresses the long-standing issue of hyperparameter tuning in unsupervised settings, moving the field closer to clinically viable automated screening tools.

Summary updated

BibTeX
@inproceedings{baugh2023many,
  author = {Matthew Baugh and Jeremy Tan and Johanna P. Müller and Mischa Dombrowski and James Batten and Bernhard Kainz},
  title = {{Many Tasks Make Light Work: Learning to Localise Medical Anomalies from Multiple Synthetic Tasks}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2023},
  url = {https://openreview.net/forum?id=Knb1TPhGCy6},
}
Figure