Sensor2Text: Enabling Natural Language Interactions for Daily Activity Tracking Using Wearable Sensors

Wenqiang Chen, Jiaxuan Cheng, Leyao Wang, Wei Zhao, Wojciech Matusik

Introduction

Monitoring daily activities is a cornerstone of modern healthcare, particularly for elderly care, rehabilitation, and chronic disease management. However, current monitoring technologies face a significant "privacy vs. utility" deadlock. Video-based systems offer high information density, allowing for complex natural language queries (e.g., "Did the patient take their medication?"), but they are inherently invasive and fail in low-light conditions or occluded environments. Conversely, wearable sensors—such as Inertial Measurement Units (IMUs) and Electromyography (EMG) bands—offer superior privacy and environmental robustness but suffer from low information density. Historically, mapping these abstract signals into the rich, conversational domain of Large Language Models (LLMs) has been hindered by a lack of large-scale, paired sensor-to-natural-language datasets.

Sensor2Text is a novel framework designed to bridge this gap. By aligning sensor embeddings with vision-language models through a teacher-student training approach, the system transforms wearable data into a format understandable by LLMs, effectively turning activity trackers into conversational agents.

Methodology

The Sensor2Text architecture employs a multi-stage approach to translate raw sensor signals into natural language descriptions and responses:

  1. Sensor Encoding: A Transformer-based encoder utilizes 1D convolutional tokenizers to process diverse modalities, including body tracking, EMG, and eye-tracking data.
  2. Teacher-Student Alignment: To circumvent the scarcity of labeled sensor-text data, the framework uses ImageBind—a high-performance vision-language model—as a "teacher." The sensor encoder is trained to produce embeddings that align with the visual embeddings of the same activity, allowing the model to effectively "see" the activity through sensor data.
  3. The Q-former Bridge: A Querying Transformer (Q-former) acts as a bottleneck, distilling high-dimensional sensor features into a fixed set of tokens compatible with the LLM’s input space.
  4. Language Decoding: The system integrates a pre-trained LLaMA-7B model to generate natural language responses based on the distilled sensor tokens.

Two-Stage Finetuning

The model undergoes a rigorous training process to ensure both descriptive accuracy and conversational fluidity:

  • Stage 1 (Cross-Modal Alignment): The model learns to generate basic descriptions (captioning) of activities.
  • Stage 2 (Instruction Finetuning): To enable complex reasoning without a dedicated "sensor-chat" dataset, the authors leverage the LLaVA-Instruct visual dataset. Because the sensor embeddings are already aligned with visual ones, the model can inherit the reasoning and conversational capabilities of vision-based assistants.

Experimental Setup and Datasets

The framework was evaluated using two primary datasets representing different levels of sensor density:

  • ActionSense: A high-density dataset featuring subjects performing kitchen tasks. It includes synchronized video, Xsens body tracking, EMG (muscle activation), and eye tracking.
  • MMAct: A lower-density dataset focused on real-world feasibility, utilizing only smartphone and smartwatch IMU data (accelerometer and gyroscope).

Key Insights

Visual Knowledge Transfer

The primary innovation of Sensor2Text is the realization that massive sensor-text datasets are not a prerequisite for natural language interaction. By forcing sensor data into the same latent space as video, the model inherits the descriptive power and semantic understanding of established vision models.

Temporal and Contextual Awareness

By providing the LLM with a sequence of time-ordered sensor embeddings, Sensor2Text can reason about the duration and sequence of events. For example, the model can estimate the time remaining for a specific task, such as peeling a vegetable, based on the detected motion patterns.

The Privacy-Detail Trade-off

The research quantifies the relationship between sensor density and information loss. While IMUs (smartwatches) provide the highest level of privacy, they can lead to "hallucinations" regarding fine-grained details, such as the specific shape of an object. High-density sensors, like full-body suits, provide detail levels comparable to video but are less practical for daily wear.

Results and Performance

Sensor2Text demonstrates performance that rivals state-of-the-art video-based models. On the ActionSense dataset, the framework achieved a BLEU-4 score of 67.5 and a CIDEr score of 62.2, comparable to fine-tuned vision models like VideoLLaMA.

Crucially, Sensor2Text exhibits superior robustness in challenging environments. In tests involving poor lighting or unfavorable camera angles, traditional vision models (including GPT-4) often failed or hallucinated. Sensor2Text remained accurate because its inputs—motion and muscle signals—are unaffected by visual conditions. Furthermore, the model demonstrated zero-shot instruction following, answering complex spatial and contextual questions (e.g., "Is the cabinet above or below the person?") despite never being trained on sensor-specific conversation data.

Limitations and Future Work

Despite its success, several challenges remain for the deployment of Sensor2Text:

  • Computational Requirements: Running a 7B-parameter LLM is currently too resource-intensive for on-device processing. Future work will explore smaller, distilled LLMs for edge deployment.
  • Teacher Dependency: The initial alignment phase still requires paired video and sensor data, which limits the ability to utilize unlabelled "in-the-wild" sensor data.
  • Fine-Grained Recognition: With low-density sensors (IMUs), the model occasionally struggles to identify specific objects, sometimes guessing a common object (like a phone) when the motion pattern is ambiguous.

Future research will focus on developing larger-scale sensor-video datasets to improve generalization and exploring edge-compatible architectures to bring conversational activity tracking directly to wearable devices.

Summary updated

BibTeX
@article{chen2024sensor,
  author = {Wenqiang Chen and Jiaxuan Cheng and Leyao Wang and Wei Zhao and Wojciech Matusik},
  title = {{Sensor2Text: Enabling Natural Language Interactions for Daily Activity Tracking Using Wearable Sensors}},
  journal = {Proc. ACM Interact. Mob. Wearable Ubiquitous Technol.},
  year = {2024},
  doi = {10.1145/3699747},
}
Figure