Social Network Analysis

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

Watch how the team follows each cow’s movements through the pen. Watch on YouTube.

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.

36cows in the observed network
7 h 39 minof video at one commercial farm
1,183encounters retained after quality checks

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

Explore the published network
All encounters among the observed cows, from Figure 5 of the study.

177 pairs. A line joins two cows with at least one retained encounter during this recording. Its width shows the total time the pair interacted.

Affiliative encounters among the observed cows, from Figure 5 of the study.

111 pairs. Green lines join pairs with a predicted affiliative encounter, such as grooming. Twenty-one pairs appeared only in this layer.

Agonistic encounters among the observed cows, from Figure 5 of the study.

156 pairs. Red lines join pairs with a predicted competitive encounter, such as head contact or displacement. Sixty-six pairs appeared only in this layer.

Open the full figure · Panels from Figure 5, Sibi Parivendan and Suresh Raja Neethirajan, 2026. Displayed individually under CC BY 4.0.

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.

Read the conceptual paper

The lab’s short film uses barn footage and an animated example to show how the routes available to a cow can change the meaning of an encounter. Watch on YouTube

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.

Read the journal study · Read the earlier preprint

The DairySocialTwin prototype pairs the camera view with the barn floor plan. Open the film.

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.

Watch on YouTube

Follow a cow across the floor plan

Watch the prototype connect movement on camera with the places where cows meet.

Watch on YouTube

Trace a connection back to video

Follow how the team turns observed encounters into a social map that can be checked against the recording.

Watch on YouTube

More MooAnalytica films on dairy cattle social networks
CowNet-AI: Revealing the Hidden Social Network of Dairy Cattle with Explainable AI

Watch on YouTube

Who’s Mooing With Who? AI Maps Cow Social Networks

Watch on YouTube

Cows Have Social Networks, and Now AI Can Map Them

Watch on YouTube

AI maps cow friendships

Watch on YouTube

BarnNet AI ~ How Smart Farms Use Cow Social Networks to Boost Animal Welfare – Tahseen Shanteer

Watch on YouTube

Social Networks in the Barn

Watch on YouTube

Barn Traffic Control: AI for Cow Movement and Social Behaviour

Watch on YouTube

AI Reveals the Hidden Social Network of Dairy Cows 🐄

Watch on YouTube

Sibi Chakravarthy Parivendan presenting at the Canadian IEEE conference in Montréal.
Image from A2I2 Communications, Dalhousie University · CC BY-NC 4.0.

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.

Read the award announcement

The research behind the story

Interested in testing how barn layout or regrouping changes social contact? Contact the MooAnalytica research group.