Deep Learning-Driven Cattle and Buffalo Classification Using CNN- YOLO Hybrid Framework for Smart Livestock Management
Main Article Content
Abstract
Accurate identification and classification of livestock animals is a fundamental requirement in modern agricultural management. This paper proposes an image- based deep learning framework to automatically distinguish between cattle and buffaloes using Convolutional Neural Networks (CNN) integrated with a YOLO-based object detection pipeline. A curated dataset of 2,500 annotated images— comprising 1,300 cattle and 1,200 buffalo images—was utilized for training and evaluation. The preprocessing pipeline applies resizing to 224×224 pixels, normalization, and data augmentation techniques including random rotation, horizontal flipping, and brightness adjustment to enhance model generalization. The CNN model extracts multi-scale hierarchical features, while YOLO localizes individual animals within cluttered farm backgrounds prior to classification. Experimental evaluation demonstrates an overall classification accuracy of 93.2 %, with precision of 0.92 and recall of 0.94. The proposed system significantly reduces dependence on manual observation and supports real-time, automated livestock monitoring. These results confirm the viability of deep learning for scalable and accurate animal type classification in smart farming environments
Article Details
Section
COPYRIGHT
Submission of a manuscript implies: that the work described has not been published before, that it is not under consideration for publication elsewhere; that if and when the manuscript is accepted for publication, the authors agree to automatic transfer of the copyright to the publisher.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work
- The journal allows the author(s) to retain publishing rights without restrictions.
- The journal allows the author(s) to hold the copyright without restrictions.
References
[1] M. E. Hossain et al., “A systematic review of machine learning techniques for cattle identification,” J. Agricultural Informatics, vol. 13, no. 2, pp. 1–16, 2022.
[2] O. Ermetin, “Deep-learning-based buffalo identification through muzzle dermatoglyphics images,” Archives Animal Breeding, vol. 68, no. 6,pp. 473–482, 2025.
[3] Taunk, D., Patel, M. (2021). Hybrid Restricted Boltzmann Algorithm for Audio Genre Classification. In: Sheth, A., Sinhal, A., Shrivastava, A., Pandey, A.K. (eds) Intelligent Systems. Algorithms for Intelligent Systems. Springer, Singapore. https://doi.org/10.1007/978-981-16-2248-9_11
[4] J. Redmon and A. Farhadi, “YOLOv3: An incremental improvement,”arXiv:1804.02767,2