Skip to main content
QUICK REVIEW

[Paper Review] Federated Multi-task Hierarchical Attention Model for Sensor Analytics

Yujing Chen, Yue Ning|arXiv (Cornell University)|May 13, 2019
Anomaly Detection Techniques and ApplicationsComputer Science25 references3 citations
TL;DR

This paper proposes FATHOM, a federated multi-task hierarchical attention model that jointly learns from multiple heterogeneous sensors while preserving data privacy. By combining sensor-specific attention with central time attention via LSTMs, it improves performance on activity recognition and environment monitoring tasks, outperforming state-of-the-art baselines in both classification and regression settings.

ABSTRACT

Sensors are an integral part of modern Internet of Things (IoT) applications. There is a critical need for the analysis of heterogeneous multivariate temporal data obtained from the individual sensors of these systems. In this paper we particularly focus on the problem of the scarce amount of training data available per sensor. We propose a novel federated multi-task hierarchical attention model (FATHOM) that jointly trains classification/regression models from multiple sensors. The attention mechanism of the proposed model seeks to extract feature representations from the input and learn a shared representation focused on time dimensions across multiple sensors. The underlying temporal and non-linear relationships are modeled using a combination of attention mechanism and long-short term memory (LSTM) networks. We find that our proposed method outperforms a wide range of competitive baselines in both classification and regression settings on activity recognition and environment monitoring datasets. We further provide visualization of feature representations learned by our model at the input sensor level and central time level.

Motivation & Objective

  • Address the challenge of limited training data per sensor in IoT applications.
  • Enable privacy-preserving, distributed learning across multiple sensors and users.
  • Improve model generalization by learning shared representations across tasks using attention mechanisms.
  • Capture both intra-sensor feature correlations and inter-task temporal dependencies in multivariate time series.
  • Provide interpretable feature representations through visualization of attention weights.

Proposed method

  • Proposes a federated multi-task learning framework where data remains on local devices and only model updates are shared.
  • Employs sensor-specific attention layers to model inter-feature correlations within each individual sensor's time series.
  • Introduces a central time attention mechanism that aggregates representations across all tasks along the time dimension.
  • Combines hierarchical attention with bidirectional LSTMs to model long-term temporal dependencies and non-linear relationships.
  • Uses a shared global parameter server to coordinate model updates while preserving client data privacy.
  • Applies multi-head attention to dynamically weigh the importance of different features and time steps across tasks.

Experimental results

Research questions

  • RQ1Can a federated multi-task learning approach improve model performance when training data per sensor is scarce?
  • RQ2How effectively can hierarchical attention mechanisms capture both intra-sensor and inter-task relationships in multivariate sensor data?
  • RQ3To what extent does the central time attention mechanism enhance predictive performance by preserving temporal context?
  • RQ4Can the attention mechanism produce interpretable and semantically meaningful feature representations in sensor analytics?
  • RQ5How does FATHOM compare to state-of-the-art models in classification and regression tasks on real-world sensor datasets?

Key findings

  • FATHOM outperforms a wide range of competitive baselines in both classification and regression tasks on the Extrasensory and Air Quality datasets.
  • The inclusion of central time attention alone improves performance, demonstrating its effectiveness in preserving temporal context.
  • Sensor-specific attention layers successfully identify relevant features—such as accelerometers, microphones, and magnetometers—correlated with specific activities like walking or talking.
  • In air quality prediction, temperature and humidity received the highest attention weights in short-term forecasting, while wind speed dominated in long-term predictions (240 hours), aligning with real-world dispersion dynamics.
  • Visualization of attention matrices revealed strong correlations between attention spikes and ground-truth labels, confirming the model's ability to focus on relevant, non-noisy features.
  • The model achieves improved generalization by learning shared representations across tasks without prior assumptions about task relationships.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.