Finding the Missing Data: A BERT-Inspired Approach Against Package Loss in Wireless Sensing

Zijian Zhao, Tingwei Chen, Fanyi Meng, Hang Li, Xiaoyang Li, Guangxu Zhu

TL;DR

CSI-BERT is a novel deep learning framework that uses a Transformer-based architecture to recover missing Wi-Fi Channel State Information (CSI) data caused by packet loss. By treating wireless signals as a continuous "language" and employing self-supervised adversarial training, it significantly outperforms traditional interpolation methods and boosts the accuracy of downstream sensing tasks (like gesture recognition) by an average of 15%.

What Problem Does This Paper Address?

Wi-Fi sensing relies on Channel State Information (CSI)—fine-grained data that describes how signals propagate, reflect, and scatter off objects and people. Think of it as a high-frequency "fingerprint" of the environment. However, in real-world deployments, packet loss is rampant due to interference, weak signals, or hardware glitches.

This loss creates gaps in the time series, resulting in non-continuous data that breaks most machine learning models, which typically require fixed-dimension inputs. While researchers often use simple interpolation (like linear or Kriging) to fill these gaps, these methods are "CSI-blind"—they don't understand the complex physical relationships between different subcarriers or the temporal context of human movement.

Methods

The authors introduce CSI-BERT, adapting the famous Bidirectional Encoder Representations from Transformers (BERT) architecture for the wireless domain.

Overview of the Proposed CSI-BERT Framework

Key technical innovations include:

  • Continuous Embedding Layer: Unlike standard NLP BERT, which uses discrete word tokens, CSI-BERT employs a linear layer and a standardization layer to process continuous CSI amplitude and phase values directly.
  • Time Embedding: To handle irregular sampling intervals, the model incorporates absolute timestamps into the embedding, allowing it to understand when a packet was received, not just its position in a sequence.
  • Self-Supervised Pre-training: The model is trained using a Masked Language Model (MLM) approach. It randomly masks 15% to 70% of the CSI data and learns to reconstruct the missing parts.
  • Adversarial Learning: A discriminator network is used during training to distinguish between real and recovered CSI. This forces the generator (the "Recoverer") to produce signals that are not just mathematically close, but physically realistic and coherent.
  • "Recover" vs. "Replace" Strategies: The authors propose two ways to use the model: "Recover" fills only the missing gaps, while "Replace" lets the model regenerate the entire sequence to ensure maximum global coherence.

Datasets

The researchers introduced a new dataset called WiGesture, collected using low-cost ESP32S3 microcontrollers.

  • Setup: 100Hz sampling rate, 2.4 GHz carrier frequency, in a cluttered conference room.
  • Content: Data from 8 volunteers performing 6 gestures (e.g., waving, clapping, moving forward/backward).
  • Characteristics: The dataset exhibits an average packet loss rate of 14.51%, with some segments losing up to 70% of data, providing a rigorous testbed for recovery algorithms.

Key Insights and Ideas

  • Transformers for Continuous Signals: The success of CSI-BERT proves that the contextual "understanding" of Transformers isn't limited to discrete text; it can be effectively mapped to multi-dimensional physical signals.
  • The Failure of Vanilla BERT: An ablation study showed that a standard BERT model (designed for NLP) fails to capture valuable information in CSI, producing overly smoothed results. The custom embedding and standardization layers are critical for signal data.
  • Coherence Over Point-Accuracy: By using a discriminator, the model prioritizes the "shape" and "flow" of the signal. This is often more important for sensing tasks than minimizing point-by-point error, as human gestures are defined by patterns over time.
Comparison of original CSI vs. BERT and CSI-BERT outputs

Key Results

  • Superior Recovery: CSI-BERT achieved a Mean Squared Error (MSE) of 1.73, significantly lower than Linear Interpolation (2.82) and Ordinary Kriging (3.60).
  • Downstream Performance Boost: When recovered data was fed into other models like ResNet, action classification accuracy jumped from ~70% (with original, lossy data) to over 92%.
  • Efficiency: Despite its complexity, CSI-BERT is remarkably fast. It recovered data in 0.03 minutes, whereas Ordinary Kriging took over 45 minutes for the same task, making CSI-BERT viable for near-real-time applications.

Limitations and Future Work

While CSI-BERT shows impressive results, the authors note a few areas for growth:

  • Generalization: The current model was tested in a specific conference room environment. Future work could explore how well these pre-trained weights transfer to entirely different physical layouts or different wireless protocols (like 5G).
  • Complexity vs. Benefit: While the "Replace" method offers the best shape similarity, it modifies the original "real" data points. Investigating the trade-offs between signal fidelity and sensing accuracy in edge cases remains an open question.
  • Hardware Constraints: Although inference is fast, training a Transformer-based model requires significant GPU resources (the authors used an RTX 3090), which might be a barrier for some researchers.

Summary updated

BibTeX
@inproceedings{zhao2024finding,
  author = {Zijian Zhao and Tingwei Chen and Fanyi Meng and Hang Li and Xiaoyang Li and Guangxu Zhu},
  title = {{Finding the Missing Data: A BERT-Inspired Approach Against Package Loss in Wireless Sensing}},
  booktitle = {Workshops @ INFOCOM},
  year = {2024},
  doi = {10.1109/infocomwkshps61880.2024.10620769},
}
Figure