Visual task type recognition