Interaction valence reveals contrasting social networks in dairy cattle
When you split cow interactions into 'friendly' vs 'fighting', the herd's social map looks completely different
Researchers used an existing pose-tracking video system to record 7 hours 39 minutes of dairy cows near a milking station and mapped which cows interacted with which, then separated those interactions into affiliative (grooming) and agonistic (displacing, headbutting) categories. The two categories produced clearly different social networks: different densities, different subgroup structures, and different key individuals. This shows that simply counting how often cows interact hides whether those interactions were friendly or competitive.
METAL MEDIA explanatory visual
When you split cow interactions into 'friendly' vs 'fighting', the herd's social map looks completely different
- 01Video from 36 dairy cows was processed by a computer-vision pipeline to detect and track individual cows and classify their paired interactions as grooming, displacement, or headbutting.
- 02After removing unreliable tracking data, 1,183 interaction events across 177 cow pairs remained; a manual check of 198 sample clips found the automated labels matched human judgment 82.8% of the time.
- 03Nearly three-quarters (72.4%) of retained interactions were agonistic (competitive), yet the single cow with the most interaction partners was not the one that bridged the most social connections (highest betweenness).
- 04Splitting the network by valence changed everything: the affiliative network was less densely connected but split into more distinct subgroups (5 communities) than the agonistic network (4 communities), and many cow pairs that looked connected in the combined data were only linked through one type of interaction.
- 05The authors stress these are descriptive, single-session findings from one barn zone, not proof of stable relationships or a ready-made welfare score.
What they did
- Video from 36 dairy cows was processed by a computer-vision pipeline to detect and track individual cows and classify their paired interactions as grooming, displacement, or headbutting.
- After removing unreliable tracking data, 1,183 interaction events across 177 cow pairs remained; a manual check of 198 sample clips found the automated labels matched human judgment 82.8% of the time.
- Nearly three-quarters (72.4%) of retained interactions were agonistic (competitive), yet the single cow with the most interaction partners was not the one that bridged the most social connections (highest betweenness).
- Splitting the network by valence changed everything: the affiliative network was less densely connected but split into more distinct subgroups (5 communities) than the agonistic network (4 communities), and many cow pairs that looked connected in the combined data were only linked through one type of interaction.
- The authors stress these are descriptive, single-session findings from one barn zone, not proof of stable relationships or a ready-made welfare score.




Why it matters
Livestock monitoring systems usually just count how often animals interact, but this work shows that lumping friendly and competitive contacts together can mask real differences in herd social structure that matter for stress, resource competition, and welfare. For anyone building AI-based animal monitoring tools, it's a reminder that classifying *what kind* of interaction happened is as important as detecting that one happened at all.




Terms in this paper
- pose-based computer vision · AI method that tracks the position and posture of body keypoints (like head, limbs) to analyze movement and behavior from video
- dyadic event · A recorded interaction between exactly two individuals (here, two cows)
- affiliative / agonistic · Affiliative means friendly or bonding behavior (like grooming); agonistic means competitive or conflict behavior (like pushing, headbutting)
- betweenness centrality · A network score measuring how often an individual lies on the shortest connecting path between other pairs, indicating a 'broker' role
- modularity (community detection) · A method for finding subgroups (communities) in a network where members interact more with each other than with outsiders



Figures we cannot republish
- Figure 2. Computational workflow for constructing valence-aware social networks from video. Cows were detected, tracked and assigned persistent identities; pose trajectories were then used to identify and classify dyadic events. After quality control and production-domain auditing, automated event predictions were aggregated by dyad into weighted, undirected combined, affiliative and agonistic net
Original abstract (English)
Social relationships shape access to resources, exposure to conflict and group stability, yet automated livestock monitoring typically treats behaviour as isolated events. Here, we present a valence-aware social-network framework that transforms video-derived interactions into herd-level representations of affiliative and agonistic organization. A pose-based computer-vision pipeline analysed 7 h 39 min of continuous video from the pre-milking area of one commercial dairy farm. After quality control, 1,183 of 1,414 candidate interactions remained, involving 36 cows and 177 dyads. In a predicted-class-balanced audit of 198 pipeline-detected clips, automated and manual labels agreed in 82.8% of cases, with an unweighted audit-sample macro-F1 of 0.872. These values describe the audited sample rather than prevalence-weighted or end-to-end deployment performance. The aggregated network was connected (density = 0.281; transitivity = 0.513; mean path length = 1.88), and predicted affiliative events formed five algorithmic communities (modularity Q = 0.429). Within the observed zone, predicted agonistic interactions comprised 72.4% of retained events and 76.0% of interaction duration. The cow with the most partners did not have the highest betweenness centrality. Separating events by predicted valence produced descriptively different affiliative and agonistic layers, with contrasting edge sets, community partitions and individual positions. Thus, pooled interaction counts can obscure the behavioural composition of an observed network. Valence-aware analysis provides a framework for testing hypotheses about competition, affiliation and welfare-relevant change, while requiring longitudinal validation before use as a welfare or health indicator.
Read on arXivLatest papers
- SWE-bench Science: Can Coding Agents Resolve Engineering Tasks in Science?AI coding agents were tested on fixing real scientific software, and even the best one failed more than half the time
- FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM ServingMaking sparse attention fast enough and accurate enough for real LLM serving, not just papers
- PolicyGuide: From Guarding One Action to Guiding the Whole Workflow for Policy-Compliant LLM AgentsMaking customer-service AI agents follow the whole procedure, not just avoid one bad action
- EXIMO: VLM Guided Exploration of VLA PoliciesTeaching a robot new chores without human teleoperation, by letting a chatty AI supervise it
- EnvHarness: Awakening Static Worlds for Agent LearningInstead of building new training worlds from scratch, this work adds a plug-in layer that reshapes existing ones around each agent's actual weaknesses
- Bounded Sovereignty and the Control Tax: Pricing AI Oversight When the Deployer Does Not Own the ModelCompanies that rent AI instead of owning it can only do half of AI safety oversight
- PersonalBench: Measuring the Authorship Gap in LLM PersonalizationAI can be prompted to write 'like someone,' but its own voice never fully disappears
- Automated Summarization of Financial News Using Large Language Models and Retrieval-Augmented Generation: An Early Empirical Study (Fall 2023)Testing AI summaries of stock news, the simple approach beat the trendy retrieval-based one
Latest from METAL MEDIA
Figures: Sibi Parivendan et al., arXiv:2608.19222, cc-by-nc-nd-4.0