Interaction valence reveals contrasting social networks in dairy cattle

Parivendan, Sibi, Neethirajan, Suresh Raja

–arXiv.org Artificial Intelligence 

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. 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. Valenceaware 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. Keywords: social network analysis; interaction valence; dairy cattle; computer vision; precision livestock farming; affiliative and agonistic behaviour; social phenotyping; animal welfare 1. Introduction Precision livestock farming has made dairy cows increasingly legible as individuals. Automated milking systems, precision feeding, wearable sensors, machine vision, and integrated data platforms can now track production, physiology, health, and behaviour at unprecedented resolution [1]. Yet the dominant unit of analysis remains the individual animal. This is a consequential simplification. Cattle live in socially structured groups, and an animal's access to feed, water, resting space, and shared passageways depends partly on its encounters with herdmates [2, 3]. These positions can shape access to resources, exposure to social stress, and responses to disruptions such as regrouping [4, 5]. Social organization remains largely invisible in commercial settings because it is difficult to measure continuously. Manual observation is slow, observer-dependent, and difficult to sustain at herd scale in a working barn [6].