Orientation-Aware Vehicle Re-Identification with Semantics-Guided Part Attention Network

Tsai-Shien Chen, Chih-Ting Liu, Chih-Wei Wu, Shao-Yi Chien

Abstract

Vehicle re-identification (re-ID) across non-overlapping camera views is challenged by dramatic viewpoint changes and high inter-class similarity. This paper presents a framework that leverages a Semantics-guided Part Attention Network (SPAN) to generate robust part masks under weak supervision and a Co-occurrence Part-attentive Distance Metric (CPDM) to focus comparisons on shared visible regions. The approach achieves state-of-the-art performance on major benchmarks like VeRi-776 and CityFlow-ReID by effectively handling orientation-induced variability.

Introduction

Matching the same vehicle across different surveillance cameras is a core task in intelligent transportation systems. However, it is plagued by two primary issues: high intra-class variability, where the same car looks different from various angles, and high inter-class similarity, where different cars of the same model appear identical. While existing methods often rely on expensive, manually annotated keypoints to guide attention, this work proposes a weakly supervised method to extract discriminative part-level features without pixel-perfect labels.

Methodology

The proposed framework consists of two primary components: the Semantics-guided Part Attention Network (SPAN) for feature extraction and the Co-occurrence Part-attentive Distance Metric (CPDM) for robust matching.

The complete architecture of the proposed framework, illustrating the flow from input image to part-based feature extraction and final distance metric calculation.

Semantics-guided Part Attention Network (SPAN)

SPAN learns to generate attention masks for the front, rear, and side of a vehicle using only image-level viewpoint labels (e.g., "front-side"). This weakly supervised approach avoids the need for manual keypoint annotations. To ensure the generated masks are semantically meaningful and spatially distinct, the network is optimized using three specific constraints:

  • Mask Reconstruction Loss: Forces the sum of part masks to match the overall vehicle shape.
  • Area Constraint Loss: Prevents any single mask from dominating the entire vehicle area.
  • Spatial Diversity Loss: Minimizes overlap between different semantic parts (e.g., front vs. rear).

During feature extraction, the authors found that concatenating these part features into a single high-dimensional vector (2560-D) preserves subtle details better than compressing them through additional layers, leading to superior performance.

Co-occurrence Part-attentive Distance Metric (CPDM)

A significant challenge in vehicle re-ID is comparing images with non-overlapping viewpoints. CPDM addresses this by dynamically weighting the distance calculation based on the visibility of parts in both the query and gallery images.

Detailed logic of the Co-occurrence Attentive Module, showing how attentive weights are derived from the product of area ratios of visible parts in the input and gallery images.

As shown in the figure above, the module computes "attentive weights" by normalizing the product of area ratios. If a part is missing in either image (area ratio = 0), its weight becomes zero. This effectively filters out non-comparable features and focuses the model on co-occurring semantic regions, preventing the distance metric from being skewed by occluded or out-of-view parts.

Experiments and Results

The framework was evaluated on two major benchmarks:

  • VeRi-776: Achieved 94.0% Rank-1 accuracy and 68.9% mAP, significantly outperforming previous spatial-attention methods like VAMI (77.0% Rank-1).
  • CityFlow-ReID: Achieved 59.5% Rank-1 and 42.0% mAP. Notably, the model generalized well to this dataset even when pre-trained on VeRi-776 labels.

Ablation studies confirmed that all three SPAN loss functions are critical; removing any of them caused performance to drop to baseline levels, proving that these constraints are necessary to generate clean, useful attention masks.

Conclusion

The combination of semantics-guided attention and co-occurrence-based distance metrics provides a robust solution for orientation-aware vehicle re-ID. By leveraging weak supervision, the framework avoids the need for expensive manual labeling while achieving state-of-the-art results. Future work may involve refining viewpoint granularity to handle more specific angles and sub-parts.

Summary updated

BibTeX
@inproceedings{chen2020orientation,
  author = {Tsai-Shien Chen and Chih-Ting Liu and Chih-Wei Wu and Shao-Yi Chien},
  title = {{Orientation-Aware Vehicle Re-Identification with Semantics-Guided Part Attention Network}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58536-5\_20},
}
Figure