triact package for R: analyzing the lying behavior of cows from accelerometer data
- PMID: 38436021
- PMCID: PMC10908268
- DOI: 10.7717/peerj.17036
triact package for R: analyzing the lying behavior of cows from accelerometer data
Abstract
Accelerometers are sensors proven to be useful to analyze the lying behavior of cows. For reasons of algorithm transparency and control, researchers often prefer to use their own data analysis scripts rather than proprietary software. We developed the triact R package that assists animal scientists in analyzing the lying behavior of cows from raw data recorded with a triaxial accelerometer (manufacturer agnostic) attached to a hind leg. In a user-friendly workflow, triact allows the determination of common measures for lying behavior including total lying duration, the number of lying bouts, and the mean duration of lying bouts. Further capabilities are the description of lying laterality and the calculation of proxies for the level of physical activity of the cow. In this publication we describe the functionality of triact and the rationales behind the implemented algorithms. The triact R package is developed as an open-source project and freely available via the CRAN repository.
Keywords: Activity; Animal welfare; Cattle; Sensor.
© 2024 Simmler and Brouwers.
Conflict of interest statement
The authors declare that they have no competing interests.
Figures
Similar articles
-
Graduate Student Literature Review: Evaluating the appropriate use of wearable accelerometers in research to monitor lying behaviors of dairy cows.J Dairy Sci. 2020 Dec;103(12):12140-12157. doi: 10.3168/jds.2019-17887. Epub 2020 Oct 15. J Dairy Sci. 2020. PMID: 33069407 Review.
-
Technical note: Validation of sensor-recorded lying bouts in lactating dairy cows using a 2-sensor approach.J Dairy Sci. 2015 Nov;98(11):7911-6. doi: 10.3168/jds.2015-9554. Epub 2015 Sep 3. J Dairy Sci. 2015. PMID: 26342980
-
Validity of a Non-Proprietary Algorithm for Identifying Lying Down Using Raw Data from Thigh-Worn Triaxial Accelerometers.Sensors (Basel). 2021 Jan 29;21(3):904. doi: 10.3390/s21030904. Sensors (Basel). 2021. PMID: 33572815 Free PMC article.
-
Thermodynamics of standing and lying behavior in lactating dairy cows in freestall and parlor holding pens during conditions of heat stress.J Dairy Sci. 2019 Jul;102(7):6495-6507. doi: 10.3168/jds.2018-15891. Epub 2019 Apr 25. J Dairy Sci. 2019. PMID: 31030933
-
Symposium review: The impact of management and facilities on cow culling rates.J Dairy Sci. 2020 Apr;103(4):3846-3855. doi: 10.3168/jds.2019-17140. Epub 2019 Dec 16. J Dairy Sci. 2020. PMID: 31837782 Review.
Cited by
-
Sow serenity: automatic long-term measurement of lying behavior in crates and free-farrowing pens using 3D accelerometers.J Anim Sci. 2024 Jan 3;102:skae101. doi: 10.1093/jas/skae101. J Anim Sci. 2024. PMID: 38581277 Free PMC article.
References
-
- Bayat A, Pomplun M, Tran DA. A study on human activity recognition using accelerometer data from smartphones. Procedia Computer Science. 2014;34:450–457. doi: 10.1016/j.procs.2014.07.009. - DOI
-
- Brouwers SP, Simmler M, Savary P, Scriba MF. Towards a novel method for detecting atypical lying down and standing up behaviors in dairy cows using accelerometers and machine learning. Smart Agricultural Technology. 2023;4(5):100199. doi: 10.1016/j.atech.2023.100199. - DOI
-
- Chang W. R6: encapsulated classes with reference semantics. 2022. https://r6.r-lib.org/ https://r6.r-lib.org/
MeSH terms
Grants and funding
LinkOut - more resources
Full Text Sources