bioRxivAnimal Behavior & CognitionPreprint
CNN and transfer learning-based classification model for automated cows feeding behaviour recognition from accelerometer data
V. Bloch, L. Frondelius, C. Arcidiacono, M. Mancino, M. Pastell
Abstract
Due to technological developments, wearable sensors for monitoring farm animal behaviour have become cheaper, with longer life and more accessible for small farms and researchers. In this study, an acceleration measuring tag connected by BLE for monitoring behaviour of dairy cows was used. An optimal CNN-based model for the feeding behaviour classification was trained and the training process was analysed considering training dataset and the use of transfer learning. A classifier based on a neural network was trained by acceleration data collected in a research barn. Based on a dataset including 33.7 cow*days (21 cow recorded during 1-3 days) of labelled data and an additional free access dataset with similar acceleration data, a classifier with F1=93.9% was developed. The optimal classification window size was 90s. In addition, the influence of the training dataset size on the classifier accuracy was analysed for different neural networks using the transfer learning technique. During increasing of the training dataset size, the rate of the accuracy improvement decreased, and, starting from a specific point, the use of additional training data can be impractical. Relatively high accuracy was achieved with few training data when the classifier was trained using randomly initialised model weights, and higher accuracy was achieved when transfer learning was used. These findings can be used for estimation of the necessary dataset size for training neural network classifiers intended for other environments and conditions. HighlightsCNN cow feeding behaviour classifier was optimised for neck tags. Transfer learning technique significantly improves accuracy of CNN. Relation between the training dataset size and CNN accuracy was estimated. NN trained by one dataset can be inapplicable for others. BLE tags measuring acceleration transferred data in real time.
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Impact of cross-validation designs on cattle behavior prediction using machine learning and deep learning models with tri-axial accelerometer data
Jin Wang, Ziwen Yu, … Haipeng Yu·Smart Agricultural TechnologyPeer-reviewed·Oct 10, 2025
- Deep learning classification of canine behavior using a single collar-mounted accelerometer: Real-world validation
R. D. Chambers, N. C. Yoder, … S. Lyle·bioRxiv·Dec 14, 2020
- Leveraging machine learning and accelerometry to classify animal behaviours with uncertainty
Medha Agarwal, Kasim Rafiq, … Zaïd Harchaoui·Methods in Ecology and EvolutionPeer-reviewed·Dec 8, 2025
- Evaluating machine learning algorithms to predict lameness in dairy cattle
Rajesh Neupane, Ashrant Aryal, … Sushil Paudyal·bioRxiv·Mar 13, 2024
- Impact evaluation of score classes and annotation regions in deep learning-based dairy cow body condition prediction
Sára Ágnes Nagy, Oz Kilim, … Norbert Solymosi·AnimalsPeer-reviewed·Jan 4, 2023
- Daylong Acoustic Recordings of Grazing and Rumination Activities in Dairy Cows
L. S. Martinez Rau, J. O. Chelotti, … H. L. Rufiner·bioRxiv·Oct 18, 2023