Learning Deep Neural Networks for Vehicle Re-ID with Visual-spatio-temporal Path Proposals

08/13/2017 ∙ by Yantao Shen, et al. ∙ SenseTime Corporation The Chinese University of Hong Kong 0

Vehicle re-identification is an important problem and has many applications in video surveillance and intelligent transportation. It gains increasing attention because of the recent advances of person re-identification techniques. However, unlike person re-identification, the visual differences between pairs of vehicle images are usually subtle and even challenging for humans to distinguish. Incorporating additional spatio-temporal information is vital for solving the challenging re-identification task. Existing vehicle re-identification methods ignored or used over-simplified models for the spatio-temporal relations between vehicle images. In this paper, we propose a two-stage framework that incorporates complex spatio-temporal information for effectively regularizing the re-identification results. Given a pair of vehicle images with their spatio-temporal information, a candidate visual-spatio-temporal path is first generated by a chain MRF model with a deeply learned potential function, where each visual-spatio-temporal state corresponds to an actual vehicle image with its spatio-temporal information. A Siamese-CNN+Path-LSTM model takes the candidate path as well as the pairwise queries to generate their similarity score. Extensive experiments and analysis show the effectiveness of our proposed method and individual components.



There are no comments yet.


page 3

page 8

This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.

1 Introduction

Vehicle recognition is an active research field in computer vision, which includes applications such as vehicle classification 

[42, 35, 26], vehicle detection [31], and vehicle segmentation [30]. Vehicle re-identification (re-ID), which aims at determining whether two images are taken from the same vehicle, has recently drawn increasing attention from the research community  [10, 45, 27]. It has important applications in video surveillance, public security, and intelligent transportation.

(a) Similar vehicle observed at
(b) No similar vehicle observed at
Figure 1: Illustration of spatio-temporal path information as important prior information for vehicle re-identification. (a) For vehicles with the same ID at and , it has to be observed at . (b) If a vehicle with similar appearance and proper time is not observed at , vehicles at and are unlikely to be the same vehicle.

Derived from person re-identification algorithms~[1, 3, 12], most existing vehicle re-identification approaches [10, 45, 27] rely only on appearance information. Such a problem setting is particularly challenging, since different cars could have very similar colors and shapes, especially for those belonging to the same manufacturer. Subtle cues for identification, such as license plates and special decorations, might be unavailable due to non-frontal camera viewpoints, low resolution, or poor illumination of the vehicle images. Therefore, it is not practical to use only appearance information for accurate vehicle re-identification.

To cope with such limitations, there are preliminary attempts on incorporating spatio-temporal information of the input images for more accurate vehicle re-identification. In [28], Liu utilized the time and geo-location information for each vehicle image. A spatio-temporal affinity is calculated between every pair of images. However, it favors pairs of images that are close to each other in both spatial and temporal domains. Such a spatio-temporal regularization is obviously over-simplified. More importantly, vital spatio-temporal path information of the vehicles provided by the dataset is ignored. The necessity of such spatio-temporal path prior is illustrated in Figure 1. If a vehicle is observed at both camera and , the same vehicle has to appear at camera as well. Therefore, given a pair of vehicle images at location and , if an image with similar appearance is never observed at camera at a proper time, their matching confidence should be very low.

In this paper, we propose to utilize such spatio-temporal path information to solve the problem. The main contribution of our method is two-fold. (1) We propose a two-stage framework for vehicle re-identification. It first proposes a series of candidate visual-spatio-temporal paths with the query images as the starting and ending states. In the second stage, a Siamese-CNN+Path-LSTM network is utilized to determine whether each query pair has the same vehicle identity with the spatio-temporal regularization from the candidate path. In this way, all the visual-spatio-temporal states along the candidate path are effectively incorporated to estimate the validness confidence of the path. Such information is for the first time explored for vehicle re-identification. (2) To effectively generate visual-spatio-temporal path proposals, we model the paths by chain MRF, which could be optimized efficiently by the max-sum algorithm. A deep neural network is proposed to learn the pairwise visual-spatio-temporal potential function.

2 Related Works

Vehicle re-identification. Because of the quick advances of person re-identification approaches, vehicle re-identification started to gain attentions in recent years. Feris  [10]

proposed an approach on attribute-based search of vehicles in surveillance scenes. The vehicles are classified by different attributes such as car types and colors. The retrieval is then conducted by searching vehicles with similar attributes in the database. Dominik  

