Skip to main content
Royal Society Open Science logoLink to Royal Society Open Science
. 2016 Oct 19;3(10):160505. doi: 10.1098/rsos.160505

Zebrafish response to a robotic replica in three dimensions

Tommaso Ruberto 1, Violet Mwaffo 1, Sukhgewanpreet Singh 1, Daniele Neri 1, Maurizio Porfiri 1,
PMCID: PMC5098991  PMID: 27853566

Abstract

As zebrafish emerge as a species of choice for the investigation of biological processes, a number of experimental protocols are being developed to study their social behaviour. While live stimuli may elicit varying response in focal subjects owing to idiosyncrasies, tiredness and circadian rhythms, video stimuli suffer from the absence of physical input and rely only on two-dimensional projections. Robotics has been recently proposed as an alternative approach to generate physical, customizable, effective and consistent stimuli for behavioural phenotyping. Here, we contribute to this field of investigation through a novel four-degree-of-freedom robotics-based platform to manoeuvre a biologically inspired three-dimensionally printed replica. The platform enables three-dimensional motions as well as body oscillations to mimic zebrafish locomotion. In a series of experiments, we demonstrate the differential role of the visual stimuli associated with the biologically inspired replica and its three-dimensional motion. Three-dimensional tracking and information-theoretic tools are complemented to quantify the interaction between zebrafish and the robotic stimulus. Live subjects displayed a robust attraction towards the moving replica, and such attraction was lost when controlling for its visual appearance or motion. This effort is expected to aid zebrafish behavioural phenotyping, by offering a novel approach to generate physical stimuli moving in three dimensions.

Keywords: binary choice test, information theory, robotics, zebrafish, three-dimensional tracking

1. Introduction

In recent years, zebrafish (Danio rerio) has been extensively used in laboratory experiments for the investigation of a broad spectrum of functional and dysfunctional processes, such as neurological disorders [1], vertebrate embryonic development [2,3], preclinical toxicological assessment [4,5] and pharmacological assays [6]. The increasing use of zebrafish in animal experiments is driven by several factors, including their fully sequenced genome [79], rapid development from larval to adult stages [10,11] and reduced maintenance cost [12]. A deeper understanding of social behaviour in zebrafish may help the design of experimental models and protocols, aiding the comprehension of the fundamental mechanisms behind the onset of human neurobehavioural disorders such as anxiety, addiction to substances of abuse, autism spectrum disorders and schizophrenia [13]. Although significant progress has been made in phenotyping their behaviour [14], the neurobiological determinants of zebrafish sociality are not yet fully apprehended.

A battery of experimental tests has been devised to examine the social behaviour of this freshwater species, often borrowing from well-established paradigms used for rodents [1518]. A popular paradigm consists of studying the spatial preference of zebrafish in binary choice tests, using live [17,19,20] or video stimuli [2123]. In these experiments, fish behaviour is often scored in terms of time spent in the proximity of the stimuli [24], the average distance between fish and stimuli [25] or the number of entries in specific tank sections [26]. These quantities are typically studied by recording zebrafish swimming patterns in two dimensions and analysing the acquired videos manually or through automated software [8].

The binary choice test has helped us to significantly improve our understanding of zebrafish social behaviour, including attraction towards conspecifics or heterospecifics [25,27] and the role of shoal size [28], sex [29], colour pattern [24] and interindividual distance [30]. However, both live and video stimuli may suffer from methodological confounds, whereby (i) live stimuli may result in large intrinsic variability among experimental trials owing to idiosyncrasies with focal subjects, tiredness and circadian rhythms, and (ii) video stimuli only offer two-dimensional projections of images and suffer from the absence of a physical input for fish to interact with [31].

To overcome these limitations, the use of robotic stimuli has been proposed as an alternative approach [32]. In these experiments, robotic stimuli are typically developed, using three-dimensional printing techniques to replicate the morphology of zebrafish and mimic their swimming patterns. When compared with video stimuli, they allow for a higher degree of control and a more realistic interaction [33], which are accompanied by a superior level of consistency with respect to live stimuli [33,34]. These key methodological advantages have also been confirmed in the study of other freshwater species and experimental paradigms, fuelling intense research on guppies [35,36], golden shiners [3739], mosquitofish [40], sticklebacks [41], killifish [42] and giant danios [43].

Although these studies have significantly contributed to demonstrating the potential of robotics in zebrafish behavioural phenotyping in choice tests, they either rely on stimuli anchored at a fixed location of the tank while beating their tail [27,33,4447] or on replicas which are dragged along periodic linear or figure-eight trajectories in two dimensions using external manipulators [33,48,49]. Here, we seek to further advance the use of robotic stimuli in zebrafish experimentation through a novel four-degree-of-freedom platform, which affords three-dimensional motions as well as body oscillations. The platform can be pre-programmed to actuate a three-dimensionally printed replica that closely mimics zebrafish morphology along a three-dimensional trajectory, summarizing several elements of the behavioural repertoire of zebrafish observed in experimental studies on isolated fish in tanks, such as thrashing against walls, erratic movements and diving, and freezing bouts [14].

