betaFeedback

WorksComputer Science

Collaborative Language Models for Semantic IoT Data Processing: Validation through Zero-Shot Human Activity Recognition

Abstract

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.

Introduction

Internet of Things (IoT) technologies continuously generate low-level observations describing movements, device states, physiological signals, environmental conditions, and interactions. Such observations are not directly suitable for Process Mining (PM), which typically relies on event data represented at a meaningful activity level. Consequently, sensor observations must first be transformed into higher-level semantic events before they can support process analysis [39, 9]. This event abstraction problem is particularly relevant for IoT systems, where data are heterogeneous, distributed across sensors, and strongly dependent on temporal and contextual information [26].

Developing IoT-enhanced business processes requires aligning process requirements with the interpretation of low-level data and the integration of devices [31]. Bertrand et al. describe how sensor observations relate to the events and log entries used in PM [5]. We focus on the semantic step that connects observations to process-relevant activity labels.

Language Models (LMs) provide a promising mechanism for this semantic transformation because they can combine textual representations of observations with contextual and domain knowledge through prompting [2, 19]. Recent studies have applied LMs to IoT event abstraction and integration [27], zero-shot recognition of Activities of Daily Living (ADLs) [12], textual representations of smart-home sensor observations [30], and semantic alignment of heterogeneous sensing datasets [38]. However, most existing IoT and HAR approaches rely on a single LM or combine language-based representations with separately trained downstream models [13, 30, 38]. In parallel, research on collaborative LMs has explored pipelines, auxiliary models, routing, task decomposition, and edge–cloud collaboration [11, 20, 23]. How such collaboration can be structured specifically for semantic abstraction of IoT observations remains less explored.

This work investigates that intersection. Rather than asking one model to interpret an entire sensor sequence and directly produce an activity or event label, the proposed framework decomposes semantic abstraction into five complementary stages: semantic mapping, semantic aggregation, temporal and contextual aggregation, specialized reasoning, and final event abstraction. The resulting semantic labels can constitute the activity component of event records and, together with appropriate timestamps, case/object identifiers, and contextual attributes, support subsequent event log construction and process analysis. Our focus is therefore the semantic abstraction step that precedes PM (the effect of the generated events on downstream process discovery or conformance analysis is outside the scope of the present evaluation).

The objective is not to replace conventional supervised HAR when sufficient labelled data and stable deployment conditions are available. Existing trained approaches achieve higher recognition performance on the Aruba dataset [37, 30]. Instead, we investigate a different design point: whether off-the-shelf LMs can perform semantic abstraction without task-specific parameter fine-tuning, while allowing contextual and domain knowledge to be introduced through prompts and distributed among specialized components. Accordingly, zero-shot in this paper refers to the absence of task-specific parameter training or fine-tuning; labelled development observations are still used for workflow design and performance evaluation.

We evaluate the approach through an exploratory Human Activity Recognition (HAR) case study using the publicly available CASAS Aruba smart-home dataset [14]. HAR provides a concrete abstraction problem in which sequences of low-level sensor activations must be mapped to higher-level activity labels. Eleven workflow configurations are compared to investigate semantic representation, temporal context, general-purpose versus specialized collaboration, and the capacity of the final decision model. Accordingly, this study addresses the following research questions:

  • RQ1. How can collaborative LMs be organized to transform low-level IoT observations into higher-level semantic events suitable for subsequent process analysis?

  • RQ2. How do general-purpose and specialized collaboration strategies affect recognition performance relative to configurations without auxiliary predictors or specialists?

  • RQ3. To what extent can off-the-shelf LMs perform the abstraction task without task-specific parameter fine-tuning?

  • RQ4. How do semantic representation and the way temporal context is presented in prompts affect activity recognition?

The main contributions are threefold. First, we present a five-stage framework that uses LMs as modular semantic-processing components rather than as a single end-to-end classifier. It separates mapping, aggregation, temporal contextualization, specialized reasoning, and event abstraction so that models communicate through explicit intermediate representations. Second, we compare eleven configurations to examine the roles of those representations, specialist inference, and final classifier capacity. This comparison distinguishes running separate specialists from putting the same activity knowledge directly in the final prompt. Third, we evaluate off-the-shelf models without task-specific parameter fine-tuning, reporting a longer V9 run and considering both the flexibility of this design and its recognition gap relative to trained HAR approaches.

The remainder of the paper reviews related work (§ 2), presents the framework and its HAR instantiation (§ 3), reports the experiments (§ 4), and discusses their implications and limitations (§ 5) before concluding (§ 6).

Background and Related Work

Large Language Models (LLMs) are predominantly transformer-based models pretrained on large text corpora and can perform diverse tasks through prompting and in-context information [32, 19, 2]. Their general-purpose capabilities come with substantial computational, memory, and energy requirements. When these requirements lead to cloud-based inference, deployment also depends on network availability and may introduce communication latency, serving costs, and privacy concerns if sensitive observations leave the local environment [35, 40, 10].

