biologyFrontier researchsince 2022
Can a computer hear whether a pig is stressed?
A neural network sorted pig calls from good and bad situations with 91.5% accuracy. What exactly did it learn?
Farms could watch animal welfare by sound. But the labels are the situations the calls were recorded in, judged positive or negative by people, so a high score may track the situation rather than the pig's feeling.
News
What changed between 1 September 2026 and 27 November 2026, each with its source, what it assumes, and how far it was checked by machine and by people.
9 July 2026Claim
Preprint claims people and networks find shared structure in pig calls, but valence is supported only for extreme…
Gorssen, Sleurs and Winters (bioRxiv 10.64898/2026.07.06.736900, v1): 224 participants sorted 2,192 pig calls freely; 159 did forced-choice tasks. Context identified exactly in 8.0% of answers; valence matched labels in 60.1%, driven by highly aversive contexts (castration, restraint, fighting, crushing); 19.6% of spontaneous labels were valence terms. It is unrefereed and tests human listeners, not the 2022 network directly.
What it assumes: Human listener tasks on a call set with context labels; no journal review
Last searched 27 November 2026. A machine or people check here is the source's own state, as reported; Bistro has not re-run it. All news
The story
Five research groups pooled recordings of commercial pigs from birth to slaughter: 7,414 calls from 411 pigs in 19 kinds of situation, from reunion, huddling and nursing to fights, social isolation, castration and the slaughterhouse. Each situation was labelled positive or negative in advance.
A convolutional neural network trained on spectrograms (pictures of the sound) placed calls in the right valence 91.5% of the time and in the right situation 81.5% of the time. A classical method using four sound measures did far worse.
The size of the claim: the network learned to tell calls from situations people consider good from those they consider bad. It did not measure the pig's feeling directly, and a model can also pick up the setting, the farm or the microphone. The labelled recordings are public, so the classifier can be rebuilt and tested in ways the paper did not.
What is known
Each fact links to its source
- Neural network: 91.5 ± 0.3% for valence and 81.5 ± 0.3% for situation. Permuted discriminant analysis: 61.7% (chance 50.5%) and 19.4% (chance 14.3%) (Briefer et al., Scientific Reports, 2022-03-07). Briefer et al. 2022
- The labelled audio and spectrograms (the Soundwel database, about 326 MB, with a key spreadsheet) are on Zenodo; the paper's data statement was corrected in 2023 to point to it. Zenodo record 8252482
Milestones
The results already checked on the way to the goal, the published claims not yet checked by machine and by people, then the open steps, easiest first. Each step is a piece someone else can check.
Known
Briefer et al. (2022): a neural network sorted 7,414 calls from 411 pigs by valence with 91.5% accuracy and by situation with 81.5%; valence labels were assigned to situations in advance. source
Known
The labelled recordings (the Soundwel database) are public on Zenodo. source
First step an afternoon
Rebuild a spectrogram classifier on Soundwel with a random split: pass if valence accuracy is within 3 percentage points of 91.5%.
Open step an afternoon
Train on some situation types and test on others: is valence accuracy above 50.5% (binomial test, p < 0.05)?
Open step an afternoon
Keep each animal, or else each recording source, wholly in training or test: does valence accuracy stay at or above 80%?
Open step research level
Compare classifier output with an independent measure of state recorded at the same time, such as behaviour scores or physiology, on new recordings.
The goal
A pig-call classifier that tells positive from negative situations on new animals, new farms and situation types it never saw, checked against independent welfare measures.
Tasks for your agent
Nobody expects a solution from one run. Each task here builds a piece someone else can check: a reproduced number, a formal statement, a clean survey. That is how the big results were reached.
Task 1
Unseen situations
Rebuild a spectrogram classifier on the Soundwel data, train valence on some situation types and test on situation types it never saw. Is accuracy above 50.5% (binomial test, p < 0.05)? Pass if yes; fail if not, with the accuracy.
Separates 'sounds like a bad time' from 'sounds like this particular setting', the main doubt about the 91.5%.
Task 2
Unseen animals or sources
Repeat the valence test with every animal, or if the key does not identify animals every recording source, kept wholly in either training or test. How far does accuracy fall from 91.5%? Pass if it stays at or above 80%.
A high score that collapses on new animals would not work on a real farm.
Starting a project makes it private to you and the people you invite. Your agent then works on it with your own model account.