1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268 |
- #LyX 1.6.5 created this file. For more info see http://www.lyx.org/
- \lyxformat 345
- \begin_document
- \begin_header
- \textclass article
- \use_default_options true
- \language english
- \inputencoding auto
- \font_roman default
- \font_sans default
- \font_typewriter default
- \font_default_family default
- \font_sc false
- \font_osf false
- \font_sf_scale 100
- \font_tt_scale 100
-
- \graphics default
- \paperfontsize default
- \spacing single
- \use_hyperref false
- \papersize a4paper
- \use_geometry false
- \use_amsmath 1
- \use_esint 1
- \cite_engine basic
- \use_bibtopic false
- \paperorientation portrait
- \secnumdepth 3
- \tocdepth 3
- \paragraph_separation skip
- \defskip medskip
- \quotes_language english
- \papercolumns 1
- \papersides 1
- \paperpagestyle default
- \tracking_changes false
- \output_changes false
- \author ""
- \author ""
- \end_header
-
- \begin_body
-
- \begin_layout Title
- Context-Aware API for Android Devices
- \end_layout
-
- \begin_layout Author
- Chris Smith
- \begin_inset Newline newline
- \end_inset
-
- Supervisor: Naranker Dulay
- \end_layout
-
- \begin_layout Date
- Summer 2010
- \end_layout
-
- \begin_layout Standard
- All materials can be accessed electronically at:
- \end_layout
-
- \begin_layout Standard
- \begin_inset Note Note
- status open
-
- \begin_layout Plain Layout
- /homes/cs106/....
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Standard
- \begin_inset Newpage pagebreak
- \end_inset
-
-
- \end_layout
-
- \begin_layout Abstract
- In recent years location-based services have seen a dramatic increase in
- adoption, and all modern smartphone platforms have integrated services
- to facilitate the creation location-aware applications.
- Such applications enhance the experience of users, using location to modify
- content or alter the behaviour of the application to better suit the circumstan
- ces.
- \end_layout
-
- \begin_layout Abstract
- The product of this project is a
- \emph on
- context
- \emph default
- -aware API for the Android platform.
- This allows applications to augment the already available location data
- with extra
- \emph on
- context
- \emph default
- about the user's situation - primarily their current activity.
- It also develops an algorithm for recognising
- \emph on
- places
- \emph default
- which are relevant to the user, and monitoring which activities are performed
- in
- \emph on
- journeys
- \emph default
- between those places, thus enabling predictions of the user's likely destinatio
- n based on their activity.
- \end_layout
-
- \begin_layout Abstract
- Research into other methods of annotating context was conducted, and it
- was found that most potential sources of context information either produced
- little or no information, or were too battery-draining to perform in a
- real world environment with current technology.
- Much effort was placed into optimising the API to have as small effect
- on battery life as possible.
- \end_layout
-
- \begin_layout Abstract
- A context-aware API was successfully produced, along with a collection of
- applications which use the API in order to demonstrate its features or
- provide example use cases.
- \end_layout
-
- \begin_layout Standard
- \begin_inset Newpage pagebreak
- \end_inset
-
-
- \end_layout
-
- \begin_layout LyX-Code
- \begin_inset CommandInset toc
- LatexCommand tableofcontents
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout LyX-Code
- \begin_inset Newpage pagebreak
- \end_inset
-
-
- \end_layout
-
- \begin_layout Part
- Introduction
- \end_layout
-
- \begin_layout Section
- Proposal
- \end_layout
-
- \begin_layout Quote
- Objective: to create an API for android applications to query the user's
- [probable] current activity, and to consider and implement possible uses
- for this API in existing applications.
- The user's activity would be determined based on available sensor and ambient
- data (e.g.
- time, location, orientation/movement of device, background noises, camera
- image, in-range bluetooth devices, etc), previous behaviour of the user,
- and possibly behaviour of other users which has been shared between devices.
- \end_layout
-
- \begin_layout Quote
- Motivation: Activity-awareness would be a major step forward in making mobile
- devices better able to adapt to what the user wants to do with them.
- The latest generation of mobile phones have made location-aware applications
- quite ubiquitous, and a lot of these could be further enhanced by making
- them activity aware.
- For example, an application which lists businesses in a certain area could
- not only know the search area (by merit of being location-aware), but could
- also make an educated guess at what you're looking for (e.g.
- the activity API may suggest the user is likely to be going to lunch, so
- the application could initially show nearby eating establishments instead
- of requiring the user to search for them).
- \end_layout
-
- \begin_layout Quote
- Challenges/issues: primary challenge is developing an algorithm which can
- make reasonable estimates as to the user's activity (or attempting and
- then justifying why such an algorithm is not feasible, and investigating
- requirements or alternatives), and would form the bulk of the project.
- Sub-challenges within this include: researching/implementing machine learning
- techniques so the algorithm can take previous behaviour into account, processin
- g data from 'messy' inputs such as mic/camera, and designing an API that
- would enable third-party app developers to easily make their applications
- activity aware.
- \end_layout
-
- \begin_layout Quote
- Approach: data from sensors would need to be processed (e.g.
- mic input processed into a figure for ambient noise level in dB).
- The combination of this processed data would then need to be fed into an
- algorithm (possibly a neural network) to determine likelihood of various
- activities.
- There would need to be some mechanism for users to correct or train the
- system (at least initially), and it's possible that this data could then
- be shared to other users of the api/application.
- \end_layout
-
- \begin_layout Section
- Aims and Motivation
- \end_layout
-
- \begin_layout Standard
- The primary aim of this project is to create an application for the Android
- platform that can sense the user's context in some fashion.
- This application will have a public interface which will allow other applicatio
- ns written by third party developers to read and receive updates about the
- user's context.
- \end_layout
-
- \begin_layout Standard
- The ease of access to location aware services in modern smartphone platforms
- has lead to a surge in the number of applications which improve their utility
- or behaviour by integrating location information.
- It stands to reason that if additional context information were available,
- developers would be able to take advantage of this and further improve
- the utility of their applications.
- This, in turn, would increase the productivity of the end-user.
- \end_layout
-
- \begin_layout Standard
- As discussed in
- \begin_inset CommandInset ref
- LatexCommand ref
- reference "par:Background"
-
- \end_inset
-
- , a large amount of existing research has been done on context-aware devices,
- and specifically on activity-aware systems.
- There have also been some limited implementations for smartphones.
- Unfortunately, the end product of most of this research is not suitable
- for deployment or use in practical, every-day circumstances.
- This project aims to produce a working prototype which can be used on a
- day-to-day basis on an Android smartphone without significantly degrading
- performance.
- \end_layout
-
- \begin_layout Section
- Issues and challenges
- \end_layout
-
- \begin_layout Standard
- One of the main challenges for this project will be accomplashing accurate
- and useful context-awareness without significantly hindering the battery
- life or performance of a typical device.
- Existing algorithms tend to be extremely verbose, sometimes performing
- upwards of thousands of calculations per classification; on a mobile device
- this is likely to severely cripple battery life.
- \end_layout
-
- \begin_layout Standard
- The problem of battery life affects all areas of the project - from how
- often data is collected, how the data is then analysed, and which sources
- of potential data are consulted.
- A large amount of time will need to be spent analysing the various potential
- data sources and establishing whether or not the cost in consulting them
- is worth the reduction in battery lifetime and any gain in the reliability
- or accuracy of context information.
- \end_layout
-
- \begin_layout Standard
- The aim of the application is to provide the context data to third-party
- applications, so another challenge will be designing an appropriate interface
- which will allow applications to query and receive updates about the user's
- context.
- Consideration will have to be given as to any security measures (such as
- access control) which may need to be applied in order to protect user privacy.
- \begin_inset Note Note
- status open
-
- \begin_layout Plain Layout
- Contributions
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Standard
- \begin_inset Newpage pagebreak
- \end_inset
-
-
- \end_layout
-
- \begin_layout Part
- Background
- \begin_inset CommandInset label
- LatexCommand label
- name "par:Background"
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Standard
- Context- or Activity-Aware devices is an area currently under lots of research.
- There are many and varied applications of activity-aware devices, ranging
- from personal fitness and healthcare to training factory workers or merely
- playing music.
- \end_layout
-
- \begin_layout Standard
- While this research is going on, there has been a huge expansion in the
- ownership, use and power of mobile telephones.
- Mobile telephones are so ubiquitous and now come with such a large sensor
- platform that they are the obvious choice for implementing activity-aware
- technologies for use in day-to-day life.
- \end_layout
-
- \begin_layout Standard
- This project aims to make a context-aware API available on an open mobile
- platform, which will enable developers to start adding context-aware functional
- ity to their applications without the extremely large overhead of writing
- a logger and classifier themselves, or re-engineering the application to
- use an existing context-aware framework if one is available.
- \end_layout
-
- \begin_layout Section
- Applications
- \end_layout
-
- \begin_layout Standard
- There are many documented applications of activity-aware systems, and current
- research efforts which bring the technology to mobile telephones will only
- serve to lengthen this list.
- \end_layout
-
- \begin_layout Standard
- The canonical example for activity-awareness, especially on mobile telephones,
- is modeling the user's
- \begin_inset Quotes eld
- \end_inset
-
- interruptibility
- \begin_inset Quotes erd
- \end_inset
-
-
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Siewiorek2003,Raento2005"
-
- \end_inset
-
- .
- This allows the software to know whether it's appropriate (or "polite")
- to disturb the user, and can advise the user's contacts when they are busy.
- It can also be used to create a
- \begin_inset Quotes eld
- \end_inset
-
- smart answering machine
- \begin_inset Quotes erd
- \end_inset
-
-
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Hudson2003"
-
- \end_inset
-
- which can selectively direct calls straight to an answering machine if
- the user is engaged in an "uninterpretable" activity and the call does
- not appear to be important.
- These allow the user's mobile telephone to better approximate human behaviour
- - when approaching someone in person it is normally quite easy to determine
- whether it would be polite or necessary to disturb them, based on their
- demeanour, activity, and the urgency of your request; when picking up the
- telephone it is not possible at all without assistance from an activity-aware
- system.
- \end_layout
-
- \begin_layout Standard
- The current implementations of these ideas have several problems, however.
- The more interesting research
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Hudson2003"
-
- \end_inset
-
- requires a static camera fixed in an office to observe user behaviour,
- instead of implementing it directly on a telephone, which obviously constrains
- its usefulness.
- Of the two solutions actually targeted at mobile telephones, one
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Siewiorek2003"
-
- \end_inset
-
- requires bulky custom hardware which the user must carry on their belt,
- and the other
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Raento2005"
-
- \end_inset
-
- does not expose an API to other applications and only surfaces the context-aware
- functionality in two small applications whose focus is on social interaction
- rather than improving the user's experience of the telephone locally.
- This project will aim to bring the ideas of these to generic hardware (an
- Android mobile telephone), and to provide an API which other applications
- can harness.
- \end_layout
-
- \begin_layout Standard
- One use particularly suitable for mobile phones is dynamic adaptation of
- the device's settings based on the user's current activity and context
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Schmidt1999"
-
- \end_inset
-
- .
- When a user is walking the device can dynamically increase the font size
- to make it easier to read with an unsteady hand, and correspondingly decrease
- it when the user is stationary.
- In a similar fashion, the brightness of the backlight can be altered based
- on the ambient light level, and the ringer volume altered according to
- the noise level.
- Unfortunately this research did not progress beyond a feasibility study
- and was implemented on a Nokia 6110, which is severely outdated by today's
- standards.
-
- \end_layout
-
- \begin_layout Standard
- Another popular area for activity-aware systems is in healthcare.
- Such systems can be used to monitor vulnerable people as they go about
- day to day activities to ensure that they're not in trouble - several systems
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Song2005,Maurer2006"
-
- \end_inset
-
- can be used to monitor elderly persons and summon help if it is detected
- that they have fallen.
- Another healthcare application
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Tentori2008"
-
- \end_inset
-
- allows nurses to remotely monitor the activities of their patients in a
- hospital ward, allowing them to respond to problems and keep up-to-date
- with their patients' well-being while not physically present.
- Activity-aware applications have also been used to try to encourage users
- to be more healthy; one novel application records the day-to-day fitness
- activities a user performs and uses this as a basis for a virtual
- \begin_inset Quotes eld
- \end_inset
-
- garden
- \begin_inset Quotes erd
- \end_inset
-
- that blossoms or wilts according to how much the user works out in a week
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Consolvo2008"
-
- \end_inset
-
- .
- \end_layout
-
- \begin_layout Standard
- As well as monitoring activities which the user is familiar with, activity-aware
- systems can also be used to assist users in learning new activities.
- One application
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Stiefmeier2008"
-
- \end_inset
-
- monitors the activities of trainee workers in a car manufacturing plant,
- and helps to provide a link between theoretical classroom-based training
- and practical work.
- The activity-aware system can offer advice to the workers that's directly
- related to the current task they're performing, and can even monitor their
- activities for compliance with procedures and give them a score afterwards.
- \end_layout
-
- \begin_layout Standard
- While the research into healthcare and training applications present novel
- uses of activity-aware systems, the applications themselves are not really
- applicable to a mobile device or the scope of this project.
- The research does, however, describe the techniques used in those applications
- for activity classification and should prove useful in that respect.
- \end_layout
-
- \begin_layout Standard
- Other areas of research include making activity-aware suggestions to the
- user
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Bellotti2008"
-
- \end_inset
-
- , or issuing reminders or alerts based on the user's activity
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Schilit1994"
-
- \end_inset
-
- .
- One example of the latter is an activity-aware system that detects when
- the user is making coffee, and plays a sound on a remote computer to alert
- thirsty coworkers to the fact.
- Sound isn't only limited to alerts, however: the
- \noun on
- XPOD
- \noun default
-
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Dornbush2005"
-
- \end_inset
-
- project is an activity-aware music player, which tailors the music being
- played to the user's current activity based on their past ratings.
- This type of activity-aware device presents a much greater level of personalisa
- tion than previously possible, and making this type of customisation available
- to mobile telephone users and application developers will surely result
- in many new applications.
- \end_layout
-
- \begin_layout Section
- Inferring activity
- \end_layout
-
- \begin_layout Standard
- There are three general phases in most context-aware systems: a sensing
- component, which reads or receives raw sensor data relating to the user's
- environment or activity; a feature extraction component, which analysis
- the sensor data and identifies a set of features from that data; and a
- classification component, which uses the extracted features to reason about
- the user's activity
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Choudhury2008"
-
- \end_inset
-
- .
- Each of these components will be expanded on below.
- Depending on the method of classification, some initial or continuous training
- may be required, and this is also considered below.
- \end_layout
-
- \begin_layout Subsection
- Sensors and devices
- \end_layout
-
- \begin_layout Standard
- At the basis of activity-recognition are the physical hardware sensors.
- The most commonly used sensor is the accelerometer, which outputs the accelerat
- ion of the sensor
- \begin_inset Foot
- status collapsed
-
- \begin_layout Plain Layout
- and thus the device to which it's attached, and therefore the person using
- the device
- \end_layout
-
- \end_inset
-
- along a certain axis.
- There is extensive research on using accelerometers to classify activities
- such as walking
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Mathie2004,Garakani2009"
-
- \end_inset
-
- (including whether or not the subject is walking on flat ground or up and
- down stairs
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Caros2005"
-
- \end_inset
-
- ), running
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Garakani2009"
-
- \end_inset
-
- , falling
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Mathie2004"
-
- \end_inset
-
- , sitting
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Mathie2004,Garakani2009"
-
- \end_inset
-
- , cycling
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Garakani2009"
-
- \end_inset
-
- , etc.
- \end_layout
-
- \begin_layout Standard
- Smartphones also come equipped with a microphone and GSM stack (prerequisites
- for a telephone conversation!), and commonly a camera, geolocation API
- (usually backed by GPS) and Bluetooth stack.
- With the exception of the latter two, these types of sensors are not particular
- ly well explored for their use in context-aware systems at present.
- It is easy to reason how each would be useful - a microphone can reveal
- the ambient noise, which could indicate the difference between sitting
- in a library and a bar; the camera likewise can reveal the lighting conditions
- (if the device is not in a pocket or bag).
- The GSM stack can provide rough location information and also a signal
- strength to one or more cell towers; the signal strength will vary both
- with the user's proximity to the cell tower and the environment around
- them - being inside will degrade the signal more than being in open air,
- for example - so may provide vital clues to a context-aware system.
- One aspect of this project will be to research how the microphone, camera
- and GSM stack can be used to enhance existing activity classification algorithm
- s.
- \end_layout
-
- \begin_layout Standard
- Current research on location information and Bluetooth device proximity
- is summarised in section
- \begin_inset CommandInset ref
- LatexCommand ref
- reference "sec:Location-analysis"
-
- \end_inset
-
- (p
- \begin_inset CommandInset ref
- LatexCommand pageref
- reference "sec:Location-analysis"
-
- \end_inset
-
- ) and
- \begin_inset CommandInset ref
- LatexCommand ref
- reference "sec:Bluetooth"
-
- \end_inset
-
- (p
- \begin_inset CommandInset ref
- LatexCommand pageref
- reference "sec:Bluetooth"
-
- \end_inset
-
- ) respectively.
- \end_layout
-
- \begin_layout Subsection
- Feature detection
- \end_layout
-
- \begin_layout Standard
- It is not possible to reason directly about raw sensor inputs, so the next
- step in inferring activities is to extract useful
- \emph on
- features
- \emph default
- from the raw input.
- Features are usually mathematical properties of the input data, such as
- the difference between the minimum and maximum data point in a given time
- frame.
- Most classifiers use an extremely large number of features -
- \begin_inset CommandInset citation
- LatexCommand citet
- key "Hein2008"
-
- \end_inset
-
- detect 562 different features from their inputs.
- \end_layout
-
- \begin_layout Standard
- Some of the more commonly used features in activity-recognition systems
- are: mean, standard deviation, energy, entropy, correlation between axis,
- and discrete FFT coefficients
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Huynh2005"
-
- \end_inset
-
- .
- Obviously, not all features are of equal value.
- FFT coefficients are generally very good indicators of activity, but the
- ideal coefficients and window sizes vary depending on the exact activity
- that is being detected.
- Likewise, the choice of other features to give the best recognition rate
- varies depending on the activity being detected
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Huynh2005"
-
- \end_inset
-
- .
- \end_layout
-
- \begin_layout Standard
- As the sensor data is received continuously, it needs to be partitioned
- somehow before features are extracted.
- Most implementations use a sliding window approach with a 50% overlap between
- windows
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Bao2004"
-
- \end_inset
-
- .
- A window size of 10 seconds with a 50% overlap would result in one set
- of features being computed every 5 seconds.
- The window size is normally selected to correspond to a pre-defined number
- of samples to enable fast computation of certain features - most notably
- FFTs
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Bao2004"
-
- \end_inset
-
- .
- \end_layout
-
- \begin_layout Standard
- One challenge will be determining a set of features that are robust enough
- to perform activity analysis on, but are sufficiently inexpensive to calculate
- continually on a mobile device, where CPU speed is limited and excessive
- usage results in undesirable higher battery consumption.
- \end_layout
-
- \begin_layout Subsection
- Training
- \end_layout
-
- \begin_layout Standard
- In order to meaningfully classify and label activities, some kind of training
- generally needs to be performed beforehand.
- The choice of classifier affects how much offline analysis has to be done
- on the training set, and whether or not it can be adapted at run-time.
- \end_layout
-
- \begin_layout Standard
- One might expect that training would best be performed in a controlled environme
- nt, to reduce external influences on the user, but subjects in a laboratory
- setting are much more self-conscious about their movements, and this manifests
- itself in the data collected.
- Walking in a laboratory tends to produce acceleration data showing a consistent
- gait cycle which can be split into distinct phases, whereas walking in
- an uncontrolled setting produces data showing large fluctuations in gait
- phases and length.
- This means that classifiers trained on laboratory data may achieve a much
- lower accuracy when deployed in natural conditions
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Bao2004"
-
- \end_inset
-
- .
- \end_layout
-
- \begin_layout Subsection
- Classification
- \end_layout
-
- \begin_layout Standard
- The classification step involves feeding the features for frame into some
- kind of machine learning algorithm which can, using training data
- \begin_inset Foot
- status collapsed
-
- \begin_layout Plain Layout
- and any offline analysis made of that data
- \end_layout
-
- \end_inset
-
- , determine which activity the feature-set most like represents.
- There are many different algorithms that can be used to perform the classificat
- ion, some of which are discussed below.
- \end_layout
-
- \begin_layout Subsubsection
- Decision trees
- \end_layout
-
- \begin_layout Standard
- Decision trees are possibly one of the simplest approaches possible
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Hudson2003"
-
- \end_inset
-
- .
- A tree is constructed such that each node contains a test function, with
- branches for each possible discrete outcome of the function.
- This allows data to be classified with a
- \begin_inset Quotes eld
- \end_inset
-
- divide and conquer
- \begin_inset Quotes erd
- \end_inset
-
- approach.
- While high accuracy is possible in some circumstances
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Hudson2003"
-
- \end_inset
-
- , there are several drawbacks to decision trees: a plain decision tree has
- no way to model uncertainty - in an activity-aware system there will always
- be a degree of uncertainty as to the classification, and being able to
- measure this is an important tool.
- They also have an inductive bias which leads to a preference for the most
- general solution, and in most cases this generalisation causes many false
- results
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Shen2004"
-
- \end_inset
-
- .
- \end_layout
-
- \begin_layout Standard
- Decision trees require the structure of the tree and the test functions
- for each node to be determined during training.
- They do not lend themselves to minor on-the-fly modifications or new activities
- that are not part of the training set.
- \end_layout
-
- \begin_layout Subsubsection
- Neural networks
- \end_layout
-
- \begin_layout Standard
- Neural networks are based on an extremely simplified model of the brain.
- The network consists of layers of neurons, and each neuron performs a simple
- arithmetic operation on its inputs.
- This normally consists of taking each of its inputs, multiplying it by
- a weight, and then summing all of the weighted inputs together; the resulting
- figure then becomes the neuron's output, and the input to one or more nodes
- in the next layer.
- \end_layout
-
- \begin_layout Standard
- A network consists of a layer of input neurons, a layer containing one or
- more output neurons, and one or more layers of
- \begin_inset Quotes eld
- \end_inset
-
- hidden
- \begin_inset Quotes erd
- \end_inset
-
- neurons in between.
- The number of
- \begin_inset Quotes eld
- \end_inset
-
- hidden
- \begin_inset Quotes erd
- \end_inset
-
- layers, and the number of neurons within those layers must be chosen before
- training of the network begins.
- The training process will then determine the weights for each link in the
- network.
- The choice of number of layers poses a problem when designing a network,
- as too small a number can cripple the power of the network, but too large
- can cause it to be too expensive to evaluate and can possibly lead to it
- memorising erroneous data
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Dornbush2005"
-
- \end_inset
-
- .
- \end_layout
-
- \begin_layout Standard
- Neural networks, however, do provide good accuracy and could potentially
- (although not easily) be modified on-the-fly to cope with new activities.
- \end_layout
-
- \begin_layout Subsubsection
- Genetic algorithms
- \end_layout
-
- \begin_layout Standard
- Genetic algorithms use the principle of natural selection to 'evolve' a
- solution to a problem.
- A set of random solutions are created, and a pre-defined fitness function
- is used to determine their relative worth.
- The best solutions are then combined together to produce the next generation
- of solutions, in a manner roughly analogous to reproduction in animals.
- Small
- \begin_inset Quotes eld
- \end_inset
-
- mutations
- \begin_inset Quotes erd
- \end_inset
-
- are also introduced into each generation to counter the effect of local
- maxima being reached.
- \end_layout
-
- \begin_layout Standard
- Genetic algorithms can be combined with other techniques such as neural
- networks - the weights in the neural network can be
- \begin_inset Quotes eld
- \end_inset
-
- evolved
- \begin_inset Quotes erd
- \end_inset
-
- using genetic algorithms to create a neural network which is good as satisfying
- the fitness function.
- \end_layout
-
- \begin_layout Standard
- The drawback of genetic algorithms is the need for a fitness function -
- the network will only ever be as good as the fitness function, and if you
- have a way to define what makes a good network you could in most cases
- hardcode the solution instead of evolving a network to satisfy it.
- \end_layout
-
- \begin_layout Subsubsection
- Instance-based learning
- \end_layout
-
- \begin_layout Standard
- Instance-based learning (IBL)
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Witten2000"
-
- \end_inset
-
- algorithms are a class of
- \begin_inset Quotes eld
- \end_inset
-
- lazy
- \begin_inset Quotes erd
- \end_inset
-
- algorithms.
- They perform classification based on previously observed instances that
- have already been classified.
- There is no training required for IBLs, they're extremely adept at adapting
- to new scenarios, and they have a very low error rate
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Dornbush2005"
-
- \end_inset
-
- which makes them ideal for activity-recognition.
- \end_layout
-
- \begin_layout Standard
- One particular type of IBL algorithm which is frequently seen in activity-aware
- research is the K-Nearest Neighbour (KNN) algorithm
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Han2006"
-
- \end_inset
-
- .
- With the KNN algorithm, each sample is treated as a vector, and the distance
- \begin_inset Foot
- status collapsed
-
- \begin_layout Plain Layout
- the euclidean distance is usually used, but any metric will suffice
- \end_layout
-
- \end_inset
-
- between the sample and the existing instances is calculated.
- The sample is then classified according to the classification of the majority
- of its
- \begin_inset Formula $k$
- \end_inset
-
- nearest neighbours.
- \end_layout
-
- \begin_layout Standard
- One drawback of IBLs is that each new instance tends to be remembered for
- future use, which eventually results in large amounts of memory consumption
- and complexity when comparing distances of new samples.
- This can be partially overcome by only storing instances which would affect
- the classification of new samples
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Witten2000"
-
- \end_inset
-
- .
- \end_layout
-
- \begin_layout Standard
- The KNN algorithm can be easily extended to support dynamic classification
- of new types of activities - if a sample is not within a certain distance
- of sufficient other samples, it can be classified as a new type of activity.
- \end_layout
-
- \begin_layout Subsubsection
- Conclusion
- \end_layout
-
- \begin_layout Standard
- There are numerous machine learning algorithms available and suitable for
- use in activity classification tasks.
- There has been a lot of research into their use, and all of the algorithms
- discussed have produced good results.
- Because of the lack of need for any training, however, the K-Nearest Neighbour
- algorithm appears to be the most promising for a mobile device.
- Any algorithm that needs explicit training prior to classification would
- almost certainly require a desktop application or a remote service to analyse
- the data, as it typically requires large amounts of memory and expensive
- computations.
- This either makes the application extremely cumbersome for the user (they
- have to connect their phone to a computer, transfer a file, obtain and
- run a separate application, then transfer some file back), or puts a large
- resource burden onto the distributor (having to remotely analyse all of
- the data from all users would require dedicated hardware for any more than
- a few users).
- \end_layout
-
- \begin_layout Section
- Mobile telephones
- \end_layout
-
- \begin_layout Standard
- It's hard to overstate the ubiquity of mobile telephones at present.
- In 2003, over a billion mobile telephones were sold - six times as many
- as the number of personal computers
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Eagle2004"
-
- \end_inset
-
- .
- In 2007, this same figure describes the number of cameraphones sold
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Reynolds2008"
-
- \end_inset
-
- , clearly representing a substantial growth in sales and advancements in
- the technology.
- In fact, mobile telephones are the fastest adopted technology in human
- history
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Eagle2004"
-
- \end_inset
-
- .
- This ubiquity, coupled with the fact that mobile telephones are comfortably
- carried around on a daily basis by most of their users, makes them a very
- attractive alternative to more traditional platforms used for activity-aware
- research, which typically involved bulky or inconvenient apparatus that
- was expensive to manufacture
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Schmidt2008"
-
- \end_inset
-
- and made users very self-conscious.
- \end_layout
-
- \begin_layout Subsection
- iPhone
- \end_layout
-
- \begin_layout Standard
- There have been several published works related to activity-recognition
- on the iPhone.
- The similarity between iPhone and Android platforms means that many of
- the concepts developed for or used on the iPhone are applicable to both.
- \end_layout
-
- \begin_layout Subsubsection
- iLearn
- \end_layout
-
- \begin_layout Standard
-
- \noun on
- iLearn
- \noun default
-
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Schmidt2008"
-
- \end_inset
-
- is a suite of three tools -
- \noun on
- iLog
- \noun default
- ,
- \noun on
- iModel,
- \noun default
- and
- \noun on
- iClassify
- \noun default
- - which together allow for real-time classification of low-level activities.
-
- \noun on
- iLog
- \noun default
- is run on the user's iPhone and allows the user to specify which activity
- they will be performing.
- The application then records raw sensor data from the iPhone's three-axis
- accelerometer and 124 features computed from this data in real-time.
- The data is then stored on the device, annotated with the selected activity.
- \end_layout
-
- \begin_layout Standard
- The training data collected by
- \noun on
- iLog
- \noun default
- is then transferred to a desktop computer where
- \noun on
- iModel
- \noun default
- uses a Naïve Bayesian Network (NBN) to create a model which can be used
- to classify future input.
- The choice of NBNs was based on their ability to classify a set of trial
- data correctly, and the low computational cost of classifying data once
- the model has been generated.
- \end_layout
-
- \begin_layout Standard
- Once the model has been created, it is transferred back to the device where
- it is used by
- \noun on
- iClassify
- \noun default
- .
- This provides an API for other applications, and allows them to register
- for a callback which it publishes the user's current activity to every
- second.
- \end_layout
-
- \begin_layout Standard
- Unfortunately, neither the source code nor the API are published.
- The inability to run background processes on the iPhone suggests that any
-
- \begin_inset Quotes eld
- \end_inset
-
- API
- \begin_inset Quotes erd
- \end_inset
-
- would have to be more like a framework where the third-party developer
- has to re-engineer their application to use the
- \noun on
- iClassify
- \noun default
- application as a base.
- This is undesirable as it makes it extremely difficult to adapt existing
- applications to use the activity-aware API, and is a very cumbersome way
- of providing what could be a very minor piece of functionality for the
- application.
- \end_layout
-
- \begin_layout Subsubsection
- Evaluation
- \end_layout
-
- \begin_layout Standard
- \begin_inset CommandInset citation
- LatexCommand citet
- key "Miluzzo2009"
-
- \end_inset
-
- present an evaluation of the iPhone for use in
- \begin_inset Quotes eld
- \end_inset
-
- people-centric sensing applications
- \begin_inset Quotes erd
- \end_inset
-
- .
- One of the major drawbacks highlighted is that the iPhone does not support
- applications which run in the background.
- This means that any application wishing to perform continuous real-time
- activity detection would need to run as a foreground process, preventing
- the user from using the device for any other function.
- \end_layout
-
- \begin_layout Standard
- The research also shows that the computational compatibility of the iPhone
- is more than sufficient to perform the necessary calculations for a typical
- activity-recognising application, which suggests that any modern smart
- phone would be capable of these.
- \begin_inset Note Note
- status open
-
- \begin_layout Plain Layout
- Multitasking
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Subsection
- Android
- \end_layout
-
- \begin_layout Standard
- While the Android platform is relatively new, it is rapidly gaining market
- share on the more established mobile operating systems.
- A December 2009 survey
- \begin_inset CommandInset citation
- LatexCommand cite
- key "ChangeWave2010"
-
- \end_inset
-
- shows that 21% of respondents want their next smartphone purchase to run
- Android, a 350% increase from the same survey conducted three months prior.
- This is compared to the iPhone, which dropped 4% to 28% in the same time
- period.
- Gartner, a respected IT research firm, predicts that by 2012, Android will
- be the second most popular mobile operating system globally
- \begin_inset CommandInset citation
- LatexCommand cite
- key "ComputerWorld2010"
-
- \end_inset
-
- .
- \end_layout
-
- \begin_layout Standard
- In addition to its rapidly increasing popularity, the Android platform offers
- several advantages over the iPhone platform.
- Most notably is the ability to run background processes (called
- \noun on
- services
- \noun default
- ), which will allow a classifier application to run without interfering
- with the user's normal use of their mobile telephone.
- In addition, the Android OS provides access to the Bluetooth and GSM stacks,
- allowing for data from both to be used for activity detection.
- \end_layout
-
- \begin_layout Standard
- The ability to run a background process will enable a proper API for sharing
- activity data with other applications, which will allow third-party developers
- to make their applications context-aware with relatively little work on
- their part.
- This is extremely desirable as it will allow rapid prototyping of applications,
- which will hopefully lead to innovative new uses of activity classification.
- \end_layout
-
- \begin_layout Standard
- While it is purported
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Garakani2009"
-
- \end_inset
-
- that there is research being done on bringing activity-awareness to Android
- platforms, there does not seem to be any work published on this matter
- or any applications available to support it.
- While there a small number of self-proclaimed
- \begin_inset Quotes eld
- \end_inset
-
- context-aware
- \begin_inset Quotes erd
- \end_inset
-
- applications for Android, this context is almost exclusively limited to
- geolocation.
- This project will therefore produce one of the first publicly available
- activity-aware applications for the Android platform.
- \end_layout
-
- \begin_layout Section
- Location analysis
- \begin_inset CommandInset label
- LatexCommand label
- name "sec:Location-analysis"
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Standard
- Location-based services are currently undergoing an
- \begin_inset Quotes eld
- \end_inset
-
- explosion
- \begin_inset Quotes erd
- \end_inset
-
-
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Bellavista2008"
-
- \end_inset
-
- , thanks to improvements in technology, and greater openness on the part
- of service providers and handset manufacturers.
- All modern smartphone platforms have a geolocation stack, usually backed
- by a GPS chipset and in most cases augmented with either a database of
- known cell tower locations, or a map of known wifi network identifiers
- and locations, or both.
- The two databases allow for rough geolocation when GPS is not available,
- or for greatly decreased lookup time when a GPS lock is available.
- \end_layout
-
- \begin_layout Standard
- However, while the geolocation stack is a rich source of data, it is a poor
- source of information.
- A latitude/longitude pair may describe the user's exact location, but a
- user would be hard-pressed to tell the difference between the latitude/longitud
- e of their home, place of work, or of somewhere in between the two with
- no real significance.
- A great deal of research has therefore been devoted to detecting meaningful
- locations from GPS traces.
- \end_layout
-
- \begin_layout Standard
- \begin_inset Quotes eld
- \end_inset
-
- Place recognition
- \begin_inset Quotes erd
- \end_inset
-
- has two phases: learning and recognising.
- An initial learning phase analyses a sensor log and segments the data into
- places where the device is stable (stationary), and designates this as
- a
- \begin_inset Quotes eld
- \end_inset
-
- waypoint
- \begin_inset Quotes erd
- \end_inset
-
- .
- It then merges
- \begin_inset Quotes eld
- \end_inset
-
- waypoints
- \begin_inset Quotes erd
- \end_inset
-
- that appear to identify the same place being visited multiple times.
- The second phase uses these learned waypoints to recognise when the device
- is revisiting a place, and therefore also when the device is not visiting
- a previously known place (for example when it is moving between two)
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Hightower2005"
-
- \end_inset
-
- .
- \end_layout
-
- \begin_layout Standard
- Unfortunately, quite a lot of research into location analysis uses GPS
- \begin_inset Quotes eld
- \end_inset
-
- blackspots
- \begin_inset Quotes erd
- \end_inset
-
- to identify useful places
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Nurmi2006,Liao2007b"
-
- \end_inset
-
- .
- With older GPS chipsets, the satellite signal would be lost when the user
- entered a building, and this allowed an inference that the current location
- was probably a place of interest.
- However, modern GPS chipsets receive a signal in most indoor locations.
- It is possible that a decrease in signal strength or number of locked satellite
- s may still occur, or that GSM signal strength could be used instead, but
- these ideas have not been widely explored at present.
- \end_layout
-
- \begin_layout Standard
- There is, however, plenty of research relating to the use of location data
- outdoors.
- One application
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Liao2007b"
-
- \end_inset
-
- learns not only the user's frequently visited places, but the method of
- transport used between them and the typical routes taken.
- It can then offer instructions showing the user how to go from place to
- place, or issue alerts if the user appears to be going the wrong way (by
- getting on the wrong bus, for instance).
- The ability to correctly infer the user's destination would be extremely
- useful in a context-aware system: a user walking to do their grocery shopping
- is almost certainly going to want to interact with their phone differently
- than a user on a bus going to work.
- \end_layout
-
- \begin_layout Section
- Bluetooth
- \begin_inset CommandInset label
- LatexCommand label
- name "sec:Bluetooth"
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Standard
- The user's context depends on not only what they are doing, where they are
- doing it, but also who they are with.
- Sitting and eating lunch with a manager is quite a different context to
- sitting and eating lunch with a spouse.
- It would therefore be desirable to be able to identify between different
- people when performing context analysis.
- \end_layout
-
- \begin_layout Standard
- One of the few ways that a mobile telephone can identify other people is
- by searching for
- \emph on
- their
- \emph default
- mobile telephones.
- This can be done by scanning for Bluetooth devices, which involves broadcasting
- a
- \begin_inset Quotes eld
- \end_inset
-
- device inquiry
- \begin_inset Quotes erd
- \end_inset
-
- message; if a device chooses to answer the inquiry, it discloses its unique
- MAC address and device class
- \begin_inset Foot
- status collapsed
-
- \begin_layout Plain Layout
- the device class tells us whether the device is a computer or a mobile telephone
- , for example
- \end_layout
-
- \end_inset
-
- .
- Unfortunately, this requires the person to not only be carrying a mobile
- telephone, but a Bluetooth-enabled model, and for them to have configured
- their device to have Bluetooth enabled and to be
- \begin_inset Quotes eld
- \end_inset
-
- visible
- \begin_inset Quotes erd
- \end_inset
-
- .
- A study in 2004
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Eagle2004"
-
- \end_inset
-
- found that only 1 in 150 people had such a configured device on a university
- campus.
- This figure will undoubtedly be greater now, and may well be greater when
- in public, but it highlights that only a handful of people may be detectable
- via their Bluetooth devices.
- \end_layout
-
- \begin_layout Standard
- A study in 2006
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Nicolai2006"
-
- \end_inset
-
- used a similar technique to monitor the social context of the user, introducing
- the idea of
- \begin_inset Quotes eld
- \end_inset
-
- familiar
- \begin_inset Quotes erd
- \end_inset
-
- people,
- \begin_inset Quotes eld
- \end_inset
-
- unfamiliar
- \begin_inset Quotes erd
- \end_inset
-
- people and
- \begin_inset Quotes eld
- \end_inset
-
- familiar strangers
- \begin_inset Quotes erd
- \end_inset
-
- .
- These labels were applied based on the number of times their Bluetooth
- devices were detected
- \begin_inset Foot
- status collapsed
-
- \begin_layout Plain Layout
- and by extension the number of times the user had come into contact with
- them
- \end_layout
-
- \end_inset
-
- .
- While the definition of
- \begin_inset Quotes eld
- \end_inset
-
- familiar
- \begin_inset Quotes erd
- \end_inset
-
- and
- \begin_inset Quotes eld
- \end_inset
-
- unfamiliar
- \begin_inset Quotes erd
- \end_inset
-
- are quite obvious,
- \begin_inset Quotes eld
- \end_inset
-
- familiar strangers
- \begin_inset Quotes erd
- \end_inset
-
- is a new class of people used to describe those who the user encounters
- repeatedly, but doesn't interact with.
- This may include neighbours that are passed on the street, or fellow commuters
- on a journey into work.
- The number of people in each of those groups (and any changes in those
- numbers) can be used to infer how
- \begin_inset Quotes eld
- \end_inset
-
- comfortable
- \begin_inset Quotes erd
- \end_inset
-
- the user feels with their social context, and whether their current activity
- is part of a normal routine or is novel.
- \end_layout
-
- \begin_layout Standard
- This research has, to date, not been readily combined with activity-aware
- applications, and this project will aim to integrate the results of Bluetooth
- scanning with
- \begin_inset Quotes eld
- \end_inset
-
- classical
- \begin_inset Quotes erd
- \end_inset
-
- activity classification techniques and to evaluate whether it provides
- any benefit.
- \end_layout
-
- \begin_layout Section
- Power management
- \begin_inset CommandInset label
- LatexCommand label
- name "sec:Power-management"
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Standard
- One major consideration when deploying an application on a mobile device
- is the amount of power it will use.
- An application constantly polling any one sensor can reduce battery life
- significantly, and an application which kept all available sensors active
- (in addition to doing CPU-heavy analysis on them) would drain the battery
- in a typical smartphone in a matter of hours.
- A context-aware application is not very useful for a user if they can only
- use their telephone for an hour or two before it needs recharging!
- \end_layout
-
- \begin_layout Standard
- One solution
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Wang2009"
-
- \end_inset
-
- is to only use one or two sensors to monitor the user's activity until it
- appears to be transitioning.
- For example, if the user is believed to be walking, the application only
- needs to periodically check either the accelerometer (to confirm the user
- is still making walking motions) or GPS (to confirm the distance traveled
- is still consistent with walking) to know that their activity has not changed.
- As soon as the user's behaviour becomes inconsistent with walking, the
- application can bring other sensors online until it has successfully reclassifi
- ed the activity, and then resume monitoring with minimal sensors.
- \end_layout
-
- \begin_layout Standard
- Another option
- \begin_inset CommandInset citation
- LatexCommand cite
- key "Wang2009"
-
- \end_inset
-
- (which can be used in conjunction) is to only enable sensors for a short
- amount of time, and then sleep for a period before reactivating them.
- The
- \begin_inset Quotes eld
- \end_inset
-
- duty cycle
- \begin_inset Quotes erd
- \end_inset
-
- suggested for accelerometers is 6 second of sensing followed by 10 seconds
- of sleeping.
- The six second window is enough time to allow for capturing a full range
- of motion (several complete strides) if the user is walking or running,
- and then the ten second sleep stops the accelerometer using battery power
- until the next cycle.
- This process obviously means that a sudden switch in activity will not
- be noticed immediately, but a delay of a few seconds is acceptable as most
- activities will last for minutes or longer.
- \end_layout
-
- \begin_layout Standard
- The battery life on modern smartphones rarely exceeds 24 hours of typical
- use, so it is extremely important that any applications developed for this
- project does not significantly reduce this.
- A balance between prompt detection and notification of activity changes
- and battery use by sensors and processing algorithms will need to be found.
- \end_layout
-
- \begin_layout Standard
- \begin_inset Newpage pagebreak
- \end_inset
-
-
- \end_layout
-
- \begin_layout Part
- Activity classification
- \end_layout
-
- \begin_layout Section
- Sensor Logger application
- \end_layout
-
- \begin_layout Standard
- The primary component of context that this project aims to expose is the
- user's activity.
- The main factor in determining a user's activity is the data retrieved
- from the device's accelerometers.
- This gave rise to the project's first published application, titled
- \noun on
- Sensor Logger
- \noun default
- .
- The first version of
- \noun on
- Sensor Logger
- \noun default
- consisted of a single activity containing a large amount of text describing
- the project, an editable text field where the user could name their activity,
- and a button which initiated logging.
- \end_layout
-
- \begin_layout Standard
- \begin_inset Float figure
- wide false
- sideways false
- status collapsed
-
- \begin_layout Plain Layout
- \begin_inset Caption
-
- \begin_layout Plain Layout
- Sensor Logger component diagram
- \begin_inset CommandInset label
- LatexCommand label
- name "fig:Sensor-Logger-component"
-
- \end_inset
-
-
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \end_inset
-
- Once the user tapped the 'Start' button, the application launched a service
- which registered with the device's SensorManager and requested fast updates
- from both the accelerometer and the magnetic field sensor.
- Every 50ms the last value received from each axis on each sensor was written
- along with a timestamp to a file on the device.
- After 1024 samples were collected (a total of around 51 seconds), the service
- launched an uploader service and terminated itself.
- The uploader service read the file from the device's flash memory, opened
- a HTTP connection to the project website, and submitted the data to a PHP
- script.
- The PHP script in turn stored the data in a MySQL database.
-
- \begin_inset CommandInset ref
- LatexCommand prettyref
- reference "fig:Sensor-Logger-component"
-
- \end_inset
-
- shows the relationship between the various components involved in the Sensor
- Logger application.
- \begin_inset Note Note
- status open
-
- \begin_layout Plain Layout
- Diagram of components
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Subsection
- Market and user input
- \end_layout
-
- \begin_layout Standard
- The Sensor Logger application was made available on the Android Market,
- under the name 'Sensor Logger Test'.
- The description briefly outlined the aim of the project and emphasised
- that the Sensor Logger was a data gathering tool and didn't really provide
- any utility to end users.
- Despite this, over 1,000 submissions were received from anonymous users.
- While some of these did not provide any use for the reasons discussed in
-
- \begin_inset CommandInset ref
- LatexCommand prettyref
- reference "sec:Manual-classification"
-
- \end_inset
-
- , a number were manually classified and used to generate the model used
- in the final application.
- \end_layout
-
- \begin_layout Standard
- \begin_inset Float figure
- wide false
- sideways false
- status collapsed
-
- \begin_layout Plain Layout
- \begin_inset Graphics
- filename analysis_of_user-submitted_sensor_logger_data_sets.png
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
- \begin_inset Caption
-
- \begin_layout Plain Layout
- Analysis of user-submitted Sensor Logger results
- \begin_inset CommandInset label
- LatexCommand label
- name "fig:Analysis-of-user-submitted"
-
- \end_inset
-
-
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
-
- \end_layout
-
- \end_inset
-
- Version 0.2.0 of the Sensor Logger application introduced functionality where
- it classified the activity on the device before asking the user to name
- it (see
- \begin_inset CommandInset ref
- LatexCommand prettyref
- reference "sec:On-device-classification"
-
- \end_inset
-
- ).
- This allowed the submitted data to be augmented with an extra field saying
- what the activity classification algorithm thought the activity was.
- If the user confirmed that the activity was correct, the manual activity
- annotation was set to 'UNCLASSIFIED/NOTCORRECTED'.
- \end_layout
-
- \begin_layout Standard
- \begin_inset CommandInset ref
- LatexCommand prettyref
- reference "fig:Analysis-of-user-submitted"
-
- \end_inset
-
- shows a breakdown of all the results that were received from version 0.2.0
- or later of the application.
- The raw data is included in
- \begin_inset CommandInset ref
- LatexCommand prettyref
- reference "sec:User-annotated-Sensor-Logger"
-
- \end_inset
-
- .
- Nearly half of all the submissions were classified correctly, and only
- 15% were classified incorrectly.
- A large proportion of the submissions either had no text at all or had
- an activity that didn't make sense, such as
- \begin_inset Quotes eld
- \end_inset
-
- sjxjxgzog
- \begin_inset Quotes erd
- \end_inset
-
- or
- \begin_inset Quotes eld
- \end_inset
-
- it is a cat!
- \begin_inset Quotes erd
- \end_inset
-
- .
- There were also 30 submissions where the user had annotated the data with
- an activity that makes sense, but which isn't supported by the Sensor Logger.
- The majority of these were 'Sleeping' - but it is unclear in these circumstance
- s what the user is actually doing with their device; if it is left on a
- bedside table, for example, then there is no way to distinguish the actual
- activity of the user.
- \end_layout
-
- \begin_layout Standard
- \begin_inset Float figure
- wide false
- sideways false
- status collapsed
-
- \begin_layout Plain Layout
- \begin_inset Graphics
- filename breakdown_of_incorrect_results.png
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
- \begin_inset Caption
-
- \begin_layout Plain Layout
- Breakdown of incorrect results
- \begin_inset CommandInset label
- LatexCommand label
- name "fig:Breakdown-of-incorrect"
-
- \end_inset
-
-
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
-
- \end_layout
-
- \end_inset
-
-
- \begin_inset CommandInset ref
- LatexCommand prettyref
- reference "fig:Breakdown-of-incorrect"
-
- \end_inset
-
- shows a breakdown of the results deemed incorrect.
- A large majority of these incorrect results occurred when the user was
- sitting down, and the Sensor Logger incorrectly classified them as being
- in a vehicle of some sort.
- Of the remaining incorrect entries, 15% correctly classified the correct
- top level in the hierarchy (such as 'VEHICLE' or 'WALKING') but then misclassif
- ied further levels; the remaining 25% incorrectly classified this top level
- as well.
- \end_layout
-
- \begin_layout Subsection
- Exception handling
- \end_layout
-
- \begin_layout Standard
- Early user feedback on the Android Market indicated that the Sensor Logger
- application was
- \begin_inset Quotes eld
- \end_inset
-
- Force Closing
- \begin_inset Quotes erd
- \end_inset
-
- .
- This is a reference to the dialog that appears when an application throws
- an unhandled exception and stops running.
- The Market provides no facilities to engage with users, and there were
- no force close issues present on either the Android emulator or several
- physical devices the application was tested on, so it was difficult to
- determine the cause.
- \end_layout
-
- \begin_layout Standard
- In order to gain more data on this issue, an
- \noun on
- UncaughtExceptionHandler
- \noun default
- was written and appropriately registered with the application's thread.
- The exception handler is invoked by the
- \noun on
- Thread
- \noun default
- class any time a thread dies due to an unhandled exception.
- The implementation for the Sensor Logger application copied the details
- of any exception (including the reason and full stack trace) into a file,
- and then uploaded the file with some meta-data to the same website which
- was setup to handle uploading of accelerometer data.
- \end_layout
-
- \begin_layout Standard
- Soon after an updated version of the Sensor Logger was published including
- the new exception handler a report was uploaded.
- The stack trace indicated that the problem was a
- \noun on
- NumberFormatException
- \noun default
- when trying to convert the device's IMEI number into a
- \noun on
- long
- \noun default
- .
- After some brief research it became apparent that CDMA devices do not use
- IMEI numbers, but instead MEIDs (Mobile Equipment Identifier).
- MEIDs are hexidecimal instead of numerical, so obviously cannot be converted
- directly to a numeric type.
- The code was adjusted to decode MEIDs properly and a new version of the
- application published, and the error reports ceased.
- \end_layout
-
- \begin_layout Standard
- From a development perspective, the utility of being notified directly of
- exceptions is immense.
- It is very difficult for users to find the details of an exception following
- a force close, so extremely unlikely that anyone will report problems in
- sufficient detail for them to be fixed.
- The exception handling code was therefore abstracted into a common class,
- and included in every application released as part of this project.
- \end_layout
-
- \begin_layout Section
- Manual classification
- \begin_inset CommandInset label
- LatexCommand label
- name "sec:Manual-classification"
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Standard
- \begin_inset Float figure
- wide false
- sideways false
- status collapsed
-
- \begin_layout Plain Layout
- \begin_inset Graphics
- filename website-windows.png
- height 70pheight%
- rotateAngle 90
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
- \begin_inset Caption
-
- \begin_layout Plain Layout
- Website for manually classifying windows
- \begin_inset CommandInset label
- LatexCommand label
- name "fig:Website-for-manually"
-
- \end_inset
-
-
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
-
- \end_layout
-
- \end_inset
-
- Once the sensor data was logged in the database, a web interface provided
- a graphical representation of the acceleration and magnetic field readings.
- It also allowed a handful of authenticated users to manually classify overlappi
- ng
- \begin_inset Quotes eld
- \end_inset
-
- windows
- \begin_inset Quotes erd
- \end_inset
-
- of 128 data points.
- The classification portion of the website is shown in
- \begin_inset CommandInset ref
- LatexCommand prettyref
- reference "fig:Website-for-manually"
-
- \end_inset
-
- ; it shows the first six overlapping windows for one submission, with the
- third window highlighted because the user's cursor is over the corresponding
- dropdown.
- Users of this system could define activities in a hierarchical fashion,
- starting with two root nodes - 'CLASSIFIED' and 'UNCLASSIFIED'.
- Early data submitted resulted in a classification hierarchy of:
- \end_layout
-
- \begin_layout Itemize
- UNCLASSIFIED
- \end_layout
-
- \begin_deeper
- \begin_layout Itemize
- PENDING (not yet manually assigned)
- \end_layout
-
- \begin_layout Itemize
- UNKNOWN (unable to determine actual activity from user label)
- \end_layout
-
- \begin_layout Itemize
- DNI (short for
- \begin_inset Quotes eld
- \end_inset
-
- Do Not Include
- \begin_inset Quotes erd
- \end_inset
-
- , for windows which appear erroneous)
- \end_layout
-
- \end_deeper
- \begin_layout Itemize
- CLASSIFIED
- \end_layout
-
- \begin_deeper
- \begin_layout Itemize
- WALKING
- \end_layout
-
- \begin_deeper
- \begin_layout Itemize
- STAIRS (not used in itself)
- \end_layout
-
- \begin_deeper
- \begin_layout Itemize
- UP
- \end_layout
-
- \begin_layout Itemize
- DOWN
- \end_layout
-
- \end_deeper
- \end_deeper
- \begin_layout Itemize
- IDLE (not used in itself)
- \end_layout
-
- \begin_deeper
- \begin_layout Itemize
- SITTING
- \end_layout
-
- \begin_layout Itemize
- STANDING
- \end_layout
-
- \end_deeper
- \begin_layout Itemize
- VEHICLE (not used in itself)
- \end_layout
-
- \begin_deeper
- \begin_layout Itemize
- CAR
- \end_layout
-
- \begin_layout Itemize
- BUS
- \end_layout
-
- \end_deeper
- \begin_layout Itemize
- DANCING
- \end_layout
-
- \end_deeper
- \begin_layout Standard
- It was observed that many samples had erroneous data either at the start
- or the end of the recording.
- This was a result of the user putting the device away in a pocket (as instructe
- d) or picking it back up to check the results.
- A classification of 'DNI', short for 'Do Not Include' was therefore introduced
- which allowed the erroneous windows to be summarilary excluded from later
- analysis.
- Later iterations of the Sensor Logger application included a 10 second
- delay at the start to give the user time to put the device away, and sounded
- an audible alert at the end, which reduced the number of records submitted
- with bad data.
- \end_layout
-
- \begin_layout Standard
- Another problem with the user submitted data was that some activity descriptions
- didn't make sense.
- With the earliest versions of the Sensor Logger, a significant number of
- users entered their own name or a non-sensical string into the textbox
- labelled
- \begin_inset Quotes eld
- \end_inset
-
- Activity name
- \begin_inset Quotes erd
- \end_inset
-
- .
- This suggested that users were either not reading or misunderstanding the
- instructions.
- A classification for 'UNKNOWN' was introduced to facilitate removal of
- the records where classifications couldn't be inferred from the activity
- name.
- \end_layout
-
- \begin_layout Section
- Feature extraction
- \end_layout
-
- \begin_layout Standard
- Once a reasonable sample of data had been recorded, the PHP script was modified
- to allow exporting of all classified windows.
- It produced a plain text file containing the sensor readings and timestamp
- for each of the 128 points in each window, as well as the manually-applied
- classification.
- It did not include information as to which windows were from the same sample,
- or the orginal user-supplied activity name.
- \begin_inset Note Note
- status open
-
- \begin_layout Plain Layout
- Sample in appendix
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Standard
- A Java program was written which imported the exported data.
- A series of 'feature extractors' were written.
- These calculated the:
- \end_layout
-
- \begin_layout Itemize
- maximum
- \end_layout
-
- \begin_layout Itemize
- minimum
- \end_layout
-
- \begin_layout Itemize
- range
- \end_layout
-
- \begin_layout Itemize
- median
- \end_layout
-
- \begin_layout Itemize
- mean
- \end_layout
-
- \begin_layout Itemize
- absolute mean
- \end_layout
-
- \begin_layout Standard
- Each of these extractors was run over the set of 128 data points from each
- axis on each sensor, giving a total of 36 features.
- It was planned to add further features including fast fourier transforms
- and energy, as suggested by multiple papers consulted in background research.
- \end_layout
-
- \begin_layout Standard
- The program was modified to export the features and classification of each
- window in ARFF
- \begin_inset Note Note
- status open
-
- \begin_layout Plain Layout
- ref
- \end_layout
-
- \end_inset
-
- (Attribute Relation File Format).
- This is a format used by Weka
- \begin_inset Note Note
- status open
-
- \begin_layout Plain Layout
- ref
- \end_layout
-
- \end_inset
-
- , a popular data mining suite developed by the University of Waikato.
- \begin_inset Note Note
- status open
-
- \begin_layout Plain Layout
- Sample in appendix
- \end_layout
-
- \end_inset
-
- The ARFF file was imported into Weka and analysed.
- \end_layout
-
- \begin_layout Standard
- It was found that Weka could correctly classified
- \begin_inset Note Note
- status open
-
- \begin_layout Plain Layout
- 99%
- \end_layout
-
- \end_inset
-
- of activities (measured using a
- \begin_inset Note Note
- status open
-
- \begin_layout Plain Layout
- hold-one cross validation
- \end_layout
-
- \end_inset
-
- ) using a K-Nearest Network algorithm with K = 1.
- Furthermore, it became apparent that the error did not significantly increase
- when the 36 features were reduced to just four - the absolute mean and
- the range of the Y and Z accelerometer readings.
- Given the low cost of calculating these features and the very high detection
- rate, further research into other features such as FFTs was not performed.
- \end_layout
-
- \begin_layout Standard
- \begin_inset Note Note
- status open
-
- \begin_layout Plain Layout
- Trumpet blowing
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Standard
- The application was again modified to read the exported data, calculate
- the four interesting features, and create a mapping of data points to activity.
- This map was then serialised and written to a file
- \begin_inset Note Note
- status open
-
- \begin_layout Plain Layout
- expand
- \end_layout
-
- \end_inset
-
- .
- \end_layout
-
- \begin_layout Section
- On-device classification
- \begin_inset CommandInset label
- LatexCommand label
- name "sec:On-device-classification"
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Standard
- The serialised model was bundled with a new version of the Sensor Logger
- application, along with a completely redesigned user interface.
- The application now consisted of a series of activities: on opening the
- application, the user is presented with an introduction activity which
- explains what the application does and the aims of the project; when they
- click the 'next' button a 10 second countdown is displayed with the instruction
- to put the phone away repeated.
- During the data collection period an animated pattern of dots is displayed
- so the user knows the application is still working if they look at it.
- When data collection is completed, the device adds a notification with
- sound and vibrate settings, and displays another progress screen while
- a background service analyses the data.
- The result of the classification is then displayed prominently and the
- user is presented with two buttons - one to confirm the classification
- and one to reject and correct it.
- The on-device classification (and any correction made to it) is submitted
- along with all the data previously submitted.
- The user is then presented with a 'Thank you' message, and a unique link
- to the project website where they can view graphs of their activities.
- \begin_inset Note Note
- status open
-
- \begin_layout Plain Layout
- Mess!
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Section
- Activity Recorder application
- \end_layout
-
- \begin_layout Standard
- \begin_inset Note Note
- status open
-
- \begin_layout Plain Layout
- Screenshot
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Standard
- The Activity Recorder application was the second application published on
- the market.
- In contrast to the sensor logger, it only records the two relevant axes
- of the accelerometer, and all data is kept in memory
- \begin_inset Note Note
- status open
-
- \begin_layout Plain Layout
- on the heap?
- \end_layout
-
- \end_inset
-
- instead of being written to a file.
- \end_layout
-
- \begin_layout Standard
- The activity recorder consists of a background service which records 128
- samples of sensor data once every 30 seconds.
- At all other times, the accelerometer is not accessed to conserve battery
- power.
- The samples are then classified using the same model as the Sensor Logger
- application, and the resulting activity is appended to a list.
-
- \begin_inset Note Note
- status open
-
- \begin_layout Plain Layout
- Adjacent
- \end_layout
-
- \end_inset
-
- samples which are classified as the same activity are merged together.
- \end_layout
-
- \begin_layout Standard
- The user interface displays a list of activities, along with their start
- time and duration in minutes or hours.
- \end_layout
-
- \begin_layout Standard
- \begin_inset Newpage pagebreak
- \end_inset
-
-
- \end_layout
-
- \begin_layout Part
- Other sensors
- \end_layout
-
- \begin_layout Section
- Bluetooth
- \end_layout
-
- \begin_layout Standard
- Being able to identify who the user is accompanied by would be extremely
- beneficial in a context-aware system.
- One of the few ways to do this at present is to monitor the presence of
- other user's mobile telephones by scanning for visible Bluetooth devices.
- As discussed in
- \begin_inset CommandInset ref
- LatexCommand prettyref
- reference "sec:Bluetooth"
-
- \end_inset
-
- , if sufficient devices are visible, users can be classified according to
- whether they are familiar, strangers, or familiar strangers.
- This provides a great deal of context to the user's activity.
- \end_layout
-
- \begin_layout Standard
- Before this Bluetooth algorithm can be implemented, it needs to be determined
- whether there are a sufficient number of discoverable devices to make it
- worthwhile.
- As with any radio transceiver, a lot of battery power is consumed when
- Bluetooth is enabled and the device is actively scanning for others.
- This means that if there are insufficient discoverable devices, the cost
- of enabling and scanning for Bluetooth devices would outweigh the benefits.
- As mentioned previously, there is no use in a very accurate context API
- if the user's battery only lasts for a few hours.
- \end_layout
-
- \begin_layout Standard
- To determine the utility of scanning for Bluetooth devices, a group of three
- volunteers were asked to manually enable Bluetooth and scan for devices
- using the built in functionality exposed in Android's settings screens.
- It was planned to create an application which could scan and classify devices
- appropriately but the Bluetooth API is only exposed to user-space applications
- in version 5 of the Android SDK, which corresponds to the
- \begin_inset Quotes eld
- \end_inset
-
- Eclair
- \begin_inset Quotes erd
- \end_inset
-
- or 2.0 release; at the time of the experiment, only one of the three volunteers
- was using a device for which Eclair was available.
- This also means that adding Bluetooth support would have a further cost
- of having to either limit access to pre-2.0 users, maintain two separate
- versions of the application, or spend extra time developing a solution
- which would attempt to use the Bluetooth API if and only if it is available.
- \end_layout
-
- \begin_layout Standard
- \begin_inset Float table
- wide false
- sideways false
- status collapsed
-
- \begin_layout Plain Layout
- \begin_inset Tabular
- <lyxtabular version="3" rows="13" columns="7">
- <features>
- <column alignment="center" valignment="top" width="0">
- <column alignment="center" valignment="top" width="0">
- <column alignment="center" valignment="top" width="0">
- <column alignment="center" valignment="top" width="0">
- <column alignment="center" valignment="top" width="0">
- <column alignment="center" valignment="top" width="0">
- <column alignment="center" valignment="top" width="0">
- <row>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Environment
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Devices
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- People
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Proportion discoverable
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Familiar
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Familiar Strangers
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Strangers
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Car
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0%
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Bus
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 20
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 5%
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 20
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Street
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 2
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 15
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 13%
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 15
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Bar
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 2
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 12
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 17%
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 10
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Office
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 6
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0%
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 5
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Office
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 4
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0%
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 4
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Home
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0%
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Home
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 2
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0%
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 2
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Lecture
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 5
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 80
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 6%
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 10
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 70
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Meeting
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 6
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 17%
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 6
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Restaurant
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 2
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 22
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 9%
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 2
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 19
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Supermarket
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 2
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 200%
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 0
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- </row>
- </lyxtabular>
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
- \begin_inset Caption
-
- \begin_layout Plain Layout
- Bluetooth scanning results
- \begin_inset CommandInset label
- LatexCommand label
- name "tab:Bluetooth-scanning-results"
-
- \end_inset
-
-
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
-
- \end_layout
-
- \end_inset
-
- For the experiment, the users were asked to record the number of visible
- Bluetooth devices, their environment and the estimated number of people
- around them.
- They were also asked to classify the people into rough groups of
- \begin_inset Quotes eld
- \end_inset
-
- familiar
- \begin_inset Quotes erd
- \end_inset
-
- (such as co-workers, family and friends),
- \begin_inset Quotes eld
- \end_inset
-
- familiar strangers
- \begin_inset Quotes erd
- \end_inset
-
- (people they see regularly but are not particularly familiar with), or
-
- \begin_inset Quotes eld
- \end_inset
-
- strangers
- \begin_inset Quotes erd
- \end_inset
-
- .
- The results are itemised in
- \begin_inset CommandInset ref
- LatexCommand prettyref
- reference "tab:Bluetooth-scanning-results"
-
- \end_inset
-
- .
- \end_layout
-
- \begin_layout Standard
- The results show that in general there is a very poor proportion of devices
- that are visible.
- The results also suggest that Bluetooth would be a poor method for finding
-
- \begin_inset Quotes eld
- \end_inset
-
- familiar
- \begin_inset Quotes erd
- \end_inset
-
- people, as the situations with very few strangers generally had almost
- no discoverable devices.
- There are several possible reasons for the low proportion of devices: modern
- phones tend to default to having Bluetooth switched off for reasons of
- battery life and user privacy, and even when enabled the devices tend to
- default to being non-discoverable.
- In fact, Android devices will only allow the user to make the device discoverab
- le for 30 seconds at a time - the setting is automatically reverted after
- this period.
- Another consideration is that the three volunteers are all involved in
- extremely technology-focused settings: one was a student studying a computing
- course, one a software engineer, and one a systems administrator.
- Whether or not these technology-rich settings would artificially inflate
- results (more technology means more discoverable devices) or deflate them
- (more tech-savvy users mean fewer needlessly enabling Bluetooth discovery)
- is unclear.
- \end_layout
-
- \begin_layout Section
- Microphone
- \end_layout
-
- \begin_layout Section
- Camera
- \end_layout
-
- \begin_layout Standard
- \begin_inset Newpage pagebreak
- \end_inset
-
-
- \end_layout
-
- \begin_layout Part
- Places
- \end_layout
-
- \begin_layout Section
- Use of GPS/GSM blackspots
- \end_layout
-
- \begin_layout Standard
- As discussed in
- \begin_inset CommandInset ref
- LatexCommand prettyref
- reference "sec:Location-analysis"
-
- \end_inset
-
- a lot of existing research into identifying interesting places relied on
- the fact that with hardware that is now 5-10 years old, you could not reliably
- get a GPS signal indoors.
- Thus whenever the user remained somewhere without a GPS signal it was likely
- that they were spending time indoors, and therefore their current location
- would be noteworthy.
- \end_layout
-
- \begin_layout Standard
- Unfortunately, modern GPS hardware is much more sensitive and can quite
- easily get a signal indoors in most circumstances.
- One possible solution to this was to monitor the strength of either the
- GPS lock or the GSM signal, and attempt to determine whether or not a differenc
- e was noticable.
- An experiment was therefore conducted to record the GPS and GSM status
- for multiple indoor and outdoor locations.
- \end_layout
-
- \begin_layout Standard
- \begin_inset Float table
- placement bh
- wide false
- sideways false
- status collapsed
-
- \begin_layout Plain Layout
- \begin_inset Tabular
- <lyxtabular version="3" rows="9" columns="4">
- <features>
- <column alignment="center" valignment="top" width="0">
- <column alignment="center" valignment="top" width="0">
- <column alignment="center" valignment="top" width="0">
- <column alignment="center" valignment="top" width="0">
- <row>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Location
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- GSM strength
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- GPS satellites
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- GPS time to fix
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Indoors
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- -101 dBm
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 10
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- <1 sec
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Outdoors
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- -101 dBm
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 8
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- <1 sec
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Indoors
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- -71 dBm
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 6
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 2 sec
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Outdoors
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- -67 dBm
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 7
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 2 sec
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Indoors
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- -67 dBm
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 11
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- <1 sec
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Outdoors
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- -67 dBm
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 10
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 3 secs
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Indoors
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- -67 dBm
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 10
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- <1 sec
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Outdoors
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- -43 dBm
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 10
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- <1 sec
- \end_layout
-
- \end_inset
- </cell>
- </row>
- </lyxtabular>
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
- \begin_inset Caption
-
- \begin_layout Plain Layout
- GPS and GSM strengths
- \begin_inset CommandInset label
- LatexCommand label
- name "tab:GPS-and-GSM"
-
- \end_inset
-
-
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
-
- \end_layout
-
- \end_inset
-
- At four separate indoor locations, the third-party
- \noun on
- GPS Status
- \noun default
- application was used to observe the number of satellites the device was
- receiving a signal from, and the amount of time it took to acquire a fix
- on all of those satellites.
- The GSM signal strength as reported by the device's built in debugging
- tools was also recorded.
- The device was then moved outdoors to the nearest appropriate open area
- (footpath, outdoor seating area, etc), and the process was repeated.
- The results are summarised in
- \begin_inset CommandInset ref
- LatexCommand prettyref
- reference "tab:GPS-and-GSM"
-
- \end_inset
-
- .
- \end_layout
-
- \begin_layout Standard
- While the indoor GSM strength is lower than the corresponding outdoor strength
- in two out of the four samples, it is still significantly stronger than
- the weakest recorded indoor or outdoor signal.
- In the other two cases the signal strength was the same for both indoors
- and outdoors.
- The GSM signal strength therefore seems to be a poor indicator of whether
- or not the user is indoors - it would have to be continually monitored
- to detect a drop in signal strength, and the (limited) experimental data
- shows that this would have a 50% false negative rate.
- The experiment does not allow us to reason about false positives, but it
- is easy to imagine that many circumstances would give rise to drops in
- signal strength - the most obvious being moving away from the cell tower.
- \end_layout
-
- \begin_layout Standard
- The GPS results show even less correlation between indoor and outdoor readings.
- In two out of the four locations, the indoor test identified more satellites
- than the outdoor test - the opposite to what would be expected.
- This could be because the indoor locations were typically above ground
- level - the extra altitude may be more beneficial to obtaining a lock than
- the obstruction of the building itself.
- It seems more likely, however, that the numbers are not correlated in any
- way, and a larger experiment would reveal it to be random variance.
- Similarly, the time taken to lock the satellites is typically very small,
- but in a few situations there is a noticable delay.
- The location which resulted in a three second lock time was repeated after
- a thirty second pause and obtained a sub-second lock time, but the original
- data was included in the results.
- \end_layout
-
- \begin_layout Standard
- The experiment, although extremely limited in size, shows that it is unlikely
- that GSM strength or GPS metadata would be useful in determining interesting
- places.
- Alternative methods therefore had to be considered.
- \end_layout
-
- \begin_layout Section
- Detecting places by time spent
- \end_layout
-
- \begin_layout Standard
- Without information about whether or not the user is indoors, the next best
- method to detect interesting places is by monitoring the amount of time
- the user spends there.
- It stands to reason that a location where the user is only present fleetingly
- as they pass through is less important than somewhere they spend half a
- day.
- \end_layout
-
- \begin_layout Standard
- The Android operating system provides two methods of determining the user's
- location -
- \begin_inset Quotes eld
- \end_inset
-
- coarse
- \begin_inset Quotes erd
- \end_inset
-
- , which uses a cell tower and WiFi access point database, and
- \begin_inset Quotes eld
- \end_inset
-
- fine
- \begin_inset Quotes erd
- \end_inset
-
- which uses the device's GPS chipset.
- While
- \begin_inset Quotes eld
- \end_inset
-
- coarse
- \begin_inset Quotes erd
- \end_inset
-
- is less accurate than using GPS, it also uses significantly less battery
- power.
- Brief testing revealed that while GPS regularly obtained accuracies of
- below five metres,
- \begin_inset Quotes eld
- \end_inset
-
- network
- \begin_inset Quotes erd
- \end_inset
-
- location (using cell tower IDs and a built-in database) obtained accuracies
- in the region of 500 metres.
- Network location augmented with the built-in database of WiFi access point
- locations obtained accuraries in the same region as GPS.
- However, WiFi augmentation only works when the user has elected to enable
- WiFi on their device, and this puts a large drain on the battery.
- \end_layout
-
- \begin_layout Standard
- As the most important places a user typically visits will be much greater
- than 500 metres apart,
- \begin_inset Quotes eld
- \end_inset
-
- coarse
- \begin_inset Quotes erd
- \end_inset
-
- location will was used for all location-related tasks in the project.
- Because of this large inaccuracy, places could not be represented by a
- single point but must have a radius to compensate for the inaccuracy.
- Based on earlier experimentation, this radius was fixed at 500 metres.
- \end_layout
-
- \begin_layout Standard
- A new
- \begin_inset Quotes eld
- \end_inset
-
- place
- \begin_inset Quotes erd
- \end_inset
-
- is identified when the user remains within 500 metres of a point for at
- least 3 minutes.
- This figure is, hopefully, long enough to eliminate places where the user
- is temporarily held up (such as traffic lights), but short enough to include
- places the user visits but doesn't remain for a long length of time (such
- as supermarkets).
- When implementing this algorithm, care was taken to ensure that the length
- of time was defined as a constant and so could easily be changed if experimenta
- l data showed that it was either too long or too short.
- \end_layout
-
- \begin_layout Standard
- \begin_inset Newpage pagebreak
- \end_inset
-
-
- \end_layout
-
- \begin_layout Part
- The
- \noun on
- Context Analyser
- \noun default
- and applications
- \end_layout
-
- \begin_layout Standard
- \begin_inset Newpage pagebreak
- \end_inset
-
-
- \end_layout
-
- \begin_layout Part
- Evaluation
- \end_layout
-
- \begin_layout Section
- Reports
- \end_layout
-
- \begin_layout Standard
- The results of the experimentation described in section
- \begin_inset CommandInset ref
- LatexCommand ref
- reference "sec:Experimentation"
-
- \end_inset
-
- should be written up as a report.
- The reports must include the data collected in each of the experiments,
- the conclusions drawn from those, and the impact of the results of the
- experiment on the project deliverables.
- \end_layout
-
- \begin_layout Section
- Deliverables
- \end_layout
-
- \begin_layout Standard
- On successful completion of the project, there should be three deliverable
- applications as specified in section
- \begin_inset CommandInset ref
- LatexCommand ref
- reference "sec:Deliverables"
-
- \end_inset
-
- .
- These can be tested and evaluated in a variety of manners:
- \end_layout
-
- \begin_layout Subsection
- Unit tests
- \end_layout
-
- \begin_layout Standard
- Throughout the development of the project, unit tests should be created
- to test key functionality of all applications.
- It is expected that at the completion of the project, all unit tests should
- pass successfully, and they will have a code coverage of 80% or above.
- \end_layout
-
- \begin_layout Subsection
- System tests
- \end_layout
-
- \begin_layout Standard
- The classifier application should also have a suite of system tests.
- These should consist of a set of fake or pre-recorded inputs which are
- fed into the application in place of raw sensor data.
- The output of the classifier (via the API) can then be compared to expected
- output for the data.
- \end_layout
-
- \begin_layout Subsection
- User acceptance testing
- \end_layout
-
- \begin_layout Standard
- The Locale addon and context-aware home screen should be subject to user
- acceptance testing for evaluation.
- This should take the form of providing the applications to multiple end
- users, allowing them to use them for a period of time (providing instructions
- for certain tasks to complete).
- The users should then be presented with a questionnaire which they can
- use to evaluate the functionality, utility and design of the applications.
- \end_layout
-
- \begin_layout Subsubsection
- Android market
- \end_layout
-
- \begin_layout Standard
- In addition to providing the applications to a closed set of users, the
- applications should be published to the Android market.
- This will allow any owner of a compatible Android device to download and
- use the applications.
- The market also allows users to rate the application and leave comments,
- which will be an extremely useful method of evaluating the success of the
- applications.
- \end_layout
-
- \begin_layout Standard
- As part of this, the classifier application/framework will be published,
- and should include instructions for developers detailing how they can make
- their applications context-aware.
- The interest expressed and number of applications which use it (if any)
- will be an indicator of the effectiveness of the API and its documentation.
- \end_layout
-
- \begin_layout Subsection
- Classification scope
- \end_layout
-
- \begin_layout Standard
- The classifier should be able to classify the following activities:
- \end_layout
-
- \begin_layout Itemize
- walking
- \end_layout
-
- \begin_layout Itemize
- running
- \end_layout
-
- \begin_layout Itemize
- standing
- \end_layout
-
- \begin_layout Itemize
- sitting
- \end_layout
-
- \begin_layout Itemize
- traveling in a vehicle
- \end_layout
-
- \begin_layout Standard
- These should be evaluated by means of a leave-one-out cross-validation test,
- with data collected from one or more users and annotated by hand.
- It is expected that the classifier should correctly classify all activities
- with an accuracy of at least 70%, within 30 seconds of the activity being
- started.
- \end_layout
-
- \begin_layout Subsection
- Resource usage
- \end_layout
-
- \begin_layout Standard
- Finally, the applications should be evaluated based on their resource usage.
- One of the main concerns will be battery usage (caused both by the application
- using processor time, and activating sensors), but attention must also
- be paid to memory consumption (especially after extended use).
- The goal should be to ensure that the resource usage of the applications
- in this project do not adversely impact the functionality of the device;
- that is, battery life should not be reduced so significantly that it requires
- users to change their normal charging behaviour, and memory usage should
- not be so high as to cause other applications to become sluggish or be
- closed by the operating system.
- \end_layout
-
- \begin_layout Standard
- \begin_inset Newpage pagebreak
- \end_inset
-
-
- \end_layout
-
- \begin_layout Part
- Conclusion
- \end_layout
-
- \begin_layout Standard
- \begin_inset Newpage pagebreak
- \end_inset
-
-
- \end_layout
-
- \begin_layout Part
- Appendices
- \end_layout
-
- \begin_layout Section
- \start_of_appendix
- User Guide - Context Analyser
- \end_layout
-
- \begin_layout Standard
- Welcome to the
- \noun on
- Context Analyser
- \noun default
- .
- This application analyses your
- \emph on
- context
- \emph default
- as you carry your phone around with you performing day-to-day activities.
- Other applications can query your context information and enhance their
- behaviour so that they're more relevant to what you're doing.
- \end_layout
-
- \begin_layout Standard
- The context analyser currently provides the following context information:
- \end_layout
-
- \begin_layout Itemize
- Your activity
- \end_layout
-
- \begin_layout Itemize
- Your location
- \end_layout
-
- \begin_layout Itemize
- Your predicted destination, if you're not at a known location
- \end_layout
-
- \begin_layout Standard
- It does this by gathering data from your phone's accelerometers and location
- provider.
- Data is recorded for a few seconds once a minute, to preserve your battery
- life.
- \end_layout
-
- \begin_layout Standard
- For your 'activity', the context analyser tries to detect whether you are
- walking, sitting, standing, or in a vehicle.
- It can also expand on these to detect the difference between a car and
- a bus, and walking normally and walking up or down stairs.
- Future updates may add more activities.
- \end_layout
-
- \begin_layout Standard
- For your location and destination, the context analyser deals in 'places'.
- These are locations up to 500m wide where you have spent several minutes
- not moving.
- A place could correspond to your home, office, favourite coffee shop or
- a bus stop you frequently wait at.
- When you move between places, the context analyser notes which activities
- it thought you were performing, and stores these as a 'journey' which links
- the two places.
- When you next set off from one of these, it can compare your activities
- and see if it can guess where you're heading.
- \end_layout
-
- \begin_layout Standard
- There is very little you can do with the context analyser on its own.
- It's built as a tool for other applications to hook into.
-
- \begin_inset Float figure
- wide false
- sideways false
- status collapsed
-
- \begin_layout Plain Layout
- \begin_inset Graphics
- filename contextanalyser-featured.png
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
- \begin_inset Caption
-
- \begin_layout Plain Layout
- Featured applications
- \begin_inset CommandInset label
- LatexCommand label
- name "fig:Featured-applications"
-
- \end_inset
-
-
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \end_inset
-
- You can see some of these featured applications listed when you open the
- context analyser (see
- \begin_inset CommandInset ref
- LatexCommand prettyref
- reference "fig:Featured-applications"
-
- \end_inset
-
- ) .
- Simply click on one of them and the Android market will open for you to
- view or install your chosen app.
- \end_layout
-
- \begin_layout Standard
- \begin_inset Float figure
- wide false
- sideways false
- status collapsed
-
- \begin_layout Plain Layout
- \begin_inset Graphics
- filename contextanalyser-menu.png
-
- \end_inset
-
-
- \begin_inset Caption
-
- \begin_layout Plain Layout
- Disable service button
- \begin_inset CommandInset label
- LatexCommand label
- name "fig:Disable-service-button"
-
- \end_inset
-
-
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \end_inset
-
- The context analyser will run a background service as soon as you open the
- application, or whenever another application requests data from it.
- If you wish to disable the background service (which will stop the context
- analyser from detecting places or determining your activity), press the
-
- \noun on
- menu
- \noun default
- button and select the
- \noun on
- Disable service
- \noun default
- option (see
- \begin_inset CommandInset ref
- LatexCommand prettyref
- reference "fig:Disable-service-button"
-
- \end_inset
-
- ).
- The background service will not run until you repeat the procedure and
- select
- \noun on
- Enable service
- \noun default
- .
- \begin_inset Newpage pagebreak
- \end_inset
-
-
- \end_layout
-
- \begin_layout Section
- User Guide - Places
- \end_layout
-
- \begin_layout Standard
- The
- \noun on
- places
- \noun default
- application shows you all of the places detected by the
- \noun on
- Context Analyser
- \noun default
- , and the journeys you make in between them.
- The
- \noun on
- Context Analyser
- \noun default
- is a tool which tries to determine your current activity and location,
- and your destination if you're on the move.
- If you don't have the
- \noun on
- Context Analyser
- \noun default
- installed, you'll be prompted to install it from the market.
- \end_layout
-
- \begin_layout Standard
- \begin_inset Float figure
- wide false
- sideways false
- status collapsed
-
- \begin_layout Plain Layout
- \begin_inset Graphics
- filename places-normal.png
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
- \begin_inset Caption
-
- \begin_layout Plain Layout
- Places application
- \begin_inset CommandInset label
- LatexCommand label
- name "fig:Places-application"
-
- \end_inset
-
-
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
-
- \end_layout
-
- \end_inset
-
- The places application displays a map and marks each detected place with
- an orange star.
- Places you've travelled between are connected with a red line - the thicker
- the line, the more frequently you make that journey.
- In
- \begin_inset CommandInset ref
- LatexCommand prettyref
- reference "fig:Places-application"
-
- \end_inset
-
- , you can see two places with a very frequently made journey between them.
- \end_layout
-
- \begin_layout Standard
- You can pan the map by dragging it around with your finger, or by moving
- your phone's trackball (if it has one).
- To zoom in and out, tap the screen and wait two seconds and the zoom controls
- will appear at the bottom of the map.
- Simply tap either button to zoom in or out.
- \end_layout
-
- \begin_layout Standard
- \begin_inset Float figure
- wide false
- sideways false
- status collapsed
-
- \begin_layout Plain Layout
- \begin_inset Graphics
- filename places-toast.png
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
- \begin_inset Caption
-
- \begin_layout Plain Layout
- Place details
- \begin_inset CommandInset label
- LatexCommand label
- name "fig:Place-details"
-
- \end_inset
-
-
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
-
- \end_layout
-
- \end_inset
-
- To see more information about a place, simply tap on its star.
- A small
- \emph on
- toast
- \emph default
- will appear giving you the name of the place, the number of visits, and
- the date and time of your last visit.
- Names are determined automatically by geocoding the latitude and longitude
- to a nearby place name - this could be the name of a street, a nearby landmark
- or a side alley.
-
- \begin_inset CommandInset ref
- LatexCommand prettyref
- reference "fig:Place-details"
-
- \end_inset
-
- shows the result of tapping one of the stars - the name of the place is
-
- \begin_inset Quotes eld
- \end_inset
-
- Rose Alley
- \begin_inset Quotes erd
- \end_inset
-
- , it has been visited 37 times and the last time this happened was in the
- early hours of July the 10th.
- \begin_inset Newpage pagebreak
- \end_inset
-
-
- \end_layout
-
- \begin_layout Section
- User Guide - Locale plugin
- \end_layout
-
- \begin_layout Standard
- The
- \noun on
- Context Analyser
- \noun default
- plugin for
- \noun on
- Locale
- \noun default
- allows you to create
- \noun on
- Locale
- \noun default
- situations based on information provided by the
- \noun on
- Context Analyser
- \noun default
- .
-
- \noun on
- Locale
- \noun default
- is an application which allows you to make your phone change settings,
- send tweets, or perform a variety of other actions, whenever a certain
- 'situation' occurs.
- A situation is just a set of conditions - such as your location, your phone's
- battery life, or the current time.
- The
- \noun on
- Context Analyser
- \noun default
- application automatically determines your current activity (such as 'walking'
- or 'sitting down'), and your predicted destination if you're travelling.
- This plugin requires that you have both
- \noun on
- Context Analyser
- \noun default
- and
- \noun on
- Locale
- \noun default
- installed.
- Both are available from the Android market.
- \end_layout
-
- \begin_layout Standard
- The plugin adds two new conditions which you can use in
- \noun on
- Locale
- \noun default
- situations:
- \end_layout
-
- \begin_layout Itemize
- Activity - the activity you are
- \emph on
- most likely
- \emph default
- performing
- \end_layout
-
- \begin_layout Itemize
- Destination - your
- \emph on
- most likely
- \emph default
- destination, if you're not at a known location
- \end_layout
-
- \begin_layout Standard
- A basic overview of adding these new conditions follows.
- For full documentation on how to use
- \noun on
- Locale
- \noun default
- , consult the
- \noun on
- Locale
- \noun default
- user manual.
- \end_layout
-
- \begin_layout Standard
- \begin_inset Float figure
- wide false
- sideways false
- status collapsed
-
- \begin_layout Plain Layout
- \begin_inset Graphics
- filename locale-situations.png
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
- \begin_inset Caption
-
- \begin_layout Plain Layout
- Locale main screen
- \begin_inset CommandInset label
- LatexCommand label
- name "fig:Locale-main-screen"
-
- \end_inset
-
-
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
-
- \end_layout
-
- \end_inset
-
- When you open
- \noun on
- Locale
- \noun default
- , you will see a list of currently defined situations (
- \begin_inset CommandInset ref
- LatexCommand prettyref
- reference "fig:Locale-main-screen"
-
- \end_inset
-
- ).
- You can edit existing situations by tapping on them.
- Existing situations may be deleted by clicking on the red minus button
- to the right of the situation name.
- Finally, new situations can be created by tapping the 'Add Situation' button
- at the bottom of the screen.
-
- \noun on
- Locale
- \noun default
- shows any situations that are
- \emph on
- active
- \emph default
- (all the conditions currently hold true) in bold.
- \end_layout
-
- \begin_layout Standard
- \begin_inset Float figure
- wide false
- sideways false
- status collapsed
-
- \begin_layout Plain Layout
- \begin_inset Graphics
- filename locale-situation-pre.png
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
- \begin_inset Caption
-
- \begin_layout Plain Layout
- Locale editing situation
- \begin_inset CommandInset label
- LatexCommand label
- name "fig:Locale-editing-situation"
-
- \end_inset
-
-
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
-
- \end_layout
-
- \end_inset
-
-
- \begin_inset Float figure
- wide false
- sideways false
- status collapsed
-
- \begin_layout Plain Layout
- \begin_inset Graphics
- filename locale-add-condition.png
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
- \begin_inset Caption
-
- \begin_layout Plain Layout
- Locale add condition popup
- \begin_inset CommandInset label
- LatexCommand label
- name "fig:Locale-add-condition"
-
- \end_inset
-
-
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
-
- \end_layout
-
- \end_inset
-
- Once you've selected a situation to edit, or created a brand new situation,
- you will see
- \noun on
- Locale
- \noun default
- 's 'edit situation' screen (
- \begin_inset CommandInset ref
- LatexCommand prettyref
- reference "fig:Locale-editing-situation"
-
- \end_inset
-
- ).
- This allows you to set the name of the situation, add or edit conditions,
- and add or edit settings.
- The
- \noun on
- Context Analyser
- \noun default
- plugin adds two new conditions, which are shown in the list when you click
- 'Add condition' (
- \begin_inset CommandInset ref
- LatexCommand prettyref
- reference "fig:Locale-add-condition"
-
- \end_inset
-
- ).
- Select either 'Activity' or 'Destination' to add a new condition based
- on your current context.
- \end_layout
-
- \begin_layout Standard
- \begin_inset Float figure
- wide false
- sideways false
- status collapsed
-
- \begin_layout Plain Layout
- \begin_inset Graphics
- filename locale-select-destination.png
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
- \begin_inset Caption
-
- \begin_layout Plain Layout
- Locale plugin selecting destination
- \begin_inset CommandInset label
- LatexCommand label
- name "fig:Locale-plugin-selecting"
-
- \end_inset
-
-
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
-
- \end_layout
-
- \end_inset
-
-
- \begin_inset Float figure
- wide false
- sideways false
- status collapsed
-
- \begin_layout Plain Layout
- \begin_inset Graphics
- filename locale-select-activity.png
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
- \begin_inset Caption
-
- \begin_layout Plain Layout
- Locale plugin selecting activity
- \begin_inset CommandInset label
- LatexCommand label
- name "fig:Locale-plugin-selecting-activity"
-
- \end_inset
-
-
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
-
- \end_layout
-
- \end_inset
-
- When you select one of the plugin's conditions, you will be presented with
- a screen which allows you to specify which activity (see
- \begin_inset CommandInset ref
- LatexCommand prettyref
- reference "fig:Locale-plugin-selecting-activity"
-
- \end_inset
-
- ) or destination (see
- \begin_inset CommandInset ref
- LatexCommand prettyref
- reference "fig:Locale-plugin-selecting"
-
- \end_inset
-
- ) you wish to match.
- For activities, you can select one of sitting, standing, walking, walking
- up stairs, walking down stairs, dancing, travelling bar car, or travelling
- by bus.
- For destination, you may select any place which the
- \noun on
- Context Analyser
- \noun default
- has previously detected.
- \end_layout
-
- \begin_layout Standard
- \begin_inset Float figure
- wide false
- sideways false
- status collapsed
-
- \begin_layout Plain Layout
- \begin_inset Graphics
- filename locale-menu.png
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Plain Layout
- \begin_inset Caption
-
- \begin_layout Plain Layout
- Locale condition editor menu
- \begin_inset CommandInset label
- LatexCommand label
- name "fig:Locale-condition-editor"
-
- \end_inset
-
-
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \end_inset
-
- Once you've selected your chosen activity or destination, press the
- \noun on
- menu
- \noun default
- button and select the 'Save Changes' option (see
- \begin_inset CommandInset ref
- LatexCommand prettyref
- reference "fig:Locale-condition-editor"
-
- \end_inset
-
- ).
- You will then return to the situation editor where the new condition will
- be displayed.
- You may then add settings as with any other
- \noun on
- Locale
- \noun default
- situation, and
- \noun on
- Locale
- \noun default
- will automatically apply these when all of the conditions match.
- \end_layout
-
- \begin_layout Standard
- \begin_inset Newpage pagebreak
- \end_inset
-
-
- \end_layout
-
- \begin_layout Section
- User Guide - Context Home Screen
- \end_layout
-
- \begin_layout Standard
- \begin_inset Newpage pagebreak
- \end_inset
-
-
- \end_layout
-
- \begin_layout Section
- Developer Guide
- \end_layout
-
- \begin_layout Standard
- This guide details how you can integrate the data made available by the
-
- \noun on
- Context Analyser
- \noun default
- into your own applications.
- It is expected that you are familiar with Android application development
- and general concepts.
- For an overview of how the
- \noun on
- Context Analyser
- \noun default
- works, please consult the user guide.
- \end_layout
-
- \begin_layout Standard
- The
- \noun on
- Context Analyser
- \noun default
- exposes its data via a set of Content Providers.
- These are augmented by several broadcast intents which can be used by third
- party applications to receive immediate notification when the user's context
- changes.
-
- \end_layout
-
- \begin_layout Subsection
- Permissions
- \begin_inset CommandInset label
- LatexCommand label
- name "sub:Permissions"
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Standard
- In order to protect the user's privacy, a series of permissions are defined
- by the
- \noun on
- Context Analyser
- \noun default
- , and access to data and broadcast intents is limited to applications which
- hold the appropriate permissions.
- The
- \noun on
- Context Analyser
- \noun default
- defines the following permissions:
- \end_layout
-
- \begin_layout Itemize
- uk.co.md87.android.contextanalyser.RECEIVE_UPDATES - allows the application to
- receive real-time updates about context or place information through broadcast
- intents
- \end_layout
-
- \begin_layout Itemize
- uk.co.md87.android.contextanalyser.READ_PLACES - allows the application to read
- places from the relevant content provider
- \end_layout
-
- \begin_layout Itemize
- uk.co.md87.android.contextanalyser.WRITE_PLACES - allows the application to modify
- places via the relevant content provider
- \end_layout
-
- \begin_layout Itemize
- uk.co.md87.android.contextanalyser.READ_JOURNEYS - allows the application to
- read journey information from the relevant content providers
- \end_layout
-
- \begin_layout Itemize
- uk.co.md87.android.contextanalyser.WRITE_JOURNEYS - allows the application to
- modify journey information via the relevant content providers
- \end_layout
-
- \begin_layout Itemize
- uk.co.md87.android.contextanalyser.BROADCAST - permission used when broadcasting
- context-related intents.
- Applications may wish to check that broadcasters hold this permission to
- prevent third parties broadcasting erroneous data.
- \end_layout
-
- \begin_layout Standard
- If you do not declare the required permissions, a run time error will occur
- when your application attempts to access protected data.
- All permissions listed here are defined as
- \noun on
- dangerous
- \noun default
- , which means that end users will be prompted about them when installing
- any application using them; this is in line with the underlying accelerometer
- and location permissions.
- \end_layout
-
- \begin_layout Subsection
- Model
- \end_layout
-
- \begin_layout Standard
- The
- \noun on
- Context Analyser
- \noun default
- is backed by a database containing tables for
- \emph on
- places
- \emph default
- ,
- \emph on
- journeys
- \emph default
- and
- \emph on
- journey steps
- \emph default
- .
- Activities and predictions are stored in memory.
- \end_layout
-
- \begin_layout Standard
- A
- \series bold
- place
- \series default
- is a location represented by a latitude/longitude tuple.
- Places have a radius of 500 metres; whenever a user moves to within 500
- metres of a known place, they are assumed to be located at that place.
- New places are identified when the user is observed to be in the same location
- (within 500 metres) for three consecutive readings, which occur at 1 minute
- intervals.
- Places also have an associated name, which is initially set to a string
- representation of the latitude and longitude; the
- \noun on
- Context Analyser
- \noun default
- will attempt to rename any place with such a name by geocoding the latitude/lon
- gitude into a nearby street or landmark name.
- \end_layout
-
- \begin_layout Standard
- An
- \series bold
- activity
- \series default
- is represented by a string delimited by forward slashes (
- \noun on
- /
- \noun default
- ).
- This forms a hierarchy of classifications, with the following possible
- values:
- \end_layout
-
- \begin_layout Itemize
- CLASSIFIED/DANCING
- \end_layout
-
- \begin_layout Itemize
- CLASSIFIED/IDLE/SITTING
- \end_layout
-
- \begin_layout Itemize
- CLASSIFIED/IDLE/STANDING
- \end_layout
-
- \begin_layout Itemize
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \begin_layout Itemize
- CLASSIFIED/VEHICLE/CAR
- \end_layout
-
- \begin_layout Itemize
- CLASSIFIED/WALKING
- \end_layout
-
- \begin_layout Itemize
- CLASSIFIED/WALKING/STAIRS/DOWN
- \end_layout
-
- \begin_layout Itemize
- CLASSIFIED/WALKING/STAIRS/UP
- \end_layout
-
- \begin_layout Standard
- It is possible for activities to contain only a part of the hierarchy -
- for example if the readings alternate between classifications for travelling
- by bus and by car, they will be aggregated and the resulting activity will
- be simply CLASSIFIED/VEHICLE
- \noun on
- .
-
- \noun default
- Similarly, if the user's activity is in constant flux, the resulting activity
- will be aggregated to simply 'CLASSIFIED'.
- \end_layout
-
- \begin_layout Standard
- A
- \series bold
- journey
- \series default
- is a recorded sequence of activites which occured when the user moved from
- one place to another.
- Whenever the user leaves a known place, the
- \noun on
- Context Analyser
- \noun default
- begins a log of activities; when they then reach another known place, the
- log is converted into a journey.
- Each journey consists of a sequence of
- \series bold
- journey steps
- \series default
- , which describe a single activity and a number of reptitions.
- \end_layout
-
- \begin_layout Standard
- For example, if the user leaves place A, spends five minutes walking, then
- ten minutes on a bus, and arrives at place B:
- \end_layout
-
- \begin_layout Itemize
- A journey will be created with a start point of A and an end point of B
- \end_layout
-
- \begin_layout Itemize
- The journey will consist of two journey steps:
- \end_layout
-
- \begin_deeper
- \begin_layout Itemize
- Step one will have an activity of CLASSIFIED/WALKING with five reptitions
- \end_layout
-
- \begin_layout Itemize
- Step two will have an activity of CLASSIFIED/VEHICLE/BUS with ten reptitions
- \end_layout
-
- \end_deeper
- \begin_layout Standard
- When the user is on a journey, the Context Analyser compares their current
- history to that of previously recorded journeys leaving the same place.
- If any of the journeys match, their destinations are considered as
- \series bold
- predictions
- \series default
- .
- The number of times each matching journey occured is summed and the result
- is used as a 'score' for the destination involved.
- The destination with the highest score is considered the most likely destinatio
- n for the user.
- \end_layout
-
- \begin_layout Standard
- For the purposes of prediction, a partial journey is considered to match
- a historical journey if:
- \end_layout
-
- \begin_layout Itemize
- it contains the same number of, or fewer, steps
- \end_layout
-
- \begin_layout Itemize
- each step has the same activity
- \end_layout
-
- \begin_layout Itemize
- the number of reptitions in each completed step (not the last step) is:
- \end_layout
-
- \begin_deeper
- \begin_layout Itemize
- no less than 50% of the historical value
- \end_layout
-
- \begin_layout Itemize
- no greater than 150% of the historical value
- \end_layout
-
- \end_deeper
- \begin_layout Itemize
- the number of repititions of the last step is:
- \end_layout
-
- \begin_deeper
- \begin_layout Itemize
- no greater than 150% of the historical value
- \end_layout
-
- \end_deeper
- \begin_layout Subsection
- Broadcast intents
- \end_layout
-
- \begin_layout Standard
- The
- \noun on
- Context Analyser
- \noun default
- broadcasts three different intents to make other applications aware of
- certain events.
- Applications require the RECEIVE_UPDATES permission to receive these broadcasts
- , as discussed previously.
- These intents are:
- \end_layout
-
- \begin_layout Itemize
- uk.co.md87.android.contextanalyser.ACTIVITY_CHANGED
- \end_layout
-
- \begin_layout Itemize
- uk.co.md87.android.contextanalyser.CONTEXT_CHANGED
- \end_layout
-
- \begin_layout Itemize
- uk.co.md87.android.contextanalyser.PREDICTION_AVAILABLE
- \end_layout
-
- \begin_layout Standard
- The
- \series bold
- ACTIVITY_CHANGED
- \series default
- intent is broadcast whenever the user's activity is discovered to have
- changed.
- It contains two string extras - the old activity and the new activity -
- under the keys
- \begin_inset Quotes eld
- \end_inset
-
- old
- \begin_inset Quotes erd
- \end_inset
-
- and
- \begin_inset Quotes eld
- \end_inset
-
- new
- \begin_inset Quotes erd
- \end_inset
-
- respectively.
- \end_layout
-
- \begin_layout Standard
- The
- \series bold
- CONTEXT_CHANGED
- \series default
- intent occurs whenever some other aspect of the user's context changes.
- Presently this only includes the user's current place.
- It contains an integer extra under the key
- \begin_inset Quotes eld
- \end_inset
-
- type
- \begin_inset Quotes erd
- \end_inset
-
- which describes which type of context has changed; this will have the value
- 1 for place updates.
- Place updates will also have two further integer extras - the place the
- user was previously in (or -1 if they were not in a known place) and the
- place the user is now in - under the keys
- \begin_inset Quotes eld
- \end_inset
-
- old
- \begin_inset Quotes erd
- \end_inset
-
- and
- \begin_inset Quotes eld
- \end_inset
-
- new
- \begin_inset Quotes erd
- \end_inset
-
- , respectively.
- These place IDs can be resolved to names and latitude/longitude by querying
- the relevant content provider, described below.
- \end_layout
-
- \begin_layout Standard
- The
- \series bold
- PREDICTION_AVAILABLE
- \series default
- intent is broadcast whenever a prediction has been made by the
- \noun on
- Context Analyser
- \noun default
- .
- The best available prediction is included as a place ID in the
- \begin_inset Quotes eld
- \end_inset
-
- best_target
- \begin_inset Quotes erd
- \end_inset
-
- key, the total score for the prediction to that place is available as an
- integer in the
- \begin_inset Quotes eld
- \end_inset
-
- count
- \begin_inset Quotes erd
- \end_inset
-
- key, and the 'probability' (the score for that place divided by the total
- scores for all predicted places) is a float in the
- \begin_inset Quotes eld
- \end_inset
-
- best_probability
- \begin_inset Quotes erd
- \end_inset
-
- key.
- A full set of predictions can be retrieved from the relevant content provider,
- described below.
- \end_layout
-
- \begin_layout Standard
- As discussed in the permissions section (
- \begin_inset CommandInset ref
- LatexCommand prettyref
- reference "sub:Permissions"
-
- \end_inset
-
- ), you may wish to make sure that all broadcasts you receive are sent by
- an application which holds the BROADCAST permission.
- This ensures that the user trusts the application to send these broadcasts,
- and reduces the chance that they are from a malicious application attempting
- to introduce erroneous data or otherwise compromise your receiver.
- \end_layout
-
- \begin_layout Subsection
- Content providers
- \end_layout
-
- \begin_layout Standard
- The
- \noun on
- Context Analyser
- \noun default
- provides four content providers from which you can receive data:
- \end_layout
-
- \begin_layout Subsubsection
- Activities
- \end_layout
-
- \begin_layout Standard
- Allows querying of the user's current activity.
- This may be expanded in future versions to allow querying of all known
- activities.
- Read only, does not accept selection, projection or order parameters.
- \end_layout
-
- \begin_layout Standard
- URI:
- \noun on
- content://uk.co.md87.android.contextanalyser.activitiescontentprovider/current
- \end_layout
-
- \begin_layout Standard
- Content type:
- \noun on
- vnd.contextanalyser.activity
- \end_layout
-
- \begin_layout Standard
- Columns:
- \end_layout
-
- \begin_layout Standard
- \begin_inset Tabular
- <lyxtabular version="3" rows="2" columns="3">
- <features>
- <column alignment="center" valignment="top" width="0">
- <column alignment="center" valignment="top" width="0">
- <column alignment="center" valignment="top" width="0">
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \series bold
- Name
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \series bold
- Type
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \series bold
- Remarks
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- activity
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- string
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- The user's current activity
- \end_layout
-
- \end_inset
- </cell>
- </row>
- </lyxtabular>
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Subsubsection
- Journeys
- \end_layout
-
- \begin_layout Standard
- Allows querying of the user's historical journeys and steps within them.
- Read/write access, supports selection and ordering.
- \end_layout
-
- \begin_layout Paragraph
- Journeys
- \end_layout
-
- \begin_layout Standard
- URI:
- \noun on
- content://uk.co.md87.android.contextanalyser.journeyscontentprovider/journeys
- \end_layout
-
- \begin_layout Standard
- Content type:
- \noun on
- vnd.contextanalyser.journey
- \end_layout
-
- \begin_layout Standard
- Columns:
- \end_layout
-
- \begin_layout Standard
- \begin_inset Tabular
- <lyxtabular version="3" rows="6" columns="3">
- <features>
- <column alignment="center" valignment="top" width="0">
- <column alignment="center" valignment="top" width="0">
- <column alignment="center" valignment="top" width="0">
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \series bold
- Name
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \series bold
- Type
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \series bold
- Remarks
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- _id
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- long
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- A unique, persistent ID for the journey
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- start
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- long
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- The ID of the place at which this journey starts
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- end
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- long
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- The ID of the place at which this journey ends
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- steps
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- int
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- The number of steps in this journey
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- number
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- int
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- The number of times this journey has been made
- \end_layout
-
- \end_inset
- </cell>
- </row>
- </lyxtabular>
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Paragraph
- Journey steps
- \end_layout
-
- \begin_layout Standard
- URI:
- \noun on
- content://uk.co.md87.android.contextanalyser.journeyscontentprovider/steps
- \end_layout
-
- \begin_layout Standard
- Content type:
- \noun on
- vnd.contextanalyser.journeystep
- \end_layout
-
- \begin_layout Standard
- Columns:
- \end_layout
-
- \begin_layout Standard
- \begin_inset Tabular
- <lyxtabular version="3" rows="6" columns="3">
- <features>
- <column alignment="center" valignment="top" width="0">
- <column alignment="center" valignment="top" width="0">
- <column alignment="center" valignment="top" width="0">
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \series bold
- Name
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \series bold
- Type
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \series bold
- Remarks
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- _id
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- long
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- A unique, persistent ID for the step
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- activity
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- string
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- The activity that was observed
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- repetitions
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- int
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- The number of times the activity occured
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- journey
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- long
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- The ID of the journey that this step belongs to
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- next
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- long
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- The ID of the next step in the journey, or 0 if the last step in sequence
- \end_layout
-
- \end_inset
- </cell>
- </row>
- </lyxtabular>
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Subsubsection
- Places
- \end_layout
-
- \begin_layout Standard
- Allows querying of the user's know places.
- Read/write access, supports selection and ordering.
- \end_layout
-
- \begin_layout Standard
- URI:
- \noun on
- content://uk.co.md87.android.contextanalyser.placescontentprovider/places
- \end_layout
-
- \begin_layout Standard
- Content type:
- \noun on
- vnd.contextanalyser.location
- \end_layout
-
- \begin_layout Standard
- Columns:
- \end_layout
-
- \begin_layout Standard
- \begin_inset Tabular
- <lyxtabular version="3" rows="8" columns="3">
- <features>
- <column alignment="center" valignment="top" width="0">
- <column alignment="center" valignment="top" width="0">
- <column alignment="center" valignment="top" width="0">
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \series bold
- Name
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \series bold
- Type
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \series bold
- Remarks
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- _id
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- long
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- A unique, persistent ID for the place
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- name
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- string
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- The name of the place
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- latitude
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- double
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- The latitude of the centre of the place
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- longitude
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- double
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- The longitude at the centre of the place
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- duration
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- long
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Amount of time in seconds spent at the place
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- times
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- long
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- The number of times the place has been visited
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- lastvisit
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- long
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- The unix timestamp of the last visit (seconds)
- \end_layout
-
- \end_inset
- </cell>
- </row>
- </lyxtabular>
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Subsubsection
- Predictions
- \end_layout
-
- \begin_layout Standard
- Allows querying of the current predictions, if any.
- Read only, does not accept selection, projection or order parameters.
- \end_layout
-
- \begin_layout Standard
- URI:
- \noun on
- content://uk.co.md87.android.contextanalyser.predictionscontentprovider/predictions
- \end_layout
-
- \begin_layout Standard
- Content type:
- \noun on
- vnd.contextanalyser.prediction
- \end_layout
-
- \begin_layout Standard
- Columns:
- \end_layout
-
- \begin_layout Standard
- \begin_inset Tabular
- <lyxtabular version="3" rows="4" columns="3">
- <features>
- <column alignment="center" valignment="top" width="0">
- <column alignment="center" valignment="top" width="0">
- <column alignment="center" valignment="top" width="0">
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \series bold
- Name
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \series bold
- Type
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \series bold
- Remarks
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- _ID
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- long
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- A unique ID for the prediction
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- place
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- long
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- The ID of the predicted destination
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- count
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- int
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- The 'score' of the prediction
- \end_layout
-
- \end_inset
- </cell>
- </row>
- </lyxtabular>
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Subsection
- Context API
- \end_layout
-
- \begin_layout Standard
- A small
- \begin_inset Quotes eld
- \end_inset
-
- API
- \begin_inset Quotes erd
- \end_inset
-
- is available to facilitate easier access to the services exposed by the
-
- \noun on
- Context Analyser.
-
- \noun default
- This consists of the
- \noun on
- ContextApi
- \noun default
- class and its assorted subclasses.
- These subclasses contain constant values for all column names, URIs and
- content types, as well as intent names and enumeration values.
- \end_layout
-
- \begin_layout Standard
- The
- \noun on
- ContextApi.Intents
- \noun default
- class defines string constants for the three broadcast intents which are
- used by the
- \noun on
- Context Analyser
- \noun default
- .
- The
- \noun on
- ContextTypes
- \noun default
- inner class contains integer constants for the possible 'type' values for
- the CONTEXT_CHANGED intent.
- \end_layout
-
- \begin_layout Standard
- The
- \noun on
- Places
- \noun default
- ,
- \noun on
- Journeys
- \noun default
- ,
- \noun on
- JourneySteps
- \noun default
- ,
- \noun on
- Predictions
- \noun default
- and
- \noun on
- Activities
- \noun default
- classes all contain a CONTENT_URI field containing the Uri of the the content
- provider, a CONTENT_TYPE field containing the string mime type for that
- provider, and a static
- \noun on
- ColumnNames
- \noun default
- class which contains string constants for each column returned by the content
- provider.
- \end_layout
-
- \begin_layout Standard
- The following code from the
- \noun on
- Places
- \noun default
- application shows the use of these constant values:
- \end_layout
-
- \begin_layout LyX-Code
- final Cursor cursor = managedQuery(ContextApi.Places.CONTENT_URI,
- \end_layout
-
- \begin_layout LyX-Code
- new String[] { ColumnNames.LATITUDE, ColumnNames.LONGITUDE,
-
- \end_layout
-
- \begin_layout LyX-Code
- ColumnNames._ID, ColumnNames.NAME, ColumnNames.LAST_VISIT,
-
- \end_layout
-
- \begin_layout LyX-Code
- ColumnNames.VISIT_COUNT }, null, null, null);
- \end_layout
-
- \begin_layout LyX-Code
-
- \end_layout
-
- \begin_layout LyX-Code
- if (cursor.moveToFirst()) {
- \end_layout
-
- \begin_layout LyX-Code
- final int nameColumn = cursor.getColumnIndex(ColumnNames.NAME);
- \end_layout
-
- \begin_layout LyX-Code
- final int idColumn = cursor.getColumnIndex(ColumnNames._ID);
- \end_layout
-
- \begin_layout LyX-Code
-
- \end_layout
-
- \begin_layout LyX-Code
- do {
- \end_layout
-
- \begin_layout LyX-Code
- final String name = cursor.getString(nameColumn);
- \end_layout
-
- \begin_layout LyX-Code
- final int id = cursor.getInt(idColumn);
- \end_layout
-
- \begin_layout LyX-Code
- // etc
- \end_layout
-
- \begin_layout LyX-Code
- } while (cursor.moveToNext());
- \end_layout
-
- \begin_layout LyX-Code
- }
- \end_layout
-
- \begin_layout Standard
- Note that the code imports both the
- \noun on
- ContextApi
- \noun default
- class, and the
- \noun on
- ContextApi.Places.ColumnNames
- \noun default
- class.
- \end_layout
-
- \begin_layout Standard
- \begin_inset Newpage pagebreak
- \end_inset
-
-
- \end_layout
-
- \begin_layout Section
- User-annotated
- \noun on
- Sensor Logger
- \noun default
- Results
- \begin_inset CommandInset label
- LatexCommand label
- name "sec:User-annotated-Sensor-Logger"
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Standard
- \begin_inset Tabular
- <lyxtabular version="3" rows="83" columns="3">
- <features islongtable="true">
- <column alignment="right" valignment="top" width="0">
- <column alignment="left" valignment="top" width="0">
- <column alignment="left" valignment="top" width="0">
- <row endhead="true" endfirsthead="true">
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \series bold
- Count
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \series bold
- User annotation
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \series bold
- On-device classification
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 3
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/DANCING
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 6
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/IDLE/SITTING
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 2
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/IDLE/STANDING
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 9
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/UNKNOWN
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 31
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 11
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
-
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/CAR
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 10
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/IDLE/SITTING
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- beed
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- breathing
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- cycle
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Dancing
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/WALKING
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- driving
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/WALKING/STAIRS/DOWN
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- drunkenly going to the bathroom to pee.
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/CAR
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- fixing my clothes
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- hhhg
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 2
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- In a car
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- in a house
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/CAR
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 4
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- in bed
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 2
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- it is a cat
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- kitchen work
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/IDLE/STANDING
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- laundry
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/CAR
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- lay in bed
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- layin down
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/IDLE/STANDING
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- layin in bed
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 3
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- laying down
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- laying down
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/CAR
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- laying down in bed
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 3
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- laying in bed
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- laying in bed with the phone on my stomach
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/CAR
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- lie in bed
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- ligger pa golvet
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- love
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/CAR
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- lying in bed
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- moving phone
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/WALKING
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Nothing at all!
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/UNKNOWN
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- passenger in car straight road 50mph
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- playin gamw
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- pooping
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/UNKNOWN
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Rolling around
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/WALKING
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Rotating the phone
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/WALKING/STAIRS/UP
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- seating down
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- seting
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- shake the device
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/CAR
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- shaking my leg sitting on my bed
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- shaking phone violently!!!
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/WALKING/STAIRS/UP
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- siq
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- sitti
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Sitting
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/IDLE/SITTING
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Sitting
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/IDLE/STANDING
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 19
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Sitting
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 6
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Sitting
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/CAR
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- sitting at my desk
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Sitting down
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- sitting on my ass
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/CAR
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- sitting on the couch
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- sjxjxgzog
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- sleep
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/IDLE/SITTING
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 2
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- sleeping
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Standing
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Standing
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/CAR
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- swinging
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/IDLE/SITTING
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- test
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/CAR
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 2
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- train
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- traveling by bus
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/CAR
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- traveling by car
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- travelling by bus
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/CAR
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 2
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- travelling by s line
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="right" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 3
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- UNCLASSIFIED/NOTCORRECTED
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/DANCING
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 69
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- UNCLASSIFIED/NOTCORRECTED
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/IDLE/SITTING
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 29
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- UNCLASSIFIED/NOTCORRECTED
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/IDLE/STANDING
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 32
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- UNCLASSIFIED/NOTCORRECTED
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 14
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- UNCLASSIFIED/NOTCORRECTED
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/CAR
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 16
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- UNCLASSIFIED/NOTCORRECTED
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/WALKING
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 5
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Walking
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Walking
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/CAR
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- Walking (downs tairs)
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/WALKING/STAIRS/UP
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- walking in a store
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/CAR
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- walking in circles
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/CAR
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- watching amovie!
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- watching TV
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- work in the airport
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/CAR
- \end_layout
-
- \end_inset
- </cell>
- </row>
- <row>
- <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- 1
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- z
- \end_layout
-
- \end_inset
- </cell>
- <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
- \begin_inset Text
-
- \begin_layout Plain Layout
- CLASSIFIED/VEHICLE/BUS
- \end_layout
-
- \end_inset
- </cell>
- </row>
- </lyxtabular>
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Standard
- \begin_inset Float table
- placement H
- wide false
- sideways false
- status open
-
- \begin_layout Plain Layout
- \begin_inset Caption
-
- \begin_layout Plain Layout
- User-annotated
- \noun on
- Sensor Logger
- \noun default
- results
- \begin_inset CommandInset label
- LatexCommand label
- name "tab:User-annotated-Sensor-Logger"
-
- \end_inset
-
-
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \end_inset
-
-
- \end_layout
-
- \begin_layout Standard
- \begin_inset Newpage pagebreak
- \end_inset
-
-
- \begin_inset CommandInset bibtex
- LatexCommand bibtex
- bibfiles "/home/chris/Projects/Java/ContextApi/papers/project"
- options "bibtotoc,savetrees"
-
- \end_inset
-
-
- \end_layout
-
- \end_body
- \end_document
|