betaFeedback

WorksMathematics

Global-Local and Window-Concatenated Functional Random Forests: Early and Late Fusion of Window-Specific Functional Principal Components

Abstract

Functional random forests built on a single functional principal component decomposition of the whole domain may dilute features confined to short intervals, whose location is rarely known in advance. We propose two random forests based on window-specific functional principal components. The global-local functional random forest (GL-FRF) is a late-fusion method that stacks a tuned full-curve forest and one forest per window with penalised convex weights; it contains the full-curve forest as a feasible solution, and its weights indicate which parts of the domain drive the prediction. The window-concatenated functional random forest (WC-FRF) is an early-fusion method that trains a single tuned forest on the concatenated window-specific scores. On twenty UCR datasets, GL-FRF improved on a tuned full-curve forest with the same number of trees on 16, with Brier score reductions of up to 0.21, significantly after Holm adjustment. No method was best on more than six datasets. WC-FRF was more accurate than GL-FRF on 13 datasets but failed when the signal required the full curve, whereas GL-FRF had the smallest mean and maximum excess over the best method across all 32 simulated and real settings, which makes it the safer choice when the location of the signal is unknown.

Introduction

Functional observations arise in many scientific and applied domains where measurements are recorded over time or along another ordered continuum. Examples include electrocardiographic signals, industrial sensor traces, spectrometric curves, motion trajectories and environmental monitoring profiles. In these settings, the statistical unit is naturally represented as a function rather than as a finite vector of unrelated measurements, and functional data analysis (FDA) provides an explicit representation of the domain, of the dependence between neighbouring observations, of the smoothness of the underlying trajectories and of the geometry in which curves are compared [39, 15]. When the sampling grid is sufficiently informative, an individual observation can be regarded as a realisation of a random function X∈L2(T)X \in L^2(\mathcal{T}), and supervised classification consists in predicting a categorical outcome Y∈{1,…,C}Y \in\{1,\ldots,C\} from XX.

Supervised classification of functional data has been addressed through functional linear discriminant analysis [20], nonparametric kernel methods [14], supervised projections such as functional partial least squares [37], and, more recently, tree-based ensembles. A key tool in most of these approaches is functional principal component analysis (FPCA), which diagonalises the covariance operator of the predictor and summarises its dominant modes of variation. FPCA, however, orders components by explained variance and not by their ability to separate the classes. Components with small eigenvalues may carry most of the discriminative information [21, 18], and projections that are suboptimal for describing the curves may be close to optimal for classifying them [10]. In tree-based classifiers, the problem has a second side: retaining many weakly informative components reduces the probability that the informative ones are considered at each split. For these reasons, the functional representation and the classifier should be regarded as interconnected parts of the same statistical procedure rather than as unrelated preprocessing and learning steps [30].

Several contributions have shown how functional structure can be combined with decision trees and ensembles. Maturo and Verde [29] and Maturo and Verde [30] developed functional classification trees and functional random forests (FRF) based on FPCA scores, with attention to both predictive performance and interpretability, and Maturo and Verde [31] combined unsupervised and supervised learning to improve functional classifiers. Loffredo et al. [24] extended FPCA-based forests to censored time-to-event outcomes, while Maturo and Porreca [26] proposed explainability tools for FRF that relate predictions to individual functional principal components. Gregorutti et al. [17] studied grouped importance measures for functional variables, Belli and Vantini [3] introduced functional splits defined by learned integral features, and Möller et al. [34] proposed random forests whose predictors are the means of the curves over randomly generated intervals of the domain. Ensemble diversity induced at the level of the functional representation has been exploited by the functional voting classifier [40], by randomised spline trees [41], by augmented functional random forests that combine curves and their derivatives [28], and by geometric feature enrichment [27]. These contributions show that the functional representation itself, and not only the choice of classifier, influences what an ensemble can learn.

A complementary literature focuses on locality in the functional domain. Li and Yu [22] proposed a segmentation approach to functional classification, in which discriminant features are extracted from segments of the domain; Berrendero et al. [4] addressed the selection of the most informative points of the trajectory; and Pini and Vantini [36] developed interval-wise inference to identify the parts of the domain on which functional populations differ. On the representation side, localised FPCA [7] estimates eigenfunctions supported on subintervals, and multiscale FPCA [23] partitions the domain according to the scale of the variance and performs FPCA on each subdomain, precisely because features located in regions of low variance can be concealed by a single decomposition of the whole domain. In time series classification, interval-based forests summarise random intervals through simple statistics [12, 2]; the Canonical Interval Forest and its diverse-representation variant are among the most accurate interval methods [32, 33], and the bake-off of Bagnall et al. [1] has shaped the evaluation practice in this field.

From an FDA perspective, an interval is not simply a subset of columns: it is a restriction of the functional argument, with its own mean, covariance operator, smoothing requirements, eigenfunctions and explained-variance spectrum. An FPCA carried out separately on an interval can therefore expose modes of variation that would not appear among the leading components of a global FPCA. At the same time, independent local models cannot in general reconstruct predictive interactions between distant intervals: if class membership depends on the joint configuration of two separated features, each feature may be marginally uninformative while their interaction is perfectly predictive. These two observations raise a simple question, which motivates the present work: should prediction be entrusted to a single functional random forest trained on the whole trajectory, or to a combination of forests whose functional representations are restricted to different intervals, and under which conditions does the second option improve on the first?

Window-specific FPCA has been used before. Yan et al. [45] applied FPCA to moving time windows of longitudinal biomarkers to update predictions of times to event, and localised FPCA Chen and Lei, [7] estimates eigenfunctions with local support rather than decomposing windows fixed in advance. The closest antecedent is multiscale FPCA Lin and Zhu, [23], which divides the domain into subdomains according to the level of the variance function, performs a separate FPCA on each of them and, in an application to diffusion tensor imaging profiles, uses the resulting scores as inputs of a random forest to classify patients with multiple sclerosis and healthy controls, with a small improvement over single-scale FPCA. Subdomain FPCA scores have therefore already been used as features of a random forest, and the untuned forest on concatenated window-specific scores considered in this paper, WC-0, can be regarded as a version of that approach with equal-width windows. To the best of our knowledge, what has not been studied is how window-specific components should be combined with the full-curve representation in a functional random forest, whether early and late fusion of the same window-specific representation behave differently, and whether the gains over a tuned full-curve forest are due to localisation or to the diversity of the resulting ensemble.

This paper proposes and compares two functional random forests built on the same window-specific representation, which differ in how the information of the windows is combined. In the terminology of multi-view learning, the first is a late-fusion and the second an early-fusion strategy. The global–local functional random forest (GL-FRF) retains a full-curve FRF, tuned by internal cross-validation, alongside WW local FRFs, each trained on the FPCA scores of a separately smoothed and separately decomposed window. Their predicted class probabilities are combined through convex weights estimated from cross-fitted predictions, with two penalties that shrink the total local weight towards the global expert and the local weights towards equality, and the number of windows and the penalties are selected by nested cross-validation. Because the weights lie on the probability simplex, the global expert is a feasible solution and GL-FRF reduces exactly to a tuned full-curve forest when the local experts do not improve the cross-fitted loss; the estimated weights also indicate which parts of the domain contribute to the prediction. The window-concatenated functional random forest (WC-FRF) concatenates the window-specific scores into a single feature vector and trains one forest whose number of candidate variables at each split and minimum node size are tuned on the out-of-bag Brier score. WC-FRF lets the forest select, split by split, the windows that matter and can model interactions between windows, but it has no access to the full-curve representation and no explicit fallback.

The contributions of the article are the following. First, building on multiscale FPCA Lin and Zhu, [23], we formulate window-specific functional principal components as a representation for functional random forests, with smoothing, FPCA and all tuning carried out within the training data, and we propose GL-FRF and WC-FRF as two ways of exploiting it. GL-FRF is a structured application of stacking Wolpert, [43]; Breiman [5]; van der Laan et al. [42] to functional random forests Breiman, [6], with weights fixed after training, unlike query-specific dynamic ensemble selection Cruz et al., [8]; WC-FRF differs from the random forest on multiscale FPCA scores of Lin and Zhu [23] in the equal-width windows, the separate smoothing of each window and the out-of-bag tuning of the forest, and it replaces the interval features of the forests of Möller et al. [34] and Deng et al. [12], namely means, standard deviations and slopes, with functional principal components of each window. Second, we propose a locality control to separate the contribution of temporal localisation from that of ensemble diversity, which are usually confounded in ensembles of functional representations Riccio et al., [40]: the same stacking procedure is applied to random non-contiguous partitions of the grid with the same set sizes as the windows. Third, we characterise when each method is preferable, by comparing both with tuned full-curve forests, random-interval forests and functional nearest neighbours under a common protocol. Fourth, the methods are evaluated on twenty benchmark datasets with repeated stratified resampling, and the main comparisons are tested across datasets with an adjustment for multiplicity.

The results show that the two methods are complementary and that neither should be judged only by the number of datasets on which it is the most accurate. No method among the twelve compared was the best on more than six of the twenty datasets, and the most accurate method changed with the dataset in a way that is difficult to anticipate without knowing where the discriminative information lies; in this situation, the relevant property of a method is how far it can fall from the best. On real curves, window-specific components carry information that a tuned full-curve decomposition does not represent, and the locality control indicates that this information is mainly due to localisation rather than to the diversity of the ensemble. WC-FRF exploits it more accurately than GL-FRF on most real datasets, but fails when the signal requires the full curve or an interaction captured by the global representation. GL-FRF is designed as a safe default rather than as the most accurate method on every dataset: it behaves like a tuned full-curve forest when the windows are uninformative, exploits the windows when they are informative, and had the smallest mean and maximum distance from the best method across all simulated and real settings. Its weights also indicate, for each dataset, whether and where the windows matter.

The paper is organised as follows. § 2 recalls the functional representation and FPCA-based random forests. § 3 introduces GL-FRF and WC-FRF, their algorithms and their properties. § 4 describes the experimental design, including the locality control and the competitors. § 5 reports the simulation study and § 6 the analysis of the benchmark datasets. § 7 discusses the results, their limitations and possible extensions.

Preliminaries

Functional data and penalised reconstruction

Let (Xi,Yi)(X_i, Y_i), i=1,…,ni = 1, \ldots, n, be independent pairs, where Xi∈L2(T)X_i \in L^2(\mathcal{T}) is a scalar functional predictor on a compact interval T=[a,b]\mathcal{T} = [a, b] and Yi∈C={1,…,C}Y_i \in\mathcal{C} = \{1, \ldots, C\}, C≥2C \ge2. In practice, each curve is observed on a common equally spaced grid a≤t1<⋯<tp≤ba \le t_1 < \cdots< t_p \le b, and the first step of the analysis consists in reconstructing a smooth function from the discrete observations {(citep}(Ramsay and Silverman, 2005)}. Throughout the paper, every quantity estimated from data, namely smoothing parameters, means, principal components, forests, aggregation weights and tuning parameters, is computed on a training set only; held-out curves are projected onto training-based representations and used for evaluation. For a training set DD, nDn_D denotes its size.

For a domain II, which is either the full grid or a window of it, the observations of curve ii restricted to II, xi,Ix_{i,I}, are smoothed by cubic B-splines {BIℓ}ℓ=1qI\{B_{I\ell}\}_{\ell=1}^{q_I} defined on that domain:

X^i,I(t)=∑ℓ=1qIc^i,IℓBIℓ(t),c^i,I=arg⁡min⁡c{∥xi,I−BIc∥2+λI∥D2c∥2}.(1)\widehat{X}_{i,I}(t) = \sum_{\ell=1}^{q_I} \widehat{c}_{i,I\ell} B_{I\ell}(t), \qquad\widehat{\boldsymbol{c}}_{i,I} = \mathop{\arg\min}_{\boldsymbol{c}} \left\{ \lVert x_{i,I} - B_I\boldsymbol{c} \rVert^2 + \lambda_I \lVert D_2\boldsymbol{c} \rVert^2 \right\}. \tag*{(1)}

Following the P-spline approach {(citep}(Eilers and Marx, 1996)}, the basis is large, qI=min⁡{100,∣I∣−1}q_I = \min\{100, |I| - 1\} for ∣I∣≥5|I| \ge5, and smoothness is controlled by the penalty, where BIB_I is the ∣I∣×qI|I| \times q_I matrix of basis functions evaluated at the grid points of II, with equally spaced knots, and D2D_2 is the (qI−2)×qI(q_I - 2) \times q_I second-order difference matrix of the coefficients. The smoothing parameter belongs to {10−6,10−5,…,104}\{10^{-6}, 10^{-5}, \ldots, 10^4\} and is selected on the current training set by pooled generalised cross-validation, using predictor measurements only. The resulting linear smoother is applied without modification to held-out curves, and a window with fewer than five grid points is left unsmoothed. Smoothing is repeated within all cross-fitting, model-selection and validation folds.

Functional principal components

For a training set DD and an index set I⊆{1,…,p}I \subseteq\{1,\ldots,p\}, let XD,I\mathbf{X}_{D,I} be the nD×∣I∣n_D \times|I| matrix of reconstructed functional values and μ^D,I\hat{\boldsymbol{\mu}}_{D,I} its vector of column means. On an equally spaced grid, FPCA reduces, up to a constant quadrature factor that does not affect the explained-variance ratios, to the singular value decomposition

ZD,I=XD,I−1μ^D,IT=UD,ISD,IVD,IT.(2)\mathbf{Z}_{D,I}=\mathbf{X}_{D,I}-\mathbf{1}\hat{\boldsymbol{\mu}}_{D,I}^{\mathsf{T}}=\mathbf{U}_{D,I}\mathbf{S}_{D,I}\mathbf{V}_{D,I}^{\mathsf{T}}. \tag*{(2)}

