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.
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
- LoRA-GA$^2$: Low Rank Adaptation with Multi-step Gradient Adaptive AlignmentPeeking at a few early training gradients before fine-tuning starts to set up LoRA smarter
- Remember, Verify, or Ask? Cross-Family Evaluation of Memory Commitment in LLM AgentsAI assistants would rather double-check facts than ask you a question, even when asking is the right call
- Robust Incomplete Multimodal Sentiment Analysis via Iterative Proxy CorrectionWhen text input is missing or broken, this AI doesn't guess once and move on—it revises its guess step by step to read emotions more reliably
- Generating Diverse Personas for User Simulators to Test Interview Dialogue SystemsTo test interview-style chatbots you need many different fake users, so this work has an LLM automatically generate those fake user personalities
- Rethinking Patch Based Multivariate Time Series Forecasting with Semantic Structured PartitioningA new way to slice time series into meaningful chunks instead of arbitrary equal-length pieces
- Reliable Financial Named Entity Recognition under Domain ShiftAn AI's confidence trained on formal filings turns unreliable once it reads tweets
- Bringing analytic rigor to agentic AI for science: The Brain Researcher platform for neuroimaging data analysisA system that makes AI show its work when analyzing brain-imaging data, not just deliver an answer
- GenMatch: An End-to-End Generative Matching Framework for Micro-View Order-Dispatching in Ride-HailingDiDi replaced its multi-step ride-hailing dispatch pipeline with one generative model and saw real-world gains
Latest from METAL LAB
- Google Discover adds chatbot that adjusts your feed based on spoken preferences
- OpenAI Closes In on Anthropic Again in Enterprise Spending Share
- Meta Unveils First 10 Tasks in WildArtifactBench, a Benchmark for AI Agents
- Musk: "Optimus + Grok will one day handle healthcare for all humanity"
- 35% of Web Pages Published Since ChatGPT Show Signs of AI Authorship
Figures: Sibi Parivendan et al., arXiv:2608.19222, cc-by-nc-nd-4.0