Abstract
Analyzing Internet of Things (IoT) sensor data is often hindered by the limited amount of labeled training data available on individual devices. This paper presents FATHOM, a federated multi-task learning framework designed to jointly train models across multiple sensors while maintaining data localization. FATHOM employs a hierarchical attention mechanism that captures both sensor-specific feature importance and shared global temporal patterns. Experimental results on real-world datasets demonstrate that FATHOM significantly outperforms single-task and standard multi-task baselines, providing both superior predictive accuracy and high model interpretability.
Introduction
Modern IoT applications generate vast quantities of multivariate time-series data from diverse sources such as wearables and environmental sensors. However, individual nodes frequently lack sufficient labeled data to train robust machine learning models. Centralizing this data for joint training is often infeasible due to high communication overhead and privacy concerns. FATHOM addresses this by enabling collaborative learning across distributed, data-scarce sensors without requiring the exchange of raw data.
Methodology: The FATHOM Framework
The Federated Multi-task Hierarchical Attention Model (FATHOM) treats each distributed node as a distinct task within a multi-task learning paradigm. The architecture integrates Long Short-Term Memory (LSTM) networks with two levels of attention:
- Sensor-Specific Attention (Local): Each client node employs an attention mechanism to weight input features (individual sensors) based on their relevance to the specific task. This produces a context vector for a local LSTM to model temporal dependencies.
- Central Time Attention (Global): Hidden states from local LSTMs are aggregated at a central server. A second attention layer operates across the time dimension to identify shared temporal correlations across all tasks. This global temporal context is then returned to local nodes for final task-specific predictions.
Experimental Evaluation
FATHOM was evaluated on two distinct multi-modal sensor datasets:
- ExtraSensory Dataset: Classification of 51 human activities using mobile and smartwatch data from 40 users. Each user is treated as a separate task.
- Air Quality Dataset: Regression of pollutant concentrations (PM2.5, PM10) using weather data from 9 stations in Beijing over 20-hour and 240-hour windows.
Performance Results
In classification tasks on the ExtraSensory dataset, FATHOM achieved an F1 score of 0.82, significantly higher than the 0.74 achieved by single-task LSTMs. For regression on the Air Quality dataset, FATHOM reached a Symmetric Mean Absolute Percentage Error (SMAPE) of 0.45, outperforming both single-task (0.52) and standard multi-task (0.66) models. Ablation studies confirmed that the central time attention is the most critical component, as its removal led to a drastic drop in F1 score to 0.54.
Interpretability and Physical Insights
A key advantage of FATHOM is its interpretability. The attention weights often align with physical realities. In the Air Quality dataset, the model prioritized temperature and humidity for short-term predictions but shifted focus to wind speed for long-term (240-hour) forecasts, reflecting the role of wind in dispersing urban smog over longer durations.
Conclusion
FATHOM effectively overcomes data scarcity in distributed sensor networks through hierarchical attention. By modeling both local feature relevance and global temporal dynamics, it achieves state-of-the-art performance while remaining interpretable. Future work will focus on handling asynchronous data streams and incorporating formal privacy guarantees like differential privacy to further protect local data during the exchange of hidden states.
Summary updated