Detection of abrupt changes