Shape grammar extraction for efficient query-by-sketch pattern matching in long time series | IEEE Conference Publication | IEEE Xplore