{'fraction_non_alphanumeric': 0.03198672249255026, 'fraction_numerical': 0.015125796839047943, 'mean_word_length': 5.033682294037324, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Cohesion, order and information flow in the collective motion of mixed-species shoals

Despite the frequency with which mixed-species groups are observed in nature, studies of collective behaviour typically focus on single-species groups. Here, we quantify and compare the patterns of interactions between three fish species, threespine sticklebacks (Gasterosteus aculeatus), ninespine sticklebacks (Pungitius pungitius) and roach (Rutilus rutilus) in both single- and mixed-species shoals in the laboratory. Pilot data confirmed that the three species form both single- and mixed-species shoals in the wild. In our laboratory study, we found that single-species groups were more polarized than mixed-species groups, while single-species groups of threespine sticklebacks and roach were more cohesive than mixed shoals of these species. Furthermore, while there was no difference between the inter-individual distances between threespine and ninespine sticklebacks within mixed-species groups, there was some evidence of segregation by species in mixed groups of threespine sticklebacks and roach. There were differences between treatments in mean pairwise transfer entropy, and in particular we identify species-differences in information use within the mixed-species groups, and, similarly, differences in responses to conspecifics and heterospecifics in mixed-species groups. We speculate that differences in the patterns of interactions between species in mixed-species groups may determine patterns of fission and fusion in such groups.


Introduction
Group-living is a widespread strategy among animals. For many grouping species, grouping can increase the efficiency of foraging, or anti-predator behaviour. Less widespread benefits include access to mates, resource conservation and improved navigation (see [1,2]) for reviews of the benefits of grouping). Although most discussions of grouping behaviour in animals focus on single-species assemblages, mixed-species groups are a common phenomenon in nature [3]. Examples of mixed-species groups have been recorded in songbirds [3][4][5][6][7][8][9][10][11], in artiodactyls, primates (including mixed-species groups of ungulates and primates) and in other mammalian orders (reviewed by Stensland et al. [12]) and in fishes [13][14][15][16]. In order to differentiate between simple, resource-based assemblages of multiple species and true mixed-species groups, we follow Goodale et al. [17] and define mixed-species groups as occurring where members of different species simultaneously associate and interact with both conspecifics and heterospecifics. Associating with heterospecifics in a mixed-species group can provide individuals with significant benefits. These potentially include basic risk-dilution benefits of associating with others, improved predator detection capabilities in mixed-species groups [18,19], and increasing foraging opportunities based either on the spread of information on foraging opportunities among species [20,21], or facilitation effects, such as the flushing of the prey of one species by the activity of another [6]. In some cases, associating with heterospecifics can reduce the competition costs associated with foraging in groups due to niche divergence between species; however, the competition costs between species are often asymmetric [22,23]. Broadly speaking, mixed-species groups do tend to be formed by species that exploit similar resources and which have overlap in locomotion and/or activity patterns [24 -26]. Mixed-species groups are often skewed in terms of the relative numbers of different species that comprise them. Studying mixed-species fish shoals in Canadian lakes, Hoare et al. [14,15] reported groups consisting of one or two numerically dominant core species accompanied by a small number of representatives of minority species.
The coherent and synchronous movements of animal groups, often referred to as collective motion, emerges from the repeated interactions of group members [27 -29]. To date, these interactions have been considered almost exclusively in the context of single-species aggregations. To develop a deeper understanding of mixed-species groups, it is important that we examine how conspecifics and heterospecifics interact within mixed-species groups and indeed whether single-species groups are characteristically different from mixed-species groups, particularly in terms of two key descriptors of collective motion, cohesion and order. Group cohesion describes the distance between individuals within the group, while order can refer to the alignment of individuals across the group when it is measured as polarization. Those groups that express high group cohesion and polarization may move more efficiently and maximize the benefits of grouping for individual group members [30].
In addition to these measures, a particular feature of collective behaviour is the propagation of information across a group that occurs when a single individual initiates a change in direction and, with some small time delay, its near neighbours respond by adapting their trajectories to follow suit. Gradually, the information about the change in direction propagates throughout the group until all group members are following the new trajectory. Information theoretic measures are increasingly being used to provide a more rigorous framework for the examination of information transfer in biological systems. In particular, transfer entropy quantifies the reduction in uncertainty in predicting the updates of one time series (in this case, the temporal sequence of spatial movements of an animal) that can be achieved by knowing the past values of a second time series (a similar sequence derived from a second individual animal). Effectively, it models the directed effect of one time series (the source) on another (the target), from which we can infer the information flow from source to target [31,32]. Transfer entropy has previously been applied to analyse information flow in models [33] and data collected from collective interactions, including in bats [34], soldier crabs [35], fish [36,37], insects [38], robotic soccer players [39] and indeed in interactions between fish and robots [40]. Such analyses have revealed, for example, strong wave-like sequences of information propagating across a group as the group undertakes collective turns [33,37].
We examined first, the occurrence of mixed-species shoals of fish in the wild among three common shoaling species, the threespine sticklebacks (Gasterosteus aculeatus), ninespine sticklebacks (Pungitius pungitius) and roach (Rutilus rutilus). We then subsequently examined collective motion within singlespecies and mixed-species shoals under controlled conditions, in an arena. Since single-species groups are most likely to comprise individuals with similar motivations and patterns of activity (e.g. [26]), we predicted that, compared to mixed-species shoals, single-species shoals would be more cohesive and polarized with higher levels of information transfer among group members. Furthermore, threespine sticklebacks are more similar to ninespine sticklebacks in appearance and ecology than they are to roach, which might act to promote association between the stickleback species to a greater extent than between the sticklebacks and the roach. Based on this, we further predicted that mixed-species shoals comprising two stickleback species would be more cohesive and polarized with greater information transfer than mixed-species shoals comprising stickleback and roach.

