# Positioning of aquatic animals based on time-of-arrival and random walk models using YAPS (Yet Another Positioning Solver)

## Abstract

Aquatic positional telemetry offers vast opportunities to study in vivo behaviour of wild animals, but there is room for improvement in the data quality provided by current procedures for estimating positions. Here we present a novel positioning method called YAPS (Yet Another Positioning Solver), involving Maximum Likelihood analysis of a state-space model applied directly to time of arrival (TOA) data in combination with a movement model. YAPS avoids the sequential positioning-filtering-approach applied in alternative tools by using all available data in a single model, and offers better accuracy and error control. Feasibility and performance of YAPS was rigorously tested in a simulation study and by applying YAPS to data from an acoustic transmitter towed in a receiver array. Performance was compared to an alternative positioning model and proprietary software. The simulation study and field test revealed that YAPS performance was better and more consistent than alternatives. We conclude that YAPS outperformed the compared alternative methods, and that YAPS constitute a vast improvement to currently available positioning software in acoustic telemetry. Additionally, in contrast to vendor-supplied solutions, YAPS is transparent, flexible and can easily be adapted and extended for further improvements or to meet study specific requirements such as three-dimensional positioning.

## Introduction

Positional telemetry, i.e. the recording of animal positions over time, enables researchers to study the behaviour of aquatic animals in the wild. One approach to achieve this involves tagging animals with acoustic transmitters and monitor them using fixed position hydrophones. Subsequently, positions at the time of signal transmissions are calculated using tri- or multilateration based on differences in time of arrival at each hydrophone1,2,3. The obtained data can potentially be of high temporal and spatial resolution and can thus provide detailed information on the tagged animals’ locations4,5,6,7. This type of data offer vast opportunities to study the natural behaviour of individual animals in details not obtainable with other methodologies8,9,10,11,12.

Current manufacturers of positional telemetry systems provide either proprietary software or paid services for calculating positions based on data from deployed hydrophones. However, these solutions lack transparency and the underlying mathematical algorithms, models and assumptions are not publicly available. Generally, tracks of animal movement obtained through currently available systems need additional processing such as filtering5,13 to remove positional outliers or use of state-space models14 to accommodate observational errors.

Traditionally, estimation of positions of tagged aquatic animals from fixed position hydrophones have utilized time differences of arrival (TDOA) at detecting hydrophones1,2,3,7,15,16. With the TDOA approach, at least three hydrophones need to detect a given signal transmission in order to estimate a position in two dimensions; instances where only one or two hydrophones detect a transmission are discarded. Erroneous registration on just one hydrophone can potentially offset the estimated position from a few to several hundred meters even if the signal was detected correctly on a surplus of hydrophones (personal observation from simulation studies and field experiments). Since the occurrence of erroneous registrations have a probabilistic component, this can lead to a counterintuitive situation in which the accuracy and precision of a given calculated position deteriorates as the number of hydrophones detecting the signal increase17. Procedures eliminating information from assumedly invalid hydrophone registrations can be applied to reduce this effect in an over-determined system16. Our experience with several vendor-supplied positioning systems indicates that these apply some undescribed filtering algorithms. However, in data obtained using these systems positioning error may still be considerable even in over-determined hydrophone array configurations, including a relatively large proportion of positions with positional errors of several hundred meters (personal observation).

In this situation, we hypothesized that positioning could be improved by using the extra information in the time of arrival (TOA) of each ping at each hydrophone, rather than merely the time differences (TDOA), even if this information is imperfect. Moreover, that this information increases in value when combined with a model which describes the movement of the animal, so that information is shared optimally between subsequent signal transmissions. Finally, in broader terms, that the state of the art within acoustic positioning will advance more rapidly if algorithms are published and thus made available to the scientific community for scrutiny and further development.