[45] utilized 3D bounding boxes for rectifying car images and then concatenated color histogram features of pairs of vehicle images. A binary linear SVM is trained to verify whether the pair of images have the same identity or not. Liu  [27, 28] proposed a vehicle re-identification dataset VeRi-776 with a large number of cars captured by 20 cameras in a road network. Vehicle appearances, spatio-temporal information and license plates are independently used to learn the similarity scores between pairs of images. For the appearance cues, a deep neural network is used to estimate the visual similarities between vehicle images. Other vehicle recognition algorithms mainly focused on fine-grained car model classification [35, 26, 42] instead of identifying the vehicles with the same or different identities.

Deep neural networks.

 In recent years, convolutional deep neuron networks have shown their effectiveness in large-scale image classification 

[22], object detection [23] and visual relationship detection [25]

. For sequential data, the family of Recurrent Neural Networks including Long-Short Term Memory Network(LSTM) 

[14] and Gated Recurrent Neural Network [4] have achieved great success for tasks including image captioning [18], speech recognition [11], visual question answering [2], person search [24], immediacy prediction [5], video classification [44] and video detection [17]. These works show that RNN is able to capture the temporal information in the sequential data and learn effective temporal feature representations, which inspires us to use LSTM network for learning feature representations for classifying visual-spatio-temporal paths.

Person re-identification.  Person re-identification is a challenging problem that draws increasing attention in recent years [1, 3, 12, 37]

. State-of-the-art person re-identification methods adopted deep learning techniques. Ahmed


designed a pairwise verification CNN model for person re-identification with a pair of cropped pedestrian images as input and employed a binary verification loss function for training. Xiao  

[40, 41]

trained CNN with classification loss to learn the deep feature of person. Ding  

[8] and Cheng   [3] trained CNN with triplet samples and minimized feature distances between the same person and maximize the distances between different people. Besides the feature learning, a large number of metric learning methods for person re-identification were also proposed [34, 32, 21, 38, 43]. For person re-identification in multi-camera system, Hamdoun  [12] proposed an approach that matches signatures based on interest-points descriptors collected on short video sequences for person re-identification scheme in multi-camera surveillance systems.

Spatio-temporal relations.  Spatio-temporal relations are widely exploited for objects association in multi-camera systems [12, 39, 7, 19, 16, 9, 33], Ellis  [9] presented a method to learn both the topological and temporal transitions from trajectory data which are obtained independently from single view target tracking in a multi-camera network. Neumann  [33] presented an approach that combines the structure and motion estimation in a unified framework to recover an accurate 3D spatio-temporal description of an object. Loy  [29] proposed an approach for multi-camera activity correlation analysis which estimates the spatial and temporal topology of the camera network.

Figure 2: Illustration of the overall framework. Given a pair of vehicle images, the visual-spatio-temporal path proposal is generated by optimizing a chain MRF model with a deeply learned potential function. The path proposal is further validated by the Path-LSTM and regularizes the similarity score by Siamese-CNN to achieve robust re-identification performance.

3 Approach

For vehicle re-identification with computer vision, cameras in a road network are needed to capture images of passing-by vehicles. Due to factors including inappropriate camera viewpoints, low resolution of the images and motion blurs of vehicles, car plate information might not always be available for solving the task. Given a pair of vehicle images with their spatio-temporal information, the similarity score between the two vehicle images is needed to determine whether the two images have the same identity. Each image is associated with three types of information, , visual appearance, the timestamp, and the geo-locatoin of the camera. We call such information the visual-spatio-temporal state of the vehicle images. Our proposed approach takes two visual-spatio-temporal states as input and outputs their similarity score with a two-stage framework, which is illustrated in Figure 2. In stage 1, instead of just considering the simple pairwise relations between two queries, our proposed approach first generates a candidate visual-spatio-temporal path with the two queries as starting and ending states. In stage 2, the candidate visual-spatio-temporal path acts as regularization priors and a Siamese-CNN+path-LSTM network is utilized to determine whether the queries have the same identity.

3.1 Visual-spatio-temporal path proposals

Given a pair of queries, existing vehicle or person re-identification algorithms mainly considers the pairwise relations between the queries, , the compatibility of the visual appearances and spatio-temporal states of the two queries. As illustrated in Figure 1, such pairwise relations are usually over-simplified and cannot effectively distinguish difficult cases in practice. The visual-spatio-temporal path information could provide vital information for achieving more robust re-identification. The problem of identifying candidate visual-spatio-temporal paths is modeled as chain Markov Random Fields (MRF). Given a pair of queries, candidate spatial paths are first identified with the their geo-locations as starting and ending locations. The visual-spatio-temporal states along the spatial paths are then optimized with the deeply learned pairwise potential function to generate candidate visual-spatio-temporal paths.

