Individual and collective encoding of risk in animal groups

Matthew M. G. Sosnaa,1, Colin R. Twomeyb, Joseph Bak-Colemana, Winnie Poelc,d, Bryan C. Danielse, Pawel Romanczukc,d, and Iain D. Couzinf,g,h,1

aDepartment of Ecology and Evolutionary Biology, Princeton University, Princeton, NJ 08544; bDepartment of Biology, University of Pennsylvania, Philadelphia, PA 19104; cInstitute for Theoretical Biology, Department of Biology, Humboldt Universitat¨ zu Berlin, D-10099 Berlin, Germany; dBernstein Center for Computational Neuroscience Berlin, Humboldt Universitat¨ zu Berlin, D-10115 Berlin, Germany; eArizona State University-Santa Fe Institute (ASU–SFI) Center for Biosocial Complex Systems, Arizona State University, Tempe, AZ 85287; fDepartment of Collective Behaviour, Max Planck Institute of Animal Behavior, D-78547 Konstanz, Germany; gDepartment of Biology, University of Konstanz, D-78547 Konstanz, Germany; and hCentre for the Advanced Study of Collective Behaviour, University of Konstanz, D-78547 Konstanz, Germany

Edited by Gene E. Robinson, University of Illinois at Urbana–Champaign, Urbana, IL, and approved August 28, 2019 (received for review April 1, 2019)

The need to make fast decisions under risky and uncertain condi- For example, if we consider an individual in isolation, it must tions is a widespread problem in the natural world. While there base its decisions on sensory inputs and previous experience, has been extensive work on how individual organisms dynami- which may also be modulated by physiological state. However, cally modify their behavior to respond appropriately to changing it is clearly the individual that is “responsible” for the decision. environmental conditions (and how this is encoded in the brain), If we consider instead individuals embedded in a social net- we know remarkably little about the corresponding aspects of work, another possibility is introduced: As in other information- collective information processing in animal groups. For example, processing networks, such as neural circuits, computation may many groups appear to show increased “sensitivity” in the pres- be affected by changes in the individual components themselves ence of perceived threat, as evidenced by the increased frequency (network “nodes”) and/or by changes in the structural connec- and magnitude of repeated cascading waves of behavioral change tivity (topology) among the components (network “edges”). In often observed in fish schools and bird flocks under such cir- animal groups, individuals often exhibit a highly dynamic group cumstances. How such context-dependent changes in collective structure, with individuals’ spatial positions, orientations, and sensitivity are mediated, however, is unknown. Here we address sensory neighborhoods changing rapidly (5, 7–9). Yet nonethe- this question using schooling fish as a model system, focusing on less, individuals exhibit the capacity to change, consistently and 2 nonexclusive hypotheses: 1) that changes in collective respon- repeatedly, the topology of their social connectivity by switch- siveness result from changes in how individuals respond to social ing between what is often a relatively small number of group cues (i.e., changes to the properties of the “nodes” in the social structural states (e.g., ref. 9). This presents an additional nuance network), and 2) that they result from changes made to the struc- to understanding collective cognition (10–12), as while individu- tural connectivity of the network itself (i.e., the computation is als may be influenced by the topology of their network, they are encoded in the “edges” of the network). We find that despite the also able to modify this topology through their movements and fact that perceived risk increases the probability for individuals to perception of the environment. initiate an alarm, the context-dependent change in collective sen- sitivity predominantly results not from changes in how individuals Significance respond to social cues, but instead from how individuals modify the spatial structure, and correspondingly the topology of the net- work of interactions, within the group. Risk is thus encoded as a Many biological systems exhibit an emergent ability to pro- collective property, emphasizing that in group-living species indi- cess information about their environment. This collective cog- vidual fitness can depend strongly on coupling between scales of nition emerges as a result of both the behavior of system com- behavioral organization. ponents and their interactions, yet the relative importance of the two is often hard to disentangle. Here, we combined experiments and modeling to examine how fish schools col- group structure | antipredator behavior | social contagion lectively encode information about the external environment. We demonstrate that risk is predominantly encoded in the key challenge faced by animals is to appropriately adjust physical structure of groups, which individuals modulate in Atheir behavioral responses to changing environmental con- a way that augments or dampens behavioral cascades. We texts (1). To do so, organisms must make probabilistic decisions show that this modulation is necessary for behavioral cas- based on often imperfect or conflicting sensory information. cades to spread and that it allows collective systems to be Longer-term states such as fear or hunger can be considered as responsive to their environments even without changes in a persistent (but updatable) memory stored by the animal that individual computation. modulates the mapping from sensory input to behavioral change. The mechanisms by which individual organisms achieve effec- Author contributions: M.M.G.S., J.B.-C., and I.D.C. designed research; M.M.G.S. per- tive context-dependent behavior have been well studied (2–4), formed research; C.R.T., W.P., B.C.D., and P.R. contributed new reagents/analytic tools; M.M.G.S. and W.P. analyzed data; M.M.G.S., C.R.T., J.B.-C., W.P., B.C.D., P.R., and I.D.C. but what has been comparatively rarely explored is how such wrote the paper; and C.R.T., J.B.-C., W.P., B.C.D., and P.R. developed the mathematical behavioral plasticity is encoded by organisms that live in groups. model and performed and analyzed numerical simulations.y In highly coordinated animal groups, such as many species of The authors declare no conflict of interest.y schooling fish, flocking birds, or herding ungulates, individual This article is a PNAS Direct Submission.y reproductive success is often intimately linked with the func- This open access article is distributed under Creative Commons Attribution-NonCommercial- tional complexity of collective behavior (5, 6). This introduces a NoDerivatives License 4.0 (CC BY-NC-ND).y coupling between individual (“microscopic”) properties and col- 1 To whom correspondence may be addressed. Email: [email protected] or lective (“macroscopic”) behavior, and it is reasonable to expect [email protected] that this coupling will impact how has shaped the This article contains supporting information online at www.pnas.org/lookup/suppl/doi:10. mechanisms by which individuals sense and respond to changing 1073/pnas.1905585116/-/DCSupplemental.y environmental conditions. First published September 23, 2019.

