Skip to main content
Scientific Reports logoLink to Scientific Reports
. 2021 Apr 29;11:9330. doi: 10.1038/s41598-021-87502-6

Zebrafish automatic monitoring system for conditioning and behavioral analysis

Marta de Oliveira Barreiros 1,, Felipe Gomes Barbosa 1, Diego de Oliveira Dantas 1, Daniel de Matos Luna dos Santos 1, Sidarta Ribeiro 2, Giselle Cutrim de Oliveira Santos 3, Allan Kardec Barros 1
PMCID: PMC8085222  PMID: 33927213

Abstract

Studies using zebrafish (Danio rerio) in neuro-behavioural research are growing. Measuring fish behavior by computational methods is one of the most efficient ways to avoid human bias in experimental analyses, extending them to various approaches. Sometimes, thorough analyses are difficult to do, as fish can behave unpredictably during an experimental strategy. However, the analyses can be implemented in an automated way, using an online strategy and video processing for a complete assessment of the zebrafish behavior, based on the detection and tracking of fish during an activity. Here, a fully automatic conditioning and detailed analysis of zebrafish behavior is presented. Microcontrolled components were used to control the delivery of visual and sound stimuli, in addition to the concise amounts of food after conditioned stimuli for adult zebrafish groups in a conventional tank. The images were captured and processed for automatic detection of the fish, and the training of the fish was done in two evaluation strategies: simple and complex. In simple conditioning, the zebrafish showed significant responses from the second attempt, learning that the conditioned stimulus was a predictor of food presentation in a specific space of the tank, where the food was dumped. When the fish were subjected to two stimuli for decision-making in the food reward, the zebrafish obtained better responses to red light stimuli in relation to vibration. The behavior change was clear in stimulated fish in relation to the control group, thus, the distances traveled and the speed were greater, while the polarization was lower in stimulated fish. This automated system allows for the conditioning and assessment of zebrafish behavior online, with greater stability in experiments, and in the analysis of the behavior of individual fish or fish schools, including learning and memory studies.

Subject terms: Computational science, Software, Engineering, Nanoscience and technology

Introduction

Learning and memory are complex brain processes that allow animals to adjust their behavior throughout the experience and in different environments1,2. In addition, learning and memory can help the fish improve anti-predator behavior when being attacked by predators by observing their companions' behavior1,3. Thus, learning plays an important role in the development of this behavior and has been studied in many animal models in the field of neuroscience and psychobiology49.

The zebrafish (Danio rerio) is a small freshwater teleost fish from South Asia10, and has become a model for behavioral research in neuroscience5,11, potentially suitable for studies on vertebrate learning9, because of the simplicity in the practice of maintenance, their proliferating nature and for having increased development of genetic markers, in addition to the practicality in handling, due to its small size (4 cm) and due to being fertile after three months. In addition to robust behavioral phenotypes, zebrafish has a homology with nucleotide and functional sequences among mammalian genes, which makes it suitable for research12,13.

