Improved pig behavior analysis by optimizing window sizes for individual behaviors on acceleration and angular velocity data

Author:

Alghamdi Saleh1,Zhao Zhuqing1,Ha Dong S1,Morota Gota2ORCID,Ha Sook S1

Affiliation:

1. The Bradley Department of Electrical Engineering, Virginia Polytechnic Institute and State University , Blacksburg, VA 24061 , USA

2. School of Animal Sciences, Virginia Polytechnic Institute and State University , Blacksburg, VA 24061 , USA

Abstract

Abstract This paper presents the application of machine learning algorithms to identify pigs’ behaviors from data collected using the wireless sensor nodes mounted on pigs. The sensor node attached to a pig’s back senses the acceleration and angular velocity in three axes, and the sensed data are transmitted to a host computer wirelessly. Two video cameras, one attached to the ceiling of the pigpen and the other one to a fence, provided ground truth for data annotations. The data were collected from pigs for 131 h over 2 mo. As the typical behavior period depends on the behavior type, we segmented the acceleration data with different window sizes (WS) and step sizes (SS), and tested how the classification performance of different activities varied with different WS and SS. After exploring the possible combinations, we selected the optimum WS and SS. To compare performance, we used five machine learning algorithms, specifically support vector machine, k-nearest neighbors, decision trees, naive Bayes, and random forest (RF). Among the five algorithms, RF achieved the highest F1 score for four major behaviors consisting of 92.36% in total. The F1 scores of the algorithm were 0.98 for “eating,” 0.99 for “lying,” 0.93 for “walking,” and 0.91 for “standing” behaviors. The optimal WS was 7 s for “eating” and “lying,” and 3 s for “walking” and “standing.” The proposed work demonstrates that, based on the length of behavior, the adaptive window and step sizes increase the classification performance.

Funder

USDA-NIFA

Publisher

Oxford University Press (OUP)

Subject

Genetics,Animal Science and Zoology,General Medicine,Food Science

Reference25 articles.

1. Window size impact in human activity recognition;Banos;Sensors,2014

2. Classifying sows’ activity types from acceleration patterns: an application of the multi-process Kalman filter;Cornou;Appl. Anim. Behav. Sci.,2008

3. Classification of sows’ activity types from acceleration patterns using univariate and multivariate models;Cornou;Comput. Electron. Agric.,2010

4. Improving classification using preprocessing and machine learning algorithms on nsl-kdd dataset.;Deshmukh,2015

Cited by 3 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. DHSW-YOLO: A duck flock daily behavior recognition model adaptable to bright and dark conditions;Computers and Electronics in Agriculture;2024-10

2. Wireless Sensor Node System to Monitor Pig Activities for Behavior Classification;2023 IEEE 66th International Midwest Symposium on Circuits and Systems (MWSCAS);2023-08-06

3. Deep learning-based animal activity recognition with wearable sensors: Overview, challenges, and future directions;Computers and Electronics in Agriculture;2023-08

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3