Assessing the effects of sampling frequency on behavioural classification of accelerometer data

Understanding the behaviours of free-ranging animals over biologically meaningful time scales (e.g., diel, tidal, lunar, seasonal, annual) gives unique insight into their ecology. Bio-logging tools such as accelerometers allow the remote study of elusive or inaccessible animals by recording high resolution movement data. Machine learning (ML) is becoming a common tool for automatic classification of behaviours from these types of large data sets. These classifiers often perform best using high sampling frequencies; however, these frequencies also limit archival device recording duration through elevated battery and memory use. In this study we assess the effect of sampling frequency on a ML algorithm's ability to correctly classify behaviours from accelerometer data and present a framework for programming bio-logging devices that maintains classifier performance while optimizing data collection duration. Accelerometer data (30 Hz) were collected from juvenile lemon sharks (Negaprion brevirostris) during semi-captive trials at Bimini, Bahamas, and were ground-truthed to a discrete catalogue of behaviours through direct observation of sharks during trials. The ground-truthed data were re-sampled to a range of sampling frequencies (30, 15, 10, 5, 3 and 1 Hz) and behaviours (swim, rest, burst, chafe, headshake) were classified using a random forest ML algorithm. We demonstrate that as sampling frequency decreases, classifier performance decreases. Best overall classification was achieved at 30 Hz (F-score > 0.790), although 5 Hz was appropriate for classification of swim and rest (F-score > 0.964). For fine-scale behaviours characterised by faster kinematics (headshake, burst and chafe), classification performance was lower across the entire range of sampling frequencies (0.535–0.846, 1–30 Hz), though did not decrease significantly until sampling frequency was 5 Hz are required. However, when seeking to maximise the available device memory and battery capacity and therefore extend deployment duration, 5 Hz is an appropriate sampling frequency for classifying behaviours in similar-sized animals.

[1]  L. Halsey,et al.  Accelerometry to Estimate Energy Expenditure during Activity: Best Practice with Data Loggers , 2008, Physiological and Biochemical Zoology.

[2]  Matthew Rutishauser,et al.  Movement, resting, and attack behaviors of wild pumas are revealed by tri-axial accelerometer measurements , 2015, Movement ecology.

[3]  D. Bassett,et al.  The technology of accelerometry-based activity monitors: current and future. , 2005, Medicine and science in sports and exercise.

[4]  Rory P. Wilson,et al.  The Use of Acceleration to Code for Animal Behaviours; A Case Study in Free-Ranging Eurasian Beavers Castor fiber , 2015, PloS one.

[5]  Christopher C Wilmers,et al.  The golden age of bio-logging: how animal-borne sensors are advancing the frontiers of ecology. , 2015, Ecology.

[6]  Adrian C. Gleiss,et al.  A new prospect for tagging large free-swimming sharks with motion-sensitive data-loggers , 2009 .

[7]  Alan M. Wilson,et al.  Lessons from integrating behaviour and resource selection: activity‐specific responses of African wild dogs to roads , 2016 .

[8]  Andrew E. Myers,et al.  Derivation of body motion via appropriate smoothing of acceleration data , 2008 .

[9]  N. Japkowicz Learning from Imbalanced Data Sets: A Comparison of Various Strategies * , 2000 .

[10]  Vaishali Ganganwar,et al.  An overview of classification algorithms for imbalanced datasets , 2012 .

[11]  Matthew D. Taylor,et al.  From physiology to physics: are we recognizing the flexibility of biologging tools? , 2014, Journal of Experimental Biology.

[12]  Nobuaki Arai,et al.  Use of a gyroscope/accelerometer data logger to identify alternative feeding behaviours in fish , 2014, Journal of Experimental Biology.

[13]  Yasuhiko Naito,et al.  A new technique for monitoring the detailed behaviour of terrestrial animals: A case study with the domestic cat , 2005 .

[14]  Robert Tibshirani,et al.  The Elements of Statistical Learning: Data Mining, Inference, and Prediction, 2nd Edition , 2001, Springer Series in Statistics.

[15]  Y. Handrich,et al.  Combined use of two supervised learning algorithms to model sea turtle behaviours from tri-axial acceleration data , 2018, Journal of Experimental Biology.

[16]  N. Arai,et al.  Monitoring attitude and dynamic acceleration of free-moving aquatic animals using a gyroscope , 2012 .

[17]  Jane Hunter,et al.  A Web-based semantic tagging and activity recognition system for species' accelerometry data , 2013, Ecol. Informatics.

[18]  Ran Nathan,et al.  Using tri-axial acceleration data to identify behavioral modes of free-ranging animals: general concepts and tools illustrated for griffon vultures , 2012, Journal of Experimental Biology.

[19]  John Joseph Valletta,et al.  Applications of machine learning in animal behaviour studies , 2017, Animal Behaviour.

[20]  Y. Papastamatiou,et al.  Integrative Multisensor Tagging: Emerging Techniques to Link Elasmobranch Behavior, Physiology and Ecology , 2012 .

[21]  Anthony Winterlich,et al.  Evaluation of sampling frequency, window size and sensor position for classification of sheep behaviour , 2018, Royal Society Open Science.

[22]  H. L. Pratt,et al.  Identifying shark mating behaviour using three-dimensional acceleration loggers , 2010 .

[23]  Bernt Schiele,et al.  Scalable Recognition of Daily Activities with Wearable Sensors , 2007, LoCA.

