Collaborative Language Models for Semantic IoT Data Processing: Validation through Zero-Shot Human Activity Recognition
Authors: Mohsen Shirali, Kean Ooi, Anna Knab, Mohammadreza Fani Sani, Estefania Serral
Organizations: Research Centre for Information Systems Engineering (LIRIS), KU Leuven, Brussels 1000, Belgium · Microsoft Development Center Copenhagen, Copenhagen, Denmark
Internet of Things (IoT) systems generate low-level sensor observations that are not directly suitable for process analysis and must first be transformed into semantically meaningful events. This paper investigates collaborative language models as a zero-shot semantic abstraction layer for converting such observations into higher-level event and activity labels. We propose a five-stage workflow comprising semantic mapping, semantic aggregation, temporal and contextual aggregation, specialized reasoning, and final event abstraction. The resulting labels and contextual information can subsequently be represented as event records for downstream Process Mining (PM) tasks. The approach is evaluated through Human Activity Recognition on the CASAS Aruba smart home dataset using eleven workflow configurations. The experiments show that collaboration alone does not guarantee improved performance: general-purpose auxiliary SLMs can degrade recognition, whereas assigning complementary specialist roles leads to better results and allows a smaller final classifier to retain much of the performance of a larger model. The selected workflow achieves a macro F1 of 0.643 in the 1.5-day comparison and 0.567 (weighted F1 0.680) in a one-week evaluation. Although trained ML approaches remain more accurate on this dataset, the results demonstrate a different design point: modular semantic event abstraction using off-the-shelf models without task-specific parameter fine-tuning. The findings indicate that the structure of LM collaboration and task decomposition is more important than simply increasing the number of participating models.
Figures & tables
Figure 1: Five-stage collaborative LM framework for semantic IoT event abstraction and its instantiation for HAR. The resulting activity labels can contribute to event records for PM.
Version
Input and collaborative components
Final model
V1
Raw sensor observations
LLM
V2
Deterministically mapped sensor descriptions
LLM
V3
V2 + SLM-generated history summary
LLM
V4
SLM-generated description of the current window
LLM
V5
V4 + SLM-generated history summary
LLM
V6
V5 + outputs of three general-purpose SLM predictors
LLM
Table 1: Evaluated workflow configurations.
Version
Accuracy
Macro F1
Weighted F1
V1
0.568 ± 0.015
0.471 ± 0.012
0.556 ± 0.014
V2
0.656 ± 0.016
0.546 ± 0.004
0.677 ± 0.014
V3
0.752 ± 0.040
0.623 ± 0.045
0.764 ± 0.036
V4
0.766 ± 0.013
0.594 ± 0.032
0.774 ± 0.007
V5
0.768 ± 0.012
0.598 ± 0.033
0.774 ± 0.012
V6
0.704 ± 0.031
0.543 ± 0.013
0.711 ± 0.036
Table 2: Mean ± standard deviation of the workflow configurations over three runs (five for V9 and V11).
Activity
Accuracy
Recall
F1
Work
0.9821
0.9021
0.8657
Housekeeping
0.8360
0.8078
0.6627
Sleeping
0.9713
0.7518
0.8424
Meal_Preparation
0.8527
0.6555
0.7073
Relax
0.8817
0.5822
0.7048
Eating
0.9412
0.4507
0.4782
Table 3: Activity-level performance of V9 over one week. Accuracy is one-vs-rest for each activity over all 21,574 evaluated readings; recall is the share of the activity’s readings correctly recognised.
Wi-Fi-based human activity recognition has advanced substantially, but most existing methods assume a closed set of activities and require labeled Wi-Fi samples for every target class, limiting their ability to recognize unseen activities. We present Zero-Fi, a contrastive signal-language alignment framework for zero-shot Wi-Fi-based human activity recognition. Zero-Fi learns unified representations from complementary Wi-Fi signal features and aligns them with the semantic representations of natural-language activity descriptions in a shared embedding space. This cross-modal alignment enables Zero-Fi to recognize new activity classes without requiring labeled Wi-Fi samples or model adaptation for those classes. Experiments on large-scale public benchmark datasets demonstrate effective zero-shot recognition of held-out activity classes, highlighting the potential of signal-language alignment to extend Wi-Fi sensing beyond predefined activity classes.
Yitong Shen, Cheng Guo, Peiliang Wang +5
University of South Florida · University of North Carolina at Charlotte
Human activity recognition serves as the foundation for various emerging applications. In recent years, researchers have used collaborative sensing of multi-source sensors to capture complex and dynamic human activities. However, multimodal human activity sensing typically encounters highly heterogeneous data across modalities and label scarcity, resulting in an application gap between existing solutions and real-world needs. In this paper, we propose CLMM, a general contrastive learning framework for human activity recognition that achieves effective multimodal recognition with limited labeled data. CLMM employs a novel two-stage training strategy. In the first stage, CLMM employs a CNN-DiffTransformer encoder to capture cross-modal shared information by extracting local and global features. Meanwhile, a hard-positive samples weighting algorithm enhances gradient propagation to reinforce shared learning. In the second stage, a dual-branch architecture combining quality-guided attention and bidirectional gated units captures modality-specific information, while a primary-auxiliary collaborative training strategy fuses both shared and modality-specific information. Experimental results on three public datasets demonstrate that CLMM significantly improves state-of-the-art baselines in both recognition accuracy and convergence performance.
Long Jing, Zhixiong Yang, Yajun Zhang +1
College of Computer Science, Northwest University, Xi’an, China · Xinjiang University, Urumqi, China
Sequential or time-stamped interaction logs provide objective records of digital application usage, yet their granularity and noise often obscure meaningful insights into people's work. Such insights are essential for improving digital products in ways grounded in real-world user interactions. Prior research has applied deep learning models to cluster user actions into high-level activities, but these approaches are highly sensitive to noise and struggle to generalize across applications. To address this limitation, we introduce WorkflowView, a framework that uses large language models (LLMs) to abstract low-level action sequences into high-level activities. We establish the effectiveness and generality of our approach across three distinct, challenging sequential tasks and diverse domains: (a) zero-shot task description reconstruction from browser logs (achieving high semantic similarity, μsim=0.91), (b) few-shot student dropout prediction using MOOC interaction logs (reaching weighted F1=0.90 with only five few-shot examples), and (c) anonymized, privacy-preserving analysis of AI tool integration within document workflows in Microsoft Word. Our work demonstrates that LLM-based abstraction is a robust and efficient path forward for transforming low-level behavioral data into high-level, interpretable, and actionable insights. We also discuss practical considerations for deploying LLM-based inferences within logging infrastructures, including computational efficiency and user privacy.