The platform is integrated with a custom-made image processing software developed by our group to enable three-dimensional trajectory reconstruction [33], which is central in refined behavioural phenotyping [8,50,51]. Not only are three-dimensional measurements expected to afford the accurate measurement of a number of key behavioural observables, but they should also unveil components of the ethogram that would not be discovered from two-dimensional data [50].

To demonstrate the use of the proposed platform and investigate the interaction of zebrafish with biologically inspired three-dimensionally actuated robotic replicas, we conducted a series of experiments in a binary choice test. Similar to well-established protocols that are based on the use of live stimuli, we physically separated the focal subjects from the robotic replicas using transparent panels [52]. We considered five experimental conditions to isolate the effects of the motion of the replica and its visual appearance. In these conditions, live subjects interacted with a three-dimensionally moving replica; a two-dimensionally moving replica; a non-moving, static replica; an optically transparent three-dimensionally moving model of the replica and a non-moving rod without any stimulus attached.

We examined the behavioural response of zebrafish in terms of their time budgeting in the tank (along the length and depth of the tank), shoaling tendency with respect to the stimulus and activity (average speed and acceleration). To refine and enhance the analysis of the interaction between the fish and the replica, we used the information-theoretic notion of transfer entropy [53]. Transfer entropy has been shown to offer a valid complement to traditional indicators of fish spatio-temporal preference, revealing the influence of robotic stimuli on fish behaviour [49,54,55].

2. Material and methods

2.1. Animals and housing

A total of 50 zebrafish (D. rerio) of wild-type variety, approximately 3 cm in total body length, were used in this study. Fish were purchased from an online aquarium vendor (LiveAquaria.com, Rhinelander, WI) and housed in 37.8 l (10 gallon) tanks, with a maximum of 20 fish per tank. Prior to the experiments, they were acclimatized for a period of 12–15 days in housing tanks where temperature and acidity were maintained at 26°C and pH 7.2, respectively. Fish were kept under a 12 L : 12 D photoperiod [56] and fed with commercial flake food (Hagen Corp. Nutrafin max) between 18.00 and 19.00 every day.

2.2. Robotic platform and replica

The robotic platform (figure 1) was designed in SolidWorks (Dassault Systèmes SolidWorks Corp., Waltham, MA) and is composed of aluminium T-slot bars (McMaster Carr, Elmhurst, IL). The platform was operated with an Arduino microcontroller (Arduino Uno, Arduino, Italy) connected to a computer using an ethernet shield, communicating using the user datagram protocol sent from a program written in Matlab (MathWorks, Natick, MA) running on the computer.

Figure 1.

Figure 1.

Robotic platform used to manoeuvre the zebrafish replica in three dimensions, while oscillating about the vertical axis.

The robotic fish replica was designed to mimic zebrafish morphology. Specifically, it has dorsal, ventral and caudal fins, and it was coloured using non-toxic colours (Krylon, Krylon Products Group, Cleveland, OH) with stripes resembling the body pattern of a live zebrafish (figure 2). Glass eyes (Van Dyke Supply Co., Granite Quarry, NC) were attached to the replica to offer a realistic eye appearance, which has been found to be critical in other studies [36]. The replica was fabricated using acrylonitrile butadiene styrene thermoplastic in a Dimension Elite three-dimensional printer (Stratasys Ltd., Eden Prairie, MN).

Figure 2.

Figure 2.

Live swimming zebrafish (a) and fish replica painted to resemble a zebrafish (b).

The replica was attached to an acrylic rod on the robotic platform and programmed to move in three dimensions, denoted x, y and z (see videos in the electronic supplementary material). The motion of the replica along the x-axis was driven by two servomotors (Futaba Corporation of America, Schaumburg, IL) attached to a system of rack-and-pinions. The y-axis motion was actuated through a DC motor (Robotzone, LLC, Winfield, KS), which was also connected to a system of rack-and-pinions. The motion on the z-axis was generated using a threaded rod, which was actuated by a stepper-motor (Adafruit, New York City, NY). The orientation of the rod, and subsequently, the orientation of the replica, was controlled by a small Hitec servomotor (Hitec RCD USA, Inc.) attached to the cantilever travelling on the threaded rod.

2.3. Apparatus

The experimental set-up (figure 3) consisted of a water tank of dimensions 74 × 30 × 30 cm (length, width and depth) divided into three compartments using Plexiglas panels, with the two lateral partitions of 10 × 30 × 30 cm (length, width and depth). The water depth was kept at 15 cm. White contact paper was applied to the walls of the tank, with the exception of the front side which was used to video record fish motion along the water column.

