HyperAIHyperAI

Command Palette

Search for a command to run...

AI-based single-shot structured-light depth reconstruction for real-time laparoscopic surgical guidance

Wayne Wonseok Rodgers Xiangyi Le Seonghoon Jang Shuwen Wei Justin Opfermann Michael Kam Axel Krieger Jin U. Kang

Abstract

Significance: Accurate intraoperative depth perception is a prerequisite for autonomous and semiautonomous robotic laparoscopic surgery. Conventional fringe projection profilometry (FPP) can achieve millimeterscale accuracy but commonly relies on multi-shot acquisition, digital-micromirror-device (DMD) projection, and projector-camera synchronization, which complicates integration into compact laparoscopic surgical platforms. Aim: To develop and characterize a synchronization-free, single-shot depth-sensing platform that replaces active DMD projection with a passive binary mask illuminated by a light-emitting diode (LED), and reconstructs dense depth from a single frame using a vector-quantized variational autoencoder (VQ-VAE) prior coupled with a custom U-Net depth head. Approach: A compact LED/binary-mask projection module was designed and coupled to one of the channels of a dual-channel laparoscope (Intuitive). The remaining channel was used to image the fringe-illuminated target. A 3D vision camera (Zivid, Norway) was used to acquire 722 reference images of a phantom target. Corresponding images using the proposed single-shot structured light endoscopic camera (SSLE) was acquired and registered. Depth measurements from both laterally mounted Zivid camera and SSLE to generate depth map. The Zivid depth maps were then reprojected into the SSLE image frame to provide reference depth maps for supervised training and evaluation. The VQ-VAE encodes the pattern-distorted image into a discrete latent representation, and a U-Net operating in the latent space predicts the corresponding depth map without requiring a separate mask-prediction branch for depth generation. Results: On the SSLE–Zivid-paired binary-pattern phantom dataset, evaluated using a fixed train/validation/test split, the proposed VQ-VAE + U-Net model achieved an MAE of 3.70 mm, AbsRel of 0.0326, accuracy δ=1.1 of 0.962, and accuracy δ = 1.1^2 of 0.970. The proposed method achieved lower MAE than the dual U-Net MaskNet + DepthNet baseline, while the baseline achieved slightly higher threshold accuracy. Compared with off-the-shelf monocular depth models, the proposed method improved MAE, AbsRel, and threshold accuracy, demonstrating the benefit of task-specific training for calibrated endoscopic depth reconstruction. The proposed pipeline operated at 26.0 Hz over 301 consecutive frames on an NVIDIA A100 GPU. Conclusions: A compact LED-illuminated binary-pattern single-shot surface profilometer system combined with latent-space depth reconstruction provides a practical route toward synchronization-free video-rate depth perception for robotic laparoscopy. The results demonstrate Zivid-referenced reconstruction on a phantom dataset with no explicit segmentation stage in the depth-generation path, while highlighting the importance of dataset size and SSLE–Zivid calibration accuracy for cross-camera supervised training.

One-sentence Summary

Researchers from Johns Hopkins University propose a synchronization-free, single-shot depth-sensing platform for laparoscopic surgery that uses an LED-illuminated binary mask and a vector-quantized variational autoencoder prior coupled with a U-Net depth head to reconstruct dense depth from a single frame, achieving a mean absolute error of 3.70 mm and a processing rate of 26.0 Hz on a phantom dataset.

Key Contributions

  • A compact LED-illuminated binary-pattern projection module replaces the DMD projector, fits within a dual-channel laparoscope, and enables synchronization-free single-shot structured light acquisition.
  • A learned depth-reconstruction pipeline uses a VQ-VAE to encode the pattern-distorted image into a discrete latent representation and a U-Net decoder to predict depth directly, eliminating a separate mask-prediction branch.
  • The training protocol decouples ground truth from conventional FPP by using an independent Zivid structured-light camera reprojected into the endoscopic frame; on a 722-image phantom dataset, the method achieves 3.70 mm MAE, δ=1.1 accuracy of 0.962, and stable 26.0 Hz inference on an NVIDIA A100 GPU.

Introduction

Autonomous laparoscopic robotic surgery demands dense, real-time metric depth maps for both visualization and closed-loop tool control. Prior learning-based monocular endoscopy approaches recover depth only up to an unknown scale, while conventional fringe projection profilometry (FPP) systems require multi-shot acquisition, bulky DMD projectors, and precise hardware synchronization, all of which complicate clinical translation. The authors present a single-shot structured light endoscopic camera that replaces the DMD projector with a compact LED-illuminated passive binary mask, and they introduce a VQ-VAE-regularized depth reconstruction network that operates synchronization-free at the camera frame rate. Their training protocol decouples ground truth from the legacy FPP algorithm by using an independent Zivid structured-light camera, achieving a mean absolute error of 3.70 mm and stable 26 Hz inference on phantom data.

Dataset

