Segmentation Mask Guided End-to-End Person Search

Dingyuan Zheng, Jimin Xiao, Kaizhu Huang, Yao Zhao

Abstract

Person search is a complex computer vision task that combines pedestrian detection and person re-identification (re-ID) from raw, uncropped video frames. A significant hurdle in this field is background clutter, where environmental elements within a detection bounding box can mislead the re-ID process. This paper introduces a novel end-to-end framework that utilizes segmentation masks as a supervisory signal to guide the network toward learning more discriminative, person-focused features. By jointly optimizing detection, re-ID, and segmentation, the proposed model achieves state-of-the-art performance on the CUHK-SYSU benchmark, demonstrating the power of multi-task learning in filtering out scene noise.

Introduction: The Challenge of Background Clutter

Unlike standard person re-identification, which typically operates on pre-cropped images, person search requires a system to locate individuals in a full scene and then match them across different camera views. This "wild west" scenario introduces the problem of background clutter. When a detector identifies a person, the resulting bounding box often captures parts of the surrounding environment—such as a specific wall color, a vehicle, or floor patterns.

If a re-ID model inadvertently learns these background features as identifiers, it will likely fail when the target person moves to a new location with different surroundings. The authors address this by forcing the model to distinguish between the human body and the background at a pixel level, making feature extraction invariant to environmental noise.

Proposed Method: Mask-Guided Learning

The core of the proposed approach is an end-to-end network built upon the Faster R-CNN architecture with a ResNet-50 backbone. The innovation lies in the addition of a parallel segmentation mask branch.

Joint Optimization

The network does not use masks as a simple pre-processing filter. Instead, it optimizes for three tasks simultaneously:

  1. Detection: Using a Region Proposal Network (RPN) to identify potential pedestrians.
  2. Re-Identification: Utilizing Online Instance Matching (OIM) loss to handle person identification.
  3. Segmentation: Predicting pixel-level masks from the shared feature maps.

This multi-task learning strategy ensures that the shared internal representations prioritize foreground pixels (the person) while suppressing background information.

Partial Labeling Strategy

Recognizing the high cost of pixel-level annotation, the authors implemented a strategy requiring segmentation masks for only a small fraction (~16%) of the training data. During training, the mask loss is only computed for these labeled samples, while the rest of the network learns from standard detection and re-ID labels. This approach makes the inclusion of segmentation guidance practically feasible for large-scale datasets.

Data and Implementation

The model was primarily evaluated on the CUHK-SYSU dataset, which contains over 18,000 images from street scenes and movies. To facilitate mask-guided training, the authors created maskPS, a subset of CUHK-SYSU featuring 1,833 manually labeled images with precise masks for 2,815 pedestrians. Notably, the authors included "accessories" like handbags and luggage in the foreground masks, as these items often provide useful context for re-identification.

Key Results

The mask-guided model established a new state-of-the-art on the CUHK-SYSU dataset, achieving a mean Average Precision (mAP) of 86.3% and a Top-1 accuracy of 86.5%. This represents a substantial 10.8% mAP improvement over the baseline OIM model.

Qualitative results of the person search model showing a probe and ranked gallery matches.

Qualitatively, the model demonstrates superior resilience in "distractor" scenarios, such as fashion shows or crowded streets where multiple individuals may wear similar colors or stand against complex, high-contrast backgrounds. By focusing on fine-grained textural details of the person rather than the scene, the model significantly reduces false positives.

Discussion and Future Work

A key insight from this research is that segmentation serves best as a supervisory guide rather than a hard filter. The model learns to be robust without needing perfect masks during the inference phase. Furthermore, the "15% rule"—the observation that performance gains stabilize once roughly 15% of training data is masked—suggests a cost-effective path for applying this technique to other vision tasks.

However, challenges remain. The addition of a mask branch increases training complexity and memory requirements. Future work could explore the application of this method with more modern, lightweight architectures like Vision Transformers or MobileNets to facilitate deployment in real-time surveillance systems. Additionally, investigating the model's generalization capabilities across different environmental domains remains an important area for further study.

Summary updated

BibTeX
@article{zheng2020segmentation,
  author = {Dingyuan Zheng and Jimin Xiao and Kaizhu Huang and Yao Zhao},
  title = {{Segmentation Mask Guided End-to-End Person Search}},
  journal = {Signal Process. Image Commun.},
  year = {2020},
  doi = {10.1016/j.image.2020.115876},
}
Figure