An inference engine for smartphones to preprocess data and detect stationary and transportation modes. (August 2016)