With squared singular values s12≥⋯≥sr2>0s_1^2\ge\cdots\ge s_r^2>0 and an explained-variance threshold τ∈(0,1]\tau\in(0,1], the number of retained components is

KD,I=min⁡{k≥1:∑h=1ksh2∑h=1rsh2≥τ},(3)K_{D,I}=\min\left\{k\ge1:\frac{\sum_{h=1}^{k}s_h^2}{\sum_{h=1}^{r}s_h^2}\ge\tau\right\}, \tag*{(3)}

and the vector of scores of a curve xx restricted to II is

zD,I(x)=VD,I,KT(x^I−μ^D,I)∈RKD,I,(4)\mathbf{z}_{D,I}(x)=\mathbf{V}_{D,I,K}^\mathsf{T}(\hat{\mathbf{x}}_I-\hat{\boldsymbol{\mu}}_{D,I})\in\mathbb{R}^{K_{D,I}}, \tag*{(4)}

where x^I\hat{\mathbf{x}}_I is the vector of values on II of the curve reconstructed with the smoother estimated on DD, and VD,I,K\mathbf{V}_{D,I,K} contains the first KD,IK_{D,I} right singular vectors. The thresholds used for the global and the window-specific decompositions are given in § 3.2. Test curves are centred with the training mean and projected onto the training loadings. Curves are not subject to additional amplitude standardisation.

FPCA-based functional random forests

An FPCA-based functional random forest (Maturo and Verde [29, 30]) is a random forest (Breiman [6]) trained on the score vectors zD,I(Xi)\mathbf{z}_{D,I}(X_i). In this work all forests are probability forests implemented in ranger (Wright and Ziegler [44]), grown with bootstrap sampling and the default number ⌊K⌋\lfloor\sqrt{K}\rfloor of candidate variables at each split, where KK is the number of input scores. Each forest returns a vector of estimated class probabilities

p^(x)=(P^(Y=1∣x),…,P^(Y=C∣x))T∈ΔC,ΔC={p∈[0,1]C:∑cpc=1}.(5)\hat{\mathbf{p}}(x)=\left(\widehat{P}(Y=1\mid x),\ldots,\widehat{P}(Y=C\mid x)\right)^{\mathsf{T}}\in\Delta_C,\qquad\Delta_C=\left\{\mathbf{p}\in[0,1]^C:\sum_cp_c=1\right\}. \tag*{(5)}

The choice of τ\tau plays a central role. When FPCA is used to describe the main modes of variation, thresholds of 70–80% are common, but in classification the components that separate the classes often explain a small share of the variability, because the leading components capture variation shared by all classes ([21, 30, 31]). Conversely, a high threshold on a long domain retains many weakly informative scores, which a forest with ⌊K⌋\lfloor\sqrt{K}\rfloor candidate variables at each split rarely considers, and which can degrade the sharpness of the predicted probabilities. In GL-FRF the two risks are handled differently on the full domain and on the windows, as described in § 3.

Functional random forests on window-specific components

Motivation

For W∈W={5,10,20}W\in\mathcal{W}=\{5,10,20\}, the grid is partitioned into WW contiguous windows with index sets

Ij(W)={⌊(j−1)pW⌋+1,…,⌊jpW⌋},j=1,…,W,(6)I_j(W)=\left\{\left\lfloor\frac{(j-1)p}{W}\right\rfloor+1,\ldots,\left\lfloor\frac{jp}{W}\right\rfloor\right\},\qquad j=1,\ldots,W, \tag*{(6)}

whose sizes differ by at most one when p≥Wp\ge W. Let p^0\hat{\mathbf{p}}_0 be the probability vector of a forest trained on the global scores and p^j\hat{\mathbf{p}}_j, j=1,…,Wj=1,\ldots,W, that of a forest trained only on the scores of window Ij(W)I_j(W). Two simple situations illustrate why neither the global nor the local representation should be preferred a priori. If the restriction X∣IjX|_{I_j} is independent of YY for every jj, the posterior class probabilities based on any single window equal the class prior, although the full trajectory may predict YY exactly through an interaction between windows. For instance, if Y=I(AB=1)Y = \mathbb{I}(AB = 1) with AA and BB independent Rademacher variables encoded in two different windows,

P(Y=1∣A)=P(Y=1∣B)=12,P(Y=1∣A,B)=I(AB=1),(7)P(Y = 1 \mid A) = P(Y = 1 \mid B) = \frac{1}{2}, \qquad P(Y = 1 \mid A, B) = \mathbb{I}(AB = 1), \tag*{(7)}

and every convex combination of window-specific posteriors equals the prior, whereas a classifier with access to both windows can recover YY. Conversely, when the discriminating signal is a short transient, or is located in a part of the domain where the curves vary little, a global FPCA may spread it over many components of small variance [23], which a forest considers infrequently; a window-specific FPCA can expose it among its leading components. These two situations motivate a combination in which the global forest is always retained and the local forests receive weight only when the training data support it.

Experts

For a training set DD and a number of windows WW, the global expert F0,D\mathcal{F}_{0,D} and the local experts Fj,D,W\mathcal{F}_{j,D,W}, j=1,…,Wj = 1, \ldots, W, are probability forests with B=100B = 100 trees each, trained respectively on the global and on the window-specific FPCA scores. Each window is smoothed and decomposed separately, so that no information from other parts of the domain enters a nominally local expert, and local scores are never obtained by slicing global components.

On each window, which is a short subinterval with a rapidly decaying spectrum, the local experts retain the components that reach 99% of the explained variance, τloc=0.99\tau_{\mathrm{loc}} = 0.99, and use minimum node size one. On the full domain, the threshold τ0\tau_0 and the minimum node size m0m_0 of the global expert are not fixed: they are selected from {0.80,0.90,0.95,0.99}×{1,5,10}\{0.80, 0.90, 0.95, 0.99\} \times\{1, 5, 10\} by three-fold stratified cross-validation of the multiclass Brier score on DD. Within each fold the smoother and the FPCA are refitted on the fold’s training curves, and all candidate thresholds use the same decomposition. Exact ties are broken in favour of the larger node size and then of the lower threshold, and the selected configuration is refitted on DD.

Cross-fitted level-one predictions

The training set is divided into three class-stratified folds D1D_1, D2D_2, D3D_3. For each vv, all representations and all W+1W + 1 forests are refitted on D∖DvD \setminus D_v, including the tuning of the global expert, and used to predict the curves in DvD_v, giving

p~ij,W=p^j,D∖Dv(i),W(Xi),i∈D, j=0,…,W,(8)\widetilde{p}_{ij,W} = \widehat{p}_{j,D\setminus D_{v(i)},W}(X_i), \qquad i \in D,\ j = 0,\ldots,W, \tag*{(8)}

where v(i)v(i) is the fold containing ii. All experts share the fold assignment, so that no prediction p~ij,W\widetilde{p}_{ij,W} uses observation ii. These out-of-fold predictions are used only to estimate the aggregation weights; the experts used for prediction are then refitted on the whole of DD.

Penalised convex aggregation

Let aW=(a0,…,aW)T∈ΔW+1a_W = (a_0,\ldots,a_W)^\mathsf{T} \in\Delta_{W+1} and let η(aW)=1−a0=∑j=1Waj\eta(a_W) = 1 - a_0 = \sum_{j=1}^{W} a_j denote the total local weight. The aggregated prediction is

p^GL,W(x;aW)=∑j=0Wajp^j(x)=(1−η)p^0(x)+η∑j=1Wwjp^j(x),wj=aj/η(η>0).(9)\widehat{p}_{\mathrm{GL},W}(x;a_W) = \sum_{j=0}^{W} a_j\widehat{p}_j(x) = (1-\eta)\widehat{p}_0(x) + \eta\sum_{j=1}^{W} w_j\widehat{p}_j(x), \qquad w_j = a_j/\eta\quad(\eta> 0). \tag*{(9)}

With eie_i the one-hot vector of YiY_i, the cross-fitted multiclass Brier loss is

L^D(aW)=1nD∑i∈D∥ei−∑j=0Wajp~ij,W∥22,(10)\widehat{L}_D(a_W) = \frac{1}{n_D}\sum_{i\in D}\left\|e_i-\sum_{j=0}^{W}a_j\widetilde{p}_{ij,W}\right\|_2^2, \tag*{(10)}

and the penalty is

ΩW(aW;λG,λL)=λGη(aW)2+λL∑j=1W(aj−η(aW)W)2,λG,λL≥0.(11)\Omega_W(a_W;\lambda_G,\lambda_L)=\lambda_G\eta(a_W)^2+\lambda_L\sum_{j=1}^{W}\left(a_j-\frac{\eta(a_W)}{W}\right)^2,\qquad\lambda_G,\lambda_L\ge0. \tag*{(11)}

The first term shrinks the aggregate towards the global forest, while the second shrinks the local weights towards equality without fixing them. The weights are

a^W(λG,λL)=arg⁡min⁡aW∈ΔW+1{L^D(aW)+ΩW(aW;λG,λL)},(12)\widehat{a}_W(\lambda_G,\lambda_L)=\underset{a_W\in\Delta_{W+1}}{\arg\min}\left\{\widehat{L}_D(a_W)+\Omega_W(a_W;\lambda_G,\lambda_L)\right\}, \tag*{(12)}

which is a convex quadratic programme with linear constraints, solved by projected gradient descent (§ 3.8). A new curve is assigned to arg max⁡c[p^GL,W(x;a^W)]c\operatorname{arg\,max}_c[\widehat{p}_{\mathrm{GL},W}(x;\widehat{a}_W)]_c, with ties broken by the first class in a fixed ordering. Because the weights are constant across test curves, GL-FRF is a global stacking rule and not a dynamic, query-specific selector [8]. The unweighted Brier loss is preferred to a class-balanced version so that the fitted probabilities refer to the class distribution of the training population; balanced accuracy is reported alongside it because several datasets are imbalanced.

When λG=λL=0\lambda_G=\lambda_L=0, problem (12) reduces to the unpenalised simplex stack of the same experts, which we denote Stack-0. Since λG=λL=0\lambda_G=\lambda_L=0 belongs to the grid of Section 3.6, GL-FRF includes Stack-0 as a special case, and the comparison between the two quantifies what the penalties add to cross-fitted convex stacking.

Window-concatenated functional random forest

WC-FRF uses the same window-specific representation as the local experts of GL-FRF, but combines it before the forest rather than after it. For a training set DD and WW windows, the score vectors of all windows are concatenated,

zD,WWC(x)=(zD,I1(W)(x)T,…,zD,IW(W)(x)T)T∈RKW,KW=∑j=1WKD,Ij(W),(13)z^{\mathrm{WC}}_{D,W}(x)=\left(z_{D,I_1(W)}(x)^{\mathsf{T}},\ldots,z_{D,I_W(W)}(x)^{\mathsf{T}}\right)^{\mathsf{T}}\in\mathbb{R}^{K_W},\qquad K_W=\sum_{j=1}^{W}K_{D,I_j(W)}, \tag*{(13)}

where each window is smoothed by (1) with its own smoothing parameter and decomposed with τloc=0.99\tau_{\mathrm{loc}}=0.99, exactly as in § 3.2. A single probability forest with 100(W+1)100(W+1) trees, the total number of trees of GL-FRF, is trained on zD,WWCz^{\mathrm{WC}}_{D,W}. The number of candidate variables at each split is chosen from {⌊KW⌋,⌊KW/5⌋,⌊KW/3⌋,⌊KW/2⌋}\{\lfloor\sqrt{K_W}\rfloor,\lfloor K_W/5\rfloor,\lfloor K_W/3\rfloor,\lfloor K_W/2\rfloor\} and the minimum node size from {1,5}\{1,5\} by the out-of-bag Brier score on DD, because the default value ⌊KW⌋\lfloor\sqrt{K_W}\rfloor is small when many windows are concatenated and the number of candidate variables is among the hyperparameters that most affect random forests [38]. In this study WC-FRF uses the number of windows W^\widehat{W} selected for GL-FRF by the nested procedure of Section 3.6.

The two methods have complementary properties. WC-FRF can split on the scores of different windows within the same tree, and can therefore represent interactions between windows that a convex combination of window-specific posteriors cannot, but it does not include the full-curve representation, so that information spread over the domain must be reconstructed from local components. GL-FRF retains the full-curve forest and can reduce to it exactly (Property 1 below), and its weights summarise the contribution of each window, but each local expert sees one window only and interactions between windows are available only through the global expert.

Selection of WW, λG\lambda_G and λL\lambda_L

