Fewer things are more mesmerizing than watching massive flocks of starlings go into murmuration mode — a defensive measure designed to ward of predators. A recent video shot in Utrecht, The Netherlands is a perfect case in point.

The flocking behavior of birds, fish, and other animals is the result of "collective decision making." Now, researchers have created a computer model of how hundreds of birds can decide, seemingly simultaneously, to switch directions or land.