# Understanding the Ability of Deep Neural Networks to Count Connected Components in Images

arXiv: https://arxiv.org/abs/2101.01386 · HTML: https://mlsanity.com/paper/2101.01386/

## Key facts

- Cited by 1 papers in the map (data through 14 Oct 2026).
- Builds on 5 of its 14 references that are in the map.
- First posted on arXiv 5 Jan 2021.

## Builds on (most cited first, 5 of 5)

- [Very Deep Convolutional Networks for Large-Scale Image Recognition](https://mlsanity.com/paper/1409.1556/) (2014)
- [SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation](https://mlsanity.com/paper/1511.00561/) (2015)
- [Crowd Counting using Deep Recurrent Spatial-Aware Network](https://mlsanity.com/paper/1807.00601/) (2018)
- [Salient Object Subitizing](https://mlsanity.com/paper/1607.07525/) (2016)
- [Deep Spatial Regression Model for Image Crowd Counting](https://mlsanity.com/paper/1710.09757/) (2017)

## Built on by (most cited first, 1 of 1)

- [Forged Image Detection using SOTA Image Classification Deep Learning Methods for Image Forensics with Error Level Analysis](https://mlsanity.com/paper/2211.15196/) (2022)

## Abstract (arXiv)

Humans can count very fast by subitizing, but slow substantially as the number of objects increases. Previous studies have shown a trained deep neural network (DNN) detector can count the number of objects in an amount of time that increases slowly with the number of objects. Such a phenomenon suggests the subitizing ability of DNNs, and unlike humans, it works equally well for large numbers. Many existing studies have successfully applied DNNs to object counting, but few studies have studied the subitizing ability of DNNs and its interpretation. In this paper, we found DNNs do not have the ability to generally count connected components. We provided experiments to support our conclusions and explanations to understand the results and phenomena of these experiments. We proposed three ML-learnable characteristics to verify learnable problems for ML models, such as DNNs, and explain why DNNs work for specific counting problems but cannot generally count connected components.
