Image-Based Localization Using LSTMs for Structured Feature Correlation

Florian Walch, Caner Hazirbas, Laura Leal-Taixé, Torsten Sattler, Sebastian Hilsenbeck, Daniel Cremers

Introduction

Determining a camera's exact 6-Degree-of-Freedom (6DoF) pose from a single image is a fundamental challenge in robotics, autonomous navigation, and augmented reality. Traditional methods rely on matching local features, such as SIFT, against a pre-built 3D scene model. While precise, these methods often fail in environments characterized by motion blur, extreme lighting variations, or repetitive, textureless structures. Recent deep learning approaches like PoseNet attempted to regress pose directly from images but suffered from overfitting due to high-dimensional fully connected layers that encouraged memorization over geometric understanding.

Methodology: CNN+LSTM Architecture

This research introduces a hybrid architecture that leverages the feature extraction capabilities of Convolutional Neural Networks (CNNs) and the sequence-modeling strengths of Long Short-Term Memory (LSTM) units. The core innovation lies in using LSTMs for "structured dimensionality reduction."

The proposed CNN+LSTM architecture for 6DoF camera pose regression, utilizing LSTMs for structured dimensionality reduction.

The process begins with a GoogLeNet base, pre-trained on the "Places" dataset, to extract a 2048-dimensional feature vector. Rather than passing this directly to a regression layer, it is reshaped into a 32x64 matrix. Four LSTMs then process this matrix in four directions (up, down, left, right), capturing spatial correlations across the feature map. This structure forces the network to identify the most salient features for localization, effectively regularizing the model and preventing the overfitting seen in standard fully connected architectures.

Experimental Evaluation

The model was evaluated across three major benchmarks:

  1. Cambridge Landmarks: Large-scale outdoor environments.
  2. 7Scenes: Small-scale indoor room environments.
  3. TUM-LSI: A new, large-scale indoor dataset (5,500 $m^2$) featuring repetitive structures and textureless walls designed to challenge traditional feature-matching algorithms.

Results and Discussion

The CNN+LSTM approach demonstrated a significant performance leap, achieving a 32-37% improvement in localization accuracy over previous deep learning baselines. In the King’s College outdoor sequence, positional error was reduced from 1.92m to 0.99m.

Crucially, the model proved robust in "SIFT-killer" environments. On the TUM-LSI dataset, where traditional "Active Search" methods failed due to a lack of unique feature matches, the proposed model achieved an average accuracy of 1.31m.

Saliency map showing the network focusing on stable architectural features like windows and towers, ignoring transient elements.

Visualization using Class Activation Maps revealed that the network naturally learns to focus on stable architectural elements, such as towers and windows, while ignoring transient objects like pedestrians or trees. This selective attention contributes to its robustness across varying conditions.

Conclusion

By integrating LSTMs into the pose regression pipeline, this work addresses the overfitting limitations of previous deep learning models while providing a robust alternative to traditional feature-matching in challenging environments. While a precision gap remains compared to SIFT-based methods in ideal conditions, the reliability of the CNN+LSTM approach makes it a powerful tool for global localization. Future work will explore hybrid systems that combine the global robustness of deep learning with the local precision of traditional features.

Summary updated

BibTeX
@inproceedings{walch2017image,
  author = {Florian Walch and Caner Hazirbas and Laura Leal-Taixé and Torsten Sattler and Sebastian Hilsenbeck and Daniel Cremers},
  title = {{Image-Based Localization Using LSTMs for Structured Feature Correlation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  doi = {10.1109/iccv.2017.75},
}
Figure