The grids are W={5,10,20}\mathcal{W}=\{5,10,20\} and ΛG=ΛL={0,10−3,10−2,10−1,1}\Lambda_G=\Lambda_L=\{0,10^{-3},10^{-2},10^{-1},1\}. Selection uses nested cross-validation within the training data. The training set is split into three stratified inner folds; for each configuration and inner fold, the whole method (representations, tuning of the Algorithm 1 GL-FRF: fitting on a training set and prediction of test curves

  1. function FitExperts(DD, WW)

  2. Select (τ^0,m^0)(\hat{\tau}_0, \hat{m}_0) by three-fold stratified CV of the Brier score on DD, refitting the smoother and the FPCA on the training part of each fold

  3. Global domain: select λ\lambda by GCV on DD, smooth the curves of DD by (1), fit FPCA with τ^0\hat{\tau}_0 and a forest with BB trees and node size m^0\hat{m}_0

  4. for j=1,…,Wj = 1, \ldots, W do

  5. Window Ij(W)I_j(W): smooth by (1) with its own GCV; fit FPCA with τloc=0.99\tau_{\mathrm{loc}} = 0.99 and a forest with BB trees and node size one

  6. end for

  7. return smoothers, FPCA means and loadings, forests

  8. end function

  9. function CrossFit(DD, WW)

  10. Split DD into three stratified folds D1,D2,D3D_1,D_2,D_3

  11. for v=1,2,3v = 1,2,3 do

  12. E←\mathcal{E} \leftarrow FitExperts(D∖Dv,W)(D \setminus D_v,W); store the predictions p~ij,W\tilde{p}_{ij,W} of E\mathcal{E} for i∈Dvi \in D_v

  13. end for

  14. return {p~ij,W}\{\tilde{p}_{ij,W}\}

  15. end function

Require: training set DtrD_{\mathrm{tr}} with at least 12 curves per class, test curves DteD_{\mathrm{te}}, W\mathcal{W}, ΛG\Lambda_G, ΛL\Lambda_L, B=100B = 100

  1. Split DtrD_{\mathrm{tr}} into three stratified inner folds V1,V2,V3V_1,V_2,V_3

  2. for W∈WW \in\mathcal{W} and v=1,2,3v = 1,2,3 do

  3. P~←\tilde{P} \leftarrow CrossFit(Dtr∖Vv,W)(D_{\mathrm{tr}} \setminus V_v,W); E←\mathcal{E} \leftarrow FitExperts(Dtr∖Vv,W)(D_{\mathrm{tr}} \setminus V_v,W)

  4. for (λG,λL)∈ΛG×ΛL(\lambda_G,\lambda_L) \in\Lambda_G \times\Lambda_L do

  5. Solve (12) with P~\tilde{P}; record the Brier loss of (9) on VvV_v using E\mathcal{E}

  6. end for

  7. end for

  8. Select (W^,λ^G,λ^L)(\widehat{W},\hat{\lambda}_G,\hat{\lambda}_L) by the mean inner loss

  9. P~←\tilde{P} \leftarrow CrossFit(Dtr,W^)(D_{\mathrm{tr}},\widehat{W}); solve (12) to obtain a^\hat{a}

  10. E←\mathcal{E} \leftarrow FitExperts(Dtr,W^)(D_{\mathrm{tr}},\widehat{W})

  11. For each x∈Dtex \in D_{\mathrm{te}}: apply the training smoothers and loadings, compute the expert probabilities with E\mathcal{E} and return p^GL,W^(x;a^)\hat{p}_{\mathrm{GL},\widehat{W}}(x;\hat{a})

global expert, experts, a separate three-fold cross-fitting layer, and weights) is fitted on the inner training part, and its Brier loss is computed on the inner validation part. The configuration with the smallest mean inner loss is selected, with exact ties broken in favour of fewer windows, then larger λG\lambda_G, then larger λL\lambda_L. The method is then refitted on the full training set. The nested design requires every class to contain at least 3×(3+1)=123 \times(3 + 1) = 12 training curves, so that each inner training part can itself be cross-fitted without losing a class; datasets that do not meet this condition are excluded and reported.

Algorithm

Algorithm 1 summarises the complete procedure. The function FitExperts is called at every level of the nested scheme, so that smoothing, FPCA, tuning of the global expert and forests are always estimated on the curves available at that level.

Properties

The following properties follow directly from the construction and clarify what the procedure guarantees and what it does not.

Property 1 (admissibility and exact fallback). For every aW∈ΔW+1a_W \in\Delta_{W+1}, p^GL,W(x;aW)∈ΔC\widehat{p}_{\mathrm{GL},W}(x; a_W) \in\Delta_C, and the vertex aW=(1,0,…,0)Ta_W = (1,0,\ldots,0)^\mathsf{T} reproduces the tuned global expert exactly.

Property 2 (cross-fitted loss). For fixed WW and λG,λL≥0\lambda_G,\lambda_L \ge0, since ΩW≥0\Omega_W \ge0 and ΩW\Omega_W vanishes at the global vertex,

L^D(aW)≤L^D(aW)+ΩW(aW;λG,λL)≤L^D((1,0,…,0)T).(14)\widehat{L}_D(a_W) \le\widehat{L}_D(a_W) + \Omega_W(a_W; \lambda_G,\lambda_L) \le\widehat{L}_D((1,0,\ldots,0)^\mathsf{T}). \tag*{(14)}

The inequality concerns the out-of-fold predictions used to estimate the weights. It does not imply a lower Brier score, or a lower error rate, on new observations.

Property 3 (sufficient condition for the global solution). Let ri=ei−p~i0,Wr_i = e_i - \widetilde{p}_{i0,W} and uij=p~ij,W−p~i0,Wu_{ij} = \widetilde{p}_{ij,W} - \widetilde{p}_{i0,W}. If

∑i∈DriTuij≤0for all j=1,…,W,(15)\sum_{i \in D} r_i^\mathsf{T} u_{ij} \le0 \quad\text{for all } j = 1,\ldots,W, \tag*{(15)}

the global vertex minimises (12) for all λG,λL≥0\lambda_G,\lambda_L \ge0. Indeed, at the vertex the directional derivative of L^D\widehat{L}_D along the edge towards expert jj equals −2nD−1∑iriTuij≥0-2n_D^{-1}\sum_i r_i^\mathsf{T}u_{ij} \ge0, both penalty terms have zero derivative, every feasible direction is a nonnegative combination of edge directions, and convexity gives global optimality. The condition is sufficient but not necessary, and sampling variability can produce positive local weights even when the local experts carry no information in the population.

Property 4 (uniqueness). Writing aj=η/W+dja_j = \eta/W + d_j with ∑jdj=0\sum_j d_j = 0, the penalty becomes λGη2+λL∑jdj2\lambda_G\eta^2 + \lambda_L\sum_j d_j^2, which is positive definite in (η,d)(\eta,d), on the subspace ∑jdj=0\sum_j d_j = 0, when λG,λL>0\lambda_G,\lambda_L > 0. The objective is then strictly convex on the simplex and its minimiser is unique. With λG=λL=0\lambda_G = \lambda_L = 0 the minimiser need not be unique when expert predictions are collinear.

Optimisation. Eliminating a0=1−∑j≥1aja_0 = 1 - \sum_{j \ge1} a_j, problem (12) becomes the minimisation over aL=(a1,…,aW)Ta_L = (a_1,\ldots,a_W)^\mathsf{T}, with aL≥0a_L \ge0 and 1TaL≤1\mathbf{1}^\mathsf{T}a_L \le1, of

f(aL)=aLTGaL−2bTaL,G=MTMnD+λG11T+λL(I−11TW),b=MTρnD,(16)f(a_L) = a_L^\mathsf{T} G a_L - 2b^\mathsf{T}a_L,\quad G = \frac{M^\mathsf{T}M}{n_D} + \lambda_G\mathbf{1}\mathbf{1}^\mathsf{T} + \lambda_L\left(I - \frac{\mathbf{1}\mathbf{1}^\mathsf{T}}{W}\right),\quad b = \frac{M^\mathsf{T}\rho}{n_D}, \tag*{(16)}

up to a constant, where the jjth column of MM stacks the vectors uiju_{ij} of Property 3 over i∈Di \in D and ρ\rho stacks the residuals rir_i. The penalty terms follow from η2=aLT11TaL\eta^2 = a_L^\mathsf{T}\mathbf{1}\mathbf{1}^\mathsf{T}a_L and ∑j(aj−η/W)2=aLT(I−11T/W)aL\sum_j(a_j-\eta/W)^2 = a_L^\mathsf{T}(I-\mathbf{1}\mathbf{1}^\mathsf{T}/W)a_L. The implementation uses projected gradient descent with step 1/L1/L, L=2λmax⁡(G)L = 2\lambda_{\max}(G), and exact Euclidean projection onto {aL≥0, 1TaL≤1}\{a_L \ge0,\ \mathbf{1}^\mathsf{T}a_L \le1\}. Iterations stop when the largest coordinate change is below 10−910^{-9} or after 12,000 iterations, and convergence is recorded for every fit. The projection allows exact zero weights and therefore the exact global solution.

Computational cost. Each call of FitExperts fits W+1W+1 forests and, for the global expert, 36 additional 100-tree forests for the 4×34 \times3 tuning grid and three folds; the final fit calls it four times, and the nested selection multiplies this by the number of candidate window counts and inner folds. Tuning results are reused when the same training set recurs across window counts. Computing times are reported in § 6.

Experimental design

Locality control

A stack of W+1W+1 forests trained on different representations may outperform a single forest for two different reasons. The windows may expose localised information that the global decomposition does not represent well, or the additional forests may simply make partially independent errors, so that averaging reduces variance, as in ensembles of diverse functional representations [40, 41]. Only the first explanation supports the use of temporal windows.

To separate the two explanations, we define a locality control, denoted Scr-stack. For a given WW, the grid indices are randomly permuted and split into WW non-contiguous sets with the same sizes as the windows in (6). Each set is extracted from the globally smoothed training curves, decomposed by FPCA with τloc=0.99\tau_{\mathrm{loc}} = 0.99 and used to train a forest with 100 trees. The global expert, the cross-fitting folds and the penalised aggregation are exactly those of GL-FRF, and the values (W^,λ^G,λ^L)(\widehat{W}, \widehat{\lambda}_{G}, \widehat{\lambda}_{L}) selected for GL-FRF are used without a further nested selection. Scr-stack therefore has the same number of experts, the same number of grid points per expert and the same hyperparameters as GL-FRF, but its local experts carry no temporal locality. Using the hyperparameters of GL-FRF makes the comparison sharper and reduces the computational cost by an order of magnitude. The two stacks differ in the partition of the grid and also in the reconstruction of the curves, because a non-contiguous set of grid points cannot be smoothed as a function and Scr-stack therefore uses the globally smoothed curves, whereas each window of GL-FRF is smoothed separately. If GL-FRF and Scr-stack perform similarly, the gains of GL-FRF are attributable to ensemble diversity rather than to locality; if GL-FRF is clearly better, the result supports locality, although part of the difference may be due to the window-specific smoothing.

Competing methods

The two proposed methods, GL-FRF and WC-FRF, are compared with each other and with the following methods, all fitted on the same training data. Methods that depend on windows use the number of windows W^\widehat{W} selected for GL-FRF.

  • Ablations of the proposed methods. Stack-0 is GL-FRF without penalties (λG=λL=0\lambda_{G} = \lambda_{L} = 0); WC-0 is WC-FRF with the default number of candidate variables and minimum node size one; Scr-stack is the locality control of § 4.1; L-eq is the equal-weight soft vote of the local experts.

  • Global forests. These are FPCA-based functional random forests on the full curve, as in Maturo and Verde [29, 30], and represent the standard against which the window-specific representation is assessed. G-tuned is the tuned global expert of GL-FRF used alone (100 trees); G-tuned-bud is the same configuration refitted with 100(W^+1)100(\widehat{W} + 1) trees, the total number of trees of GL-FRF and WC-FRF; G-99 is an untuned global forest with τ0=0.99\tau_{0} = 0.99, minimum node size one and 100 trees, which shows the effect of tuning the global representation.

  • Random-interval forests. IF-mean and IF-TSF consist of 20 groups of 25 trees; each group uses ⌊p⌋\lfloor\sqrt{p}\rfloor random intervals of length at least three. IF-mean uses the interval means, as in the functional random forest of Möller et al. [34], and IF-TSF uses the mean, standard deviation and slope of each interval, as in the time series forest Deng et al. [12].

  • Functional nearest neighbours. FkNN classifies a curve by the class proportions among its kk nearest training curves in the L2L^{2} distance between globally smoothed curves, with k∈{1,3,5,7,9,11,15,21}k \in\{1, 3, 5, 7, 9, 11, 15, 21\} selected by the leave-one-out Brier score.

The comparison with G-tuned and G-tuned-bud measures what the window-specific representation adds to a tuned full-curve forest; the comparison of GL-FRF with Scr-stack measures what temporal locality adds to representation diversity; the comparison between GL-FRF and WC-FRF contrasts late and early fusion of the same representation; the interval forests and FkNN place both methods among established alternatives. The deep and dictionary-based classifiers of the time series literature [33] are not included, because the aim of the study is

ScenarioClass signal si(t)s_i(t)Expected behaviour
S1 Globalzi{0.75sin⁡(2πt)+0.5cos⁡(4πt)}z_i\{0.75\sin(2\pi t)+0.5\cos(4\pi t)\}global signal
S2 LocalEarly1.3zi ϕ(t;0.16,0.035)1.3z_i\ \phi(t;0.16,0.035)early transient
S3 LocalLate1.3zi ϕ(t;0.83,0.035)1.3z_i\ \phi(t;0.83,0.035)late transient
S4 OppositePatches1.1zi{ϕ(t;0.20,0.028)−ϕ(t;0.77,0.028)}1.1z_i\{\phi(t;0.20,0.028)-\phi(t;0.77,0.028)\}two opposite transients
S5 CrossWindowXOR1.45{Ai ϕ(t;0.19,0.04)+Bi ϕ(t;0.82,0.04)}1.45\{A_i\ \phi(t;0.19,0.04)+B_i\ \phi(t;0.82,0.04)\}cross-window interaction
S6 Null00no signal
S7 MixedLocalGlobalzi{0.38sin⁡(2πt)+0.8ϕ(t;0.17,0.03)−0.7ϕ(t;0.78,0.05)}z_i\{0.38\sin(2\pi t)+0.8\phi(t;0.17,0.03)-0.7\phi(t;0.78,0.05)\}mixed
S8 ImbalancedLocal0.85zi ϕ(t;0.20,0.06)0.85z_i\ \phi(t;0.20,0.06), P(zi=1)=0.18P(z_i=1)=0.18imbalanced transient
S9 WeakTransient0.55zi ϕ(t;0.62,0.018)0.55z_i\ \phi(t;0.62,0.018)weak, short transient
S10 LowVarianceLocal0.70zi ϕ(t;0.82,0.03)0.70z_i\ \phi(t;0.82,0.03) + nuisance on [0,0.6][0,0.6]signal in low-variance region
S11 PhaseShiftαi ϕ(t;ci,0.04)\alpha_i\ \phi(t;c_i,0.04), ci=0.45+0.05I(zi=1)+δic_i=0.45+0.05I(z_i=1)+\delta_iphase variation
S12 DistributedTransients0.5zi{ϕ(t;0.15,0.02)−ϕ(t;0.50,0.02)+ϕ(t;0.85,0.02)}0.5z_i\{\phi(t;0.15,0.02)-\phi(t;0.50,0.02)+\phi(t;0.85,0.02)\}several weak transients

