用大模型提升传感器数据少样本分类,显著改善疲劳检测准确率
Few-Shot Optimization for Sensor Data Using Large Language Models: A Case Study on Fatigue Detection
- 结合欧氏距离与大模型语义相关性,优化少样本示例选择
- 在疲劳检测任务中达到69.13%平均宏F1分数,优于基线方法
- 适合医疗监测、工业安全等真实场景的低标注数据应用
本文提出一种基于大语言模型的少样本优化方法HED-LM(混合欧氏距离与大语言模型),用于提升基于传感器分类任务中的示例选择质量。尽管少样本提示可实现低标注数据下的高效推理,但其性能高度依赖于示例质量。HED-LM通过混合筛选流程,先按欧氏距离过滤候选示例,再利用大语言模型评估上下文相关性进行重排序。为验证有效性,我们在具有重叠模式和高个体差异性的加速度计数据上开展疲劳检测实验。相较于活动识别等简单任务,疲劳检测需更精细的信号区分。实验结果表明,HED-LM取得69.13±10.71%的平均宏F1分数,优于随机选择(59.30±10.13%)和仅距离过滤(67.61±11.39%),相对提升分别为16.6%和2.3%。结果证实,数值相似性与语义相关性结合能增强少样本提示的鲁棒性。总体而言,HED-LM为真实世界传感器学习任务提供了实用解决方案,具备在健康监测、人类活动识别及工业安全等领域的应用潜力。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。