Deep learning for facial analysis

How to use modern artificial intelligence algorithms and in particular deep neural networks to recognize persons by their face, to understand gender, age and also emotions.