📡 IoT Sensor Data Analytics: Allan Deviation, Noise Types and the Best Averaging Time before Reporting (3D)
A sensor node reads a sensor many times a second and sends one value to the cloud. How long should it average first? Averaging removes white noise (the error falls as 1 over the square root of the time) but not slow drift, so there is a best window. The page generates a seeded record of readings with four error types, white noise, 1/f flicker (bias instability), random-walk drift and a linear ramp, and computes its Allan deviation: white noise gives slope -1/2, flicker a flat floor at 0.664 B, random walk slope +1/2, a ramp slope +1. Set sample rate, record length, the four noise levels, seed and the averaging window; read the error of one report, the best averaging time tau* (for white noise plus random walk tau* = sqrt(3) N / K), the lowest reachable error, the variance share of each noise at your window and the parameters recovered by a curve fit. Blender sensor node, gateway and bench with the stream as a 3D ribbon and the Allan deviation as log-log bars. Real equations, 17 numerical checks incl. the spectral integral against the published power-law table, simulated records of each noise type against closed forms and an independent numpy implementation.
This simulation demonstrates how IoT devices generate data and how that data is analyzed to gain insights in real time. A ring of sensor nodes transmits noisy readings to a central analytics hub on a fixed interval; the hub maintains a live exponentially-weighted mean and standard deviation for each node and flags any reading whose z-score crosses a threshold as an anomaly, mirroring the streaming-analytics pipelines used in real industrial IoT deployments. Tune the fleet size, report interval, EWMA smoothing factor and anomaly threshold, watch packets travel across the network in 3D, and inject a deliberate spike to see the detector catch it live.
A sensor node reads a sensor many times a second and sends one value to the cloud. How long should it average first? Averaging removes white noise (the error falls as 1 over the square root of the time) but not slow drift, so there is a best window. The page generates a seeded record of readings with four error types, white noise, 1/f flicker (bias instability), random-walk drift and a linear ramp, and computes its Allan deviation: white noise gives slope -1/2, flicker a flat floor at 0.664 B, random walk slope +1/2, a ramp slope +1. Set sample rate, record length, the four noise levels, seed and the averaging window; read the error of one report, the best averaging time tau* (for white noise plus random walk tau* = sqrt(3) N / K), the lowest reachable error, the variance share of each noise at your window and the parameters recovered by a curve fit. Blender sensor node, gateway and bench with the stream as a 3D ribbon and the Allan deviation as log-log bars. Real equations, 17 numerical checks incl. the spectral integral against the published power-law table, simulated records of each noise type against closed forms and an independent numpy implementation.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install