Earth mover's prototypes: A convex learning approach for discovering activity patterns in dynamic scenes