Figure 3.

Figure 3.

Top (a) and front (b) views of the experimental set-up. The stimulus is placed in one of the two small side compartments, keeping the other one empty, whereas the focal fish is released in the middle compartment.

The water tank was illuminated using two 25 W fluorescent tubes (All-Glass Aquarium, UK) mounted along the two longitudinal sides. The lights were positioned 30 cm above the surface of the water. Experiments were video recorded using two Logitech web cameras (Logitech, Newark, CA) placed above the tank at a distance of 55 cm from the water surface as well as in front of the tank at a distance of 50 cm, to enable three-dimensional reconstruction of zebrafish motion. Black curtains surrounded the experimental set-up on all sides, in order to isolate the experimental set-up from any external source of light.

The two cameras were activated simultaneously, using a Linux shell script, and calibrated with the Matlab calibration toolbox (R2011a, MathWorks). Videos were post-processed offline by first converting them into image frames, and then using a multi-target tracking algorithm, implemented in Matlab R2014b (MathWorks), to estimate two-dimensional trajectories of fish and stimuli.

The tracking software estimated the three-dimensional position of the fish and the stimuli after applying appropriate filtering procedures to two-dimensional observations from each view [55]. Briefly, a simple background subtraction was performed on each image frame to identify the centroid of the segmented target blobs corresponding to the fish and the stimuli [55]. Trajectory data from each view were further smoothened, using a simple moving average filter with a window size of 18 frames to suppress noise from tracking, selected on the basis of comparison with previous work [33]. Assuming that the two-dimensional views were orthogonal, the trajectories for the top and the front views (figure 4b,c) were then concatenated to estimate the three-dimensional trajectory of the fish and the stimulus (figure 4a). To ease the tracking of the stimulus, especially the transparent model, the process of synchronization was partially automated. Specifically, we conducted a separate trial in which we filmed only the moving replica in three dimensions without live subjects and Plexiglas panels, and we used this trial to assist in the synchronization of the two views.

Figure 4.

Figure 4.

Sample fish trajectory reconstructed over 120 s in three dimensions (a), top view (b) and front view (c). The colouring in (b,c) indicates fish instantaneous speed, as shown by the colour bar.

2.4. Experimental procedure

Experiments were performed between August and September 2015 and June and July 2016. The focal fish placed in the middle compartment was presented with the replica operated by the robotic platform on the one side and an empty compartment on the other (figure 3). After the focal fish was released in the tank with a hand net, the cameras started recording for 20 min at 30 frames rate per second, comprising 10 min of habituation and 10 min of experimental observation.

Five experimental conditions were executed. In condition ‘replica + motion’, RM, a replica was attached to the rod, which was actuated by the robotic platform to replicate the motion of a live subject. The trajectory of the rod was programmed based on the trajectory of a live zebrafish that was observed swimming in the lateral compartment of the tank for a period of 10 min after 10 min of habituation. The 10 min of observation was tracked in three dimensions and then downsampled. Specifically, the positions of the live fish along the x, y and z axes were sampled every 2.5 s from the original trajectory. The resulting coordinates were assembled in a single trajectory, which was used to actuate the rod in each and every trial (figure 5).

Figure 5.

Figure 5.

Salient characteristics of the replica motion, including (a) position density in the front view, (b) position density in the top view and (c) distribution of the speed. The entire 10 min duration is used for the computations; density is computed using a two-dimensional bin size of 0.37 times 0.37 cm; and the speed distribution uses a bin size of 0.72 cm s−1.

The motion of the replica included instances of freezing, thrashing against the Plexiglas wall subdividing the experimental tank, erratic movement and diving. The average speed was 1.69 cm s−1, and the average position along the water column was 7.56 cm below the water surface, almost in the middle of the water column. Its heading was programmed to either face the centre of the tank or face away from it, while oscillating at 2 Hz with an angular peak-to-peak amplitude of 10° to mimic zebrafish body movement [54]. Specifically, the average heading of the replica with respect to the x-axis was 45° or 135°, depending on the direction of motion along the y-axis.

Condition ‘replica + motion in two dimensions’, RM 2D, controlled for the three-dimensional motion of the rod, whereas conditions ‘motion’, M, and ‘replica’, R, controlled for either the visual appearance of the replica or the imposed motion to the rod. Specifically, in condition RM 2D, a replica was attached to the rod, which was actuated by the platform along a two-dimensional trajectory generated by blocking the motion of the RM trajectories along the z-axis at 7.50 cm below the water surface. In condition M, a transparent model of the replica was hand carved from acrylic plastic and connected to the rod that was manoeuvred as in condition RM. In condition R, a replica was used facing the centre of the tank, along the x-axis, and the rod was held fixed with the replica positioned in the middle of the tank at 7.50 cm below the water surface. Finally, we performed one control condition, Control, where neither a replica nor a transparent model were attached to the rod. Therein, the rod was not moving and held just below (1 mm) the water surface.