Small Language Models (SLMs) offer a complementary design point. There is no universal parameter threshold separating SLMs from LLMs: published definitions use upper bounds of roughly 5–10 billion parameters, or define smallness by whether a model can run with practical latency on consumer or edge hardware [24, 15, 3]. Here we use SLM to denote models compact enough to be considered for resource-constrained deployment, not to imply that they were deployed locally in this study. Improvements in training, compression, and efficient inference have increased the capabilities of compact models [21, 22, 15]. Their smaller resource requirements make local execution more plausible, but their reasoning and generalization capabilities can be more limited on complex tasks [33, 20].

Collaborative and Hybrid Language-Model Workflows

Collaborative architectures divide inference responsibilities across models through mechanisms such as pipelines, routing, auxiliary models, model fusion, and knowledge transfer [11, 23]. In a pipeline, one model’s output becomes another’s input; routing selects which model to invoke, for example according to uncertainty or resource constraints. LLMCloud uses a smaller model to propose candidate tokens and a larger one to verify them [34]. Hao et al. [20] distribute token-level inference between an edge SLM and a cloud LLM. Ensemble SuperICl instead incorporates predictions and confidence scores from multiple SLMs into the prompt of a larger model [25]. Other hybrid approaches investigate uncertainty-aware routing and federated coordination [29], or jointly optimize model caching and inference offloading [36]. These approaches are largely concerned with NLP inference, computational efficiency, or edge-cloud coordination. Our work instead examines collaboration as a means of semantic task decomposition, in which models progressively transform fine-grained IoT observations into higher-level labels.

Language Models for IoT Event Abstraction and Human Activity Recognition

Event abstraction from sensor data is an established challenge for PM. Reviews of event abstraction and sensor-based PM emphasize that low-level observations often need to be aggregated and relabelled into activities before event logs can support meaningful process analysis [39, 9]. Bertrand et al. survey how process discovery techniques have been applied to sensor-derived data from smart spaces, including homes [4]. In earlier work, Shirali et al. used an LLM to transform heterogeneous IoT observations into higher-level event representations, demonstrating how natural language reasoning can support this abstraction step [27]. For robotic process automation, Fani Sani et al. used LLMs to group and label recorded user interactions, illustrating a related abstraction problem with a different data source [18].

HAR provides a closely related semantic abstraction use case because sequences of sensor activations must be interpreted as higher-level human activities. Cleland et al. investigated fine-tuned and non-fine-tuned LMs for activity recognition in smart environments [13], while Civitarese et al. demonstrated zero- and few-shot recognition of ADLs from textual sensor representations [12]. TDOST converts smart home sensor triggers into textual descriptions for layout-agnostic HAR [30], and LanHAR employs LLM-generated semantic interpretations to improve cross-dataset activity recognition [38]. These studies establish the usefulness of language-based sensor representations, but they predominantly rely on individual LMs or trained downstream components.

The present work connects these research directions by treating semantic abstraction as a collaborative LM workflow. Rather than asking one model to solve the complete sensor-to-activity mapping, we evaluate how semantic representation, temporal aggregation, specialized reasoning, and final abstraction can be distributed across off-the-shelf LMs without task-specific parameter fine-tuning.

Proposed Approach

Overall Approach and Experimental Design

This work investigates whether semantic abstraction of IoT observations can be decomposed into complementary tasks performed collaboratively by multiple LMs. Rather than asking a single model to interpret an entire sequence of low-level observations and directly produce an event label, the proposed framework progressively increases the semantic level through five stages: semantic mapping, semantic aggregation, temporal and contextual aggregation, specialized reasoning, and final decision and abstraction. Figure 1 summarizes the general framework and its instantiation for HAR.

Five-stage collaborative LM framework for semantic IoT event abstraction and its instantiation for HAR

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.

The experiments were designed to investigate not only whether collaboration is beneficial, but also how different forms of collaboration affect the result. Eleven configurations vary the effects of sensor-to-language transformation, temporal context, general-purpose and specialized auxiliary models, and the capacity of the final classifier. All LM components are used through prompting without task-specific parameter fine-tuning. Performance is evaluated using accuracy, macro F1, and weighted F1. Each sensor reading inherits the label predicted for its window, and all metrics are computed at the reading level. Table 3 additionally reports one-vs-rest accuracy and recall for each activity. Macro F1 gives equal importance to each activity, while weighted F1 accounts for class distribution; these metrics are also commonly reported in related HAR studies [13, 37], facilitating contextual comparison.

