Automated dairy cow identification and feeding behaviour analysis using a computer vision model based on YOLOv8

Monitoring changes in the feeding behaviour of dairy cows is essential for assessing their feeding preferences, milk production, and health status. Sick cows often exhibit altered feeding patterns, such as reduced feeding time and frequency, making early detection crucial for effective farm manageme...

Full description

Saved in:
Bibliographic Details
Main Authors: Claudia Giannone, Mohsen Sahraeibelverdy, Martina Lamanna, Damiano Cavallini, Andrea Formigoni, Patrizia Tassinari, Daniele Torreggiani, Marco Bovo
Format: Article
Language:English
Published: Elsevier 2025-12-01
Series:Smart Agricultural Technology
Subjects:
Online Access:http://www.sciencedirect.com/science/article/pii/S2772375525005350
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1849761906419564544
author Claudia Giannone
Mohsen Sahraeibelverdy
Martina Lamanna
Damiano Cavallini
Andrea Formigoni
Patrizia Tassinari
Daniele Torreggiani
Marco Bovo
author_facet Claudia Giannone
Mohsen Sahraeibelverdy
Martina Lamanna
Damiano Cavallini
Andrea Formigoni
Patrizia Tassinari
Daniele Torreggiani
Marco Bovo
author_sort Claudia Giannone
collection DOAJ
description Monitoring changes in the feeding behaviour of dairy cows is essential for assessing their feeding preferences, milk production, and health status. Sick cows often exhibit altered feeding patterns, such as reduced feeding time and frequency, making early detection crucial for effective farm management. Traditional methods for monitoring feeding behaviour are labour-intensive, time-consuming, and prone to errors. To address these challenges, precision livestock farming technologies have gained increasing attention. While wearable sensors, such as accelerometers and RFID tags, provide accurate data, they have limitations, including high costs and potential stress on animals. Alternatively, computer vision-based approaches offer a non-invasive and efficient solution for monitoring feeding behaviour. Deep learning techniques, particularly the YOLO (You Only Look Once) object detection model, have been widely applied in animal husbandry. Despite advancements in object detection, individual cow recognition in operational environment remains a challenge due to the lack of a standardized and viable approach.The main aim of the paper is to evaluate the reliability and validate a deep learning-based computer vision model for automatically recognizing individual cows at the feeding lane in a relevant environment. By identifying individual cows, it is possible to determine their feeding time, feeding duration and daily frequency. The paper describes the work phases from data collection to analysis and validation of an improved YOLOv8n model that, after a fine-tuning on the collected video set, achieved a precision of 85 %, a recall of 62 % (F1 score 0.72) at IoU 0.5 and processes a 640 × 640 pixels frame in just 12 ms on an NVIDIA RTX 2080. The promising results presented here contribute to the advancement and validation of computer vision applications in herd monitoring, supporting the commercial adoption of these technologies for analysing cow behaviour so increasing animal welfare and the sustainability of the animal production.
format Article
id doaj-art-bc5f4efe58d34b58a402ab3a2d9ca1e2
institution DOAJ
issn 2772-3755
language English
publishDate 2025-12-01
publisher Elsevier
record_format Article
series Smart Agricultural Technology
spelling doaj-art-bc5f4efe58d34b58a402ab3a2d9ca1e22025-08-20T03:05:52ZengElsevierSmart Agricultural Technology2772-37552025-12-011210130410.1016/j.atech.2025.101304Automated dairy cow identification and feeding behaviour analysis using a computer vision model based on YOLOv8Claudia Giannone0Mohsen Sahraeibelverdy1Martina Lamanna2Damiano Cavallini3Andrea Formigoni4Patrizia Tassinari5Daniele Torreggiani6Marco Bovo7Department of Agricultural and Food Sciences, University of Bologna, Bologna (BO), Italy; Corresponding author.Department of Agricultural and Food Sciences, University of Bologna, Bologna (BO), ItalyDepartment of Veterinary Medical Sciences, University of Bologna, Ozzano dell’Emilia (BO), ItalyDepartment of Veterinary Medical Sciences, University of Bologna, Ozzano dell’Emilia (BO), ItalyDepartment of Veterinary Medical Sciences, University of Bologna, Ozzano dell’Emilia (BO), ItalyDepartment of Agricultural and Food Sciences, University of Bologna, Bologna (BO), ItalyDepartment of Agricultural and Food Sciences, University of Bologna, Bologna (BO), ItalyDepartment of Agricultural and Food Sciences, University of Bologna, Bologna (BO), ItalyMonitoring changes in the feeding behaviour of dairy cows is essential for assessing their feeding preferences, milk production, and health status. Sick cows often exhibit altered feeding patterns, such as reduced feeding time and frequency, making early detection crucial for effective farm management. Traditional methods for monitoring feeding behaviour are labour-intensive, time-consuming, and prone to errors. To address these challenges, precision livestock farming technologies have gained increasing attention. While wearable sensors, such as accelerometers and RFID tags, provide accurate data, they have limitations, including high costs and potential stress on animals. Alternatively, computer vision-based approaches offer a non-invasive and efficient solution for monitoring feeding behaviour. Deep learning techniques, particularly the YOLO (You Only Look Once) object detection model, have been widely applied in animal husbandry. Despite advancements in object detection, individual cow recognition in operational environment remains a challenge due to the lack of a standardized and viable approach.The main aim of the paper is to evaluate the reliability and validate a deep learning-based computer vision model for automatically recognizing individual cows at the feeding lane in a relevant environment. By identifying individual cows, it is possible to determine their feeding time, feeding duration and daily frequency. The paper describes the work phases from data collection to analysis and validation of an improved YOLOv8n model that, after a fine-tuning on the collected video set, achieved a precision of 85 %, a recall of 62 % (F1 score 0.72) at IoU 0.5 and processes a 640 × 640 pixels frame in just 12 ms on an NVIDIA RTX 2080. The promising results presented here contribute to the advancement and validation of computer vision applications in herd monitoring, supporting the commercial adoption of these technologies for analysing cow behaviour so increasing animal welfare and the sustainability of the animal production.http://www.sciencedirect.com/science/article/pii/S2772375525005350Dairy cowBehaviour analysisDeep learningAIFeeding
spellingShingle Claudia Giannone
Mohsen Sahraeibelverdy
Martina Lamanna
Damiano Cavallini
Andrea Formigoni
Patrizia Tassinari
Daniele Torreggiani
Marco Bovo
Automated dairy cow identification and feeding behaviour analysis using a computer vision model based on YOLOv8
Smart Agricultural Technology
Dairy cow
Behaviour analysis
Deep learning
AI
Feeding
title Automated dairy cow identification and feeding behaviour analysis using a computer vision model based on YOLOv8
title_full Automated dairy cow identification and feeding behaviour analysis using a computer vision model based on YOLOv8
title_fullStr Automated dairy cow identification and feeding behaviour analysis using a computer vision model based on YOLOv8
title_full_unstemmed Automated dairy cow identification and feeding behaviour analysis using a computer vision model based on YOLOv8
title_short Automated dairy cow identification and feeding behaviour analysis using a computer vision model based on YOLOv8
title_sort automated dairy cow identification and feeding behaviour analysis using a computer vision model based on yolov8
topic Dairy cow
Behaviour analysis
Deep learning
AI
Feeding
url http://www.sciencedirect.com/science/article/pii/S2772375525005350
work_keys_str_mv AT claudiagiannone automateddairycowidentificationandfeedingbehaviouranalysisusingacomputervisionmodelbasedonyolov8
AT mohsensahraeibelverdy automateddairycowidentificationandfeedingbehaviouranalysisusingacomputervisionmodelbasedonyolov8
AT martinalamanna automateddairycowidentificationandfeedingbehaviouranalysisusingacomputervisionmodelbasedonyolov8
AT damianocavallini automateddairycowidentificationandfeedingbehaviouranalysisusingacomputervisionmodelbasedonyolov8
AT andreaformigoni automateddairycowidentificationandfeedingbehaviouranalysisusingacomputervisionmodelbasedonyolov8
AT patriziatassinari automateddairycowidentificationandfeedingbehaviouranalysisusingacomputervisionmodelbasedonyolov8
AT danieletorreggiani automateddairycowidentificationandfeedingbehaviouranalysisusingacomputervisionmodelbasedonyolov8
AT marcobovo automateddairycowidentificationandfeedingbehaviouranalysisusingacomputervisionmodelbasedonyolov8