To obtain candidate spatial paths for a pair of starting and ending locations, all possible spatial paths that the same vehicle has passed by are collected from the training set. For a large road network, the multiple candidate spatial paths between every pair of locations could be pre-collected.

3.1.1 Chain MRF model for visual-spatio-temporal path proposal

From the set of candidate spatial paths, our approach proposes one candidate visual-spatio-temporal path for regularizing the vehicle re-identification result. The problem of identifying visual and temporal states along the candidate spatial paths is modeled as optimizing chain MRF models.

Let denote the number of cameras on a candidate spatial path, where each of the

cameras is associated with one of the random variables

on a chain MRF model. For the -th random variable (camera) , its domain is the set of all visual-spatio-temporal states (all images with their spatio-temporal information) at this camera, , where = is a triplet of the th visual image at the th camera, its timestamp , and the camera location .

Let and represent the visual-spatio-temporal states of the two queries. Obtaining the optimal visual-spatio-temporal path based on a candidate spatial path can be achieved by maximizing the following distribution,


where is the pairwise potential function of and being of the same car. Ideally, if and denote the states with the same vehicle identity, a proper potential function would have a large value, while small otherwise. The function is learned as a deep neural network and is introduced in details in the next subsection.

The above probability needs to be maximized with proper time constraints,

sub (3)

where and represent the indices of the optimal visual-spatio-temporal states for and , respectively. The above constraints state that the obtained visual-spatio-temporal path must be feasible in time, , the timestamps of vehicle images must be keep increasing along the path.

The distribution can be efficiently optimized by the max-sum algorithm, which is equivalent to dynamic programming for chain models [6]. The maximum of the probability can be written as,


After obtaining the optimal state for each random variable (camera) on the candidate spatial path, the candidate visual-spatio-temporal path is generated.

For a pair of queries, multiple candidate visual-spatial-temporal paths are obtained. we define an empirical averaged potential for the optimed solution of each candidate path,


where normalizes the overall confidence for candidate visual-spatio-temporal paths with different lengths. Then we choose the visual-spatio-temporal proposal among the candidate paths.

For every pair of queries, even if they do not have the same identity, the proposed algorithm always tries to generate the most feasible path in terms of both visual and spatio-temporal compatibility between neighboring cameras as the path proposals. Some examples of the candidate visual-spatio-temporal paths are shown in Figure 3.

For efficiency, when generating visual-spatio-temporal paths for all state pairs in the dataset, our method utilizes a systematic way to avoid redundant computation. For in- stance, suppose cameras and have two possible paths and . When calculating path proposals between queries on cameras and , the sub-paths and are also computed during the computation process, and can be reused by other queries on and . The details of time complexity analysis will be introduced in Section 4.4.

Figure 3: An example visual-spatio-temporal path proposal on the VeRi dataset [28] by our chain MRF model.
Figure 4: A Siamese-CNN is learned as the pairwise potential function for the chain MRF model, which takes a pair of visual-spatio-temporal states as inputs and estimates their pairwise similarity.

3.1.2 Deep neural networks as pairwise potential functions

The pairwise potential function in (1) evaluates the compatibility between two visual-spatio-temporal states for neighboring random variables and . We learn the potential function as a two-branch deep neural network, whose structure is illustrated in Figure 4. The visual branch and spatio-temporal branch estimate pairwise compatibility between pairwise visual and spatio-temporal states.

The visual branch (Siamese-Visual) is designed as a Siamese network with a shared ResNet-50 [13]. It takes two images and at cameras and

as inputs and utilizes features from the “global pooling” layers to describe their visual appearances. The visual similarity between the two images is computed as the inner-product of the two “global pooling” features followed by a sigmoid function.

The other branch computes the spatio-temporal compatibility. Given the timestamps and the two geo-locations of at cameras and , the input features of the branch are calculated as their time difference and spatial difference,


where denotes the timestamp of the -th state at camera . The scalar spatio-temporal compatibility is obtained by feeding the concatenated features,

, into a Multi-Layer Perception (MLP) with two fully-connected layers and a ReLU non-linearity function after the first layer and a sigmoid function after the second layer.

The outputs of the two branches are concatenated and input into a fully-connected layer with a sigmoid function to obtain the final compatibility between the two states, which takes all visual, spatial and temporal information into consideration.

For training the pairwise potential network, Siamese-CNN, we first pretrain the ResNet-50 network to classify vehicle identity with the classification cross-entropy loss function. All pairs of visual-spatio-temporal states at neighboring random variables (cameras) are then collected for finetuning the whole network. If a pair has the same vehicle identities, they are treated as positive samples, while the pairs with different identities are treated as negative ones. The positive-to-negative sampling ratio is set to 1:3. The two-branch network is trained with a 0-1 cross-entropy loss function and stochastic gradient descent.

