Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2018;165(4):62.
doi: 10.1007/s00227-018-3318-y. Epub 2018 Mar 8.

Development and application of a machine learning algorithm for classification of elasmobranch behaviour from accelerometry data

Affiliations

Development and application of a machine learning algorithm for classification of elasmobranch behaviour from accelerometry data

L R Brewster et al. Mar Biol. 2018.

Abstract

Discerning behaviours of free-ranging animals allows for quantification of their activity budget, providing important insight into ecology. Over recent years, accelerometers have been used to unveil the cryptic lives of animals. The increased ability of accelerometers to store large quantities of high resolution data has prompted a need for automated behavioural classification. We assessed the performance of several machine learning (ML) classifiers to discern five behaviours performed by accelerometer-equipped juvenile lemon sharks (Negaprion brevirostris) at Bimini, Bahamas (25°44'N, 79°16'W). The sharks were observed to exhibit chafing, burst swimming, headshaking, resting and swimming in a semi-captive environment and these observations were used to ground-truth data for ML training and testing. ML methods included logistic regression, an artificial neural network, two random forest models, a gradient boosting model and a voting ensemble (VE) model, which combined the predictions of all other (base) models to improve classifier performance. The macro-averaged F-measure, an indicator of classifier performance, showed that the VE model improved overall classification (F-measure 0.88) above the strongest base learner model, gradient boosting (0.86). To test whether the VE model provided biologically meaningful results when applied to accelerometer data obtained from wild sharks, we investigated headshaking behaviour, as a proxy for prey capture, in relation to the variables: time of day, tidal phase and season. All variables were significant in predicting prey capture, with predations most likely to occur during early evening and less frequently during the dry season and high tides. These findings support previous hypotheses from sporadic visual observations.

PubMed Disclaimer

Conflict of interest statement

Compliance with ethical standardsThe authors declare that they have no conflict of interest.All applicable international, national, and/or institutional guidelines for the care and use of animals were followed. All procedures performed in studies involving animals were in accordance with the ethical standards of the institution or practice at which the studies were conducted (University of Miami Institutional Animal Care and Use Committee (IACUC), Protocol Number 12-030).

Figures

Fig. 1
Fig. 1
a Examples of the five behaviours for classification. Overall dynamic body acceleration (ODBA) is calculated as the sum of the absolute values of dynamic acceleration from the three axes. b Dynamic acceleration in the three orthogonal axes: sway (blue), heave (red) and surge (grey) during each behaviour and c corresponding wavelet spectrum generated from the sway axis showing increased signal strength amplitude during the burst and headshake event
Fig. 2
Fig. 2
An example from the sway acceleration axis of a 63 s prey manipulation event, consisting of three headshakes (HS; totalling 19 s) and a brief burst event
Fig. 3
Fig. 3
Estimated smoother for the effect of hour of day on the probability of headshaking behaviour occurring by the juvenile lemon shark in Bimini, Bahamas. The lowest and highest probabilities of a headshake occurring are around 0800 and 1700 h, respectively. Estimates are based on final binomial generalized additive mixed model. The solid line is the smoother. Dark grey shaded area surrounding the smoother represent 95% confidence intervals. The light grey shaded area represents the range of sunset times throughout the deployments. The dashed line represents the mean likelihood of a headshaking occurring. The blue dots represent mean hourly temperature (°C), calculated from the temperature sensor in the acceleration data logger (ADL) packages, across all deployments

References

    1. Allen AN, Goldbogen JA, Friedlaender AS, Calambokidis J. Development of an automated method of detecting stereotyped feeding events in multisensor data from tagged rorqual whales. Ecol Evol. 2016;6:7522–7535. doi: 10.1002/ece3.2386. - DOI - PMC - PubMed
    1. Barley SC, Meekan MG, Meeuwig JJ. Species diversity, abundance, biomass, size and trophic structure of fish on coral reefs in relation to shark abundance. Mar Ecol Prog Ser. 2017;565:163–179. doi: 10.3354/meps11981. - DOI
    1. Barnett A, Payne NL, Semmens JM, Fitzpatrick R. Ecotourism increases the field metabolic rate of whitetip reef sharks. Biol Conserv. 2016;199:132–136. doi: 10.1016/j.biocon.2016.05.009. - DOI
    1. Battaile BC, Sakamoto KQ, Nordstrom CA, Rosen DA, Trites AW. Accelerometers identify new behaviors and show little difference in the activity budgets of lactating northern fur seals (Callorhinus ursinus) between breeding islands and foraging habitats in the Eastern Bering Sea. PLoS One. 2015;10:e0118761. doi: 10.1371/journal.pone.0118761. - DOI - PMC - PubMed
    1. Bidder OR, Campbell HA, Gómez-Laich A, Urgé P, Walker J, Cai Y, Gao L, Quintana F, Wilson RP. Love thy neighbour: automatic animal behavioural classification of acceleration data using the k-nearest neighbour algorithm. PLoS One. 2014;9:e88609. doi: 10.1371/journal.pone.0088609. - DOI - PMC - PubMed

LinkOut - more resources