Abstract
Detecting pre-malignant polyps in colonoscopy videos is a critical yet challenging task due to the extreme scarcity of abnormal frames compared to healthy tissue. This paper introduces FSAD-NET, a novel few-shot anomaly detection framework. By integrating a mutual information-maximizing feature encoder with a contrastive score inference network, FSAD-NET achieves state-of-the-art performance (AUC of 0.9033) using over 13,000 normal images and as few as 40 abnormal ones. This approach effectively bridges the gap between zero-shot anomaly detection and traditional imbalanced learning, offering a practical solution for real-world medical screening where disease data is scarce.
Introduction
In medical image analysis, identifying rare events like polyps is a "needle-in-a-haystack" problem. Traditional approaches typically fall into two categories, both of which have significant drawbacks:
- Imbalanced Supervised Learning: Requires a relatively large number of annotated abnormal images, which are expensive and difficult to obtain.
- Zero-Shot Anomaly Detection: Uses generative models (e.g., GANs or Autoencoders) trained only on normal data. These often fail on subtle anomalies—like small polyps—because the overall image reconstruction error remains low, leading to false negatives.
FSAD-NET addresses these limitations by leveraging a massive dataset of normal images and a tiny handful (fewer than 100) of abnormal images to catch subtle outliers.
Methodology
The FSAD-NET architecture consists of a two-stage pipeline designed for data efficiency and high discriminative power.
1. Representation Learning (Encoder)
To handle high-dimensional images, an encoder is first trained to reduce dimensionality. Instead of a standard autoencoder, the authors use a Deep InfoMax (DIM) approach. The encoder is trained exclusively on normal images to maximize the Mutual Information (MI) between the images and their resulting feature embeddings. An adversarial prior discriminator is also employed to force these normal embeddings into a standard Gaussian distribution, creating a robust and compact feature space.
2. Score Inference Network (SIN)
The "few-shot" magic occurs in the second stage. A separate network takes the embeddings and outputs an anomaly score. It is trained using a contrastive-like loss on the massive pool of normal images and the small pool of abnormal images. The loss function pulls the scores of normal images toward zero while explicitly pushing the scores of the few abnormal images away by a predefined margin.
Experimental Setup
The model was evaluated using data extracted from 18 colonoscopy videos across 15 patients. Frames were sub-sampled to reduce correlation, and those containing heavy blur or distractors were removed.
- Training Set: 13,250 normal images and a varying number of abnormal images (10 to 80).
- Validation Set: 100 normal and 100 abnormal images for hyperparameter tuning.
- Test Set: 967 images (750 normal, 217 abnormal), split patient-wise to ensure the model generalizes to unseen individuals.
Results and Discussion
FSAD-NET demonstrates superior performance and extreme data efficiency compared to existing methods.
Key Findings
- State-of-the-Art Accuracy: FSAD-NET achieved an AUC of 0.9033 when trained with just 40 abnormal images, significantly outperforming zero-shot methods like ADGAN (0.7391) and supervised approaches adapted for imbalance like Densenet121 (0.8231).
- Extreme Data Efficiency: The model's performance stabilizes between 85% and 90% AUC once it sees just 30 to 40 abnormal training images, proving its robustness to small datasets.
- Direct Score Optimization: Directly optimizing an anomaly score via contrastive loss proved more effective than relying on image reconstruction error as a proxy for detection.
- MI-based Features: Replacing the DIM encoder with a standard deep autoencoder resulted in a significant performance drop, highlighting that maximizing mutual information creates a more effective feature space for downstream scoring.
Conclusion and Future Work
FSAD-NET provides a robust "middle ground" for medical anomaly detection, successfully utilizing minimal abnormal data to improve diagnostic accuracy. While current results rely on manually filtered frames, future work will focus on upgrading the model to handle visual distractors (like feces and water) natively and extending the framework from frame classification to precise polyp localization.
Summary updated