Abstract
In order to survive, animals must quickly and accurately locate prey, predators, and conspecifics using the signals they generate. The signal source location can be estimated using multiple detectors and the inverse relationship between the received signal intensity (RSI) and the distance, but difficulty of the source localization increases if there is an additional dependence on the orientation of a signal source. In such cases, the signal source could be approximated as an ideal dipole for simplification. Based on a theoretical model, the RSI can be directly predicted from a known dipole location; but estimating a dipole location from RSIs has no direct analytical solution. Here, we propose an efficient solution to the dipole localization problem by using a lookup table (LUT) to store RSIs predicted by our theoretically derived dipole model at many possible dipole positions and orientations. For a given set of RSIs measured at multiple detectors, our algorithm found a dipole location having the closest matching normalized RSIs from the LUT, and further refined the location at higher resolution. Studying the natural behavior of weakly electric fish (WEF) requires efficiently computing their location and the temporal pattern of their electric signals over extended periods. Our dipole localization method was successfully applied to track single or multiple freely swimming WEF in shallow water in real-time, as each fish could be closely approximated by an ideal current dipole in two dimensions. Our optimized search algorithm found the animal’s positions, orientations, and tail-bending angles quickly and accurately under various conditions, without the need for calibrating individual-specific parameters. Our dipole localization method is directly applicable to studying the role of active sensing during spatial navigation, or social interactions between multiple WEF. Furthermore, our method could be extended to other application areas involving dipole source localization.
Introduction
Animals must accurately locate signal sources of various kinds [1]–[5], since this allows animals to quickly respond to prey, predators, or potential mate signals that are very important for their survival. Mechanisms of signal localization depend on particular signal types, but in general, signals attenuate over distance; therefore the intensity information can be useful in signal localization. In fact, many biological and non-biological systems can determine signal locations on the basis of comparing received signal intensities (RSI) from two or more spatially distributed sensors [2], [6]–[8]. The signal localization task becomes more complex if the RSI depends additionally on the orientation of the signal source, such as the signals dependent on the orientation of an electric fish dipole. A current dipole consists of two physically separated current sources having opposite polarities, which creates spatially non-uniform field strength as a function of distance and orientation. A dipole source can be approximated as an ideal dipole if the separation between the positive and negative sources is much smaller than the distance between the source and the detector [9]. Animals transmit or receive dipole-like signals in the form of sound [2], [3], vibration [4], [10], and electricity [1], [11]. For example, weakly electric fish species can locate other member of species using the electric field they generate [12]–[16].
It is necessary to track free-moving weakly electric fish (WEF) to study their electrolocation or social behaviors under naturalistic conditions. Visual tracking is widely employed for studying animal behaviors, and a typical setup requires an appropriate illumination and a background to produce high contrast images. Animal tracking can be automated by a computer vision algorithm [17]–[24], but visual tracking algorithms become less reliable in visually complex scenes [7], [25]. Animals’ naturalistic habitats often contain objects or other animals, which can cast shadows, obstruct, or confuse the identity of the animal being tracked. Use of visual markers [17], [18], [19] or electronic tags [7], [25]–[27] can improve the tracking reliability during animals’ interaction with objects or with other animals. In particular, electrical tracking methods do not require a direct line of sight, thus the tracking remains reliable while animals are obstructed from view. Here we propose a method of locating current dipole sources in order to track multiple freely swimming electric fish in an environment with objects and/or other electric fish.
WEF are mostly nocturnal and often found in turbid water, thus their visual sensing range is limited in their natural habitat. Instead, they generate an electric field using one or more electric organs in order to perceive their immediate sensory surroundings [6], [13], [28]–[31], or to communicate between individuals [1], [12], [32]–[37]. The geometry of the fish electric field is dipole-like since the rostral and caudal parts of the electric organs generate current flows in opposite directions [38]–[40], and they closely approximate an ideal dipole model at a distance scale greater than fish’s body length [9]. The waveform of the electric organ discharge (EOD) is either continuous or pulsatile depending on the species, and the extent of the electric organ is either concentrated or dispersed along the rostro-caudal axis [41]. In the Gymnotid species we study [28], [42]–[44], the EOD pulses are 1–2 milliseconds in duration, and multiple components of the electric organ activate at different pulse phases to create a complex spatiotemporal pattern [39], [40]. When two or more fish are nearby, they discharge so as to actively avoid the collision of their pulses, thus minimizing signal interference between individuals [45]–[47]. Although the localization of dipole sources is complicated by the presence of multiple current sources distributed along the body, and occasional signal interference between animals, it is possible to solve the dipole localization problem by optimizing the EOD pulse measurement and by using the ideal dipole model.
In this paper, we propose a dipole localization method based on the lookup table (LUT) operation, which compares actual received signal intensities from multiple recording channels with theoretically predicted signal intensities at many possible dipole locations. Our LUT search algorithm was computationally optimized for real-time tracking of a freely swimming WEF in a shallow tank to determine its position, orientation, and body-bending angle. In addition, our tracking system reliably dissociated the trajectories of fish dyads and their EOD pulses. Our dipole tracking system could be useful for field studies where long-term visual observation is difficult [48], [49]; or it could be used in conjunction with visual tracking to study social interactions in a visually complex environment. Our unique approach to the inverse problem using an ideal dipole model could also be applicable to other dipole localization problems of such as sound or vibration source localizations.
Methods
Overview
We measured the EOD pulse amplitudes at multiple locations with respect to multiple fixed detectors in shallow water (Fig. 1A), and fitted them with an ideal dipole model by varying the position and orientation parameters. The instantaneous slopes at a particular EOD pulse phase were measured from all channels of the detector pairs when the current flow was concentrated near the center of the fish’s body [39]. The RSIs were more accurately measured with the instantaneous slopes than the peak-to-peak amplitudes, because the slope measurements were taken nearly instantaneously (120 µsec) and concurrently from all channels in a phase-locked manner. Due to the brief measurement duration, the slope measurement was less susceptible to the signal interferences between WEFs, and it agreed with the ideal dipole model more closely due to a closer physical separation between the current sources when the measurements were taken. The slope measurements were made relative to the pulse timing reference, which was defined at the peak of the global pulse envelope (Fig. 1B). The pulse envelope measures the total power received by all recording channels, and was calculated by first summing all channels after rectification (blue trace in Fig. 1B), then smoothing to have a unimodal shape with only a single peak (red trace in Fig. 1B) [50]. The measured RSI values were compared with the theoretical values computed by the two-dimensional ideal dipole model (Fig. 1C) at many possible dipole locations, and the closest matching location was found by our search algorithm (Fig. 1D). Although it is possible to observe similar normalized RSIs from two different dipole locations, our use of eight recording channels made this highly unlikely. Our dipole search algorithm initially estimated a location in coarse grids using pre-computed values, and it subsequently searched in finer grids around the initial estimate. This two-step search procedure quickly found a dipole location without compromising spatial or angular resolutions. We achieved a further speed increase (∼1000 localizations/sec) after applying a series of optimization techniques.
Experimental Setup
All experiments described in this paper were approved by the University of Ottawa Animal Care Committee (protocol number: CMM-143). The animal experiments were conducted in a shallow, circular tank (1.5 m diameter, 10±2 cm water depth), which was surrounded by an enclosure to block external sources of light and electrical noise. We obtained South American pulse-type weakly electric fish Gymnotus sp. [28], [42], [51] (species and gender unknown) from a local supplier, and conditioned the aquarium water similarly to their natural habitat (100±20 µS/cm, pH 7±1, and 25±1°C) using a stock salt solution [2] and a floor heater (ThermoTile; ThermoSoft, Buffalo Grove, IL). Animals were active in darkness, thus visual observations were made under near-infrared illumination (850 nm, S8100-60-B/C-IR; Scene Electronics) by a near-infrared sensitive camera (15 frames/sec, 640×480, C910 Logitech, infrared filter removed). The electric organ discharge (EOD) signals were recorded from eight or sixteen vertical graphite electrodes attached on the aquarium wall, and the graphite rods (6 in. long, Mars carbon 2-mm type HB; Staedtler) were coupled to BNC cables (RG54) via heat shrinks. The BNC shielding wires and a signal ground were connected to the Faraday cage which enclosed the whole aquarium (Fig. 1A). Raw signals from the four or eight electrodes pairs were differentially amplified and filtered (200×, 200 Hz ∼ 2.5 KHz, Intronix 2015F; Bolton, Ontario, Canada) to cancel the common-mode noise, and digitized (40 KS/s per channel at 16 bit, CED 1401 mkII; Cambridge Electronic Design, Cambridge, UK). The video recordings were synchronized to the EOD recordings using infrared light pulses (1 msec duration and 10 sec interval), and captured by Spike2 video recorder software (Cambridge Electronic Design, Cambridge, UK).
EOD Pulse Measurements
We measured the received signal intensities (RSIs) from the recording channels using the slope of the EOD waveform at particular pulse phases, since the slope is proportional to the RSI. We initially used the peak-to-peak amplitudes to measure the RSI, but the measurements deviated from the ideal dipole model due to distortion of the pulse waveform during active body movements, and the ambiguity of determining the waveform polarity. In order to accurately determine the RSIs from all recording channels, the slope measurements from all channels took place synchronously at a fixed time delay from the pulse timing reference, which was defined at the peak of the envelope waveform (Fig. 1B). The envelope waveform (red trace in Fig. 1B) was extracted using a root-mean-square (RMS) filter, (τ = 250 µsec) from the summation of all channels after the rectification (blue trace in Fig. 1B) to prevent signal cancellation. The envelope waveform provided reliable and precise pulse timing reference [50], [52]. In the species we studied, the EOD pulses are initiated near the rostral region and subsequently propagated to the caudal region [39], [53]. By using this knowledge, we found the optimal measurement timing when the electric organ (EO) activation was concentrated at the center of the body (225 µsec before the reference timing), which is the location tracked by a typical visual tracking algorithm. We also found another useful measurement timing when the EO activation was concentrated near the tail location (225 µsec after the reference timing), as this enabled us to deduce the tail-bending angles by comparing the measurements at the central and the tail regions. The instantaneous slopes were measured within a brief time window using five ADC samples (125 µsec duration at 40 KS/s) in order to minimize the probability of the EOD pulses overlapping between different individuals. The slope measurements were performed in Spike2 (Cambridge Electronic Design, Cambridge, UK), and the results were exported to Matlab. A Spike2 script, a sample dataset, and an instruction manual are available in the (Data S1).
Two-dimensional Ideal Dipole Model
Our experimental data were modeled by considering that the WEF is an ideal dipole in a two-dimensional (2D) space, because 1) fish swam in a shallow body of water, and 2) the measurements were taken by vertically oriented electrodes across the full depth of the water column, which amounts to averaging measurements across depth. The dipole in our model consists of a pair of positive and negative current sources separated by the distance d (Fig. 1C). According to Gauss’ law, the potential at a field location due to such a horizontal dipole is (see Text S1):
(1) |
where is the distance between the positive source to the field location, and is the distance between the negative source to the field location. c is the constant of proportionality which we determined from the three-dimensional boundary condition (see Text S1). In the limit of , Eq (1) can be approximated as:
(2) |
where is the angle between the vectors and . See Text S1 for the detailed derivation of the two-dimensional ideal dipole formula. Although we assumed a simple two-dimensional space without boundaries, Eq (2) closely approximates a more realistic three-dimensional ideal dipole potential computed for a shallow, circular body of water with boundary effects (see Text S1). The top interface between the air and the water, and the bottom interface between the water and the glass contain surface charges induced by the ideal current dipole. The method of image charges can simplify our analysis of the two parallel dielectric interfaces by replacing the surface charges with an infinite number of image current sources (Fig. S1A) [54], [55]. Although the two parallel surfaces generate infinite number of reflections [56], the net potential converges since each successive reflection produces a weaker image current source at a further location (Fig. S1B) [57]. Furthermore, the method of image charges can be extended to determine the potential due to an image dipole. See Text S1 for the detailed description of the three-dimensional ideal dipole potential computed for a shallow, circular body of water.
Near field effect correction
The 2D ideal dipole formula did not accurately predict the experimental data when fish were too close to the electrode, where the ideal dipole assumption () does not hold. However, animals spent a lot of their time near the wall, and this created non-ideality at the near-field location. The electric field nearest to the fish was distorted by its skin conductance, and a channel became saturated when fish made a direct contact to one of the electrodes. In order to ensure accurate predictions by the 2D ideal dipole model, we excluded a channel from being used for our dipole localization procedure when the fish approached one of its electrode pair closer than a set threshold (13 cm).
Side boundary effect
A current dipole also induces a surface charge at the interface between the water and the tank wall. The method of image charges can be similarly applied to simplify our analysis by replacing the induced surface charge with a pair of image sources, or an image dipole (Fig. S2C). The circular side boundary forms an image dipole outside of the circular region, and we determined the effect of the side boundary on the voltage difference between a pair of electrodes (). is the quantity we measured to estimate the RSI, and it is the sum of contributions from the dipole () and the image dipole (): . It can be shown that the potential due to the image dipole () is proportional to the potential due to the dipole () for any dipole location within the circular region (see Text S1) [55]:
(3) |
where is the permittivity of water, is the permittivity of a plastic wall. Thus, the differential voltage can be simplified to:
(4) |
where is a constant factor, is the vector from the dipole location to the positive electrode, and is the angle between the vectors and . and are similarly defined for the negative electrode. In summary, the presence of the circular boundary simply rescales the differential voltage between a pair of electrodes. This scaling effect of the circular boundary does not affect the performance of our dipole localization algorithm, since it uses relative signal intensities between the recording channels.
Verification of the 2D Ideal Dipole Model with WEF Measurements
In order to experimentally verify our 2D ideal dipole model predictions, we compared the values predicted by the model with differential voltage measurements from a restrained WEF. One fish (23 cm long) was held in a floating platform [50] and positioned 5 cm below water, and the location and orientation of the platform was controlled using a guiding wire installed across the circular wall. We took measurements from four pairs of electrodes with 180° pairing angle at each 5 cm step of translating the animal along the guiding wire from −55 cm to 55 cm, and 15° step of rotating the animal with respect to the guiding wire from 0° to 180°. The position and the orientation of the fish were used to predict the RSI values using the 2D ideal dipole model, and the predicted RSI values were compared against the measured RSI values.
Our 2D ideal dipole model accurately predicted the measured RSI from the position and orientation of the restrained animal. There was a tight correlation (ρcorr = 0.9983, n = 1196) and a closely linear relationship (R2 = 0.9966) between the predicted vs. measured RSI (Fig. 2A). The scaling factor was determined by estimating a linear fit to the data. The RSI error was defined as a difference between the observed and the predicted RSI values, and normalized to the SD of the measurement (2706 V/sec). The normalized absolute errors were 0.045±0.038 (mean ± SD), and most of the errors fell within a narrow range (95% of errors less than 0.1) (Fig. 2B). The RSI errors increased when an animal was near the wall (Fig. 2C). The center of the body was always used to measure the distance to the boundary. The greater errors near the boundary were expected from the near field effect, and from the distortion caused by the fish’s skin conductivity. As shown in Figure 2D, the maximum RSI range (3.25±0.25) had the greatest error, which typically occurred when the fish’s head or tail were closest to one of the recording electrodes. In summary, the RSI predicted by the 2D ideal dipole model closely agreed with the actual physiological measurements from WEF at most locations.
Determining Optimal Electrode Configuration by Simulation
We simulated four types of electrode configurations and compared their dipole localization performances in the presence of simulated measurement noise. The four electrode configurations we tested varied in the number of channels, the pairing angle, and the geometric layout of the electrodes (see Fig. 3A). The three configurations had a circular geometry (1.5 m in diameter) similar to our experimental tank, and one configuration had a square grid layout (2 m in length, 0.5 m grid spacing) similar to the setup used by Henninger et al. [49]. In our simulation, a dipole location and orientation were randomly assigned at 10 million points, and the RSIs were computed at the recording dipoles according to the 2D ideal dipole model for each electrode configuration. We then simulated the measurement noise by adding random Gaussian noise to the computed RSIs, and provided these values to the dipole localization algorithm. In order to test the effect of noise on the localization accuracy, we varied the noise intensity on a logarithmic scale and normalized the noise intensity to the median of all RSI values across the randomly chosen sampling points. The localization accuracy was quantified by comparing the algorithm-inferred dipole locations with the actual assigned locations.
The localization accuracy was significantly improved when the number of channels doubled from four (4P90) to eight (8P67.5) as expected from the higher signal-to-noise ratio (SNR) (Fig. 3B). While using only four channels, changing the pairing angle alone from 180° to 90° significantly improved the accuracy (Fig. 3B). Our algorithm also performed accurately for the square grid configuration (8Pgrid), which is suitable for field deployment due to the extendable grid layout [49]. Based on our simulations, we implemented the eight-channel configuration (8P67.5) for our circular tank using 16 equally spaced perpendicular electrodes. In comparison, the average noise intensity of our actual measurement system was 0.47% of the SD of measured RSI values (averaged across the tank using all locations visited by fish), and the SNR was 46.5 dB.
Dipole Localization Algorithm Based on LUT Search
We developed an algorithm to deduce the position and orientation of a dipole from a given set of multi-electrode measurements using the 2D ideal dipole model. The measured values were compared with a list of predicted values at many possible locations and orientations of a dipole. The predicted voltages computed by the 2D ideal dipole model were stored in a look-up table (LUT), along with the dipole locations used to compute the predicted voltages. The LUT was constructed once and reused multiple times to increase the search speed. In order to cancel out the constant factor difference between the measured and the predicted RSI values, the RSI measurements from each channel were normalized by the sum of all channels. Thus the LUT stored normalized vectors containing the predicted RSIs at multiple channels. A dipole location was estimated from a given set of measurements by 1) searching for a predicted vector in the LUT having the smallest angle with the given measured vector (Fig. 1D), and 2) the dipole location corresponding to the closest matching vector was retrieved. The angle between the predicted and the measured vectors was determined from their dot product; hence the minimum angle corresponded to the maximum dot product between two unit vectors:
(5) |
where is the given measured vector, and is the normalized vector of . and are similarly defined for the predicted vectors in the LUT. is the angle between and . The dot products between the given measured vector and all predicted vectors in the LUT were efficiently computed using a matrix multiplication:
(6) |
where is the given measured vector, is the matrix containing the predicted vectors () in the LUT, and n is the number of entries in the LUT.
We tested various LUT search methods (Table 1) on the data measured from freely swimming WEF (n = 11,593). The dot-product based search was compared against the other widely used distance metrics between two vectors (Euclidean distance, city-block distance, etc.) in terms of the speed and accuracy. The dot product metric yielded the highest speed, while the tracking errors were similar between the different search methods tested.
Table 1. Comparison of the LUT search methods.
Search methods | speed | Position error (cm) | Orientation error (°) | ||||
(pulses/s) | mean | median | Q90 | mean | median | Q90 | |
Dot product | 1068 | 3.3 | 1.4 | 5.0 | 4.5 | 4.6 | 11.0 |
Cityblock dist. | 208 | 3.3 | 1.4 | 5.1 | 4.4 | 4.5 | 10.5 |
Euclidean dist. | 153 | 3.3 | 1.4 | 5.0 | 4.5 | 4.6 | 11.0 |
Chevychev dist. | 77.7 | 3.4 | 1.4 | 5.1 | 4.6 | 4.6 | 10.8 |
Correlation | 44.5 | 3.5 | 1.5 | 5.2 | 5.2 | 4.9 | 12.0 |
We compared the performances of the five pairwise vector distance metrics used for the LUT search (90%: 90th percentile).
Optimization of the Dipole Search Algorithm
In order to implement a practical dipole tracking system, we improved our initial dipole search algorithm up to ∼1000 localizations/sec (running on Intel i7-2720QM 2.2 GHz CPU) by applying a series of computational optimizations. The spatial resolution is determined by the size of a LUT, and increasing the spatial and angular resolutions required larger memory and longer search time. In order to increase the search speed without compromising the spatial resolution, we implemented a two-step search procedure. The first step quickly approximated a dipole location in coarse grids using the LUT, and then the second step found a more accurate dipole location by conducting a search around the initial estimate in finer grids. The coarse grid spacing was set to 2 cm and 4°, and the fine grid spacing was set to 0.5 cm and 1°. We doubled the density of the coarse grid spacing near the wall (within 10 cm) in order to improve the localization accuracy near the boundary. The computational results from previous fine grid searches were stored up to 16 previous histories, and the stored results were reused when the coarse grid search returned the same coordinates as previously encountered. Both the positive and negative dot product ranges were used in order to simultaneously search the parallel and anti-parallel dipole orientations. Our dipole algorithm searched only the locations within the circular boundary, and excluded the cases when the head or tail ends lay outside of the boundary. All numbers were computed in the single-precision format instead of the double-precision format to save the computational time and memory requirements, but without compromising the localization accuracy. The LUT entries were partitioned by their strongest channel indices (Fig. 4A), such that only a matching region (one eighth of the LUT size) had to be searched by using the channel number having the absolute maximum RSI as a filtering criterion. However in the actual implementation, the search also included a region in the LUT where a given channel index was the second strongest, in order to account for possible order reversals induced by noise.
Figure 4B shows cumulative improvements in the search speed after applying each optimization step. The two-step search procedure yielded the highest speed gain, which achieved high localization accuracy without sacrificing speed and memory usage. Our final, optimized search algorithm produced estimates at a rate 20 times the actual EOD pulse rate (∼50 Hz), thus became fast enough to track multiple electric fish in real-time. The LUT cache was built in 0.40±0.01 sec and occupied 30.2 MB of memory using the grid parameters settings described previously. In summary, our optimized dipole tracking algorithm met our practical needs after improving the search speed by a factor of hundred. For the demonstration purpose, an example Matlab code, a sample dataset, and an instruction manual are available in the (Data S1).
Single Fish and Fish Dyads Tracking
Our dipole localization algorithm was then applied to every EOD pulse measurement from a single or two individuals, and their resulting trajectories were filtered to be smoothed. In the case of single fish tracking, we first applied a median filter (nwin = 8 for position, nwin = 15 for orientation) to exclude occasional outliers resulting from excess noise, and applied a triangular filter (nwin = 15 for position, nwin = 30 for orientation) to smooth the traces. The orientation traces were unwrapped before applying a filter to prevent jump-associated artifacts. In the case of dyads tracking, we first separated the traces of two individuals before applying the filters. An EOD pulse was associated with an individual by using its previously identified location having the closest position and orientation. Occasionally, the EOD pulses from two individuals temporally overlapped and produced collided pulses; this resulted in a lower tracking accuracy, since the collided pulses poorly matched the RSIs predicted by the 2D ideal dipole model. Hence, the collided pulses were detected by using their dot-product values as an exclusion criterion, and values below 0.9 were removed from the tracked trajectory.
Visual Tracking Method
Our dipole tracking results were compared with automated visual tracking to quantify the accuracy of our dipole localization. We designed a visual tracking algorithm based on Windsor et al. [21]. Since fish appeared darker than the background, the background image was subtracted from the recorded images to obtain isolated images of the fish. Binary images were generated by applying an intensity threshold, and the largest blob was chosen after removing speckles by using an image dilation operation. The center of mass position and the orientation of the blob were found using the regionprop function provided by the Matlab image processing toolbox. The tail-bending angle was visually determined from the angle between two lines formed by three feature points at the head, the center of mass, and the tail. The head and the tail points were determined at the two end points of the midline, which was extracted from the blob using an image skeletonization function [58]. We determined a correct head orientation by manually assigning the head orientation for the first frame, and the head orientations for the subsequent frames were automatically determined using the previously determined values. The fish’s orientation returned by the regionprop function was compared with the corrected orientation from the previous frame, and the new orientation was flipped if the angular difference exceeded 90°. In the case of fish dyads tracking, we separately tracked each individual by initially defining a region of interest (ROI) around the fish being tracked, and the ROI locations were updated in subsequent frames by tracking the center of mass. The ROI served to exclude the other fish’s image when they were far apart. If the other fish’s image partly appeared in the ROI, it was automatically removed by detecting blobs touching the ROI boundary. In rare cases, the blobs of two fish merged when they made a direct contact, and we manually deleted the other fish’s image by drawing a polygon mask.
Quantification of the Dipole Tracking Accuracy
Our dipole localization accuracy was quantified by comparing the position and orientation of an estimated dipole location with the visual tracking. The position errors were quantified by measuring the distance from the estimated dipole position to the center of mass point of the image. Similarly, the orientation errors were quantified by taking the absolute difference between the estimated dipole orientation and the orientation of the major elliptical axis from the image blob analysis. The position and orientation errors were quantified using the dipole locations estimated from the earlier part of the pulse phase (225 µsec before the reference timing), when the current source is mostly concentrated at the center of the body. The dipole locations estimated from each EOD pulse were smoothed and resampled at the image capture times (15 FPS). The number of samples for the dipole tracking error statistics (n) corresponds to the number of image frames used to compute the error. The tail-bending angle errors were quantified by taking the difference between the values determined from the two estimated dipole orientation (the central and the tail regions), and the values determined from the image analysis.
Results
We applied our dipole localization algorithm to track freely swimming electric fish (20∼24 cm in length) in a shallow and circular body of water (10±2 cm depth, 1.5 m diameter). The dipole tracking accuracy was validated by an automated visual tracking protocol, and the positions and orientations determined by the two methods closely agreed (90% within 5 cm or 13°) under various test conditions. Our dipole tracking method was accurate and reliable at locations near the tank boundary or an object, and the error remained small when fish bent its tail during turning movements. Our method can therefore be used to estimate the distance between any part of the fish (e.g. its head) and an object (e.g. a landmark or prey). The tail-bending angles were determined by comparing the orientations of two dipoles at the central and tail regions (see Methods), and they correlated well (ρcorr = 0.7631) with the visual observations. Our method was applied to track a fish pair or “dyads”, and the localization error remained similar to that for single fish tracking. EOD pulses produced by different individuals were identified by their dipole source locations, such that the individual identities could be reliably associated with their tracking. Our method can therefore also serve to relate the distances between two fish (e.g. between heads, tails, or head and tail) and the electric communication signals they emit [59].
Single Fish Tracking Accuracy
We applied our dipole-tracking algorithm to track single freely swimming fish in a shallow and featureless tank, and the tracking accuracy was quantified using a visual tracking algorithm (see Methods). Figure 5A compares the tracking errors between the four (4P90) and the eight channel (8P67.5) configurations. The average errors of the eight-channel configuration (2.5±1.2 cm, 5.0±4.8°, n = 104) were significantly lower than the four-channel case (9.4±9.1 cm, 15.7±14.8°, n = 104) as expected from the simulations (Fig. 5A, Table 2). The position and orientation errors were significantly reduced after excluding a channel if its electrode was within a set exclusion distance from the fish’s center of the body (Fig. 5B). The position and orientation errors were minimized at the exclusion distance of 13 cm. The tracking accuracy degraded as animals approached the tank wall (Fig. 5C). 90% of all errors fell within 5.3 cm or 13.1° (nsamples = 2×104, nanimals = 2) at all locations (Table 2). Figure 4D compares the error distributions between the locations near (<10 cm) and far (≥10 cm) from the wall; each fish was observed for 666.7 s to compute this distribution. The average tracking errors (mean ± SD) at the near locations were 1.4 cm and 3.7° higher than the errors at the far locations (2.2±1.1 cm, 2.7±2.4°, n = 1802). A short video of a single fish tracking is available in the (Video S1). In summary, our dipole tracking algorithm could accurately track single freely swimming electric fish at most locations within the tank using only eight pairs of recording electrodes, with the electrodes in each pair being at an angle of 67.5°.
Table 2. Summary of the tracking accuracy under different test conditions.
Test | Position Error (cm) | Orientation Error (°) | ||||||
Category | conditions | n | mean | SD | Q90 | mean | SD | Q90 |
Boundary Dist.*1 | far (≥10 cm) | 1802 | 2.2 | 1.1 | 3.7 | 2.7 | 2.4 | 5.8 |
near (<10 cm) | 17995 | 3.6 | 1.4 | 5.4 | 6.4 | 6.1 | 13.5 | |
Object Dist.*2 | far (≥20 cm) | 172 | 1.4 | 0.8 | 2.6 | 2.7 | 2.4 | 5.9 |
near (<20 cm) | 110 | 3.0 | 1.4 | 4.6 | 3.7 | 3.8 | 9.4 | |
Tail Bending *1 | small (<10°) | 1802 | 2.2 | 1.1 | 3.7 | 2.7 | 2.4 | 5.8 |
large (≥10°) | 203 | 2.5 | 1.0 | 3.8 | 7.0 | 4.5 | 13.1 | |
Social tracking *1 | single | 20000 | 3.5 | 1.5 | 5.3 | 6.0 | 5.9 | 13.1 |
dyad | 20000 | 3.6 | 1.4 | 5.4 | 6.0 | 6.6 | 12.9 | |
No. Channels *2 | 4 chan. | 10000 | 9.4 | 9.1 | 17.1 | 15.7 | 14.8 | 34.8 |
8 chan. | 10000 | 2.5 | 1.2 | 4.1 | 5.0 | 4.8 | 11.5 | |
Fish size (far) *3 | Large (31 g) | 1377 | 2.1 | 1.1 | 3.8 | 3.1 | 3.0 | 6.9 |
Small (20 g) | 628 | 2.5 | 0.9 | 3.7 | 3.2 | 2.9 | 7.1 | |
Fish size (all) *4 | Large (31 g) | 10000 | 3.2 | 1.4 | 5.0 | 5.1 | 5.0 | 11.7 |
Small (20 g) | 10000 | 3.8 | 1.4 | 5.6 | 6.9 | 6.6 | 14.2 |
The dipole tracking errors under different test conditions are summarized in this table.
Data pooled from all animals.
Data from larger fish.
Far from the wall (>10 cm).
All locations.
Effects of an Object
We studied effects of a dielectric object on the dipole localization accuracy by placing a cylindrical plastic object (10 cm diameter, 15 cm height) at different locations (Fig. 6A). In theory, the object placed in water will distort the electric field and increase differences between the measured and predicted values; but according to our test, the localization errors were not affected by the object placed at three different locations (Fig. 6B). Figure 6C illustrates trajectories of a fish when it closely passed by the object, and the false colors represent the position error. The fish images were superimposed every 1 sec interval, and a movie version of Figure 6C is available in the (Video S2). The electrically tracked traces (color-coded) closely agreed (<5 cm) with the visually tracked traces (shown in grey) near the object. Figure 6D shows the error distributions when the fish was near (<20 cm) or far (>20 cm) from the object’s surface while the object was placed at the center of the tank. In order to examine the effect of an object alone, the locations near the wall (<10 cm) and when the tail-bending angles exceeded 10° were excluded from our analysis. The mean tracking errors when the fish was near the object were 3.0±1.4 cm and 3.7±3.8° (90% within 4.6 cm or 9.4°, n = 110); and the tracking errors when the fish was far from the object were 1.4±0.8 cm and 2.7±2.4° (90% within 2.6 cm or 5.9°, n = 172) (Table 2). In summary, the presence of an object in water did not significantly decrease the dipole tracking accuracy even when the fish closely passed by the object. Our method permits us to determine the EOD pulse rate as a function of the distance from a fish to an object, which will be relevant for studies such as Pereira et al. [60] and Hofmann et al. [61].
Effects of Tail Bending
We quantified the dipole tracking errors during fish’s tail-bending behavior using visual recordings. The tail-bending angle was determined using three feature points (center of mass, head, and tail ends) from an image; and it was also electrically determined from two dipole orientations at the central and the tail regions (Fig. 7A, see Methods). Figure 7B shows a linear correlation between the electrically and the visually determined tail-bending angles (ρcorr = 0.7631, nsamples = 2005, nanimals = 2). Locations near the wall (<10 cm) were excluded from our analysis due to inaccurate visual tracking near the wall. The absolute tail-bending error was 3.7±3.9°, and 90% of all errors were within 7.9°. The orientation error increased linearly with the tail-bending angle, but the position error was not significantly affected by the tail bending (Fig. 7C). Figure 7D compares the distributions of the tracking errors during small (<10°) versus large (>10°) tail-bending bouts. The mean orientation error increased by 4.3° during the large tail-bending bouts relative to the small tail-bending bouts, while the mean position error increased only by 0.3 cm. In summary, the tail-bending angle could be determined from the electrical measurements alone, and the dipole tracking errors remained reasonably small during large tail bending (90% of errors within 5.8 cm or 13.8°). It has been hypothesized that the tail bending may be used by WEF for active sensing of objects in their surroundings [61]–[64]; our method will thus permit direct tests of this hypothesis.
Fish Dyads Tracking
Our dipole tracking system was adapted to track fish dyads both accurately and reliably. First, the dipole localization was carried out on mixed EOD pulses, and the tracked locations were individually identified on the basis of the nearest neighbors (see Methods). The EOD pulses occasionally collided when two fish emitted EOD pulses nearly simultaneously. Nevertheless, the LUT matching scores (dot product values) permitted detection and removal of the collided pulses from the traces (see the outliers of the traces in Fig. 8A). The dipole tracking errors of each individual were compared between the single and the dyads tracking (Fig. 8B), and the tracking errors were similar in both cases. The larger fish (animal #1, 24.0±0.5 cm, 31±1 g) had 0.6 cm and 1.8° less mean tracking errors than the smaller fish (animal #2, 20.5±0.5 cm, 20±1 g), since the visual tracking accuracy was higher for the larger fish near the wall in particular. Figure 8C illustrates the tracking errors during a close encounter between two individuals, and the electrically tracked traces (color-coded) closely agreed (<5 cm) with the visually tracked traces. The fish images were superimposed every 1 sec interval, and the larger fish is shown darker. A movie version of Figure 8C is available in the (Video S3). The distributions of the tracking errors when two fish were closer (<40 cm) or further apart (>40 cm) are shown in Figure 8D. The mean tracking errors when the fish dyads were near were 3.0±1.4 cm and 6.3±7.6° (90% within 4.4 cm or 16.7°, n = 186); and the errors when they were far apart were 2.2±0.9 cm and 3.2±2.4° (90% within 3.3 cm or 6.6°, n = 142). In summary, our dipole tracking method could simultaneously track fish dyads accurately even during close encounters. Since we time each EOD pulse of each fish to estimate their locations, our method permits determination of communication-associated EOD pulse patterning as a function of distance between the fish, which will be relevant to studies such as Hupé et al. [59] and Yu et al. [16].
Discussion
Significance of Our Paper
In this paper, we introduced a practical real-time electrical tracking system to locate relatively slowly moving dipole sources in a shallow homogeneous medium. Our dipole tracking method was originally developed to study naturalistic animal behaviors where visual observation is difficult to quantify due to the presence of objects or other animals. Our unique approach to the inverse problem was to solve forward problems at many possible locations, and to find a matching solution from a LUT constructed from the ideal dipole model. The forward problems were solved once, stored, and reused multiple times to increase the subsequent search speed. The dipole search operation could be performed in parallel by multiple processors or GPU if the LUT size becomes larger, or when faster search speed is required. In our studies, we tracked three location parameters (x, y, θ) in 2D, but the number of location parameters could be increased to locate dipoles in 3D. The 3D tracking requires at least five location parameters (x, y, z, θazimuth, θelevation) to be determined, thus this would require a greater number of recording channels and computational time. Unlike some other electrical tracking methods, our dipole tracking method does not require prior individual specific calibrations, since the dipole search algorithm relies on the relative RSI values between channels. This calibration-free approach of our tracking method would be particularly useful for a field recording setting, where a prior individual-specific calibration is difficult or impossible [49]. Although we used a circular tank, a tank shape is not critical to achieve high tracking accuracy as long as all electrodes are positioned on the tank wall. In the case of the square grid layout, high tracking accuracy could be achieved if the electrodes are sufficiently away from the boundary. The tracking accuracy did not noticeably increase when an object was placed in the tank, but placing too many or too large objects would deteriorate the tracking accuracy, more so if the conductivity differences with the surrounding water were large.
Limitations of Visual Tracking
Visual tracking provides direct measurements of animal’s location, and it is the most widely used method of tracking animals. Automated visual tracking relies on computer vision algorithms to infer an animal’s location, but visual algorithms react sensitively to changes in lighting conditions of the environment such as shadows, reflections, and glares [65]. Imaging through water introduces additional challenges to visual tracking algorithms such as: glares produced on the water surface when light illumination is projected from the top, ripples triggered by animal’s movement, absorption of the infrared spectrum while observing nocturnal animals, and animals’ reflections on tank walls. To address these issues, homogenous light illumination could be projected from below a transparent tank to produce high contrast images [21]. However, this solution requires an aquarium to be raised above a light source; thus it is inadequate for a very large aquarium, or if heating is required from underneath the aquarium for tropical fish. Determining an animal’s posture such as a tail-bending angle could become a challenge when imaging a small animal in a large environment, due to the limited number of pixels available from an animal. Multiple cameras could be used to track animals in a large or a visually complex environment, but image frames must be synchronized and perspective angles of all cameras need to be calibrated to combine images from multiple cameras. Video recordings generally produce large amounts of data, thus recording durations are limited by available data storage.
Quantitative study of social interactions is an active area of study in behavioral biology, and the spatial aspect of social interactions provides valuable insights into animal communication [37]. Automated visual tracking could be applied to study multiple animals; but the visual algorithm must handle special cases such as when two animals overlap, and still maintain reliable individual identification. Visual markers [17]–[19] or naturally occurring stripe patterns [66] could be used to identify different individuals. However, fluorescent tags may not be visible under infrared illumination or invasive to use in animals, and the stripe patterns may be absent in some species. A model-based visual tracking method was proposed by Ibrahim et al. [22] to dissociate closely interacting c. elegans and zebrafish. Also, mesh models were fitted to images of closely interacting animals by maximizing statistical likelihood using past movement trajectories (Kalman filter); but this tracking method requires high-resolution images of animals and is more computationally demanding.
Advantages of Electrical Tracking
Electrical tracking of WEF may be more appropriate in circumstances where visual tracking offers limited reliability or accuracy. One of the most significant differences between visual and electrical tracking is that the latter does not require the line of sight between a source and a detector. In naturalistic settings, animals generally prefer to hide, or they often contact other animals during social interactions. In such cases, electrical tracking could provide high reliability and accuracy. In field studies, radar telemetry is widely used to track insects carrying passive radio tags, which reflect microwave signals at their characteristic frequencies [26], [27]. More recently, RFID tags were used to study social behaviors of multiple rats in an enriched environment [7], [25]. However, radar telemetry offers limited detection range in an aquatic environment since water attenuates the radio frequency (RF) spectrum, especially when the conductivity of the surrounding water is high. Also, radio tags can impede with an animals’ mobility, or may require invasive surgical implantation of tags.
In contrast, our dipole tracking method makes use of an animal’s self-generated electrical signal, thus no tracking tags are required to track or discriminate between individuals. Our method is practically suited for an aquatic environment since the animal’s electric field can be detected using a simple setup of inexpensive electrodes, and the lower frequency band (<10 KHz) of physiological signals travel further in water than the RF spectrum used in radio telemetry. The detection range or accuracy could be enhanced by adding more recording dipole electrodes. It is much simpler to combine signals from multiple electrodes than combining 2D images from multiple cameras. Due to lower data storage demand, long-term behavioral monitoring becomes possible for capturing rarely occurring behaviors. Furthermore, poor visibility conditions in murky water do not affect our electrical tracking accuracy. Our method can also locate an animal obstructed by a shelter, as long as the shelter is electrically transparent such as a porous clay pot or plastic tubing with holes.
Areas to Improve
The accuracy of our dipole localization decreased near the tank wall or during the tail bending bouts. When fish was very close to the tank wall, it occasionally contacted one of the recording electrodes and caused amplifier saturation. These occasional amplifier saturations compromised the dipole tracking accuracy near the wall. To improve the accuracy near the wall, the dipole model of the WEF could include the effects of the physically distributed current sources [11], [67]. This model could explain the near field effect better, but a calibration of the current source distribution would be required [67] for each individual from the visual and electrical measurements. During our dipole tracking, larger tail-bending bouts increased the orientation error because the visual tracking weighs the orientation of the head region more due to its larger area, whereas our dipole tracking weighs more toward the central region (Fig. 7B). In order to quantify the dipole tracking errors more accurately, the visual tracking could be performed using infrared-reflective tags. These tags could be sutured or glued on fish’s body to serve as visual markers for precisely measuring the position, orientation, and the tail-bending angle of the fish. The reflective markers would produce high contrast images and improve the visual tracking accuracy near the tank wall in particular, where shadows and reflections often decrease the tracking accuracy.
Combining the visual and the electrical tracking
In some cases, the EOD production of WEF is interrupted during social interactions or after a delivery of predatory stimuli [68], [69]. In Gymnotus species, the EOD can pause for several seconds during social interactions, or for up to a few minutes after threatening (predatory) stimuli. Our dipole tracking requires a continuous EOD production, but a WEF may drift away without emitting an EOD. The trajectory during a short EOD interruption may be reconstructed by extrapolating and joining the trajectories before and after the pause. WEF tend to be stationary during longer EOD pauses, but if they move, the movement trajectory could be determined from a concurrent video recording. Combination of concurrent video and electrical recordings will complement the reliability and accuracy of each tracking method. Our dipole tracking can separate different individuals during close social encounters, or locate animals when obstructed from view more reliably than the visual tracking. The dipole tracking could increase the visual tracking speed if it was is used to define the region of interest in images, or it could direct the viewing angle of a camera in real time if a motorized control is available for monitoring a large area.
Tracking wave-type species
In contrast to the pulse-type species we studied, wave-type species generate their EOD in a continuous and sinusoidal manner. It would require only small modifications to track a single wave-type species. First, the EOD timing reference would need to be determined from the envelope of the rectified and summed waveforms, and the slopes at each channel would be measured at some optimal time separation from the reference timing. The waveform polarity could be determined from the rectified waveforms by using the asymmetry between the positive and negative phases of the waveform. In the case of social tracking, the signal source separation between different individuals of the wave-type species would be difficult in the time domain because the EODs from different individuals constantly interfere. Furthermore, the wave-type species exhibit jamming avoidance responses (JAR) in social settings by shifting their EOD frequencies [45], [46]. Therefore, the frequency domain would offer better signal separation between different individuals [49], and the RSIs could be measured after the signal separation for each individual.
Possible Future Applications
Field studies and 3D tracking
Field studies can offer important new insights, since animals may exhibit different or novel behaviors in their natural settings. Using our dipole tracking method, data already collected from the field [49] could be re-analyzed to determine animals’ locations and movement trajectories. This spatial quantification could uncover individual foraging patterns, or social dynamics such as group sizes in their natural environments [70]. Since depth of water is difficult to control in field studies, our two-dimensional (2D) tracking developed for shallow water may need to be modified to include the vertical dimension. The 3D tracking may become necessary if the water depth becomes much greater than the height of fish, or when fish’s vertical motion is important for a study (e.g. air gulping or barrel rolls displays) [71]. The vertical profile electrodes used in our 2D tracking would not be optimal for the 3D tracking, but instead, a planar grid layout (Fig. 3A) would be more appropriate [49]. Similar to the 2D tracking, the 3D tracking would require the LUT to be constructed for each x, y, z positions and the azimuth and elevation angles. The elevation angle may not be critical for the 3D tracking although changes in the elevation angle lead to the changes in the dipole moment. Our tracking method is not affected by the changes in the absolute dipole moment since it uses the relative, normalized RSIs. The 3D visual tracking was performed in a lab setting by placing one camera above, and another camera in front of a transparent tank for studying prey capture behaviors in WEF [72]. However, this method may be difficult to apply in field settings mainly due to positioning of cameras and illumination sources underwater. In contrast, the 3D dipole tracking would be much simpler to deploy in the field settings for studying the behaviors of WEF in their natural habitats.
EOD amplitude measurement
Changes in EOD amplitude during circadian rhythm or during social encounters were reported by Markham et al. [73] in a different electric fish species (Sternopygus macrurus). In principle, our method could measure the EOD amplitude of freely swimming fish by comparing the ratio of the observed RSIs to the predicted RSIs in order to determine the dipole moment strength. To ensure close match between the predicted and the measured values, the RSI measurements need to be taken when a fish is sufficiently away from the electrodes, and when the tail-bending angle is small. In the studies conducted by Markham et al. [73], the EOD amplitude measurements were taken when a fish passed through a narrow tube situated between two compartments. Although their method allowed the EOD measurements from unrestrained fish over an extended period of time, the animals were required to spontaneously swim through the measurement tube. In comparison, our dipole tracking method would allow constant monitoring of the EOD amplitudes without requiring the animals to swim through the measurement tube.
Supporting Information
Acknowledgments
The authors are grateful to Greg Kiar and Dr. Andy Adler from the Department of Systems and Computer Engineering at Carleton University for inspiring this project, and their suggestions regarding the optimal electrode configuration.
Funding Statement
The authors acknowledge funding from Natural Sciences and Engineering Research Council (Canada) (JJJ and AL) as well as from Canadian Institutes of Health Research (AL, LM). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
References
- 1. Kramer B (1974) Electric organ discharge interaction during interspecific agonistic behaviour in freely swimming mormyrid fish. A method to evaluate two (or more) simultaneous time series of events with a digital analyzer. J Comp Physiol 93: 203–235. [Google Scholar]
- 2. Knudsen EI, Konishi M (1979) Mechanisms of sound localization in the barn owl (Tyto alba). J Comp Physiol A 133: 13–21. [Google Scholar]
- 3. Fuzessery ZM, Buttenhoff P, Andrews B, Kennedy JM (1993) Passive sound localization of prey by the pallid bat (Antrozous p. pallidus). J Comp Physiol A 171: 767–777. [DOI] [PubMed] [Google Scholar]
- 4. Coombs S, Hastings M, Finneran J (1996) Modeling and measuring lateral line excitation patterns to changing dipole source locations. J Comp Physiol A 178: 359–371. [DOI] [PubMed] [Google Scholar]
- 5. Aytekin M, Grassi E, Sahota M, Moss CF (2004) The bat head-related transfer function reveals binaural cues for sound localization in azimuth and elevation. J Acoust Soc Am 116: 3594–3605. [DOI] [PubMed] [Google Scholar]
- 6. Nelson ME, MacIver MA (1999) Prey capture in the weakly electric fish Apteronotus albifrons: sensory acquisition strategies and electrosensory consequences. J Exp Biol 202: 1195–1203. [DOI] [PubMed] [Google Scholar]
- 7. Lewejohann L, Hoppmann AM, Kegel P, Kritzler M, Krüger A, et al. (2009) Behavioral phenotyping of a murine model of Alzheimer’s disease in a seminaturalistic environment using RFID tracking. Behav Res Methods 41: 850–856. [DOI] [PubMed] [Google Scholar]
- 8. Rivera-Vicente AC, Sewell J, Tricas TC (2011) Electrosensitive spatial vectors in elasmobranch fishes: implications for source localization. PLoS ONE 6: e16008. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9. Knudsen EI (1975) Spatial aspects of electric fields generated by weakly electric fish. J Comp Physiol 99: 103–118. [Google Scholar]
- 10. Goulet J, Engelmann J, Chagnoud BP, Franosch JMP, Suttner M, et al. (2008) Object localization through the lateral line system of fish: theory and experiment. J Comp Physiol A 194: 1–17. [DOI] [PubMed] [Google Scholar]
- 11. Chen L, House JL, Krahe R, Nelson ME (2005) Modeling signal and background components of electrosensory scenes. J Comp Physiol A 191: 331–345. [DOI] [PubMed] [Google Scholar]
- 12. Hagedorn M, Heiligenberg W (1985) Court and spark: electric signals in the courtship and mating of gymnotoid fish. Anim Behav 33: 254–265. [Google Scholar]
- 13. Davis EA, Hopkins CD (1988) Behavioural analysis of electric signal localization in the electric fish, Gymnotus carapo (Gymnotiformes). Anim Behav 36: 1658–1671. [Google Scholar]
- 14. Shieh KT, Wilson W, Winslow M, McBride DW, Hopkins CD (1996) Short-range orientation in electric fish: an experimental study of passive electrolocation. J Exp Biol 199: 2383–2393. [DOI] [PubMed] [Google Scholar]
- 15. Hopkins CD, Shieh KT, McBride DW Jr, Winslow M (1997) A quantitative analysis of passive electrolocation behavior in electric fish. Brain Behav Evol 50 (Suppl 1)32–59. [DOI] [PubMed] [Google Scholar]
- 16. Yu N, Hupé G, Garfinkle C, Lewis JE, Longtin A (2012) Coding conspecific identity and motion in the electric sense. PLoS Comp Biol 8: e1002564. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17. Spruijt BM, Hol T, Rousseau J (1992) Approach, avoidance, and contact behavior of individually recognized animals automatically quantified with an imaging technique. Physiol Behav 51: 747–752. [DOI] [PubMed] [Google Scholar]
- 18. Winberg S, Nilsson GE, Spruijt BM, Höglund U (1993) Spontaneous locomotor activity in arctic charr measured by a computerized imaging technique: role of brain serotonergic activity. J Exp Biol 179: 213–232. [Google Scholar]
- 19. Vatine JJ, Ratner A, Dvorkin M, Seltzer ZE (1998) A novel computerized system for analyzing motor and social behavior in groups of animals. J Neurosci Methods 85: 1–11. [DOI] [PubMed] [Google Scholar]
- 20. Noldus LP, Spink AJ, Tegelenbosch RA (2001) EthoVision: a versatile video tracking system for automation of behavioral experiments. Behav Res Methods 33: 398–414. [DOI] [PubMed] [Google Scholar]
- 21. Windsor SP, Tan D, Montgomery JC (2008) Swimming kinematics and hydrodynamic imaging in the blind Mexican cave fish. J Exp Biol 211: 2950–2959. [DOI] [PubMed] [Google Scholar]
- 22. Fontaine E, Lentink D, Kranenbarg S, Müller UK, Van Leeuwen JL, et al. (2008) Automated visual tracking for studying the ontogeny of zebrafish swimming. J Exp Biol 211: 1305–1316. [DOI] [PubMed] [Google Scholar]
- 23. Branson K, Robie AA, Bender J, Perona P, Dickinson MH (2009) High-throughput ethomics in large groups of Drosophila. Nature Methods 6: 451–457. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24. Straw AD, Branson K, Neumann TR, Dickinson MH (2011) Multi-camera real-time three-dimensional tracking of multiple flying animals. J Roy Soc Interface 8: 395–409. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Vasserman G, Weissbrod A, Kimchi T (2012) Automated behavioral phenotyping platform for multiple mice. Front Behav Neurosci Conference Abstract: Tenth International Congress of Neuroethology. doi:10.3389/conf.fnbeh.2012.27.00026.
- 26. Mascanzoni D, Wallin E (1986) The harmonic radar: a new method of tracing insects in the field. Ecol Entomol 11: 387–390. [Google Scholar]
- 27. O’Neal ME, Landis DA, Rothwell E, Kempel L, Reinhard D (2004) Tracking insects with harmonic radar: a case study. Am Entomol 50: 212–218. [Google Scholar]
- 28. Lissmann HW (1958) On the function and evolution of electric organs in fish. J Exp Biol 35: 156–191. [Google Scholar]
- 29. Lissmann HW, Machin KE (1958) The mechanism of object location in Gymnarchus niloticus and similar fish. J Exp Biol 35: 451–459. [Google Scholar]
- 30. von der Emde G, Schwarz S, Gomez L, Budelli R, Grant K (1998) Electric fish measure distance in the dark. Nature 395: 890–894. [DOI] [PubMed] [Google Scholar]
- 31. Babineau D, Lewis JE, Longtin A (2007) Spatial acuity and prey detection in weakly electric fish. PLoS Comp Biol 3: e38. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32. Mohres FP (1957) Elektrische Entladungen im Dienste der Revierabgrenzung bel Fischen. Naturwissenschaften 44: 431–432. [Google Scholar]
- 33. Hopkins CD (1974) Electric communication: functions in the social behavior of Eigenmannia virescens . Behaviour 50: 270–305. [Google Scholar]
- 34. Zakon H, Oestreich J, Tallarovic S, Triefenbach F (2002) EOD modulations of brown ghost electric fish: JARs, chirps, rises, and dips. J Physiol Paris 96: 451–458. [DOI] [PubMed] [Google Scholar]
- 35. Zupanc G (2002) From oscillators to modulators: behavioral and neural control of modulations of the electric organ discharge in the gymnotiform fish, Apteronotus leptorhynchus . J Physiol Paris 96: 459–472. [DOI] [PubMed] [Google Scholar]
- 36. Turner CR, Derylo M, de Santana CD, Aves-Gomes JA, Smith GT (2007) Phylogenetic comparative analysis of electric communication signals in ghost knifefishes (Gymnotiformes: Apteronotidae). J Exp Biol 210: 4104–4122. [DOI] [PubMed] [Google Scholar]
- 37. Hupé GJ, Lewis JE (2008) Electrocommunication signals in free swimming brown ghost knifefish, Apteronotus leptorhynchus . J Exp Biol 211: 1657–1667. [DOI] [PubMed] [Google Scholar]
- 38. Caputi AA (1999) The electric organ discharge of pulse gymnotiforms: the transformation of a simple impulse into a complex spatio-temporal electromotor pattern. J Exp Biol 202: 1229–1241. [DOI] [PubMed] [Google Scholar]
- 39. Rodríguez-Cattáneo A, Pereira AC, Aguilera PA, Crampton WGR, Caputi AA (2008) Species-specific diversity of a fixed motor pattern: the electric organ discharge of Gymnotus . PLoS ONE 3: e2038. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40. Castelló ME, Rodríguez-Cattáneo A, Aguilera PA, Iribarne L, Pereira AC, et al. (2009) Waveform generation in the weakly electric fish Gymnotus coropinae (Hoedeman): the electric organ and the electric organ discharge. J Exp Biol 212: 1351–1364. [DOI] [PubMed] [Google Scholar]
- 41. Sanguinetti-Scheck JI, Pedraja EF, Cilleruelo E, Migliaro A, Aguilera P, et al. (2011) Fish geometry and electric organ discharge determine functional organization of the electrosensory epithelium. PLoS ONE 6: e27470. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42.Albert JS, Fernandes-Matioli FMD, Almeida-Toledo LF (1999) New species of Gymnotus (Gymnotiformes, Teleostei) from southeastern Brazil: toward the deconstruction of Gymnotus carapo. Copeia 410–421.
- 43. Albert JS, Crampton WGR (2001) Five new species of Gymnotus (Teleostei: Gymnotiformes) from an upper Amazon floodplain, with descriptions of electric organ discharges and ecology. Ichthyol Explor Freshwaters 12: 241–266. [Google Scholar]
- 44. Albert JS, Crampton WGR (2003) Seven new species of the neotropical electric fish Gymnotus (Teleostei, Gymnotiformes) with a redescription of G. carapo (Linnaeus). Zootaxa 287: 1–54. [Google Scholar]
- 45. Bullock TH, Hamstra RH Jr, Scheich H (1972) The jamming avoidance response of high frequency electric fish. J Comp Physiol 77: 1–22. [Google Scholar]
- 46. Bastian J, Heiligenberg W (1980) Phase-sensitive midbrain neurons in Eigenmannia: neural correlates of the jamming avoidance response. Science 209: 828–831. [DOI] [PubMed] [Google Scholar]
- 47. Capurro A, Macadar O, Perrone R, Pakdaman K (1998) Computational model of the jamming avoidance response in the electric fish Gymnotus carapo . Biosystems 48: 21–27. [DOI] [PubMed] [Google Scholar]
- 48. Fugère V, Ortega H, Krahe R (2011) Electrical signaling of dominance in a wild population of electric fish. Biol Lett 7: 197–200. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 49.Henninger J, Benda J, Krahe R (2012) Undisturbed long-term monitoring of weakly electric fish in a small stream in Panama. Front Behav Neurosci Conference Abstract: Tenth International Congress of Neuroethology. doi: 10.3389/conf.fnbeh.2012.27.00319.
- 50. Jun JJ, Longtin A, Maler L (2012) Precision measurement of electric organ discharge timing from freely moving weakly electric fish. J Neurophysiol 107: 1996–2007. [DOI] [PubMed] [Google Scholar]
- 51.Albert JS, Crampton WGR (2005) Diversity and Phylogeny of Neotropical electric fishes (Gymnotiformes). In: Bullock TH, Hopkins CD, Popper AN, Fay RR, eds. Electroreception. New York: Springer. 360–409.
- 52.Rangayyan RM (2002) Biomedical Signal Analysis: A Case-Study Approach. New York: Wiley-IEEE Press. 237–275.
- 53.Caputi AA, Bruce A, Macadar O (2005) Electric organs and their control. In: Bullock TH, Hopkins CD, Popper AN, Fay RR, eds. Electroreception. New York: Springer. 410–451.
- 54.Griffiths DJ (1999) Introduction to electrodynamics. New Jersey: Prentice Hall. 188–190.
- 55.Vanderlinde J (2004) Classical electromagnetic theory. Dordrecht: Kluwer Academic Publishers. 149–152.
- 56. Zahn M (1976) Point charge between two parallel grounded planes. Am J Phys 44: 1132–1134. [Google Scholar]
- 57. Kumar U, Nagabhushana GR (1997) Images in linearly conducting dielectrics. IEE Proc-Sci Meas Technol 144: 163–167. [Google Scholar]
- 58.Telea A, van Wijk JJ (2002) An augmented fast marching method for computing skeletons and centerlines. In: IEEE TCVG Symposium on Visualization: 251–259.
- 59.Hupé GJ (2012) Electrocommunication in a species of weakly electric fish, Apteronotus leptorhynchus: Signal patterning and behavior. Ph.D. Thesis, Ottawa: University of Ottawa.
- 60. Pereira AC, Aguilera P, Caputi AA (2012) The active electrosensory range of Gymnotus omarorum . J Exp Biol 215: 3266–3280. [DOI] [PubMed] [Google Scholar]
- 61. Hofmann V, Sanguinetti-Scheck JI, Gómez-Sena L, Engelmann J (2012) From static electric images to electric flow: towards dynamic perceptual cues in active electroreception. J Physiol Paris. 107: 95–106. [DOI] [PubMed] [Google Scholar]
- 62. Heiligenberg W (1975) Theoretical and experimental approaches to spatial aspects of electrolocation. J Comp Physiol 103: 247–272. [Google Scholar]
- 63. Sicardi EA, Caputi AA, Budelli R (2000) Physical basis of distance discrimination in weakly electric fish. Physica A 28: 86–93. [Google Scholar]
- 64. Sim M, Kim D (2011) Electrolocation based on tail-bending movements in weakly electric fish. J Exp Biol 214: 2443–2450. [DOI] [PubMed] [Google Scholar]
- 65.Shapiro LG, Stockman GC (2001) Computer vision. New Jersey: Prentice Hall. 52 p.
- 66. Arganda S, Pérez-Escudero A, de Polavieja GG (2012) A common rule for decision-making in animal collectives across species. Proc Natl Acad Sci U S A. 109: 20508–20513. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 67. Kelly M, Babineau D, Longtin A, Lewis JE (2008) Electric field interactions in pairs of electric fish: Modeling and mimicking naturalistic input. Biol Cybern 98: 479–90. [DOI] [PubMed] [Google Scholar]
- 68. Schuster S (2000) Changes in electric organ discharge after pausing the electromotor system of Gymnotus carapo . J Exp Biol 203: 1433–1446. [DOI] [PubMed] [Google Scholar]
- 69. Schuster S (2002) Behavioral evidence for post-pause reduced responsiveness in the electrosensory system of Gymnotus carapo . J Exp Biol 205: 2525–2533. [DOI] [PubMed] [Google Scholar]
- 70. Stamper SA, Carrera-G E, Tan EW, Fugère V, Krahe R, et al. (2010) Species differences in group size and electrosensory interference in weakly electric fishes: Implications for electrosensory processing. Behav Brain Res 207: 368–376. [DOI] [PubMed] [Google Scholar]
- 71. Nanjappa P, Brand L, Lannoo MJ (2000) Swimming patterns associated with foraging in phylogenetically and ecologically diverse American weakly electric teleosts (Gymnotiformes) Env Biol Fishes. 58: 97–104. [Google Scholar]
- 72. MacIver MA, Nelson ME (2000) Body modeling and model-based tracking for neuroethology. J Neuro Methods 95: 133–143. [DOI] [PubMed] [Google Scholar]
- 73. Markham MR, McAnelly ML, Stoddard PK, Zakon HH (2009) Circadian and social cues regulate ion channel trafficking. PLoS Biol 7: e1000203. [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.