20556–20561 | PNAS | October 8, 2019 | vol. 116 | no. 41 www.pnas.org/cgi/doi/10.1073/pnas.1905585116 Downloaded by guest on September 29, 2021 Downloaded by guest on September 29, 2021 natpeao eair(,5,a ela rvosempirical previous as well sharply distance as nearest-neighbor average 5), 42–44), 35, (4, (19, results behavior investment antipredator on predictions theoretical in exposure with third agreement upon In not 1). but (Fig. exposure, first upon Risk. structure group Perceived under Changes Group-Level Discussion and Results importance relative the demonstrate each. alterna- of also these collective but between and distinguish mechanisms, only tive individual not to and us allow input response, sensory between generated mapping functional socially the recon- of analyses, determination field Our and visual struction, structure. computational spatial by tracking, internal automated encoded involving groups’ is the risk in whether their changes and/or modulating neighbors individuals change to from group context-dependent responsiveness results this in behavior whether collective changes ask in to of these spread us shown, increased allow (the alarms) be responsiveness paired collective will no and structure with As exposed (39–41). will repeatedly fish stimulus if (37), Schreckstoff innate success- (37–39). is to in Schreckstoff behavior a habituate response” to startling of response “fear and while vicinity a cohesion However, the induces group that in increasing (34–37), as fish, skin event such fish from torn, ful released or chondroitins punctured of when family by a Schreckstoff. present) is substance is Schreckstoff alarm threat natural immediate the remotely, an introducing, that priors (individuals’ risk (33). not alarms to false costs to relative nature, considerable threats such In true are to (29– (28). there responding alarms because overall alarms likely of true proportion very high 32), triggered a for as account stimulus, alarms manner external false same an group the the of through absence in propagate alarms the false in spontaneous in Startles these (28). even and contagious occur an socially species as is responses this that startle in (27) exhibit schools behavior also coordinated Shiners escape mor- form risk. high juveniles this extremely fish and to of (26) response many source wild Like a the is in risk. predation tality perceived 25), 24, to (3, responses individ- species in collective changes use and context-dependent and ual investigate 19), 16, to (9, data structure these group self-regulating and dynamic fish schooling with experiments shiners, from (golden results process- present we information here collective ing, to positioning spatial vs. siveness own its guides future memory group’s 23). modifies individual’s (22, the that an behavior memory how way, to collective this similar a In decisions, as world. act changing could a pro- structure effectively in organisms information itself which by could cess mechanism environment, important external an the be as of structure, sur- encoding group their that emergent possibility maximize is an the to is structure overlooked acting But where (5). individuals vival 21), of sim- byproduct (20, to a considerations attributed merely resources theoretic been and game generally risk have ple of changes perceptions These members’ (13–19). group to sensitive spatial their to changing and individuals as responsiveness positioning. structure their group changing rules in individuals behavioral changes sensory as individual to in states respond changes and connectivity), they to refer way social We the the (their information. changing adjusting network necessarily by the without computation of in topology indi- collective system, considered structural facilitate their networked a typically can changing forming by is individuals viduals that, by as but behavior, only rules/states, animal not behavioral facilitated internal be may ing on tal. et Sosna noreprmns emnplt h antd fperceived of magnitude the manipulate we experiments, our In respon- members’ group of contributions relative the test To highly be to known is structure group taxa, animal many Across process- information that possibility the explore we Here ,kont aehighly have to known crysoleucas), Notemigonus crcsofchanged Schreckstoff yohrfih(..=0.00%, = = (t.s. (t.s. fish neighbors other by visible of signifi- number no neighbors, average −0.04 were the there in 15.59%, however, changes = cant Schreckstoff, t.s. to 1E; exposure (Fig. third = neighbors t.s. by on test, up permutation of members 1D; properties group (Fig. visual neighbors, exposure, −4.47 neighbors the fewer first quantify saw to Upon average out structure. set school- group we for the 46), vision on 45, primarily (28, the rely ing of shiners fields golden visual Because the fish. to changes corresponding with associated one cm, (39–41). fish to (t.s.=0.073 habituated of closer Schreckstoff groups of move to not exposure did P third individuals upon contrast, another In S1). Fig. = [t.s.] statistic Schreckstoff n administered test first test, were (permutation individuals when dropped fish. other to medians. exposures in third difference and (E demonstrate first lines to correspond Dashed plots respectively. violin Schreckstoff, Schreckstoff. of to pairs exposure right orange) and and Left (red after indicate or regions (black) before Shaded medians neighbors lines). group the (dashed of water mean or Schreckstoff school to entire (C exposure The (B) Schreckstoff. white). (colored receiving individual of focal after visualization the a of represent view (purple) of Rays field the Schreckstoff. to prior school the of 1. Fig. DE C AB itiuin ftepooto fidvdas iulfil cuidby occupied field visual individuals’ of proportion the of Distributions ) rus i.1 Fig. groups; 7 = 0.14, = NND (cm) uhdaai hne ntesaigaogidvdasare individuals among spacing the in changes dramatic Such N visible neighbors 20 30 40 10 3 4 5 6 7 8 0 1020304050600 subset A (A) structure. group on risk predation perceived of Effect exposure n Water Schreckstoff: 3rdexposure Schreckstoff: 1stexposure rus,i gemn ihpeiu observations previous with agreement in groups), 6 = 1st PNAS P P .7 rpooto fvsa edoccupied field visual of proportion or 0.37) = exposure < iia eut o density, for results similar A–C; .01 n oeo hi iinwstaken was vision their of more and 0.0001) 3rd | ± coe ,2019 8, October itiuin fnme fvisible of number of Distributions (D) SE. 1 einnaetniho itneupon distance nearest-neighbor Median ) P 0.30). = Time (min)

Proportion of vision 0.2 0.4 0.6 0.8 0 1 | .4cm, −2.04 o.116 vol. exposure P < 1st .01.O the On 0.0001). | o 41 no. IAppendix, SI P exposure < 3rd 0.0001, | 20557 5 cm

ECOLOGY Changes to Cascade Frequencies and Sizes. Because golden shiners comparable to the water control (SI Appendix, section 4.2, t.s. = frequently startle even in the absence of any apparent external −0.117 individuals, P = 0.221). stimulus (28), we can discern between 2 forms of individual-level responses to predation risk: changes in intrinsic alarming (the Predictors of Startle Response. The increase in cascade sizes under onset of an alarm cascade) and changes in alarm propagation the first exposure to Schreckstoff can occur by 2 nonexclu- (participation in an alarm cascade). We chose not to manually sive mechanisms: a change in internal rules or probabilities trigger startles, as a global stimulus makes it impossible to dis- of response to neighboring alarms (individual responsiveness) tinguish between the social (response to neighbors) and asocial and/or a change in group structure that enhances alarm prop- (response to stimulus) progression of a cascade, and locally trig- agation (spatial positioning). To tease apart these mechanisms, gering individuals is experimentally challenging. In addition, our we set out to determine 1) the top predictors of response to a previous work has shown that startles triggered by an aversive neighboring startle before and after Schreckstoff, 2) whether the stimulus are indistinguishable from, and propagate in the same sensitivity to these predictors changes with Schreckstoff, and 3) way as, spontaneous startles (28). We developed a way of cate- whether including information on when startles occurred (before gorizing startles based on the product of speed and acceleration, or after Schreckstoff) improves our ability to predict whether a which corresponds to the change in kinetic energy (work rate) fish will respond. of the startling individual (SI Appendix, section 3), allowing us To examine what is predictive of response to a neighboring to reliably identify startling fish by thresholding (SI Appendix, startle, as in ref. 28, we focused on the first responder to an ini- Fig. S3). tiator in cascades featuring at least 1 responder (baseline, n = 46 As suggested by previous studies (34, 40, 47), Schreckstoff events; alarmed, n = 108 events), since here we have the clear- increased the intrinsic frequency of startling (Fig. 2A). The num- est causal relationship between alarm initiation and response. ber of cascades significantly increased on both the first and third (Because startles are relatively rare, we combined prestimulus exposures to Schreckstoff (1-way Wilcoxon signed-rank test on data from first-exposure Schreckstoff and water trials, i.e., prior groups’ difference in number of cascades: first exposure, V = to either treatment being given.) We then used L1-penalized 28, P = 0.011; third exposure, V = 15, P = 0.029). Exposure logistic regression (48, 49) to determine the features that are to water did not increase the frequency of alarms (V = 11, most predictive of response to an initiator. We included a set P = 0.219). of features that can be broadly categorized into the measurable In addition to cascades being initiated more frequently under properties about the stimulus itself (e.g., distance, relative spatial the first exposure to Schreckstoff, the average cascade size also orientation) and associated visual information. (Full details are increased (Fig. 2B; permutation test, t.s. = 0.954 individuals, in SI Appendix, section 5.1.) P < 0.0001). On the third exposure, however, despite cascades In agreement with previous work on this species (28), the fea- occurring more frequently, the average number of participants tures best predictive of response to an initiating startle were did not increase (t.s. = 0.060 individuals, P = 0.313) and was the logarithm of the metric distance to, and the ranked angu- lar area subtended by, visible neighbors (Fig. 3). These features emerged as the most predictive under both baseline and alarmed conditions. Similar features were found for predicting startle A B responses upon third exposure to Schreckstoff (SI Appendix, sec- tion 5.1). Our data also do not provide evidence of a change in the functional form for responding to a neighbor given these top 1.5 30 2 predictors after first exposure to Schreckstoff (see SI Appendix, 20 1.0 Tables S3 and S4 for logistic regression model coefficients

10 0.5 and 95% confidence intervals for before and after Schreckstoff model fits). 0 0.0 We then took 2 approaches to determine whether including 0.5 information on when startles occurred (before vs. after st rd st rd

Increase in N cascades 1 3 1 3 Water Increase in cascade size Water Schreckstoff) improved our ability to predict whether a fish will exposure exposure exposure exposure respond. First, we fitted a mixed-effects generalized linear model with a logistic link function on all startles in the first exposure C D to Schreckstoff (SI Appendix, section 5.2). We included log met- ric distance and ranked angular area as fixed effects, as well as their interactions with time (before vs. after Schreckstoff). Cas- cade ID nested within group ID was included as a random effect. We did not find support for statistical significance for time or its interactions with log metric distance and ranked angular area (SI Appendix, Table S5). Then, we performed a likelihood-ratio test comparing this model to an identical model that did not include time or its interactions. Model fit did not significantly improve when including information on when startles occurred (χ2 = 3.925, P = 0.270). Fig. 2. Perceived predation risk changes alarm propagation. (A) Taken together, these results suggest that individuals follow Schreckstoff increases the intrinsic frequency of alarms: The number of the same rules for responding to neighbors, the sensitivity to startle cascades increased upon first and third exposure. Raw data are these rules does not change with Schreckstoff, and information plotted alongside the mean ± 1 SE. (B) Schreckstoff increases average on when startles occurred does not improve our ability to predict cascade size following first exposure, but not upon third exposure. Expo- responses. While this indicates that changes in individual respon- sure to water does not increase frequency of alarms or average cascade siveness with Schreckstoff are either negligible or small, these size. (C) Distribution of cascade sizes before and after the first exposure to Schreckstoff. Lines represent contagion model fits to data, with shaded results alone are insufficient to conclude that changes in respon- regions representing 95% confidence intervals. Model is described in main siveness do not contribute to changes in collective sensitivity. text. (D) Cascade size distributions before and after the third exposure to Below we employ a behavioral contagion model that builds on Schreckstoff. these results and explicitly compares the relative contributions

