Computer Vision for Emotion Identification on Sheep Images

Authors

  • Chandra Shekhar Yadav Noida Institute of Engineering Technology
  • Josias Guimarães Batista Federal Institute of Education Science and Technology of Ceará - IFCE
  • Nícolas Fonteles Leite Federal Institute of Education Science anda Technology of Ceará - IFCE
  • João Paulo Arcelino do Rego Federal Institute of Education Science and Technology - IFCE

DOI:

https://doi.org/10.21439/jme.v9i1.133

Keywords:

Computer Vision, EfficientNet, Emotion detection, Pre-trained model, ResNet101, ResNet152, ResNet50, VGG16, YOLOv8

Abstract

The rising global demand for meat and dairy products has accelerated the expansion of livestock farming, underscoring the need for advanced technologies to ensure animal welfare and productivity. This research explores the potential of automated monitoring systems, leveraging depth sensors and time-of-flight cameras, to provide valuable insights into environmental conditions, nutrition, health, and productivity. These systems enable the early detection of abnormal behaviors in large-scale farming operations, paving the way for more effective management practices. The study emphasizes the importance of understanding animal needs and introduces advanced models, including EfficientNet, ResNet50, ResNet101, ResNet152, and VGG16, for emotion recognition in sheep. These models achieve impressive accuracy rates ranging from 88% to 93%, significantly enhancing the ability to detect and classify emotional states such as pain. This capability represents a vital component of precision livestock farming, a practice that integrates real-time data with machine learning to support informed decision-making, optimize yields, and mitigate risks. Furthermore, the research highlights methodologies for animal identification, body condition assessment, and pain estimation, showcasing the potential of sophisticated imaging and perception technologies to revolutionize livestock farming. By improving welfare and operational efficiency, these advancements offer a sustainable approach to addressing the growing challenges in modern agriculture.

Downloads

Download data is not yet available.

Author Biographies

Chandra Shekhar Yadav, Noida Institute of Engineering Technology

Chandra Shekhar Yadav is an experienced Professor and Dean, School of Computer Applications at the Noida Institute of Engineering and Technology (NIET), Greater Noida. He has 25 years of teaching experience. He completed his Master degree in Computer Applications from the Institute of Engineering and Technology (IET), Lucknow, in 1998, and M. Tech (Computer Science) from JSSATE, Noida in 2007. He received his Ph.D. (Computer Science and Engineering) from Dr. APJ Abdul Kalam Technical University, Uttar Pradesh, Lucknow in 2016. He has supervised 23 M. Tech. theses. He has published 56 research papers in the journals of repute. His Australian patent title “Women Safety hidden malicious chip using deep learning and IoT based tracking technology” has been granted. He has also filed two patents in India, one is “Accept finger prints and display all the original documents on monitor” and second one is “smart cooking system”. He has Co- authored book title “Modeling and Simulation Concepts”, University Science and three book chapters. He has received grant of Rs. 3.0 lakh for project title “Receiver Buffer Blocking in Multipath Communication” under “collaborative research and innovative program” with MIT, Moradabad funding through TEQIP III AKTU for 2019-20.

Josias Guimarães Batista, Federal Institute of Education Science and Technology of Ceará - IFCE

Holds a PhD in Electrical Engineering from the Federal University of Ceará (2023) and a Master's degree in Teleinformatics Engineering (2017) from the same institution. Graduated in Mechatronics from the Instituto Centro de Ensino Tecnológico (2003), with a postgraduate degree (Specialization) in Industrial Automation (2008) from the University of Fortaleza - UNIFOR, a degree in Pedagogical Training for Professional Education Teachers from the University of Southern Santa Catarina (2010), and a degree in Systems Analysis and Development from UNINASSAU (2023). Works as a professor and researcher at IFCE Campus Fortaleza. Areas of interest: Industrial Automation, Industrial Robotics, Mobile Robotics, Instrumentation and Process Control, Electrical Machines and Drives, System Identification, Control, Applied Computational Intelligence, Data Analysis, Machine Learning, and Systems Development.

Nícolas Fonteles Leite, Federal Institute of Education Science anda Technology of Ceará - IFCE

Graduated in Mechatronics Engineering from IFCE. Has experience in the area of ​​Robotics, Control and Automation, but has mainly worked in the area of ​​software development focused on mobile and web applications for medical/therapeutic assistance. Seeks opportunities to further deepen his knowledge in the area of ​​computer science and to collaborate and learn with other professionals in the field. Also has brief experience in teaching mini-courses in the area of ​​technology and programming.

João Paulo Arcelino do Rego, Federal Institute of Education Science and Technology - IFCE