Field survey
We performed a pilot field survey in July 2016 to determine whether the fish at our study site (a stretch of the Great Eau, a river in the East Lindsey district of Lincolnshire, UK, (53822'10.83 00 N, 0811'21.96 00 E)) form into mixed-species shoals. During summer and autumn periods at this site, there are large numbers of juveniles of three shoaling species of fish: threespine sticklebacks [41], ninespine sticklebacks and roach. To perform our survey, we used four GoPro Hero3þ cameras, each fixed to aluminium tubing, which allowed the camera to sit on the river bed, at a depth of approximately 1 m. The cameras were spaced along the river, approximately 8 m apart. In total, we filmed for 6 h per camera, spread over 2 days (24 h of video footage in total). From the resulting video, we analysed 1 min of film from each camera every 20 min. We synchronized the cameras so that we used the same minute in time, thus reducing the risk of counting the same shoals more than once. We allowed 20 min between our 1 min sampling periods to allow for the fish to move on, or for shoals to break up and reform. Although we readily acknowledge that this method cannot exclude the possibility of pseudoreplication, it was sufficient for the purpose of determining the presence or the absence of naturally occurring single-and mixed-species shoals. From the film, we noted each shoal that passed the camera (where a shoal is defined as an aggregation of two or more fish, moving in the same or similar direction and where each individual is within approximately four body lengths of its nearest neighbour (following [42]), and recorded the number and species of fish in each shoal.

Experimental studies in an arena
In October 2016, we returned to the Great Eau to conduct experiments on single-and mixed-species shoals of the three species of fish described.

Study animals
We collected our three species of fish using large handnets from the Great Eau at 53819 0 016 N, 0808 0 16 E. We measured water temperatures at the capture sites with a digital thermometer (Traceable Digital Thermometer, Control Company, Friendswood, TX, USA). The fish were transferred to nearby holding facilities, where each species was maintained separately in round plastic containers (0.9 m diameter, 0.25 m water depth). Fish were held for 16-20 h before they were used in experiments. The temperature of the water in the vats was ambient and ranged from 14.88C to 15.48C, which is similar to our measurements of the river at the time of capture (14.68C to 14.98C). The fish were not fed while in captivity. They were released at their site of capture following completion of the experiments, approximately 24 h following their initial capture.

Experimental protocol
All experiments were conducted in a circular, white plastic arena (0.9 m in diameter), filled to a depth of 16 cm. We placed a circular white plastic bowl (0.32 m in diameter) in the centre of the arena to create an annulus. The arena was lit using two 10 W LED strips positioned at either side of the arena. We used white plastic sheeting to screen the arena and thereby minimize external disturbance to the experimental animals. We used a Panasonic Lumix GH4 positioned 1.2 m above the arena to film the experiments at a resolution of 1080p and 50 fps.
At the beginning of each trial, we captured six fish from our holding tanks and transferred them in a 0.5 l vessel to the experimental arena. The fish were size matched by eye prior to each trial. The fish were then allowed to move freely throughout the arena for the following 8 min. The fish were then removed and replaced with six new fish. Each fish was used once. We conducted five separate treatments rsos.royalsocietypublishing.org R. Soc. open sci. 5: 181132 consisting of three single-species shoaling treatments (threespine sticklebacks '3SS'; ninespine sticklebacks '9SS'; roach 'R') and two mixed-species shoaling treatments, using three individuals of each of two species (threespine sticklebacks with ninespine sticklebacks '3SS-9SS', and threespine sticklebacks with roach '3SS-R'). We carried out six replicates of each treatment, a total of 30 replicates. At the end of each trial, all of the fish were measured from still photographs taken following each replicate. Across all groups, body length was 30.4 + 2.96 mm (mean + s.d.), and there were no significant differences between treatments in relation to the body lengths of the fish used (ANOVA: F 4,175 ¼ 0.66, p ¼ 0.62).

Data extraction and preparation
We used 5 min of video footage for analysis, resulting in a series of 15 000 time steps for each replicate. To standardize across replicates and across treatments, we used the time period from 2:30 min to 7:30 min in each video. This was converted to AVI format using VirtualDub and then tracked using CTrax tracking software [43]. From the resulting trajectories, we calculated the mean of the median speeds of each fish (median speeds are used due to the right skew typically seen in speed distributions), the mean distance between all fish and the mean polarization of the group during each trial, using methods described in detail in [44].
Transfer entropy was calculated on heading updates and differences for each pair of individuals within each group, across all relevant samples. Transfer entropy is based on conditional mutual information (CMI) [45]: the CMI from X to Y given Z tells us how much information a sample x of the variable X tells us about the co-sample y of Y, given that we know the value of co-sample z of the variable Z. In other words, this is a log-ratio of probability of y given x and z versus given z alone:

zÞ pðyjzÞ
: As detailed in [37], we calculated transfer entropy between fish as a CMI about the target's current heading update gained from the relative heading of the source, given (a vector of the k) previous relative headings of the target. Samples for the calculation are taken from all relevant directed pairs of the appropriate type (e.g. for the overall analysis we used all possible pairs, then additionally for the mixed-species groups we used pairs within a single species, and also pairs comprising the different species) at every time step in the trial. Specifically, we used the KSG estimator [46] from the JIDT open-source software [47] with four nearest samples used in the search space, and an embedding history length for target of k ¼ 3 (with embedding delay t ¼ 1) selected to maximally remove (biascorrected) stored information in the target being misattributed as transfer [48] as averaged across all fish, and a source-target time delay of u ¼ 5 (10 ms) selected to optimize the transfer detected [49]. This then allowed us to determine mean pairwise transfer entropy for each group, or in the case of mixed-species groups, to determine mean transfer entropy within and between species. For each individual trial, we calculated the surrogate distribution of the mean transfer entropy under the null hypothesis that there was no (directed) relationship between source and target (see [47] describing techniques in [50,51] In addition, we examined the mean distance of threespine sticklebacks to conspecifics and to ninespine sticklebacks in the 3SS-9SS treatment, and to conspecifics and to roach in the 3SS-R treatment. We also calculated the mean position of fish in the shoal according to their travelling order. Fish leading the shoal were given a score of 1, the next was given a score of 2 and so on to the last fish, which was given a score of 6. We then compared the mean position of each species in the 3SS-9SS treatment and again in the 3SS-R treatment. Subsequently, we analysed the interactions between animals within the single-and mixed-species groups, as described in detail in a previous paper [44]. In particular, we examined the positions and orientation of near neighbours relative to a focal fish at each time step. In both cases, the coordinates were transformed such that the focal fish was positioned at the origin (0,0) and travelling parallel to the x-axis in a positive direction. This process was repeated taking each fish within the group as the focal fish in turn and we then constructed heat plots based on the data gathered. In addition, we used rsos.royalsocietypublishing.org R. Soc. open sci. 5: 181132 these data to produce graphs to show how the fish, on average, adjusted their heading (or angle of motion) as a function of the relative y-coordinate of partner fish, which is a key aspect of the rules of motion, or interaction, that are proposed to govern how animals respond to near neighbours during collective motion [28,29].

Statistical analysis
We analysed the results in R [52], examining for departures from normality using Shapiro -Wilks tests and the equality of variances using Levene's test. Where Levene's test indicated inequality of variances, we log transformed the data prior to analysis, although untransformed data are presented in the figures. We used the lme package in R to analyse the groups and used planned, nonorthogonal contrasts [53] to compare (i) single-species groups, (ii) mixed-species groups, (iii) 3SS, 9SS and 3SS-9SS and (iv) 3SS, R and 3SS-R. Subsequently, we compared the behaviour of the different species within the mixed shoals, using paired t-tests in the case of measures of position and neighbour distance and a linear mixed-effects model in the case of measures of transfer entropy. In the latter case, we used the source species and the target (receiver) species as fixed effects, and included the trial group as a random effect to account for the non-independence of individuals within groups.

Field survey
We observed a total of 57 shoals, including single-species shoals of 3SS, 9SS and R, and mixed-species 3SS-9SS and 3SS-R shoals (table 1).

Arena experiments
There was significant variation in group cohesion (linear model:  Within the mixed-species groups, there was no significant difference between the mean distance of 3SS to conspecifics and their mean distance to 9SS (paired t-test: t 5 ¼ 20.372, p ¼ 0.725; 95% confidence interval: 214.92-11.15; effect size ¼ 0.164); however, 3SS were located on average significantly closer to conspecifics than to roach (paired t-test: t 5 ¼ 3, p ¼ 0.03; 95% confidence interval: 2331.24-25.75; effect size ¼ 0.8).
The turning response of focal fish in response to near neighbours (figure 4) appears steeper (greater responsiveness in the tendency to turn towards near neighbours) and more coherent (less differentiation in the responses of focal fish to conspecifics versus heterospecifics) in mixed 3SS -9SS shoals than in mixed 3SS-R shoals, which would tend to indicate that the potential for more effective collective motion for groups comprising the two stickleback groups.
Transfer entropy varied significantly between species in the mixed-species groups (table 3). In the mixed 3SS-9SS groups, information flow was affected by both the identity of the source species as well as according to which species was the receiver (target) species. A similar pattern was evident in the mixed 3SS-R groups with the exception that only the identity of the source species was important, with 3SS more likely to act as information sources (figure 5).

Discussion
Single-species groups of roach and of 3SS were more cohesive and more polarized than mixed-species shoals comprising these two species. By contrast, mixed 3SS-9SS shoals were as cohesive, although not as polarized, as single-species shoals of their constituent species. There was a significant difference across all treatments in information flow, measured as mean transfer entropy. Furthermore, there were significant differences in the mixed-species shoals in relation to the tendency of species to act as the source (to trigger), or as the receiver (to act upon) changes in orientation. Table 2. Planned non-orthogonal contrasts to examine variance within the dataset between single-species and mixed-species groups, among single-species groups and between mixed-species groups in relation to group cohesion and polarization. 3SS ¼ threespine sticklebacks, 9SS ¼ ninespine sticklebacks, R ¼ roach. Mixed-species shoals comprising the two stickleback species were no less cohesive than the singlespecies shoals formed by each of those species, suggesting that the stickleback species can shoal together effectively. However, the mixed 3SS-9SS shoals showed an apparent decrease in polarization relative to the two single-species shoals. In contrast to this, mixed 3SS-R shoals were both less cohesive and less polarized than when each species shoaled individually. Differences in cohesion and in polarization at the group level probably reflect patterns of organization within the group. In mixed 3SS-R shoals, 3SS maintained lower distance to conspecifics and were found in a different part of the shoal, towards the front. These findings suggest that 3SS and roach do not integrate well and thus that mixed-species shoals comprising these two species may be relatively short-lived. Comparative studies on the stability and persistence of mixed-species groups that differ in their constituent member species are lacking and acquiring this kind of basic information would a useful starting point for further research in this area.   Figure 4. Mean localized turning response (+ s.e.) in degrees per second of focal fish to near neighbours positioned to either side of themselves in the mixed-species treatments. The motion of the focal fish is perpendicular to the page, moving towards the reader. Positive changes in angle of motion indicate a turn to the left by the focal individual (relative to its direction of motion), whereas negative changes in angle of motion indicate a turn to the right. Panel (a) describes the response of threespine sticklebacks focals to conspecifics (blue curve) and to ninespine sticklebacks (black curve), while panel (b) describes the same responses but for the threespine sticklebacks and roach treatment, so that the black curve in this instance represents the response of threespine sticklebacks to roach. Panel (c) describes the response of focal ninespine sticklebacks to conspecifics (magenta) and to threespine sticklebacks (red), while panel (d ) describes the response of focal roach to conspecifics (magenta) and to threespine sticklebacks (red).  rsos.royalsocietypublishing.org R. Soc. open sci. 5: 181132 causality in terms of information flow between the source (or 'sender') and the target (or 'receiver') [54]. For example, both parties could be responding independently to some external cue. That said, the measurements of transfer entropy were significantly 'non-zero' in all treatments, including the mixedspecies groups, and there were no significant decreases in mean pairwise transfer entropy at the group level between single-and mixed-species groups which does suggest information flow both between and within species. Differences in mean pairwise transfer entropy observed between the two species in each of the mixed-species shoals implies that asymmetries in information flow could at least partially account for the reductions in cohesion and polarization seen at the group level. In some cases, the transfer entropy results align with what we see from the other measures, e.g. the higher transfer from 3SS as a source compared to roach correlates with the finding of 3SS being positioned at the front of the shoal. Yet other results of the transfer entropy analysis are not visible in the other measures, e.g. the higher transfers seen from 9SS as a source compared to 3SS in the mixed shoal are not reflected in their relative positions in the shoal. The information transfer analysis thus reveals features of the interactions between species that extend beyond dynamics that were explained otherwise here. Applications of information theoretic measures such as transfer entropy therefore provide a valuable means of quantifying the processes and interactions occurring within animal groups.
What does this mean for mixed-species groups in the wild? Our field observations provide evidence of the occurrence of such groups under natural conditions; however, our controlled experiments in the arena suggest that, in some cases, mixed-species shoals may not be quite so cohesive, or so polarized, as single-species groups. While individuals may obtain some benefit from associating with heterospecifics as well as with conspecifics, mixed-species associations (in this system at least) may be relatively more prone to splitting along species lines, and thus may be more short-lived than their single-species counterparts. It would be valuable therefore to observe shoals in the wild for extended periods to see whether this prediction is correct. More generally, mixed-species groups are common, both with respect to the frequency with which they are observed and their taxonomic distribution, yet the research effort directed towards understanding their functions and underlying social organization is relatively insubstantial compared to that focused upon the dynamics of single-species groups. Under what conditions do mixed-species groups form and how is their frequency in a given environment related to the relative abundance of each of the member species? How generally applicable is the observation from some studies [3,9,15,16,55] that groups tend to be numerically dominated by one or just a few core species with further satellite species occurring in lower numbers? Does this observation have some functional significance, perhaps related to inter-and intraspecific differences in interaction rules, or does it merely reflect the local distribution of member species? Related to this, how do species-specific differences in travel energetics affect group composition in mobile groups? For example Krause et al. [16] revealed that size-specific locomotor performance differed between species, and that the composition of mixed-species groups was determined more by matching of swimming speeds across species than by phenotypic matching of shoal members according to body size. Finally, how do external factors such as predation risk or resource distribution affect the underlying mechanics that maintain mixed-species groups? Over the last three decades researchers have made great advances in understanding the functions and organization of singlespecies animal groups; extending this understanding to encompass mixed-species groups is an obvious next step and, we argue, should be a priority for researchers interested in social behaviour.
Ethics. All applicable international, national and institutional guidelines for the care and use of animals were followed.
All procedures performed were in accordance with the ethical standards of the University of Sydney and were approved by the Animal Ethics Committee of the University of Sydney (ref. no. 2017/1160).