Behavioral tests of learning and memory can be used even in the larval stage of zebrafish1416. In this way, many experiences involving zebrafish behavior have already been tested and continue to be a field of study in research. In behavioral terms, several studies have shown zebrafish learning from different visual and sound approaches, such as identifying color preferences13,1719, through the usage of lights (for association with danger, well-being, evacuation, memory4,7, in physical exercise20, in the usage of sounds to identify the fish's sound perception2124, in the operant behavioral test to examine aspects of controlling a series of stimuli in zebrafish6, and several other approaches.

In addition, many behavioral studies have proposed measuring the level of fish learning by computational methods, based on fish detection and tracking, however, the biggest challenge of tracking algorithms is the complexity of fish movements during fast swimming captured in video images1,4,12,2531. However, experiments that involve tracking fish positions in the video during the presentation of stimuli may allow a better analysis of the fully automated training of several adult zebrafish for arbitrary visual stimuli in parallel18. This way, automatic analysis of laboratory procedures maximizes data reliability, improving research performance and helping to standardize and validate experimental tests5.

Some test equipment has already been designed for fish conditioning, for example, a fully automated test system was designed to test aspects of impulse control in adult zebrafish, including hardware and software development5,32,33. In addition, an automated device enabled fast conditioning paradigms for zebrafish in five trials7. In another study, a robust self-administration trial of automated opioids for zebrafish, it was possible to measure the search for drugs, showing a characteristic of drug dependence and information on the underlying biological pathways34.

The quantification of behavioral responses can assess different situations in conjunction with stimuli or stressors. Thus, it can be considered a good indicator of the body’s responses35,36. Therefore, it is important that the fish conditioning equipment is fully automatic and has a design adjusted to the procedure. A fully automatic procedure can reduce the human bias during the analysis of the research, as many procedures require maintenance of the environment at certain times, such as the control of food, oxygenation or stimuli activated in the tank (lights or sounds). In this, the automation of procedures and analysis of videos to explore the experimental extension is very favorable for research in the behavioral area5. By obtaining a standardized training protocol, comparison of results in different experiments and laboratories is facilitated, giving better usability of zebrafish in behavioral research18.

Although there are several conditioning/training methods and some computational algorithms available for zebrafish behavioral assessment, there are still few complete systems for conditioning and automatic assessment of fish behavior. Typically, these behavioral assessment software are developed separately from the automatic conditioning hardware, limiting themselves to capturing videos at the time of training, for later analysis. Here, we describe the technical development of fully controlled hardware and an automated algorithm that allows for the control of protocols for conditioning and assessing the behavior of the fish, which involves the delivery of food and stimuli, being a tool developed for the analysis of video processing of adult fish in real time. In addition, this tool allows for changing the settings for new tests and can be used for other applications involving the behavior of fish, as well as assessing the behavior for toxicity, sleep, aversion and several others.

Materials and methods

Animals

Forty-three adult zebra fish (mixed sex, size 3 cm ± 0.5 cm) were obtained from a local pet store (São Luís, State of Maranhão, Brazil), being housed in three groups, a group with 11 fish for simple learning (single stimulus), a group with 16 fish for complex learning (two stimuli: vibracall and light) and a control group with 16 fish in total, used for both experiments. The groups of fish were housed in a 22.5L (250 × 200 × 550m m) opaque glass tank with aerated and filtered water. The fish were housed in a closed system with filtered water (sponge and activated carbon), being given two weeks to acclimatize in the environment before the established training. The water quality was monitored weekly, keeping the temperature at 26 ± 1 °C, pH 7.2 ± 0.3, ammonia 0.00 ± 0.01 ppm, nitrite 0.00 ± 0.01, nitrate ~ 40 ppm and conductivity ~ 1250 µS, with mechanical, biological and chemical filtration. The water was changed (40%) every 10 days to guarantee the quality. The lighting was adjusted in a 12/12 h light/dark cycle23,37,38. The fish were fed four times a day with commercial foods and crushed flakes (38% protein, 4% lipids, Nutricom Pet). In the period of maintenance or acclimation of the fish in the tank, the fish were fed twice a day, ad libitum, but during conditioned training feeding was restricted (~ 2 g each training).

Ethics statement

All experimental procedures with animals followed the ARRIVE39 guidelines and approved by the Ethics Committee on Animal Use (CEUA) of the Federal University of Maranhão (UFMA), campus of São Luís—MA, Brazil (Protocol nº 23115.006194/2018-01 and Protocol n° 23115.024712/2020-96). All experiments were performed in accordance with relevant named guidelines and regulations. All training was carried out in the same environment where the fish were kept. After the entire experiment, the euthanasia method was used, utilizing an anesthetic solution of benzocaine type 60–70 mg/L of water with subsequent cooling and freezing of the carcass at – 20 °C, discarded according to the protocol of the Bioterium of the University.

Experimental setup

The behavioral system consisted of hardware and software to manage the experimental workflow and video processing. The experimental strategy consisted of carrying out associative learning tasks, with visual and sound stimuli associated with food, in addition to assessing the response of the zebrafish in decision making during conditioning activities. The behavioral modeling of zebrafish groups and the dynamics of fish behavior in different groups were analyzed in this configuration.

Hardware

An experimental rack was designed in a room, having three opaque glass tanks 22.5L of 550 mm × 200 mm × 250 mm (width × height × depth), containing three groups of fish, connected by a computer for automatic control of the training, acclimation, oxygenation and feeding of the fish. The tank was divided into two arenas: oxygenation space (100 mm × 250 mm × 200 mm) and training space (450 mm × 200 mm × 250 mm). 8 mm holes were created in the internal wall of the tank that separated the two environments, so that the oxygenated water circulated in the fish training environment without bubbles or interference in the video analysis.

The automatic control of the tank was done by microcontrolled components (using Arduino MEGA), controlling the oxygenation of the fish, the ambient light, the light stimulus and the feeder, obeying the schedule of training activities (four times a day). Automatic feeders were produced on the 3D printer, using Acrylonitrile Butadiene Styrene (ABS) filaments, being coupled to the outside and top of the tank. The food was placed in the feeder reservoir and could be dispensed using a servomotor, which turned a gear at the feeder outlet to have a uniform control of the amount of ground feed (about ~ 2 g).

The internal division in the tank was adjusted according to the activity established at that moment and with the proposed experiments. Thus, the glass partitions (250 mm × 80 mm × 4 mm) were added inside the tank, in order to separate the space from the food, during food conditioning. In addition, a red LED strip was connected during the associative activity for the simple experiment. Two stimuli were adjusted for the complex experiment, red color (spectrum ~ 663 nm) and vibracall, placed in the external area in the aquarium. Red lighting was chosen based on the sensitivity of the zebrafish, where zebrafish favor red over other colors. However between the green and blue colors, green was the most preferred, with the fish having a strong aversion to the blue color13,17,19,40. For simple conditioning, only one divider was used to separate the food from the remaining space in the tank. And a visual stimulus in red color was offered to the fish during the conditioning phase in the feeding period. Oxygenation was kept on in the tank, but turned off 10 min before the beginning of the tests so that there was no flow of bubbles in the water, being turned on again 10 min after the tests, following a schedule of activities for training, implemented automatically. In experiments that did not consist of food conditioning, the tank had no division and the fish could swim normally in the entire tank. And a single camera was mounted on each tank approximately 40 cm above each tank to capture the videos of the proposed training. The videos were recorded at 30 frames per second with a resolution of 1920X1080 pixels (C920 Logitec camera). The focus of the camera was set manually, adjusting the dimensions of the tank (Fig. 1).

Figure 1.

Figure 1

Experimental configuration to measure zebrafish learning. The group of zebrafish swims in a sandblasted glass tank, divided into two feeding arenas. A red LED strip is attached to the external area on the right side of the tank as a light stimulus. And a vibracall was attached to the external area on the left side of the tank. A camera is mounted above the tank, approximately 40 cm.

For the control of the hardware, scripts were produced in Matlab and Python for the total control of the automatic conditioning system. This mechanism served to deliver food, turn on and off ambient light, control the oxygen pump and activate stimuli at the set time of the experiments.

Software

The behavioral evaluation algorithm consisted of the following stages: image processing for fish detection and tracking, behavioral modeling and automatic analysis of fish conditioning in the interest of the stimulus (see supplementary file S1).

Detection and tracking

In the fish processing and detection phase, the videos were processed by an algorithm based on YOLOv2 convolutional network4143. The architecture of the YOLOv2 network consisted of seven convolution layers with a 3 × 3 filter, six layers of Relu, three layers of Max Pooling with size 2 × 2, six layers of batch normalization with size 1 × 1 and two layers of anchor boxes. Table 1 shows the architecture of the YOLOv2 network used to detect fish in the tank. For the training of the YOLOv2 network, a set of images was used containing 365 images referring to previous videos of the fish, where the fish head region was manually marked on all images, being used for learning of the YOLOv2 network for the detection of fish in the tank. Then, the trained net was used to detect the fish during the behavioral experiment. For more details, see the reference by Barreiros et al.43.

Table 1.

YOLOv2 network architecture parameters for zebrafish detection.

Layer Operation Filters Kernel size Stride Activations
1 Convolution—ReLu 16 3 × 3 1 480 × 480 × 16
Batch normalization 16 1 × 1 480 × 480 × 16
2 Max pooling 2 × 2 240 × 240 × 32
Convolution—ReLu 32 3 × 3 1 240 × 240 × 32
Batch normalization 32 1 × 1 240 × 240 × 32
3 Max pooling 2 × 2 120 × 120 × 64
Convolution—ReLu 64 3 × 3 1 120 × 120 × 64
Batch normalization 64 1 × 1 120 × 120 × 64
4 Max pooling 2 × 2 60 × 60 × 128
Convolution—ReLu 128 3 × 3 1 60 × 60 × 128
Batch normalization 128 1 × 1 60 × 60 × 128
5 Convolution—ReLu 128 3 × 3 1 60 × 60 × 128
Batch normalization 128 1 × 1 60 × 60 × 128
6 Convolution—ReLu 128 3 × 3 1 60 × 60 × 128
Batch normalization 128 1 × 1 60 × 60 × 128
7 Convolution—ReLu 24 1 × 1 1 60 × 60 × 24
Anchor 24 60 × 60 × 24

To adjust the detection accuracy of the YOLOv2 network and establish the tracking of fish during activities in the tank, a simple Kalman filter was previously implemented43, and configured to estimate the coordinates of the fish in the detection failure, during the times of occlusions by other fish during swimming, thus, the loss of detection could be recovered. Then, after estimating the position of the fish, a cost function was adjusted and minimized, associating the estimated detection with the actual detection of the YOLOv2 network. In case of loss by the detector or occlusion, the Kalman filter adjusts the new estimated position, detecting each fish in the consecutive frames to be linked when finding the shortest distance and the angle of the fish's head direction in the detection of the YOLOv2 and in the estimation of the Kalman filter, thus associating it with the corresponding fish and allowing the creation of paths for each fish in the frame over time. The identification of the fish is initially chosen automatically, but does not guarantee that the following videos will detect the same fish. Thus, from these steps, it was possible to measure the behavioral levels of the fish individually and separated into groups during the behavioral testing activities, such as polarization, group dynamics, distance covered, speed and tracking of the route of the shoal.

Behavioral modeling of zebrafish

To assess the complex behavior of the fish in group and individually, we have implemented some evaluation metrics, as described below.

Polarization

To measure the degree of coordination of the group of fish in each frame, the polarization pol was used, which quantifies the intensity of the parallel orientation in a school of fish, defined by Eqs. (1), (2) and (3):

polt=Mt 1
Mt=1Nk=1Nv^kt 2
v^kt=vktvkt 3

where pol(t), is the arithmetic mean of the unit direction of all fish in frame t; v^kt is the unit direction of fish k in frame t; vkt is the velocity of the fish k in frame t; N the total number of fish in the group.

Speed

To evaluate the locomotion of the fish in the tank and the processing speed of the acquired information, the scalar speed was used, calculated from the relation of its displacement in relation to time, given by Eq. (4).

velkt=xk,t-xk,t-12+yk,t-yk,t-12Δt 4

where velkt is speed of the k-th head of the fish in frame t, xk,t and yk,t the x and y position k-th fish head in frame t, xk,t-1 and yk,t-1 the x and y position k-th fish head in frame t-1 and Δt is the time in seconds between frame capture.

Fish interaction network

Collective behavior is the result of different dynamics and is sometimes compared to living systems. When a group of fish move, these animals usually process information to coordinate their movements. Individuals respond dynamically and can make good decisions as a collective to changing environments44. Recent studies in information theory have started to apply methods to quantify this distributed processing4547. Here, we represent the school's interaction network as a directed graph, using mutual information data to quantify this distributed processing. In order to calculate the influence of a fish's movement in relation to the other fish in the tank, the variation of the direction of the fish head for the duration of the established time is utilized. It is expected that the fish with the highest rate of interaction with the other fish in the tank can influence the dynamics of the school. To measure the information between a fish and its neighbor, Mutual Information is used, as described in Niizato et al.46. The values of mutual information MI.,. were calculated in pairs with all combinations of fish, and the origin and destination fish ratios are stored in a matrix by Eq. (5).

Mutualinfo=0MIΦ1,Φ2MIΦ1,ΦNMIΦ2,Φ10MIΦ2,ΦNMIΦN,Φ1MIΦN,Φ20 5

where MutualInfo is the matrix that stores the relationship of mutual information in relation to all pairs of fish, the value of all diagonal elements is equal to zero and MI.,. is the mutual information function. Where Φk is the time series of the variation in the direction of the head of the k-th fish and N is the total number of fish. Mutual information is symmetrical, that is, the value of MIΦ1,Φ2 is equal to MIΦ2,Φ1.

Automatic conditioning analysis

To analyze the conditioning of the fish in the videos, the image of the tank was divided into arenas for simple conditioning (feeder and swimming area) and four arenas of equal size for complex training in the shape of a cross, where each arena corresponded to a 22.5 cm × 12.5 cm rectangle (Fig. 3F), one area corresponds to the red light stimulus and another to the vibracall stimulus. Then, fish detection was automatically established during conditioning in the tank's region of interest. Two types of videos were automatically saved in a folder, one video with the detection mark and the other without any type of detection, for later analysis. In addition, a heat map was created containing the locations of the fish on the frames over time. The heat map is a matrix, where each cell represents a pixel batch of the area to be analyzed. The colors of the heat map indicate the intensity that a given event occurred in the batch. In this case, the aquarium (45 cm × 25 cm, width × depth) was used as a 10 × 10 matrix, dividing its surface into pixel lots, equivalent to 4.5 cm and 2.5 cm each lot. Each portion is represented by a cell in the heat map matrix and the intensity of the cell is defined by the number of fish head detections in a batch, from a set of frames in the video. After counting occurrences of fish detection in the flocks, the heat map is subjected to a low-pass filter (Gaussian filter) to soften the map image.

Figure 3.

Figure 3

Responses of zebrafish complex appetitive conditioning using two stimuli: red LED light and vibration. (A) Number of fish that were in the feeding behavior before the light was turned on. (B) Number of fish conditioned with red LED light stimulus during the attempts. (C) Number of fish in the food compartment before the vibracall stimulus is activated. (D) Number of fish conditioned with vibracall stimulus during the attempts. (E) Comparison of the number of fish conditioned by light and vibracall. (F) Top view of the tank referring to the conditioning area (red area: red LED and green area: vibracall). The horizontal lines of each group denote the mean ± SD and the asterisks on the brackets indicate statistical difference in comparison with the frequency of fish between the attempt and the control group by student t test (*p < 0.05; **p < 0.001, ***p < 0.0001).

Experiment 1: evaluation of simple conditioning with a single stimulus

For simple conditioning, fish (n = 11) had to associate a single light stimulus to the feeding period. The tank was adjusted to contain a divider that separated the food from the remaining space of the tank. Then, a red LED strip (spectrum ~ 663 nm) was turned on 30 s before the food was poured from the feeder, the red LED was located on the same side of the feeder in the tank. The conditioning of the zebrafish consisted of four daily sessions with an interval of 3 h during the biological experiment (the time was defined in order to obtain the same interval between all attempts). All experiments were established at the same time (8:00 am, 11:00 am, 2:00 pm and 5:00 pm) every day, to avoid any daytime effects, configured to the automatic conditioning system. The training took place at the time of feeding to reinforce the association with the stimulus. The result of laboratory procedures on the behavior of zebrafish was tested against the control group (undisturbed fish). The behavioral assessment of the fish consisted of intervals with two minutes of video recording at each stimulus, divided into four consecutive periods: 30 s before the light stimulus, 30 s during the light stimulus, 30 s during feeding and 30 s after the light stimulus was turned off. Simple training was established in just one day, containing four attempts at appetite conditioning.

Experiment 2: evaluation of complex conditioning with two stimuli

For complex conditioning, a new group of fish (n = 16) was subjected to conditioning containing two stimuli in the feeding period: light and vibracall. The tank was adjusted to contain a glass partition placed at the bottom of the aquarium to separate the two sides of the zebrafish food conditioning and to make access to the feeder more difficult. In this experiment, a vibracall and a red LED light were used. The red LED was located on the bottom of the aquarium, located on the right side, whereas the vibracall was located on the left side of the aquarium, positioned on the outside and at the bottom of the aquarium (see Fig. 1). Each stimulus corresponded to one side of the dump of food in the feeder, and the fish would need to know which color corresponded to the correct side of the feed at that time. Thus, two automatic feeders were adjusted to synchronize the feed with the light stimulus. The behavioral assessment of the fish in this training was analyzed for one minute of video recording at each stimulus, divided into four observatory periods: 20 s before the light stimulus, 15 s during the light stimulus, 15 s during feeding and 20 s after the stimulus was turned off. The complex training was established by 10 attempts for each stimulus, in alternate periods so that the fish did not learn the sequence of the stimuli. Fish that managed to stay close to the enclosure in a timely manner, were responding to stimuli at that time. Thus, the zebrafish was considered to be successfully conditioned when it was directed to the food arena during the light phase that preceded the feeding. And, all experiments were established at the same time (8 am, 11 am, 2 pm and 5 pm) automatically by the conditioning system, in order to avoid any daytime effects. The fish considered conditioned were only the fish that were in an area with a dimension of 12.5 cm × 22.5 in the corner corresponding to the stimulus (see Fig. 3F).

Experiment 3: behavioral modeling in conditioned fish

During complex conditioning (containing two stimuli), the polarization of the fish group during the established attempts was calculated to observe the change in the behavior of the group when they were stimulated in relation to the control group (not stimulated). In addition to the measurement of polarization, the fish were tracked, measuring the speed and the average distance of the fish traveled in the tank, thus, it was observed the level of change in the behavior of the fish and their interest in relation to the stimulus. The analyses were made only when the stimulus was lit, prior to feeding. In addition, for comparative purposes, we group the fish in different sizes 3, 6, 8, 11 and 16 to verify the behavior by different groups, at the moment the light was turned off.

Experiment 4: behavioral dynamics of zebrafish groups

To measure the influence of a fish's movement in relation to the other fish in the tank, a video set was used in which the fish were grouped in different sizes (3, 5, 8, 11 and 16 (see supplementary information S2)), freestyle, referring to experiment 2. In addition, videos referring to the conditioning of fish with two stimuli were used in all attempts. Thus, it was verified how the fish could influence the dynamics of the group or if only one fish could coordinate the same group during free swimming.

Control

For the control group, a third new group was formed by 16 zebrafish, the light and vibracall stimuli were offered to the tank in random periods, different from the feeding period, observing the behavior of the fish during the lit light stimulus. All procedures were performed in the same setting tank as the fish groups.

Statistical analysis

The conditioned response of the fish to the consecutive stimuli on the experimental day was compared. Statistical analyzes of the data were performed using SPSS software (Statistical Package for the Social Sciences, Inc., Chicago, IL, USA) version 25.0. Graphs were performed using PRISM8 (Graph-Pad) software. The Kolmogorov–Smirnov test was used to verify the normality of the data. The ones used for non-parametric statistics were: Mann–Whitney U-tests (MW), to compare groups of fish conditioned with a single stimulus; Friedman (H) tests were used to assess the progression of each group. The parametric statistics were used to compare the groups of fish stimulated with two stimuli (red light and vibracall), using the Student t test (Test t) to compare the number of fish located in the area defined for conditioning in the tank, in addition to speed, distance and polarization of groups of fish conditioned with two stimuli. One-Way ANOVA (F) was used to assess the progression of each group in all periods. For all tests, the alpha level was adjusted to 0.05. The response capacity of the zebrafish was measured as the average increase in the number of zebrafish in the food arena after the initiation of the light stimulus.

Results

Simple conditioning

In the first experiment, 11 adult zebrafish were used, conditioned with a single red stimulus during the feeding period. The experimental results of this study are shown in Fig. 2. In the first attempt, during the period of the LED light off (Fig. 2A), there was no association between the group of trained fish and the control group (MW: U = 418.5; p = 0.504). However, the position of the fish before the light stimulus differed in the other attempts in the control group (Friedman: H = 50.61; p < 0.001) and in the stimulated group (Friedman: H = 60.18; p < 0.001). The fish progressed a lot in other attempts of associative learning with a single stimulus (red LED) (Fig. 2B), managing to quickly associate the conditioned stimulus from the second attempt (30 s during the connected stimulus), between the stimulated group and the control group (trial 1: MW: U = 307.50; p = 0.025; trial 2: MW: U = 258.0; p = 0.003; trial 3: MW: U = 437.0; p = 0.843; trial 4: MW: U = 270.0; p = 0.007). The number of fish increased after the light signal during the trials; both in the stimulated group and in the control group (Friedman in the stimulated group: H = 71.76; p < 0.001; Friedman in the control group: H = 18.78; p < 0.001).

Figure 2.

Figure 2

Zebrafish simple appetite conditioning responses using one stimulus: Red LED light. (A) Number of fish that were in the eating behavior before the light was turned on, (B) while the light was on, (C) during the feeding period and (D) after the stimulus is turned off. The horizontal lines of each group denote the mean ± SD and the asterisks on the brackets indicate statistical difference in comparison to the frequency of fish between the attempt and the control group by Mann–Whitney U-test (*p < 0.05; * *p < 0.001, ***p < 0.0001).

In addition, initially, during the feeding period (Fig. 2C), most fish were unable to access the food compartment in a timely manner, however, as each attempt was made, the fish learned the route to access the food arena, passing under the divider demarcated at the precise time. There was a significant difference in the progression of conditioning attempts between the stimulated group and the control group (trial 1: MW: U = 69.00; p < 0.001; trial 2: MW: U = 117.5; p < 0.001; trial 3: MW: U = 298.50; p < 0.024; trial 4: MW: U = 65.0; p < 0.001). And there was a change in the behavior of the fish during the attempts, both in the stimulated group and in the control group (Friedman of the stimulated group: H = 88.72; p < 0.001; Friedman of the control group: H = 10.728; p < 0.013).

After the training ended, at each attempt, the fish remained in the reserved space waiting for more food, suggesting that the fish understood that there was a space reserved for food, and expected more food to be released after the light was turned off (Fig. 2D). Therefore, there was a significant difference between the stimulated group and the control group (trial 1: MW: U = 204,00; p < 0,001; trial 2: MW: U = 8,0; p < 0,001; trial 3: MW: U = 0,00; p < 0,001; trial 4: MW: U = 0,00; p < 0,001). In addition, there was a change in fish behavior during attempts for the stimulated group and the control group (Friedman in the stimulated group: H = 88.19; p < 0.001; Friedman in the control group: H = 20.96; p < 0.001).

Complex conditioning: red light and vibracall

In the second experiment, 16 new zebrafish were used for the training considered complex, where the fish should recognize two stimuli: LED light (red color) and vibration, in order to make a correct decision to go to the side of the corresponding tank (right or left side) to the triggered stimulus. There were 20 total attempts, alternating stimuli (red LED and vibracall) during training.

Before the red LED lights up (Fig. 3A), the behavior of the fish was observed for comparative purposes. There was a progression of behavior in a non-linear way between the initial attempt (trial 1: 6.5 ± 3.8 (mean ± SD), variation of 58.56%) and the last attempt (trial 10: 1.58 ± 0, 43 (mean ± SD), variation of 34.91%), t test = 14.696, df = 149, p < 0.0001, but there was a change in the behavior of the fish between all attempts (F9,13 = 218.0, p < 0.0001). However, during the period in which the red LED was on, the zebrafish showed a strong change in behavior between the stimulated group and the control group in all attempts (trial 1: test t = − 43.77, p < 0.0001; trial 2: test = − 51.51, p < 0.0001; trial 3: − 29.57, p < 0.0001; trial 4: test t = − 13.09, p < 0.0001; trial 5: − 28.25, p < 0.0001; trial 6: test t = − 17.08 p < 0.0001; trial 7: test t − 19.79, p < 0.0001; trial 8: test t = − 28.45, p < 0.0001; trial 9: test t = − 33.31, p < 0.0001; trial 10: test t = − 33.71, p < 0.0001), the fish associated the stimulus to the feeding period quickly, shifting to the space reserved for feeding (Fig. 3F, red area), showing that the behavior of the fish has changed in all attempts, having a significant progression during training (F9,13 = 11.55, p < 0.0001) (Fig. 3B).

The results of the tests with the vibration are shown in Fig. 3C and D. Before the vibration was triggered (Fig. 3C), the fish were only a few times in the food compartment (Fig. 3F, green area), with a non-linear behavior between the initial attempt (trial 1: 4.29 ± 1.44 (mean ± SD), variation of 33.55%) and the last attempt (trial 10: 8.22 ± 2.96 (mean ± SD), variation of 36.01%), t test = 15.424, df = 149, p < 0.0001, but there was a change in the behavior of the fish between all attempts (F9,13 = 180.0, p < 0.0001). In the period stimulated with activated vibration (Fig. 3D), the fish were able to associate the vibracall stimulus with the feeding period, with a significant change in the behavior of the stimulated fish in relation to the control group in all attempts (trial 1: test t = 7.69, p < 0.0001; trial 2: test = − 23.50, p < 0.0001; trial 3: − 10.97, p < 0.0001; trial 4: test t = 16.03, p < 0.0001; trial 5: 7.43, p < 0.0001; trial 6: test t = − 9.85 p < 0.0001; trial 7: test t − 23.38, p < 0.0001 ; trial 8: test t = − 14.13, p < 0.0001; trial 9: test t = -37.08, p < 0.0001; trial 10: test t = − 10.20, p < 0, 0001). In all training periods, during the triggered stimulus, there was a significant progression in the behavior of the fish (F9,13 = 236.5, p < 0.0001).

It is observed that the zebrafish learned to associate the red light stimulus more quickly than the vibration stimulus (Fig. 3E). There was a strong significant difference in all trials (trial 1: test t = 75.92, p < 0.0001; trial 2: test = 28.89, p < 0.0001; trial 3: 10.01, p < 0.0001; trial 4: test t = 28.39, p < 0.0001; trial 5: 25.05, p < 0.0001; trial 6: test t = 33.28 p < 0.0001; trial 7: test t = 7.36, p < 0.0001; trial 8: test t = 27.79, p < 0.0001; trial 9: test t = 29.87, p < 0.0001; trial 10: test t = 21.21, p < 0.0001). In addition, the behavior of the fish appeared to be more stable in all attempts while the light was on (mean ± SD: 11.67 ± 0.98, variation of 8.45%) than stimulation by vibracall (mean ± SD: 5.39 ± 2.74, 50.76% change).

Change in the behavior of fish conditioned with two stimuli

The degree of coordination of the zebrafish group was measured to quantify the intensity of the parallel orientation of the fish school. In all attempts at conditioning using the red light stimulus, we found a greater polarity between the zebrafish groups stimulated in relation to the control group (trial 1: test t = 3.21, p = 0.002; trial 2: test = 1.077, p = 0.283; trial 3: 11.76, p < 0.0001; trial 4: test t = 10.47, p < 0.0001; trial 5: t = 2.10, p = 0.037; trial 6: test t = 7.59 p < 0.0001; trial 7: test t = 1.92, p = 0.057; trial 8: test t = 7.81, p < 0.0001; trial 9: test t = 10.50, p < 0.0001; trial 10: test t = 4.41, p < 0.0001) (Fig. 4A). However, the polarization of the fish during the connected vibracall seemed to be more variable than in the red stimulus. In some trial attempts there were no significant differences between the stimulated group and the control group (trial 6: test t = − 1.13, p > 0.05; trial 7: test t = 0.757, p > 0.05) (Fig. 4B).

Figure 4.

Figure 4

Zebrafish group behavior responses stimulated with red LED light and vibration. (A) Average polarization of the zebrafish groups during attempts at conditioning with red light and control group. (B) Average polarization of the zebrafish groups during attempts at conditioning with vibracall and control group. (C) Average speed covered by the zebrafish groups during conditioning with red light and control group. (D) Average speed traveled by the zebrafish groups during conditioning with vibracall and control group. (E) Relation of the distance traveled between the groups of fish stimulated with light, vibracall and control. The horizontal lines of each group denote the mean ± SD and the asterisks on the brackets indicate statistical difference in comparison with the frequency of fish between the attempt and the control group by student t test (*p < 0.05; **p < 0.001, ***p < 0.0001).

Fish stimulated with the red LED stimulus were faster in all conditioning attempts compared to the unstimulated group (trial 1: test t = 24.01, p < 0.0001; trial 2: test = 25.46, p < 0.0001; trial 3: 23.64, p < 0.0001; trial 4: test t = 16.022, p < 0.0001; trial 5: t = 18.39, p < 0.0001; trial 6: test t = 19.79 p < 0.0001; trial 7: test t = 19.60, p < 0.0001; trial 8: test t = 24.52, p < 0.0001; trial 9: test t = 25.39, p < 0.0001; trial 10: test t = − 5.26, p < 0.0001), the zebrafish were able to access the area marked for fast-progress feeding, showing that the fish understood that it was the period prior to feeding (F9,13 = 11.11, p < 0.0001) (Fig. 4C). However, the fish stimulated by vibracall showed some instabilities in the speed covered in relation to the control group, and in some attempts they did not present significant differences (trial 5: test t = − 0.028, p = 0.978; trial 9: − 1.87, p = 0.063), but there was a change in behavior during all attempts (F (9, 1490) = 70.03, p < 0.0001) (Fig. 4D). In addition, stimulated fish traveled more through the tank during stimulated conditioning attempts compared to fish in the control group (F3,36 = 53.48, p < 0.0001) (Fig. 4E).

Then, we tested how the size of the fish group (N = 3, 6, 8 and 11, 16) affects the behavior inside the tank (Fig. 5A). We noticed that the polarization decreases as the groups are increased, during the free swim. Thus, the larger groups showed low and rapidly variable polarization (group with N = 3, mean ± SD: 0.466 ± 0.2643, variation of 56.69%; group with N = 6, mean ± SD: 0.427 ± 0.18 , variation of 42.73%; group with N = 8, mean ± SD: 0.288 ± 0.132, variation of 45.81%; group with N = 11, mean ± SD: 0.262 ± 0.174, variation of 66.64%, group with N = 16, mean ± SD: 0.226 ± 0.11, variation of 52.15%), with significant differences as the group of fish increased in size (F4,3 = 204.6 , p < 0.0001). Figure 5B–F show the zebrafish freestyle traces in different groups, respectively. Note that fish in smaller groups have firmer clusters and more crowded swimming.

Figure 5.

Figure 5

Polarization in groups (N = 3, 6, 8, 11 and 16 fishes) of different sizes of zebrafish. The horizontal lines of each group denote the mean ± SD and the asterisks on the brackets indicate statistical difference in comparison with the frequency of fish between the attempt and the control group by student t test (*p < 0.05; **p < 0.001, ***p < 0.0001).

Exploration in the tank

The heat map developed based on the spatial position of the fish in the periods of complex training (before and during the connected stimuli), showed the fish's intention during the attempts. For comparative purposes, in Fig. 6, there are the heat maps of the red light training (feeder positioned on the right side of the aquarium, Fig. 6B, the vibracall (feeder positioned on the left side of the aquarium, Fig. 6D and the control groups (Fig. 6A,C), corresponding to attempts 1 to 10. It is observed that the fish changed the behavior during the consecutive attempts. Thus, during the period of the red light on Fig. 6B, most fish moved to the right side waiting for food. However, in the period when the vibracall was initially activated, the fish seemed to swim more confused to position themselves on the side corresponding to the stimulus (left side, Fig. 6D, and only in attempt 7 did the fish learn the correct location to wait for food.

Figure 6.

Figure 6

Thermal maps of the zebrafish’s location during complex conditioning (red and vibracall). The heat map contains records of the zebrafish’s location during training. At the moment when the stimulus was triggered, most fish moved to the delimited area of each stimulus, being the right side for the red LED light stimulus and the left side for the vibracall stimulus. (A) location of the fish before the red LED light was on, (B) location of the fish while the red LED light was on, (C) location of the fish before the vibracall stimulus on and D) location of the fish during the vibracall stimulus on.

