Learning Deep Context-aware Features over Body and Latent Parts for Person Re-identification

Learning Deep Context-aware Features over Body and Latent Parts
for Person Re-identification

Dangwei Li, Xiaotang Chen, Zhang Zhang, Kaiqi Huang
CRIPACNLPR, CASIA  University of Chinese Academy of Sciences
CAS Center for Excellence in Brain Science and Intelligence Technology
{dangwei.li, xtchen, zzhang, kaiqi.huang}@nlpr.ia.ac.cn

Person Re-identification (ReID) is to identify the same person across different cameras. It is a challenging task due to the large variations in person pose, occlusion, background clutter, etc. How to extract powerful features is a fundamental problem in ReID and is still an open problem today. In this paper, we design a Multi-Scale Context-Aware Network (MSCAN) to learn powerful features over full body and body parts, which can well capture the local context knowledge by stacking multi-scale convolutions in each layer. Moreover, instead of using predefined rigid parts, we propose to learn and localize deformable pedestrian parts using Spatial Transformer Networks (STN) with novel spatial constraints. The learned body parts can release some difficulties, e.g. pose variations and background clutters, in part-based representation. Finally, we integrate the representation learning processes of full body and body parts into a unified framework for person ReID through multi-class person identification tasks. Extensive evaluations on current challenging large-scale person ReID datasets, including the image-based Market1501, CUHK03 and sequence-based MARS datasets, show that the proposed method achieves the state-of-the-art results.

1 Introduction

Person re-identification aims to search for the same person across different cameras with a given probe image. It has attracted much attention in recent years due to its importance in many practical applications, such as video surveillance and content-based image retrieval. Despite of years of efforts, it still has many challenges, such as large variations in person pose, illumination, and background clutter. In addition, similar appearance of clothes among different people and imperfect pedestrian detection results further increase its difficulty in real applications.

Figure 1: The schematic of typical feature learning framework with deep learning. As shown in black dashed boxes, current approaches focus on the full body or rigid body parts for feature learning. Different from them, we use the spatial transformer networks to learn and localize pedestrian parts and use multi-scale context-aware convolutional networks to extract full-body and body-parts representations for ReID. Best viewed in color.

Most existing methods for ReID focus on developing a powerful representation to handle the variations of viewpoint, body pose, background clutter, etc[41, 10, 7, 43, 42, 18, 50, 51, 22, 27, 19], or learning an effective distance metric [16, 29, 57, 21, 22, 47, 2]. Some of existing methods learn both of them jointly [20, 44, 1, 31]. Recently, deep feature learning based methods [6, 5, 35, 34], which learn a global pedestrian feature and use Euclidean metric to measure two samples, have obtained the state-of-the-art results. With the increasing sample size of ReID dataset, the learning of features from multi-class person identification tasks [39, 52, 40, 55, 30], denoted as ID-discriminative Embedding (IDE) [55], has shown great potentials on current large-scale person ReID datasets, such as MARS [52] and PRW [55], where the IDE features are taken from the last hidden layer of Deep Convolutional Neural Networks (DCNN). In this paper, we aim to learn the IDE feature for person ReID using DCNN.

Existing DCNN models for person ReID typically learn a global full-body representation for input person image (Full body in Figure 1), or learn a part-based representation for predefined rigid parts (Rigid body parts in Figure 1) or learn a feature embedding for both of them. Although these DCNN models have obtained impressive results on existing ReID datasets, there are still two problems. First, for feature learning, current popular DCNN models typically stack single-scale convolution and max pooling layers to generate deep networks. With the increase of the number of layers, these DCNN models could easily miss some small scale visual cues, such as sunglasses and shoes. However, these fine-grained attributes are very useful to distinguish the pedestrian pairs with small inter-class variations. Thus these DCNN models are not the best choice for pedestrian feature learning. Second, due to the pose variations and imperfect pedestrian detectors, the pedestrian image samples may be misaligned. Sometimes they may have some backgrounds or lack some parts, e.g. legs. In these cases, for part-based representation, the predefined rigid grids may fail to capture correct correspondence between two pedestrian images. Thus the rigid predefined grids are far from robust for effective part-based feature learning.

In this paper, we propose to learn the features of full body and body parts jointly. To solve the first problem, we propose a Multi-Scale Context-Aware Network (MSCAN). As shown in Figure 1, for each convolutional layer of the MSCAN, we adopt multiple convolution kernels with different receptive fields to obtain multiple feature maps. Feature maps from different convolution kernels are concatenated as current layer’s output. To decrease the correlations among different convolution kernels, the dilated convolution [45] is used rather than general convolution kernels. Through this way, multi-scale context knowledge is obtained at the same layer. Thus the local visual cues for fine-grained discrimination is enhanced. In addition, through embedding contextual features layer-by-layer (convolution operation across layers), MSCAN can obtain more context-aware representation for input image. To solve the second problem, instead of using rigid body parts, we propose to localize latent pedestrian parts through Spatial Transform Networks (STN) [13], which is originally proposed to learn image transformation. To adapt it to the pedestrian part localization task, we propose three new constraints on the learned transformation parameters. With these constraints, more flexible parts can be localized at the informative regions, so as to reduce the distraction of background contents.

Generally, the features of full body and body parts are complementary to each other. The full-body features pay more attention to the global information while the body-part features care more about the local regions. To better utilize these two types of representations, in this paper, features of full body and body parts are concatenated to form the final pedestrian representation. In test stage, the Euclidean metric is adopted to compute the distance between two L2 normalized person representations for person ReID.

