Analysis of behavior
This protocol is extracted from research article:
Intra- versus intergroup variance in collective behavior
Sci Adv, Jan 2, 2019; DOI: 10.1126/sciadv.aav0695

All data analysis was performed using MATLAB (MathWorks, Natick, MA, USA). The analysis of all experiments was conducted from the 1st to the 111th minute of the recorded movie. Specific attributes of the system and the individual locusts were defined and analyzed as follows:

1) The instantaneous spread measure was defined as the average of all distances between all pairs of animals in each frame. The global spread measure is the average over all frames in a single experiment.

2) The instantaneous walking speed was calculated by the distance an animal traveled over the time of one frame. The global walking speed in an experiment is the average over all animals and frames.

3) Walking bouts and pauses were identified using a repeated running median (RRM) smoothing (4, 42). Walking bouts were defined as segments with RRM speeds greater than 0.25 cm/s for more than 1 s. The global walking bout and pause duration in an experiment are the average duration over all walking bouts or pauses, respectively.

4) Probability of walking as a function of k other walkers was calculated for each locust by the number of frames it walked when k other animals walked divided by the number of frames k other animals walked (Fig. 5A). Denote P2W as the conditional probability to walk, P2Wik = P(Li|Ok), where Li is the event animal i walked and Ok is the event that k other animals walked. To calculate the probability to walk conditioned on the event that K or more (less) others walk, P2WiK = P(Li|Mk), the number of frames the animal walked, Li, and K or more (less) others walk, MK, was divided by the number of times MK occurred (Fig. 5B and fig. S3). The global probability to walk when K or more/less others walked is the average of P2WiK = P(Li|Mk) over all animals (Fig. 5C): P2WK = ∑iP2WiK/N.

Note: The content above has been extracted from a research article, so it may not display correctly.

Please log in to submit your questions online.
Your question will be posted on the Bio-101 website. We will send your questions to the authors of this protocol and Bio-protocol community members who are experienced with this method. you will be informed using the email address associated with your Bio-protocol account.

We use cookies on this site to enhance your user experience. By using our website, you are agreeing to allow the storage of cookies on your computer.