caption: Class signals of the simulated scenarios in model (17). Further details are given in § 5.1.

:::

to assess functional representation strategies within FPCA-based forests rather than to compete with state-of-the-art time series classifiers.

Evaluation criteria

The primary criterion is the held-out multiclass Brier score, nte−1∑i∥ei−p^(Xi)∥22n_{\mathrm{te}}^{-1}\sum_i\lVert e_i-\widehat{p}(X_i)\rVert_2^2, a strictly proper scoring rule [16] ranging from 0 to 2; an uninformative prediction (0.5,0.5)(0.5,0.5) gives 0.5 for two balanced classes. Secondary criteria are balanced accuracy, accuracy, macro-F1 and log loss. For every scenario or dataset and every method we compute the paired difference with GL-FRF within each replicate or split (method minus GL-FRF), so that positive differences favour GL-FRF, and the paired difference between WC-FRF and GL-FRF is reported separately. To summarise performance across heterogeneous settings, we also compute, for each scenario or dataset, the excess of each method’s mean Brier score over the best of the twelve methods. The selected number of windows, the weight a^0\widehat{a}_0 of the global expert, the selected threshold of the global expert, the convergence of the weight optimisation and the computing time are also recorded.

Simulation study

Simulation design

The simulation study is designed to assess GL-FRF under controlled conditions in which the location, extent, interaction structure and phase of the discriminative signal are known. Each replicate generates n=440n=440 curves on p=240p=240 equally spaced points in [0,1][0,1], the first 240 forming the training set and the remaining 200 the test set. In all scenarios the curves share the nuisance structure

xi(t)=u1isin⁡(2πt)+u2icos⁡(4πt)+0.7εi(t)+si(t),(17)x_i(t)=u_{1i}\sin(2\pi t)+u_{2i}\cos(4\pi t)+0.7\varepsilon_i(t)+s_i(t), \tag*{(17)}

where εi\varepsilon_i is a stationary Gaussian AR(1) process on the grid with unit variance and lag-one autocorrelation 0.6, and si(t)s_i(t) is the class signal. Unless otherwise stated, u1i∼N(0,1.42)u_{1i}\sim N(0,1.4^2) and u2i∼N(0,0.92)u_{2i}\sim N(0,0.9^2), the two classes are balanced (in Scenario 5, in expectation), zi=±1z_i=\pm1 denotes the class, and ϕ(t;μ,σ)=exp⁡{−(t−μ)2/(2σ2)}\phi(t;\mu,\sigma)=\exp\{-(t-\mu)^2/(2\sigma^2)\}. Each scenario is replicated R=20R=20 times with replicate-specific seeds, and all methods receive identical data within a replicate. Table 1 summarises the class signals and Figure 1 shows training curves from the first replicate of each scenario.

Scenario 1, global signal. The class signal lies in the span of the two nuisance functions, so that discrimination requires combining information from the whole domain and the signal is partly aligned with the largest source of nuisance variability.

Scenarios 2–4, short transients. In Scenarios 2 and 3 the classes differ by a single Gaussian bump with standard deviation 0.035, located early or late in the domain; in Scenario 4 the classes differ by two bumps of opposite sign. These scenarios were designed to favour local representations, since each bump lies essentially within an interval of width four standard deviations, that is, less than 15% of the domain.

Scenario 5, cross-window interaction. Two bumps with independent Rademacher amplitudes AiA_i and BiB_i are located in distant parts of the domain, and YiY_i is determined by AiBiA_iB_i as in (7). The class means coincide and every window is marginally uninformative, so that local voting cannot succeed while a classifier with access to both parts of the domain can.

Scenario 6, null. No class signal is present; this scenario assesses whether the aggregation assigns weight to uninformative experts.

Scenarios 7 and 8, mixed and imbalanced signals. In these two scenarios u1i∼N(0,1.32)u_{1i} \sim N(0, 1.3^2) and u2i∼N(0,1)u_{2i} \sim N(0, 1). Scenario 7 combines a weak global component with two local bumps of different width and sign. Scenario 8 has a single moderately wide bump, an additional independent white noise with standard deviation 0.2 and an imbalanced design with P(zi=1)=0.18P(z_i = 1) = 0.18.

Scenario 9, weak short transient. The classes differ by a bump of amplitude 0.55 and standard deviation 0.018 at t=0.62t = 0.62. With respect to Scenarios 2 and 3, the signal is weaker and shorter, so that a tuned global forest is not expected to separate the classes almost perfectly.

Scenario 10, signal in a low-variance region. Additional nuisance variability

∑m=16vimsin⁡(mπt/0.6)I(t≤0.6),\sum_{m=1}^{6} v_{im}\sin(m\pi t/0.6)\mathbb{I}(t \le0.6),

with vim∼N(0,1.52)v_{im} \sim N(0, 1.5^2), is confined to the first 60% of the domain, and the class signal is a bump at t=0.82t = 0.82. A global FPCA truncated at a moderate threshold is dominated by the high-variance region, which is the situation that motivates multiscale FPCA (Lin and Zhu [23]).

Scenario 11, phase variation. All curves contain a bump of standard deviation 0.04 with amplitude αi=1.2(1+0.15ξi)\alpha_i = 1.2(1 + 0.15\xi_i), ξi∼N(0,1)\xi_i \sim N(0, 1); its location is 0.45 in one class and 0.50 in the other, with a curve-specific jitter δi∼N(0,0.0152)\delta_i \sim N(0, 0.015^2). The classes therefore differ in phase rather than in amplitude, a situation in which FPCA is known to be inefficient (Marron et al. [25]).

Scenario 12, distributed weak transients. The classes differ by three weak, short bumps with alternating signs spread over the domain, so that the discriminative information is local but not confined to a single window.

Results

Tables 2 and 3 report the mean Brier score and balanced accuracy of all methods, Table 4 the paired differences with GL-FRF and their Monte Carlo standard errors, Figures 2 and 3 the distributions of the held-out Brier score, and Figure 4 the mean paired differences for all competitors. The projected gradient algorithm converged in all fits, and no local smoothing parameter was selected on the boundary of its grid.

Simulated training datasets for the twelve scenarios

Figure 1. Simulated training datasets for the twelve scenarios (first replicate). Each panel displays 25 training curves per group, with colours indicating the outcome group.

Tuning of the global expert. Internal cross-validation selected a threshold of 80% or 90% for the global expert in every replicate of the scenarios with a localised signal, except Scenario 10, retaining on average between 3.5 and 19.1 components, against 49 to 65 components at 99%. In Scenario 10, in which the class signal lies in the low-variance part of the domain, the 99% threshold was selected in 18 of 20 replicates. The effect of tuning is large: in the eleven scenarios with a class signal, the untuned global forest G-99 had a mean Brier score between 0.010 (Scenario 10) and 0.206 (Scenario 5) higher than the tuned global expert. In other words, a moderate truncation of the global FPCA, chosen by cross-validation, already separates short transients and cross-window interactions that a 99% truncation dilutes.

Contribution of the local experts. In ten of the twelve scenarios the median weight of the global expert was at least 0.998 (Figure 11), and a^0≥0.999\hat{a}_0 \ge0.999 in every replicate of Scenarios 2–5, 7, 8 and 10, in 95% of the replicates of Scenario 12, in 65% of those of Scenario 11 and in 45% of those of Scenario 9. In these scenarios GL-FRF and G-tuned differed by less than 0.001 in mean Brier score, and G-tuned-bud, which uses 100(W^+1)100(\widehat{W}+1) trees, was lower than GL-FRF by at most 0.0033 (Scenario 11), an effect of the larger number of trees. The local experts received substantial weight only in Scenario 1, with median a^0=0.37\hat{a}_0 = 0.37, where GL-FRF reduced the Brier score of G-tuned by 0.0167 (MCSE 0.0035) and that of G-tuned-bud by 0.0137 (0.0033), and in the null Scenario 6, with median a^0=0.38\hat{a}_0 = 0.38. In the latter case GL-FRF was lower than G-tuned by 0.011 (0.004), but its balanced accuracy remained at chance level, so the reduction reflects the averaging of uninformative probability vectors and not discriminative information.

Weight of the global expert in GL-FRF

Figure 11. Weight a^0\hat{a}_0 assigned to the tuned global expert by GL-FRF, over the replicates of each simulated scenario and the splits of each UCR dataset. Violin: distribution; box: interquartile range; line: median; white diamond: mean.

Scenarios 9–12 were designed to create conditions in which the windows should help, namely a weak and short transient, a signal in a low-variance region, a phase shift and several distributed transients. They did not: the tuned global forest reached balanced accuracies of 0.85, 0.90, 0.83 and 0.95, respectively, and every method relying only on local or interval information was markedly worse, with a Brier score higher than GL-FRF by 0.10 to 0.16 for WC-FRF and by 0.09 to 0.23 for IF-TSF (Table 4). Within the range of signals considered, a smoothed global FPCA with a selected threshold represents a localised difference among a moderate number of components, and the window-specific experts add nothing that the stack can use.

ScenarioWC-FRFG-tunedG-tuned-budStack-0Scr-stackIF-TSFFkNN
S1 Global-0.0074 (0.0025)0.0167 (0.0035)0.0137 (0.0033)0.0022 (0.0011)0.0082 (0.0022)-0.0134 (0.0034)-0.0077 (0.0037)
S2 LocalEarly0.1323 (0.0036)0.0000 (0.0000)-0.0001 (0.0003)0.0000 (0.0000)0.0000 (0.0000)0.1651 (0.0031)0.0478 (0.0038)
S3 LocalLate0.1102 (0.0049)0.0000 (0.0000)-0.0007 (0.0005)0.0000 (0.0000)0.0000 (0.0000)0.0635 (0.0033)0.0445 (0.0050)
S4 OppositePatches0.0843 (0.0098)-0.0000 (0.0000)-0.0004 (0.0005)0.0000 (0.0000)0.0000 (0.0000)0.1352 (0.0043)0.0577 (0.0050)
S5 CrossWindowXOR0.4138 (0.0115)0.0000 (0.0000)-0.0022 (0.0010)0.0000 (0.0000)0.0000 (0.0000)0.2953 (0.0117)0.0401 (0.0137)
S6 Null-0.0027 (0.0016)0.0113 (0.0041)0.0064 (0.0046)0.0005 (0.0020)-0.0011 (0.0013)0.0089 (0.0036)0.0213 (0.0033)
S7 MixedLocalGlobal0.1220 (0.0081)0.0000 (0.0000)-0.0020 (0.0017)0.0000 (0.0000)0.0000 (0.0000)0.1266 (0.0041)0.0853 (0.0057)
S8 ImbalancedLocal0.1446 (0.0070)0.0000 (0.0000)-0.0006 (0.0010)0.0000 (0.0000)0.0000 (0.0000)0.1265 (0.0055)0.1357 (0.0090)
S9 WeakTransient0.1125 (0.0090)-0.0008 (0.0005)-0.0012 (0.0014)0.0009 (0.0004)0.0016 (0.0011)0.1540 (0.0055)0.1937 (0.0061)
S10 LowVarianceLocal0.0967 (0.0098)0.0000 (0.0000)-0.0023 (0.0020)0.0000 (0.0000)0.0002 (0.0001)0.0947 (0.0077)0.2847 (0.0081)
S11 PhaseShift0.1165 (0.0051)-0.0003 (0.0002)-0.0033 (0.0011)0.0012 (0.0006)-0.0006 (0.0005)0.1664 (0.0046)0.1816 (0.0054)
S12 DistributedTransients0.1624 (0.0065)-0.0000 (0.0000)-0.0016 (0.0010)0.0000 (0.0000)0.0000 (0.0000)0.2310 (0.0055)0.2248 (0.0061)

Table 4. Simulation study: mean paired difference in held-out Brier score (competitor minus GL-FRF) with its Monte Carlo standard error in parentheses. Positive values favour GL-FRF.

Locality control. Since the local experts received almost no weight, GL-FRF and Scr-stack coincided in Scenarios 2–5, 7, 8 and 12 and differed by less than 0.002 in Scenarios 9–11. The only scenario in which the two stacks differed was Scenario 1, where the contiguous windows were better than the scrambled partitions by 0.0082 (0.0022). The simulation therefore provides no evidence on the locality question beyond this scenario, a point taken up with the real data.