Animal scientist from the State University of Vale do Acaraú (UVA), Sobral, Ceará. Master's degree in Animal Science from the Federal University of Ceará (UFC), in the area of ​​Animal Nutrition and Production, with emphasis on reproductive management, and PhD in Animal Science from the same institution, in the area of ​​Biotechnology and Animal Physiology, having completed a doctoral internship in the sandwich program at the University of Queensland, Australia. He is a Professor at the Federal Institute of Education, Science and Technology of Ceará (IFCE), working in the areas of animal production and reproduction physiology, and currently serves as General Director of the Boa Viagem Campus. He acts as Associate Editor of the Animal Reproduction area of ​​the Brazilian Journal of Animal Science and as an ad hoc reviewer for international scientific journals specializing in reproductive biology, including Reproductive Biology and Endocrinology, Animal Reproduction Science, Journal of Animal Science, Reproduction in Domestic Animals and Theriogenology. He develops research in the areas of ruminant reproductive physiology, molecular markers associated with reproductive processes, proteomics of seminal plasma and sperm cells, cryobiology and freezability of bull semen, in addition to of integrated ruminant production systems in the semi-arid region, with emphasis on productive and reproductive animal management.

References

ARULMOZHI, E.; BHUJEL, A.; MOON, B.-E.; KIM, H.-T. The application of cameras in precision pig farming: an overview for swine-keeping professionals. *Animals*, v. 11, n. 8, 2021. ISSN 2076-2615. Disponível em: [https://www.mdpi.com/2076-2615/11/8/2343](https://www.mdpi.com/2076-2615/11/8/2343). Acesso em: 28 out. 2025.

BAMJI, C.; GODBAZ, J.; OH, M.; MEHTA, S.; PAYNE, A.; ORTIZ, S.; NAGARAJA, S.; PERRY, T.; THOMPSON, B. A review of indirect time-of-flight technologies. *IEEE Transactions on Electron Devices*, v. 69, n. 6, p. 2779–2793, 2022.

DUTTA, D.; NATTA, D.; MANDAL, S.; GHOSH, N. Moonitor: an IoT based multisensory intelligent device for cattle activity monitoring. *Sensors and Actuators A: Physical*, v. 333, p. 113271, 2022.

FUENTES, A.; YOON, S.; PARK, J.; PARK, D. S. Deep learning-based hierarchical cattle behavior recognition with spatio-temporal information. *Computers and Electronics in Agriculture*, v. 177, p. 105627, 2020.

GALLAGHER, J. How to Train YOLOv8 Object Detection on a Custom Dataset. *Roboflow Blog*, 2023. Disponível em: [https://blog.roboflow.com/how-to-train-yolov8-on-a-custom-dataset/](https://blog.roboflow.com/how-to-train-yolov8-on-a-custom-dataset/). Acesso em: 28 out. 2025.

HÄGER, C.; BIERNOT, S.; BUETTNER, M.; GLAGE, S.; KEUBLER, L. M.; HELD, N.; BLEICH, E. M.; OTTO, K.; MÜLLER, C. W.; DECKER, S. et al. The sheep grimace scale as an indicator of post-operative distress and pain in laboratory sheep. *PLoS ONE*, v. 12, n. 4, p. e0175839, 2017.

JIA, N.; KOOTSTRA, G.; KOERKAMP, P. G.; SHI, Z.; DU, S. Segmentation of body parts of cows in RGB-depth images based on template matching. *Computers and Electronics in Agriculture*, v. 180, p. 105897, 2021.

LIU, D.; HE, D.; NORTON, T. Automatic estimation of dairy cattle body condition score from depth image using ensemble model. *Biosystems Engineering*, v. 194, p. 16–27, 2020.

MCLENNAN, K. M.; REBELO, C. J.; CORKE, M. J.; HOLMES, M. A.; LEACH, M. C.; CONSTANTINO-CASAS, F. Development of a facial expression scale using footrot and mastitis as models of pain in sheep. *Applied Animal Behaviour Science*, v. 176, p. 19–26, 2016.

NEETHIRAJAN, S.; KEMP, B. Digital livestock farming. *Sensing and Bio-Sensing Research*, v. 32, p. 100408, 2021.

NIE, L.; LI, B.; DU, Y.; JIAO, F.; SONG, X.; LIU, Z. Deep learning strategies with CretoNext-YOLOv5 for advanced pig face emotion detection. *Scientific Reports*, v. 14, n. 1, p. 1–19, 2024. Disponível em: [https://www.nature.com/articles/s41598-024-51755-8](https://www.nature.com/articles/s41598-024-51755-8). Acesso em: 28 out. 2025.

NILOOFAR, P.; FRANCIS, D. P.; LAZAROVA-MOLNAR, S.; VULPE, A.; VOCHIN, M. C.; SUCIU, G.; BALANESCU, M.; ANESTIS, V.; BARTZANAS, T. Data-driven decision support in livestock farming for improved animal health, welfare and greenhouse gas emissions: overview and challenges. *Computers and Electronics in Agriculture*, v. 190, p. 106406, 2021.

NOOR, A.; ZHAO, Y. Sheep Facial Expression Primary Data-set. *Mendeley Data*, 15 mar. 2020. Disponível em: [https://data.mendeley.com/datasets/y5sm4smnfr/5](https://data.mendeley.com/datasets/y5sm4smnfr/5). Acesso em: 28 out. 2025.

NOOR, A.; ZHAO, Y.; KOUBÂA, A.; WU, L.; KHAN, R.; ABDALLA, F. Y. Automated sheep facial expression classification using deep transfer learning. *Computers and Electronics in Agriculture*, v. 175, p. 105528, 2020.

PESSANHA, F.; SALAH, A. A.; LOON, T. van; VELTKAMP, R. Facial image-based automatic assessment of equine pain. *IEEE Transactions on Affective Computing*, v. 14, n. 3, p. 2064–2076, 2023.

REZA, M. N.; LEE, K.-H.; HABINEZA, E.; SAMSUZZAMAN, S.; KYOUNG, H.; CHOI, Y. K.; KIM, G.; CHUNG, S.-O. RGB-based machine vision for enhanced pig disease symptoms monitoring and health management: a review. *Journal of Animal Science and Technology*, p. –, 2024. Disponível em: [https://doi.org/10.5187/jast.2024.e111](https://doi.org/10.5187/jast.2024.e111). Acesso em: 28 out. 2025.

ROBOFLOW. *Roboflow: Give your software the power to see objects in images and video*, 2023. Disponível em: [https://roboflow.com](https://roboflow.com). Acesso em: 28 out. 2025.

ROY, R.; BARAL, M. M.; PAL, S. K.; KUMAR, S.; MUKHERJEE, S.; JANA, B. Discussing the present, past, and future of machine learning techniques in livestock farming: a systematic literature review. In: *INTERNATIONAL CONFERENCE ON MACHINE LEARNING, BIG DATA, CLOUD AND PARALLEL COMPUTING (COM-IT-CON)*, 2022. [S.l.: s.n.], v. 1, p. 179–183, 2022.

SANT’ANA, D. A.; PACHE, M. C. B.; MARTINS, J.; SOARES, W. P.; MELO, S. L. N. de; GARCIA, V.; WEBER, V. A. de M.; HEIMBACH, N. da S.; MATEUS, R. G.; PISTORI, H. Weighing live sheep using computer vision techniques and regression machine learning. *Machine Learning with Applications*, v. 5, p. 100076, 2021.

SARWAR, F.; GRIFFIN, A.; REHMAN, S. U.; PASANG, T. Detecting sheep in UAV images. *Computers and Electronics in Agriculture*, v. 187, p. 106219, 2021.

STEAGALL, P. V.; BUSTAMANTE, H.; JOHNSON, C. B.; TURNER, P. V. Pain management in farm animals: focus on cattle, sheep and pigs. *Animals*, v. 11, p. 1483, 2021. Disponível em: [https://www.mdpi.com/2076-2615/11/6/1483/htm](https://www.mdpi.com/2076-2615/11/6/1483/htm). Acesso em: 28 out. 2025.

STRAW, A. D. Review of methods for animal videography using camera systems that automatically move to follow the animal. *Integrative and Comparative Biology*, v. 61, n. 3, p. 917–925, jun. 2021. ISSN 1540-7063. Disponível em: [https://doi.org/10.1093/icb/icab126](https://doi.org/10.1093/icb/icab126). Acesso em: 28 out. 2025.

TSAI, Y. C.; HSU, J. T.; DING, S. T.; RUSTIA, D. J. A.; LIN, T. T. Assessment of dairy cow heat stress by monitoring drinking behaviour using an embedded imaging system. *Biosystems Engineering*, v. 199, p. 97–108, 2020.

XU, S.; ZHENG, H.; TAO, S.; CHAI, Y.; HE, Q.; CHEN, H. A lightweight pig face recognition method based on efficient mobile network and horizontal vertical attention mechanism. *IEEE Transactions on Instrumentation and Measurement*, v. 73, p. 1–14, 2024.

YADAV, C. S.; PEIXOTO, A. A. T.; RUFINO, L. A. L.; SILVEIRA, A. B.; ALEXANDRIA, A. R. d. Intelligent classifier for identifying and managing sheep and goat faces using deep learning. *AgriEngineering*, v. 6, n. 4, p. 3586–3601, 2024. ISSN 2624-7402. Disponível em: [https://www.mdpi.com/2624-7402/6/4/204](https://www.mdpi.com/2624-7402/6/4/204). Acesso em: 28 out. 2025.

YU, S.; LIU, X.; TAN, Q.; WANG, Z.; ZHANG, B. Sensors, systems and algorithms of 3D reconstruction for smart agriculture and precision farming: a review. *Computers and Electronics in Agriculture*, v. 224, p. 109229, 2024. ISSN 0168-1699. Disponível em: [https://www.sciencedirect.com/science/article/pii/S0168169924006203](https://www.sciencedirect.com/science/article/pii/S0168169924006203). Acesso em: 28 out. 2025.

Downloads

Published

2026-05-05

How to Cite

Shekhar Yadav, C. ., Guimarães Batista, J., Fonteles Leite, N., & Arcelino do Rego, J. P. . (2026). Computer Vision for Emotion Identification on Sheep Images. Journal of Mechatronics Engineering, 9(1), e026001. https://doi.org/10.21439/jme.v9i1.133

slot thailand

Codesria Journals as a Slot Gacor Platform on Thailand Server