1. Introduction
There has been extensive research on the topic of changepoints. After Page (1954) [1] first applied changepoint detection to industrial quality control, changepoint detection method is received widespread attention and in-depth research from scholars. The related literature encompasses a variety of methods for detection both univariate and multivariate data, as well as single and multiple changepoints. For the univariate changepoint detection methods, Scott (1974) [2] introduced the Binary Segmentation (BS) algorithm for approximating multiple changepoint detections by segmenting the series into non-overlapping subsections and minimizing a cost function. Fryzlewicz’s (2014) [3] proposed the Wild Binary Segmentation (WBS) method, which can consistently estimate the number and locations of multiple changepoints. However, changepoint detection faces challenges when outliers or abnormal data are present, as these outliers may be falsely identified as changepoints. Therefore, ensuring the robustness of changepoint detections is extremely important. Fearnhead and Rigaill (2019) [4] introduced a robust mean changepoint detection method that can handle outliers effectively. Dehling (2020) [5] demonstrated that a method performs well under heavy-tailed noise distributions, utilizing the two-sample Hodges-Lehmann test statistic. Anastasiou and Fryzlewicz (2022) [6] presented a changepoint detection procedure based on an isolation technique. Kovacs et al. (2023) [7] introduced the Seeded Binary Segmentation algorithm, with a high probability. Each true changepoint is well covered by at least one interval which does not contain any other true changepoints. Fryzlewicz (2024) [8] presented a method for detecting localized regions in data sequences that contain a changepoint in the median. This method uses a novel sign-multiresolution sup-norm-type loss and greedily identifies the shortest intervals where constancy is significantly violated. Changepoint detection methodologies have been applied to a wide range of research fields, including medical diagnosis, finance, and network security.
The multivariable changepoint problem has garnered widespread attention since Horváth et al. (1999) [9]. Matteson et al. (2014) [10] introduced the E-divisive method, which is a non-parametric multiple changepoint detection for multivariate independent sequences. Jirak (2015) [11] considered an
-aggregation of the CUSUM statistics that works well for sparse changepoint. Cho and Fryzlewicz (2015) [12] proposed Sparse Binary Segmentation, which also takes sparsity into account and can be viewed as a hard thresholding of the CUSUM matrix followed by an
-aggregation. Knoblauch et al. (2018) [13] proposed a robust Bayesian online changepoint detection method based on β-divergence, offering double robustness in terms of parameters and changepoint posteriors. Wang (2020) [14] studied high-dimensional mean changepoint detection problems. Grundy et al. (2020) [15] proposed to project a multivariate dataset to two dimensions instead of one, allowing the detection of a change in mean and variance by applying univariate changepoint detection methods to the two projected series. Wendelberger et al. (2021) [16] employed a multiple linear regression framework for Bayesian online changepoint detection, accommodating seasonal trends and enhancing robustness against occasional outliers.
In changepoint analysis, the outliers affect the changepoint detection process, sometimes leading to the misinterpretation of outliers as changepoints. Therefore, it is important to consider the influence of outliers on the changepoint detection. Inspired by the RFPOP method proposed by Fearnhead and Rigaill (2019), this paper develops a changepoint detection method for multivariate data with outliers. Our method is suitable for detecting mean changes in multivariate data that contain outliers and noise, and exhibit high correlations between variables. We proposed two-step changepoint detection method: First, search for a robust projection direction; second, perform changepoint detection using the RFPOP method. In the step of searching for projection directions, outliers are replaced. Combining principal component analysis (PCA) with weighted projection, a robust projection direction is derived. This projection direction is then used to reduce the dimensionality of the original data. In the second step, this paper employs the RFPOP method proposed by Fearnhead and Rigaill, RFPOP is robust to outliers in univariate data.
This paper is organized as follows: Section 2 introduces the double robust multivariate data changepoint detection RWPCA-RFPOP method. Section 3 evaluates the changepoint detection performance of the proposed method through Monte Carlo numerical simulations. Section 4 applies the RWPCA-RFPOP method to the analysis of real data. Section 5 summarizes the entire paper.
2. Multivariate Changepoint Detection Method
This section proposes the RWPCA-RFPOP method for multiple changepoint detection in multivariate data with outliers. The combination of weighted principal direction and the univariate changepoint detection RFPOP method is used to detect changepoints in multivariate data containing outliers.
2.1. Model Assumptions
In the multiple changepoints problem with multivariate data, let
denote the n p-dimensional random vectors. We consider the mean-change model:
(1)
where K is the true number of changepoints,
is the mean vector between
and
,
indicates a positive definite matrix,
is the locations of the changepoint in the sequence,
is a p-dimensional random vector with mean zero mean and an identity covariance matrix. For convenience, the symbols are used as
and
. And
(as long as one component of the
vectors is not equal). Let
be the set of variables for which changes occur at
, say
, and
, where
is the jth component of
. Our goal is to test whether there is at least one changepoint in the data, with
versus
, and to further estimate the
if the null hypothesis is rejected.
Assume that there is an outlier at position
, and the magnitude of the outlier is a constant
, the data containing outliers is recorded as
, then
(2)
If the observed value Y deviates from the confidence interval
, which is considered an outlier. In the absence of a changepoint, a common value for the coefficient P is P = 3. When changepoints are present, the coefficient is relaxed to be equal to the changepoint jump magnitude.
2.2. Changepoint Detection Method
When there are outliers or abnormal data in the multivariate data, sometimes leading to the misinterpretation of outliers as changepoints. Considering multivariate data
with outliers, in this section, we combine the weighted principal component analysis WPCA and RFPOP algorithms to propose a multivariate data changepoint detection method that is doubly robust to outliers, termed RWPCA-RFPOP.
2.2.1. Finding Robust Projection Directions and Reducing Dimensionality
First, in order to find projection directions that are not influenced by outliers for dimensionality reduction of the original data
, we preprocess the data. This paper uses Z-scores for outlier detection. A Z-score measures the degree of deviation of an observation from the mean, expressed as the number of standard deviations the observation is away from the mean:
(3)
where Y represents the observed value,
represents the mean, and
represents the standard deviation. By calculating the Z-score, we can determine the degree of deviation of the observed value from the mean. When the Z-score is large, it indicates that the observed value deviates significantly from the mean; when the Z-score is small, it suggests that the observed value is close to the mean.
Secondly, we remove the outliers and replace them with the mean of each respective dimension at the original outlier positions
. For the multivariate data
, after replacing outliers, the principal component directions are obtained through the singular value decomposition
of the matrix. The first h principal components are selected to capture the majority of the information, and these principal components are multiplied by their corresponding weights
to construct a matrix of weighted principal directions. The weights
reflect the proportion of variance explained by a specific principal component. By aggregating the row of the weighted matrix, we obtain the robust projection direction
. When the number of samples n is sufficiently large, the robust projection direction can also be obtained by directly removing outliers. The robust projection direction
can be utilized to perform dimensionality reduction on the original data
.
Theorem 2.1. Let
be iid random variable following a Gaussian distribution with mean
and covariance matrix
, Let
be a linear projection direction. Then,
follows a normal distribution with mean
and variance
.
The presence of outliers does not affect the distribution of the data; the projected data remains normally properties.
Theorem 2.2 states that the one-dimensional data obtained after linear projection satisfies the conditions given by Fearnhead and Rigail (2019).
Theorem 2.2. After linear dimensionality reduction
, vector
satisfies the following conditions:
1) Exist a fixed number of changepoints k, and fixed constants
so that for a dataset of size n, the ith changepoint at
, for
, let
and
.
2) Exist a fixed segment-specific location parameters
, with the obvious constraint that
for
.
Let
be iid noise random variables, so that for
the observations are realizations of
where i is such that
.
2.2.2. Changepoint Detection
For the univariate data
after dimensionality reduction, this paper considers using the RFPOP method proposed by Fearnhead and Rigaill (2019) for robust changepoint detection. This method detects changepoints by minimizing a penalty cost function, thereby reduce the impact of outliers on the changepoint detection. With the Biweight loss function, RFPOP method can lead to the consistent estimation of the number of changepoints and accurate estimation of their location under weak conditions on the noise distribution. Fearnhead and Rigaill (2019) employ robust
estimation of the median absolute deviation based on time series differences (Fryzlewicz, 2014) to handle univariate data with outliers, rendering the inference results more robust.
For the univariate data
, Fearnhead and Rigail (2019) define the cost function associated with the data segment
as
(4)
in
, L is a constant.
Fearnhead and Rigail (2019) introduce the minimum penalized cost of segmentin
conditional on the most recent segment having parameter
,
(5)
Fearnhead and Rigail (2019) considered recursively calculate
for increasing values of t, thus,
,
, thereby obtaining a set of candidate changepoints
.
Which is Theorem 3 from the paper by Fearnhead and Rigail (2019), theorem 2.3 provides the asymptotic properties for estimating the number and positions of changepoints.
Theorem 2.3. For a given n, let
be the estimate of the number of changepoints, and
their estimated locations, obtained by minimizing the penalized cost using the biweight loss function and a penalty
. Then, there exists constants
and
such that suppose conditions 1 and 2 hold
Conditions 1:
, the mean of the loss function is
and will hold if
has a positive second derivative for all
in a neighborhood around 0 and that
for all
outside this region.
Conditions 2: Let
and
, then we need
such that
provided that
.
Here, we outline the flowchart of the outlier and changepoint detection algorithm as shown in Figure 1, and the changepoint detection algorithm is detailed in Table 1.
Figure 1. RWPCA-RFPOP algorithm flow chart.
Table 1. RWPCA-RFPOP changepoint detection algorithm.
Input:
. |
Step 1: Outlier detection. |
Step 2: Multivariate data
after removing and replacing outliers. |
Step 3: Use WPCA to solve for the projection direction
of
. |
Step 4: Dimensionality reduction to univariate data
. |
Step 5: Perform Univariate RFPOP method on
to recover cpts
. |
output:
. |
3. Numerical Simulation
This section validates the robustness of the RWPCA-RFPOP method against outliers through simulation studies. It also compares the algorithm with other existing methods, including the Inspect method proposed by Wang and Samworth (2018), the GeomCP method by Grundy et al. (2020), and the E-divisive method by Matteson et al. (2014). Our RWPCA-RFPOP method estimates the standard deviation using the median absolute deviation of the differenced time series. With regard to the Biweight loss function, an appropriate value of L should be chosen. A reasonable default is 2 to 3 times the estimated standard deviation of the noise. This choice ensures that most observations fall within the segment-specific parameter L, thereby enhancing robustness against extreme outliers. Typically, the absolute median deviation of differenced time series is used as an estimate
of the noise standard deviation. In practical applications using biweight loss, adjustments are often made based on extreme outlier behavior under a Gaussian model and BIC penalties, we choose
,
. We implemented the Inspect method using the InspectChangepoint package (Wang and Samworth). For the global spatial dependence parameter in the Inspect method, we choose
. For the GeomCP and E-divisive methods, we also used the default settings.
3.1. Simulation Settings
First, we are given the sparsity of a p-dimensional data Y, where the sparsity is defined by
, where
is the cardinality of the set
,
. We ran simulations with different sample sizes
, dimensions
, and sparsity
, the number of changepoints
, the variance of the noise
, and the jump magnitude
at the i-th changepoint, taking
, setting
to observe the performance of the algorithm. All parameter settings are shown in Table 2.
Table 2. Parameter setting list.
Parameter |
Related options |
Sample size |
|
Dimension |
|
Sparsity |
|
Number of changepoints |
|
Noise variance |
|
Jump magnitude |
|
Number of outliers |
|
Outlier location |
|
Let
, for some positive definite matrix
, assume that the noise vectors satisfy
. Consider the problem of performing a changepoint detection in the case of global dependence, suppose that
for some
. This paper generates a multivariate normal distribution with s outliers, where the size of the outliers is set to be outside 3 standard deviations from the mean.
To evaluate the performance of the changepoint estimation, we performed 100 simulations under each scenario and provided a frequency distribution of
. The Rand Index (ARI) was used to assess the consistency between the estimated changepoint locations and the true changepoint locations (Hubert and Arabie 1985), and the scaled Hausdorff distance was used for further evaluation.
3.2. Simulation Results and Analysis
The experimental data was generated according to the settings in Section 3.1, and 100 repeated simulations were performed under 11different parameter settings
to obtain the average results. The numerical simulation experiments were all implemented using the R language. Table 3 displays the parameter settings for the simulation experiments:
Table 3. Parameter settings in simulation experiments.
Setting |
n |
p |
sp |
|
Correlation |
M1 |
1000 |
600 |
0.6 |
|
0.5 - 0.7 |
M2 |
500 |
600 |
0.6 |
|
0.5 - 0.7 |
M3 |
1500 |
600 |
0.6 |
|
0.5 - 0.7 |
M4 |
1000 |
200 |
0.6 |
|
0.5 - 0.7 |
M5 |
1000 |
400 |
0.6 |
|
0.5 - 0.7 |
M6 |
1000 |
600 |
0.4 |
|
0.5 - 0.7 |
M7 |
1000 |
600 |
0.8 |
|
0.5 - 0.7 |
M8 |
1000 |
600 |
0.6 |
|
0.5 - 0.7 |
M9 |
1000 |
600 |
0.6 |
|
0.5 - 0.7 |
M10 |
1000 |
600 |
0.6 |
|
0.3 - 0.5 |
M11 |
1000 |
600 |
0.6 |
|
0.7 - 0.9 |
Compare M1, M2 and M3, to examine the impact of sample size on algorithm performance, compare M1, M4 and M5, to examine the impact of dimension on algorithm performance, compare M1, M6 and M7, to examine the impact of sparsity on algorithm performance, compare M1, M8 and M9, to examine the impact of the jump magnitude at the changepoint on algorithm performance, compare M1, M10 and M11, to examine the impact of data correlation on algorithm performance.
According to the results in Table 4, the RWPCA-RFPOP method performs well in the given settings. For multivariate normal distributions with outliers, our RWPCA-RFPOP method is comparable to the E-divisive method in accurately detecting the number and locations of changepoints. The RWPCA-RFPOP method performs well in scenarios with moderate sparsity as well as dense cases. The Inspect and GeomCP methods perform poorly, often overestimating the number of changepoints and misidentifying outliers as changepoints when outliers are present. The RWPCA-RFPOP method shows strong performance in accurately estimating the number and positions of changepoints. The error in the number of estimated changepoints relative to the actual number is within 5%, and the method achieves high Rand Index (ARI) values and low scaled Hausdorff distances. As the jump magnitude increases, the changepoint detection capability of the RWPCA-RFPOP method improves. Furthermore, as the sample size and dimensionality increase, the performance of the RWPCA-RFPOP method also improves significantly. We also conducted simulations for multivariate normal distributions without outliers, where the RWPCA-RFPOP method also performed excellently. However, this paper mainly presents scenarios with outliers in multivariate normal distributions.
Table 4. Data simulation results in a multivariate normal distribution scenario with outliers.
Setting |
Method |
Frequency of
|
ARI |
dH |
Time (s) |
−1 |
0 |
1 |
2 |
3 |
4 |
M1 |
RWPCA-RFPOP |
0 |
99 |
1 |
0 |
0 |
0 |
0.9877 |
0.0131 |
540.64 |
Inspect |
0 |
0 |
0 |
0 |
0 |
100 |
0.8503 |
0.5241 |
1612.98 |
GeomCP |
0 |
0 |
0 |
0 |
0 |
100 |
0.8176 |
0.5629 |
225.98 |
E-divisive |
0 |
94 |
5 |
1 |
0 |
0 |
0.9871 |
0.0248 |
1597.62 |
M2 |
RWPCA-RFPOP |
0 |
96 |
4 |
0 |
0 |
0 |
0.9781 |
0.0272 |
671.07 |
Inspect |
0 |
0 |
0 |
0 |
0 |
100 |
0.7233 |
0.6812 |
859.75 |
GeomCP |
0 |
0 |
0 |
0 |
7 |
93 |
0.6495 |
0.8146 |
209.19 |
E-divisive |
0 |
95 |
5 |
0 |
0 |
0 |
0.9809 |
0.0302 |
571.62 |
M3 |
RWPCA-RFPOP |
0 |
97 |
3 |
0 |
0 |
0 |
0.9914 |
0.0178 |
707.75 |
Inspect |
0 |
0 |
0 |
0 |
0 |
100 |
0.8482 |
0.9522 |
2233.88 |
GeomCP |
0 |
0 |
0 |
0 |
0 |
100 |
0.8250 |
0.9736 |
241.69 |
E-divisive |
0 |
96 |
3 |
1 |
0 |
0 |
0.9902 |
0.0186 |
5292.05 |
M4 |
RWPCA-RFPOP |
0 |
97 |
2 |
1 |
0 |
0 |
0.9872 |
0.0217 |
75.89 |
Inspect |
0 |
0 |
0 |
0 |
0 |
100 |
0.8499 |
0.5239 |
429.89 |
GeomCP |
0 |
0 |
0 |
0 |
2 |
98 |
0.8179 |
0.5572 |
18.94 |
E-divisive |
0 |
97 |
3 |
0 |
0 |
0 |
0.9896 |
0.0230 |
1335.66 |
M5 |
RWPCA-RFPOP |
0 |
96 |
4 |
0 |
0 |
0 |
0.9882 |
0.0224 |
294.45 |
Inspect |
0 |
0 |
0 |
0 |
0 |
100 |
0.8501 |
0.5239 |
912.56 |
GeomCP |
0 |
0 |
0 |
0 |
2 |
98 |
0.8164 |
0.5562 |
82.40 |
E-divisive |
0 |
96 |
3 |
1 |
0 |
0 |
0.9885 |
0.0221 |
1409.37 |
M6 |
RWPCA-RFPOP |
0 |
99 |
0 |
1 |
0 |
0 |
0.9714 |
0.0293 |
593.64 |
Inspect |
0 |
0 |
0 |
0 |
0 |
100 |
0.8500 |
0.5239 |
1490.17 |
GeomCP |
0 |
0 |
0 |
0 |
51 |
49 |
0.7913 |
0.5316 |
223.88 |
E-divisive |
0 |
97 |
2 |
1 |
0 |
0 |
0.9890 |
0.0198 |
1584.28 |
M7 |
RWPCA-RFPOP |
0 |
100 |
0 |
0 |
0 |
0 |
0.9941 |
0.0064 |
579.17 |
Inspect |
0 |
0 |
0 |
0 |
0 |
100 |
0.8505 |
0.5242 |
1540.21 |
GeomCP |
0 |
0 |
0 |
0 |
0 |
100 |
0.8215 |
0.5648 |
232.54 |
E-divisive |
0 |
94 |
6 |
0 |
0 |
0 |
0.9879 |
0.0239 |
1584.19 |
M8 |
RWPCA-RFPOP |
0 |
99 |
1 |
0 |
0 |
0 |
0.9863 |
0.0146 |
530.31 |
Inspect |
0 |
0 |
0 |
0 |
0 |
100 |
0.8505 |
0.5242 |
1592.94 |
GeomCP |
0 |
0 |
0 |
0 |
0 |
100 |
0.8195 |
0.5639 |
240.56 |
E-divisive |
0 |
98 |
2 |
0 |
0 |
0 |
0.9901 |
0.0133 |
1590.20 |
M9 |
RWPCA-RFPOP |
0 |
99 |
1 |
0 |
0 |
0 |
0.9898 |
0.0112 |
523.14 |
Inspect |
0 |
0 |
0 |
0 |
0 |
100 |
0.8505 |
0.5242 |
1616.61 |
GeomCP |
0 |
0 |
0 |
0 |
0 |
100 |
0.8207 |
0.5644 |
230.11 |
E-divisive |
0 |
97 |
3 |
0 |
0 |
0 |
0.9897 |
0.0142 |
1583.39 |
M10 |
RWPCA-RFPOP |
0 |
100 |
0 |
0 |
0 |
0 |
0.9929 |
0.0078 |
545.00 |
Inspect |
0 |
0 |
0 |
0 |
0 |
100 |
0.8506 |
0.5242 |
2545.47 |
GeomCP |
0 |
0 |
0 |
0 |
0 |
100 |
0.8211 |
0.5652 |
240.70 |
E-divisive |
0 |
93 |
7 |
0 |
0 |
0 |
0.9871 |
0.0321 |
1592.63 |
M11 |
RWPCA-RFPOP |
0 |
99 |
1 |
0 |
0 |
0 |
0.9842 |
0.0168 |
528.68 |
Inspect |
0 |
0 |
0 |
0 |
0 |
100 |
0.8501 |
0.5239 |
1589.39 |
GeomCP |
0 |
0 |
0 |
0 |
7 |
93 |
0.8128 |
0.5587 |
231.80 |
E-divisive |
0 |
95 |
3 |
2 |
0 |
0 |
0.9878 |
0.0257 |
1598.02 |
The following is an analysis of the accuracy and robustness of our proposed method, along with a comparison to existing methods.
represents the difference between the estimated number of changepoints and the true number of changepoints. Figure 2 depicts the results of the RWPCA-RFPOP method, the Inspect method, the GeomCP method, and the E-divisive method under
for multivariate normal distribution data with outliers. The settings are as follows:
,
,
, and the simulations include 2, 3, and 5 changepoints. Each box plot represents a different combination of simulation parameters. For instance, the first box plot illustrates the empirical distribution of a simulated 200-dimensional multivariate normal distribution data with outliers and 2 changepoints. The empirical distribution is calculated based on 100 repeated simulations conducted under each combination of simulation parameters.
![]()
Figure 2.
(Empirical) distribution of multivariate normal distribution with outliers by different methods.
Figure 2 shows the results of the simulation scenarios where the data come from a multivariate normal distribution with outliers. Figure 2 shows that the RWPCA-RFPOP method and the E-divisive method perform exceptionally well. As seen in Figure 2, the performance of the RWPCA-RFPOP method significantly improves with an increase in dimensionality. When the data come from a multivariate normal distribution with outliers, the Inspect and GeomCP methods tend to overestimate the number of changepoints. This phenomenon is primarily due to the lack of robustness in these two methods, which are unable to effectively handle outlier data.
Figure 3 presents the boxplots for each changepoint when the data come from a multivariate normal distribution with outliers. Each boxplot in the above figure represents the ability to estimate the location of specific changepoints, without considering the method mistakenly identifying outliers as changepoints. In this context, the RWPCA-RFPOP, Inspect, GeomCP, and E-divisive methods all estimate the changepoint locations fairly accurately. When the Inspect method and the GeomCP method correctly identify changepoints, their accuracy is not significantly different from our proposed method. However, Figure 3 shows that the Inspect and GeomCP methods are more sensitive to outliers, often overestimating the number of changepoints. The RWPCA-RFPOP method demonstrates strong robustness and accuracy in handling data with outliers.
Figure 4 shows the scaled Hausdorff distance and ARI value of different methods under different sparsity, setting
,
,
, the simulation included three changepoints, and both the RWPCA-RFPOP and E-divisive methods demonstrated advantages in terms of ARI values and scaled Hausdorff distances. As the sample size increased, the performance of the RWPCA-RFPOP method significantly improved. The Inspect and GeomCP methods were more sensitive to outliers, leading to less satisfactory results.
Figure 3. Estimation ability of different methods for
in a multivariate normal distribution with outliers.
One of the main issues with multivariate changepoint detection is that as the number of sample size n and dimension p increase, many multivariate changepoint methods become computationally infeasible. We compare the running time of the RWPCA-RFPOP, Inspect, GeomCP, and E-divisive methods, with the simulation settings including
,
, and 3 changepoints. We will compare the running time under two different scenarios.
We can see from the left graph of Figure 5 that GeomCP is the fastest among the four methods, followed by the RWPCA-RFPOP method. We observe that E-Divisive and Inspect are much slower than GeomCP and RWPCA-RFPOP, with their running times increasing rapidly as n increases. In the right panel of Figure 5, the Inspect method performs well for small p, but its running time slows down when p increases beyond 500. The running time of E-Divisive does not seem to be affected by p, remaining relatively slow. This is likely because its computational cost is primarily influenced by the sample size, showing a slow increase. As p increases, both RWPCA-RFPOP and GeomCP exhibit linear running times and faster running times. Although the E-divisive method proposed by Matteson et al. (2014) performs well in terms of accuracy, its running time is relatively slow. Considering all factors, we recommend using the RWPCA-RFPOP method for changepoint detection in multivariate data with outliers.
![]()
Figure 4. Scaled Hausdorff distances of different methods with different sparsity
(a),
(c), and
(e), and ARI values of different methods as n changes with different sparsity
(b),
(d), and
(f).
Figure 5. The running time of different methods as n changes (left) and the calculation speed as p changes (right).
In this simulation setting, we found that our proposed RWPCA-RFPOP method performs exceptionally well in handling outliers. The advantage of this method lies in its accurate estimation capability for changepoint locations, especially in the presence of outliers. The results in Figure 3 show that the RWPCA-RFPOP method can estimate the changepoint locations relatively accurately. Considering its performance and efficiency, we suggest using the RWPCA-RFPOP method for changepoint detection.
3.3. Outliers in Data
In the generated multivariate data, we set the sample size
, dimension
, sparsity
, and generated three types of outliers: small outliers (5 - 10 standard deviations away from the true mean), large outliers (25 - 30 standard deviations away), and very large outliers (40 or more standard deviations away). For each type of outlier setting, we randomly generated 5 - 10 outlier instances located at
, with the dimensions of outlier variation randomly chosen. We specified the number of changepoints
, their positions
, noise variance
, and set the jump size at the i-th changepoint to
to observe algorithm performance. For each outlier setting, we ran the RWPCA-RFPOP algorithm and reported the results of changepoint detection accuracy.
Table 5 reports the frequency distribution of
, Adjusted Rand Index (ARI), and scaled Hausdorff distance for changepoint detection using the RWPCA-RFPOP method under different outlier scenarios. The results show that the RWPCA-RFPOP method exhibits high ARI and low scaled Hausdorff distance for all three types of outliers. Specifically, the RWPCA-RFPOP method consistently achieves an ARI of at least 0.97, indicating its accuracy in identifying true changepoints. Considering that multivariate data can contain a large number of outliers, which poses a significant challenge for other changepoint detection methods, the RWPCA-RFPOP algorithm’s ability to handle noisy and outlier-affected changepoint detection makes it highly versatile and broadly applicable.
Table 5. RWPCA-RFPOP method changepoint detection results under various outlier conditions.
Types of outliers |
s |
Frequency of
|
ARI |
dH |
−2 |
−1 |
0 |
1 |
2 |
3 |
Small outliers |
5 |
0 |
0 |
96 |
4 |
0 |
0 |
0.9755 |
0.0330 |
Large outliers |
5 |
0 |
0 |
95 |
5 |
0 |
0 |
0.9760 |
0.0448 |
Very large outliers |
5 |
0 |
0 |
96 |
2 |
2 |
0 |
0.9740 |
0.0457 |
Small outliers |
10 |
0 |
0 |
98 |
2 |
0 |
0 |
0.9764 |
0.0289 |
Large outliers |
10 |
0 |
0 |
95 |
4 |
0 |
1 |
0.9791 |
0.0357 |
Very large outliers |
10 |
0 |
0 |
98 |
2 |
0 |
0 |
0.9781 |
0.0334 |
4. Real Data Application
In this section, we apply RWPCA-RFPOP method to an Array Comparative Genomic Hybridization (ACGH) dataset, which is available in the ecp R package (James and Matteson, 2015), and perform a comparative analysis with results from the literature. Comparative genomic hybridization is a technique that allows detection of chromosomal copy number abnormality by comparing the fluorescence intensity levels of DNA fragments from a test sample and a reference sample. Chromosome copy number variations reflect DNA amplifications and deletions. From a medical perspective, amplified segments may contain oncogenes, while deleted segments may contain tumor suppressor genes. Whereas some of the copy number variations are specific to one individual, some copy number abnormality regions (e.g. between loci 2044 and 2143) are shared across several individuals and are more likely to be disease related. This dataset contains (test-to-reference) log-intensity-ratio measurements of 43 individuals with bladder tumours at 2215 different loci on their genome. The log-intensity-ratios for the first 10 individuals are plotted in Figure 6. We used the RWPCA-RFPOP method to estimate the positions of changepoints (red lines indicate detected changepoint locations, and blue lines indicate detected outlier positions).
![]()
Figure 6. Changepoints of log intensity ratio in the entire ACGH data estimated by RWPCA-RFPOP (first 10 patients are shown).
The RWPCA-RFPOP method estimates the starting and ending points of copy number variations by aggregating changes across different individuals. Figure 7 displays the correlation among the 43 bladder tumor individuals. Given the presence of a substantial number of individual-specific copy number variations and measurement outliers, we choose
, and the penalty threshold is accordingly set to
, the RWPCA-RFPOP method directly applied the default threshold level to identify 49 changepoints, which are indicated by red vertical solid lines in Figure 8. Inspection revealed 140 changepoints, potentially attributed to the threshold setting. GeomCP estimated 27 changepoints. We compared the changepoint detection results of these four methods for the gene loci ranging from the 1700th to the 2100th in the bladder tumor microarray dataset. The results are presented in Table 6.
Figure 7. Correlation of 43 bladder tumor individuals.
Figure 8. Changepoints of the logarithmic intensity ratios of the 1700th to 2100th gene loci in the ACGH dataset estimated by RWPCA-RFPOP.
Table 6. Changepoint detection results of four methods on the 1700th to 2100th gene loci in the bladder tumor microarray dataset.
Method |
Result |
RWPCA-RFPOP |
1726 1816 1870 1878 1906 1930 1965 2041 |
Inspect |
1724 1725 1748 1795 1799 1831 1850 1868 1906 1957 1965 1982 1991 1992 1996 1997 2005 2007 2009 2010 2022 2027 2031 2036 2041 2044 2072 2084 2086 |
GeomCP |
1722 1906 1957 1991 2010 2041 |
E-divisive |
1727 1757 1796 1832 1871 1907 1966 2001 2045 2085 |
The results indicate that the RWPCA-RFPOP method detected 8 changepoints in the data from loci 1700 to 2100: 1726, 1816, 1870, 1878, 1906, 1930, 1965, and 2041. These are comparable to the findings reported in the literature. However, some changepoints, such as those in the data from loci 1982 to 2010, were not detected due to the absence of apparent segmentation characteristics. Compared to the GeomCP method, the RWPCA-RFPOP method identified a slightly higher number of changepoints, Four changepoints are consistent or similar to the results from GeomCP. However, the RWPCA-RFPOP method failed to detect changepoints at loci 1991 and 2010, likely because the individual data in those regions were more dispersed, leading to a lack of distinct segmentation patterns in the projected data. In the presence of outliers, such as segments (1724, 1836) or (1965, 2044), the RWPCA-RFPOP method is capable of identifying the locations of these outliers, as depicted in Figure 8. This makes our method more reasonable and stable.
5. Summary
In this paper, we propose a novel RWPCA-RFPOP method for detecting changepoints in multivariate data. Our objective is to detect mean changes in multivariate data, particularly in the presence of outliers, noise, and high correlations between data variables. Simulation results demonstrate that the RWPCA-RFPOP method exhibits good robustness and outperforms state-of-the-art methods in detecting and identifying the number and location of multiple changepoints. RWPCA-RFPOP method we proposed applied in an ACGH dataset with outliers. The results show that our method performs well in detecting the number and locations of changepoints. Furthermore, we can investigate the detection of smaller outliers that may be missed by the current method.
Acknowledgements
The support from the Jilin Provincial Department of Education Project (JJKH20210809KJ), and the funding from the National Natural Science Foundation of China (11601039).