ActivityAccuracyRecallF1
Work0.98210.90210.8657
Housekeeping0.83600.80780.6627
Sleeping0.97130.75180.8424
Meal_Preparation0.85270.65550.7073
Relax0.88170.58220.7048
Eating0.94120.45070.4782
Bed_to_Toilet0.97820.37080.1231
Wash_Dishes0.87880.24240.1540

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.

HAR Case Study and Data Preparation

The framework is evaluated using the CASAS Aruba smart home dataset, which records the daily activities of a single resident through sensors distributed throughout the home [14]. Each observation contains a timestamp, sensor identifier, and sensor state, together with ground-truth ADL annotations. The ground-truth labels are not used to update the parameters of any LM; they are used during workflow development to compare design choices and during evaluation to measure recognition performance. The evaluated activities are Meal_Preparation, Relax, Eating, Work, Sleeping, Wash_Dishes, Bed_to_Toilet, and Housekeeping.

The inference pipeline uses motion and door-contact observations and skips temperature readings when forming windows. It processes observations chronologically and assigns one activity label to each window. Preliminary development experiments showed that fixed-duration windows produced highly variable numbers of observations, while windows of 50 sensor readings frequently merged short activities with surrounding behavior. We therefore use windows of 25 sensor readings.

The short Enter_Home and Leave_Home activities are not target classes at this granularity; neither are Respirate and unlabelled periods. This does not imply that readings from those periods were filtered out. Of 21,622 input readings in the one-week run, 21,574 were matched to a window with a prediction for reading-level scoring. These include 239 readings from non-target activities (91 Enter_Home, 103 Leave_Home, and 45 Respirate). Such readings do not count toward ground-truth support for the eight target classes, but they remain in the one-vs-rest denominator and can contribute false positives when assigned a target label.

Collaborative Language Models Workflow

Figure 1 defines the five-stage abstraction framework. In the HAR instantiation, Stage 1 converts each sensor state change into a textual statement describing its mapped location and state while preserving the chronological order of the observations; for example, an activation of a sensor installed in the kitchen is represented as a textual statement indicating movement in the kitchen. Timestamps are subsequently used to derive temporal context. In Stage 2, the Gemma 3n E4B model converts the 25 mapped observations of the current window into a concise natural-language description of the resident’s movement. Stage 3 uses the same model to summarize the descriptions of the preceding five windows and supplements them with deterministic temporal information, including the time of day and approximate duration of the current observations.

Stage 4 uses two DeepSeek-R1-0528-Qwen3-8B specialists with reasoning enabled. The specialist roles were defined during workflow development after recurring confusion was observed between Relax and Housekeeping, and between Meal_Preparation and Wash_Dishes. The current implementation does not dynamically route individual windows to experts: both specialists are queried for every window. Each receives the current semantic description and contextual information together with activity-specific guidance, and returns one of its assigned activities or “none”, a confidence estimate, and a short rationale.

In Stage 5, these specialist outputs are not combined through voting or a deterministic conflict-resolution rule. Instead, the final classifier receives the current movement description, temporal summary and context, the five most recent activity predictions, and the structured outputs of both specialists, and produces one activity label. Consequently, conflicting specialist outputs are resolved by the final decision model using the complete context. The selected configuration uses DeepSeek-R1-0528-Qwen3-8B for this stage, whereas the LLM-based configurations use Qwen3 32B with reasoning enabled.

All LM calls were implemented in Python and executed through the OpenRouter API.1 No Aruba observations were used for parameter training or fine-tuning of the participating models.

Workflow Variants and Experimental Protocol

To isolate the contribution of the different processing and collaboration mechanisms, eleven workflow configurations were evaluated. Table 1 summarizes the information supplied to each final classifier. Unless otherwise specified, the LLM classifier is Qwen3 32B with reasoning enabled, while the SLM classifier is DeepSeek-R1-0528-Qwen3-8B.

VersionInput and collaborative componentsFinal model
V1Raw sensor observationsLLM
V2Deterministically mapped sensor descriptionsLLM
V3V2 + SLM-generated history summaryLLM
V4SLM-generated description of the current windowLLM
V5V4 + SLM-generated history summaryLLM
V6V5 + outputs of three general-purpose SLM predictorsLLM
V7V5 + outputs of two specialized SLMsLLM
V8V3 + outputs of two specialized SLMsLLM
V9V5 + outputs of two specialized SLMsSLM
V10V5 + specialist knowledge placed directly in the promptLLM
V11V5 + specialist knowledge placed directly in the promptSLM

Table 1. Evaluated workflow configurations.

The three general-purpose predictors in V6 are Mistral-7B-Instruct, DeepHermes-3-Llama-3-8B, and Gemma2-9B-IT. They receive the same activity recognition task as the final classifier and return a predicted activity, confidence, and short reasoning sentence. V7–V9 instead use the two specialized DeepSeek-R1-0528-Qwen3-8B models described above. V10 and V11 do not run separate specialist models; instead, the activity-specific information used in the specialist prompts is incorporated directly into the final classifier prompt.