20558 | www.pnas.org/cgi/doi/10.1073/pnas.1905585116 Sosna et al. Downloaded by guest on September 29, 2021 Downloaded by guest on September 29, 2021 on tal. et Sosna regions shaded data; first-responder the intervals. the of confidence to fit 95% predictors the represent 2 are top lines the Solid Schreckstoff; with Schreckstoff. model receiving receiving to after prior to (Left data corresponds red first-exposure distance the metric to log corresponds Gray predictors, 2 (Right top area angular the of function a 3. Fig. naeaecsaesz ne ecie ik hne nspa- in Changes risk. perceived under increase size observed the cascade explain average to star- required in the not to is responsiveness neighbors of individual 4C), tles in (Fig. change overlap a Schreckstoff that after indicating and estimated before maximum-likelihood thresholds the dose of intervals credible 95% the 4 (Fig. treatments both exposure in third Schreckstoff cascade and after first and observed the before cases: the 4 in to distributions size parameter sensitivity individual-level 6 startle reach- section See of once an threshold. startle course tracks a the time causing 4A) ing neighbors, the network Fig. its on of dose,” based responses risk “cumulative perceived (the individual’s state startling. before internal tolerates determines individual An (50) an risk threshold”) single perceived much (“dose a individuals. how parameter of contains sensitivity sensitivity model social the This contagion specifies complex that parameter the net- free interaction fixed, the Once is 1). by relevant work (Fig. caused positioning the features spatial captures sensory to postexposure network changes and interaction Eq. pre- Appendix, the in (SI sen- way, differences section on this previous regression In the logistic S3). by in a detailed directly via features parameterized orientations sory is and trial positions each fish weighted individual for that of network given network interaction responder a first by a given is of latter inter- edges the sensitivity The of the structure network. the components: and action cues key social available 2 to con- individuals behavioral incorporates of model that generic tagion a investigated we size, cascade of all of decisions (28). the neighbors on observable of depends to individual’s likely decision an startle contribute the to con- as still not process, we or but contagion whether that cascades behavioral requires entire of questions the onset sider these the Answering at spread? role their do that a responsiveness play individual in not changes there cas- are larger for Or account cades? to sufficient members group Distribution. of positioning Size Cascade to Changes com- a on positioning spatial scale. and mon responsiveness individual of respectively. nonresponders, and responders first to

o oheprmna ramns(rtadtidexposure), third and (first treatments experimental both For average in change the of origin the understand to Thus, P(si | sj) 0.001 0.005 0.010 0.050 0.100 0.500 1.000 0.04 0.13 w rbblt fa niiulsatigi epnet niiitras initiator an to response in startling individual an of Probability 0 0 ij Metric distance(cm) o opeedsrpino h oe.W tthis fit We model. the of description complete a for 10203040500 htrpeettepoaiiyo individual of probability the represent that ,hligteohrpeitrcntn tisma value. mean its at constant predictor other the holding ), 0.01 0.02 0.05 0.10 0.20 0.50 1.00 aeil n Methods and Materials 12345 Top and 0.001 0.005 0.010 0.050 0.100 0.500 1.000 0.06 0.5 r hne ntespatial the in changes Are Bottom 0 0 j 010203040 Angular arearank ntal trld The startled. initially itgascorrespond histograms B and and IAppendix SI C). n ranked and ) i Alarmed Baseline obe to , seta o h nraeo ru epnieespost-Schreckstoff. is responsiveness positioning group spatial of increase in the change and for a essential responsiveness that reveals modulating separately after positioning sizes intervals. spatial cascade credible 95% average overlapping Comparing with (D) postexposure, and pre- similar are rdcn h bevdcsaeszsi lte safnto ftesin- the average of the function responsiveness, a individual model as threshold modulates the plotted dose that of is parameter sizes log-likelihood free and cascade gle relative first observed The for the Schreckstoff. functions producing to probability rates first-responder exposure dose and the third startler to initial observed correspond the that with starting state simulated active is the model in remains time and startles for it threshold, timescale individual’s the over “infected,” reaches integrates (I, individuals it active that from sus- explain doses magenta) the receives to in white) individual necessary (S, focal state are The ceptible schematic. positioning Model (A) spatial sizes. in cascade increased changes that indicates and 4. Fig. for (rules responsiveness individuals’ in sensitivity changes collective by whether modulated is is paper our of question central The Conclusions observed responsiveness group the of post-Schreckstoff. increase spatial the required to for changes essential sizes that are find positioning we cascade Thus positioning. in spatial in alone. change increase responsiveness not individual the could to the 4D) changes Instead, in by (Fig. for increase post-Schreckstoff accounted cascades the be In of model, positioning). size contagion spatial average behavioral to resulting due and the distances changes net- on (capturing and contagion (capturing responsiveness) orientation Schreckstoff the trained individual of to of presence We due the weights changes 6.3). on both allows section with depend to that Appendix , size work model (SI cascade regression design average a factorial to full positioning a spatial and siveness average in spatial change in a for change account size. to a cascade necessary that also is indicates size positioning cascade post-Schreckstoff, average in third and the difference in pre- no positioning in spatial resulting increase. in case, change this exposure a explain of to lack the sufficient Moreover, are however, positioning, tial Modulation ofSpatialPositioning D B A Modulation ofResponsiveness ial,w unie h eaiecnrbtoso respon- of contributions relative the quantified we Finally, I-yebhvoa otgo oe xlisaampropagation alarm explains model contagion behavioral SIR-type τ act The (B) gray). (R, state recovered the enters it which after , Both Modulations θ ¯ (C . PNAS etfi aaee auscnrligresponsiveness controlling values parameter Best-fit ) Baseline | coe ,2019 8, October C avera τ m | hntecmltv dose cumulative the When . g o.116 vol. e cascadesize before exposure 1st

after | o 41 no.

before exposure 3rd | after 20559

ECOLOGY translating sensory input into alarms), their spatial positioning may become activated due to inputs received from active neighbors. After a (the physical spacing and sensory network of group members), or fixed activation time τact , activated individuals transition into the recovered some combination of them. In solitary animals, the only option state. The activation time is set to τact = 0.5 s, matching the experimentally for responding to changing environmental conditions is to mod- observed average startle duration. For simplicity, we consider the recov- ify responsiveness. For social animals such as golden shiners, ered state as an absorbing state with no outward transitions, which restricts the model dynamics to single, nonrecurrent cascades. A simulation run is either option (or a combination) is possible. Our approach allows terminated when no active individuals remain. us to separate the relative contributions of spatial positioning As an initial condition we set all individuals as susceptible, and at time and individual responsiveness, and we find that any changes in t = 0 a single individual is activated (spontaneous startle). A susceptible collective responsiveness are predominantly encoded in spatial individual i receives from an active neighbor j stochastic doses of activat- positioning. ing signal of size da at a rate rij = ρmaxwij, with ρmax being the maximal Using a combination of experiments and modeling, we demon- rate of sending activation doses for wij = 1. The maximal activation rate is strate that individual-level changes in responsiveness do not con- bounded by limits on response times due to physiological constraints and tribute meaningfully to the augmented spread of startle cascades neuronal processing of sensory cues which trigger a startling response in fish (59). The fastest startling responses to artificial stimuli were reported to under perceived risk. Risk did not change the sensory features 3 −1 be of the order of few milliseconds. Therefore, we assume ρmax = 10 s , predictive of responding to neighboring alarms or the sensitiv- which allows in our model for fastest response times of the order of 1 ms ity to these features. Information on whether a startle occurred (for wij ≈ 1). To be able to resolve this timescale, we choose the numerical under baseline or alarmed conditions did not improve the ability time step accordingly to ∆t = 1 ms (ρmax = 1/∆t). to predict startle responses. In our behavioral contagion sim- Thus, with small ∆t, the activation signal received from individual j is a ulations where we explicitly vary individual responsiveness, we stochastic time series dij(t) with 2 possible values, da and 0, whereby the found that changes in responsiveness are not necessary to gen- probability of receiving an activation dose per simulation time step ∆t is erate the observed changes in cascade sizes. Finally, when simu- pa = rij∆t. Each agent integrates all inputs over a finite memory τm = 2 s. lating cascades under solely changes in responsiveness, changes The agent becomes activated if the cumulative dose

in spatial positioning, or both, we find that average cascades did Z t 1 X 0 0 not change with changes in responsiveness but did with changes Di(t) = dij(t ) dt [1] K in spatial positioning. i j t−τm In contrast to typical conceptualizations of collective cog- received by a susceptible agent i within its memory time exceeds its internal nition, in which individuals interact on a relatively fixed net- threshold θi. Here, Ki is the in degree of the focal individual, such that the work structure (51, 52), the fish schools in our experiment can doses received by the focal individual are rescaled by the number of its net- change their group structure on the same timescale as rel- work neighbors, a form supported by prior work in a similar system (28). The evant changes in the environment. The fact that this group individual thresholds are drawn from a uniform distribution with minimum structure encodes relevant environmental features suggests that 0 and maximum 2θ¯, producing an average threshold of θ¯. This accounts for the fish could actively control and make adaptive use of their stochasticity due to inaccessible internal states of individuals at the time of emergent group features, a concept with growing theoretical sup- initial startle. port (53–57). The work we have presented here indicates the The expected value of the cumulative activation dose received by agent potential for self-organized animal groups to reveal additional i due to the activation of a single neighbor j (Ki = 1) over the activation time τact is thus hDii = daρmaxwijτact . We choose the weights wij to be equal insights into how dynamical networks may play an important to the probability that i responds and is the first responder to an initial role in collective intelligence emerging from simple interacting startle of j, inferred using the logistic regression model depicted in Fig. 3. components. The linear relationship between the cumulative dose hDii and the weights wij, along with the uniform distribution of thresholds across fish, guaran- Materials and Methods tees that the complex contagion process produces the correct relative initial Experiments. Groups of 40 golden shiners were filmed freely swimming in a response probabilities in the limit of small ∆t and wij (SI Appendix). With- 1.06 × 1.98-m tank filled to 4.0 cm depth. One hour after being transferred out loss of generality, we can set daρmax = 1. Thus, based on the maximal 3 −1 −3 to the tank, an automated sprayer released either Schreckstoff or water rate ρmax = 10 s , we set the activation dose da = 10 . This leaves us into the tank. The group was then filmed for an additional 0.5 h. No experi- with a single free parameter, the average dose threshold θ¯, which we fit menter was present in the room for the duration of the trial. Details on data via maximum likelihood. A total of 104 independent runs were performed extraction, processing, and analysis are available in SI Appendix, section 1. for each threshold value to estimate corresponding cascade size probability All experiments were conducted in accordance with Princeton University’s distributions. Institutional Animal Care and Use Committee. ACKNOWLEDGMENTS. We thank the Couzin Laboratory for helpful dis- Behavioral Contagion Model. Our model is based on a generalized model of cussions. This work was funded by an NSF Graduate Research Fellow- contagion proposed by Dodds and Watts (50, 58). Here, we have reformu- ship (to M.M.G.S.). C.R.T. was supported by a MindCORE (Center for lated the original model in terms of activation rates to describe behavioral Outreach, Research, and Education) Postdoctoral Fellowship. P.R. and W.P. contagion dynamics in continuous time. This allows us to more easily were funded by the Deutsche Forschungsgemeinschaft (DFG) (German constrain parameters based on experimentally determined timescales and Research Foundation), Grant RO47766/2-1. P.R. acknowledges funding by networks of influence, derived from the logistic regression’s predictions for the DFG under Germany’s Excellence Strategy–EXC 2002/1 “Science of response probabilities given fish positions at the time of the initial startle. Intelligence”–Project 390523135. I.D.C. acknowledges support from the NSF (IOS-1355061), the Office of Naval Research (N00014-09-1-1074 and N00014- We then simulate the model using a standard Euler discretization. 14-1-0635), the Army Research Office (W911NG-11-1-0385 and W911NF14- Individual fish, as nodes in a network, are connected by weighted 1-0431), the Struktur- und Innovationsfunds fur¨ die Forschung of the State directed edges wij ∈ [0, 1] that define the rate of signaling doses received of Baden-Wurttemberg,¨ the Max Planck Society, and the DFG Center of by individual i when individual j startles. Each individual i can be in 1 of 3 Excellence 2117 “Center for the Advanced Study of Collective Behavior” (ID: states si that we call susceptible, active, and recovered. Susceptible nodes 422037984).

1. S. Lima, L. Dill, Behavioral decisions made under the risk of predation: A review and 5. T. Pitcher, J. Parrish, “Functions of shoaling behaviour in ” in Behaviour of prospectus. Can. J. Zool. 68, 619–640 (1990). , T. Pitcher, Ed. (Chapman and Hall, London, ed. 2, 1993), pp. 363–439. 2. A. Sih, Optimal behavior: Can foragers balance two conflicting demands? Science 210, 6. J. Krause, G. Ruxton, Living in Groups (Oxford University Press, Oxford, UK, 2002). 1041–1043 (1980). 7. I. Couzin, J. Krause, Self-organization and collective behavior in vertebrates. Adv. 3. M. Milinski, “Predation risk and feeding behaviour” in Behaviour of Teleost Stud. Behav. 32, 1–75 (2003). Fishes, T. Pitcher, Ed. (Chapman and Hall, London, ed. 2, 1993), pp. 285– 8. M. Ballerini et al., Empirical investigation of starling flocks: A benchmark study in 305. collective animal behaviour. Anim. Behav. 76, 201–215 (2008). 4. S. Lima, P. Bednekoff, Temporal variation in danger drives antipredator behavior: The 9. K. Tunstrøm et al., Collective states, multistability and transitional behavior in predation risk allocation hypothesis. Am. Nat. 153, 649–659 (1999). schooling fish. PLoS Comput. Biol. 9, e1002915 (2013).

20560 | www.pnas.org/cgi/doi/10.1073/pnas.1905585116 Sosna et al. Downloaded by guest on September 29, 2021 Downloaded by guest on September 29, 2021 1 .Bral .Tre,C ono,J ai,I ozn mretsnigo complex of sensing Emergent Couzin, I. Faria, J. Ioannou, C. Torney, C. Berdahl, A. minds. 11. Collective Couzin, I. 10. 2 .Buh .Kaae,J lc,Cnit fitrs mrv olciecmuainof computation collective improve interest of Conflicts Flack, J. Krakauer, D. Brush, E. 12. 4 .Fx .Gen .Hge,G itn atn sa nirdtrrsos of and response deer white-tailed antipredator in an patterns as grouping and Rafting strategies Hilton, Anti-predator G. Lingle, Hughes, S. predator. a B. 15. of Green, presence A. the Fox, in flocking A. Avian 14. Pulliam, H. Martindale, S. Caraco, T. 13. 3 .Pgir,D odn .Load euaino avse n oaiga closed- a as foraging ant harvester of Regulation Leonard, N. Gordon, D. Pagliara, R. com- and 23. processing Information colony: fish “Bacterial from Castro, de herd L. selfish Omar, the N. in Xavier, effect R. dilution 22. the for and Evidence individual Treherne, J. on Foster, herd. cues selfish W. external the for 21. of Geometry Hamilton, effects W. The 20. Ward, A. Dillingham, P. Schaerf, T. 19. vigilance, size, group on temporal risk predation and of spatial Effects Christianson, fine-scale D. to Schuette, P. size Creel, herd S. elk 18. of Responses Jr, fish. Winnie in W. choice Creel, size group S. Context-dependent Krause, 17. J. Godin, J. Couzin, I. Hoare, D. 16. 3 .Grleu .Vln,J epeo,Ptnildsdatgso sn socially using of disadvantages Potential Mathuru semipalmated Templeton, A. of J. 34. flocks Valone, staging T. in Giraldeau, of alarms L. utility false 33. of adaptive Determinants the Beauchamp, and G. 32. Reliability Daniel, J. Verneyre, of avoidance L. the governing Blumstein, rule a D. for Evidence 30. Ruxton, G. net- Hilton, hidden G. the Cresswell, W. Revealing Couzin, 29. I. Wu, H. Hartnett, A. Twomey, C. Rosenthal, S. 28. ( shiner Golden Post, J. Stewart, T. predation. McQueen, aerial D. of Johannes, threat M. the 26. to fish shoaling of Response fish. Litvak, of M. behaviour 25. schooling the of aspects Some Keenleyside, M. 24. 1 .Khet atr fetn saebhvori oliggelggeese greylag moulting in behaviour escape affecting Factors Kahlert, J. 31. swimming. fast-start fish of performance and kinematics The Blake, R. Domenici, P. 27. on tal. et Sosna niomnsb oieaia groups. animal mobile by environments dpiesca structures. social adaptive uedeer. mule duck white-headed wintering Nature opectbesystem. excitable loop (NaBIC) Computing in behavior” putational insect. marine a on predation fish. shoaling of behavior collective community. ungulate African an (2014). in behavior foraging and wolves. by predation of risk in variation Behav. Anim. fish. information. acquired sandpipers. answer callers. alarm among discrimination flights. escape superfluous behavioral complex of prediction allows groups contagion. animal mobile in interaction of works Biol. Exp. predators. and Sci. food with Correlations abundance: population cas) . (1955). 247 1–1 (1989). 810–817 46, ur Biol. Curr. 8–9 (1993). 183–192 36, . 0–0 (1980). 400–401 285, .Ornithol. J. 1517 (1997). 1165–1178 200, rc al cd c.U.S.A. Sci. Acad. Natl. Proc. Ethology ea.Ecol. Behav. hnrii rget r drnsta rge erbhvo in behavior fear trigger that odorants are fragments Chondroitin al., et 5–6 (2004). 155–164 67, 3–4 (2012). 538–544 22, IE,2011). (IEEE, 6–7 (2006). 569–577 147, 9–1 (2001). 295–314 107, hls rn.R o.Bo.Sci. Biol. Soc. R. Trans. Philos. LSCmu.Biol. Comput. PLoS 8–8 (2010). 584–587 21, hr ol ogeso aueadBooial Inspired Biologically and Nature on Congress World Third c.Adv. Sci. rc .Sc B Soc. R. Proc. Nature Nature xualeucocephala. Oxyura 1 (2007). 715 445, 1031(2018). e1603311 4, c.Adv. Sci. rc .Sc B Soc. R. Proc. 6–6 (1981). 466–467 293, 6049 (2015). 4690–4695 112, Science nm Behav. Anim. 3–3 (2000). 733–737 267, 1020(2018). e1006200 14, .Ter Biol. Theor. J. 1021(2017). e1603201 3, 7–7 (2013). 574–576 339, 8115 (2004). 1851–1857 271, 5916 (2002). 1559–1566 357, Wildfowl 1118 (2005). 1181–1189 69, 9–1 (1971). 295–311 31, ea.Ecol. Behav. oeiou crysoleu- Notemigonus 3–4 (1994). 232–241 45, a.J ih Aquat. Fish. J. Can. Behaviour nio.Biol. Environ. 773–784 25, 183– 8, Anser J. 8 .Dds .Wts eeaie oe fsca n ilgclcontagion. biological and social of model generalized A Watts, D. Dodds, P. small-scale 58. a in behaviour critical Pruitt finite J. of Control 57. Flack, J. Krakauer, D. Daniels, B. 56. Hein A. criticality? 55. at poised systems biological Are groups. Bialek, animal W. moving Mora, in T. transfer Information 54. Couzin, I. Biro, D. Buhl, J. Sumpter, D. 53. of Effects Shaw, E. Burgess, fathead Evidence movement: J. flock of crab 45. fiddler responses of analysis Quantitative Behavioural Wethey, D. Viscido, Shih, S. M. 44. Jr, Adrian J. Brown, G. 43. fishes. in groupings social on to Studies fish Breder, prey C. of responses 42. The Brown, G. A Chivers, D. : Jackson, the C. of Elvidge, behaviour C. shoaling Ferrari, M. the on 41. ‘schreckstoff’ of effect The Krause, J. fish. of 40. species different between reaction shiner fright common of the Transmission Krause, in J. schooling on 39. substance alarm of Effects fishes. Seghers, B. in Heczko, cells fishes. E. in substance signals 38. alarm Alarm Smith, and R. reaction 37. fright of distribution The Pfeiffer, fish. W. of reaction fright 36. The Pfeiffer, W. 35. 9 .Kr,D ae,TeMuhe elhl etr ae:Anuoilgclmodel neurobiological A later: century a half cell Mauthner The Faber, D. Korn, H. 59. in principles criticality self-organized Dynamical causing synapses Abarbanel, Dynamical Geisel, T. H. Herrmann, J. Levina, Selverston, A. A. 52. Varona, contagion. of P. model Rabinovich, generalized a M. in 51. behavior Universal Watts, D. Dodds, P. 50. B P. Meier, L. models. Schelldorfer, J. linear generalized 49. for algorithm path L1-regularization Hastie, T. Park, minnows, M. fathead solitary 48. of response Behavioral Smith, R. Lawrence, B. 47. Strandburg-Peshkin A. 46. 0822(2018). 20181282 system. social populations. animal (2011). 302 Biosci. Theor. behaviour. herd’ ‘selfish for concentrations. varying (2001). at hypoxanthine-3-n-oxide to (1959). assessment? risk or habituation Sensory Ecol. risk: predation in variation temporal theory. herd selfish Hamilton’s of test (1993). 37–48 127, cyprinidae). cornutus, (Notropis Copeia o decision-making? for Biol. networks. neural in neuroscience. Lett. Rev. l (2014). using 460–477 models mixed linear generalized B Soc. Stat. R. substance. alarm to promelas, groups. animal in transfer analysis. matrix (1981). nearest-neighbor A fish: schooling 8–0 (2005). 587–604 232, 3–3 (2010). 532–536 21, 5–6 (1977). 653–665 1977, tal. et oiltpigpit naia societies. animal in points tipping Social al., et 171(2004). 218701 92, 7–8 (2008). 177–186 127, a.Commun. Nat. h vlto fdsrbtdsnigadcletv optto in computation collective and sensing distributed of evolution The , 5–7 (2007). 659–677 69, e.Md Phys. Mod. Rev. a.Phys. Nat. PNAS eLife Neuron iulsnoyntok n fetv information effective and networks sensory Visual al., et 195(2015). e10955 4, ur Biol. Curr. hmn,Gmlso nagrtmfrhigh-dimensional for algorithm An Glmmlasso: uhlmann, ¨ nm Behav. Anim. | 40 (2017). 14301 8, 32 (2005). 13–28 47, 2316 (2006). 1213–1266 78, 5–6 (2007). 857–860 3, .Ce.Ecol. Chem. J. coe ,2019 8, October nio.Bo.Fish. Biol. Environ. e.Fs il Fish. Biol. Fish Rev. Acoustico-Lateralis 79R1 (2013). R709–R711 23, nm Behav. Anim. il Rev. Biol. 1 3–4 (2002). 735–741 63, -penalization. 0–1 (1989). 209–219 15, ul m u.Nt Hist. Nat. Mus. Am. Bull. 9–1 (1962). 495–511 37, | 52 (1981). 25–29 6, 0912 (1993). 1019–1024 45, (1992). 33–63 2, ea.Nua.Biol. Neural. Behav. o.116 vol. eevto nafacultative a in denervation .Fs Biol. Fish J. .Cmu.Gah Stat. Graph. Comput. J. rc .Sc il Sci. Biol. Soc. R. Proc. .Sa.Phys. Stat. J. | o 41 no. 1465–1470 58, 393–482 117, 488–497 33, Pimephales Behaviour 268– 144, | .Theor. J. Behav. 20561 Phys. 285, 23, J.

ECOLOGY