arXiv:2609.06271cs.CRSep 2026

Manuscript Offprint

arXiv:2609.06271

SIDE: Sensor Impersonation Detection at the Edge via Sequence Prediction

Nahom Birhan

Nahom M. Birhan

Department of Electrical and Computer Engineering

Old Dominion University

Virginia, USA

nbirh002@odu.edu

Abstract—Some low-cost Internet of Things (IoT) sensor deployments lack device-level source authentication, leaving them vulnerable to impersonation or injected sensor readings. We present a lightweight approach to sensor impersonation detection in a small proof-of-concept study. We formulate detection as a sequence-prediction problem. A model with three LSTM layers and two fully connected layers is trained only on univariate temperature readings from a genuine sensor, and a window of readings is flagged when its mean absolute prediction error exceeds the mean genuine error by more than six standard deviations. The model is converted to TensorFlow Lite and deployed on an Arduino Nano 33 BLE in three variants, non-quantized (554 KB), 16-bit weight quantized (298.5 KB), and 8-bit weight quantized (185 KB). On a controlled testbed with the impostor sensor placed in a hotter outdoor location, the three variants reached detection accuracies of 99.980%, 99.972%, and 98.206%, and each flagged the change point when a test sequence switched from genuine to impostor data. Quantization made the model smaller but slower in our measurements. The genuine and impostor distributions were well separated, so these results show detection of a controlled distribution shift and should not be read as evidence of general device authentication.

Keywords—edge machine learning, TinyML, anomaly detection, impersonation, LSTM, TensorFlow Lite, quantization, sensor networks

I. INTRODUCTION

IoT deployments stream large volumes of time-series data from sensors to the cloud. Edge computing moves computation closer to the data source and cuts bandwidth, latency, and the amount of raw data that leaves a site. Edge ML, or TinyML, pushes this one step further by running inference on the sensing devices themselves. We use it here for one security problem in sensor networks, detecting when a device impersonates a genuine sensor and injects its own readings.

Our motivation is the sensor deployment in which the link between a sensor and its aggregator carries no device-level source authentication. An attacker who can reach that link can replace the genuine reading stream with one of its own. We take a behavioral rather than cryptographic approach. A model trained on the genuine sensor's time series predicts what that sensor should report next, and a stream whose prediction error drifts away from the learned behavior gets flagged.

Sensor readings arrive at fixed intervals, which gives a univariate time series. Classical autoregressive and moving-average models can forecast such a series, but they describe a fixed, finite response to past samples. A recurrent neural network keeps a state that depends on the whole past sequence, and the Long Short-Term Memory (LSTM) cell [1] eases the vanishing-gradient problem that limits plain recurrent networks. We model the genuine sensor with LSTM layers followed by fully connected layers.

We kept the experiment small and controlled. An LM35 sensor indoors provides the genuine readings. A second LM35 sensor outdoors, in a hotter spot, plays the impostor. We train on genuine data only, convert the model to TensorFlow Lite, and deploy it on an Arduino Nano 33 BLE aggregator in non-quantized, 16-bit, and 8-bit weight-quantized variants. For each variant we report model size, inference time, and detection accuracy, and we check whether the model flags the change point when a test sequence switches from genuine to impostor readings.

We set out to answer four questions.

  1. Can impersonation detection at the edge be posed as a sequence-prediction problem on genuine data alone?

  2. How should a threshold on the mean absolute error (MAE) be chosen to separate genuine from impostor windows?

  3. When a stream switches from genuine to impostor data, at what point does the model flag the transition?

  4. How do 16-bit and 8-bit weight quantization affect model size, inference time, and detection accuracy?

One caveat applies throughout. The genuine and impostor sensors sat in different thermal environments, so what the experiment tests is detection of a controlled distribution shift tied to an impersonation scenario. It does not establish general device authentication, identification of a device independent of its measured environment, or robustness to an adversary who mimics the genuine distribution. Section VII spells out these limitations.

The rest of the paper follows the usual order. Section II covers related work available at the time of the study, Section III the testbed and threat model, Section IV the detec-

This work was conducted at Carnegie Mellon University in 2022 as part of the author's M.S. research. The acronym SIDE was adopted for this 2026 arXiv release; the underlying experiments and results are from the original 2022 study. The original extended research report is available online.

tion method, and Section V the data. Section VI gives the results, Section VII discusses them and their limitations, and Section VIII concludes.

References (20)