tsseg.algorithms.tire package
TIRE — Time-Invariant Representation for change point detection.
Description
TIRE learns a compact representation by training ensembles of parallel autoencoders in both the time domain (TD) and frequency domain (FD). The shared latent dimensions across autoencoders capture the time-invariant signal statistics while the private dimensions capture time-varying noise. A dissimilarity curve is computed from the shared representations and peaks in this curve indicate change points.
By tuning the loss weights and latent dimensions for each domain you can control whether the detector focuses on amplitude changes (TD) or spectral changes (FD) or both.
Parameters
Name |
Type |
Default |
Description |
|---|---|---|---|
|
int |
|
Sliding window size (>= 4). |
|
int |
|
Stride between consecutive windows. |
|
str |
|
Domain(s) for representation learning ( |
|
int |
|
Hidden dim of TD autoencoder (0 = skip intermediate layer). |
|
int |
|
Latent dim of TD autoencoder. |
|
int |
|
Number of shared latent dims (TD). |
|
int |
|
Number of parallel TD autoencoders. |
|
float |
|
Loss weight for TD component. |
|
int |
|
Hidden dim of FD autoencoder. |
|
int |
|
Latent dim of FD autoencoder. |
|
int |
|
Number of shared latent dims (FD). |
|
int |
|
Number of parallel FD autoencoders. |
|
float |
|
Loss weight for FD component. |
|
int |
|
FFT size for frequency-domain windows. |
|
str |
|
Normalisation scope ( |
|
float |
|
Min fraction of series length between peaks. |
|
int |
|
Maximum training epochs. |
|
int |
|
Early-stopping patience. |
|
float |
|
Optimiser learning rate. |
|
int / None |
|
Number of segments (overrides peak detection). |
|
int |
|
Time axis. |
|
int / None |
|
Random seed. |
Usage
from tsseg.algorithms import TireDetector
detector = TireDetector(window_size=30, domain="both", n_segments=5)
labels = detector.fit_predict(X)
Implementation: Origin: new code.
Reference: De Ryck, De Vos, Bertrand & Verhoest (2021), Change Point Detection in Time Series Data Using Autoencoders with a Time-Invariant Representation, IEEE TSIPN.