Sketched symbol recognition using Latent-Dynamic Conditional Random Fields and distance-based clustering