WS-SfMLearner: Self-supervised Monocular Depth and Ego-motion Estimation on Surgical Videos with Unknown Camera Parameters

Ange Lou, Jack H. NoblearXiv 2023

Abstract

Depth estimation in surgical video plays a crucial role in many image-guided surgery procedures. However, it is difficult and time consuming to create depth map ground truth datasets in surgical videos due in part to inconsistent brightness and noise in the surgical scene. Therefore, building an accurate and robust self-supervised depth and camera ego-motion estimation system is gaining more attention from the computer vision community. Although several self-supervision methods alleviate the need for ground truth depth maps and poses, they still need known camera intrinsic parameters, which are often missing or not recorded. Moreover, the camera intrinsic prediction methods in existing works depend heavily on the quality of datasets. In this work, we aimed to build a self-supervised depth and ego-motion estimation system which can predict not only accurate depth maps and camera pose, but also camera intrinsic parameters. We proposed a cost-volume-based supervision manner to give the system auxiliary supervision for camera parameters prediction. The experimental results showed that the proposed method improved the accuracy of estimated camera parameters, ego-motion, and depth estimation.

TL;DR

WS-SfMLearner is a self-supervised deep learning framework that eliminates the need for pre-recorded camera calibration in surgical 3D reconstruction. By using a novel cost-volume-based supervision strategy, the system simultaneously learns camera intrinsics, depth, and ego-motion, outperforming existing methods that rely on known camera parameters.

What Problem Does This Paper Address?

In image-guided surgery, understanding the 3D structure of the anatomy (depth) and the movement of the endoscope (ego-motion) is vital for navigation and augmented reality. However, two major hurdles exist:

  1. Lack of Ground Truth: It is incredibly difficult and time-consuming to generate "gold standard" depth maps for surgical scenes due to inconsistent lighting, specular reflections (wet tissue), and noise.
  2. Missing Metadata: Most self-supervised "Structure-from-Motion" (SfM) algorithms require known camera intrinsic parameters (like focal length). In many clinical settings, these parameters are either not recorded or change during the procedure, rendering standard algorithms unusable.

While some researchers have tried to predict these camera parameters using neural networks, these predictions are often unstable and highly dependent on the specific dataset.

Methods

The authors build upon a baseline called AF-SfMLearner (which uses "Appearance Flow" to handle brightness changes) and introduce two key innovations:

Camera Intrinsic CNN

They added a dedicated branch specifically to predict the camera's focal length and principal point. This branch utilizes a shared ResNet-18 encoder to extract features from concatenated target and source frames, which are then processed by separate decoders for pose and camera intrinsics.

Architecture of the Camera Intrinsic CNN branch

Cost Volume-Based Supervision

This is the core contribution. Inspired by multi-view stereo techniques, the authors create a "cost volume" that measures how well pixels from different video frames align across a set of hypothetical depth planes.

Detailed WS-SfMLearner architecture with cost-volume supervision
  • Consistency Loss: The system generates two depth maps: one from the standard depth network and one derived from the cost volume. By enforcing a consistency loss between these two, the cost volume acts as an "auxiliary supervisor." This forces the camera intrinsic branch to converge on accurate values because, without the correct camera parameters, the cost volume and the depth network would not agree.

Datasets

The model was evaluated on the SCARED dataset, a standard benchmark for surgical depth estimation.

  • Content: 9 different surgical scenes.
  • Setup: The data was split 8:1:1 for training, validation, and testing.
  • Preprocessing: Images were resized to 320×256 and trained on a single NVIDIA RTX A5000 GPU.

Key Insights and Ideas

  • The "Intrinsic" Trap: Interestingly, the authors found that simply adding a camera intrinsic prediction network to a baseline actually decreased performance. The network lacks enough constraint to learn the parameters correctly on its own.
  • Geometry as Supervision: The "aha moment" is using the cost volume not just as a tool for depth, but as a geometric constraint to stabilize the learning of camera intrinsics. It leverages the temporal information in the video to "triangulate" the camera's internal settings.
  • Applicability: Because it doesn't require stereo images or known camera positions, this method is "wildly applicable" to the vast archives of monocular surgical videos that currently lack 3D data.

Key Results

The proposed WS-SfMLearner achieved state-of-the-art (SOTA) results on the SCARED dataset, even when compared to models that were given the ground-truth camera parameters.

  • Depth Accuracy: It achieved an Abs Rel (Absolute Relative Error) of 0.062, outperforming standard models like Monodepth2 (0.075) and HR-Depth (0.076).
  • Ego-motion: The rotation and trajectory errors were lower than the baseline. Specifically, the trajectory error dropped from 0.0871 (baseline) to 0.0737 (WS-SfMLearner).
  • Intrinsic Prediction: The model predicted camera parameters very close to ground truth (e.g., predicting a focal length of 0.81 vs. the ground truth of 0.82).

Limitations and Future Work

  • Dynamic Objects: Like most SfM-based systems, WS-SfMLearner assumes the scene is mostly static. Moving surgical tools can confuse the depth and motion estimation. The authors suggest integrating semantic segmentation in the future to mask out these moving tools.
  • Depth Plane Distribution: The current cost volume uses a linear distribution of depth planes. The authors believe using more sophisticated distributions could further refine depth precision.
  • Real-time Constraints: While the paper focuses on accuracy, the computational overhead of the cost volume module during training is a factor, though it is not required during the final inference (prediction) phase.

Summary updated

BibTeX
@misc{lou2023ws,
  author = {Ange Lou and Jack H. Noble},
  title = {{WS-SfMLearner: Self-supervised Monocular Depth and Ego-motion Estimation on Surgical Videos with Unknown Camera Parameters}},
  year = {2023},
  eprint = {2308.11776},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.11776},
}
Figure