WC-FRF and the other competitors. Methods based only on window-specific scores or intervals failed where expected and also where they were not expected to fail. Under the cross-window interaction of Scenario 5, WC-0 and WC-FRF had Brier scores of 0.498 and 0.493, close to the value of a constant prediction, against 0.079 for GL-FRF: although WC-FRF can in principle split on two windows within the same tree, this is consistent with the known difficulty of greedy recursive partitioning with pure interactions, in which no single variable offers an informative first split. The local equal vote was at chance level in Scenarios 5 and 8 and among the two worst methods in every scenario with a localised signal. In Scenarios 2–4 and 7–12, WC-FRF, IF-mean and IF-TSF were worse than GL-FRF by 0.06 to 0.28, because the tuned full-curve forest, which they do not include, was already close to the best method. The exception is Scenario 1, in which IF-TSF, WC-FRF and FkNN had lower Brier scores than GL-FRF, by 0.0134 (0.0034), 0.0074 (0.0025) and 0.0077 (0.0037). Tuning the forest of WC-FRF reduced the Brier score of WC-0 in ten of the twelve scenarios. The penalties of GL-FRF made almost no difference: the mean Brier scores of GL-FRF and Stack-0 differed by at most 0.0022, in Scenario 1.

Held-out Brier score boxplots for Scenarios 1–6, with panels S1 Global, S2 LocalEarly, S3 LocalLate, S4 OppositePatches, S5 CrossWindowXOR, and S6 Null

Figure 2. Held-out Brier score of all methods in Scenarios 1–6 over 20 independent replicates. Methods are ordered by median; the white diamond indicates the mean. Vertical scales differ across panels. White diamond = mean; distributions over independent replicates.

Held-out Brier score boxplots for Scenarios 7–12, with panels S7 MixedLocalGlobal, S8 ImbalancedLocal, S9 WeakTransient, S10 LowVarianceLocal, S11 PhaseShift, and S12 DistributedTransients

Figure 3. Held-out Brier score of all methods in Scenarios 7–12 over 20 independent replicates. Methods are ordered by median; the white diamond indicates the mean. Vertical scales differ across panels. White diamond = mean; distributions over independent replicates.

ScenarioGL-FRFWC-FRFStack-0WC-0Scr-stackG-tunedG-tuned-budG-99L-eqIF-meanIF-TSFFkNN
S1 Global0.323 (0.034)0.316 (0.036)0.325 (0.034)0.315 (0.035)0.331 (0.032)0.340 (0.038)0.337 (0.038)0.396 (0.019)0.347 (0.026)0.318 (0.037)0.310 (0.037)0.315 (0.038)
S2 LocalEarly0.008 (0.003)0.141 (0.015)0.008 (0.003)0.231 (0.023)0.008 (0.003)0.008 (0.003)0.008 (0.004)0.122 (0.015)0.419 (0.029)0.211 (0.025)0.173 (0.014)0.056 (0.017)
S3 LocalLate0.018 (0.012)0.128 (0.020)0.018 (0.012)0.214 (0.019)0.018 (0.012)0.018 (0.012)0.017 (0.011)0.123 (0.013)0.415 (0.031)0.137 (0.022)0.082 (0.012)0.063 (0.021)
S4 OppositePatches0.023 (0.014)0.107 (0.046)0.023 (0.014)0.157 (0.042)0.023 (0.014)0.023 (0.014)0.022 (0.014)0.129 (0.012)0.356 (0.074)0.272 (0.025)0.158 (0.016)0.081 (0.023)
S5 CrossWindowXOR0.079 (0.040)0.493 (0.020)0.079 (0.040)0.498 (0.014)0.079 (0.040)0.079 (0.040)0.077 (0.038)0.285 (0.044)0.508 (0.009)0.325 (0.020)0.375 (0.023)0.119 (0.038)
S6 Null0.517 (0.010)0.514 (0.009)0.517 (0.010)0.514 (0.008)0.516 (0.011)0.528 (0.021)0.523 (0.023)0.517 (0.011)0.509 (0.008)0.543 (0.020)0.526 (0.017)0.538 (0.015)
S7 MixedLocalGlobal0.093 (0.019)0.215 (0.039)0.093 (0.019)0.262 (0.028)0.093 (0.019)0.093 (0.019)0.091 (0.019)0.209 (0.020)0.360 (0.042)0.270 (0.026)0.219 (0.020)0.178 (0.026)
S8 ImbalancedLocal0.043 (0.015)0.187 (0.028)0.043 (0.015)0.211 (0.026)0.043 (0.015)0.043 (0.015)0.042 (0.015)0.086 (0.014)0.264 (0.032)0.164 (0.024)0.169 (0.023)0.179 (0.035)
S9 WeakTransient0.250 (0.024)0.363 (0.031)0.251 (0.024)0.417 (0.023)0.252 (0.025)0.250 (0.024)0.249 (0.023)0.318 (0.022)0.483 (0.016)0.439 (0.029)0.404 (0.019)0.444 (0.026)
S10 LowVarianceLocal0.222 (0.029)0.318 (0.030)0.222 (0.029)0.366 (0.028)0.222 (0.029)0.222 (0.029)0.219 (0.027)0.232 (0.018)0.462 (0.028)0.420 (0.024)0.316 (0.024)0.506 (0.020)
S11 PhaseShift0.251 (0.020)0.367 (0.022)0.252 (0.019)0.408 (0.014)0.250 (0.019)0.251 (0.019)0.248 (0.020)0.320 (0.018)0.474 (0.014)0.464 (0.015)0.417 (0.013)0.432 (0.020)
S12 DistributedTransients0.090 (0.020)0.253 (0.021)0.090 (0.020)0.303 (0.011)0.090 (0.020)0.090 (0.020)0.089 (0.020)0.175 (0.020)0.415 (0.023)0.365 (0.021)0.321 (0.016)0.315 (0.025)

Table 2. Simulation study: mean (SD) held-out multiclass Brier score over 20 replicates (lower is better). GL-FRF: global–local functional random forest (late fusion); WC-FRF: window-concatenated functional random forest (late fusion); WC-0: window-concatenated functional random forest (early fusion, OOB-tuned); Stack-0: GL-FRF without penalties; WC-0: WC-FRF with default hyperparameters; Scr-stack: the same stack, with the (W^,λ^)(\widehat{W}, \widehat{\lambda}) of GL-FRF, on random non-contiguous partitions of the grid (locality control); G-tuned: tuned global expert alone (100 trees); G-tuned-bud: the same with 100 (W^+1\widehat{W}+1) trees; G-99: untuned global forest (99% FPC); L-eq: equal soft vote of the local experts; IF-mean, IF-TSF: random-interval forests with interval means, and standard deviation and slope; FkNN: functional kk-nearest neighbours. Best mean in bold, including methods tied with it at the reported precision.

ScenarioGL-FRFWC-FRFStack-0WC-0Scr-stackG-tunedG-tuned-budG-99L-eqIF-meanIF-TSFFkNN
S1 Global0.776 (0.033)0.778 (0.035)0.770 (0.030)0.778 (0.034)0.769 (0.042)0.764 (0.037)0.766 (0.035)0.751 (0.035)0.774 (0.036)0.770 (0.031)0.778 (0.034)0.777 (0.037)
S2 LocalEarly0.998 (0.003)0.929 (0.022)0.998 (0.003)0.924 (0.024)0.998 (0.003)0.998 (0.003)0.998 (0.004)0.998 (0.004)0.794 (0.061)0.901 (0.032)0.965 (0.019)0.972 (0.012)
S3 LocalLate0.993 (0.008)0.932 (0.022)0.993 (0.008)0.938 (0.018)0.993 (0.008)0.993 (0.008)0.993 (0.007)0.989 (0.009)0.805 (0.059)0.942 (0.018)0.989 (0.008)0.967 (0.014)
S4 OppositePatches0.993 (0.008)0.950 (0.030)0.993 (0.008)0.967 (0.023)0.993 (0.008)0.993 (0.008)0.994 (0.007)0.990 (0.009)0.891 (0.085)0.865 (0.036)0.965 (0.019)0.957 (0.012)
S5 CrossWindowXOR0.960 (0.024)0.549 (0.056)0.960 (0.024)0.539 (0.038)0.960 (0.024)0.960 (0.024)0.963 (0.023)0.897 (0.053)0.499 (0.037)0.811 (0.035)0.785 (0.046)0.933 (0.026)
S6 Null0.484 (0.029)0.502 (0.027)0.492 (0.029)0.491 (0.031)0.492 (0.030)0.484 (0.036)0.490 (0.028)0.499 (0.034)0.497 (0.028)0.483 (0.035)0.485 (0.029)0.468 (0.023)
S7 MixedLocalGlobal0.964 (0.017)0.869 (0.042)0.964 (0.017)0.861 (0.051)0.964 (0.017)0.964 (0.017)0.962 (0.018)0.948 (0.017)0.793 (0.066)0.814 (0.034)0.867 (0.034)0.890 (0.024)
S8 ImbalancedLocal0.959 (0.026)0.689 (0.069)0.959 (0.026)0.583 (0.067)0.959 (0.026)0.959 (0.026)0.958 (0.026)0.942 (0.034)0.500 (0.000)0.691 (0.058)0.651 (0.055)0.696 (0.074)
S9 WeakTransient0.846 (0.028)0.752 (0.036)0.845 (0.028)0.724 (0.050)0.847 (0.026)0.847 (0.027)0.845 (0.024)0.842 (0.024)0.597 (0.054)0.643 (0.036)0.719 (0.032)0.644 (0.040)
S10 LowVarianceLocal0.900 (0.019)0.789 (0.035)0.900 (0.019)0.782 (0.042)0.900 (0.019)0.900 (0.019)0.897 (0.020)0.894 (0.019)0.649 (0.081)0.690 (0.042)0.842 (0.027)0.550 (0.039)
S11 PhaseShift0.832 (0.026)0.742 (0.030)0.834 (0.028)0.732 (0.034)0.832 (0.026)0.832 (0.026)0.835 (0.024)0.835 (0.022)0.620 (0.046)0.614 (0.029)0.709 (0.027)0.657 (0.025)
S12 DistributedTransients0.954 (0.016)0.850 (0.023)0.954 (0.016)0.873 (0.025)0.954 (0.016)0.954 (0.016)0.954 (0.014)0.951 (0.015)0.784 (0.056)0.751 (0.037)0.819 (0.028)0.784 (0.028)

Table 3. Simulation study: mean (SD) held-out balanced accuracy over 20 replicates (higher is better). GL-FRF: global–local functional random forest (late fusion); WC-FRF: window-concatenated functional random forest (early fusion, OOB-tuned); Stack-0: GL-FRF with default hyperparameters; Scr-stack: the same stack, with the (W~,G~,Λ~)(\widetilde{W}, \widetilde{G}, \widetilde{\Lambda}) grid (locally controlled); G-tuned: tuned global expert alone (100 trees); G-tuned-bud: the same with 100 (W+1W+1) trees; G-99: untuned global forest (99% FPC); L-eq: equal soft vote of the local experts; IF-mean, IF-TSF: random-interval forests with interval means, and standard deviation and slope; FkNN: functional kk-nearest neighbours. Best mean in bold, including methods tied with at the reported precision.

Simulation study heatmap of mean paired differences in held-out Brier score

Figure 4. Simulation study: mean paired difference in held-out Brier score between each competitor and GL-FRF. Blue cells indicate that GL-FRF has a lower Brier score, red cells that the competitor has a lower Brier score.

Application to benchmark datasets

Datasets and resampling

In this section, we analyse twenty univariate datasets from the UCR time series archive [9], available at https://www.timeseriesclassification.com/: ChlorineConcentration, Coffee, Computers, ECG200, Earthquakes, Fish, FordA, FreezerRegularTrain, GunPoint, Ham, Herring, Meat, PowerCons, ProximalPhalanxOutlineCorrect, Strawberry, ToeSegmentation1, Trace, Wine, WormsTwoClass and Yoga. They include spectrographic, image-outline, motion, sensor and device data, binary and multiclass problems with up to seven classes, series lengths between 80 and 900 and training sizes between 28 and 3,601 curves. Because the nested selection of Section 3.6 requires at least twelve training curves per class, only datasets satisfying this condition are considered.

For each dataset, five training/test splits are analysed: the official UCR split and four stratified resamples, obtained by pooling the official training and test curves and drawing a training set with the official training class counts, as is customary in time series classification benchmarks [1]. FordA, which has 3,601 training curves, is analysed on its official split only for computational reasons. Table 5 reports the size of each dataset and the main quantities selected on the training sets. Series are complete and of equal length, and no amplitude standardisation is applied. Figure 5 displays training curves of all datasets.

DatasetTrainTestppCCMin. classτˉ0\bar{\tau}_0K^0\widehat{K}_0W^\widehat{W}aˉ0\bar{a}_0Splits
ChlorineConcentration46738401663910.9911100.005
Coffee28282862140.803200.405
Computers25025072021250.9962200.125
ECG200100100962310.9512100.765
Earthquakes3221395122580.955100.185
Fish1751754637210.951250.595
FordA36011320500217550.997350.001
FreezerRegularTrain15028503012750.9920100.005
GunPoint501501502240.956200.005
Ham1091054312520.8012100.775
Herring64645122250.9931100.065
Meat60604483200.953100.195
PowerCons1801801442900.809200.175
ProximalPhalanxOutlineCorrect6002918021940.95850.765
Strawberry61337023522190.9911200.415
ToeSegmentation1402282772200.9014200.305
Trace1001002754210.991550.005
Wine57542342270.995100.605
WormsTwoClass181779002760.952950.285
Yoga300300042621370.95750.415

Table 5. UCR datasets: official training and test sizes, series length pp, number of classes CC and smallest training class; median selected threshold τˉ0\bar{\tau}_0 and number of components K^0\widehat{K}_0 of the global expert, median number of windows W^\widehat{W}, mean global weight aˉ0\bar{a}_0 of GL-FRF over splits, and number of analysed splits.

Training curves of the twenty UCR datasets

