Buffalo Identification in Mixed-Species Environments: A Comparative Deep Learning Approach Using ResNet50 and EfficientNetB3
DOI:
https://doi.org/10.6000/1927-520X.2025.14.08Keywords:
Buffalo classification, Deep learning, EfficientNetB3, ResNet50.Abstract
Abstract:Background: Buffaloes are integral to agricultural economies, particularly in regions that depend on them for milk production, labor, and income. However, their accurate visual identification in mixed-species environments, especially when co-existing with animals like elephants and rhinos, remains a technological challenge.
Methods: This study explores deep learning-based image classification for species-specific buffalo detection using two convolutional neural network architectures: ResNet50 and EfficientNetB3. A balanced image dataset comprising four classes (buffalo, elephant, rhino, zebra) was curated, with training (80%) and validation (20%) splits. The models were fine-tuned using transfer learning, with custom dense layers added atop frozen base layers. EfficientNetB3 used higher-resolution inputs (300x300) and extensive augmentation, while ResNet50 operated on 300x300 images. Performance was evaluated using confusion matrices and key metrics, including validation accuracy, precision, recall, and F1-score, primarily focusing on buffalo classification.
Results:ResNet50 achieved a validation accuracy of 47%, and EfficientNetB3 achieved 42%. However, ResNet50 misclassified buffaloes heavily, resulting in a buffalo recall of only 0.07 and an F1-score of 0.11. In contrast, EfficientNetB3 correctly classified 72 out of 200 buffalo images, achieving a buffalo recall of 0.36 and an F1-score of 0.32. These numerical results highlight EfficientNetB3’s superior ability to identify buffaloes accurately in complex visual contexts.
Conclusion: EfficientNetB3 is more effective than ResNet50 for buffalo-focused image recognition tasks, offering higher sensitivity and precision in buffalo classification. This study supports the development of AI-powered species-specific monitoring tools, aiding in health tracking, ecological studies, and smart agricultural systems.
References
Alfarhood S, Alrayeh A, Safran M, Alfarhood M, Che D. Image-based Arabian camel breed classification using transfer learning on CNNs. Appl Sci. 2023;13(14): p. 8192. DOI: https://doi.org/10.3390/app13148192
Alweshah M, Rababa L, Ryalat MH, Al Momani A, Ababneh MF. African buffalo algorithm: training the probabilistic neural network to solve classification problems. J King Saud Univ Comput Inf Sci. 2022;34(5):1808-18. DOI: https://doi.org/10.1016/j.jksuci.2020.07.004
George G, Anusuya S. Leveraging efficient Net-B3 with advanced fine-tuning for precise breast cancer classification. In: 2024 IEEE 16th International Conference on Computational Intelligence and Communication Networks (CICN). IEEE; 2024. p. 938-44. DOI: https://doi.org/10.1109/CICN63059.2024.10847503
Kaur G, Sharma N. Efficientnetb3-based lung cancer classification from CT scan images: A deep learning approach. In: 2024 4th International Conference on Technological Advancements in Computational Sciences (ICTACS). IEEE; 2024. pp. 206-12. DOI: https://doi.org/10.1109/ICTACS62700.2024.10841049
Kumar P. Novel insights into lectin binding patterns in the nasopharyngeal tonsil of buffaloes (Bubalus bubalis). J Buffalo Sci. 2025;14:50-64. DOI: https://doi.org/10.6000/1927-520X.2025.14.06
Manga AR, Nirmala, Azis H, Fattah F, Salim Y, Darwis H,et al. Resnet-50 for flower image classification: A comparative study of segmentation and non-segmentation approaches. In: 2025 19thInternational Conference on Ubiquitous Information Management and Communication (IMCOM). IEEE; 2025. p. 1-6. DOI: https://doi.org/10.1109/IMCOM64595.2025.10857520
Martnez-Burnes J, Barrios-Garca H, Carvajal-de la Fuente V, et al. Viral diseases in water buffalo (Bubalus bubalis): new insights and perspectives. Animals. 2024;14(6):845. DOI: https://doi.org/10.3390/ani14060845
Pan Y, Jin H, Gao J, Rauf HT. Identification of buffalo breeds using self-activated-based improved convolutional neural networks. Agriculture. 2022;12(9):1386. DOI: https://doi.org/10.3390/agriculture12091386
Panchal I, Sawhney I, Sharma A, Dang A. Classification of healthy and mastitis Murrah buffaloes by application of neural network models using yield and milk quality parameters. Comput Electron Agric. 2016;127:242-8. DOI: https://doi.org/10.1016/j.compag.2016.06.015
Shahzad S, Ashraf K, Ehsan N, Sultan K, Abbasi A, Tabassum S, et al. Assessment of hazardous trace metals and associated health risk as affected by feed intake in buffalo milk. Sci Rep. 2025;15(1):1-16. DOI: https://doi.org/10.1038/s41598-025-92256-6
Singh S, Rane H, Takle A, Poyekar T, Dalvi S, Kahlon RK, et al. Precise AI-driven cattle identification and classification system. In: International Conference on Information and Communication Technology for Intelligent Systems. Springer; 2024. p. 299-319. DOI: https://doi.org/10.1007/978-981-97-6675-8_24
Sultan MF, Tunio MN, Asim M, Shaikh E. Artificial intelligence and its implications for cattle and buffalo farming. In: Converging Economic Policy, Corporate Strategy, and Technology for Emerging Economies. IGI Global Scientific Publishing; 2025. pp. 217-26. DOI: https://doi.org/10.4018/979-8-3693-5723-1.ch011
Wang X, Ye Q, Liu L, Niu H, Du B. Resnet-50-nts digital painting image style classification based on three-branch convolutional attention. Egypt Inform J. 2025;29:100614. DOI: https://doi.org/10.1016/j.eij.2025.100614
Zhang X, Li Y, Zhang Y, Yao Z, Zou W, Nie P, Yang L. A new method to detect buffalo mastitis using udder ultrasonography based on deep learning network. Animals. 2024;14(5):707. DOI: https://doi.org/10.3390/ani14050707
Downloads
Published
How to Cite
Issue
Section
License
Policy for Journals/Articles with Open Access
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 permitted and encouraged to post links to 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