Learning Pairwise Relationship for Multi-object Detection in Crowded Scenes

Yu Liu, Lingqiao Liu, Seyed Hamid Rezatofighi, Thanh-Toan Do, Qinfeng Shi, Ian D. ReidarXiv 2019

Abstract

Standard object detectors often fail in crowded environments because their post-processing step, Non-Maximum Suppression (NMS), blindly removes overlapping bounding boxes based on geometric rules. This paper introduces Pairwise-NMS, a method that utilizes a deep neural network to intelligently determine if overlapping boxes contain distinct individuals or represent redundant detections of the same object. By moving from a purely geometric heuristic to a learned relationship model, the proposed approach significantly improves detection accuracy in heavily occluded scenes.

The Challenge of Crowded Scenes

Most modern object detection frameworks follow a three-stage pipeline: proposal generation, scoring, and Non-Maximum Suppression (NMS). The standard implementation, GreedyNMS, operates by identifying overlapping boxes; if two boxes exceed a specific Intersection over Union (IoU) threshold, the one with the lower confidence score is discarded.

While efficient, GreedyNMS is "blind" to the actual visual content within the boxes. In crowded scenarios—such as busy city streets or public protests—people naturally overlap. GreedyNMS frequently interprets these valid overlaps as redundant detections, leading to a forced trade-off: either accept many duplicate boxes (low precision) or miss many individuals (low recall). The authors aim to break this trade-off by replacing geometric rules with a learned pairwise relationship model.

Figure 3: The transition from raw detection proposals (top) to final detections (bottom) via post-processing in a crowded street scene.

Methods: Pairwise-NMS

The proposed Pairwise-NMS system splits incoming proposal pairs into two distinct processing branches based on their geometric overlap:

  1. The Sparse Branch: If the IoU between two boxes is low (below a threshold $N_t$), the system defaults to standard GreedyNMS. This ensures computational efficiency for isolated objects.
  2. The Crowded Branch: If the IoU is high, the boxes are passed to a Pairwise-relationship Network to determine if they represent one or two distinct objects.

Network Architecture

  • Backbone: A VGG16 network extracts features from the input image.
  • ROI Features: Features for both candidate boxes are extracted using ROIAlign.
  • Embedding Space: The network maps these features into a high-dimensional "relationship space."
  • Distance Metric: The network is trained using a distance-based loss (L1-norm with a margin). If two boxes contain different objects, the network pushes their representations apart in the embedding space. If they represent the same object, they are pulled closer together.
  • Decision Logic: A simple distance threshold ($D_t$) in this embedding space determines whether to retain both boxes or suppress the weaker one.
Figure 6: Flowchart of the Pairwise-NMS process, illustrating the decision logic between the sparse and crowded branches.

Experimental Evaluation

The authors evaluated Pairwise-NMS on three benchmarks specifically chosen for their high density and frequent occlusion: MOT15, TUD-Crossing, and PETS.

Key Results

  • Performance Gains: On the PETS dataset, Pairwise-NMS achieved an Average Precision (AP) of 78.11%, significantly outperforming Soft-NMS, which peaked at 70.24%.
  • Handling Occlusion: The method showed its greatest strength in high-occlusion ranges. On the MOT15 dataset, in scenarios where objects overlapped by 65-70%, Pairwise-NMS outperformed GreedyNMS by 3.7%.
  • Generalization: A model trained on MOT15 performed effectively on TUD-Crossing without additional fine-tuning, suggesting that the network learns general visual cues for "distinctness" rather than dataset-specific features.

Conclusion and Future Work

Pairwise-NMS demonstrates that context matters in post-processing. By looking at visual features rather than just box coordinates, the system can distinguish between "two people standing close together" and "two slightly different boxes for the same person." The "neat coupling" of the neural network with traditional NMS allows the system to maintain speed in sparse areas while applying intelligence only where needed.

Future research directions include expanding the model to handle larger clusters of three or more overlapping objects simultaneously and integrating the pairwise logic directly into the training phase of end-to-end detectors like YOLO or SSD to further reduce computational overhead.

Summary updated

BibTeX
@misc{liu2019learning,
  author = {Yu Liu and Lingqiao Liu and Seyed Hamid Rezatofighi and Thanh-Toan Do and Qinfeng Shi and Ian D. Reid},
  title = {{Learning Pairwise Relationship for Multi-object Detection in Crowded Scenes}},
  year = {2019},
  eprint = {1901.03796},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1901.03796},
}
Figure