| Literature DB >> 35624912 |
Werner Sommer1,2, Katarzyna Stapor3, Grzegorz Kończak4, Krzysztof Kotowski3, Piotr Fabian3, Jeremi Ochab5, Anna Bereś6, Grażyna Ślusarczyk7.
Abstract
An important problem in many fields dealing with noisy time series, such as psychophysiological single trial data during learning or monitoring treatment effects over time, is detecting a change in the model underlying a time series. Here, we present a new method for detecting a single changepoint in a linear time series regression model, termed residuals permutation-based method (RESPERM). The optimal changepoint in RESPERM maximizes Cohen's effect size with the parameters estimated by the permutation of residuals in a linear model. RESPERM was compared with the SEGMENTED method, a well-established and recommended method for detecting changepoints, using extensive simulated data sets, varying the amount and distribution characteristics of noise and the location of the change point. In time series with medium to large amounts of noise, the variance of the detected changepoint was consistently smaller for RESPERM than SEGMENTED. Finally, both methods were applied to a sample dataset of single trial amplitudes of the N250 ERP component during face learning. In conclusion, RESPERM appears to be well suited for changepoint detection especially in noisy data, making it the method of choice in neuroscience, medicine and many other fields.Entities:
Keywords: changepoint detection; event-related potentials; noisy time series; permutation method; segmented method
Year: 2022 PMID: 35624912 PMCID: PMC9139177 DOI: 10.3390/brainsci12050525
Source DB: PubMed Journal: Brain Sci ISSN: 2076-3425
Figure 1Typical generated time series with a single changepoint at chp = 50 for major noise level with normal error distributions, equal (left) and unequal (right) variances.
RMSE for change point estimations with chp = 50 for two levels of noise, four error distribution types and equal and unequal variances.
| Error Distribution | Noise | Equal Variances | Unequal Variances | ||
|---|---|---|---|---|---|
| SEGMENTED | RESPERM | SEGMENTED | RESPERM | ||
| Normal | Major | 12.96 | 7.88 | 9.16 | 6.88 |
| Dominant | 20.48 | 17.38 | 18.51 | 14.94 | |
| Uniform | Major | 11.09 | 7.71 | 9.04 | 5.89 |
| Dominant | 19.55 | 15.35 | 16.42 | 14.16 | |
| Beta (2,2) | Major | 8.12 | 4.63 | 6.12 | 3.30 |
| Dominant | 15.43 | 10.39 | 12.51 | 8.79 | |
| Beta (2,6) | Major | 4.10 | 2.75 | 3.52 | 2.06 |
| Dominant | 8.10 | 4.17 | 6.59 | 3.62 | |
Relative bias (RB, in %) and SD for change point estimations with chp = 50 for two levels of noise, four error distribution types and equal/unequal variances.
| Errors Distribution | Noise | Equal Variances | Unequal Variances | ||
|---|---|---|---|---|---|
| SEGMENTED | RESPERM | SEGMENTED | RESPERM | ||
|
|
|
|
| ||
| Normal | Major | 0.12/12.96 | −1.26/7.86 | −1.60/9.13 | −2.08/6.80 |
| Dominant | 1.02/20.47 | 0.64/17.38 | −3.84/18.41 | −5.78/14.66 | |
| Uniform | Major | −0.66/11.08 | −0.20/7.71 | −3.16/8.90 | −3.84/5.57 |
| Dominant | −1.08/19.54 | −1.72/15.32 | −5.28/16.21 | −9.68/13.30 | |
| Beta (2,2) | Major | 1.66/8.07 | 0.32/4.63 | −1.32/6.09 | −2.20/3.11 |
| Dominant | −3.02/15.36 | −1.88/10.35 | −3.30/12.40 | −4.42/8.51 | |
| Beta (2,6) | Major | 0.68/4.09 | 0.42/2.74 | −1.58/3.43 | −1.44/1.93 |
| Dominant | 1.80/8.05 | −0.54/4.16 | −2.56/6.46 | −1.80/3.51 | |
Figure 2Distributions of changepoint estimates with RESPERM and SEGMENTED methods in simulated data with chp = 50 for two levels of noise with equal and unequal variances.
Pearson correlation coefficients for changepoint estimates from SEGMENTED and RESPERM (with chp = 50).
| Error Distribution Type | Major Noise | Dominant Noise | ||
|---|---|---|---|---|
| eV | ueV | eV | ueV | |
| Normal | 0.59 | 0.75 | 0.83 | 0.46 |
| Uniform | 0.82 | 0.61 | 0.66 | 0.42 |
| Beta (2,2) | 0.81 | 0.79 | 0.80 | 0.69 |
| Beta (2,6) | 0.84 | 0.67 | 0.77 | 0.87 |
Note: eV—equal variances, ueV—unequal variances.
Figure 3RMSE of change point estimates as a function of simulated changepoint location for RESPERM and SEGMENTED for major and dominant noise with normal distributions.
Figure 4Time series of N250 amplitudes for selected participants 3, 18, 13, 11 with regression lines drawn before and after the changepoint detected by RESPERM (chp). The SEGMENTED-detected changepoints (chp) are marked by vertical dashed lines.
Figure 5ERP waveform (±95% CI) averaged over all Joe trials and over all electrodes of interest for Participant 11 with dashed vertical lines indicating the N250 component time window. The electrodes of interest (red circles) and the distribution of scalp potentials in N250 time window are presented in the top left corner.
RESPERM- and SEGMENTED-detected changepoints of the N250 amplitudes across trials for 16 participants, sorted by RESPERM latencies (chp).
| RESPERM | SEGMENTED | ||||
|---|---|---|---|---|---|
| Participant Number |
|
|
|
|
|
| 3 | 3.556 | 14 | 122 | 13 | 110 |
| 6 | 6.250 | 12 | 139 | 10 | 114 |
| 2 | 4.636 | 16 | 179 | 15 | 165 |
| 15 | 3.791 | 17 | 188 | 12 | 136 |
| 17 | 4.512 | 17 | 208 | 14 | 172 |
| 9 | 5.340 | 21 | 235 | 20 | 226 |
| 20 | 2.088 | 24 | 282 | 29 | 334 |
| 14 | 1.358 | 10 | 284 | 27 | 486 |
| 18 | 3.631 | 29 | 319 | 29 | 319 |
| 5 | 4.520 | 28 | 335 | 26 | 305 |
| 13 | 3.120 | 30 | 365 | 48 | 572 |
| 19 | 4.563 | 45 | 370 | 22 | 177 |
| 7 | 5.781 | 35 | 389 | 34 | 378 |
| 11 | 5.089 | 48 | 569 | 52 | 613 |
| 12 | 4.029 | 50 | 578 | 57 | 657 |
| 4 | 2.058 | 57 | 673 | - | - |
d: the adjusted Cohen’s effect size d for RESPERM. k and k: observation numbers corresponding to changepoints (see explanation in text). chp and chp: trial number for RESPERM and direct solution by SEGMENTED rounded to the nearest integer.