Hostname: page-component-68c7f8b79f-8spss Total loading time: 0 Render date: 2025-12-27T20:43:27.473Z Has data issue: false hasContentIssue false

Applying accelerometer-based behaviour classification to antelope–fence encounters in an African savanna

Published online by Cambridge University Press:  05 December 2025

Paul Berry*
Affiliation:
Plant Ecology & Nature Conservation, University of Potsdam, Zeppelinstr. 48A, 14471 Potsdam, Germany Ongava Research Centre, Ongava Game Reserve, Namibia
Anna Pauline Kraus
Affiliation:
Plant Ecology & Nature Conservation, University of Potsdam, Zeppelinstr. 48A, 14471 Potsdam, Germany
Jennifer Pohle
Affiliation:
Plant Ecology & Nature Conservation, University of Potsdam, Zeppelinstr. 48A, 14471 Potsdam, Germany
Robert Hering
Affiliation:
Plant Ecology & Nature Conservation, University of Potsdam, Zeppelinstr. 48A, 14471 Potsdam, Germany Ecology / Macroecology, University of Potsdam, Maulbeerallee 3, 14469 Potsdam, Germany
Niels Blaum
Affiliation:
Plant Ecology & Nature Conservation, University of Potsdam, Zeppelinstr. 48A, 14471 Potsdam, Germany
*
Corresponding author: Paul Berry; Email: paul.berry@orc.eco
Rights & Permissions [Opens in a new window]

Abstract

Fences are increasingly fragmenting landscapes and curtailing the movement of terrestrial wildlife. In arid and semi-arid ecosystems, where herbivores rely on movement to access patchily distributed resources, fences may cause behavioural changes with consequences for energy balance and fitness. Here, we investigate the fine-scale behavioural responses of the highly mobile springbok antelope (Antidorcas marsupialis) to encounters with a veterinary cordon fence in northern Namibia. Using supervised machine learning on tri-axial accelerometer data from collared individuals, we trained a classifier capable of identifying 12 behavioural categories with up to 91% accuracy. Applying this model to over 29,000 accelerometer records from eight free-ranging springbok, we examined behaviour in relation to fence encounters. We found significant changes in behaviour in response to fences, which depended on whether the fence was successfully crossed or not. Fence crossings were associated with shifts from grazing to browsing during crossings, as well as increased walking during and after crossings, suggesting altered foraging and increased movement. Behavioural changes were less pronounced in the case of non-crossing encounters. Our results show how accelerometry can reveal behavioural responses to anthropogenic barriers and emphasise the importance of maintaining ecological connectivity for migratory ungulates.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press

Impact statement

This study demonstrates the potential of using automated behaviour classification based on accelerometer data and machine learning to address pressing questions related to the conservation and behavioural ecology of large African herbivores. We show that only a small number of individuals and a minimal set of feature variables are necessary for training a classifier that can accurately distinguish between 12 different behaviours. Our findings provide insights into how migratory springbok antelope respond to fences, revealing behavioural changes that would be difficult or impossible to detect using traditional observational methods. The ability to remotely monitor fine-scale behavioural responses to movement barriers enables a better understanding of the ecology and habitat use of antelope and other large herbivores. This can contribute to the development of conservation policies that balance human land use with wildlife movement requirements.

Introduction

Fences have become some of the most widespread anthropogenic barriers affecting terrestrial wildlife movement worldwide (Jakes et al., Reference Jakes, Jones, Paige, Seidler and Huijser2018). They serve a variety of purposes, such as managing livestock, limiting disease transmission and reducing human–wildlife conflict (Clevenger et al., Reference Clevenger, Chruszcz and Gunson2001; Mysterud and Rolandsen, Reference Mysterud and Rolandsen2019; Hyde et al., Reference Hyde, Breck, Few, Beaver, Schrecengost, Stone, Krebs, Talmo, Eneas, Nickerson, Kunkel and Young2022), but often also have unintended consequences. By restricting wildlife movement, fences alter movement patterns, limit access to resources and fragment habitats, ultimately leading to population declines (Mbaiwa and Mbaiwa, Reference Mbaiwa and Mbaiwa2006; McInturff et al., Reference McInturff, Xu, Wilkinson, Dejid and Brashares2020; Jones et al., Reference Jones, Jakes, Vegter and Verhage2022). These effects are particularly pronounced in dryland ecosystems, where food and water scarcity requires animals to travel long distances (Fryxell et al., Reference Fryxell, Wilmshurst, Sinclair, Haydon, Holt and Abrams2005; Abrahms et al., Reference Abrahms, Aikens, Armstrong, Deacy, Kauffman and Merkle2021). In such regions, the erection of wildlife-proof and livestock fencing has substantially disrupted the movements of medium-sized and large ungulates, leading to detrimental effects at the population and ecosystem levels (Whyte and Joubert, Reference Whyte and Joubert1988; Gadd, Reference Gadd, Somers and Hayward2012).

Fence ecology research has so far focused mainly on aspects such as crossing rates, mortality risk and changes in population distribution (Pokorny et al., Reference Pokorny, Flajšman, Centore, Krope and Šprem2017; Jones et al., Reference Jones, Jakes, Vegter and Verhage2022; Zoromski et al., Reference Zoromski, DeYoung, Goolsby, Foley, Ortega-Santos, Hewitt and Campbell2022). Relatively few studies, on the other hand, have investigated the behavioural responses of animals to fences. Nonetheless, the available evidence suggests that the impact of fences on animal behaviour may be ecologically significant. For example, pronghorn (Antilocapra americana) and mule deer (Odocoileus hemionus) have been observed to deviate from normal movement patterns in response to fences (Xu et al., Reference Xu, Gigliotti, Royauté, Sawyer and Middleton2023). In southern Africa, research on springbok (Antidorcas marsupialis) has shown increased energy expenditure near fences, possibly reflecting elevated stress levels or attempts at crossing (Hering et al., Reference Hering, Hauptfleisch, Jago, Smith, Kramer-Schadt, Stiegler and Blaum2022a). Furthermore, the movement speeds of antelope differ markedly depending on whether or not they are successful in crossing a fence (Hering et al., Reference Hering, Hauptfleisch, Kramer-Schadt, Stiegler and Blaum2022b).

The paucity of behavioural studies in this field can be attributed to the logistical challenges of directly observing animals, especially in cases where vegetation limits visibility, terrain is difficult to access, or observer presence disturbs animals. However, recent advances in bio-logging, particularly accelerometry, now allow for the remote monitoring of animal behaviour at high resolution over extended time periods (Brown et al., Reference Brown, Kays, Wikelski, Wilson and Klimley2013). Accelerometers can measure body motion along three axes – surge (front-back), heave (up-down) and sway (side-to-side) – enabling the inference of animal behaviour without the need for direct observation (Shepard et al., Reference Shepard, Wilson, Quintana, Gómez Laich, Liebsch, Albareda, Halsey, Gleiss, Morgan, Myers, Newman and McDonald2008). Various studies have applied machine learning algorithms to classify animal behaviour based on accelerometer data (Hammond et al., Reference Hammond, Springthorpe, Walsh and Berg-Kirkpatrick2016; Yu et al., Reference Yu, Deng, Nathan, Kröschel, Pekarsky, Li and Klaassen2021). This approach has been used on a variety of taxa including birds (Chimienti et al., Reference Chimienti, Cornulier, Owen, Bolton, Davies, Travis and Scott2016; Schreven et al., Reference Schreven, Stolz, Madsen and Nolet2021), fish (Brewster et al., Reference Brewster, Dale, Guttridge, Gruber, Hansell, Elliott, Cowx, Whitney and Gleiss2018) and mammals, both captive (Barwick et al., Reference Barwick, Lamb, Dobos, Welch, Schneider and Trotter2020; Brandes et al., Reference Brandes, Sicks and Berger2021) and free-ranging (Fehlmann et al., Reference Fehlmann, O’Riain, Hopkins, O’Sullivan, Holton, Shepard and King2017; Chakravarty et al., Reference Chakravarty, Cozzi, Dejnabadi, Léziart, Manser, Ozgul and Aminian2020). Once a classifier has been trained on ground-truthed data, it can be deployed to infer behaviour in wild populations (Rast et al., Reference Rast, Kimmig, Giese and Berger2020; Giese et al., Reference Giese, Melzheimer, Bockmühl, Wasiolka, Rast, Berger and Wachter2021).

In this study, we apply supervised machine learning to high-resolution accelerometer data to examine how fences affect the behaviour of springbok. We first develop and validate a classifier capable of identifying multiple behavioural categories and subsequently apply it to analyse behavioural responses to fence encounters. Specifically, we ask the following research questions: (1) Do the relative frequencies of behaviours change during and after fence encounters compared to before? (2) Are any such behavioural changes further affected by whether animals cross a fence when they encounter it compared to when they do not? By investigating these behavioural responses, our study provides insight into the consequences of anthropogenic barriers for a migratory ungulate species, thereby contributing to the emerging field of fence ecology (McInturff et al., Reference McInturff, Xu, Wilkinson, Dejid and Brashares2020).