Figure 5. Training curves of the twenty UCR datasets: up to 20 curves per class from the official training set, coloured by class. The number of classes is given in parentheses; tt indexes the points of the sampling grid and X(t)X(t) is the value provided in the archive.

Statistical analysis

For each dataset, method and split we compute the held-out Brier score and the paired difference with GL-FRF. Dataset-level performance is summarised by the mean over splits. Because resampled training sets overlap, the split-to-split variability of a paired difference is described by the corrected resampled interval of Nadeau and Bengio [35], which replaces the factor 1/R1/R of the naive variance of the mean over RR splits with 1/R+nte/ntr1/R + n_{\mathrm{te}}/n_{\mathrm{tr}}; these intervals are reported as descriptive measures.

For the family of main comparisons {G-tuned-bud, Scr-stack, WC-FRF, IF-TSF}, the dataset-level mean differences with GL-FRF are compared with zero by the two-sided Wilcoxon

signed-rank test across the twenty datasets [11], and the four pp-values are adjusted by the Holm procedure [19]. The family answers four questions: whether the window-specific representation improves on a tuned global forest with the same number of trees, whether its contribution is due to locality, whether late fusion differs from early fusion of the same representation, and whether GL-FRF is competitive with an established interval-based forest. Comparisons with the other methods are descriptive. All computations, including those of the simulation study, were carried out in R 4.5.2 under Windows, with forests fitted by the ranger package [44], version 0.18.0; small numerical differences can arise with other versions of R and ranger.

Results

Table 6 and Table 7 and Figure 6, Figure 7 and Figure 8 report the results on the twenty datasets, averaged over the official split and four stratified resamples, and Table 8 and Figure 9 the main comparisons. GL-FRF had a lower mean Brier score than the tuned global forest with the same number of trees on 16 of the 20 datasets, with a median difference of 0.015. The largest reductions were observed on Trace (0.213), FreezerRegularTrain (0.178), GunPoint (0.158), ChlorineConcentration (0.091), Coffee (0.052) and Computers (0.044); on FreezerRegularTrain, the balanced accuracy of GL-FRF was 0.992 against 0.859. G-tuned-bud was better on ECG200 (0.006), Fish (0.007), Ham (0.011) and Wine (0.011). The weight of the global expert was zero in every split of ChlorineConcentration, FordA, FreezerRegularTrain, GunPoint and Trace, and 0.12 and 0.40 on average on Computers and Coffee. Contrary to the simulation study, the window-specific experts therefore carried information that the tuned global decomposition did not represent.

UCR datasets: held-out Brier scores of methods across ten datasets

Figure 6. UCR datasets (first ten in alphabetical order): held-out Brier score of all methods over the official split and four stratified resamples (FordA: official split only). Methods are ordered by median; the white diamond indicates the mean.

UCR datasets (last ten in alphabetical order)

Figure 7. UCR datasets (last ten in alphabetical order): held-out Brier score of all methods over the official split and four stratified resamples. Methods are ordered by median; the white diamond indicates the mean.

DatasetGL-FRFWC-FRFStack-0WC-0Scr-stackG-tunedG-tuned-budG-99L-eqIF-meanIF-TSFFkNN
ChlorineConcentration0.410 (0.011)0.362 (0.012)0.410 (0.011)0.379 (0.011)0.459 (0.018)0.503 (0.017)0.501 (0.018)0.501 (0.018)0.465 (0.008)0.489 (0.007)0.455 (0.011)0.613 (0.005)
Coffee0.108 (0.035)0.076 (0.026)0.116 (0.058)0.113 (0.022)0.161 (0.046)0.162 (0.053)0.161 (0.048)0.226 (0.030)0.237 (0.019)0.183 (0.021)0.138 (0.020)0.078 (0.096)
Computers0.427 (0.026)0.440 (0.035)0.429 (0.028)0.435 (0.027)0.473 (0.010)0.475 (0.011)0.471 (0.009)0.477 (0.012)0.432 (0.015)0.487 (0.029)0.375 (0.027)0.555 (0.033)
ECG2000.227 (0.018)0.216 (0.034)0.234 (0.011)0.220 (0.028)0.221 (0.033)0.220 (0.032)0.220 (0.028)0.258 (0.020)0.255 (0.016)0.267 (0.025)0.232 (0.023)0.210 (0.062)
Earthquakes0.376 (0.017)0.370 (0.013)0.375 (0.016)0.367 (0.012)0.391 (0.021)0.409 (0.018)0.408 (0.022)0.398 (0.018)0.381 (0.009)0.372 (0.007)0.365 (0.009)0.401 (0.015)
Fish0.387 (0.004)0.334 (0.037)0.391 (0.005)0.356 (0.023)0.381 (0.014)0.386 (0.015)0.380 (0.015)0.401 (0.015)0.459 (0.028)0.509 (0.024)0.417 (0.031)0.332 (0.026)
FordA0.2440.2390.2440.2440.2680.2680.2660.2710.2440.3990.3950.354
FreezerRegularTrain0.023 (0.004)0.031 (0.009)0.024 (0.004)0.049 (0.007)0.157 (0.040)0.203 (0.056)0.202 (0.057)0.202 (0.058)0.206 (0.045)0.182 (0.019)0.024 (0.004)0.321 (0.011)
GunPoint0.083 (0.035)0.101 (0.046)0.083 (0.035)0.111 (0.033)0.219 (0.023)0.247 (0.039)0.241 (0.033)0.238 (0.033)0.221 (0.012)0.201 (0.018)0.126 (0.019)0.186 (0.043)
Ham0.326 (0.030)0.336 (0.038)0.339 (0.039)0.338 (0.030)0.331 (0.031)0.322 (0.026)0.314 (0.021)0.393 (0.030)0.374 (0.027)0.372 (0.014)0.349 (0.042)0.457 (0.185)
Herring0.493 (0.035)0.495 (0.051)0.500 (0.031)0.490 (0.038)0.480 (0.027)0.497 (0.034)0.498 (0.033)0.491 (0.019)0.481 (0.021)0.500 (0.050)0.479 (0.051)0.491 (0.019)
Meat0.074 (0.033)0.061 (0.033)0.078 (0.034)0.069 (0.027)0.090 (0.031)0.084 (0.028)0.083 (0.029)0.118 (0.043)0.140 (0.042)0.094 (0.023)0.070 (0.027)0.027 (0.060)
PowerCons0.028 (0.007)0.017 (0.005)0.027 (0.007)0.052 (0.004)0.086 (0.030)0.058 (0.017)0.058 (0.017)0.107 (0.012)0.203 (0.011)0.030 (0.011)0.027 (0.006)0.047 (0.012)
ProximalPhalanxOutlineCorrect0.245 (0.020)0.226 (0.017)0.248 (0.019)0.230 (0.016)0.246 (0.019)0.247 (0.021)0.246 (0.020)0.248 (0.010)0.289 (0.021)0.291 (0.019)0.245 (0.022)0.245 (0.014)
Strawberry0.470 (0.010)0.491 (0.027)0.476 (0.010)0.478 (0.015)0.474 (0.016)0.483 (0.025)0.477 (0.025)0.493 (0.016)0.459 (0.014)0.442 (0.013)0.428 (0.013)0.568 (0.110)
ToeSegmentation10.216 (0.035)0.191 (0.038)0.216 (0.035)0.263 (0.038)0.243 (0.042)0.249 (0.042)0.249 (0.025)0.327 (0.039)0.341 (0.023)0.291 (0.023)0.297 (0.075)0.298 (0.291)
ToeSegmentation20.270 (0.075)0.278 (0.096)0.278 (0.086)0.263 (0.090)0.243 (0.049)0.258 (0.054)0.258 (0.054)0.326 (0.086)0.342 (0.087)0.322 (0.086)0.297 (0.075)0.299 (0.021)
Trace0.406 (0.029)0.406 (0.038)0.406 (0.029)0.403 (0.030)0.419 (0.025)0.428 (0.042)0.428 (0.054)0.432 (0.053)0.393 (0.031)0.397 (0.042)0.407 (0.020)0.284 (0.025)
Vine0.270 (0.075)0.278 (0.096)0.278 (0.086)0.263 (0.090)0.243 (0.049)0.258 (0.054)0.258 (0.054)0.326 (0.086)0.342 (0.087)0.322 (0.086)0.297 (0.075)0.299 (0.021)
Wine0.404 (0.029)0.391 (0.030)0.402 (0.029)0.403 (0.030)0.419 (0.025)0.428 (0.042)0.428 (0.054)0.432 (0.053)0.393 (0.031)0.397 (0.042)0.407 (0.020)0.284 (0.025)
WormsTwoClass0.246 (0.018)0.295 (0.008)0.268 (0.018)0.260 (0.009)0.419 (0.019)0.279 (0.019)0.277 (0.023)0.295 (0.018)0.295 (0.018)0.262 (0.011)0.243 (0.010)0.284 (0.025)
Yoga0.408 (0.018)0.299 (0.008)0.268 (0.018)0.260 (0.009)0.419 (0.019)0.279 (0.019)0.277 (0.023)0.295 (0.018)0.295 (0.018)0.262 (0.011)0.243 (0.010)0.284 (0.025)

Table 6. UCR datasets: mean (SD) held-out Brier score over the official split and 4 stratified resamples (FordA: official split only). GL-FRF: global random forest; GL-FRF: window-concatenated functional random forest (early fusion); OOB-tuned; Stack-0: with default hyperparameters; Scr-stack: the same stack, with the (W‾,G^,Λ^)\left(\overline{W}, \widehat{G}, \widehat{\Lambda}\right) of GL-FRF without penalties; WC-0: WC-FRF without penalties; G-tuned: tuned global expert alone (100 trees); G-tuned-bud: the same with 100 (W‾+1\overline{W}+1) non-contiguous partitions of the grid (locality control); G-99: untuned global forest (99% FPCA); L-eq: equal soft vote of the local experts; IF-mean, IF-TSF: random-interval forests with interval means, and with mean, standard deviation and slope; FkNN: functional kk-nearest neighbours. Best mean in bold, including methods tied with it at the reported precision.

DatasetGL-FRFWC-FRFStack-0WC-0Scr-stackG-tunedG-tuned-budG-99L-eqIF-meanIF-TSFFkNN
ChlorineConcentration0.617 (0.010)0.678 (0.018)0.617 (0.010)0.654 (0.013)0.553 (0.023)0.516 (0.017)0.515 (0.018)0.526 (0.016)0.534 (0.014)0.521 (0.007)0.561 (0.013)0.378 (0.020)
Coffee0.967 (0.024)0.972 (0.016)0.946 (0.067)0.987 (0.018)0.901 (0.063)0.888 (0.074)0.896 (0.076)0.875 (0.062)0.993 (0.015)0.926 (0.037)0.950 (0.039)0.966 (0.049)
Computers0.671 (0.045)0.657 (0.053)0.671 (0.043)0.658 (0.043)0.608 (0.015)0.579 (0.017)0.573 (0.018)0.572 (0.019)0.642 (0.019)0.581 (0.030)0.723 (0.024)0.518 (0.024)
ECG2000.821 (0.024)0.816 (0.039)0.816 (0.031)0.810 (0.028)0.849 (0.044)0.849 (0.044)0.827 (0.043)0.798 (0.022)0.748 (0.042)0.753 (0.024)0.794 (0.025)0.842 (0.028)
Earthquakes0.501 (0.002)0.508 (0.021)0.501 (0.002)0.503 (0.009)0.495 (0.011)0.498 (0.019)0.495 (0.016)0.509 (0.019)0.500 (0.000)0.501 (0.008)0.503 (0.006)0.500 (0.000)
Fish0.794 (0.026)0.813 (0.032)0.788 (0.023)0.832 (0.043)0.820 (0.056)0.783 (0.030)0.793 (0.035)0.827 (0.026)0.809 (0.042)0.659 (0.029)0.771 (0.032)0.784 (0.018)
FordA0.8940.8590.8950.8630.8510.8510.8570.8480.8960.7730.7980.743
FreezerRegularTrain0.992 (0.002)0.989 (0.004)0.992 (0.003)0.988 (0.003)0.903 (0.039)0.862 (0.051)0.859 (0.053)0.858 (0.048)0.845 (0.053)0.880 (0.007)0.995 (0.003)0.810 (0.044)
GunPoint0.949 (0.039)0.954 (0.028)0.949 (0.039)0.955 (0.025)0.885 (0.029)0.859 (0.058)0.863 (0.056)0.868 (0.055)0.928 (0.020)0.867 (0.024)0.961 (0.014)0.897 (0.040)
Ham0.801 (0.044)0.771 (0.073)0.801 (0.058)0.799 (0.064)0.792 (0.050)0.798 (0.049)0.809 (0.039)0.736 (0.067)0.777 (0.042)0.744 (0.032)0.754 (0.070)0.711 (0.075)
Herring0.466 (0.057)0.488 (0.038)0.480 (0.043)0.496 (0.056)0.518 (0.043)0.503 (0.013)0.496 (0.030)0.509 (0.029)0.488 (0.042)0.511 (0.062)0.547 (0.071)0.507 (0.061)
Meat0.983 (0.029)0.977 (0.019)0.977 (0.032)0.983 (0.017)0.980 (0.018)0.970 (0.022)0.967 (0.035)0.963 (0.030)0.987 (0.014)0.943 (0.035)0.973 (0.025)0.987 (0.030)
PowerCons0.987 (0.008)0.992 (0.007)0.986 (0.013)0.984 (0.014)0.968 (0.021)0.973 (0.010)0.972 (0.011)0.970 (0.014)0.927 (0.018)0.982 (0.012)0.984 (0.009)0.967 (0.014)
ProximalPhalanxOutlineCorrect0.776 (0.024)0.799 (0.020)0.766 (0.021)0.789 (0.015)0.783 (0.023)0.775 (0.021)0.775 (0.018)0.768 (0.017)0.705 (0.017)0.707 (0.022)0.781 (0.026)0.753 (0.010)
Strawberry0.968 (0.020)0.968 (0.015)0.968 (0.020)0.968 (0.015)0.941 (0.026)0.938 (0.044)0.938 (0.044)0.938 (0.044)0.941 (0.026)0.941 (0.026)0.941 (0.026)0.938 (0.044)
ToeSegmentation10.931 (0.033)0.939 (0.019)0.927 (0.020)0.932 (0.018)0.919 (0.026)0.922 (0.025)0.920 (0.025)0.917 (0.025)0.916 (0.022)0.920 (0.020)0.929 (0.019)0.915 (0.021)
Trace0.987 (0.029)0.987 (0.014)0.987 (0.029)0.987 (0.014)0.987 (0.029)0.987 (0.030)0.987 (0.030)0.987 (0.030)0.987 (0.014)0.987 (0.014)0.987 (0.014)0.987 (0.030)
TwoLeadECG0.970 (0.022)0.970 (0.022)0.970 (0.022)0.970 (0.022)0.970 (0.022)0.970 (0.022)0.970 (0.022)0.970 (0.022)0.970 (0.022)0.970 (0.022)0.970 (0.022)0.970 (0.022)
Wafer0.996 (0.003)0.996 (0.003)0.996 (0.003)0.996 (0.003)0.996 (0.003)0.996 (0.003)0.996 (0.003)0.996 (0.003)0.996 (0.003)0.996 (0.003)0.996 (0.003)0.996 (0.003)
Wine0.781 (0.034)0.793 (0.077)0.811 (0.082)0.819 (0.077)0.844 (0.095)0.846 (0.036)0.833 (0.034)0.841 (0.034)0.781 (0.034)0.807 (0.105)0.830 (0.090)0.856 (0.145)
Words0.693 (0.063)0.698 (0.077)0.624 (0.088)0.630 (0.077)0.624 (0.099)0.686 (0.033)0.688 (0.034)0.693 (0.034)0.680 (0.098)0.612 (0.049)0.680 (0.049)0.600 (0.029)
Yoga0.832 (0.012)0.827 (0.017)0.832 (0.012)0.831 (0.016)0.817 (0.021)0.808 (0.022)0.809 (0.026)0.798 (0.022)0.823 (0.008)0.824 (0.009)0.844 (0.015)0.800 (0.029)

