Efficient Unsupervised Domain Adaptation Regression for Spatial-Temporal Sensor Fusion

Keivan Faghih Niresi, Ismail Nejjar, Olga Fink

TL;DR

This paper introduces TikUDA, a novel unsupervised domain adaptation method for spatial-temporal regression tasks. It effectively bridges the gap between sensor data from different environments or subjects without requiring labeled data in the target domain, leading to more robust and transferable sensor fusion models.

What Problem Does This Paper Address?

The proliferation of low-cost sensor networks in environmental monitoring and biomedical applications has enabled large-scale data collection. However, these sensors are prone to drift, noise, and calibration issues, leading to degraded data quality and limiting the reliability of traditional machine learning models. Existing methods often struggle with adapting to distribution shifts that occur when models are deployed in new environments or on different subjects. This necessitates expensive recalibration or retraining with new labeled data. The paper addresses the critical need for efficient domain adaptation techniques that can leverage existing labeled data to build robust models for new, unlabeled target domains, thereby reducing costs and improving applicability.

Methods

The core of the proposed solution is TikUDA (Tikhonov-regularized Unsupervised Domain Adaptation). This method builds upon the idea of aligning feature representations from source and target domains by focusing on their Gram matrices.

Here's a breakdown of the key methodological contributions:

  • Spatial-Temporal Feature Extractor: The paper utilizes a Spatial-Temporal Graph Neural Network (STGNN) architecture. This model first extracts temporal patterns using a Gated Recurrent Unit (GRU) and then captures spatial relationships using a Graph Attention Network (GAT). This time-then-space approach is chosen for its effectiveness in modeling complex sensor interactions.
  • TikUDA for Domain Adaptation:
    • Inverse Tikhonov Matrix: Instead of directly aligning features, TikUDA aligns the inverse of the Gram matrix of the features. To address the ill-conditioning issues that arise when the number of features exceeds the number of samples, a Tikhonov matrix is introduced by adding a scaled identity matrix ($\alpha I$) to the Gram matrix. This ensures the matrix is full-rank and invertible.
  • Angle and Scale Alignment: The method aligns the feature representations by focusing on two aspects:
  • Angle Alignment: It uses a novel Haversine Similarity (HS) metric to measure the angle difference between the subspaces of the source and target domains. HS is preferred over cosine similarity for its increased sensitivity to small angle differences, crucial for distinguishing nearly parallel vectors.
  • Scale Alignment: It aligns the largest principal eigenvalue of the inverse Tikhonov matrices. This is a computationally efficient way to address scale differences, as the largest eigenvalue significantly influences feature scaling.
  • Computational Efficiency: A key advantage of TikUDA is its computational efficiency. It avoids expensive Singular Value Decomposition (SVD) by using the power method to approximate the largest eigenvalue and Cholesky decomposition for matrix inversion, making it scalable for large-scale sensor networks.
  • Total Loss Function: The overall training objective combines the supervised loss on the source domain ($L_{src}$) with the angle ($L_{angle}$) and scale ($L_{scale}$) alignment losses, controlled by hyperparameters $\gamma_{angle}$ and $\gamma_{scale}$.

Datasets

The proposed method was evaluated on two distinct real-world datasets:

  • Air Quality Sensor Networks: Two datasets from IoT air quality sensor networks were used, located in Monte Cucco (R-69) and Osio Sotto (R-212) in Italy. These networks provided measurements from low-cost O3, NO2, temperature, and humidity sensors, alongside data from nearby reference stations for ground truth. The datasets were chosen to represent a significant distribution shift due to geographical distance.
  • Electroencephalography (EEG) Signals: An EEG dataset was used to evaluate the method's performance in a biomedical context. This dataset involved reconstructing a missing EEG channel (FP1) using data from other channels. The study specifically set up a challenging cross-subject domain adaptation scenario by using Subject 33 as the source and Subject 00 as the target, simulating a real-world scenario with a malfunctioning EEG cap for the target subject.

Key Insights and Ideas

  • Gram Matrix Alignment for Regression: The paper demonstrates that aligning Gram matrices (or their inverses) is a powerful strategy for domain adaptation in regression tasks, going beyond feature-level alignment.
  • Haversine Similarity for Angle Alignment: The introduction of Haversine Similarity as a metric for angle alignment proves more effective than cosine similarity, especially for subtle angular differences, leading to better cross-domain generalization.
  • Computational Efficiency is Key: The core innovation of TikUDA lies in its computational efficiency. By leveraging the power method and Cholesky decomposition, it significantly reduces the overhead associated with traditional SVD-based domain adaptation methods, making it practical for large-scale IoT deployments.
  • Spatial-Temporal Fusion is Crucial: The integration of STGNNs with domain adaptation highlights the importance of jointly modeling spatial and temporal dependencies for robust sensor fusion.

Key Results

  • State-of-the-Art Performance: TikUDA consistently achieved state-of-the-art performance across both air quality and EEG datasets, outperforming several established domain adaptation methods.
  • Air Quality: For air quality prediction, TikUDA achieved an average RMSE of 0.105 and an average MAE of 0.078, significantly outperforming the source-only baseline and competitive methods like DARE-GRAM.
  • EEG: In the EEG reconstruction task, TikUDA achieved the lowest RMSE of 0.178 and MAE of 0.130, demonstrating its effectiveness in handling inter-subject variability and missing data.
  • Improved Alignment: PCA visualizations and energy distance metrics confirmed that TikUDA achieved superior alignment of feature distributions between source and target domains compared to baseline and other adaptation methods.
  • Computational Speedup: Figure 9 shows that TikUDA is significantly faster than DARE-GRAM, especially as the hidden dimensions of the model increase, highlighting its scalability.

Limitations and Future Work

  • Model Agnosticism: The authors note that TikUDA is inherently model-agnostic and can be applied to various backbone architectures beyond STGNNs, such as CNNs and Vision Transformers. Future work could explore its performance with these architectures.
  • Alternative Regularization: Investigating alternative regularization techniques beyond ridge regression that still yield closed-form solutions for inverse problems could further enhance performance.
  • Heterogeneous Sensor Configurations: The current framework assumes similar sensor configurations between domains. Future work could explore adaptive techniques to enable flexible alignment even with differing graph sizes or sensor setups.
  • Hyperparameter Sensitivity: While the paper shows robustness to the $\alpha$ parameter, the impact of $\gamma_{scale}$ and $\gamma_{angle}$ on performance was explored, with $\gamma_{scale}$ showing more sensitivity. Further analysis on hyperparameter tuning strategies could be beneficial.

Summary updated

BibTeX
@article{niresi2025efficient,
  author = {Keivan Faghih Niresi and Ismail Nejjar and Olga Fink},
  title = {{Efficient Unsupervised Domain Adaptation Regression for Spatial-Temporal Sensor Fusion}},
  journal = {IEEE Internet of Things Journal},
  year = {2025},
  doi = {10.1109/jiot.2025.3597150},
}
Figure