Development and Analysis of a CNN- and Transfer-Learning-Based Classification Model for Automated Dairy Cow Feeding Behavior Recognition from Accelerometer Data.

Victor Bloch, Lilli Frondelius, Claudia Arcidiacono, Massimo Mancino, Matti Pastell
Author Information
  1. Victor Bloch: Natural Resources Institute Luke (Finland), Latokartanonkaari 9, 00790 Helsinki, Finland.
  2. Lilli Frondelius: Natural Resources Institute Luke (Finland), Latokartanonkaari 9, 00790 Helsinki, Finland.
  3. Claudia Arcidiacono: Department of Agriculture, Food and Environment (Di3A), Building and Land Engineering Section, University of Catania, Via Santa Sofia 100, 95123 Catania, Italy. ORCID
  4. Massimo Mancino: Department of Agriculture, Food and Environment (Di3A), Building and Land Engineering Section, University of Catania, Via Santa Sofia 100, 95123 Catania, Italy.
  5. Matti Pastell: Natural Resources Institute Luke (Finland), Latokartanonkaari 9, 00790 Helsinki, Finland. ORCID

Abstract

Due to technological developments, wearable sensors for monitoring the behavior of farm animals have become cheaper, have a longer lifespan and are more accessible for small farms and researchers. In addition, advancements in deep machine learning methods provide new opportunities for behavior recognition. However, the combination of the new electronics and algorithms are rarely used in PLF, and their possibilities and limitations are not well-studied. In this study, a CNN-based model for the feeding behavior classification of dairy cows was trained, and the training process was analyzed considering a training dataset and the use of transfer learning. Commercial acceleration measuring tags, which were connected by BLE, were fitted to cow collars in a research barn. Based on a dataset including 33.7 cow × days (21 cows recorded during 1-3 days) of labeled 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 90 s. In addition, the influence of the training dataset size on the classifier accuracy was analyzed for different neural networks using the transfer learning technique. While the size of the training dataset was being increased, the rate of the accuracy improvement decreased. Beginning from a specific point, the use of additional training data can be impractical. A relatively high accuracy was achieved with few training data when the classifier was trained using randomly initialized model weights, and a higher accuracy was achieved when transfer learning was used. These findings can be used for the estimation of the necessary dataset size for training neural network classifiers intended for other environments and conditions.

Keywords

References

  1. Sensors (Basel). 2019 Jul 20;19(14): [PMID: 31330790]
  2. Sensors (Basel). 2018 Aug 31;18(9): [PMID: 30200377]
  3. Sensors (Basel). 2022 Mar 17;22(6): [PMID: 35336494]
  4. Res Vet Sci. 2019 Aug;125:425-433 [PMID: 29174287]
  5. Sensors (Basel). 2021 Apr 14;21(8): [PMID: 33919823]
  6. Sensors (Basel). 2020 Jul 09;20(14): [PMID: 32660133]
  7. Sensors (Basel). 2017 Dec 13;17(12): [PMID: 29236085]
  8. J Dairy Sci. 2017 Jul;100(7):5664-5674 [PMID: 28501398]
  9. Sensors (Basel). 2020 Jul 08;20(14): [PMID: 32650486]
  10. R Soc Open Sci. 2020 Jan 15;7(1):190824 [PMID: 32218931]
  11. Sensors (Basel). 2020 Jul 31;20(15): [PMID: 32751855]
  12. R Soc Open Sci. 2018 Feb 7;5(2):171442 [PMID: 29515862]
  13. PLoS One. 2018 Sep 7;13(9):e0203546 [PMID: 30192834]
  14. J Dairy Sci. 2019 Apr;102(4):3487-3494 [PMID: 30772028]
  15. Animals (Basel). 2020 Jul 08;10(7): [PMID: 32650526]
  16. Animals (Basel). 2021 Apr 17;11(4): [PMID: 33920600]
  17. Sensors (Basel). 2021 Jun 12;21(12): [PMID: 34204636]

Grants

  1. CowBhave/ICT-AGRI-2 ERA-NET

MeSH Term

Female
Cattle
Animals
Neural Networks, Computer
Algorithms
Machine Learning
Feeding Behavior
Accelerometry

Word Cloud

Created with Highcharts 10.0.0datasettraininglearningbehaviortransferdataclassifiersizeaccuracyusedaccelerationcowadditionnewmodelclassificationcowstrainedanalyzedusetagsdaysadditionalneuralusingcanachievedDuetechnologicaldevelopmentswearablesensorsmonitoringfarmanimalsbecomecheaperlongerlifespanaccessiblesmallfarmsresearchersadvancementsdeepmachinemethodsprovideopportunitiesrecognitionHowevercombinationelectronicsalgorithmsrarelyPLFpossibilitieslimitationswell-studiedstudyCNN-basedfeedingdairyprocessconsideringCommercialmeasuringconnectedBLEfittedcollarsresearchbarnBasedincluding337×21recorded1-3labeledfree-accesssimilarF1=939%developedoptimalwindow90sinfluencedifferentnetworkstechniqueincreasedrateimprovementdecreasedBeginningspecificpointimpracticalrelativelyhighrandomlyinitializedweightshigherfindingsestimationnecessarynetworkclassifiersintendedenvironmentsconditionsDevelopmentAnalysisCNN-Transfer-Learning-BasedClassificationModelAutomatedDairyCowFeedingBehaviorRecognitionAccelerometerDataCNNvariabilityopen-source

Similar Articles

Cited By