Leveraging Foundation Models for Zero-Shot IoT Sensing

Dinghao Xue, Xiaoran Fan, Tao Chen, Guohao Lan, Qun Song

IoT sensing has seen significant advances through deep learning, enabling applications from health monitoring to smart home automation. However, a major bottleneck remains: the reliance on supervised learning. Traditional models can only recognize activities present in their training sets. In dynamic real-world environments, IoT devices frequently encounter "unseen" activities. Labeling data for every possible human action is impractical. This paper introduces a framework for Zero-Shot Learning (ZSL) in IoT, leveraging the semantic power of Foundation Models (FMs) like CLIP and GPT.

The Proposed Framework

The authors propose a multi-stage pipeline designed for efficient edge-cloud cooperation. The framework coordinates heavy-duty semantic reasoning in the cloud with low-latency detection at the edge.

The proposed multi-stage pipeline for zero-shot IoT sensing, including prototype extraction, embedding alignment, and edge-cloud classification.

The framework consists of four key components:

  1. Class Prototype Extraction: Uses a dual-prompting strategy. "Hard prompts" (generated by GPT-3.5) describe the physical attributes of actions, while "soft prompts" are learnable vectors that adapt to specific datasets. A cross-attention mechanism fuses these to focus on the most relevant physical descriptions.
  2. IoT Embedding Extraction: A Vision Transformer-based extractor projects raw sensor signals into a semantic space shared with the FM's text embeddings.
  3. Model Training: Employs supervised contrastive learning and GAN-based data augmentation to synthesize features for unseen classes. This allows the model to "practice" on unseen data before deployment, mitigating the common "seen-class bias" in ZSL.
  4. Zero-Shot Classification: An edge-cloud architecture where edge devices perform initial open-set detection. If an activity is recognized as "unseen," its embedding is sent to the cloud for FM-based classification.

Bridging the Gap with Physics

A core innovation of this work is using Large Language Models (LLMs) to translate raw sensor data into physical descriptions. Unlike images, IoT signals follow rigid physical laws. By asking an LLM to describe the physics of an action (e.g., the vertical movement and feet leaving the ground in "Jumping Up"), the model gains a semantic anchor that links abstract labels to raw signal patterns.

Comparison of raw IMU signals for different activities alongside LLM-generated physical descriptions used as hard prompts to bridge the gap between sensors and semantics.

Experimental Results

The framework was evaluated across three diverse IoT sensing benchmarks: USC-HAD (IMU), PAMAP2 (multi-location IMU), and MM-Fi (mmWave radar and Wi-Fi CSI).

  • Performance: On the USC-HAD dataset, the model achieved a Harmonic Mean accuracy (ACC_H) of 61.1%, significantly outperforming BERT-based baselines (52.2%) and generative models like FREE (23.2%).
  • Robustness: The distance-based open-set detection achieved F1-scores between 73% and 88%, effectively filtering known from unknown activities.
  • Versatility: The approach proved modality-agnostic, maintaining high performance across motion-based (IMU) and radio-based (Wi-Fi, mmWave) sensors.

Conclusion

This work demonstrates that Foundation Models can be effectively "plugged" into non-visual IoT sensing tasks. By combining physical domain knowledge with generative data augmentation, the framework enables IoT devices to understand the world beyond their training data. While challenges remain regarding explainability and privacy in cloud-based sensing, this research provides a scalable path toward truly intelligent, zero-shot IoT environments.

Summary updated

BibTeX
@inproceedings{xue2024leveraging,
  author = {Dinghao Xue and Xiaoran Fan and Tao Chen and Guohao Lan and Qun Song},
  title = {{Leveraging Foundation Models for Zero-Shot IoT Sensing}},
  booktitle = {ECAI},
  year = {2024},
  doi = {10.3233/faia240942},
}
Figure