arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.18754cs.CLcs.AIcs.LG
收藏

使用大语言模型进行传感器数据的少样本优化:以疲劳检测为例的案例研究

Few-Shot Optimization for Sensor Data Using Large Language Models: A Case Study on Fatigue Detection

Graduate School of Life Science and Systems Engineering, Kyushu Institute of Technology(九州工学院生命科学与系统工程研究生院);Department of Informatics, Universitas 17 Agustus 1945 Surabaya(Surabaya 17 August 1945 大学信息系)

Elsen Ronando, Sozo Inoue

AI总结:

本文提出HED-LM少样本优化方法,结合欧几里得距离过滤与大语言模型重排序改进示例选择,在疲劳检测任务中F1分数达69.13%,显著优于随机和仅距离选择。

摘要:

在本文中,我们提出了一种结合HED-LM(Hybrid Euclidean Distance with Large Language Models,混合欧几里得距离与大语言模型)的新型少样本优化方法,以改进基于传感器的分类任务中的示例选择。虽然少样本提示能够在标注数据有限的情况下实现高效推理,但其性能在很大程度上取决于所选示例的质量。HED-LM通过混合选择流水线应对这一挑战:该流水线首先基于欧几里得距离过滤候选示例,然后利用大语言模型(LLMs)评估的上下文相关性对其进行重新排序。为了验证其有效性,我们将HED-LM应用于一项疲劳检测任务,该任务使用具有模式重叠和受试者间高变异性特征的加速度计数据。与活动识别等较简单的任务不同,疲劳检测由于生理信号的细微差异,需要更加细致的示例选择。我们的实验表明,HED-LM实现了69.13±10.71%的平均宏F1分数,优于随机选择(59.30±10.13%)和仅基于距离的过滤(67.61±11.39%)。这分别代表了16.6%和2.3%的相对提升。结果证实,将数值相似性与上下文相关性相结合能够提高少样本提示的鲁棒性。总体而言,HED-LM为提升现实世界中基于传感器的学习任务的性能提供了实用解决方案,并在医疗保健监控、人类活动识别和工业安全场景中展现出更广泛的应用潜力。

英文摘要:

In this paper, we propose a novel few-shot optimization with HED-LM (Hybrid Euclidean Distance with Large Language Models) to improve example selection for sensor-based classification tasks. While few-shot prompting enables efficient inference with limited labeled data, its performance largely depends on the quality of selected examples. HED-LM addresses this challenge through a hybrid selection pipeline that filters candidate examples based on Euclidean distance and re-ranks them using contextual relevance scored by large language models (LLMs). To validate its effectiveness, we apply HED-LM to a fatigue detection task using accelerometer data characterized by overlapping patterns and high inter-subject variability. Unlike simpler tasks such as activity recognition, fatigue detection demands more nuanced example selection due to subtle differences in physiological signals. Our experiments show that HED-LM achieves a mean macro F1-score of 69.13$\pm$10.71%, outperforming both random selection (59.30$\pm$10.13%) and distance-only filtering (67.61$\pm$11.39%). These represent relative improvements of 16.6% and 2.3%, respectively. The results confirm that combining numerical similarity with contextual relevance improves the robustness of few-shot prompting. Overall, HED-LM offers a practical solution to improve performance in real-world sensor-based learning tasks and shows potential for broader applications in healthcare monitoring, human activity recognition, and industrial safety scenarios.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