LLM-Guided Exemplar Selection for Few-Shot Wearable-Sensor Human Activity Recognition
Elsen Ronando, Sozo Inoue
TL;DR
This work tackles data scarcity and semantic confusion in few-shot wearable HAR by introducing an LLM-Guided Exemplar Selection framework. The method generates semantic features and structured knowledge priors with an LLM, and fuses them with margin-based, graph-based, and hubness cues in a facility-location optimization to select compact, representative exemplars. A machine-learning gate splits static and dynamic activities, allowing specialized modeling, while a suite of classic classifiers is trained on the selected exemplars. On the UCI-HAR dataset, the approach yields notable improvements over traditional exemplar-selection baselines, with ablations showing the critical role of the facility-location step and semantic priors in boosting generalization under limited labels. Overall, the framework demonstrates that integrating semantic reasoning into exemplar selection can enhance interpretability and robustness in real-world, data-scarce HAR applications.
Abstract
In this paper, we propose an LLM-Guided Exemplar Selection framework to address a key limitation in state-of-the-art Human Activity Recognition (HAR) methods: their reliance on large labeled datasets and purely geometric exemplar selection, which often fail to distinguish similar weara-ble sensor activities such as walking, walking upstairs, and walking downstairs. Our method incorporates semantic reasoning via an LLM-generated knowledge prior that captures feature importance, inter-class confusability, and exemplar budget multipliers, and uses it to guide exemplar scoring and selection. These priors are combined with margin-based validation cues, PageRank centrality, hubness penalization, and facility-location optimization to obtain a compact and informative set of exemplars. Evaluated on the UCI-HAR dataset under strict few-shot conditions, the framework achieves a macro F1-score of 88.78%, outperforming classical approaches such as random sampling, herding, and $k$-center. The results show that LLM-derived semantic priors, when integrated with structural and geometric cues, provide a stronger foundation for selecting representative sensor exemplars in few-shot wearable-sensor HAR.