Interaction network in zebrafish

To evaluate the processing of information distributed among the fish in the tank, mutual information was used, the difference in the angle of the fish's head during the movement between the frames. Figure 7 shows the behavioral dynamics of the school, the arrow between the nodes indicates that the fish triggered a locomotor change, and the thickness of this arrow is the value of the measure of mutual information between a pair of fish, measured by the frequency of interactions between fish. Thus, the most active fish influence the behavior change of the least active fish. It is observed that the groups with larger quantities of fish seemed to be more stable in the behavior change (groups with 8 and 11 fish, Fig. 7C,D), while the groups with smaller quantities of fish presented a greater change in behavior (Fig. 7A,B). In addition, at least one fish in each group changes the interaction with the other fish, which can be considered the dominant fish in the school. Evaluating the communication of the group of fish during the conditioned training (group with 16 fish, supplementary file), it was observed that during the conditioning period by the red light, the fish seemed to have more stable interactions in relation to the conditioning period with the vibracall, suggesting that more fish influenced the dynamics of the behavior of others to associate the stimulus with food (see Figure S2).

Figure 7.

Figure 7

Network of zebrafish shoal interactions. Mutual information was measured from the difference in the angle of the fish's head during movement in the video. Two arrows connect two fish during locomotor activity, being the response of the influence of one fish to another target fish. The line thickness represents the frequency of interactions. Frequency of interactions of the group with three fish (A), six fish (B), eight fish (C) and eleven fish (D).

