Skip to main content
Journal
IEEE Internet of Things Journal
Year of Publication
2026
Status
Submitted
Abstract

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. The 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.

Important information

Rejestr Instytutów Naukowych: RIN-IV-3/98

NIP: 631-011-22-45

REGON: 000564702

Skrytka ePUAP: /IITISPAN/SkrytkaESP

e-doręczenia: AE:PL-33995-65265-VDDUI-33

PIC (Participant Identification Code): 951424501

Contact us

Institute location:

ul. Bałtycka 5
44-100 Gliwice

Telephone numbers:

  • +48 32 231 73 19
  • +48 32 231 71 50
  • +48 32 330 23 89

E-mail address: office@iitis.pl