The short answer
Scientists have not clearly tested whether hummingbirds recognize individual people. What research does show is that hummingbirds have a strong memory for where food is and when it is refilled. That memory can explain many of the reports people make of birds that seem to know them. Stories of a hummingbird recognizing its feeder keeper remain anecdotes.
What research shows about hummingbird memory
In a 2006 study published in Current Biology, researchers set up artificial flowers with sugar solution for wild rufous hummingbirds. Four flowers refilled 10 minutes after they were emptied, and four refilled after 20 minutes. The birds came back to the 10-minute flowers sooner, which showed that they tracked both where and when each flower refilled. They kept updating that information through the day.
The researchers described this as where-and-when memory in a wild animal, a kind of memory long thought to be largely human. It helps hummingbirds find reliable food. It does not, by itself, show that they can recognize a face.
What is known about other birds and people
Some birds do tell people apart. Research on crows and pigeons has shown they can distinguish individual humans, so the question about hummingbirds is a reasonable one to ask. The hummingbird research that exists so far focuses mostly on memory for places and timing rather than on faces.
Why it can look like they know you
Hummingbirds learn routines quickly. If the feeder stays in the same place and is refilled at about the same time each day, birds learn to expect food there, and they may come in when they see someone nearby. That can look like recognition, but a routine and a location can produce the same behavior.
Many people report birds approaching whoever refills the feeder. Those reports are hard to test, and they have not been confirmed by controlled research. A bird that hovers close to you may simply be guarding the feeder, a behavior that is covered separately in hummingbird guarding feeder.
Building a feeding routine birds can learn
- Keep the feeder in one place. When you are setting up a hummingbird feeder, pick a spot you pass often and keep it there.
- Refill on a steady schedule. Hummingbirds track refill timing, so a predictable schedule suits their memory.
- Keep the nectar fresh. An empty or spoiled feeder breaks the routine and may send birds elsewhere.
- Stay calm near the feeder. Move slowly when you fill it, and keep sudden motion to a minimum.