Discussion

In this study, a fully automatic behavioral assessment system was developed to measure the zebrafish response in two behavioral perceptions: simple and complex conditioning. The environment automatically delivered stimuli and food during a zebrafish conditioning task.

In addition, the developed algorithm verified the videos captured from the established task, analyzing the fish individually and in groups, presenting an assessment of the behavioral dynamics of the conditioned fish. Although there are some automatic zebrafish conditioning systems57,4852, it is important to develop adjustable equipment for the automated conditioning protocol. Usually, several behavioral analysis algorithms are developed independently, such as the available tracking software4,12,2531.

After processing the data, our results demonstrate that the zebrafish learned quickly in simple conditioning, which made an effective association between a conditioned light stimulus and a food reward. In this way, the zebrafish was able to learn from the second experimental attempt at appetizing conditioning (Fig. 2). However, another survey with similar devices showed that the zebrafish learned with at least five daily training attempts7. In the most complex assessment, the zebrafish encountered difficulties in some attempts with the vibracall stimulus during the association of the stimulus triggered to the corresponding compartment. However, they were successful in relating the stimulus to a red LED (Fig. 3). Studies show that zebrafish are able to differentiate colors13,17,19, and here, that the zebrafish can learn properly from red LED light stimuli.

Previous studies have shown that zebrafish can form double associations (stimulus and environment). In this, the fish can associate both the triggered stimulus time with a food reward and between the reward and its location7,26,51. In this way, we divided the aquarium area into four regions, two areas being considered for conditioning (Fig. 3F). This strategy was used to avoid bias in the analysis of the results. Furthermore, it is still not entirely clear whether the zebrafish formed a cognitive map of the environment or just formed associations between a limited space for food (such as the area of the food compartment) and the location of the feeder7,26. In this study, in simple conditioning, the fish started to move constantly to the delimited arena, from the second attempt, waiting for more food (Fig. 3). In the most complex training, however, the fish quickly associated to the light stimuli in all attempts, having more difficulties with the vibracall stimulus, as shown in the thermal map (Fig. 6).

