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

Augusta van Haren, Hanna Hoogen, Luca Pattavina
9/29/2026
q-bio.PEcs.AI

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{haren2026boids,
  title  = {Boids of a Feather Flock Together - Evolving Prey Behaviours Under Different Predator Attack Strategies},
  author = {Augusta van Haren and Hanna Hoogen and Luca Pattavina},
  year   = {2026},
  eprint = {2609.37885},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.37885v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.37885.svg)](https://codeofpaper.com/paper/2609.37885)

Discussion