Skip to main content

A Portable Device for Obtaining Body Condition Score of Dairy Cattle Based on Image Processing and Convolutional Neural Networks

  • Conference paper
  • First Online:
Proceedings of the 8th Brazilian Technology Symposium (BTSym’22) (BTSym 2022)

Abstract

The present work develops an image classifier algorithm to measure the body condition score in Holstein cows. The algorithm aims to reduce the subjectivity that arises when evaluating cattle through visual inspection by specialists. This score measures how thin or overweight are cows in stables, which impacts milk production and the quality of life of the cattle. Although state-of-the-art attempts to solve the subjectivity problem, an efficient and satisfactory method for classification has not yet been found. Moreover, implementations have only considered placing fixed devices in the stables under certain restrictions. Therefore, a portable device with a graphical user interface was designed, and the images were captured and then segmented in a DeepLab3 + convolutional neural network. With this segmented database, the classifier algorithm was trained. For the validation of image segmentation, the Coefficient of Intersection over Union was used, achieving results over 0.9. This finally allowed us to obtain satisfactory results in the calculation of the body condition score.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 229.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 299.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Huang, X., Hu, Z., Wang, X., Yang, X., Zhang, J., Shi, D.: An improved single shot multibox detector method applied in body condition score for dairy cows. Animals 9, 470 (2019)

    Article  Google Scholar 

  2. Wildman, E.E., Jones, G.M., Wagner, P.E., Boman, R.L., Troutt, H.F., Jr., Lesch, T.N.: A dairy cow body condition scoring system and its relationship to selected production characteristics. J. Dairy Sci. 65, 495–501 (1982)

    Article  Google Scholar 

  3. Yukun, S., et al.: Automatic monitoring system for individual dairy cows based on a deep learning framework that provides identification via body parts and estimation of body condition score. J. Dairy Sci. 102, 10140–10151 (2019)

    Article  Google Scholar 

  4. Grigera, J., Bargo, F.: Evaluación del estado corporal en vacas lecheras. Inf. Técnico. www. Prod. com. ar. (2005)

    Google Scholar 

  5. Google Patents Homepage. https://patents.google.com/patent/US9684956B2/en, (Accessed 20 Sep 2021)

  6. Alvarez, J.R., et al.: Body condition estimation on cows from depth images using Convolutional Neural Networks. Comput. Electron. Agric. 155, 12–22 (2018)

    Article  Google Scholar 

  7. Li, W.-Y., Shen, Y., Wang, D.-J., Yang, Z.-K., Yang, X.-T.: Automatic dairy cow body condition scoring using depth images and 3D surface fitting. In: 2019 IEEE International Conference on Unmanned Systems and Artificial Intelligence (ICUSAI), pp. 155–159. IEEE (2019)

    Google Scholar 

  8. Zin, T.T., Tin, P., Kobayashi, I., Horii, Y.: An automatic estimation of dairy cow body condition score using analytic geometric image features. In: 2018 IEEE 7th Global Conference on Consumer Electronics (GCCE), pp. 775–776. IEEE (2018)

    Google Scholar 

  9. Liu, D., He, D., Norton, T.: Automatic estimation of dairy cattle body condition score from depth image using ensemble model. Biosys. Eng. 194, 16–27 (2020)

    Article  Google Scholar 

  10. Neto, A.B., et al.: The BFS method in a cloud environment for analyzing distributed energy resource Management systems. In: Brazilian Technology Symposium, pp. 349–362. Springer (2023). https://doi.org/10.1007/978-3-031-04435-9_35

  11. Bacega, P.R.d.O., Iano, Y., Carvalho, B.C.S.d., Vaz, G.C., Oliveira, G.G.d., Chuma, E.L.: Study about the applicability of low latency in HAS transmission systems. In: Brazilian Technology Symposium, pp. 73–87. Springer (2023). https://doi.org/10.1007/978-3-031-04435-9_7

  12. Arducan Homepage. https://www.arducam.com/product/arducam-imx219-auto-focus-camera-module-drop-in-replacement-for-raspberry-pi-v2-and-nvidia-jetson-nano-camera/, (Accessed 4 Jul 2022)

  13. Omniretro Homepage. https://omniretro.com/tecnologia/raspberry-pi-4-especificaciones-caracteristicas/, (Accessed  04  Jul 2022)

  14. OpenCV: Indroduction, https://docs.opencv.org/3.4.16/d1/dfb/intro.html, (Accessed 30 Nov 2021)

  15. Chen, L.-C., Zhu, Y., Papandreou, G., Schroff, F., Adam, H.: Encoder-decoder with atrous separable convolution for semantic image segmentation. In: Ferrari, V., Hebert, M., Sminchisescu, C., Weiss, Y. (eds.) ECCV 2018. LNCS, vol. 11211, pp. 833–851. Springer, Cham (2018). https://doi.org/10.1007/978-3-030-01234-2_49

  16. Bolelli, F., Allegretti, S., Baraldi, L., Grana, C.: Spaghetti labeling: directed acyclic graphs for block-based connected components labeling. IEEE Trans. Image Process. 29(1), 1999–2012 (2020)

    Google Scholar 

  17. He, K., Zhang, X., Ren, S., Sun, J.: Deep residual learning for image recognition (2015). cite. arXiv Prepr. arxiv1512.03385

    Google Scholar 

  18. MobileNet, MobileNetV2, and MobileNetV3.: https://keras.io/api/applications/mobilenet/, (Accessed 13 June 2022)

  19. Szegedy, C.,et al.: Going deeper with convolutions. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1–9 (2015)

    Google Scholar 

  20. Simonyan, K., Zisserman, A.: Very deep convolutional networks for large-scale image recognition. In: 3rd International Conference on Learning Representations, ICLR 2015 - Conference Track Proceedings, pp. 1–14 (2015)

    Google Scholar 

  21. Sokolova, M., Lapalme, G.: A systematic analysis of performance measures for classification tasks. Inf. Process. Manag. 45, 427–437 (2009)

    Article  Google Scholar 

Download references

Acknowledgments

The authors would like to thank the Dirección de Investigacion of Universidad Peruana de Ciencias Aplicadas for funding and logistical support with Code UPC-D-2022–2.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Guillermo Kemper .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Oblitas, E., Villarreal, R., Sanchez, A., Kemper, G. (2023). A Portable Device for Obtaining Body Condition Score of Dairy Cattle Based on Image Processing and Convolutional Neural Networks. In: Iano, Y., Saotome, O., Kemper Vásquez, G.L., de Moraes Gomes Rosa, M.T., Arthur, R., Gomes de Oliveira, G. (eds) Proceedings of the 8th Brazilian Technology Symposium (BTSym’22). BTSym 2022. Smart Innovation, Systems and Technologies, vol 353. Springer, Cham. https://doi.org/10.1007/978-3-031-31007-2_42

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-31007-2_42

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-31006-5

  • Online ISBN: 978-3-031-31007-2

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics