Action identification in the emergence of social behavior