Video-based Person Re-identification Using Spatial-Temporal Attention Networks

Shivansh Rao, Tanzila Rahman, Mrigank Rochan, Yang WangarXiv 2018

Abstract

We consider the problem of video-based person re-identification. The goal is to identify a person from videos captured under different cameras. In this paper, we propose an efficient spatial-temporal attention based model for person re-identification from videos. Our method generates an attention score for each frame based on frame-level features. The attention scores of all frames in a video are used to produce a weighted feature vector for the input video. Unlike most existing deep learning methods that use global representation, our approach focuses on attention scores. Extensive experiments on two benchmark datasets demonstrate that our method achieves the state-of-the-art performance.

Introduction

Person re-identification (re-ID) is a critical task in video surveillance, aiming to match individuals across non-overlapping camera views. While video sequences offer richer information than static images, they also introduce challenges such as partial occlusions, varying lighting, and background noise. Not every frame in a video sequence is equally useful for identification; some may be blurred or occluded, while others capture highly discriminative features.

The goal of video-based re-ID is to minimize the distance between sequences of the same identity (A and B) while maximizing it for different identities (A and C).

Previous state-of-the-art methods often relied on Recurrent Neural Networks (RNNs) to model temporal dependencies and calculate attention. However, RNNs process frames sequentially, creating a computational bottleneck. This paper addresses these limitations by proposing a parallelizable attention mechanism that effectively filters out noise and focuses on salient spatial-temporal features.

Proposed Methodology

The core of the proposed approach is a Siamese network architecture designed to compare pairs of video sequences. The model consists of several key components:

  1. Feature Extraction: Each frame is represented in the YUV color space and augmented with optical flow data to capture motion patterns. A Convolutional Neural Network (CNN) then extracts a 128-dimensional feature vector for each frame.
  2. Temporal Attention: To overcome the speed limitations of RNNs, the model uses a direct linear mapping followed by a sigmoid function to compute an importance score for each frame. This allows the network to process all frames in a video sequence simultaneously on the GPU.
  3. Multi-Hop Spatial Attention: Within each frame, a spatial attention module identifies discriminative regions. By performing multiple "hops" of attention, the network can focus on different body parts, effectively handling partial occlusions.
  4. Feature Fusion and Optimization: The weighted features are aggregated into a single sequence feature vector. The network is trained using a combination of squared hinge loss (to optimize the distance between embeddings) and identity classification loss.
The Siamese architecture processes video sequences through shared CNN and Attention modules to produce normalized features for distance calculation.

Experimental Results

The model was evaluated on two benchmark datasets: iLIDS-VID (300 people, challenging occlusions) and PRID-2011 (749 people, cleaner backgrounds). The results demonstrate significant improvements over previous methods:

  • iLIDS-VID: Achieved 66% Rank-1 accuracy, surpassing the previous state-of-the-art by 4%.
  • PRID-2011: Achieved 88% Rank-1 accuracy, an 8.6% absolute improvement over previous benchmarks.

An ablation study highlighted the necessity of the spatial attention module. On the PRID-2011 dataset, removing spatial attention caused Rank-1 accuracy to drop from 88% to 80%, confirming that focusing on specific spatial regions is vital for robust re-identification.

Conclusion

This research presents a highly efficient and effective spatial-temporal attention network for video-based person re-identification. By replacing sequential RNNs with a parallelizable attention mechanism and incorporating multi-hop spatial attention, the model achieves state-of-the-art performance while maintaining computational efficiency. Future work may involve optimizing the preprocessing overhead associated with optical flow to further enhance real-time performance.

Summary updated

BibTeX
@misc{rao2018video,
  author = {Shivansh Rao and Tanzila Rahman and Mrigank Rochan and Yang Wang},
  title = {{Video-based Person Re-identification Using Spatial-Temporal Attention Networks}},
  year = {2018},
  eprint = {1810.11261},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1810.11261},
}
Figure