Detection of Changes in Multivariate Time Series With Application to EEG Data