Will livestock AI that works on one farm work on the next?
Pooling data is not enough. Studies of cattle lameness and behaviour show why test design, farm context and sharing agreements determine what can actually be concluded.
Listen to this article
English narration using a synthetic voice.
Sharing data from several farms may help build more representative AI. It does not guarantee that the system will work on the next farm. A model can learn to recognise a site, device or work routine rather than the health-related phenomenon being studied. The difference emerges during testing, and sometimes only after installation.
An organiser’s account dated 26 November 2026 reports Luciano Baresi’s call at Cremona for pooled data, potentially coordinated by industry associations. That is a proposal for cooperation, not evidence of an operational shared database. Understanding its potential requires examining how observations are collected, separated and used. [A1]
Millions of measurements do not mean millions of animals
A camera records many images of the same cow. A collar produces repeated measurements throughout the day. Those observations can be useful, but occupying separate rows does not make them independent animals. If the same animal or nearly identical sequences appear in both training and testing, evaluation answers an easier question than transfer to a new setting.
Several tests need to be distinguished: recognising another observation of a familiar animal; working on a previously unseen cow; working on another farm; and remaining useful in another season. A result at the first level cannot skip the others. The separation used in evaluation must match what the product actually promises.
What a ten-farm evaluation reveals
An Austrian study published in 2023 combined milking records, sensor data and observations from 594 cows on ten farms to detect mild lameness. When a whole farm was held out and the model trained on the other nine, one model’s mean accuracy was 60.5%, with differences between farms. That estimate must not be replaced with the 75% achieved by another model and partition highlighted in the abstract. [A2]
This demonstrates why methods matter before performance is interpreted. Testing across farms may introduce conditions the model has not learned: different buildings, populations and management routines. An average can also conceal a farm where alerts are unreliable. MSD Animal Health supplied sensors and the work received support through COMET D4 Dairy. Such participation should be visible without automatically invalidating the study. [A2]
Consider a fictional situation: one farm records cows moving towards a milking robot, while another observes them leaving a milking parlour. Even identically named columns can reflect different opportunities for measurement. Combining files does not harmonise their meaning. A usable dataset needs to document how, when and why each value was produced.
The trap can be hidden inside video data
An accepted paper released as an early version on 27 November 2026 illustrates this issue in video-based lameness detection. Randomly splitting overlapping sequences produced accuracy of up to 90.1%, but almost all test clips had also contributed training sequences. Grouping by clip gave the initial pipeline an area under the curve of 0.57–0.60. After processing revisions, clip-grouped areas under the curve reached 0.696 or 0.778 depending on pre-processing, and 0.781 when entire videos were held out. These improvements were evaluated within this dataset and do not amount to cross-farm validation. [A3]
Accuracy and area under the curve are different measures: subtracting these figures would not yield a meaningful performance loss. The important point is that the question asked of the system has changed. Distinguishing similar fragments differs from correctly recognising genuinely unfamiliar animals and conditions.
The same reasoning applies to sensors. A November 2026 behaviour-classification study involving ten cows on one farm left each animal out of training in turn. This is a useful precaution, but it does not make the dataset a multi-farm study. The authors themselves identify the single-site limitation. [A5]
Pooling data requires preserving context
A useful shared resource is more than a large table. It needs ways to trace farm, animal, period and equipment under appropriate protections. Otherwise it becomes impossible to construct genuinely separated tests or find performance problems concentrated in a particular setting. Removing farmers’ names does not remove the need for technical identifiers that enable those distinctions.
The reference standard also needs explanation. A person’s locomotion score, a documented diagnosis and reduced activity are not the same target. If farms label cases differently, a model may learn differences in scoring. Sharing data therefore requires work on case definitions and disagreement, not just transferring measurements.
Data sharing still needs an explicit agreement
The 2018 industry code on agricultural data sharing proposes clearer contracts covering collected data, additional uses, third-party recipients, retrieval and exit. Compliance is voluntary. It is not an EU regulation or a complete account of current law, but it provides concrete questions to ask before pooling data. [A4]
For a farmer, contributing to research and allowing a supplier to improve a commercial product are not automatically the same choice. A cooperative also needs to understand what participants receive: access to findings, a route to challenge an interpretation or terms for changing providers. Those arrangements should be explained rather than left to a broad promise of innovation.
From a sound test to an appropriate decision
Before an application is generalised, testing should distinguish missed cases from false alerts across relevant farms and periods. The next question concerns action: who examines the animal, when and with what follow-up? Better-ranked alerts alone do not establish fewer diseases, improved welfare or an economic gain.
This analysis supplies no performance guarantee across breeds, species or regions. It identifies a condition for confidence: evaluation should test what will genuinely be new when the system is used. Sharing can provide that diversity. It becomes convincing when it exposes limitations rather than hiding them behind the volume of data.
Sources and references
[A1] CremonaFiere, reporting Luciano Baresi. A.I. in the Farm: Not to Be Feared, but Understood. 2026-11-26.
[A2] Lemmens L et al. The Combined Use of Automated Milking System and Sensor Data to Improve Detection of Mild Lameness in Dairy Cattle. 2023-03-28.
[A3] Çevik KK, Dandıl E, Boğa M, Yüksel HU, Tonguç G. Contactless lameness detection based on pose estimation in dairy cows using a lightweight 1D-CNN architecture. 2026-11-27.
[A4] Copa-Cogeca and signatory organisations. EU Code of conduct on agricultural data sharing by contractual agreement. 2018.
[A5] Jayakumar S, Santhappan XA. Cattle Behaviour Recognition from Multi-IMU Collar Data with a Calibration-Free Descriptor Network: Cross-Animal Evaluation and Microcontroller Feasibility. 2026-11-18.