In conditions RM, RM 2D and M, the rod started moving within 1 s after the recording had begun. Each condition was conducted using 10 experimentally naive subjects, resulting in 50 trials. At the end of the recording time, the fish was removed from the experimental tank with a hand net and placed into a separate tank. In conditions R and Control, the rod was positioned at the centre of the lateral compartment, with the replica facing the centre of the tank when present. For each condition, five fish were tested in the morning and five in the afternoon for a total of 10 fish per condition, between 10.00–13.30 and 14.00–18.30, respectively. The position of the platform (left or right compartments) was balanced across trials in each condition.

2.5. Data analysis

Fish activity was scored in terms of average speed and acceleration, computed from the estimated three-dimensional motion. Velocity was computed using first-order numerical differentiation of the fish position time series, filtered using a simple moving average of 18 frames window size. Acceleration was then evaluated from velocity data, again using a first-order numerical differentiation.

To analyse the spatial preference of the focal fish for the stimuli, the central compartment was virtually divided along its length into three equal sections of 18 cm. Time spent in the section near the stimulus (TN), in the middle section, in the farthest section (TF) were computed from the reconstructed three-dimensional motion. Fish preference for the stimulus was quantified through the preference index (PI) [16,33,46], defined as TN/(TN+TF).

A similar approach was followed to examine time budgeting along the water column, by partitioning the water column in three equal levels of 5 cm. We measured the time spent in the bottom (TB), middle and top (TT) level. We aggregated the time spent in the top and bottom in a PI for the bottom level as defined as TB/(TB+TT).

Fish shoaling tendency was computed from the three-dimensional trajectories as the time spent by fish within four body lengths of the stimulus (12 cm), similar to [57]. (The presence of the partition constrains the minimum distance between the stimulus and the focal subject.) In the control condition, where no stimulus was used, the shoaling tendency was measured with respect to the trajectories of the replicas in condition RM. For each of the control subjects, we computed the time that a fish would spend within four body lengths of the moving replica.

The interaction between the fish and the moving stimuli (conditions RM, RM 2D and M) was further quantified using transfer entropy, an information-theoretic quantity that can be used to estimate causal relationships between two time series [53]. Specifically, given two discrete stochastic processes, X and Y, modelled as a Markov chain of order one, the transfer entropy from Y to X is given by

TYX=xt+1,xt,ytp(xt+1,xt,yt)log2p(xt+1|xt,yt)p(xt+1|xt), 2.1

where xt and xt + 1 are the outcomes of X at time step t, and t + 1, yt is the outcome of Y at t, and Σ denotes the summation over all possible realizations of xt, xt + 1 and yt; p(xt + 1|xt, yt) is the conditional probability density of X at t + 1, given its previous value and that of the process Y. This quantity should be taken as direct measurement of the reduction in uncertainty of the stochastic process X given the knowledge of Y. As a result, by contrasting TY → X and TX → Y, we may assess the direction of the dominant information transfer between the processes or, equivalently, dissect cause-and-effect relationships.

Transfer entropy was computed using Process_Network_v. 1.4 software [58] for RM, RM 2D and M conditions. Trajectory data were initially filtered using a wavelet filter implemented in Matlab 2014b and then segmented such that only portions of the trajectories in the virtual section near the stimulus were retained. Following our previous work [48], transfer entropy was evaluated only for segments containing at least 175 data points, using the position of the fish and the stimulus along the width of the tank as the input signals. The computation was executed using 10 bins, corresponding to a bin size approximately equal to one body length.

To ensure the validity of the measured information transfer, we computed transfer entropy between live subjects in the control condition and the replica in condition RM. Given that control subjects were not exposed to the motion of the stimulus, we sought to verify the absence of information transfer between fish and replica.

Outliers' values were identified using the interquartile range [59] applied to the time spent in each lateral section. Seven fish, one in condition RM, one in condition RM 2D, three in condition R and two in condition M, were consistently discarded from the analysis. For each condition, a one-sample t-test with unknown variance and reference mean equal to 50% was performed to evaluate the spatial preference of the fish for the stimulus and for the bottom level. Similarly, one-way ANOVA was used to compare the shoaling tendency in each condition with the baseline attraction for the sides of the tank.

