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.