It was also observed that the zebrafish group that received the associative stimulus had greater polarity in relation to the control group (Fig. 4A,B). The fish were agitated during the connected stimulus and quickly headed for the food conditioning area, so the group movement coordination was firmer. Although the zebrafish has different polarization distributions for each group of fish formed, these groups can be organized as “shoals”, which are only aggregates of individuals, or “schools”, where the aggregates of individuals have a synchronized and highly polarized movement.

Other characteristics of the movement of the fish group can vary between shoals and schools, with the zebrafish school being faster and less dense compared to the zebrafish shoals52. In that study, it was observed that polarization was stronger in stimulated groups than in control groups. In addition, the groups with smaller amounts of fish showed greater polarization, the fish were swimming in the same difference and clusters (Fig. 5). The increase in the group may influence the dynamics of the fish school. Thus, in other models of collective movement, the polarization of a group takes into account its size or density52,53.

When analyzing the dynamics of the interaction network between the fish during the conditioning, it was noticed that the vibracall stimulus left the fish more agitated and consequently exchanged more information, influencing the dynamics of the movements of the fish school (Fig. 7 and Supplementary Information S2). Thus, it was noticed that the most active fish influence the change in the behavior of less active fish. And that larger groups of fish seemed to be more stable in changing their behavior.

Automated zebrafish monitoring offers advantages for more accurate behavioral analysis compared to manual systems, ensuring more controlled work and without human intervention (See Video 1, Supplementary File). The proposed system can clearly assess the interest and behavioral dynamics of fish individually and organized in groups. Thus, our system allows for the monitoring of fish in conditioned and free movements, reducing human invasiveness in research. In addition, it is a fully automatic system that can be adjusted according to a chosen protocol. Here, we chose conditioning by two stimuli, but it is easily adaptable to other approaches, or approaches that take into account video processing and behavior analysis, being established in real time or after training. Some automatic control tools may be limited to experiments and not adjustable for other experiments. In this system, we can adjust for various experiences such as assessing behavior for toxicity, sleep, learning by aversion and several other behaviors that require video processing. In addition, this tool can be used for other species of smaller fish, however it will be necessary to train YOLOv2 with data from new fish.

