One email each morning — yesterday's AI, sortedGet it in your inbox

METAL LAB

Interaction valence reveals contrasting social networks in dairy cattle

arXiv:2608.192222026-08-21

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

  1. 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.
  2. 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.
  3. 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).
  4. 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.
  5. The authors stress these are descriptive, single-session findings from one barn zone, not proof of stable relationships or a ready-made welfare score.
Interaction valence reveals contrasting social networks in dairy cattle figure 0
Interaction valence reveals contrasting social networks in dairy cattle figure 2
Figure 4. Combined undirected interaction network for the 36 observed cows. Node size represents degree, edge width represents cumulative dyadic interaction duration, and node colour represents
Figure 4. Combined undirected interaction network for the 36 observed cows. Node size represents degree, edge width represents cumulative dyadic interaction duration, and node colour represents
Interaction valence reveals contrasting social networks in dairy cattle figure 4

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.

Interaction valence reveals contrasting social networks in dairy cattle figure 5
Interaction valence reveals contrasting social networks in dairy cattle figure 6
Figure 6. Individual variation in observed connectivity, affiliative brokerage, interaction time, and valence composition. Each cow is positioned by degree in the combined network and normalized betweenness in the affiliative network; bubble size represents non-overlapping interaction time and colour represents the predicted agonistic-duration fraction. Labels identify illustrative metric profiles
Figure 6. Individual variation in observed connectivity, affiliative brokerage, interaction time, and valence composition. Each cow is positioned by degree in the combined network and normalized betweenness in the affiliative network; bubble size represents non-overlapping interaction time and colour represents the predicted agonistic-duration fraction. Labels identify illustrative metric profiles
Figure 7. Retained interaction-event counts and predicted agonistic-event proportions across 11 consecutive processing windows. Bars show event counts and the line shows the proportion of retained events classified as agonistic; the horizontal reference denotes the event-weighted session proportion of 72.4%. Window durations differed from 26 to 49 min, and duration-adjusted event rates are reporte
Figure 7. Retained interaction-event counts and predicted agonistic-event proportions across 11 consecutive processing windows. Bars show event counts and the line shows the proportion of retained events classified as agonistic; the horizontal reference denotes the event-weighted session proportion of 72.4%. Window durations differed from 26 to 49 min, and duration-adjusted event rates are reporte

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
Interaction valence reveals contrasting social networks in dairy cattle figure 9
Interaction valence reveals contrasting social networks in dairy cattle figure 10
Figure 8. Within-session interaction-network snapshots. (A) Video 1, 10:30–11:19, 66 active dyads and 66.8% predicted agonistic events; (B) Video 6, 14:20–15:04, 20 active dyads and 85.5% predicted agonistic events; (C) Video 7, 15:04–15:47, 14 active dyads and 53.3% predicted agonistic events; and (D) Video 8, 15:47–16:26, three active dyads and 20.0% predicted agonistic events. Node positions an
Figure 8. Within-session interaction-network snapshots. (A) Video 1, 10:30–11:19, 66 active dyads and 66.8% predicted agonistic events; (B) Video 6, 14:20–15:04, 20 active dyads and 85.5% predicted agonistic events; (C) Video 7, 15:04–15:47, 14 active dyads and 53.3% predicted agonistic events; and (D) Video 8, 15:47–16:26, three active dyads and 20.0% predicted agonistic events. Node positions an

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
See the figures in the original paper →

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.

Authors · Sibi Parivendan, Suresh Raja Neethirajan

Read on arXiv

Latest papers

All papers →

Latest from METAL LAB

Figures: Sibi Parivendan et al., arXiv:2608.19222, cc-by-nc-nd-4.0