In early 2016 I started experimenting with user behaviour analytics and prediction. After presenting a user behaviour prediction script that was integrated into a site I was building, I was challenged with breaking down the prediction part of the script as much as possible. The aim here was not to discover patterns but to discover when these patterns ended. Think - bringing back regular users that have fallen off the radar.
Custom JavaScript library.