One-way ANOVA was also used to compare observables (PI for the stimulus and the bottom level of the tank, time spent in the middle section along the length of the tank, time spent in the middle of the water column, average speed, average acceleration and shoaling time) with the experimental condition as the independent variable. In case of significance, a Tukey's honestly significant difference criterion post hoc test was used for pairwise comparisons. The direction of information transfer was assessed, using repeated measures ANOVA for each of the three experimental conditions with a moving stimulus (RM, RM 2D and M), with data segments as within group. One-way ANOVA was used to compare the transfer entropy from stimuli to fish between RM, RM 2D and M conditions. Finally, one-way ANOVA was used to compare transfer entropies between live subjects in the control condition and the replica in conditions RM, RM 2D and M. All the analyses were conducted with a significance level set at 0.05, unless otherwise specified.

3. Results

3.1. Spatio-temporal preference

Fish were attracted (figure 6a) by the replica moving in three dimensions (t8 = 1.98, p = 0.0413) and in two dimensions (t7 = 3.84, p = 0.0031). No preference was found for the stimulus in conditions R (t6 = 0.92, p = 0.1954), M (t8 = 1.31, p = 0.1128) and Control (t9 = 0.24, p = 0.8163). One-way ANOVA comparisons did not indicate a difference between conditions with respect to their preference for the stimulus section (F4,38 = 1.54, p = 0.2090). Similarly, no difference in time spent by the fish in the central section of the tank (figure 6b) was found across experimental conditions (F4,38 = 0.97, p = 0.4372).

Figure 6.

Figure 6.

Average preference index (PI) for the time spent in the stimulus section (a), corresponding to one-third of the experimental tank, and average time spent in the middle section of the tank (b). In condition RM, fish are presented with the moving replica; in condition RM 2D, fish are presented with the replica moving in two dimensions; in condition R, the replica is held fixed; and in condition M a transparent model of the replica is attached to the moving rod. Asterisk indicates p < 0.05 in one-sample t-test comparison with respect to chance, indicated as a dashed line. Error bars represent ± standard errors.

Along the water column, focal fish displayed a robust preference (figure 7a) for the bottom level of the tank in conditions RM (t8 = 4.46, p = 0.0010) and Control (t9 = 3.51, p = 0.0033). No preference for the bottom of the tank was found in conditions RM 2D (t7 = 1.05, p = 0.1636), R (t6 = 1.88, p = 0.0543) and M (t8 = 0.16, p = 0.4369). One-way ANOVA comparisons confirmed a significant difference between experimental conditions with respect to time budgeting along the water column (F4,38 = 3.79, p = 0.0109). Pairwise post hoc comparisons indicate a difference between the preference for the bottom of the tank in conditions RM and Control with respect to condition RM 2D (p < 0.05). One-way ANOVA comparisons did not indicate a difference in the time spent by the fish in the middle of the tank (figure 7b) across experimental conditions (F4,38 = 1.37, p = 0.2619).

Figure 7.

Figure 7.

Average preference index (PI) for the time spent in the bottom level of the tank (a), corresponding to one-third of the water column, and average time spent in the middle level of the water column (b). In condition RM, fish are presented with the moving replica; in condition RM 2D, fish are presented with the replica moving in two dimensions; in condition R, the replica is held fixed; and in condition M a transparent model of the replica is attached to the moving rod. Asterisks indicate p < 0.01 in one-sample t-test comparison with respect to chance, indicated as a dashed line. Dollar symbol indicates significance in post hoc comparisons (p < 0.05) with condition RM 2D. Error bars represent ± standard errors.

3.2. Activity

Fish average speed (figure 8) was found to vary across conditions (F4,38 = 3.89, p = 0.0095), with fish in condition RM, R and M swimming faster than control subjects (p < 0.05 in post hoc comparison). Similarly, fish average acceleration (figure 9) significantly varied across conditions (F4,38 = 4.37, p = 0.0052), with fish in condition RM displaying a higher acceleration than subjects from other conditions (p < 0.05 in post hoc comparison).

Figure 8.

Figure 8.

Average speed for the five experimental conditions. In condition RM, fish are presented with the moving replica; in condition RM 2D, fish are presented with the replica moving in two dimensions; in condition R, the replica is held fixed; and in condition M a transparent model of the replica is attached to the moving rod. Asterisk indicates significance in post hoc comparisons (p < 0.05) with the Control condition. Error bars represent ± standard errors.

Figure 9.

Figure 9.

Average acceleration for the five experimental conditions. In condition RM, fish are presented with the moving replica; in condition RM 2D, fish are presented with the replica moving in two dimensions; in condition R, the replica is held fixed; and in condition M a transparent model of the replica is attached to the moving rod. Asterisk indicates significance in post hoc comparisons (p < 0.05) with the Control condition. Error bars represent ± standard errors.

3.3. Shoaling tendency

Variations in fish shoaling tendency (figure 10) were found across experimental conditions (F4,38 = 2.73, p = 0.0429), although none of the experimental conditions were different from Control in post hoc comparisons. Only significant difference was noted between conditions RM 2D and R (p < 0.05).

