Predicting customer behaviour in real time