The contributions of this paper are summarized as follows: (a) We propose a multi-scale context-aware network to enhance the visual context information for better feature representation of fine-grained visual cues. (b) Instead of using rigid parts, we propose to learn and localize pedestrian parts using spatial transformer networks with novel prior spatial constraints. Experimental results show that fusing the global full-body and local body-part representations greatly improves the performance of person ReID.

2 Related Work

Typical person ReID methods focus on two key points: developing a powerful feature for image representation and learning an effective metric to make the same person be close and different persons far away. Recently, deep learning approaches have achieved the state-of-the-art results for person ReID [39, 52, 34, 54, 48]. Here we mainly review the related deep learning methods.

Deep learning approaches for person ReID tend to learn person representation and similarity (distance) metric jointly. Given a pair of person images, previous deep learning approaches learn each person’s features followed by a deep matching function from the convolutional features [20, 1, 4, 3] or the Fully Connected (FC) features [44, 37, 31]. In addition to the deep metric learning, some work directly learns image representation through pair-wise contrastive loss or triplet ranking loss, and use Euclidean metric for comparison [6, 5, 35, 34].

With the increasing sample size of ReID dataset, the IDE feature which is learned through multi-class person identification tasks, has shown great potentials on current large-scale person ReID datasets. Xiao et al[39] propose the domain guided dropout to learn features over multiple datasets simultaneously with identity classification loss. Zheng et al[52] learn the IDE feature for the video-based person re-identification. Xiao et al[40] and Zheng et al[55] learn the IDE feature to jointly solve the pedestrian detection and person ReID tasks. Schumann et al[30] learn the IDE feature for domain adaptive person ReID. The similar phenomenon has also been validated on face recognition [33].

As we know, previous DCNN models usually adopt the layer-by-layer single-scale convolution kernels to learn the context information. Some DCNN models [44, 5, 31] adopt rigid body parts to learn local pedestrian features. Different from them, we improve the classical models in two ways. Firstly, we propose to enhance the context knowledge through multi-scale convolutions at the same layer. The relationship among different context knowledge are learned by embedding feature maps layer-by-layer (convolution or FC operation). Secondly, instead of using rigid parts, we utilize the spatial transformer networks with proposed prior constraints to learn and localize latent human parts.

Figure 2: Overall framework of the proposed model. The proposed model consists three components: the global body-based feature learning with MSCAN, the latent pedestrian parts localization with spatial transformer networks and local part-based feature embedding, the fusion of full body and body parts for multi-class person identification tasks.

3 Proposed Method

The focus of this approach is to learn powerful feature representations to describe pedestrians. The overall framework of the proposed method is shown in Figure 2. In this section, we introduce our model from four aspects: a multi-scale context-aware network for efficient feature learning (Section 3.1), the latent parts learning and localization for better local part-based feature representation (Section 3.2), the fusion of global full-body and local body-part features for person ReID (Section 3.3), and our final objective function in Section 3.4.

3.1 Multi-scale Context-aware Network

Visual context is an important component to assist visual-related tasks, such as object recognition [24] and object detection [56, 46]. Typical convolutional neural networks model context information through hierarchical convolution and pooling [17, 11]. For person ReID task, the most important visual cues are visual attribute knowledge, such as clothes color and types. However, they have large variations in scale, shape and position, such as the hat/glasses at small local scale and the cloth color at the larger scale. Directly using bottom-to-up single-scale convolution and pooling may not be effective to handle these complex variations. Especially, with the increase number of layers, the small visual regions, such as hat, will be easily missed in top layers. To better learn these diverse visual cues, we propose the Multi-scale Context-Aware Network.

layer dilation kernel pad #filters output
input - - - - 316064
conv0 1 55 2 32 3216064
pool0 - 22 - - 328032
conv1 1/2/3 33 1/2/3 32/32/32 968032
pool1 - 22 - - 964016
conv2 1/2/3 33 1/2/3 32/32/32 964016
pool2 - 22 - - 96208
conv3 1/2/3 33 1/2/3 32/32/32 96208
pool3 - 22 - - 96104
conv4 1/2/3 33 1/2/3 32/32/32 96104
pool4 - 22 - - 9652
Table 1: Model architecture of MSCAN.

The architecture of the proposed MSCAN is shown in Tabel 1. It has an initial convolution layer with kernel size to capture the low-level visual features. Then we use four multi-scale convolution layers to obtain the complex image context information. In each multi-scale convolution layer, we use a convolution kernel with size . To obtain multi-scale receptive fields, we adopt dilated convolution [45] for the convolution filters. We use three different dilation ratios, i.e. 1,2 and 3, to capture different scale context information. The feature maps from different dilation ratios are concatenated along the channel axis to form the final output of the current convolution layer. Thus, the visual context information are enhanced explicitly. To integrate different context information together, the feature maps of current convolution layer are embedded through layer-by-layer convolution or FC operation. As a result, the visual cues at different scales are fused in a latent way. Besides, we adopt Batch Normalization [12] and ReLU neural activation units after each convolution layer.

In this paper, we use the dilated convolutions with dilation ratios 1, 2 and 3 instead of the classic convolution filters with kernel size , and . The main reason is that the classic convolution filters with kernel size , and overlap with each other at the same output position and produce redundant information. To make it clearer, we show the dilated convolution kernel (size ) with dilation ratio ranging from to in Figure 3. For the same output position which is shown in red circle, the convolution kernel with larger dilation ratio has larger receptive field, while only the center position is overlapped with other convolution kernels. This can reduce the redundant information among filters with different receptive fields.

