[Paper Review] Learning to Count Objects with Few Exemplar Annotations
This paper proposes a positiveness-focused object detector (PFOD) to improve object counting under incomplete supervision, where only a few exemplar bounding boxes are provided per image. By progressively propagating labels while ignoring unlabeled instances during training, PFOD boosts mAP@0.5 from 4.58% to 72.44% on CARPK and from 14.16% to 53.73% on Drink35 using only 5–10 labeled images with 5 boxes each.
In this paper, we study the problem of object counting with incomplete annotations. Based on the observation that in many object counting problems the target objects are normally repeated and highly similar to each other, we are particularly interested in the setting when only a few exemplar annotations are provided. Directly applying object detection with incomplete annotations will result in severe accuracy degradation due to its improper handling of unlabeled object instances. To address the problem, we propose a positiveness-focused object detector (PFOD) to progressively propagate the incomplete labels before applying the general object detection algorithm. The PFOD focuses on the positive samples and ignore the negative instances at most of the learning time. This strategy, though simple, dramatically boosts the object counting accuracy. On the CARPK dataset for parking lot car counting, we improved mAP@0.5 from 4.58% to 72.44% using only 5 training images each with 5 bounding boxes. On the Drink35 dataset for shelf product counting, the mAP@0.5 is improved from 14.16% to 53.73% using 10 training images each with 5 bounding boxes.
Motivation & Objective
- Address the challenge of object counting when only a small number of bounding boxes are annotated per image, a common scenario in large-instance counting tasks.
- Overcome severe accuracy degradation in standard object detection caused by overfitting to sparse annotations when unlabeled instances are treated as background.
- Formulate and investigate the incompletely-supervised learning setting for object counting, where only exemplar annotations are available.
- Develop a method that effectively generalizes from few annotated instances to improve detection and counting performance on highly similar, repeated objects.
Proposed method
- Propose a positiveness-focused object detector (PFOD) that prioritizes learning from positive samples and ignores negative (unlabeled) instances during most of the training process.
- Implement a progressive label propagation strategy that starts by treating all unlabeled regions as background, then gradually relaxes this constraint to allow unlabeled instances to be pulled toward positive predictions.
- Use iterative refinement: initial model is trained on sparse labels, then the model's predictions on unlabeled regions are used to expand the set of positive samples, improving generalization.
- Apply standard object detection head after label propagation to leverage full detection pipeline, ensuring localization and classification accuracy.
- Leverage the high similarity of target objects (e.g., cars in parking lots, products on shelves) to enable generalization from few exemplars.
- Use IoU threshold (≥0.3) to evaluate correctness of propagated boxes, ensuring only high-quality predictions are retained during refinement.
Experimental results
Research questions
- RQ1Can a detection-based approach achieve high accuracy in object counting when only a few exemplar bounding boxes are provided per image?
- RQ2How does progressive label propagation improve detection performance compared to standard object detection with incomplete annotations?
- RQ3To what extent can a model generalize from a small number of annotated instances when target objects are highly similar and repeated?
- RQ4What is the impact of ignoring unlabeled instances during training on reducing overfitting and improving mAP in incompletely-supervised settings?
- RQ5How does the performance scale with increasing numbers of annotated boxes per image, and when does label propagation become detrimental?
Key findings
- On the CARPK dataset, PFOD improved mAP@0.5 from 4.58% (standard OD) to 72.44% using only 5 training images with 5 bounding boxes each.
- On the Drink35 dataset, PFOD increased mAP@0.5 from 14.16% (standard OD) to 53.73% using 10 training images with 5 bounding boxes each.
- The MAE on CARPK dropped from 23.63 (OD on 5 images) to 26.36 (PFOD on 5 images), but this performance surpassed the LRN model trained on the full 989-image set.
- Label propagation successfully expanded the number of correct detections—e.g., from 5 to 22 correct boxes in one image on CARPK_5_5—though some false positives and missed detections remained.
- With 50 boxes per image, PFOD performance dropped below standard OD, indicating that label propagation becomes counterproductive when annotations are nearly complete.
- Visualization showed that PFOD significantly outperformed standard OD in detecting and localizing instances, especially in scenes with dense, similar objects like parking lots and shelves.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.