Abstract: Some embodiments of the invention provide methods and apparatus for generating a user's contextual information using a mobile or wearable device. In some embodiments, obtaining the user's contextual information comprises obtaining sensors information, and applying a transformation to the sensors signals, wherein the transformation to the sensors signals comprises the use of wavelets, and the sensors comprise an accelerometer.