Workflow development and evaluation were performed in three phases. First, 1,196 input readings from a morning excerpt on November 6, 2010, were used to develop prompts and select design options such as window size, activity descriptions, and the representation of temporal context. Second, the eleven configurations were compared on 6,165 input readings covering approximately 1.5 days. Each configuration was executed three times (five times for V9 and V11) on the same observations to characterize variation from stochastic LM outputs. The workflow design was iterative: some configurations, particularly the specialist variants, were introduced after observing recurring errors in earlier configurations. The workflow comparison should therefore be interpreted as an exploratory ablation study rather than as an entirely independent model-selection experiment.

Finally, V9 was selected for an extended evaluation on one week of Aruba observations. This experiment was executed once because of computational and API constraints. It provides a broader assessment of the selected configuration, but because the other variants were not rerun over the same week, it does not establish that V9 would remain the best-performing configuration over the longer evaluation period.

Results

Table 2 reports the mean performance of the eleven workflow configurations over three runs (five for V9 and V11) of the 1.5-day evaluation. The results are discussed according to the main design questions: the representation of sensor observations and temporal context, the form of model collaboration, and the capacity of the final decision model.

VersionAccuracyMacro F1Weighted F1
V10.568 ± 0.0150.471 ± 0.0120.556 ± 0.014
V20.656 ± 0.0160.546 ± 0.0040.677 ± 0.014
V30.752 ± 0.0400.623 ± 0.0450.764 ± 0.036
V40.766 ± 0.0130.594 ± 0.0320.774 ± 0.007
V50.768 ± 0.0120.598 ± 0.0330.774 ± 0.012
V60.704 ± 0.0310.543 ± 0.0130.711 ± 0.036
V70.827 ± 0.0180.659 ± 0.0170.838 ± 0.020
V80.783 ± 0.0160.653 ± 0.0650.790 ± 0.018
V90.794 ± 0.0250.643 ± 0.0250.807 ± 0.021
V100.812 ± 0.0310.623 ± 0.0480.815 ± 0.034
V110.768 ± 0.0340.568 ± 0.0270.769 ± 0.036

Table 2. Mean ± standard deviation of the workflow configurations over three runs (five for V9 and V11).

Semantic Representation and Context

The representation of low-level observations has a clear effect on recognition performance. As shown in Table 2, transforming raw sensor observations into mapped textual descriptions (V2) improves performance over V1, while adding a summary of preceding windows (V3) provides a further gain. Using an SLM-generated description of the current window (V4) also improves over the mapped representation. However, combining this representation with temporal summarization in V5 does not consistently outperform V3 or V4, suggesting that semantic aggregation and temporal context provide partly overlapping information.

In preliminary prompt-development runs on the morning excerpt, reading-level accuracy was 21.91% without activity descriptions and 68.56% in the configuration with them. A prompt with detailed descriptions of up to five preceding windows yielded 51.59%, compared with 76.51% in a configuration that used a compressed summary of up to five preceding windows. These were single development runs, not controlled estimates of the effect of individual prompt changes or part of the main workflow comparison.

Collaboration Strategy

The clearest contrast among the collaborative configurations concerns the role assigned to auxiliary models. V6 performs worse than V5 across all metrics, whereas V7, using specialized experts, achieves the best overall performance (Table 2). The comparison therefore indicates that adding models alone is not sufficient; narrowly defined complementary roles are more useful than redundant general-purpose predictions in the tested configurations.

V7 and V8 use the same specialists and temporal summary but differ in the representation of the current observations. V7 uses the SLM-generated movement description, whereas V8 uses the simpler mapped sensor descriptions. Their macro F1 values are similar (0.659 and 0.653), although V7 achieves higher accuracy and weighted F1. This provides some evidence that the richer semantic representation is beneficial when the observations are subsequently processed by smaller specialist models, although the difference is limited.

The comparisons between V7/V10 and V9/V11 further separate specialist reasoning from the additional activity knowledge contained in the specialist prompts. With the 32B final classifier, V7 and V10 perform relatively similarly, suggesting that the larger model can make effective use of the activity-specific knowledge when it is included directly in its prompt. With the 8B final classifier, however, V9 achieves a macro F1 of 0.643 compared with 0.568 for V11. In this setting, running separate specialist models provides a clearer benefit than providing the same activity-specific knowledge only to the final classifier. The largest activity-level improvement in V9 relative to V11 was for Wash_Dishes, whose mean F1 increased by 0.361.

LLM vs. SLM for Final Decision and Abstraction

