Skip to main content

Image-Based Identification of Animal Breeds Using Deep Learning

  • Chapter
  • First Online:
Deep Learning for Unmanned Systems

Abstract

Accurate and reliable breed identification of domestic animals from images is one of the most promising but challenging tasks in intelligent livestock management. Traditional methods for animal breed identification are very costly and time consuming. Therefore, there is a need for a faster and cheaper technique for animal breed identification, which can be used by anyone without much technical knowhow. Deep Learning based animal breed classification from images can be used to solve this problem. Recent developments in deep Convolutional Neural Network (CNN) has drastically improved the accuracy of image recognition systems, but choosing the optimal model for the required task is very important for best performance. In this study, the performance of nine different deep CNN-based models have been analyzed to find the optimal model which can precisely determine the breed identity of individual animals from its image. All nine CNN models have been separately trained end-to-end on Pig Breed Dataset and Goat Breed Dataset using a set of identical hyperparameters. From the results obtained it has been established that MobileNetV2 is the best deep-CNN model for Goat Breed Classification with 95.00% prediction accuracy and InceptionV3 is the best model for pig breed classification with 100.00% prediction accuracy. Breed classification performance of goat and pig obtained in this study have been compared with other techniques used for animal breed classification. Comparison results show that our CNN-based technique has performed on par with all other methods. With these encouraging results, it can be confidently stated that deep CNN-based models can be used for solving the animal breed classification problem with high accuracy and can be used as ready to use technology for intelligent livestock management.

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 189.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 249.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 249.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

Abbreviations

BoW:

Bag of Words

SIFT:

Scale-invariant feature transform

SVM:

Support vector machine

ScSPM:

Sparse coding spatial pyramid matching

cLBP:

Cell-structured local binary patterns

DCNN:

Deep convolutional neural network

LDA:

Linear discriminant analysis

CNN:

Convolutional neural network

KNN:

K-nearest neighbors

MP-CNN:

Multi part convolutional neural network

SC-MPEM:

Supervised clustering using multi part CNN

RNN:

Recurrent neural network

FCAN:

Fully convolutional attention networks

FOAF:

Fused one-vesus-all features

MA-CNN:

Multi-attention convolutional neural network