In summary, as shown in Figure 2, we use MSCAN to learn the multi-scale context representation for full body and body parts. In addition, it is also used for feature learning in spatial transformer networks mentioned below.

Figure 3: Example of dilated convolution for the same input feature map. The convolutional kernel is and the dilation ratio from left to right is 1, 2, and 3. The blue boxes are effective positions for convolution at the red circle. Best viewed in color.

3.2 Latent Part Localization

Pedestrian parts are important in person ReID. Some existing work [10, 22, 44, 5] has explored rigid body parts to develop robust features. However, due to the unsatisfying pedestrian detection algorithms and large pose variations, the method of using rigid body parts for local feature learning is not the optimal solution. As shown in Figure 1, when using rigid body parts, the top part consists of large amount of background. This motivates us to learn and localize the pedestrian parts automatically.

We integrate STN [13] as the part localization net in our proposed model. The original STN is proposed to explicitly learn the image transformation parameters, such as translation and scale. It has two main advantages: (1) it is fully differentiable and can be easily integrated into existing deep learning frameworks, (2) it can learn to translate, scale, crop or warp an interesting region without explicit region annotations. These facts make it very suitable for pedestrian parts localization.

STN includes two components, the spatial localization network to learn the transformation parameters, and the grid generator to sample the input image using an image interpolation kernel. More details about STN can be seen in [13]. In our implementation of STN, the bilinear interpolation kernel is adopted to sample the input image. And four transformation parameters are used, where and are the horizontal and vertical scale transformation parameters, and and are the horizontal and vertical translation parameters. The image height and width are normalized to be in . Only scale and translation parameters are learned because these two types of transformations serve enough to crop the pedestrian parts effectively. The transformation is applied as an inverse warping to generate the output body part regions:


where and are the input image coordinates, and are the output part image coordinates, and indexes the pixels in the output body part image.

In this paper, we expect STN to learn three parts corresponding to the head-shoulder, upper body and lower body. Each part is learned by an independent STN from the original pedestrian image. For the spatial localization network, firstly we use MSCAN to extract the global image feature maps. Then we learn the high-level abstract representation by a 128-dimension FC layer (FC_loc in Figure 2). At last, we learn the transformation parameters with a 4-dimension FC layer based on the FC_loc. The MSCAN and FC_loc are shared among three spatial localization networks. The grid generator can crop the learned pedestrian parts based on the learned transformation parameters. In this paper, the resolution of the cropped part image is .

For the part localization network, it is hard to learn three groups of parameters for part localization. There are three problems. First, the predicted parts from STN can easily fall into the same region, e.g., the center region of a person, and result in redundance. Second, the scale parameters can easily become negative and the pedestrian part will be mirrored vertically or horizontally or both. This is not consistent with general human cognition. Because few person will stand upside down in surveillance scenes. At last, the cropped parts may fall out of the person image, thus the network would be hard to converge. To solve the above problems, we propose three prior constraints on the transformation parameters in the part localization network.

The first constraint is for the positions of predicted parts. We expect the predicted parts to be near the prior center points, so that the learned parts would be complementary to each other. This is termed as the center constraint, which is formalized as follows:


where and are prior center points for each part. is the threshold to control the translation between estimated and prior center points. In our experiments, we set the prior center point () to , , and for each part. The threshold is set to .

The second one is the value range constraint on the predicted scale parameter. We hope the scale to be positive, so that the predicted parts have a reasonable extent. The value range constraint on the scale parameter is formalized as follows:


where is threshold parameter and is set to 0.1 in this paper.

The last one is to make the localization network focus on the inner region of an image. It is formalized as follows:


where is the boundary parameter. is set to 1.0 in our paper, which means the cropped parts should be inside the pedestrian image.

Finally the loss for the transformation parameters in the part localization network is described as follows:


where and are hyperparameters. The hyperparameters and are both set to 1.0 in our experiments.

3.3 Feature Extraction and Fusion

The features of full body and body parts are learned by separate networks and then are fused in a unified framework for multi-class person identification tasks. For the body-based representation, we use MSCAN to extract the global feature maps and then learn a 128-dimension feature embedding (denoted as FC_body in Figure 2). For the part-based representation, first, for each body part, we use the MSCAN to extract its feature maps and learn a 64-dimension feature embedding (denoted as FC_part1, FC_part2, FC_part3). Then, we learn a 128-dimension feature embedding (denoted as FC_part) based on features of each body part. The Dropout [32] is adopted after each FC layer to prevent overfitting. At last, the features of global full body and local body parts are concatenated to be a 256-dimension feature as the final person representation.

3.4 Objective Function

In this paper, we adopt the softmax loss as the objective function for multi-class person identification tasks.


where is the index of person images, is the feature of -th sample, is the identity of -th sample, is the number of person images, is the number of person identities, is the classifier for -th identity.

For the overall network training, we use the classification and localization loss jointly. The final objective function is as follows.


where the is the hyperparameter, which is set to 0.1 in our experiments.

4 Experiments

In this paragraph, the datasets and evaluation protocols are introduced in Section 4.1. Implementation details are described in Section 4.2. Comparisons with state-of-the-art methods are discussed in Section 4.3. The effectiveness of proposed model is analyzed in Section 4.4 and Section 4.5. Cross-dataset evaluation is described in Section 4.6.

4.1 Datasets and Protocols

