I watched a document about the evolution of dogs and their relationship with humans, and it had numerous interesting things in it. One thing that I found interesting is that, you know how dog owners say that their dog seems to know how they're feeling just by looking at them..? Well in that document they showed an University study where they took numerous different animal species and various individuals of those species, and had them look at human faces. While the animals were presented with the pictures of faces, they were being recorded by a camera underneath the picture to gather data about how different animals look at human faces. Surprisingly, dogs were the only species of animals who looked at human faces in a similar way as humans do, which was starting with the right side of the face going from up to down (if I remember correctly). But funnily enough wolves didn't present this same behavior, so it has to be something that dogs have been able to "pick up" as an evolutionary trait simply by living with humans in such a close proximity for such a long time. The hypothesis of the duty was that since
all dogs had a similar way of reading faces as humans do - that might explain why they seem to know what emotions humans are experiencing at a given moment, and even that dogs might have learned to interpret impressions the same way as humans do.
Interesting stuff, and I highly recommend the documentary if you have a chance to watch it. I think it was this PBS document:
NOVA | Dogs Decoded