Tensor-based user trajectory mining