Time Series Domain Adaptation via Sparse Associative Structure Alignment

Ruichu Cai, Jiawei Chen, Zijian Li, Wei Chen, Keli Zhang, Junjian Ye, Zhuozhang Li, Xiaoyan Yang, Zhenjie Zhang

Abstract

Unsupervised domain adaptation for time series data faces significant challenges due to temporal offsets and varying time lags between variables across different domains. Traditional methods focusing on raw feature alignment often fail to capture underlying invariant mechanisms. This paper introduces SASA (Sparse Associative Structure Alignment), a novel framework that shifts the focus from aligning feature representations to aligning sparse associative structures. By extracting and aligning the "causal-like" relationships between variables, SASA achieves superior performance on diverse real-world tasks, including fault detection, air quality forecasting, and mortality prediction.

Introduction

Domain adaptation aims to leverage knowledge from a labeled source domain to improve performance on an unlabeled target domain. In the context of multivariate time series, this task is complicated by two primary factors: temporal offsets and varying time lags. Offsets occur when the timing of events differs across domains, while time lags refer to the inconsistent delays in how one variable influences another. Standard alignment techniques, such as Maximum Mean Discrepancy (MMD) applied to RNN-extracted features, often struggle because they attempt to align point-in-time values rather than the underlying dynamics, leading to overfitting on domain-specific noise.

Illustration of temporal offsets and time lags in source and target domains.

Methodology

SASA addresses these challenges through a three-stage process designed to distill domain-invariant mechanisms rather than raw data representations:

  • Adaptive Segment Summarization: To mitigate the impact of temporal offsets, SASA employs an intra-variable attention mechanism using sparsemax. This allows the model to identify and "zoom in" on the most relevant segments of each variable's sequence, regardless of their starting position.
  • Sparse Associative Structure Discovery: To handle varying time lags, the model uses an inter-variable attention mechanism. It calculates associations between pairs of variables across multiple time lags, generating a structure matrix ($\beta$) that represents the interaction dynamics.
  • Sparse Associative Structure Alignment: The core innovation lies in aligning these structure matrices. By minimizing the MMD between the source and target associative structures, SASA captures the stable relationships that define the underlying system behavior across domains.
Comparison of causal and associative structures, highlighting domain-invariant and domain-specific associations.

Experiments and Results

The framework was evaluated on three diverse real-world datasets:

  1. Boiler Fault Detection: Predicting rare valve failures across different boilers. SASA achieved an average AUC of 84.53%, significantly outperforming the next best baseline, VRADA (82.55%).
  2. Air Quality Forecast: Predicting PM2.5 levels across four cities. SASA reduced the average Root Mean Square Error (RMSE) to 29.54, compared to 32.04 for VRADA.
  3. In-hospital Mortality Prediction (MIMIC-III): Transferring knowledge across patient age groups. SASA reached an average AUC of 79.16%, outperforming all other state-of-the-art methods.

Ablation studies confirmed that both segment restriction and structural alignment are essential for the model's success; removing either component led to a noticeable drop in performance.

Conclusion

SASA demonstrates that aligning the "way variables talk to each other" (the associative structure) is a more robust strategy for time series domain adaptation than aligning raw data content. By leveraging sparsity to ignore redundant noise and focusing on stable associative structures, the model achieves state-of-the-art results across industrial, environmental, and medical domains. Future work may involve incorporating formal causal discovery to further enhance interpretability and scaling the model to handle higher-dimensional sensor data.

Summary updated

BibTeX
@inproceedings{cai2021time,
  author = {Ruichu Cai and Jiawei Chen and Zijian Li and Wei Chen and Keli Zhang and Junjian Ye and Zhuozhang Li and Xiaoyan Yang and Zhenjie Zhang},
  title = {{Time Series Domain Adaptation via Sparse Associative Structure Alignment}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i8.16846},
}
Figure