Methods

Study area and species

We conducted our study on springbok behaviour in the Etosha region of northern Namibia (Figure 1), which is characterised by a semi-arid climate. Rainfall is highly variable and occurs from October to April (green season; mean temperature: 26 °C), while the cooler dry season spans from May to September (mean temperature: 18 °C). Mean annual precipitation in the region ranges from 250 mm to 350 mm, based on CHIRPS data (Funk et al., Reference Funk, Peterson, Landsfeld, Pedreros, Verdin, Shukla, Husak, Rowland, Harrison, Hoell and Michaelsen2015), with precipitation increasing from south-west to north-east. The vegetation in the study area consists of a mix of grasses, shrubs and trees. Dominant plant species include Colophospermum mopane, Terminalia and Combretum species, Catophractes alexandrii, Vachellia nebrownii and Senegalia mellifera.

Figure 1. Study area with locations of the two study sites in northern Namibia. For ground-truthing, we observed behaviour of three collared springbok at the Sophienhof private game reserve. For predicting fence behaviour, acceleration data of eight collared springbok were recorded at the Etosha Heights private reserve.

Behavioural observations for supervised classification were conducted at the Sophienhof private game reserve (20°07′S, 16°03′E), located approximately 10 km west of the town of Outjo (Figure 1). The reserve, which covers an area of 23 km2, has several artificial waterholes and is surrounded by a game-proof fence. It is home to various indigenous large herbivore species, including springbok, gemsbok (Oryx gazella), greater kudu (Tragelaphus strepsiceros), common eland (Taurotragus oryx), blue wildebeest (Connochaetes taurinus) and giraffe (Giraffa camelopardalis). Large predators, such as leopard (Panthera pardus) and hyena (Crocuta crocuta), may occasionally also be present. The landscape consists of savanna, grasslands, rocky terrain and shrublands. Wildlife is habituated to the presence of game drive vehicles.

Springbok behaviour associated with fence encounters was analysed along a 70 km section of Namibia’s veterinary cordon fence, which separates Etosha National Park (22,941 km2) from the Etosha Heights private reserve (460 km2, 19°15′S, 15°13′E; Figure 1). The fence consists of two parallel lines, spaced 10 metres apart. The northern line is a 2.8-metre-high wildlife-proof fence, of which the lower 1.5 metres are covered with wire mesh. The southern fence line is a 1.5-metre-high stock-proof fence (Hering et al., Reference Hering, Hauptfleisch, Kramer-Schadt, Stiegler and Blaum2022b).

Springbok are medium-sized antelope endemic to southern Africa. They are found mostly in dry regions, such as the Namib, Kalahari and Karoo deserts, as well as in savannas (Kingdon, Reference Kingdon2015). Adult females weigh 37 kg on average (Skinner and Chimimba, Reference Skinner and Chimimba2005). They are mixed feeders and can adapt their diet according to food availability, typically grazing in summer and browsing in winter and during droughts (Kingdon, Reference Kingdon2015). They are highly mobile, both seasonally, in response to rainfall and vegetation greenness (Kingdon, Reference Kingdon2015) and within seasons (Hering et al., Reference Hering, Hauptfleisch, Jago, Smith, Kramer-Schadt, Stiegler and Blaum2022a).

Behaviour classification

We deployed collars equipped with tri-axial accelerometers (collar model 1d, weighing 320 g, e-obs GmbH, Grünwald, Germany) on three springbok for direct observation on Sophienhof. The collars were fitted by darting the animals with the assistance of a registered veterinarian. We colour-coded the collars of the three individuals for easy identification during behavioural observations. Body acceleration was sampled along three axes at 33 Hz over 3.3 seconds per burst. Two consecutive bursts were recorded every 30 seconds. In one instance, the accelerometer was positioned ventrally along the neck, which caused a change in the orientation of the accelerometer axes compared to the dorsally positioned accelerometers. We adjusted the axis values to account for this shift. Temporary collar rotations were occasionally observed but were left unadjusted to enhance the robustness of the classifier.

We recorded on video the behaviour of the three collared springbok at the time of acceleration measurements between October and November 2021 during daylight hours. The animals were tracked in the field using a UHF receiver (AOR AR8200, Tokyo, Japan) and a hand-held directional Yagi antenna. Most observations were made from a vehicle, though some were conducted from hides, allowing us to observe the animals at distances of 40–70 metres. To synchronise acceleration data with behavioural observations, we filmed the network-synchronised (NTP) local time displayed on a mobile phone as part of each video recording and matched this to the GPS time recorded by the collar.

Behavioural data were analysed using BORIS (Behavioural Observation Research Interactive Software; Friard and Gamba, Reference Friard and Gamba2016). The recorded behavioural categories were defined by neck tilt, locomotion and body posture. In an iterative process outlined by Yu and Klaassen (Reference Yu and Klaassen2021), we reduced the initial pre-selection of behavioural categories to 12, based on both ecological considerations and similarities in acceleration data. In most cases, a single behaviour spanned the entire length of 3.3 seconds. Bursts with behavioural transitions were excluded. In total, 3,952 acceleration bursts were labelled for supervised learning.

All other analyses were conducted in R (R Core Team, 2024). The behaviour classifier was based on a gradient-boosted decision tree algorithm, implemented in the rabc package (version 0.1.0; Yu and Klaassen, Reference Yu and Klaassen2021). The package workflow includes visualising raw accelerometer data, extracting features from the accelerometer data that can help distinguish between different behaviours and selecting the most informative features for behaviour classification, as well as model training, testing and application.

We calculated 28 feature variables from each accelerometer burst using the rabc package. These included time-domain features (the mean, variance, standard deviation, maximum, minimum and range of accelerometer values for each axis, as well as overall dynamic body acceleration, ODBA) and frequency-domain features (main frequency, main amplitude and frequency entropy for each axis, calculated via Fast Fourier Transform). The rabc package uses stepwise forward selection to identify the most relevant features for classification. We applied this process separately to the dataset of each observed individual as well as to the pooled dataset of all three individuals. The classification achieved an overall accuracy of 0.85–0.91 with five selected features, which provided a good balance between accuracy and model simplicity. Feature sets were largely consistent across the datasets. For the final feature set, we selected the main amplitude of the x-axis, mean of the x-axis values, variance of the y-axis values, frequency entropy of the z-axis and main frequency of the x-axis.

We validated the classification performance using two approaches. First, the leave-one individual-out (LOIO) approach was used to assess the model’s ability to classify acceleration data from new individuals. In this approach, two individuals’ data were used for model training, while the remaining individual was used for validation. Thus, three classification models were fitted, and each of the three individuals was used for validation once. The behavioural categories sleeping and salt-licking were only observed in one individual and were therefore excluded from the models in the LOIO approach. Second, in the pooled approach, a five-fold cross-validation was used to evaluate classification performance across the entire dataset of three individuals. Here, the data were randomly split into five parts, where four parts were used to train the model and the remaining part was used for validation. This was done five times so that each of the five parts was used for validation once. The default settings of the rabc package for hyper-parameter tuning (the process of optimising the settings of a machine learning model to improve its performance) were used as they yielded the highest accuracies (Yu and Klaassen, Reference Yu and Klaassen2021).

Classification performance was evaluated using precision, recall (sensitivity), specificity and balanced accuracy (the average of the sensitivity and specificity), calculated using the caret package (version 6.0-92; Kuhn, Reference Kuhn2008). Balanced accuracy was preferred to overall accuracy given that the dataset was imbalanced (García et al., Reference García, Mollineda, Sánchez, Araujo, Mendonça, Pinho and Torres2009). A confusion matrix plot visualised the prediction accuracy for each behavioural category (Figure 3).

Behavioural responses to fence encounters

Eight springbok were collared on Etosha Heights for studying behavioural responses to fences. As in the case of the three study animals on Sophienhof, all individuals were adult females in good physical condition. Accelerometer data were collected over a 2-year period (mid-2019 to late 2021). Acceleration bursts were recorded at 33 Hz for 3.3 seconds at 5-minute intervals. Bursts were categorised into three temporal groups relative to fence encounters: 45 minutes before, during (minimum 15 minutes) and 45 minutes after the encounter. We used the classifier trained on the pooled labelled dataset (mentioned above) to infer springbok behaviour associated with encounters with the veterinary cordon fence.

