Abstract
Detecting anomalies in multivariate time series (MTS) data is a critical task for decentralized systems such as IoT sensor networks and wearable healthcare devices. However, traditional centralized approaches face significant challenges regarding data privacy, communication bandwidth, and data heterogeneity (non-IID data). This paper introduces Fed-ExDNN, a novel federated learning framework designed to identify abnormal patterns across decentralized devices without sharing raw data. By utilizing an exemplar-based local neural network and a server-side constrained clustering mechanism, Fed-ExDNN effectively learns a global representation of "normal" behavior even when individual devices observe only biased, fragmented subsets of the data.
1. Introduction
Anomaly detection in multivariate time series is essential for applications ranging from industrial safety to personalized health monitoring. While Federated Learning (FL) has emerged as a solution for training models on sensitive, distributed data, it faces a major hurdle: Data Heterogeneity. In real-world scenarios, what constitutes "normal" behavior varies significantly between users. For instance, a wearable device for an elderly user may define normal as walking or sitting, whereas a younger user's device may include running. Standard federated averaging (FedAvg) often fails in these cases, as the global model may incorrectly flag a legitimate activity (like running) as an anomaly simply because it was underrepresented in the aggregate training set.
Fed-ExDNN addresses these challenges by moving away from traditional reconstruction-based models and focusing on a robust, exemplar-based representation that can be aligned and merged across a distributed network.
2. The Fed-ExDNN Framework
The framework consists of two primary components: the local Exemplar-based Deep Neural Network (ExDNN) and the central Federated Constrained Clustering (FedCC) server.
2.1 Local Device: ExDNN
Traditional anomaly detection often relies on autoencoders that measure reconstruction error. However, reconstruction is computationally expensive for edge devices and often struggles with multi-modal data. ExDNN replaces the decoder with an Exemplar Module:
- LSTM Encoder: Captures the temporal dependencies and "flow" of the multivariate time series.
- Exemplar Module: Maintains a set of learnable "stars" (parameters) in the feature space that represent various modes of normal behavior.
- Deep Relation Preserving (DRP) Loss: A novel loss function that ensures the model learns meaningful representations by preserving local similarities in the data. This eliminates the need for a decoder, reducing the model's parameter count and computational footprint.
- Absolute Score Loss: This term forces the model to assign high similarity scores to normal data relative to the exemplars, ensuring a reliable and interpretable anomaly score.
2.2 Central Server: FedCC
When local models are trained on heterogeneous data, their internal representations (exemplars) tend to drift apart. To solve this, the authors propose FedCC, a "smart aggregator" that performs the following:
- Alignment: It learns a projection to align local exemplars from different devices into a common space.
- Constrained Clustering: It merges these aligned local patterns into a unified global set of exemplars. This global set represents the "total" normal space across the entire federation, ensuring that a behavior normal to one user is not flagged as an anomaly for another.
3. Experimental Evaluation
The framework was evaluated against state-of-the-art methods (including USAD, Deep SVDD, and DAGMM) across six diverse MTS datasets: 2D Gesture, ECG5000, SWaT (Industrial IoT), HAR Laying, AerobicDigits, and UWave.
3.1 Key Results
- Superior Accuracy: Fed-ExDNN consistently outperformed existing methods. Most notably, it achieved a 4.58% improvement in AUC on the AerobicDigits dataset compared to the previous state-of-the-art.
- Robustness to Contamination: In real-world settings, training data is rarely "pure" and often contains hidden anomalies. Fed-ExDNN’s balanced loss term demonstrated high stability in contamination studies, whereas the performance of competing models dropped significantly when noise was introduced.
- Efficiency: By removing the reconstruction decoder, ExDNN significantly reduced the number of parameters transmitted over the network. This makes the framework highly suitable for low-bandwidth IoT applications and resource-constrained edge devices.
4. Discussion and Future Work
Fed-ExDNN demonstrates that exemplar-based learning is a powerful alternative to reconstruction-based anomaly detection in federated settings. By focusing on alignment rather than simple averaging, the framework successfully navigates the non-IID data problem.
Despite its success, some limitations remain. The number of exemplars ($K$) currently requires manual tuning for different datasets. Additionally, while the framework is efficient, future research could explore replacing the LSTM backbone with more advanced temporal architectures, such as Transformers, to capture even more complex patterns in high-dimensional time series data.
5. Conclusion
Fed-ExDNN provides a robust, privacy-preserving, and communication-efficient solution for anomaly detection in decentralized environments. By aligning local "normal" behaviors into a comprehensive global model, it overcomes the fragmentation of data inherent in the Internet of Things, setting a new benchmark for federated multivariate time series analysis.
Summary updated