Abstract
Accurate 3D depth estimation in monocular endoscopy is critical for surgical navigation and computer-aided diagnosis. However, traditional methods often fail due to the unique challenges of the endoscopic environment, such as specular reflections, moving light sources, and low-texture tissues. This paper presents a geometry-aware deep learning framework that moves beyond simple photometric consistency by incorporating surface normals and global geometric constraints via Signed Distance Fields (SDF). Our approach demonstrates superior performance across synthetic and real-world datasets, achieving high accuracy and real-time inference speeds of 120 FPS.
Introduction
Navigating the complex, winding structures of the gastrointestinal (GI) tract requires precise spatial awareness. While 3D perception is vital for endoscopists and automated systems—such as video-CT registration—most clinical endoscopes remain monocular. Inferring depth from a single 2D image is a classic ill-posed problem in computer vision.
Existing monocular depth estimation methods often rely on photometric consistency, which assumes that a point's appearance remains constant across different viewpoints. In endoscopy, this assumption is frequently violated: the light source moves with the camera, tissues are wet and highly reflective (specularities), and many anatomical regions lack distinct textures. These factors lead to distorted 3D reconstructions where the global shape of an organ, such as the colon lumen, is often warped or lost. This work addresses these challenges by prioritizing underlying geometric structures over superficial pixel appearances.
Methodology
Network Architecture
The proposed framework utilizes a supervised learning approach with a ResNet-18 backbone as the encoder. To enhance feature extraction, the encoder is augmented with a Spatial Attention Block (SAB), which allows the model to focus on relevant anatomical features while ignoring noise. The decoder employs upsampling convolutional layers to generate a depth map at the original input resolution of $320 \times 320$.
Geometry-Aware Loss Functions
The core innovation of this work lies in its composite loss function, designed to enforce structural and global consistency:
- Gradient Loss: This loss penalizes fluctuations around "stepped" edges, ensuring that depth transitions remain sharp and anatomically plausible.
- Normal Loss: By incorporating surface normals, the model becomes sensitive to small, frequent anatomical structures like mucosal folds, which are often smoothed out by standard depth losses.
- Geometric Consistency Loss (SDF): To enforce global constraints, the depth map is back-projected into 3D space to calculate a Signed Distance Field (SDF). This forces the network to learn the overall global anatomy, ensuring the predicted surface is mathematically smooth and consistent with the expected shape of the organ.
Experimental Setup and Datasets
Given the difficulty of obtaining ground-truth depth in vivo, the study utilizes a combination of high-fidelity synthetic data and porcine models:
- Custom Synthetic Dataset: Over 10,000 RGB-Depth pairs were generated using CT scans of the stomach, duodenum, and colon. These were rendered in Blender with realistic lighting and specular reflections.
- EndoSLAM: A benchmark dataset captured from porcine organs used to evaluate performance in realistic tissue environments.
- ColonDepth: A large-scale synthetic dataset used to test the model's ability to generalize to unseen data.
- Qualitative Validation: Real-world clinical images from the Kvasir dataset and various clinical videos were used for zero-shot validation.
Results and Discussion
Performance and Accuracy
The geometry-aware model outperformed several state-of-the-art (SOTA) competitors, including BTS, ESM, and MDP. On the EndoSLAM dataset, the model achieved impressive Root Mean Square Error (RMSE) values:
- Stomach: 0.066
- Small Intestine: 0.029
- Colon: 0.139
Robustness and Generalization
A key finding was the model's resilience to specularities. While traditional models often interpret bright reflections as holes or sudden depth changes, the geometry-aware approach remains stable because such artifacts do not conform to the learned global geometric structure. Furthermore, the model maintained high accuracy when tested on the ColonDepth dataset, indicating strong generalization capabilities rather than simple dataset memorization.
Real-Time Application
For clinical utility, processing speed is paramount. The proposed model achieves an average inference time of 120 frames per second (FPS), making it well-suited for real-time surgical assistance and live endoscopic procedures.
Conclusion
By shifting the focus from pixel-matching to global geometric consistency, this framework significantly improves the reliability of 3D reconstruction in monocular endoscopy. While the model currently faces challenges with scale ambiguity—the inability to determine absolute measurements without an external reference—future work will explore bio-inspired metaheuristic algorithms and advanced photometric models to recover absolute scale. This research represents a significant step toward robust, real-time 3D navigation in minimally invasive medicine.
Summary updated