MADJEPA: Enhanced Multi-Stage Joint-Embedding Predictive Architecture for Medical Anomaly Detection
Organizations: Romanian Academy Research Institute for Artificial Intelligence, Romania · University of Bucharest, Romania · “Carol Davila” University of Medicine and Pharmacy, Romania · Colțea Clinical Hospital, Romania
Abstract
Anomaly detection in medical images is a complex task, requiring the development of a robust model using only healthy patient data. Without access to labeled data, modern approaches typically employ self-supervised learning to obtain a model of normality. Since world models promise to build strong internal representations of their environment, we consider them as suitable candidates for the medical anomaly detection environment, namely medical investigations of healthy patients. To this end, we propose MADJEPA, a medical anomaly detector based on an enhanced multi-stage joint-embedding predictive architecture (JEPA). We design a multi-stage training pipeline to produce a robust detector: (1) image-based JEPA (I-JEPA) training aims to learn a strong representation of normal training data; (2) target encoder distillation aims to modulate over-generalization of I-JEPA representations to abnormal data; (3) pseudo-anomaly classification aims to calibrate anomaly predictions by learning a tight boundary around the normal data manifold. To demonstrate our design, we carry out comprehensive experiments on six datasets covering various medical image domains (e.g.~MRI, OCT, X-ray, histopathology), comparing our MADJEPA with numerous state-of-the-art methods. The results show that our carefully designed world model, MADJEPA, attains competitive results, ranking first on three datasets. Our ablation studies further confirm the utility of each training stage, indicating that I-JEPA alone is not sufficient to obtain competitive results in medical anomaly detection. We publicly release our code at https://github.com/Sabina085/madjepa.
Figures & tables
| Method | BraTS2021 | BTCV+LiTS | RESC | OCT2017 | RSNA | CAMELYON16 | |||
| Image AUROC | Pixel AUROC | Image AUROC | Pixel AUROC | Image AUROC | Pixel AUROC | Image AUROC | Image AUROC | Image AUROC | |
| f-AnoGAN [ 50 ] | NA | NA | NA | ||||||
| GANomaly [ 1 ] | NA | NA | NA | ||||||
| DRAEM [ 63 ] | |||||||||
| UTRAD [ 17 ] | |||||||||
| DeepSVDD [ 48 ] | NA | NA | NA | ||||||
| Dataset | Training Stages | AUROC | |||
| \raisebox{-0.85pt}{1}⃝ | \raisebox{-0.85pt}{2}⃝ | \raisebox{-0.85pt}{3}⃝ | Image-level | Pixel-level | |
| BraTS2021 | ✓ | ✗ | ✗ | ||
| ✗ | ✓ | ✗ | |||
| ✗ | ✗ | ✓ | - | ||
| ✓ | ✓ | ✓ | |||
| BTCV + LiTS | ✓ | ✗ | ✗ | ||
| Dataset | Patch-level pooling | Image-level AUROC | Pixel-level AUROC |
| BraTS2021 | mean | 94.1 | 97.3 |
| max | 94.4 | 97.4 | |
| CAMELYON16 | mean | 82.0 | - |
| max | 81.9 | - |
| Dataset | Image-level pooling | Image-level AUROC | Pixel-level AUROC |
| BraTS2021 | mean | 91.4 | 97.3 |
| max | 94.1 | 97.3 | |
| CAMELYON16 | mean | 82.0 | - |
| max | 78.3 | - |
| Dataset | Distance measure | Image-level AUROC | Pixel-level AUROC |
| BraTS2021 | 94.1 | 96.9 | |
| 94.1 | 97.3 | ||
| CAMELYON16 | 81.9 | - | |
| 82.0 | - |
| Dataset | Medical domain | Train set | Validation set | Test set | ||||||
| Normal | Anomaly | Image size | Normal | Anomaly | Image size | Normal | Anomaly | Image size | ||
| BraTS2021 | Brain MRI | 7500 | 0 | 240 240 | 39 | 44 | 240 240 | 640 | 3075 | 240 240 |
| BTCV+LiTS | Liver CT | 1542 | 0 | 512 512 | 93 | 73 | 512 512 | 833 | 660 | 512 512 |
| RESC | Retinal OCT | 4297 | 0 | 1024 512 | 45 | 70 | 1024 512 | 1041 | 764 | 1024 512 |
| OCT2017 | Retinal OCT | 26315 | 0 | 496-512 384-1536 | 8 | 24 | 496 512/768 | 242 | 726 | 496 512-1536 |
| RSNA | Chest X-ray | 8000 | 0 | 1024 1024 | 70 | 1420 | 1024 1024 | 781 | 16413 | 1024 1024 |
| Dataset | Hyperparameter | Value |
| BraTS2021 | Number of sampled target boxes ( ) | 30 |
| Patch-level aggregation strategy | mean | |
| Image-level aggregation strategy | max | |
| Distance for patch-level representations | ||
| JEPA weight ( ) | 0.45 | |
| KD weight ( ) | 0.45 |
| Dataset | Stage \raisebox{-0.85pt}{1}⃝ | Stage \raisebox{-0.85pt}{2}⃝ | Stage \raisebox{-0.85pt}{3}⃝ |
| BraTS2021 | h | h | h |
| BTCV+LiTS | h | h | h |
| RESC | h | h | h |
| OCT2017 | h | h | h |
| RSNA | h | h | h |
| CAMELYON16 | h | h | h |
Medical Image Anomaly Detection
Medical image anomaly detection finds and localizes unusual anatomy or pathology in scans, often when labeled disease examples are scarce.
See all 97 papers