Gửi tin nhắn: An inference engine for smartphones to preprocess data and detect stationary and transportation modes