Great question — answering as the UphillTech team:
First i want to calculate the mean offset and the standard deviation of the measurement data overall, during halt, increasing and decreasing state. I would recommend checking windows of your dataset (let's say 10 samples in a row). A very convenient method to do that is pandas.DataFrame.rolling() , please take a look at it :)
Full answer by pcko1: https://datascience.stackexchange.com/a/32635 (CC BY-SA 4.0).
Want it for your business? UphillTech.