Uses a camera/simulated sensor stream and compares each incoming sample against a rolling background model.
Every sample tick updates rolling mean, stddev, and
z-score = (sample - mean) / stddev.
Signal vs background
sensor sample
rolling mean
±2 stddev band
±1 stddev band
Z-score over time
z-score
±z threshold
Signal detected - positive z-threshold exceeded
positive z-threshold exceeded