A Multi-task Joint Framework for Real-time Person Search

Ye Li, Kangning Yin, Jie Liang, Chunyu Wang, Guangqiang Yin · DOI

Abstract

Person search generally involves three important parts: person detection, feature extraction, and identity comparison. However, integrating these components often leads to two significant drawbacks: error propagation from detection to comparison and the difficulty of achieving real-time performance in real-world applications. To solve these problems, we propose a Multi-task Joint Framework for real-time person search (MJF), which optimizes detection, extraction, and comparison respectively. For person detection, we proposed the YOLOv5-GS model, combining Ghostnet and Squeeze-and-Excitation (SE) blocks to improve speed and accuracy. For feature extraction, we designed the Model Adaptation Architecture (MAA) to select networks dynamically based on crowd density. For identity comparison, we propose a Three Dimension (3D) Pooled Table and a matching strategy to improve identification accuracy. On 1080p resolution video with a 500-ID gallery, our method achieves an identification rate (IR) of 93.6% at 25.7 FPS.

Introduction

"Person search" is a complex computer vision task that combines finding a person in a video frame (detection) and identifying them across different cameras or timeframes (re-identification or Re-ID). Traditionally, these tasks are treated as separate problems or joined in a way that creates significant bottlenecks.

The authors identify two primary hurdles in existing systems. First is Error Propagation: if a detector provides slightly inaccurate bounding boxes, the subsequent feature extractor receives "noisy" crops, leading to poor identification. Second is the Real-Time Trap: high-accuracy Re-ID models are computationally expensive. In crowded scenes, running a heavy model on dozens of detected individuals simultaneously drastically reduces the frame rate, rendering the system impractical for live surveillance.

The Multi-task Joint Framework (MJF)

The MJF framework addresses these issues through a modular, three-part optimization strategy that balances computational efficiency with high-fidelity identification.

The MJF pipeline consists of person detection, feature extraction, and identity comparison modules.

Person Detection: YOLOv5-GS

To improve the initial stage of the pipeline, the authors modified the YOLOv5 architecture to create YOLOv5-GS. This model integrates Ghostnet modules, which utilize "cheap" linear operations to generate more feature maps with fewer parameters, and Squeeze-and-Excitation (SE) blocks, which act as an attention mechanism to focus on relevant human features. This combination reduces the parameter count while simultaneously improving detection accuracy for human subjects in diverse environments.

Architecture of the YOLOv5-GS backbone, integrating Ghost Blocks and SE Layers for efficient feature extraction.

Feature Extraction: Model Adaptation Architecture (MAA)

The MAA serves as the "brain" of the system's speed-accuracy balance. Recognizing that vision systems shouldn't work equally hard on every frame, the MAA monitors the number of people detected. If a scene is crowded, it switches to a lightweight ResNet-18 backbone; if only a few people are present, it utilizes a more powerful ResNet-50. The module also incorporates a Non-local block to capture long-range pixel dependencies and an Orientation Classifier to determine if a person is facing front, back, or side.

Identity Comparison: 3D Pooled Table

Instead of a flat list of features, the system utilizes a 3D table that stores features for each ID across three specific orientations (front, back, side). This orientation-aware approach significantly reduces identity swaps when a person turns around. To prevent "flicker" errors, a matching strategy is implemented that requires a person to be confirmed in 4 out of 5 consecutive frames before the database is updated, acting as a temporal low-pass filter for identity noise.

Datasets and Evaluation

The framework was trained and validated using several industry-standard benchmarks:

  • Detection: Trained on COCO and CrowdHuman (a dataset for dense human crowds) and evaluated on TownCentreXVID.
  • Feature Extraction: Trained on Market-1501 and DukeOrientation to refine orientation-specific feature extraction.
  • System-wide Evaluation: The full MJF pipeline was tested on the TownCentreXVID dataset to measure real-world Identification Rate (IR) and Frames Per Second (FPS).

Key Results and Insights

The MJF framework demonstrates a significant leap in balancing performance and speed:

  • Detection Speed: The YOLOv5-GS model achieved 60.4 FPS on 1080p video, outperforming standard YOLOv5 in both speed and accuracy.
  • Feature Extraction: The MAA module can process up to 605 people per second using the ResNet-50 backbone, with a Rank-1 accuracy of 94.2%.
  • End-to-End Performance: On a 1080p video stream with a gallery of 500 IDs, the system achieved an Identification Rate (IR) of 93.6% while maintaining 25.7 FPS, meeting the threshold for real-time processing.

Conclusion

By implementing dynamic complexity scaling and orientation-aware Re-ID, the MJF framework provides a robust solution for real-time person search. While the current system uses three orientations, future work may explore higher granularity (e.g., 45-degree angles) and more fluid, learnable policies for model switching to further enhance performance in complex, occluded environments.

Summary updated

Abstract

Person search generally involves three important parts: person detection, feature extraction and identity comparison. However, person search integrating detection, extraction and comparison has the following drawbacks. Firstly, the accuracy of detection will affect the accuracy of comparison. Secondly, it is difficult to achieve real-time in real-world applications. To solve these problems, we propose a Multi-task Joint Framework for real-time person search (MJF), which optimizes the person detection, feature extraction and identity comparison respectively. For the person detection module, we proposed the YOLOv5-GS model, which is trained with person dataset. It combines the advantages of the Ghostnet and the Squeeze-and-Excitation (SE) block, and improves the speed and accuracy. For the feature extraction module, we design the Model Adaptation Architecture (MAA), which could select different network according to the number of people. It could balance the relationship between accuracy and speed. For identity comparison, we propose a Three Dimension (3D) Pooled Table and a matching strategy to improve identification accuracy. On the condition of 1920*1080 resolution video and 500 IDs table, the identification rate (IR) and frames per second (FPS) achieved by our method could reach 93.6% and 25.7,

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Market-1501 · Market1501RN50 feature extractor (ResNet-50 + Non-local + BnFeature), MAA branchmAP93.2split: test · backbone=ResNet-50 · resolution=128x64
Source quote
L229: \ding{51} │ \ding{51} │ 93.2 │ 94.9 │ 605.556
Market-1501 · Market1501RN50 feature extractor (ResNet-50 + Non-local + BnFeature), MAA branchRank-194.9split: test · backbone=ResNet-50 · resolution=128x64
Source quote
L229: \ding{51} │ \ding{51} │ 93.2 │ 94.9 │ 605.556
BibTeX
@misc{li2020multi,
  author = {Ye Li and Kangning Yin and Jie Liang and Chunyu Wang and Guangqiang Yin},
  title = {{A Multi-task Joint Framework for Real-time Person Search}},
  year = {2020},
  eprint = {2012.06418},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.06418},
}
Figure