SensorLLM: Aligning Large Language Models with Motion Sensors for Human Activity Recognition

Zechen Li, Shohreh Deldari, Linyao Chen, Hao Xue, Flora D. Salim
10/14/2024
83 citations
cs.CL

No official code found. Best implementation: cruiseresearchgroup/SensorLLM (115 stars, Python, MIT, last commit 2025-11-28).

Abstract

We introduce SensorLLM, a two-stage framework that enables Large Language Models (LLMs) to perform human activity recognition (HAR) from sensor time-series data. Despite their strong reasoning and generalization capabilities, LLMs remain underutilized for motion sensor data due to the lack of semantic context in time-series, computational constraints, and challenges in processing numerical inputs.

Show full abstract

SensorLLM addresses these limitations through a Sensor-Language Alignment stage, where the model aligns sensor inputs with trend descriptions. Special tokens are introduced to mark channel boundaries. This alignment enables LLMs to capture numerical variations, channel-specific features, and data of varying durations, without requiring human annotations. In the subsequent Task-Aware Tuning stage, we refine the model for HAR classification, achieving performance that matches or surpasses state-of-the-art methods. Our results demonstrate that SensorLLM evolves into an effective sensor learner, reasoner, and classifier through human-intuitive Sensor-Language Alignment, generalizing across diverse HAR datasets. We believe this work establishes a foundation for future research on time-series and text alignment, paving the way for foundation models in sensor data analysis. Our codes are available at https://github.com/zechenli03/SensorLLM.

View on arXivView PDF

Code Implementations(1)

MIT

[EMNLP 2025] Official implementation of "SensorLLM: Aligning Large Language Models with Motion Sensors for Human Activity Recognition"

11525Python, Jupyter NotebookOct 12, 20241 years agoMIT
alignmenthuman-activity-recognitionlarge-language-modelsmultimodaltime-series-classification+1 more

Similar Papers

Cite this paper

@article{li2024sensorllm,
  title  = {SensorLLM: Aligning Large Language Models with Motion Sensors for Human Activity Recognition},
  author = {Zechen Li and Shohreh Deldari and Linyao Chen and Hao Xue and Flora D. Salim},
  year   = {2024},
  eprint = {2410.10624},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.10624v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.10624.svg)](https://codeofpaper.com/paper/2410.10624)

Discussion