The authors construct a dedicated phantom dataset to train a single-shot depth estimation network for laparoscopic imaging. The data is collected with a custom system that pairs a CMOS endoscopic camera with a laterally mounted Zivid structured-light camera, while an intestinal phantom moves along the viewing axis on a motorized linear stage.

  • Dataset composition and sources

    • The dataset contains 722 paired acquisitions.
    • Each pair consists of a grayscale SSLE image (captured under binary-pattern illumination through the laparoscope) and a dense reference depth map from the Zivid camera.
    • An automated program coordinates the endoscopic camera, the Zivid camera, and the linear stage to guarantee repeatable one-to-one pairing and to sample different working distances and surface poses.
  • Subset split and usage

    • The 722 acquisitions are divided into training, validation, and held-out test subsets.
    • The training set optimizes the network parameters.
    • The validation set is used for model selection and hyperparameter monitoring.
    • All reported quantitative metrics are computed exclusively on the held-out test set.
  • Reference-depth generation and processing

    • The Zivid depth map is reprojected into the SSLE coordinate frame through a one-time stereo calibration that provides the intrinsic matrices and the rigid transform between the two cameras.
    • The reprojection chain back-projects each Zivid pixel to a 3D point, transforms it into the SSLE frame, and projects it onto the SSLE image plane.
    • A z-buffer retains the nearest depth where multiple Zivid rays fall onto the same SSLE pixel.
    • The procedure produces a dense reference depth map and a binary validity mask that marks pixels with a valid reprojected depth inside the SSLE image bounds.
  • Training pair format

    • A training sample is a triplet: the processed SSLE grayscale image, the reprojected SSLE depth map, and the validity mask.
    • The reconstruction loss and evaluation metrics are computed only at pixels where the mask equals 1, decoupling the supervision target from the single-shot algorithm and anchoring it to an external structured-light measurement.

Method

The authors design a single-shot structured light endoscopy (SSLE) platform that projects a static binary pattern through the illumination channel of a dual-channel laparoscope and reconstructs dense depth maps from a single camera frame using a latent-space deep network. The overall pipeline spans a custom optomechanical integration, automated data acquisition with cross-camera depth supervision, and a VQ-VAE–based depth prediction architecture.

The mechanical integration mounts a passive binary mask, an LED source, and relay optics inside a compact sealed enclosure that threads directly onto the illumination port of a laparoscope. Because the mask is static and the LED is DC-driven, no synchronization between projection and imaging is required; every captured frame carries a valid pattern.

The cutaway view shows the LED, relay, and mask arranged in a volume comparable to a standard light-guide connector, while the imaging channel of the endoscope remains unobstructed. The assembled laparoscope can be mounted on the camera arm of a UR5-style robotic platform without interfering with the tool-arm articulation envelopes.

The optical configuration relays the binary pattern from the LED-illuminated mask through lens L₁ and a pinhole into the illumination channel of the dual-channel laparoscope. The imaging channel collects the pattern-distorted scene and directs it via a folding prism onto a monochrome FLIR camera.

The bench-top realization places all components on an optical breadboard. A laterally mounted Zivid 2⁺ M60 structured-light depth camera is used only during data collection to provide independent ground-truth depth; at deployment the Zivid camera is removed and the endoscope operates as a stand-alone single-shot sensor. A representative endoscopic image of an intestinal phantom under binary-pattern illumination confirms that the projected stripes are clearly visible.

To ensure the pattern remains usable across typical laparoscopic working distances, the authors characterize the binary-pattern visibility on an inclined depth-of-field target.

At working distances of 7 cm and 10 cm, the projected stripes remain visually resolvable. Extracted intensity profiles show repeated peak-to-valley modulation with Michelson contrasts of 0.58 and 0.44, respectively, confirming sufficient pattern contrast for single-shot depth reconstruction.

Training data are collected with an automated acquisition program that coordinates the CMOS endoscopic camera, the Zivid camera, and a motorized linear stage. An intestinal phantom is translated along the endoscope viewing direction to sample different working distances and surface poses. At each position, a grayscale SSLE image under binary-pattern illumination is captured together with a Zivid RGB image, point cloud, and depth map. A common frame index preserves pairing between the SSLE input and the reference depth.

For every SSLE frame, the Zivid depth map is reprojected into the SSLE image frame using a one-time stereo calibration. Each valid Zivid pixel is back-projected to a 3-D point in the Zivid frame, transformed by the rigid-body transform (R, t) into the SSLE frame, and projected onto the SSLE image plane. A z-buffer retains the nearest depth where multiple Zivid rays map to the same SSLE pixel, producing a dense reference depth map D_SSLE and a binary validity mask M. This reprojection decouples the training target from the reconstruction algorithm and provides pixel-aligned supervision.

The depth-reconstruction network replaces a prior two-branch U-Net design with a single-branch pipeline that incorporates a vector-quantized variational autoencoder (VQ-VAE) as a latent-space prior.

