💡 Guideline

This library has been tested on Python 3.11 and 3.12.

Setting environement

pip install virtualenv
virtualenv -p <path/to/python3.11> myenv
source myenv/bin/activate

Installation

Once your virtual environment is activated, you can install the Kernel-point-change-detection library directly from Pypi by typing :

pip install kcpdi

This command will install the kcpdi package and all required dependencies. Within your python code, you can then access the library functions by using the following import statement:

import kcpdi

Usage

Our algorithm takes pre-processed (interpolated to a fixed time grid, normalized, etc.) and offline (not streaming) multidimensional time series data and runs linear kernel anomaly/change-point detection on it in order to output a list of likely anomaly/change-points in time. The method is based on results in Arlot et al. (2019).

We have started to develop automated post-hoc visualization tools in order to provide intuitive explicability in the output results in order to attribute a ranked (in terms of importance) list of individual time series for each detected anomaly/change-point. This is because it is otherwise difficult to know ‘why’ a change-point was detected at a certain point if there are hundreds or thousands of individual concurrent time series. The latter tool is semi-dependent of the anomaly/change-point detection step.

Examples and demonstrators

The following notebook incorporates the most important features: