Fast Vehicle Identification in Surveillance via Ranked Semantic Sampling Based Embedding

Feng Zheng, Xin Miao, Heng Huang

Abstract

Vehicle re-identification (Re-ID) across non-overlapping camera views is a critical task in urban surveillance. Traditional methods often struggle with viewpoint variance and computational scalability when searching through massive image galleries. This paper presents Ranked Semantic Sampling (RSS), a deep binary embedding framework that leverages a tree-structured attribute hierarchy to learn view-invariant binary codes. By mapping images into Hamming space, RSS enables extremely fast retrieval via XOR operations. Experimental results on the CompCars and VeRi datasets demonstrate that RSS achieves state-of-the-art accuracy while being significantly faster and more storage-efficient than existing Euclidean-based approaches.

Introduction

Vehicle Re-identification involves spotting the same vehicle across different surveillance cameras. This task faces two primary challenges: viewpoint variance, where a car's appearance changes drastically based on the camera angle, and computational scalability, as comparing high-dimensional floating-point vectors across millions of images is slow and resource-intensive.

To address these, the authors propose a system that is both accurate across viewpoints and fast enough for real-time, large-scale applications by utilizing binary embeddings and hierarchical attribute guidance.

Methods

The proposed framework integrates deep learning with semantic structures to produce efficient binary codes. The core pillars of the methodology include:

  • Binary Embedding in Hamming Space: Instead of standard floating-point vectors, the model projects images into sequences of 0s and 1s. This allows similarity calculations using Hamming distance (XOR operations), which is significantly faster on modern hardware.
  • Tree-Structured Attribute Hierarchy: Vehicle attributes (Make → Model → Type → Color) are naturally hierarchical and view-invariant. The authors construct an "Attribute Tree" to define semantic distances between vehicles.
  • Ranked Semantic Sampling (RSS) & Loss: Unlike random triplet sampling, RSS uses the attribute tree to select "hard" samples within a mini-batch, ranking them by semantic distance. The model is trained with a Ranked Semantic Distance Loss to ensure the learned binary codes reflect these relative semantic distances.
  • Optimization Bridge: To overcome the non-differentiable nature of discrete binary codes, a probability inequality is derived to smoothly optimize a continuous proxy that tightly bounds the discrete Hamming distance.
The proposed shared deep architecture and the hierarchical attribute tree used for semantic guidance.

Experimental Evaluation

The model was evaluated on two major benchmarks: CompCars (135,846 images, 2,004 models) for detailed viewpoint analysis, and VeRi (776 vehicles, 19 cameras) for real-world urban surveillance testing.

Key Results

  • Retrieval Speed: RSS is over 40x faster than leading methods like OIFE+ST, taking approximately 0.003 ms per match.
  • Storage Efficiency: The binary codes require 64x to 2500x less storage capacity compared to traditional features like Bow-SIFT or AlexNet-based vectors.
  • Accuracy and Robustness: RSS consistently outperformed cross-modal hashing methods (CMFH, CVH) across various viewpoint combinations. Furthermore, models pre-trained on CompCars showed excellent transferability to the noisier VeRi dataset.
Cumulative Matching Characteristics (CMC) comparison on the CompCars and ViRi datasets, showing RSS outperforming baseline methods.

Conclusion

By anchoring deep embeddings to a hierarchical attribute structure, RSS effectively captures view-invariant features for vehicle identification. The transition to Hamming space provides the necessary efficiency for large-scale surveillance without sacrificing retrieval precision. While the method currently relies on a predefined attribute hierarchy, its success suggests that ranked semantic distance approaches could be highly effective for other fine-grained image retrieval tasks.

Summary updated

BibTeX
@inproceedings{zheng2018fast,
  author = {Feng Zheng and Xin Miao and Heng Huang},
  title = {{Fast Vehicle Identification in Surveillance via Ranked Semantic Sampling Based Embedding}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/514},
}
Figure