Thus, we present YAPS (Yet Another Positioning Solver); a newly developed model for estimating aquatic animal positions combining signal time of arrival (TOA) at fixed position hydrophones with a random walk movement model. Our approach aims at being transparent and to be adaptable and extendable to fit study specific requirements. For instance, the present version of YAPS is intended for use in areas where the vertical dimension (i.e. depth) is negligible compared to the horizontal dimension (x and y). For use in areas where this is not true, YAPS can be extended to a 3D version in which the third dimension of positions is either estimated by the model or represented by data collected using transmitters with on-board pressure sensors thereby correcting estimation errors that would otherwise be introduced. The YAPS model was developed towards use with systems from a specific vendor (Lotek Wireless Inc., Newmarket, Ontario, Canada), offering transmitters with relatively stable burst intervals, which enables estimation of time of each transmission and subsequently using TOA as opposed to TDOA. However, YAPS is not vendor specific and is applicable to data obtained using other systems with similar characteristics, i.e. stable burst interval. By including a movement model fitted to raw TOA data, YAPS constraints the estimated positions to biologically plausible (under the movement model) outcomes. Moreover, YAPS utilises all available detections, even if number of hydrophones detecting a given signal is less than three. Additionally, by allowing residuals to be non-normally distributed, YAPS accommodates erroneous detections (e.g. multipath) that could otherwise result in severely biased position estimation. The model is interfaced using R18 and the position estimation is done using TMB (Template Model Builder19) to allow quick computation times.

To evaluate performance of YAPS, we applied the YAPS model and a standard TDOA model to two different datasets and compared results in terms of e.g. efficiency (i.e. number of estimated positions) and accuracy (deviation from true to estimated position): 1) data simulated from a random walk model and 2) data from a track with known trajectory obtained by combined movement of a differential global positioning system (DGPS) unit and transmitters in a hydrophone array setup in a river. The YAPS results from the latter dataset were also compared to results from a commercially available acoustic positioning software.

## Methods

### YAPS model formulation

The modelling follows the state space paradigm20 where we distinguish between first the process model, which describes the dynamics of the system and most importantly the x,y-location of the transmitter at time t, and next an observation model, which relates unobserved processes to data. The process model consists of the following stochastic processes: First, a model for the times t(i) of transmissions (measured in seconds since first detection) states that the interval between transmissions is a random walk:

$$t(i)-t(i-1)|t(i-1),t(i-2)\sim N(t(i-1)-t(i-2),{\sigma }_{bi}^{2})$$
(1)

here, our notation implies that the time t(i) of transmission number i is a random variable, specified in terms of its conditional distribution given t(i-1) and t(i-2), which is a Gaussian with the specified mean and standard deviation. The transmission times are unobserved and estimated. This model component assumes that transmitter burst intervals can be modelled using a Gaussian distribution and allows some temporal variation that can be caused by temporally varying temperature affecting the frequency of the internal clock crystal.

Next, the model assumes an independent random walk for each co-ordinate (denoted x and y), where the variance of the displacement scales linearly with the time increment as in standard diffusion theory21:

$${\rm{x}}(t(i))|{\rm{x}}(t(i-1))\sim N({\rm{x}}(t(i-1)),{(2{D}_{xy}\ast (t(i)-t(i-1)))}^{0.5})$$
(2)
$$y(t(i))|y(t(i-1))\sim N(y(t(i-1)),{(2{D}_{xy}\ast (t(i)-t(i-1)))}^{0.5})$$
(3)

here, Dxy is the diffusivity, assumed to be identical in the x and y direction. The positions x,y (measured in meters) are unobserved and thus constitute an unobserved Markov processes, as is standard in the state space paradigm for time series analysis20.

To relate the time of transmissions with the time when the transmission reaches the receivers, we need the speed of sound v. Some variation in water temperature and density can occur even on small temporal and spatial scale and directly affects the speed of sound. We assume the speed to be a random walk:

$$v(t(i))|v(t(i-1))\sim N(v(t(i-1)),{(2{D}_{v}\ast (t(i)-t(i-1)))}^{0.5})$$
(4)

where Dv is the diffusivity of the velocity process. Note that we assume one value for the speed of sound at each transmission; we thus ignore differences in water temperature and density within each transmission as the sound wave propagates from the transmitter to the different receivers, and consider only differences between transmissions.

This concludes the process components in the model. Next, we relate the observed time τ i,H when transmission i arrives at hydrophone H, to the transmission time t(i). We compute Euclidian distances in two dimensions between the transmitter location x,y(t(i)) at time t(i) and all hydrophone (H) positions (x H , y H ):