Datasets. In this paper, we evaluate our proposed method on current largest person ReID datasets, including Market1501 [53], CUHK03 [20] and MARS [52]. We do not directly train our model on small datasets, such as VIPeR [9]. It would be easily overfitting and insufficient to learn such a large capacity network on small datasets from scratch. However, we give some results through fine-tuneing the model from Market1501 to VIPeR and make cross-dataset ReID on VIPeR for generalization validation. Related experimental results are discussed in Section 4.6.

Market1501: It contains 1,501 identities which are captured by six manually set cameras. There are 32,368 pedestrian images in total. Each person has 3.6 images on average at each viewpoint. It provides two types of images, including cropped and automatically detected pedestrians by the Deformable Part based Model (DPM) [8]. Following  [53], 751 identities are used for training and the rest 750 identities are used for testing.

CUHK03: It contains 1,360 identities which are captured by six surveillance cameras in campus. Each identity is captured by two disjoint cameras. Totally it consists of 13,164 person images and each identity has about 4.8 images at each viewpoint. This dataset provides two types of annotations, including manually annotated bounding boxes, and bounding boxes detected using DPM. We validate our proposed model on both types of data. Following [20], we use 1,260 person identities for training and the rest 100 identities for testing. Experiments are conducted 20 times and the mean result is reported.

MARS: It is the largest sequence-based person ReID dataset. It contains 1,261 identities with each identity captured by at least two cameras. It consists of 20,478 tracklets and 1,191,003 bounding boxes. Following [52], we use 625 identities for training and the rest 631 identities for testing.

Protocols. Following original evaluation protocols in each dataset, we adopt three evaluation protocols for fair comparison with existing methods. The first one is Cumulated Matching Characteristics (CMC) which is adopted on the CUHK03 and MARS datasets. The second one is Rank-1 identification rate on the Market1501 dataset. The third one is mean Average Precision (mAP) on the Market1501 and MARS datasets. mAP considers both precision and recall rate, which could be complementary to CMC.

4.2 Implementation Details

Model: We try to learn the pedestrian representation through multi-class person identification tasks using full body and body parts. To evaluate the effectiveness of full body and body parts independently, we extract two sub-models from the whole network of Figure 2. The first one only uses the full body to learn the person representation with identity classification loss. The second one only uses the parts to learn the person representation with identity classification and body parts localization loss. For person re-identification, we use the L2 normalized person representation and Euclidean metric to measure the distance between two pedestrian samples.

Optimization: Our model is implemented based on Caffe [14]. We use all the available training identities for training and randomly select one sample for each identity for validation. As the dataset can be quite large, in practice we use a stochastic approximation of the objective function. Training data is randomly divided into mini-batches with a batch size of 64. The model performs forward propagation on each mini-batch and computes the loss. Backpropagation is then used to compute the gradients on each mini-batch and the weights are updated with stochastic gradient descent. We start with a base learning rate of and gradually decrease it after each iterations. It should be noted that the learning rate of part localization network is 1% of that in feature learning network. We use a momentum of and weight decay . For overall network training, we initialize the network using pretrained body-based and part-based model and then follow the same training strategy as described above. We use the model at iterations for testing.

Data Preprocessing: For each image, we resize it to , subtract the mean value on each channel (B, G and R), and then normalize it with scale for network training. To prevent overfitting, we randomly reflect each image horizontally in the training stage.

4.3 Comparison with State-of-the-art Methods

Market1501: For the Market1501 dataset, several state-of-the-art methods are compared, including Bag of Words (BOW) [53], Weighted Approximate Rank Component Analysis (WARCA) [15], Discriminative Null Space (DNS) [47], Spatially Constrained Similarity function on Polynomial feature map (SCSP) [2], and deep learning based approaches, such as PersonNet [38], Comparative Attention Network (CAN) [25], Siamese Long Short-Term Memory (S-LSTM) [35], Gated Siamese Convolutional Neural Network (Gate-SCNN) [34]. The experimental results are shown in Table 2.

Compared with existing full body-based convolutional neural networks, such as CAN and Gate-SCNN, the proposed network structure can better capture pedestrian features with multi-class person identification tasks. Our full-body representation improves Rank-1 identification rate by 9.57% on the state-of-the-art results produced by the Gate-CNN in single query. Compared with the full body, our body-part representation increase 0.80%. The main reason is that the pedestrians detected by DPM consists much more background information and the part-based representation can better reduce the influences of background clutter.

The full-body and body-part representations are complementary to each other. The full-body representation cares more about the global information, such as the background and body shape. The body-part representation pays more attention to parts, such as head, upper body and lower body. As shown in Table 2, the fusion model of full body and body parts improves Rank-1 identification rate by more than 4.00% compared with the body and parts-based models separately in single query. The mAP improves about 17.98% compared with the best result produced by Gate-CNN.

Query Single query Multiple query
Evaluation metrics R1 mAP R1 mAP
BOW [53] 34.38 14.1 42.64 19.47
BOW + HS [53] - - 47.25 21.88
WARCA [15] 45.16 - - -
PersonNet [38] 37.21 26.35 - -
S-LSTM [35] - - 61.6 35.3
SCSP [5] 51.9 26.35 - -
CAN [liu2017end] 48.24 24.43 - -
DNS [47] 55.43 29.87 71.56 46.03
Gate-SCNN [34] 65.88 39.55 76.04 48.45
Our-Part 76.25 53.33 84.12 62.90
Our-Body 75.45 52.41 83.43 62.03
Our-Fusion 80.31 57.53 86.79 66.70
Table 2: Experimental results on the Market1501 dataset. - means that no reported results are available.

