Code used for the paper "Inferring User Context from Spatio-Temporal Pattern Mining for Mobile Application Services", presented at the IEEE/ACM WI-IAT 2012