Abstract
Anomaly detection in medical imaging is often hindered by the scarcity of labeled pathological data. Self-supervised approaches like Foreign Patch Interpolation (FPI) attempt to bridge this gap by creating synthetic anomalies, but often introduce unnatural edge artifacts that allow models to "cheat" by becoming simple edge detectors. We introduce Poisson Image Interpolation (PII), which utilizes seamless Poisson blending to generate organic-looking synthetic outliers. By training a model to regress the interpolation factor of these seamless patches, we force the network to develop a deep semantic understanding of normal anatomy. Our results on Chest X-ray and fetal ultrasound datasets demonstrate that PII significantly outperforms state-of-the-art reconstruction and interpolation-based methods.
Introduction
In clinical settings, supervised learning is often impractical for anomaly detection due to the vast diversity and rarity of many medical conditions. Anomaly detection models instead learn the distribution of "normal" data and flag deviations. A common self-supervised strategy involves creating synthetic anomalies by blending patches from different images. However, standard linear blending (FPI) creates sharp, unnatural boundaries. Neural networks frequently exploit these artifacts as shortcuts, failing to generalize to real-world pathologies that blend subtly into surrounding tissue.
Methodology: Poisson Image Interpolation
To address the limitations of linear blending, we propose Poisson Image Interpolation (PII). This method employs Poisson image editing—a technique from computer graphics—to achieve seamless cloning.
Gradient Matching and Seamless Blending
Unlike FPI, which copies raw pixel intensities, PII focuses on the gradients (the relative changes in intensity) of the source patch. By solving a Poisson equation, the patch is fitted into the destination image such that its boundaries match the surrounding pixels perfectly. This removes the "tell-tale" edge artifacts that plague simpler methods.
Training Objective
The model, a Wide Residual Encoder-Decoder, is trained to perform pixel-wise regression. Given an input image $\tilde{x}_i$ containing a Poisson-blended patch, the network predicts the interpolation factor $\alpha$, which represents the degree of modification. Because the blending is seamless, the model cannot rely on edge detection; it must instead learn the underlying anatomical textures and structures to identify "foreign" content.
Experimental Setup
We evaluated PII on two challenging medical imaging domains:
- ChestX-ray14: We used approximately 43,000 adult PA views to detect anomalies such as masses and pneumonia.
- Fetal Ultrasound: A dataset of 13,380 frames was used to identify Hypoplastic Left Heart Syndrome (HLHS) in cardiac views (4-chamber and 3-vessel trachea).
Results and Discussion
PII demonstrated superior performance across both datasets compared to Deep SVDD, VQ-VAE2, and the original FPI.
Quantitative Performance
In Chest X-ray analysis (male PA views), PII achieved an Average Precision (AP) of 0.690, significantly higher than FPI (0.533) and VQ-VAE2 (0.503). The improvement was even more pronounced in fetal ultrasound (3VT view), where PII reached an AP of 0.929, compared to 0.710 for FPI.
Qualitative Analysis
Visualizations of the anomaly heatmaps reveal that PII is far more selective than its predecessors. While reconstruction-based methods like VQ-VAE2 often flag normal high-frequency structures (like ribs) as anomalies, PII correctly ignores these and focuses on actual pathological regions, such as lung masses or cardiac malformations.
Conclusion
The success of PII underscores the importance of creating challenging, artifact-free self-supervised tasks. By removing easy "shortcuts" like edge artifacts, we force models to learn meaningful anatomical features. Future work will explore extending PII to spatio-temporal data for video-based ultrasound analysis and optimizing the computational overhead associated with solving Poisson equations during training.
Summary updated