(a) Invalid path. Empirical averaged potential: 0.946
(b) Valid path. Empirical averaged potential: 0.916
Figure 5: Examples of empirical averaged potential favoring longer paths. The invalid longer path in (a) has a higher averaged potential than the valid path in (b).

3.2 Siamese-CNN+Path-LSTM for query pair classification

Our proposed candidate visual-spatio-temporal path proposal algorithm generates the most feasible path for each query pair, even if they do not have the same identity. One naive solution of ranking the similarities of query pairs would be directly treating their maximum probability (Eq. (1)) or the empirical averaged potential (Eq. (7)) as the final similarity scores for ranking. However, there are limitations when either of the strategies is adopted. For calculating the maximum probability in Eq. (1), the partition function needs to be calculated, which is generally time-consuming. For the empirical averaged potential in Eq. (7), it is biased and would favor longer paths. An exmaple is illustrated in Figure 5. Given two pairs of negative queries with different path lengths, since the path proposal algorithm tries to generate most feasible paths for both pairs, there might be only one identity switch along each path. The empirical averaged confidence for the longer path would be higher because the low pairwise confidence would be diminished by a larger .

Given a pair of queries, we utilize their candidate visual-spatio-temporal path as priors to determine whether the query pair has the same identity or not with a Siamese-CNN+path-LSTM network. The network structure is illustrated in Figure 6. where the Siamese-CNN has the same structure as the overall network in Section 3.1.2. It directly takes the query pair as input and estimates the similarity between the queries.

Figure 6: The network structure of the Path-LSTM. It takes visual and spatio-temporal differences of neighboring states along the path proposal as inputs, and estimates the path validness score.

For the candidate visual-spatio-temporal path, a path-LSTM is adopted to judge whether the path is valid or not. The framework of path-LSTM network is shown in Figure 6. Each step of the path-LSTM processes a step along the candidate path and the length of the LSTM is therefore . At each step, the input features of the path-LSTM, , is the concatenation of visual difference , spatial difference , and temporal difference between the visual-spatio-temporal states at cameras and , followed by a fully-connected layer with 32 output neurons and a ReLU non-linearity function, , , where denotes the feature transformation by the fully-connected layer.

Given the visual-spatio-temporal states on the candidate path, the image and its associated time stamp is fixed at camera , where denotes the optimized index of the visual-spatio-temporal state. The visual difference is calculated as absolute difference between the visual features of and , which are obtained as the ResNet-50 global pooling features followed by a 32-neuron fully-connected layer and a ReLU function,


where denotes the feature transformation for the input images. The spatial difference is calculated as , and the temporal difference is


The LSTM consists of a memory cell and three control gates: input gate , output gate and forget gate at each time step . With the input feature , The LSTM updates the memory cell and hidden state with the following equations,


where represents the element-wise multiplication, and are the parameters.

The number of hidden neurons of our Path-LSTM is set to 32. The hidden feature of the Path-LSTM at the last step is fed into a fully-connected layer to obtain the valid-path confidence score, which is added with the pairwise similarity score generated by the Siamese-CNN to represent the final similarity score. In this way, the Path-LSTM provides important regularization for estimating final matching similarity.

Both the Siamese-CNN and Path-LSTM are pretrained separately and then finetuned jointly. Their training samples are prepared similarly to those for learning the pairwise potential function in Section 3.1.2. However, the training samples here are no longer restricted to only visual-spatio-temporal states from neighboring cameras but from any camera pair in the entire camera network. The Path-LSTM is first pretrained with the Adam algorithm [20]. The whole Siamese-CNN+Path-LSTM network is then finetuned in an end-to-end manner with stochastic gradient descent and 0-1 cross-entropy loss function.

4 Experiments

4.1 Dataset and evaluation metric

For evaluating the effectiveness of our vehicle re-identification framework, we conduct experiments on the VeRi-776 dataset [28], which is the only existing vehicle re-identification dataset providing spatial and temporal annotations. The VeRi-776 dataset contains over 50,000 images of 776 vehicles with identity annotations, image timestamps, camera geo-locations, license plates, car types and colors information. Each vehicle is captured by 2 to 18 cameras in an urban area of 1 during a 24-hour time period. The dataset is split into a train set consisting of 37,781 images of 576 vehicles, and a test set of 11,579 images belonging to 200 vehicles. A subset of 1,678 query images in the test set are used as to retrieve corresponding images from all other test images.

