Detect patterns/outliers using WarpScript

38 views
Skip to first unread message

Pierre Zemb

unread,
Mar 24, 2017, 12:39:09 PM3/24/17
to Warp 10 users
Hi everyone!

As I am digging more and more into WarpScript, I'm wondering what can I do to detect pieces of data inside a GTS. By reading the documentation, I highlighted theses functions:
As far as I can see, a spike is easily found with outliers functions. I tried to use PATTERNS to detect a specific piece of GTS, with mitigated results. I guess it depends of what I'm looking for, but is there some best practices to detect:
  • A spike?
  • A piece of GTS which is "flat", or the opposite, (i.e with high fluctuation)
  • A very specific piece of GTS?
Are there any other functions ?

PATTERNS documentation is talking about these parameters:
  • pattern length must divide window size
  • quantization scale must be a power of two from 2 to 65536
  • PATTERNS can only be applied to numeric Geo Time Series which are bucketized and filled (i.e. no bucket with missing values).
What's the unit of pattern length? In points, microsecond? Do you have guidelines to set the PATTERNS parameters?

Mathias Herberts

unread,
Mar 26, 2017, 7:29:18 AM3/26/17
to Warp 10 users
The window width for PATTERNS is in time units.

The best way to detect a 'flat', i.e. constant, part of a GTS is probably to compute the delta and use a threshold.

For detecting specific shapes, either PATTERNS or DTW can be used, the actual results will depend on noise, time warping and similarity among subsequences of the GTS.

Pierre Zemb

unread,
Mar 26, 2017, 4:28:15 PM3/26/17
to Warp 10 users
Thanks Mathias for the tips!
Reply all
Reply to author
Forward
0 new messages