TL;DR
Raw IoT sensor data is like a massive wall of Morse code—full of tiny pings, completely devoid of high-level meaning. This paper shows how a team of off-the-shelf Small and Large Language Models (SLMs and LLMs) can work together in a structured assembly line to translate raw smart-home sensor triggers into meaningful human activities, all without fine-tuning a single model weight. Even better: giving compact models narrowly focused "specialist" jobs lets a small final model perform nearly as well as a giant one.
What Problem Does This Paper Address?
Imagine trying to reconstruct someone's daily routine solely by looking at a spreadsheet of timestamps and motion-sensor IDs (M003: ON, D002: OPEN). Fields like Process Mining (PM)—which analyzes event logs to map out workflows and routines—choke on this kind of granular noise. Before you can analyze a process, you face the event abstraction problem: turning low-level sensor blips into high-level semantic labels like Meal_Preparation or Sleeping.
Supervised machine learning handles this well if you have heaps of labeled training data and a sensor layout that never changes. Language models offer a tempting zero-shot alternative (meaning no task-specific parameter training), using common-sense reasoning via prompts. However, most prior work dumps the entire sensor stream onto a single LLM, or pairs an LM with a traditionally trained classifier. The authors ask: Can we break this translation problem down and solve it collaboratively using a pipeline of off-the-shelf language models?
Methods
Instead of asking one monolithic model to do everything, the authors build a modular, five-stage semantic assembly line for Human Activity Recognition (HAR):
- Semantic Mapping: Deterministic code translates raw sensor states into plain text (e.g., mapping a triggered kitchen sensor to a statement indicating movement in the kitchen) in 25-reading windows.
- Semantic Aggregation: A compact SLM (
Gemma 3n E4B) summarizes those 25 text lines into a concise movement description. - Temporal & Contextual Aggregation: The same SLM summarizes the previous five windows and attaches deterministic clock data (time of day, duration).
- Specialized Reasoning: Two reasoning-enabled SLMs (
DeepSeek-R1-0528-Qwen3-8B) act as domain specialists to untangle frequently confused activities—one tacklesRelaxvs.Housekeeping, the otherMeal_Preparationvs.Wash_Dishes. - Decision & Abstraction: A final classifier—either a larger LLM (
Qwen3 32B) or an 8B SLM—weighs the current movement, history, recent predictions, and specialist rationales to output one activity label.
The authors test 11 pipeline variations (V1–V11) to isolate the impact of text summaries, history, specialist models, and final classifier size.
Datasets
The authors evaluate their zero-shot pipelines on the public CASAS Aruba smart-home dataset, which logs motion and door-contact sensors for a single resident across eight target activities. No new benchmarks are introduced, and no data is used to update model weights. However, a 1,196-reading excerpt is used to design prompts, a 1.5-day slice (6,165 readings) compares the 11 configurations, and a 1-week slice (21,574 evaluated readings) tests the chosen pipeline.
Key Insights and Ideas
- Too many generalists spoil the broth: Adding three general-purpose SLMs to vote/advise on the whole task (V6) actually degraded performance compared to using no auxiliary predictors at all (V5). Collaboration only shines when auxiliary models are given narrow, complementary specialist roles (V7).
- Small models need middle managers; big models can read the manual: When the authors took the activity-specific tips out of the specialist models and pasted them directly into the final classifier's prompt, the 32B LLM handled it just fine (V7 vs. V10). The 8B SLM, however, struggled unless separate specialist models pre-digested those distinctions first (V9 vs. V11—where
Wash_DishesF1 jumped by 0.361 with specialists). - Compression beats raw history: Preliminary tests showed that feeding a compressed summary of the last five windows outperformed dumping full, detailed historical descriptions into the prompt (76.51% vs. 51.59% accuracy).
Key Results
Across the 1.5-day ablation study, structured collaboration steadily climbed the leaderboard:
- Raw data to summaries: Feeding raw sensor logs to the 32B LLM (V1) yielded a 0.471 macro F1. Mapping sensors to text and adding an SLM history summary (V3) pushed macro F1 to 0.623.
- Specialists vs. Generalists: Generalist helpers dropped macro F1 to 0.543 (V6), while two focused specialists boosted it to the highest overall score of 0.659 (0.827 accuracy) with the 32B classifier (V7).
- Swapping in an SLM boss: Replacing the 32B final decision-maker with an 8B SLM alongside specialists (V9) retained nearly all the performance at 0.643 macro F1 (0.794 accuracy).
- One-week run & ML context: Over a full week, V9 achieved 0.6615 accuracy, 0.5673 macro F1, and 0.6801 weighted F1. Long, distinct activities like
Work(0.866 F1) andSleeping(0.842 F1) scored well, while brief ones likeBed_to_Toilet(0.123 F1) suffered. Conventional trained ML models still win on pure accuracy on Aruba (prior studies hit ~0.77–0.88 accuracy), positioning this zero-shot pipeline as a flexible, training-free alternative rather than a pure accuracy upgrade.
Limitations and Future Work
- Data overlap & scale: Evaluation covers one resident in one home, and the 1-week run was executed only once (requiring ~4,000 API calls across 808 windows) while overlapping with the earlier development/comparison days rather than using a strictly held-out test set.
- Rigid windowing & manual design: Fixed 25-reading windows swallow up quick activities like
Bed_to_Toilet, and specialist roles were hand-crafted after spotting errors during development. - No edge or downstream PM metrics yet: Models were called via cloud API (latency and energy weren't measured), and the authors stopped at generating labels rather than running Process Mining algorithms on the resulting logs. Future work aims to test adaptive windowing, dynamic specialist routing, new sensor layouts/modalities, and actual downstream process discovery.
Summary updated