V7 and V9 use the same collaborative structure but differ in the final classifier. Replacing Qwen3 32B with DeepSeek-R1-0528-Qwen3-8B reduces accuracy from 0.827 to 0.794, macro F1 from 0.659 to 0.643, and weighted F1 from 0.838 to 0.807. With only three to five runs per configuration, small differences should be treated as indicative: in two-sample t-tests, the macro F1 difference between V6 and V7 remains significant after Holm–Bonferroni correction, whereas the differences between V7 and V9 are not statistically significant. This does not establish equivalence between the classifiers. V9 was selected for the extended evaluation because it retained much of V7’s performance while combining specialist collaboration with a smaller final classifier.

Final Workflow Evaluation and Comparison with Existing HAR Approaches

The selected V9 configuration was subsequently evaluated on one week of Aruba observations. It achieved an overall accuracy of 0.6615, a macro F1 of 0.5673, and a weighted F1 of 0.6801. These values are lower than those obtained for V9 during the shorter workflow comparison period (0.794, 0.643, and 0.807, respectively).

Table 3 shows the activity-level results. Performance varies substantially across activities. Work and Sleeping achieve the highest F1 scores, whereas Bed_to_Toilet and Wash_Dishes remain difficult. The low result for Bed_to_Toilet is consistent with the limitations of assigning one label to a fixed 25-observation window when an activity is short relative to the surrounding behavior. Wash_Dishes also remains challenging over the longer period despite the improvement associated with the kitchen specialist in the shorter workflow comparison. For infrequent activities such as Bed_to_Toilet, one-vs-rest accuracy is high (0.978) because most readings are true negatives, so recall and F1 are more informative for comparing activities.

For contextual comparison, Yala et al. report an accuracy of 0.8755 and an F1 of 0.6924 on Aruba when excluding unlabelled observations [37], while TDOST reports an accuracy of 0.7723 and weighted F1 of 0.7623 in an experiment that includes unlabelled observations [30]. The proposed workflow therefore does not outperform these trained approaches in recognition accuracy. However, these studies differ in preprocessing, evaluated periods, treatment of unlabelled observations, and training protocols; therefore, the results should not be interpreted as a controlled head-to-head comparison. Their role is to contextualize the recognition performance of the zero-shot collaborative workflow.

Discussion

With respect to RQ1, the experiments show that semantic abstraction can be decomposed into mapping, within-window aggregation, temporal and contextual summarization, specialized reasoning, and final abstraction. The expert-validated IoT–PM bridging model distinguishes this abstraction step from the construction of event log entries [6]. Predicted activities can supply the activity attribute of such entries alongside timestamps and a case notion (e.g., a resident-day). The NICE event log model offers a way to retain links between those entries and their underlying IoT observations [8]. We did not construct or

evaluate such logs in this study.

Regarding RQ2, the results show that collaboration is beneficial only when model responsibilities are appropriately structured. General-purpose predictors in V6 reduced performance, whereas assigning narrowly defined specialist roles produced better results. The comparisons between V7/V10 and V9/V11 further suggest that separate specialist reasoning is more useful when the final classifier has lower capacity: with the 32B classifier, activity-specific knowledge placed directly in the prompt performs relatively close to explicit specialists, whereas the 8B classifier benefits more clearly from separate specialist reasoning. Similarly, replacing the 32B final classifier in V7 with the 8B model in V9 causes only a modest performance decrease within the tested workflow. Together, these findings indicate that task decomposition and complementary model roles are more important than simply increasing the number or size of participating models.

For RQ3, all participating LMs operate without task-specific parameter training or fine-tuning. Because roles are defined through prompts and textual interfaces, a model could in principle be replaced without retraining the entire workflow, provided the replacement satisfies the role’s interface and is evaluated for that role. This is not a quantified saving in training time or computation, nor was development label-free: ground-truth annotations informed choices such as the window configuration and specialist roles.

The results for RQ4 show that both semantic representation and temporal context influence recognition quality. Converting sensor identifiers into explicit textual descriptions improves performance over raw observations, while summarizing past windows provides additional contextual information. The preliminary experiments also indicate that compact summaries are preferable to repeatedly supplying detailed historical observations. These findings suggest that prompt construction and information representation should be regarded as part of the workflow design itself, rather than as secondary implementation choices.

An important question raised by the results is why LMs should be considered when established trained HAR approaches achieve higher accuracy on the same dataset [37, 30]. The proposed workflow is not intended to replace supervised classifiers in settings where sufficient labelled data, a stable sensor configuration, and efficient trained models are already available. In such conditions, conventional ML may remain both more accurate and computationally cheaper. The investigated design point is different: off-the-shelf LMs provide a semantic interface through which heterogeneous observations, contextual information, and task knowledge can be expressed in natural language and distributed across interchangeable components without task-specific fine-tuning. Whether this flexibility justifies the additional inference cost depends on the application and cannot be concluded from classification accuracy alone.

Limitations and Future Work