To examine the behavioural responses of springbok to fence encounters, we fitted generalised linear mixed models (GLMMs) with binomial response distributions using the R package lme4 (v1.1-37; Bates et al., Reference Bates, Mächler, Bolker and Walker2015). For each of the five most frequent behaviours, we modelled the probability of occurrence as a function of the time period relative to the encounter (“before”, “during”, “after”), encounter type (“cross” vs. “non-cross”) and their interaction. Random intercepts were included for both animal ID and encounter ID to account for repeated measures. In a post hoc analysis, estimated marginal means (EMMs) were computed for each behaviour to quantify differences across time periods within each encounter type. Pairwise comparisons between time levels (before vs. during vs. after) were adjusted using Tukey’s method.

Results

Behaviour classification

Over 50 hours of video material (>15 hours per individual) were analysed, resulting in a total of 3,952 ground-truthed accelerometer bursts used for model training and testing. The number of observations were balanced across individuals but imbalanced across behavioural categories. The most prevalent categories were ruminating with 240–444 bursts per individual, followed by walking with 265–400 bursts per individual. Among the rarely observed categories was drinking with 7–24 bursts per individual. Representative acceleration patterns for each of the 12 behavioural categories are shown in Figure 2.

Figure 2. Representative acceleration patterns for each of the 12 behavioural categories in springbok. The y-axis shows the raw output of the tri-axial accelerometers and the x-axis shows the time, i.e., length of one burst. In the tri-axial accelerometers used, the x-axis represents surge, the y-axis sway and the z-axis heave.

In the LOIO approach, the classification performance differed between behavioural categories as well as between validation datasets (Table 1). Balanced accuracy for browsing, grazing, ruminating, walking, trotting and low-activity were all above 80%. Categories with a lower accuracy for at least one validation dataset were drinking, grooming and running, probably due to the small number of behavioural observations. However, only grooming showed a low balanced accuracy in all three LOIO models.

Table 1. Proportion of mean balanced accuracy per behavioural category for the leave one-individual-out (LOIO) approach and the pooled cross-validation approach trained on all three individuals. Sleeping and salt-licking were not observed in every springbok and were excluded from the LOIO approach (“–”).

In the pooled cross-validation approach, we achieved a mean balanced accuracy of 89%. The majority of behavioural categories could be predicted with high accuracies above 90%. All but two categories ranged between 83% and 99% accuracy (grooming with 67% and salt-licking with 78%; Table 1). Categories characterised by similar body posture or movement characteristics – such as between browsing, grazing, foraging and walking or between low-activity and ruminating – were more likely to be confused (Figures 2 and 3).

Figure 3. Confusion matrix of the 12 behavioural categories of springbok based on the five-fold cross-validation results using the pooled dataset. Blue dots represent correct predictions, red dots represent incorrect predictions. Numbers indicate the number of bursts for each combination of prediction and observation. The recall rate (correctly predicted/total observations) per behavioural category is indicated at the top of the figure, while precision (correctly predicted/total predictions) is indicated on the right.

Behavioural responses to fence encounters

In total, behaviour was classified for 29,370 accelerometer bursts recorded on eight springbok before, during and after 949 encounters with the veterinary cordon fence, amounting to 30.9 ± 13.9 bursts per encounter. The bursts were unevenly distributed among individuals (1,287–8,613 bursts per individual; χ-squared = 9277.5, df = 7, p < 0.001). The most frequently predicted behaviour was grazing (26.5%), followed by walking (23.4%), browsing (17.7%), low-activity (12.0%), ruminating (7.6%), foraging (6.6%), drinking (2.3%) and sleeping (1.9%). Grooming, trotting, running and salt-licking were rarely detected (≤ 1% each) in the acceleration data. Low-activity and sleeping were lumped together as resting behaviour.

For the five most frequent behaviours – browsing, grazing, walking, ruminating and resting – we found significant interaction effects between the time period relative to the fence encounter (before, during and after) and the type of encounter (non-crossing or crossing, Table 2). Additionally, random intercept variances were observed for both animal ID and encounter ID across most behaviours (Table 3), indicating considerable variation between individuals as well as between fence encounters.

Table 2. Fixed effects from generalised linear mixed models (GLMMs) predicting the probability of exhibiting each behaviour (browsing, grazing, walking, ruminating and resting) as a function of time relative to the fence encounter (before, during, after), the type of encounter (crossing or non-crossing) and their interaction. All models were fitted with a binomial response distribution using a logit link function. Estimates are shown on the log-odds scale.

Table 3. Random intercept variance estimates from GLMMs for each behaviour, showing between-individual (animal ID) and between-encounter (encounter ID) variation. These random effects account for repeated behavioural observations within animals and encounters, allowing for generalisation beyond sampled individuals and events.

Figure 4 addresses our research questions on (1) behavioural changes associated with fence encounters and (2) differences between crossing and non-crossing events by illustrating how behaviour varied before, during and after each type of encounter. For browsing, there was little evidence of change across time periods in the case of non-crossing encounters. However, during fence crossings, browsing significantly increased compared to the period before and then returned to pre-encounter levels afterward. Similar to browsing, grazing showed no significant changes in the case of non-crossing encounters. In contrast, grazing decreased significantly during fence crossings but returned to pre-encounter levels after the crossing. Walking slightly decreased both during and after non-crossing encounters relative to before. In crossing events, walking increased significantly after the crossing compared to both before and during. Ruminating increased during non-crossing events and returned to pre-encounter levels afterward. Ruminating also increased during crossings but afterwards decreased to a level lower than before the crossing. Resting increased during non-crossing encounters and increased further after the encounter. In contrast, resting slightly increased during fence crossing but then decreased after the crossing to a level below that observed before the crossing. The supporting statistics for these behavioural changes in relation to fence encounters are given in Table 4.

Figure 4. Predicted probabilities (±95% confidence intervals) for each behaviour (browsing, grazing, walking, ruminating, resting) across the three time periods (before, during and after) relative to fence encounters, shown separately for each encounter type (crossing and non-crossing). Predictions are derived from generalised linear mixed models with binomial response distributions.

Table 4. Estimated pairwise comparisons (odds ratios) of behavioural probabilities before, during and after fence encounters for crossing and non-crossing events, based on GLMMs with binomial response distributions. Results are shown for five behaviours: browsing, grazing, walking, ruminating and resting. Tukey-adjusted p-values account for multiple comparisons within each behaviour. Tests were performed on the log odds ratio scale.

Furthermore, individual movement tracks combined with the behaviour classification reveal a variety of behavioural responses when encountering a fence (Figure 5). When individuals crossed the fence, they often moved to the other side for foraging (Figure 5A) or drinking (Figure 5B). In contrast, behaviour was highly variable when staying at the fence or travelling along the fence (Figure 5C and 5D).

Figure 5. Example GPS tracks of springbok with inferred behaviours before, during and after fence encounters. (A) and (B) show quick fence crossings, where individuals walk towards the presumably known fence gap position and cross the fence to feed (A) or to drink (B). (C) and (D) show different non-cross encounter types where the fence acts as a barrier. In (C), the springbok stays and rests when encountering the fence, while in (D) the individual travels along the fence. Background Sentinel 2 (Bands 3, 4, 5) image, March 2020 (contains modified Copernicus Sentinel data [2020]).

Discussion

This study demonstrates the potential of automated behaviour classification using animal-borne tri-axial accelerometers to address important questions in conservation and behavioural ecology. We trained a robust accelerometer-based behaviour classifier for springbok and applied this to unlabelled accelerometer data collected from individuals during fence encounters. This approach provided valuable insights into the behavioural responses of migratory springbok to anthropogenic barriers in an African savanna.

Behaviour classification

Our classifier was able to predict 12 distinct springbok behaviours. In contrast, previous studies on ungulates typically classified 3–7 behavioural categories (Kröschel et al., Reference Kröschel, Reineking, Werwie, Wildi and Storch2017; Chimienti et al., Reference Chimienti, van Beest, Beumer, Desforges, Hansen, Stelvig and Schmidt2021; Yu and Klaassen, Reference Yu and Klaassen2021). Mean balanced accuracies across both validation approaches – leave-one-individual-out cross-validation (LOIO) and pooled cross-validation – ranged from 85% to 89% (Table 1). These results are comparable to those reported in other ungulate studies, such as roe deer (71%, Kröschel et al., Reference Kröschel, Reineking, Werwie, Wildi and Storch2017 and > 90%, Yu et al., Reference Yu, Deng, Nathan, Kröschel, Pekarsky, Li and Klaassen2021), giraffes (83%–97%, Brandes et al., Reference Brandes, Sicks and Berger2021) and dairy cows (> 90%, Yu et al., Reference Yu, Deng, Nathan, Kröschel, Pekarsky, Li and Klaassen2021).

