I am curious to find out what is the algorithm behind Google's ActivityRecognitionAPI on the Android platform to find out what is the current state of the user (e.g., i the user us walking, running or laying) and how it works in a nutshell? Thank you in advance! 
What algorithgm Android's ActivityRecognitionAPI uses?
machine learning;data mining