When Imbalance Comes Twice: Active Learning under Simulated Class Imbalance and Label Shift in Binary Semantic Segmentation
Julien Combes, Alexandre Derville, Jean-François Coeurjolly
TL;DR
This work investigates how pool-based active learning for binary semantic segmentation behaves under simulated class imbalance and label shift in industrial defect detection. By constructing controlled datasets with varying $\pi^u$ and $\pi^t$ and comparing Random Sampling, Entropy Sampling, and Core-Set Sampling, the study reveals that entropy- and core-set-based AL generally enhance label efficiency and stability, especially at moderate to high imbalance, though label shift can erode gains. The findings demonstrate AL's practical value for maintaining high-quality defect segmentation with limited annotations and abundant non-defective data, while highlighting robustness limits under deployment-distribution mismatch. The work offers actionable guidance for deploying AL in quality-control pipelines and lays groundwork for further robustness analyses in real-world industrial settings.
Abstract
The aim of Active Learning is to select the most informative samples from an unlabelled set of data. This is useful in cases where the amount of data is large and labelling is expensive, such as in machine vision or medical imaging. Two particularities of machine vision are first, that most of the images produced are free of defects, and second, that the amount of images produced is so big that we cannot store all acquired images. This results, on the one hand, in a strong class imbalance in defect distribution and, on the other hand, in a potential label shift caused by limited storage. To understand how these two forms of imbalance affect active learning algorithms, we propose a simulation study based on two open-source datasets. We artificially create datasets for which we control the levels of class imbalance and label shift. Three standard active learning selection strategies are compared: random sampling, entropy-based selection, and core-set selection. We demonstrate that active learning strategies, and in particular the entropy-based and core-set selections, remain interesting and efficient even for highly imbalanced datasets. We also illustrate and measure the loss of efficiency that occurs in the situation a strong label shift.