$$D(H,t(i))={({({x}_{H}-x(t(i)))}^{2}+{({y}_{H}-y(t(i)))}^{2})}^{0.5}$$
(5)

Then, the predicted time of arrival (μ) at hydrophone (H) is:

$$\mu (H,i)=t(i)+D(H,t(i))/v(t(i))$$
(6)

We next define the residuals E(H,i) = τ i,H  − μ(H,i) between the predicted and observed time of arrival. We assume that this residual follows a mixture of two distributions: a Gaussian with mean 0, and a scaled t-distribution with three degrees of freedom. This distribution has well defined mean, variance and skewness, but displays heavy tails due to the t-distribution. Mixture ratio and scale parameters in the two distributions are estimated by the model.

### TDOA model formulation

Position estimation using a standard TDOA model is based on solving a set of hyperbolic equations each described by pairwise differences in time of arrival at three or more hydrophones17. The model assumes that difference in time of arrival of signal i emitted at time t(i) on hydrophones Hn and Hm follows a Gaussian distribution with mean µ TDOA and variance $${\sigma }_{TDOA}^{2})$$.

$$TDOA(Hn,Hm,t(i))\sim N({\mu }_{TDOA}(Hn,Hm,t(i)),{\sigma }_{TDOA}^{2})$$
(7)

In this, µ TDOA (Hn, Hm, t(i)) is defined by the linear predictor function:

$${\mu }_{TDOA}(Hn,Hm,t(i))={({({({x}_{Hn}-x(t(i)))}^{2}+{({y}_{Hn}-y(t(i)))}^{2})}^{0.5}-({({x}_{Hm}-x(t(i)))}^{2})+{({y}_{Hm}-y(t(i)))}^{2})}^{0.5}/v$$
(8)

in which x(t(i)) and y(t(i)) is location of the transmitter at time i, x Hn , y Hn , x Hm and y Hm are locations of the two focal hydrophones and v is speed of sound assumed to be constant.

### Computational analysis of the models

Both the YAPS and the TDOA models, as described in the previous, defines the joint distribution of all random variables in the model, both observed and unobserved, for given parameters. Following the approach in the Template Model Builder (TMB) framework19, the model is coded as a c++-file which evaluates the joint density. Unobserved random variables (i.e. x, y, v and t at each transmission) are automatically integrated out by TMB using the Laplace approximation, and parameters (fixed effects; i.e. σ bi , D xy , D v , residual standard deviation, the t-Gaussian mixture ratio and scale parameter for the t-distribution) are estimated using the Maximum Likelihood principle using a built-in optimizer (nlminb() from the package stats) in R18. Unobserved variables are estimated with the mean in their posterior distribution (again using the Laplace approximation). Uncertainties on parameter estimates are obtained from the Fisher information matrix, i.e. the curvature of the likelihood function, while uncertainties on random variables are obtained from the variance in the posterior distributions, still using the Laplace approximation. In summary, the model analysis is a standard Maximum Likelihood analysis of non-linear mixed-effects model, using TMB as the computational tool that automates the entire analysis.

### Simulation study

We simulated movement data x,y(t) as well as data for time of transmission t(i) and speed of sound v(t(i)). A simulated array consisting of five hydrophones positioned in the corners and centre of a 100*100 meter quadrant was used. Time of arrival matrices were established from this including Gaussian distributed noise to use as input to the model. This represents an optimal dataset in which all transmissions are registered as straight line detections with Gaussian distributed observation noise corresponding to hardware measurement error specific to the hydrophones. In total, 200 simulated tracks starting at random positions within the array and with 250 positions each were generated. We used fixed diffusivities for the simulated movement process (D xy  = 1.0 m2 * s−1) and speed of sound process (D v  = 0.01 m2 * s−3). To test the robustness of YAPS and to add realism to the simulation study, we introduced varying degrees of incomplete registrations by making detection on each hydrophone probabilistic; nine probabilities of missing detection (p(NA)) between 0.0 and 0.8 in increments of 0.1 were used. Additionally, to simulate detection of multipath propagated signals and random noise, henceforth collectively termed multipath, we introduced varying degrees of erroneous detections by offsetting correct time of arrival by random values corresponding to −100 to 100 meters assuming v = 1435 m*s−1. Six different probabilities of multipath (p(MP)) from 0.00 to 0.05 in increments of 0.01 were used. All 200 tracks were iteratively subjected to each combination of p(NA) and p(MP) five times and subsequently used as input to YAPS for estimating the simulated track. For comparison, all tracks and iterations were also positioned using a standard TDOA model with Gaussian distributed noise. Thus, each simulated track was iteratively estimated 9*6*5 = 270 times using each model.

