Poultry Science (Dec 2024)
Development and validation of machine-learning models for monitoring individual behaviors in group-housed broiler chickens
Abstract
ABSTRACT: Animals’ individual behavior is commonly monitored by live or video observation by a person. This can be labor intensive and inconsistent. An alternative is the use of machine learning-based computer vision systems. The objectives of this study were to 1) develop and optimize machine learning model frameworks for detecting, tracking and classifying individual behaviors of group-housed broiler chickens in continuous video recordings; and 2) use an independent dataset to evaluate the performance of the developed machine leaning model framework for individual poultry behaviors differentiation. Forty-two video recordings from 4 different pens (total video duration = 1,620 min) were used to develop and train multiple models for detecting and tracking individual birds and classifying 4 behaviors: feeding, drinking, active, and inactive. The optimal model framework was used to continuously analyze an external set of 11 videos (duration = 326 min), and the second-by-second behavior of each individual broiler was extracted for the comparison of human observation. After comparison of model performance, the YOLOv5l, out of 5 detection models, was selected for detecting individual broilers in a pen; the osnet_x0_25_msmt17, out of 4 tracking algorithms, was selected to track each detected bird in continuous frames; and the Gradient Boosting Classifier, out of 12 machine learning classifiers, was selected to classify the 4 behaviors. Most of the models were able to keep previously assigned individual identifications of the chickens in limited amounts of time, but lost the identities throughout an examination period (≥4 min). The final framework was able to accurately predict feeding (accuracy = 0.895) and drinking time (accuracy = 0.9) but subpar for active (accuracy = 0.545) and inactive time (accuracy = 0.505). The algorithms employed by the machine learning models were able to accurately detect feeding and drinking behavior but still need to be improved for maintaining individual identities of the chickens and identifying active and inactive behaviors.