arXiv:2609.37885q-bio.PESep 2026

Manuscript Offprint

arXiv:2609.37885

Boids of a Feather Flock Together - Evolving Prey Behaviours Under Different Predator Attack Strategies

Augusta van Haren, Hanna Hoogen, Luca Pattavina

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Flocking and schooling are thought to have evolved partly as defences against predation, but how prey should balance social and escape tendencies may depend on the predator's hunting strategy. We extend the predator-prey boids model of Ojo et al. (2023), itself based on Reynolds' boids, by combining six prey movement tendencies (alignment, cohesion, separation, dodge, repel and wiggle) into a single weighted acceleration update, and by reformulating wiggle as a sinusoidal manoeuvre. We then use an evolutionary strategy to optimise the six behaviour coefficients for collective prey survival against four predator hunting strategies: attack-centroid, attack-nearest, attack-random and attack-peripheral. Across five independent trials per strategy, coefficients converged within trials and mean fitness remained stable or increased, although trials often settled in different local optima. Prey survival was highest under attack-centroid and lowest under attack-nearest, in line with our hypotheses. Against attack-centroid, prey evolved individualistic predator avoidance with high escape coefficients, whereas against the other three strategies they largely kept their flock formation. Across all strategies, evolution favoured a low repel coefficient and relatively high dodge and wiggle coefficients. Our results suggest that optimal anti-predator behaviour depends on the interplay between escape tendencies and the predator's hunting strategy.

1 Introduction

Among many lifeforms, complex collective behaviour can emerge from simple social interactions, as seen in flocks of birds, schools of fish, and insect colonies. In a group, individuals influence one another and adapt their behaviour relying only on local neighbourhood information. However, such behaviour does not take place in isolation from the environment; together they form a complex, dynamical system. For example, individuals of different species or groups can interact and form predator and prey relationships. Both predators and prey have to evolve dynamic, adaptive behaviours to survive. Collective behaviours, such as schooling and flocking, may have evolved to decrease predation losses by confusing the predator or collectively organising information within a group of agents with limited information (Kunz et al., 2006). These collective behaviours can be governed by simple local rules. A classic example is the boids model by Reynolds (1987). This model simulates realistic flocking, which can be used to learn about flock behaviour in different scenarios through artificial boid simulations. One such scenario is the presence of a predator, where the trade-off between behavioural tendencies becomes crucial for survival (Palmer and Packer, 2021; Lee et al., 2006).

In this work, we evolve optimal prey escape behaviour based on local rules, under different predator attack strategies. To evolve the optimal behaviours, we again look at nature – algorithms inspired by evolution are useful for solving optimisation problems without relying on gradients (Beyer and Schwefel, 2002; Slowik and Kwasnicka, 2020). Here, we use an evolutionary strategy (ES) to optimise continuous behaviour coefficients.

References (29)