Sketch interpretation using multiscale stochastic models of temporal patterns