Search papers, labs, and topics across Lattice.
This paper investigates the impact of episodic sampling, a technique borrowed from few-shot learning, on class-imbalanced medical image segmentation in CT scans. They compare episodic sampling against random and weighted sampling strategies for segmenting nine muscle and adipose tissues, focusing on disentangling the effects of sampling from the overall training budget. Results show that while all strategies perform similarly under full-data training, episodic sampling significantly outperforms random and weighted sampling in low-data regimes, particularly when controlling for the number of training iterations, suggesting an implicit regularization effect.
Class-balanced episodic sampling isn't just for few-shot learning; it also acts as a surprisingly effective regularizer for class-imbalanced segmentation tasks, especially when data is scarce.
Class imbalance is a fundamental challenge in medical image segmentation, where frequent classes typically dominate training at the expense of rare classes. Loss-based approaches mitigate imbalance by reweighting the per-pixel loss within the batch, while sampling strategies control which images enter the batch. Yet neither explicitly controls which classes appear within the batch, leaving rare-class exposure only partially rebalanced. In this work, we adopt episodic sampling from few-shot learning to promote class-balanced batch construction in a fully supervised setting. We decouple episodic sampling from its conventional metric-learning context and evaluate it in body composition segmentation in CT. We compare episodic sampling against random and weighted sampling on nine muscle and adipose tissues, derived from 210 scans of the public SAROS dataset. Training is performed under full- and low-data regimes, with additional comparisons under matched training iteration budgets. Under full-data training, all three strategies performed comparably (mean Dice 0.882 for episodic, 0.878 for random and weighted). Under low-data training, episodic sampling outperformed random and weighted (0.787 vs. 0.758 and 0.762), driven by a 12-fold difference in training iterations. Under matched training budgets, random and weighted overfit earlier, while episodic improved for approximately three times more iterations before plateauing. Our findings identify the training iteration budget as under-recognized confound in sampling strategies, motivating iteration-aware evaluation protocols for small datasets. Furthermore, the residual advantage of episodic sampling is consistent with an implicit regularization effect of class-balanced batches, offering a low-cost, model-agnostic strategy for class-imbalanced medical image segmentation. Code is available at https://github.com/iasonsky/episodic-sampling.