通过物联网数据预处理实现边缘AI的云端级精度
Enabling Cloud-Level Accuracy in Edge AI through IoT Data Preprocessing
AI总结:
针对边缘部署的紧凑型LLM在原始传感器读数下数值推理弱的问题,提出结构化提示构建框架,通过逐步丰富文本表示(原始值、阈值描述、环境摘要标志)提升局部模型精度,实验表明该方法可将局部准确率从约50%提升至80%以上,同时保持低延迟。
摘要:
大型语言模型(LLM)为智能环境中物联网(IoT)传感器数据的解读提供了自然语言接口;然而,云端部署引入了延迟、隐私和连接性问题。本地LLM可以减少这些限制,但紧凑的边缘可部署模型在直接提供原始传感器读数时,往往表现出较弱的数值推理能力。本文研究提示端预处理是否能改善本地LLM在环境监测中的精度-延迟权衡。我们提出一个结构化提示构建框架,将原始空气质量和热舒适度测量值转换为逐步丰富的文本表示:原始传感器值、阈值感知描述和紧凑的环境摘要标志。该框架使用坦佩雷大学的室内Raspberry Pi/BME680数据集以及赫尔辛基、卡托维兹和华沙的室外空气质量数据集进行评估。我们构建了一个二元LLM查询数据集,涵盖空气质量、热舒适度和联合环境条件,并评估了五种本地和五种云端LLM在三种提示变体和两种推理模式(有无思维链提示)下的表现。结果表明,提示丰富化显著提高了本地模型的准确性。在无CoT模式下,从原始提示到最丰富的提示,本地准确率在室内从50.9%提高到81.7%,在室外从63.7%提高到89.3%。本地无CoT推理是最快的配置,平均延迟接近0.22秒,而CoT显著增加了推理时间。这些发现表明,轻量级的提示端预处理可以缩小本地与云端之间的性能差距,并支持智能环境中的低延迟物联网分析。
英文摘要:
Large language models (LLMs) offer a natural-language interface for interpreting Internet of Things (IoT) sensor data in smart environments; however, cloud deployment introduces latency, privacy, and connectivity concerns. Local LLMs can reduce these limitations, but compact edge-deployable models often show weaker numerical reasoning when raw sensor readings are provided directly. This paper investigates whether prompt-side preprocessing can improve the accuracy-latency trade-off of local LLMs for environmental monitoring. We propose a structured prompt construction framework that transforms raw air-quality and thermal-comfort measurements into progressively enriched textual representations: raw sensor values, threshold-aware descriptions, and compact environmental summary flags. The approach is evaluated using indoor Raspberry Pi/BME680 datasets from Tampere University and outdoor air-quality datasets from Helsinki, Katowice, and Warsaw. We construct a binary LLM query dataset covering air quality, thermal comfort, and joint environmental conditions, and evaluate five local and five cloud LLMs across three prompt variants and two inference modes, with and without chain-of-thought prompting. Results show that prompt enrichment substantially improves local-model accuracy. In No-CoT mode, local accuracy increases from 50.9% to 81.7% indoors and from 63.7% to 89.3% outdoors from the raw to the most enriched prompt. Local No-CoT inference is the fastest configuration, with mean latency close to 0.22 s, while CoT substantially increases inference time. These findings suggest that lightweight prompt-side preprocessing can narrow the local--cloud performance gap and support low-latency IoT analytics in smart environments.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。