Structured machine learning methods for automated analysis of facial expressions