Figure 10.

Figure 10.

Average shoaling time for the five experimental conditions. In condition RM, fish are presented with the moving replica; in condition RM 2D, fish are presented with the replica moving in two dimensions; in condition R, the replica is held fixed; and in condition M a transparent model of the replica is attached to the moving rod; in Control condition, the motion of the replica in condition RM was used as a virtual stimulus. Dollar symbol indicates significance in post hoc comparisons (p < 0.05) with condition R. Error bars represent ± standard errors.

3.4. Information transfer

Information transfer (figure 11) was found to be significantly higher from replica to fish than from fish to replica in condition RM (F1,205 = 7.64, p = 0.0063) and not significantly different between directions in conditions M (F1,93 = 0.05, p = 0.8231) and RM 2D (F1,81 = 0.62, p = 0.4352). No difference in information transfer was also found in condition Control (F1,201 = 0.41, p = 0.5233), adapting the motion of the replica in condition RM as a virtual stimulus. A segment effect was found for transfer entropy in conditions RM 2D (F7,81 = 4.64, p = 0.0003) and RM (F8,205 = 2.07, p = 0.0403), whereas such an effect was not found in conditions M (F8,93 = 0.97, p = 0.4637) and Control (F9,201 = 0.98, p = 0.4541). No interaction effect between the direction of the information transfer and segments was found for transfer entropy in all conditions: RM (F8,205 = 0.75, p = 0.6448), RM 2D (F7,81 = 0.49, p = 0.8399), M (F8,93 = 0.48, p = 0.8684) and Control (F8,201 = 0.64, p = 0.7651).1

Figure 11.

Figure 11.

Information transfer from focal fish to stimuli and from stimuli to focal fish for the three experimental conditions with moving stimuli (RM, moving replica; RM 2D, replica moving in two dimensions; and M, moving transparent model of replica) and for the Control condition using the motion of the replica in condition RM as a virtual stimulus. Transfer entropy data for each segment are normalized with respect to the corresponding segment data length. Asterisks indicate significant difference in information transfer direction at p < 0.01, whereas dollar symbol indicates a significant difference with respect to the Control condition at p < 0.05. Error bars represent ± standard errors.

Pairwise comparisons on information transfer with respect to control subjects demonstrate that the moving replica in condition RM and the transparent model in condition M transferred more information than the virtual stimulus in condition Control (F1,203 = 14.42, p = 0.0002) and (F1,147 = 24.68, p < 0.0001), respectively, whereas no difference was found between RM 2D and the virtual stimulus in condition Control (F1,141 = 1.71, p = 0.1935).

4. Discussion

Here, we studied the behavioural response of zebrafish to a biologically inspired three-dimensionally printed replica, which was fabricated and painted to mimic zebrafish morphology. The replica was manoeuvred by a novel four-degree-of-freedom robotic platform, which was designed to move the replica along sampled three-dimensional trajectories of live subjects and, independently, control its body oscillation. A custom-made three-dimensional tracking software was used to examine the interaction between zebrafish and the stimuli. To isolate the effect of the motion from the visual appearance, five experimental conditions were performed, in which fish preference was tested against a three-dimensionally moving replica, a two-dimensionally moving replica, a fixed replica, a three-dimensionally moving transparent model of the replica and an immobile rod without a replica or a transparent model attached.

Our findings demonstrate that fish were attracted towards the three-dimensionally moving replica, and this attraction was lost when either its visual appearance or motion was controlled. Specifically, live fish did not display a preference for either the replica held fixed in the tank or the moving transparent model. The attraction towards the moving replica, quantified in terms of the time spent in its vicinity, was also accompanied by an increase in activity, measured through the average speed and acceleration, and a preference for the bottom of the tank. The interaction between the stimulus and the focal subjects was further evaluated through the information-theoretic construct of transfer entropy, which can be used to estimate causal relationships between coupled dynamical systems. Our results confirm that the three-dimensional motion of the replica influenced fish behaviour, and such an influence is abolished when the visual appearance or the motion along the water column are controlled.

Zebrafish rely primarily on visual cues in their social interactions with conspecifics and heterospecifics [14]. Stripe pattern, pigmentation and shape have been found to be determinant factors in the attraction of zebrafish for pigment pattern mutants and closely related species. Experiments using live, video and robotic stimuli have demonstrated a robust preference for fish with a similar morphology and may be repelled by subjects with elongated or compressed shapes and different stripe orientation or pigment [24,25,44]. The use of robotic stimuli has also helped clarifying the critical role of the stimulus motion on zebrafish behaviour, whereby fish presented with the choice between a static robot and one that was beating its tail preferred to spend time with the latter [45]. By controlling for visual stimulation in an experiment conducted in the dark, the same tail beating robot elicited avoidance response through auditory cues associated with the mechanical actuation. This offers indirect evidence for the central role of the visual perception of the stimulus motion on zebrafish behaviour, albeit potential confounds associated with multisensory stimulation.

