PPS-Ctrl: Controllable Sim-to-Real Translation for Colonoscopy Depth Estimation

Xinqi Xiong, Andrea Dunn Beltran, Jun Myeong Choi, Marc Niethammer, Roni SenguptaarXiv 2025

Abstract

Accurate depth estimation enhances endoscopy navigation and diagnostics, but obtaining ground-truth depth in clinical settings is challenging. Synthetic datasets are often used for training, yet the domain gap limits generalization to real data. We propose a novel image-to-image translation framework that preserves structure while generating realistic textures from clinical data. Our key innovation integrates Stable Diffusion with ControlNet, conditioned on a latent representation extracted from a Per-Pixel Shading (PPS) map. PPS captures surface lighting effects, providing a stronger structural constraint than depth maps. Experiments show our approach produces more realistic translations and improves depth estimation over GAN-based MI-CycleGAN. Our code is publicly accessible at https://github.com/anaxqx/PPS-Ctrl.

Introduction

In colonoscopy, precise depth estimation is critical for robotic navigation and the identification of subtle pathologies like hidden polyps. However, developing AI models for this task faces a significant hurdle: real clinical data lacks ground-truth depth labels, while synthetic data, which provides perfect labels, suffers from a substantial "domain gap" that prevents models from generalizing to real-world scenarios.

Previous attempts to bridge this gap using Generative Adversarial Networks (GANs) often resulted in structural hallucinations or loss of geometric integrity. We introduce PPS-Ctrl, a framework that leverages Diffusion Models and a novel "Per-Pixel Shading" (PPS) constraint to transform synthetic images into photorealistic clinical ones while strictly preserving the underlying 3D structure.

Methodology

The PPS-Ctrl pipeline is built upon Stable Diffusion, utilizing its stability and generative diversity. The framework consists of two primary components:

  1. Domain Separation via Text Prompts: Stable Diffusion is fine-tuned on both synthetic and real images. To maintain domain integrity, specific text prompts (e.g., "A photo of synthetic colonoscopy" vs. "A photo of real colonoscopy") are used as conditional switches.
  2. Per-Pixel Shading (PPS) Control: Instead of raw depth maps, we utilize PPS maps which model how light from the endoscope interacts with the surface. This provides a richer geometric anchor than depth alone.
  3. ControlNet with Encoder-Decoder: A ControlNet architecture guides the generation process. An integrated encoder-decoder learns to extract and reconstruct PPS information, ensuring that structural signals are not lost during diffusion.
The PPS-Ctrl framework integrates Stable Diffusion with ControlNet, using Per-Pixel Shading (PPS) as a structural constraint.

Experimental Setup

We validated PPS-Ctrl using three distinct datasets to bridge the gap from simulation to reality:

  • SimCol3D: A fully simulated colon dataset used as the source domain.
  • C3VD: A "phantom" dataset of a physical silicone model providing high-quality ground-truth depth for validation.
  • Colon10K: A large-scale clinical dataset of real human colonoscopies used to provide the target "real-world" textures.

Results and Discussion

Our evaluation demonstrates that PPS is a superior constraint compared to raw depth. By accounting for lighting fall-off and surface normals, PPS provides a richer geometric anchor that prevents the model from flattening scenes or introducing contradictory textures.

Qualitative comparison showing that PPS-based control (right) achieves lower structural error (0.092) compared to depth-based control (0.156).

Key quantitative results include:

  • Realism: A 40% improvement in Fréchet Inception Distance (FID) compared to the previous state-of-the-art MI-CycleGAN, indicating significantly more realistic clinical textures.
  • Depth Accuracy: Training a DepthAnything model on PPS-Ctrl translated images yielded a 20% improvement in Root Mean Square Error (RMSE) over GAN-based methods.
  • Qualitative Integrity: PPS-Ctrl successfully eliminated common GAN artifacts like checkerboard patterns and preserved critical "down-the-barrel" views that GANs often fail to render correctly.

Conclusion

PPS-Ctrl represents a significant advancement in medical sim-to-real translation. By utilizing PPS as a geometric constraint within a diffusion framework, we achieve high-fidelity texture generation without sacrificing structural accuracy. While the model currently lacks fine-grained control over specular reflections and tiny anatomical features like capillaries, it provides a robust foundation for training depth estimation models on realistic clinical data.

Summary updated

BibTeX
@misc{xiong2025pps,
  author = {Xinqi Xiong and Andrea Dunn Beltran and Jun Myeong Choi and Marc Niethammer and Roni Sengupta},
  title = {{PPS-Ctrl: Controllable Sim-to-Real Translation for Colonoscopy Depth Estimation}},
  year = {2025},
  eprint = {2504.17067},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.17067},
}
Figure