Making machines understand facial motion and expressions like humans do