Table 7. UCR datasets: mean (SD) held-out accuracy over the official split and 4 stratified resamples (FordA: official split only). GL-FRF: global-local functional random forest; WC-FRF: window-concatenated functional random forest (early fusion); OOB-tuned; Stack-0: with default hyperparameters; WC-0: WC-FRF without penalties; G-tuned: tuned global expert alone (100 trees); G-99: untuned global forest (99% local control); L-eq: equal soft vote of the local experts; IF-mean, IF-TSF: random-interval forests with interval means, and with mean, standard deviation and slope; FkNN: functional kk-nearest neighbours. Best mean in bold, including methods tied with it at the reported precision.

Heatmap of mean paired differences in held-out Brier score for UCR datasets

Figure 8. UCR datasets: mean paired difference in held-out Brier score between each competitor and GL-FRF over the analysed splits. Blue cells indicate that GL-FRF has a lower Brier score.

UCR datasets: main comparisons

Figure 9. UCR datasets: distribution over datasets and splits of the paired difference in held-out Brier score between each competitor of the main comparisons and GL-FRF. Positive values favour GL-FRF.

CompetitorDatasetsMedian diff.GL-FRF better/worseVVpppHolmp_{\mathrm{Holm}}
G-tuned-bud200.014616 / 41860.0010.006
Scr-stack200.015316 / 41810.0030.009
WC-FRF20−0.00717 / 13650.1430.286
IF-TSF200.001912 / 81210.5710.571
Stack-0200.001514 / 61700.014–
WC-020−0.00427 / 13840.452–
G-tuned200.016716 / 41900.001–
G-99200.029318 / 22000.000–
L-eq200.051417 / 31950.000–
IF-mean200.043217 / 31970.000–
FkNN200.030414 / 61740.008–

Table 8. UCR datasets: median over datasets of the dataset-level mean difference in Brier score (competitor minus GL-FRF; positive values favour GL-FRF), number of datasets on which GL-FRF was better or worse, and two-sided Wilcoxon signed-rank test. The first 4 rows form the family of main comparisons (Holm adjustment); the remaining rows are descriptive.

The locality control indicates that this information is mainly due to the temporal localisation of the windows. Scr-stack, which has the same number of experts, the same set sizes and the same hyperparameters as GL-FRF, had a higher Brier score than GL-FRF on 16 datasets, with a median difference of 0.015, and recovered only a small part of the gain on the datasets where the windows helped: its Brier score was 0.395 on Trace, 0.157 on FreezerRegularTrain, 0.219 on GunPoint and 0.459 on ChlorineConcentration, against 0.216, 0.023, 0.083 and 0.410 for GL-FRF and 0.429, 0.202, 0.241 and 0.501 for G-tuned-bud. Diversity among forests trained on different subsets of the grid is therefore not sufficient to explain the improvement. Scr-stack was better than GL-FRF on Wine (0.027), Herring (0.013), ECG200 (0.006) and Fish (0.006).

After Holm adjustment, GL-FRF was significantly better than G-tuned-bud (unadjusted p=0.001p = 0.001, adjusted p=0.006p = 0.006) and than Scr-stack (unadjusted p=0.003p = 0.003, adjusted p=0.009p = 0.009). WC-FRF had a lower Brier score than GL-FRF on 13 datasets, with a median difference of 0.007 in its favour, but the difference was not significant (p=0.143p = 0.143, adjusted 0.286). GL-FRF and IF-TSF had a median difference of 0.002, with twelve datasets in favour of GL-FRF and eight against (p=0.571p = 0.571); IF-TSF was much better on Trace (0.030 against 0.216) and Computers (0.375 against 0.427) and much worse on FordA (0.395 against 0.244). No single method dominated: IF-TSF had the lowest mean Brier score on six datasets, WC-FRF on five, FkNN on three and each of the other methods on at most one. The corrected resampled intervals of the per-dataset differences were wide, because the test sets are large relative to the training sets on several datasets and the variance correction of Nadeau and Bengio [35] is correspondingly large. Among the four main comparisons, they excluded zero in favour of GL-FRF for G-tuned-bud on ChlorineConcentration, GunPoint and Trace and for Scr-stack on Trace and WormsTwoClass, and in favour of the competitor for WC-FRF on ProximalPhalanxOutlineCorrect and Trace and for IF-TSF on Trace.

GL-FRF and WC-FRF: when each method is preferable

Figure 10 compares the two proposed methods in every simulated scenario and dataset. The comparison separates the settings into two groups. In ten of the twelve simulated scenarios

Paired difference in held-out Brier score between WC-FRF and GL-FRF

Figure 10. Paired difference in held-out Brier score between WC-FRF and GL-FRF (mean ± two standard errors over replicates or splits). Positive values favour GL-FRF, negative values WC-FRF.

GL-FRF was better, by 0.08 to 0.41, because the signal was captured by the tuned full-curve forest, which WC-FRF does not include; the largest difference occurred under the cross-window interaction of Scenario 5. WC-FRF was better in Scenario 1, by 0.007, and under the null scenario, by 0.003. On the real datasets the situation was reversed: WC-FRF was better on 13 of the 20 datasets, with the largest differences on Trace (0.075), Fish (0.053), ChlorineConcentration (0.049) and Coffee (0.032), and GL-FRF was better on seven, with the largest differences on ToeSegmentation1 (0.021), GunPoint (0.018) and Computers (0.013). The out-of-bag tuning of WC-FRF selected more candidate variables than the default ⌊KW⌋\lfloor\sqrt{K_W}\rfloor in 86% of the fits, with a median close to KW/2K_W/2, and tuning reduced the Brier score of WC-0 on 14 of the 20 datasets.

The two methods therefore answer different needs. When the window-specific representation is known or expected to be informative, WC-FRF was usually the more accurate of the two methods. When the location and nature of the signal are unknown, GL-FRF is the safer choice, because it cannot be much worse than a tuned full-curve forest and it exploits the windows when they help. Table 9 quantifies this trade-off with the excess of each method over the best of the twelve methods in each setting. Across the 32 settings, GL-FRF had the smallest mean excess (0.021) and the smallest maximum excess (0.187, on Trace) of all methods. WC-FRF had a smaller mean excess than GL-FRF on the real datasets (0.021 against 0.031) but the largest maximum excess overall (0.416, in Scenario 5), and the global forests showed the opposite pattern, close to the best in the simulations and up to 0.399 from it on the real datasets. This summary is descriptive; it describes the behaviour of the methods across the settings considered and is not a test.

Group (settings)GL-FRFWC-FRFStack-0Scr-stackG-tuned-budIF-TSFFkNN
Simulation (12)0.003 (0.013)0.127 (0.416)0.003 (0.016)0.004 (0.022)0.003 (0.027)0.132 (0.298)0.112 (0.287)
UCR (20)0.031 (0.187)0.021 (0.112)0.035 (0.187)0.067 (0.366)0.073 (0.399)0.033 (0.156)0.100 (0.446)
All (32)0.021 (0.187)0.060 (0.416)0.023 (0.187)0.043 (0.366)0.047 (0.399)0.070 (0.298)0.105 (0.446)

Table 9. Excess mean Brier score over the best of the twelve methods in each simulated scenario or dataset: mean (maximum) over the settings of each group. Smallest mean and smallest maximum of each row in bold. Descriptive summary.

Selected functional representations and stacking weights

Figure 11 shows the weight of the global expert. In the simulations it was concentrated at one, except in Scenarios 1 and 6. On the real datasets it varied from zero in every split of ChlorineConcentration, FordA, GunPoint, Trace and FreezerRegularTrain, which are the datasets with the largest gains over the global forest, to a mean of 0.76 or more on ECG200, Ham and ProximalPhalanxOutlineCorrect, on which GL-FRF and the global forest performed similarly. The weight of the global expert is therefore informative about the usefulness of the windows on a given dataset.

Figure 12 shows where the local weight was placed. On the datasets with large gains it was concentrated on one or two windows: 83% of the weight on the window centred between 0.2 and 0.3 of the domain for GunPoint, 82% between 0.7 and 0.8 for Trace, 63% and 37% on two adjacent windows in the first third of the domain for FreezerRegularTrain, and 66% between 0.8 and 0.9 for ChlorineConcentration. On datasets with small or no gains the weight was spread over the domain. These profiles indicate the parts of the curves on which the local representation was useful; they describe the predictive contribution of the windows and are not evidence of a causal role of the corresponding parts of the signal.

Mean stacking weight assigned by GL-FRF to the local experts, by relative position of the window centre on the domain

Figure 12. Mean stacking weight assigned by GL-FRF to the local experts, by relative position of the window centre on the domain. For the simulated scenarios the location of the class signal is known (Table 1).

The number of windows varied across splits on most datasets, and five, ten and twenty windows were all selected. At least one of the two penalties was positive in most fits; GL-FRF had a lower Brier score than Stack-0 on 14 of the 20 datasets, but the differences were small (median 0.002, maximum 0.032 on Wine), so the penalties had a small effect on accuracy. The median computing time of GL-FRF was between 37 seconds (ECG200) and 451 seconds (WormsTwoClass) per split, and 2,422 seconds on FordA, on a single core of a desktop computer; the whole evaluation, including all competitors, required about 90 minutes on 11 cores.

Discussion and conclusions

This paper introduced window-specific functional principal components as a representation for functional random forests and proposed two ways of exploiting it: GL-FRF, which stacks a tuned full-curve forest and one forest per window with penalised convex weights, and WC-FRF, which trains one tuned forest on the concatenated window-specific scores. The evaluation asked three questions: whether the window-specific representation adds information to a tuned full-curve forest, whether any gain is due to temporal localisation or to the diversity of an ensemble, and which of the two aggregation strategies should be preferred, and when.

On the first question, the simulation study and the benchmark datasets gave different answers. In the twelve simulated scenarios, which include short transients, a signal in a region of low variance, a phase shift, distributed transients and a cross-window interaction, a full-curve forest whose FPCA threshold and node size were chosen by internal cross-validation was already close to the best method, and in ten of them GL-FRF reduced to it almost exactly by assigning it all the weight. Simulated mechanisms built to favour local representations can thus be solved by a well-tuned global representation, and comparisons with untuned global forests overstate the value of windows. The simulations also show that GL-FRF pays essentially no price when the windows are not needed, since it then reduces to the tuned full-curve forest. On the benchmark datasets, instead, the window-specific representation improved on the tuned full-curve forest with the same number of trees on 16 of the 20 datasets, with reductions in the Brier score of up to 0.21 and a difference that remained significant after multiplicity adjustment; the largest gains were concentrated on a few datasets, while on the others the differences were small.

On the second question, the locality control recovered little of the gain on the datasets where the windows helped, which indicates that the improvement is mainly due to the temporal localisation of the windows rather than to the diversity of the ensemble, although the two stacks also differ in the smoothing of the curves. On those datasets the stacking weights of GL-FRF were concentrated on one or two windows, which provides a direct indication of the parts of the domain that contribute to the prediction.

On the third question, the two methods are complementary rather than competing. WC-FRF was the more accurate on real data, with a smaller mean excess over the best method than

