Watch the same second twice.
First, watch the eyelid. Now replay the clip and follow the edge of the muzzle. A still image shows the shape of a cow’s face. A few frames reveal how it moves.
At Dalhousie University, we developed CowPainCheck, a research mobile app for screening the faces of dairy cows and beef cattle for unusual movements that may signal pain.
What is a micro-expression?
A micro-expression is a brief, subtle facial movement. In our dairy study, we tracked 30 facial landmarks and compared five consecutive video frames at a time. Three regions guided the analysis.
- Eyes
- Watch the distance between the upper and lower eyelids as the eye narrows and opens.
- Ears
- Follow the angle of each ear as it turns or settles.
- Muzzle
- Look for a brief change in the outline of the nostrils or mouth.
What happened on footage the model had never seen?
Our team set aside 14 barn videos and compared the model’s prediction for each clip with its study label. It matched nine. Four of the nine clips labelled for pain passed without a flag.
For a herdsperson, that last number matters. A cow favouring one foot still warrants a closer look even when the screen is quiet. A flag is a reason to observe the animal in person. Read the dairy study.
Unseen barn videos
9 of 14
predictions matched the study label. Each mark represents one clip.
5 correctly flagged · 4 missed
4 correctly left unflagged · 1 false alarm
Does a finding travel from one herd to another?
Shivam Patel and colleagues examined that question in two settings. The recordings came from different animals, and the labels meant different things.
After surgery in beef cattle
The team tested its model on 35 overlapping ten-second clips from two animals excluded from training. It matched the study’s pain or no-pain label on 31 clips. Several clips came from the same animal. Read the IEEE study.
Back in the dairy barn
Applied directly to eight Holstein and Jersey cows excluded from training, the beef-cattle model performed poorly. The dairy records described general health and gave only an indirect indication of pain. Read the transfer preprint.
What the video adds to a welfare check. Two people on different shifts can replay the same moment and point to the same change. Whether an animal is in pain calls for a wider view of her gait, posture, feeding and clinical history. A blink or an ear turn alone cannot answer that question.
Watch the face in motion
The CowPainCheck film combines real farm footage with AI-generated illustrations. The two Shorts introduce the facial movements behind the research.
Beyond the face, our separate lameness study paired facial images with movement data. Watch the lameness film · Read the study.
Research Publications and Theses
- Facial movement in dairy cattleZhang, Sailunaz & Neethirajan · AI, 2025 · Original barn-video evaluation
- CowPainCheck and facial expression analysis for dairy welfarePatel & Neethirajan · Journal of Animal Science and Technology, 2026 · Review
- CowPainCheck in postoperative cattlePatel, Luna, Parivendan & Neethirajan · IEEE CCECE, 2026 · Recorded-video experiment
- Automated Assessment of Postoperative Pain-Associated States in Cattle from Facial Video: Temporal Deep Learning under Animal-Wise EvaluationShivam Patel · Master of Computer Science thesis · Dalhousie University, August 2026 · PDF
- Does a postoperative model transfer to dairy cows?Patel & Neethirajan · SSRN, 2026 · Preprint
- Facial images and movement data in dairy lamenessDhaliwal, Bi & Neethirajan · Journal of Agriculture and Food Research, 2025 · Original study
MooAnalytica Research Group · Faculties of Agriculture and Computer Science · Dalhousie University