Task-Aware Active Learning for Endoscopic Image Analysis

Shrawan Kumar Thapa, Pranav Poudel, Binod Bhattarai, Danail StoyanovarXiv 2022

TL;DR

This paper introduces a task-aware active learning (AL) framework designed to reduce the heavy annotation burden in endoscopic image analysis. By selecting training samples based on the model's own task-specific latent representations rather than general image features, the authors achieve superior performance in polyp segmentation and depth estimation using significantly less labeled data.

What Problem Does This Paper Address?

Deep learning has revolutionized medical imaging, but its hunger for data is a major bottleneck in endoscopy. Annotating polyps or estimating tissue depth requires the time of highly specialized experts, making large-scale datasets expensive and difficult to organize.

Active Learning (AL) offers a solution by intelligently sub-sampling the most "informative" images for experts to label. However, most existing AL methods are task-agnostic: they select images based on general visual diversity (e.g., using PCA) or model uncertainty. The authors argue that these methods are sub-optimal because the features used to pick samples don't necessarily relate to the specific clinical task at hand. If your feature space doesn't "know" what a polyp looks like, its definition of a "diverse" sample might be irrelevant to the segmentation task.

Methods

The authors propose a novel pipeline consisting of three main components: a Learner, a Sampler, and an Oracle.

  1. The Learner (Task-Awareness): The authors use a pix2pix GAN architecture. The generator’s encoder projects images into a low-dimensional latent space ($Z$). Because the GAN is trained specifically for the downstream task (segmentation or depth estimation), this latent space becomes "task-aware."
  2. The Sampler (Diversity): Instead of using raw pixels or unsupervised features, the sampler operates on the learner's latent space. It employs the K-Center Greedy algorithm to select a "core-set" of unlabeled examples that are most distant from the already labeled ones in this task-specific space. This ensures the selected samples are both representative and diverse regarding the actual goal.
  3. The Oracle: This represents the expert (or ground truth dataset) that provides labels for the selected samples, which are then added back into the training pool for the next cycle.
Schematic diagram of the proposed Active Learning Pipeline.

The authors also experimented with a hybrid approach, combining their TA-Coreset (diversity) with Uncertainty-based sampling (picking samples where the model is least confident), finding that a balance between the two yields the best results.

Datasets

The framework was evaluated on two key benchmarks:

  • Kvasir-SEG: A dataset of 1,000 real endoscopic images with corresponding polyp masks for semantic segmentation.
  • Colonoscopy Depth: A synthetic dataset containing 16,380 images with depth annotations, used to evaluate 3D surface reconstruction capabilities.

Key Insights and Ideas

  • Task-Awareness is Crucial: The primary "aha" moment is that diversity in a general feature space (like PCA) does not equal diversity in a task-specific space. As shown in the t-SNE plots (Figure 4), TA-Coreset selects samples that cover the manifold differently than random or PCA-based methods, focusing on regions relevant to the model's internal representations.
  • Complementary Strategies: Diversity-based sampling (Coreset) and uncertainty-based sampling are not mutually exclusive. Uncertainty finds the "hard" cases near decision boundaries, while Coreset ensures the model sees a representative spread of the entire data distribution.
  • Efficiency Gains: The method allows for a "labeling budget." By picking the right 20% of data, researchers can achieve performance comparable to using 25-30% of data selected randomly.
T-SNE plots showing the comparison of selection of unlabelled examples.

Key Results

  • Depth Estimation: The proposed TA-Coreset outperformed competitive baselines like VAAL and PCA-Coreset. Specifically, TA-Coreset achieved a 20% reduction in required training examples to reach the same RMSE (Root Mean Square Error) as random sampling.
  • Semantic Segmentation: On the Kvasir-SEG dataset, the hybrid approach (Uncertainty + TA-Coreset) achieved a mean IOU of 76.1 with only 500 labeled samples, significantly higher than the 70.7 achieved by random sampling.
  • Qualitative Superiority: Qualitative results (Figure 5 and 6) demonstrate that models trained with TA-Coreset are much better at handling ambiguous cases and complex polyp boundaries where baseline models often fail.
Qualitative comparisons on Kvasir-SEG Dataset.

Limitations and Future Work

  • Synthetic Data: The depth estimation results rely on synthetic data. While a necessary starting point, real-world endoscopic depth ground truth is notoriously difficult to obtain, and the "sim-to-real" gap remains a challenge.
  • Hyperparameter Tuning: The hybrid approach introduces a parameter ($\gamma$) to balance uncertainty and diversity. Finding the optimal balance (found to be 0.5 in this study) may vary across different medical tasks.
  • Generalization: While tested on two tasks, further validation on other endoscopic challenges (like instrument tracking or multi-class pathology detection) would strengthen the case for TA-Coreset as a universal tool for surgical AI.

Summary updated

BibTeX
@misc{thapa2022task,
  author = {Shrawan Kumar Thapa and Pranav Poudel and Binod Bhattarai and Danail Stoyanov},
  title = {{Task-Aware Active Learning for Endoscopic Image Analysis}},
  year = {2022},
  eprint = {2204.03440},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.03440},
}
Figure