Research led by the University of Copenhagen, the ETH Zurich and the France's INRAE, could be used to improve animal welfare in the future.

March 7, 2022

3 Min Read
Algorithm translates pig grunts into actual emotions
Patarapong/iStock/Thinkstock

An international team of researchers from Denmark, Switzerland, France, Germany, Norway and the Czech Republic have translated pig grunts into emotions. The findings were published today in Scientific Reports

Using more than 7,000 audio recordings of pigs, the researchers designed an algorithm that can decode whether an individual pig is experiencing a positive emotion ('happy' or 'excited'), a negative one ('scared' or 'stressed') or somewhere in between. The recordings were collected in a wide range of situations encountered by commercial pigs, both positive and negative, from when they are born until their deaths.

"With this study, we demonstrate that animal sounds provide great insight into their emotions. We also prove that an algorithm can be used to decode and understand the emotions of pigs, which is an important step towards improved animal welfare for livestock," says Associate Professor Elodie Briefer of the University of Copenhagen's Department of Biology at the University of Copenhagen, who co-led the study.

The researchers recorded pig sounds in both commercial and experimental scenarios, which based on the behavior of the pigs, are either associated with a positive and negative emotion. Positive situations included, for example, those when piglets suckle from their mothers or when they are united with their family after being separated. The emotionally negative situations included, among others, separation, fights between piglets, castration and slaughter.

In experimental stables, the researchers also created various mock scenarios for the pigs, designed to evoke more nuanced emotions in the middle of the spectrum. These included an arena with toys or food and a corresponding arena without any stimuli. The researchers also placed new and unfamiliar objects in the arena for the pigs to interact with. Along the way, the pigs' calls, behavior and heartrates were monitored and recorded when possible.

The researchers then analyzed the more than 7,000 audio recordings to see if there was a pattern in the sounds as a function of the emotions, and if they could discern the positive situations and emotions from the negative ones. As already revealed in previous research, the researchers collected more high-frequency calls (such as screams and squeals) in negative situations. At the same time, low-frequency calls (such as barks and grunts) occurred both in situations where the pigs experienced positive or negative emotions.

With an even more thorough analysis of the sound files, the researchers found a new pattern that revealed what the pigs experienced in certain situations in even greater detail.

"There are clear differences in pig calls when we look at positive and negative situations. In the positive situations, the calls are far shorter, with minor fluctuations in amplitude. Grunts, more specifically, begin high and gradually go lower in frequency. By training an algorithm to recognize these sounds, we can classify 92% of the calls to the correct emotion," says Briefer.

The study of animal emotions is a relatively new field that has come about over the last 20 years. Today, it is widely accepted that the mental health of livestock is important for their overall well-being. Nevertheless, today's animal welfare focuses primarily on the physical health of livestock. Indeed, several systems exist that can automatically monitor an animal's physical health for a farmer.

"We have trained the algorithm to decode pig grunts. Now, we need someone who wants to develop the algorithm into an app that farmers can use to improve the welfare of their animals," says Briefer.  

She adds that, with enough data to train the algorithm, the method could also be used to better understand the emotions of other mammals.

Source: University of Copenhagen, which is solely responsible for the information provided, and wholly owns the information. Informa Business Media and all its subsidiaries are not responsible for any of the content contained in this information asset.

Subscribe to Our Newsletters
National Hog Farmer is the source for hog production, management and market news

You May Also Like