The evaluation uses one smart-home dataset and one resident, and the one-week experiment was executed only once. The November 4–10 evaluation contains both the November 4–5 workflow comparison and the November 6 morning development excerpt, so it is not an independent held-out test. The fixed 25-observation window can disproportionately affect short activities, such as Bed_to_Toilet, and cannot represent transitions within a window. Specialist roles were also defined manually after observing recurring classification errors. Beyond these design limitations, noisy sensor streams and gaps in activity annotations can complicate abstraction and assessment, consistent with the data quality issues identified for IoT process mining [7].

Future evaluations should use independent test periods, longer and repeated runs, adaptive or transition-aware segmentation, and dynamic specialist selection. In another home, the mapping layer could be adapted to different sensor identifiers and locations while preserving the textual interfaces. The PIR-based eSense Smart Home dataset offers a setting for investigating changes in sensor placement [28]; DAMMI would allow examination of other sensing modalities [17]. In industrial IoT, an analogous workflow could map machine observations to text, summarize their history, and delegate interpretation of specific conditions to specialists before producing process events or machine states. These are architectural propositions, not demonstrated transfer to new homes, residents, or domains.

From a PM perspective, future work should construct event logs from the generated labels and assess their effect on discovery and conformance checking. Context-enriched process discovery from IoT observations [1] and process-mining analyses of variation in daily routines [16] suggest downstream tasks for evaluating the usefulness of the resulting logs.

The modular design could support future edge or real-time implementations by placing some stages near the sensors and invoking a remote model only when needed. In the tested V9 workflow, a window with prior context requires about five LM calls: one for its description, one for the history summary, two for the specialists, and one for the final decision. Across 808 windows this implies roughly 4,000 calls, a workflow estimate rather than a measured request count. All inference in this study used the OpenRouter API, and latency, energy consumption, communication overhead, privacy, and on-device feasibility were not measured.

Conclusion

This paper investigated collaborative language models for semantic abstraction of low-level IoT observations and evaluated the approach through a zero-shot smart home HAR case study. The results show that effective collaboration depends on task decomposition rather than model redundancy: general-purpose auxiliary predictors can degrade performance, whereas narrowly defined specialist roles can support difficult semantic distinctions and help a smaller final model retain much of the performance of a larger classifier. The approach does not outperform established trained HAR methods and is therefore better viewed as a complementary design point for modular semantic abstraction without task-specific parameter fine-tuning. By transforming sensor observations into higher-level semantic labels that can contribute to event-log construction, the framework provides a basis for further investigation of language models for IoT event abstraction and downstream PM.

