Abstract
Human activity recognition (HAR) has been playing an increasingly important role in various domains such as healthcare, security monitoring, and metaverse gaming. Though numerous HAR methods based on computer vision have been developed to show prominent performance, they still suffer from poor robustness in adverse visual conditions in particular low illumination, which motivates WiFi-based HAR to serve as a good complementary modality. Existing solutions using WiFi and vision modalities rely on massive labeled data that are very cumbersome to collect. In this paper, we propose a novel unsupervised multimodal HAR solution, MaskFi, that leverages only unlabeled video and WiFi activity data for model training. We propose a new algorithm, masked WiFi-vision modeling (MI2M), that enables the model to learn cross-modal and single-modal features by predicting the masked sections in representation learning. Benefiting from our unsupervised learning procedure, the network requires only a small amount of annotated data for finetuning and can adapt to the new environment with better performance. We conduct extensive experiments on two WiFi-vision datasets collected in-house, and our method achieves human activity recognition and human identification in terms of both robustness and accuracy.
Introduction
Human Activity Recognition (HAR) is a cornerstone of modern smart environments, healthcare monitoring, and the emerging metaverse. Currently, the field relies on two primary sensing modalities: Computer Vision and WiFi Sensing (Channel State Information - CSI). While vision-based systems offer high detail, they frequently fail in low-light conditions or raise significant privacy concerns. Conversely, WiFi sensing is robust to lighting and inherently privacy-friendly but suffers from low resolution and is difficult for humans to interpret.
Combining these modalities (multimodal HAR) offers a robust solution, yet existing methods face a significant "data wall." They typically require massive amounts of synchronized, manually labeled WiFi and video data for every new environment—a process that is tedious, expensive, and often impractical for real-world deployment. MaskFi addresses this challenge by learning powerful representations from entirely unlabeled data.
The MaskFi Framework
The core innovation of MaskFi is its ability to learn from unlabeled data through a self-supervised approach. The framework operates in two distinct stages: an unsupervised pretraining stage and a supervised finetuning stage.
In the pretraining stage, the model utilizes large-scale unlabeled video and WiFi CSI data to learn the underlying correlations between visual movements and wireless signal disturbances. By treating WiFi and Vision as two different "views" of the same physical reality, the model learns to map them into a shared feature space. This stage is entirely label-free, significantly reducing the barrier to deployment in new environments.
Technical Architecture: Masked WiFi-vision Modeling (MI2M)
The engine behind MaskFi is the Masked WiFi-vision Modeling (MI2M) algorithm. This approach forces the model to "fill in the blanks" across modalities, ensuring it captures deep cross-modal relationships.
1. Pretraining Phase (Unsupervised)
- Tokenization: Raw WiFi signals and video frames are converted into discrete "tokens" using a discrete Variational Autoencoder (dVAE). This creates a common vocabulary for movement patterns across both modalities.
- Masking: The system randomly masks approximately 40% of these tokens.
- Joint Encoding: A Transformer-based encoder processes the remaining visible tokens. To successfully predict the missing (masked) tokens, the model must learn how specific WiFi signal patterns correlate with specific visual limb movements.
- Reconstruction: A decoder is trained to reconstruct the original tokens of the masked sections, minimizing cross-entropy loss.
2. Finetuning Phase (Supervised)
After pretraining, the model possesses a deep understanding of human motion. It then requires only a minimal amount of labeled data (e.g., one minute per class) to map these learned representations to specific actions like "running" or "sitting." During this phase, a Gated Recurrent Unit (GRU) is integrated to capture the temporal dynamics of actions, followed by a linear classifier for final prediction.
Experimental Evaluation
The researchers evaluated MaskFi using two primary datasets:
- WV-Lab: An in-house dataset featuring 22 volunteers performing 6 daily actions across various environments, including specific tests for dark conditions.
- MM-Fi: A large-scale public multimodal dataset with 40 volunteers and 27 complex action categories, such as lunges and jumping.
Key Results and Insights
MaskFi demonstrates state-of-the-art performance across several metrics:
- High Accuracy: The model achieved an average accuracy of 97.61% on the WV-Lab dataset and 96.82% on the more complex MM-Fi dataset.
- Robustness in Darkness: In pitch-black conditions, MaskFi maintained 92.17% accuracy. This significantly outperforms vision-only models, which effectively fail when illumination is removed.
- Data Efficiency: By leveraging unsupervised pretraining, MaskFi achieves superior performance using only a fraction of the labeled data required by traditional supervised methods.
- Human Identification: Beyond activity recognition, the model proved highly effective at human identification. WiFi CSI captures unique body shapes and gait signatures, allowing the model to distinguish individuals even when faces are obscured or lighting is poor.
Conclusion
MaskFi represents a significant step forward in multimodal HAR by breaking the dependency on massive labeled datasets. Its masked modeling approach allows it to learn robust, transferable features that excel in challenging environments. Future work will focus on incorporating temporal masking during pretraining and extending the framework to handle multi-person scenarios and additional sensor modalities like mmWave radar.
Summary updated