The mean average precision (mAP), top-1 accuracy and top-10 accuracy are chosen as the evaluation metric. Given each query image in the test image subset for retrieving other test images, the average precision for each query

is calculated by


where denotes the precision at cut-off , is an indication function equaling 1 if the item at rank is a matched vehicle image, zero otherwise, is the number for retrieval, and denotes the number of ground truth retrievals for the query. The mean average precision for all query images is then calculated by


where is the number of all queries (1,678 for the dataset). Following the experimental setup in Liu [28], for each query image, only images of the same vehicles from other cameras would be taken into account for calculating the mAP, top-1 and top-5 accuracies.

Since our proposed method generates one visual-spatio-temporal candidate path for each pair of query images, we can extend the evaluation metrics to the whole sequence of images. For every pair of query images that have the same vehicle identity, we obtain the vehicle’s actual visual-spatio-temporal path and compare it with our candidate path using Jaccard Similarity [15],


where is the set of retrieved images on the proposal path between the query pair, and is the set of the groundtruth images between them. We further define the average Jaccard Similarity for all query images,


4.2 Compared With Vehicle Re-ID methods

We compare our proposed approach with the state-of-the-art methods [27, 28] and design several baselines on the VeRi-776 dataset to evaluate the effectiveness of our proposed method.

  • Siamese-CNN+Path-LSTM denotes our final approach which takes pairs of query visual-spatio-temporal states for Siamese-CNN and proposed visual-spatio-temporal path for the Path-LSTM to generate the final similarity score. Note that our approach did not utilize the plate information in the images as that in [28].

  • FACT and FACT+Plate-SNN+STR. Liu [27] proposed the FACT model that combines deeply learned visual feature from GoogleNet [36], BOW-CN and BOW-SIFT feature to measure only the visual similarity between pairs of query images. In [28], they further integrated visual appearance, plate and spatio-temporal information for vehicle re-identification. For appearance similarity, the same FACT model is adopted. They utilized a Siamese Neural Network (Plate-SNN) to compare visual similarity between plate regions. The spatio-temporal similarity is computed as


    where and are the timestamps of two queries, is the space distance between two cameras, and and are the maximum time distance and space distance in the whole dataset.

  • Siamese-Visual. This baseline generates the similarity between a query pair with only pairwise visual information by using only the visual branch of the Siamese-CNN in Section 3.2. No spatio-temporal information is used for obtaining the similarity score.

  • Siamese-Visual+STR. Instead of learning spatio-temporal relations by deep neural networks, this baseline sums up the scores by the above Siamese-Visual and the spatial-temporal relation score (STR, Eq. (22) proposoed in [28]. The weight between the two terms are manually searched for the best performance.

  • Siamese-CNN. The baseline is the same as the Siamese-CNN in Section 3.2. Compared with the above baseline, it uses both visual and spatio-temporal information of the two queries for determine their similarity score. Candidate visual-spatio-temporal paths are not used in this baseline.

  • Chain MRF model. After obtaining the candidate visual-spatio-temporal path for a query pair by the chain MRF model in Section 3.1.1, we directly utilize the empirical average by Eq. (7) as the pairwise similarity of the query pair.

  • Path-LSTM only. The proposed Path-LSTM estimate the validness score of the proposed visual-spatio-temporal path. We test only use Path-LSTM result without combining it with the Siamese-CNN.

  • Siamese-CNN-VGG16. This is the same as Siamese-CNN but only replaces ResNet50 with VGG16.

  • Path-LSTM-VGG16. This is the same as Path-LSTM but only replaces Siamese-CNN with Siamese-CNN-VGG16.

  • Siamese-CNN-VGG16+Path-LSTM-VGG16. This is as same as Siamese-CNN+Path-LSTM but only replaces ResNet50 with VGG16.

Method mAP (%)
FACT [27] 18.49
FACT+Plate-SNN+STR [28] 27.77
Siamese-Visual 29.48
Siamese-Visual+STR 40.26
Siamese-CNN 54.21
Chain MRF model 44.31
Path-LSTM 54.49
Siamese-CNN-VGG16 44.32
Path-LSTM-VGG16 45.56
Siamese-CNN+Path-LSTM 58.27
Table 1: mAP by compared methods on the VeRi-776 dataset [28].
Method top-1 (%) top-5 (%)
FACT [27] 50.95 73.48
FACT+Plate-SNN+STR [28] 61.44 78.78
Siamese-Visual 41.12 60.31
Siamese-Visual+STR 54.23 74.97
Siamese-CNN 79.32 88.92
Chain MRF model 54.41 61.50
Path-LSTM 82.89 89.81
Siamese-CNN-VGG16 54.41 61.50
Path-LSTM-VGG16 47.79 62.63
50.95 61.62
Siamese-CNN+Path-LSTM 83.49 90.04
Table 2: Top-1 and top-5 accuracies by compared methods on the VeRi-776 dataset [28].
Figure 7: The CMC curves of different methods.

4.3 Experiment Results

The mAP, top-1 and top-5 accuracies of methods are listed in Tables 1 and 2. Figure 7 shows the CMC curves of the compared methods. Example vehicle re-identification results by our approach are shown in Figure 8.

Our proposed two-stage approach, Siamese-CNN+Path-LSTM, outperforms state-of-the-art methods [27, 28] and all compared baselines, which demonstrates the effectiveness of our overall framework and individual components. Compared with Siamese-CNN, which only takes pairwise visual and spatio-temporal information into account, our final approach has a gain of in terms of mAP and top-1 accuracy. Such a performance increase shows that the Path-LSTM with visual-spatio-temporal path proposal does provide vital priors for robustly estimating the vehicle similarities. Compared with Path-LSTM only, which only calculates path-validness scores with the proposed visual-spatio-temporal path, our final approach also has a increase in terms of mAP and top-1 accuracy. This is because to generate the candidate path, our proposed chain MRF model always tries to discover the most feasible visual-spatio-temporal path. The visual-spatio-temporal state changes along the paths might sometimes be subtle and difficult to be captured by only pairwise differences of states at neighboring cameras. The obvious state difference between the query pair can sometimes be more easily captured by the Siamese-CNN. Therefore, the Path-LSTM acts as a strong prior for regularizing the Siamese-CNN results and their combination shows the best retrieval performance.

Compared with the Chain MRF model, the Path-LSTM has a mAP gain and an increase of top-1 accuracy. Such results demonstrate that the empirical average is not a robust path-validness indicator of the candidate paths. Our trained Path-LSTM is able to capture more subtle state changes on the candidate path for estimating correct path-validness scores. Compared with Siamese-Visual, Siamese-CNN has significant gains on mAP ( ) and top-1 accuracy ( ). It demonstrates that, unlike person re-identification, the spatio-temporal information is vital for vehicle re-identification, where the visual differences between different vehicles might be subtle for vehicles with the same color. Compared with Siamese-Visual+STR, which adopts the spatio-temporal relation score in [28], our Siamese-CNN achieves more accurate retrieval performance. Our deep neural network is able to capture more complex spatio-temporal relations between query pairs.

Figure 8: Example vehicle re-identification results (top5) by our proposed approach. The true positive is in green box otherwise red. The three rows are results of Siamese-Visual, Siamese-CNN and Siamese-CNN+Path-LSTM.

The Path-LSTM shows strong capability on regularizing the retrieval results with candidate visual-spatio-temporal paths. The effectiveness of Path-LSTM relies on the correctness of the candidate paths. If the candidate path does correspond to the actual path, the Path-LSTM might have negative impact on the final similarity score. For all pairs of queries that have the same vehicle identities, we obtain their ground-truth visual-spatio-temporal paths and compare them with our proposed ones. The averaged Jaccard Similarity is calculated. Our proposed chain MRF model with deeply learned potential function achieves an AJS of 96.39%.

We also test replacing ResNet50 with VGG16 in our pipeline. Our proposed overall framework (Siamese-VGG16+ PathLSTM-VGG16) and individual components (Path-LSTM-VGG16) outperform our VGG16 baseline (Siamese-CNN-VGG16).

4.4 Time Complexity Analysis

In the worst case, all pairwise potentials need to be calculated, resulting a complexity of , where is the number of edges (connecting neighboring cameras) in the camera network, and is the average number of states at each camera. After that, the time complexity of dynamic programming for all path proposals is also , which utilizes the technique described in Section 3.1.1 to avoid redundant computation. Amortized over the total number of query pairs, each query pair has an averaged time complexity of . In practice, for testing, pairwise scores are calculated between 19.4 million query pairs (11579 galleries and 1678 queries). Because of our systematic way of avoiding redundant computation, each query pair only requires 0.016s on average.

5 Conclusions

In this paper, we proposed a two-stage framework for vehicle re-identification with both visual and spatio-temporal information. Existing methods ignored or used limited spatio-temporal information for regularizing the re-identification results. Our proposed approach incorporates important visual-spatial-temporal path information for regularization. A chain MRF model with deeply learned pairwise potential function is adopted to generate visual-spatio-temporal path proposals. Such candidate path proposals are evaluated by a Siamese-CNN+Path-LSTM to obtain similarity scores between pairs of queries. The proposed approach outperforms state-of-the-arts methods on the VeRi-776 dataset. Extensive component analysis of our framework demonstrates the effectiveness of our overall framework and individual components.

Acknowledgments. This work is supported in part by SenseTime Group Limited, in part by the General Research Fund through the Research Grants Council of Hong Kong under Grants CUHK14213616, CUHK14206114, CUHK14205615, CUHK419412, CUHK14203015, CUHK14239816, CUHK14207814, in part by the Hong Kong Innovation and Technology Support Programme Grant ITS/121/15FX, and in part by the China Postdoctoral Science Foundation under Grant 2014M552339.


  • [1] E. Ahmed, M. Jones, and T. K. Marks. An improved deep learning architecture for person re-identification. In

    Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition

    , pages 3908–3916, 2015.
  • [2] D. Bahdanau, K. Cho, and Y. Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014.
  • [3] D. Cheng, Y. Gong, S. Zhou, J. Wang, and N. Zheng. Person re-identification by multi-channel parts-based cnn with improved triplet loss function. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1335–1344, 2016.
  • [4] K. Cho, B. Van Merriënboer, D. Bahdanau, and Y. Bengio. On the properties of neural machine translation: Encoder-decoder approaches. arXiv preprint arXiv:1409.1259, 2014.
  • [5] X. Chu, W. Ouyang, W. Yang, and X. Wang. Multi-task recurrent neural network for immediacy prediction. In Proceedings of the IEEE International Conference on Computer Vision, pages 3352–3360, 2015.
  • [6] T. H. Cormen. Introduction to algorithms. MIT press, 2009.
  • [7] R. Cucchiara, A. Prati, and R. Vezzani. A multi-camera vision system for fall detection and alarm generation. Expert Systems, 24(5):334–345, 2007.
  • [8] S. Ding, L. Lin, G. Wang, and H. Chao. Deep feature learning with relative distance comparison for person re-identification. Pattern Recognition, 48(10):2993–3003, 2015.
  • [9] T. Ellis, D. Makris, and J. Black. Learning a multi-camera topology. In Joint IEEE Workshop on Visual Surveillance and Performance Evaluation of Tracking and Surveillance (VS-PETS), pages 165–171, 2003.
  • [10] R. S. Feris, B. Siddiquie, J. Petterson, Y. Zhai, A. Datta, L. M. Brown, and S. Pankanti. Large-scale vehicle detection, indexing, and search in urban surveillance videos. IEEE Transactions on Multimedia, 14(1):28–42, 2012.
  • [11] A. Graves and N. Jaitly. Towards end-to-end speech recognition with recurrent neural networks. In ICML, volume 14, pages 1764–1772, 2014.
  • [12] O. Hamdoun, F. Moutarde, B. Stanciulescu, and B. Steux. Person re-identification in multi-camera system by signature based on interest point descriptors collected on short video sequences. In Distributed Smart Cameras, 2008. ICDSC 2008. Second ACM/IEEE International Conference on, pages 1–6. IEEE, 2008.
  • [13] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 770–778, 2016.
  • [14] S. Hochreiter and J. Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997.
  • [15] P. Jaccard. Etude comparative de la distribution florale dans une portion des Alpes et du Jura. Impr. Corbaz, 1901.
  • [16] O. Javed, K. Shafique, Z. Rasheed, and M. Shah. Modeling inter-camera space–time and appearance relationships for tracking across non-overlapping views. Computer Vision and Image Understanding, 109(2):146–162, 2008.
  • [17] K. Kang, H. Li, T. Xiao, W. Ouyang, J. Yan, X. Liu, and X. Wang. Object detection in videos with tubelet proposal networks. In CVPR, 2017.
  • [18] A. Karpathy and L. Fei-Fei. Deep visual-semantic alignments for generating image descriptions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3128–3137, 2015.
  • [19] V. Kettnaker and R. Zabih. Bayesian multi-camera surveillance. In Computer Vision and Pattern Recognition, 1999. IEEE Computer Society Conference on., volume 2, pages 253–259. IEEE, 1999.
  • [20] D. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
  • [21] M. Koestinger, M. Hirzer, P. Wohlhart, P. M. Roth, and H. Bischof. Large scale metric learning from equivalence constraints. In Computer Vision and Pattern Recognition (CVPR), 2012 IEEE Conference on, pages 2288–2295. IEEE, 2012.
  • [22] A. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pages 1097–1105, 2012.
  • [23] H. Li, Y. Liu, W. Ouyang, and X. Wang. Zoom out-and-in network with recursive training for object proposal. CoRR, abs/1702.05711, 2017.
  • [24] S. Li, T. Xiao, H. Li, B. Zhou, D. Yue, and X. Wang. Person search with natural language description. In CVPR, 2017.
  • [25] Y. Li, W. Ouyang, X. Wang, and X. Tang. Vip-cnn: Visual phrase guided convolutional neural network. In CVPR, 2017.
  • [26] H. Liu, Y. Tian, Y. Yang, L. Pang, and T. Huang. Deep relative distance learning: Tell the difference between similar vehicles. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2167–2175, 2016.
  • [27] X. Liu, W. Liu, H. Ma, and H. Fu. Large-scale vehicle re-identification in urban surveillance videos. In Multimedia and Expo (ICME), 2016 IEEE International Conference on, pages 1–6. IEEE, 2016.
  • [28] X. Liu, W. Liu, T. Mei, and H. Ma. A deep learning-based approach to progressive vehicle re-identification for urban surveillance. In European Conference on Computer Vision, pages 869–884. Springer, 2016.
  • [29] C. C. Loy, T. Xiang, and S. Gong. Multi-camera activity correlation analysis. In Computer Vision and Pattern Recognition, 2009. CVPR 2009. IEEE Conference on, pages 1988–1995. IEEE, 2009.
  • [30] S. Mahendran and R. Vidal. Car segmentation and pose estimation using 3d object models. arXiv preprint arXiv:1512.06790, 2015.
  • [31] B. C. Matei, H. S. Sawhney, and S. Samarasekera. Vehicle tracking across nonoverlapping cameras using joint kinematic and appearance features. In Computer Vision and Pattern Recognition (CVPR), 2011 IEEE Conference on, pages 3465–3472. IEEE, 2011.
  • [32] B. McFee and G. R. Lanckriet. Metric learning to rank. In

    Proceedings of the 27th International Conference on Machine Learning (ICML-10)

    , pages 775–782, 2010.
  • [33] J. Neumann and Y. Aloimonos. Spatio-temporal stereo using multi-resolution subdivision surfaces. International Journal of Computer Vision, 47(1-3):181–193, 2002.
  • [34] S. Paisitkriangkrai, C. Shen, and A. van den Hengel. Learning to rank in person re-identification with metric ensembles. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1846–1855, 2015.
  • [35] J. Sochor, A. Herout, and J. Havel. Boxcars: 3d boxes as cnn input for improved fine-grained vehicle recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3006–3015, 2016.
  • [36] C. Szegedy, W. Liu, Y. Jia, P. Sermanet, S. Reed, D. Anguelov, D. Erhan, V. Vanhoucke, and A. Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1–9, 2015.
  • [37] X. Wang, G. Doretto, T. Sebastian, J. Rittscher, and P. Tu. Shape and appearance context modeling. In Computer Vision, 2007. ICCV 2007. IEEE 11th International Conference on, pages 1–8. IEEE, 2007.
  • [38] K. Q. Weinberger and L. K. Saul. Distance metric learning for large margin nearest neighbor classification. Journal of Machine Learning Research, 10(Feb):207–244, 2009.
  • [39] F. Wu, S. Li, T. Zhao, and K. N. Ngan. Model-based face reconstruction using sift flow registration and spherical harmonics. In Pattern Recognition (ICPR), 2016 23rd International Conference on, pages 1774–1779. IEEE, 2016.
  • [40] T. Xiao, H. Li, W. Ouyang, and X. Wang. Learning deep feature representations with domain guided dropout for person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1249–1258, 2016.
  • [41] T. Xiao, S. Li, B. Wang, L. Lin, and X. Wang. Joint detection and identification feature learning for person search. In CVPR, 2017.
  • [42] L. Yang, P. Luo, C. Change Loy, and X. Tang. A large-scale car dataset for fine-grained categorization and verification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3973–3981, 2015.
  • [43] D. Yi, Z. Lei, S. Liao, and S. Z. Li. Deep metric learning for person re-identification. In Pattern Recognition (ICPR), 2014 22nd International Conference on, pages 34–39. IEEE, 2014.
  • [44] J. Yue-Hei Ng, M. Hausknecht, S. Vijayanarasimhan, O. Vinyals, R. Monga, and G. Toderici. Beyond short snippets: Deep networks for video classification. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4694–4702, 2015.
  • [45] D. Zapletal and A. Herout. Vehicle re-identification for automatic video traffic surveillance. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 25–31, 2016.