Small instance detection by integer programming on object density maps

Zheng Ma, Lei Yu, Antoni B. Chan

Abstract

Detecting small, crowded, and partially occluded objects remains a significant challenge for traditional appearance-based detectors. This paper proposes a novel framework that treats object detection as a signal reconstruction problem. By estimating object density maps and applying 2D integer programming, the method recovers individual object locations and bounding boxes without requiring Non-Maximum Suppression (NMS). Evaluated across diverse datasets including pedestrians, cells, and various animals, the approach demonstrates superior performance in high-density scenarios and robustness to limited training data.

Introduction

Traditional object detectors, such as those utilizing HOG or SIFT features, typically rely on training models for individual instances. This approach often fails when dealing with "small instances"—objects only 10–30 pixels tall—or in heavily crowded environments where objects overlap significantly. In such scenarios, discriminative features are often blurred or occluded, and standard post-processing techniques like Non-Maximum Suppression (NMS) may erroneously remove valid detections within dense clusters.

While "counting" methods excel at estimating total object numbers via density maps, they generally lack the ability to provide precise individual locations or sizes. This paper bridges this gap by leveraging the robustness of density-based counting to achieve high-precision detection, effectively reframing detection as a reconstruction problem: "Where must objects be placed to produce this specific density map?"

Methodology

The proposed framework follows a multi-step pipeline that transitions from global density statistics to local object coordinates.

Overview of the proposed detection pipeline, moving from density estimation to integer programming and final bounding box recovery.
  1. Density Map Estimation: A supervised learning model maps local image features (e.g., dense SIFT) to pixel-wise density values. Integrating these values over a region provides an estimated object count.
  2. Search Space Reduction: To ensure computational feasibility, the image is segmented into local regions, focusing only on pixels with high density values as candidate locations.
  3. Integer Programming (IP): This core component formulates an optimization problem to find a binary indicator vector (1 if an object exists at a pixel, 0 otherwise). The goal is to find an object configuration that best matches the counts estimated by a sliding window over the density map.
  4. Global Constraint: A regularization term is added to the IP objective function to ensure the total number of detected objects aligns with the global count predicted by the density map, suppressing false positives and improving recall in occluded areas.
  5. Bounding Box Estimation: Once locations are identified, bounding boxes are estimated by finding the surrounding area that integrates to a target density value (typically 0.8 to 1.0), guided by a prior based on average object size at that location.

Experimental Evaluation

The framework was evaluated on six diverse datasets featuring various small instances in challenging environments.

Examples of the diverse datasets used for evaluation: (a) synthetic cells, (b) UCSD pedestrians, (c) fish, (d) seagulls, (e) honeybees, and (f) fruit flies.

The datasets included low-resolution surveillance (UCSD Pedestrians), fluorescence microscopy (Synthetic Cells), and several animal datasets (Flies, Honeybees, Fish, and Seagulls) with complex backgrounds and varying poses.

Key Results

  • High Precision in Crowds: On the UCSD pedestrian dataset, the method achieved an F1 score of ~91%, outperforming Region-SVM and SIFT-SVM baselines. In synthetic cell datasets where objects frequently merge, it achieved a detection F1 score of 93.67%.
  • Spatial Accuracy: The method surpassed SIFT-SVM in Jaccard index across all animal datasets, demonstrating that density maps contain sufficient information to recover spatial extent accurately.
  • Data Efficiency: Unlike traditional detectors whose performance drops with limited training data, this approach maintained high accuracy even when trained on only 10 frames, as the density regressor generalizes better from small samples.

Conclusion and Limitations

By eliminating the need for NMS and treating detection as a reconstruction task, this framework offers a robust solution for small instance detection. However, computational overhead remains a concern, as solving integer programming is NP-hard, potentially requiring heuristic solvers for very large-scale images. Furthermore, the system's performance is inherently tied to the quality of the initial density map and may struggle with objects exhibiting extreme scale variations within a single local region. Future work may focus on optimizing the IP solver and improving the flexibility of bounding box priors.

Summary updated

BibTeX
@inproceedings{ma2015small,
  author = {Zheng Ma and Lei Yu and Antoni B. Chan},
  title = {{Small instance detection by integer programming on object density maps}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2015},
  doi = {10.1109/cvpr.2015.7298992},
}
Figure