tsseg.algorithms.e2usd package
E2USD — Efficient-yet-Effective Unsupervised State Detection.
Description
E2USD combines two key ideas for scalable, accurate unsupervised state detection in multivariate time series:
DDEM (Decomposed Dual-view Embedding Module) — a lightweight encoder that compresses sliding windows into low-dimensional representations using FFT-based compression and a decomposed contrastive learning objective.
DPGMM clustering — a Dirichlet Process Gaussian Mixture Model that automatically determines the number of states from the learned embeddings.
A False Negative Cancellation Contrastive Learning method (FNCCLearning) is used to counteract false negatives and produce cluster-friendly embedding spaces.
Parameters
Name |
Type |
Default |
Description |
|---|---|---|---|
|
int |
|
Size of the sliding window. |
|
int |
|
Step size of the sliding window. |
|
int |
|
Maximum number of states for DPGMM clustering. |
|
float |
|
Concentration parameter for DPGMM. |
|
int |
|
Training batch size. |
|
int |
|
Number of optimisation steps. |
|
float |
|
Learning rate. |
|
int |
|
Depth of the DDEM encoder network. |
|
int |
|
Number of output channels of the encoder. |
|
int |
|
Dimension of the CNN output before the final linear layer. |
|
int |
|
Kernel size for CNN convolutions. |
|
bool / None |
|
Force GPU usage ( |
|
int / None |
|
Random seed. |
|
int |
|
Time axis. |
Usage
from tsseg.algorithms import E2USDDetector
detector = E2USDDetector(window_size=256, n_states=10, nb_steps=20)
states = detector.fit_predict(X)
Implementation: Adapted from AI4CTS/E2Usd. No licence found in original repository.
Reference: Lai, Zhao, Li, Qian, Zhang & Jensen (2024), E2Usd: Efficient-yet-effective Unsupervised State Detection for Multivariate Time Series, WWW.