Abstract
Estimating depth from monocular video sequences is a critical task for autonomous systems, yet it often suffers from temporal instability (flickering) and high computational demands. This paper presents a real-time framework utilizing a novel Spatial-Temporal Convolutional LSTM (ST-CLSTM) combined with a Generative Adversarial Network (GAN) training strategy. By leveraging temporal cues as a regularizer, the proposed method achieves state-of-the-art accuracy and temporal consistency while maintaining an inference speed of over 170 FPS on standard hardware.
Introduction
Monocular depth estimation has seen significant progress through deep learning, but most existing models treat video frames as independent static images. This frame-by-frame approach leads to two primary issues: temporal inconsistency, where depth estimates "jitter" between consecutive frames, and excessive computational cost, making high-accuracy models unsuitable for real-time mobile deployment. This work addresses these challenges by explicitly modeling temporal correlations to produce smooth, accurate depth maps in real-time.
Methodology
The proposed framework integrates spatial feature extraction with temporal sequence modeling through three core components.
ST-CLSTM Architecture
Unlike standard LSTMs that operate on 1D vectors, the Spatial-Temporal Convolutional LSTM (ST-CLSTM) maintains 2D feature maps. This allows the network to preserve spatial structures while propagating information across time. The architecture uses a shallow ResNet-18 backbone for efficient feature extraction, followed by CLSTM cells that incorporate compressed features from previous frames to refine the current depth estimate.
Generative Adversarial Learning
To enforce temporal smoothness, the system employs a GAN-based training scheme. The depth estimator acts as a generator, while a 3D-CNN serves as a discriminator. The 3D-CNN analyzes sequences of depth maps, learning to distinguish between the natural temporal transitions of ground-truth data and the potentially jittery outputs of the generator. This adversarial pressure forces the generator to produce temporally consistent sequences.
Composite Loss Function
The model is optimized using a multi-faceted loss function:
- Spatial Loss: A combination of logarithmic $\ell_1$ loss, gradient loss for edge sharpness, and surface normal loss for geometric accuracy.
- Temporal Loss: Derived from the 3D-CNN discriminator to penalize unnatural temporal fluctuations.
Experimental Results
The model was rigorously evaluated on the NYU Depth V2 (indoor) and KITTI (outdoor) datasets.
Performance and Accuracy
On a GTX 1080Ti, the framework achieved a remarkable throughput of 174.83 FPS, far exceeding standard real-time requirements. In terms of accuracy, the model achieved a Mean Relative Error (Rel) of 0.101 on the KITTI benchmark, outperforming several significantly larger static-image models.
Temporal Consistency
Visual analysis and new metrics—Temporal Change Consistency (TCC) and Temporal Motion Consistency (TMC)—confirm that the GAN-based temporal modeling significantly reduces flickering. As shown in the qualitative results, the ST-CLSTM+GAN approach produces much sharper edges and more stable background regions compared to baseline 2D-CNN methods.
Discussion and Conclusion
This work demonstrates that temporal information is not just a secondary concern but a powerful regularizer that improves both the smoothness and accuracy of depth estimation. By utilizing an efficient CLSTM structure and 3D-CNN discriminator, the authors achieve high-fidelity results with negligible computational overhead. While the current implementation uses a shallow backbone to prioritize speed, future work may explore deeper architectures or hardware-specific optimizations to further push the boundaries of real-time monocular video depth estimation.
Summary updated