Although the classifier was trained using only five feature variables, 10 out of 12 behaviours were predicted with an overall accuracy exceeding 80% in the pooled approach (Table 1). This corresponds with the findings of Yu and Klaassen (Reference Yu and Klaassen2021), who showed that classification accuracy remains high even when reducing the number of features from 80 to 5 due to correlations between features. Using fewer features offers the advantages of improved interpretability, greater computational efficiency and reduced risk of over-fitting (Yu and Klaassen, Reference Yu and Klaassen2021).

The slightly lower accuracy observed with LOIO (85%–87%) compared to pooled cross validation (89%) likely reflects inter-individual variation in accelerometer measurements. Factors such as sensor attachment, orientation, collar tightness and natural individual variation in behaviour can all influence these measurements (Moreau et al., Reference Moreau, Siebert, Buerkert and Schlecht2009; Kröschel et al., Reference Kröschel, Reineking, Werwie, Wildi and Storch2017; Barwick et al., Reference Barwick, Lamb, Dobos, Welch and Trotter2018; Hertel et al., Reference Hertel, Niemelä, Dingemanse and Mueller2020; Decandia et al., Reference Decandia, Rassu, Psiroukis, Hadjigeorgiou, Fountas, Molle, Acciaro, Cabiddu, Mameli, Dimauro and Giovanetti2021). This variability, especially when classifiers are trained on one individual and validated on another, can reduce accuracy, a problem observed in the classification of behaviours in other mammals, such as elephants (Soltis et al., Reference Soltis, Wilson, Douglas-Hamilton, Vollrath, King and Savage2012), giraffes (Brandes et al., Reference Brandes, Sicks and Berger2021) and cheetahs (Giese et al., Reference Giese, Melzheimer, Bockmühl, Wasiolka, Rast, Berger and Wachter2021). However, the high accuracy of the LOIO models suggests that the variability between individuals in behaviour-specific accelerometer patterns is relatively low, which increases our confidence in the applicability of this approach to unobserved individuals.

Behaviours such as grazing, ruminating and trotting were characterised by relatively stable head and neck positions, which facilitated accurate classification. In contrast, behaviours like grooming, which involved more complex head and neck movements, had lower accuracy. This variability in body posture caused overlapping acceleration patterns between behaviours, making them harder to distinguish. For example, the pattern of a foraging springbok with its neck tilted downwards was similar to that of a springbok grazing on the ground. Similar challenges have been noted in other mammals, such as cows (Martiskainen et al., Reference Martiskainen, Järvinen, Skön, Tiirikainen, Kolehmainen and Mononen2009), elephants (Soltis et al., Reference Soltis, Wilson, Douglas-Hamilton, Vollrath, King and Savage2012) and baboons (Fehlmann et al., Reference Fehlmann, O’Riain, Hopkins, O’Sullivan, Holton, Shepard and King2017). In our study, confusion between categories with similar neck tilt was more common than between categories with similar locomotion likely due to the placement of the sensor on the neck, making it more sensitive to head movements than leg movements. However, the 12 behaviours differentiated in this study may not all be relevant to fence encounters. Depending on the research question, a reduction of the number of behaviours by combining similar behavioural categories into one may be reasonable and could further improve classification accuracy (Ladds et al., Reference Ladds, Thompson, Kadar, Slip, Hocking and Harcourt2017).

The accuracy of minority categories was influenced by small sample sizes, a well-known problem in supervised behaviour classification (Amrine et al., Reference Amrine, White and Larson2014; Fogarty et al., Reference Fogarty, Swain, Cronin, Moraes and Trotter2020). To address this, future studies could use over-sampling of minority categories (Bom et al., Reference Bom, Bouten, Piersma, Oosterbeek and Van Gils2014) or under-sampling of majority categories (Fogarty et al., Reference Fogarty, Swain, Cronin, Moraes and Trotter2020) to balance the dataset and improve model performance (Chakravarty et al., Reference Chakravarty, Cozzi, Dejnabadi, Léziart, Manser, Ozgul and Aminian2020). Another factor influencing classification accuracy was the segmentation of accelerometer bursts. We used a fixed burst length of 3.3 seconds to optimise collar battery life and data storage. However, this approach could lead to misclassification if bursts contained mixed behaviours. Flexible segmentation methods, such as moving windows or Hidden Markov Models, could help overcome this problem by detecting behaviour change points (Bom et al., Reference Bom, Bouten, Piersma, Oosterbeek and Van Gils2014; Hammond et al., Reference Hammond, Springthorpe, Walsh and Berg-Kirkpatrick2016; Kröschel et al., Reference Kröschel, Reineking, Werwie, Wildi and Storch2017) and may be especially useful for classifying brief behaviours such as jumping. Since the model can only predict behaviours included in the training dataset, rare or unobserved behaviours are likely to be misclassified as the most similar behaviour. Moreover, training classifiers on a small number of individuals can limit their robustness (Bao and Intille, Reference Bao, Intille, Ferscha and Mattern2004). Nonetheless, previous studies have shown that reliable behaviour predictions can still be made with limited samples (Giese et al., Reference Giese, Melzheimer, Bockmühl, Wasiolka, Rast, Berger and Wachter2021; Yu et al., Reference Yu, Deng, Nathan, Kröschel, Pekarsky, Li and Klaassen2021).

Behavioural responses to fence encounters

Significant interaction effects between time period (before, during, after) and encounter type (crossing vs. non-crossing) across all five main behaviours indicate that springbok respond to fences in fundamentally different ways depending on whether they cross them or not. During non-crossing encounters, behavioural changes were minor but suggest hesitation: walking decreased slightly while ruminating and resting increased, consistent with animals pausing at an impassable barrier and temporarily reducing activity and energy expenditure. Feeding behaviour (browsing and grazing) remained largely stable, implying that non-crossings primarily interrupted movement rather than foraging. During crossings, on the other hand, springbok exhibited pronounced shifts in behaviour. Browsing increased while grazing decreased, indicating a switch from head-down to head-up feeding, possibly reflecting vigilance (Bøving and Post, Reference Bøving and Post1997) or avoidance of open grazing areas near the fence where predation risk may be elevated (Dupuis-Desormeaux et al., Reference Dupuis-Desormeaux, Davidson, Pratt, Mwololo and MacDonald2016). Walking increased after crossings, consistent with the directed post-crossing movement observed by Hering et al. (Reference Hering, Hauptfleisch, Kramer-Schadt, Stiegler and Blaum2022b). At the same time, ruminating and resting decreased, indicating increased locomotor effort and reduced recovery immediately after the fence was negotiated. Together, the results show that fences cause disruptions in behaviour which may affect foraging efficiency and overall energy balance. This emphasises the importance of maintaining permeable fence designs to allow animals to move freely between resource patches and minimise the cumulative costs of repeated fence encounters.

By combining predicted behaviours with individual movement tracks, we furthermore observed considerable variability in responses to fence encounters, which may reflect the environmental context of the encounter, such as season, time of day, or social interactions, none of which were analysed in this study. Tracks also suggest purposeful movement, with individuals who appeared to know the location of a fence gap walking directly towards it, often to forage or drink (Figures 5A and 5B). In contrast, individuals who failed to find a gap exhibited more variable behaviours, either staying near the fence (Figure 5C) or travelling along it (Figure 5D).

The random effects analysis revealed substantial variance with regard to both individual animals and specific encounters. Some of the high inter-individual variation for ruminating and resting behaviours may be explained by the misclassification of these two behaviours, given their similar acceleration patterns (Figures 2 and 3). Nonetheless, behavioural responses to fences may also be influenced by intrinsic traits, such as age or temperament (Hertel et al., Reference Hertel, Niemelä, Dingemanse and Mueller2020), previous experiences with barriers or factors such as group composition and habitat conditions during encounters.

Conclusion

Our study demonstrates the utility of accelerometer data for remotely monitoring springbok behaviour, overcoming constraints related to accessibility, visibility and observer bias and enabling quantification of fine-scale responses to anthropogenic barriers. We show that fences alter behaviour of springbok antelope, with clear contrasts between crossings and non-crossings. Behavioural changes, such as the increase in walking and decline in ruminating and resting after crossings, indicate energetic and physiological costs that may accumulate over time. Frequent fence encounters could reshape energy budgets, reduce foraging efficiency and modify space-use patterns. Given the expansion of fencing across African rangelands, our results emphasise the importance of fence permeability and managed fence gaps to minimise behavioural disruption and facilitate ecological connectivity for mobile and migratory species.

Open peer review

For open peer review materials, please visit https://doi.org/10.1017/dry.2025.10012.

Data availability statement

