You can find the pbsf-lib Python module on GitHub; follow the installation instructions in the README.md.
In this introduction, we focus on univariate time series.
In the example above, we look at the total load on the Belgian grid over time. You can find this data at opendata.elia.be. We see some seasonality: the load on the grid is generally higher in the colder months, and drops during the warmer months.
Zooming in on just one month, we see a repeating pattern of higher load during workdays and lower load during weekends.
Overlapping all workdays of September, we see the rise in load between 3 and 6 AM, with a small dip in load around noon, and a gradual drop throughout the evening.


See “Time Series Data Mining Using the Matrix Profile”.







Increasing the alphabet_size solves the issue.
See “Current Time Series Anomaly Detection Benchmarks are Flawed and are Creating the Illusion of Progress” by Renjie Wu and Eamonn J. Keogh.
Note that the SlopeSignNode is just an example to explain the concept of an approximation. It generally performs poorly in approximating and comparing most time series segments. Other approximations implement a distance that lower bounds the Euclidean distance.
See “Hierarchical pattern matching for anomaly detection in time series” by M. Van Onsem et al.
See the pbsf-lib documentation on how to visualise results.