Abstract: The aim of this study was to develop and evaluate a machine vision algorithm to assess the pain level in horses, using an automatic computational classifier based on the Horse Grimace Scale (HGS) and trained by machine learning method. The use of the Horse Grimace Scale is dependent on a human observer, who most of the time does not have availability to evaluate the animal for long periods and must also be well trained in order to apply the evaluation system correctly. In addition, even with adequate training, the presence of an unknown person near an animal in pain can result in behavioral changes, making the evaluation more complex. As a possible solution, the automatic video-imaging system will be able to monitor pain responses in horses more accurately and in real-time, and thus allow an earlier diagnosis and more efficient treatment for the affected animals. This study is based on assessment of facial expressions of 7 horses that underwent castration, collected through a video system positioned on the top of the feeder station, capturing images at 4 distinct timepoints daily for two days before and four days after surgical castration. A labeling process was applied to build a pain facial image database and machine learning methods were used to train the computational pain classifier. The machine vision algorithm was developed through the training of a Convolutional Neural Network (CNN) that resulted in an overall accuracy of 75.8% while classifying pain on three levels: not present, moderately present, and obviously present. While classifying between two categories (pain not present and pain present) the overall accuracy reached 88.3%. Although there are some improvements to be made in order to use the system in a daily routine, the model appears promising and capable of measuring pain on images of horses automatically through facial expressions, collected from video images.
The Equine Research Bank provides access to a large database of publicly available scientific literature. Inclusion in the Research Bank does not imply endorsement of study methods or findings by Mad Barn.
This research summary has been generated with artificial intelligence and may contain errors and omissions. Refer to the original study to confirm details provided. Submit correction.
The research article discusses the development and testing of a machine vision algorithm capable of assessing pain in horses through automated recognition of facial expressions.
Study Objective and Approach
This research was focused on building and evaluating a machine vision algorithm that would automatically assess the pain level in horses. The tool was designed to improve upon the existing Horse Grimace Scale, which often requires a well-trained human observer on site, may be influenced by the observer’s presence, and may not permit continuous evaluation of the animal’s condition.
The researchers wanted to devise a solution that could deliver more accurate, real-time monitoring of pain responses in horses, thereby ensuring timely diagnosis and improved treatment effectiveness.
Methodology and Data Collection
This study utilized video footage of seven horses undergoing castration, captured from a camera positioned above the feeding station. The images were collected at four different times each day, for a period of two days before and four days after the surgical procedure.
The collected facial images were then labeled to construct a database signaling pain, which was used to train the computational pain classifier using machine learning techniques.
Algorithm Development and Accuracy
The researchers developed the machine vision algorithm with the help of a Convolutional Neural Network (CNN), a type of deep learning model most commonly applied to analyzing visual data.
The CNN was trained to classify the pain level into three distinct categories: not present, moderately present, and obviously present. It achieved an overall accuracy of 75.8% in this task.
When the pain level was simplified into two categories, pain not present and pain present, the consistency of the algorithm was notably higher at 88.3%.
Conclusions and Future Directions
Despite some areas of improvement, the researchers concluded that the model appears promising for future applications. It offers the capability to measure pain in horses automatically through facial expressions captured in video images.
In future iterations, the researchers will likely look to improve the accuracy of the model, and refine it for more practical, routine use in high-traffic areas such as barns or veterinary clinics.
Cite This Article
APA
Lencioni GC, de Sousa RV, de Souza Sardinha EJ, Corrêa RR, Zanella AJ.
(2021).
Pain assessment in horses using automatic facial expression recognition through deep learning-based modeling.
PLoS One, 16(10), e0258672.
https://doi.org/10.1371/journal.pone.0258672
Department of Preventive Veterinary Medicine and Animal Health of the School of Veterinary Medicine and Animal Science (FMVZ) of the University of São Paulo (USP), São Paulo, SP, Brazil.
de Sousa, Rafael Vieira
Department of Biosystems Engineering, Faculty of Animal Science and Food Engineering (FZEA), of the University of São Paulo, Pirassununga, São Paulo, Brazil.
de Souza Sardinha, Edson José
Department of Biosystems Engineering, Faculty of Animal Science and Food Engineering (FZEA), of the University of São Paulo, Pirassununga, São Paulo, Brazil.
Corrêa, Rodrigo Romero
Department of Surgery of the School of Veterinary Medicine and Animal Science (FMVZ) of the University of São Paulo (USP), São Paulo, SP, Brazil.
Zanella, Adroaldo José
Department of Preventive Veterinary Medicine and Animal Health of the School of Veterinary Medicine and Animal Science (FMVZ) of the University of São Paulo (USP), São Paulo, SP, Brazil.
MeSH Terms
Algorithms
Animals
Automated Facial Recognition / methods
Databases, Factual
Deep Learning
Facial Recognition
Horses
Humans
Image Interpretation, Computer-Assisted / methods
Neural Networks, Computer
Orchiectomy / adverse effects
Orchiectomy / veterinary
Pain Measurement / veterinary
Video Recording
Conflict of Interest Statement
The authors have declared that no competing interests exist.
Jordan A, Hughes J, Pakresi M, Hepburn S, O'Brien JT. The utility of PAINAD in assessing pain in a UK population with severe dementia.. Int J Geriatr Psychiatry 2011 Feb;26(2):118-26.
Marcantonio Coneglian M, Duarte Borges T, Weber SH, Godoi Bertagnon H, Michelotto PV. Use of the horse grimace scale to identify and quantify pain due to dental disorders in horses. Appl Anim Behav Sci 2020;225: 104970.
Andersen PH, Gleerup KB, Wathan J, Coles B, Kjellström H, Broomé S. Can a Machine Learn to See Horse Pain? An Interdisciplinary Approach Towards Automated Decoding of Facial Expressions of Pain in the Horse. Proc Meas Behav 2018; 6–8.
Lu Y, Mahmoud M, Robinson P. Estimating Sheep Pain Level Using Facial Action Unit Detection. Proc - 12th IEEE Int Conf Autom Face Gesture Recognition, FG 2017 - 1st Int Work Adapt Shot Learn Gesture Underst Prod ASL4GUP 2017, Biometrics Wild, Bwild 2017, Heteroge 2017; 394–399.