[24]  S. H. Gruber,et al.  Development and application of a machine learning algorithm for classification of elasmobranch behaviour from accelerometry data , 2018, Marine Biology.

[25]  Christian Rutz,et al.  New frontiers in biologging science , 2009, Biology Letters.

[26]  Kim Holland,et al.  Key Questions in Marine Megafauna Movement Ecology. , 2016, Trends in ecology & evolution.

[27]  Thomas Plötz,et al.  Optimising sampling rates for accelerometer-based human activity recognition , 2016, Pattern Recognit. Lett..

[28]  Rory P. Wilson,et al.  Assessing the development and application of the accelerometry technique for estimating energy expenditure. , 2011, Comparative biochemistry and physiology. Part A, Molecular & integrative physiology.

[29]  Rory P. Wilson,et al.  Prying into the intimate details of animal lives: use of a daily diary on animals , 2008 .

[30]  Robert S Laramee,et al.  Prying into the intimate secrets of animal lives; software beyond hardware for comprehensive annotation in ‘Daily Diary’ tags , 2015, Movement ecology.

[31]  John Shawe-Taylor,et al.  Movement Activity Based Classification of Animal Behaviour with an Application to Data from Cheetah (Acinonyx jubatus) , 2012, PloS one.

[32]  Michael Scantlebury,et al.  Tri-axial accelerometers quantify behaviour in the Eurasian badger (Meles meles): towards an automated interpretation of field data , 2014, Animal Biotelemetry.

[33]  Thomas Niesler,et al.  Animal-borne behaviour classification for sheep (Dohne Merino) and Rhinoceros (Ceratotherium simum and Diceros bicornis) , 2017, Animal Biotelemetry.

[34]  Franziska Broell,et al.  Accelerometer tags: detecting and identifying activities in fish and the effect of sampling frequency , 2013, Journal of Experimental Biology.

[35]  S. Mallat A wavelet tour of signal processing , 1998 .

[36]  Development of a method for classifying and transmitting high-resolution feeding behavior of fish using an acceleration pinger , 2017, Animal Biotelemetry.

[37]  Taylor Berg-Kirkpatrick,et al.  Using accelerometers to remotely and automatically characterize behavior in small animals , 2016, Journal of Experimental Biology.

[38]  Leo Breiman,et al.  Random Forests , 2001, Machine Learning.

[39]  Roland Langrock,et al.  Analysis of animal accelerometer data using hidden Markov models , 2016, 1602.06466.

[40]  Rory P. Wilson,et al.  Identification of animal movement patterns using tri-axial magnetometry , 2017, Movement ecology.

[41]  S. Gruber,et al.  Multi-Channel Data-Logging: Towards Determination of Behaviour and Metabolic Rate in Free-Swimming Sharks , 2009 .

[42]  C. Lowe,et al.  Use of an acceleration data logger to measure diel activity patterns in captive whitetip reef sharks, Triaenodon obesus , 2007 .

[43]  E. V. van Loon,et al.  From Sensor Data to Animal Behaviour: An Oystercatcher Example , 2012, PloS one.

[44]  Roland Kays,et al.  Observing the unwatchable through acceleration logging of animal behavior , 2013, Animal Biotelemetry.

[45]  Rory P. Wilson,et al.  Moving towards acceleration for estimates of activity-specific metabolic rate in free-living animals: the case of the cormorant. , 2006, The Journal of animal ecology.

[46]  W. Sutherland,et al.  The importance of behavioural studies in conservation biology , 1998, Animal Behaviour.

[47]  S. Cooke Biotelemetry and biologging in endangered species research and animal conservation: relevance to regional, national, and IUCN Red List threat assessments , 2008 .

[48]  Chao Chen,et al.  Using Random Forest to Learn Imbalanced Data , 2004 .

[49]  J. Brownscombe,et al.  Foraging behaviour and activity of a marine benthivorous fish estimated using tri-axial accelerometer biologgers , 2014 .

[50]  F. Beutler Error-Free Recovery of Signals from Irregularly Spaced Samples , 1966 .

[51]  H. Mitamura,et al.  Monitoring Escape and Feeding Behaviours of Cruiser Fish by Inertial and Magnetic Sensors , 2013, PloS one.

[52]  T. Katzner,et al.  Improved supervised classification of accelerometry data to distinguish behaviors of soaring birds , 2017, PloS one.

[53]  S. Wanless,et al.  Can Ethograms Be Automatically Generated Using Body Acceleration Data from Free-Ranging Birds? , 2009, PloS one.

[54]  Andy Liaw,et al.  Classification and Regression by randomForest , 2007 .

[55]  David P. Hocking,et al.  Super machine learning: improving accuracy and reducing variance of behaviour classification from accelerometry , 2017, Animal Biotelemetry.

[56]  Nobuaki Arai,et al.  Animal-mounted gyroscope/accelerometer/magnetometer: In situ measurement of the movement performance of fast-start behaviour in fish , 2014 .

[57]  E. L. C. Shepard,et al.  Can accelerometry be used to distinguish between flight types in soaring birds? , 2015, Animal Biotelemetry.

[58]  Rory P. Wilson,et al.  Love Thy Neighbour: Automatic Animal Behavioural Classification of Acceleration Data Using the K-Nearest Neighbour Algorithm , 2014, PloS one.

[59]  E. Shepard Identification of animal movement patterns using tri-axial accelerometry , 2008 .