The datasets for this study are stored on the Movebank online platform (https://www.movebank.org), Movebank ID 904829042.

Acknowledgments

We express our sincere appreciation to the owners, management and staff of the Etosha Heights and Sophienhof private reserves for their support during our fieldwork. The Ministry of Environment, Tourism, and Forestry, Namibia, provided further support, and we are grateful for the permission granted by the Namibian National Commission on Research, Science & Technology to conduct this research (certificate number RCIV00032018, with authorisation numbers: 20190602, 20190808 and AN202101048). We extend our thanks to Mathias Mwaetako and Milka Indongo for their contributions to data collection.

Financial support

This work was part of the ORYCS project within the SPACES II programme supported by the German Federal Ministry of Education and Research (grant no. FKZ01LL1804A). Paul Berry and Anna Kraus were funded by the SPACES II.2-CaBuDe scholarship programme of the German Academic Exchange Service (programme numbers 57531823 and 57535685). The publication of this work was funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – project number 491466077.

Competing interests

The authors declare none.

References

Abrahms, B, Aikens, EO, Armstrong, JB, Deacy, WW, Kauffman, MJ and Merkle, JA (2021) Emerging perspectives on resource tracking and animal movement ecology. Trends in Ecology & Evolution 36, 308320. https://doi.org/10.1016/j.tree.2020.10.018.Google Scholar
Amrine, DE, White, BJ and Larson, RL (2014) Comparison of classification algorithms to predict outcomes of feedlot cattle identified and treated for bovine respiratory disease. Computers and Electronics in Agriculture 105, 919. https://doi.org/10.1016/j.compag.2014.04.009.Google Scholar
Bao, L and Intille, SS (2004) Activity recognition from user-annotated acceleration data. In Ferscha, A and Mattern, F (eds), Pervasive Computing, Lecture Notes in Computer Science. Berlin Heidelberg, Berlin, Heidelberg: Springer, pp. 117. https://doi.org/10.1007/978-3-540-24646-6_1.Google Scholar
Barwick, J, Lamb, DW, Dobos, R, Welch, M, Schneider, D and Trotter, M (2020) Identifying sheep activity from tri-axial acceleration signals using a moving window classification model. Remote Sensing 12, 646. https://doi.org/10.3390/rs12040646.Google Scholar
Barwick, J, Lamb, DW, Dobos, R, Welch, M and Trotter, M (2018) Categorising sheep activity using a tri-axial accelerometer. Computers and Electronics in Agriculture 145, 289297. https://doi.org/10.1016/j.compag.2018.01.007.Google Scholar
Bates, D, Mächler, M, Bolker, B and Walker, S (2015) Fitting linear mixed-effects models using lme4. Journal of Statistical Software 67, 148. https://doi.org/10.18637/jss.v067.i01.Google Scholar
Bom, RA, Bouten, W, Piersma, T, Oosterbeek, K and Van Gils, JA (2014) Optimizing acceleration-based ethograms: the use of variable-time versus fixed-time segmentation. Movement Ecology 2, 6. https://doi.org/10.1186/2051-3933-2-6.Google Scholar
Bøving, PS and Post, E (1997) Vigilance and foraging behaviour of female caribou in relation to predation risk. Ran 17, 55. https://doi.org/10.7557/2.17.2.1302.Google Scholar
Brandes, S, Sicks, F and Berger, A (2021) Behaviour classification on giraffes (Giraffa camelopardalis) using machine learning algorithms on triaxial acceleration data of two commonly used GPS devices and its possible application for their management and conservation. Sensors 21, 2229. https://doi.org/10.3390/s21062229.Google Scholar
Brewster, LR, Dale, JJ, Guttridge, TL, Gruber, SH, Hansell, AC, Elliott, M, Cowx, IG, Whitney, NM and Gleiss, AC (2018) Development and application of a machine learning algorithm for classification of elasmobranch behaviour from accelerometry data. Marine Biology 165, 62. https://doi.org/10.1007/s00227-018-3318-y.Google Scholar
Brown, DD, Kays, R, Wikelski, M, Wilson, R and Klimley, A (2013) Observing the unwatchable through acceleration logging of animal behavior. Animal Biotelemetry 1, 20. https://doi.org/10.1186/2050-3385-1-20.Google Scholar
Chakravarty, P, Cozzi, G, Dejnabadi, H, Léziart, P-A, Manser, M, Ozgul, A and Aminian, K (2020) Seek and learn: Automated identification of microevents in animal behaviour using envelopes of acceleration data and machine learning. Methods in Ecology and Evolution 11, 16391651. https://doi.org/10.1111/2041-210X.13491.Google Scholar
Chimienti, M, Cornulier, T, Owen, E, Bolton, M, Davies, IM, Travis, JMJ and Scott, BE (2016) The use of an unsupervised learning approach for characterizing latent behaviors in accelerometer data. Ecology and Evolution 6, 727741. https://doi.org/10.1002/ece3.1914.Google Scholar
Chimienti, M, van Beest, FM, Beumer, LT, Desforges, J-P, Hansen, LH, Stelvig, M and Schmidt, NM (2021) Quantifying behavior and life-history events of an Arctic ungulate from year-long continuous accelerometer data. Ecosphere 12, e03565. https://doi.org/10.1002/ecs2.3565.Google Scholar
Clevenger, AP, Chruszcz, B and Gunson, KE (2001) Highway mitigation fencing reduces wildlife-vehicle collisions. Wildlife Society Bulletin (1973–2006) 29, 646653.Google Scholar
Decandia, M, Rassu, SPG, Psiroukis, V, Hadjigeorgiou, I, Fountas, S, Molle, G, Acciaro, M, Cabiddu, A, Mameli, M, Dimauro, C and Giovanetti, V (2021) Evaluation of proper sensor position for classification of sheep behaviour through accelerometers. Small Ruminant Research 201, 106445. https://doi.org/10.1016/j.smallrumres.2021.106445.Google Scholar
Dupuis-Desormeaux, M, Davidson, Z, Pratt, L, Mwololo, M and MacDonald, SE (2016) Testing the effects of perimeter fencing and elephant exclosures on lion predation patterns in a Kenyan wildlife conservancy. PeerJ 4, e1681. https://doi.org/10.7717/peerj.1681.Google Scholar
Fehlmann, G, O’Riain, MJ, Hopkins, PW, O’Sullivan, J, Holton, MD, Shepard, ELC and King, AJ (2017) Identification of behaviours from accelerometer data in a wild social primate. Animal Biotelemetry 5, 6. https://doi.org/10.1186/s40317-017-0121-3.Google Scholar
Fogarty, ES, Swain, DL, Cronin, GM, Moraes, LE and Trotter, M (2020) Behaviour classification of extensively grazed sheep using machine learning. Computers and Electronics in Agriculture 169, 105175. https://doi.org/10.1016/j.compag.2019.105175.Google Scholar
Friard, O and Gamba, M (2016) BORIS: a free, versatile open-source event-logging software for video/audio coding and live observations. Methods in Ecology and Evolution 7, 13251330. https://doi.org/10.1111/2041-210X.12584.Google Scholar
Fryxell, JM, Wilmshurst, JF, Sinclair, ARE, Haydon, DT, Holt, RD and Abrams, PA (2005) Landscape scale, heterogeneity, and the viability of Serengeti grazers. Ecology Letters 8, 328335. https://doi.org/10.1111/j.1461-0248.2005.00727.x.Google Scholar
Funk, C, Peterson, P, Landsfeld, M, Pedreros, D, Verdin, J, Shukla, S, Husak, G, Rowland, J, Harrison, L, Hoell, A and Michaelsen, J (2015) The climate hazards infrared precipitation with stations—a new environmental record for monitoring extremes. Scientific Data 2, 150066. https://doi.org/10.1038/sdata.2015.66.Google Scholar
Gadd, ME (2012) Barriers, the beef industry and unnatural selection: A review of the impact of veterinary fencing on mammals in southern Africa. In Somers, MJ and Hayward, M (eds), Fencing for Conservation: Restriction of Evolutionary Potential or a Riposte to Threatening Processes? New York, NY: Springer, pp. 153186. https://doi.org/10.1007/978-1-4614-0902-1_9.Google Scholar
García, V, Mollineda, RA and Sánchez, JS (2009) Index of balanced accuracy: A performance measure for skewed class distributions. In Araujo, H, Mendonça, AM, Pinho, AJ and Torres, MI (eds), Pattern Recognition and Image Analysis. Berlin, Heidelberg: Springer, pp. 441448. https://doi.org/10.1007/978-3-642-02172-5_57.Google Scholar
Giese, L, Melzheimer, J, Bockmühl, D, Wasiolka, B, Rast, W, Berger, A and Wachter, B (2021) Using machine learning for remote behaviour classification—Verifying acceleration data to infer feeding events in free-ranging cheetahs. Sensors 21, 5426. https://doi.org/10.3390/s21165426.Google Scholar
Hammond, TT, Springthorpe, D, Walsh, RE, Berg-Kirkpatrick, T (2016) Using accelerometers to remotely and automatically characterize behavior in small animals. Journal of Experimental Biology 219(Pt 11), 16181624. https://doi.org/10.1242/jeb.136135.Google Scholar
Hering, R, Hauptfleisch, M, Jago, M, Smith, T, Kramer-Schadt, S, Stiegler, J and Blaum, N (2022a) Don’t stop me now: Managed fence gaps could allow migratory ungulates to track dynamic resources and reduce fence related energy loss. Frontiers in Ecology and Evolution 10, 907079. https://doi.org/10.3389/fevo.2022.907079.Google Scholar
Hering, R, Hauptfleisch, M, Kramer-Schadt, S, Stiegler, J and Blaum, N (2022b) Effects of fences and fence gaps on the movement behavior of three southern African antelope species. Frontiers in Conservation Science 3, 959423. https://doi.org/10.3389/fcosc.2022.959423.Google Scholar
Hertel, AG, Niemelä, PT, Dingemanse, NJ and Mueller, T (2020) A guide for studying among-individual behavioral variation from movement data in the wild. Movement Ecology 8, 30. https://doi.org/10.1186/s40462-020-00216-8.Google Scholar
Hyde, M, Breck, SW, Few, A, Beaver, J, Schrecengost, J, Stone, J, Krebs, C, Talmo, R, Eneas, K, Nickerson, R, Kunkel, KE and Young, JK (2022) Multidisciplinary engagement for fencing research informs efficacy and rancher-to-researcher knowledge exchange. Frontiers in Conservation Science 3. https://doi.org/10.3389/fcosc.2022.938054.Google Scholar
Jakes, AF, Jones, PF, Paige, LC, Seidler, RG and Huijser, MP (2018) A fence runs through it: A call for greater attention to the influence of fences on wildlife and ecosystems. Biological Conservation 227, 310318. https://doi.org/10.1016/j.biocon.2018.09.026.Google Scholar
Jones, PF, Jakes, AF, Vegter, SE and Verhage, MS (2022) Is it the road or the fence? Influence of linear anthropogenic features on the movement and distribution of a partially migratory ungulate. Movement Ecology 10, 37. https://doi.org/10.1186/s40462-022-00336-3.Google Scholar
Kingdon, J (2015) The Kingdon Field Guide to African Mammals, Second Edn. Princeton, NJ: Princeton University PressGoogle Scholar
Kröschel, M, Reineking, B, Werwie, F, Wildi, F and Storch, I (2017) Remote monitoring of vigilance behavior in large herbivores using acceleration data. Animal Biotelemetry 5, 10. https://doi.org/10.1186/s40317-017-0125-z.Google Scholar
Kuhn, M (2008) Building predictive models in R using the caret package. Journal of Statistical Software 28, 126. https://doi.org/10.18637/jss.v028.i05.Google Scholar
Ladds, MA, Thompson, AP, Kadar, J-P, Slip, DJ, Hocking, DP and Harcourt, RG (2017) Super machine learning: improving accuracy and reducing variance of behaviour classification from accelerometry. Animal Biotelemetry 5, 8. https://doi.org/10.1186/s40317-017-0123-1.Google Scholar
Martiskainen, P, Järvinen, M, Skön, J-P, Tiirikainen, J, Kolehmainen, M and Mononen, J (2009) Cow behaviour pattern recognition using a three-dimensional accelerometer and support vector machines. Applied Animal Behaviour Science 119, 3238. https://doi.org/10.1016/j.applanim.2009.03.005.Google Scholar
Mbaiwa, JE and Mbaiwa, OI (2006) The effects of veterinary fences on wildlife populations in Okavango Delta. Botswana. International Journal of Wilderness 12(3), 1741.Google Scholar
McInturff, A, Xu, W, Wilkinson, CE, Dejid, N and Brashares, JS (2020) Fence ecology: Frameworks for understanding the ecological effects of fences. Bioscience 70, 971985. https://doi.org/10.1093/biosci/biaa103.Google Scholar
Moreau, M, Siebert, S, Buerkert, A and Schlecht, E (2009) Use of a tri-axial accelerometer for automated recording and classification of goats’ grazing behaviour. Applied Animal Behaviour Science 119, 158170. https://doi.org/10.1016/j.applanim.2009.04.008.Google Scholar
Mysterud, A and Rolandsen, CM (2019) Fencing for wildlife disease control. Journal of Applied Ecology 56, 519525. https://doi.org/10.1111/1365-2664.13301.Google Scholar
Pokorny, B, Flajšman, K, Centore, L, Krope, FS and Šprem, N (2017) Border fence: a new ecological obstacle for wildlife in Southeast Europe. European Journal of Wildlife Research 63, 1. https://doi.org/10.1007/s10344-016-1074-1.Google Scholar
R Core Team (2024) A Language and Environment for Statistical Computing, Vienna, Austria: R Foundation for Statistical ComputingGoogle Scholar
Rast, W, Kimmig, SE, Giese, L and Berger, A (2020) Machine learning goes wild: Using data from captive individuals to infer wildlife behaviours. PLoS One 15, e0227317. https://doi.org/10.1371/journal.pone.0227317.Google Scholar
Schreven, KHT, Stolz, C, Madsen, J and Nolet, BA (2021) Nesting attempts and success of Arctic-breeding geese can be derived with high precision from accelerometry and GPS-tracking. Animal Biotelemetry 9, 25. https://doi.org/10.1186/s40317-021-00249-9.Google Scholar
Shepard, E, Wilson, R, Quintana, F, Gómez Laich, A, Liebsch, N, Albareda, D, Halsey, L, Gleiss, A, Morgan, D, Myers, A, Newman, C and McDonald, D (2008) Identification of animal movement patterns using tri-axial accelerometry. Endangered Species Research 10, 4760. https://doi.org/10.3354/esr00084.Google Scholar
Skinner, JD and Chimimba, CT (2005) The Mammals of the Southern African Subregion, 3rd Edn. Cambridge, New York, Melbourne, Madrid, Cape Town, Singapore, Sao Paulo: Cambridge University Press. https://doi.org/10.1017/CBO9781107340992Google Scholar
Soltis, J, Wilson, RP, Douglas-Hamilton, I, Vollrath, F, King, LE and Savage, A (2012) Accelerometers in collars identify behavioral states in captive African elephants. Loxodonta africana Endangered Species Research 18, 255263. https://doi.org/10.3354/esr00452.Google Scholar
Whyte, IJ and Joubert, SCJ (1988) Blue wildebeest population trends in the Kruger National Park and the effects of fencing. South African Journal of Wildlife Research 18, 7887. https://doi.org/10520/AJA03794369_3669.Google Scholar
Xu, W, Gigliotti, LC, Royauté, R, Sawyer, H and Middleton, AD (2023) Fencing amplifies individual differences in movement with implications on survival for two migratory ungulates. Journal of Animal Ecology 92, 677689. https://doi.org/10.1111/1365-2656.13879.Google Scholar
Yu, H, Deng, J, Nathan, R, Kröschel, M, Pekarsky, S, Li, G and Klaassen, M (2021) An evaluation of machine learning classifiers for next-generation, continuous-ethogram smart trackers. Movement Ecology 9, 15. https://doi.org/10.1186/s40462-021-00245-x.Google Scholar
Yu, H and Klaassen, M (2021) R package for animal behavior classification from accelerometer data—rabc. Ecology and Evolution 11, 1236412377. https://doi.org/10.1002/ece3.7937.Google Scholar
Zoromski, LD, DeYoung, RW, Goolsby, JA, Foley, AM, Ortega-Santos, JA, Hewitt, DG and Campbell, TA (2022) Animal use of fence crossings in southwestern rangelands. Ecology and Evolution 12, e9376. https://doi.org/10.1002/ece3.9376.Google Scholar
Figure 0

Figure 1. Study area with locations of the two study sites in northern Namibia. For ground-truthing, we observed behaviour of three collared springbok at the Sophienhof private game reserve. For predicting fence behaviour, acceleration data of eight collared springbok were recorded at the Etosha Heights private reserve.

Figure 1

Figure 2. Representative acceleration patterns for each of the 12 behavioural categories in springbok. The y-axis shows the raw output of the tri-axial accelerometers and the x-axis shows the time, i.e., length of one burst. In the tri-axial accelerometers used, the x-axis represents surge, the y-axis sway and the z-axis heave.

Figure 2

Table 1. Proportion of mean balanced accuracy per behavioural category for the leave one-individual-out (LOIO) approach and the pooled cross-validation approach trained on all three individuals. Sleeping and salt-licking were not observed in every springbok and were excluded from the LOIO approach (“–”).

Figure 3

Figure 3. Confusion matrix of the 12 behavioural categories of springbok based on the five-fold cross-validation results using the pooled dataset. Blue dots represent correct predictions, red dots represent incorrect predictions. Numbers indicate the number of bursts for each combination of prediction and observation. The recall rate (correctly predicted/total observations) per behavioural category is indicated at the top of the figure, while precision (correctly predicted/total predictions) is indicated on the right.

Figure 4

Table 2. Fixed effects from generalised linear mixed models (GLMMs) predicting the probability of exhibiting each behaviour (browsing, grazing, walking, ruminating and resting) as a function of time relative to the fence encounter (before, during, after), the type of encounter (crossing or non-crossing) and their interaction. All models were fitted with a binomial response distribution using a logit link function. Estimates are shown on the log-odds scale.

Figure 5

Table 3. Random intercept variance estimates from GLMMs for each behaviour, showing between-individual (animal ID) and between-encounter (encounter ID) variation. These random effects account for repeated behavioural observations within animals and encounters, allowing for generalisation beyond sampled individuals and events.

Figure 6

Figure 4. Predicted probabilities (±95% confidence intervals) for each behaviour (browsing, grazing, walking, ruminating, resting) across the three time periods (before, during and after) relative to fence encounters, shown separately for each encounter type (crossing and non-crossing). Predictions are derived from generalised linear mixed models with binomial response distributions.

Figure 7

Table 4. Estimated pairwise comparisons (odds ratios) of behavioural probabilities before, during and after fence encounters for crossing and non-crossing events, based on GLMMs with binomial response distributions. Results are shown for five behaviours: browsing, grazing, walking, ruminating and resting. Tukey-adjusted p-values account for multiple comparisons within each behaviour. Tests were performed on the log odds ratio scale.

Figure 8

Figure 5. Example GPS tracks of springbok with inferred behaviours before, during and after fence encounters. (A) and (B) show quick fence crossings, where individuals walk towards the presumably known fence gap position and cross the fence to feed (A) or to drink (B). (C) and (D) show different non-cross encounter types where the fence acts as a barrier. In (C), the springbok stays and rests when encountering the fence, while in (D) the individual travels along the fence. Background Sentinel 2 (Bands 3, 4, 5) image, March 2020 (contains modified Copernicus Sentinel data [2020]).

Author comment: Applying accelerometer-based behaviour classification to antelope–fence encounters in an African savanna — R0/PR1

Comments

No accompanying comment.

Review: Applying accelerometer-based behaviour classification to antelope–fence encounters in an African savanna — R0/PR2

Conflict of interest statement

Reviewer declares none.

Comments

The manuscript DRY-2024-0017 by Kraus et al evaluates acceleration-based data to classify and predict antelope behavior, specifically when encountering fences. The work is mostly methodological, although the second part attempts to understand real responses to fence encounters. However, this second part however lacks proper analyses or tests to assess the statistical significance of the results obtained. I have three main suggestions or comments for the manuscript.

1. As mentioned above, the second part of the paper (assessing the impact of fence encounters on free-ranging individuals in Etosha) lacks any proper statistical analysis. Any differences described from Figure 4 in the results and the discussion sections regarding this objective are, I understand, based from the mere observation of the figure and their numbers, which is not acceptable. The authors should include proper statistical tests to make any inference on the impact of the fence on the behavior of the animals.

2. The manuscript has two clear objectives (1) to classify and predict behavior using data from Sophienhof private game farm, and (2) to describe the behavioral effects of a fence on a real case study in Etosha. The first objective is purely methodological while the second is both methodological and applied. However this clear distinction is lost in the Methods. I would ask the authors to rearrange the subsections in Methods according to these two main Objectives. Otherwise the Methods section is very difficult to follow. The section headings in the Results section are also not very intuitive as the first part is titled “ACC ground-truthing” and the second “…predictions”. Overall I would ask the authors to have a more explicit structure of the article around these two Objectives. In the Abstract these two objectives, as well as their results should be more explicitly delineated too.

3. Finally, I would ask the authors to make a stronger effort to highlight the (novel) contributions of the work, both in terms of methods and in terms of the knowledge gained about springbook behavior.

Review: Applying accelerometer-based behaviour classification to antelope–fence encounters in an African savanna — R0/PR3

Conflict of interest statement

Reviewer declares none.

Comments

This is an interesting article in which the authors investigate the use of machine learning classifiers to characterize Springbok behavior using accelerometer data. The successful behavior classification is interesting, although it is not particularly new (as rightly pointed out in the references), and no new classification methods are proposed. In this sense, I appreciate that they go beyond the purely technical classification exercise and propose an interesting application, where they try to understand the effect of fences in Springbok behavior.

My main concern is that the conclusions about the effect of fencing on Springbok behaviour could be more elaborated. Perhaps too much attention is given to classifying many behaviors that are potentially irrelevant for the application at hand (or at least not properly justified - e.g., why do you need to distinguish between foraging and grazing or saltliking from drinking? honest question, maybe there is a reason, but it is not explained), while the main research question is left mostly unanswered.

Major issues:

- There is no clear hypothesis as of why and how fences could affect Springbok behaviour. Defining a hypothesis and testing it could help drive the paper and the reader through the results and discussion.

- I could not find criteria defined to identify changes in behaviour. There is little comparison of behaviour before, while and after fence crossings and Figure 4 does not show clear patterns in this sense. So could we conclude that fences have an effect on behaviour?

Then, in my opinion, the article needs some re-structuring. There are too many subsections, and some parragraphs in the introduction and discussion would be better placed in the methods sections. I will now point out some comments about the text to exemplify what I mean:

- This is a matter of style, but I think that the acrononym ACC is unnecessary. One could just say “acceleration” or “accelerometer” in most cases.

- Lines 83-97: I know this is sometimes contentious, but to me this section contains many details that belong in the methods sections. I think a succint parragraph describing the high-level objectives would be enough.

- “ACC ground-thuthing” and “Fence behaviour predictions” headers could be removed or at least they should fall under “Study areas”. These are still Study areas.

- Lines 167-169: I understand that there is a paper about the rabc package, but some details about the main methods this package uses would be welcome here.

- Line 173: mean, variance, standard deviation, ... of what?

- Line 187-188: It is strange that changing the feature set that got the best result for the pooled dataset, by another set (that was already tested during feature selection with the pooled dataset?) resulted in better results.

- Line 206: What do you mean by hyperparameter tuning?

- Lines 217-229: I might have missed it, but did you use all 11 individuals for investigating fence behaviours? This is answered later, but perhaps these details could go here.

- Lines 227-229: I think this is a critical sentence in the methods, because it captures what the objective of the analysis is. I think it could be clearer. In my mind, to see if fences have an effect on behaviour, the analysis should focus on before, while and after fence encounter. Also, how are you going to compare them? This is the methods section, so here we need details. It seems to me that you somehow need to determine if the variation within before, while, after periods, is less/more than the variation between before, while and after encounters.

- Line 255: Here we see that you used 8 individuals, presumably those not used for training the classifier? I think that should be pointed out in the methods.

- Lines 286-306: I like this paragraph. It is critical and gives possible explanations for the incorrect classification of behaviours. Yet, it makes me think whether it was necessary to define so many behaviours in the first place? Would all those behaviours be useful for investigating fence encounters?

Line 315: What does the majority mean? If it was 7 or so then it is pretty much what others have achieved?

Line 335: What are high balanced accuracies?

Recommendation: Applying accelerometer-based behaviour classification to antelope–fence encounters in an African savanna — R0/PR4

Comments

Both reviewers point out that major improvements on the manuscript are need. I would highlight that both reviews agree on three aspects that should be addressed, and I encourage the authors to do so:

1. Both reviews appreciate that the work includes a methodological and a more applied second part. However this second part, on behavioral impacts of fence encounters, needs a major overhaul. Explicit hypotheses, proper statistical testing, and more elaborated discussion and conclusions, are needed.

2. The manuscript, particularly the methods, but also the introduction (See Reviewer 2 comment on L83-97) needs to be restructured in a way that it is easier to understand what was done and how. The authors should make a clear distinction between, study areas, individuals studied and analyses for each part (methodological and applied objectives).

3. The novelty or contributions of the work regarding the two parts (methodological and applied) should be highlighted and explained in more detail.

Decision: Applying accelerometer-based behaviour classification to antelope–fence encounters in an African savanna — R0/PR5

Comments

No accompanying comment.

Author comment: Applying accelerometer-based behaviour classification to antelope–fence encounters in an African savanna — R1/PR6

Comments

No accompanying comment.

Review: Applying accelerometer-based behaviour classification to antelope–fence encounters in an African savanna — R1/PR7

Conflict of interest statement

Reviewer declares none.

Comments

The authors have done a good job addressing the comments, and I think the manuscript has really improved. I have a few minor comments, many of them related to better integrating the (new) hypotheses in the different sections:

(indicated line numbers are those of the Latex document that do not correspond to actual lines numbers.)

P3 L54. The second objective needs some more framing (where does the hypothesis come from?), and relate it to the first objective. For example, “Second, we use the behavioral classifications obtained in Objective 1 and use them to assess …” or something along that line.

P6 L32. The authors could include a brief explanation of why two different approaches were used for validations, as it is done in the abstract. Are they complementary? Is there high uncertainty with either approach?

P7 L36-52. There are specifications on different modeling approaches (walking when fence crossing, grazing when not crossing, etc.) but unrelated to the hypothesis testing. It would be clarifying to relate modeling approaches to the different hypotheses.

P9 L1-28. The hypothesis tested should be somehow mentioned in the results.

Review: Applying accelerometer-based behaviour classification to antelope–fence encounters in an African savanna — R1/PR8

Conflict of interest statement

Reviewer declares none.

Comments

In this revision, the authors have made a great job at clearly dividing the paper in two parts: 1) a practical exercise where they classify the behaviour of springbok using machine learning classifiers, and 2) an application where they use the trained classifier to understand springbok behaviour around fences. The structure of the paper is now a lot clearer.