A 256×256 grayscale fringe image x is processed through three sequential components. First, a VQ-VAE image encoder maps x to a continuous latent tensor z_in ∈ ℝ^{64×128×128}, then independently quantizes each spatial position by nearest-neighbor lookup in a learned codebook of K_img = 512 entries to produce the discrete latent representation \hat{z}_in. Second, a four-level multi-resolution residual U-Net (MRD U-Net) operates directly on \hat{z}_in, successively halving spatial resolution through max-pooling and doubling channel width, then reconstructing via bilinear upsampling with skip connections and a multi-level residual branch. The output is a latent depth representation \hat{z}_depth ∈ ℝ^{64×128×128}. Third, a VQ-VAE depth decoder mirrors the image encoder in reverse, using a codebook of K_depth = 1024 entries and a transposed-convolution upsampling step, followed by a tanh activation and linear rescaling to produce the final dense depth map \hat{D} ∈ ℝ^{1×256×256}. Operating in the quantized latent space eliminates the need for explicit foreground segmentation and provides a compact reconstruction pathway with stable inference timing.

The network is trained with a total loss that combines a spatial reconstruction term and a latent-space matching term:

Ltotal=Lspatial(D,D^,M)+β(t)Llatent(zd,z^d).\mathcal{L}_{\text{total}} = \mathcal{L}_{\text{spatial}}(D, \hat{D}, M) + \beta(t) \mathcal{L}_{\text{latent}}(z_d, \hat{z}_d).Ltotal=Lspatial(D,D^,M)+β(t)Llatent(zd,z^d).

The spatial loss is a weighted sum of an ℓ₁ loss and a structural similarity (SSIM) loss evaluated only over valid pixels indicated by M. The latent loss is the ℓ₁ distance between the standardized reference-depth latent representation z_d (obtained from a pretrained depth VQ-VAE encoder) and the predicted depth latent representation \hat{z}_d. The weight β(t) follows a linear ramp schedule that gradually increases during training, encouraging alignment with the learned quantized structural prior as training stabilizes.

Separate VQ-VAE models are pretrained for the input-image domain and the reference-depth domain using the taming-transformers framework. The MRD U-Net depth-prediction network is then trained for 161 epochs with the Adam optimizer, a cosine annealing learning-rate schedule, and an effective batch size of 4. All images and depth maps are resized to 256×256. Evaluation uses standard depth metrics—MAE, AbsRel, and accuracy at thresholds δ=1.1 and δ=1.1²—computed exclusively on the held-out test set over the Zivid validity mask.

Experiment

The evaluation uses a Zivid-referenced phantom dataset with 722 paired SSLE–Zivid acquisitions, comparing the proposed VQ-VAE + U-Net pipeline against a dual U-Net baseline and off-the-shelf monocular depth models. The proposed model achieves lower average error and its raw unmasked predictions already approximate the valid foreground, eliminating the need for an explicit mask branch, while inference runs at a stable 26 Hz. Remaining reconstruction errors are partly attributable to cross-camera reprojection mismatch from the Zivid supervision, and both task-specific models substantially outperform the monocular baselines, underscoring the importance of task-specific supervision for calibrated depth recovery in endoscopic structured-light settings.

The VQ-VAE + U-Net model achieved lower average depth error than the dual U-Net baseline on the Zivid-referenced phantom dataset, reducing MAE by about 14% and AbsRel by 42%, while retaining comparable accuracy at the stricter threshold. Public monocular depth models produced substantially higher errors, and the proposed model learned to implicitly represent the foreground without requiring an explicit mask branch. The proposed model reduced MAE from 4.30 mm to 3.70 mm and AbsRel from 0.0560 to 0.0326 compared to the MaskNet + DepthNet baseline, with only a marginal drop in δ=1.1 accuracy (0.962 vs. 0.965). Off-the-shelf monocular models (MiDaS DPT-Large and Depth Anything) yielded MAE above 7.8 mm, more than double the error of the proposed method. The raw unmasked predictions of the proposed model closely matched the phantom foreground, showing that the network learned an implicit segmentation without a separate mask prediction branch. Both the proposed and baseline models reported higher MAE than previously published FPP-supervised results because the Zivid cross-camera reprojection introduces a floor of misalignment error that cannot be compensated by the network.

The evaluation compares a VQ-VAE plus U-Net architecture against a dual U-Net baseline and public monocular depth models on a Zivid-referenced phantom dataset. The proposed model reduces average depth error substantially over the baseline, achieving lower mean absolute error and absolute relative error while maintaining comparable strict-accuracy, and it learns to implicitly represent the foreground without an explicit mask branch. Off-the-shelf monocular models produce more than double the error of the proposed method. All models exhibit higher error than previously published fringe projection profilometry-supervised results due to a floor of cross-camera misalignment introduced by the Zivid reprojection.


Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing

HyperAI Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp