DENSITY MAP FISH COUNTING WITH CSRNET: OUTPUT ACTIVATIONS AND TANK MASKING
Counting fish in aquaculture tanks is often done by hand, a slow and error-prone method, especially when fish overlap or number in the hundreds. This thesis applies CSRNet, a convolutional neural network designed for crowd counting, to count fish in frames from fixed-camera videos of fish tanks. The network predicts a density map whose sum is the count of fish in the given frame. Seven datasets were gathered, totaling 561 frames annotated with one point per visible fish, ranging from 8 to 434 fish per frame. Manually traced masks restricted training and evaluation to the water. The impact of output activation functions and tank-region masking on the accuracy and reliability of deep learning-based fish counting remains insufficiently explored. To address this gap, this thesis examines two design choices. First, the methods of handling negative values at the network’s output were compared over eight training seeds: no activation, ReLU, and softplus. ReLU failed to train in half the runs. Softplus trained in all eight and was most consistent, with a mean absolute percentage error (MAPE) of 9.2% ± 0.5, compared to 12.2% ± 4.1 for no activation. Second, automatic circle masks were found to be inaccurate, allowing the model to predict fish density on the tank wall. Manually traced masks correctly moved predicted fish density into the water. The final softplus model was evaluated over 112 random splits of the data, reaching a MAPE of 8.7% (95% confidence interval 8.5%–8.9%). This interval describes variability across resampled splits of the same videos, not performance on new videos or tanks; since frames were split within videos, results there are likely worse.
- Link
- https://zenodo.org/records/24385571
- Found by
- Zenodo
- Authors
- Vasco, Esteban J.
- Categories
- evaluation, dataset
- Published
- 2026-11-20
- Last seen by the radar
- 2026-12-01
- Downloads
- 0
- Views
- 0
- Radar score
- 43 / 100 (how it is scored)
- Why it scored so
- Matched: dataset, evaluat; Recency discount: updated event ×0.5; Primary record: Zenodo
- Related links
- https://doi.org/10.5281/zenodo.24385571