In the first part, the authors test how useful these classifiers are for categorising sequences of accelerometer Springbok data (bursts). It is interesting to know the details of this particular exercise, even if it is just how successful the classifiers were. However, there are previous examples for other species, and the only novelty is the classification of the springbok data in particular.

For me, the main novelty of the paper is the application of these classifiers to investigate changes in springbok behaviour around fences. The new formulation of hypotheses and statistical tests are much appreciated and help drive the paper and support the statements. However, I still struggle to understand what the authors want to prove, and I think the analysis and discussion of the accelerometer data around fences need more thought. I would appreciate more clarity on the selection of hypothesis and more support in the discussion of results in relation to fence behaviour.

To exemplify what I mean in relation to hypotheses:

- The hypotheses seem to have been formulated to match the results. Hypotheses should be formulated before seeing the data. This might have been the case, but then they should be properly reasoned. For example, why did you expect springbok to exhibit more walking when they cross fences? Would you not expect them to patrol fences when they don’t manage to cross? Why is this particular question relevant? Why did you test the occurrence of grazing behaviour? Why would animals go near fences to graze? What implication does this have?

- In relation to the tests, why did you test only walking for crossing events and only grazing for non-crossing events? To me, understanding whether springbok graze after crossing seems like an equally interesting question, and it would support the statement that “When individuals crossed the fence, they often moved to the other side for foraging” (page 9, lines 7-8). In general, I would appreciate that any such statements would be supported by a test or metric of some sort. But what I think is most important is that all these tests work towards supporting meaningful findings.

