Skip to main content

Dairy Cow Individual Identification System Based on Deep Learning

  • Conference paper
  • First Online:
Cognitive Systems and Information Processing (ICCSIP 2022)

Abstract

Personal record keeping, behaviour tracking, accurate feeding, disease prevention and control, and food traceability require the identification of dairy cows. This work proposes a unique identification that combines Mask R-CNN and ResNet101 to identify individual cows in milking parlours accurately. Using 265 Holstein cows in various positions, a facial image dataset of their faces was created using the milking hall’s webcam. The feature pyramid network-based Mask R-CNN instance segmentation model was trained to separate the cows’ faces from their backgrounds. The ResNet101 individual classification network was trained using the segmentation above data as input and cow individual numbers as output. Combining the two techniques led to the creation of the cow individual recognition model. According to experimental findings, the Mask R-CNN model has an average accuracy of 96.37% on the picture test set. The accuracy of the Resnet101-based individual classification network was 99.61% on the training set and 98.75% on the validation set, surpassing that of VGG16, GoogLeNet, ResNet34, and other networks. The study’s suggested individual recognition model outperformed the combined effect of the YOLO series model and ResNet101 in terms of test accuracy (97.58%). Furthermore, it outperforms the pairing of Mask R-CNN with VGG16, GoogleNet, and ResNet34. This research offers precision dairy farming an excellent technical basis for individual recognition.

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 89.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 119.99
Price excludes VAT (USA)
  • Compact, lightweight 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

Similar content being viewed by others

References

  1. Atthews, S.G., et al.: Early detection of health and welfare compromises through automated detection of behavioural changes in pigs. Vet. J. 217, 43–51 (2016)

    Article  Google Scholar 

  2. He, D., Liu, D., Zhao, K.: Review of perceiving animal information and behavior in precision livestock farming. Trans. Chin. Soc. Agric. Mach. 47(5), 231–244 (2016)

    Google Scholar 

  3. Liu, J.: Individual Identification of Dairy Cows Based on Deep Learning. Northwest A & F University (2020)

    Google Scholar 

  4. Li, H.: A Study on the Proportion Schema for Dairy Cattle Feeding Based on IOT Techniques. Shanghai Jiao Tong University (2014)

    Google Scholar 

  5. Kumars, S., et al.: Real-time recognition of cattle using animal biometrics. J. Real-Time Image Process. 13, 505–526 (2016)

    Article  Google Scholar 

  6. Ren, X., et al.: Dairy cattle’s behavior recognition method based on support vector machine classification model. Trans. Chin. Soc. Agric. Mach. 50, 290–296 (2019)

    Google Scholar 

  7. Xie, Q., et al.: Individual pig face recognition combined with attention mechanism. Trans. Chin. Soc. Agric. Eng. 38(7), 180–188 (2022)

    MathSciNet  Google Scholar 

  8. Wang, X.: Research on Individual Identification Method of Dairy Cows Based on Activity Data and Deep Learning. Inner Mongolia University (2021)

    Google Scholar 

  9. He, D., et al.: Individual identification of dairy cows based on improved YOLO v3. Trans. Chin. Soc. Agric. Mach. 51(4), 250–260 (2020)

    Google Scholar 

  10. Bello, R., Talib, A.Z.H., Mohamed, A.S.A.B.: Deep learning-based architectures for recognition of cow using cow nose image pattern. Gazi Univ. J. Sci. 33(3), 831–844 (2020)

    Article  Google Scholar 

  11. Yao, L., et al.: Comparison of cow face detection algorithms based on deep network model. J. Jiangsu Univ. Nat. Sci. Ed. 40(2), 197–202 (2019)

    Google Scholar 

  12. Xing, Y., et al.: Individual cow recognition based on convolution neural network and transfer learning. Laser Optoelectron. Prog. 58(16), 503–511 (2021)

    Google Scholar 

  13. He, R., et al.: Identification and counting of silkworms in factory farm using improved mask R-CNN model. Smart Agric. 4(2), 163–173 (2022)

    Google Scholar 

  14. He, K.M., et al.: Mask R-CNN. In: 2017 IEEE International Conference on Computer Vision, October 22–29, 2017, Venice, Italy. IEEE Press, New York, pp. 2980–2988 (2017)

    Google Scholar 

  15. Lin, T.-Y., et al.: Feature pyramid networks for object detection. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2117–2125 (2017)

    Google Scholar 

  16. He, K., et al.: Deep residual learning for image recognition. In: IEEE Conference on Computer Vision & Pattern Recognition. IEEE Computer Society, pp. 1–12 (2016)

    Google Scholar 

  17. Redmon, J., Farhadi, A.: YOLOV 3: An Incremental Improvement. arXiv Preprint arXiv: 1804.02767 (2018)

    Google Scholar 

  18. Bochkovskiy, A., Wang, C.Y., Liao, H.Y.M.: YOLOV 4: optimal speed and accuracy of object detection. Comput. Vis. Pattern Recognit. 17(9), 198–215 (2020)

    Google Scholar 

  19. Ge, Z., et al.: Yolox: Exceeding Yolo Series in 2021. arXiv Preprint arXiv: 2107.08430 (2021)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Lei Yang .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 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

Li, Z. et al. (2023). Dairy Cow Individual Identification System Based on Deep Learning. In: Sun, F., Cangelosi, A., Zhang, J., Yu, Y., Liu, H., Fang, B. (eds) Cognitive Systems and Information Processing. ICCSIP 2022. Communications in Computer and Information Science, vol 1787. Springer, Singapore. https://doi.org/10.1007/978-981-99-0617-8_15

Download citation

  • DOI: https://doi.org/10.1007/978-981-99-0617-8_15

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-99-0616-1

  • Online ISBN: 978-981-99-0617-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics