Filtering heart rates using data densities: The boxfilter R package
Open Access
- 24 April 2024
- journal article
- research article
- Published by Wiley in Methods in Ecology and Evolution
- Vol. 15 (6) , 1016-1023
Abstract
Over the past decades, there has been a growing interest in long‐term heart rate records, especially from free‐living animals. Largely, this increase is because most of the metabolic activity of tissues is based on oxygen delivery by the heart. Therefore, heart rate has served as a proxy for energy expenditure in animals. However, heart rates or other physiological variables recorded in humans and animals using loggers often contain noise. False measurements are sometimes eliminated by hand or by filters that reject variables based on the shape or frequency of the signal. Occasionally, outliers are rejected because they occur a long distance from genuine data. We introduce an R package, boxfilter, which enables users to eliminate noise based on counting the number of close neighbours inside a gliding window. Depending on the cut‐off value chosen, a focal point with a low proportion of neighbours will be rejected as noise. All three parameters, namely window width and height, as well as the cut‐off value, can be computed automatically. The choice of the clip‐off value beyond which data points are discarded is crucial. The package boxfilter cannot, of course, solve problems caused by completely erroneous measurements. Like the human eye, this filter prefers points that are part of a pattern, such as a dense band, and rejects isolated values. The boxfilter may also be applied to other measures than heart rate that do not change instantaneously, such as body temperature, blood pressure or sleep parameters.Keywords
Funding Information
- Österreichische Forschungsförderungsgesellschaft (#855666)
- Amt der NÖ Landesregierung
This publication has 11 references indexed in Scilit:
- Determinants of heart rate in Svalbard reindeer reveal mechanisms of seasonal energy managementPhilosophical Transactions of the Royal Society B: Biological Sciences, 2021
- Review: Seasonal differences in the physiology of wild northern ruminantsAnimal, 2020
- PPG Derived Heart Rate Estimation During Intensive Physical ExerciseIEEE Access, 2019
- Continuous heart rate monitoring for automatic detection of atrial fibrillation with novel bio-sensing technologyJournal of Electrocardiology, 2019
- Description of a Database Containing Wrist PPG Signals Recorded during Physical Exercise with Both Accelerometer and Gyroscope Measures of MotionData, 2016
- The heart rate method for estimating metabolic rate: Review and recommendationsComparative Biochemistry and Physiology Part A: Molecular & Integrative Physiology, 2011
- Repeated assessment of cardiovascular and respiratory functions using combined telemetry and whole-body plethysmography in the ratJournal of Pharmacological and Toxicological Methods, 2009
- Seasonal adjustment of energy budget in a large wild mammal, the Przewalski horse (Equus ferus przewalskii) II. Energy expenditureJournal of Experimental Biology, 2006
- Estimation of energy expenditure from heart rate measurements in cattle maintained under different conditions.Journal of Animal Science, 1998
- The Influence Curve and its Role in Robust EstimationJournal of the American Statistical Association, 1974