classification based on step PTI...
detect_cusum detects changes in a time series