In accordance with our expectations, we have found that removing visual cues associated with the presence of the biologically inspired replica suppresses the attraction towards the moving stimulus, measured through the PI for the stimulus partition. Transfer entropy also failed to identify an influence of the motion of the transparent model of the replica on the live subject. However, the transparent model was probably perceived by the subjects, as evidenced from the increase in the information transfer with respect to control subjects. The physical motion of the transparent model should be associated with visual and acoustic cues, beyond those offered by computer-animated images. It is possible to hypothesize visual signalling from the movement of the water generated by the translation of the model in the lateral compartment, along with acoustic signalling from the repeated collisions of the model with the walls during simulated thrashing. As expected, enriching the stimulus through a biologically inspired replica results in a net information transfer between the stimulus and the subject. This offers direct evidence for the role of visual cues in experiments using robotic stimuli.

In line with our predictions, we also confirmed the central role of the stimulus motion on zebrafish behaviour. Fish did not display attraction towards the static replica, whose only observed effect was to eliminate the preference for the bottom of the tank with respect to control subjects. This evidence could be related to the different vertical positioning of the cantilever along the threaded rod. Specifically, the lower distance of the cantilever in the condition with the static replica may reduce its visibility to live fish with respect to control subjects. The cantilever is likely to be seen by control subjects everywhere in the tank, owing to zebrafish enhanced visual acuity along oblique directions towards the water surface [60]. The cantilever could be associated by the focal subjects with an aerial predator, thereby increasing their tendency to swim in the bottom of the tank. Such a tendency could be further amplified by the view of the camera and part of its tripod from the open frontal side of the tank.

The response of zebrafish to a two-dimensionally moving replica allows for shedding light on the specific role of three-dimensional motion. The two-dimensionally moving replica was manoeuvred along a two-dimensional projection of the original three-dimensional trajectory at the middle of the water column. Although the two-dimensionally moving replica elicited a robust attraction towards live subjects, it did not modulate their activity and did not influence their motion. The increased activity displayed towards the three-dimensionally moving replica may be partially associated with the diving and the rising movements of the replica along the water column, which could be potentially amplified by the changing visibility of the cantilever travelling on the threaded rod. The diving and rising movements are also likely to play a role on the information transfer between the replica and the focal fish. The two-dimensionally moving replica will display a less dynamic stimulus, in which diving and rising movements are replaced by slower motions in the plane. Such motions could even result in freezing instances, especially close to the transparent partitions. Experiments in [49] seem to confirm the importance of fast changes in the stimulus trajectory, where a replica moving along a figure-eight trajectory was shown to influence zebrafish behaviour, without eliciting a robust preference.

Both the two- and three-dimensionally moving replicas indicate the presence of undesired time effects, related to the variability of the RM during a trial. Specifically, during a trial, a fish may be presented with different cues; for example, the replica may be thrashing against the partition or swimming on the opposite side in two separate time segments. Creating an array of trajectories for the replica and randomly selecting from them for each trial could potentially mitigate such time effects, although it may cause undesired variations in the treatment of each subject.

Not only does the platform constitute a technical advancement for studying zebrafish behaviour, but also it offers the possibility to robustly validate the information-theoretic construct of transfer entropy in the study of animal behaviour. Different from previous studies [48,49,54] featuring periodic motions with low information content, the proposed platform allows for generating highly irregular, aperiodic, information-rich motions that attempt at summarizing the complexity of zebrafish swimming. The information transfer between the three-dimensionally moving replica and fish offers strong evidence for the existence of a causal relationship at the basis of the fish–replica interaction, which could only be conjectured using our previous experiments, using periodic motions. Our results add to the growing literature on the use of transfer entropy to study social behaviour using experimental observations in laboratory [61] or field settings [62], as well as synthetic datasets generated using computer simulations [6365].

Another contributing factor to the effect of the three-dimensionally moving replica could be the improved development of the replica. Compared with previous experiments, the stripe pattern has been more carefully painted and glass eyes were used instead of painted eyes. Based on recent observations on guppies [36], it is possible to hypothesize an enhanced attraction owing to the glass eyes. However, our experimental set-up differs from [36], where fish were allowed to freely interact with the robotic stimulus in an open tank rather than through a Plexiglas partition. This choice was motivated by three factors. First, we sought to prevent any physical damage to the focal fish related to the motion of the transparent rod, which operates in open-loop, independently of the fish position. Second, we sought to mirror the current practice in preference tests using live stimuli, in which physical partitions are also used to separate animals [52]. Third, our previous experiments on the interactions between live fish and robots anchored at precise locations in the tank (equivalent to the current platform without the xyz motion) suggest that the presence of the partition does not have a primary role on the interaction, which is instead highly influenced by the oscillation of the robot body [44,45]. These studies, however, used a stimulus with different features. Future studies will seek to elucidate the specific role of the eyes, stripe pattern and body oscillation of the present replica, through controlled experiments, targeting also the role of visual acuity [60].

