Activity logging using lightweight classification techniques in mobile devices