<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article article-type="research-article" dtd-version="2.3" xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Appl. Math. Stat.</journal-id>
<journal-title>Frontiers in Applied Mathematics and Statistics</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Appl. Math. Stat.</abbrev-journal-title>
<issn pub-type="epub">2297-4687</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">751351</article-id>
<article-id pub-id-type="doi">10.3389/fams.2021.751351</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Applied Mathematics and Statistics</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Mathematical Modeling of Zebrafish Social Behavior in Response to Acute Caffeine Administration</article-title>
<alt-title alt-title-type="left-running-head">Tuqan and Porfiri</alt-title>
<alt-title alt-title-type="right-running-head">Zebrafish Social Response to Caffeine</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name>
<surname>Tuqan</surname>
<given-names>Mohammad</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<uri xlink:href="https://loop.frontiersin.org/people/1426013/overview"/>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Porfiri</surname>
<given-names>Maurizio</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<xref ref-type="aff" rid="aff3">
<sup>3</sup>
</xref>
<xref ref-type="corresp" rid="c001">&#x2a;</xref>
<uri xlink:href="https://loop.frontiersin.org/people/167252/overview"/>
</contrib>
</contrib-group>
<aff id="aff1">
<label>
<sup>1</sup>
</label>Department of Mechanical and Aerospace Engineering, New York University Tandon School of Engineering, <addr-line>New York</addr-line>, <addr-line>NY</addr-line>, <country>United&#x20;States</country>
</aff>
<aff id="aff2">
<label>
<sup>2</sup>
</label>Center of Urban Sciences and Progress, New York University, <addr-line>New York</addr-line>, <addr-line>NY</addr-line>, <country>United&#x20;States</country>
</aff>
<aff id="aff3">
<label>
<sup>3</sup>
</label>Department of Biomedical Engineering, New York University Tandon School of Engineering, <addr-line>New York</addr-line>, <addr-line>NY</addr-line>, <country>United&#x20;States</country>
</aff>
<author-notes>
<fn fn-type="edited-by">
<p>
<bold>Edited by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/664296/overview">Nicole Abaid</ext-link>, Virginia Tech, United&#x20;States</p>
</fn>
<fn fn-type="edited-by">
<p>
<bold>Reviewed by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/438308/overview">Jaquelinne Pinheiro-da-Silva</ext-link>, Federal University of Rio Grande do Norte, Brazil</p>
<p>
<ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1058077/overview">Pankaj Tiwari</ext-link>, University of Kalyani, India</p>
</fn>
<corresp id="c001">&#x2a;Correspondence: Maurizio Porfiri, <email>mporfiri@nyu.edu</email>
</corresp>
<fn fn-type="other">
<p>This article was submitted to Dynamical Systems, a section of the journal Frontiers in Applied Mathematics and Statistics</p>
</fn>
</author-notes>
<pub-date pub-type="epub">
<day>14</day>
<month>10</month>
<year>2021</year>
</pub-date>
<pub-date pub-type="collection">
<year>2021</year>
</pub-date>
<volume>7</volume>
<elocation-id>751351</elocation-id>
<history>
<date date-type="received">
<day>01</day>
<month>08</month>
<year>2021</year>
</date>
<date date-type="accepted">
<day>20</day>
<month>09</month>
<year>2021</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2021 Tuqan and Porfiri.</copyright-statement>
<copyright-year>2021</copyright-year>
<copyright-holder>Tuqan and Porfiri</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/">
<p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these&#x20;terms.</p>
</license>
</permissions>
<abstract>
<p>Zebrafish is a model organism that is receiving considerable attention in preclinical research. Particularly important is the use of zebrafish in behavioral pharmacology, where a number of high-throughput experimental paradigms have been proposed to quantify the effect of psychoactive substances consequences on individual and social behavior. In an effort to assist experimental research and improve animal welfare, we propose a mathematical model for the social behavior of groups of zebrafish swimming in a shallow water tank in response to the administration of psychoactive compounds to select individuals. We specialize the mathematical model to caffeine, a popular anxiogenic compound. Each fish is assigned to a Markov chain that describes transitions between freezing and swimming. When swimming, zebrafish locomotion is modeled as a pair of coupled stochastic differential equations, describing the time evolution of the turn-rate and speed in response to caffeine administration. Comparison with experimental results demonstrates the accuracy of the model and its potential use in the design of <italic>in-silico</italic> experiments.</p>
</abstract>
<kwd-group>
<kwd>anxiety</kwd>
<kwd>collective behavior</kwd>
<kwd>
<italic>Danio rerio</italic>
</kwd>
<kwd>
<italic>in-silico</italic>
</kwd>
<kwd>pharmacology</kwd>
<kwd>social interaction</kwd>
<kwd>stochastic differential equations</kwd>
</kwd-group>
<contract-num rid="cn001">1R21DA042558-01A1</contract-num>
<contract-num rid="cn003">CMMI 1901697</contract-num>
<contract-sponsor id="cn001">National Institute on Drug Abuse10.13039/100000026</contract-sponsor>
<contract-sponsor id="cn002">Office of Behavioral and Social Sciences Research10.13039/100000118</contract-sponsor>
<contract-sponsor id="cn003">National Science Foundation10.13039/100000001</contract-sponsor>
</article-meta>
</front>
<body>
<sec id="s1">
<title>1 Introduction</title>
<p>Animal experiments are a standard practice for hypothesis testing in preclinical research [<xref ref-type="bibr" rid="B1">1</xref>,<xref ref-type="bibr" rid="B2">2</xref>]. However, experimental studies involving pharmacological treatment of sentient animals continue to raise ethical concerns regarding the well-being of the animals [<xref ref-type="bibr" rid="B3">3</xref>]. Computational methods can enable <italic>in-silico</italic> experiments that might help in the fulfillment of the 3Rs: Reducing the number of subjects, Refining experimental design and setup, and Replacing the use of live subjects [<xref ref-type="bibr" rid="B4">4</xref>&#x2013;<xref ref-type="bibr" rid="B6">6</xref>].</p>
<p>Zebrafish (<italic>Danio rerio</italic>) has emerged as a species of choice in experimental studies in pharmacology where it is used in high throughput drug screening of several psychoactive compounds [<xref ref-type="bibr" rid="B7">7</xref>,<xref ref-type="bibr" rid="B8">8</xref>]. Its genetic and physiologic similarities with humans have made the zebrafish an attractive species for experimental investigations of human dysfunctional processes [<xref ref-type="bibr" rid="B9">9</xref>]. In particular, zebrafish experiments could clarify some of the open questions on anxiety-related behaviors in humans [<xref ref-type="bibr" rid="B10">10</xref>]. In these experiments, fish behavior is monitored in an experimental setup to investigate how anxiety-related behavior is modulated by anxiolytic and anxiogenic compounds, such as caffeine, cocaine, and ethanol [<xref ref-type="bibr" rid="B11">11</xref>&#x2013;<xref ref-type="bibr" rid="B15">15</xref>]. Experiments on fish treated with such compounds have revealed numerous anxiety-related behaviors, including erratic activity (jump turns and sudden change in direction), thigmotaxis (tendency to stay near the wall), geotaxis (tendency to stay at the bottom of the tank), and freezing [<xref ref-type="bibr" rid="B16">16</xref>&#x2013;<xref ref-type="bibr" rid="B18">18</xref>].</p>
<p>Previous efforts have leveraged data-driven, mathematical models to accurately describe the locomotion of isolated fish swimming in shallow or deep water tanks [<xref ref-type="bibr" rid="B19">19</xref>&#x2013;<xref ref-type="bibr" rid="B23">23</xref>]. Concerning zebrafish, a number of studies have sought to incorporate their unique burst-and-coast swimming style, composed of sudden tail bursts that are followed by coasting phases [<xref ref-type="bibr" rid="B24">24</xref>,<xref ref-type="bibr" rid="B25">25</xref>]. The general line of approach consists of formulating a stochastic differential equation (SDE) for the turn-rate evolution, in which white noise is superimposed to intermittent excitation in the form of a jump process [<xref ref-type="bibr" rid="B26">26</xref>]. The original jump persistent turning walker (JPTW) was later adapted to the study of the effect of psychoactive manipulations in two separate studies [<xref ref-type="bibr" rid="B19">19</xref>,<xref ref-type="bibr" rid="B21">21</xref>]. Mwaffo and Porfiri [<xref ref-type="bibr" rid="B21">21</xref>] investigated the effect of acute ethanol treatment of zebrafish on model parameters of the JPTW, discovering a strong effect of concentration on the parameters of the jump process. Burbano-Lombana and Porfiri [<xref ref-type="bibr" rid="B19">19</xref>] expanded on the JPTW to simulate zebrafish response to acute caffeine administration. Not only did the model account for speed modulation during locomotion through an additional SDE, but also did it incorporate a detailed treatment of freezing episodes using discrete-time Markov chain. Overall, these studies suggest that the sensitivity of model parameters to the administration of psychoactive compounds must be considered when performing projective, <italic>in-silico</italic> experiments.</p>
<p>Other studies have extended individual fish models to groups, thereby including fish social interactions in terms of schooling and shoaling behaviors. In these models, social interaction is introduced as a response function that modulates the speed and turn-rate. Visual stimuli associated with the presence of conspecifics have been often considered in these models [<xref ref-type="bibr" rid="B23">23</xref>,<xref ref-type="bibr" rid="B27">27</xref>&#x2013;<xref ref-type="bibr" rid="B29">29</xref>,<xref ref-type="bibr" rid="B29">29</xref>&#x2013;<xref ref-type="bibr" rid="B32">32</xref>], where fish tend to align and swim closer to neighboring subjects accommodating to alignment and attraction forces. Related efforts have included hydrodynamic interactions to incorporate lateral line sensing of the flow caused by neighboring subjects [<xref ref-type="bibr" rid="B34">34</xref>&#x2013;<xref ref-type="bibr" rid="B37">37</xref>]. Overall, the mathematical underpinnings of these studies are common to the investigation of the structure of collective behavior of several species, from ants [<xref ref-type="bibr" rid="B38">38</xref>] to bats&#x20;[<xref ref-type="bibr" rid="B39">39</xref>].</p>
<p>To the best of our knowledge, models looking at the effect of psychoactive compounds on zebrafish social behavior have never been explained in the literature. Here, we aimed to partially fill this gap by proposing a model that not only captures the effect of caffeine administration on fish locomotory activity but also takes into consideration the influence of the social environment in modulating the pharmacological response. To this end, we modeled fish dynamics in terms of speed and turn-rate, along two time-scales similar to Burbano-Lombana and Porfiri [<xref ref-type="bibr" rid="B19">19</xref>]. We defined a slow time-scale that captures the transitions between swimming and freezing states using a discrete-time Markov chain. During the swimming state, we modeled the speed and turn-rate evolution along a fast time-scale as a system of coupled SDEs. In the evolution of the turn-rate, we accounted for social interactions for each subject based on visual cues from neighboring individuals, therein, we utilized different interaction parameters depending on the treatment of the specific subject. To calibrate the model parameters, we relied on the experimental data-set from Neri et&#x20;al. [<xref ref-type="bibr" rid="B40">40</xref>], wherein a group of untreated subjects swam with a caffeine-treated individual.</p>
<p>We investigated the value of the social group in modulating the response of fish to caffeine administration. Specifically, we compared calibrated model parameters for a treated fish swimming with an untreated group with those of a treated fish swimming in isolation from Burbano-Lombana and Porfiri [<xref ref-type="bibr" rid="B19">19</xref>]. We further highlighted an asymmetric interaction between the treated individual and untreated subjects, associated with the effect of caffeine on locomotory activity of fish and how it is perceived by untreated subjects. Lastly, we verified the predictive ability of the proposed model in capturing the social behavior of the group by comparing a set of social interaction metrics obtained from <italic>in-silico</italic> experiments to those from real experiments.</p>
</sec>
<sec id="s2">
<title>2 Materials and Equipment</title>
<p>Our theoretical endeavor is grounded in experiments from Neri et&#x20;al. [<xref ref-type="bibr" rid="B40">40</xref>] (approved by the Animal Welfare Committee of New York University: protocol number 13&#x2013;1424) on the effect of acute caffeine treatment on social behavior. Below, we summarize the main components of the experimental framework and data analysis from Neri et&#x20;al.&#x20;[<xref ref-type="bibr" rid="B40">40</xref>].</p>
<sec id="s2-1">
<title>2.1 Experiment Setup and Procedure</title>
<p>The setup consisted of a circular tank of diameter <italic>d</italic>&#x20;&#x3d; 90&#xa0;cm filled with water at depth <italic>h</italic>&#x20;&#x3d; 10&#xa0;cm. Cameras were used to record fish behavior at 40 frames/s for 5&#xa0;minutes (<italic>T</italic>
<sub>exp</sub> &#x3d; 300&#xa0;s). Videos were processed by an in-house multitarget tracking system developed in MATLAB [<xref ref-type="bibr" rid="B41">41</xref>,<xref ref-type="bibr" rid="B42">42</xref>].</p>
<p>Experiments were performed on groups of five adult subjects, including four untreated individuals and one treated individual, at four different caffeine concentrations: 0 (vehicle), 25, 50, and 70&#xa0;mg/L. For each trial, five fish were randomly chosen from the holding tank. 50 fish were chosen at random to conduct ten experimental trials for each caffeine concentration (200 fish in total). One of the fish was kept in a 0.5&#xa0;L beaker of a caffeine solution for 1&#xa0;hour. Four untreated fish were introduced to the circular arena at the same time the beaker with the treated fish was placed in the arena. After 10&#xa0;minutes of habituation, the treated fish was hand-netted from the beaker and released into the arena. The average fish body length (BL) was approximately 3&#xa0;cm.</p>
</sec>
<sec id="s2-2">
<title>2.2 Data Post-processing</title>
<p>Fish trajectories were obtained by tracking the centroid of each fish. <xref ref-type="fig" rid="F1">Figure&#x20;1</xref> illustrates representative trajectories from each concentration. The trajectory of the <italic>i</italic>-th fish is denoted by (<italic>x</italic>
<sub>
<italic>i</italic>
</sub> (<italic>k</italic>&#x394;), <italic>y</italic>
<sub>
<italic>i</italic>
</sub> (<italic>k</italic>&#x394;)), where <italic>&#x394;</italic> &#x3d; 0.025&#xa0;s is the sampling time, and <inline-formula id="inf1">
<mml:math id="m1">
<mml:mi>k</mml:mi>
<mml:mspace width="0.17em"/>
<mml:mo>&#x2208;</mml:mo>
<mml:mspace width="0.17em"/>
<mml:mfenced open="{" close="}">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>,</mml:mo>
<mml:mo>&#x2026;</mml:mo>
<mml:mo>,</mml:mo>
<mml:mi>K</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>exp</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula>.</p>
<fig id="F1" position="float">
<label>FIGURE 1</label>
<caption>
<p>Representative trajectories of a group of five subjects, with four untreated individuals and one subject treated with caffeine, at a concentration of: 0&#x20;<bold>(A)</bold>, 25&#x20;<bold>(B)</bold>, 50&#x20;<bold>(C)</bold>, and 70&#xa0;mg/L <bold>(D)</bold>.</p>
</caption>
<graphic xlink:href="fams-07-751351-g001.tif"/>
</fig>
<p>Position increments between consecutive readings were used to obtain the velocity <inline-formula id="inf2">
<mml:math id="m2">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>y</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">T</mml:mi>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula> and the speed <inline-formula id="inf3">
<mml:math id="m3">
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:msqrt>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msqrt>
</mml:math>
</inline-formula>. To calculate the turn-rate, <italic>&#x3c9;</italic>
<sub>
<italic>i</italic>
</sub> (<italic>k</italic>&#x394;), we estimated the fish heading, <italic>&#x3b8;</italic>
<sub>
<italic>i</italic>
</sub> (<italic>k</italic>&#x394;), by fitting three consecutive positions, (<italic>x</italic>
<sub>
<italic>i</italic>
</sub> ((<italic>k</italic>&#x20;&#x2212; 1)&#x394;), <italic>y</italic>
<sub>
<italic>i</italic>
</sub> ((<italic>k</italic>&#x20;&#x2212; 1)&#x394;)), (<italic>x</italic>
<sub>
<italic>i</italic>
</sub> (<italic>k</italic>&#x394;), <italic>y</italic>
<sub>
<italic>i</italic>
</sub> (<italic>k</italic>&#x394;)), and (<italic>x</italic>
<sub>
<italic>i</italic>
</sub> ((<italic>k</italic>&#x20;&#x2b; 1)&#x394;), <italic>y</italic>
<sub>
<italic>i</italic>
</sub> ((<italic>k</italic>&#x20;&#x2b; 1)&#x394;)), along a circle [<xref ref-type="bibr" rid="B20">20</xref>]. The turn-rate was then inferred from the heading increment, <italic>&#x3b4;&#x3b8;</italic>
<sub>
<italic>i</italic>
</sub> (<italic>k</italic>&#x394;), between the two lines connecting the center of the circle with the (<italic>k</italic>&#x20;&#x2212; 1)-th and (<italic>k</italic>&#x20;&#x2b; 1)-th centroid position on the circle as <inline-formula id="inf4">
<mml:math id="m4">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi>&#x3b4;</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
</mml:mfrac>
</mml:math>
</inline-formula>. Without loss of generality, we take <italic>i</italic>&#x20;&#x3d; 1 as the treated fish throughout this&#x20;paper.</p>
<p>Fish trajectories were also used to score the time spent freezing, an anxiety-related behavior in zebrafish [<xref ref-type="bibr" rid="B18">18</xref>]. According to Kopman et&#x20;al. [<xref ref-type="bibr" rid="B43">43</xref>], a fish was considered to be in a freezing episode if it stayed within 2&#xa0;cm radius for at least <italic>T</italic>
<sub>F</sub> &#x3d; 2&#xa0;s. From experimental data, we defined a binary Boolean variable &#x393;<sub>
<italic>i</italic>
</sub> (<italic>nT</italic>
<sub>F</sub>), with <inline-formula id="inf5">
<mml:math id="m5">
<mml:mi>n</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mfenced open="{" close="}">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>,</mml:mo>
<mml:mo>&#x2026;</mml:mo>
<mml:mo>,</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>exp</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">F</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> that recorded instances of swimming (&#x393;<sub>
<italic>i</italic>
</sub> (<italic>nT</italic>
<sub>F</sub>) &#x3d; 1) and freezing (&#x393;<sub>
<italic>i</italic>
</sub> (<italic>nT</italic>
<sub>F</sub>) &#x3d;&#x20;0).</p>
<p>Four experimental trials were discarded due to recording issues (two from 0&#xa0;mg/L, and two from 50&#xa0;mg/L). We omitted four additional experimental trials due to insufficient data points for experimental analysis and parameter calibration (two from 25&#xa0;mg/L, and two from 70&#xa0;mg/L), whereby the fish spent less than 10&#xa0;s in the swimming state and more than two BL away from the wall. For this reason, the experimental results presented in this paper may differ from those presented in Neri et&#x20;al. [<xref ref-type="bibr" rid="B40">40</xref>] that relies on the same data-set.</p>
</sec>
</sec>
<sec id="s3">
<title>3 Methods</title>
<p>Here, we introduce the proposed data-driven framework to study the effect of caffeine treatment on individual and social behavior. Concerning our previous work [<xref ref-type="bibr" rid="B19">19</xref>], this study contributes a detailed model of social behavior, including attraction and alignment between subjects. Most importantly, these parameters are functions of the caffeine concentration and vary between treated and untreated subjects.</p>
<p>With respect to the state of the art on social behavior, the proposed model brings forward the critical role of the freezing response, by developing a two-time-scale modeling dichotomy where freezing evolves a slow time-scale that dictates when the animal is swimming or motionless. During locomotion, we used two coupled stochastic differential equations (SDEs) to describe the evolution of the turn-rate and the speed. The variables and notation used in the manuscript are included in <xref ref-type="sec" rid="s11">Supplementary Table S1</xref> in the supplemental material.</p>
<sec id="s3-1">
<title>3.1 Zebrafish Kinematics</title>
<p>The fish were swimming in a shallow water tank, such that we could consider a two-dimensional (2D) model to describe their motion. Each fish was modeled as a rigid body, moving in a global reference frame [<italic>X</italic>, <italic>Y</italic>] with origin <italic>O</italic>. The position of the centroid of fish <italic>i</italic> at time <italic>t</italic> was denoted as <inline-formula id="inf6">
<mml:math id="m6">
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">T</mml:mi>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula>. We also measured the heading <italic>&#x3b8;</italic>
<sub>
<italic>i</italic>
</sub>(<italic>t</italic>) &#x2208; [ &#x2212; <italic>&#x3c0;</italic>, <italic>&#x3c0;</italic>] as the angle between the swimming velocity and the global reference frame. Hence, the pose of fish <italic>i</italic>, that is, its position and orientation [<xref ref-type="bibr" rid="B44">44</xref>], was described as a three-dimensional vector <inline-formula id="inf7">
<mml:math id="m7">
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">T</mml:mi>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula>, as shown in <xref ref-type="fig" rid="F2">Figure&#x20;2A</xref>. The evolution of zebrafish pose was modeled as a first-order kinematic model<disp-formula id="e1">
<mml:math id="m8">
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mtable class="matrix">
<mml:mtr>
<mml:mtd columnalign="center">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mo>&#x307;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="center">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mo>&#x307;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="center">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mo>&#x307;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mtable class="matrix">
<mml:mtr>
<mml:mtd columnalign="center">
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>cos</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="center">
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>sin</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="center">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(1)</label>
</disp-formula>with initial conditions <italic>x</italic>
<sub>
<italic>i</italic>
</sub> (0) &#x3d; <italic>x</italic>
<sub>0,<italic>i</italic>
</sub>, <italic>y</italic> (0) &#x3d; <italic>y</italic>
<sub>0,<italic>i</italic>
</sub>, and <italic>&#x3b8;</italic>
<sub>
<italic>i</italic>
</sub> (0) &#x3d; <italic>&#x3b8;</italic>
<sub>0,<italic>i</italic>
</sub>. Here, <italic>v</italic>
<sub>
<italic>i</italic>
</sub>(<italic>t</italic>) and <italic>&#x3c9;</italic>
<sub>
<italic>i</italic>
</sub>(<italic>t</italic>) were the speed and turn-rate of the fish, respectively. We developed a mathematical model for the time-evolution of <italic>v</italic>
<sub>
<italic>i</italic>
</sub>(<italic>t</italic>) and <italic>&#x3c9;</italic>
<sub>
<italic>i</italic>
</sub>(<italic>t</italic>) to predict the individual and social response of zebrafish.</p>
<fig id="F2" position="float">
<label>FIGURE 2</label>
<caption>
<p>
<bold>(A)</bold> Fish kinematics: at time <italic>t</italic>, the fish pose is denoted as <inline-formula id="inf8">
<mml:math id="m9">
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">T</mml:mi>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula>, swimming at speed <italic>v</italic>
<sub>
<italic>i</italic>
</sub>(<italic>t</italic>) and turn-rate <italic>&#x3c9;</italic>
<sub>
<italic>i</italic>
</sub>(<italic>t</italic>) <bold>(B)</bold> A close-up look at the interaction between a pair of fish within a group of five fish. Alignment and attraction between the <italic>i</italic>- and <italic>j</italic>-th fish are functions of the relative orientation, <italic>&#x3d5;</italic>
<sub>
<italic>ij</italic>
</sub>(<italic>t</italic>), and relative position, in terms of the distance between fish, <italic>s</italic>
<sub>
<italic>ij</italic>
</sub>(<italic>t</italic>), and relative angle, <italic>&#x3b8;</italic>
<sub>
<italic>ij</italic>
</sub>(<italic>t</italic>).</p>
</caption>
<graphic xlink:href="fams-07-751351-g002.tif"/>
</fig>
</sec>
<sec id="s3-2">
<title>3.2 Zebrafish Dynamics</title>
<sec id="s3-2-1">
<title>3.2.1 Freezing Model</title>
<p>We adopted a discrete-time Markov chain to capture the transitions between freezing and swimming states. Building on the work of Burbano-Lombana and Porfiri [<xref ref-type="bibr" rid="B19">19</xref>] on isolated animals, for the <italic>i</italic>-th fish, we introduced a binary process &#x393;<sub>
<italic>i</italic>
</sub> (<italic>nT</italic>
<sub>F</sub>) that takes values 0 (freezing, F) and 1 (swimming, S), where <italic>n</italic>&#x20;&#x2208; {1, &#x2026; , &#x3d2;}, <inline-formula id="inf9">
<mml:math id="m10">
<mml:mi mathvariant="normal">&#x3d2;</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>sim</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">F</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
</mml:math>
</inline-formula>, and <italic>T</italic>
<sub>sim</sub> was the total simulation time. The Markov chain was determined by probabilities of persistence in swimming and freezing states, <italic>p</italic>
<sub>S,<italic>i</italic>
</sub> and <italic>p</italic>
<sub>F,<italic>i</italic>
</sub>, respectively, and probabilities of state transition, given by <italic>p</italic>
<sub>SF,<italic>i</italic>
</sub> &#x3d; 1&#x20;&#x2212; <italic>p</italic>
<sub>S,<italic>i</italic>
</sub> and <italic>p</italic>
<sub>FS,<italic>i</italic>
</sub> &#x3d; 1&#x20;&#x2212; <italic>p</italic>
<sub>F,<italic>i</italic>
</sub>, respectively.</p>
<p>The speed and turn-rate of the <italic>i</italic>-th fish were<disp-formula id="e2a">
<mml:math id="m11">
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mfenced open="{" close="">
<mml:mrow>
<mml:mtable class="cases">
<mml:mtr>
<mml:mtd columnalign="left">
<mml:mn>0</mml:mn>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>if</mml:mtext>
<mml:mspace width="0.3333em"/>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="normal">&#x393;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">F</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="left">
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>if</mml:mtext>
<mml:mspace width="0.3333em"/>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="normal">&#x393;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">F</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(2a)</label>
</disp-formula>
<disp-formula id="e2b">
<mml:math id="m12">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mfenced open="{" close="">
<mml:mrow>
<mml:mtable class="cases">
<mml:mtr>
<mml:mtd columnalign="left">
<mml:mn>0</mml:mn>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>if</mml:mtext>
<mml:mspace width="0.3333em"/>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="normal">&#x393;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">F</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="left">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>if</mml:mtext>
<mml:mspace width="0.3333em"/>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="normal">&#x393;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">F</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(2b)</label>
</disp-formula>
</p>
<p>Such that during a freezing episode both the speed and turn-rate are zero and during swimming they evolve based on the SDEs described&#x20;below.</p>
</sec>
<sec id="s3-2-2">
<title>3.2.2 Locomotion and Interaction Models</title>
<p>Speed and turn-rate in the swimming state were modeled as a system of two coupled SDEs. In the model, we included social interaction terms that modulate fish locomotion based on the visual cues from neighboring conspecifics. As illustrated in <xref ref-type="fig" rid="F2">Figure&#x20;2B</xref>, we described fish schooling between the focal fish, <italic>i</italic>, and the neighboring fish, <italic>j</italic>, in terms of the relative orientation, <italic>&#x3d5;</italic>
<sub>
<italic>ij</italic>
</sub>(<italic>t</italic>) &#x3d; <italic>&#x3b8;</italic>
<sub>
<italic>i</italic>
</sub>(<italic>t</italic>) &#x2212; <italic>&#x3b8;</italic>
<sub>
<italic>j</italic>
</sub>(<italic>t</italic>). Further, we examined fish shoaling in terms of the relative position of the neighboring fish with respect to the focal fish expressed in terms of the distance between the pair of fish, <italic>s</italic>
<sub>
<italic>ij</italic>
</sub>(<italic>t</italic>), and relative angle, <italic>&#x3b8;</italic>
<sub>
<italic>ij</italic>
</sub>(<italic>t</italic>).</p>
<p>To model the evolution of the speed, we adopted the following logistic model, similar to Burbano-Lombana and Porfiri [<xref ref-type="bibr" rid="B19">19</xref>] for a single fish [<xref ref-type="bibr" rid="B45">45</xref>]:<disp-formula id="e3">
<mml:math id="m13">
<mml:mi mathvariant="normal">d</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b7;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>g</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
<mml:mi mathvariant="normal">d</mml:mi>
<mml:mi>t</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>v</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi mathvariant="normal">d</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>v</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
</mml:math>
<label>(3)</label>
</disp-formula>where <inline-formula id="inf10">
<mml:math id="m14">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b7;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mspace width="0.3333em"/>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> and <inline-formula id="inf11">
<mml:math id="m15">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>v</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mspace width="0.3333em"/>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> were the linear expansion rate and the strength of the added noise, respectively; <italic>W</italic>
<sub>
<italic>v</italic>,<italic>i</italic>
</sub>(<italic>t</italic>) was a standard Wiener process; and <inline-formula id="inf12">
<mml:math id="m16">
<mml:mi>g</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mspace width="0.3333em"/>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> encapsulated the effect of the turn-rate. Specifically, the speed response function was<disp-formula id="e4">
<mml:math id="m17">
<mml:mi>g</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="normal">s</mml:mi>
<mml:mi mathvariant="normal">t</mml:mi>
<mml:mi mathvariant="normal">d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi mathvariant="normal">B</mml:mi>
<mml:mi mathvariant="normal">L</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:mo>,</mml:mo>
</mml:math>
<label>(4)</label>
</disp-formula>where std<sub>
<italic>&#x3c9;</italic>,<italic>i</italic>
</sub> was the standard deviation of the absolute instantaneous value of the turn-rate [<xref ref-type="bibr" rid="B19">19</xref>]. This function captured the need of fish to slow down when turning, while attaining larger speeds during straight swimming.</p>
<p>This model offers a first approximation of speed modulation during social behavior. For each fish, the model required the calibration of two parameters, assuming that the body length is common to the entire group: <italic>&#x3b7;</italic>
<sub>
<italic>i</italic>
</sub>, and <italic>&#x3c3;</italic>
<sub>
<italic>v</italic>,<italic>i</italic>
</sub>. In this basic incarnation, the model does not incorporate speed-based social interaction, which has been proposed by several authors to play some role in the social response of social fish [<xref ref-type="bibr" rid="B46">46</xref>&#x2013;<xref ref-type="bibr" rid="B50">50</xref>]. The choice of neglecting social interactions mediated by the speed was due to the need of reducing the number of model parameters, magnified by the presence of individual differences in the treatment of the&#x20;group.</p>
<p>The turn-rate dynamics were captured by the JPTW [<xref ref-type="bibr" rid="B26">26</xref>,<xref ref-type="bibr" rid="B33">33</xref>],<disp-formula id="e5">
<mml:math id="m18">
<mml:mi mathvariant="normal">d</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x002A;</mml:mo>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>w</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>w</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>w</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi mathvariant="normal">d</mml:mi>
<mml:mi>t</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi mathvariant="normal">d</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:mi mathvariant="normal">d</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>J</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
</mml:math>
<label>(5)</label>
</disp-formula>where <inline-formula id="inf13">
<mml:math id="m19">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x002A;</mml:mo>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mspace width="0.3333em"/>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">r</mml:mi>
<mml:mi mathvariant="normal">a</mml:mi>
<mml:mi mathvariant="normal">d</mml:mi>
<mml:mspace width="0.17em"/>
<mml:mi mathvariant="normal">s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn mathvariant="normal">1</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> was the turn-rate interaction response function; <italic>f</italic>
<sub>
<italic>w</italic>
</sub> (<italic>&#x3d5;</italic>
<sub>
<italic>w</italic>,<italic>i</italic>
</sub>(<italic>t</italic>), <italic>d</italic>
<sub>
<italic>w</italic>,<italic>i</italic>
</sub>(<italic>t</italic>)) was the wall interaction function where <italic>&#x3d5;</italic>
<sub>
<italic>w</italic>,<italic>i</italic>
</sub>(<italic>t</italic>) was the projected angle to collision and <italic>d</italic>
<sub>
<italic>w</italic>,<italic>i</italic>
</sub>(<italic>t</italic>) was the distance from the wall; <inline-formula id="inf14">
<mml:math id="m20">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mspace width="0.3333em"/>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> was a positive parameter quantifying the relaxation rate; <inline-formula id="inf15">
<mml:math id="m21">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mspace width="0.3333em"/>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mi mathvariant="normal">r</mml:mi>
<mml:mi mathvariant="normal">a</mml:mi>
<mml:mi mathvariant="normal">d</mml:mi>
<mml:mspace width="0.17em"/>
<mml:msup>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>3</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> was the strength of the added noise; <italic>W</italic>
<sub>
<italic>&#x3c9;</italic>,<italic>i</italic>
</sub>(<italic>t</italic>) was a standard Wiener process; and <italic>J</italic>
<sub>
<italic>i</italic>
</sub>(<italic>t</italic>) was the jump noise term encapsulating sudden changes in the turn-rate.</p>
<p>Due to the presence of the caffeine treatment, the social interaction gains should vary in the group. We expected untreated fish to respond differently to a treated subject compared to an untreated one. Further, we anticipated the influence of treated on untreated to be different from the influence of untreated on treated, such that their interaction should be asymmetric. These claims are grounded in two propositions from the literature. First, the anxiogenic value of caffeine has been shown to influence the tendency of the caffeine-treated fish to interact with untreated conspecifics [<xref ref-type="bibr" rid="B15">15</xref>,<xref ref-type="bibr" rid="B51">51</xref>]. Second, the psychostimulatory nature of caffeine is known to influence the locomotory response of the animals [<xref ref-type="bibr" rid="B52">52</xref>], which may underlie differences in the appraisal of treated fish by untreated individuals. Accordingly, the turn-rate response function was written as<disp-formula id="e6">
<mml:math id="m22">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x002A;</mml:mo>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="normal">&#x393;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">F</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>p</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>sin</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>v</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>sin</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
</mml:math>
<label>(6)</label>
</disp-formula>where <inline-formula id="inf16">
<mml:math id="m23">
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>p</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mspace width="0.17em"/>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">r</mml:mi>
<mml:mi mathvariant="normal">a</mml:mi>
<mml:mi mathvariant="normal">d</mml:mi>
<mml:mspace width="0.17em"/>
<mml:mi mathvariant="normal">m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mspace width="0.17em"/>
<mml:msup>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> and <inline-formula id="inf17">
<mml:math id="m24">
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>v</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mspace width="0.17em"/>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">r</mml:mi>
<mml:mi mathvariant="normal">a</mml:mi>
<mml:mi mathvariant="normal">d</mml:mi>
<mml:mspace width="0.17em"/>
<mml:mi mathvariant="normal">m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn mathvariant="normal">1</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> were the attraction and alignment gains of fish <italic>i</italic> toward fish <italic>j</italic>, respectively. For each trial, the model required calibrating 2<italic>N</italic>&#x20;&#x2212; 1 pairs of gains.</p>
<p>We categorized these parameters based on the direction of interaction as follows:<disp-formula id="e7a">
<mml:math id="m25">
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>p</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfenced open="{" close="">
<mml:mrow>
<mml:mtable class="cases">
<mml:mtr>
<mml:mtd columnalign="left">
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>TU</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>if</mml:mtext>
<mml:mspace width="0.3333em"/>
<mml:mi>i</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>,</mml:mo>
<mml:mi>j</mml:mi>
<mml:mo>&#x2260;</mml:mo>
<mml:mi>i</mml:mi>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="left">
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>UT</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>if</mml:mtext>
<mml:mspace width="0.3333em"/>
<mml:mi>i</mml:mi>
<mml:mo>&#x2260;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>,</mml:mo>
<mml:mi>j</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="left">
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>UU</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>if</mml:mtext>
<mml:mspace width="0.3333em"/>
<mml:mi>i</mml:mi>
<mml:mo>&#x2260;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>,</mml:mo>
<mml:mi>j</mml:mi>
<mml:mo>&#x2260;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(7a)</label>
</disp-formula>
<disp-formula id="e7b">
<mml:math id="m26">
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>v</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfenced open="{" close="">
<mml:mrow>
<mml:mtable class="cases">
<mml:mtr>
<mml:mtd columnalign="left">
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>TU</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>if</mml:mtext>
<mml:mspace width="0.3333em"/>
<mml:mi>i</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>,</mml:mo>
<mml:mi>j</mml:mi>
<mml:mo>&#x2260;</mml:mo>
<mml:mi>i</mml:mi>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="left">
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>UT</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>if</mml:mtext>
<mml:mspace width="0.3333em"/>
<mml:mi>i</mml:mi>
<mml:mo>&#x2260;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>,</mml:mo>
<mml:mi>j</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="left">
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>UU</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>if</mml:mtext>
<mml:mspace width="0.3333em"/>
<mml:mi>i</mml:mi>
<mml:mo>&#x2260;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>,</mml:mo>
<mml:mi>j</mml:mi>
<mml:mo>&#x2260;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(7b)</label>
</disp-formula>where TU, UT, and UU identified the response of the treated to untreated fish, the untreated to the treated fish, and the interaction between untreated subjects, respectively. The presence of &#x393;<sub>
<italic>j</italic>
</sub> (<italic>nT</italic>
<sub>F</sub>) in <xref ref-type="disp-formula" rid="e6">Eq. 6</xref> was used to selectively limit the social response of fish to the group members that were actively swimming. Fish that were freezing were excluded from the social interaction model, based on calibration of the model on real data as well as biological observations that suggested zebrafish are more responsive to dynamic, rather than static stimuli&#x20;[<xref ref-type="bibr" rid="B53">53</xref>].</p>
<p>The wall interaction function was written as follows [<xref ref-type="bibr" rid="B19">19</xref>,<xref ref-type="bibr" rid="B20">20</xref>]:<disp-formula id="e8">
<mml:math id="m27">
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>w</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>w</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>w</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>a</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>w</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi>sgn</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>w</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>w</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>w</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msup>
<mml:mo>,</mml:mo>
</mml:math>
<label>(8)</label>
</disp-formula>where the intensity of wall interactions, <inline-formula id="inf18">
<mml:math id="m28">
<mml:msub>
<mml:mrow>
<mml:mi>a</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>w</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mspace width="0.17em"/>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">r</mml:mi>
<mml:mi mathvariant="normal">a</mml:mi>
<mml:mi mathvariant="normal">d</mml:mi>
<mml:mspace width="0.17em"/>
<mml:mi mathvariant="normal">s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn mathvariant="normal">1</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula>, and the sensitivity of the fish to visual stimulus to the wall, <inline-formula id="inf19">
<mml:math id="m29">
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>w</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mspace width="0.17em"/>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">c</mml:mi>
<mml:mi mathvariant="normal">m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn mathvariant="normal">1</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula>, were two positive parameters. We hypothesized that all fish interact in the same way with the environment, such that the two parameters <italic>a</italic>
<sub>
<italic>w</italic>
</sub> and <italic>b</italic>
<sub>
<italic>w</italic>
</sub> were the same for the entire group and for every trial. The selection of the form in <xref ref-type="disp-formula" rid="e8">Eq. 8</xref> encapsulated the wall avoidance behavior of the fish and ensured that fish remain within the boundary of the tank; this selection did not capture wall-following behavior.</p>
<p>We finally modeled the jump noise for the <italic>i</italic>-th fish as a compounded Poisson process,<disp-formula id="e9">
<mml:math id="m30">
<mml:msub>
<mml:mrow>
<mml:mi>J</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:munderover>
<mml:msub>
<mml:mrow>
<mml:mi>A</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>.</mml:mo>
</mml:math>
<label>(9)</label>
</disp-formula>
</p>
<p>Here, <italic>A</italic>
<sub>
<italic>k</italic>,<italic>i</italic>
</sub>(<italic>t</italic>)&#x2019;s were independent and identically distributed Gaussian random variables with zero mean and variance <inline-formula id="inf20">
<mml:math id="m31">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3b3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mspace width="0.3333em"/>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">r</mml:mi>
<mml:mi mathvariant="normal">a</mml:mi>
<mml:mi mathvariant="normal">d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mspace width="0.17em"/>
<mml:msup>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula>, and the total number of jumps at time <italic>t</italic>, <italic>m</italic>
<sub>
<italic>i</italic>
</sub>(<italic>t</italic>), was such that its increments are Poisson random variables with parameter <italic>&#x3bb;</italic>
<sub>
<italic>i</italic>
</sub> (<italic>t</italic>&#x2032;&#x2032; &#x2212; <italic>t</italic>&#x2032;) for time <italic>t</italic>&#x2032;, <italic>t</italic>&#x2032;&#x2032; and <italic>t</italic>&#x2032;&#x2032; &#x3e; <italic>t</italic>&#x2032;, with <inline-formula id="inf21">
<mml:math id="m32">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mspace width="0.17em"/>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> being frequency of&#x20;jumps.</p>
</sec>
</sec>
<sec id="s3-3">
<title>3.3 Model Calibration</title>
<p>For each fish in the group, <italic>i</italic>&#x20;&#x2208; {1, &#x2026; ,<italic>N</italic>}, we calibrated the set of locomotion and social interaction model parameters. The transition probabilities for the discrete-time Markov chain model were obtained by simply counting instances of freezing and transitions to swimming in the experimental time-series. On the other hand, maximum likelihood estimation was applied to calibrate the locomotion model parameters.</p>
<p>In summary, we calibrated the following parameters: transition probabilities, <italic>p</italic>
<sub>FS,<italic>i</italic>
</sub> and <italic>p</italic>
<sub>SF,<italic>i</italic>
</sub>; linear expansion rate, <italic>&#x3b7;</italic>
<sub>
<italic>i</italic>
</sub>; strength of added noise on speed, <italic>&#x3c3;</italic>
<sub>
<italic>v</italic>,<italic>i</italic>
</sub>; relaxation rate, <italic>&#x3b1;</italic>
<sub>
<italic>i</italic>
</sub>; strength of added noise on turn-rate, <italic>&#x3c3;</italic>
<sub>
<italic>&#x3c9;</italic>,<italic>i</italic>
</sub>; intensity of jump turns, <italic>&#x3b3;</italic>
<sub>
<italic>i</italic>
</sub>; frequency of jump turns, <italic>&#x3bb;</italic>
<sub>
<italic>i</italic>
</sub>; alignment gains of treated to untreated fish, <inline-formula id="inf22">
<mml:math id="m33">
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>TU</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, untreated to treated fish, <inline-formula id="inf23">
<mml:math id="m34">
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>UT</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, and between untreated fish, <inline-formula id="inf24">
<mml:math id="m35">
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>UU</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>; attraction gains of treated to untreated fish, <inline-formula id="inf25">
<mml:math id="m36">
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>TU</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, untreated to treated fish, <inline-formula id="inf26">
<mml:math id="m37">
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>UT</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, and between untreated fish, <inline-formula id="inf27">
<mml:math id="m38">
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>UU</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>. Given that five fish comprised each of the groups, a total of 58 parameters were calibrated per&#x20;trial.</p>
<sec id="s3-3-1">
<title>3.3.1 Calibration of the Discrete-Time Markov Model for Freezing</title>
<p>We obtained the binary sequences <inline-formula id="inf28">
<mml:math id="m39">
<mml:msubsup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">{</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="normal">&#x393;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">F</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">}</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">&#x3d2;</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="" close="}">
</mml:mfenced>
<mml:mo stretchy="false">}</mml:mo>
</mml:math>
</inline-formula> from the experimental time-series for each fish in the group. Similar to Burbano-Lombana and Porfiri [<xref ref-type="bibr" rid="B19">19</xref>], we estimated the transition probabilities as follows:<disp-formula id="e10a">
<mml:math id="m40">
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>SF</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>SF</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>SS</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>SF</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:math>
<label>(10a)</label>
</disp-formula>
<disp-formula id="e10b">
<mml:math id="m41">
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>FS</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>FS</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>FF</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>FS</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:math>
<label>(10b)</label>
</disp-formula>where <italic>N</italic>
<sub>SF,<italic>i</italic>
</sub> and <italic>N</italic>
<sub>FS,<italic>i</italic>
</sub> were the number of transitions by the <italic>i</italic>-th fish from swimming to freezing and from freezing to swimming, respectively. <italic>N</italic>
<sub>SS,<italic>i</italic>
</sub> and <italic>N</italic>
<sub>FF,<italic>i</italic>
</sub> were the number of instances in which the fish maintained the swimming or freezing state, respectively.</p>
<p>Estimated transition probabilities for the treated fish in the group are shown in <xref ref-type="sec" rid="s11">Supplementary Table S2</xref>. For completeness, in <xref ref-type="sec" rid="s11">Supplementary Table S3</xref>, we also report a summary of the transition probabilities for the discrete-time Markov chain of the untreated fish in terms of mean and standard deviation calculated across all trials.</p>
</sec>
<sec id="s3-3-2">
<title>3.3.2 Calibration of the Locomotion and Interaction Models Through Maximum-likelihood Estimation</title>
<p>Using the experimental sampling time &#x394; as the time-step for discretization, we approximated <xref ref-type="disp-formula" rid="e3">Eqs 3</xref>, <xref ref-type="disp-formula" rid="e5">5</xref> via the Euler-Maruyama method as follows [<xref ref-type="bibr" rid="B54">54</xref>]:<disp-formula id="e11">
<mml:math id="m42">
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b7;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="normal">s</mml:mi>
<mml:mi mathvariant="normal">t</mml:mi>
<mml:mi mathvariant="normal">d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi mathvariant="normal">B</mml:mi>
<mml:mi mathvariant="normal">L</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="normal">i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>v</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msqrt>
<mml:mrow>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
</mml:msqrt>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3f5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
</mml:math>
<label>(11)</label>
</disp-formula>where <inline-formula id="inf29">
<mml:math id="m43">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3f5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> was a standard Gaussian random variable, utilized to approximate the added&#x20;noise.</p>
<p>We followed the same discretization approach to approximate the JPTW in <xref ref-type="disp-formula" rid="e5">Eq. 5</xref>, leading to.<disp-formula id="e12a">
<mml:math id="m44">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x002A;</mml:mo>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
</mml:msup>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msqrt>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msqrt>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3f5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b6;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3f5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
</mml:math>
<label>(12a)</label>
</disp-formula>
<disp-formula id="e12b">
<mml:math id="m45">
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>2</mml:mn>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:math>
<label>(12b)</label>
</disp-formula>where <inline-formula id="inf30">
<mml:math id="m46">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3f5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> and <inline-formula id="inf31">
<mml:math id="m47">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3f5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> were standard Gaussian random variables and <italic>&#x3b6;</italic>
<sub>
<italic>i</italic>
</sub>(<italic>k</italic>) was a Bernoulli process with a probability &#x394;<italic>&#x3bb;</italic>
<sub>
<italic>i</italic>
</sub>. Wall interaction was not included in the approximation of the JPTW in <xref ref-type="disp-formula" rid="e12a">Eq. 12</xref> since we performed calibration only when the fish were more than 2 BL away from the&#x20;wall.</p>
<p>For each individual, we consolidated unknown parameters in two vectors, <italic>&#x3c6;</italic>
<sub>
<italic>v</italic>,<italic>i</italic>
</sub> and <italic>&#x3c6;</italic>
<sub>
<italic>&#x3c9;</italic>,<italic>i</italic>
</sub>, one for the speed and the other for the turn-rate dynamics, in <xref ref-type="disp-formula" rid="e11">Eqs 11</xref>, <xref ref-type="disp-formula" rid="e12a">12</xref>, respectively. These vectors were determined by solving two independent optimization problems for the speed and turn-rate. The parameters were estimated for each fish in the group independently for every&#x20;trial.</p>
<p>For the approximated logistic equation in <xref ref-type="disp-formula" rid="e11">Eq. 11</xref>, the vector of unknown parameters for each fish was <inline-formula id="inf32">
<mml:math id="m48">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c6;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>v</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b7;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>v</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3ba;</mml:mi>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">T</mml:mi>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula>, where we used a scaling factor, <italic>&#x3ba;</italic>, to avoid singularities at near zero swimming speed [<xref ref-type="bibr" rid="B19">19</xref>]. The search was conducted within a set of admissible values <italic>&#x3c7;</italic>
<sub>
<italic>v</italic>
</sub> selected from previous work [<xref ref-type="bibr" rid="B22">22</xref>]. The optimization problem was solved by using as input the <inline-formula id="inf33">
<mml:math id="m49">
<mml:msubsup>
<mml:mrow>
<mml:mi>K</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2a;</mml:mo>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula> samples of the speed obtained by excluding instances of freezing or swimming in proximity of the&#x20;wall.</p>
<p>The maximum-likelihood estimation problem was formulated as<disp-formula id="e13">
<mml:math id="m50">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>&#x3c6;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>v</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:munder>
<mml:mrow>
<mml:mi>arg min</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c6;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>v</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c7;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:munder>
<mml:mo>&#x2212;</mml:mo>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>K</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2a;</mml:mo>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:munderover>
<mml:mi>log</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>l</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>v</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c6;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>v</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
<mml:mo>.</mml:mo>
</mml:math>
<label>(13)</label>
</disp-formula>
</p>
<p>The likelihood function, <italic>l</italic>
<sub>
<italic>v</italic>,<italic>i</italic>
</sub> (<italic>&#x3c6;</italic>
<sub>
<italic>v</italic>,<italic>i</italic>
</sub>, <italic>v</italic>
<sub>S,<italic>i</italic>
</sub> (<italic>k</italic>&#x394;), <italic>&#x3c9;</italic>
<sub>S,<italic>i</italic>
</sub> (<italic>k</italic>&#x394;)), was derived from the model approximation in <xref ref-type="disp-formula" rid="e11">Eq. 11</xref> as<disp-formula id="e14">
<mml:math id="m51">
<mml:msub>
<mml:mrow>
<mml:mi>l</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>v</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c6;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>v</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>H</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:msqrt>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>v</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
</mml:msqrt>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(14)</label>
</disp-formula>where <italic>H</italic> (<italic>x</italic>, <italic>&#x3c3;</italic>) was the Gaussian distribution at <italic>x</italic> with zero mean and variance <italic>&#x3c3;</italic>
<sup>2</sup>. Further, <italic>q</italic>
<sub>
<italic>i</italic>
</sub> (<italic>k</italic>&#x394;) was given by<disp-formula id="e15">
<mml:math id="m52">
<mml:msub>
<mml:mrow>
<mml:mi>q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b7;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3ba;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3ba;</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:mi mathvariant="normal">B</mml:mi>
<mml:mi mathvariant="normal">L</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="normal">s</mml:mi>
<mml:mi mathvariant="normal">t</mml:mi>
<mml:mi mathvariant="normal">d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3ba;</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mfrac>
<mml:mo>.</mml:mo>
</mml:math>
<label>(15)</label>
</disp-formula>
</p>
<p>Heuristically, we found that <italic>&#x3ba;</italic> &#x3d; 5 guarantees convergence of the optimization problem.</p>
<p>A similar approach was adopted to calibrate the discrete JPTW in <xref ref-type="disp-formula" rid="e12a">Eq. 12</xref>. For each fish, we solved the optimization problem for the vector of unknown parameters for each fish, <inline-formula id="inf34">
<mml:math id="m53">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c6;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">T</mml:mi>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula>, with <italic>j</italic>&#x20;&#x2208; {1, <italic>&#x2026;</italic> , <italic>N</italic>}, <italic>j</italic>&#x20;&#x2260; <italic>i</italic>, where the interaction gains were categorized in accordance with <xref ref-type="disp-formula" rid="e7a">Eq. 7</xref>. We used an input of <inline-formula id="inf35">
<mml:math id="m54">
<mml:msubsup>
<mml:mrow>
<mml:mi>K</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2a;</mml:mo>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula> samples of the turn-rate obtained by excluding instances of freezing or swimming close to the wall. In addition, the search was conducted within a set of admissible values <italic>&#x3c7;</italic>
<sub>
<italic>&#x3c9;</italic>
</sub> selected from Butail et&#x20;al. [<xref ref-type="bibr" rid="B27">27</xref>] and Mwaffo et&#x20;al. [<xref ref-type="bibr" rid="B22">22</xref>]. The maximum-likelihood estimation problem was formulated as<disp-formula id="e16">
<mml:math id="m55">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>&#x3c6;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:munder>
<mml:mrow>
<mml:mi>arg min</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c6;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c7;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:munder>
<mml:mo>&#x2212;</mml:mo>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>K</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2a;</mml:mo>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:munderover>
<mml:mi>log</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>l</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c6;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(16)</label>
</disp-formula>where <italic>&#x3c7;</italic>
<sub>
<italic>&#x3c9;</italic>
</sub> was in <inline-formula id="inf36">
<mml:math id="m56">
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>6</mml:mn>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula> for the treated fish (<italic>i</italic>&#x20;&#x3d; 1) and <italic>&#x3c7;</italic>
<sub>
<italic>&#x3c9;</italic>
</sub> was in <inline-formula id="inf37">
<mml:math id="m57">
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>8</mml:mn>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula> for the untreated fish (<italic>i</italic>&#x20;&#x2260; 1). The likelihood function <italic>l</italic>
<sub>
<italic>&#x3c9;</italic>,<italic>i</italic>
</sub> (<italic>&#x3c6;</italic>
<sub>
<italic>&#x3c9;</italic>,<italic>i</italic>
</sub>, <italic>v</italic>
<sub>S,<italic>i</italic>
</sub> (<italic>k</italic>&#x394;), <italic>&#x3c9;</italic>
<sub>S,<italic>i</italic>
</sub> (<italic>k</italic>&#x394;)) was defined as<disp-formula id="e17">
<mml:math id="m58">
<mml:msub>
<mml:mrow>
<mml:mi>l</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c6;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>H</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:msqrt>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msqrt>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
<mml:mi>H</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:msqrt>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3b3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msqrt>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(17)</label>
</disp-formula>and <italic>z</italic>
<sub>
<italic>i</italic>
</sub> (<italic>k</italic>&#x394;) was<disp-formula id="e18">
<mml:math id="m59">
<mml:msub>
<mml:mrow>
<mml:mi>z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2b;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2a;</mml:mo>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
<mml:mo>.</mml:mo>
</mml:math>
<label>(18)</label>
</disp-formula>
</p>
<p>The locomotion parameters of each treated fish for all trials are displayed in <xref ref-type="sec" rid="s11">Supplementary Table S4</xref>. A summary of the parameters of the untreated fish is shown in <xref ref-type="sec" rid="s11">Supplementary Table S5</xref>, in terms of mean and standard deviation calculated across all trials. <xref ref-type="sec" rid="s11">Supplementary Table S6</xref> displays the attraction gains of the treated fish <inline-formula id="inf38">
<mml:math id="m60">
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>TU</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, and the attraction gains of the untreated subject towards treated neighbors <inline-formula id="inf39">
<mml:math id="m61">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>UT</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> and untreated neighbors <inline-formula id="inf40">
<mml:math id="m62">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>UU</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> where a hat denotes the average of untreated individuals in each trial. Similarly, <xref ref-type="sec" rid="s11">Supplementary Table S7</xref> contains the alignment gains of the treated fish <inline-formula id="inf41">
<mml:math id="m63">
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>TU</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, and the alignment gains of untreated subjects towards treated neighbors <inline-formula id="inf42">
<mml:math id="m64">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>UT</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> and untreated neighbors <inline-formula id="inf43">
<mml:math id="m65">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>UU</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>. We discarded two additional trials from 25&#xa0;mg/L and one additional trial from 50&#xa0;mg/L due to divergence of the estimator, where interaction gains converged to their upper bounds.</p>
</sec>
<sec id="s3-3-3">
<title>3.3.3 Calibration of the Wall Function</title>
<p>We relied on the work of Burbano-Lombana and Porfiri [<xref ref-type="bibr" rid="B19">19</xref>] to obtain the wall function parameters in <xref ref-type="disp-formula" rid="e8">Eq. 8</xref>. The wall interaction function was calibrated for a fish swimming alone, from the data-set of Neri et&#x20;al. [<xref ref-type="bibr" rid="B40">40</xref>], using a wall-corrected turn-rate from the real time-series of the turn-rate of fish swimming alone,<disp-formula id="e19">
<mml:math id="m66">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>c</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mfenced open="{" close="">
<mml:mrow>
<mml:mtable class="cases">
<mml:mtr>
<mml:mtd columnalign="left">
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>a</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>if</mml:mtext>
<mml:mspace width="0.17em"/>
<mml:mi>sgn</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>a</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>sgn</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>w</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="left">
<mml:mo>&#x2212;</mml:mo>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>a</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>otherwise</mml:mtext>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(19)</label>
</disp-formula>where <italic>&#x3c9;</italic>
<sub>
<italic>a</italic>
</sub> (<italic>k</italic>&#x394;) was the turn-rate of the fish swimming alone and <italic>&#x3c9;</italic>
<sub>
<italic>c</italic>
</sub> (<italic>k</italic>&#x394;) was the corrected turn-rate. Next, <italic>&#x3c9;</italic>
<sub>
<italic>c</italic>
</sub> (<italic>k</italic>&#x394;) was plotted against the distance from the wall <italic>d</italic>
<sub>
<italic>w</italic>
</sub> (<italic>k</italic>&#x394;) where only the positive values of the corrected turn-rate were considered to capture wall avoidance. A robust non-parametric locally weighted least squares (RLOESS) function in MATLAB was used to fit the signal to a parametric exponential function. As such, the wall interaction parameters were obtained by calculating the average across all trials as <italic>a</italic>
<sub>
<italic>w</italic>
</sub> &#x3d; 11.68&#xa0;rad s<sup>&#x2212;2</sup> and <italic>b</italic>
<sub>
<italic>w</italic>
</sub> &#x3d; 0.19&#xa0;cm<sup>&#x2212;1</sup>.</p>
</sec>
</sec>
</sec>
<sec id="s4">
<title>4 Results</title>
<p>We began our analysis of the model by examining the influence of caffeine concentration on fish locomotion in terms of the variations of relevant model parameters. With respect to parameters on freezing response and locomotion, we compared with model parameters obtained in Burbano-Lombana and Porfiri [<xref ref-type="bibr" rid="B19">19</xref>] to assess the effect of the social environment on fish response to caffeine administration. Finally, we conducted <italic>in-silico</italic> experiments to demonstrate the predictive power of the model in anticipating experimental results on schooling and shoaling.</p>
<sec id="s4-1">
<title>4.1 Analysis of Model Parameters</title>
<p>First, we investigated the effect of caffeine concentration and social environment on the locomotion parameters of the treated fish, utilizing two-way ANOVA with caffeine concentration and social environment (single or group) as independent variables. Second, we conducted ANOVA comparisons with caffeine concentration as a single independent variable to compare the interaction parameters across concentrations. Post-hoc comparisons were conducted using Tukey&#x2019;s HSD (honestly significant difference). The significance level was set to 0.050 throughout.</p>
<p>We found that caffeine concentration did not influence the Markov chain transition probabilities <italic>p</italic>
<sub>FS</sub> (<italic>F</italic>
<sub>3,50</sub> &#x3d; 0.424, <italic>p</italic>&#x20;&#x3d; 0.738) and <italic>p</italic>
<sub>SF</sub> (<italic>F</italic>
<sub>3,50</sub> &#x3d; 0.125, <italic>p</italic>&#x20;&#x3d; 0.944), neither in isolation nor in group (shown in <xref ref-type="fig" rid="F3">Figures 3A,B</xref>, respectively). No difference was detected across social environment with respect to <italic>p</italic>
<sub>FS</sub> (<italic>F</italic>
<sub>1,50</sub> &#x3d; 0.630, <italic>p</italic>&#x20;&#x3d; 0.443). Although we registered a dependence on the social environment with respect to <italic>p</italic>
<sub>SF</sub> (<italic>F</italic>
<sub>1,50</sub> &#x3d; 5.416, <italic>p</italic>&#x20;&#x3d; 0.027), we did not detect any variation in post-hoc analysis. The interaction between the two independent variables was found to be not significant for both <italic>p</italic>
<sub>FS</sub> (<italic>F</italic>
<sub>3,50</sub> &#x3d; 1.733, <italic>p</italic>&#x20;&#x3d; 0.181) and <italic>p</italic>
<sub>SF</sub> (<italic>F</italic>
<sub>3,50</sub> &#x3d; 0.812, <italic>p</italic>&#x20;&#x3d; 0.497).</p>
<fig id="F3" position="float">
<label>FIGURE 3</label>
<caption>
<p>Comparisons of discrete-time Markov chain parameters of the treated fish across caffeine concentrations and social environment (single or group). The bars represent the mean value of the probability of transition from freezing to swimming <bold>(A)</bold>, and the mean value of the probability of transition from swimming to freezing <bold>(B)</bold>. The striped bars correspond to the calibrated parameters for the case of a single treated fish from Burbano-Lombana and Porfiri [<xref ref-type="bibr" rid="B19">19</xref>]. The solid bars correspond to the calibrated parameters for the case of a treated fish swimming in a social group. The vertical red error bars represent standard errors of the&#x20;means.</p>
</caption>
<graphic xlink:href="fams-07-751351-g003.tif"/>
</fig>
<p>Likewise, the linear expansion rate, <italic>&#x3b7;</italic>, was not influenced by either caffeine concentration (<italic>F</italic>
<sub>3,50</sub> &#x3d; 1.264, <italic>p</italic>&#x20;&#x3d; 0.297) or social environment (<italic>F</italic>
<sub>1,50</sub> &#x3d; 0.698, <italic>p</italic>&#x20;&#x3d; 0.407), shown in <xref ref-type="fig" rid="F4">Figure&#x20;4A</xref>. Further we did not detect differences in the interaction of the independent variables on <italic>&#x3b7;</italic> (<italic>F</italic>
<sub>3,50</sub> &#x3d; 0.048, <italic>p</italic>&#x20;&#x3d; 0.986). In terms of the strength of added noise on the speed evolution, <italic>&#x3c3;</italic>
<sub>
<italic>v</italic>
</sub>, we found a dependence on caffeine concentration (<italic>F</italic>
<sub>3,50</sub> &#x3d; 3.039, <italic>p</italic>&#x20;&#x3d; 0.038; <xref ref-type="fig" rid="F4">Figure&#x20;4B</xref>), which, however was not accompanied by variations in post-hoc analysis. We found that the presence of the social environment had an effect on <italic>&#x3c3;</italic>
<sub>
<italic>v</italic>
</sub> (<italic>F</italic>
<sub>1,50</sub> &#x3d; 33.21, <italic>p</italic>&#x20;&#x3c; 0.001), and post-hoc analysis indicated a decrease in the strength of added noise in the presence of untreated subjects for 0&#xa0;mg/L. We did not detect a significant interaction between the independent variables on <italic>&#x3c3;</italic>
<sub>
<italic>v</italic>
</sub> (<italic>F</italic>
<sub>3,50</sub> &#x3d; 1.088, <italic>p</italic>&#x20;&#x3d; 0.363).</p>
<fig id="F4" position="float">
<label>FIGURE 4</label>
<caption>
<p>Comparisons of the locomotion parameters corresponding to the speed evolution of the treated fish across caffeine concentrations and social environment (single or group). The bars represent the mean value of the linear expansion rate <bold>(A)</bold>, and strength of added noise in the speed evolution <bold>(B)</bold>. The striped bars correspond to the calibrated parameters for the case of a single treated fish from Burbano-Lombana and Porfiri [<xref ref-type="bibr" rid="B19">19</xref>]. The solid bars correspond to the calibrated parameters for the case of a treated fish swimming in a social group. The symbol $ indicates a significant difference (<italic>p</italic>&#x20;&#x3c; 0.050) in Tukey&#x2019;s HSD post-hoc analysis comparing individuals swimming alone or on group (single versus group). The vertical red error bars represent standard errors of the&#x20;means.</p>
</caption>
<graphic xlink:href="fams-07-751351-g004.tif"/>
</fig>
<p>With respect to the turn-rate model parameters, we did not detect an effect of caffeine concentration on the mean reversion rate, <italic>&#x3b1;</italic> (<italic>F</italic>
<sub>3,50</sub> &#x3d; 1.368, <italic>p</italic>&#x20;&#x3d; 0.263). Although we found <italic>&#x3b1;</italic> to be affected by the social environment (<italic>F</italic>
<sub>3,50</sub> &#x3d; 15.49, <italic>p</italic>&#x20;&#x3c; 0.001; <xref ref-type="fig" rid="F5">Figure&#x20;5A</xref>), post-hoc analysis did not reveal significant differences between concentrations. Likewise, we did not discover a significant interaction between caffeine concentration and social environment on <italic>&#x3b1;</italic> (<italic>F</italic>
<sub>3,50</sub> &#x3d; 0.519, <italic>p</italic>&#x20;&#x3d; 0.672). While caffeine concentration was found to have an influence on the strength of added noise in the turn-rate evolution, <italic>&#x3c3;</italic>
<sub>
<italic>&#x3c9;</italic>
</sub> (<italic>F</italic>
<sub>3,50</sub> &#x3d; 2.926, <italic>p</italic>&#x20;&#x3d; 0.043; <xref ref-type="fig" rid="F5">Figure&#x20;5B</xref>), no variations were identified in post-hoc analysis. We determined a modulatory role of the social environment (<italic>F</italic>
<sub>3,50</sub> &#x3d; 24.83, <italic>p</italic>&#x20;&#x3c; 0.001), where <italic>&#x3c3;</italic>
<sub>
<italic>&#x3c9;</italic>
</sub> increased in the presence of a social group for 50&#xa0;mg/L in post-hoc analysis. No significant interaction was detected between the independent variables with respect to <italic>&#x3c3;</italic>
<sub>
<italic>&#x3c9;</italic>
</sub> (<italic>F</italic>
<sub>3,50</sub> &#x3d; 0.866, <italic>p</italic>&#x20;&#x3d; 0.465). With respect to intensity of jumps, <italic>&#x3b3;</italic>, we found caffeine concentration to play a modulatory role (<italic>F</italic>
<sub>3,50</sub> &#x3d; 5.760, <italic>p</italic>&#x20;&#x3d; 0.002; <xref ref-type="fig" rid="F5">Figure&#x20;5C</xref>), with post-hoc analysis revealing a decrease in the intensity of jumps for treated fish swimming in isolation from 50 to 70&#xa0;mg/L. In addition, we found the social environment to influence <italic>&#x3b3;</italic> (<italic>F</italic>
<sub>1,50</sub> &#x3d; 15.90, <italic>p</italic>&#x20;&#x3c; 0.001), where we detected an increase in the jump intensity in the presence of untreated subjects for 0&#xa0;mg/L in post-hoc analysis. We did not identify a significant interaction between caffeine concentration and social environment with respect to <italic>&#x3b3;</italic> (<italic>F</italic>
<sub>3,50</sub> &#x3d; 0.747, <italic>p</italic>&#x20;&#x3d; 0.529). Finally, the frequency of jumps, <italic>&#x3bb;</italic>, was not affected by caffeine concentration (<italic>F</italic>
<sub>3,50</sub> &#x3d; 2.166, <italic>p</italic>&#x20;&#x3d; 0.104). In contrast, we detected significant differences across social environment (<italic>F</italic>
<sub>1,50</sub> &#x3d; 13.65, <italic>p</italic>&#x20;&#x3c; 0.001; <xref ref-type="fig" rid="F5">Figure&#x20;5D</xref>). Post-hoc analysis revealed that fish swimming in isolation had higher values of <italic>&#x3bb;</italic> than those swimming in group for the 25&#xa0;mg/L treatment. We registered a significant interaction of the independent variables on <italic>&#x3bb;</italic> (<italic>F</italic>
<sub>3,50</sub> &#x3d; 2.924, <italic>p</italic>&#x20;&#x3d; 0.048).</p>
<fig id="F5" position="float">
<label>FIGURE 5</label>
<caption>
<p>Comparisons of the locomotion parameters corresponding to the turn-rate evolution of the treated fish across caffeine concentrations, and social environment (single or group). The bars represent the mean value of the mean reversion rate <bold>(A)</bold>, strength of added noise in the turn-rate evolution <bold>(B)</bold>, intensity of jumps in the turn-rate evolution <bold>(C)</bold>, and frequency of jumps in turn-rate evolution <bold>(D)</bold>. The striped bars correspond to the calibrated parameters for the case of a single treated fish from Burbano-Lombana and Porfiri [<xref ref-type="bibr" rid="B19">19</xref>]. The solid bars correspond to the calibrated parameters for the case of a treated fish swimming in a social group. Different letters on top of the bars indicate a significant difference (<italic>p</italic>&#x20;&#x3c; 0.050) in Tukey&#x2019;s HSD post-hoc analysis across caffeine concentrations, comparing individuals swimming in isolation (standard font) or in group (italic font). The symbol $ indicates a significant difference (<italic>p</italic>&#x20;&#x3c; 0.050) in Tukey&#x2019;s HSD post-hoc analysis comparing individuals swimming alone or on group (single versus group). The vertical red error bars represent standard errors of the&#x20;means.</p>
</caption>
<graphic xlink:href="fams-07-751351-g005.tif"/>
</fig>
<p>Next, we investigated the effect of caffeine concentration on the interaction gains in the turn-rate model, as shown in <xref ref-type="fig" rid="F6">Figure&#x20;6</xref>. We identified an effect of caffeine concentration on the attraction gain of the treated fish towards untreated fish, <inline-formula id="inf44">
<mml:math id="m67">
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>TU</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (<italic>F</italic>
<sub>3,22</sub> &#x3d; 3.323, <italic>p</italic>&#x20;&#x3d; 0.038), but post-hoc analysis did not detect differences between concentrations. The average attraction gain, <inline-formula id="inf45">
<mml:math id="m68">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>UT</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, of the untreated fish towards treated fish was not found to vary with caffeine concentration (<italic>F</italic>
<sub>3,22</sub> &#x3d; 0.588, <italic>p</italic>&#x20;&#x3d; 0.629). We determined that the average attraction gain of the untreated fish towards other untreated subjects, <inline-formula id="inf46">
<mml:math id="m69">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>UU</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, varied with caffeine concentration (<italic>F</italic>
<sub>3,22</sub> &#x3d; 3.679, <italic>p</italic>&#x20;&#x3d; 0.028), and post-hoc analysis brought to light a decrease from 0 to 25&#xa0;mg/L. Finally, the alignment gains were indistinguishable with respect to caffeine concentration: <inline-formula id="inf47">
<mml:math id="m70">
<mml:msub>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>TU</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (<italic>F</italic>
<sub>3,22</sub> &#x3d; 1.252, <italic>p</italic>&#x20;&#x3d; 0.315), <inline-formula id="inf48">
<mml:math id="m71">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>UT</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (<italic>F</italic>
<sub>3,22</sub> &#x3d; 0.756, <italic>p</italic>&#x20;&#x3d; 0.531), and <inline-formula id="inf49">
<mml:math id="m72">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>UU</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (<italic>F</italic>
<sub>3,22</sub> &#x3d; 0.596, <italic>p</italic>&#x20;&#x3d; 0.459).</p>
<fig id="F6" position="float">
<label>FIGURE 6</label>
<caption>
<p>Calibrated interaction parameters in the turn-rate evolution across caffeine concentrations. The bars represent the mean value of the attraction gain of treated fish towards untreated fish <bold>(A)</bold>, alignment gain of treated fish towards untreated fish <bold>(B)</bold>, average attraction gain of untreated fish towards treated fish <bold>(C)</bold>, average alignment gain of untreated fish towards treated fish <bold>(D)</bold>, average attraction gain between untreated fish <bold>(E)</bold>, and average alignment gain between untreated fish <bold>(F)</bold>. Different letters on top of the bars indicate a significant difference (<italic>p</italic>&#x20;&#x3c; 0.050) in Tukey&#x2019;s HSD post-hoc analysis across caffeine concentrations. The vertical red error bars represent standard errors of the&#x20;means.</p>
</caption>
<graphic xlink:href="fams-07-751351-g006.tif"/>
</fig>
<p>In summary, among all the freezing and locomotion parameters, we only found the intensity of jumps to depend on caffeine concentration, yet, without differences with respect to&#x20;vehicle-treated individuals. Comparisons across social environment revealed variations in the strength of added noise on both speed and turn-rate and in the jump parameters. Swimming in group reduced the strength of the added noise on the speed evolution of vehicle-treated subjects, and it increased the strength of the added noise on the turn-rate evolution at the intermediate concentration. Further, while the presence of a social group increased the intensity of jumps of vehicle-treated subjects, it reduced the frequency of jumps of individuals treated at a low concentration. Parameters pertaining to social response were generally robust with respect to caffeine concentration, except for the attraction of untreated fish towards other untreated subjects, with low caffeine concentration causing a reduction in alignment.</p>
</sec>
<sec id="s4-2">
<title>4.2&#x20;<italic>In-silico</italic> Experiments</title>
<p>We conducted <italic>in-silico</italic> experiments to validate the developed model and investigate its ability to predict the social behavior of fish detected from experimental time-series [<xref ref-type="bibr" rid="B40">40</xref>], for a range of interaction metrics that quantify schooling, and shoaling.</p>
<p>Schooling is a measure of fish tendency to align their bodies during swimming [<xref ref-type="bibr" rid="B55">55</xref>,<xref ref-type="bibr" rid="B56">56</xref>]. The degree of alignment among the four untreated fish was scored in terms of the instantaneous polarization [<xref ref-type="bibr" rid="B57">57</xref>],<disp-formula id="e20">
<mml:math id="m73">
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:mfrac>
<mml:mfenced open="&#x2016;" close="&#x2016;">
<mml:mrow>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>2</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(20)</label>
</disp-formula>where <italic>N</italic>&#x20;&#x3d; 5 was the number of fish in the experiment. Polarization varies between 0 and 1, where 1 identified the case in which untreated fish are perfectly aligned in the same direction.</p>
<p>The alignment between the treated fish and the untreated group of fish was scored in terms of the relative instantaneous polarization, <italic>R</italic> (<italic>k</italic>&#x394;),<disp-formula id="e21">
<mml:math id="m74">
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">T</mml:mi>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mfrac>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:mfrac>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>2</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:math>
<label>(21)</label>
</disp-formula>
</p>
<p>Relative polarization ranges between &#x2212;1 and 1, where 1 corresponded to the group of untreated fish pointing in the same direction of the treated fish, and &#x2212;1 indicated that the treated fish is pointing in the opposite direction to the group of untreated fish. These quantities were averaged in time to compute the average polarization and the average relative polarization.</p>
<p>To quantify fish shoaling, the tendency of fish to swim nearby, we computed the inter-individual distance, <italic>d</italic>
<sub>
<italic>ij</italic>
</sub> (<italic>k</italic>&#x394;), between each pair in the group. We scored the average distance between the treated and untreated subjects, and the average distance among untreated individuals.</p>
<p>We conducted <italic>in-silico</italic> experiments using the model parameters for the case of in-group swimming, shown in solid bars in <xref ref-type="fig" rid="F3">Figures 3</xref>&#x2013;<xref ref-type="fig" rid="F6">6</xref>. Ten simulations were performed for each of the four caffeine concentrations. For each fish in all 40 trials, the interaction gains were sampled from a Gaussian distribution with mean and standard deviation of the corresponding parameter at that concentration. On the other hand, since we did not find any effect of caffeine concentration on the transition probabilities and locomotion parameters for in-group swimming, those parameters were taken as the average of all fish across all experimental trials based on treatment. The initial conditions <italic>x</italic>
<sub>
<italic>i</italic>
</sub> (0), <italic>y</italic>
<sub>
<italic>i</italic>
</sub> (0), <italic>&#x3b8;</italic>
<sub>
<italic>i</italic>
</sub> (0), &#x393;<sub>
<italic>i</italic>
</sub> (0), <italic>v</italic>
<sub>
<italic>i</italic>
</sub> (0), and <italic>&#x3c9;</italic>
<sub>
<italic>i</italic>
</sub> (0) were chosen uniformly at random in their respective intervals. Time-series of four trajectories for each caffeine concentration are shown in <xref ref-type="fig" rid="F7">Figure&#x20;7</xref>; videos are presented at the link provided in the data availability statement. Note that the wall function adopted in this study does not take into consideration the wall following behavior of zebrafish, thus explaining the differences in wall interactions between <italic>in-silico</italic> trajectories in <xref ref-type="fig" rid="F7">Figure&#x20;7</xref> and experimental ones in <xref ref-type="fig" rid="F1">Figure&#x20;1</xref>.</p>
<fig id="F7" position="float">
<label>FIGURE 7</label>
<caption>
<p>Representative <italic>in-silico</italic> trajectories of a group of five subjects, with four untreated individuals and one subject treated with caffeine, at a concentration of: 0 <bold>(A)</bold>, 25 <bold>(B)</bold>, 50 <bold>(C)</bold>, and 70&#xa0;mg/L <bold>(D)</bold>.</p>
</caption>
<graphic xlink:href="fams-07-751351-g007.tif"/>
</fig>
<p>We performed statistical analysis to compare the social interaction metrics across caffeine concentrations, and validate the <italic>in-silico</italic> results against those obtained from real experiments. For this purpose, we conducted two-way ANOVA with caffeine concentration and data-type (experiments or <italic>in-silico</italic>) as independent variables. Post-hoc comparisons were conducted using Tukey&#x2019;s HSD. The significance level was set to 0.050 throughout.</p>
<p>We detected influence of caffeine concentration on the average polarization, <inline-formula id="inf50">
<mml:math id="m75">
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mo>&#x304;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
</inline-formula> (<italic>F</italic>
<sub>3,61</sub> &#x3d; 7.781, <italic>p</italic>&#x20;&#x3c; 0.001), shown in <xref ref-type="fig" rid="F8">Figure&#x20;8A</xref>. Post-hoc analysis revealed differences in experimental results, where the average polarization was found to increase from 0 to 50&#xa0;mg/L. Comparisons across data-types did not indicate differences between real and <italic>in-silico</italic> experiments (<italic>F</italic>
<sub>3,61</sub> &#x3d; 1.354, <italic>p</italic>&#x20;&#x3d; 0.249). Likewise, no interaction between the independent variables was identified on <inline-formula id="inf51">
<mml:math id="m76">
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mo>&#x304;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
</inline-formula> (<italic>F</italic>
<sub>3,61</sub> &#x3d; 0.675, <italic>p</italic>&#x20;&#x3d; 0.571). With respect to the average relative polarization, <inline-formula id="inf52">
<mml:math id="m77">
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mo>&#x304;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
</inline-formula> (<xref ref-type="fig" rid="F8">Figure&#x20;8B</xref>), we did not find an effect on either caffeine concentration (<italic>F</italic>
<sub>3,61</sub> &#x3d; 1.354, <italic>p</italic>&#x20;&#x3d; 0.071) or data-type (<italic>F</italic>
<sub>1,61</sub> &#x3d; 0.229, <italic>p</italic>&#x20;&#x3d; 0.634), although we identified significant interaction (<italic>F</italic>
<sub>3,61</sub> &#x3d; 3.855, <italic>p</italic>&#x20;&#x3d; 0.014).</p>
<fig id="F8" position="float">
<label>FIGURE 8</label>
<caption>
<p>Comparisons of the schooling tendency of the fish, measured in terms of average polarization <bold>(A)</bold>, and average relative polarization <bold>(B)</bold>, across caffeine concentrations and data-types (experiment or <italic>in-silico</italic>). Different letters on top of the bars indicate a significant difference (<italic>p</italic>&#x20;&#x3c; 0.050) in Tukey&#x2019;s HSD post-hoc analysis across caffeine concentrations, comparing interaction metrics in experiment (standard font) or <italic>in-silico</italic> (italic font) data-type. The vertical red error bars represent standard errors of the&#x20;means.</p>
</caption>
<graphic xlink:href="fams-07-751351-g008.tif"/>
</fig>
<p>Next, we determined that the shoaling tendency between the treated fish and untreated subjects, in terms of the average distance <inline-formula id="inf53">
<mml:math id="m78">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mo>&#x304;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">T</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi mathvariant="normal">U</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, was consistent across caffeine concentrations (<italic>F</italic>
<sub>1,61</sub> &#x3d; 1.849, <italic>p</italic>&#x20;&#x3d; 0.179) and data-types (<italic>F</italic>
<sub>1,61</sub> &#x3d; 1.461, <italic>p</italic>&#x20;&#x3d; 0.234), as shown in <xref ref-type="fig" rid="F9">Figure&#x20;9A</xref>. No interaction was detected between the independent variables on <inline-formula id="inf54">
<mml:math id="m79">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mo>&#x304;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">T</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi mathvariant="normal">U</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (<italic>F</italic>
<sub>3,61</sub> &#x3d; 0.262, <italic>p</italic>&#x20;&#x3d; 0.853). In contrast, we detected an effect of caffeine concentration on the average distance between the untreated fish, <inline-formula id="inf55">
<mml:math id="m80">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mo>&#x304;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">U</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi mathvariant="normal">U</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (<italic>F</italic>
<sub>3,61</sub> &#x3d; 12.16, <italic>p</italic>&#x20;&#x3c; 0.001; <xref ref-type="fig" rid="F9">Figure&#x20;9B</xref>). Post-hoc analysis revealed a decrease in <inline-formula id="inf56">
<mml:math id="m81">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mo>&#x304;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">U</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi mathvariant="normal">U</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> from 25 to 50&#xa0;mg/L in the experimental data-set. Similar differences were found in the <italic>in-silico</italic> data-set where <inline-formula id="inf57">
<mml:math id="m82">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mo>&#x304;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">U</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi mathvariant="normal">U</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> was larger for 25&#xa0;mg/L than 0 and 50&#xa0;mg/L. While comparisons between data-types revealed a significant difference (<italic>F</italic>
<sub>1,61</sub> &#x3d; 11.29, <italic>p</italic>&#x20;&#x3d; 0.0.001), the results were indistinguishable between real and <italic>in-silico</italic> experiments in post-hoc analysis. Finally, we did not identify a significant interaction between the independent variables on <inline-formula id="inf58">
<mml:math id="m83">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mo>&#x304;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">U</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi mathvariant="normal">U</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (<italic>F</italic>
<sub>3,61</sub> &#x3d; 2.354, <italic>p</italic>&#x20;&#x3d; 0.081).</p>
<fig id="F9" position="float">
<label>FIGURE 9</label>
<caption>
<p>Comparisons of the shoaling tendency of the fish, measured in terms of the average distance between treated fish and untreated fish <bold>(A)</bold>, and average distance between untreated fish <bold>(B)</bold>, across caffeine concentrations and data-types (experiment or <italic>in-silico</italic>). Different letters on top of the bars indicate a significant difference (<italic>p</italic>&#x20;&#x3c; 0.050) in Tukey&#x2019;s HSD post-hoc analysis across caffeine concentrations, comparing interaction metrics in experiment (standard font) or <italic>in-silico</italic> (italic font) data-type. The vertical red error bars represent standard errors of the&#x20;means.</p>
</caption>
<graphic xlink:href="fams-07-751351-g009.tif"/>
</fig>
</sec>
</sec>
<sec id="s5">
<title>5 Discussion</title>
<p>In this work, we developed a modeling framework to study the effect of acute caffeine treatment on the social behavior of zebrafish. We contributed two key advances to previous work on modeling collective behavior of zebrafish. First, similar to the analysis with respect to zebrafish swimming alone in Burbano-Lombana and Porfiri [<xref ref-type="bibr" rid="B19">19</xref>], we included the freezing response of each individual within the group, which is necessary to capture anxiety-related behavior in response to caffeine [<xref ref-type="bibr" rid="B58">58</xref>]. For this purpose, we developed a two-time-scale modeling dichotomy. Along a slow time-scale, we used a discrete-time Markov chain to describe the transition between swimming and freezing states. At a fast time-scale, we modeled the evolution of the speed and turn-rate during swimming as a system of coupled SDEs: a logistic equation to represent the speed and a JPTW to describe the turn-rate. Second, we granularly tracked the directional interaction between each pair of fish based on the treatment of each fish within the pair. This approach takes into consideration previous experimental work highlighting the effect of caffeine on the behavioral response of treated fish and its appraisal by untreated conspecifics [<xref ref-type="bibr" rid="B51">51</xref>,<xref ref-type="bibr" rid="B52">52</xref>].</p>
<p>We calibrated the model on real experimental data from previous work [<xref ref-type="bibr" rid="B40">40</xref>], where we studied groups of caffeine-treated subject and untreated individuals swimming in a shallow water tank. For each group of five individuals, we estimated 20 parameters, entering the Markov chain and the SDEs. Calibration employed a combination of maximum likelihood estimation and classical plug-in estimation. We displayed our results on two fronts. First, we compared the model parameters obtained for a treated fish swimming with untreated subjects with those obtained by Burbano-Lombana and Porfiri [<xref ref-type="bibr" rid="B19">19</xref>] for the case of an isolated fish. Second, we compared the social interaction metrics, in terms of average polarization, average relative polarization, and average inter-individual distance, between the experimental and <italic>in-silico</italic> data-sets.</p>
<p>In contrast with our expectations, we did not observe a modulatory role of caffeine on freezing and locomotion parameters. Our expectation was based on a number of previous studies documenting a robust dependence of zebrafish behavioral response to acute caffeine administration [<xref ref-type="bibr" rid="B18">18</xref>,<xref ref-type="bibr" rid="B59">59</xref>]. This was particularly evident for individuals swimming with untreated subjects, for which we failed to detect any effect of caffeine treatment. Likely, the explanation for the abolishment of a dose-dependent response should be sought in the presence of the social environment, which, indeed was responsible for a few, salient variations in locomotion parameters associated with the speed and turn-rate evolution. It is tenable that the presence of social cues had a leveling role on the anxiogenic effect of caffeine, which is indirectly evidenced by the tendency to enhance white noise with respect to the jump noise in the turn-rate evolution. Jumps have been associated with erratic activity of the animal, in the form of C- and U-turns, so that their reduction in favor of steady swimming offers an indication of an axiolytic value of the social environment, also discussed by Neri et&#x20;al. [<xref ref-type="bibr" rid="B40">40</xref>]. With respect to the effect on untreated subjects, we recorded a decrease in their tendency to shoal with each other, which highlights an interesting, albeit indirect, effect of caffeine treatment. Caffeine treatment of one selected individuals might bear an anxiolytic effect on the rest of the group that reduce their tendency to stay close [<xref ref-type="bibr" rid="B15">15</xref>,<xref ref-type="bibr" rid="B51">51</xref>]; understanding this counter-intuitive finding should be the object of future research.</p>
<p>The calibrated model is in good agreement with experimental observations on social metrics, related to shoaling and schooling. While this agreement should be desired in any calibrated model, it is not obvious to attain. In fact, <italic>in-silico</italic> experiments do not contain the fine-grain variations that are unique to the experimental subjects, whereby we excluded from the simulations any statistical variation in the locomotion and freezing parameters. Accounting for variations in the social gains due to caffeine administration through a simple normal distribution seems sufficient to capture the emergent response of the groups, as well as the role of the treated individual.</p>
<p>The proposed model is not free of limitations. First, we assumed that the interaction between fish is solely based on visual stimuli. Incorporating other mechanisms of social interactions, such as hydro interactions [<xref ref-type="bibr" rid="B35">35</xref>,<xref ref-type="bibr" rid="B37">37</xref>], may help refine the mathematical model, especially in terms of short-range interactions related to the perturbations they create in the fluid environment [<xref ref-type="bibr" rid="B37">37</xref>]. Second, the current model does not incorporate wall following behavior observed in real experiments, whereby interaction with the wall is limited to a simple repulsion [<xref ref-type="bibr" rid="B20">20</xref>]. Third, the model is purely two-dimensional, thereby failing to capture salient anxiety-related responses that have been documented in zebrafish, such geotaxis [<xref ref-type="bibr" rid="B18">18</xref>, <xref ref-type="bibr" rid="B60">60</xref>]. Fourth, the entire modeling framework is based on a single psychoactive compound, which bears limitations in the generalizations of the predictions to other substances that impinge on anxiety [<xref ref-type="bibr" rid="B11">11</xref>,<xref ref-type="bibr" rid="B14">14</xref>]. Along this line, the most fundamental limitations of the model is the lack of a direct link between the molecular composition of the substance or the brain mechanisms it affects and the parameters of the model. In its present incarnation, the model requires knowledge of all its parameters to perform <italic>in-silico</italic> experiments, without allowing for exploring different substances or even untested concentrations on caffeine.</p>
<p>Despite these limitations, the proposed model offers a first step in the design of <italic>in-silico</italic> experiments that can aid the 3R&#x2019;s with respect to zebrafish experimentation. The proposed model can be used to reduce the number of experiments, by affording statistical insight into the sample size. Likewise, the model can be used to refine existing data-sets, by informing model-based analysis of the data and, potentially, assist in verification and tracking. Finally, pilot studies could be conducted on a computer, thereby reducing the number of subjects utilized in experimental research.</p>
</sec>
</body>
<back>
<sec id="s6">
<title>Data Availability Statement</title>
<p>The experimental data-set and representative videos of the <italic>in-silico</italic> experiments can be found in the repository of our research laboratory at <ext-link ext-link-type="uri" xlink:href="https://github.com/dynamicalsystemslaboratory/CaffeineSocialBehavior">https://github.com/dynamicalsystemslaboratory/CaffeineSocialBehavior</ext-link>.</p>
</sec>
<sec id="s7">
<title>Author Contributions</title>
<p>MP designed and supervised the research. MT developed the computer codes, conducted model calibration, performed statistical analysis, and wrote a first, preliminary draft of the work. MP consolidated the draft in the present submission. Both authors developed the mathematical model and analyzed results.</p>
</sec>
<sec id="s8">
<title>Funding</title>
<p>This work was partially supported by the National Science Foundation under grant number CMMI 1901697 and by the National Institutes of Health, National Institute on Drug Abuse under grant number 1R21DA042558-01A1 and Office of Behavioral and Social Sciences Research that co-funded the National Institute on Drug Abuse grant, all awarded to MP. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.</p>
</sec>
<sec sec-type="COI-statement" id="s9">
<title>Conflict of Interest</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec sec-type="disclaimer" id="s10">
<title>Publisher&#x2019;s Note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<sec id="s11">
<title>Supplementary Material</title>
<p>The Supplementary Material for this article can be found online at: <ext-link ext-link-type="uri" xlink:href="https://www.frontiersin.org/articles/10.3389/fams.2021.751351/full#supplementary-material">https://www.frontiersin.org/articles/10.3389/fams.2021.751351/full&#x23;supplementary-material</ext-link>
</p>
<supplementary-material xlink:href="DataSheet1.PDF" id="SM1" mimetype="application/PDF" xmlns:xlink="http://www.w3.org/1999/xlink"/>
</sec>
<ref-list>
<title>References</title>
<ref id="B1">
<label>1.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Chow</surname>
<given-names>PKH</given-names>
</name>
<name>
<surname>Ng</surname>
<given-names>RTH</given-names>
</name>
<name>
<surname>Ogden</surname>
<given-names>BE</given-names>
</name>
</person-group>. <source>Using Animal Models In Biomedical Research</source>. <publisher-loc>Singapore</publisher-loc>: <publisher-name>World Scientific</publisher-name> (<year>2008</year>). <pub-id pub-id-type="doi">10.1142/6454</pub-id> </citation>
</ref>
<ref id="B2">
<label>2.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>S&#xe1;nchez Morgado</surname>
<given-names>JM</given-names>
</name>
<name>
<surname>Br&#xf8;nstad</surname>
<given-names>A</given-names>
</name>
</person-group>. <source>Experimental Design and Reproducibility in Preclinical Animal Studies</source>. <publisher-name>Springer International Publishing</publisher-name> (<year>2021</year>). </citation>
</ref>
<ref id="B3">
<label>3.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Badyal</surname>
<given-names>D</given-names>
</name>
<name>
<surname>Desai</surname>
<given-names>C</given-names>
</name>
</person-group>. <article-title>Animal Use in Pharmacology Education and Research: The Changing Scenario</article-title>. <source>Indian J&#x20;Pharmacol</source> (<year>2014</year>) <volume>46</volume>(<issue>3</issue>):<fpage>257</fpage>&#x2013;<lpage>65</lpage>. <pub-id pub-id-type="doi">10.4103/0253-7613.132153</pub-id> </citation>
</ref>
<ref id="B4">
<label>4.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Ford</surname>
<given-names>KA</given-names>
</name>
</person-group>. <article-title>Refinement, Reduction, and Replacement of Animal Toxicity Tests by Computational Methods</article-title>. <source>Ilar J</source> (<year>2016</year>) <volume>57</volume>(<issue>2</issue>):<fpage>226</fpage>&#x2013;<lpage>33</lpage>. <pub-id pub-id-type="doi">10.1093/ilar/ilw031</pub-id> </citation>
</ref>
<ref id="B5">
<label>5.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Raunio</surname>
<given-names>H</given-names>
</name>
</person-group>. <article-title>In Silico Toxicology - Non-testing Methods</article-title>. <source>Front Pharmacol</source> (<year>2011</year>) <volume>2</volume>:<fpage>33</fpage>. <pub-id pub-id-type="doi">10.3389/fphar.2011.00033</pub-id> </citation>
</ref>
<ref id="B6">
<label>6.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Viceconti</surname>
<given-names>M</given-names>
</name>
<name>
<surname>Pappalardo</surname>
<given-names>F</given-names>
</name>
<name>
<surname>Rodriguez</surname>
<given-names>B</given-names>
</name>
<name>
<surname>Horner</surname>
<given-names>M</given-names>
</name>
<name>
<surname>Bischoff</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Musuamba Tshinanu</surname>
<given-names>F</given-names>
</name>
</person-group>. <article-title>
<italic>In Silico</italic> trials: Verification, Validation and Uncertainty Quantification of Predictive Models Used in the Regulatory Evaluation of Biomedical Products</article-title>. <source>Methods</source> (<year>2021</year>) <volume>185</volume>:<fpage>120</fpage>&#x2013;<lpage>7</lpage>. <pub-id pub-id-type="doi">10.1016/j.ymeth.2020.01.011</pub-id> </citation>
</ref>
<ref id="B7">
<label>7.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Goldsmith</surname>
<given-names>P</given-names>
</name>
</person-group>. <article-title>Zebrafish as a Pharmacological Tool: the How, Why and when</article-title>. <source>Curr Opin Pharmacol</source> (<year>2004</year>) <volume>4</volume>(<issue>5</issue>):<fpage>504</fpage>&#x2013;<lpage>12</lpage>. <pub-id pub-id-type="doi">10.1016/j.coph.2004.04.005</pub-id> </citation>
</ref>
<ref id="B8">
<label>8.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Guo</surname>
<given-names>S</given-names>
</name>
</person-group>. <article-title>Linking Genes to Brain, Behavior and Neurological Diseases: what Can We Learn from Zebrafish</article-title>. <source>Genes Brain Behav</source> (<year>2004</year>) <volume>3</volume>(<issue>2</issue>):<fpage>63</fpage>&#x2013;<lpage>74</lpage>. <pub-id pub-id-type="doi">10.1046/j.1601-183x.2003.00053.x</pub-id> </citation>
</ref>
<ref id="B9">
<label>9.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Stewart</surname>
<given-names>AM</given-names>
</name>
<name>
<surname>Braubach</surname>
<given-names>O</given-names>
</name>
<name>
<surname>Spitsbergen</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Gerlai</surname>
<given-names>R</given-names>
</name>
<name>
<surname>Kalueff</surname>
<given-names>AV</given-names>
</name>
</person-group>. <article-title>Zebrafish Models for Translational Neuroscience Research: from Tank to Bedside</article-title>. <source>Trends Neurosciences</source> (<year>2014</year>) <volume>37</volume>(<issue>5</issue>):<fpage>264</fpage>&#x2013;<lpage>78</lpage>. <pub-id pub-id-type="doi">10.1016/j.tins.2014.02.011</pub-id> </citation>
</ref>
<ref id="B10">
<label>10.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Stewart</surname>
<given-names>A</given-names>
</name>
<name>
<surname>Gaikwad</surname>
<given-names>S</given-names>
</name>
<name>
<surname>Kyzar</surname>
<given-names>E</given-names>
</name>
<name>
<surname>Green</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Roth</surname>
<given-names>A</given-names>
</name>
<name>
<surname>Kalueff</surname>
<given-names>AV</given-names>
</name>
</person-group>. <article-title>Modeling Anxiety Using Adult Zebrafish: A Conceptual Review</article-title>. <source>Neuropharmacology</source> (<year>2012</year>) <volume>62</volume>(<issue>1</issue>):<fpage>135</fpage>&#x2013;<lpage>43</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuropharm.2011.07.037</pub-id> </citation>
</ref>
<ref id="B11">
<label>11.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>da Silva Chaves</surname>
<given-names>SN</given-names>
</name>
<name>
<surname>Fel&#xed;cio</surname>
<given-names>GR</given-names>
</name>
<name>
<surname>Costa</surname>
<given-names>BPD</given-names>
</name>
<name>
<surname>de Oliveira</surname>
<given-names>WEA</given-names>
</name>
<name>
<surname>Lima-Maximino</surname>
<given-names>MG</given-names>
</name>
<name>
<surname>Siqueira Silva</surname>
<given-names>DHd.</given-names>
</name>
<etal/>
</person-group> <article-title>Behavioral and Biochemical Effects of Ethanol Withdrawal in Zebrafish</article-title>. <source>Pharmacol Biochem Behav</source> (<year>2018</year>) <volume>169</volume>:<fpage>48</fpage>&#x2013;<lpage>58</lpage>. <pub-id pub-id-type="doi">10.1016/j.pbb.2018.04.006</pub-id> </citation>
</ref>
<ref id="B12">
<label>12.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Egan</surname>
<given-names>RJ</given-names>
</name>
<name>
<surname>Bergner</surname>
<given-names>CL</given-names>
</name>
<name>
<surname>Hart</surname>
<given-names>PC</given-names>
</name>
<name>
<surname>Cachat</surname>
<given-names>JM</given-names>
</name>
<name>
<surname>Canavello</surname>
<given-names>PR</given-names>
</name>
<name>
<surname>Elegante</surname>
<given-names>MF</given-names>
</name>
<etal/>
</person-group> <article-title>Understanding Behavioral and Physiological Phenotypes of Stress and Anxiety&#x20;in Zebrafish</article-title>. <source>Behav Brain Res</source> (<year>2009</year>) <volume>205</volume>(<issue>1</issue>):<fpage>38</fpage>&#x2013;<lpage>44</lpage>. <pub-id pub-id-type="doi">10.1016/j.bbr.2009.06.022</pub-id> </citation>
</ref>
<ref id="B13">
<label>13.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Gerlai</surname>
<given-names>R</given-names>
</name>
<name>
<surname>Ahmad</surname>
<given-names>F</given-names>
</name>
<name>
<surname>Prajapati</surname>
<given-names>S</given-names>
</name>
</person-group>. <article-title>Differences in Acute Alcohol-Induced Behavioral Responses Among Zebrafish Populations</article-title>. <source>Alcohol Clin Exp Res</source> (<year>2008</year>) <volume>32</volume>(<issue>10</issue>):<fpage>1763</fpage>&#x2013;<lpage>73</lpage>. <pub-id pub-id-type="doi">10.1111/j.1530-0277.2008.00761.x</pub-id> </citation>
</ref>
<ref id="B14">
<label>14.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Kacprzak</surname>
<given-names>V</given-names>
</name>
<name>
<surname>Patel</surname>
<given-names>NA</given-names>
</name>
<name>
<surname>Riley</surname>
<given-names>E</given-names>
</name>
<name>
<surname>Yu</surname>
<given-names>L</given-names>
</name>
<name>
<surname>Yeh</surname>
<given-names>J-RJ</given-names>
</name>
<name>
<surname>Zhdanova</surname>
<given-names>IV</given-names>
</name>
</person-group>. <article-title>Dopaminergic Control of Anxiety in Young and Aged Zebrafish</article-title>. <source>Pharmacol Biochem Behav</source> (<year>2017</year>) <volume>157</volume>:<fpage>1</fpage>&#x2013;<lpage>8</lpage>. <pub-id pub-id-type="doi">10.1016/j.pbb.2017.01.005</pub-id> </citation>
</ref>
<ref id="B15">
<label>15.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Speedie</surname>
<given-names>N</given-names>
</name>
<name>
<surname>Gerlai</surname>
<given-names>R</given-names>
</name>
</person-group>. <article-title>Alarm Substance Induced Behavioral Responses in Zebrafish (<italic>Danio rerio</italic>)</article-title>. <source>Behav Brain Res</source> (<year>2008</year>) <volume>188</volume>(<issue>1</issue>):<fpage>168</fpage>&#x2013;<lpage>77</lpage>. <pub-id pub-id-type="doi">10.1016/j.bbr.2007.10.031</pub-id> </citation>
</ref>
<ref id="B16">
<label>16.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Cachat</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Canavello</surname>
<given-names>P</given-names>
</name>
<name>
<surname>Elegante</surname>
<given-names>M</given-names>
</name>
<name>
<surname>Bartels</surname>
<given-names>B</given-names>
</name>
<name>
<surname>Hart</surname>
<given-names>P</given-names>
</name>
<name>
<surname>Bergner</surname>
<given-names>C</given-names>
</name>
<etal/>
</person-group> <article-title>Modeling Withdrawal Syndrome in Zebrafish</article-title>. <source>Behav Brain Res</source> (<year>2010</year>) <volume>208</volume>(<issue>2</issue>):<fpage>371</fpage>&#x2013;<lpage>6</lpage>. <pub-id pub-id-type="doi">10.1016/j.bbr.2009.12.004</pub-id> </citation>
</ref>
<ref id="B17">
<label>17.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Khan</surname>
<given-names>KM</given-names>
</name>
<name>
<surname>Collier</surname>
<given-names>AD</given-names>
</name>
<name>
<surname>Meshalkina</surname>
<given-names>DA</given-names>
</name>
<name>
<surname>Kysil</surname>
<given-names>EV</given-names>
</name>
<name>
<surname>Khatsko</surname>
<given-names>SL</given-names>
</name>
<name>
<surname>Kolesnikova</surname>
<given-names>T</given-names>
</name>
<etal/>
</person-group> <article-title>Zebrafish Models in Neuropsychopharmacology and CNS Drug Discovery</article-title>. <source>Br J&#x20;Pharmacol</source> (<year>2017</year>) <volume>174</volume>(<issue>13</issue>):<fpage>1925</fpage>&#x2013;<lpage>44</lpage>. <pub-id pub-id-type="doi">10.1111/bph.13754</pub-id> </citation>
</ref>
<ref id="B18">
<label>18.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Maximino</surname>
<given-names>C</given-names>
</name>
<name>
<surname>de Brito</surname>
<given-names>TM</given-names>
</name>
<name>
<surname>da Silva Batista</surname>
<given-names>AW</given-names>
</name>
<name>
<surname>Herculano</surname>
<given-names>AM</given-names>
</name>
<name>
<surname>Morato</surname>
<given-names>S</given-names>
</name>
<name>
<surname>Gouveia</surname>
<given-names>A</given-names>
<suffix>Jr</suffix>
</name>
</person-group>. <article-title>Measuring Anxiety in Zebrafish: A Critical Review</article-title>. <source>Behav Brain Res</source> (<year>2010</year>) <volume>214</volume>(<issue>2</issue>):<fpage>157</fpage>&#x2013;<lpage>71</lpage>. <pub-id pub-id-type="doi">10.1016/j.bbr.2010.05.031</pub-id> </citation>
</ref>
<ref id="B19">
<label>19.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Burbano-L</surname>
<given-names>DA</given-names>
</name>
<name>
<surname>Porfiri</surname>
<given-names>M</given-names>
</name>
</person-group>. <article-title>Data-driven Modeling of Zebrafish Behavioral Response to Acute Caffeine Administration</article-title>. <source>J&#x20;Theor Biol</source> (<year>2020</year>) <volume>485</volume>:<fpage>110054</fpage>. <pub-id pub-id-type="doi">10.1016/j.jtbi.2019.110054</pub-id> </citation>
</ref>
<ref id="B20">
<label>20.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Gautrais</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Jost</surname>
<given-names>C</given-names>
</name>
<name>
<surname>Soria</surname>
<given-names>M</given-names>
</name>
<name>
<surname>Campo</surname>
<given-names>A</given-names>
</name>
<name>
<surname>Motsch</surname>
<given-names>S</given-names>
</name>
<name>
<surname>Fournier</surname>
<given-names>R</given-names>
</name>
<etal/>
</person-group> <article-title>Analyzing Fish Movement as a Persistent Turning walker</article-title>. <source>J&#x20;Math Biol</source> (<year>2009</year>) <volume>58</volume>:<fpage>429</fpage>&#x2013;<lpage>45</lpage>. <pub-id pub-id-type="doi">10.1007/s00285-008-0198-7</pub-id> </citation>
</ref>
<ref id="B21">
<label>21.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Mwaffo</surname>
<given-names>V</given-names>
</name>
<name>
<surname>Porfiri</surname>
<given-names>M</given-names>
</name>
</person-group>. <article-title>Turning Rate Dynamics of Zebrafish Exposed to Ethanol</article-title>. <source>Int J&#x20;Bifurcation Chaos</source> (<year>2015</year>) <volume>25</volume>(<issue>7</issue>):<fpage>1540006</fpage>. <pub-id pub-id-type="doi">10.1142/s0218127415400064</pub-id> </citation>
</ref>
<ref id="B22">
<label>22.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Mwaffo</surname>
<given-names>V</given-names>
</name>
<name>
<surname>Butail</surname>
<given-names>S</given-names>
</name>
<name>
<surname>Porfiri</surname>
<given-names>M</given-names>
</name>
</person-group>. <article-title>
<italic>In-silico</italic> Experiments of Zebrafish Behaviour: Modeling Swimming in Three Dimensions</article-title>. <source>Sci Rep</source> (<year>2017</year>) <volume>7</volume>:<fpage>39877</fpage>. <pub-id pub-id-type="doi">10.1038/srep39877</pub-id> </citation>
</ref>
<ref id="B23">
<label>23.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zienkiewicz</surname>
<given-names>A</given-names>
</name>
<name>
<surname>Barton</surname>
<given-names>DAW</given-names>
</name>
<name>
<surname>Porfiri</surname>
<given-names>M</given-names>
</name>
<name>
<surname>Di Bernardo</surname>
<given-names>M</given-names>
</name>
</person-group>. <article-title>Data-driven Stochastic Modelling of Zebrafish Locomotion</article-title>. <source>J&#x20;Math Biol</source> (<year>2015</year>) <volume>71</volume>:<fpage>1081</fpage>&#x2013;<lpage>105</lpage>. <pub-id pub-id-type="doi">10.1007/s00285-014-0843-2</pub-id> </citation>
</ref>
<ref id="B24">
<label>24.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Blake</surname>
<given-names>RW</given-names>
</name>
</person-group>. <article-title>Fish Functional Design and Swimming Performance</article-title>. <source>J&#x20;Fish Biol</source> (<year>2004</year>) <volume>65</volume>(<issue>5</issue>):<fpage>1193</fpage>&#x2013;<lpage>222</lpage>. <pub-id pub-id-type="doi">10.1111/j.0022-1112.2004.00568.x</pub-id> </citation>
</ref>
<ref id="B25">
<label>25.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Chung</surname>
<given-names>M-H</given-names>
</name>
</person-group>. <article-title>On Burst-And-Coast Swimming Performance in Fish-like Locomotion</article-title>. <source>Bioinspir Biomim</source> (<year>2009</year>) <volume>4</volume>(<issue>3</issue>):<fpage>036001</fpage>. <pub-id pub-id-type="doi">10.1088/1748-3182/4/3/036001</pub-id> </citation>
</ref>
<ref id="B26">
<label>26.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Mwaffo</surname>
<given-names>V</given-names>
</name>
<name>
<surname>Anderson</surname>
<given-names>RP</given-names>
</name>
<name>
<surname>Butail</surname>
<given-names>S</given-names>
</name>
<name>
<surname>Porfiri</surname>
<given-names>M</given-names>
</name>
</person-group>. <article-title>A Jump Persistent Turning walker to Model Zebrafish Locomotion</article-title>. <source>J&#x20;R Soc Interf</source> (<year>2015</year>) <volume>12</volume>(<issue>102</issue>):<fpage>20140884</fpage>. <pub-id pub-id-type="doi">10.1098/rsif.2014.0884</pub-id> </citation>
</ref>
<ref id="B27">
<label>27.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Butail</surname>
<given-names>S</given-names>
</name>
<name>
<surname>Mwaffo</surname>
<given-names>V</given-names>
</name>
<name>
<surname>Porfiri</surname>
<given-names>M</given-names>
</name>
</person-group>. <article-title>Model-free Information-Theoretic Approach to Infer Leadership in Pairs of Zebrafish</article-title>. <source>Phys Rev E</source> (<year>2016</year>) <volume>93</volume>(<issue>4</issue>):<fpage>042411</fpage>. <pub-id pub-id-type="doi">10.1103/PhysRevE.93.042411</pub-id> </citation>
</ref>
<ref id="B28">
<label>28.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Calovi</surname>
<given-names>DS</given-names>
</name>
<name>
<surname>Lopez</surname>
<given-names>U</given-names>
</name>
<name>
<surname>Schuhmacher</surname>
<given-names>P</given-names>
</name>
<name>
<surname>Chat&#xe9;</surname>
<given-names>H</given-names>
</name>
<name>
<surname>Sire</surname>
<given-names>C</given-names>
</name>
<name>
<surname>Theraulaz</surname>
<given-names>G</given-names>
</name>
</person-group>. <article-title>Collective Response to Perturbations in a Data-Driven Fish School Model</article-title>. <source>J&#x20;R Soc Interf</source> (<year>2015</year>) <volume>12</volume>(<issue>104</issue>):<fpage>20141362</fpage>. <pub-id pub-id-type="doi">10.1098/rsif.2014.1362</pub-id> </citation>
</ref>
<ref id="B29">
<label>29.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Calovi</surname>
<given-names>DS</given-names>
</name>
<name>
<surname>Litchinko</surname>
<given-names>A</given-names>
</name>
<name>
<surname>Lecheval</surname>
<given-names>V</given-names>
</name>
<name>
<surname>Lopez</surname>
<given-names>U</given-names>
</name>
<name>
<surname>P&#xe9;rez Escudero</surname>
<given-names>A</given-names>
</name>
<name>
<surname>Chat&#xe9;</surname>
<given-names>H</given-names>
</name>
<etal/>
</person-group> <article-title>Disentangling and Modeling Interactions in Fish with Burst-And-Coast Swimming Reveal Distinct Alignment and Attraction Behaviors</article-title>. <source>Plos Comput Biol</source> (<year>2018</year>) <volume>14</volume>(<issue>1</issue>):<fpage>e1005933</fpage>. <pub-id pub-id-type="doi">10.1371/journal.pcbi.1005933</pub-id> </citation>
</ref>
<ref id="B30">
<label>30.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Collignon</surname>
<given-names>B</given-names>
</name>
<name>
<surname>S&#xe9;guret</surname>
<given-names>A</given-names>
</name>
<name>
<surname>Halloy</surname>
<given-names>J</given-names>
</name>
</person-group>. <article-title>A Stochastic Vision-Based Model Inspired by Zebrafish Collective Behaviour in Heterogeneous Environments</article-title>. <source>R Soc Open Sci</source> (<year>2016</year>) <volume>3</volume>(<issue>1</issue>):<fpage>150473</fpage>. <pub-id pub-id-type="doi">10.1098/rsos.150473</pub-id> </citation>
</ref>
<ref id="B31">
<label>31.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Gautrais</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Ginelli</surname>
<given-names>F</given-names>
</name>
<name>
<surname>Fournier</surname>
<given-names>R</given-names>
</name>
<name>
<surname>Blanco</surname>
<given-names>S</given-names>
</name>
<name>
<surname>Soria</surname>
<given-names>M</given-names>
</name>
<name>
<surname>Chat&#xe9;</surname>
<given-names>H</given-names>
</name>
<etal/>
</person-group> <article-title>Deciphering Interactions in Moving Animal Groups</article-title>. <source>Plos Comput Biol</source> (<year>2012</year>) <volume>8</volume>(<issue>9</issue>):<fpage>e1002678</fpage>. <pub-id pub-id-type="doi">10.1371/journal.pcbi.1002678</pub-id> </citation>
</ref>
<ref id="B32">
<label>32.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Mwaffo</surname>
<given-names>V</given-names>
</name>
<name>
<surname>Korneyeva</surname>
<given-names>V</given-names>
</name>
<name>
<surname>Porfiri</surname>
<given-names>M</given-names>
</name>
</person-group>. <article-title>simUfish: An Interactive Application to Teach K-12 Students about Zebrafish Behavior</article-title>. <source>Zebrafish</source> (<year>2017</year>) <volume>14</volume>(<issue>5</issue>):<fpage>477</fpage>&#x2013;<lpage>88</lpage>. <pub-id pub-id-type="doi">10.1089/zeb.2016.1409</pub-id> </citation>
</ref>
<ref id="B33">
<label>33.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zienkiewicz</surname>
<given-names>AK</given-names>
</name>
<name>
<surname>Ladu</surname>
<given-names>F</given-names>
</name>
<name>
<surname>Barton</surname>
<given-names>DAW</given-names>
</name>
<name>
<surname>Porfiri</surname>
<given-names>M</given-names>
</name>
<name>
<surname>Bernardo</surname>
<given-names>MD</given-names>
</name>
</person-group>. <article-title>Data-driven Modelling of Social Forces and Collective Behaviour in Zebrafish</article-title>. <source>J&#x20;Theor Biol</source> (<year>2018</year>) <volume>443</volume>:<fpage>39</fpage>&#x2013;<lpage>51</lpage>. <pub-id pub-id-type="doi">10.1016/j.jtbi.2018.01.011</pub-id> </citation>
</ref>
<ref id="B34">
<label>34.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Filella</surname>
<given-names>A</given-names>
</name>
<name>
<surname>Nadal</surname>
<given-names>F</given-names>
</name>
<name>
<surname>Sire</surname>
<given-names>C</given-names>
</name>
<name>
<surname>Kanso</surname>
<given-names>E</given-names>
</name>
<name>
<surname>Eloy</surname>
<given-names>C</given-names>
</name>
</person-group>. <article-title>Model of Collective Fish Behavior with Hydrodynamic Interactions</article-title>. <source>Phys Rev Lett</source> (<year>2018</year>) <volume>120</volume>:<fpage>198101</fpage>. <pub-id pub-id-type="doi">10.1103/physrevlett.120.198101</pub-id> </citation>
</ref>
<ref id="B35">
<label>35.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Gazzola</surname>
<given-names>M</given-names>
</name>
<name>
<surname>Tchieu</surname>
<given-names>AA</given-names>
</name>
<name>
<surname>Alexeev</surname>
<given-names>D</given-names>
</name>
<name>
<surname>de Brauer</surname>
<given-names>A</given-names>
</name>
<name>
<surname>Koumoutsakos</surname>
<given-names>P</given-names>
</name>
</person-group>. <article-title>Learning to School in the Presence of Hydrodynamic Interactions</article-title>. <source>J&#x20;Fluid Mech</source> (<year>2016</year>) <volume>789</volume>:<fpage>726</fpage>&#x2013;<lpage>49</lpage>. <pub-id pub-id-type="doi">10.1017/jfm.2015.686</pub-id> </citation>
</ref>
<ref id="B36">
<label>36.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Jhawar</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Morris</surname>
<given-names>RG</given-names>
</name>
<name>
<surname>Amith-Kumar</surname>
<given-names>UR</given-names>
</name>
<name>
<surname>Danny Raj</surname>
<given-names>M</given-names>
</name>
<name>
<surname>Rogers</surname>
<given-names>T</given-names>
</name>
<name>
<surname>Rajendran</surname>
<given-names>H</given-names>
</name>
<etal/>
</person-group> <article-title>Noise-induced Schooling of Fish</article-title>. <source>Nat Phys</source> (<year>2020</year>) <volume>16</volume>(<issue>4</issue>):<fpage>488</fpage>&#x2013;<lpage>93</lpage>. <pub-id pub-id-type="doi">10.1038/s41567-020-0787-y</pub-id> </citation>
</ref>
<ref id="B37">
<label>37.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Porfiri</surname>
<given-names>M</given-names>
</name>
<name>
<surname>Karakaya</surname>
<given-names>M</given-names>
</name>
<name>
<surname>Sattanapalle</surname>
<given-names>RR</given-names>
</name>
<name>
<surname>Peterson</surname>
<given-names>SD</given-names>
</name>
</person-group>. <article-title>Emergence of In-Line Swimming Patterns in Zebrafish Pairs</article-title>. <source>Flow</source> (<year>2021</year>) <volume>1</volume>:<fpage>E7</fpage>. <pub-id pub-id-type="doi">10.1017/flo.2021.5</pub-id> </citation>
</ref>
<ref id="B38">
<label>38.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Valentini</surname>
<given-names>G</given-names>
</name>
<name>
<surname>Mizumoto</surname>
<given-names>N</given-names>
</name>
<name>
<surname>Pratt</surname>
<given-names>SC</given-names>
</name>
<name>
<surname>Pavlic</surname>
<given-names>TP</given-names>
</name>
<name>
<surname>Walker</surname>
<given-names>SI</given-names>
</name>
</person-group>. <article-title>Revealing the Structure of Information Flows Discriminates Similar Animal Social Behaviors</article-title>. <source>eLife</source> (<year>2020</year>) <volume>9</volume>:<fpage>e55395</fpage>. <pub-id pub-id-type="doi">10.7554/eLife.55395</pub-id> </citation>
</ref>
<ref id="B39">
<label>39.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Shirazi</surname>
<given-names>MJ</given-names>
</name>
<name>
<surname>Abaid</surname>
<given-names>N</given-names>
</name>
</person-group>. <article-title>Collective Behavior in Groups of Self-Propelled Particles with Active and Passive Sensing Inspired by Animal Echolocation</article-title>. <source>Phys Rev E</source> (<year>2018</year>) <volume>98</volume>(<issue>4</issue>):<fpage>042404</fpage>. <pub-id pub-id-type="doi">10.1103/physreve.98.042404</pub-id> </citation>
</ref>
<ref id="B40">
<label>40.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Neri</surname>
<given-names>D</given-names>
</name>
<name>
<surname>Ruberto</surname>
<given-names>T</given-names>
</name>
<name>
<surname>Mwaffo</surname>
<given-names>V</given-names>
</name>
<name>
<surname>Bartolini</surname>
<given-names>T</given-names>
</name>
<name>
<surname>Porfiri</surname>
<given-names>M</given-names>
</name>
</person-group>. <article-title>Social Environment Modulates Anxiogenic Effects of Caffeine in Zebrafish</article-title>. <source>Behav Pharmacol</source> (<year>2019</year>) <volume>30</volume>(<issue>1</issue>):<fpage>45</fpage>&#x2013;<lpage>58</lpage>. <pub-id pub-id-type="doi">10.1097/fbp.0000000000000415</pub-id> </citation>
</ref>
<ref id="B41">
<label>41.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Butail</surname>
<given-names>S</given-names>
</name>
<name>
<surname>Bartolini</surname>
<given-names>T</given-names>
</name>
<name>
<surname>Porfiri</surname>
<given-names>M</given-names>
</name>
</person-group>. <article-title>Collective Response of Zebrafish shoals to a Free-Swimming Robotic Fish</article-title>. <source>PLoS ONE</source> (<year>2013</year>) <volume>8</volume>:<fpage>e76123</fpage>&#x2013;<lpage>7</lpage>. <pub-id pub-id-type="doi">10.1371/journal.pone.0076123</pub-id> </citation>
</ref>
<ref id="B42">
<label>42.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Ladu</surname>
<given-names>F</given-names>
</name>
<name>
<surname>Butail</surname>
<given-names>S</given-names>
</name>
<name>
<surname>Macr&#xed;</surname>
<given-names>S</given-names>
</name>
<name>
<surname>Porfiri</surname>
<given-names>M</given-names>
</name>
</person-group>. <article-title>Sociality Modulates the Effects of Ethanol in Zebra Fish</article-title>. <source>Alcohol Clin Exp Res</source> (<year>2014</year>) <volume>38</volume>(<issue>7</issue>):<fpage>2096</fpage>&#x2013;<lpage>104</lpage>. <pub-id pub-id-type="doi">10.1111/acer.12432</pub-id> </citation>
</ref>
<ref id="B43">
<label>43.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Kopman</surname>
<given-names>V</given-names>
</name>
<name>
<surname>Laut</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Polverino</surname>
<given-names>G</given-names>
</name>
<name>
<surname>Porfiri</surname>
<given-names>M</given-names>
</name>
</person-group>. <article-title>Closed-loop Control of Zebrafish Response Using a Bioinspired Robotic-Fish in a Preference Test</article-title>. <source>J&#x20;R Soc Interf</source> (<year>2013</year>) <volume>10</volume>(<issue>78</issue>):<fpage>20120540</fpage>. <pub-id pub-id-type="doi">10.1098/rsif.2012.0540</pub-id> </citation>
</ref>
<ref id="B44">
<label>44.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Waldron</surname>
<given-names>KJ</given-names>
</name>
<name>
<surname>Schmiedeler</surname>
<given-names>J</given-names>
</name>
</person-group>. <source>Springer Handbook of Robotics</source>. <publisher-loc>Cham</publisher-loc>: <publisher-name>Springer</publisher-name> (<year>2016</year>) p. <fpage>11</fpage>&#x2013;<lpage>36</lpage>. <comment>chap. Kinematics</comment>. </citation>
</ref>
<ref id="B45">
<label>45.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Pasquali</surname>
<given-names>S</given-names>
</name>
</person-group>. <article-title>The Stochastic Logistic Equation: Stationary Solutions and Their Stability</article-title>. <source>Rendiconti Del Seminario Matematico Della Universit&#xe0; di Padova</source> (<year>2001</year>) <volume>106</volume>:<fpage>165</fpage>&#x2013;<lpage>83</lpage>. </citation>
</ref>
<ref id="B46">
<label>46.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Berdahl</surname>
<given-names>A</given-names>
</name>
<name>
<surname>Torney</surname>
<given-names>CJ</given-names>
</name>
<name>
<surname>Ioannou</surname>
<given-names>CC</given-names>
</name>
<name>
<surname>Faria</surname>
<given-names>JJ</given-names>
</name>
<name>
<surname>Couzin</surname>
<given-names>ID</given-names>
</name>
</person-group>. <article-title>Emergent Sensing of Complex Environments by mobile Animal Groups</article-title>. <source>Science</source> (<year>2013</year>) <volume>339</volume>(<issue>6119</issue>):<fpage>574</fpage>&#x2013;<lpage>6</lpage>. <pub-id pub-id-type="doi">10.1126/science.1225883</pub-id> </citation>
</ref>
<ref id="B47">
<label>47.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Herbert-Read</surname>
<given-names>JE</given-names>
</name>
<name>
<surname>Perna</surname>
<given-names>A</given-names>
</name>
<name>
<surname>Mann</surname>
<given-names>RP</given-names>
</name>
<name>
<surname>Schaerf</surname>
<given-names>TM</given-names>
</name>
<name>
<surname>Sumpter</surname>
<given-names>DJT</given-names>
</name>
<name>
<surname>Ward</surname>
<given-names>AJW</given-names>
</name>
</person-group>. <article-title>Inferring the Rules of Interaction of Shoaling Fish</article-title>. <source>Proc Natl Acad Sci</source> (<year>2011</year>) <volume>108</volume>(<issue>46</issue>):<fpage>18726</fpage>&#x2013;<lpage>31</lpage>. <pub-id pub-id-type="doi">10.1073/pnas.1109355108</pub-id> </citation>
</ref>
<ref id="B48">
<label>48.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Herbert-Read</surname>
<given-names>JE</given-names>
</name>
<name>
<surname>Krause</surname>
<given-names>S</given-names>
</name>
<name>
<surname>Morrell</surname>
<given-names>LJ</given-names>
</name>
<name>
<surname>Schaerf</surname>
<given-names>TM</given-names>
</name>
<name>
<surname>Krause</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Ward</surname>
<given-names>AJW</given-names>
</name>
</person-group>. <article-title>The Role of Individuality in Collective Group Movement</article-title>. <source>Proc R Soc B</source> (<year>2013</year>) <volume>280</volume>(<issue>1752</issue>):<fpage>20122564</fpage>. <pub-id pub-id-type="doi">10.1098/rspb.2012.2564</pub-id> </citation>
</ref>
<ref id="B49">
<label>49.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Katz</surname>
<given-names>Y</given-names>
</name>
<name>
<surname>Tunstrom</surname>
<given-names>K</given-names>
</name>
<name>
<surname>Ioannou</surname>
<given-names>CC</given-names>
</name>
<name>
<surname>Huepe</surname>
<given-names>C</given-names>
</name>
<name>
<surname>Couzin</surname>
<given-names>ID</given-names>
</name>
</person-group>. <article-title>Inferring the Structure and Dynamics of Interactions in Schooling Fish</article-title>. <source>Proc Natl Acad Sci</source> (<year>2011</year>) <volume>108</volume>(<issue>46</issue>):<fpage>18720</fpage>&#x2013;<lpage>5</lpage>. <pub-id pub-id-type="doi">10.1073/pnas.1107583108</pub-id> </citation>
</ref>
<ref id="B50">
<label>50.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Krause</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Ward</surname>
<given-names>AJW</given-names>
</name>
<name>
<surname>Jackson</surname>
<given-names>AL</given-names>
</name>
<name>
<surname>Ruxton</surname>
<given-names>GD</given-names>
</name>
<name>
<surname>James</surname>
<given-names>R</given-names>
</name>
<name>
<surname>Currie</surname>
<given-names>S</given-names>
</name>
</person-group>. <article-title>The Influence of Differential Swimming Speeds on Composition of Multi-Species Fish shoals</article-title>. <source>J&#x20;Fish Biol</source> (<year>2005</year>) <volume>67</volume>(<issue>3</issue>):<fpage>866</fpage>&#x2013;<lpage>72</lpage>. <pub-id pub-id-type="doi">10.1111/j.0022-1112.2005.00768.x</pub-id> </citation>
</ref>
<ref id="B51">
<label>51.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Miller</surname>
<given-names>N</given-names>
</name>
<name>
<surname>Gerlai</surname>
<given-names>R</given-names>
</name>
</person-group>. <article-title>Quantification of Shoaling Behaviour in Zebrafish (<italic>Danio rerio</italic>)</article-title>. <source>Behav Brain Res</source> (<year>2007</year>) <volume>184</volume>(<issue>2</issue>):<fpage>157</fpage>&#x2013;<lpage>66</lpage>. <pub-id pub-id-type="doi">10.1016/j.bbr.2007.07.007</pub-id> </citation>
</ref>
<ref id="B52">
<label>52.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Gupta</surname>
<given-names>P</given-names>
</name>
<name>
<surname>Khobragade</surname>
<given-names>S</given-names>
</name>
<name>
<surname>Rajaram</surname>
<given-names>S</given-names>
</name>
<name>
<surname>Shingatgeri</surname>
<given-names>V</given-names>
</name>
</person-group>. <article-title>Assessment of Locomotion Behavior in Adult Zebrafish after Acute Exposure to Different Pharmacological Reference Compounds</article-title>. <source>Drug Dev Ther</source> (<year>2014</year>) <volume>5</volume>(<issue>2</issue>):<fpage>127</fpage>&#x2013;<lpage>33</lpage>. <pub-id pub-id-type="doi">10.4103/2394-2002.139626</pub-id> </citation>
</ref>
<ref id="B53">
<label>53.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Ruberto</surname>
<given-names>T</given-names>
</name>
<name>
<surname>Mwaffo</surname>
<given-names>V</given-names>
</name>
<name>
<surname>Singh</surname>
<given-names>S</given-names>
</name>
<name>
<surname>Neri</surname>
<given-names>D</given-names>
</name>
<name>
<surname>Porfiri</surname>
<given-names>M</given-names>
</name>
</person-group>. <article-title>Zebrafish Response to a Robotic Replica in Three Dimensions</article-title>. <source>R Soc Open Sci</source> (<year>2016</year>) <volume>3</volume>(<issue>10</issue>):<fpage>160505</fpage>. <pub-id pub-id-type="doi">10.1098/rsos.160505</pub-id> </citation>
</ref>
<ref id="B54">
<label>54.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Higham.</surname>
<given-names>DJ</given-names>
</name>
</person-group>. <article-title>An Algorithmic Introduction to Numerical Simulation of Stochastic Differential Equations</article-title>. <source>SIAM Rev</source> (<year>2001</year>) <volume>43</volume>(<issue>3</issue>):<fpage>525</fpage>&#x2013;<lpage>46</lpage>. <pub-id pub-id-type="doi">10.1137/s0036144500378302</pub-id> </citation>
</ref>
<ref id="B55">
<label>55.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Pitcher</surname>
<given-names>TJ</given-names>
</name>
<name>
<surname>Magurran</surname>
<given-names>AE</given-names>
</name>
<name>
<surname>Allan</surname>
<given-names>JR</given-names>
</name>
</person-group>. <article-title>Size-segregative Behaviour in Minnow shoals</article-title>. <source>J&#x20;Fish Biol</source> (<year>1986</year>) <volume>29</volume>:<fpage>83</fpage>&#x2013;<lpage>95</lpage>. <pub-id pub-id-type="doi">10.1111/j.1095-8649.1986.tb05001.x</pub-id> </citation>
</ref>
<ref id="B56">
<label>56.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Miller</surname>
<given-names>N</given-names>
</name>
<name>
<surname>Gerlai</surname>
<given-names>R</given-names>
</name>
</person-group>. <article-title>From Schooling to Shoaling: Patterns of Collective Motion in Zebrafish (<italic>Danio rerio</italic>)</article-title>. <source>PLoS ONE</source> (<year>2012</year>) <volume>7</volume>(<issue>11</issue>):<fpage>e48865</fpage>. <pub-id pub-id-type="doi">10.1371/journal.pone.0048865</pub-id> </citation>
</ref>
<ref id="B57">
<label>57.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Aureli</surname>
<given-names>M</given-names>
</name>
<name>
<surname>Fiorilli</surname>
<given-names>F</given-names>
</name>
<name>
<surname>Porfiri</surname>
<given-names>M</given-names>
</name>
</person-group>. <article-title>Portraits of Self-Organization in Fish Schools Interacting with Robots</article-title>. <source>Physica D: Nonlinear Phenomena</source> (<year>2012</year>) <volume>241</volume>(<issue>9</issue>):<fpage>908</fpage>&#x2013;<lpage>20</lpage>. <pub-id pub-id-type="doi">10.1016/j.physd.2012.02.005</pub-id> </citation>
</ref>
<ref id="B58">
<label>58.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Maximino</surname>
<given-names>C</given-names>
</name>
<name>
<surname>da Silva</surname>
<given-names>AWB</given-names>
</name>
<name>
<surname>Gouveia</surname>
<given-names>A</given-names>
<suffix>Jr</suffix>
</name>
<name>
<surname>Herculano</surname>
<given-names>AM</given-names>
</name>
</person-group>. <article-title>Pharmacological Analysis of Zebrafish (<italic>Danio rerio</italic>) Scototaxis</article-title>. <source>Prog Neuro-Psychopharmacology Biol Psychiatry</source> (<year>2011</year>) <volume>35</volume>(<issue>2</issue>):<fpage>624</fpage>&#x2013;<lpage>31</lpage>. <pub-id pub-id-type="doi">10.1016/j.pnpbp.2011.01.006</pub-id> </citation>
</ref>
<ref id="B59">
<label>59.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Stewart</surname>
<given-names>A</given-names>
</name>
<name>
<surname>Kadri</surname>
<given-names>F</given-names>
</name>
<name>
<surname>DiLeo</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Min Chung</surname>
<given-names>K</given-names>
</name>
<name>
<surname>Cachat</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Goodspeed</surname>
<given-names>J</given-names>
</name>
<etal/>
</person-group> <article-title>The Developing Utility of Zebrafish in Modeling Neurobehavioral Disorders</article-title>. <source>Int J&#x20;Comp Psychol</source> (<year>2010</year>) <volume>23</volume>(<issue>1</issue>):<fpage>104</fpage>&#x2013;<lpage>20</lpage>. </citation>
</ref>
<ref id="B60">
<label>60.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Maximino</surname>
<given-names>C</given-names>
</name>
<name>
<surname>Marques de Brito</surname>
<given-names>T</given-names>
</name>
<name>
<surname>Dias</surname>
<given-names>CAGd. M</given-names>
</name>
<name>
<surname>Gouveia</surname>
<given-names>A</given-names>
<suffix>Jr</suffix>
</name>
<name>
<surname>Morato</surname>
<given-names>S</given-names>
</name>
</person-group>. <article-title>Scototaxis as Anxiety-like Behavior in Fish</article-title>. <source>Nat Protoc</source> (<year>2010</year>) <volume>5</volume>(<issue>2</issue>):<fpage>209</fpage>&#x2013;<lpage>16</lpage>. <pub-id pub-id-type="doi">10.1038/nprot.2009.225</pub-id> </citation>
</ref>
</ref-list>
</back>
</article>