Related Experiment Video
Updated: Jan 11, 2026

Integration of Animal Behavioral Assessment and Convolutional Neural Network to Study Wasabi-Alcohol Taste-Smell Interaction
Published on: August 16, 2024
Multitask contrastive learning for individual dairy cow recognition across different behavior classes based on small
J M Hooker1, B B de Medeiros1, C Saha1
1Department of Animal and Dairy Science, University of Georgia, Athens, GA 30602.
Abstract:
The objectives of this study were to (1) evaluate the You Look Only Once (YOLOv7) algorithm for group-level behavior monitoring in freestall cows, (2) propose a multitask contrastive network (MTCN) for individual cow identification from limited reference data and compare its performance to a traditional convolutional neural network, and (3) dewvelop and validate a scalable 2-step computer vision framework integrating behavior detection and individual identification. Twenty-one Holstein cows housed in a single pen were monitored using ceiling-mounted red-green-blue cameras capturing images at 10-s intervals over 30 d. Behavior-labeled datasets (3,120 images) and cow-specific cropped images (1,059 images) were used to train the models, while a separate testing set (1,620 images, 8,490 annotations) was used to evaluate models' performance on unseen data. The MTCN classification performance was compared with a baseline model based on MobileNetV3 architecture. The 2 classification algorithms (YOLOv7 and MTCN) were combined to estimate the total time spent drinking (TTD), eating (TTE), resting (TTR), and standing (TTS) for each cow during 3 daily intervals: 0900 to 1000 h (morning), 1300 to 1400 h (afternoon), and 2000 to 2100 h (night). The YOLOv7 algorithm achieved high group-level classification performance, with global accuracy of 90.5% and Cohen's kappa of 0.859. Resting behavior had the highest metrics (balanced accuracy 99.1%, F1 99.1%), while eating showed the lowest balanced accuracy (88.3%). Individual identification using MTCN reached a global accuracy of 83.6% (Cohen's kappa 0.827), outperforming the baseline model, particularly for challenging resting and drinking postures. Correlations between predicted and observed values for TTD, TTE, TTR, and TTS ranged from 0.78 to 0.93, with mean absolute errors between 0.62 and 6.72 min. Prediction accuracy varied across day periods, with highest performance for TTE and TTD, and lower accuracy for TTR, particularly at night. These results demonstrate that the proposed computer vision framework can reliably classify group behaviors and identify individual cows under diverse postures, enabling continuous, automated monitoring of behavior traits in freestall dairy systems.
Related Concept Videos
Observational Learning
Associative Learning
Classical conditioning, also known...
Force Classification
Contact and non-contact forces are two of the most widely used categories of forces. As the name suggests, contact forces require physical contact between two objects to act upon each other. Examples of contact forces include frictional,...
Generalization, Discrimination, and Extinction
Generalization occurs when a behavior reinforced in one context is performed in similar situations. For instance, a student who studies diligently for calculus and receives excellent grades might apply the same study habits to psychology and history, expecting similar results. Generalization shows how learning in one setting can influence behavior in...
Aggregates Classification
Petrographic classification groups aggregates based on common mineralogical characteristics. Some of the common mineral groups found in aggregates are...
Cognitive Learning
E. C. Tolman's theory of purposive behavior emphasizes that much behavior is goal-directed. He argued that to understand behavior, we must look at the entire sequence of actions leading to a goal. For instance, high school students study hard, not just due to past reinforcement but also to achieve the goal of getting into a good college.
Tolman introduced the idea that behavior is influenced by...