In relation to discussion of results, here are some examples:

- Lines 58-60 page 11. If animals patrolled the fence, we would see an increase of walking “during” fence encounters, but according to table 2 we observe the main increase in walking “after” fence encounter, right? So I’m not sure this is supported by the data.

- Lines 3-6 page 12. Why do you think increased walking after crossing fences reflects a heightened state of agitation? Could it also be that, as you mentioned elsewhere, the animals were trying to reach grazing pastures or drinking water?

- Line 9 page 12. If animals cannot move freely would they not patrol the fence in search of a gap? The claim that animals graze because they can’t move seems to be unsupported.

- Lines 12-15 page 12. Hering et al 2022a seem to suggest that impermeable fences tend to produce an increase in energy expenditure, which would not agree with the findings in this study, right?

Overall, the discussion needs to be supported more convincingly.

In addition to the issues mentioned above:

- The classification of encounters in three types: quick, trace and stay, seems unnecessary, as this is barely discussed. Instead, what is discussed are crossing vs non-crossing events.

Other minor issues:

- Page 9, line 53, I don’t think you “developed” a classifier (correct me if I am wrong), think you “trained” an already developed classifier that comes with the rabc package.

- I am not sure I see the point of line 29 of page 11. It is the first time that “complex social behaviours” are mentioned. Why is this relevant?