CUHK03: For the CUHK03 dataset, we compare our method with many existing approaches, including Filter Pair Neural Networks (FPNN) [20], Improved Deep Learning Architecture (IDLA) [1], Cross-view Quadratic Discriminant Analysis (XQDA) [22], PSD constrained asymmetric metric learning (denoted as MLAPG) [23], Sample-Specific SVM (SS) [49], Single image and Cross image representation (SI-CI) [36], Embedding Deep Metric (EDM) [31], Domain Guided Dropout (DGD) [39], DNS, S-LSTM and Gate-SCNN. On this dataset, we conduct experiments on both the detected and the labeled datasets. As presented in previous work [20], we use the CMC curve in the single shot case to evaluate the performance. The overall results are shown in the Table 3 and Table 4. The full CMC curves are shown in supplementary materials.

Compared with metric learning methods, such as the state-of-the-art approach DNS, the proposed fusion model improves the Rank-1 identification rate by 11.66% and 13.29% on the labeled and detected datasets respectively. Compared with the similar multi-class person identification network DGD, the Rank-1 identification rate improves by 1.63% using our fusion model on the labeled dataset. It should be noted that we only use the labeled sets for training, while the DGD is trained on both the labeled and detected datasets. This demonstrates the effectiveness of the proposed model.

Dataset CUHK03 detected
Rank 1 5 10 20
FPNN [20] 19.89 50.00 64.00 78.50
IDLA [1] 44.96 76.01 83.47 93.15
XQDA [22] 46.25 78.90 88.55 94.25
MLAPG [23] 51.15 83.55 92.05 96.90
SS-SVM [49] 51.20 80.80 89.60 95.50
SI-CI [36] 52.17 84.30 92.30 95.00
DNS [47] 54.70 84.75 94.80 95.20
S-LSTM [35] 57.30 80.10 88.30 -
Gate-SCNN [34] 61.80 80.90 88.30 -
EDM [31] 52.09 82.87 91.78 97.17
Our-Part 62.74 88.53 93.97 97.21
Our-Body 64.95 89.82 94.58 97.56
Our-Fusion 67.99 91.04 95.36 97.83
Table 3: Experimental results on the CUHK03 detected dataset.
Dataset CUHK03 labeled
Rank 1 5 10 20
FPNN [20] 20.65 51.50 66.50 80.00
IDLA [1] 54.74 86.50 93.88 98.10
XQDA [22] 52.20 82.23 92.14 96.25
MLAPG [23] 57.96 87.09 94.74 98.00
Ensemble [28] 62.10 89.10 94.80 98.10
SS-SVM [49] 57.00 85.70 94.30 97.80
DNS [47] 62.55 90.05 94.80 98.10
EDM [31] 61.32 88.90 96.44 99.94
DGD [39] 72.58 91.59 95.21 97.72
Our-Part 69.41 92.68 96.68 99.02
Our-Body 71.88 93.66 97.46 99.18
Our-Fusion 74.21 94.33 97.54 99.25
Table 4: Experimental results on the CUHK03 labeled dataset.

MARS: This dataset is the largest sequence-based person ReID dataset. On this dataset, we compare the proposed method with several classical methods, including Keep It as Simple and straightforward Metric (KISSME) [16], XQDA [22], and CaffeNet [17]. Similar to previous work [52], both single query and multiple query are evaluated on MARS. The overall experimental results on the MARS are shown in Table 5 and Table 6. The full CMC curves are shown in supplementary materials.

Compared with CaffeNet, a similar multi-class person identification network, our body-based model improves the Rank-1 identification rate by 2.93% and mAP by 4.22% using XQDA in single query. It should be noticed that our network does not use any pre-training with additional data. Usually deep learning network can obtain better results when pretrained with on ImageNet classification task. Our fusion model improves Rank-1 identification rate and mAP by 6.47% and by 8.45% in single query. This illustrates the effectiveness of our model.

Query Single query
Evaluation metrics 1 5 20 mAP
CNN+Eulidean [52] 58.70 77.10 86.80 40.40
CNN+KISSME [52] 65.00 81.10 88.90 45.60
CNN+XQDA [52] 65.30 82.00 89.00 47.60
Our-Fusion+Eulidean 68.38 84.19 91.52 51.13
Our-Fusion+KISSME 69.24 85.15 92.17 53.00
Our-Part+XQDA 66.62 82.07 90.76 49.74
Our-Body+XQDA 68.23 83.99 92.17 51.82
Our-Fusion+XQDA 71.77 86.57 93.08 56.05
Table 5: Experimental results on the MARS with single query.
Query Multiple query
Evaluation metrics 1 5 20 mAP
CNN+KISSME+MQ [52] 68.30 82.60 89.40 49.30
Our-Fusion+Euclidean+MQ 78.28 91.97 96.87 61.62
Our-Fusion+KISSME+MQ 80.51 93.18 97.22 63.50
Our-Fusion+XQDA+MQ 83.03 93.69 97.63 66.43
Table 6: Experimental results on the MARS with multiple query.

4.4 Effectiveness of MSCAN

To determine the effectiveness of MSCAN, we explore four variants of MSCANs to learn IDE feature based on the whole body image, which is denoted as MSCAN-, . is the number of dilation ratios. For example, MSCAN- means for each convolution layer in Conv1-Conv4, there are three convolution kernels with dilation ratio 1, 2, and 3 respectively. With the increase of , the MSCAN captures larger context information at the same convolution layer.

