damellis / ESP

The Example-based Sensor Predictions (ESP) system applies machine learning to real-time sensor data.
BSD 3-Clause "New" or "Revised" License
224 stars 52 forks source link

Detecting changes in sensor values relative to a changing baseline. #182

Open damellis opened 8 years ago

damellis commented 8 years ago

The quintessential example is probably detecting the presence of an object in front of a light sensor in a way that works regardless of the ambient light in the room. There are lots of other examples, though, e.g. a hand-made pressure or stretch sensor may not always return to the same baseline after activation. Capacitive sensing is another one, as the baseline readings can easily change if the electrode is moved slightly.

There are, I think, lots of potential approaches to doing this: looking for a slope (over some time interval), maintaining an updating baseline, looking for a threshold of change relative to the standard deviation over some previous interval, etc.

damellis commented 8 years ago

This may be better as a simple Arduino example. I'm not sure it really benefits from the ESP system.