After centuries of domestication, pets have learned to pick up on verbal and behavioral cues to gauge their owner's mood.