Related Experiment Video
Updated: Nov 22, 2025

Manipulation of Color Patterns in Jumping Spiders for Use in Behavioral Experiments
Published on: May 21, 2019
The Camouflage Machine: Optimizing protective coloration using deep learning with genetic algorithms
John G Fennell1, Laszlo Talas1, Roland J Baddeley1
1School of Psychological Science, University of Bristol, Bristol, UK.
Abstract:
Evolutionary biologists frequently wish to measure the fitness of alternative phenotypes using behavioral experiments. However, many phenotypes are complex. One example is coloration: camouflage aims to make detection harder, while conspicuous signals (e.g., for warning or mate attraction) require the opposite. Identifying the hardest and easiest to find patterns is essential for understanding the evolutionary forces that shape protective coloration, but the parameter space of potential patterns (colored visual textures) is vast, limiting previous empirical studies to a narrow range of phenotypes. Here, we demonstrate how deep learning combined with genetic algorithms can be used to augment behavioral experiments, identifying both the best camouflage and the most conspicuous signal(s) from an arbitrarily vast array of patterns. To show the generality of our approach, we do so for both trichromatic (e.g., human) and dichromatic (e.g., typical mammalian) visual systems, in two different habitats. The patterns identified were validated using human participants; those identified as the best for camouflage were significantly harder to find than a tried-and-tested military design, while those identified as most conspicuous were significantly easier to find than other patterns. More generally, our method, dubbed the "Camouflage Machine," will be a useful tool for identifying the optimal phenotype in high dimensional state spaces.
Related Concept Videos
Optimal Foraging
Predator-Prey Interactions
Frequency-dependent Selection
Epistasis
Limits to Natural Selection
What is Natural Selection?

