Classifying a multivariate time series (MTS)—such as multi-channel EEG recordings, seismic sensor arrays, or multi-asset financial trajectories—requires distinguishing between classes based on both cross-variable correlations and temporal dynamics. Standard Linear Discriminant Analysis (LDA) and Quadratic Discriminant Analysis (QDA) are designed for static vector observations x∈ℝp. When applied directly to an MTS matrix X∈ℝp×T (with p variables observed over T time steps), vectorizing the data into a single pT-dimensional vector destroys the chronological ordering and triggers the curse of dimensionality whenever pT exceeds the sample size N.
Extending discriminant analysis to multivariate time series relies on four primary paradigms: Matrix-Variate Discriminant Analysis, Frequency-Domain (Spectral) Discriminant Analysis, Time-Domain Autoregressive (VAR) Discriminant Analysis, and Functional Linear Discriminant Analysis.
1. Why Vectorized LDA Fails on Multivariate Time Series
Suppose we observe N multivariate time series X1, …, XN, each belonging to one of G classes π1, …, πG. Each observation Xi is a p×T matrix:
Xi=[xi,1, xi,2, …, xi,T]∈ℝp×T
If you flatten Xi into vec(Xi)∈ℝpT, classical LDA must estimate a pooled covariance matrix Σ of size pT×pT, containing ½pT(pT+1) free parameters:
- Singularity (pT≫N): Even for a modest 10-channel sensor recorded over 200 time steps (pT=2000), Σ requires estimating over 2 million parameters. Unless N>2000, the sample covariance matrix is singular and non-invertible.
- Loss of Kronecker Structure: Vectorization treats the covariance between channel j at time t and channel k at time s as an unstructured parameter, ignoring that temporal autocorrelation and spatial cross-channel correlation can be factored separately.
- Phase Sensitivity: Slight time shifts or warping across realizations misalign the vectorized features, degrading linear separability.
2. Core Paradigms of MTS Discriminant Analysis
| Method | Underlying Assumption | Covariance / Parameter Complexity | Best Use Case |
|---|---|---|---|
| Bilinear / 2D-LDA (Kronecker) | Separable spatial (p×p) and temporal (T×T) covariance | O(p2+T2) instead of O(p2T2) | Short, phase-aligned multi-sensor trials (ERP/EEG, gesture recognition) |
| Spectral (Whittle) Discriminant Analysis | Stationary Gaussian processes with distinct spectral density matrices | p×p Hermitian matrix per frequency ωk | Long stationary signals (seismology, acoustics, rotating machinery) |
| Parametric VAR Discriminant Analysis | Processes generated by class-specific Vector Autoregressive models | dp2+½p(p+1) per class (for order d) | Econometrics, physiological feedback systems |
| Functional LDA (fLDA) | Smooth continuous trajectories projected onto basis functions | O(p2K2) where K≪T is the number of basis functions | Irregularly sampled or smooth longitudinal trajectories |
Paradigm A: Matrix-Variate and Bilinear Discriminant Analysis (2D-LDA)
Instead of flattening X∈ℝp×T, Matrix-Variate Discriminant Analysis models X using a Matrix Normal Distribution ℳ풩p,T(Mg, ΣS, ΣT), where the overall pT×pT covariance matrix decomposes via a Kronecker product:
Cov(vec(X))=ΣT⊗ΣS
Here, ΣS∈ℝp×p captures the spatial (cross-channel) covariance, and ΣT∈ℝT×T captures the temporal covariance (often constrained to an AR(1) Toeplitz structure ΣT,(t,s)=ρ∣t−s∣).
The Matrix-Variate Mahalanobis Distance
Under equal Kronecker covariances across classes (ΣS, ΣT), the linear discriminant score for assigning X to class g with mean matrix Mg∈ℝp×T and prior pg is:
δg(X)=−½tr(ΣS−1(X−Mg)ΣT−1(X−Mg)⊤)+log pg
where tr(⋅) denotes the matrix trace.
Two-Directional LDA (2D-LDA)
When dimension reduction is the primary goal, 2D-LDA seeks two projection matrices—a spatial projection L∈ℝp×d1 and a temporal projection R∈ℝT×d2—that map X to a compact core matrix Y=L⊤XR∈ℝd1×d2 by maximizing the generalized Fisher criterion across between-class (SB) and within-class (SW) scatter matrices iteratively via alternating least squares.
Paradigm B: Frequency-Domain (Spectral) Discriminant Analysis
When time series are long and stationary, class differences rarely lie in the time-aligned mean Mg (which is often zero for all classes), but rather in the autocovariance structure Γg(h)=Covg(xt, xt−h). Pioneered by Shumway and Kakizawa, Spectral Discriminant Analysis transforms the MTS into the frequency domain via the Discrete Fourier Transform (DFT):
J(ωk)=(1/√T)∑t=1Txte−i2πωkt, ωk=k/T
For a stationary multivariate process, the DFT vectors J(ωk)∈ℂp at distinct Fourier frequencies ωk are asymptotically independent complex normal random variables with zero mean and covariance equal to the p×p spectral density matrix fg(ωk):
fg(ω)=∑h=−∞∞Γg(h)e−i2πωh
Whittle Likelihood & Kullback-Leibler Discrimination
Because frequencies decouple asymptotically, the high-dimensional pT×pT time-domain covariance problem reduces to T/2 independent p×p Hermitian matrix operations. Using the Whittle log-likelihood or the Chernoff / Kullback-Leibler spectral divergence, a new time series with periodogram I(ωk)=J(ωk)J*(ωk) is assigned to the class g that minimizes the spectral discriminant criterion:
DKL(I‖fg)=(1/M)∑k=1M[tr(I(ωk)fg−1(ωk))+log det fg(ωk)]−log pg
This is mathematically equivalent to Quadratic Discriminant Analysis (QDA) operating on the frequency-domain covariance matrices.
Paradigm C: Time-Domain Parametric (VAR) Discriminant Analysis
When the data-generating mechanism is well-modeled by a Vector Autoregressive process of order d (VAR(d)), each class g is parameterized by its transition matrices {Φg,1, …, Φg,d} and white-noise innovation covariance Σε,g:
xt=μg+∑ℓ=1dΦg,ℓxt−ℓ+εg,t, εg,t∼풩(0, Σε,g)
To classify an unlabeled multivariate series X, you pass it through each class’s estimated VAR(d) filter to compute the one-step-ahead prediction residuals ε̂g,t and assign X to the class maximizing the conditional Gaussian log-likelihood:
ℒg(X)=−((T−d)/2)log det(Σ̂ε,g)−½∑t=d+1Tε̂g,t⊤Σ̂ε,g−1ε̂g,t+log pg
Paradigm D: Functional Linear Discriminant Analysis (fLDA)
When multivariate trajectories are smooth and potentially sampled at irregular time points ti,1, …, ti,Ti, Functional Data Analysis (FDA) treats each sample as a p-dimensional vector of continuous functions 풳i(t)=[Xi,1(t), …, Xi,p(t)]⊤ on t∈[0, 풯].
- Basis Expansion: Project each channel onto a truncated basis of K functions (such as B-splines, wavelets, or Fourier bases) φ(t)=[φ1(t), …, φK(t)]⊤, yielding a coefficient matrix Ci∈ℝp×K.
- Multivariate Functional Principal Component Analysis (MFPCA): Extract the top M eigenfunctions ψm(t) of the cross-covariance operator to regularize the infinite-dimensional space.
- Regularized Fisher Projection: Perform penalized LDA directly on the basis coefficients or MFPCA scores using a roughness penalty λ∫[D2β(t)]2dt to guarantee smooth discriminant weight functions β(t).
3. Selecting the Right Approach in Practice
- Do classes differ in their mean wave shape or in their oscillation/correlation structure?
- If classes differ by their time-locked average trajectory (e.g., an evoked brain response after a stimulus), use Matrix-Variate LDA / 2D-LDA or Functional LDA.
- If all classes have a zero mean and differ by frequency rhythms, volatility, or cross-channel lead-lag relationships (e.g., seizure vs. baseline EEG, fault detection in turbines), mean-based LDA will fail completely; use Spectral (QDA) Discriminant Analysis or VAR Discriminant Analysis.
- Regularization is Mandatory: Even after Kronecker or spectral reduction, when p is large, shrink the spatial or spectral covariance matrices using Ledoit-Wolf shrinkage (Σ̂shrunk=(1−γ)Σ̂+γτIp) or ℓ1-penalized sparse discriminant analysis to prevent overfitting on small sample sizes.
No comments:
Post a Comment