Implicit domain adaptation with conditional generative adversarial networks for depth prediction in endoscopy

Anita Rau, P. J. Eddie Edwards, Omer F. Ahmad, Paul Riordan, Mirek Janatka, Laurence B. Lovat, Danail StoyanovInt. J. Comput. Assist. Radiol. Surg 2019 · DOI

Implicit Domain Adaptation with Conditional GANs for Endoscopic Depth Prediction

Introduction

Accurate depth perception is a cornerstone of advanced computer-assisted surgery and diagnostics. In colonoscopy, understanding the 3D geometry of the colonic lumen is essential for ensuring complete mucosal coverage and precisely measuring polyps. However, the internal environment of the colon—characterized by specular reflections, lack of distinct landmarks, and deformable tissue—presents significant challenges for traditional computer vision techniques.

The Sim-to-Real Challenge

While deep learning models can be trained on synthetic data where "ground truth" depth is known, they often struggle when applied to real clinical footage. This "sim-to-real" gap occurs because simulations, however sophisticated, rarely capture the full complexity of real human tissue, including blood, mucus, and varying lighting conditions. Standard depth sensors like LiDAR are too large for endoscopic use, leaving researchers with a surplus of labeled synthetic data but no ground truth for real-world clinical videos.

Methodology: Implicit Domain Adaptation

To bridge this gap, the researchers proposed an "Extended pix2pix" architecture based on Conditional Generative Adversarial Networks (cGANs).

In a standard cGAN setup, a generator learns to map an input (RGB image) to an output (depth map). The innovation here lies in the training process. The model is fed two streams of data simultaneously:

  1. Synthetic Pairs: RGB images and their corresponding depth maps from a simulator.
  2. Unlabelled Real Images: Actual video frames from clinical colonoscopies.

While the model cannot calculate a direct error for real images, the Discriminator (the "critic" network) is trained to distinguish between "fake" depth maps and "real-looking" depth maps. This forces the generator to produce depth predictions for real images that adhere to the underlying geometric "prior" of a colon—effectively teaching the model that, regardless of texture, the colon is fundamentally a tubular structure.

Datasets and Validation

The study utilized three distinct datasets to train and validate the model:

1. Synthetic Dataset: Using a 3D mesh derived from a human CT scan, the team generated over 16,000 images in the Unity game engine. By varying light positions and material properties, they created a robust training set with perfect ground truth.

Synthetic data generation pipeline: from 3D mesh (a) and virtual camera paths (b) to rendered RGB/depth pairs (c).

2. Phantom Dataset: To provide a "real-world" benchmark with known ground truth, the researchers used a 3D-printed model of a colonic lumen. They employed a da Vinci surgical robot to navigate an endoscope through the phantom while using an O-arm CT scanner to precisely track its position, creating a high-accuracy validation set of 5,000 images.

The phantom validation setup, utilizing a surgical robot and CT scanner to establish ground truth depth in a physical model.

3. Real Dataset: Unlabelled clinical video frames were used for the implicit domain adaptation, allowing the model to adjust to the textures and artifacts of live human tissue.

Key Results

The results demonstrate that implicit domain adaptation significantly enhances model robustness:

  • Quantitative Improvement: On the phantom dataset, the extended model reduced depth prediction error by over 37% compared to standard discriminative models, achieving a Mean $L_1$ error of 1.417 cm.
  • Qualitative Success: When applied to real patient data, the model successfully reconstructed the 3D shape of small polyps and folds. Notably, it remained robust against specularities and fluids that typically cause depth-estimation failures.

Conclusion and Future Work

By leveraging GANs as geometric priors, this research provides a pathway for accurate depth prediction without the need for labeled real-world data. Future work involves integrating these predictions into real-time SLAM (Simultaneous Localization and Mapping) systems, which could eventually allow for the creation of complete 3D maps of the colon during a procedure, ensuring no area is left uninspected.

Summary updated

BibTeX
@article{rau2019implicit,
  author = {Anita Rau and P. J. Eddie Edwards and Omer F. Ahmad and Paul Riordan and Mirek Janatka and Laurence B. Lovat and Danail Stoyanov},
  title = {{Implicit domain adaptation with conditional generative adversarial networks for depth prediction in endoscopy}},
  journal = {Int. J. Comput. Assist. Radiol. Surg.},
  year = {2019},
  doi = {10.1007/s11548-019-01962-w},
}
Figure