References

  1. [1]Ahmadi, Z., Shirali, M., De Weerdt, J., Serral, E.: Context-enriched process discovery from IoT data sources for human behavioral monitoring. In: The Practice of Enterprise Modeling. pp. 209–226. Lecture Notes in Business Information Processing, Springer Nature Switzerland (2025). https://doi.org/10.1007/978-3-032-12063-2_14
  2. [2]Annepaka, Y., Pakray, P.: Large language models: A survey of their development, capabilities, and applications. Knowledge and Information Systems 67(3), 2967–3022 (2025). https://doi.org/10.1007/s10115-024-02310-4
  3. [3]Belcak, P., Heinrich, G., Diao, S., Fu, Y., Dong, X., Muralidharan, S., Lin, Y.C., Molchanov, P.: Small language models are the future of agentic AI (2025). https://doi.org/10.48550/arXiv.2506.02153
  4. [4]Bertrand, Y., Van den Abbeele, B., Veneruso, S., Leotta, F., Mecella, M., Serral, E.: A survey on the application of process discovery techniques to smart spaces data. Engineering Applications of Artificial Intelligence 126, 106748 (2023). https://doi.org/10.1016/j.engappai.2023.106748
  5. [5]Bertrand, Y., De Weerdt, J., Serral, E.: A bridging model for process mining and IoT. In: Process Mining Workshops. pp. 98–110. Lecture Notes in Business Information Processing, Springer International Publishing (2022). https://doi.org/10.1007/978-3-030-98581-3_8
  6. [6]Bertrand, Y., De Weerdt, J., Serral, E.: An expert-validated bridging model for IoT process mining. Business & Information Systems Engineering 66(6), 737–756 (2024). https://doi.org/10.1007/s12599-023-00849-0
  7. [7]Bertrand, Y., Van Belle, R., De Weerdt, J., Serral, E.: Defining data quality issues in process mining with IoT data. In: Process Mining Workshops. pp. 422–434. Lecture Notes in Business Information Processing, Springer Nature Switzerland (2023). https://doi.org/10.1007/978-3-031-27815-0_31
  8. [8]Bertrand, Y., Veneruso, S., Leotta, F., Mecella, M., Serral, E.: NICE: The native IoT-centric event log model for process mining. In: Process Mining Workshops. Lecture Notes in Business Information Processing, vol. 503, pp. 32–44. Springer Nature Switzerland (2024). https://doi.org/10.1007/978-3-031-56107-8_3
  9. [9]Brzychczy, E., Aleknonytė-Resch, M., Janssen, D., Koschmider, A.: Process mining on sensor data: A review of related works. Knowledge and Information Systems 67, 4915–4948 (2025). https://doi.org/10.1007/s10115-024-02297-y
  10. [10]Burtsev, M., Reeves, M., Job, A.: The working limitations of large language models. MIT Sloan Management Review 65(2), 8–10 (2024), https://sloanreview.mit.edu/article/the-working-limitations-of-large-language-models/
  11. [11]Chen, Y., Zhao, J., Han, H.: A survey on collaborative mechanisms between large and small language models (2025). https://doi.org/10.48550/arXiv.2505.07460
  12. [12]Civitarese, G., Fiori, M., Choudhary, P., Bettini, C.: Large language models are zero-shot recognizers for activities of daily living. ACM Transactions on Intelligent Systems and Technology 16(4), 1–32 (2025). https://doi.org/10.1145/3725856
  13. [13]Cleland, I., Nugent, L., Cruciani, F., Nugent, C.: Leveraging large language models for activity recognition in smart environments. In: 2024 International Conference on Activity and Behavior Computing (ABC). pp. 1–8. IEEE (2024). https://doi.org/10.1109/ABC61795.2024.10651718
  14. [14]Cook, D.J., Crandall, A.S., Thomas, B.L., Krishnan, N.C.: CASAS: A smart home in a box. Computer 46(7), 62–69 (Jul 2013). https://doi.org/10.1109/MC.2012.328
  15. [15]Corradini, F., Leonesi, M., Piangerelli, M.: State of the art and future directions of small language models: A systematic review. Big Data and Cognitive Computing 9(7) (2025). https://doi.org/10.3390/bdcc9070189
  16. [16]Di Federico, G., Fernández-Llatas, C., Ahmadi, Z., Shirali, M., Burattin, A.: Identifying variation in personal daily routine through process mining: A case study. In: Process Mining Workshops. Lecture Notes in Business Information Processing, vol. 503, pp. 223–234. Springer Nature Switzerland (2024). https://doi.org/10.1007/978-3-031-56107-8_17
  17. [17]Falah Rad, M., Khoshhal Roudposhti, K., Khoobkar, M.H., Shirali, M., Ahmadi, Z., Fernández-Llatas, C.: DAMMI: Daily activities in a psychologically annotated multi-modal IoT dataset (2024). https://doi.org/10.48550/arXiv.2410.04152, arXiv:2410.04152
  18. [18]Fani Sani, M., Sroka, M., Burattin, A.: LLMs and process mining: Challenges in RPA. In: Process Mining Workshops. Lecture Notes in Business Information Processing, vol. 503, pp. 379–391. Springer Nature Switzerland (2024). https://doi.org/10.1007/978-3-031-56107-8_29
  19. [19]Han, S., Wang, M., Zhang, J., Li, D., Duan, J.: A review of large language models: Fundamental architectures, key technological evolutions, interdisciplinary technologies integration, optimization and compression techniques, applications, and challenges. Electronics 13(24) (2024). https://doi.org/10.3390/electronics13245040
  20. [20]Hao, Z., Jiang, H., Jiang, S., Ren, J., Cao, T.: Hybrid SLM and LLM for edge-cloud collaborative inference. In: Proceedings of the Workshop on Edge and Mobile Foundation Models (EdgeFM ’24). pp. 36–41. Association for Computing Machinery, New York, NY, USA (2024). https://doi.org/10.1145/3662006.3662067
  21. [21]Javaheripi, M., Bubeck, S.: Phi-2: The surprising power of small language models. Microsoft Research Blog (Dec 2023), https://www.microsoft.com/en-us/research/blog/phi-2-the-surprising-power-of-small-language-models/, published December 12, 2023
  22. [22]Kandala, S.V., Medaranga, P., Varshney, A.: TinyLLM: A framework for training and deploying language models at the edge computers (2024). https://doi.org/10.48550/arXiv.2412.15304
  23. [23]Li, S., Wang, H., Xu, W., Zhang, R., Guo, S., Yuan, J., Zhong, X., Zhang, T., Li, R.: Collaborative inference and learning between edge SLMs and cloud LLMs: A survey of algorithms, execution, and open challenges. ACM Computing Surveys (2026). https://doi.org/10.1145/3838593
  24. [24]Lu, Z., Li, X., Cai, D., Yi, R., Liu, F., Zhang, X., Lane, N.D., Xu, M.: Small language models: Survey, measurements, and insights (2024). https://doi.org/10.48550/arXiv.2409.15790, revised 2025
  25. [25]Mojarradi, M.M., Yang, L., McCraith, R., Mahdi, A.: Improving in-context learning with small language model ensembles. In: NeurIPS 2024 Workshop on Adaptive Foundation Models: Evolving AI for Personalized and Efficient Learning (2024). https://doi.org/10.48550/arXiv.2410.21868
  26. [26]Shirali, M., Ahmadi, Z., Fernández-Llatas, C., Bayo Montón, J.L., Di Federico, G.: An interactive error-correcting approach for iot-sourced event logs. ACM Trans. Internet Things 5(4) (Aug 2024). https://doi.org/10.1145/3680289
  27. [27]Shirali, M., Fani Sani, M., Ahmadi, Z., Serral, E.: LLM-based event abstraction and integration for IoT-sourced logs. In: Gdowska, K., Gómez-López, M.T., Rehse, J.R. (eds.) Business Process Management Workshops, Lecture Notes in Business Information Processing, vol. 534, pp. 138–149. Springer Nature Switzerland, Cham (2025). https://doi.org/10.1007/978-3-031-78666-2_11
  28. [28]Shirali, M., Jafari, A., Ghassemian, M.: eSense Smart Home: A PIR-based solo-resident smart home dataset. Zenodo dataset, version v1 (2023). https://doi.org/10.5281/zenodo.10223646
  29. [29]Solat, F., Lee, J., Seif, M., Niyato, D., Poor, H.V.: Federated learning-enabled hybrid language models for communication-efficient token transmission. IEEE Internet of Things Journal 12(24), 53574–53592 (2025). https://doi.org/10.1109/JIOT.2025.3618095
  30. [30]Thukral, M., Dhekhane, S.G., Hiremath, S.K., Haresamudram, H., Ploetz, T.: Layout-agnostic human activity recognition in smart homes through textual descriptions of sensor triggers (TDOST). Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies 9(1), 1–38 (2025). https://doi.org/10.1145/3712278
  31. [31]Valderas, P., Torres, V., Serral, E.: Towards an interdisciplinary development of IoT-enhanced business processes. Business & Information Systems Engineering 65(1), 25–48 (2023). https://doi.org/10.1007/s12599-022-00770-y
  32. [32]Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., Polosukhin, I.: Attention is all you need. In: Advances in Neural Information Processing Systems. vol. 30, pp. 5998–6008. Curran Associates, Inc. (2017), https://proceedings.neurips.cc/paper/2017/hash/3f5ee243547dee91fbd053c1c4a845aa-Abstract.htmlarxiv.org/abs/1706.03762
  33. [33]Wang, F., Zhang, Z., Zhang, X., Wu, Z., Mo, T., Lu, Q., Wang, W., Li, R., Xu, J., Tang, X., He, Q., Ma, Y., Huang, M., Wang, S.: A comprehensive survey of small language models in the era of large language models: Techniques, enhancements, applications, collaboration with LLMs, and trustworthiness. ACM Transactions on Intelligent Systems and Technology 16(6), 1–87 (2025). https://doi.org/10.1145/3768165
  34. [34]Xu, D., Yin, W., Jin, X., Zhang, Y., Wei, S., Xu, M., Liu, X.: LLMCad: Fast and scalable on-device large language model inference (2023). https://doi.org/10.48550/arXiv.2309.04255
  35. [35]Xu, J., Li, Z., Chen, W., Wang, Q., Gao, X., Cai, Q., Ling, Z.: On-device language models: A comprehensive review (2024). https://doi.org/10.48550/arXiv.2409.00088
  36. [36]Xu, X., Feng, G., Liu, Y., Qin, S., Wang, J., Wang, Y.: Joint inference offloading and model caching for small and large language model collaboration. IEEE Transactions on Mobile Computing 25(2), 2691–2706 (Feb 2026). https://doi.org/10.1109/TMC.2025.3608303
  37. [37]Yala, N., Fergani, B., Fleury, A.: Towards improving feature extraction and classification for activity recognition on streaming data. Journal of Ambient Intelligence and Humanized Computing 8(2), 177–189 (2017). https://doi.org/10.1007/s12652-016-0412-1
  38. [38]Yan, H., Tan, H., Ding, Y., Zhou, P., Namboodiri, V., Yang, Y.: Large language model-guided semantic alignment for human activity recognition. Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies 9(4), 1–25 (2025). https://doi.org/10.1145/3770652
  39. [39]van Zelst, S.J., Mannhardt, F., de Leoni, M., Koschmider, A.: Event abstraction in process mining: Literature review and taxonomy. Granular Computing 6(3), 719–736 (2021). https://doi.org/10.1007/s41066-020-00226-2
  40. [40]Zhang, Q., Liu, Z., Pan, S.: The rise of small language models. IEEE Intelligent Systems 40(1), 30–37 (2025). https://doi.org/10.1109/MIS.2024.3517792

Paper details

vlnc:W_jaajacq6
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents