Federated Self-Supervised Learning of Multi-Sensor Representations for Embedded Intelligence

Aaqib Saeed, Flora D. Salim, Tanir Özçelebi, Johan Lukkien · DOI

Abstract

Smartphones, wearables, and Internet of Things (IoT) devices produce a wealth of data that cannot be accumulated in a centralized repository for learning supervised models due to privacy, bandwidth limitations, and the prohibitive cost of annotations. Federated learning provides a compelling framework for learning models from decentralized data, but conventionally, it assumes the availability of labeled samples, whereas on-device data are generally either unlabeled or cannot be annotated readily through user interaction. To address these issues, we propose a self-supervised approach termed scalogram-signal correspondence learning based on wavelet transform to learn useful representations from unlabeled sensor inputs, such as electroencephalography, blood volume pulse, accelerometer, and WiFi channel state information. Our auxiliary task requires a deep temporal neural network to determine if a given pair of a signal and its complementary viewpoint (i.e., a scalogram generated with a wavelet transform) align with each other or not through optimizing a contrastive objective. We extensively assess the quality of learned features with our multi-view strategy on diverse public datasets, achieving strong performance in all domains. We demonstrate the effectiveness of representations learned from an unlabeled input collection on downstream tasks with training a linear classifier over pretrained network, usefulness in low-data regime, transfer learning, and cross-validation. Our methodology achieves competitive performance with fully-supervised networks, and it outperforms pre-training with autoencoders in both central and federated contexts. Notably, it improves the generalization in a semi-supervised setting as it reduces the volume of labeled data required through leveraging self-supervised learning.

Introduction

Deep learning has revolutionized sensor analytics in domains like sleep tracking and activity recognition. However, deploying these models in real-world IoT environments faces two major hurdles: the labeling bottleneck and the privacy/bandwidth wall. Most sensor data generated by wearables is unlabeled, and manual annotation is often impractical or prohibitively expensive. Furthermore, moving raw, sensitive health data to a central server violates user privacy and consumes significant bandwidth.

While Federated Learning (FL) allows models to be trained on decentralized data, it traditionally assumes that data is already labeled. This paper introduces a framework for training deep learning models on multi-sensor IoT data without requiring manual labels or centralizing private data by combining FL with a novel self-supervised pretext task.

Methods: Scalogram-Signal Correspondence Learning

The core innovation is Scalogram-Signal Correspondence Learning (SSCL). The framework utilizes a "pretext task" where a neural network learns to identify if a raw 1D signal and its corresponding 2D scalogram (a visual representation of frequency over time generated via a Continuous Wavelet Transform) belong together.

Example of a raw EEG signal and its corresponding wavelet-based scalogram.

The Scalogram Contrastive Network (SCN)

The architecture consists of a dual-stream network. One stream, the Signal Network, processes the raw 1D temporal signal, while the Scalogram Network processes the 2D scalogram. The model is trained using a contrastive objective: "positive" pairs (a signal and its own scalogram) are pulled closer in the embedding space, while "negative" pairs (mismatched signals and scalograms) are pushed apart.

The Scalogram Contrastive Network (SCN) architecture and its sub-networks.

Federated Integration

Training is distributed using the Federated Averaging (FedAvg) algorithm. Local devices perform self-supervised training on their own unlabeled data, and only the model weights—not the raw data—are sent to a central server for aggregation. This preserves privacy while enabling collaborative learning.

Experimental Evaluation

The approach was evaluated across five diverse public datasets: Sleep-EDF (EEG), HHAR & MobiAct (Accelerometer/Gyroscope), WiFi-CSI (Activity sensing), and WESAD (Physiological signals).

Key Insights

  • Wavelets vs. Fourier: Wavelet Transforms were chosen over the standard Fourier Transform (STFT) because they provide better localization of non-stationary signals, which is crucial for "bursty" sensor data like heart rate spikes.
  • SSL as a "Warm Start": Self-supervised pre-training provides a superior initialization compared to random weights. When fine-tuned with minimal labeled data, the model reaches high accuracy significantly faster.
  • Low-Data Regime: The method drastically reduces the volume of labeled data required. By first learning the underlying "physics" of the signal through SSL, the model requires fewer examples to master specific classification tasks.

Results

  • Competitive Performance: The self-supervised features (SCN) performed nearly as well as fully supervised models. For instance, on the MobiAct dataset, SCN achieved an F-score of 0.91, compared to 0.95 for a fully supervised model.
  • Superiority over Autoencoders: SCN consistently outperformed traditional unsupervised methods like autoencoders, which often focus on reconstructing noise rather than learning high-level semantic features.
  • Transferability: Features learned on one activity dataset (HHAR) successfully transferred to another (MobiAct), indicating the model learns universal sensor representations.

Conclusion and Future Work

This work demonstrates that privacy-preserving, self-supervised learning is a viable path for IoT intelligence. Future research will address the challenges of Non-IID data (heterogeneity across users), integrate Neural Architecture Search (NAS) to optimize for edge hardware, and explore adversarial robustness to protect federated models from poisoning attacks.

Summary updated

BibTeX
@article{saeed2021federated,
  author = {Aaqib Saeed and Flora D. Salim and Tanir Özçelebi and Johan Lukkien},
  title = {{Federated Self-Supervised Learning of Multi-Sensor Representations for Embedded Intelligence}},
  journal = {IEEE Internet of Things Journal},
  year = {2021},
  url = {https://openreview.net/forum?id=tSKJz0ehZNQ},
}
Figure