Evaluating Lightweight SLMs for Cloud-Free Edge Sensing

Authors

  • Wian Gertenbach CSIR, University of Pretoria
  • Herman Myburgh University of Pretoria
  • Allan De Freitas University of Pretoria

DOI:

https://doi.org/10.34190/icair.7.1.5548

Keywords:

Large language models, Edge computing, Agricultural internet of things, Parameter-efficient fine-tuning, Low-rank adaptation

Abstract

The integration of Large Language Models (LLMs) and Industrial Internet of Things (IIoT) is an evolving field and has shown benefits in anomaly and fault detection as well as sensor fusion.  While beneficial across various applications, standard deployments commonly rely on cloud servers that incur high costs, latency, and privacy concerns. Deploying capable LLMs directly on constrained edge devices remains a key challenge, as these devices operate under strict energy and computational limitations. Current research explores the IIoT and LLM integration through model optimisation and various deployment strategies. This paper presents a selection methodology of lightweight, fine-tuned Small Language Models (SLMs) for agricultural sensor data interpretation on resource-limited hardware. Three candidate models of similar sizes, including Llama3.2 (3B), Phi4-mini (3.8B), and Qwen3.5 (4B), are evaluated on real-world agricultural sensor data. The models are benchmarked across accuracy, precision and recall, inference latency and memory footprint on a Radxa Cubie A7A using zero-shot prompting, a technique in which models perform tasks without prior examples or specialised training. The models are then fine-tuned using Parameter-Efficient Fine-Tuning (PEFT) via Low-Rank Adaptation (LoRA) on agricultural sensor datasets. This method freezes a model’s original weights and trains only a compact adapter module, significantly reducing computational overhead during training and preserving performance. The fine-tuned models are then compared against the results from the untuned models to determine the most suitable SLM for edge deployment and further research. This work contributes to a reproducible model selection and fine-tuning methodology for adapting open-weight SLMs to agricultural sensing without the reliance on cloud infrastructure, serving as a foundational step toward a fully decentralised, collaborative framework of fine-tuned edge SLMs for IoT systems.

Author Biography

Wian Gertenbach, CSIR, University of Pretoria

Wian is a cybersecurity researcher at the Council for Scientific and Industrial Research (CSIR) in South Africa, where he works on national-level cybersecurity initiatives. An electrical/electronic engineer by training, he is pursuing an MEng at the University of Pretoria. He also runs a cybersecurity consultancy focused on security awareness training.

Downloads

Published

2026-11-18