Cargando…
Improved pig behavior analysis by optimizing window sizes for individual behaviors on acceleration and angular velocity data
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...
Autores principales: | , , , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
Oxford University Press
2022
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9677960/ https://www.ncbi.nlm.nih.gov/pubmed/36056754 http://dx.doi.org/10.1093/jas/skac293 |
_version_ | 1784833902229061632 |
---|---|
author | Alghamdi, Saleh Zhao, Zhuqing Ha, Dong S Morota, Gota Ha, Sook S |
author_facet | Alghamdi, Saleh Zhao, Zhuqing Ha, Dong S Morota, Gota Ha, Sook S |
author_sort | Alghamdi, Saleh |
collection | PubMed |
description | 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. |
format | Online Article Text |
id | pubmed-9677960 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2022 |
publisher | Oxford University Press |
record_format | MEDLINE/PubMed |
spelling | pubmed-96779602022-11-21 Improved pig behavior analysis by optimizing window sizes for individual behaviors on acceleration and angular velocity data Alghamdi, Saleh Zhao, Zhuqing Ha, Dong S Morota, Gota Ha, Sook S J Anim Sci Animal Behavior and Cognition 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. Oxford University Press 2022-09-03 /pmc/articles/PMC9677960/ /pubmed/36056754 http://dx.doi.org/10.1093/jas/skac293 Text en © The Author(s) 2022. Published by Oxford University Press on behalf of the American Society of Animal Science. https://creativecommons.org/licenses/by/4.0/This is an Open Access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted reuse, distribution, and reproduction in any medium, provided the original work is properly cited. |
spellingShingle | Animal Behavior and Cognition Alghamdi, Saleh Zhao, Zhuqing Ha, Dong S Morota, Gota Ha, Sook S Improved pig behavior analysis by optimizing window sizes for individual behaviors on acceleration and angular velocity data |
title | Improved pig behavior analysis by optimizing window sizes for individual behaviors on acceleration and angular velocity data |
title_full | Improved pig behavior analysis by optimizing window sizes for individual behaviors on acceleration and angular velocity data |
title_fullStr | Improved pig behavior analysis by optimizing window sizes for individual behaviors on acceleration and angular velocity data |
title_full_unstemmed | Improved pig behavior analysis by optimizing window sizes for individual behaviors on acceleration and angular velocity data |
title_short | Improved pig behavior analysis by optimizing window sizes for individual behaviors on acceleration and angular velocity data |
title_sort | improved pig behavior analysis by optimizing window sizes for individual behaviors on acceleration and angular velocity data |
topic | Animal Behavior and Cognition |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9677960/ https://www.ncbi.nlm.nih.gov/pubmed/36056754 http://dx.doi.org/10.1093/jas/skac293 |
work_keys_str_mv | AT alghamdisaleh improvedpigbehavioranalysisbyoptimizingwindowsizesforindividualbehaviorsonaccelerationandangularvelocitydata AT zhaozhuqing improvedpigbehavioranalysisbyoptimizingwindowsizesforindividualbehaviorsonaccelerationandangularvelocitydata AT hadongs improvedpigbehavioranalysisbyoptimizingwindowsizesforindividualbehaviorsonaccelerationandangularvelocitydata AT morotagota improvedpigbehavioranalysisbyoptimizingwindowsizesforindividualbehaviorsonaccelerationandangularvelocitydata AT hasooks improvedpigbehavioranalysisbyoptimizingwindowsizesforindividualbehaviorsonaccelerationandangularvelocitydata |