Social network analysis in dairy cattle
Which cow connects the herd?
In one barn, Cow 30 met 24 herdmates. Cow 14 met fewer, yet she linked different parts of the group. The difference emerged when researchers looked at what happened between the cows.
MooAnalytica at Dalhousie University
Led by Professor Suresh Raja
One herd makes three different maps
Before milking, cows come together in a shared holding area. Some groom a neighbour. Others make contact and one gives way. A tally of encounters treats both alike. Splitting them changes the picture.
Cow 30 had the most partners
She interacted with 24 of the other 35 cows. Counting neighbours puts her at the centre of this particular gathering.
Cow 14 was the bridge
She interacted with 17 herdmates. In the affiliative map, more of the shortest routes between other cows passed through her than through any other cow. That is a different way to be central.
Each dot is a cow. Its position on the diagram is fixed so you can compare the lines. The barn floor plan and the cows’ physical positions are separate. Read the field study
Social optionality
Could she have chosen someone else?
Imagine two cows standing together at the feed rail every morning. On Monday there are empty spaces. On Tuesday a narrow passage leaves one cow with a single route to feed. The camera could record the same pair on both days.
Yiwen Huang and Suresh Raja call the question social optionality. Which partners could the cow reach? Could she leave? What changes when another route opens? Their paper offers a way to ask those questions before interpreting repeated contact as a preference.
Follow a line on the graph back to the barn
When a cow disappears behind another animal, a tracker can assign her a new identity. A line on a network can then split or vanish. DairySocialTwin lets a researcher go back to the camera, clip and moment behind an apparent encounter.
Huang and Raja worked with 203 videos from 15 camera views across three commercial dairy farms. In the prototype, pairs with no opportunity to be seen together remain marked as unobserved. The system can replay what each camera saw. A farmer can then ask what happened outside its view.
Read the DairySocialTwin audit preprint · Explore the digital twins program
What can the camera distinguish?
In their published Beyond Proximity study, Sibi Parivendan and Suresh Raja Neethirajan used movement of body landmarks to classify encounters. Their model reached 86.23% accuracy on held-out clips from six cows recorded at one barn on one day.
The earlier preprint with Kashfia Sailunaz reported 77.51% using a different classifier. In the separate 36-cow network study, people and the model agreed on 82.8% of a selected audit sample of 198 clips. Each result belongs to its own evaluation.
What would you check on the next barn walk?
If one cow repeatedly gives way near a water trough, revisit that spot at the same time tomorrow. Is there space to pass? Does the pattern change when the pen is quieter? A flagged encounter gives the herd team a place and a moment to inspect.
When a familiar cow appears to have fewer contacts after regrouping, check her time in view, her access to feed and how she moves through the pen. Establishing whether a change predicts a health or welfare outcome requires follow-up on farms.
See how the team reads an encounter
Follow the research from body movement, through barn traffic, to the moment a network link appears.
Watch the body language
See how the team tracks body landmarks as two animals approach, turn or move away.
Follow a cow across the floor plan
Watch the prototype connect movement on camera with the places where cows meet.
Trace a connection back to video
Follow how the team turns observed encounters into a social map that can be checked against the recording.
More MooAnalytica films on dairy cattle social networks
CowNet-AI: Revealing the Hidden Social Network of Dairy Cattle with Explainable AI
Who’s Mooing With Who? AI Maps Cow Social Networks
Cows Have Social Networks, and Now AI Can Map Them
AI maps cow friendships
BarnNet AI ~ How Smart Farms Use Cow Social Networks to Boost Animal Welfare – Tahseen Shanteer
Social Networks in the Barn
Barn Traffic Control: AI for Cow Movement and Social Behaviour
AI Reveals the Hidden Social Network of Dairy Cows 🐄
Graduate research at Dalhousie
Sibi took the herd’s social network to the stage
How do you explain a cow’s place in a herd in three minutes? Sibi Chakravarthy Parivendan won first prize in the national Three Minute Thesis competition at the 2026 IEEE Canadian Conference on Electrical and Computer Engineering in Montréal. He had earlier earned second place overall and the People’s Choice Award at Dalhousie’s final.
The research behind the story
Interested in testing how barn layout or regrouping changes social contact? Contact the MooAnalytica research group.