Conclusion

A new automated system for real-time assessment of zebrafish conditioning was presented here. It was noticed that the zebrafish are able to learn with just two consecutive attempts. There was a difference in learning in relation to the red led light and vibracall stimuli, where fish learned more easily when they were stimulated by red LED light. Conditioned fish showed high polarization in relation to unstimulated fish. In addition, the higher polarization is related to smaller groups of fish, showing that the group dynamics are more stable and coordinated. It is believed that the methodology used will serve for future evaluations of behavioral applications of zebrafish research, not only for conditioning fish, but for other behavioral analyzes such as toxicity, sleep, aversion learning and several other behaviors that demand the processing of video, adjusting the evaluation protocol. In addition, this tool can be used for other species of smaller fish, however it will be necessary to train YOLOv2 with data from new fish.

Supplementary Information

Author contributions

M.O.B. idealized and put the research into practice, wrote the manuscript and analyzed the data. F.G.B., developed the experimental platform and the data processing algorithm. D.O.D., developed the experimental platform, helped in the development of the image processing algorithm and analyzed the data. D.L.S., helped to develop the experimental physical platform. S.R., analyzed the data and revised the manuscript. G.C.S, contributed to the biological discussions of the experiment and fish behavior. A.K.B. evaluated the data and revised the manuscript. All authors reviewed the manuscript.

