Few-Shot Human Activity Recognition Using Lightweight Language Models

The lack of labeled data and model generalization abilities have historically represented major obstacles for Human Activity Recognition (HAR). Few-Shot Learning (FSL) addresses both of these issues. However, its application to HAR, is particularly difficult, since transferring models into new environments requires the model to adapt not only to a new set of activity labels but also, in many cases, to a different sensor configuration and possibly even a different sensor modality. The ability of Large Language Models (LLMs) to understand and interpret natural language, together with their versatility as few-shot learners, can greatly simplify model transfer. This is particularly the case where sensor activations can be transformed into text descriptions, since such descriptions abstract from the specific sensor modality and configuration. Unfortunately, the application of LLMs at the edge is typically hindered by their hardware requirements, making it unfeasible or highly inefficient to deploy these models to be used locally within smart environments. In this context, we propose a lightweight LLM-based FSL approach to facilitate model transfer with only a few labeled data samples, while using a model small enough to be deployable at the edge. Our results show that a relatively small BERT-based LLM architecture (hundreds of millions of parameters vs. hundreds of billions of parameters) can outperform larger models (including Chat-GPT). The approach was evaluated on two challenging datasets, namely the “van Kasteren (VK)” and the “VK houses” datasets. Using our 10 -shot FSL approach, we obtain a macro average F -score of $52.75 \%$ on “VK” vs. a baseline F -score of 26.63% using Chat-GPT. On the “VK houses” dataset, our macro average $\mathbf{F}$-score is $\mathbf{3 6. 0 2 \%}$, in contrast to $\mathbf{1 5. 4 6 \%}$ for Chat-GPT.

Authors

Institutions

Publication Details

Published
2025-04-21
DOI
https://doi.org/10.1109/abc64332.2025.11118559
Primary Topic
Context-Aware Activity Recognition Systems
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Few-Shot Human Activity Recognition Using Lightweight Language Models

Stefan Gerd Fritsch, Chris Nugent, Paul Lukowicz, Federico Cruciani et al.
Context-Aware Activity Recognition Systems
article

Few-Shot Human Activity Recognition Using Lightweight Language Models

Stefan Gerd Fritsch, Chris Nugent, Paul Lukowicz, Federico Cruciani, Vítor Fortes Rey, Ian Cleland
article en

Abstract

The lack of labeled data and model generalization abilities have historically represented major obstacles for Human Activity Recognition (HAR). Few-Shot Learning (FSL) addresses both of these issues. However, its application to HAR, is particularly difficult, since transferring models into new environments requires the model to adapt not only to a new set of activity labels but also, in many cases, to a different sensor configuration and possibly even a different sensor modality. The ability of Large Language Models (LLMs) to understand and interpret natural language, together with their versatility as few-shot learners, can greatly simplify model transfer. This is particularly the case where sensor activations can be transformed into text descriptions, since such descriptions abstract from the specific sensor modality and configuration. Unfortunately, the application of LLMs at the edge is typically hindered by their hardware requirements, making it unfeasible or highly inefficient to deploy these models to be used locally within smart environments. In this context, we propose a lightweight LLM-based FSL approach to facilitate model transfer with only a few labeled data samples, while using a model small enough to be deployable at the edge. Our results show that a relatively small BERT-based LLM architecture (hundreds of millions of parameters vs. hundreds of billions of parameters) can outperform larger models (including Chat-GPT). The approach was evaluated on two challenging datasets, namely the “van Kasteren (VK)” and the “VK houses” datasets. Using our 10 -shot FSL approach, we obtain a macro average F -score of $52.75 \%$ on “VK” vs. a baseline F -score of 26.63% using Chat-GPT. On the “VK houses” dataset, our macro average $\mathbf{F}$-score is $\mathbf{3 6. 0 2 \%}$, in contrast to $\mathbf{1 5. 4 6 \%}$ for Chat-GPT.

University of Ulster (GB), German Research Centre for Artificial Intelligence (DE)
European Regional Development Fund
Openalex Percentile: Top 79%
Context-Aware Activity Recognition Systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.