WWAggr: A Window Wasserstein-based Aggregation for Ensemble Change Point Detection 1 st Alexander Stepikin, 2 nd Evgenia Romanenkova, 3 rd Alexey Zaytsev Abstract Change Point Detection (CPD) aims to identify moments of abrupt distribution shifts in data streams. Real-world high-dimensional CPD remains challenging due to data pattern complexity and violation of common assumptions. Resorting to standalone deep neural networks, the current state-of-the-art detectors have yet to achieve perfect quality. Concurrently, ensembling provides more robust solutions, boosting the performance. In this paper, we investigate ensembles of deep change point detectors and realize that standard prediction aggregation techniques, e.g., averaging, are suboptimal and fail to account for problem peculiarities. Alternatively, we introduce WWAggr — a novel task-specific method of ensemble aggregation based on the Wasserstein distance. Our procedure is versatile, working effectively with various ensembles of deep CPD models. Moreover, unlike existing solutions, we practically lift a long-standing problem of the decision threshold selection for CPD. I Introduction Change Point Detection (CPD) addresses the challenge of precise identification of the moments when some statistical properties of data distribution undergo alterations. Such a problem emerges in various real-world scenarios: manufacturing process monitoring [ 1 , 2 ] , server logs [ 3 ] , financial data analysis [ 4 , 5 ] , or video surveillance [ 6 ] . In such situations, an unexpected change often indicates an emergency that requires an immediate response. Thus, developing accurate CPD methods is essential to ensure the safe deployment of automatic systems in applications. CPD possesses a rich theoretical foundation with optimal procedures proposed for both online and offline detection [ 7 , 8 ] . However, these methods rely on strong assumptions about data distributions, input dimensionality, or sparsity of the change signal, limiting their applicability to real-world data [ 9 ] . In response, various deep CPD models have been proposed [ 1 , 6 , 10 , 11 , 12 , 13 , 14 ] , targeting practical demands and offering data-driven solutions with fewer prior assumptions. While state-of-the-art (SOTA) deep CPD models demonstrate near-perfect performance for simple, low-dimensional time series, they often struggle when dealing with complex, multivariate data, like video streams [ 6 , 13 ] . This observation suggests that individual models may lack the expressive power required to capture the diverse range of change points (CPs) occurring in the real world. A potential solution to this problem is ensembling, which has proven to boost weak standalone predictors [ 15 ] and enhance model expressiveness [ 16 ] . Moreover, the inconsistency of ensemble base learners with each other provides natural uncertainty estimation [ 16 , 17 ] and may serve as an additional source of information for identifying CPs. Despite current advancements, current CPD ensembling [ 5 , 18 , 19 ] still relies on simple base detectors unsuitable for high-dimensional data, ignores the task’s specifics, and disregards the issue of optimal alarm threshold selection. Fig. 1 : Teaser of our new aggregation procedure for effective high-dimensional CPD. First, an ensemble of deep change point detectors predicts well-calibrated CP scores for each moment. Second, these scores are aggregated via WWAggr — our sliding-window Wasserstein procedure. Applied to the calibrated scores, WWAggr better reflects changes in ensemble predictions, yielding near-optimal performance for the pre-defined threshold of 0.5 To tackle these challenges, we introduce a sliding-Window Wasserstein-based Aggregation (WWAggr) technique for ensemble CP predictions. The general workflow (Figure 1 ) includes training an ensemble of deep models to predict CP scores and aggregating these predictions with our CPD-specific technique. This algorithm is model-agnostic and robust to alarm threshold selection when the ensemble base learners are well-calibrated [ 20 , 21 ] . For WWAggr, any reasonable threshold gives close to optimal performance, so one can select this value in advance without a subsequent quality drop, increasing the procedure’s utility in online applications. In summary, our main contributions are the following. 1. We propose WWAggr — a novel CPD-specific ensemble aggregation technique that leverages the Wasserstein distance. Our procedure is model-agnostic: it successfully works with ensembles of various deep CP detectors. 2. To enhance the robustness against the alarm threshold selection, we incorporate model calibration. This enables a crucial practical advantage: the model operates effectively for any reasonable threshold near 0.5 , facilitating online inference. 3. Experiments with different deep CP detectors (supervised/unsupervised) on real-world datasets, including video surveillance, show that WWAggr-aggregated ensembles outperform standalone models and conventionally aggregated ensembles (Table I ), establishing new SOTA, especially for complex high-dimensional setting. TABLE I : Mean performance ranks for the considered aggregation procedures. The ranks are averaged across all the models and datasets under study. The best value is highlighted in bold . Base model Aggregation Mean F_{1} rank Single - 4.8 Ensemble Mean 3.1 Min 5.1 Max 3.3 Median 3.0 WWAggr (ours) 1.2 The entire pipeline implementation, including ensemble training, calibration, and WWAggr is available online 1 1 1 https://anonymous.4open.science/r/wwagr-ensemble-cpd-E7FF . II Related work Change Point Detection CPD is well-studied in statistics and machine learning [ 9 , 22 ] . Originating from control charts [ 23 ] , there exist classic CPD procedures that are proven optimal for low-dimensional time series [ 7 , 9 ] . However, they have severe practical limitations. For instance, CUSUM or Shiryaev-Roberts statistics require prior knowledge of data distribution before and after a change point [ 24 ] . Nevertheless, these methods continue to evolve, accommodating a broader range of data models [ 9 ] . Another approach, distance-based CPD, detects CPs by comparing the probability distributions of consecutive data segments. The typical test statistics here are based on probabilistic measures, e.g., the Maximum Mean Discrepancy [ 25 , 26 ] or the Wasserstein distance [ 27 , 28 ] . While effective for simple series, these methods face challenges with multivariate data: the “curse of dimensionality” and resource-intensive estimation of distances [ 5 , 29 , 30 , 31 ] . Deep CPD [ 14 ] overcomes these problems and provides the current SOTA for high-dimensional data streams. Typically, these methods embed the data into low-dimensional representation space instead of operating on raw time series [ 11 , 12 , 32 ] . The power of modern network architectures allows us to learn embeddings that accurately reflect the statistical features of the original series. Informative representations can be obtained in both supervised [ 1 , 6 ] and unsupervised [ 11 , 33 ] regimes. Moreover, current research suggests that incorporating principled CPD practices into neural network training enhances detection effectiveness. For example, scholars parametrize classic CPD approaches with neural networks [ 10 , 34 ] or use specific loss functions [ 6 , 35 ] . However, deep CP detectors constitute standalone networks with limited generalization [ 36 ] that are still far from optimal performance for real-world multivariate data. Ensembling In deep learning, ensembling involves training several neural networks with varied weight initializations, training data subsets, or hyperparameters [ 15 , 36 ] . These basic approaches show the potential of ensembles to leverage diverse patterns and improve results by aggregating information from multiple learners. Ensembling has also been explored within the CPD framework. Combining traditional CPD methods [ 5 , 18 , 19 ] , recent studies consistently demonstrate that ensembles outperform individual baselines. Ensembling strategies include leveraging the properties of diverse detectors [ 19 ] , optimizing CPD-specific criteria for ensemble construction [ 18 ] , or applying univariate CPD methods to each dimension of data projections [ 5 ] . Notably, the authors of [ 5 ] emphasize the importance of aggregating individual model outputs to refine the final decision, though their own approach utilizes simple median aggregation. To summarize, current ensemble methodologies in CPD remain focused on traditional algorithms, thereby overlooking recent advancements in neural CPD and more sophisticated, task-specific ensemble aggregation techniques. Finalizing ensemble predictions A crucial step in applying ensemble methods is selecting an aggregation strategy for the final decision. Current approaches in CPD [ 18 , 19 ] use simple aggregations like averaging predictions or taking maximum/minimum values. In contrast, within the related field of anomaly detection, research shows that disagreements in ensemble predictions can indicate an anomaly score [ 17 ] , highlighting the need for task-specific aggregation in CPD. Another key aspect of finalizing deep ensemble predictions is model calibration. Most researchers find the calibration enhances empirical performance [ 37 , 38 ] . The logic behind this step is that diverse base learners may produce outputs with different distributions, thereby requiring some transformation before final decision-making. Additionally, [ 39 ] shows that proper model calibration increases the discrepancy between normal and abnormal data in anomaly detection. We hypothesize that it can be beneficial for CPD in a similar manner and, thus, suggest using post-hoc calibration [ 20 ] , which applies deterministic transformations to model outputs. The key methods here include Platt Scaling [ 40 ] , Temperature Scaling [ 41 ] , and beta calibration [ 42 ] . Resume Real-world tasks like video monitoring demand effective high-dimensional CPD. Classic methods fall short in this scenario, necessitating the use of neural detectors. Meanwhile, existing research typically focuses on individual deep models, which often yield suboptimal performance, or explores ensembles of classic CPD algorithms, ill-suited for complex data. This paper investigates ensembles of SOTA deep change point detectors. We explore how proper ensemble output aggregation tailored to CPD and model calibration enhances detection quality and usability for practical tasks. III Problem statement Let X_{1:T}=\{\mathbf{x}_{t}\}_{t=1}^{T} , \mathbf{x}_{t}\in\mathbb{R}^{D} , denote a multivariate time series. Suppose there exists a moment \theta\in[1,T] such that for t<\theta , the observations \mathbf{x}_{t} follow a “normal-data” distribution f_{0} , and for t\geq\theta the distribution of \mathbf{x}_{t} switches to f_{1} — an “abnormal” one. In this case, \theta is called a change point (CP). CPD aims to identify the appearance of \theta quickly and accurately, producing its estimate \tau . Notably, we operate under a common “at-most-one-change” assumption [ 24 ] , which can be extended to the multiple CPD scenario. As with any distance-based procedure, our pipeline is inspired by two-sample hypothesis testing. In this setting, one determines whether two consecutive data subsets are generated from a single probability distribution [ 10 ] : \displaystyle\mathcal{H}_{0}^{(t)}\colon f_{X_{t-\omega:t}}=f_{X_{t:t+\omega}}; (1) \displaystyle\mathcal{H}_{1}^{(t)}\colon f_{X_{t-\omega:t}}\neq f_{X_{t:t+\omega}}. Here, X_{t-\omega:t}=\{\mathbf{x}_{t^{\prime}}\}_{t^{\prime}=t-\omega}^{t-1} and X_{t:t+\omega}=\{\mathbf{x}_{t^{\prime}}\}_{t^{\prime}=t}^{t+\omega-1} are two consecutive sub-series of size \omega for some step t , and f_{X} denotes the PDF for a sample X . Eventually, \tau is the first moment when \mathcal{H}_{0}^{(t)} is rejected at some confidence level. Targeting high-dimensional data, our pipeline (Section IV ) uses deep change point detectors that estimate f_{0,1} by learning data representations. Further, we operate in the space of the predicted CP scores, detecting distributional shifts there. IV Methods This section presents the proposed technique for the aggregation of ensemble-based CP predictions. We begin with general sequence-to-sequence (seq2seq) CPD ensembles and then proceed to the details of further steps in our pipeline. IV-A Deep CPD ensembles We explore ensembles of deep CP detectors operating in a seq2seq mode. In particular, each base learner is a neural network g_{\mathbf{w}} with parameters \mathbf{w} that takes the series X_{1:T} as an input and outputs the sequence of the predicted CP scores: g_{\mathbf{w}}\left(X_{1:T}\right)=p_{1:T}=\{p_{t}\}_{t=1}^{T} . If K models are trained independently, we obtain an ensemble \left\{g_{\mathbf{w}_{k}}\right\}_{k=1}^{K} . To enforce model diversity and, thereby, boost the overall ensemble expressiveness, several techniques during ensemble training are typically used [ 36 ] : (1) setting different initializations for the models’ weights and the stochastic gradient descent; (2) fitting the models on bootstrapped subsamples of the initial training dataset; (3) using specific noisy optimization procedures, like SGLD [ 43 ] . Our sensitivity studies (see V-E ) have shown that the most straightforward option (1) provides the superior solution with a sufficient variety of base learners. Thus, this option is used in the main experiments. IV-B Ensemble prediction aggregation Once the ensemble is trained and the predictions P_{1:T}=\left\{p_{1:T}^{(k)}\right\}_{k=1}^{K} are obtained, the simplest way to derive the final decision is to average the outputs [ 5 , 36 ] : \mu_{1:T}=\frac{1}{K}\sum_{k=1}^{K}{p_{1:T}^{(k)}} . Alternatively, [ 19 ] addresses other “naive” aggregations (e.g., min, max, sum, or quantile values). However, none of them are inherently designed for CPD, nor do they account for the problem’s peculiarities. We expect that, similarly to the anomaly detection area [ 17 , 39 ] , the heterogeneity of base learners’ predictions could serve as another vital, yet often underexplored, source of information about the CP location. This hypothesis inspires WWAggr , our task-specific aggregation procedure. Input : \{g_{\mathbf{w}_{k}}\}_{k=1}^{K} --- an ensemble of trained and calibrated CPD models; X_{1:T} --- a multivariate time series; d(\cdot,\cdot) --- a probabilistic distance function; \omega — a window size; h --- an alarm threshold. Output : \tau --- change point prediction. /* get ensemble predictions */ Compute p_{1:T}^{(k)}=g_{\mathbf{w}_{k}}\left(X_{1:T}\right) for k=1,\ldots,K . /* aggregate ensemble predictions */ Set w_{1}=\ldots=w_{2\omega}=0 . for t=2\omega+1 \operatorname{to} T do 1) Obtain “future” F_{t}=\mathbf{p}_{t-\omega:t} of size \omega\times K . 2) Obtain “history” H_{t}=\mathbf{p}_{t-2\omega:t-\omega} of size \omega\times K . 3) Flatten F_{t} and H_{t} into the vectors \mathbf{f}_{t} and \mathbf{h}_{t} of size 1\times\omega K . 4) Compute w_{t}=d(\mathbf{f}_{t},\mathbf{h}_{t}) . end for /* get the final CP estimate */ if \forall t\in\overline{1,T}\colon w_{t}1 , the results from [ 45 ] established that the convergence speed of this estimator to the true distance is O\left(n^{-1/d}\right) . Consequently, with the ensemble of K models, a faster convergence can be achieved if we use one-dimensional ( d=1 ) samples of size n=\omega K rather than estimate the distance between two K -dimensional samples, each of size \omega . Moreover, employing a moderate window size \omega is generally preferred, as it results in a smaller inherent detection delay. This observation motivates us to introduce the flattening step within Algorithm 1 . The decision is also justified by the assumption that after calibration (discussed below), CP scores predicted by distinct models come from the same distribution. The Maximum Mean Discrepancy (MMD) is another probabilistic distance widely used for CPD [ 25 , 26 ] . As the Wasserstein metric can be interpreted as a specific case of the MMD [ 27 ] , they exhibit similar performance regarding the quality metrics if the alarm threshold is selected properly (see V-E4 ). However, the 1-Wasserstein distance possesses a valuable property of being bounded to [0,1] (see below). This feature, combined with the proper model calibration, alleviates the problem of the alarm threshold selection (see Section V-D ). Optimal alarm threshold selection We employ seq2seq CPD models that predict a CP score p_{t} for each time step t . A CP is reported when p_{t} exceeds a predefined alarm threshold h for the first time. The same applies to the ensemble models with naive aggregations and our CPD-specific procedure discussed above. Since CP detector performance heavily depends on the choice of hyperparameters that control alarm signal [ 22 ] , it is essential to thoroughly estimate the optimal threshold value on a hold-out set before model inference. In our Algorithm 1 , the samples X^{(n)} and Y^{(n)} are the flattened history and future windows \mathbf{h}_{t} and \mathbf{f}_{t} . They consist of the predicted CP scores P_{1:T} , bounded to [0,1] due to the nature of the considered base models (see Appendix B ). Thus, for any i , 0\leq\left|X_{(i)}-Y_{(i)}\right|\leq 1 , and, consequently, 0\leq w_{t}=d(\mathbf{f}_{t},\mathbf{h}_{t})=\hat{W}_{1}\left(X^{(n)},Y^{(n)}\right)\leq 1 . Therefore, for WWAggr, meaningful possible thresholds belong to [0,1] , making our aggregation convenient in practice. Simultaneously, there are no such guarantees for MMD. Practically, reducing sensitivity to hyperparameters, particularly h , is highly desirable. The ideal CPD procedure should work effectively enough for a fixed alarm threshold, e.g., 0.5 . Our findings indicate that for the WWAggr method, this capability can be achieved through proper model calibration. CPD model calibration Correct model calibration was found to be essential in anomaly detection, as it allows better distinguishing between normal and abnormal data distributions [ 39 ] . We expect similar behavior from the CPD and hypothesize that this effect could benefit WWAggr. Thus, we research the calibration procedures for the CPD models. As shown by [ 1 , 6 , 34 ] , CPD can be interpreted as a seq2seq binary classification task. It allows us to follow [ 42 ] and use model calibration notation designed for binary classifiers. Recall that we work with the baseline models of the form p_{t}=g_{\mathbf{w}}\left(X_{1:t}\right) . The model g_{\mathbf{w}} is perfectly calibrated if p_{t}=\mathbb{E}\left[l_{t}|g_{\mathbf{w}}\left(X^{1:t}\right)=p_{t}\right] , where p_{t} is a predicted CP score, serving as the positive class probability, and l_{t} is the true binary label ( l_{t}=0 for t<\theta , l_{t}=1 for t\geq\theta ). This equation means that if a well-calibrated model predicts probability p , the actual fraction of positives corresponding to this model output should equal p . In this work, we resort to post-hoc calibration methods, which assume that the model of interest has already been trained and its parameters are frozen. Therefore, better calibration is achieved by post-processing the model’s outputs. Let s denote the model’s logit for a particular input. The predicted probability p is then commonly computed as the sigmoid function: p(s)=\sigma(s)=(1+\exp(-s))^{-1} . We settle on the beta calibration method [ 42 ] , where the Beta distribution inspires the logit transformation: p_{\mathrm{beta}}\left(s;a,b,c\right)=\left(1+\frac{\left(1-s\right)^{b}}{s^{a}}e^{-c}\right)^{-1} (5) for parameters a,b\in\mathbb{R} , and c\geq 0 selected by optimizing the cross-entropy on the hold-out set. Despite its simplicity, this method presents a firm baseline in post-hoc calibration [ 21 ] . Our study (Subsection V-E3 ) illustrates that it works well for CPD, outperforming Temperature Scaling [ 41 ] — another popular post-hoc calibration approach. V Experiments Our final pipeline follows Algorithm 1 , with d being the 1-Wasserstein distance and the beta-calibrated ensemble base learners g_{\mathbf{w}_{k}} . In this section, we evaluate our ensemble CPD approach in real-data scenarios with various underlying base detectors for both supervised and unsupervised scenarios. TABLE II : Detection F_{1} -scores for the ensembles of supervised and unsupervised CPD models. The results are averaged by three runs and are given in the format mean\pm std . The best values are highlighted in bold ; the second best are underlined . Base model Aggregation Dataset Yahoo Road Accidents Explosions Supervised models BCE single - 0.895 \pm 0.038 0.336 \pm 0.024 0.695 \pm 0.058 BCE ensemble Mean 0.892 \pm 0.029 0.354 \pm 0.007 0.701 \pm 0.052 Min 0.872 \pm 0.043 0.337 \pm 0.031 0.679 \pm 0.047 Max 0.901 \pm 0.028 0.353 \pm 0.031 0.735 \pm 0.050 Median 0.908 \pm 0.019 0.351 \pm 0.009 0.709 \pm 0.038 WWAggr 0.901 \pm 0.027 0.383 \pm 0.024 0.773 \pm 0.011 InDiD single - 0.871 \pm 0.023 0.319 \pm 0.032 0.560 \pm 0.070 InDiD ensemble Mean 0.873 \pm 0.025 0.317 \pm 0.023 0.588 \pm 0.019 Min 0.867 \pm 0.036 0.302 \pm 0.028 0.568 \pm 0.087 Max 0.888 \pm 0.023 0.317 \pm 0.020 0.593 \pm 0.027 Median 0.878 \pm 0.023 0.337 \pm 0.028 0.559 \pm 0.029 WWAggr 0.882 \pm 0.026 0.407 \pm 0.007 0.621 \pm 0.043 Unsupervised models TS-CP 2 single - 0.855 \pm 0.034 0.359 \pm 0.017 0.498 \pm 0.080 TS-CP 2 ensemble Mean 0.872 \pm 0.011 0.381 \pm 0.014 0.587 \pm 0.044 Min 0.851 \pm 0.018 0.354 \pm 0.008 0.574 \pm 0.019 Max 0.865 \pm 0.005 0.364 \pm 0.031 0.565 \pm 0.047 Median 0.873 \pm 0.004 0.378 \pm 0.011 0.582 \pm 0.014 WWAggr 0.891 \pm 0.021 0.391 \pm 0.022 0.618 \pm 0.036 SN-TS2Vec single - 0.774 \pm 0.033 0.361 \pm 0.020 0.535 \pm 0.053 SN-TS2Vec ensemble Mean 0.765 \pm 0.022 0.379 \pm 0.009 0.563 \pm 0.026 Min 0.753 \pm 0.008 0.354 \pm 0.008 0.564 \pm 0.061 Max 0.738 \pm 0.025 0.364 \pm 0.031 0.563 \pm 0.031 Median 0.765 \pm 0.047 0.378 \pm 0.011 0.563 \pm 0.017 WWAggr 0.785 \pm 0.016 0.384 \pm 0.039 0.564 \pm 0.052 V-A Base change point detectors We prove the versatility of the proposed pipeline by conducting experiments with various SOTA deep change point detectors as ensemble base learners. As supervised standalone detectors, we stick to the generic classification-based BCE [ 1 , 6 ] model and CPD-specific InDiD model from [ 6 ] . For unsupervised variants, we experiment with the TS-CP 2 model presented by [ 11 ] and SN-TS2Vec developed by [ 12 ] . Please find brief descriptions of these models in Appendix B or look at the original papers for more details. V-B Datasets Although our primary focus is on high-dimensional data CPD, we also evaluate our approaches on simpler sequences. For this, we selected the Yahoo! dataset [ 4 ] , a widely recognized CPD benchmark. Its diverse collection of univariate series with changes in trends, seasonality, and noise regimes presents a sufficient challenge even for deep CP detectors [ 10 , 11 , 12 ] . As the most complicated datasets, we use high-dimensional video data: Explosions and Road Accidents , presented in [ 6 , 46 ] . Both of them consider detecting sophisticated changes of varying intensities, which are complicated by the significant noisiness of the change signal and a wide diversity of normal behavior patterns. The main datasets’ characteristics are summarized in Table III , while the detailed description is postponed to Appendix A . TABLE III : Statistics of the datasets used in the experiments. Dataset Yahoo Explosions Road Accidents Single sample shape 1 (240,320,3) (240,320,3) Train / Test seq. length 150 / 1000 16 / 16 16 / 16 Train / Test size 21420 / 420 310 / 315 666 / 349 % train / test seq. with CP 20.1 / 89.8 50.0 / 4.8 50.0 / 14.0 V-C Main results Following previous works [ 6 , 10 , 11 , 12 ] , CPD models are evaluated using the standard F_{1} metrics, which is based on task-specific interpretation of the confusion matrix elements. Note that here, we are comparing not models themselves but various prediction aggregation techniques within each ensemble. As “naive” procedures, we consider point-wise “mean”, “min”, “max”, and “median” aggregations [ 19 ] . Table II presents the main results for the supervised and unsupervised CPD ensembles. The average performance ranks according to the F_{1} -score for all the considered aggregations are presented in Table I . Based on the results, we conclude that: 1. Ensembles of deep change point detectors consistently outperform standalone models. Confirming prior results [ 5 , 19 ] , even naive aggregation is sufficient for low-dimensional Yahoo. However, for higher-dimensional video data, task-agnostic procedures are suboptimal, while our WWAggr provides superior performance. 2. Our WWAggr technique is model-agnostic, working effectively with ensembles of various supervised and unsupervised deep CPD models. In almost all cases, it boosts performance, optimizing the detection F_{1} -score. 3. For the most challenging datasets (Explosions and Road Accidents), the proposed approach significantly improves the detection quality by increasing the detection F_{1} -score by up to 20%. Considering these findings, we study the effect of model calibration on the issue of alarm threshold selection. V-D Model calibration and alarm threshold selection Fig. 2 : Dependence of the F_{1} -score on threshold selection for the WWAggr procedure before and after model calibration. Dashed line indicates the best score obtained by searching through 300 thresholds. As outlined in Section IV-B , the performance of seq2seq CPD models is often threshold-dependent. This means one should carefully select the value of h to obtain the best quality, which may be restrictive in practice. During the experiments, we discovered that poor calibration of the ensemble’s base learners results in higher sensitivity for the threshold selection. Figure 2 compares maximum detection F1-scores obtained for various threshold numbers. According to the results, we do not need to search through a large set of thresholds for WWAggr after the proper calibration. Moreover, even 1 — 5 values of h are enough to obtain high-quality detection. Such an effect allows the user to select the threshold in advance (e.g., h=0.5 ), facilitating online inference and reducing the computational costs. V-E Sensitivity studies In this section, we provide our findings on how different components of the pipeline (ensembling strategies, calibration methods, and ensemble structure) affect the performance. Due to space limitations, we present the results only for the ensembles of BCE models trained on the Explosions dataset. However, this generalizes to the rest of the model-dataset pairs under study. V-E 1 Choice of ensembling method First, we explore how different ensembling techniques influence the overall quality of the proposed CPD method. The models in the ensemble are supposed to be different to increase the resulting ensemble expressiveness, and this variety can be achieved in several ways [ 36 ] . In particular, we compare three options: (a) Naive : models in one ensemble differ only in weight initializations and random seeds for the SGD. (b) Bootstrap : models in one ensemble are trained on different bootstrapped subsamples of the original train dataset. (c) SGLD : models in one ensemble are trained with the noise-injection procedure proposed by [ 43 ] . The results are presented in Table IV . Based on these results, we conclude that the simplest (“naive”) approach provides enough model diversity and ensemble expressiveness for our task. Bootstrapping different training subsamples for different base learners, as well as using the SGLD procedure, results in inferior performance for all the considered aggregation techniques. The reason for that is the data complexity: even SOTA standalone models are not able to converge to one global optimum, and additional randomization in the training process occurs to be redundant. Therefore, we use simple ensembles of type (a) in our main experiments. TABLE IV : Detection F_{1} -scores for different ensembling methods, supervised BCE models trained on the Explosions dataset. The results are averaged by three runs. The best values are highlighted in bold . Aggregation Ensembling method Naive Bootstrap SGLD Mean 0.701 \pm 0.052 0.670 \pm 0.062 0.692 \pm 0.040 Min 0.679 \pm 0.047 0.641 \pm 0.026 0.645 \pm 0.051 Max 0.735 \pm 0.050 0.689 \pm 0.071 0.690 \pm 0.039 Median 0.709 \pm 0.038 0.678 \pm 0.038 0.667 \pm 0.052 WWAggr 0.773 \pm 0.011 0.728 \pm 0.034 0.741 \pm 0.043 F_{1} for a single model is 0.695 \pm 0.058 V-E 2 Mixed ensembles Additionally, prove the versatility of the WWAggr procedure by experimenting with the mixed ensembles. In more detail, we construct two types of mixed ensembles: supervised (consisting of five BCE and five InDiD models) and unsupervised (with five TS-CP 2 and five SN-TS2Vec base learners). The results are presented in Table V . As expected, we observe that the performance quality of the mixed ensembles lies between the corresponding homogeneous ensembles (Section V-C ). However, it is more important to note that our WWAggr aggregation technique remains superior in this case as well, thereby proving its universality and robustness to the underlying ensemble structure. TABLE V : Detection F_{1} -scores for the mixed ensembles of supervised and unsupervised base learners, trained on the Explosions dataset. The results are averaged by three runs. The best values are highlighted in bold . Aggregation Ensemble structure BCE + InDiD TS-CP 2 + SN-TS2Vec Mean 0.675 \pm 0.015 0.499 \pm 0.062 Min 0.657 \pm 0.057 0.538 \pm 0.002 Max 0.673 \pm 0.060 0.549 \pm 0.023 Median 0.676 \pm 0.029 0.568 \pm 0.033 WWAggr 0.684 \pm 0.032 0.587 \pm 0.024 V-E 3 Choice of calibration method In this study, we compare two popular post-hoc calibration techniques: the Temperature Scaling [ 41 ] and the beta calibration [ 42 ] . Table VI presents values of Expected Calibration Error (ECE) averaged across ten models in the ensemble. According to the results, Temperature Scaling, with only one tunable parameter, lacks the flexibility to significantly improve model calibration. On the contrary, the Beta method allows to achieve almost perfect ECE values. Figure 3 complements this study and reports the histograms of mean “normal” (before a CP) and “abnormal” (after a CP) change point scores predicted by ensembles of BCE models for the Explosions dataset. It is evident that a proper model calibration enables better separation of these two CP score distributions, which results in a larger 1-Wasserstein distance between them. Taking these findings into account, we settled on the beta method as the main option for the calibration step in the proposed pipeline. TABLE VI : Expected Calibration Error (see [ 41 ] , we want to minimize \downarrow it) values for the BCE models trained on the Explosions dataset before and after calibration. The best metric value is highlighted in bold . Calibration method Mean ECE \downarrow None 0.1185 Temperature Scaling 0.0931 Beta 0.0023 Fig. 3 : Histograms of the mean predicted “normal” and “abnormal” CP scores for ensembles of supervised BCE models trained on the Explosions dataset. W_{1} represents the 1-Wasserstein distance estimate between these two distributions. V-E 4 Choice of probabilistic distance In this experiment, we examine the sensitivity of the proposed aggregation technique from Algorithm 1 to the choice of the probabilistic distance d(\cdot) . Although all three considered options ( \hat{W}_{1} , \hat{W}_{2} , MMD) produce close detection quality when the alarm threshold is carefully selected, the 1-Wasserstein distance behaves much more stable with 1 — 5 standard predefined thresholds (see Figure 4 ). Thus, this is the most empirically appropriate distance variant for WWAggr. Fig. 4 : Dependence of the F_{1} -score on threshold selection for our aggregation procedure with different probabilistic distances. Results for the experiments with calibrated BCE ensembles on the video datasets. Dashed line indicates the best score obtained by searching through 300 thresholds. VI Limitations and future work The main limitation of our approach is its computational complexity. On the Explosions dataset, the average GPU inference time per sequence for BCE/InDiD increases from 40.5\pm 1.2 ms for a single model to 400.0\pm 3.2 ms for an ensemble of size K=10 with “naive” aggregations. Our WWAggr method with the same ensemble size took 417.1\pm 5.0 ms, incurring a minor computational overhead ( \approx 5\% ) compared to naive approaches. WWAggr has the potential to overcome this difference and be even more efficient if the sliced [ 47 ] or projected [ 48 ] Wasserstein distances are used. This work targets high-dimensional data, where assumption-free deep CP detectors are the only reasonable solution [ 6 , 13 ] . However, for lower dimensions, the increase in computational cost for ensembles of such deep detectors may outweigh its modest performance benefits. In this case, one could resort to Bayesian Neural Networks [ 49 ] , although their efficacy strongly depends on making proper prior choices [ 17 ] . Another alternative for low-dimensional data could be to ensemble classical statistical methods, such as CUSUM [ 24 ] . While we hypothesize our aggregation strategy would also be effective for these procedures, classical methods eliminate the calibration of CP scores and, consequently, any guarantee for easy alarm threshold choice. Thus, we leave these ideas for future investigation. VII Conclusion We tackled the problem of change point detection in real-world high-dimensional data, where traditional methods often underperform due to complex data patterns. Recognizing the limitations of standalone deep neural networks, the paper proposes using ensembles of SOTA change point detectors, which are more suitable for real-world challenges. In our experiments, ensembles of deep CPD detectors consistently outperform standalone models, even with simple aggregation methods like averaging. However, these “naive” procedures are sub-optimal for the change point detection setting. Thus, we introduce WWAggr, the novel ensemble prediction aggregation procedure based on the Wasserstein distance. This procedure significantly boosts detection quality by capturing the peculiarities of the CPD task, being model-agnostic and suitable for various supervised and unsupervised CPD base models. As a result, WWAggr advances an ensemble, improving the detection F_{1} -score on the video data by up to 20\% compared to basic aggregations. To ensure robustness against alarm threshold selection, we apply model calibration, making the proposed approach more practical. Consequently, in inference, almost any reasonable threshold value results in a decent performance. Appendix A Dataset descriptions Here, we provide a detailed description of the datasets used in experiments. The dataset summary statistics are presented in Table III . Yahoo The Yahoo! dataset [ 4 ] contains univariate time series with varying trends, seasonality, and noise regimes. Originally proposed for benchmarking the Anomaly Detection methods, this dataset has been adapted to change point detection by, e.g., [ 10 , 11 , 12 ] . Following these works, we use 100 long time series from the fourth benchmark, as this is the only portion of the dataset that includes CPs but not anomalies. We further extract 420 sequences of length 1000 for the testing subset and use around 20000 sequences of length 150 for training. For LSTM-based supervised base learners (BCE and InDiD), we cropped test sequences to a length of 150, keeping the proportion of “normal” and “abnormal” series the same. Explosions and Road Accidents As the most complicated datasets, we use high-dimensional semi-structured video data. To construct these samples, real-world RGB videos were taken from the UCF-Crime anomaly detection dataset [ 46 ] , and their CPD markup was provided by [ 6 ] . In the Explosions dataset, CPs correspond to any explosions and fire shot by a CCTV camera. ”Normal” videos do not include any emergencies. These situations follow the CPD problem statement as the explosion’s consequences (fire, smoke, etc.) are seen for some time afterwards. Clips from Road Accidents follow a similar pattern but are more challenging. In this case, CPs indicate car crashes on the streets. As traffic accidents do not necessarily split the video into two regimes, we use this dataset to measure the range of applicability of CPD models. In these two video datasets, every clip has a length of 16 frames, and every frame is a tensor of size 240\times 320\times 3 . Appendix B Implementation details We conducted all the experiments from the paper using Python 3 and the PyTorch framework. The code is available online 2 2 2 https://anonymous.4open.science/r/wwagr-ensemble-cpd-E7FF . All the models were trained on two NVIDIA GeForce GTX 1080 Ti GPUs. For the implementation of base deep CPD models, which form various ensembles, we mostly followed the original works and inherited the proposed model architectures. Below, we describe the models’ architecture choice and the training pipeline hyperparameters. Additionally, we provide details on implementing the proposed sliding-window Wasserstein-based aggregation procedure. B-A Details on supervised ensembles We utilize two sequence-to-sequence supervised approaches. Both models employ recurrent LSTM-based [ 50 ] architectures but are trained with different loss functions. The first one, denoted as BCE, is a generic neural network that considers CPD as a classification task and directly optimizes the standard binary cross-entropy loss [ 1 , 6 , 34 ] . In contrast, the second InDiD model leverages the principles of the CPD task and optimizes the detection delay and number of false alarms [ 6 ] . Both approaches are recognized for their high quality across various real-world CPD tasks, including the detection of changes in video samples. We refer the reader to the original paper for more details. These BCE and InDiD models consist of LSTM [ 50 ] blocks followed by dense layers. To stabilize this model, we added Layer Norm to the LSTM cells, which resulted in more robust training and better final metrics compared to the original paper [ 6 ] . The rest of the hyper-parameters and the training pipeline were taken from the repository 3 3 3 https://github.com/romanenkova95/InDiD . B-B Details on unsupervised ensembles Additionally, we study ensembles of unsupervised models TS-CP 2 [ 11 ] and SN-TS2Vec [ 12 ] . These two models are inspired by contrastive self-supervised learning techniques. The general idea of TS-CP 2 [ 11 ] is to train a CNN using pairs of ”similar” (positive) and ”dissimilar” (negative) data windows with the contrastive loss function, adapting the CPC approach [ 51 ] . As a result, the representations of the positive pairs are brought closer, and the embeddings of the negative pairs are further apart. Thus, change points can be detected by computing the cosine distance between the representations of consecutive windows of a time series. TS-CP 2 model has a one-dimensional convolutional architecture with the hyper-parameters mentioned in the work of [ 11 ] . We re-implement the model in PyTorch based on the original code from the repository 4 4 4 https://github.com/cruiseresearchgroup/TSCP2 . SN-TS2Vec [ 12 ] is the improvement of the prominent TS2Vec model [ 52 ] , which is also based on convolutional networks. It utilizes the spectral normalization technique, enabling the CPD-friendly embedding properties. The final CPD predictions are obtained in the same way as for the TS-CP 2 model. We strictly adhere to the original implementation 5 5 5 https://gitlab.com/abazarova/ssl_cpd , including their choice of architecture and training strategies. Note that both types of unsupervised base learners (TS-CP 2 and SN-TS2Vec) are based on representation learning. Consequently, they detect change points by computing the cosine distances between subseries representations, and these distances, bounded to [-1,1] , serve as CP scores p_{t} . On the other hand, supervised baselines operate with CP probabilities p_{t}\in[0,1] . In order to align these two approaches, we suggest post-processing TS-CP 2 and SN-TS2Vec outputs with the following transformation: \tilde{p}_{t}=\left(1-p_{t}\right)\cdot\mathbb{I}\left(p_{t}\geq 0\right) , where \mathbb{I}(\cdot) represents the indicator function. As a result, the final CP scores lay in the range from 0 to 1, allowing us to apply WWAggr in all the cases. B-C Change point detection for video data Following [ 6 ] , we preprocess the video clips from Explosions and Road Accidents with a pre-trained feature extractor X3D [ 53 ] . This CNN-based model takes an input RGB video as a tensor of shape 320\times 240\times 3\times T and outputs its feature tensor of shape 12288\times T . Therefore, it reduces data dimensionality and extracts informative features for each frame that reflect the distribution changes in the original video. Extractor parameters were frozen while training the models. B-D Hyper-parameter selection In all the experiments, we used ensembles of size K=10 . To find the optimal values for the window size parameter \omega of the proposed aggregation technique, we evaluate several options on the validation set. In more detail, we search through \omega\in[1,2,3] for the Explosions and Road Accidents datasets, and \omega\in[3,5,10] for the Yahoo dataset. For each dataset-model pair, the best result is reported.