A meerkat in the Kalahari switches from foraging to socializing at almost exactly the same frequency as a coati in Panama, which follows the same rhythm as a hyena in Kenya. This isn't a coincidence. It's a signature of something far stranger: a universal behavioral algorithm that appears to run through the nervous systems of completely unrelated animals.
Most people assume that animal behavior reflects the unique pressures of each environment. Desert life should produce radically different daily routines than rainforest life. An animal that hunts alone ought to move and rest differently than one living in a group. Evolution, we're told, produces endless variety. And on the surface, it does—meerkats are nothing like hyenas. But zoom in on the actual timing and sequence of their activities, and something eerie emerges: they're running the same code.
Researchers at the Max Planck Institute and other institutions analyzed detailed behavioral data from multiple species across three continents and found that animals switch between activities—foraging, resting, socializing, traveling—according to patterns that follow the same mathematical rules, regardless of species or ecosystem. According to a 2024 study published in Science Advances, these patterns held true even when controlling for body size, diet, social structure, and environmental conditions. The animals weren't just similar; they were following what appeared to be an identical underlying logic for organizing their day.
The mechanism behind this convergence points to something deeper than environmental adaptation. Animals with vastly different brains—a meerkat's cortex bears little resemblance to a hyena's—still face the same fundamental problem: how to allocate energy and attention across multiple competing needs within a 24-hour window. According to research in NeuroScience News, evolution appears to have solved this optimization problem the same way multiple times. Whether an animal is small or large, social or solitary, foraging in open savanna or dense forest, the nervous system seems to implement a similar algorithm for deciding when to switch gears. It's as if natural selection discovered a single best solution and then kept using it.
The reason this algorithm is universal likely traces back to basic physics and neurobiology. Switching behaviors—shifting from one neural state to another—carries real metabolic costs. There's an optimal frequency for these switches that balances productivity against the energy spent on transitions themselves. A brain that switches too often wastes resources; one that switches too rarely misses opportunities. The animals across the study appeared to have converged on roughly the same sweet spot. The rules weren't learned or taught. They're embedded in how the nervous system itself is wired.
This finding reframes how we think about animal evolution. We tend to imagine each species as a custom solution to its unique environment, like separate software packages built for different operating systems. Instead, what we're seeing suggests that at some level, animal brains are running on the same foundational operating system. The differences we see—a meerkat's sentrybox behavior, a hyena's hunting strategy—are like different applications running on top of identical universal rules about when and how to switch between them.
The implication is both humbling and unsettling. If a meerkat and a hyena, separated by millions of years and thousands of miles, are running the same behavioral algorithm, what does that say about human behavior? Are we too following some deeper pattern that evolution keeps rediscovering? The researchers aren't claiming to have found a human equivalent—yet. But the existence of this universal animal code suggests that beneath all the cultural complexity and individual choice, there might be scaffolding we don't fully see.