Joint one-sided synthetic unpaired image translation and segmentation for colorectal cancer prevention

Enric Moreu, Eric Arazo, Kevin McGuinness, Noel E. O'ConnorarXiv 2023 · DOI

TL;DR

CUT-seg is a novel deep learning framework that trains highly accurate polyp segmentation models using zero human annotations and as few as one real world image. By combining procedural 3D rendering with memory-efficient, one-sided generative adversarial networks (GANs), the method drastically reduces the data bottleneck in medical AI and trains four times faster than traditional two-stage translation methods.

What Problem Does This Paper Address?

Colorectal cancer prevention relies heavily on the early detection and removal of polyps during colonoscopies. While computer vision can provide real-time decision support for doctors, training these deep learning models requires massive, high-quality datasets.

In the medical domain, gathering this data is notoriously difficult due to three major hurdles:

  1. Privacy Concerns: Patient data cannot be shared freely without strict consent.
  2. Hardware Discrepancies: Different medical camera manufacturers use varying focal lengths, apertures, and resolutions, leading to a lack of standardized data.
  3. High Annotation Costs: Labeling medical images requires hours of highly specialized work by qualified medical professionals.

Previous attempts to use synthetic data typically relied on a two-stage process: generating images via 3D engines, using a two-sided translation model (like CycleGAN) to make them look realistic, and then training a segmentation model. However, these two-sided models are incredibly memory-intensive, requiring multiple generators and discriminators that make joint training computationally prohibitive.

Methods

The authors introduce CUT-seg, a framework that unifies image translation and segmentation into a single, efficient training loop.

[Procedural 3D Colon Generation] 
               │
               ▼
   [Synthetic Image + Perfect Mask]
               │
               ▼
 ┌───────────────────────────────┐
 │            CUT-seg            │
 │  ┌─────────────────────────┐  │
 │  │  One-Sided Translation  │  │
 │  │         (CUT)           │  │
 │  └──────────┬──────────────┘  │
 │             │ (Realistic)     │
 │             ▼                 │
 │  ┌─────────────────────────┐  │
 │  │   Segmentation Model    │  │
 │  │      (HarDNeT-based)    │  │
 │  └─────────────────────────┘  │
 └───────────────────────────────┘

The method consists of two main components:

  1. Procedural 3D Colon Generation: Using Blender scripting, the authors procedurally generate a 3D colon structure composed of thousands of vertices, randomly displaced to simulate real intestinal tissue curvature and lighting. Polyps are introduced as distorted spheres. Because this happens in a 3D engine, perfect ground-truth segmentation masks are generated automatically.
Synth-Colon dataset samples: synthetic image, annotation, realistic image, depth map, and 3D mesh (from left to right).
  1. One-Sided Joint Training: Instead of using a heavy, two-sided CycleGAN, the authors leverage Contrastive Unpaired Translation (CUT). CUT is a one-sided translation model that uses a patch-based contrastive loss to maintain spatial consistency between the synthetic source and the realistic target domain. Because it only learns one direction of translation, it frees up significant GPU memory. The authors exploit this extra memory to attach a HarDNeT-MSEG segmentation model directly into the generative training loop, optimizing both the realism of the images and the segmentation accuracy simultaneously.

Datasets

  • Synth-Colon (New): A completely synthetic dataset released by the authors containing 20,000 realistic colon images (500×500 resolution). Uniquely, it includes automatic polyp masks, depth maps, and 3D meshes in OBJ format to support multi-task learning like depth estimation.
  • Real-World Datasets (for evaluation): CVC-T, CVC-ClinicDB, CVC-ColonDB, ETIS-LaribPolypDB, and Kvasir.

Key Insights and Ideas

  • The "One Real Image" Paradox: Remarkably, the authors found that training CUT-seg with only a single real image as a style reference often yielded better segmentation performance than training it on an entire real dataset. The authors hypothesize that real datasets contain noisy, non-representative artifacts; a single, clean, highly representative image provides a clearer target style without introducing confusing domain noise.
  • Memory Efficiency Unlocks Joint Optimization: Shifting from two-sided to one-sided translation isn't just a optimization trick—it fundamentally changes the architecture capability. It lowers the memory footprint enough to allow the segmentation network to act as an auxiliary loss during the image generation phase.
  • Domain Gaps Exist Within "Real" Data: Models trained on specific target real datasets consistently outperformed models trained on a mixture of all real datasets, proving that the domain shift between different hospital camera systems is a significant hurdle.

Key Results

  • Training Speedup: CUT-seg trains approximately 4 times faster than the two-stage CycleGAN baseline.
  • Segmentation Accuracy: CUT-seg outperformed the CycleGAN baseline across most real-world testing sets. For instance, on the ClinicDB dataset, the mean Dice metric (mDice) jumped from 0.551 to 0.719.
  • Data Efficiency: When using just a single real reference image on the Kvasir dataset, CUT-seg achieved an mDice of 0.732, outperforming the 0.702 achieved when using the full real dataset.

While these numbers still trail behind fully supervised state-of-the-art models (which achieve ~0.90 mDice using thousands of manually annotated real images), CUT-seg drastically closes the performance gap without requiring a single human label.

Limitations and Future Work

Despite the impressive results of single-image training, the system is highly sensitive to which real image is selected as the reference. A poor choice can degrade performance, and the authors note that a standard deviation of 0.02 mDice exists depending on the image initialization.

Future work will focus on developing automated methods to identify the most "representative" real images for style transfer, scaling up the framework to handle larger synthetic variations, and extending the pipeline from static images to real-time video streams for live clinical support.

Summary updated

BibTeX
@misc{moreu2023joint,
  author = {Enric Moreu and Eric Arazo and Kevin McGuinness and Noel E. O'Connor},
  title = {{Joint one-sided synthetic unpaired image translation and segmentation for colorectal cancer prevention}},
  year = {2023},
  eprint = {2307.11253},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.11253},
}
Figure