Zaslat SMS: Discriminative models for multi-instance problems with tree-structure