The experimental results based on these four types of MSCANs on the Market1501 dataset are shown in Table 7. As we can see, with the increase of the number of dilation ratios, the Rank-1 identification rate and mAP improve stably in single query case. For multiple query case, which means fusing all images belonging to the same query person at the same camera through average pooling in feature space, the Rank-1 identification rate and mAP also improves step by step. However, the Rank-1 identification rate and mAP increase not much when increase from 3 to 4. We think there is a suitable number of dilation ratios for feature learning. Considering the model complexity and accuracy improvements in Rank-1 identification rate, we adopt the MSCAN-3 as our final MSCAN model in this paper.

Query type Single query Multiple query
Evaluation metrics Rank-1 mAP Rank-1 mAP
MSCAN-1 65.38 41.85 75.21 51.14
MSCAN-2 72.21 49.19 82.22 59.03
MSCAN-3 75.45 52.41 83.43 62.03
MSCAN-4 76.25 53.14 84.09 62.95
Table 7: Experimental results of four types of MSCAN using body-based representation for ReID on the Market1501 dataset.

4.5 Effectiveness of Latent Part Localization

Learned parts vs. rigid parts To compare with popular rigid pedestrian parts, we divide the pedestrian into three overlapped regions as predefined rigid parts. We use the rigid body parts instead of the learned latent body parts for part-based feature learning. Experimental results with rigid and learned body parts are shown in Table 8. Compared with rigid body parts, the learned body parts improve Rank-1 identification rate and mAP by 3.27% and 3.73% in single query, and by 1.70% and by 2.67% in multiple query. This validate the effectiveness of learned person parts.

For better understanding the learned pedestrian parts, we visualize the localized latent parts in Figure 4 using our fusion model. For these detected person with large background (the first row in Figure 4), the proposed model can learn foreground information with complementary latent pedestrian parts. As we can see, the learned parts consist of three main components, including upper body, middle body (combination of upper body and lower body), and lower body. Similar results can be achieved when original detection pedestrians contain less background or occlusion (the second row in Figure 4). It is easy to see that, the automatically learned pedestrian parts are not strictly head-shoulder, upper body and lower-body. But it indeed consists of these three parts with large overlap. Compared with rigid parts, the proposed model can automatically localize the appropriate latent parts for feature learning.

Figure 4: Six samples of original image, rigid predefined parts and learned latent pedestrian parts. Samples in each column are the same person with different backgrounds. Best viewed in color.
Query type Single query Multiple query
Evaluation metrics Rank-1 mAP Rank-1 mAP
Rigid parts 72.98 49.60 82.42 60.23
Latent parts 76.25 53.33 84.12 62.90
Table 8: Experimental results of rigid parts and learned parts for ReID on the Market1501 dataset.

Effectiveness of localization loss To evaluate the effectiveness of the proposed constraints on the latent part localization network, we conduct additional experiments by adding or deleting proposed in the training stage of body parts network for ReID. Experimental results are shown in Table 9. As we can see, with the additional , the Rank-1 accuracy increases by 9.03%. We owe the improvements to the effectiveness of the proposed constraints on the part localization network.

Query type Single query Multiple query
Evaluation metrics Rank-1 mAP Rank-1 mAP
67.22 45.27 77.55 55.40
76.25 53.33 84.12 62.90
Table 9: The influences of on part-based network on the Market1501 dataset.

4.6 Cross-dataset Evaluation

Similar with typical image classification task with CNN, our approach requires large scale of data, not only more identities, but also more instances for each identity. So we do not train the proposed model on each single small person ReID dataset, such as VIPeR. Instead, we conduct cross-dataset evaluation from the pretrained model on the Market1501, CUHK03 and MARS datasets to the VIPeR dataset. The experimental results are shown in Table 10. Compared with other methods, such as Domain Transfer Rank Support Vector Machines [26] and DML [44], the models trained on large-scale datasets have better generalization ability and have better Rank-1 identification rate.

To take further analysis of the proposed method, we also fine-tune the model from large dataset Market1501 to small dataset VIPeR. Experimental results are shown in Table 11. Our fusion-based model obtains better Rank-1 identification rate than existing deep models, e.g. IDLA [1] (34.8%), Gate-SCNN [34] (37.8%), SI-CI [36] (35.8%), and achieves comparable results with DGD [39] (38.6%).

Methods Training Set 1 10 20 30
DTRSVM [26] i-LIDS 8.26 31.39 44.83 53.88
DTRSVM [26] PRID 10.90 28.20 37.69 44.87
DML [44] CUHK Campus 16.17 45.82 57.56 64.24
Ours-Fusion CUHK03 detected 17.30 44.58 55.51 61.77
Ours-Fusion CHUK03 labeled 19.44 49.99 60.78 66.74
Ours-Fusion MRAS 18.46 43.65 52.96 59.34
Ours-Fusion Market1501 22.21 47.24 57.13 62.26
Table 10: Cross-dataset person ReID on the VIPeR dataset
Method Rank-1 Rank-5 Rank-10 Rank-20
Our-Part 32.70 57.49 67.62 78.90
Our-Body 33.12 60.23 72.05 82.59
Our-Fusion 38.08 64.14 73.52 82.91
Table 11: Experimental results on VIPeR through fine-tuneing the model from Market1501 to VIPeR.

5 Conclusion

