Described herein is a method of operating an electronic device that includes collecting initial motion activity data from at least one sensor of the electronic device, and generating a initial probabilistic context of the electronic device relative to its surroundings from the initial collected motion activity data using a motion activity classifier function. The collected motion activity data is stored in a training data set, and the motion activity classifier function is updated using the training data set. The method also includes collecting subsequent motion activity data from the at least one sensor of the electronic device, and generating a subsequent probabilistic context of the electronic device relative to its surroundings from the subsequently collected motion activity data using the updated motion activity classifier function.