[Paper Review] Learning to count with deep object features
This paper proposes using deep convolutional neural networks (CNNs) trained to count object instances as a weakly supervised method to learn powerful, transferable object representations. Despite no direct supervision on object locations, the network learns to classify and localize digits and pedestrians by leveraging counting signals, achieving high accuracy in downstream tasks like digit classification and pedestrian detection.
Learning to count is a learning strategy that has been recently proposed in the literature for dealing with problems where estimating the number of object instances in a scene is the final objective. In this framework, the task of learning to detect and localize individual object instances is seen as a harder task that can be evaded by casting the problem as that of computing a regression value from hand-crafted image features. In this paper we explore the features that are learned when training a counting convolutional neural network in order to understand their underlying representation. To this end we define a counting problem for MNIST data and show that the internal representation of the network is able to classify digits in spite of the fact that no direct supervision was provided for them during training. We also present preliminary results about a deep network that is able to count the number of pedestrians in a scene.
Motivation & Objective
- To investigate whether training a CNN to count object instances can implicitly learn discriminative features for object recognition without bounding box annotations.
- To explore if counting can serve as a surrogate for fully supervised learning in object recognition tasks.
- To evaluate the transferability of features learned from a counting task to downstream classification and localization problems.
- To analyze the internal representations of a counting CNN to determine what concepts it implicitly learns.
- To demonstrate the feasibility of using counting as a weakly supervised learning strategy in real-world scenarios like pedestrian counting in surveillance.
Proposed method
- Train a CNN on MNIST data to predict the number of even digits per image, using only image-level counts as supervision.
- Use hypercolumn-based visualization to map feature activations back to spatial locations in the input image, identifying regions corresponding to the concept of interest.
- Apply online k-means clustering to group feature activations into prototypes, followed by an ℓ1-regularized SVM for sparse feature selection.
- Condition subsequent visualization steps on previously identified positive regions to refine localization of the concept of interest.
- Transfer learned features from the counting network to solve related tasks such as even-odd digit classification and digit recognition.
- Train a separate CNN for pedestrian counting using real surveillance data, with performance evaluated via mean absolute and mean squared error.
Experimental results
Research questions
- RQ1Can a CNN trained solely to count instances of a concept learn meaningful, transferable representations for object recognition?
- RQ2To what extent can counting serve as a proxy for supervised object detection and classification?
- RQ3What types of object-level concepts (e.g., digits, pedestrians) can be localized and classified through counting supervision alone?
- RQ4How do the internal representations of a counting CNN reflect knowledge of object identity and spatial layout?
- RQ5Does the performance of the counting network generalize to downstream tasks like classification and localization without additional fine-tuning?
Key findings
- The CNN trained to count even digits in MNIST images achieved high performance in a downstream even-odd digit classification task, demonstrating transferability of learned features.
- The network was able to localize even digits in images through visualization, with green-highlighted regions corresponding to actual digit locations, despite no bounding box supervision.
- The pedestrian counting network achieved a mean absolute error of 0.74 and mean squared error of 1.12, showing strong performance on real-world data.
- Visualization revealed that the network specifically activates on relevant regions for the concept of interest (e.g., even digits or pedestrians), indicating effective feature learning.
- The internal representations of the counting network implicitly encode information about object identity and spatial structure, even without explicit labeling.
- The method shows promise as a weakly supervised alternative to fully supervised object detection, reducing annotation cost while maintaining high accuracy.
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.