GL-FRF and a lower Brier score on 13 of 20 datasets, although the difference was not significant. It has no access to the full-curve representation, however, and was markedly worse than GL-FRF in all simulated scenarios in which the tuned full-curve forest captured the signal, and close to a constant prediction under the cross-window interaction. GL-FRF was rarely the single best method, but no method was best on more than six of the twenty datasets, and GL-FRF had the smallest mean excess over the best method (0.021) and the smallest maximum excess (0.187) across all 32 settings: its worst result was closer to the best method than the worst result of any other method. In practice, we suggest WC-FRF when the discriminative information is expected to be local and the curves are long enough to support several windows, and GL-FRF when the location and nature of the signal are unknown, when an interpretable decomposition of the prediction into global and local contributions is useful, or when a single method is needed whose accuracy does not depend on knowing in advance where the signal lies. The weight of the global expert estimated by GL-FRF can itself be used as a diagnostic: values close to zero indicate that the window-specific representation is informative, and that WC-FRF is likely to be competitive. The penalties of GL-FRF had a minor role: GL-FRF behaves essentially as a cross-fitted convex stack with exact zero weights, and the penalties make the weights unique

(Property 4); whether they reduce the variability of the weights on small training sets was not assessed.

The study has several limitations. The number of candidate variables at each split was tuned only for WC-FRF, the local experts used a fixed 99% threshold, and the windows have equal width. WC-FRF and several competitors, including the locality control, inherit the number of windows selected for GL-FRF, which is not equivalent to tuning each of them separately, and WC-FRF does not include the full-curve scores. The untuned concatenated forest WC-0 follows the approach of Lin and Zhu [23] with equal-width windows, but a partition based on the variance function, as in multiscale FPCA, was not evaluated. The interval forests are implementations of the time series forest principle and not the full Canonical Interval Forest, and state-of-the-art time series classifiers were not included. The twenty datasets are a small and non-random sample of the UCR archive, so that the results may not extend to other collections of curves. Finally, the simulated scenarios did not reproduce the situations in which the windows were useful on real data, so the conditions under which a window-specific representation outperforms a tuned global one remain to be characterised.

These results suggest four directions for future research: a hybrid that adds the full-curve scores to the concatenated window-specific scores of WC-FRF, which would combine the strengths of the two methods; data-driven or overlapping windows instead of an equal-width partition, possibly informed by localised or multiscale FPCA [7, 23]; registration of the curves before the decomposition when classes differ in phase [25]; and explainability tools for both methods, extending those developed for functional random forests [26] to window-specific components.

Funding

No funds, grants, or other support were received for the research reported in this article.

Conflict of interest

The authors have no competing interests to declare that are relevant to the content of this article.

Use of generative AI

The authors used generative AI tools to improve the English language, to assist in revising parts of the text, and to check bibliographic metadata. All content was critically reviewed, verified and edited by the authors, who take full responsibility for the publication.

Data availability statement

All datasets analysed in this study are publicly available from the UCR time series classification archive (https://www.timeseriesclassification.com/). The R code that implements the methods and reproduces all analyses, tables and figures, including the generation of the simulated data, is available from the corresponding author on request.

Author contributions

Both authors contributed equally to all aspects of the article, including conceptualisation, methodology, software, formal analysis, writing and revision, and approved the final manuscript.

References

  1. [1]Anthony Bagnall, Jason Lines, Aaron Bostrom, James Large, and Eamonn Keogh. The great time series classification bake off: a review and experimental evaluation of recent algorithmic advances. Data Mining and Knowledge Discovery, 31(3):606–660, 2017. doi: 10.1007/s10618-016-0483-9.DOI
  2. [2]Mustafa Gokce Baydogan, George Runger, and Eugene Tuv. A bag-of-features framework to classify time series. IEEE Transactions on Pattern Analysis and Machine Intelligence, 35(11): 2796–2802, 2013. doi: 10.1109/TPAMI.2013.72.DOI
  3. [3]Edoardo Belli and Simone Vantini. Measure inducing classification and regression trees for functional data. Statistical Analysis and Data Mining: The ASA Data Science Journal, 15(5): 553–569, 2022. doi: 10.1002/sam.11569.DOI
  4. [4]José R. Berrendero, Antonio Cuevas, and José L. Torrecilla. Variable selection in functional data classification: a maxima-hunting proposal. Statistica Sinica, 26(2):619–638, 2016. doi: 10.5705/ss.202014.0014.DOI
  5. [5]Leo Breiman. Stacked regressions. Machine Learning, 24(1):49–64, 1996. doi: 10.1007/BF00117832.DOI
  6. [6]Leo Breiman. Random forests. Machine Learning, 45(1):5–32, 2001. doi: 10.1023/A:1010933404324.DOI
  7. [7]Kehui Chen and Jing Lei. Localized functional principal component analysis. Journal of the American Statistical Association, 110(511):1266–1275, 2015. doi: 10.1080/01621459.2015.1016225.DOI
  8. [8]Rafael M. O. Cruz, Robert Sabourin, George D. C. Cavalcanti, and Tsang Ing Ren. META-DES: A dynamic ensemble selection framework using meta-learning. Pattern Recognition, 48(5): 1925–1935, 2015. doi: 10.1016/j.patcog.2014.12.003.DOI
  9. [9]Hoang Anh Dau, Anthony Bagnall, Kaveh Kamgar, Chin-Chia Michael Yeh, Yan Zhu, Shaghayegh Gharghabi, Chotirat Ann Ratanamahatana, and Eamonn Keogh. The UCR time series archive. IEEE/CAA Journal of Automatica Sinica, 6(6):1293–1305, 2019. doi: 10.1109/JAS.2019.1911747.DOI
  10. [10]Aurore Delaigle and Peter Hall. Achieving near perfect classification for functional data. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 74(2):267–286, 2012. doi: 10.1111/j.1467-9868.2011.01003.x.DOI
  11. [11]Janez Demšar. Statistical comparisons of classifiers over multiple data sets. Journal of Machine Learning Research, 7:1–30, 2006.DOI
  12. [12]Houtao Deng, George Runger, Eugene Tuv, and Vladimir Martyanov. A time series forest for classification and feature extraction. Information Sciences, 239:142–153, 2013. doi: 10.1016/j.ins.2013.02.030.DOI
  13. [14]Frédéric Ferraty and Philippe Vieu. Curves discrimination: a nonparametric functional approach. Computational Statistics & Data Analysis, 44(1–2):161–173, 2003. doi: 10.1016/S0167-9473(03)00032-X.DOI
  14. [15]Frédéric Ferraty and Philippe Vieu. Nonparametric Functional Data Analysis: Theory and Practice. Springer, New York, 2006. doi: 10.1007/0-387-36620-2.DOI
  15. [16]Tilmann Gneiting and Adrian E. Raftery. Strictly proper scoring rules, prediction, and estimation. Journal of the American Statistical Association, 102(477):359–378, 2007. doi: 10.1198/016214506000001437.DOI
  16. [17]Baptiste Gregorutti, Bertrand Michel, and Philippe Saint-Pierre. Grouped variable importance with random forests and application to multiple functional data analysis. Computational Statistics & Data Analysis, 90:15–35, 2015. doi: 10.1016/j.csda.2015.04.002.DOI
  17. [18]Peter Hall, D. S. Poskitt, and Brett Presnell. A functional data-analytic approach to signal discrimination. Technometrics, 43(1):1–9, 2001. doi: 10.1198/00401700152404273.DOI
  18. [19]Sture Holm. A simple sequentially rejective multiple test procedure. Scandinavian Journal of Statistics, 6(2):65–70, 1979.DOI
  19. [20]Gareth M. James and Trevor J. Hastie. Functional linear discriminant analysis for irregularly sampled curves. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 63(3):533–550, 2001. doi: 10.1111/1467-9868.00297.DOI
  20. [21]Ian T. Jolliffe. A note on the use of principal components in regression. Journal of the Royal Statistical Society: Series C (Applied Statistics), 31(3):300–303, 1982. doi: 10.2307/2348005.DOI
  21. [22]Bin Li and Qingzhao Yu. Classification of functional data: A segmentation approach. Computational Statistics & Data Analysis, 52(10):4790–4800, 2008. doi: 10.1016/j.csda.2008.03.024.DOI
  22. [23]Zhenhua Lin and Hongtu Zhu. MFPCA: Multiscale functional principal component analysis. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 4320–4327, 2019. doi: 10.1609/aaai.v33i01.33014320.DOI
  23. [24]Giuseppe Loffredo, Elvira Romano, and Fabrizio Maturo. Random survival forest for censored functional data. Statistics in Medicine, 44(5):e10344, 2025. doi: 10.1002/sim.10344.DOI
  24. [25]J. S. Marron, James O. Ramsay, Laura M. Sangalli, and Anuj Srivastava. Functional data analysis of amplitude and phase variation. Statistical Science, 30(4):468–484, 2015. doi: 10.1214/15-STS524.DOI
  25. [26]Fabrizio Maturo and Annamaria Porreca. Demystifying functional random forests: an explainability framework for functional classification models. Advances in Data Analysis and Classification, 2026a. In press.
  26. [27]Fabrizio Maturo and Annamaria Porreca. Tree-based classification of high-dimensional functional data via feature enrichment. AStA Advances in Statistical Analysis, 2026b. doi: 10.1007/s10182-026-00570-9.DOI
  27. [28]Fabrizio Maturo and Annamaria Porreca. Augmented functional random forests: from classifier construction to bias adjusted importance and stability based feature selection. Journal of Classification, 2026c. doi: 10.1007/s00357-026-09559-0.DOI
  28. [29]Fabrizio Maturo and Rosanna Verde. Pooling random forest and functional data analysis for biomedical signals supervised classification: Theory and application to electrocardiogram data. Statistics in Medicine, 41(12):2247–2275, 2022. doi: 10.1002/sim.9353.DOI
  29. [30]Fabrizio Maturo and Rosanna Verde. Supervised classification of curves via a combined use of functional data analysis and tree-based methods. Computational Statistics, 38(1):419–459, 2023. doi: 10.1007/s00180-022-01236-1.DOI
  30. [31]Fabrizio Maturo and Rosanna Verde. Combining unsupervised and supervised learning techniques for enhancing the performance of functional data classifiers. Computational Statistics, 39(1):239–270, 2024. doi: 10.1007/s00180-022-01259-8.
  31. [32]Matthew Middlehurst, James Large, and Anthony Bagnall. The canonical interval forest (CIF) classifier for time series classification. In 2020 IEEE International Conference on Big Data (Big Data), pages 188–195, 2020. doi: 10.1109/BigData50022.2020.9378424.DOI
  32. [33]Matthew Middlehurst, James Large, Michael Flynn, Jason Lines, Aaron Bostrom, and Anthony Bagnall. HIVE-COTE 2.0: a new meta ensemble for time series classification. Machine Learning, 110:3211–3243, 2021. doi: 10.1007/s10994-021-06057-9.DOI
  33. [34]Annette Möller, Gerhard Tutz, and Jan Gerthkeiss. Random forests for functional covariates. Journal of Chemometrics, 30(12):715–725, 2016. doi: 10.1002/cem.2849.DOI
  34. [35]Claude Nadeau and Yoshua Bengio. Inference for the generalization error. Machine Learning, 52(3):239–281, 2003. doi: 10.1023/A:1024068626366.DOI
  35. [36]Alessia Pini and Simone Vantini. Interval-wise testing for functional data. Journal of Nonparametric Statistics, 29(2):407–424, 2017. doi: 10.1080/10485252.2017.1306627.DOI
  36. [37]Cristian Preda, Gilbert Saporta, and Caroline Lévéder. PLS classification of functional data. Computational Statistics, 22(2):223–235, 2007. doi: 10.1007/s00180-007-0041-4.DOI
  37. [38]Philipp Probst, Marvin N. Wright, and Anne-Laure Boulesteix. Hyperparameters and tuning strategies for random forest. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery, 9(3):e1301, 2019. doi: 10.1002/widm.1301.DOI
  38. [39]James O. Ramsay and Bernard W. Silverman. Functional Data Analysis. Springer, New York, 2 edition, 2005. doi: 10.1007/b98888.DOI
  39. [40]Donato Riccio, Fabrizio Maturo, and Elvira Romano. Supervised learning via ensembles of diverse functional representations: the functional voting classifier. Statistics and Computing, 34:191, 2024. doi: 10.1007/s11222-024-10503-8.
  40. [41]Donato Riccio, Fabrizio Maturo, and Elvira Romano. Randomized spline trees for functional data classification: theory and application to environmental time series. Statistical Papers, 2026. In press.
  41. [42]Mark J. van der Laan, Eric C. Polley, and Alan E. Hubbard. Super learner. Statistical Applications in Genetics and Molecular Biology, 6(1):Article 25, 2007. doi: 10.2202/1544-6115.1309.DOI
  42. [43]David H. Wolpert. Stacked generalization. Neural Networks, 5(2):241–259, 1992. doi: 10.1016/S0893-6080(05)80023-1.DOI
  43. [44]Marvin N. Wright and Andreas Ziegler. ranger: A fast implementation of random forests for high dimensional data in C++ and R. Journal of Statistical Software, 77(1):1–17, 2017. doi: 10.18637/jss.v077.i01.
  44. [45]Fangrong Yan, Xiao Lin, Ruosha Li, and Xuelin Huang. Functional principal components analysis on moving time windows of longitudinal data: dynamic prediction of times to event. Journal of the Royal Statistical Society: Series C (Applied Statistics), 67(4):961–978, 2018. doi: 10.1111/rssc.12264.

Paper details

vlnc:W_rxrc2cqa
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 10

downloads · 1

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

generative AI tools

View statement
Looking for related papers…
Contents