- Lines 29 to 32, page 11 - the fact that rare or unobserved behaviours are likely to be miss-classified as the most frequent behaviour seem to have implications for this study and perhaps these should be elaborated further?

- Lines 32 to 36, page 11 - why would time of the year influence classification? Do you mean that grazing, for example, would have a different signal in different seasons? Could this also affect the results presented in this paper?

Recommendation: Applying accelerometer-based behaviour classification to antelope–fence encounters in an African savanna — R1/PR9

Comments

The authors have done a commendable job addressing the main comments from the reviewers, and both reviewers agree that the manuscript has improved considerably. I completely agree.

One of the earlier points was the need to include proper hypotheses for the second part of the study, along with suitable statistical tests. While tests have now been added and the hypotheses are stated, both reviewers point out that the hypotheses still need to be better justified and integrated into the manuscript. As currently presented, they lack a clear rationale and are not sufficiently considered in the description of methods and results. In the discussion, the hypotheses should be used more explicitly as a framework to advance understanding of fencing behavior. The authors are encouraged to strengthen the second part of the study by structuring it more clearly around the hypotheses, rather than merely appending them. One of the reviewers provides several specific examples to guide improvements in this regard.

Decision: Applying accelerometer-based behaviour classification to antelope–fence encounters in an African savanna — R1/PR10

Comments

No accompanying comment.

Author comment: Applying accelerometer-based behaviour classification to antelope–fence encounters in an African savanna — R2/PR11

Comments

No accompanying comment.

Review: Applying accelerometer-based behaviour classification to antelope–fence encounters in an African savanna — R2/PR12

Conflict of interest statement

Reviewer declares none.

Comments

I congratulate the authors for addressing my concerns about the previous version. I think the objectives of the paper are now much clearer and it is easier to link the problems presented in the introduction with the results and the discussion. The discussion section, although still quite speculative, is also more convincing and better supported.

I only have a couple of minor comments:

- There is no mention to the software used for fitting the GLMs. I assume they were fitted in R (packages?), but there is only mention to R in the previous section. I would also make the general recommendation of making the code available, but that depends on the journal’s policies.

- Page 6, line 12. You mentioned 26,568 classified bursts, how many encounters do these correspond to? Mean and standard deviation of bursts per encounter? Are they evenly distributed across individuals?

- In the discussion, you expose what happens in terms of browsing, grazing, walking, ruminating and resting. That’s fine, but I think it would help the reader get a take-home message if you could paint a picture where all of this is integrated in a couple of sentences? Something like: "Based on our observations, the main purpose of springbok crossing fences seems to be looking for feeding and drinking spots [which speaks about connectivity]. However, they don’t always cross the fences, in which case they might alter their feeding behavior and resting behavior, etc, etc, ...". Something that glues together all the findings.

Review: Applying accelerometer-based behaviour classification to antelope–fence encounters in an African savanna — R2/PR13

Conflict of interest statement

Reviewer declares none.

Comments

Comments have been properly addressed; however, this issue remains unresolved. Specifically, the results are not clearly framed in relation to the hypotheses. The authors should explicitly link each set of findings to the corresponding hypothesis, even if it is just by starting the relevant sections or lines with sentences such as ‘Regarding our first hypothesis…’Otherwise results are difficult to follow.

Recommendation: Applying accelerometer-based behaviour classification to antelope–fence encounters in an African savanna — R2/PR14

Comments

The reviewers acknowledge that their previous comments have been addressed and have suggested only a few minor changes. Please ensure these are incorporated. Given that this is likely the final round of reviews, kindly double-check that the reference list is complete and that all figures and tables comply with the journal’s formatting requirements.

Decision: Applying accelerometer-based behaviour classification to antelope–fence encounters in an African savanna — R2/PR15

Comments

No accompanying comment.

Author comment: Applying accelerometer-based behaviour classification to antelope–fence encounters in an African savanna — R3/PR16

Comments

No accompanying comment.

Recommendation: Applying accelerometer-based behaviour classification to antelope–fence encounters in an African savanna — R3/PR17

Comments

The authors have done an excellent job. My only very minor comment is to adjust the final sentence of both the Summary and the Conclusion, where it is stated that the work emphasizes the importance of maintaining ecological connectivity for migratory ungulates. While this statement may be true and of clear conservation and ecological relevance, it is not a conclusion that follows directly from the present work. The manuscript focuses on inferring behavioral states from accelerometer data and on documenting short-term behavioral changes when animals encounter fences. It does not address the broader, long-term demographic or ecological consequences of these barriers for the species, which would require additional evidence beyond the scope of this study. As such, this concluding statement should be downplayed or removed.

Once this minor wording adjustment is made, the manuscript can be accepted from my side.

Decision: Applying accelerometer-based behaviour classification to antelope–fence encounters in an African savanna — R3/PR18

Comments

No accompanying comment.