References

  1. Hoffmann I, Scherf B (2010) Implementing the global plan of action for animal genetic resources. Animal Genet Resour 47:1–10

    Article  Google Scholar 

  2. The food and agriculture organization corporate statistical database. Food and Agriculture Organization of the United Nations (2018). http://www.fao.org/faostat/en/#data/QA/visualize

  3. Twentieth livestock census. Animal Husbandry Statistics Division, Ministry of Fisheries, Animal Husbandry and Dairying, Government of India, New Delhi (2019). https://dadf.gov.in/sites/default/filess/20th%20Livestock%20census-2019%20All%20India%20Report.pdf

  4. Registered breeds of goat. National Bureau of Animal Genetic Resources (2015). http://www.nbagr.res.in/reggoat.html

  5. Registered breeds of pig. National Bureau of Animal Genetic Resources (2015). http://www.nbagr.res.in/regpig.html

  6. Phenotypic characterization of animal genetic resources. The Food and Agriculture Organization (2012). http://www.fao.org/3/a-i2686e.pdf

  7. Molecular genetic characterization of animal genetic resources. The Food and Agriculture Organization (2011). http://www.fao.org/3/i2413e/i2413e00.pdf

  8. Andrew W, Hannuna S, Campbell N, Burghardt T (2016) Automatic individual holstein friesian cattle identification via selective local coat pattern matching in RGB-D imagery. In: 2016 IEEE international conference on image processing (ICIP). IEEE, pp 484–488

    Google Scholar 

  9. Kumar S, Pandey A, Satwik KSR, Kumar S, Singh SK, Singh AK, Mohan A (2018) Deep learning framework for recognition of cattle using muzzle point image pattern. Measurement 116:1–17

    Article  Google Scholar 

  10. Lahiri M, Tantipathananandh C, Warungu R, Rubenstein DI, Berger-Wolf TY (2011) Biometric animal databases from field photographs: identification of individual zebra in the wild. In: Proceedings of the 1st ACM international conference on multimedia retrieval, pp 1–8

    Google Scholar 

  11. Peng W, Yang H, Cai K, Zhou L, Tan Z, Wu K (2019) Molecular identification of the Danzhou chicken breed in china using DNA barcoding. Mitochondr DNA Part B 4(2):2459–2463

    Article  Google Scholar 

  12. Sardina MT, Tortorici L, Mastrangelo S, Di Gerlando R, Tolone M, Portolano B (2015) Application of microsatellite markers as potential tools for traceability of Girgentana goat breed dairy products. Food Res Int 74:115–122

    Article  Google Scholar 

  13. Wang X, Liu J, Zhou G, Guo J, Yan H, Niu Y, Li Y, Yuan C, Geng R, Lan X et al (2016) Whole-genome sequencing of eight goat populations for the detection of selection signatures underlying production and adaptive traits. Sci Rep 6:38932

    Google Scholar 

  14. Burghardt T (2012) A general introduction to visual animal biometrics. Technical Report, Visual Information Laboratory, University of Bristol, Technical report

    Google Scholar 

  15. Hailu A et al (2015) Breed characterization: tools and their applications. Open Access Library J 2(04):1

    Google Scholar 

  16. Kumar S, Singh SK (2016) Visual animal biometrics: survey. IET. Biometrics 6(3):139–156

    Google Scholar 

  17. Swanson A, Kosmala M, Lintott C, Simpson R, Smith A, Packer C (2015) Snapshot Serengeti, high-frequency annotated camera trap images of 40 mammalian species in an African Savanna. Sci Data 2(1):1–14

    Article  Google Scholar 

  18. Manohar N, Kumar YS, Kumar GH (2016) Supervised and unsupervised learning in animal classification. In: 2016 International conference on advances in computing, communications and informatics (ICACCI). IEEE, pp 156–161

    Google Scholar 

  19. Parkhi OM, Vedaldi A, Zisserman A, Jawahar C (2012) Cats and dogs. In: 2012 IEEE conference on computer vision and pattern recognition. IEEE, pp 3498–3505

    Google Scholar 

  20. Yu X, Wang J, Kays R, Jansen PA, Wang T, Huang T (2013) Automated identification of animal species in camera trap images. EURASIP J Image Video Process 2013(1):52

    Google Scholar 

  21. Deng J, Dong W, Socher R, Li LJ, Li K, Fei-Fei L (2009) Imagenet: a large-scale hierarchical image database. In: 2009 IEEE conference on computer vision and pattern recognition. IEEE, pp 248–255

    Google Scholar 

  22. Krizhevsky A, Sutskever I, Hinton GE (2017) Imagenet classification with deep convolutional neural networks. Commun ACM 60(6):84–90

    Article  Google Scholar 

  23. Liu B, Liu Y, Zhou K (2014) Image classification for dogs and cats. TechReport, University of Alberta

    Google Scholar 

  24. Meena SD, Agilandeeswari L (2019) An efficient framework for animal breeds classification using semi-supervised learning and multi-part convolutional neural network (mp-cnn). IEEE Access 7:151783–151802

    Article  Google Scholar 

  25. Sundaram DM, Loganathan A (2020) A new supervised clustering framework using multi discriminative parts and expectation-maximization approach for a fine-grained animal breed classification (sc-mpem). Neural Proces Lett 52(1):727–766

    Article  Google Scholar 

  26. Verma GK, Gupta P (2018) Wild animal detection using deep convolutional neural network. In: Proceedings of 2nd international conference on computer vision & image processing, pp 327–338. Springer, Berlin

    Google Scholar 

  27. Chen G, Han TX, He Z, Kays R, Forrester T (2014) Deep convolutional neural network based species recognition for wild animal monitoring. In: 2014 IEEE international conference on image processing (ICIP). IEEE, pp 858–862

    Google Scholar 

  28. Favorskaya M, Pakhirka A (2019) Animal species recognition in the wildlife based on muzzle and shape features using joint CNN. Procedia Comput Sci 159:933–942

    Article  Google Scholar 

  29. Norouzzadeh MS, Nguyen A, Kosmala M, Swanson A, Palmer MS, Packer C, Clune J (2018) Automatically identifying, counting, and describing wild animals in camera-trap images with deep learning. Proc Natl Acad Sci 115(25):E5716–E5725

    Article  Google Scholar 

  30. Sharma R, Pasi N, Shanu S (2020) An automated animal classification system: a transfer learning approach. In: 5th International conference on next generation computing technologies (NGCT-2019)

    Google Scholar 

  31. Trnovszkỳ T, Kamencay P, Orješek R, Benčo M, Sỳkora P (2017) Animal recognition system based on convolutional neural network

    Google Scholar 

  32. Villa AG, Salazar A, Vargas F (2017) Towards automatic wild animal monitoring: Identification of animal species in camera-trap images using very deep convolutional neural networks. Ecol inf 41:24–32

    Article  Google Scholar 

  33. Nguyen H, Maclagan SJ, Nguyen TD, Nguyen T, Flemons P, Andrews K, Ritchie EG, Phung D (2017) Animal recognition and identification with deep convolutional neural networks for automated wildlife monitoring. In: 2017 IEEE international conference on data science and advanced analytics (DSAA). IEEE, pp 40–49

    Google Scholar 

  34. Hsu D (2015) Using convolutional neural networks to classify dog breeds. 1n: Convolutional neural networks for visual recognition [course webpage], vol 2

    Google Scholar 

  35. Lin TY, RoyChowdhury A, Maji S (2015) Bilinear CNN models for fine-grained visual recognition. In: Proceedings of the IEEE international conference on computer vision, pp 1449–1457

    Google Scholar 

  36. Liu J, Kanazawa A, Jacobs D, Belhumeur P (2012) Dog breed classification using part localization. In: European conference on computer vision. Springer, Berlin, pp 172–185

    Google Scholar 

  37. Sermanet P, Frome A, Real E (2014) Attention for fine-grained categorization. arXiv preprint arXiv:1412.7054

  38. Simon M, Rodner E (2015) Neural activation constellations: unsupervised part model discovery with convolutional networks. In: Proceedings of the IEEE international conference on computer vision, pp 1143–1151

    Google Scholar 

  39. Yao H, Zhang S, Zhang Y, Li J, Tian Q (2016) Coarse-to-fine description for fine-grained visual categorization. IEEE Trans Image Process 25(10):4858–4872

    Article  MathSciNet  Google Scholar 

  40. Zhang X, Xiong H, Zhou W, Tian Q (2015) Fused one-vs-all features with semantic alignments for fine-grained visual categorization. IEEE Trans Image Process 25(2):878–892

    Article  MathSciNet  Google Scholar 

  41. Zmudzinski L (2018) Deep learning guinea pig image classification using NVIDIA digits and googlenet. In: CS&P

    Google Scholar 

  42. Khosla A, Jayadevaprakash N, Yao B, Li FF (2011) Novel dataset for fine-grained image categorization: Stanford dogs. In: Proceedings CVPR Workshop on fine-grained visual categorization (FGVC), vol. 2 (2011)

    Google Scholar 

  43. Welinder P, Branson S, Mita T, Wah C, Schroff F, Belongie S, Perona P (2010) Caltech-UCSD Birds 200. Technical Report. CNS-TR-2010-001, California Institute of Technology

    Google Scholar 

  44. Cs231n: Convolutional neural networks for visual recognition. Stanford University (2015). http://cs231n.stanford.edu

  45. Srivastava N, Hinton G, Krizhevsky A, Sutskever I, Salakhutdinov R (2014) Dropout: a simple way to prevent neural networks from overfitting. J Mach Learn Res 15(1):1929–1958

    MathSciNet  MATH  Google Scholar 

  46. Santurkar S, Tsipras D, Ilyas A, Madry A (2018) How does batch normalization help optimization? In: Advances in neural information processing systems, pp 2483–2493

    Google Scholar 

  47. Ioffe S, Szegedy C (2015) Batch normalization: accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167

  48. Agarap AF (2018) Deep learning using rectified linear units (relu). arXiv preprint arXiv:1803.08375

  49. Simonyan K, Zisserman A (2014) Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556

  50. Szegedy C, Vanhoucke V, Ioffe S, Shlens J, Wojna Z (2016) Rethinking the inception architecture for computer vision. In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp 2818–2826

    Google Scholar 

  51. Szegedy C, Liu W, Jia Y, Sermanet P, Reed S, Anguelov D, Erhan D, Vanhoucke V, Rabinovich A (2015) Going deeper with convolutions. In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp 1–9

    Google Scholar 

  52. He K, Zhang X, Ren S, Sun J (2016) Identity mappings in deep residual networks. In: European conference on computer vision. Springer, pp 630–645

    Google Scholar 

  53. He K, Zhang X, Ren S, Sun J (2016) Deep residual learning for image recognition. In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp 770–778

    Google Scholar 

  54. Chollet F (2017) Xception: Deep learning with depthwise separable convolutions. In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp 1251–1258

    Google Scholar 

  55. Huang G, Liu Z, Van Der Maaten L, Weinberger KQ (2017) Densely connected convolutional networks. In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp 4700–4708

    Google Scholar 

  56. Szegedy C, Ioffe S, Vanhoucke V, Alemi A (2016) Inception-v4, inception-resnet and the impact of residual connections on learning. arXiv preprint arXiv:1602.07261

  57. Sandler M, Howard A, Zhu M, Zhmoginov A, Chen LC (2018) Mobilenetv2: inverted residuals and linear bottlenecks. In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp 4510–4520

    Google Scholar 

  58. Zoph B, Vasudevan V, Shlens J, Le QV (2018) Learning transferable architectures for scalable image recognition. In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp 8697–8710

    Google Scholar 

  59. Tan M, Le QV (2019) EfficientNet: Rethinking model scaling for convolutional neural networks. arXiv preprint arXiv:1905.11946

  60. Zoph B, Le QV (2016) Neural architecture search with reinforcement learning. arXiv preprint arXiv:1611.01578

  61. Everingham M, Van Gool L, Williams CK, Winn J, Zisserman A (2010) The pascal visual object classes (voc) challenge. Int J Comput Vis 88(2):303–338

    Article  Google Scholar 

  62. Hoiem D, Chodpathumwan Y, Dai Q (2012) Diagnosing error in object detectors. In: European conference on computer vision. Springer, pp 340–353

    Google Scholar 

  63. Japkowicz N, Shah M (2011) Evaluating learning algorithms: a classification perspective. Cambridge University Press

    Google Scholar 

  64. Japkowicz N, Shah M (2015) Performance evaluation in machine learning. In: Machine learning in radiation oncology. Springer, pp 41–56

    Google Scholar 

  65. Lin TY, Maire M, Belongie S, Hays J, Perona P, Ramanan D, Dollár P, Zitnick CL (2014) Microsoft coco: common objects in context. In: European conference on computer vision. Springer, Berlin, pp 740–755

    Google Scholar 

  66. Chollet F, et al (2018) Keras: the python deep learning library. ascl, pp ascl–1806

    Google Scholar 

  67. Abadi M, Agarwal A, Barham P, Brevdo E, Chen Z, Citro C, Corrado GS, Davis A, Dean J, Devin M, et al (2016) Tensorflow: large-scale machine learning on heterogeneous distributed systems. arXiv preprint arXiv:1603.04467

  68. Ruder S (2016) An overview of gradient descent optimization algorithms. arXiv preprint arXiv:1609.04747

  69. Chen Y, Chen X, Xu X (2018) Dog breed classification via convolutional neural network

    Google Scholar 

  70. Liu X, Xia T, Wang J, Yang Y, Zhou F, Lin Y (2016) Fully convolutional attention networks for fine-grained recognition. arXiv preprint arXiv:1603.06765

  71. Ayanzadeh A, Vahidnia S (2018) Modified deep neural networks for dog breeds identification. Preprints

    Google Scholar 

  72. Borwarnginn P, Thongkanchorn K, Kanchanapreechakorn S, Kusakunniran W (2019) Breakthrough conventional based approach for dog breed classification using CNN with transfer learning. In: 2019 11th International conference on information technology and electrical engineering (ICITEE). IEEE, pp 1–5

    Google Scholar 

  73. Mulligan K, Rivas P (2019) Dog breed identification with a neural network over learned representations from the Xception CNN architecture. In: 21st International conference on artificial intelligence (ICAI 2019)

    Google Scholar 

  74. Zheng H, Fu J, Mei T, Luo J (2017) Learning multi-attention convolutional neural network for fine-grained image recognition. In: Proceedings of the IEEE international conference on computer vision, pp 5209–5217

    Google Scholar 

  75. Jwade SA, Guzzomi A, Mian A (2019) On farm automatic sheep breed classification using deep learning. Comput Electron Agricult 167:105055

    Article  Google Scholar 