In this work, we have studied the problem of person ReID in three levels: 1) a multi-scale context-aware network to capture the context knowledge for pedestrian feature learning, 2) three novel constraints on STN for effective latent parts localization and body-part feature representation, 3) the fusion of full-body and body-part identity discriminative features for powerful pedestrian representation. We have validated the effectiveness of the proposed method on current large-scale person ReID datasets. Experimental results have demonstrated that the proposed method achieves the state-of-the-art results.

Acknowledgement This work is funded by the National Key Research and Development Program of China (2016YFB1001005), the National Natural Science Foundation of China (Grant No. 61673375, Grant No. 61403383 and Grant No. 61473290), and the Projects of Chinese Academy of Science (Grant No. QYZDB-SSW-JSC006, Grant No. 173211KYSB20160008).


  • [1] E. Ahmed, M. Jones, and T. K. Marks. An improved deep learning architecture for person re-identification. In Proc. CVPR, 2015.
  • [2] D. Chen, Z. Yuan, B. Chen, and N. Zheng. Similarity learning with spatial constraints for person re-identification. In Proc. CVPR, 2016.
  • [3] W. Chen, X. Chen, J. Zhang, and K. Huang. Beyond triplet loss: a deep quadruplet network for person re-identification. In Proc. CVPR, 2017.
  • [4] W. Chen, X. Chen, J. Zhang, and K. Huang. A multi-task deep network for person re-identification. In AAAI, 2017.
  • [5] 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 Proc. CVPR, 2016.
  • [6] 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.
  • [7] M. Farenzena, L. Bazzani, A. Perina, V. Murino, and M. Cristani. Person re-identification by symmetry-driven accumulation of local features. In Proc. CVPR, 2010.
  • [8] P. F. Felzenszwalb, R. B. Girshick, D. McAllester, and D. Ramanan. Object detection with discriminatively trained part-based models. TPAMI, 32(9):1627–1645, 2010.
  • [9] D. Gray, S. Brennan, and H. Tao. Evaluating appearance models for recognition, reacquisition, and tracking. In IEEE International Workshop on Performance Evaluation for Tracking and Surveillance (PETS), volume 3, 2007.
  • [10] D. Gray and H. Tao. Viewpoint invariant pedestrian recognition with an ensemble of localized features. In Proc. ECCV, 2008.
  • [11] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proc. ICCV, 2016.
  • [12] S. Ioffe and C. Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv:1502.03167, 2015.
  • [13] M. Jaderberg, K. Simonyan, A. Zisserman, et al. Spatial transformer networks. In Proc. NIPS, 2015.
  • [14] Y. Jia, E. Shelhamer, J. Donahue, S. Karayev, J. Long, R. Girshick, S. Guadarrama, and T. Darrell. Caffe: Convolutional architecture for fast feature embedding. In Proc. ACM Multimedia, 2014.
  • [15] C. Jose and F. Fleuret. Scalable metric learning via weighted approximate rank component analysis. In Proc. ECCV, 2016.
  • [16] M. Köstinger, M. Hirzer, P. Wohlhart, P. M. Roth, and H. Bischof. Large scale metric learning from equivalence constraints. In Proc. CVPR, 2012.
  • [17] A. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. In Proc. NIPS, 2012.
  • [18] I. Kviatkovsky, A. Adam, and E. Rivlin. Color invariants for person reidentification. TPAMI, 35(7):1622–1634, 2013.
  • [19] D. Li, Z. Zhang, X. Chen, H. Ling, and K. Huang. A richly annotated dataset for pedestrian attribute recognition. arXiv:1603.07054, 2016.
  • [20] W. Li, R. Zhao, T. Xiao, and X. Wang. Deepreid: Deep filter pairing neural network for person re-identification. In Proc. CVPR, 2014.
  • [21] Z. Li, S. Chang, F. Liang, T. S. Huang, L. Cao, and J. R. Smith. Learning locally-adaptive decision functions for person verification. In Proc. CVPR, 2013.
  • [22] S. Liao, Y. Hu, X. Zhu, and S. Z. Li. Person re-identification by local maximal occurrence representation and metric learning. In Proc. CVPR, 2015.
  • [23] S. Liao and S. Z. Li. Efficient psd constrained asymmetric metric learning for person re-identification. In Proc. ICCV, 2015.
  • [24] T.-Y. Lin, M. Maire, S. Belongie, J. Hays, P. Perona, D. Ramanan, P. Dollár, and C. L. Zitnick. Microsoft coco: Common objects in context. In Proc. ECCV, 2014.
  • [25] H. Liu, J. Feng, M. Qi, J. Jiang, and S. Yan. End-to-end comparative attention networks for person re-identification. arXiv:1606.04404, 2016.
  • [26] A. J. Ma, P. C. Yuen, and J. Li. Domain transfer support vector ranking for person re-identification without target camera label information. In Proc. ICCV, 2013.
  • [27] T. Matsukawa, T. Okabe, E. Suzuki, and Y. Sato. Hierarchical gaussian descriptor for person re-identification. In Proc. CVPR, 2016.
  • [28] S. Paisitkriangkrai, C. Shen, and A. van den Hengel. Learning to rank in person re-identification with metric ensembles. In Proc. CVPR, 2015.
  • [29] B. Prosser, W.-S. Zheng, S. Gong, T. Xiang, and Q. Mary. Person re-identification by support vector ranking. In Proc. BMVC, volume 2, page 6, 2010.
  • [30] A. Schumann, S. Gong, and T. Schuchert. Deep learning prototype domains for person re-identification. arXiv:1610.05047, 2016.
  • [31] H. Shi, Y. Yang, X. Zhu, S. Liao, Z. Lei, W. Zheng, and S. Z. Li. Embedding deep metric for person re-identification: A study against large variations. In Proc. ECCV, 2016.
  • [32] N. Srivastava, G. E. Hinton, A. Krizhevsky, I. Sutskever, and R. Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. The Journal of Machine Learning Research, 15(1):1929–1958, 2014.
  • [33] Y. Sun, X. Wang, and X. Tang. Deep learning face representation from predicting 10,000 classes. In Proc. CVPR, 2014.
  • [34] R. R. Varior, M. Haloi, and G. Wang. Gated siamese convolutional neural network architecture for human re-identification. In Proc. ECCV, 2016.
  • [35] R. R. Varior, B. Shuai, J. Lu, D. Xu, and G. Wang. A siamese long short-term memory architecture for human re-identification. In Proc. ECCV, 2016.
  • [36] F. Wang, W. Zuo, L. Lin, D. Zhang, and L. Zhang. Joint learning of single-image and cross-image representations for person re-identification. In Proc. CVPR, 2016.
  • [37] G. Wang, L. Lin, S. Ding, Y. Li, and Q. Wang. Dari: Distance metric and representation integration for person verification. In AAAI, 2016.
  • [38] L. Wu, C. Shen, and A. v. d. Hengel. Personnet: Person re-identification with deep convolutional neural networks. arXiv:1601.07255, 2016.
  • [39] T. Xiao, H. Li, W. Ouyang, and X. Wang. Learning deep feature representations with domain guided dropout for person re-identification. In Proc. CVPR, 2016.
  • [40] T. Xiao, S. Li, B. Wang, L. Lin, and X. Wang. End-to-end deep learning for person search. arXiv:1604.01850, 2016.
  • [41] Y. Xu, B. Ma, R. Huang, and L. Lin. Person search in a scene by jointly modeling people commonness and person uniqueness. In Proc. ACM Multimedia, 2014.
  • [42] Y. Yang, L. Wen, S. Lyu, and S. Z. Li. Unsupervised learning of multi-level descriptors for person re-identification. In AAAI, 2017.
  • [43] Y. Yang, J. Yang, J. Yan, S. Liao, D. Yi, and S. Z. Li. Salient color names for person re-identification. In Proc. ECCV, 2014.
  • [44] D. Yi, Z. Lei, S. Liao, S. Z. Li, et al. Deep metric learning for person re-identification. In Proc. ICPR, 2014.
  • [45] F. Yu and V. Koltun. Multi-scale context aggregation by dilated convolutions. In Proc. ICLR, 2016.
  • [46] X. Zeng, W. Ouyang, J. Yan, H. Li, T. Xiao, K. Wang, Y. Liu, Y. Zhou, B. Yang, Z. Wang, et al. Crafting gbd-net for object detection. arXiv:1610.02579, 2016.
  • [47] L. Zhang, T. Xiang, and S. Gong. Learning a discriminative null space for person re-identification. In Proc. CVPR, 2016.
  • [48] R. Zhang, L. Lin, R. Zhang, W. Zuo, and L. Zhang. Bit-scalable deep hashing with regularized similarity learning for image retrieval and person re-identification. TIP, 24(12):4766–4779, 2015.
  • [49] Y. Zhang, B. Li, H. Lu, A. Irie, and X. Ruan. Sample-specific svm learning for person re-identification. In Proc. CVPR, 2016.
  • [50] R. Zhao, W. Ouyang, and X. Wang. Unsupervised salience learning for person re-identification. In Proc. CVPR, 2013.
  • [51] R. Zhao, W. Ouyang, and X. Wang. Learning mid-level filters for person re-identification. In Proc. CVPR, 2014.
  • [52] L. Zheng, Z. Bie, Y. Sun, J. Wang, C. Su, S. Wang, and Q. Tian. Mars: A video benchmark for large-scale person re-identification. In Proc. ECCV, 2016.
  • [53] L. Zheng, L. Shen, L. Tian, S. Wang, J. Wang, and Q. Tian. Scalable person re-identification: A benchmark. In Proc. ICCV, 2015.
  • [54] L. Zheng, Y. Yang, and A. G. Hauptmann. Person re-identification: Past, present and future. arXiv preprint arXiv:1610.02984, 2016.
  • [55] L. Zheng, H. Zhang, S. Sun, M. Chandraker, and Q. Tian. Person re-identification in the wild. arXiv:1604.02531, 2016.
  • [56] W.-S. Zheng, S. Gong, and T. Xiang. Quantifying and transferring contextual information in object detection. TPAMI, 34(4):762–777, 2012.
  • [57] W.-S. Zheng, S. Gong, and T. Xiang. Reidentification by relative distance comparison. TPAMI, 35(3):653–668, 2013.
Comments 0
Request Comment
You are adding the first comment!
How to quickly get a good reply:
  • Give credit where it’s due by listing out the positive aspects of a paper before getting into which changes should be made.
  • Be specific in your critique, and provide supporting evidence with appropriate references to substantiate general statements.
  • Your comment should inspire ideas to flow and help the author improves the paper.

The better we are at sharing our knowledge with each other, the faster we move forward.
The feedback must be of minimum 40 characters and the title a minimum of 5 characters
Add comment
Loading ...
This is a comment super asjknd jkasnjk adsnkj
The feedback must be of minumum 40 characters
The feedback must be of minumum 40 characters

You are asking your first question!
How to quickly get a good answer:
  • Keep your question short and to the point
  • Check for grammar or spelling errors.
  • Phrase it like a question
Test description