Vision transformer-based multi-camera multi-object tracking framework for dairy cow monitoring

• Real-time dairy cow monitoring using multi-camera homography-based panoramic view • Vision Transformer model SAMURAI enhances segmentation with motion-aware memory • YOLO11-m detector achieved [email protected] of 0.97 and F1 score of 0.95 on test images • Proposed system achieved 99.3% tracking accuracy and 99.7% IDF1 in complex barns • Significantly outperforms Deep SORT in cow tracking, with minimal ID switches Activity and behaviour correlate with dairy cow health and welfare, making continual and accurate monitoring crucial for disease identification and farm productivity. Manual observation and frequent assessments are laborious and inconsistent for activity monitoring. In this study, we developed a unique multi-camera, real-time tracking system for indoor-housed Holstein Friesian dairy cows. This technology uses cutting-edge computer vision techniques, including instance segmentation and tracking algorithms to monitor cow activity seamlessly and accurately. An integrated top-down barn panorama was created by geometrically aligning six camera feeds using homographic transformations. The detection phase used a refined YOLO11m model trained on an overhead cow dataset, obtaining high accuracy (mAP\@0.50 = 0.97, F1 = 0.95). SAMURAI, an upgraded Segment Anything Model 2.1, generated pixel-precise cow masks for instance segmentation utilizing zero-shot learning and motion-aware memory. Even with occlusion and fluctuating posture, a motion-aware Linear Kalman filter and IoU-based data association reliably identified cows over time for object tracking. The proposed system significantly outperformed Deep SORT Realtime. Multi-Object Tracking Accuracy (MOTA) was 98.7%, 99.3% and 97.2% in three benchmark video sequences respectively, with IDF1 scores achieving 99% and near-zero identity switches. This unified multi-camera system can track dairy cows in complex interior surroundings in real time, according to our data. The system reduces redundant detections across overlapping cameras, maintains continuity as cows move between viewpoints, with the aim of improving early sickness prediction through activity quantification and behavioural classification.

Authors

Institutions

Publication Details

Journal
Smart Agricultural Technology
Published
2025-10-09
DOI
https://doi.org/10.1016/j.atech.2025.101525
Citations
1
Primary Topic
Food Supply Chain Traceability
Type
article
Field-Weighted Citation Impact
1.16
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Vision transformer-based multi-camera multi-object tracking framework for dairy cow monitoring

Ali Alameer, Taha Mansouri, Chaidate Inchaisri, Kumail Abbas et al.
1 citations
Smart Agricultural Technology
Food Supply Chain Traceability
1.16
article

Vision transformer-based multi-camera multi-object tracking framework for dairy cow monitoring

Ali Alameer, Taha Mansouri, Chaidate Inchaisri, Kumail Abbas, Aqeel Raza, Andrew W. Dowsey, Zeeshan Afzal
article en
1 citations

Abstract

• Real-time dairy cow monitoring using multi-camera homography-based panoramic view • Vision Transformer model SAMURAI enhances segmentation with motion-aware memory • YOLO11-m detector achieved [email protected] of 0.97 and F1 score of 0.95 on test images • Proposed system achieved 99.3% tracking accuracy and 99.7% IDF1 in complex barns • Significantly outperforms Deep SORT in cow tracking, with minimal ID switches Activity and behaviour correlate with dairy cow health and welfare, making continual and accurate monitoring crucial for disease identification and farm productivity. Manual observation and frequent assessments are laborious and inconsistent for activity monitoring. In this study, we developed a unique multi-camera, real-time tracking system for indoor-housed Holstein Friesian dairy cows. This technology uses cutting-edge computer vision techniques, including instance segmentation and tracking algorithms to monitor cow activity seamlessly and accurately. An integrated top-down barn panorama was created by geometrically aligning six camera feeds using homographic transformations. The detection phase used a refined YOLO11m model trained on an overhead cow dataset, obtaining high accuracy (mAP\@0.50 = 0.97, F1 = 0.95). SAMURAI, an upgraded Segment Anything Model 2.1, generated pixel-precise cow masks for instance segmentation utilizing zero-shot learning and motion-aware memory. Even with occlusion and fluctuating posture, a motion-aware Linear Kalman filter and IoU-based data association reliably identified cows over time for object tracking. The proposed system significantly outperformed Deep SORT Realtime. Multi-Object Tracking Accuracy (MOTA) was 98.7%, 99.3% and 97.2% in three benchmark video sequences respectively, with IDF1 scores achieving 99% and near-zero identity switches. This unified multi-camera system can track dairy cows in complex interior surroundings in real time, according to our data. The system reduces redundant detections across overlapping cameras, maintains continuity as cows move between viewpoints, with the aim of improving early sickness prediction through activity quantification and behavioural classification.

Smart Agricultural TechnologyVol. 12
Chulalongkorn University (TH), University of Bristol (GB), Department of Livestock Development (TH), University of Salford (GB)
Openalex Percentile: Top 17%
Food Supply Chain Traceability
1.16
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.