AI system developed to assess pain levels in sheepAI system developed to assess pain levels in sheep
Researchers design artificial intelligence system to assess pain levels in sheep; can be applied to other types of livestock.
June 6, 2017
An artificial intelligence (AI) system designed by researchers at the University of Cambridge in the U.K. is able to detect pain levels in sheep, which could aid in early diagnosis and treatment of common, but painful, conditions in animals.
The researchers have developed an AI system that uses five different facial expressions to recognize whether a sheep is in pain and estimate the severity of that pain. The results could be used to improve sheep welfare, and could be applied to other types of animals, such as rodents used in medical research, rabbits or horses.
Building on earlier work that teaches computers to recognize emotions and expressions in human faces, the system is able to detect the distinct parts of a sheep’s face and compare it with a standardized measurement tool developed by veterinarians for diagnosing pain. The results were presented June 1 at the 12th IEEE International Conference on Automatic Face & Gesture Recognition in Washington, D.C.
Severe pain in sheep is associated with conditions such as foot rot, an extremely painful and contagious condition that causes the foot to rot away; or mastitis, an inflammation of the udder in ewes caused by injury or bacterial infection. Both of these conditions are common in large flocks, and early detection will lead to faster treatment and pain relief. Reliable and efficient pain assessment would also help with early diagnosis.
As is common with most animals, facial expressions in sheep are used to assess pain. In 2016, Dr. Krista McLennan, a former postdoctoral researcher at the University of Cambridge who is now a lecturer in animal behavior at the University of Chester, developed the "Sheep Pain Facial Expression Scale" (SPFES), a tool to measure pain levels based on facial expressions of sheep, and has been shown to recognize pain with high accuracy. However, training people to use the tool can be time-consuming and individual bias can lead to inconsistent scores.
In order to make the process of pain detection more accurate, the Cambridge researchers behind the current study used SPFES as the basis of an AI system that uses machine learning techniques to estimate pain levels in sheep. Professor Peter Robinson, who led the research, normally focuses on teaching computers to recognize emotions in human faces, but a meeting with McLennan got him interested in exploring whether a similar system could be developed for animals.
“There’s been much more study over the years with people,” said Robinson, with Cambridge’s Computer Laboratory. “A lot of the earlier work on the faces of animals was actually done by Darwin, who argued that all humans and many animals show emotion through remarkably similar behaviors, so we thought there would likely be crossover between animals and our work in human faces.”
According to SPFES, when a sheep is in pain, there are five main things that happen to their faces: their eyes narrow, their cheeks tighten, their ears fold forwards, their lips pull down and back and their nostrils change from a U shape to a V shape. SPFES then ranks these characteristics on a scale of one to 10 to measure the severity of the pain.
Left: Localized facial landmarks; Right: Normalized sheep face marked with feature bounding boxes.
“The interesting part is that you can see a clear analogy between these actions in the sheep’s faces and similar facial actions in humans when they are in pain — there is a similarity in terms of the muscles in their faces and in our faces,” said co-author Dr. Marwa Mahmoud, a postdoctoral researcher in Robinson’s group. “However, it is difficult to ‘normalize’ a sheep’s face in a machine learning model. A sheep’s face is totally different in profile than looking straight on, and you can’t really tell a sheep how to pose.”
To train the model, the Cambridge researchers used a small dataset consisting of approximately 500 photographs of sheep, which had been gathered by veterinarians in the course of providing treatment. Yiting Lu, a Cambridge undergraduate in engineering and co-author on the paper, trained the model by labelling the different parts of the sheep’s faces on each photograph and ranking their pain levels according to SPFES.
Early tests of the model showed that it was able to estimate pain levels with about 80% degree of accuracy, which means that the system is learning. While the results with still photographs have been successful, in order to make the system more robust, they require much larger datasets.
The next plans for the system are to train it to detect and recognize sheep faces from moving images, and to train it to work when the sheep is in profile or not looking directly at the camera. Robinson said if they are able to train the system well enough, a camera could be positioned at a water trough or other place where sheep congregate, and the system would be able to recognize any sheep that were in pain. The farmer would then be able to retrieve the affected sheep from the field and get it the necessary medical attention.
You May Also Like
Iowa turkey flocks confirmed with HPAIOct 23, 2023
Current Conditions for
New York, NY
Enter a zip code to see the weather conditions for a different location.