Learning Coarse-to-Fine Structured Feature Embedding for Vehicle Re-Identification

Haiyun Guo, Chaoyang Zhao, Zhiwei Liu, Jinqiao Wang, Hanqing Lu

Abstract

Vehicle re-identification (re-ID) is a critical task in intelligent transportation systems, requiring the identification of specific vehicles across non-overlapping camera views. This paper addresses the challenges of high intra-class variation and low inter-class variation by proposing a coarse-to-fine (C2F) ranking loss. This approach learns a structured feature embedding that simultaneously optimizes for vehicle model classification and multi-level ranking. To facilitate large-scale research, the authors introduce Vehicle-1M, a massive dataset containing nearly one million images. Experimental results demonstrate that the proposed C2F-Rank method significantly outperforms state-of-the-art techniques on multiple benchmarks.

Introduction

Vehicle re-identification is often described as a "needle in a haystack" problem. It faces two primary hurdles: complex visual variations and data scarcity. Images of the same vehicle can appear vastly different due to changes in lighting and viewpoint (high intra-class variation). Conversely, different vehicles of the same make and model look nearly identical, distinguishable only by subtle cues like inspection stickers or minor scratches (low inter-class variation).

Visualizing the challenge: subtle differences between similar vehicle models.

Previous methods often focused on separating different vehicles but neglected the hierarchical relationship between vehicle models and individual identities.

Methods

The core contribution is a Structured Deep Feature Embedding trained using a composite Coarse-to-Fine Ranking Loss. The model utilizes a GoogLeNet architecture to map images into a $d$-dimensional hypersphere where Euclidean distance represents semantic similarity.

The Structured Feature Embedding framework using a CNN and C2F ranking loss.

The loss function ($L$) is a weighted sum of four components:

  • Classification Loss ($C$): A standard cross-entropy loss for vehicle model identification, providing a "coarse" clustering.
  • Coarse-Grained Ranking Loss ($R_c$): Ensures distances between vehicles of the same model are smaller than those of different models.
  • Fine-Grained Ranking Loss ($R_f$): Pushes images of the same specific vehicle closer together while maintaining a margin from different vehicles of the same model.
  • Pairwise Loss ($P$): Pulls all images of the exact same vehicle toward a single point in the feature space to maximize compactness.

Datasets

The authors utilized two primary datasets:

  • VehicleID: A large-scale dataset with ~221k images.
  • Vehicle-1M: A new dataset introduced in this work, containing 936,051 images of 55,527 unique vehicles across 400 refined vehicle models. It captures diverse real-world surveillance scenarios, including day/night shots and various camera angles.

Results

The proposed "C2F-Rank" method significantly outperformed existing state-of-the-art methods like DRDL. On the VehicleID small test set, it achieved a Top-1 match rate of 61.1%, compared to DRDL's 49.0%. On Vehicle-1M, it reached a Top-1 match rate of 67.1% and a Mean Average Precision (MAP) of 87.1%. Ablation studies confirmed that each component of the loss function contributes to the overall performance, with the combination of classification and hierarchical ranking providing the most robust results.

Conclusion

By explicitly modeling the hierarchy from vehicle model to individual identity, the network learns to ignore "distractor" similarities between different cars of the same model. The use of adaptive marginal sampling focuses training on the hardest examples, which is crucial for fine-grained discrimination. While the method relies on detailed labels, it provides a powerful framework for high-precision vehicle re-identification in large-scale surveillance data.

Summary updated

BibTeX
@inproceedings{guo2018learning,
  author = {Haiyun Guo and Chaoyang Zhao and Zhiwei Liu and Jinqiao Wang and Hanqing Lu},
  title = {{Learning Coarse-to-Fine Structured Feature Embedding for Vehicle Re-Identification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.12237},
}
Figure