Modelling and analysis of user behaviour