Download references

Acknowledgements

The authors would like to thank ITRA (Digital India Corporation, formerly Medialab Asia), MeitY, Govt. of India, for funding. The authors are grateful to Dr. Amitabha Bandyopadhyay (Senior Consultant, ITRA Ag & Food) and Dr. Dilip Kumar Hazra (Assistant Professor, Department of Agronomy, Uttar Banga Krishi Viswa Vidyalaya) for constant encouragement, constructive criticism, and scientific input. The authors gratefully acknowledge the unconditional support from the Director, ICAR- CIRG Makhdoom, UP; the Joint Director of ICAR-IVRI Eastern Regional Station, Kolkata; ICAR National Research Centre on Pig, Rani, Assam; ICAR Research Complex for NEH Region, Umiam, Meghalaya and ICAR Research Complex for NEH Region, Tripura Centre, Tripura for permitting us to access their organized pig farms. The authors are also thankful to Dr. Sourabh Kumar Das (Principal, Kalyani Government Engineering College) for his continuous support.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Pritam Ghosh .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

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

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Ghosh, P. et al. (2021). Image-Based Identification of Animal Breeds Using Deep Learning. In: Koubaa, A., Azar, A.T. (eds) Deep Learning for Unmanned Systems. Studies in Computational Intelligence, vol 984. Springer, Cham. https://doi.org/10.1007/978-3-030-77939-9_12

Download citation

Publish with us

Policies and ethics