[Paper Review] SQUID: Deep Feature In-Painting for Unsupervised Anomaly Detection
SQUID proposes a novel unsupervised anomaly detection method for chest X-ray images by leveraging space-aware memory queues to learn and reconstruct recurrent anatomical patterns through deep feature in-painting. It achieves state-of-the-art performance, surpassing 13 SOTA methods by over 5 points AUC on the ZhangLab dataset and 10 points on CheXpert, while introducing the synthetic DigitAnatomy dataset to enhance method development and interpretability.
Radiography imaging protocols focus on particular body regions, therefore producing images of great similarity and yielding recurrent anatomical structures across patients. To exploit this structured information, we propose the use of Space-aware Memory Queues for In-painting and Detecting anomalies from radiography images (abbreviated as SQUID). We show that SQUID can taxonomize the ingrained anatomical structures into recurrent patterns; and in the inference, it can identify anomalies (unseen/modified patterns) in the image. SQUID surpasses 13 state-of-the-art methods in unsupervised anomaly detection by at least 5 points on two chest X-ray benchmark datasets measured by the Area Under the Curve (AUC). Additionally, we have created a new dataset (DigitAnatomy), which synthesizes the spatial correlation and consistent shape in chest anatomy. We hope DigitAnatomy can prompt the development, evaluation, and interpretability of anomaly detection methods.
Motivation & Objective
- To address the challenge of detecting subtle, rare anomalies in radiography images without manual annotations.
- To exploit the high spatial consistency and recurrent anatomical structures in X-ray imaging protocols for improved anomaly detection.
- To develop a method that is robust to partial contamination of diseased images during training, reducing reliance on perfectly clean datasets.
- To create a synthetic dataset, DigitAnatomy, that captures spatial correlations and consistent anatomical shapes for benchmarking and interpretability.
- To improve the generalization and reliability of unsupervised anomaly detection by modeling normal patterns as dynamic, location-aware features.
Proposed method
- SQUID uses a space-aware memory queue to dynamically store and retrieve visual patterns from different spatial regions of the input image during training.
- The model performs feature-level in-painting by reconstructing masked features using the most similar patterns from the memory queue, guided by spatial context.
- A Gumbel-Softmax-based top-K retrieval mechanism selects the most relevant patterns from the memory queue for each local region.
- The framework incorporates masked residual shortcuts to preserve structural coherence during in-painting and improve reconstruction fidelity.
- A decoder memory module maintains a separate memory bank for the decoder features, enhancing reconstruction accuracy.
- Knowledge distillation is applied to improve generalization, and stop-gradient operations are used to stabilize feature learning.
Experimental results
Research questions
- RQ1Can recurrent anatomical patterns in radiography images be effectively modeled and used to detect anomalies without any annotations?
- RQ2How does the spatial awareness of the memory queue improve anomaly detection performance compared to non-spatial or global memory mechanisms?
- RQ3To what extent can SQUID tolerate the presence of diseased images in the training set without performance degradation?
- RQ4How does the proposed feature-level in-painting mechanism compare to pixel-level reconstruction in detecting subtle anatomical anomalies?
- RQ5Can a synthetic dataset like DigitAnatomy effectively support the development and evaluation of unsupervised anomaly detection models in medical imaging?
Key findings
- SQUID achieves a 10-point AUC improvement over 13 recent unsupervised anomaly detection methods on the Stanford CheXpert dataset, with an AUC of 84.7%.
- On the ZhangLab dataset, SQUID achieves an AUC of 87.6%, surpassing all 13 SOTA methods by at least 5 points.
- Abllation studies show that the space-aware memory queue contributes +10.0% to AUC, and the in-painting block contributes +6.7%, confirming their critical role.
- The model remains robust even when up to 50% of training images contain disease, outperforming baselines like CutPaste and PANDA under such contamination.
- Using only 200 items per memory queue region achieves optimal performance; increasing to 500+ items leads to AUC degradation, indicating overfitting.
- A mask probability of 95% (allowing 5% feature skips) yields the best performance, with lower values severely degrading in-painting quality and detection accuracy.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.