Expectation-maximization binary clustering for behavioural annotation