In each model iteration a number of performance metrics were calculated for comparison of YAPS and the TDOA model: 1) relative number of estimated positions in each model run was determined. By definition, YAPS estimates a position for each transmission, whereas the TDOA model only estimates a 2D position if number of detecting hydrophones is three or more; 2) mean Euclidian distance between true and estimated positions; 3) relative deviation of estimated track length from true track length calculated as (length(estimated) – length(true))/length(true) * 100%. Additionally, the spatial component in position estimation error for both models was evaluated using Euclidian distance from estimated to true positions for full versions of all 200 simulated tracks (i.e. before introducing reduced detection probability (p(NA) = 0) and multipath (p(MP) = 0). Comparison with commercially available software was not possible.

### Applying YAPS to a known track

To further illustrate the utility of YAPS and to evaluate model performance under real study conditions, we applied YAPS to data from a setup in a Norwegian river covering a river stretch approximately 80 m wide and 400 m long. Twenty-seven hydrophones (Lotek 200 kHz WHS 3050, Lotek Wireless Inc., Newmarket, Ontario, Canada) were mounted to wall fixes (distance to surface 1.0 m) where applicable and otherwise mounted to iron poles erected from cross-like structures placed on the bottom (distance to surface range 0.7 m–3.1 m) and kept in place by heavy weights. Transmitters attached to a line (approximately one meter from surface) held vertical by weights were moved through the study site using a small inflatable row boat and true trajectory was established using a high precision differential gps-unit (logging frequency 1 Hz; Trimble Geo 7x cm edition running with the Norwegian Mapping Authority CPOS service) mounted above the transmitters (complete track is provided in results section). Median speed of the boat was 0.31 m * s−1. The study site was partly bounded by concrete walls, steel sluice gates, bedrock and large boulders, thus echoing, noise and multipath propagation was present. A miniature transmitter (Lotek, 200 kHz, model M-626, 7.5 × 17 mm, mass in air 1.0 g) with burst interval of approximately 2.01 seconds was used. Track duration within range of the hydrophone array was 108 minutes yielding 3244 transmissions. Obtained data were processed by the YAPS model, the TDOA model and the vendor provided software U-MAP (version 1.3.3, Lotek Wireless Inc., Newmarket, Ontario, Canada). U-MAP runs algorithms using the TDOA-principle, and may report twin positions in cases where the equations have two solutions. Depending on array configuration and quality of input data (e.g. amount of multipath propagated signals), TDOA models are prone to produce extreme outliers clearly outside the study area. These were filtered from the TDOA and U-MAP estimated tracks using distance to nearest hydrophone >500 m as criteria for removal. Optimization of post-processing routines was not the goal of this study, and no further filtering of TDOA or U-MAP estimated positions was applied. As the multipath induced temporal offset in the simulation study was limited to correspond to 100 m or less, the simulation study was not prone to such extreme outliers. Quality of estimated tracks was quantified by number of estimated positions and by calculating Euclidian distances from estimated positions to temporally closest true positions from the DGPS trajectory. To further test and demonstrate the utility of YAPS, we sub-sampled the data obtained from the described tow track to simulate a hydrophone array consisting of only eight hydrophones and applied YAPS on this data set.

All simulations and analyses (excluding U-MAP which is standalone software) were performed in R version 3.3.218.

### Data Availability

Code and example data to run the YAPS model are available in the open github repository (https://github.com/baktoft/yaps_sciRep). Code to subsample the tow track, the hydrophone array and to simulate increased probability of missing detections are also provided.

## Results

### Simulation study

YAPS generally performed better than the TDOA model on all metrics. Additionally, performance of YAPS was less variable than performance of TDOA model, especially at increased p(NA) and p(MP).

#### Number of estimated positions

Whereas numbers of estimated positions from YAPS were fixed by number of transmissions in input data, number of estimated positions from TDOA model decreased as expected when p(NA) increased (Fig. 1).

#### Mean deviation from true to estimated positions

Mean deviation from true to estimated positions increased in both YAPS and TDOA models as simulated p(NA) and p(MP) increased (Fig. 2). Best performance was achieved at optimal conditions (i.e. p(NA) = 0 and p(MP) = 0) under which mean deviation was 0.4 m for YAPS and 0.7 m for TDOA. Mean deviation increased to a maximum of 2.3 m for YAPS and 4.0 m for TDOA as p(NA) increased to 0.8. Fixating p(NA) = 0 and increasing p(MP) to 0.05 resulted in mean deviation of 0.4 m for YAPS and 8.5 m for TDOA. At the worst case scenario included in the simulation study (i.e. p(NA) = 0.8 and p(MP) = 0.05) mean deviation from true to estimated positions were 2.8 m for YAPS and 17.5 m for TDOA.

#### Relative error in track length estimation

Deviation of estimated track length relative to true track length varied for both YAPS and TDOA models as p(NA) and p(MP) increased (Fig. 3). Both models performed best under optimal conditions (YAPS: −1.8% TDOA: 4.1%; positive and negative mean values indicate over- and under-estimation of track length, respectively). At increasing levels of p(NA) underestimation of track length from YAPS increased monotonically to maximum −43.0% as p(NA) = 0.8. Contrastingly, the TDOA model increased overestimation to maximum 59.5% at p(NA) = 0.5 followed by shift to underestimation of maximum −72.8% at p(NA) = 0.8. A slight rise in p(MP) to 0.01 resulted in 185.45% overestimation of track length in TDOA at p(NA) = 0, whereas track length estimated by YAPS remained relatively constant at −2.0%. At maximum simulated p(MP) = 0.05 mean overestimation by TDOA was 549.3% at p(NA) = 0; corresponding value for YAPS was −2.6%.

#### Spatial component of estimation error

Performance variation in both YAPS and TDOA models included a spatial component with highest performance near the array centre (Fig. 4). Whereas YAPS performed relatively uniform inside the entire hydrophone array, performance of the TDOA model was more spatially variable both inside and outside the array. In locations outside the hydrophone array performance of the TDOA model decreased considerably more than YAPS.

### Applying YAPS to a known track

Tracks estimated by YAPS, the TDOA model and U-MAP are shown in Fig. 5. Overall, all three positioning models revealed the major components of the true track, but the amount and severity of estimated erroneous positions clearly varied between models. As per model definition, number of estimated positions from YAPS was identical to number of transmissions in the input data (i.e. 3244) whereas TDOA model yielded 2892 (89%) positions (total number was 3017, but 125 was filtered out as gross outliers). Interestingly, number of positions estimated by U-MAP (2583 (80%)) was substantially lower than by TDOA model. Included in these were 39 twin position solutions (1.5% of the estimated positions). For the majority of the estimated track, YAPS corresponded closely to true track. Excluding instances where the transmitter was more than 50 m outside the array (only start and end of track) more than 87% of estimated positions were within 0.5 m of true position and more than 97% were within 1 m. For the TDOA model corresponding percentiles were 23% within 0.5 m and 49% within 1 m and for U-MAP 72% within 0.5 m and 82% within 1 m. YAPS performance was lowered in positions well outside the hydrophone array (i.e. the south-east corner), but still reflected the track well. Additionally, the area in front of the hydro power intake on the northern shore proved challenging for both the TDOA model and U-MAP, whereas YAPS performed well. The western end and the intake area were both bounded by steel gates and/or concrete walls, which undoubtedly induced a relatively large amount of echoing and multipath propagation. Computation time for YAPS was 28 minutes on a laptop with 16 GB RAM and an Intel Core i7-5600 processor (Intel, Santa Clara, California, USA) at 2.60 GHz.

Results from sub-sampling the tow-track to simulate an eight-hydrophone array and applying YAPS on these data are shown in Fig. 6. Mean number of hydrophones detecting each transmission was 2.5 and percentage of transmissions detected by three or more hydrophones was 49%. As defined by the model, number of estimated positions was identical to number of transmission in the input data (i.e. 3244). The track estimated by YAPS resembled the true track well as more than 50% of estimated positions were within 0.5 m of true position and more than 80% were within 1 m.

## Discussion

In this study, we have demonstrated and tested the application of the newly developed YAPS model to estimate movement trajectories of aquatic animals equipped with acoustic transmitters monitored by fixed position hydrophone arrays. The simulation study and application to a known track obtained under field conditions demonstrated YAPS as a suitable tool to estimate such movement trajectories. Performance of YAPS was superior to a standard TDOA model and also better than the vendor supplied software U-MAP. Performance by U-MAP was considerably better than the TDOA model although number of estimated positions was lower. This, and the fact that U-MAP occasionally uses less than the available number of detections for position estimation in an over determined system, indicate that U-MAP employs more than a simple TDOA model to improve quality of output data.

The power of YAPS originates from the (to our knowledge) unique unified approach of applying a combination of a state space model describing animal movement and a positioning model directly to TOA data. By doing this, the animal movement model is constraining the probability space of estimated positions to biologically plausible (under the movement model) outcomes. Combined with the Gaussian and t mixture distribution for model residuals, this effectively accommodates TOA data suffering from multipath propagation, which otherwise can be detrimental for data quality. Additionally, TOA-based positioning as employed in YAPS has benefits over position estimation based on TDOA. For instance, from theory it is known that TOA based estimation is less affected by hydrophone array configuration17. Furthermore, as evidenced by the simulation study and the sub-sampled data set simulating an eight-hydrophone array, TOA based position estimation and the combination of an animal movement model and a positioning model enables position estimation for transmissions where number of hydrophones detecting the transmission is less than three, albeit with increased uncertainty of the estimate. YAPS is therefore able to utilize information otherwise lost when using the TDOA approach. It should be noted that YAPS needs a certain minimum amount of data to function properly, but rigorous tests of this lower threshold is outside the scope of the present study. However, preliminary trials performed using subsets of the tow track presented here, indicate that data sets consisting of ten or more consecutive signal transmissions detected on average on 1.9 hydrophones can be enough to obtained good results.

The unified multilevel modelling in YAPS contrasts alternative data processing pathways (Fig. 7), which, in a step-wise approach apply filtering and/or smoothing models to improve data quality (e.g. biological filters typically based on swimming speed or vendor provided position quality metrics) to positions previously estimated using vendor supplied software comparable to U-MAP (e.g.2,13,22).

We consider the YAPS model presented here as a solid base that can be adapted and extended for further improvement and to meet study specific needs. For instance, a third component to the random walk model describing animal movements can easily be added to facilitate acoustic based tracking of tagged animals in three dimensions.

A previous study found that positioning based on random walk models work well even in situations, where the animals being tracked behave according to other movement models such as piecewise constant velocity and Levy flight22,23. Additionally, the fact that YAPS performed well in estimating the tow track (which did not perform a random walk), indicates that YAPS is robust in estimating tracks arisen from other movement models. Nevertheless, the movement model component of YAPS can be extended to more complex models such as correlated random walk models or the Ornstein-Uhlenbeck process which previously have been used to estimate animal movement trajectories24,25. Depending on vendor, acoustic transmitters might be designed to transmit at irregular time intervals. At present the YAPS model is capable of positioning such tags, but the performance in comparison to alternative solutions has not been thoroughly assessed and is beyond the scope of the present study.

The improvement in attainable quality of aquatic animal tracking represented by YAPS was made possible by the fact that the hardware manufacturer (Lotek Wireless Inc.) enabled researchers to extract high resolution raw data from the hydrophones (i.e. TOA data). We advocate that such possibility to access raw data should be de facto standard from all manufacturers providing telemetry hardware to the scientific community.

## References

1. 1.

Juell, J.-E. & Westerberg, H. An ultrasonic telemetric system for automatic positioning of individual fish used to track Atlantic salmon (Salmo salar L.) in a sea cage. Aquac. Eng. 12, 1–18 (1993).

2. 2.

Niezgoda, G., Benfield, M., Sisak, M. & Anson, P. Tracking acoustic transmitters by code division multiple access (CDMA)-based telemetry. Hydrobiologia 483, 275–286 (2002).

3. 3.

Hawkins, A. D., MacLennan, D. N., Urquhart, G. G. & Robb, C. Tracking cod Gadus morhua L. in a Scottish sea loch. J. Fish Biol. 6, 225–236 (1974).

4. 4.

Baktoft, H. et al. Performance Assessment of Two Whole-Lake Acoustic Positional Telemetry Systems - Is Reality Mining of Free-Ranging Aquatic Animals Technologically Possible? PLoS One 10, e0126534 (2015).

5. 5.

Deng, Z. D. et al. A cabled acoustic telemetry system for detecting and tracking juvenile salmon: Part 2. three-dimensional tracking and passage outcomes. Sensors 11, 5661–5676 (2011).

6. 6.

Biesinger, Z. et al. Testing an autonomous acoustic telemetry positioning system for fine-scale space use in marine animals. J. Exp. Mar. Bio. Ecol. 448, 46–56 (2013).

7. 7.

Espinoza, M., Farrugia, T. J., Webber, D. M., Smith, F. & Lowe, C. G. Testing a new acoustic telemetry technique to quantify long-term, fine-scale movements of aquatic animals. Fish. Res. 108, 364–371 (2011).

8. 8.

Cooke, S. J. et al. Use of CDMA Acoustic Telemetry to Document 3-D Positions of Fish: Relevance to the Design and Monitoring of Aquatic Protected Areas. Mar. Technol. Soc. J. 39, 17–27 (2005).

9. 9.

Hanson, K. C., Hasler, C. T., Cooke, S. J., Suski, C. D. & Philipp, D. P. Intersexual variation in the seasonal behaviour and depth distribution of a freshwater temperate fish, the largemouth bass. Canadian Journal of Zoology 86, 801–811 (2008).

10. 10.

Baktoft, H. et al. Seasonal and diel effects on the activity of northern pike studied by high-resolution positional telemetry. Ecol. Freshw. Fish 21, 386–394 (2012).

11. 11.

Baktoft, H. et al. Phenotypic variation in metabolism and morphology correlating with animal swimming activity in the wild: relevance for the OCLTT (oxygen- and capacity-limitation of thermal tolerance), allocation and performance models. Conserv. Physiol. 4, 1–14 (2016).

12. 12.

Nakayama, S., Laskowski, K. L., Klefoth, T. & Arlinghaus, R. Between- and within-individual variation in activity increases with water temperature in wild perch. Behav. Ecol. 27, 1676–1683 (2016).

13. 13.

Meckley, T. D., Holbrook, C. M., Wagner, M. & Binder, T. R. An approach for filtering hyperbolically positioned underwater acoustic telemetry data with position precision estimates. Anim. Biotelemetry 2, 7 (2014).

14. 14.

Patterson, T. A., Thomas, L., Wilcox, C., Ovaskainen, O. & Matthiopoulos, J. State-space models of individual animal movement. Trends Ecol. Evol. 23, 87–94 (2008).

15. 15.

Smith, F. Understanding HPE in the VEMCO Positioning System (VPS). 1–31 (2013). Available at: http://vemco.com/wp-content/uploads/2013/09/understanding-hpe-vps.pdf. (Accessed: 5th April 2017).

16. 16.

Li, X. et al. A 3D approximate maximum likelihood solver for localization of fish implanted with acoustic transmitters. Sci. Rep. 4, 1–9 (2014).

17. 17.

Li, X., Deng, Z. D., Rauchenstein, L. T. & Carlson, T. J. Contributed Review: Source-localization algorithms and applications using time of arrival and time difference of arrival measurements. Rev. Sci. Instrum. 87, 1–12 (2016).

18. 18.

R Core Team. R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. http://www.R-project.org/. (2016).

19. 19.

Kristensen, K., Nielsen, A., Berg, C. W., Skaug, H. & Bell, B. TMB: Automatic Differentiation and Laplace Approximation. J. Stat. Softw. 70, 1–21 (2016).

20. 20.

Durbin, J. & Koopman, S. J. Time Series Analysis by State Space Methods (Oxford Statistical Science Series). (Oxford University Press, 2012).

21. 21.

Okubo, A. & Levin, S. A. Diffusion and Ecological Problems: Modern Perspectives. (Springer-Verlag, 2001). https://doi.org/10.1007/978-1-4757-4978-6

22. 22.

Hanson, K. C. et al. Assessment of largemouth bass (Micropterus salmoides) behaviour and activity at multiple spatial and temporal scales utilizing a whole-lake telemetry array. Hydrobiologia 582, 243–256 (2007).

23. 23.

Thygesen, U. H. & Nielsen, A. Lessons from a protoype geolocation problem. In Tagging and Tracking of Marine Animals with Electronic devices (eds Nielsen, J. L. et al.) 257–276 (Springer Netherlands, 2009).

24. 24.

Albertsen, C. M., Whoriskey, K., Yurkowski, D., Nielsen, A. & Flemming, J. M. Fast fitting of non-Gaussian state-space models to animal movement data via Template Model Builder. Ecology 96, 2598–2604 (2015).

25. 25.

Pedersen, M. W. & Weng, K. C. Estimating individual animal movement from observation networks. Methods Ecol. Evol. 4, 920–929 (2013).

## Acknowledgements

We want to thank Torbjørn Forseth for his efforts to get this project funded, as well as Bjørgulv Foss, Torgeir Havn and Jan Gunnar Jensås for assistance in the field. The project was jointly funded by the Research Council of Norway (RCN) and a constellation of power companies in the RCN-projects SAFEPASS (ENERGIX program project no. 244022) and CEDREN (project no. 226278), as well as internal funds from the Norwegian Institute for Nature Research and the Danish Rod and Net Fish License Funds.

## Author information

Authors

### Contributions

H.B., U.H.T., K.Ø.G. and F.Ø. conceived the ideas and designed methodology; F.Ø., H.B. and K.Ø.G. collected the data; H.B. and K.Ø.G. analysed the data; U.H.T. and H.B. led model development and implementation; H.B. and U.H.T. led the writing of the manuscript. All authors contributed to the manuscript and gave final approval for publication.

### Corresponding author

Correspondence to Henrik Baktoft.

## Ethics declarations

### Competing Interests

The authors declare that they have no competing interests.

Publisher's note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Rights and permissions

Reprints and Permissions

Baktoft, H., Gjelland, K.Ø., Økland, F. et al. Positioning of aquatic animals based on time-of-arrival and random walk models using YAPS (Yet Another Positioning Solver). Sci Rep 7, 14294 (2017). https://doi.org/10.1038/s41598-017-14278-z

• Accepted:

• Published:

• ### Acoustic positioning in a reflective environment: going beyond point-by-point algorithms

• Jenna Vergeynst
• , Thomas Vanwyck
• , Raf Baeyens
• , Tom De Mulder
• , Ingmar Nopens
• , Ans Mouton
•  & Ine Pauwels

Animal Biotelemetry (2020)

• ### Living until proven dead: addressing mortality in acoustic telemetry research

• Natalie V. Klinard
•  & Jordan K. Matley

Reviews in Fish Biology and Fisheries (2020)

• ### The old and the new: evaluating performance of acoustic telemetry systems in tracking migrating Atlantic salmon (Salmo salar) smolt and European eel (Anguilla anguilla) around hydropower facilities

• Johan Leander
• , Jonatan Klaminder
• , Micael Jonsson
• , Tomas Brodin
• , Kjell Leonardsson
•  & Gustav Hellström

Canadian Journal of Fisheries and Aquatic Sciences (2020)

• ### Movement-assisted localization from acoustic telemetry data

• Nathan J. Hostetter
•  & J. Andrew Royle

Movement Ecology (2020)

• ### The influence of system settings on positioning accuracy in acoustic telemetry, using the YAPS algorithm

• Jenna Vergeynst
• , Henrik Baktoft
• , Ans Mouton
• , Tom De Mulder
• , Ingmar Nopens
•  & Ine Pauwels

Animal Biotelemetry (2020)