Funding

This work was funded by the Brazilian agencies: Coordenação de Aperfeiçoamento de Pessoal de Nível Superior—CAPES and Fundação de Amparo à Pesquisa e ao Desenvolvimento Científico e Tecnológico do Maranhão—FAPEMA.

Data availability

Source data are provided with this paper (Supplementary information).

Competing interests

The authors declare no competing interests.

Footnotes

Publisher's note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary Information

The online version contains supplementary material available at 10.1038/s41598-021-87502-6.

References

  • 1.Pérez-Escudero A, Vicente-Page J, Hinz RC, Arganda S, de Polavieja GG. idTracker: tracking individuals in a group by automatic identification of unmarked animals. Nat. Methods. 2014;11:743–748. doi: 10.1038/nmeth.2994. [DOI] [PubMed] [Google Scholar]
  • 2.Guttridge TL, Myrberg AA, Porcher IF, Sims DW, Krause J. The role of learning in shark behaviour. Fish Fish. 2009;10:450–469. doi: 10.1111/j.1467-2979.2009.00339.x. [DOI] [Google Scholar]
  • 3.Magurran AE, Higham A. Information transfer across fish shoals under predator threat. Ethology. 1988;78:153–158. doi: 10.1111/j.1439-0310.1988.tb00226.x. [DOI] [Google Scholar]
  • 4.Chacon DM, Luchiari AC. A dose for the wiser is enough: the alcohol benefits for associative learning in zebrafish. Prog. Neuro-Psychopharmacol. Biol. Psychiatry. 2014;53:109–115. doi: 10.1016/j.pnpbp.2014.03.009. [DOI] [PubMed] [Google Scholar]
  • 5.Parker MO, et al. Development and automation of a test of impulse control in zebrafish. Front. Syst. Neurosci. 2013;7:65. doi: 10.3389/fnsys.2013.00065. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Parker MO, Millington ME, Combe FJ, Brennan CH. Development and implementation of a three-choice serial reaction time task for zebrafish (Danio rerio) Behav. Brain Res. 2012;227:73–80. doi: 10.1016/j.bbr.2011.10.037. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Doyle JM, et al. A simple automated system for appetitive conditioning of zebrafish in their home tanks. Behav. Brain Res. 2017;317:444–452. doi: 10.1016/j.bbr.2016.09.044. [DOI] [PubMed] [Google Scholar]
  • 8.Bilotta J, Risner ML, Davis EC, Haggbloom SJ. Assessing appetitive choice discrimination learning in zebrafish. Zebrafish. 2005;2:259–268. doi: 10.1089/zeb.2005.2.259. [DOI] [PubMed] [Google Scholar]
  • 9.Manabe K, Dooling RJ, Takaku S. An automated device for appetitive conditioning in zebrafish (Danio rerio) Zebrafish. 2013;10:518–523. doi: 10.1089/zeb.2012.0776. [DOI] [PubMed] [Google Scholar]
  • 10.Engeszer RE, Patterson LB, Rao AA, Parichy DM. Zebrafish in the wild: a review of natural history and new notes from the field. Zebrafish. 2007;4:21–40. doi: 10.1089/zeb.2006.9997. [DOI] [PubMed] [Google Scholar]
  • 11.Parker MO, et al. The utility of zebrafish to study the mechanisms by which ethanol affects social behavior and anxiety during early brain development. Prog. Neuro-Psychopharmacol. Biol. Psychiatry. 2014;55:94–100. doi: 10.1016/j.pnpbp.2014.03.011. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Sison M, Gerlai R. Associative learning in zebrafish (Danio rerio) in the plus maze. Behav. Brain Res. 2010;207:99–104. doi: 10.1016/j.bbr.2009.09.043. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Avdesh A, et al. Evaluation of color preference in zebrafish for learning and memory. J. Alzheimer’s Dis. 2012;28:459–469. doi: 10.3233/JAD-2011-110704. [DOI] [PubMed] [Google Scholar]
  • 14.Fero K, Yokogawa T, Burgess HA. The behavioral repertoire of larval zebrafish. NeuroMethods. 2011;52:249–291. doi: 10.1007/978-1-60761-922-2_12. [DOI] [Google Scholar]
  • 15.Tegelenbosch RAJ, Noldus LPJJ, Richardson MK, Ahmad F. Zebrafish embryos and larvae in behavioural assays. Behaviour. 2012;149:1241–1281. doi: 10.1163/1568539X-00003020. [DOI] [Google Scholar]
  • 16.De Marco RJ, Groneberg AH, Yeh CM, Treviño M, Ryu S. The behavior of larval zebrafish reveals stressor-mediated anorexia during early vertebrate development. Front. Behav. Neurosci. 2014;8:367. doi: 10.3389/fnbeh.2014.00367. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Spence R, Smith C. Innate and learned colour preference in the zebrafish, Danio rerio. Ethology. 2008;114:582–588. doi: 10.1111/j.1439-0310.2008.01515.x. [DOI] [Google Scholar]
  • 18.Mueller KP, Neuhauss SCF. Automated visual choice discrimination learning in zebrafish (Danio rerio) J. Integr. Neurosci. 2012;11:73–85. doi: 10.1142/S0219635212500057. [DOI] [PubMed] [Google Scholar]
  • 19.Roy T, et al. Color preferences affect learning in zebrafish, Danio rerio. Sci. Rep. 2019;9:14531. doi: 10.1038/s41598-019-51145-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Luchiari AC, Chacon DMM. Physical exercise improves learning in zebrafish, Danio rerio. Behav. Process. 2013;100:44–47. doi: 10.1016/j.beproc.2013.07.020. [DOI] [PubMed] [Google Scholar]
  • 21.Zeddies DG, Fay RR. Development of the acoustically evoked behavioral response in zebrafish to pure tones. J. Exp. Biol. 2005;208:1363–1372. doi: 10.1242/jeb.01534. [DOI] [PubMed] [Google Scholar]
  • 22.Bhandiwad AA, Zeddies DG, Raible DW, Rubel EW, Sisneros JA. Auditory sensitivity of larval zebrafish (Danio rerio) measured using a behavioral prepulse inhibition assay. J. Exp. Biol. 2013;216:3504–3513. doi: 10.1242/jeb.087635. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Cervi AL, Poling KR, Higgs DM. Behavioral measure of frequency detection and discrimination in the zebrafish, Danio rerio. Zebrafish. 2012;9:1–7. doi: 10.1089/zeb.2011.0720. [DOI] [PubMed] [Google Scholar]
  • 24.Neo YY, et al. Behavioral changes in response to sound exposure and no spatial avoidance of noisy conditions in captive zebrafish. Front. Behav. Neurosci. 2015;9:28. doi: 10.3389/fnbeh.2015.00028. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Al-Imari L, Gerlai R. Sight of conspecifics as reward in associative learning in zebrafish (Danio rerio) Behav. Brain Res. 2008;189:216–219. doi: 10.1016/j.bbr.2007.12.007. [DOI] [PubMed] [Google Scholar]
  • 26.Karnik I, Gerlai R. Can zebrafish learn spatial tasks? An empirical analysis of place and single CS–US associative learning. Behav. Brain Res. 2012;233:415–421. doi: 10.1016/j.bbr.2012.05.024. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Sison M, Gerlai R. Associative learning performance is impaired in zebrafish (Danio rerio) by the NMDA-R antagonist MK-801. Neurobiol. Learn. Mem. 2011;96:230–237. doi: 10.1016/j.nlm.2011.04.016. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Bai Y-X, et al. Automatic multiple zebrafish tracking based on improved HOG features. Sci. Rep. 2018;8:10884. doi: 10.1038/s41598-018-29185-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Xu Z, Cheng XE. Zebrafish tracking using convolutional neural networks. Sci. Rep. 2017;7:42815. doi: 10.1038/srep42815. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Qian Z-M, Cheng XE, Chen YQ. Automatically detect and track multiple fish swimming in shallow water with frequent occlusion. PLoS ONE. 2014;9:e106506. doi: 10.1371/journal.pone.0106506. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Wang SH, Cheng XE, Qian Z-M, Liu Y, Chen YQ. Automated planar tracking the waving bodies of multiple zebrafish swimming in shallow water. PLoS ONE. 2016;11:e0154714. doi: 10.1371/journal.pone.0154714. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Thomson JS, Al-Temeemy AA, Isted H, Spencer JW, Sneddon LU. Assessment of behaviour in groups of zebrafish (Danio rerio) using an intelligent software monitoring tool, the chromatic fish analyser. J. Neurosci. Methods. 2019;328:108433. doi: 10.1016/j.jneumeth.2019.108433. [DOI] [PubMed] [Google Scholar]
  • 33.Deakin AG, et al. Automated monitoring of behaviour in zebrafish after invasive procedures. Sci. Rep. 2019;9:9042. doi: 10.1038/s41598-019-45464-w. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.Bossé GD, Peterson RT. Development of an opioid self-administration assay to study drug seeking in zebrafish. Behav. Brain Res. 2017;335:158–166. doi: 10.1016/j.bbr.2017.08.001. [DOI] [PubMed] [Google Scholar]
  • 35.Baker MR, Wong RY. Contextual fear learning and memory differ between stress coping styles in zebrafish. Sci. Rep. 2019;9:9935. doi: 10.1038/s41598-019-46319-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Vignet C, et al. Systematic screening of behavioral responses in two zebrafish strains. Zebrafish. 2013;10:365–375. doi: 10.1089/zeb.2013.0871. [DOI] [PubMed] [Google Scholar]
  • 37.Zarantoniello M, et al. Zebrafish (Danio rerio) physiological and behavioural responses to insect-based diets: a multidisciplinary approach. Sci. Rep. 2020;10:10648. doi: 10.1038/s41598-020-67740-w. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.de Almeida Moura C, da Silva Lima JP, Silveira VAM, Miguel MAL, Luchiari AC. Time place learning and activity profile under constant light and constant dark in zebrafish (Danio rerio) Behav. Process. 2017;138:49–57. doi: 10.1016/j.beproc.2017.02.015. [DOI] [PubMed] [Google Scholar]
  • 39.Percie du Sert N, et al. The ARRIVE guidelines 2.0: updated guidelines for reporting animal research. PLOS Biol. 2020;18:e3000410. doi: 10.1371/journal.pbio.3000410. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40.You M-S, et al. Red LED light treatment promotes cognitive learning through up-regulation of trpm4 in zebrafish. J. Photochem. Photobiol. B Biol. 2020;213:112073. doi: 10.1016/j.jphotobiol.2020.112073. [DOI] [PubMed] [Google Scholar]
  • 41.Redmon, J. & Farhadi, A. YOLO9000: better, faster, stronger. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) 2017-Janua, 6517–6525 (IEEE, 2017).
  • 42.Liu Z, Chen Z, Li Z, Hu W. An efficient pedestrian detection method based on YOLOv2. Math. Probl. Eng. 2018;2018:1–10. [Google Scholar]
  • 43.de Oliveira Barreiros M, de Oliveira Dantas D, de Oliveira Silva LC, Ribeiro S, Barros AK. Zebrafish tracking using YOLOv2 and Kalman filter. Sci. Rep. 2021;11:3219. doi: 10.1038/s41598-021-81997-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44.Romero-Ferrero F, Bergomi MG, Hinz RC, Heras FJH, de Polavieja GG. Idtracker.ai: tracking all individuals in small or large collectives of unmarked animals. Nat. Methods. 2019;16:179–182. doi: 10.1038/s41592-018-0295-5. [DOI] [PubMed] [Google Scholar]
  • 45.Butail S, Ladu F, Spinello D, Porfiri M. information flow in animal–robot interactions. Entropy. 2014;16:1315–1330. doi: 10.3390/e16031315. [DOI] [Google Scholar]
  • 46.Niizato T, et al. Finding continuity and discontinuity in fish schools via integrated information theory. PLoS ONE. 2020;15:e0229573. doi: 10.1371/journal.pone.0229573. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47.Crosato E, et al. Informative and misinformative interactions in a school of fish. Swarm Intell. 2018;12:283–305. doi: 10.1007/s11721-018-0157-x. [DOI] [Google Scholar]
  • 48.de Chazal P, Penzel T, Heneghan C. Automated detection of obstructive sleep apnoea at different time scales using the electrocardiogram. Physiol. Meas. 2004;25:967–983. doi: 10.1088/0967-3334/25/4/015. [DOI] [PubMed] [Google Scholar]
  • 49.Manabe K, Dooling RJ, Takaku S. Differential reinforcement of an approach response in zebrafish (Danio rerio) Behav. Process. 2013;98:106–111. doi: 10.1016/j.beproc.2013.05.013. [DOI] [PubMed] [Google Scholar]
  • 50.Cerutti DT, Jozefowiez J, Staddon JER. Rapid, accurate time estimation in zebrafish (Danio rerio) Behav. Process. 2013;99:21–25. doi: 10.1016/j.beproc.2013.06.007. [DOI] [PubMed] [Google Scholar]
  • 51.Braubach OR, Wood H-D, Gadbois S, Fine A, Croll RP. Olfactory conditioning in the zebrafish (Danio rerio) Behav. Brain Res. 2009;198:190–198. doi: 10.1016/j.bbr.2008.10.044. [DOI] [PubMed] [Google Scholar]
  • 52.Miller N, Gerlai R. From schooling to shoaling: patterns of collective motion in zebrafish (Danio rerio) PLoS ONE. 2012;7:e48865. doi: 10.1371/journal.pone.0048865. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 53.Becco C, Vandewalle N, Delcourt J, Poncin P. Experimental evidences of a structural and dynamical transition in fish school. Phys. A Stat. Mech. Appl. 2006;367:487–493. doi: 10.1016/j.physa.2005.11.041. [DOI] [Google Scholar]

Associated Data

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

Supplementary Materials

Data Availability Statement

Source data are provided with this paper (Supplementary information).


Articles from Scientific Reports are provided here courtesy of Nature Publishing Group

RESOURCES