USegMix: Unsupervised Segment Mix for Efficient Data Augmentation in Pathology Images
Jiamu Wang, Jin Tae Kwak
TL;DR
USegMix tackles data scarcity in pathology by a two-phase augmentation: Phase 1 builds a tissue segment pool through SAM-based unsupervised segmentation on $N_s=30$ SLIC superpixels, sampling $K=15$ prompts per superpixel to obtain anchor segments represented as $f_i\in\mathbb{R}^{128}$ after PCA; Phase 2 replaces a target segment with a semantically similar segment from the pool and employs a pre-trained latent diffusion model to inpaint and blend via forward and reverse SDEs, guided by the score function $s_{\theta}$ and enhanced by Manifold Constraint Gradient. The approach is evaluated on colorectal and prostate cancer datasets, training the LDM on patches from seven tissue types and synthesizing $600$ images per class; classifiers such as EfficientNet-B0, ResNet-50, DenseNet-121, and CTransPath show consistent improvements in accuracy, F1, and kappa over using original data alone. USegMix does not require additional labeling or target-dataset training, offering a practical, generic augmentation strategy for pathology and potentially whole-slide imaging, though limitations include incomplete gland coverage and the need to tailor the diffusion model to new domains. Overall, the method advances realistic data augmentation in histopathology, enabling more robust cancer diagnosis pipelines with limited labeled data.
Abstract
In computational pathology, researchers often face challenges due to the scarcity of labeled pathology datasets. Data augmentation emerges as a crucial technique to mitigate this limitation. In this study, we introduce an efficient data augmentation method for pathology images, called USegMix. Given a set of pathology images, the proposed method generates a new, synthetic image in two phases. In the first phase, USegMix constructs a pool of tissue segments in an automated and unsupervised manner using superpixels and the Segment Anything Model (SAM). In the second phase, USegMix selects a candidate segment in a target image, replaces it with a similar segment from the segment pool, and blends them by using a pre-trained diffusion model. In this way, USegMix can generate diverse and realistic pathology images. We rigorously evaluate the effectiveness of USegMix on two pathology image datasets of colorectal and prostate cancers. The results demonstrate improvements in cancer classification performance, underscoring the substantial potential of USegMix for pathology image analysis.
