Temporally Consistent Depth Prediction with Flow-Guided Memory Units

Chanho Eom, Hyunjong Park, Bumsub Ham

Abstract

Monocular depth estimation is a critical task for autonomous systems, yet standard frame-by-frame approaches often produce temporally inconsistent results, leading to "flickering" artifacts in video. We propose a novel deep learning framework that leverages a flow-guided memory module to ensure temporal stability. By utilizing a two-stream encoder for spatial and temporal features and a Convolutional Gated Recurrent Unit (ConvGRU) that warps hidden states using refined optical flow, our model achieves state-of-the-art performance on the KITTI benchmark while significantly reducing temporal variance.

Introduction

Predicting depth from a single image has seen significant progress with Convolutional Neural Networks (CNNs). However, extending these models to video sequences introduces the challenge of temporal consistency. Inconsistent depth predictions across consecutive frames—often caused by noise or minor viewpoint shifts—create unreliable data for downstream tasks like path planning. Existing methods typically process frames independently, failing to exploit the rich temporal context available in video. This paper addresses the "flickering" problem by introducing a memory mechanism that explicitly aligns past information with the current frame.

Proposed Method

The architecture consists of three primary components designed to enforce long-term temporal consistency:

Two-Stream Encoder

The model employs a two-stream encoder to decouple appearance and motion cues. The spatial stream extracts features from the current RGB frame $I^t$, while the temporal stream processes optical flow $O^t$. This separation allows the network to better utilize motion parallax, where the relative motion of objects provides a strong geometric cue for depth.

Flow-Guided Memory Module

At the heart of the system is a memory module based on Convolutional Gated Recurrent Units (ConvGRUs). To account for camera and object motion, the module does not simply pass the previous hidden state forward. Instead, it uses a refined optical flow to warp the previous hidden state, aligning it spatially with the current frame's features before the update step. This ensures that the "memory" of a physical point is correctly associated with its new coordinates in the current frame.

The proposed architecture featuring a two-stream encoder and a flow-guided memory module for temporally consistent depth estimation.

Flow Refinement and Training

Because standard optical flow can be inaccurate at boundaries, a sub-network refines the flow specifically for feature alignment. The entire system is trained using a multi-objective loss function, including scale-invariant depth loss, photometric consistency for flow refinement, and smoothness constraints.

Experimental Results

The model was evaluated on the KITTI, Cityscapes, and NYU Depth V2 datasets.

Accuracy and Stability

The proposed method achieved state-of-the-art accuracy on the KITTI benchmark among monocular methods at the time of publication. Beyond standard accuracy metrics, the authors introduced the Temporal Difference of Depth (TDT) to quantify flickering. Our model significantly outperformed previous methods, producing depth maps that are visually smoother and more stable over time.

Qualitative comparison of depth maps at consecutive time steps. Our method shows superior temporal consistency compared to previous works, which exhibit significant flickering.

Efficiency and Robustness

Despite the added complexity of the memory module, the system maintains a competitive inference speed of approximately 0.13 seconds per frame on an NVIDIA Titan X. Qualitative analysis demonstrates that the model is particularly effective at preserving thin structures and handling occlusions, areas where single-frame methods often fail.

Conclusion

This work demonstrates that explicit spatial alignment of temporal features is key to stable monocular depth estimation in video. By integrating optical flow into a recurrent memory module, the proposed architecture eliminates flickering and improves overall depth accuracy. Future work includes moving toward fully self-supervised training and optimizing the architecture for real-time deployment on edge devices.

Summary updated

BibTeX
@article{eom2020temporally,
  author = {Chanho Eom and Hyunjong Park and Bumsub Ham},
  title = {{Temporally Consistent Depth Prediction with Flow-Guided Memory Units}},
  journal = {IEEE Trans. Intell. Transp. Syst.},
  year = {2020},
  doi = {10.1109/tits.2019.2942096},
}
Figure