Although the robotic stimulus was substantially improved in its morphology and swimming pattern, it is unlikely that fish perceived it as a conspecific. Preference tests with conspecifics indicate a stronger attraction with a PI on the order of 70% [34], even if we should acknowledge that these studies permitted bidirectional interactions between the live stimulus and the focal subjects. Such interactions are not allowed in the present experimental set-up, where the replica is manoeuvred along pre-programmed trajectories, similar to preference tests in which live stimuli are separated using one-way glass [20]. Future work should seek to incorporate bidirectional interactions through a closed-loop control of the replica based on real-time data of fish motion using a similar approach to [36,38,47].

Other limiting factors of our robotic platform are the partial smoothness of the motion imparted to the rod, the mechanical rigidity of the replica and the rudimentary control of its orientation. Indirect evidence for the relevance of these locomotory aspects can be garnered by examining the increased activity of live fish in the presence of the moving replica, which may be associated with an anxiety-related response [14,52,66]. The smoothness of the trajectory could be improved by increasing the number of data points sampled from real fish trajectory. However, the density of such points should be sufficiently sparse to prevent jittering of the servomotors, owing to positioning uncertainties. The mechanical rigidity of the replica could be reduced by capitalizing on recent technological advances in three-dimensional printing [67], which have demonstrated the possibility of printing soft material. The use of a more compliant replica could help mimicking the body undulations of zebrafish, potentially enhancing the attraction towards the robotic stimulus. Enabling finer control of the orientation of the replica could be achieved by replacing the current servomotor on the travelling cantilever with a stepper motor (permitting unhindered continuous rotation and angle control), and synchronizing it with the rod three-dimensional motion, such that the replica orientation would align with its velocity vector.

Similar to video stimuli [22], a robotics-based approach enables the presentation of a consistent and customizable stimulus. However, in contrast with video stimuli, robots are three-dimensional physical objects and thus expected to better proxy live stimuli. This study offers further demonstration for the potential of robotics in the study of zebrafish social behaviour through a novel robotic platform that enables the presentation of a complex visual stimulus, consisting of a biologically inspired replica that is manoeuvred in three dimensions while oscillating its body.

Supplementary Material

Supplementary material: Zebrafish response to a robotic replica in three dimensions
rsos160505supp1.docx (13.5KB, docx)

Supplementary Material

Dataset 1
rsos160505supp2.xlsx (22.5KB, xlsx)

Supplementary Material

Dataset 2
rsos160505supp3.xlsx (32.3KB, xlsx)

Acknowledgements

The authors are grateful to Tiziana Bartolini for her help in setting the experiments, Dr Sachit Butail for guidance in the use of the tracking software and help in revising the manuscript, and Paul Phamduy for useful discussion during the design and the fabrication of the robotic platform.

Footnotes

1

If the same analysis were repeated using only the first 5 min of the experiment, then no significant information transfer would be detected, thereby suggesting the need for carefully selecting the duration of the observations for successful use of transfer entropy.

Ethics

All experiments were performed in accordance with relevant guidelines and regulations, reviewed by the University Animal Welfare Committee of the New York University (protocol number 13-1424: Robotics-based experimental paradigms to study social behaviour, reward pathways and their development adjustments in fish).

Data accessibility

The original dataset supporting this article is available as electronic supplementary material.

Authors' contribution

M.P. designed the experiments. S.S. designed and realized the experimental set-up. T.R., S.S. and D.N. conducted the experiments. T.R., and D.N. analysed the raw videos. T.R., V.M. and M.P. analysed the trajectory data and performed the requisite statistical tests. T.R., V.M. and M.P. wrote the paper. All authors gave final approval for publication.

Competing interests

The authors declare no competing financial interests.

Funding

This work was supported by the National Science Foundation under grant no. CMMI-1433670, grant no. CMMI-1505832 and grant no. DRL-1200911 and the Mitsui USA Foundation.

References

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplementary material: Zebrafish response to a robotic replica in three dimensions
rsos160505supp1.docx (13.5KB, docx)
Dataset 1
rsos160505supp2.xlsx (22.5KB, xlsx)
Dataset 2
rsos160505supp3.xlsx (32.3KB, xlsx)

Data Availability Statement

The original dataset supporting this article is available as electronic supplementary material.


Articles from Royal Society Open Science are provided here courtesy of The Royal Society

RESOURCES