Dr Wong Wylie and Dr. Iwaniuk found that a specific nucleus - one that detects any movement of the entire visual world - was 2 to 5 times bigger in the hummingbird than in any other species, relative to the brain size. The hummingbird's brain is about the size of a grain of rice.
If you want to make sure you stay stationary, you just have to make sure nothing on the retina moves.
That's what this nucleus does, said Dr. Wong Wylie.