Skip to main content

PCR: A Large-Scale Benchmark for Pig Counting in Real World

  • Conference paper
  • First Online:
Pattern Recognition and Computer Vision (PRCV 2023)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 14428))

Included in the following conference series:

  • 862 Accesses

Abstract

Automatic pig counting with pattern recognition and computer vision techniques, despite its significance in intelligent agriculture, remains to be a relatively unexplored area and calls for further study. In this paper, we propose a large-scale image-based Pig Counting in Real world (PCR) dataset, covering a variety of real-world scenarios and environmental factors. The dataset consists of two subsets, i.e., PartA captured on real-world pig pens and PartB collected from the Internet, with center point annotations of pig torsos in 4844 images. Moreover, we develop an automatic pig counting algorithm based on weakly-supervised instance segmentation, which can output a single segmentation blob per instance via the proposed Segmentation-Split-Regression (SSR) loss, utilizing point-level annotations only. Experiments show that the proposed algorithm achieves state-of-the-art counting accuracy and exhibits superior robustness against challenging environmental factors. The dataset and source codes are available at https://github.com/jierujia0506/PCR.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Akiva, P., Dana, K.J., Oudemans, P.V., Mars, M.: Finding berries: segmentation and counting of cranberries using point supervision and shape priors. In: CVPR Workshops, pp. 219–228 (2020)

    Google Scholar 

  2. Arteta, C., Lempitsky, V., Zisserman, A.: Counting in the wild. In: Leibe, B., Matas, J., Sebe, N., Welling, M. (eds.) ECCV 2016. LNCS, vol. 9911, pp. 483–498. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-46478-7_30

    Chapter  Google Scholar 

  3. Chattopadhyay, P., Vedantam, R., Selvaraju, R.R., Batra, D., Parikh, D.: Counting everyday objects in everyday scenes. In: CVPR, pp. 4428–4437 (2017)

    Google Scholar 

  4. Chen, G., Shen, S., Wen, L., Luo, S., Bo, L.: Efficient pig counting in crowds with keypoints tracking and spatial-aware temporal response filtering. In: ICRA, pp. 10052–10058 (2020)

    Google Scholar 

  5. Chowdhury, P.N., Shivakumara, P., Nandanwar, L., Samiron, F., Pal, U., Lu, T.: Oil palm tree counting in drone images. Pattern Recognit. Lett. 153, 1–9 (2022)

    Article  Google Scholar 

  6. He, K., Zhang, X., Ren, S., Sun, J.: Deep residual learning for image recognition. In: CVPR, pp. 770–778 (2016)

    Google Scholar 

  7. Kingma, D.P., Ba, J.: Adam: A method for stochastic optimization. In: ICLR (2015)

    Google Scholar 

  8. Laradji, I.H., Rostamzadeh, N., Pinheiro, P.O., Vazquez, D., Schmidt, M.: Where are the blobs: counting by localization with point supervision. In: Ferrari, V., Hebert, M., Sminchisescu, C., Weiss, Y. (eds.) ECCV 2018. LNCS, vol. 11206, pp. 560–576. Springer, Cham (2018). https://doi.org/10.1007/978-3-030-01216-8_34

    Chapter  Google Scholar 

  9. Li, Y., Zhang, X., Chen, D.: CSRNet: dilated convolutional neural networks for understanding the highly congested scenes. In: CVPR, pp. 1091–1100 (2018)

    Google Scholar 

  10. Lin, T.Y., Goyal, P., Girshick, R.B., He, K., Dollár, P.: Focal loss for dense object detection. IEEE Trans. Pattern Ana. Mach. Intell 42, 318–327 (2020)

    Article  Google Scholar 

  11. Lin, W., Chan, A.B.: Optimal transport minimization: crowd localization on density maps for semi-supervised counting. In: CVPR, pp. 21663–21673 (2023)

    Google Scholar 

  12. Liu, C., Su, J., Wang, L., Lu, S., Li, L.: LA-DeepLab V3+: a novel counting network for pigs. Agriculture 12(2), 284 (2022)

    Article  Google Scholar 

  13. Naudé, J.J., Joubert, D.: The aerial elephant dataset: a new public benchmark for aerial object detection. In: CVPR Workshops (2019)

    Google Scholar 

  14. Rao, J., Xu, T., Song, X., Feng, Z., Wu, X.: KITPose: keypoint-interactive transformer for animal pose estimation. In: Yu, S., et al. (eds.) Pattern Recognition and Computer Vision. PRCV 2022. LNCS, vol. 13534. Springer, Cham. https://doi.org/10.1007/978-3-031-18907-4_51

  15. Redmon, J., Divvala, S.K., Girshick, R.B., Farhadi, A.: You only look once: unified, real-time object detection. In: CVPR, pp. 779–788 (2016)

    Google Scholar 

  16. Ren, S., He, K., Girshick, R.B., Sun, J.: Faster R-CNN: towards real-time object detection with region proposal networks. IEEE Trans. Pattern Ana. Mach. Intell 39, 1137–1149 (2015)

    Article  Google Scholar 

  17. Rey, N., Volpi, M., Joost, S., Tuia, D.: Detecting animals in African savanna with UAVs and the crowds. Remote Sens. Environ. 200, 341–351 (2017)

    Article  Google Scholar 

  18. Shao, W., Kawakami, R., Yoshihashi, R., You, S., Kawase, H., Naemura, T.: Cattle detection and counting in UAV images based on convolutional neural networks. Int. J. Remote Sens. 41, 31–52 (2020)

    Article  Google Scholar 

  19. Sun, K., Xiao, B., Liu, D., Wang, J.: Deep high-resolution representation learning for human pose estimation. In: CVPR, pp. 5686–5696 (2019)

    Google Scholar 

  20. Tian, M., Guo, H., Chen, H., Wang, Q., Long, C., Ma, Y.: Automated pig counting using deep learning. Comput. Electron. Agric. 163, 104840 (2019)

    Article  Google Scholar 

  21. Vincent, L.M., Soille, P.: Watersheds in digital spaces: an efficient algorithm based on immersion simulations. IEEE Trans. Pattern Ana. Mach. Intell 13, 583–598 (1991)

    Article  Google Scholar 

  22. Wang, Q., Gao, J., Lin, W., Yuan, Y.: Learning from synthetic data for crowd counting in the wild. In: CVPR, pp. 8190–8199 (2019)

    Google Scholar 

  23. Wu, F., et al.: Detection and counting of banana bunches by integrating deep learning and classic image-processing algorithms. Comput. Electron. Agric. 209, 107827 (2023)

    Article  Google Scholar 

  24. Wu, K., Otoo, E.J., Shoshani, A.: Optimizing connected component labeling algorithms. In: SPIE Medical Imaging (2005)

    Google Scholar 

  25. Wu, Z., Fuller, N.W., Theriault, D.H., Betke, M.: A thermal infrared video benchmark for visual analysis. In: CVPR Workshops, pp. 201–208 (2014)

    Google Scholar 

  26. Zand, M., Damirchi, H., Farley, A., Molahasani, M., Greenspan, M., Etemad, A.: Multiscale crowd counting and localization by multitask point supervision. In: ICASSP (2022)

    Google Scholar 

  27. Zhang, Y., Zhou, D., Chen, S., Gao, S., Ma, Y.: Single-image crowd counting via multi-column convolutional neural network. In: CVPR, pp. 589–597 (2016)

    Google Scholar 

  28. Zhou, B., Wang, S., Xiao, S.: Double recursive sparse self-attention based crowd counting in the cluttered background. In: PRCV (2022)

    Google Scholar 

  29. Zhu, P., Peng, T., Du, D., Yu, H., Zhang, L., Hu, Q.: Graph regularized flow attention network for video animal counting from drones. IEEE Trans. Image Process. 30, 5339–5351 (2021)

    Article  Google Scholar 

Download references

Acknowledgment

This work was supported by the National Natural Science Foundation of China (62106133).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Jieru Jia .

Editor information

Editors and Affiliations

1 Electronic supplementary material

Below is the link to the electronic supplementary material.

Supplementary material 1 (pdf 1241 KB)

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Jia, J., Zhang, S., Ruan, Q. (2024). PCR: A Large-Scale Benchmark for Pig Counting in Real World. In: Liu, Q., et al. Pattern Recognition and Computer Vision. PRCV 2023. Lecture Notes in Computer Science, vol 14428. Springer, Singapore. https://doi.org/10.1007/978-981-99-8462-6_19

Download citation

  • DOI: https://doi.org/10.1007/978-981-99-8462-6_19

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-99-8461-9

  • Online ISBN: 978-981-99-8462-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics