Context-detection API for Android developed as a university project
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

final.lyx 200KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268
  1. #LyX 1.6.5 created this file. For more info see http://www.lyx.org/
  2. \lyxformat 345
  3. \begin_document
  4. \begin_header
  5. \textclass article
  6. \use_default_options true
  7. \language english
  8. \inputencoding auto
  9. \font_roman default
  10. \font_sans default
  11. \font_typewriter default
  12. \font_default_family default
  13. \font_sc false
  14. \font_osf false
  15. \font_sf_scale 100
  16. \font_tt_scale 100
  17. \graphics default
  18. \paperfontsize default
  19. \spacing single
  20. \use_hyperref false
  21. \papersize a4paper
  22. \use_geometry false
  23. \use_amsmath 1
  24. \use_esint 1
  25. \cite_engine basic
  26. \use_bibtopic false
  27. \paperorientation portrait
  28. \secnumdepth 3
  29. \tocdepth 3
  30. \paragraph_separation skip
  31. \defskip medskip
  32. \quotes_language english
  33. \papercolumns 1
  34. \papersides 1
  35. \paperpagestyle default
  36. \tracking_changes false
  37. \output_changes false
  38. \author ""
  39. \author ""
  40. \end_header
  41. \begin_body
  42. \begin_layout Title
  43. Context-Aware API for Android Devices
  44. \end_layout
  45. \begin_layout Author
  46. Chris Smith
  47. \begin_inset Newline newline
  48. \end_inset
  49. Supervisor: Naranker Dulay
  50. \end_layout
  51. \begin_layout Date
  52. Summer 2010
  53. \end_layout
  54. \begin_layout Standard
  55. All materials can be accessed electronically at:
  56. \end_layout
  57. \begin_layout Standard
  58. \begin_inset Note Note
  59. status open
  60. \begin_layout Plain Layout
  61. /homes/cs106/....
  62. \end_layout
  63. \end_inset
  64. \end_layout
  65. \begin_layout Standard
  66. \begin_inset Newpage pagebreak
  67. \end_inset
  68. \end_layout
  69. \begin_layout Abstract
  70. In recent years location-based services have seen a dramatic increase in
  71. adoption, and all modern smartphone platforms have integrated services
  72. to facilitate the creation location-aware applications.
  73. Such applications enhance the experience of users, using location to modify
  74. content or alter the behaviour of the application to better suit the circumstan
  75. ces.
  76. \end_layout
  77. \begin_layout Abstract
  78. The product of this project is a
  79. \emph on
  80. context
  81. \emph default
  82. -aware API for the Android platform.
  83. This allows applications to augment the already available location data
  84. with extra
  85. \emph on
  86. context
  87. \emph default
  88. about the user's situation - primarily their current activity.
  89. It also develops an algorithm for recognising
  90. \emph on
  91. places
  92. \emph default
  93. which are relevant to the user, and monitoring which activities are performed
  94. in
  95. \emph on
  96. journeys
  97. \emph default
  98. between those places, thus enabling predictions of the user's likely destinatio
  99. n based on their activity.
  100. \end_layout
  101. \begin_layout Abstract
  102. Research into other methods of annotating context was conducted, and it
  103. was found that most potential sources of context information either produced
  104. little or no information, or were too battery-draining to perform in a
  105. real world environment with current technology.
  106. Much effort was placed into optimising the API to have as small effect
  107. on battery life as possible.
  108. \end_layout
  109. \begin_layout Abstract
  110. A context-aware API was successfully produced, along with a collection of
  111. applications which use the API in order to demonstrate its features or
  112. provide example use cases.
  113. \end_layout
  114. \begin_layout Standard
  115. \begin_inset Newpage pagebreak
  116. \end_inset
  117. \end_layout
  118. \begin_layout LyX-Code
  119. \begin_inset CommandInset toc
  120. LatexCommand tableofcontents
  121. \end_inset
  122. \end_layout
  123. \begin_layout LyX-Code
  124. \begin_inset Newpage pagebreak
  125. \end_inset
  126. \end_layout
  127. \begin_layout Part
  128. Introduction
  129. \end_layout
  130. \begin_layout Section
  131. Proposal
  132. \end_layout
  133. \begin_layout Quote
  134. Objective: to create an API for android applications to query the user's
  135. [probable] current activity, and to consider and implement possible uses
  136. for this API in existing applications.
  137. The user's activity would be determined based on available sensor and ambient
  138. data (e.g.
  139. time, location, orientation/movement of device, background noises, camera
  140. image, in-range bluetooth devices, etc), previous behaviour of the user,
  141. and possibly behaviour of other users which has been shared between devices.
  142. \end_layout
  143. \begin_layout Quote
  144. Motivation: Activity-awareness would be a major step forward in making mobile
  145. devices better able to adapt to what the user wants to do with them.
  146. The latest generation of mobile phones have made location-aware applications
  147. quite ubiquitous, and a lot of these could be further enhanced by making
  148. them activity aware.
  149. For example, an application which lists businesses in a certain area could
  150. not only know the search area (by merit of being location-aware), but could
  151. also make an educated guess at what you're looking for (e.g.
  152. the activity API may suggest the user is likely to be going to lunch, so
  153. the application could initially show nearby eating establishments instead
  154. of requiring the user to search for them).
  155. \end_layout
  156. \begin_layout Quote
  157. Challenges/issues: primary challenge is developing an algorithm which can
  158. make reasonable estimates as to the user's activity (or attempting and
  159. then justifying why such an algorithm is not feasible, and investigating
  160. requirements or alternatives), and would form the bulk of the project.
  161. Sub-challenges within this include: researching/implementing machine learning
  162. techniques so the algorithm can take previous behaviour into account, processin
  163. g data from 'messy' inputs such as mic/camera, and designing an API that
  164. would enable third-party app developers to easily make their applications
  165. activity aware.
  166. \end_layout
  167. \begin_layout Quote
  168. Approach: data from sensors would need to be processed (e.g.
  169. mic input processed into a figure for ambient noise level in dB).
  170. The combination of this processed data would then need to be fed into an
  171. algorithm (possibly a neural network) to determine likelihood of various
  172. activities.
  173. There would need to be some mechanism for users to correct or train the
  174. system (at least initially), and it's possible that this data could then
  175. be shared to other users of the api/application.
  176. \end_layout
  177. \begin_layout Section
  178. Aims and Motivation
  179. \end_layout
  180. \begin_layout Standard
  181. The primary aim of this project is to create an application for the Android
  182. platform that can sense the user's context in some fashion.
  183. This application will have a public interface which will allow other applicatio
  184. ns written by third party developers to read and receive updates about the
  185. user's context.
  186. \end_layout
  187. \begin_layout Standard
  188. The ease of access to location aware services in modern smartphone platforms
  189. has lead to a surge in the number of applications which improve their utility
  190. or behaviour by integrating location information.
  191. It stands to reason that if additional context information were available,
  192. developers would be able to take advantage of this and further improve
  193. the utility of their applications.
  194. This, in turn, would increase the productivity of the end-user.
  195. \end_layout
  196. \begin_layout Standard
  197. As discussed in
  198. \begin_inset CommandInset ref
  199. LatexCommand ref
  200. reference "par:Background"
  201. \end_inset
  202. , a large amount of existing research has been done on context-aware devices,
  203. and specifically on activity-aware systems.
  204. There have also been some limited implementations for smartphones.
  205. Unfortunately, the end product of most of this research is not suitable
  206. for deployment or use in practical, every-day circumstances.
  207. This project aims to produce a working prototype which can be used on a
  208. day-to-day basis on an Android smartphone without significantly degrading
  209. performance.
  210. \end_layout
  211. \begin_layout Section
  212. Issues and challenges
  213. \end_layout
  214. \begin_layout Standard
  215. One of the main challenges for this project will be accomplashing accurate
  216. and useful context-awareness without significantly hindering the battery
  217. life or performance of a typical device.
  218. Existing algorithms tend to be extremely verbose, sometimes performing
  219. upwards of thousands of calculations per classification; on a mobile device
  220. this is likely to severely cripple battery life.
  221. \end_layout
  222. \begin_layout Standard
  223. The problem of battery life affects all areas of the project - from how
  224. often data is collected, how the data is then analysed, and which sources
  225. of potential data are consulted.
  226. A large amount of time will need to be spent analysing the various potential
  227. data sources and establishing whether or not the cost in consulting them
  228. is worth the reduction in battery lifetime and any gain in the reliability
  229. or accuracy of context information.
  230. \end_layout
  231. \begin_layout Standard
  232. The aim of the application is to provide the context data to third-party
  233. applications, so another challenge will be designing an appropriate interface
  234. which will allow applications to query and receive updates about the user's
  235. context.
  236. Consideration will have to be given as to any security measures (such as
  237. access control) which may need to be applied in order to protect user privacy.
  238. \begin_inset Note Note
  239. status open
  240. \begin_layout Plain Layout
  241. Contributions
  242. \end_layout
  243. \end_inset
  244. \end_layout
  245. \begin_layout Standard
  246. \begin_inset Newpage pagebreak
  247. \end_inset
  248. \end_layout
  249. \begin_layout Part
  250. Background
  251. \begin_inset CommandInset label
  252. LatexCommand label
  253. name "par:Background"
  254. \end_inset
  255. \end_layout
  256. \begin_layout Standard
  257. Context- or Activity-Aware devices is an area currently under lots of research.
  258. There are many and varied applications of activity-aware devices, ranging
  259. from personal fitness and healthcare to training factory workers or merely
  260. playing music.
  261. \end_layout
  262. \begin_layout Standard
  263. While this research is going on, there has been a huge expansion in the
  264. ownership, use and power of mobile telephones.
  265. Mobile telephones are so ubiquitous and now come with such a large sensor
  266. platform that they are the obvious choice for implementing activity-aware
  267. technologies for use in day-to-day life.
  268. \end_layout
  269. \begin_layout Standard
  270. This project aims to make a context-aware API available on an open mobile
  271. platform, which will enable developers to start adding context-aware functional
  272. ity to their applications without the extremely large overhead of writing
  273. a logger and classifier themselves, or re-engineering the application to
  274. use an existing context-aware framework if one is available.
  275. \end_layout
  276. \begin_layout Section
  277. Applications
  278. \end_layout
  279. \begin_layout Standard
  280. There are many documented applications of activity-aware systems, and current
  281. research efforts which bring the technology to mobile telephones will only
  282. serve to lengthen this list.
  283. \end_layout
  284. \begin_layout Standard
  285. The canonical example for activity-awareness, especially on mobile telephones,
  286. is modeling the user's
  287. \begin_inset Quotes eld
  288. \end_inset
  289. interruptibility
  290. \begin_inset Quotes erd
  291. \end_inset
  292. \begin_inset CommandInset citation
  293. LatexCommand cite
  294. key "Siewiorek2003,Raento2005"
  295. \end_inset
  296. .
  297. This allows the software to know whether it's appropriate (or "polite")
  298. to disturb the user, and can advise the user's contacts when they are busy.
  299. It can also be used to create a
  300. \begin_inset Quotes eld
  301. \end_inset
  302. smart answering machine
  303. \begin_inset Quotes erd
  304. \end_inset
  305. \begin_inset CommandInset citation
  306. LatexCommand cite
  307. key "Hudson2003"
  308. \end_inset
  309. which can selectively direct calls straight to an answering machine if
  310. the user is engaged in an "uninterpretable" activity and the call does
  311. not appear to be important.
  312. These allow the user's mobile telephone to better approximate human behaviour
  313. - when approaching someone in person it is normally quite easy to determine
  314. whether it would be polite or necessary to disturb them, based on their
  315. demeanour, activity, and the urgency of your request; when picking up the
  316. telephone it is not possible at all without assistance from an activity-aware
  317. system.
  318. \end_layout
  319. \begin_layout Standard
  320. The current implementations of these ideas have several problems, however.
  321. The more interesting research
  322. \begin_inset CommandInset citation
  323. LatexCommand cite
  324. key "Hudson2003"
  325. \end_inset
  326. requires a static camera fixed in an office to observe user behaviour,
  327. instead of implementing it directly on a telephone, which obviously constrains
  328. its usefulness.
  329. Of the two solutions actually targeted at mobile telephones, one
  330. \begin_inset CommandInset citation
  331. LatexCommand cite
  332. key "Siewiorek2003"
  333. \end_inset
  334. requires bulky custom hardware which the user must carry on their belt,
  335. and the other
  336. \begin_inset CommandInset citation
  337. LatexCommand cite
  338. key "Raento2005"
  339. \end_inset
  340. does not expose an API to other applications and only surfaces the context-aware
  341. functionality in two small applications whose focus is on social interaction
  342. rather than improving the user's experience of the telephone locally.
  343. This project will aim to bring the ideas of these to generic hardware (an
  344. Android mobile telephone), and to provide an API which other applications
  345. can harness.
  346. \end_layout
  347. \begin_layout Standard
  348. One use particularly suitable for mobile phones is dynamic adaptation of
  349. the device's settings based on the user's current activity and context
  350. \begin_inset CommandInset citation
  351. LatexCommand cite
  352. key "Schmidt1999"
  353. \end_inset
  354. .
  355. When a user is walking the device can dynamically increase the font size
  356. to make it easier to read with an unsteady hand, and correspondingly decrease
  357. it when the user is stationary.
  358. In a similar fashion, the brightness of the backlight can be altered based
  359. on the ambient light level, and the ringer volume altered according to
  360. the noise level.
  361. Unfortunately this research did not progress beyond a feasibility study
  362. and was implemented on a Nokia 6110, which is severely outdated by today's
  363. standards.
  364. \end_layout
  365. \begin_layout Standard
  366. Another popular area for activity-aware systems is in healthcare.
  367. Such systems can be used to monitor vulnerable people as they go about
  368. day to day activities to ensure that they're not in trouble - several systems
  369. \begin_inset CommandInset citation
  370. LatexCommand cite
  371. key "Song2005,Maurer2006"
  372. \end_inset
  373. can be used to monitor elderly persons and summon help if it is detected
  374. that they have fallen.
  375. Another healthcare application
  376. \begin_inset CommandInset citation
  377. LatexCommand cite
  378. key "Tentori2008"
  379. \end_inset
  380. allows nurses to remotely monitor the activities of their patients in a
  381. hospital ward, allowing them to respond to problems and keep up-to-date
  382. with their patients' well-being while not physically present.
  383. Activity-aware applications have also been used to try to encourage users
  384. to be more healthy; one novel application records the day-to-day fitness
  385. activities a user performs and uses this as a basis for a virtual
  386. \begin_inset Quotes eld
  387. \end_inset
  388. garden
  389. \begin_inset Quotes erd
  390. \end_inset
  391. that blossoms or wilts according to how much the user works out in a week
  392. \begin_inset CommandInset citation
  393. LatexCommand cite
  394. key "Consolvo2008"
  395. \end_inset
  396. .
  397. \end_layout
  398. \begin_layout Standard
  399. As well as monitoring activities which the user is familiar with, activity-aware
  400. systems can also be used to assist users in learning new activities.
  401. One application
  402. \begin_inset CommandInset citation
  403. LatexCommand cite
  404. key "Stiefmeier2008"
  405. \end_inset
  406. monitors the activities of trainee workers in a car manufacturing plant,
  407. and helps to provide a link between theoretical classroom-based training
  408. and practical work.
  409. The activity-aware system can offer advice to the workers that's directly
  410. related to the current task they're performing, and can even monitor their
  411. activities for compliance with procedures and give them a score afterwards.
  412. \end_layout
  413. \begin_layout Standard
  414. While the research into healthcare and training applications present novel
  415. uses of activity-aware systems, the applications themselves are not really
  416. applicable to a mobile device or the scope of this project.
  417. The research does, however, describe the techniques used in those applications
  418. for activity classification and should prove useful in that respect.
  419. \end_layout
  420. \begin_layout Standard
  421. Other areas of research include making activity-aware suggestions to the
  422. user
  423. \begin_inset CommandInset citation
  424. LatexCommand cite
  425. key "Bellotti2008"
  426. \end_inset
  427. , or issuing reminders or alerts based on the user's activity
  428. \begin_inset CommandInset citation
  429. LatexCommand cite
  430. key "Schilit1994"
  431. \end_inset
  432. .
  433. One example of the latter is an activity-aware system that detects when
  434. the user is making coffee, and plays a sound on a remote computer to alert
  435. thirsty coworkers to the fact.
  436. Sound isn't only limited to alerts, however: the
  437. \noun on
  438. XPOD
  439. \noun default
  440. \begin_inset CommandInset citation
  441. LatexCommand cite
  442. key "Dornbush2005"
  443. \end_inset
  444. project is an activity-aware music player, which tailors the music being
  445. played to the user's current activity based on their past ratings.
  446. This type of activity-aware device presents a much greater level of personalisa
  447. tion than previously possible, and making this type of customisation available
  448. to mobile telephone users and application developers will surely result
  449. in many new applications.
  450. \end_layout
  451. \begin_layout Section
  452. Inferring activity
  453. \end_layout
  454. \begin_layout Standard
  455. There are three general phases in most context-aware systems: a sensing
  456. component, which reads or receives raw sensor data relating to the user's
  457. environment or activity; a feature extraction component, which analysis
  458. the sensor data and identifies a set of features from that data; and a
  459. classification component, which uses the extracted features to reason about
  460. the user's activity
  461. \begin_inset CommandInset citation
  462. LatexCommand cite
  463. key "Choudhury2008"
  464. \end_inset
  465. .
  466. Each of these components will be expanded on below.
  467. Depending on the method of classification, some initial or continuous training
  468. may be required, and this is also considered below.
  469. \end_layout
  470. \begin_layout Subsection
  471. Sensors and devices
  472. \end_layout
  473. \begin_layout Standard
  474. At the basis of activity-recognition are the physical hardware sensors.
  475. The most commonly used sensor is the accelerometer, which outputs the accelerat
  476. ion of the sensor
  477. \begin_inset Foot
  478. status collapsed
  479. \begin_layout Plain Layout
  480. and thus the device to which it's attached, and therefore the person using
  481. the device
  482. \end_layout
  483. \end_inset
  484. along a certain axis.
  485. There is extensive research on using accelerometers to classify activities
  486. such as walking
  487. \begin_inset CommandInset citation
  488. LatexCommand cite
  489. key "Mathie2004,Garakani2009"
  490. \end_inset
  491. (including whether or not the subject is walking on flat ground or up and
  492. down stairs
  493. \begin_inset CommandInset citation
  494. LatexCommand cite
  495. key "Caros2005"
  496. \end_inset
  497. ), running
  498. \begin_inset CommandInset citation
  499. LatexCommand cite
  500. key "Garakani2009"
  501. \end_inset
  502. , falling
  503. \begin_inset CommandInset citation
  504. LatexCommand cite
  505. key "Mathie2004"
  506. \end_inset
  507. , sitting
  508. \begin_inset CommandInset citation
  509. LatexCommand cite
  510. key "Mathie2004,Garakani2009"
  511. \end_inset
  512. , cycling
  513. \begin_inset CommandInset citation
  514. LatexCommand cite
  515. key "Garakani2009"
  516. \end_inset
  517. , etc.
  518. \end_layout
  519. \begin_layout Standard
  520. Smartphones also come equipped with a microphone and GSM stack (prerequisites
  521. for a telephone conversation!), and commonly a camera, geolocation API
  522. (usually backed by GPS) and Bluetooth stack.
  523. With the exception of the latter two, these types of sensors are not particular
  524. ly well explored for their use in context-aware systems at present.
  525. It is easy to reason how each would be useful - a microphone can reveal
  526. the ambient noise, which could indicate the difference between sitting
  527. in a library and a bar; the camera likewise can reveal the lighting conditions
  528. (if the device is not in a pocket or bag).
  529. The GSM stack can provide rough location information and also a signal
  530. strength to one or more cell towers; the signal strength will vary both
  531. with the user's proximity to the cell tower and the environment around
  532. them - being inside will degrade the signal more than being in open air,
  533. for example - so may provide vital clues to a context-aware system.
  534. One aspect of this project will be to research how the microphone, camera
  535. and GSM stack can be used to enhance existing activity classification algorithm
  536. s.
  537. \end_layout
  538. \begin_layout Standard
  539. Current research on location information and Bluetooth device proximity
  540. is summarised in section
  541. \begin_inset CommandInset ref
  542. LatexCommand ref
  543. reference "sec:Location-analysis"
  544. \end_inset
  545. (p
  546. \begin_inset CommandInset ref
  547. LatexCommand pageref
  548. reference "sec:Location-analysis"
  549. \end_inset
  550. ) and
  551. \begin_inset CommandInset ref
  552. LatexCommand ref
  553. reference "sec:Bluetooth"
  554. \end_inset
  555. (p
  556. \begin_inset CommandInset ref
  557. LatexCommand pageref
  558. reference "sec:Bluetooth"
  559. \end_inset
  560. ) respectively.
  561. \end_layout
  562. \begin_layout Subsection
  563. Feature detection
  564. \end_layout
  565. \begin_layout Standard
  566. It is not possible to reason directly about raw sensor inputs, so the next
  567. step in inferring activities is to extract useful
  568. \emph on
  569. features
  570. \emph default
  571. from the raw input.
  572. Features are usually mathematical properties of the input data, such as
  573. the difference between the minimum and maximum data point in a given time
  574. frame.
  575. Most classifiers use an extremely large number of features -
  576. \begin_inset CommandInset citation
  577. LatexCommand citet
  578. key "Hein2008"
  579. \end_inset
  580. detect 562 different features from their inputs.
  581. \end_layout
  582. \begin_layout Standard
  583. Some of the more commonly used features in activity-recognition systems
  584. are: mean, standard deviation, energy, entropy, correlation between axis,
  585. and discrete FFT coefficients
  586. \begin_inset CommandInset citation
  587. LatexCommand cite
  588. key "Huynh2005"
  589. \end_inset
  590. .
  591. Obviously, not all features are of equal value.
  592. FFT coefficients are generally very good indicators of activity, but the
  593. ideal coefficients and window sizes vary depending on the exact activity
  594. that is being detected.
  595. Likewise, the choice of other features to give the best recognition rate
  596. varies depending on the activity being detected
  597. \begin_inset CommandInset citation
  598. LatexCommand cite
  599. key "Huynh2005"
  600. \end_inset
  601. .
  602. \end_layout
  603. \begin_layout Standard
  604. As the sensor data is received continuously, it needs to be partitioned
  605. somehow before features are extracted.
  606. Most implementations use a sliding window approach with a 50% overlap between
  607. windows
  608. \begin_inset CommandInset citation
  609. LatexCommand cite
  610. key "Bao2004"
  611. \end_inset
  612. .
  613. A window size of 10 seconds with a 50% overlap would result in one set
  614. of features being computed every 5 seconds.
  615. The window size is normally selected to correspond to a pre-defined number
  616. of samples to enable fast computation of certain features - most notably
  617. FFTs
  618. \begin_inset CommandInset citation
  619. LatexCommand cite
  620. key "Bao2004"
  621. \end_inset
  622. .
  623. \end_layout
  624. \begin_layout Standard
  625. One challenge will be determining a set of features that are robust enough
  626. to perform activity analysis on, but are sufficiently inexpensive to calculate
  627. continually on a mobile device, where CPU speed is limited and excessive
  628. usage results in undesirable higher battery consumption.
  629. \end_layout
  630. \begin_layout Subsection
  631. Training
  632. \end_layout
  633. \begin_layout Standard
  634. In order to meaningfully classify and label activities, some kind of training
  635. generally needs to be performed beforehand.
  636. The choice of classifier affects how much offline analysis has to be done
  637. on the training set, and whether or not it can be adapted at run-time.
  638. \end_layout
  639. \begin_layout Standard
  640. One might expect that training would best be performed in a controlled environme
  641. nt, to reduce external influences on the user, but subjects in a laboratory
  642. setting are much more self-conscious about their movements, and this manifests
  643. itself in the data collected.
  644. Walking in a laboratory tends to produce acceleration data showing a consistent
  645. gait cycle which can be split into distinct phases, whereas walking in
  646. an uncontrolled setting produces data showing large fluctuations in gait
  647. phases and length.
  648. This means that classifiers trained on laboratory data may achieve a much
  649. lower accuracy when deployed in natural conditions
  650. \begin_inset CommandInset citation
  651. LatexCommand cite
  652. key "Bao2004"
  653. \end_inset
  654. .
  655. \end_layout
  656. \begin_layout Subsection
  657. Classification
  658. \end_layout
  659. \begin_layout Standard
  660. The classification step involves feeding the features for frame into some
  661. kind of machine learning algorithm which can, using training data
  662. \begin_inset Foot
  663. status collapsed
  664. \begin_layout Plain Layout
  665. and any offline analysis made of that data
  666. \end_layout
  667. \end_inset
  668. , determine which activity the feature-set most like represents.
  669. There are many different algorithms that can be used to perform the classificat
  670. ion, some of which are discussed below.
  671. \end_layout
  672. \begin_layout Subsubsection
  673. Decision trees
  674. \end_layout
  675. \begin_layout Standard
  676. Decision trees are possibly one of the simplest approaches possible
  677. \begin_inset CommandInset citation
  678. LatexCommand cite
  679. key "Hudson2003"
  680. \end_inset
  681. .
  682. A tree is constructed such that each node contains a test function, with
  683. branches for each possible discrete outcome of the function.
  684. This allows data to be classified with a
  685. \begin_inset Quotes eld
  686. \end_inset
  687. divide and conquer
  688. \begin_inset Quotes erd
  689. \end_inset
  690. approach.
  691. While high accuracy is possible in some circumstances
  692. \begin_inset CommandInset citation
  693. LatexCommand cite
  694. key "Hudson2003"
  695. \end_inset
  696. , there are several drawbacks to decision trees: a plain decision tree has
  697. no way to model uncertainty - in an activity-aware system there will always
  698. be a degree of uncertainty as to the classification, and being able to
  699. measure this is an important tool.
  700. They also have an inductive bias which leads to a preference for the most
  701. general solution, and in most cases this generalisation causes many false
  702. results
  703. \begin_inset CommandInset citation
  704. LatexCommand cite
  705. key "Shen2004"
  706. \end_inset
  707. .
  708. \end_layout
  709. \begin_layout Standard
  710. Decision trees require the structure of the tree and the test functions
  711. for each node to be determined during training.
  712. They do not lend themselves to minor on-the-fly modifications or new activities
  713. that are not part of the training set.
  714. \end_layout
  715. \begin_layout Subsubsection
  716. Neural networks
  717. \end_layout
  718. \begin_layout Standard
  719. Neural networks are based on an extremely simplified model of the brain.
  720. The network consists of layers of neurons, and each neuron performs a simple
  721. arithmetic operation on its inputs.
  722. This normally consists of taking each of its inputs, multiplying it by
  723. a weight, and then summing all of the weighted inputs together; the resulting
  724. figure then becomes the neuron's output, and the input to one or more nodes
  725. in the next layer.
  726. \end_layout
  727. \begin_layout Standard
  728. A network consists of a layer of input neurons, a layer containing one or
  729. more output neurons, and one or more layers of
  730. \begin_inset Quotes eld
  731. \end_inset
  732. hidden
  733. \begin_inset Quotes erd
  734. \end_inset
  735. neurons in between.
  736. The number of
  737. \begin_inset Quotes eld
  738. \end_inset
  739. hidden
  740. \begin_inset Quotes erd
  741. \end_inset
  742. layers, and the number of neurons within those layers must be chosen before
  743. training of the network begins.
  744. The training process will then determine the weights for each link in the
  745. network.
  746. The choice of number of layers poses a problem when designing a network,
  747. as too small a number can cripple the power of the network, but too large
  748. can cause it to be too expensive to evaluate and can possibly lead to it
  749. memorising erroneous data
  750. \begin_inset CommandInset citation
  751. LatexCommand cite
  752. key "Dornbush2005"
  753. \end_inset
  754. .
  755. \end_layout
  756. \begin_layout Standard
  757. Neural networks, however, do provide good accuracy and could potentially
  758. (although not easily) be modified on-the-fly to cope with new activities.
  759. \end_layout
  760. \begin_layout Subsubsection
  761. Genetic algorithms
  762. \end_layout
  763. \begin_layout Standard
  764. Genetic algorithms use the principle of natural selection to 'evolve' a
  765. solution to a problem.
  766. A set of random solutions are created, and a pre-defined fitness function
  767. is used to determine their relative worth.
  768. The best solutions are then combined together to produce the next generation
  769. of solutions, in a manner roughly analogous to reproduction in animals.
  770. Small
  771. \begin_inset Quotes eld
  772. \end_inset
  773. mutations
  774. \begin_inset Quotes erd
  775. \end_inset
  776. are also introduced into each generation to counter the effect of local
  777. maxima being reached.
  778. \end_layout
  779. \begin_layout Standard
  780. Genetic algorithms can be combined with other techniques such as neural
  781. networks - the weights in the neural network can be
  782. \begin_inset Quotes eld
  783. \end_inset
  784. evolved
  785. \begin_inset Quotes erd
  786. \end_inset
  787. using genetic algorithms to create a neural network which is good as satisfying
  788. the fitness function.
  789. \end_layout
  790. \begin_layout Standard
  791. The drawback of genetic algorithms is the need for a fitness function -
  792. the network will only ever be as good as the fitness function, and if you
  793. have a way to define what makes a good network you could in most cases
  794. hardcode the solution instead of evolving a network to satisfy it.
  795. \end_layout
  796. \begin_layout Subsubsection
  797. Instance-based learning
  798. \end_layout
  799. \begin_layout Standard
  800. Instance-based learning (IBL)
  801. \begin_inset CommandInset citation
  802. LatexCommand cite
  803. key "Witten2000"
  804. \end_inset
  805. algorithms are a class of
  806. \begin_inset Quotes eld
  807. \end_inset
  808. lazy
  809. \begin_inset Quotes erd
  810. \end_inset
  811. algorithms.
  812. They perform classification based on previously observed instances that
  813. have already been classified.
  814. There is no training required for IBLs, they're extremely adept at adapting
  815. to new scenarios, and they have a very low error rate
  816. \begin_inset CommandInset citation
  817. LatexCommand cite
  818. key "Dornbush2005"
  819. \end_inset
  820. which makes them ideal for activity-recognition.
  821. \end_layout
  822. \begin_layout Standard
  823. One particular type of IBL algorithm which is frequently seen in activity-aware
  824. research is the K-Nearest Neighbour (KNN) algorithm
  825. \begin_inset CommandInset citation
  826. LatexCommand cite
  827. key "Han2006"
  828. \end_inset
  829. .
  830. With the KNN algorithm, each sample is treated as a vector, and the distance
  831. \begin_inset Foot
  832. status collapsed
  833. \begin_layout Plain Layout
  834. the euclidean distance is usually used, but any metric will suffice
  835. \end_layout
  836. \end_inset
  837. between the sample and the existing instances is calculated.
  838. The sample is then classified according to the classification of the majority
  839. of its
  840. \begin_inset Formula $k$
  841. \end_inset
  842. nearest neighbours.
  843. \end_layout
  844. \begin_layout Standard
  845. One drawback of IBLs is that each new instance tends to be remembered for
  846. future use, which eventually results in large amounts of memory consumption
  847. and complexity when comparing distances of new samples.
  848. This can be partially overcome by only storing instances which would affect
  849. the classification of new samples
  850. \begin_inset CommandInset citation
  851. LatexCommand cite
  852. key "Witten2000"
  853. \end_inset
  854. .
  855. \end_layout
  856. \begin_layout Standard
  857. The KNN algorithm can be easily extended to support dynamic classification
  858. of new types of activities - if a sample is not within a certain distance
  859. of sufficient other samples, it can be classified as a new type of activity.
  860. \end_layout
  861. \begin_layout Subsubsection
  862. Conclusion
  863. \end_layout
  864. \begin_layout Standard
  865. There are numerous machine learning algorithms available and suitable for
  866. use in activity classification tasks.
  867. There has been a lot of research into their use, and all of the algorithms
  868. discussed have produced good results.
  869. Because of the lack of need for any training, however, the K-Nearest Neighbour
  870. algorithm appears to be the most promising for a mobile device.
  871. Any algorithm that needs explicit training prior to classification would
  872. almost certainly require a desktop application or a remote service to analyse
  873. the data, as it typically requires large amounts of memory and expensive
  874. computations.
  875. This either makes the application extremely cumbersome for the user (they
  876. have to connect their phone to a computer, transfer a file, obtain and
  877. run a separate application, then transfer some file back), or puts a large
  878. resource burden onto the distributor (having to remotely analyse all of
  879. the data from all users would require dedicated hardware for any more than
  880. a few users).
  881. \end_layout
  882. \begin_layout Section
  883. Mobile telephones
  884. \end_layout
  885. \begin_layout Standard
  886. It's hard to overstate the ubiquity of mobile telephones at present.
  887. In 2003, over a billion mobile telephones were sold - six times as many
  888. as the number of personal computers
  889. \begin_inset CommandInset citation
  890. LatexCommand cite
  891. key "Eagle2004"
  892. \end_inset
  893. .
  894. In 2007, this same figure describes the number of cameraphones sold
  895. \begin_inset CommandInset citation
  896. LatexCommand cite
  897. key "Reynolds2008"
  898. \end_inset
  899. , clearly representing a substantial growth in sales and advancements in
  900. the technology.
  901. In fact, mobile telephones are the fastest adopted technology in human
  902. history
  903. \begin_inset CommandInset citation
  904. LatexCommand cite
  905. key "Eagle2004"
  906. \end_inset
  907. .
  908. This ubiquity, coupled with the fact that mobile telephones are comfortably
  909. carried around on a daily basis by most of their users, makes them a very
  910. attractive alternative to more traditional platforms used for activity-aware
  911. research, which typically involved bulky or inconvenient apparatus that
  912. was expensive to manufacture
  913. \begin_inset CommandInset citation
  914. LatexCommand cite
  915. key "Schmidt2008"
  916. \end_inset
  917. and made users very self-conscious.
  918. \end_layout
  919. \begin_layout Subsection
  920. iPhone
  921. \end_layout
  922. \begin_layout Standard
  923. There have been several published works related to activity-recognition
  924. on the iPhone.
  925. The similarity between iPhone and Android platforms means that many of
  926. the concepts developed for or used on the iPhone are applicable to both.
  927. \end_layout
  928. \begin_layout Subsubsection
  929. iLearn
  930. \end_layout
  931. \begin_layout Standard
  932. \noun on
  933. iLearn
  934. \noun default
  935. \begin_inset CommandInset citation
  936. LatexCommand cite
  937. key "Schmidt2008"
  938. \end_inset
  939. is a suite of three tools -
  940. \noun on
  941. iLog
  942. \noun default
  943. ,
  944. \noun on
  945. iModel,
  946. \noun default
  947. and
  948. \noun on
  949. iClassify
  950. \noun default
  951. - which together allow for real-time classification of low-level activities.
  952. \noun on
  953. iLog
  954. \noun default
  955. is run on the user's iPhone and allows the user to specify which activity
  956. they will be performing.
  957. The application then records raw sensor data from the iPhone's three-axis
  958. accelerometer and 124 features computed from this data in real-time.
  959. The data is then stored on the device, annotated with the selected activity.
  960. \end_layout
  961. \begin_layout Standard
  962. The training data collected by
  963. \noun on
  964. iLog
  965. \noun default
  966. is then transferred to a desktop computer where
  967. \noun on
  968. iModel
  969. \noun default
  970. uses a Naïve Bayesian Network (NBN) to create a model which can be used
  971. to classify future input.
  972. The choice of NBNs was based on their ability to classify a set of trial
  973. data correctly, and the low computational cost of classifying data once
  974. the model has been generated.
  975. \end_layout
  976. \begin_layout Standard
  977. Once the model has been created, it is transferred back to the device where
  978. it is used by
  979. \noun on
  980. iClassify
  981. \noun default
  982. .
  983. This provides an API for other applications, and allows them to register
  984. for a callback which it publishes the user's current activity to every
  985. second.
  986. \end_layout
  987. \begin_layout Standard
  988. Unfortunately, neither the source code nor the API are published.
  989. The inability to run background processes on the iPhone suggests that any
  990. \begin_inset Quotes eld
  991. \end_inset
  992. API
  993. \begin_inset Quotes erd
  994. \end_inset
  995. would have to be more like a framework where the third-party developer
  996. has to re-engineer their application to use the
  997. \noun on
  998. iClassify
  999. \noun default
  1000. application as a base.
  1001. This is undesirable as it makes it extremely difficult to adapt existing
  1002. applications to use the activity-aware API, and is a very cumbersome way
  1003. of providing what could be a very minor piece of functionality for the
  1004. application.
  1005. \end_layout
  1006. \begin_layout Subsubsection
  1007. Evaluation
  1008. \end_layout
  1009. \begin_layout Standard
  1010. \begin_inset CommandInset citation
  1011. LatexCommand citet
  1012. key "Miluzzo2009"
  1013. \end_inset
  1014. present an evaluation of the iPhone for use in
  1015. \begin_inset Quotes eld
  1016. \end_inset
  1017. people-centric sensing applications
  1018. \begin_inset Quotes erd
  1019. \end_inset
  1020. .
  1021. One of the major drawbacks highlighted is that the iPhone does not support
  1022. applications which run in the background.
  1023. This means that any application wishing to perform continuous real-time
  1024. activity detection would need to run as a foreground process, preventing
  1025. the user from using the device for any other function.
  1026. \end_layout
  1027. \begin_layout Standard
  1028. The research also shows that the computational compatibility of the iPhone
  1029. is more than sufficient to perform the necessary calculations for a typical
  1030. activity-recognising application, which suggests that any modern smart
  1031. phone would be capable of these.
  1032. \begin_inset Note Note
  1033. status open
  1034. \begin_layout Plain Layout
  1035. Multitasking
  1036. \end_layout
  1037. \end_inset
  1038. \end_layout
  1039. \begin_layout Subsection
  1040. Android
  1041. \end_layout
  1042. \begin_layout Standard
  1043. While the Android platform is relatively new, it is rapidly gaining market
  1044. share on the more established mobile operating systems.
  1045. A December 2009 survey
  1046. \begin_inset CommandInset citation
  1047. LatexCommand cite
  1048. key "ChangeWave2010"
  1049. \end_inset
  1050. shows that 21% of respondents want their next smartphone purchase to run
  1051. Android, a 350% increase from the same survey conducted three months prior.
  1052. This is compared to the iPhone, which dropped 4% to 28% in the same time
  1053. period.
  1054. Gartner, a respected IT research firm, predicts that by 2012, Android will
  1055. be the second most popular mobile operating system globally
  1056. \begin_inset CommandInset citation
  1057. LatexCommand cite
  1058. key "ComputerWorld2010"
  1059. \end_inset
  1060. .
  1061. \end_layout
  1062. \begin_layout Standard
  1063. In addition to its rapidly increasing popularity, the Android platform offers
  1064. several advantages over the iPhone platform.
  1065. Most notably is the ability to run background processes (called
  1066. \noun on
  1067. services
  1068. \noun default
  1069. ), which will allow a classifier application to run without interfering
  1070. with the user's normal use of their mobile telephone.
  1071. In addition, the Android OS provides access to the Bluetooth and GSM stacks,
  1072. allowing for data from both to be used for activity detection.
  1073. \end_layout
  1074. \begin_layout Standard
  1075. The ability to run a background process will enable a proper API for sharing
  1076. activity data with other applications, which will allow third-party developers
  1077. to make their applications context-aware with relatively little work on
  1078. their part.
  1079. This is extremely desirable as it will allow rapid prototyping of applications,
  1080. which will hopefully lead to innovative new uses of activity classification.
  1081. \end_layout
  1082. \begin_layout Standard
  1083. While it is purported
  1084. \begin_inset CommandInset citation
  1085. LatexCommand cite
  1086. key "Garakani2009"
  1087. \end_inset
  1088. that there is research being done on bringing activity-awareness to Android
  1089. platforms, there does not seem to be any work published on this matter
  1090. or any applications available to support it.
  1091. While there a small number of self-proclaimed
  1092. \begin_inset Quotes eld
  1093. \end_inset
  1094. context-aware
  1095. \begin_inset Quotes erd
  1096. \end_inset
  1097. applications for Android, this context is almost exclusively limited to
  1098. geolocation.
  1099. This project will therefore produce one of the first publicly available
  1100. activity-aware applications for the Android platform.
  1101. \end_layout
  1102. \begin_layout Section
  1103. Location analysis
  1104. \begin_inset CommandInset label
  1105. LatexCommand label
  1106. name "sec:Location-analysis"
  1107. \end_inset
  1108. \end_layout
  1109. \begin_layout Standard
  1110. Location-based services are currently undergoing an
  1111. \begin_inset Quotes eld
  1112. \end_inset
  1113. explosion
  1114. \begin_inset Quotes erd
  1115. \end_inset
  1116. \begin_inset CommandInset citation
  1117. LatexCommand cite
  1118. key "Bellavista2008"
  1119. \end_inset
  1120. , thanks to improvements in technology, and greater openness on the part
  1121. of service providers and handset manufacturers.
  1122. All modern smartphone platforms have a geolocation stack, usually backed
  1123. by a GPS chipset and in most cases augmented with either a database of
  1124. known cell tower locations, or a map of known wifi network identifiers
  1125. and locations, or both.
  1126. The two databases allow for rough geolocation when GPS is not available,
  1127. or for greatly decreased lookup time when a GPS lock is available.
  1128. \end_layout
  1129. \begin_layout Standard
  1130. However, while the geolocation stack is a rich source of data, it is a poor
  1131. source of information.
  1132. A latitude/longitude pair may describe the user's exact location, but a
  1133. user would be hard-pressed to tell the difference between the latitude/longitud
  1134. e of their home, place of work, or of somewhere in between the two with
  1135. no real significance.
  1136. A great deal of research has therefore been devoted to detecting meaningful
  1137. locations from GPS traces.
  1138. \end_layout
  1139. \begin_layout Standard
  1140. \begin_inset Quotes eld
  1141. \end_inset
  1142. Place recognition
  1143. \begin_inset Quotes erd
  1144. \end_inset
  1145. has two phases: learning and recognising.
  1146. An initial learning phase analyses a sensor log and segments the data into
  1147. places where the device is stable (stationary), and designates this as
  1148. a
  1149. \begin_inset Quotes eld
  1150. \end_inset
  1151. waypoint
  1152. \begin_inset Quotes erd
  1153. \end_inset
  1154. .
  1155. It then merges
  1156. \begin_inset Quotes eld
  1157. \end_inset
  1158. waypoints
  1159. \begin_inset Quotes erd
  1160. \end_inset
  1161. that appear to identify the same place being visited multiple times.
  1162. The second phase uses these learned waypoints to recognise when the device
  1163. is revisiting a place, and therefore also when the device is not visiting
  1164. a previously known place (for example when it is moving between two)
  1165. \begin_inset CommandInset citation
  1166. LatexCommand cite
  1167. key "Hightower2005"
  1168. \end_inset
  1169. .
  1170. \end_layout
  1171. \begin_layout Standard
  1172. Unfortunately, quite a lot of research into location analysis uses GPS
  1173. \begin_inset Quotes eld
  1174. \end_inset
  1175. blackspots
  1176. \begin_inset Quotes erd
  1177. \end_inset
  1178. to identify useful places
  1179. \begin_inset CommandInset citation
  1180. LatexCommand cite
  1181. key "Nurmi2006,Liao2007b"
  1182. \end_inset
  1183. .
  1184. With older GPS chipsets, the satellite signal would be lost when the user
  1185. entered a building, and this allowed an inference that the current location
  1186. was probably a place of interest.
  1187. However, modern GPS chipsets receive a signal in most indoor locations.
  1188. It is possible that a decrease in signal strength or number of locked satellite
  1189. s may still occur, or that GSM signal strength could be used instead, but
  1190. these ideas have not been widely explored at present.
  1191. \end_layout
  1192. \begin_layout Standard
  1193. There is, however, plenty of research relating to the use of location data
  1194. outdoors.
  1195. One application
  1196. \begin_inset CommandInset citation
  1197. LatexCommand cite
  1198. key "Liao2007b"
  1199. \end_inset
  1200. learns not only the user's frequently visited places, but the method of
  1201. transport used between them and the typical routes taken.
  1202. It can then offer instructions showing the user how to go from place to
  1203. place, or issue alerts if the user appears to be going the wrong way (by
  1204. getting on the wrong bus, for instance).
  1205. The ability to correctly infer the user's destination would be extremely
  1206. useful in a context-aware system: a user walking to do their grocery shopping
  1207. is almost certainly going to want to interact with their phone differently
  1208. than a user on a bus going to work.
  1209. \end_layout
  1210. \begin_layout Section
  1211. Bluetooth
  1212. \begin_inset CommandInset label
  1213. LatexCommand label
  1214. name "sec:Bluetooth"
  1215. \end_inset
  1216. \end_layout
  1217. \begin_layout Standard
  1218. The user's context depends on not only what they are doing, where they are
  1219. doing it, but also who they are with.
  1220. Sitting and eating lunch with a manager is quite a different context to
  1221. sitting and eating lunch with a spouse.
  1222. It would therefore be desirable to be able to identify between different
  1223. people when performing context analysis.
  1224. \end_layout
  1225. \begin_layout Standard
  1226. One of the few ways that a mobile telephone can identify other people is
  1227. by searching for
  1228. \emph on
  1229. their
  1230. \emph default
  1231. mobile telephones.
  1232. This can be done by scanning for Bluetooth devices, which involves broadcasting
  1233. a
  1234. \begin_inset Quotes eld
  1235. \end_inset
  1236. device inquiry
  1237. \begin_inset Quotes erd
  1238. \end_inset
  1239. message; if a device chooses to answer the inquiry, it discloses its unique
  1240. MAC address and device class
  1241. \begin_inset Foot
  1242. status collapsed
  1243. \begin_layout Plain Layout
  1244. the device class tells us whether the device is a computer or a mobile telephone
  1245. , for example
  1246. \end_layout
  1247. \end_inset
  1248. .
  1249. Unfortunately, this requires the person to not only be carrying a mobile
  1250. telephone, but a Bluetooth-enabled model, and for them to have configured
  1251. their device to have Bluetooth enabled and to be
  1252. \begin_inset Quotes eld
  1253. \end_inset
  1254. visible
  1255. \begin_inset Quotes erd
  1256. \end_inset
  1257. .
  1258. A study in 2004
  1259. \begin_inset CommandInset citation
  1260. LatexCommand cite
  1261. key "Eagle2004"
  1262. \end_inset
  1263. found that only 1 in 150 people had such a configured device on a university
  1264. campus.
  1265. This figure will undoubtedly be greater now, and may well be greater when
  1266. in public, but it highlights that only a handful of people may be detectable
  1267. via their Bluetooth devices.
  1268. \end_layout
  1269. \begin_layout Standard
  1270. A study in 2006
  1271. \begin_inset CommandInset citation
  1272. LatexCommand cite
  1273. key "Nicolai2006"
  1274. \end_inset
  1275. used a similar technique to monitor the social context of the user, introducing
  1276. the idea of
  1277. \begin_inset Quotes eld
  1278. \end_inset
  1279. familiar
  1280. \begin_inset Quotes erd
  1281. \end_inset
  1282. people,
  1283. \begin_inset Quotes eld
  1284. \end_inset
  1285. unfamiliar
  1286. \begin_inset Quotes erd
  1287. \end_inset
  1288. people and
  1289. \begin_inset Quotes eld
  1290. \end_inset
  1291. familiar strangers
  1292. \begin_inset Quotes erd
  1293. \end_inset
  1294. .
  1295. These labels were applied based on the number of times their Bluetooth
  1296. devices were detected
  1297. \begin_inset Foot
  1298. status collapsed
  1299. \begin_layout Plain Layout
  1300. and by extension the number of times the user had come into contact with
  1301. them
  1302. \end_layout
  1303. \end_inset
  1304. .
  1305. While the definition of
  1306. \begin_inset Quotes eld
  1307. \end_inset
  1308. familiar
  1309. \begin_inset Quotes erd
  1310. \end_inset
  1311. and
  1312. \begin_inset Quotes eld
  1313. \end_inset
  1314. unfamiliar
  1315. \begin_inset Quotes erd
  1316. \end_inset
  1317. are quite obvious,
  1318. \begin_inset Quotes eld
  1319. \end_inset
  1320. familiar strangers
  1321. \begin_inset Quotes erd
  1322. \end_inset
  1323. is a new class of people used to describe those who the user encounters
  1324. repeatedly, but doesn't interact with.
  1325. This may include neighbours that are passed on the street, or fellow commuters
  1326. on a journey into work.
  1327. The number of people in each of those groups (and any changes in those
  1328. numbers) can be used to infer how
  1329. \begin_inset Quotes eld
  1330. \end_inset
  1331. comfortable
  1332. \begin_inset Quotes erd
  1333. \end_inset
  1334. the user feels with their social context, and whether their current activity
  1335. is part of a normal routine or is novel.
  1336. \end_layout
  1337. \begin_layout Standard
  1338. This research has, to date, not been readily combined with activity-aware
  1339. applications, and this project will aim to integrate the results of Bluetooth
  1340. scanning with
  1341. \begin_inset Quotes eld
  1342. \end_inset
  1343. classical
  1344. \begin_inset Quotes erd
  1345. \end_inset
  1346. activity classification techniques and to evaluate whether it provides
  1347. any benefit.
  1348. \end_layout
  1349. \begin_layout Section
  1350. Power management
  1351. \begin_inset CommandInset label
  1352. LatexCommand label
  1353. name "sec:Power-management"
  1354. \end_inset
  1355. \end_layout
  1356. \begin_layout Standard
  1357. One major consideration when deploying an application on a mobile device
  1358. is the amount of power it will use.
  1359. An application constantly polling any one sensor can reduce battery life
  1360. significantly, and an application which kept all available sensors active
  1361. (in addition to doing CPU-heavy analysis on them) would drain the battery
  1362. in a typical smartphone in a matter of hours.
  1363. A context-aware application is not very useful for a user if they can only
  1364. use their telephone for an hour or two before it needs recharging!
  1365. \end_layout
  1366. \begin_layout Standard
  1367. One solution
  1368. \begin_inset CommandInset citation
  1369. LatexCommand cite
  1370. key "Wang2009"
  1371. \end_inset
  1372. is to only use one or two sensors to monitor the user's activity until it
  1373. appears to be transitioning.
  1374. For example, if the user is believed to be walking, the application only
  1375. needs to periodically check either the accelerometer (to confirm the user
  1376. is still making walking motions) or GPS (to confirm the distance traveled
  1377. is still consistent with walking) to know that their activity has not changed.
  1378. As soon as the user's behaviour becomes inconsistent with walking, the
  1379. application can bring other sensors online until it has successfully reclassifi
  1380. ed the activity, and then resume monitoring with minimal sensors.
  1381. \end_layout
  1382. \begin_layout Standard
  1383. Another option
  1384. \begin_inset CommandInset citation
  1385. LatexCommand cite
  1386. key "Wang2009"
  1387. \end_inset
  1388. (which can be used in conjunction) is to only enable sensors for a short
  1389. amount of time, and then sleep for a period before reactivating them.
  1390. The
  1391. \begin_inset Quotes eld
  1392. \end_inset
  1393. duty cycle
  1394. \begin_inset Quotes erd
  1395. \end_inset
  1396. suggested for accelerometers is 6 second of sensing followed by 10 seconds
  1397. of sleeping.
  1398. The six second window is enough time to allow for capturing a full range
  1399. of motion (several complete strides) if the user is walking or running,
  1400. and then the ten second sleep stops the accelerometer using battery power
  1401. until the next cycle.
  1402. This process obviously means that a sudden switch in activity will not
  1403. be noticed immediately, but a delay of a few seconds is acceptable as most
  1404. activities will last for minutes or longer.
  1405. \end_layout
  1406. \begin_layout Standard
  1407. The battery life on modern smartphones rarely exceeds 24 hours of typical
  1408. use, so it is extremely important that any applications developed for this
  1409. project does not significantly reduce this.
  1410. A balance between prompt detection and notification of activity changes
  1411. and battery use by sensors and processing algorithms will need to be found.
  1412. \end_layout
  1413. \begin_layout Standard
  1414. \begin_inset Newpage pagebreak
  1415. \end_inset
  1416. \end_layout
  1417. \begin_layout Part
  1418. Activity classification
  1419. \end_layout
  1420. \begin_layout Section
  1421. Sensor Logger application
  1422. \end_layout
  1423. \begin_layout Standard
  1424. The primary component of context that this project aims to expose is the
  1425. user's activity.
  1426. The main factor in determining a user's activity is the data retrieved
  1427. from the device's accelerometers.
  1428. This gave rise to the project's first published application, titled
  1429. \noun on
  1430. Sensor Logger
  1431. \noun default
  1432. .
  1433. The first version of
  1434. \noun on
  1435. Sensor Logger
  1436. \noun default
  1437. consisted of a single activity containing a large amount of text describing
  1438. the project, an editable text field where the user could name their activity,
  1439. and a button which initiated logging.
  1440. \end_layout
  1441. \begin_layout Standard
  1442. \begin_inset Float figure
  1443. wide false
  1444. sideways false
  1445. status collapsed
  1446. \begin_layout Plain Layout
  1447. \begin_inset Caption
  1448. \begin_layout Plain Layout
  1449. Sensor Logger component diagram
  1450. \begin_inset CommandInset label
  1451. LatexCommand label
  1452. name "fig:Sensor-Logger-component"
  1453. \end_inset
  1454. \end_layout
  1455. \end_inset
  1456. \end_layout
  1457. \end_inset
  1458. Once the user tapped the 'Start' button, the application launched a service
  1459. which registered with the device's SensorManager and requested fast updates
  1460. from both the accelerometer and the magnetic field sensor.
  1461. Every 50ms the last value received from each axis on each sensor was written
  1462. along with a timestamp to a file on the device.
  1463. After 1024 samples were collected (a total of around 51 seconds), the service
  1464. launched an uploader service and terminated itself.
  1465. The uploader service read the file from the device's flash memory, opened
  1466. a HTTP connection to the project website, and submitted the data to a PHP
  1467. script.
  1468. The PHP script in turn stored the data in a MySQL database.
  1469. \begin_inset CommandInset ref
  1470. LatexCommand prettyref
  1471. reference "fig:Sensor-Logger-component"
  1472. \end_inset
  1473. shows the relationship between the various components involved in the Sensor
  1474. Logger application.
  1475. \begin_inset Note Note
  1476. status open
  1477. \begin_layout Plain Layout
  1478. Diagram of components
  1479. \end_layout
  1480. \end_inset
  1481. \end_layout
  1482. \begin_layout Subsection
  1483. Market and user input
  1484. \end_layout
  1485. \begin_layout Standard
  1486. The Sensor Logger application was made available on the Android Market,
  1487. under the name 'Sensor Logger Test'.
  1488. The description briefly outlined the aim of the project and emphasised
  1489. that the Sensor Logger was a data gathering tool and didn't really provide
  1490. any utility to end users.
  1491. Despite this, over 1,000 submissions were received from anonymous users.
  1492. While some of these did not provide any use for the reasons discussed in
  1493. \begin_inset CommandInset ref
  1494. LatexCommand prettyref
  1495. reference "sec:Manual-classification"
  1496. \end_inset
  1497. , a number were manually classified and used to generate the model used
  1498. in the final application.
  1499. \end_layout
  1500. \begin_layout Standard
  1501. \begin_inset Float figure
  1502. wide false
  1503. sideways false
  1504. status collapsed
  1505. \begin_layout Plain Layout
  1506. \begin_inset Graphics
  1507. filename analysis_of_user-submitted_sensor_logger_data_sets.png
  1508. \end_inset
  1509. \end_layout
  1510. \begin_layout Plain Layout
  1511. \begin_inset Caption
  1512. \begin_layout Plain Layout
  1513. Analysis of user-submitted Sensor Logger results
  1514. \begin_inset CommandInset label
  1515. LatexCommand label
  1516. name "fig:Analysis-of-user-submitted"
  1517. \end_inset
  1518. \end_layout
  1519. \end_inset
  1520. \end_layout
  1521. \begin_layout Plain Layout
  1522. \end_layout
  1523. \end_inset
  1524. Version 0.2.0 of the Sensor Logger application introduced functionality where
  1525. it classified the activity on the device before asking the user to name
  1526. it (see
  1527. \begin_inset CommandInset ref
  1528. LatexCommand prettyref
  1529. reference "sec:On-device-classification"
  1530. \end_inset
  1531. ).
  1532. This allowed the submitted data to be augmented with an extra field saying
  1533. what the activity classification algorithm thought the activity was.
  1534. If the user confirmed that the activity was correct, the manual activity
  1535. annotation was set to 'UNCLASSIFIED/NOTCORRECTED'.
  1536. \end_layout
  1537. \begin_layout Standard
  1538. \begin_inset CommandInset ref
  1539. LatexCommand prettyref
  1540. reference "fig:Analysis-of-user-submitted"
  1541. \end_inset
  1542. shows a breakdown of all the results that were received from version 0.2.0
  1543. or later of the application.
  1544. The raw data is included in
  1545. \begin_inset CommandInset ref
  1546. LatexCommand prettyref
  1547. reference "sec:User-annotated-Sensor-Logger"
  1548. \end_inset
  1549. .
  1550. Nearly half of all the submissions were classified correctly, and only
  1551. 15% were classified incorrectly.
  1552. A large proportion of the submissions either had no text at all or had
  1553. an activity that didn't make sense, such as
  1554. \begin_inset Quotes eld
  1555. \end_inset
  1556. sjxjxgzog
  1557. \begin_inset Quotes erd
  1558. \end_inset
  1559. or
  1560. \begin_inset Quotes eld
  1561. \end_inset
  1562. it is a cat!
  1563. \begin_inset Quotes erd
  1564. \end_inset
  1565. .
  1566. There were also 30 submissions where the user had annotated the data with
  1567. an activity that makes sense, but which isn't supported by the Sensor Logger.
  1568. The majority of these were 'Sleeping' - but it is unclear in these circumstance
  1569. s what the user is actually doing with their device; if it is left on a
  1570. bedside table, for example, then there is no way to distinguish the actual
  1571. activity of the user.
  1572. \end_layout
  1573. \begin_layout Standard
  1574. \begin_inset Float figure
  1575. wide false
  1576. sideways false
  1577. status collapsed
  1578. \begin_layout Plain Layout
  1579. \begin_inset Graphics
  1580. filename breakdown_of_incorrect_results.png
  1581. \end_inset
  1582. \end_layout
  1583. \begin_layout Plain Layout
  1584. \begin_inset Caption
  1585. \begin_layout Plain Layout
  1586. Breakdown of incorrect results
  1587. \begin_inset CommandInset label
  1588. LatexCommand label
  1589. name "fig:Breakdown-of-incorrect"
  1590. \end_inset
  1591. \end_layout
  1592. \end_inset
  1593. \end_layout
  1594. \begin_layout Plain Layout
  1595. \end_layout
  1596. \end_inset
  1597. \begin_inset CommandInset ref
  1598. LatexCommand prettyref
  1599. reference "fig:Breakdown-of-incorrect"
  1600. \end_inset
  1601. shows a breakdown of the results deemed incorrect.
  1602. A large majority of these incorrect results occurred when the user was
  1603. sitting down, and the Sensor Logger incorrectly classified them as being
  1604. in a vehicle of some sort.
  1605. Of the remaining incorrect entries, 15% correctly classified the correct
  1606. top level in the hierarchy (such as 'VEHICLE' or 'WALKING') but then misclassif
  1607. ied further levels; the remaining 25% incorrectly classified this top level
  1608. as well.
  1609. \end_layout
  1610. \begin_layout Subsection
  1611. Exception handling
  1612. \end_layout
  1613. \begin_layout Standard
  1614. Early user feedback on the Android Market indicated that the Sensor Logger
  1615. application was
  1616. \begin_inset Quotes eld
  1617. \end_inset
  1618. Force Closing
  1619. \begin_inset Quotes erd
  1620. \end_inset
  1621. .
  1622. This is a reference to the dialog that appears when an application throws
  1623. an unhandled exception and stops running.
  1624. The Market provides no facilities to engage with users, and there were
  1625. no force close issues present on either the Android emulator or several
  1626. physical devices the application was tested on, so it was difficult to
  1627. determine the cause.
  1628. \end_layout
  1629. \begin_layout Standard
  1630. In order to gain more data on this issue, an
  1631. \noun on
  1632. UncaughtExceptionHandler
  1633. \noun default
  1634. was written and appropriately registered with the application's thread.
  1635. The exception handler is invoked by the
  1636. \noun on
  1637. Thread
  1638. \noun default
  1639. class any time a thread dies due to an unhandled exception.
  1640. The implementation for the Sensor Logger application copied the details
  1641. of any exception (including the reason and full stack trace) into a file,
  1642. and then uploaded the file with some meta-data to the same website which
  1643. was setup to handle uploading of accelerometer data.
  1644. \end_layout
  1645. \begin_layout Standard
  1646. Soon after an updated version of the Sensor Logger was published including
  1647. the new exception handler a report was uploaded.
  1648. The stack trace indicated that the problem was a
  1649. \noun on
  1650. NumberFormatException
  1651. \noun default
  1652. when trying to convert the device's IMEI number into a
  1653. \noun on
  1654. long
  1655. \noun default
  1656. .
  1657. After some brief research it became apparent that CDMA devices do not use
  1658. IMEI numbers, but instead MEIDs (Mobile Equipment Identifier).
  1659. MEIDs are hexidecimal instead of numerical, so obviously cannot be converted
  1660. directly to a numeric type.
  1661. The code was adjusted to decode MEIDs properly and a new version of the
  1662. application published, and the error reports ceased.
  1663. \end_layout
  1664. \begin_layout Standard
  1665. From a development perspective, the utility of being notified directly of
  1666. exceptions is immense.
  1667. It is very difficult for users to find the details of an exception following
  1668. a force close, so extremely unlikely that anyone will report problems in
  1669. sufficient detail for them to be fixed.
  1670. The exception handling code was therefore abstracted into a common class,
  1671. and included in every application released as part of this project.
  1672. \end_layout
  1673. \begin_layout Section
  1674. Manual classification
  1675. \begin_inset CommandInset label
  1676. LatexCommand label
  1677. name "sec:Manual-classification"
  1678. \end_inset
  1679. \end_layout
  1680. \begin_layout Standard
  1681. \begin_inset Float figure
  1682. wide false
  1683. sideways false
  1684. status collapsed
  1685. \begin_layout Plain Layout
  1686. \begin_inset Graphics
  1687. filename website-windows.png
  1688. height 70pheight%
  1689. rotateAngle 90
  1690. \end_inset
  1691. \end_layout
  1692. \begin_layout Plain Layout
  1693. \begin_inset Caption
  1694. \begin_layout Plain Layout
  1695. Website for manually classifying windows
  1696. \begin_inset CommandInset label
  1697. LatexCommand label
  1698. name "fig:Website-for-manually"
  1699. \end_inset
  1700. \end_layout
  1701. \end_inset
  1702. \end_layout
  1703. \begin_layout Plain Layout
  1704. \end_layout
  1705. \end_inset
  1706. Once the sensor data was logged in the database, a web interface provided
  1707. a graphical representation of the acceleration and magnetic field readings.
  1708. It also allowed a handful of authenticated users to manually classify overlappi
  1709. ng
  1710. \begin_inset Quotes eld
  1711. \end_inset
  1712. windows
  1713. \begin_inset Quotes erd
  1714. \end_inset
  1715. of 128 data points.
  1716. The classification portion of the website is shown in
  1717. \begin_inset CommandInset ref
  1718. LatexCommand prettyref
  1719. reference "fig:Website-for-manually"
  1720. \end_inset
  1721. ; it shows the first six overlapping windows for one submission, with the
  1722. third window highlighted because the user's cursor is over the corresponding
  1723. dropdown.
  1724. Users of this system could define activities in a hierarchical fashion,
  1725. starting with two root nodes - 'CLASSIFIED' and 'UNCLASSIFIED'.
  1726. Early data submitted resulted in a classification hierarchy of:
  1727. \end_layout
  1728. \begin_layout Itemize
  1729. UNCLASSIFIED
  1730. \end_layout
  1731. \begin_deeper
  1732. \begin_layout Itemize
  1733. PENDING (not yet manually assigned)
  1734. \end_layout
  1735. \begin_layout Itemize
  1736. UNKNOWN (unable to determine actual activity from user label)
  1737. \end_layout
  1738. \begin_layout Itemize
  1739. DNI (short for
  1740. \begin_inset Quotes eld
  1741. \end_inset
  1742. Do Not Include
  1743. \begin_inset Quotes erd
  1744. \end_inset
  1745. , for windows which appear erroneous)
  1746. \end_layout
  1747. \end_deeper
  1748. \begin_layout Itemize
  1749. CLASSIFIED
  1750. \end_layout
  1751. \begin_deeper
  1752. \begin_layout Itemize
  1753. WALKING
  1754. \end_layout
  1755. \begin_deeper
  1756. \begin_layout Itemize
  1757. STAIRS (not used in itself)
  1758. \end_layout
  1759. \begin_deeper
  1760. \begin_layout Itemize
  1761. UP
  1762. \end_layout
  1763. \begin_layout Itemize
  1764. DOWN
  1765. \end_layout
  1766. \end_deeper
  1767. \end_deeper
  1768. \begin_layout Itemize
  1769. IDLE (not used in itself)
  1770. \end_layout
  1771. \begin_deeper
  1772. \begin_layout Itemize
  1773. SITTING
  1774. \end_layout
  1775. \begin_layout Itemize
  1776. STANDING
  1777. \end_layout
  1778. \end_deeper
  1779. \begin_layout Itemize
  1780. VEHICLE (not used in itself)
  1781. \end_layout
  1782. \begin_deeper
  1783. \begin_layout Itemize
  1784. CAR
  1785. \end_layout
  1786. \begin_layout Itemize
  1787. BUS
  1788. \end_layout
  1789. \end_deeper
  1790. \begin_layout Itemize
  1791. DANCING
  1792. \end_layout
  1793. \end_deeper
  1794. \begin_layout Standard
  1795. It was observed that many samples had erroneous data either at the start
  1796. or the end of the recording.
  1797. This was a result of the user putting the device away in a pocket (as instructe
  1798. d) or picking it back up to check the results.
  1799. A classification of 'DNI', short for 'Do Not Include' was therefore introduced
  1800. which allowed the erroneous windows to be summarilary excluded from later
  1801. analysis.
  1802. Later iterations of the Sensor Logger application included a 10 second
  1803. delay at the start to give the user time to put the device away, and sounded
  1804. an audible alert at the end, which reduced the number of records submitted
  1805. with bad data.
  1806. \end_layout
  1807. \begin_layout Standard
  1808. Another problem with the user submitted data was that some activity descriptions
  1809. didn't make sense.
  1810. With the earliest versions of the Sensor Logger, a significant number of
  1811. users entered their own name or a non-sensical string into the textbox
  1812. labelled
  1813. \begin_inset Quotes eld
  1814. \end_inset
  1815. Activity name
  1816. \begin_inset Quotes erd
  1817. \end_inset
  1818. .
  1819. This suggested that users were either not reading or misunderstanding the
  1820. instructions.
  1821. A classification for 'UNKNOWN' was introduced to facilitate removal of
  1822. the records where classifications couldn't be inferred from the activity
  1823. name.
  1824. \end_layout
  1825. \begin_layout Section
  1826. Feature extraction
  1827. \end_layout
  1828. \begin_layout Standard
  1829. Once a reasonable sample of data had been recorded, the PHP script was modified
  1830. to allow exporting of all classified windows.
  1831. It produced a plain text file containing the sensor readings and timestamp
  1832. for each of the 128 points in each window, as well as the manually-applied
  1833. classification.
  1834. It did not include information as to which windows were from the same sample,
  1835. or the orginal user-supplied activity name.
  1836. \begin_inset Note Note
  1837. status open
  1838. \begin_layout Plain Layout
  1839. Sample in appendix
  1840. \end_layout
  1841. \end_inset
  1842. \end_layout
  1843. \begin_layout Standard
  1844. A Java program was written which imported the exported data.
  1845. A series of 'feature extractors' were written.
  1846. These calculated the:
  1847. \end_layout
  1848. \begin_layout Itemize
  1849. maximum
  1850. \end_layout
  1851. \begin_layout Itemize
  1852. minimum
  1853. \end_layout
  1854. \begin_layout Itemize
  1855. range
  1856. \end_layout
  1857. \begin_layout Itemize
  1858. median
  1859. \end_layout
  1860. \begin_layout Itemize
  1861. mean
  1862. \end_layout
  1863. \begin_layout Itemize
  1864. absolute mean
  1865. \end_layout
  1866. \begin_layout Standard
  1867. Each of these extractors was run over the set of 128 data points from each
  1868. axis on each sensor, giving a total of 36 features.
  1869. It was planned to add further features including fast fourier transforms
  1870. and energy, as suggested by multiple papers consulted in background research.
  1871. \end_layout
  1872. \begin_layout Standard
  1873. The program was modified to export the features and classification of each
  1874. window in ARFF
  1875. \begin_inset Note Note
  1876. status open
  1877. \begin_layout Plain Layout
  1878. ref
  1879. \end_layout
  1880. \end_inset
  1881. (Attribute Relation File Format).
  1882. This is a format used by Weka
  1883. \begin_inset Note Note
  1884. status open
  1885. \begin_layout Plain Layout
  1886. ref
  1887. \end_layout
  1888. \end_inset
  1889. , a popular data mining suite developed by the University of Waikato.
  1890. \begin_inset Note Note
  1891. status open
  1892. \begin_layout Plain Layout
  1893. Sample in appendix
  1894. \end_layout
  1895. \end_inset
  1896. The ARFF file was imported into Weka and analysed.
  1897. \end_layout
  1898. \begin_layout Standard
  1899. It was found that Weka could correctly classified
  1900. \begin_inset Note Note
  1901. status open
  1902. \begin_layout Plain Layout
  1903. 99%
  1904. \end_layout
  1905. \end_inset
  1906. of activities (measured using a
  1907. \begin_inset Note Note
  1908. status open
  1909. \begin_layout Plain Layout
  1910. hold-one cross validation
  1911. \end_layout
  1912. \end_inset
  1913. ) using a K-Nearest Network algorithm with K = 1.
  1914. Furthermore, it became apparent that the error did not significantly increase
  1915. when the 36 features were reduced to just four - the absolute mean and
  1916. the range of the Y and Z accelerometer readings.
  1917. Given the low cost of calculating these features and the very high detection
  1918. rate, further research into other features such as FFTs was not performed.
  1919. \end_layout
  1920. \begin_layout Standard
  1921. \begin_inset Note Note
  1922. status open
  1923. \begin_layout Plain Layout
  1924. Trumpet blowing
  1925. \end_layout
  1926. \end_inset
  1927. \end_layout
  1928. \begin_layout Standard
  1929. The application was again modified to read the exported data, calculate
  1930. the four interesting features, and create a mapping of data points to activity.
  1931. This map was then serialised and written to a file
  1932. \begin_inset Note Note
  1933. status open
  1934. \begin_layout Plain Layout
  1935. expand
  1936. \end_layout
  1937. \end_inset
  1938. .
  1939. \end_layout
  1940. \begin_layout Section
  1941. On-device classification
  1942. \begin_inset CommandInset label
  1943. LatexCommand label
  1944. name "sec:On-device-classification"
  1945. \end_inset
  1946. \end_layout
  1947. \begin_layout Standard
  1948. The serialised model was bundled with a new version of the Sensor Logger
  1949. application, along with a completely redesigned user interface.
  1950. The application now consisted of a series of activities: on opening the
  1951. application, the user is presented with an introduction activity which
  1952. explains what the application does and the aims of the project; when they
  1953. click the 'next' button a 10 second countdown is displayed with the instruction
  1954. to put the phone away repeated.
  1955. During the data collection period an animated pattern of dots is displayed
  1956. so the user knows the application is still working if they look at it.
  1957. When data collection is completed, the device adds a notification with
  1958. sound and vibrate settings, and displays another progress screen while
  1959. a background service analyses the data.
  1960. The result of the classification is then displayed prominently and the
  1961. user is presented with two buttons - one to confirm the classification
  1962. and one to reject and correct it.
  1963. The on-device classification (and any correction made to it) is submitted
  1964. along with all the data previously submitted.
  1965. The user is then presented with a 'Thank you' message, and a unique link
  1966. to the project website where they can view graphs of their activities.
  1967. \begin_inset Note Note
  1968. status open
  1969. \begin_layout Plain Layout
  1970. Mess!
  1971. \end_layout
  1972. \end_inset
  1973. \end_layout
  1974. \begin_layout Section
  1975. Activity Recorder application
  1976. \end_layout
  1977. \begin_layout Standard
  1978. \begin_inset Note Note
  1979. status open
  1980. \begin_layout Plain Layout
  1981. Screenshot
  1982. \end_layout
  1983. \end_inset
  1984. \end_layout
  1985. \begin_layout Standard
  1986. The Activity Recorder application was the second application published on
  1987. the market.
  1988. In contrast to the sensor logger, it only records the two relevant axes
  1989. of the accelerometer, and all data is kept in memory
  1990. \begin_inset Note Note
  1991. status open
  1992. \begin_layout Plain Layout
  1993. on the heap?
  1994. \end_layout
  1995. \end_inset
  1996. instead of being written to a file.
  1997. \end_layout
  1998. \begin_layout Standard
  1999. The activity recorder consists of a background service which records 128
  2000. samples of sensor data once every 30 seconds.
  2001. At all other times, the accelerometer is not accessed to conserve battery
  2002. power.
  2003. The samples are then classified using the same model as the Sensor Logger
  2004. application, and the resulting activity is appended to a list.
  2005. \begin_inset Note Note
  2006. status open
  2007. \begin_layout Plain Layout
  2008. Adjacent
  2009. \end_layout
  2010. \end_inset
  2011. samples which are classified as the same activity are merged together.
  2012. \end_layout
  2013. \begin_layout Standard
  2014. The user interface displays a list of activities, along with their start
  2015. time and duration in minutes or hours.
  2016. \end_layout
  2017. \begin_layout Standard
  2018. \begin_inset Newpage pagebreak
  2019. \end_inset
  2020. \end_layout
  2021. \begin_layout Part
  2022. Other sensors
  2023. \end_layout
  2024. \begin_layout Section
  2025. Bluetooth
  2026. \end_layout
  2027. \begin_layout Standard
  2028. Being able to identify who the user is accompanied by would be extremely
  2029. beneficial in a context-aware system.
  2030. One of the few ways to do this at present is to monitor the presence of
  2031. other user's mobile telephones by scanning for visible Bluetooth devices.
  2032. As discussed in
  2033. \begin_inset CommandInset ref
  2034. LatexCommand prettyref
  2035. reference "sec:Bluetooth"
  2036. \end_inset
  2037. , if sufficient devices are visible, users can be classified according to
  2038. whether they are familiar, strangers, or familiar strangers.
  2039. This provides a great deal of context to the user's activity.
  2040. \end_layout
  2041. \begin_layout Standard
  2042. Before this Bluetooth algorithm can be implemented, it needs to be determined
  2043. whether there are a sufficient number of discoverable devices to make it
  2044. worthwhile.
  2045. As with any radio transceiver, a lot of battery power is consumed when
  2046. Bluetooth is enabled and the device is actively scanning for others.
  2047. This means that if there are insufficient discoverable devices, the cost
  2048. of enabling and scanning for Bluetooth devices would outweigh the benefits.
  2049. As mentioned previously, there is no use in a very accurate context API
  2050. if the user's battery only lasts for a few hours.
  2051. \end_layout
  2052. \begin_layout Standard
  2053. To determine the utility of scanning for Bluetooth devices, a group of three
  2054. volunteers were asked to manually enable Bluetooth and scan for devices
  2055. using the built in functionality exposed in Android's settings screens.
  2056. It was planned to create an application which could scan and classify devices
  2057. appropriately but the Bluetooth API is only exposed to user-space applications
  2058. in version 5 of the Android SDK, which corresponds to the
  2059. \begin_inset Quotes eld
  2060. \end_inset
  2061. Eclair
  2062. \begin_inset Quotes erd
  2063. \end_inset
  2064. or 2.0 release; at the time of the experiment, only one of the three volunteers
  2065. was using a device for which Eclair was available.
  2066. This also means that adding Bluetooth support would have a further cost
  2067. of having to either limit access to pre-2.0 users, maintain two separate
  2068. versions of the application, or spend extra time developing a solution
  2069. which would attempt to use the Bluetooth API if and only if it is available.
  2070. \end_layout
  2071. \begin_layout Standard
  2072. \begin_inset Float table
  2073. wide false
  2074. sideways false
  2075. status collapsed
  2076. \begin_layout Plain Layout
  2077. \begin_inset Tabular
  2078. <lyxtabular version="3" rows="13" columns="7">
  2079. <features>
  2080. <column alignment="center" valignment="top" width="0">
  2081. <column alignment="center" valignment="top" width="0">
  2082. <column alignment="center" valignment="top" width="0">
  2083. <column alignment="center" valignment="top" width="0">
  2084. <column alignment="center" valignment="top" width="0">
  2085. <column alignment="center" valignment="top" width="0">
  2086. <column alignment="center" valignment="top" width="0">
  2087. <row>
  2088. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  2089. \begin_inset Text
  2090. \begin_layout Plain Layout
  2091. Environment
  2092. \end_layout
  2093. \end_inset
  2094. </cell>
  2095. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  2096. \begin_inset Text
  2097. \begin_layout Plain Layout
  2098. Devices
  2099. \end_layout
  2100. \end_inset
  2101. </cell>
  2102. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  2103. \begin_inset Text
  2104. \begin_layout Plain Layout
  2105. People
  2106. \end_layout
  2107. \end_inset
  2108. </cell>
  2109. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  2110. \begin_inset Text
  2111. \begin_layout Plain Layout
  2112. Proportion discoverable
  2113. \end_layout
  2114. \end_inset
  2115. </cell>
  2116. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  2117. \begin_inset Text
  2118. \begin_layout Plain Layout
  2119. Familiar
  2120. \end_layout
  2121. \end_inset
  2122. </cell>
  2123. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  2124. \begin_inset Text
  2125. \begin_layout Plain Layout
  2126. Familiar Strangers
  2127. \end_layout
  2128. \end_inset
  2129. </cell>
  2130. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
  2131. \begin_inset Text
  2132. \begin_layout Plain Layout
  2133. Strangers
  2134. \end_layout
  2135. \end_inset
  2136. </cell>
  2137. </row>
  2138. <row>
  2139. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2140. \begin_inset Text
  2141. \begin_layout Plain Layout
  2142. Car
  2143. \end_layout
  2144. \end_inset
  2145. </cell>
  2146. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2147. \begin_inset Text
  2148. \begin_layout Plain Layout
  2149. 0
  2150. \end_layout
  2151. \end_inset
  2152. </cell>
  2153. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2154. \begin_inset Text
  2155. \begin_layout Plain Layout
  2156. 1
  2157. \end_layout
  2158. \end_inset
  2159. </cell>
  2160. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2161. \begin_inset Text
  2162. \begin_layout Plain Layout
  2163. 0%
  2164. \end_layout
  2165. \end_inset
  2166. </cell>
  2167. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2168. \begin_inset Text
  2169. \begin_layout Plain Layout
  2170. 1
  2171. \end_layout
  2172. \end_inset
  2173. </cell>
  2174. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2175. \begin_inset Text
  2176. \begin_layout Plain Layout
  2177. 0
  2178. \end_layout
  2179. \end_inset
  2180. </cell>
  2181. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  2182. \begin_inset Text
  2183. \begin_layout Plain Layout
  2184. 0
  2185. \end_layout
  2186. \end_inset
  2187. </cell>
  2188. </row>
  2189. <row>
  2190. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2191. \begin_inset Text
  2192. \begin_layout Plain Layout
  2193. Bus
  2194. \end_layout
  2195. \end_inset
  2196. </cell>
  2197. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2198. \begin_inset Text
  2199. \begin_layout Plain Layout
  2200. 1
  2201. \end_layout
  2202. \end_inset
  2203. </cell>
  2204. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2205. \begin_inset Text
  2206. \begin_layout Plain Layout
  2207. 20
  2208. \end_layout
  2209. \end_inset
  2210. </cell>
  2211. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2212. \begin_inset Text
  2213. \begin_layout Plain Layout
  2214. 5%
  2215. \end_layout
  2216. \end_inset
  2217. </cell>
  2218. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2219. \begin_inset Text
  2220. \begin_layout Plain Layout
  2221. 0
  2222. \end_layout
  2223. \end_inset
  2224. </cell>
  2225. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2226. \begin_inset Text
  2227. \begin_layout Plain Layout
  2228. 0
  2229. \end_layout
  2230. \end_inset
  2231. </cell>
  2232. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  2233. \begin_inset Text
  2234. \begin_layout Plain Layout
  2235. 20
  2236. \end_layout
  2237. \end_inset
  2238. </cell>
  2239. </row>
  2240. <row>
  2241. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2242. \begin_inset Text
  2243. \begin_layout Plain Layout
  2244. Street
  2245. \end_layout
  2246. \end_inset
  2247. </cell>
  2248. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2249. \begin_inset Text
  2250. \begin_layout Plain Layout
  2251. 2
  2252. \end_layout
  2253. \end_inset
  2254. </cell>
  2255. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2256. \begin_inset Text
  2257. \begin_layout Plain Layout
  2258. 15
  2259. \end_layout
  2260. \end_inset
  2261. </cell>
  2262. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2263. \begin_inset Text
  2264. \begin_layout Plain Layout
  2265. 13%
  2266. \end_layout
  2267. \end_inset
  2268. </cell>
  2269. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2270. \begin_inset Text
  2271. \begin_layout Plain Layout
  2272. 0
  2273. \end_layout
  2274. \end_inset
  2275. </cell>
  2276. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2277. \begin_inset Text
  2278. \begin_layout Plain Layout
  2279. 0
  2280. \end_layout
  2281. \end_inset
  2282. </cell>
  2283. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  2284. \begin_inset Text
  2285. \begin_layout Plain Layout
  2286. 15
  2287. \end_layout
  2288. \end_inset
  2289. </cell>
  2290. </row>
  2291. <row>
  2292. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2293. \begin_inset Text
  2294. \begin_layout Plain Layout
  2295. Bar
  2296. \end_layout
  2297. \end_inset
  2298. </cell>
  2299. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2300. \begin_inset Text
  2301. \begin_layout Plain Layout
  2302. 2
  2303. \end_layout
  2304. \end_inset
  2305. </cell>
  2306. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2307. \begin_inset Text
  2308. \begin_layout Plain Layout
  2309. 12
  2310. \end_layout
  2311. \end_inset
  2312. </cell>
  2313. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2314. \begin_inset Text
  2315. \begin_layout Plain Layout
  2316. 17%
  2317. \end_layout
  2318. \end_inset
  2319. </cell>
  2320. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2321. \begin_inset Text
  2322. \begin_layout Plain Layout
  2323. 1
  2324. \end_layout
  2325. \end_inset
  2326. </cell>
  2327. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2328. \begin_inset Text
  2329. \begin_layout Plain Layout
  2330. 1
  2331. \end_layout
  2332. \end_inset
  2333. </cell>
  2334. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  2335. \begin_inset Text
  2336. \begin_layout Plain Layout
  2337. 10
  2338. \end_layout
  2339. \end_inset
  2340. </cell>
  2341. </row>
  2342. <row>
  2343. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2344. \begin_inset Text
  2345. \begin_layout Plain Layout
  2346. Office
  2347. \end_layout
  2348. \end_inset
  2349. </cell>
  2350. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2351. \begin_inset Text
  2352. \begin_layout Plain Layout
  2353. 0
  2354. \end_layout
  2355. \end_inset
  2356. </cell>
  2357. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2358. \begin_inset Text
  2359. \begin_layout Plain Layout
  2360. 6
  2361. \end_layout
  2362. \end_inset
  2363. </cell>
  2364. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2365. \begin_inset Text
  2366. \begin_layout Plain Layout
  2367. 0%
  2368. \end_layout
  2369. \end_inset
  2370. </cell>
  2371. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2372. \begin_inset Text
  2373. \begin_layout Plain Layout
  2374. 5
  2375. \end_layout
  2376. \end_inset
  2377. </cell>
  2378. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2379. \begin_inset Text
  2380. \begin_layout Plain Layout
  2381. 1
  2382. \end_layout
  2383. \end_inset
  2384. </cell>
  2385. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  2386. \begin_inset Text
  2387. \begin_layout Plain Layout
  2388. 0
  2389. \end_layout
  2390. \end_inset
  2391. </cell>
  2392. </row>
  2393. <row>
  2394. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2395. \begin_inset Text
  2396. \begin_layout Plain Layout
  2397. Office
  2398. \end_layout
  2399. \end_inset
  2400. </cell>
  2401. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2402. \begin_inset Text
  2403. \begin_layout Plain Layout
  2404. 0
  2405. \end_layout
  2406. \end_inset
  2407. </cell>
  2408. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2409. \begin_inset Text
  2410. \begin_layout Plain Layout
  2411. 4
  2412. \end_layout
  2413. \end_inset
  2414. </cell>
  2415. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2416. \begin_inset Text
  2417. \begin_layout Plain Layout
  2418. 0%
  2419. \end_layout
  2420. \end_inset
  2421. </cell>
  2422. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2423. \begin_inset Text
  2424. \begin_layout Plain Layout
  2425. 4
  2426. \end_layout
  2427. \end_inset
  2428. </cell>
  2429. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2430. \begin_inset Text
  2431. \begin_layout Plain Layout
  2432. 0
  2433. \end_layout
  2434. \end_inset
  2435. </cell>
  2436. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  2437. \begin_inset Text
  2438. \begin_layout Plain Layout
  2439. 0
  2440. \end_layout
  2441. \end_inset
  2442. </cell>
  2443. </row>
  2444. <row>
  2445. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2446. \begin_inset Text
  2447. \begin_layout Plain Layout
  2448. Home
  2449. \end_layout
  2450. \end_inset
  2451. </cell>
  2452. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2453. \begin_inset Text
  2454. \begin_layout Plain Layout
  2455. 0
  2456. \end_layout
  2457. \end_inset
  2458. </cell>
  2459. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2460. \begin_inset Text
  2461. \begin_layout Plain Layout
  2462. 1
  2463. \end_layout
  2464. \end_inset
  2465. </cell>
  2466. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2467. \begin_inset Text
  2468. \begin_layout Plain Layout
  2469. 0%
  2470. \end_layout
  2471. \end_inset
  2472. </cell>
  2473. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2474. \begin_inset Text
  2475. \begin_layout Plain Layout
  2476. 1
  2477. \end_layout
  2478. \end_inset
  2479. </cell>
  2480. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2481. \begin_inset Text
  2482. \begin_layout Plain Layout
  2483. 0
  2484. \end_layout
  2485. \end_inset
  2486. </cell>
  2487. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  2488. \begin_inset Text
  2489. \begin_layout Plain Layout
  2490. 0
  2491. \end_layout
  2492. \end_inset
  2493. </cell>
  2494. </row>
  2495. <row>
  2496. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2497. \begin_inset Text
  2498. \begin_layout Plain Layout
  2499. Home
  2500. \end_layout
  2501. \end_inset
  2502. </cell>
  2503. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2504. \begin_inset Text
  2505. \begin_layout Plain Layout
  2506. 0
  2507. \end_layout
  2508. \end_inset
  2509. </cell>
  2510. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2511. \begin_inset Text
  2512. \begin_layout Plain Layout
  2513. 2
  2514. \end_layout
  2515. \end_inset
  2516. </cell>
  2517. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2518. \begin_inset Text
  2519. \begin_layout Plain Layout
  2520. 0%
  2521. \end_layout
  2522. \end_inset
  2523. </cell>
  2524. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2525. \begin_inset Text
  2526. \begin_layout Plain Layout
  2527. 2
  2528. \end_layout
  2529. \end_inset
  2530. </cell>
  2531. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2532. \begin_inset Text
  2533. \begin_layout Plain Layout
  2534. 0
  2535. \end_layout
  2536. \end_inset
  2537. </cell>
  2538. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  2539. \begin_inset Text
  2540. \begin_layout Plain Layout
  2541. 0
  2542. \end_layout
  2543. \end_inset
  2544. </cell>
  2545. </row>
  2546. <row>
  2547. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2548. \begin_inset Text
  2549. \begin_layout Plain Layout
  2550. Lecture
  2551. \end_layout
  2552. \end_inset
  2553. </cell>
  2554. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2555. \begin_inset Text
  2556. \begin_layout Plain Layout
  2557. 5
  2558. \end_layout
  2559. \end_inset
  2560. </cell>
  2561. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2562. \begin_inset Text
  2563. \begin_layout Plain Layout
  2564. 80
  2565. \end_layout
  2566. \end_inset
  2567. </cell>
  2568. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2569. \begin_inset Text
  2570. \begin_layout Plain Layout
  2571. 6%
  2572. \end_layout
  2573. \end_inset
  2574. </cell>
  2575. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2576. \begin_inset Text
  2577. \begin_layout Plain Layout
  2578. 10
  2579. \end_layout
  2580. \end_inset
  2581. </cell>
  2582. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2583. \begin_inset Text
  2584. \begin_layout Plain Layout
  2585. 70
  2586. \end_layout
  2587. \end_inset
  2588. </cell>
  2589. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  2590. \begin_inset Text
  2591. \begin_layout Plain Layout
  2592. 0
  2593. \end_layout
  2594. \end_inset
  2595. </cell>
  2596. </row>
  2597. <row>
  2598. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2599. \begin_inset Text
  2600. \begin_layout Plain Layout
  2601. Meeting
  2602. \end_layout
  2603. \end_inset
  2604. </cell>
  2605. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2606. \begin_inset Text
  2607. \begin_layout Plain Layout
  2608. 1
  2609. \end_layout
  2610. \end_inset
  2611. </cell>
  2612. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2613. \begin_inset Text
  2614. \begin_layout Plain Layout
  2615. 6
  2616. \end_layout
  2617. \end_inset
  2618. </cell>
  2619. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2620. \begin_inset Text
  2621. \begin_layout Plain Layout
  2622. 17%
  2623. \end_layout
  2624. \end_inset
  2625. </cell>
  2626. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2627. \begin_inset Text
  2628. \begin_layout Plain Layout
  2629. 6
  2630. \end_layout
  2631. \end_inset
  2632. </cell>
  2633. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2634. \begin_inset Text
  2635. \begin_layout Plain Layout
  2636. 0
  2637. \end_layout
  2638. \end_inset
  2639. </cell>
  2640. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  2641. \begin_inset Text
  2642. \begin_layout Plain Layout
  2643. 0
  2644. \end_layout
  2645. \end_inset
  2646. </cell>
  2647. </row>
  2648. <row>
  2649. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2650. \begin_inset Text
  2651. \begin_layout Plain Layout
  2652. Restaurant
  2653. \end_layout
  2654. \end_inset
  2655. </cell>
  2656. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2657. \begin_inset Text
  2658. \begin_layout Plain Layout
  2659. 2
  2660. \end_layout
  2661. \end_inset
  2662. </cell>
  2663. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2664. \begin_inset Text
  2665. \begin_layout Plain Layout
  2666. 22
  2667. \end_layout
  2668. \end_inset
  2669. </cell>
  2670. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2671. \begin_inset Text
  2672. \begin_layout Plain Layout
  2673. 9%
  2674. \end_layout
  2675. \end_inset
  2676. </cell>
  2677. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2678. \begin_inset Text
  2679. \begin_layout Plain Layout
  2680. 1
  2681. \end_layout
  2682. \end_inset
  2683. </cell>
  2684. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2685. \begin_inset Text
  2686. \begin_layout Plain Layout
  2687. 2
  2688. \end_layout
  2689. \end_inset
  2690. </cell>
  2691. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  2692. \begin_inset Text
  2693. \begin_layout Plain Layout
  2694. 19
  2695. \end_layout
  2696. \end_inset
  2697. </cell>
  2698. </row>
  2699. <row>
  2700. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  2701. \begin_inset Text
  2702. \begin_layout Plain Layout
  2703. Supermarket
  2704. \end_layout
  2705. \end_inset
  2706. </cell>
  2707. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  2708. \begin_inset Text
  2709. \begin_layout Plain Layout
  2710. 2
  2711. \end_layout
  2712. \end_inset
  2713. </cell>
  2714. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  2715. \begin_inset Text
  2716. \begin_layout Plain Layout
  2717. 1
  2718. \end_layout
  2719. \end_inset
  2720. </cell>
  2721. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  2722. \begin_inset Text
  2723. \begin_layout Plain Layout
  2724. 200%
  2725. \end_layout
  2726. \end_inset
  2727. </cell>
  2728. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  2729. \begin_inset Text
  2730. \begin_layout Plain Layout
  2731. 0
  2732. \end_layout
  2733. \end_inset
  2734. </cell>
  2735. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  2736. \begin_inset Text
  2737. \begin_layout Plain Layout
  2738. 0
  2739. \end_layout
  2740. \end_inset
  2741. </cell>
  2742. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
  2743. \begin_inset Text
  2744. \begin_layout Plain Layout
  2745. 1
  2746. \end_layout
  2747. \end_inset
  2748. </cell>
  2749. </row>
  2750. </lyxtabular>
  2751. \end_inset
  2752. \end_layout
  2753. \begin_layout Plain Layout
  2754. \begin_inset Caption
  2755. \begin_layout Plain Layout
  2756. Bluetooth scanning results
  2757. \begin_inset CommandInset label
  2758. LatexCommand label
  2759. name "tab:Bluetooth-scanning-results"
  2760. \end_inset
  2761. \end_layout
  2762. \end_inset
  2763. \end_layout
  2764. \begin_layout Plain Layout
  2765. \end_layout
  2766. \end_inset
  2767. For the experiment, the users were asked to record the number of visible
  2768. Bluetooth devices, their environment and the estimated number of people
  2769. around them.
  2770. They were also asked to classify the people into rough groups of
  2771. \begin_inset Quotes eld
  2772. \end_inset
  2773. familiar
  2774. \begin_inset Quotes erd
  2775. \end_inset
  2776. (such as co-workers, family and friends),
  2777. \begin_inset Quotes eld
  2778. \end_inset
  2779. familiar strangers
  2780. \begin_inset Quotes erd
  2781. \end_inset
  2782. (people they see regularly but are not particularly familiar with), or
  2783. \begin_inset Quotes eld
  2784. \end_inset
  2785. strangers
  2786. \begin_inset Quotes erd
  2787. \end_inset
  2788. .
  2789. The results are itemised in
  2790. \begin_inset CommandInset ref
  2791. LatexCommand prettyref
  2792. reference "tab:Bluetooth-scanning-results"
  2793. \end_inset
  2794. .
  2795. \end_layout
  2796. \begin_layout Standard
  2797. The results show that in general there is a very poor proportion of devices
  2798. that are visible.
  2799. The results also suggest that Bluetooth would be a poor method for finding
  2800. \begin_inset Quotes eld
  2801. \end_inset
  2802. familiar
  2803. \begin_inset Quotes erd
  2804. \end_inset
  2805. people, as the situations with very few strangers generally had almost
  2806. no discoverable devices.
  2807. There are several possible reasons for the low proportion of devices: modern
  2808. phones tend to default to having Bluetooth switched off for reasons of
  2809. battery life and user privacy, and even when enabled the devices tend to
  2810. default to being non-discoverable.
  2811. In fact, Android devices will only allow the user to make the device discoverab
  2812. le for 30 seconds at a time - the setting is automatically reverted after
  2813. this period.
  2814. Another consideration is that the three volunteers are all involved in
  2815. extremely technology-focused settings: one was a student studying a computing
  2816. course, one a software engineer, and one a systems administrator.
  2817. Whether or not these technology-rich settings would artificially inflate
  2818. results (more technology means more discoverable devices) or deflate them
  2819. (more tech-savvy users mean fewer needlessly enabling Bluetooth discovery)
  2820. is unclear.
  2821. \end_layout
  2822. \begin_layout Section
  2823. Microphone
  2824. \end_layout
  2825. \begin_layout Section
  2826. Camera
  2827. \end_layout
  2828. \begin_layout Standard
  2829. \begin_inset Newpage pagebreak
  2830. \end_inset
  2831. \end_layout
  2832. \begin_layout Part
  2833. Places
  2834. \end_layout
  2835. \begin_layout Section
  2836. Use of GPS/GSM blackspots
  2837. \end_layout
  2838. \begin_layout Standard
  2839. As discussed in
  2840. \begin_inset CommandInset ref
  2841. LatexCommand prettyref
  2842. reference "sec:Location-analysis"
  2843. \end_inset
  2844. a lot of existing research into identifying interesting places relied on
  2845. the fact that with hardware that is now 5-10 years old, you could not reliably
  2846. get a GPS signal indoors.
  2847. Thus whenever the user remained somewhere without a GPS signal it was likely
  2848. that they were spending time indoors, and therefore their current location
  2849. would be noteworthy.
  2850. \end_layout
  2851. \begin_layout Standard
  2852. Unfortunately, modern GPS hardware is much more sensitive and can quite
  2853. easily get a signal indoors in most circumstances.
  2854. One possible solution to this was to monitor the strength of either the
  2855. GPS lock or the GSM signal, and attempt to determine whether or not a differenc
  2856. e was noticable.
  2857. An experiment was therefore conducted to record the GPS and GSM status
  2858. for multiple indoor and outdoor locations.
  2859. \end_layout
  2860. \begin_layout Standard
  2861. \begin_inset Float table
  2862. placement bh
  2863. wide false
  2864. sideways false
  2865. status collapsed
  2866. \begin_layout Plain Layout
  2867. \begin_inset Tabular
  2868. <lyxtabular version="3" rows="9" columns="4">
  2869. <features>
  2870. <column alignment="center" valignment="top" width="0">
  2871. <column alignment="center" valignment="top" width="0">
  2872. <column alignment="center" valignment="top" width="0">
  2873. <column alignment="center" valignment="top" width="0">
  2874. <row>
  2875. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  2876. \begin_inset Text
  2877. \begin_layout Plain Layout
  2878. Location
  2879. \end_layout
  2880. \end_inset
  2881. </cell>
  2882. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  2883. \begin_inset Text
  2884. \begin_layout Plain Layout
  2885. GSM strength
  2886. \end_layout
  2887. \end_inset
  2888. </cell>
  2889. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  2890. \begin_inset Text
  2891. \begin_layout Plain Layout
  2892. GPS satellites
  2893. \end_layout
  2894. \end_inset
  2895. </cell>
  2896. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
  2897. \begin_inset Text
  2898. \begin_layout Plain Layout
  2899. GPS time to fix
  2900. \end_layout
  2901. \end_inset
  2902. </cell>
  2903. </row>
  2904. <row>
  2905. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2906. \begin_inset Text
  2907. \begin_layout Plain Layout
  2908. Indoors
  2909. \end_layout
  2910. \end_inset
  2911. </cell>
  2912. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2913. \begin_inset Text
  2914. \begin_layout Plain Layout
  2915. -101 dBm
  2916. \end_layout
  2917. \end_inset
  2918. </cell>
  2919. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2920. \begin_inset Text
  2921. \begin_layout Plain Layout
  2922. 10
  2923. \end_layout
  2924. \end_inset
  2925. </cell>
  2926. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  2927. \begin_inset Text
  2928. \begin_layout Plain Layout
  2929. <1 sec
  2930. \end_layout
  2931. \end_inset
  2932. </cell>
  2933. </row>
  2934. <row>
  2935. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2936. \begin_inset Text
  2937. \begin_layout Plain Layout
  2938. Outdoors
  2939. \end_layout
  2940. \end_inset
  2941. </cell>
  2942. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2943. \begin_inset Text
  2944. \begin_layout Plain Layout
  2945. -101 dBm
  2946. \end_layout
  2947. \end_inset
  2948. </cell>
  2949. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2950. \begin_inset Text
  2951. \begin_layout Plain Layout
  2952. 8
  2953. \end_layout
  2954. \end_inset
  2955. </cell>
  2956. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  2957. \begin_inset Text
  2958. \begin_layout Plain Layout
  2959. <1 sec
  2960. \end_layout
  2961. \end_inset
  2962. </cell>
  2963. </row>
  2964. <row>
  2965. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2966. \begin_inset Text
  2967. \begin_layout Plain Layout
  2968. Indoors
  2969. \end_layout
  2970. \end_inset
  2971. </cell>
  2972. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2973. \begin_inset Text
  2974. \begin_layout Plain Layout
  2975. -71 dBm
  2976. \end_layout
  2977. \end_inset
  2978. </cell>
  2979. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2980. \begin_inset Text
  2981. \begin_layout Plain Layout
  2982. 6
  2983. \end_layout
  2984. \end_inset
  2985. </cell>
  2986. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  2987. \begin_inset Text
  2988. \begin_layout Plain Layout
  2989. 2 sec
  2990. \end_layout
  2991. \end_inset
  2992. </cell>
  2993. </row>
  2994. <row>
  2995. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  2996. \begin_inset Text
  2997. \begin_layout Plain Layout
  2998. Outdoors
  2999. \end_layout
  3000. \end_inset
  3001. </cell>
  3002. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  3003. \begin_inset Text
  3004. \begin_layout Plain Layout
  3005. -67 dBm
  3006. \end_layout
  3007. \end_inset
  3008. </cell>
  3009. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  3010. \begin_inset Text
  3011. \begin_layout Plain Layout
  3012. 7
  3013. \end_layout
  3014. \end_inset
  3015. </cell>
  3016. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  3017. \begin_inset Text
  3018. \begin_layout Plain Layout
  3019. 2 sec
  3020. \end_layout
  3021. \end_inset
  3022. </cell>
  3023. </row>
  3024. <row>
  3025. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  3026. \begin_inset Text
  3027. \begin_layout Plain Layout
  3028. Indoors
  3029. \end_layout
  3030. \end_inset
  3031. </cell>
  3032. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  3033. \begin_inset Text
  3034. \begin_layout Plain Layout
  3035. -67 dBm
  3036. \end_layout
  3037. \end_inset
  3038. </cell>
  3039. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  3040. \begin_inset Text
  3041. \begin_layout Plain Layout
  3042. 11
  3043. \end_layout
  3044. \end_inset
  3045. </cell>
  3046. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  3047. \begin_inset Text
  3048. \begin_layout Plain Layout
  3049. <1 sec
  3050. \end_layout
  3051. \end_inset
  3052. </cell>
  3053. </row>
  3054. <row>
  3055. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  3056. \begin_inset Text
  3057. \begin_layout Plain Layout
  3058. Outdoors
  3059. \end_layout
  3060. \end_inset
  3061. </cell>
  3062. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  3063. \begin_inset Text
  3064. \begin_layout Plain Layout
  3065. -67 dBm
  3066. \end_layout
  3067. \end_inset
  3068. </cell>
  3069. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  3070. \begin_inset Text
  3071. \begin_layout Plain Layout
  3072. 10
  3073. \end_layout
  3074. \end_inset
  3075. </cell>
  3076. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  3077. \begin_inset Text
  3078. \begin_layout Plain Layout
  3079. 3 secs
  3080. \end_layout
  3081. \end_inset
  3082. </cell>
  3083. </row>
  3084. <row>
  3085. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  3086. \begin_inset Text
  3087. \begin_layout Plain Layout
  3088. Indoors
  3089. \end_layout
  3090. \end_inset
  3091. </cell>
  3092. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  3093. \begin_inset Text
  3094. \begin_layout Plain Layout
  3095. -67 dBm
  3096. \end_layout
  3097. \end_inset
  3098. </cell>
  3099. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  3100. \begin_inset Text
  3101. \begin_layout Plain Layout
  3102. 10
  3103. \end_layout
  3104. \end_inset
  3105. </cell>
  3106. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  3107. \begin_inset Text
  3108. \begin_layout Plain Layout
  3109. <1 sec
  3110. \end_layout
  3111. \end_inset
  3112. </cell>
  3113. </row>
  3114. <row>
  3115. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  3116. \begin_inset Text
  3117. \begin_layout Plain Layout
  3118. Outdoors
  3119. \end_layout
  3120. \end_inset
  3121. </cell>
  3122. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  3123. \begin_inset Text
  3124. \begin_layout Plain Layout
  3125. -43 dBm
  3126. \end_layout
  3127. \end_inset
  3128. </cell>
  3129. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  3130. \begin_inset Text
  3131. \begin_layout Plain Layout
  3132. 10
  3133. \end_layout
  3134. \end_inset
  3135. </cell>
  3136. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
  3137. \begin_inset Text
  3138. \begin_layout Plain Layout
  3139. <1 sec
  3140. \end_layout
  3141. \end_inset
  3142. </cell>
  3143. </row>
  3144. </lyxtabular>
  3145. \end_inset
  3146. \end_layout
  3147. \begin_layout Plain Layout
  3148. \begin_inset Caption
  3149. \begin_layout Plain Layout
  3150. GPS and GSM strengths
  3151. \begin_inset CommandInset label
  3152. LatexCommand label
  3153. name "tab:GPS-and-GSM"
  3154. \end_inset
  3155. \end_layout
  3156. \end_inset
  3157. \end_layout
  3158. \begin_layout Plain Layout
  3159. \end_layout
  3160. \end_inset
  3161. At four separate indoor locations, the third-party
  3162. \noun on
  3163. GPS Status
  3164. \noun default
  3165. application was used to observe the number of satellites the device was
  3166. receiving a signal from, and the amount of time it took to acquire a fix
  3167. on all of those satellites.
  3168. The GSM signal strength as reported by the device's built in debugging
  3169. tools was also recorded.
  3170. The device was then moved outdoors to the nearest appropriate open area
  3171. (footpath, outdoor seating area, etc), and the process was repeated.
  3172. The results are summarised in
  3173. \begin_inset CommandInset ref
  3174. LatexCommand prettyref
  3175. reference "tab:GPS-and-GSM"
  3176. \end_inset
  3177. .
  3178. \end_layout
  3179. \begin_layout Standard
  3180. While the indoor GSM strength is lower than the corresponding outdoor strength
  3181. in two out of the four samples, it is still significantly stronger than
  3182. the weakest recorded indoor or outdoor signal.
  3183. In the other two cases the signal strength was the same for both indoors
  3184. and outdoors.
  3185. The GSM signal strength therefore seems to be a poor indicator of whether
  3186. or not the user is indoors - it would have to be continually monitored
  3187. to detect a drop in signal strength, and the (limited) experimental data
  3188. shows that this would have a 50% false negative rate.
  3189. The experiment does not allow us to reason about false positives, but it
  3190. is easy to imagine that many circumstances would give rise to drops in
  3191. signal strength - the most obvious being moving away from the cell tower.
  3192. \end_layout
  3193. \begin_layout Standard
  3194. The GPS results show even less correlation between indoor and outdoor readings.
  3195. In two out of the four locations, the indoor test identified more satellites
  3196. than the outdoor test - the opposite to what would be expected.
  3197. This could be because the indoor locations were typically above ground
  3198. level - the extra altitude may be more beneficial to obtaining a lock than
  3199. the obstruction of the building itself.
  3200. It seems more likely, however, that the numbers are not correlated in any
  3201. way, and a larger experiment would reveal it to be random variance.
  3202. Similarly, the time taken to lock the satellites is typically very small,
  3203. but in a few situations there is a noticable delay.
  3204. The location which resulted in a three second lock time was repeated after
  3205. a thirty second pause and obtained a sub-second lock time, but the original
  3206. data was included in the results.
  3207. \end_layout
  3208. \begin_layout Standard
  3209. The experiment, although extremely limited in size, shows that it is unlikely
  3210. that GSM strength or GPS metadata would be useful in determining interesting
  3211. places.
  3212. Alternative methods therefore had to be considered.
  3213. \end_layout
  3214. \begin_layout Section
  3215. Detecting places by time spent
  3216. \end_layout
  3217. \begin_layout Standard
  3218. Without information about whether or not the user is indoors, the next best
  3219. method to detect interesting places is by monitoring the amount of time
  3220. the user spends there.
  3221. It stands to reason that a location where the user is only present fleetingly
  3222. as they pass through is less important than somewhere they spend half a
  3223. day.
  3224. \end_layout
  3225. \begin_layout Standard
  3226. The Android operating system provides two methods of determining the user's
  3227. location -
  3228. \begin_inset Quotes eld
  3229. \end_inset
  3230. coarse
  3231. \begin_inset Quotes erd
  3232. \end_inset
  3233. , which uses a cell tower and WiFi access point database, and
  3234. \begin_inset Quotes eld
  3235. \end_inset
  3236. fine
  3237. \begin_inset Quotes erd
  3238. \end_inset
  3239. which uses the device's GPS chipset.
  3240. While
  3241. \begin_inset Quotes eld
  3242. \end_inset
  3243. coarse
  3244. \begin_inset Quotes erd
  3245. \end_inset
  3246. is less accurate than using GPS, it also uses significantly less battery
  3247. power.
  3248. Brief testing revealed that while GPS regularly obtained accuracies of
  3249. below five metres,
  3250. \begin_inset Quotes eld
  3251. \end_inset
  3252. network
  3253. \begin_inset Quotes erd
  3254. \end_inset
  3255. location (using cell tower IDs and a built-in database) obtained accuracies
  3256. in the region of 500 metres.
  3257. Network location augmented with the built-in database of WiFi access point
  3258. locations obtained accuraries in the same region as GPS.
  3259. However, WiFi augmentation only works when the user has elected to enable
  3260. WiFi on their device, and this puts a large drain on the battery.
  3261. \end_layout
  3262. \begin_layout Standard
  3263. As the most important places a user typically visits will be much greater
  3264. than 500 metres apart,
  3265. \begin_inset Quotes eld
  3266. \end_inset
  3267. coarse
  3268. \begin_inset Quotes erd
  3269. \end_inset
  3270. location will was used for all location-related tasks in the project.
  3271. Because of this large inaccuracy, places could not be represented by a
  3272. single point but must have a radius to compensate for the inaccuracy.
  3273. Based on earlier experimentation, this radius was fixed at 500 metres.
  3274. \end_layout
  3275. \begin_layout Standard
  3276. A new
  3277. \begin_inset Quotes eld
  3278. \end_inset
  3279. place
  3280. \begin_inset Quotes erd
  3281. \end_inset
  3282. is identified when the user remains within 500 metres of a point for at
  3283. least 3 minutes.
  3284. This figure is, hopefully, long enough to eliminate places where the user
  3285. is temporarily held up (such as traffic lights), but short enough to include
  3286. places the user visits but doesn't remain for a long length of time (such
  3287. as supermarkets).
  3288. When implementing this algorithm, care was taken to ensure that the length
  3289. of time was defined as a constant and so could easily be changed if experimenta
  3290. l data showed that it was either too long or too short.
  3291. \end_layout
  3292. \begin_layout Standard
  3293. \begin_inset Newpage pagebreak
  3294. \end_inset
  3295. \end_layout
  3296. \begin_layout Part
  3297. The
  3298. \noun on
  3299. Context Analyser
  3300. \noun default
  3301. and applications
  3302. \end_layout
  3303. \begin_layout Standard
  3304. \begin_inset Newpage pagebreak
  3305. \end_inset
  3306. \end_layout
  3307. \begin_layout Part
  3308. Evaluation
  3309. \end_layout
  3310. \begin_layout Section
  3311. Reports
  3312. \end_layout
  3313. \begin_layout Standard
  3314. The results of the experimentation described in section
  3315. \begin_inset CommandInset ref
  3316. LatexCommand ref
  3317. reference "sec:Experimentation"
  3318. \end_inset
  3319. should be written up as a report.
  3320. The reports must include the data collected in each of the experiments,
  3321. the conclusions drawn from those, and the impact of the results of the
  3322. experiment on the project deliverables.
  3323. \end_layout
  3324. \begin_layout Section
  3325. Deliverables
  3326. \end_layout
  3327. \begin_layout Standard
  3328. On successful completion of the project, there should be three deliverable
  3329. applications as specified in section
  3330. \begin_inset CommandInset ref
  3331. LatexCommand ref
  3332. reference "sec:Deliverables"
  3333. \end_inset
  3334. .
  3335. These can be tested and evaluated in a variety of manners:
  3336. \end_layout
  3337. \begin_layout Subsection
  3338. Unit tests
  3339. \end_layout
  3340. \begin_layout Standard
  3341. Throughout the development of the project, unit tests should be created
  3342. to test key functionality of all applications.
  3343. It is expected that at the completion of the project, all unit tests should
  3344. pass successfully, and they will have a code coverage of 80% or above.
  3345. \end_layout
  3346. \begin_layout Subsection
  3347. System tests
  3348. \end_layout
  3349. \begin_layout Standard
  3350. The classifier application should also have a suite of system tests.
  3351. These should consist of a set of fake or pre-recorded inputs which are
  3352. fed into the application in place of raw sensor data.
  3353. The output of the classifier (via the API) can then be compared to expected
  3354. output for the data.
  3355. \end_layout
  3356. \begin_layout Subsection
  3357. User acceptance testing
  3358. \end_layout
  3359. \begin_layout Standard
  3360. The Locale addon and context-aware home screen should be subject to user
  3361. acceptance testing for evaluation.
  3362. This should take the form of providing the applications to multiple end
  3363. users, allowing them to use them for a period of time (providing instructions
  3364. for certain tasks to complete).
  3365. The users should then be presented with a questionnaire which they can
  3366. use to evaluate the functionality, utility and design of the applications.
  3367. \end_layout
  3368. \begin_layout Subsubsection
  3369. Android market
  3370. \end_layout
  3371. \begin_layout Standard
  3372. In addition to providing the applications to a closed set of users, the
  3373. applications should be published to the Android market.
  3374. This will allow any owner of a compatible Android device to download and
  3375. use the applications.
  3376. The market also allows users to rate the application and leave comments,
  3377. which will be an extremely useful method of evaluating the success of the
  3378. applications.
  3379. \end_layout
  3380. \begin_layout Standard
  3381. As part of this, the classifier application/framework will be published,
  3382. and should include instructions for developers detailing how they can make
  3383. their applications context-aware.
  3384. The interest expressed and number of applications which use it (if any)
  3385. will be an indicator of the effectiveness of the API and its documentation.
  3386. \end_layout
  3387. \begin_layout Subsection
  3388. Classification scope
  3389. \end_layout
  3390. \begin_layout Standard
  3391. The classifier should be able to classify the following activities:
  3392. \end_layout
  3393. \begin_layout Itemize
  3394. walking
  3395. \end_layout
  3396. \begin_layout Itemize
  3397. running
  3398. \end_layout
  3399. \begin_layout Itemize
  3400. standing
  3401. \end_layout
  3402. \begin_layout Itemize
  3403. sitting
  3404. \end_layout
  3405. \begin_layout Itemize
  3406. traveling in a vehicle
  3407. \end_layout
  3408. \begin_layout Standard
  3409. These should be evaluated by means of a leave-one-out cross-validation test,
  3410. with data collected from one or more users and annotated by hand.
  3411. It is expected that the classifier should correctly classify all activities
  3412. with an accuracy of at least 70%, within 30 seconds of the activity being
  3413. started.
  3414. \end_layout
  3415. \begin_layout Subsection
  3416. Resource usage
  3417. \end_layout
  3418. \begin_layout Standard
  3419. Finally, the applications should be evaluated based on their resource usage.
  3420. One of the main concerns will be battery usage (caused both by the application
  3421. using processor time, and activating sensors), but attention must also
  3422. be paid to memory consumption (especially after extended use).
  3423. The goal should be to ensure that the resource usage of the applications
  3424. in this project do not adversely impact the functionality of the device;
  3425. that is, battery life should not be reduced so significantly that it requires
  3426. users to change their normal charging behaviour, and memory usage should
  3427. not be so high as to cause other applications to become sluggish or be
  3428. closed by the operating system.
  3429. \end_layout
  3430. \begin_layout Standard
  3431. \begin_inset Newpage pagebreak
  3432. \end_inset
  3433. \end_layout
  3434. \begin_layout Part
  3435. Conclusion
  3436. \end_layout
  3437. \begin_layout Standard
  3438. \begin_inset Newpage pagebreak
  3439. \end_inset
  3440. \end_layout
  3441. \begin_layout Part
  3442. Appendices
  3443. \end_layout
  3444. \begin_layout Section
  3445. \start_of_appendix
  3446. User Guide - Context Analyser
  3447. \end_layout
  3448. \begin_layout Standard
  3449. Welcome to the
  3450. \noun on
  3451. Context Analyser
  3452. \noun default
  3453. .
  3454. This application analyses your
  3455. \emph on
  3456. context
  3457. \emph default
  3458. as you carry your phone around with you performing day-to-day activities.
  3459. Other applications can query your context information and enhance their
  3460. behaviour so that they're more relevant to what you're doing.
  3461. \end_layout
  3462. \begin_layout Standard
  3463. The context analyser currently provides the following context information:
  3464. \end_layout
  3465. \begin_layout Itemize
  3466. Your activity
  3467. \end_layout
  3468. \begin_layout Itemize
  3469. Your location
  3470. \end_layout
  3471. \begin_layout Itemize
  3472. Your predicted destination, if you're not at a known location
  3473. \end_layout
  3474. \begin_layout Standard
  3475. It does this by gathering data from your phone's accelerometers and location
  3476. provider.
  3477. Data is recorded for a few seconds once a minute, to preserve your battery
  3478. life.
  3479. \end_layout
  3480. \begin_layout Standard
  3481. For your 'activity', the context analyser tries to detect whether you are
  3482. walking, sitting, standing, or in a vehicle.
  3483. It can also expand on these to detect the difference between a car and
  3484. a bus, and walking normally and walking up or down stairs.
  3485. Future updates may add more activities.
  3486. \end_layout
  3487. \begin_layout Standard
  3488. For your location and destination, the context analyser deals in 'places'.
  3489. These are locations up to 500m wide where you have spent several minutes
  3490. not moving.
  3491. A place could correspond to your home, office, favourite coffee shop or
  3492. a bus stop you frequently wait at.
  3493. When you move between places, the context analyser notes which activities
  3494. it thought you were performing, and stores these as a 'journey' which links
  3495. the two places.
  3496. When you next set off from one of these, it can compare your activities
  3497. and see if it can guess where you're heading.
  3498. \end_layout
  3499. \begin_layout Standard
  3500. There is very little you can do with the context analyser on its own.
  3501. It's built as a tool for other applications to hook into.
  3502. \begin_inset Float figure
  3503. wide false
  3504. sideways false
  3505. status collapsed
  3506. \begin_layout Plain Layout
  3507. \begin_inset Graphics
  3508. filename contextanalyser-featured.png
  3509. \end_inset
  3510. \end_layout
  3511. \begin_layout Plain Layout
  3512. \begin_inset Caption
  3513. \begin_layout Plain Layout
  3514. Featured applications
  3515. \begin_inset CommandInset label
  3516. LatexCommand label
  3517. name "fig:Featured-applications"
  3518. \end_inset
  3519. \end_layout
  3520. \end_inset
  3521. \end_layout
  3522. \end_inset
  3523. You can see some of these featured applications listed when you open the
  3524. context analyser (see
  3525. \begin_inset CommandInset ref
  3526. LatexCommand prettyref
  3527. reference "fig:Featured-applications"
  3528. \end_inset
  3529. ) .
  3530. Simply click on one of them and the Android market will open for you to
  3531. view or install your chosen app.
  3532. \end_layout
  3533. \begin_layout Standard
  3534. \begin_inset Float figure
  3535. wide false
  3536. sideways false
  3537. status collapsed
  3538. \begin_layout Plain Layout
  3539. \begin_inset Graphics
  3540. filename contextanalyser-menu.png
  3541. \end_inset
  3542. \begin_inset Caption
  3543. \begin_layout Plain Layout
  3544. Disable service button
  3545. \begin_inset CommandInset label
  3546. LatexCommand label
  3547. name "fig:Disable-service-button"
  3548. \end_inset
  3549. \end_layout
  3550. \end_inset
  3551. \end_layout
  3552. \end_inset
  3553. The context analyser will run a background service as soon as you open the
  3554. application, or whenever another application requests data from it.
  3555. If you wish to disable the background service (which will stop the context
  3556. analyser from detecting places or determining your activity), press the
  3557. \noun on
  3558. menu
  3559. \noun default
  3560. button and select the
  3561. \noun on
  3562. Disable service
  3563. \noun default
  3564. option (see
  3565. \begin_inset CommandInset ref
  3566. LatexCommand prettyref
  3567. reference "fig:Disable-service-button"
  3568. \end_inset
  3569. ).
  3570. The background service will not run until you repeat the procedure and
  3571. select
  3572. \noun on
  3573. Enable service
  3574. \noun default
  3575. .
  3576. \begin_inset Newpage pagebreak
  3577. \end_inset
  3578. \end_layout
  3579. \begin_layout Section
  3580. User Guide - Places
  3581. \end_layout
  3582. \begin_layout Standard
  3583. The
  3584. \noun on
  3585. places
  3586. \noun default
  3587. application shows you all of the places detected by the
  3588. \noun on
  3589. Context Analyser
  3590. \noun default
  3591. , and the journeys you make in between them.
  3592. The
  3593. \noun on
  3594. Context Analyser
  3595. \noun default
  3596. is a tool which tries to determine your current activity and location,
  3597. and your destination if you're on the move.
  3598. If you don't have the
  3599. \noun on
  3600. Context Analyser
  3601. \noun default
  3602. installed, you'll be prompted to install it from the market.
  3603. \end_layout
  3604. \begin_layout Standard
  3605. \begin_inset Float figure
  3606. wide false
  3607. sideways false
  3608. status collapsed
  3609. \begin_layout Plain Layout
  3610. \begin_inset Graphics
  3611. filename places-normal.png
  3612. \end_inset
  3613. \end_layout
  3614. \begin_layout Plain Layout
  3615. \begin_inset Caption
  3616. \begin_layout Plain Layout
  3617. Places application
  3618. \begin_inset CommandInset label
  3619. LatexCommand label
  3620. name "fig:Places-application"
  3621. \end_inset
  3622. \end_layout
  3623. \end_inset
  3624. \end_layout
  3625. \begin_layout Plain Layout
  3626. \end_layout
  3627. \end_inset
  3628. The places application displays a map and marks each detected place with
  3629. an orange star.
  3630. Places you've travelled between are connected with a red line - the thicker
  3631. the line, the more frequently you make that journey.
  3632. In
  3633. \begin_inset CommandInset ref
  3634. LatexCommand prettyref
  3635. reference "fig:Places-application"
  3636. \end_inset
  3637. , you can see two places with a very frequently made journey between them.
  3638. \end_layout
  3639. \begin_layout Standard
  3640. You can pan the map by dragging it around with your finger, or by moving
  3641. your phone's trackball (if it has one).
  3642. To zoom in and out, tap the screen and wait two seconds and the zoom controls
  3643. will appear at the bottom of the map.
  3644. Simply tap either button to zoom in or out.
  3645. \end_layout
  3646. \begin_layout Standard
  3647. \begin_inset Float figure
  3648. wide false
  3649. sideways false
  3650. status collapsed
  3651. \begin_layout Plain Layout
  3652. \begin_inset Graphics
  3653. filename places-toast.png
  3654. \end_inset
  3655. \end_layout
  3656. \begin_layout Plain Layout
  3657. \begin_inset Caption
  3658. \begin_layout Plain Layout
  3659. Place details
  3660. \begin_inset CommandInset label
  3661. LatexCommand label
  3662. name "fig:Place-details"
  3663. \end_inset
  3664. \end_layout
  3665. \end_inset
  3666. \end_layout
  3667. \begin_layout Plain Layout
  3668. \end_layout
  3669. \end_inset
  3670. To see more information about a place, simply tap on its star.
  3671. A small
  3672. \emph on
  3673. toast
  3674. \emph default
  3675. will appear giving you the name of the place, the number of visits, and
  3676. the date and time of your last visit.
  3677. Names are determined automatically by geocoding the latitude and longitude
  3678. to a nearby place name - this could be the name of a street, a nearby landmark
  3679. or a side alley.
  3680. \begin_inset CommandInset ref
  3681. LatexCommand prettyref
  3682. reference "fig:Place-details"
  3683. \end_inset
  3684. shows the result of tapping one of the stars - the name of the place is
  3685. \begin_inset Quotes eld
  3686. \end_inset
  3687. Rose Alley
  3688. \begin_inset Quotes erd
  3689. \end_inset
  3690. , it has been visited 37 times and the last time this happened was in the
  3691. early hours of July the 10th.
  3692. \begin_inset Newpage pagebreak
  3693. \end_inset
  3694. \end_layout
  3695. \begin_layout Section
  3696. User Guide - Locale plugin
  3697. \end_layout
  3698. \begin_layout Standard
  3699. The
  3700. \noun on
  3701. Context Analyser
  3702. \noun default
  3703. plugin for
  3704. \noun on
  3705. Locale
  3706. \noun default
  3707. allows you to create
  3708. \noun on
  3709. Locale
  3710. \noun default
  3711. situations based on information provided by the
  3712. \noun on
  3713. Context Analyser
  3714. \noun default
  3715. .
  3716. \noun on
  3717. Locale
  3718. \noun default
  3719. is an application which allows you to make your phone change settings,
  3720. send tweets, or perform a variety of other actions, whenever a certain
  3721. 'situation' occurs.
  3722. A situation is just a set of conditions - such as your location, your phone's
  3723. battery life, or the current time.
  3724. The
  3725. \noun on
  3726. Context Analyser
  3727. \noun default
  3728. application automatically determines your current activity (such as 'walking'
  3729. or 'sitting down'), and your predicted destination if you're travelling.
  3730. This plugin requires that you have both
  3731. \noun on
  3732. Context Analyser
  3733. \noun default
  3734. and
  3735. \noun on
  3736. Locale
  3737. \noun default
  3738. installed.
  3739. Both are available from the Android market.
  3740. \end_layout
  3741. \begin_layout Standard
  3742. The plugin adds two new conditions which you can use in
  3743. \noun on
  3744. Locale
  3745. \noun default
  3746. situations:
  3747. \end_layout
  3748. \begin_layout Itemize
  3749. Activity - the activity you are
  3750. \emph on
  3751. most likely
  3752. \emph default
  3753. performing
  3754. \end_layout
  3755. \begin_layout Itemize
  3756. Destination - your
  3757. \emph on
  3758. most likely
  3759. \emph default
  3760. destination, if you're not at a known location
  3761. \end_layout
  3762. \begin_layout Standard
  3763. A basic overview of adding these new conditions follows.
  3764. For full documentation on how to use
  3765. \noun on
  3766. Locale
  3767. \noun default
  3768. , consult the
  3769. \noun on
  3770. Locale
  3771. \noun default
  3772. user manual.
  3773. \end_layout
  3774. \begin_layout Standard
  3775. \begin_inset Float figure
  3776. wide false
  3777. sideways false
  3778. status collapsed
  3779. \begin_layout Plain Layout
  3780. \begin_inset Graphics
  3781. filename locale-situations.png
  3782. \end_inset
  3783. \end_layout
  3784. \begin_layout Plain Layout
  3785. \begin_inset Caption
  3786. \begin_layout Plain Layout
  3787. Locale main screen
  3788. \begin_inset CommandInset label
  3789. LatexCommand label
  3790. name "fig:Locale-main-screen"
  3791. \end_inset
  3792. \end_layout
  3793. \end_inset
  3794. \end_layout
  3795. \begin_layout Plain Layout
  3796. \end_layout
  3797. \end_inset
  3798. When you open
  3799. \noun on
  3800. Locale
  3801. \noun default
  3802. , you will see a list of currently defined situations (
  3803. \begin_inset CommandInset ref
  3804. LatexCommand prettyref
  3805. reference "fig:Locale-main-screen"
  3806. \end_inset
  3807. ).
  3808. You can edit existing situations by tapping on them.
  3809. Existing situations may be deleted by clicking on the red minus button
  3810. to the right of the situation name.
  3811. Finally, new situations can be created by tapping the 'Add Situation' button
  3812. at the bottom of the screen.
  3813. \noun on
  3814. Locale
  3815. \noun default
  3816. shows any situations that are
  3817. \emph on
  3818. active
  3819. \emph default
  3820. (all the conditions currently hold true) in bold.
  3821. \end_layout
  3822. \begin_layout Standard
  3823. \begin_inset Float figure
  3824. wide false
  3825. sideways false
  3826. status collapsed
  3827. \begin_layout Plain Layout
  3828. \begin_inset Graphics
  3829. filename locale-situation-pre.png
  3830. \end_inset
  3831. \end_layout
  3832. \begin_layout Plain Layout
  3833. \begin_inset Caption
  3834. \begin_layout Plain Layout
  3835. Locale editing situation
  3836. \begin_inset CommandInset label
  3837. LatexCommand label
  3838. name "fig:Locale-editing-situation"
  3839. \end_inset
  3840. \end_layout
  3841. \end_inset
  3842. \end_layout
  3843. \begin_layout Plain Layout
  3844. \end_layout
  3845. \end_inset
  3846. \begin_inset Float figure
  3847. wide false
  3848. sideways false
  3849. status collapsed
  3850. \begin_layout Plain Layout
  3851. \begin_inset Graphics
  3852. filename locale-add-condition.png
  3853. \end_inset
  3854. \end_layout
  3855. \begin_layout Plain Layout
  3856. \begin_inset Caption
  3857. \begin_layout Plain Layout
  3858. Locale add condition popup
  3859. \begin_inset CommandInset label
  3860. LatexCommand label
  3861. name "fig:Locale-add-condition"
  3862. \end_inset
  3863. \end_layout
  3864. \end_inset
  3865. \end_layout
  3866. \begin_layout Plain Layout
  3867. \end_layout
  3868. \end_inset
  3869. Once you've selected a situation to edit, or created a brand new situation,
  3870. you will see
  3871. \noun on
  3872. Locale
  3873. \noun default
  3874. 's 'edit situation' screen (
  3875. \begin_inset CommandInset ref
  3876. LatexCommand prettyref
  3877. reference "fig:Locale-editing-situation"
  3878. \end_inset
  3879. ).
  3880. This allows you to set the name of the situation, add or edit conditions,
  3881. and add or edit settings.
  3882. The
  3883. \noun on
  3884. Context Analyser
  3885. \noun default
  3886. plugin adds two new conditions, which are shown in the list when you click
  3887. 'Add condition' (
  3888. \begin_inset CommandInset ref
  3889. LatexCommand prettyref
  3890. reference "fig:Locale-add-condition"
  3891. \end_inset
  3892. ).
  3893. Select either 'Activity' or 'Destination' to add a new condition based
  3894. on your current context.
  3895. \end_layout
  3896. \begin_layout Standard
  3897. \begin_inset Float figure
  3898. wide false
  3899. sideways false
  3900. status collapsed
  3901. \begin_layout Plain Layout
  3902. \begin_inset Graphics
  3903. filename locale-select-destination.png
  3904. \end_inset
  3905. \end_layout
  3906. \begin_layout Plain Layout
  3907. \begin_inset Caption
  3908. \begin_layout Plain Layout
  3909. Locale plugin selecting destination
  3910. \begin_inset CommandInset label
  3911. LatexCommand label
  3912. name "fig:Locale-plugin-selecting"
  3913. \end_inset
  3914. \end_layout
  3915. \end_inset
  3916. \end_layout
  3917. \begin_layout Plain Layout
  3918. \end_layout
  3919. \end_inset
  3920. \begin_inset Float figure
  3921. wide false
  3922. sideways false
  3923. status collapsed
  3924. \begin_layout Plain Layout
  3925. \begin_inset Graphics
  3926. filename locale-select-activity.png
  3927. \end_inset
  3928. \end_layout
  3929. \begin_layout Plain Layout
  3930. \begin_inset Caption
  3931. \begin_layout Plain Layout
  3932. Locale plugin selecting activity
  3933. \begin_inset CommandInset label
  3934. LatexCommand label
  3935. name "fig:Locale-plugin-selecting-activity"
  3936. \end_inset
  3937. \end_layout
  3938. \end_inset
  3939. \end_layout
  3940. \begin_layout Plain Layout
  3941. \end_layout
  3942. \end_inset
  3943. When you select one of the plugin's conditions, you will be presented with
  3944. a screen which allows you to specify which activity (see
  3945. \begin_inset CommandInset ref
  3946. LatexCommand prettyref
  3947. reference "fig:Locale-plugin-selecting-activity"
  3948. \end_inset
  3949. ) or destination (see
  3950. \begin_inset CommandInset ref
  3951. LatexCommand prettyref
  3952. reference "fig:Locale-plugin-selecting"
  3953. \end_inset
  3954. ) you wish to match.
  3955. For activities, you can select one of sitting, standing, walking, walking
  3956. up stairs, walking down stairs, dancing, travelling bar car, or travelling
  3957. by bus.
  3958. For destination, you may select any place which the
  3959. \noun on
  3960. Context Analyser
  3961. \noun default
  3962. has previously detected.
  3963. \end_layout
  3964. \begin_layout Standard
  3965. \begin_inset Float figure
  3966. wide false
  3967. sideways false
  3968. status collapsed
  3969. \begin_layout Plain Layout
  3970. \begin_inset Graphics
  3971. filename locale-menu.png
  3972. \end_inset
  3973. \end_layout
  3974. \begin_layout Plain Layout
  3975. \begin_inset Caption
  3976. \begin_layout Plain Layout
  3977. Locale condition editor menu
  3978. \begin_inset CommandInset label
  3979. LatexCommand label
  3980. name "fig:Locale-condition-editor"
  3981. \end_inset
  3982. \end_layout
  3983. \end_inset
  3984. \end_layout
  3985. \end_inset
  3986. Once you've selected your chosen activity or destination, press the
  3987. \noun on
  3988. menu
  3989. \noun default
  3990. button and select the 'Save Changes' option (see
  3991. \begin_inset CommandInset ref
  3992. LatexCommand prettyref
  3993. reference "fig:Locale-condition-editor"
  3994. \end_inset
  3995. ).
  3996. You will then return to the situation editor where the new condition will
  3997. be displayed.
  3998. You may then add settings as with any other
  3999. \noun on
  4000. Locale
  4001. \noun default
  4002. situation, and
  4003. \noun on
  4004. Locale
  4005. \noun default
  4006. will automatically apply these when all of the conditions match.
  4007. \end_layout
  4008. \begin_layout Standard
  4009. \begin_inset Newpage pagebreak
  4010. \end_inset
  4011. \end_layout
  4012. \begin_layout Section
  4013. User Guide - Context Home Screen
  4014. \end_layout
  4015. \begin_layout Standard
  4016. \begin_inset Newpage pagebreak
  4017. \end_inset
  4018. \end_layout
  4019. \begin_layout Section
  4020. Developer Guide
  4021. \end_layout
  4022. \begin_layout Standard
  4023. This guide details how you can integrate the data made available by the
  4024. \noun on
  4025. Context Analyser
  4026. \noun default
  4027. into your own applications.
  4028. It is expected that you are familiar with Android application development
  4029. and general concepts.
  4030. For an overview of how the
  4031. \noun on
  4032. Context Analyser
  4033. \noun default
  4034. works, please consult the user guide.
  4035. \end_layout
  4036. \begin_layout Standard
  4037. The
  4038. \noun on
  4039. Context Analyser
  4040. \noun default
  4041. exposes its data via a set of Content Providers.
  4042. These are augmented by several broadcast intents which can be used by third
  4043. party applications to receive immediate notification when the user's context
  4044. changes.
  4045. \end_layout
  4046. \begin_layout Subsection
  4047. Permissions
  4048. \begin_inset CommandInset label
  4049. LatexCommand label
  4050. name "sub:Permissions"
  4051. \end_inset
  4052. \end_layout
  4053. \begin_layout Standard
  4054. In order to protect the user's privacy, a series of permissions are defined
  4055. by the
  4056. \noun on
  4057. Context Analyser
  4058. \noun default
  4059. , and access to data and broadcast intents is limited to applications which
  4060. hold the appropriate permissions.
  4061. The
  4062. \noun on
  4063. Context Analyser
  4064. \noun default
  4065. defines the following permissions:
  4066. \end_layout
  4067. \begin_layout Itemize
  4068. uk.co.md87.android.contextanalyser.RECEIVE_UPDATES - allows the application to
  4069. receive real-time updates about context or place information through broadcast
  4070. intents
  4071. \end_layout
  4072. \begin_layout Itemize
  4073. uk.co.md87.android.contextanalyser.READ_PLACES - allows the application to read
  4074. places from the relevant content provider
  4075. \end_layout
  4076. \begin_layout Itemize
  4077. uk.co.md87.android.contextanalyser.WRITE_PLACES - allows the application to modify
  4078. places via the relevant content provider
  4079. \end_layout
  4080. \begin_layout Itemize
  4081. uk.co.md87.android.contextanalyser.READ_JOURNEYS - allows the application to
  4082. read journey information from the relevant content providers
  4083. \end_layout
  4084. \begin_layout Itemize
  4085. uk.co.md87.android.contextanalyser.WRITE_JOURNEYS - allows the application to
  4086. modify journey information via the relevant content providers
  4087. \end_layout
  4088. \begin_layout Itemize
  4089. uk.co.md87.android.contextanalyser.BROADCAST - permission used when broadcasting
  4090. context-related intents.
  4091. Applications may wish to check that broadcasters hold this permission to
  4092. prevent third parties broadcasting erroneous data.
  4093. \end_layout
  4094. \begin_layout Standard
  4095. If you do not declare the required permissions, a run time error will occur
  4096. when your application attempts to access protected data.
  4097. All permissions listed here are defined as
  4098. \noun on
  4099. dangerous
  4100. \noun default
  4101. , which means that end users will be prompted about them when installing
  4102. any application using them; this is in line with the underlying accelerometer
  4103. and location permissions.
  4104. \end_layout
  4105. \begin_layout Subsection
  4106. Model
  4107. \end_layout
  4108. \begin_layout Standard
  4109. The
  4110. \noun on
  4111. Context Analyser
  4112. \noun default
  4113. is backed by a database containing tables for
  4114. \emph on
  4115. places
  4116. \emph default
  4117. ,
  4118. \emph on
  4119. journeys
  4120. \emph default
  4121. and
  4122. \emph on
  4123. journey steps
  4124. \emph default
  4125. .
  4126. Activities and predictions are stored in memory.
  4127. \end_layout
  4128. \begin_layout Standard
  4129. A
  4130. \series bold
  4131. place
  4132. \series default
  4133. is a location represented by a latitude/longitude tuple.
  4134. Places have a radius of 500 metres; whenever a user moves to within 500
  4135. metres of a known place, they are assumed to be located at that place.
  4136. New places are identified when the user is observed to be in the same location
  4137. (within 500 metres) for three consecutive readings, which occur at 1 minute
  4138. intervals.
  4139. Places also have an associated name, which is initially set to a string
  4140. representation of the latitude and longitude; the
  4141. \noun on
  4142. Context Analyser
  4143. \noun default
  4144. will attempt to rename any place with such a name by geocoding the latitude/lon
  4145. gitude into a nearby street or landmark name.
  4146. \end_layout
  4147. \begin_layout Standard
  4148. An
  4149. \series bold
  4150. activity
  4151. \series default
  4152. is represented by a string delimited by forward slashes (
  4153. \noun on
  4154. /
  4155. \noun default
  4156. ).
  4157. This forms a hierarchy of classifications, with the following possible
  4158. values:
  4159. \end_layout
  4160. \begin_layout Itemize
  4161. CLASSIFIED/DANCING
  4162. \end_layout
  4163. \begin_layout Itemize
  4164. CLASSIFIED/IDLE/SITTING
  4165. \end_layout
  4166. \begin_layout Itemize
  4167. CLASSIFIED/IDLE/STANDING
  4168. \end_layout
  4169. \begin_layout Itemize
  4170. CLASSIFIED/VEHICLE/BUS
  4171. \end_layout
  4172. \begin_layout Itemize
  4173. CLASSIFIED/VEHICLE/CAR
  4174. \end_layout
  4175. \begin_layout Itemize
  4176. CLASSIFIED/WALKING
  4177. \end_layout
  4178. \begin_layout Itemize
  4179. CLASSIFIED/WALKING/STAIRS/DOWN
  4180. \end_layout
  4181. \begin_layout Itemize
  4182. CLASSIFIED/WALKING/STAIRS/UP
  4183. \end_layout
  4184. \begin_layout Standard
  4185. It is possible for activities to contain only a part of the hierarchy -
  4186. for example if the readings alternate between classifications for travelling
  4187. by bus and by car, they will be aggregated and the resulting activity will
  4188. be simply CLASSIFIED/VEHICLE
  4189. \noun on
  4190. .
  4191. \noun default
  4192. Similarly, if the user's activity is in constant flux, the resulting activity
  4193. will be aggregated to simply 'CLASSIFIED'.
  4194. \end_layout
  4195. \begin_layout Standard
  4196. A
  4197. \series bold
  4198. journey
  4199. \series default
  4200. is a recorded sequence of activites which occured when the user moved from
  4201. one place to another.
  4202. Whenever the user leaves a known place, the
  4203. \noun on
  4204. Context Analyser
  4205. \noun default
  4206. begins a log of activities; when they then reach another known place, the
  4207. log is converted into a journey.
  4208. Each journey consists of a sequence of
  4209. \series bold
  4210. journey steps
  4211. \series default
  4212. , which describe a single activity and a number of reptitions.
  4213. \end_layout
  4214. \begin_layout Standard
  4215. For example, if the user leaves place A, spends five minutes walking, then
  4216. ten minutes on a bus, and arrives at place B:
  4217. \end_layout
  4218. \begin_layout Itemize
  4219. A journey will be created with a start point of A and an end point of B
  4220. \end_layout
  4221. \begin_layout Itemize
  4222. The journey will consist of two journey steps:
  4223. \end_layout
  4224. \begin_deeper
  4225. \begin_layout Itemize
  4226. Step one will have an activity of CLASSIFIED/WALKING with five reptitions
  4227. \end_layout
  4228. \begin_layout Itemize
  4229. Step two will have an activity of CLASSIFIED/VEHICLE/BUS with ten reptitions
  4230. \end_layout
  4231. \end_deeper
  4232. \begin_layout Standard
  4233. When the user is on a journey, the Context Analyser compares their current
  4234. history to that of previously recorded journeys leaving the same place.
  4235. If any of the journeys match, their destinations are considered as
  4236. \series bold
  4237. predictions
  4238. \series default
  4239. .
  4240. The number of times each matching journey occured is summed and the result
  4241. is used as a 'score' for the destination involved.
  4242. The destination with the highest score is considered the most likely destinatio
  4243. n for the user.
  4244. \end_layout
  4245. \begin_layout Standard
  4246. For the purposes of prediction, a partial journey is considered to match
  4247. a historical journey if:
  4248. \end_layout
  4249. \begin_layout Itemize
  4250. it contains the same number of, or fewer, steps
  4251. \end_layout
  4252. \begin_layout Itemize
  4253. each step has the same activity
  4254. \end_layout
  4255. \begin_layout Itemize
  4256. the number of reptitions in each completed step (not the last step) is:
  4257. \end_layout
  4258. \begin_deeper
  4259. \begin_layout Itemize
  4260. no less than 50% of the historical value
  4261. \end_layout
  4262. \begin_layout Itemize
  4263. no greater than 150% of the historical value
  4264. \end_layout
  4265. \end_deeper
  4266. \begin_layout Itemize
  4267. the number of repititions of the last step is:
  4268. \end_layout
  4269. \begin_deeper
  4270. \begin_layout Itemize
  4271. no greater than 150% of the historical value
  4272. \end_layout
  4273. \end_deeper
  4274. \begin_layout Subsection
  4275. Broadcast intents
  4276. \end_layout
  4277. \begin_layout Standard
  4278. The
  4279. \noun on
  4280. Context Analyser
  4281. \noun default
  4282. broadcasts three different intents to make other applications aware of
  4283. certain events.
  4284. Applications require the RECEIVE_UPDATES permission to receive these broadcasts
  4285. , as discussed previously.
  4286. These intents are:
  4287. \end_layout
  4288. \begin_layout Itemize
  4289. uk.co.md87.android.contextanalyser.ACTIVITY_CHANGED
  4290. \end_layout
  4291. \begin_layout Itemize
  4292. uk.co.md87.android.contextanalyser.CONTEXT_CHANGED
  4293. \end_layout
  4294. \begin_layout Itemize
  4295. uk.co.md87.android.contextanalyser.PREDICTION_AVAILABLE
  4296. \end_layout
  4297. \begin_layout Standard
  4298. The
  4299. \series bold
  4300. ACTIVITY_CHANGED
  4301. \series default
  4302. intent is broadcast whenever the user's activity is discovered to have
  4303. changed.
  4304. It contains two string extras - the old activity and the new activity -
  4305. under the keys
  4306. \begin_inset Quotes eld
  4307. \end_inset
  4308. old
  4309. \begin_inset Quotes erd
  4310. \end_inset
  4311. and
  4312. \begin_inset Quotes eld
  4313. \end_inset
  4314. new
  4315. \begin_inset Quotes erd
  4316. \end_inset
  4317. respectively.
  4318. \end_layout
  4319. \begin_layout Standard
  4320. The
  4321. \series bold
  4322. CONTEXT_CHANGED
  4323. \series default
  4324. intent occurs whenever some other aspect of the user's context changes.
  4325. Presently this only includes the user's current place.
  4326. It contains an integer extra under the key
  4327. \begin_inset Quotes eld
  4328. \end_inset
  4329. type
  4330. \begin_inset Quotes erd
  4331. \end_inset
  4332. which describes which type of context has changed; this will have the value
  4333. 1 for place updates.
  4334. Place updates will also have two further integer extras - the place the
  4335. user was previously in (or -1 if they were not in a known place) and the
  4336. place the user is now in - under the keys
  4337. \begin_inset Quotes eld
  4338. \end_inset
  4339. old
  4340. \begin_inset Quotes erd
  4341. \end_inset
  4342. and
  4343. \begin_inset Quotes eld
  4344. \end_inset
  4345. new
  4346. \begin_inset Quotes erd
  4347. \end_inset
  4348. , respectively.
  4349. These place IDs can be resolved to names and latitude/longitude by querying
  4350. the relevant content provider, described below.
  4351. \end_layout
  4352. \begin_layout Standard
  4353. The
  4354. \series bold
  4355. PREDICTION_AVAILABLE
  4356. \series default
  4357. intent is broadcast whenever a prediction has been made by the
  4358. \noun on
  4359. Context Analyser
  4360. \noun default
  4361. .
  4362. The best available prediction is included as a place ID in the
  4363. \begin_inset Quotes eld
  4364. \end_inset
  4365. best_target
  4366. \begin_inset Quotes erd
  4367. \end_inset
  4368. key, the total score for the prediction to that place is available as an
  4369. integer in the
  4370. \begin_inset Quotes eld
  4371. \end_inset
  4372. count
  4373. \begin_inset Quotes erd
  4374. \end_inset
  4375. key, and the 'probability' (the score for that place divided by the total
  4376. scores for all predicted places) is a float in the
  4377. \begin_inset Quotes eld
  4378. \end_inset
  4379. best_probability
  4380. \begin_inset Quotes erd
  4381. \end_inset
  4382. key.
  4383. A full set of predictions can be retrieved from the relevant content provider,
  4384. described below.
  4385. \end_layout
  4386. \begin_layout Standard
  4387. As discussed in the permissions section (
  4388. \begin_inset CommandInset ref
  4389. LatexCommand prettyref
  4390. reference "sub:Permissions"
  4391. \end_inset
  4392. ), you may wish to make sure that all broadcasts you receive are sent by
  4393. an application which holds the BROADCAST permission.
  4394. This ensures that the user trusts the application to send these broadcasts,
  4395. and reduces the chance that they are from a malicious application attempting
  4396. to introduce erroneous data or otherwise compromise your receiver.
  4397. \end_layout
  4398. \begin_layout Subsection
  4399. Content providers
  4400. \end_layout
  4401. \begin_layout Standard
  4402. The
  4403. \noun on
  4404. Context Analyser
  4405. \noun default
  4406. provides four content providers from which you can receive data:
  4407. \end_layout
  4408. \begin_layout Subsubsection
  4409. Activities
  4410. \end_layout
  4411. \begin_layout Standard
  4412. Allows querying of the user's current activity.
  4413. This may be expanded in future versions to allow querying of all known
  4414. activities.
  4415. Read only, does not accept selection, projection or order parameters.
  4416. \end_layout
  4417. \begin_layout Standard
  4418. URI:
  4419. \noun on
  4420. content://uk.co.md87.android.contextanalyser.activitiescontentprovider/current
  4421. \end_layout
  4422. \begin_layout Standard
  4423. Content type:
  4424. \noun on
  4425. vnd.contextanalyser.activity
  4426. \end_layout
  4427. \begin_layout Standard
  4428. Columns:
  4429. \end_layout
  4430. \begin_layout Standard
  4431. \begin_inset Tabular
  4432. <lyxtabular version="3" rows="2" columns="3">
  4433. <features>
  4434. <column alignment="center" valignment="top" width="0">
  4435. <column alignment="center" valignment="top" width="0">
  4436. <column alignment="center" valignment="top" width="0">
  4437. <row>
  4438. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4439. \begin_inset Text
  4440. \begin_layout Plain Layout
  4441. \series bold
  4442. Name
  4443. \end_layout
  4444. \end_inset
  4445. </cell>
  4446. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4447. \begin_inset Text
  4448. \begin_layout Plain Layout
  4449. \series bold
  4450. Type
  4451. \end_layout
  4452. \end_inset
  4453. </cell>
  4454. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  4455. \begin_inset Text
  4456. \begin_layout Plain Layout
  4457. \series bold
  4458. Remarks
  4459. \end_layout
  4460. \end_inset
  4461. </cell>
  4462. </row>
  4463. <row>
  4464. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  4465. \begin_inset Text
  4466. \begin_layout Plain Layout
  4467. activity
  4468. \end_layout
  4469. \end_inset
  4470. </cell>
  4471. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  4472. \begin_inset Text
  4473. \begin_layout Plain Layout
  4474. string
  4475. \end_layout
  4476. \end_inset
  4477. </cell>
  4478. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
  4479. \begin_inset Text
  4480. \begin_layout Plain Layout
  4481. The user's current activity
  4482. \end_layout
  4483. \end_inset
  4484. </cell>
  4485. </row>
  4486. </lyxtabular>
  4487. \end_inset
  4488. \end_layout
  4489. \begin_layout Subsubsection
  4490. Journeys
  4491. \end_layout
  4492. \begin_layout Standard
  4493. Allows querying of the user's historical journeys and steps within them.
  4494. Read/write access, supports selection and ordering.
  4495. \end_layout
  4496. \begin_layout Paragraph
  4497. Journeys
  4498. \end_layout
  4499. \begin_layout Standard
  4500. URI:
  4501. \noun on
  4502. content://uk.co.md87.android.contextanalyser.journeyscontentprovider/journeys
  4503. \end_layout
  4504. \begin_layout Standard
  4505. Content type:
  4506. \noun on
  4507. vnd.contextanalyser.journey
  4508. \end_layout
  4509. \begin_layout Standard
  4510. Columns:
  4511. \end_layout
  4512. \begin_layout Standard
  4513. \begin_inset Tabular
  4514. <lyxtabular version="3" rows="6" columns="3">
  4515. <features>
  4516. <column alignment="center" valignment="top" width="0">
  4517. <column alignment="center" valignment="top" width="0">
  4518. <column alignment="center" valignment="top" width="0">
  4519. <row>
  4520. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4521. \begin_inset Text
  4522. \begin_layout Plain Layout
  4523. \series bold
  4524. Name
  4525. \end_layout
  4526. \end_inset
  4527. </cell>
  4528. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4529. \begin_inset Text
  4530. \begin_layout Plain Layout
  4531. \series bold
  4532. Type
  4533. \end_layout
  4534. \end_inset
  4535. </cell>
  4536. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  4537. \begin_inset Text
  4538. \begin_layout Plain Layout
  4539. \series bold
  4540. Remarks
  4541. \end_layout
  4542. \end_inset
  4543. </cell>
  4544. </row>
  4545. <row>
  4546. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4547. \begin_inset Text
  4548. \begin_layout Plain Layout
  4549. _id
  4550. \end_layout
  4551. \end_inset
  4552. </cell>
  4553. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4554. \begin_inset Text
  4555. \begin_layout Plain Layout
  4556. long
  4557. \end_layout
  4558. \end_inset
  4559. </cell>
  4560. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  4561. \begin_inset Text
  4562. \begin_layout Plain Layout
  4563. A unique, persistent ID for the journey
  4564. \end_layout
  4565. \end_inset
  4566. </cell>
  4567. </row>
  4568. <row>
  4569. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4570. \begin_inset Text
  4571. \begin_layout Plain Layout
  4572. start
  4573. \end_layout
  4574. \end_inset
  4575. </cell>
  4576. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4577. \begin_inset Text
  4578. \begin_layout Plain Layout
  4579. long
  4580. \end_layout
  4581. \end_inset
  4582. </cell>
  4583. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  4584. \begin_inset Text
  4585. \begin_layout Plain Layout
  4586. The ID of the place at which this journey starts
  4587. \end_layout
  4588. \end_inset
  4589. </cell>
  4590. </row>
  4591. <row>
  4592. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4593. \begin_inset Text
  4594. \begin_layout Plain Layout
  4595. end
  4596. \end_layout
  4597. \end_inset
  4598. </cell>
  4599. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4600. \begin_inset Text
  4601. \begin_layout Plain Layout
  4602. long
  4603. \end_layout
  4604. \end_inset
  4605. </cell>
  4606. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  4607. \begin_inset Text
  4608. \begin_layout Plain Layout
  4609. The ID of the place at which this journey ends
  4610. \end_layout
  4611. \end_inset
  4612. </cell>
  4613. </row>
  4614. <row>
  4615. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4616. \begin_inset Text
  4617. \begin_layout Plain Layout
  4618. steps
  4619. \end_layout
  4620. \end_inset
  4621. </cell>
  4622. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4623. \begin_inset Text
  4624. \begin_layout Plain Layout
  4625. int
  4626. \end_layout
  4627. \end_inset
  4628. </cell>
  4629. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  4630. \begin_inset Text
  4631. \begin_layout Plain Layout
  4632. The number of steps in this journey
  4633. \end_layout
  4634. \end_inset
  4635. </cell>
  4636. </row>
  4637. <row>
  4638. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  4639. \begin_inset Text
  4640. \begin_layout Plain Layout
  4641. number
  4642. \end_layout
  4643. \end_inset
  4644. </cell>
  4645. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  4646. \begin_inset Text
  4647. \begin_layout Plain Layout
  4648. int
  4649. \end_layout
  4650. \end_inset
  4651. </cell>
  4652. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
  4653. \begin_inset Text
  4654. \begin_layout Plain Layout
  4655. The number of times this journey has been made
  4656. \end_layout
  4657. \end_inset
  4658. </cell>
  4659. </row>
  4660. </lyxtabular>
  4661. \end_inset
  4662. \end_layout
  4663. \begin_layout Paragraph
  4664. Journey steps
  4665. \end_layout
  4666. \begin_layout Standard
  4667. URI:
  4668. \noun on
  4669. content://uk.co.md87.android.contextanalyser.journeyscontentprovider/steps
  4670. \end_layout
  4671. \begin_layout Standard
  4672. Content type:
  4673. \noun on
  4674. vnd.contextanalyser.journeystep
  4675. \end_layout
  4676. \begin_layout Standard
  4677. Columns:
  4678. \end_layout
  4679. \begin_layout Standard
  4680. \begin_inset Tabular
  4681. <lyxtabular version="3" rows="6" columns="3">
  4682. <features>
  4683. <column alignment="center" valignment="top" width="0">
  4684. <column alignment="center" valignment="top" width="0">
  4685. <column alignment="center" valignment="top" width="0">
  4686. <row>
  4687. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4688. \begin_inset Text
  4689. \begin_layout Plain Layout
  4690. \series bold
  4691. Name
  4692. \end_layout
  4693. \end_inset
  4694. </cell>
  4695. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4696. \begin_inset Text
  4697. \begin_layout Plain Layout
  4698. \series bold
  4699. Type
  4700. \end_layout
  4701. \end_inset
  4702. </cell>
  4703. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  4704. \begin_inset Text
  4705. \begin_layout Plain Layout
  4706. \series bold
  4707. Remarks
  4708. \end_layout
  4709. \end_inset
  4710. </cell>
  4711. </row>
  4712. <row>
  4713. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4714. \begin_inset Text
  4715. \begin_layout Plain Layout
  4716. _id
  4717. \end_layout
  4718. \end_inset
  4719. </cell>
  4720. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4721. \begin_inset Text
  4722. \begin_layout Plain Layout
  4723. long
  4724. \end_layout
  4725. \end_inset
  4726. </cell>
  4727. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  4728. \begin_inset Text
  4729. \begin_layout Plain Layout
  4730. A unique, persistent ID for the step
  4731. \end_layout
  4732. \end_inset
  4733. </cell>
  4734. </row>
  4735. <row>
  4736. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4737. \begin_inset Text
  4738. \begin_layout Plain Layout
  4739. activity
  4740. \end_layout
  4741. \end_inset
  4742. </cell>
  4743. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4744. \begin_inset Text
  4745. \begin_layout Plain Layout
  4746. string
  4747. \end_layout
  4748. \end_inset
  4749. </cell>
  4750. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  4751. \begin_inset Text
  4752. \begin_layout Plain Layout
  4753. The activity that was observed
  4754. \end_layout
  4755. \end_inset
  4756. </cell>
  4757. </row>
  4758. <row>
  4759. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4760. \begin_inset Text
  4761. \begin_layout Plain Layout
  4762. repetitions
  4763. \end_layout
  4764. \end_inset
  4765. </cell>
  4766. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4767. \begin_inset Text
  4768. \begin_layout Plain Layout
  4769. int
  4770. \end_layout
  4771. \end_inset
  4772. </cell>
  4773. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  4774. \begin_inset Text
  4775. \begin_layout Plain Layout
  4776. The number of times the activity occured
  4777. \end_layout
  4778. \end_inset
  4779. </cell>
  4780. </row>
  4781. <row>
  4782. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4783. \begin_inset Text
  4784. \begin_layout Plain Layout
  4785. journey
  4786. \end_layout
  4787. \end_inset
  4788. </cell>
  4789. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4790. \begin_inset Text
  4791. \begin_layout Plain Layout
  4792. long
  4793. \end_layout
  4794. \end_inset
  4795. </cell>
  4796. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  4797. \begin_inset Text
  4798. \begin_layout Plain Layout
  4799. The ID of the journey that this step belongs to
  4800. \end_layout
  4801. \end_inset
  4802. </cell>
  4803. </row>
  4804. <row>
  4805. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  4806. \begin_inset Text
  4807. \begin_layout Plain Layout
  4808. next
  4809. \end_layout
  4810. \end_inset
  4811. </cell>
  4812. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  4813. \begin_inset Text
  4814. \begin_layout Plain Layout
  4815. long
  4816. \end_layout
  4817. \end_inset
  4818. </cell>
  4819. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
  4820. \begin_inset Text
  4821. \begin_layout Plain Layout
  4822. The ID of the next step in the journey, or 0 if the last step in sequence
  4823. \end_layout
  4824. \end_inset
  4825. </cell>
  4826. </row>
  4827. </lyxtabular>
  4828. \end_inset
  4829. \end_layout
  4830. \begin_layout Subsubsection
  4831. Places
  4832. \end_layout
  4833. \begin_layout Standard
  4834. Allows querying of the user's know places.
  4835. Read/write access, supports selection and ordering.
  4836. \end_layout
  4837. \begin_layout Standard
  4838. URI:
  4839. \noun on
  4840. content://uk.co.md87.android.contextanalyser.placescontentprovider/places
  4841. \end_layout
  4842. \begin_layout Standard
  4843. Content type:
  4844. \noun on
  4845. vnd.contextanalyser.location
  4846. \end_layout
  4847. \begin_layout Standard
  4848. Columns:
  4849. \end_layout
  4850. \begin_layout Standard
  4851. \begin_inset Tabular
  4852. <lyxtabular version="3" rows="8" columns="3">
  4853. <features>
  4854. <column alignment="center" valignment="top" width="0">
  4855. <column alignment="center" valignment="top" width="0">
  4856. <column alignment="center" valignment="top" width="0">
  4857. <row>
  4858. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4859. \begin_inset Text
  4860. \begin_layout Plain Layout
  4861. \series bold
  4862. Name
  4863. \end_layout
  4864. \end_inset
  4865. </cell>
  4866. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4867. \begin_inset Text
  4868. \begin_layout Plain Layout
  4869. \series bold
  4870. Type
  4871. \end_layout
  4872. \end_inset
  4873. </cell>
  4874. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  4875. \begin_inset Text
  4876. \begin_layout Plain Layout
  4877. \series bold
  4878. Remarks
  4879. \end_layout
  4880. \end_inset
  4881. </cell>
  4882. </row>
  4883. <row>
  4884. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4885. \begin_inset Text
  4886. \begin_layout Plain Layout
  4887. _id
  4888. \end_layout
  4889. \end_inset
  4890. </cell>
  4891. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4892. \begin_inset Text
  4893. \begin_layout Plain Layout
  4894. long
  4895. \end_layout
  4896. \end_inset
  4897. </cell>
  4898. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  4899. \begin_inset Text
  4900. \begin_layout Plain Layout
  4901. A unique, persistent ID for the place
  4902. \end_layout
  4903. \end_inset
  4904. </cell>
  4905. </row>
  4906. <row>
  4907. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4908. \begin_inset Text
  4909. \begin_layout Plain Layout
  4910. name
  4911. \end_layout
  4912. \end_inset
  4913. </cell>
  4914. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4915. \begin_inset Text
  4916. \begin_layout Plain Layout
  4917. string
  4918. \end_layout
  4919. \end_inset
  4920. </cell>
  4921. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  4922. \begin_inset Text
  4923. \begin_layout Plain Layout
  4924. The name of the place
  4925. \end_layout
  4926. \end_inset
  4927. </cell>
  4928. </row>
  4929. <row>
  4930. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4931. \begin_inset Text
  4932. \begin_layout Plain Layout
  4933. latitude
  4934. \end_layout
  4935. \end_inset
  4936. </cell>
  4937. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4938. \begin_inset Text
  4939. \begin_layout Plain Layout
  4940. double
  4941. \end_layout
  4942. \end_inset
  4943. </cell>
  4944. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  4945. \begin_inset Text
  4946. \begin_layout Plain Layout
  4947. The latitude of the centre of the place
  4948. \end_layout
  4949. \end_inset
  4950. </cell>
  4951. </row>
  4952. <row>
  4953. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4954. \begin_inset Text
  4955. \begin_layout Plain Layout
  4956. longitude
  4957. \end_layout
  4958. \end_inset
  4959. </cell>
  4960. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4961. \begin_inset Text
  4962. \begin_layout Plain Layout
  4963. double
  4964. \end_layout
  4965. \end_inset
  4966. </cell>
  4967. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  4968. \begin_inset Text
  4969. \begin_layout Plain Layout
  4970. The longitude at the centre of the place
  4971. \end_layout
  4972. \end_inset
  4973. </cell>
  4974. </row>
  4975. <row>
  4976. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4977. \begin_inset Text
  4978. \begin_layout Plain Layout
  4979. duration
  4980. \end_layout
  4981. \end_inset
  4982. </cell>
  4983. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  4984. \begin_inset Text
  4985. \begin_layout Plain Layout
  4986. long
  4987. \end_layout
  4988. \end_inset
  4989. </cell>
  4990. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  4991. \begin_inset Text
  4992. \begin_layout Plain Layout
  4993. Amount of time in seconds spent at the place
  4994. \end_layout
  4995. \end_inset
  4996. </cell>
  4997. </row>
  4998. <row>
  4999. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5000. \begin_inset Text
  5001. \begin_layout Plain Layout
  5002. times
  5003. \end_layout
  5004. \end_inset
  5005. </cell>
  5006. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5007. \begin_inset Text
  5008. \begin_layout Plain Layout
  5009. long
  5010. \end_layout
  5011. \end_inset
  5012. </cell>
  5013. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5014. \begin_inset Text
  5015. \begin_layout Plain Layout
  5016. The number of times the place has been visited
  5017. \end_layout
  5018. \end_inset
  5019. </cell>
  5020. </row>
  5021. <row>
  5022. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  5023. \begin_inset Text
  5024. \begin_layout Plain Layout
  5025. lastvisit
  5026. \end_layout
  5027. \end_inset
  5028. </cell>
  5029. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  5030. \begin_inset Text
  5031. \begin_layout Plain Layout
  5032. long
  5033. \end_layout
  5034. \end_inset
  5035. </cell>
  5036. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
  5037. \begin_inset Text
  5038. \begin_layout Plain Layout
  5039. The unix timestamp of the last visit (seconds)
  5040. \end_layout
  5041. \end_inset
  5042. </cell>
  5043. </row>
  5044. </lyxtabular>
  5045. \end_inset
  5046. \end_layout
  5047. \begin_layout Subsubsection
  5048. Predictions
  5049. \end_layout
  5050. \begin_layout Standard
  5051. Allows querying of the current predictions, if any.
  5052. Read only, does not accept selection, projection or order parameters.
  5053. \end_layout
  5054. \begin_layout Standard
  5055. URI:
  5056. \noun on
  5057. content://uk.co.md87.android.contextanalyser.predictionscontentprovider/predictions
  5058. \end_layout
  5059. \begin_layout Standard
  5060. Content type:
  5061. \noun on
  5062. vnd.contextanalyser.prediction
  5063. \end_layout
  5064. \begin_layout Standard
  5065. Columns:
  5066. \end_layout
  5067. \begin_layout Standard
  5068. \begin_inset Tabular
  5069. <lyxtabular version="3" rows="4" columns="3">
  5070. <features>
  5071. <column alignment="center" valignment="top" width="0">
  5072. <column alignment="center" valignment="top" width="0">
  5073. <column alignment="center" valignment="top" width="0">
  5074. <row>
  5075. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5076. \begin_inset Text
  5077. \begin_layout Plain Layout
  5078. \series bold
  5079. Name
  5080. \end_layout
  5081. \end_inset
  5082. </cell>
  5083. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5084. \begin_inset Text
  5085. \begin_layout Plain Layout
  5086. \series bold
  5087. Type
  5088. \end_layout
  5089. \end_inset
  5090. </cell>
  5091. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5092. \begin_inset Text
  5093. \begin_layout Plain Layout
  5094. \series bold
  5095. Remarks
  5096. \end_layout
  5097. \end_inset
  5098. </cell>
  5099. </row>
  5100. <row>
  5101. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5102. \begin_inset Text
  5103. \begin_layout Plain Layout
  5104. _ID
  5105. \end_layout
  5106. \end_inset
  5107. </cell>
  5108. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5109. \begin_inset Text
  5110. \begin_layout Plain Layout
  5111. long
  5112. \end_layout
  5113. \end_inset
  5114. </cell>
  5115. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5116. \begin_inset Text
  5117. \begin_layout Plain Layout
  5118. A unique ID for the prediction
  5119. \end_layout
  5120. \end_inset
  5121. </cell>
  5122. </row>
  5123. <row>
  5124. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5125. \begin_inset Text
  5126. \begin_layout Plain Layout
  5127. place
  5128. \end_layout
  5129. \end_inset
  5130. </cell>
  5131. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5132. \begin_inset Text
  5133. \begin_layout Plain Layout
  5134. long
  5135. \end_layout
  5136. \end_inset
  5137. </cell>
  5138. <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5139. \begin_inset Text
  5140. \begin_layout Plain Layout
  5141. The ID of the predicted destination
  5142. \end_layout
  5143. \end_inset
  5144. </cell>
  5145. </row>
  5146. <row>
  5147. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  5148. \begin_inset Text
  5149. \begin_layout Plain Layout
  5150. count
  5151. \end_layout
  5152. \end_inset
  5153. </cell>
  5154. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  5155. \begin_inset Text
  5156. \begin_layout Plain Layout
  5157. int
  5158. \end_layout
  5159. \end_inset
  5160. </cell>
  5161. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
  5162. \begin_inset Text
  5163. \begin_layout Plain Layout
  5164. The 'score' of the prediction
  5165. \end_layout
  5166. \end_inset
  5167. </cell>
  5168. </row>
  5169. </lyxtabular>
  5170. \end_inset
  5171. \end_layout
  5172. \begin_layout Subsection
  5173. Context API
  5174. \end_layout
  5175. \begin_layout Standard
  5176. A small
  5177. \begin_inset Quotes eld
  5178. \end_inset
  5179. API
  5180. \begin_inset Quotes erd
  5181. \end_inset
  5182. is available to facilitate easier access to the services exposed by the
  5183. \noun on
  5184. Context Analyser.
  5185. \noun default
  5186. This consists of the
  5187. \noun on
  5188. ContextApi
  5189. \noun default
  5190. class and its assorted subclasses.
  5191. These subclasses contain constant values for all column names, URIs and
  5192. content types, as well as intent names and enumeration values.
  5193. \end_layout
  5194. \begin_layout Standard
  5195. The
  5196. \noun on
  5197. ContextApi.Intents
  5198. \noun default
  5199. class defines string constants for the three broadcast intents which are
  5200. used by the
  5201. \noun on
  5202. Context Analyser
  5203. \noun default
  5204. .
  5205. The
  5206. \noun on
  5207. ContextTypes
  5208. \noun default
  5209. inner class contains integer constants for the possible 'type' values for
  5210. the CONTEXT_CHANGED intent.
  5211. \end_layout
  5212. \begin_layout Standard
  5213. The
  5214. \noun on
  5215. Places
  5216. \noun default
  5217. ,
  5218. \noun on
  5219. Journeys
  5220. \noun default
  5221. ,
  5222. \noun on
  5223. JourneySteps
  5224. \noun default
  5225. ,
  5226. \noun on
  5227. Predictions
  5228. \noun default
  5229. and
  5230. \noun on
  5231. Activities
  5232. \noun default
  5233. classes all contain a CONTENT_URI field containing the Uri of the the content
  5234. provider, a CONTENT_TYPE field containing the string mime type for that
  5235. provider, and a static
  5236. \noun on
  5237. ColumnNames
  5238. \noun default
  5239. class which contains string constants for each column returned by the content
  5240. provider.
  5241. \end_layout
  5242. \begin_layout Standard
  5243. The following code from the
  5244. \noun on
  5245. Places
  5246. \noun default
  5247. application shows the use of these constant values:
  5248. \end_layout
  5249. \begin_layout LyX-Code
  5250. final Cursor cursor = managedQuery(ContextApi.Places.CONTENT_URI,
  5251. \end_layout
  5252. \begin_layout LyX-Code
  5253. new String[] { ColumnNames.LATITUDE, ColumnNames.LONGITUDE,
  5254. \end_layout
  5255. \begin_layout LyX-Code
  5256. ColumnNames._ID, ColumnNames.NAME, ColumnNames.LAST_VISIT,
  5257. \end_layout
  5258. \begin_layout LyX-Code
  5259. ColumnNames.VISIT_COUNT }, null, null, null);
  5260. \end_layout
  5261. \begin_layout LyX-Code
  5262. \end_layout
  5263. \begin_layout LyX-Code
  5264. if (cursor.moveToFirst()) {
  5265. \end_layout
  5266. \begin_layout LyX-Code
  5267. final int nameColumn = cursor.getColumnIndex(ColumnNames.NAME);
  5268. \end_layout
  5269. \begin_layout LyX-Code
  5270. final int idColumn = cursor.getColumnIndex(ColumnNames._ID);
  5271. \end_layout
  5272. \begin_layout LyX-Code
  5273. \end_layout
  5274. \begin_layout LyX-Code
  5275. do {
  5276. \end_layout
  5277. \begin_layout LyX-Code
  5278. final String name = cursor.getString(nameColumn);
  5279. \end_layout
  5280. \begin_layout LyX-Code
  5281. final int id = cursor.getInt(idColumn);
  5282. \end_layout
  5283. \begin_layout LyX-Code
  5284. // etc
  5285. \end_layout
  5286. \begin_layout LyX-Code
  5287. } while (cursor.moveToNext());
  5288. \end_layout
  5289. \begin_layout LyX-Code
  5290. }
  5291. \end_layout
  5292. \begin_layout Standard
  5293. Note that the code imports both the
  5294. \noun on
  5295. ContextApi
  5296. \noun default
  5297. class, and the
  5298. \noun on
  5299. ContextApi.Places.ColumnNames
  5300. \noun default
  5301. class.
  5302. \end_layout
  5303. \begin_layout Standard
  5304. \begin_inset Newpage pagebreak
  5305. \end_inset
  5306. \end_layout
  5307. \begin_layout Section
  5308. User-annotated
  5309. \noun on
  5310. Sensor Logger
  5311. \noun default
  5312. Results
  5313. \begin_inset CommandInset label
  5314. LatexCommand label
  5315. name "sec:User-annotated-Sensor-Logger"
  5316. \end_inset
  5317. \end_layout
  5318. \begin_layout Standard
  5319. \begin_inset Tabular
  5320. <lyxtabular version="3" rows="83" columns="3">
  5321. <features islongtable="true">
  5322. <column alignment="right" valignment="top" width="0">
  5323. <column alignment="left" valignment="top" width="0">
  5324. <column alignment="left" valignment="top" width="0">
  5325. <row endhead="true" endfirsthead="true">
  5326. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  5327. \begin_inset Text
  5328. \begin_layout Plain Layout
  5329. \series bold
  5330. Count
  5331. \end_layout
  5332. \end_inset
  5333. </cell>
  5334. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  5335. \begin_inset Text
  5336. \begin_layout Plain Layout
  5337. \series bold
  5338. User annotation
  5339. \end_layout
  5340. \end_inset
  5341. </cell>
  5342. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
  5343. \begin_inset Text
  5344. \begin_layout Plain Layout
  5345. \series bold
  5346. On-device classification
  5347. \end_layout
  5348. \end_inset
  5349. </cell>
  5350. </row>
  5351. <row>
  5352. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5353. \begin_inset Text
  5354. \begin_layout Plain Layout
  5355. 3
  5356. \end_layout
  5357. \end_inset
  5358. </cell>
  5359. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5360. \begin_inset Text
  5361. \begin_layout Plain Layout
  5362. \end_layout
  5363. \end_inset
  5364. </cell>
  5365. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5366. \begin_inset Text
  5367. \begin_layout Plain Layout
  5368. CLASSIFIED/DANCING
  5369. \end_layout
  5370. \end_inset
  5371. </cell>
  5372. </row>
  5373. <row>
  5374. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5375. \begin_inset Text
  5376. \begin_layout Plain Layout
  5377. 6
  5378. \end_layout
  5379. \end_inset
  5380. </cell>
  5381. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5382. \begin_inset Text
  5383. \begin_layout Plain Layout
  5384. \end_layout
  5385. \end_inset
  5386. </cell>
  5387. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5388. \begin_inset Text
  5389. \begin_layout Plain Layout
  5390. CLASSIFIED/IDLE/SITTING
  5391. \end_layout
  5392. \end_inset
  5393. </cell>
  5394. </row>
  5395. <row>
  5396. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5397. \begin_inset Text
  5398. \begin_layout Plain Layout
  5399. 2
  5400. \end_layout
  5401. \end_inset
  5402. </cell>
  5403. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5404. \begin_inset Text
  5405. \begin_layout Plain Layout
  5406. \end_layout
  5407. \end_inset
  5408. </cell>
  5409. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5410. \begin_inset Text
  5411. \begin_layout Plain Layout
  5412. CLASSIFIED/IDLE/STANDING
  5413. \end_layout
  5414. \end_inset
  5415. </cell>
  5416. </row>
  5417. <row>
  5418. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5419. \begin_inset Text
  5420. \begin_layout Plain Layout
  5421. 9
  5422. \end_layout
  5423. \end_inset
  5424. </cell>
  5425. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5426. \begin_inset Text
  5427. \begin_layout Plain Layout
  5428. \end_layout
  5429. \end_inset
  5430. </cell>
  5431. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5432. \begin_inset Text
  5433. \begin_layout Plain Layout
  5434. CLASSIFIED/UNKNOWN
  5435. \end_layout
  5436. \end_inset
  5437. </cell>
  5438. </row>
  5439. <row>
  5440. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5441. \begin_inset Text
  5442. \begin_layout Plain Layout
  5443. 31
  5444. \end_layout
  5445. \end_inset
  5446. </cell>
  5447. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5448. \begin_inset Text
  5449. \begin_layout Plain Layout
  5450. \end_layout
  5451. \end_inset
  5452. </cell>
  5453. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5454. \begin_inset Text
  5455. \begin_layout Plain Layout
  5456. CLASSIFIED/VEHICLE/BUS
  5457. \end_layout
  5458. \end_inset
  5459. </cell>
  5460. </row>
  5461. <row>
  5462. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5463. \begin_inset Text
  5464. \begin_layout Plain Layout
  5465. 11
  5466. \end_layout
  5467. \end_inset
  5468. </cell>
  5469. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5470. \begin_inset Text
  5471. \begin_layout Plain Layout
  5472. \end_layout
  5473. \end_inset
  5474. </cell>
  5475. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5476. \begin_inset Text
  5477. \begin_layout Plain Layout
  5478. CLASSIFIED/VEHICLE/CAR
  5479. \end_layout
  5480. \end_inset
  5481. </cell>
  5482. </row>
  5483. <row>
  5484. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5485. \begin_inset Text
  5486. \begin_layout Plain Layout
  5487. 1
  5488. \end_layout
  5489. \end_inset
  5490. </cell>
  5491. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5492. \begin_inset Text
  5493. \begin_layout Plain Layout
  5494. 10
  5495. \end_layout
  5496. \end_inset
  5497. </cell>
  5498. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5499. \begin_inset Text
  5500. \begin_layout Plain Layout
  5501. CLASSIFIED/IDLE/SITTING
  5502. \end_layout
  5503. \end_inset
  5504. </cell>
  5505. </row>
  5506. <row>
  5507. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5508. \begin_inset Text
  5509. \begin_layout Plain Layout
  5510. 1
  5511. \end_layout
  5512. \end_inset
  5513. </cell>
  5514. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5515. \begin_inset Text
  5516. \begin_layout Plain Layout
  5517. beed
  5518. \end_layout
  5519. \end_inset
  5520. </cell>
  5521. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5522. \begin_inset Text
  5523. \begin_layout Plain Layout
  5524. CLASSIFIED/VEHICLE/BUS
  5525. \end_layout
  5526. \end_inset
  5527. </cell>
  5528. </row>
  5529. <row>
  5530. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5531. \begin_inset Text
  5532. \begin_layout Plain Layout
  5533. 1
  5534. \end_layout
  5535. \end_inset
  5536. </cell>
  5537. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5538. \begin_inset Text
  5539. \begin_layout Plain Layout
  5540. breathing
  5541. \end_layout
  5542. \end_inset
  5543. </cell>
  5544. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5545. \begin_inset Text
  5546. \begin_layout Plain Layout
  5547. CLASSIFIED/VEHICLE/BUS
  5548. \end_layout
  5549. \end_inset
  5550. </cell>
  5551. </row>
  5552. <row>
  5553. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5554. \begin_inset Text
  5555. \begin_layout Plain Layout
  5556. 1
  5557. \end_layout
  5558. \end_inset
  5559. </cell>
  5560. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5561. \begin_inset Text
  5562. \begin_layout Plain Layout
  5563. cycle
  5564. \end_layout
  5565. \end_inset
  5566. </cell>
  5567. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5568. \begin_inset Text
  5569. \begin_layout Plain Layout
  5570. CLASSIFIED/VEHICLE/BUS
  5571. \end_layout
  5572. \end_inset
  5573. </cell>
  5574. </row>
  5575. <row>
  5576. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5577. \begin_inset Text
  5578. \begin_layout Plain Layout
  5579. 1
  5580. \end_layout
  5581. \end_inset
  5582. </cell>
  5583. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5584. \begin_inset Text
  5585. \begin_layout Plain Layout
  5586. Dancing
  5587. \end_layout
  5588. \end_inset
  5589. </cell>
  5590. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5591. \begin_inset Text
  5592. \begin_layout Plain Layout
  5593. CLASSIFIED/WALKING
  5594. \end_layout
  5595. \end_inset
  5596. </cell>
  5597. </row>
  5598. <row>
  5599. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5600. \begin_inset Text
  5601. \begin_layout Plain Layout
  5602. 1
  5603. \end_layout
  5604. \end_inset
  5605. </cell>
  5606. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5607. \begin_inset Text
  5608. \begin_layout Plain Layout
  5609. driving
  5610. \end_layout
  5611. \end_inset
  5612. </cell>
  5613. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5614. \begin_inset Text
  5615. \begin_layout Plain Layout
  5616. CLASSIFIED/WALKING/STAIRS/DOWN
  5617. \end_layout
  5618. \end_inset
  5619. </cell>
  5620. </row>
  5621. <row>
  5622. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5623. \begin_inset Text
  5624. \begin_layout Plain Layout
  5625. 1
  5626. \end_layout
  5627. \end_inset
  5628. </cell>
  5629. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5630. \begin_inset Text
  5631. \begin_layout Plain Layout
  5632. drunkenly going to the bathroom to pee.
  5633. \end_layout
  5634. \end_inset
  5635. </cell>
  5636. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5637. \begin_inset Text
  5638. \begin_layout Plain Layout
  5639. CLASSIFIED/VEHICLE/CAR
  5640. \end_layout
  5641. \end_inset
  5642. </cell>
  5643. </row>
  5644. <row>
  5645. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5646. \begin_inset Text
  5647. \begin_layout Plain Layout
  5648. 1
  5649. \end_layout
  5650. \end_inset
  5651. </cell>
  5652. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5653. \begin_inset Text
  5654. \begin_layout Plain Layout
  5655. fixing my clothes
  5656. \end_layout
  5657. \end_inset
  5658. </cell>
  5659. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5660. \begin_inset Text
  5661. \begin_layout Plain Layout
  5662. CLASSIFIED/VEHICLE/BUS
  5663. \end_layout
  5664. \end_inset
  5665. </cell>
  5666. </row>
  5667. <row>
  5668. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5669. \begin_inset Text
  5670. \begin_layout Plain Layout
  5671. 1
  5672. \end_layout
  5673. \end_inset
  5674. </cell>
  5675. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5676. \begin_inset Text
  5677. \begin_layout Plain Layout
  5678. hhhg
  5679. \end_layout
  5680. \end_inset
  5681. </cell>
  5682. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5683. \begin_inset Text
  5684. \begin_layout Plain Layout
  5685. CLASSIFIED/VEHICLE/BUS
  5686. \end_layout
  5687. \end_inset
  5688. </cell>
  5689. </row>
  5690. <row>
  5691. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5692. \begin_inset Text
  5693. \begin_layout Plain Layout
  5694. 2
  5695. \end_layout
  5696. \end_inset
  5697. </cell>
  5698. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5699. \begin_inset Text
  5700. \begin_layout Plain Layout
  5701. In a car
  5702. \end_layout
  5703. \end_inset
  5704. </cell>
  5705. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5706. \begin_inset Text
  5707. \begin_layout Plain Layout
  5708. CLASSIFIED/VEHICLE/BUS
  5709. \end_layout
  5710. \end_inset
  5711. </cell>
  5712. </row>
  5713. <row>
  5714. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5715. \begin_inset Text
  5716. \begin_layout Plain Layout
  5717. 1
  5718. \end_layout
  5719. \end_inset
  5720. </cell>
  5721. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5722. \begin_inset Text
  5723. \begin_layout Plain Layout
  5724. in a house
  5725. \end_layout
  5726. \end_inset
  5727. </cell>
  5728. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5729. \begin_inset Text
  5730. \begin_layout Plain Layout
  5731. CLASSIFIED/VEHICLE/CAR
  5732. \end_layout
  5733. \end_inset
  5734. </cell>
  5735. </row>
  5736. <row>
  5737. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5738. \begin_inset Text
  5739. \begin_layout Plain Layout
  5740. 4
  5741. \end_layout
  5742. \end_inset
  5743. </cell>
  5744. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5745. \begin_inset Text
  5746. \begin_layout Plain Layout
  5747. in bed
  5748. \end_layout
  5749. \end_inset
  5750. </cell>
  5751. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5752. \begin_inset Text
  5753. \begin_layout Plain Layout
  5754. CLASSIFIED/VEHICLE/BUS
  5755. \end_layout
  5756. \end_inset
  5757. </cell>
  5758. </row>
  5759. <row>
  5760. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5761. \begin_inset Text
  5762. \begin_layout Plain Layout
  5763. 2
  5764. \end_layout
  5765. \end_inset
  5766. </cell>
  5767. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5768. \begin_inset Text
  5769. \begin_layout Plain Layout
  5770. it is a cat
  5771. \end_layout
  5772. \end_inset
  5773. </cell>
  5774. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5775. \begin_inset Text
  5776. \begin_layout Plain Layout
  5777. CLASSIFIED/VEHICLE/BUS
  5778. \end_layout
  5779. \end_inset
  5780. </cell>
  5781. </row>
  5782. <row>
  5783. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5784. \begin_inset Text
  5785. \begin_layout Plain Layout
  5786. 1
  5787. \end_layout
  5788. \end_inset
  5789. </cell>
  5790. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5791. \begin_inset Text
  5792. \begin_layout Plain Layout
  5793. kitchen work
  5794. \end_layout
  5795. \end_inset
  5796. </cell>
  5797. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5798. \begin_inset Text
  5799. \begin_layout Plain Layout
  5800. CLASSIFIED/IDLE/STANDING
  5801. \end_layout
  5802. \end_inset
  5803. </cell>
  5804. </row>
  5805. <row>
  5806. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5807. \begin_inset Text
  5808. \begin_layout Plain Layout
  5809. 1
  5810. \end_layout
  5811. \end_inset
  5812. </cell>
  5813. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5814. \begin_inset Text
  5815. \begin_layout Plain Layout
  5816. laundry
  5817. \end_layout
  5818. \end_inset
  5819. </cell>
  5820. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5821. \begin_inset Text
  5822. \begin_layout Plain Layout
  5823. CLASSIFIED/VEHICLE/CAR
  5824. \end_layout
  5825. \end_inset
  5826. </cell>
  5827. </row>
  5828. <row>
  5829. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5830. \begin_inset Text
  5831. \begin_layout Plain Layout
  5832. 1
  5833. \end_layout
  5834. \end_inset
  5835. </cell>
  5836. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5837. \begin_inset Text
  5838. \begin_layout Plain Layout
  5839. lay in bed
  5840. \end_layout
  5841. \end_inset
  5842. </cell>
  5843. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5844. \begin_inset Text
  5845. \begin_layout Plain Layout
  5846. CLASSIFIED/VEHICLE/BUS
  5847. \end_layout
  5848. \end_inset
  5849. </cell>
  5850. </row>
  5851. <row>
  5852. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5853. \begin_inset Text
  5854. \begin_layout Plain Layout
  5855. 1
  5856. \end_layout
  5857. \end_inset
  5858. </cell>
  5859. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5860. \begin_inset Text
  5861. \begin_layout Plain Layout
  5862. layin down
  5863. \end_layout
  5864. \end_inset
  5865. </cell>
  5866. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5867. \begin_inset Text
  5868. \begin_layout Plain Layout
  5869. CLASSIFIED/IDLE/STANDING
  5870. \end_layout
  5871. \end_inset
  5872. </cell>
  5873. </row>
  5874. <row>
  5875. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5876. \begin_inset Text
  5877. \begin_layout Plain Layout
  5878. 1
  5879. \end_layout
  5880. \end_inset
  5881. </cell>
  5882. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5883. \begin_inset Text
  5884. \begin_layout Plain Layout
  5885. layin in bed
  5886. \end_layout
  5887. \end_inset
  5888. </cell>
  5889. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5890. \begin_inset Text
  5891. \begin_layout Plain Layout
  5892. CLASSIFIED/VEHICLE/BUS
  5893. \end_layout
  5894. \end_inset
  5895. </cell>
  5896. </row>
  5897. <row>
  5898. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5899. \begin_inset Text
  5900. \begin_layout Plain Layout
  5901. 3
  5902. \end_layout
  5903. \end_inset
  5904. </cell>
  5905. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5906. \begin_inset Text
  5907. \begin_layout Plain Layout
  5908. laying down
  5909. \end_layout
  5910. \end_inset
  5911. </cell>
  5912. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5913. \begin_inset Text
  5914. \begin_layout Plain Layout
  5915. CLASSIFIED/VEHICLE/BUS
  5916. \end_layout
  5917. \end_inset
  5918. </cell>
  5919. </row>
  5920. <row>
  5921. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5922. \begin_inset Text
  5923. \begin_layout Plain Layout
  5924. 1
  5925. \end_layout
  5926. \end_inset
  5927. </cell>
  5928. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5929. \begin_inset Text
  5930. \begin_layout Plain Layout
  5931. laying down
  5932. \end_layout
  5933. \end_inset
  5934. </cell>
  5935. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5936. \begin_inset Text
  5937. \begin_layout Plain Layout
  5938. CLASSIFIED/VEHICLE/CAR
  5939. \end_layout
  5940. \end_inset
  5941. </cell>
  5942. </row>
  5943. <row>
  5944. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5945. \begin_inset Text
  5946. \begin_layout Plain Layout
  5947. 1
  5948. \end_layout
  5949. \end_inset
  5950. </cell>
  5951. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5952. \begin_inset Text
  5953. \begin_layout Plain Layout
  5954. laying down in bed
  5955. \end_layout
  5956. \end_inset
  5957. </cell>
  5958. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5959. \begin_inset Text
  5960. \begin_layout Plain Layout
  5961. CLASSIFIED/VEHICLE/BUS
  5962. \end_layout
  5963. \end_inset
  5964. </cell>
  5965. </row>
  5966. <row>
  5967. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5968. \begin_inset Text
  5969. \begin_layout Plain Layout
  5970. 3
  5971. \end_layout
  5972. \end_inset
  5973. </cell>
  5974. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5975. \begin_inset Text
  5976. \begin_layout Plain Layout
  5977. laying in bed
  5978. \end_layout
  5979. \end_inset
  5980. </cell>
  5981. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  5982. \begin_inset Text
  5983. \begin_layout Plain Layout
  5984. CLASSIFIED/VEHICLE/BUS
  5985. \end_layout
  5986. \end_inset
  5987. </cell>
  5988. </row>
  5989. <row>
  5990. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  5991. \begin_inset Text
  5992. \begin_layout Plain Layout
  5993. 1
  5994. \end_layout
  5995. \end_inset
  5996. </cell>
  5997. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  5998. \begin_inset Text
  5999. \begin_layout Plain Layout
  6000. laying in bed with the phone on my stomach
  6001. \end_layout
  6002. \end_inset
  6003. </cell>
  6004. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6005. \begin_inset Text
  6006. \begin_layout Plain Layout
  6007. CLASSIFIED/VEHICLE/CAR
  6008. \end_layout
  6009. \end_inset
  6010. </cell>
  6011. </row>
  6012. <row>
  6013. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6014. \begin_inset Text
  6015. \begin_layout Plain Layout
  6016. 1
  6017. \end_layout
  6018. \end_inset
  6019. </cell>
  6020. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6021. \begin_inset Text
  6022. \begin_layout Plain Layout
  6023. lie in bed
  6024. \end_layout
  6025. \end_inset
  6026. </cell>
  6027. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6028. \begin_inset Text
  6029. \begin_layout Plain Layout
  6030. CLASSIFIED/VEHICLE/BUS
  6031. \end_layout
  6032. \end_inset
  6033. </cell>
  6034. </row>
  6035. <row>
  6036. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6037. \begin_inset Text
  6038. \begin_layout Plain Layout
  6039. 1
  6040. \end_layout
  6041. \end_inset
  6042. </cell>
  6043. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6044. \begin_inset Text
  6045. \begin_layout Plain Layout
  6046. ligger pa golvet
  6047. \end_layout
  6048. \end_inset
  6049. </cell>
  6050. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6051. \begin_inset Text
  6052. \begin_layout Plain Layout
  6053. CLASSIFIED/VEHICLE/BUS
  6054. \end_layout
  6055. \end_inset
  6056. </cell>
  6057. </row>
  6058. <row>
  6059. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6060. \begin_inset Text
  6061. \begin_layout Plain Layout
  6062. 1
  6063. \end_layout
  6064. \end_inset
  6065. </cell>
  6066. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6067. \begin_inset Text
  6068. \begin_layout Plain Layout
  6069. love
  6070. \end_layout
  6071. \end_inset
  6072. </cell>
  6073. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6074. \begin_inset Text
  6075. \begin_layout Plain Layout
  6076. CLASSIFIED/VEHICLE/CAR
  6077. \end_layout
  6078. \end_inset
  6079. </cell>
  6080. </row>
  6081. <row>
  6082. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6083. \begin_inset Text
  6084. \begin_layout Plain Layout
  6085. 1
  6086. \end_layout
  6087. \end_inset
  6088. </cell>
  6089. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6090. \begin_inset Text
  6091. \begin_layout Plain Layout
  6092. lying in bed
  6093. \end_layout
  6094. \end_inset
  6095. </cell>
  6096. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6097. \begin_inset Text
  6098. \begin_layout Plain Layout
  6099. CLASSIFIED/VEHICLE/BUS
  6100. \end_layout
  6101. \end_inset
  6102. </cell>
  6103. </row>
  6104. <row>
  6105. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6106. \begin_inset Text
  6107. \begin_layout Plain Layout
  6108. 1
  6109. \end_layout
  6110. \end_inset
  6111. </cell>
  6112. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6113. \begin_inset Text
  6114. \begin_layout Plain Layout
  6115. moving phone
  6116. \end_layout
  6117. \end_inset
  6118. </cell>
  6119. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6120. \begin_inset Text
  6121. \begin_layout Plain Layout
  6122. CLASSIFIED/WALKING
  6123. \end_layout
  6124. \end_inset
  6125. </cell>
  6126. </row>
  6127. <row>
  6128. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6129. \begin_inset Text
  6130. \begin_layout Plain Layout
  6131. 1
  6132. \end_layout
  6133. \end_inset
  6134. </cell>
  6135. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6136. \begin_inset Text
  6137. \begin_layout Plain Layout
  6138. Nothing at all!
  6139. \end_layout
  6140. \end_inset
  6141. </cell>
  6142. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6143. \begin_inset Text
  6144. \begin_layout Plain Layout
  6145. CLASSIFIED/UNKNOWN
  6146. \end_layout
  6147. \end_inset
  6148. </cell>
  6149. </row>
  6150. <row>
  6151. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6152. \begin_inset Text
  6153. \begin_layout Plain Layout
  6154. 1
  6155. \end_layout
  6156. \end_inset
  6157. </cell>
  6158. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6159. \begin_inset Text
  6160. \begin_layout Plain Layout
  6161. passenger in car straight road 50mph
  6162. \end_layout
  6163. \end_inset
  6164. </cell>
  6165. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6166. \begin_inset Text
  6167. \begin_layout Plain Layout
  6168. CLASSIFIED/VEHICLE/BUS
  6169. \end_layout
  6170. \end_inset
  6171. </cell>
  6172. </row>
  6173. <row>
  6174. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6175. \begin_inset Text
  6176. \begin_layout Plain Layout
  6177. 1
  6178. \end_layout
  6179. \end_inset
  6180. </cell>
  6181. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6182. \begin_inset Text
  6183. \begin_layout Plain Layout
  6184. playin gamw
  6185. \end_layout
  6186. \end_inset
  6187. </cell>
  6188. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6189. \begin_inset Text
  6190. \begin_layout Plain Layout
  6191. CLASSIFIED/VEHICLE/BUS
  6192. \end_layout
  6193. \end_inset
  6194. </cell>
  6195. </row>
  6196. <row>
  6197. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6198. \begin_inset Text
  6199. \begin_layout Plain Layout
  6200. 1
  6201. \end_layout
  6202. \end_inset
  6203. </cell>
  6204. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6205. \begin_inset Text
  6206. \begin_layout Plain Layout
  6207. pooping
  6208. \end_layout
  6209. \end_inset
  6210. </cell>
  6211. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6212. \begin_inset Text
  6213. \begin_layout Plain Layout
  6214. CLASSIFIED/UNKNOWN
  6215. \end_layout
  6216. \end_inset
  6217. </cell>
  6218. </row>
  6219. <row>
  6220. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6221. \begin_inset Text
  6222. \begin_layout Plain Layout
  6223. 1
  6224. \end_layout
  6225. \end_inset
  6226. </cell>
  6227. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6228. \begin_inset Text
  6229. \begin_layout Plain Layout
  6230. Rolling around
  6231. \end_layout
  6232. \end_inset
  6233. </cell>
  6234. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6235. \begin_inset Text
  6236. \begin_layout Plain Layout
  6237. CLASSIFIED/WALKING
  6238. \end_layout
  6239. \end_inset
  6240. </cell>
  6241. </row>
  6242. <row>
  6243. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6244. \begin_inset Text
  6245. \begin_layout Plain Layout
  6246. 1
  6247. \end_layout
  6248. \end_inset
  6249. </cell>
  6250. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6251. \begin_inset Text
  6252. \begin_layout Plain Layout
  6253. Rotating the phone
  6254. \end_layout
  6255. \end_inset
  6256. </cell>
  6257. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6258. \begin_inset Text
  6259. \begin_layout Plain Layout
  6260. CLASSIFIED/WALKING/STAIRS/UP
  6261. \end_layout
  6262. \end_inset
  6263. </cell>
  6264. </row>
  6265. <row>
  6266. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6267. \begin_inset Text
  6268. \begin_layout Plain Layout
  6269. 1
  6270. \end_layout
  6271. \end_inset
  6272. </cell>
  6273. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6274. \begin_inset Text
  6275. \begin_layout Plain Layout
  6276. seating down
  6277. \end_layout
  6278. \end_inset
  6279. </cell>
  6280. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6281. \begin_inset Text
  6282. \begin_layout Plain Layout
  6283. CLASSIFIED/VEHICLE/BUS
  6284. \end_layout
  6285. \end_inset
  6286. </cell>
  6287. </row>
  6288. <row>
  6289. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6290. \begin_inset Text
  6291. \begin_layout Plain Layout
  6292. 1
  6293. \end_layout
  6294. \end_inset
  6295. </cell>
  6296. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6297. \begin_inset Text
  6298. \begin_layout Plain Layout
  6299. seting
  6300. \end_layout
  6301. \end_inset
  6302. </cell>
  6303. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6304. \begin_inset Text
  6305. \begin_layout Plain Layout
  6306. CLASSIFIED/VEHICLE/BUS
  6307. \end_layout
  6308. \end_inset
  6309. </cell>
  6310. </row>
  6311. <row>
  6312. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6313. \begin_inset Text
  6314. \begin_layout Plain Layout
  6315. 1
  6316. \end_layout
  6317. \end_inset
  6318. </cell>
  6319. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6320. \begin_inset Text
  6321. \begin_layout Plain Layout
  6322. shake the device
  6323. \end_layout
  6324. \end_inset
  6325. </cell>
  6326. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6327. \begin_inset Text
  6328. \begin_layout Plain Layout
  6329. CLASSIFIED/VEHICLE/CAR
  6330. \end_layout
  6331. \end_inset
  6332. </cell>
  6333. </row>
  6334. <row>
  6335. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6336. \begin_inset Text
  6337. \begin_layout Plain Layout
  6338. 1
  6339. \end_layout
  6340. \end_inset
  6341. </cell>
  6342. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6343. \begin_inset Text
  6344. \begin_layout Plain Layout
  6345. shaking my leg sitting on my bed
  6346. \end_layout
  6347. \end_inset
  6348. </cell>
  6349. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6350. \begin_inset Text
  6351. \begin_layout Plain Layout
  6352. CLASSIFIED/VEHICLE/BUS
  6353. \end_layout
  6354. \end_inset
  6355. </cell>
  6356. </row>
  6357. <row>
  6358. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6359. \begin_inset Text
  6360. \begin_layout Plain Layout
  6361. 1
  6362. \end_layout
  6363. \end_inset
  6364. </cell>
  6365. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6366. \begin_inset Text
  6367. \begin_layout Plain Layout
  6368. shaking phone violently!!!
  6369. \end_layout
  6370. \end_inset
  6371. </cell>
  6372. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6373. \begin_inset Text
  6374. \begin_layout Plain Layout
  6375. CLASSIFIED/WALKING/STAIRS/UP
  6376. \end_layout
  6377. \end_inset
  6378. </cell>
  6379. </row>
  6380. <row>
  6381. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6382. \begin_inset Text
  6383. \begin_layout Plain Layout
  6384. 1
  6385. \end_layout
  6386. \end_inset
  6387. </cell>
  6388. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6389. \begin_inset Text
  6390. \begin_layout Plain Layout
  6391. siq
  6392. \end_layout
  6393. \end_inset
  6394. </cell>
  6395. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6396. \begin_inset Text
  6397. \begin_layout Plain Layout
  6398. CLASSIFIED/VEHICLE/BUS
  6399. \end_layout
  6400. \end_inset
  6401. </cell>
  6402. </row>
  6403. <row>
  6404. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6405. \begin_inset Text
  6406. \begin_layout Plain Layout
  6407. 1
  6408. \end_layout
  6409. \end_inset
  6410. </cell>
  6411. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6412. \begin_inset Text
  6413. \begin_layout Plain Layout
  6414. sitti
  6415. \end_layout
  6416. \end_inset
  6417. </cell>
  6418. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6419. \begin_inset Text
  6420. \begin_layout Plain Layout
  6421. CLASSIFIED/VEHICLE/BUS
  6422. \end_layout
  6423. \end_inset
  6424. </cell>
  6425. </row>
  6426. <row>
  6427. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6428. \begin_inset Text
  6429. \begin_layout Plain Layout
  6430. 1
  6431. \end_layout
  6432. \end_inset
  6433. </cell>
  6434. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6435. \begin_inset Text
  6436. \begin_layout Plain Layout
  6437. Sitting
  6438. \end_layout
  6439. \end_inset
  6440. </cell>
  6441. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6442. \begin_inset Text
  6443. \begin_layout Plain Layout
  6444. CLASSIFIED/IDLE/SITTING
  6445. \end_layout
  6446. \end_inset
  6447. </cell>
  6448. </row>
  6449. <row>
  6450. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6451. \begin_inset Text
  6452. \begin_layout Plain Layout
  6453. 1
  6454. \end_layout
  6455. \end_inset
  6456. </cell>
  6457. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6458. \begin_inset Text
  6459. \begin_layout Plain Layout
  6460. Sitting
  6461. \end_layout
  6462. \end_inset
  6463. </cell>
  6464. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6465. \begin_inset Text
  6466. \begin_layout Plain Layout
  6467. CLASSIFIED/IDLE/STANDING
  6468. \end_layout
  6469. \end_inset
  6470. </cell>
  6471. </row>
  6472. <row>
  6473. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6474. \begin_inset Text
  6475. \begin_layout Plain Layout
  6476. 19
  6477. \end_layout
  6478. \end_inset
  6479. </cell>
  6480. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6481. \begin_inset Text
  6482. \begin_layout Plain Layout
  6483. Sitting
  6484. \end_layout
  6485. \end_inset
  6486. </cell>
  6487. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6488. \begin_inset Text
  6489. \begin_layout Plain Layout
  6490. CLASSIFIED/VEHICLE/BUS
  6491. \end_layout
  6492. \end_inset
  6493. </cell>
  6494. </row>
  6495. <row>
  6496. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6497. \begin_inset Text
  6498. \begin_layout Plain Layout
  6499. 6
  6500. \end_layout
  6501. \end_inset
  6502. </cell>
  6503. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6504. \begin_inset Text
  6505. \begin_layout Plain Layout
  6506. Sitting
  6507. \end_layout
  6508. \end_inset
  6509. </cell>
  6510. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6511. \begin_inset Text
  6512. \begin_layout Plain Layout
  6513. CLASSIFIED/VEHICLE/CAR
  6514. \end_layout
  6515. \end_inset
  6516. </cell>
  6517. </row>
  6518. <row>
  6519. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6520. \begin_inset Text
  6521. \begin_layout Plain Layout
  6522. 1
  6523. \end_layout
  6524. \end_inset
  6525. </cell>
  6526. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6527. \begin_inset Text
  6528. \begin_layout Plain Layout
  6529. sitting at my desk
  6530. \end_layout
  6531. \end_inset
  6532. </cell>
  6533. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6534. \begin_inset Text
  6535. \begin_layout Plain Layout
  6536. CLASSIFIED/VEHICLE/BUS
  6537. \end_layout
  6538. \end_inset
  6539. </cell>
  6540. </row>
  6541. <row>
  6542. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6543. \begin_inset Text
  6544. \begin_layout Plain Layout
  6545. 1
  6546. \end_layout
  6547. \end_inset
  6548. </cell>
  6549. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6550. \begin_inset Text
  6551. \begin_layout Plain Layout
  6552. Sitting down
  6553. \end_layout
  6554. \end_inset
  6555. </cell>
  6556. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6557. \begin_inset Text
  6558. \begin_layout Plain Layout
  6559. CLASSIFIED/VEHICLE/BUS
  6560. \end_layout
  6561. \end_inset
  6562. </cell>
  6563. </row>
  6564. <row>
  6565. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6566. \begin_inset Text
  6567. \begin_layout Plain Layout
  6568. 1
  6569. \end_layout
  6570. \end_inset
  6571. </cell>
  6572. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6573. \begin_inset Text
  6574. \begin_layout Plain Layout
  6575. sitting on my ass
  6576. \end_layout
  6577. \end_inset
  6578. </cell>
  6579. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6580. \begin_inset Text
  6581. \begin_layout Plain Layout
  6582. CLASSIFIED/VEHICLE/CAR
  6583. \end_layout
  6584. \end_inset
  6585. </cell>
  6586. </row>
  6587. <row>
  6588. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6589. \begin_inset Text
  6590. \begin_layout Plain Layout
  6591. 1
  6592. \end_layout
  6593. \end_inset
  6594. </cell>
  6595. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6596. \begin_inset Text
  6597. \begin_layout Plain Layout
  6598. sitting on the couch
  6599. \end_layout
  6600. \end_inset
  6601. </cell>
  6602. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6603. \begin_inset Text
  6604. \begin_layout Plain Layout
  6605. CLASSIFIED/VEHICLE/BUS
  6606. \end_layout
  6607. \end_inset
  6608. </cell>
  6609. </row>
  6610. <row>
  6611. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6612. \begin_inset Text
  6613. \begin_layout Plain Layout
  6614. 1
  6615. \end_layout
  6616. \end_inset
  6617. </cell>
  6618. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6619. \begin_inset Text
  6620. \begin_layout Plain Layout
  6621. sjxjxgzog
  6622. \end_layout
  6623. \end_inset
  6624. </cell>
  6625. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6626. \begin_inset Text
  6627. \begin_layout Plain Layout
  6628. CLASSIFIED/VEHICLE/BUS
  6629. \end_layout
  6630. \end_inset
  6631. </cell>
  6632. </row>
  6633. <row>
  6634. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6635. \begin_inset Text
  6636. \begin_layout Plain Layout
  6637. 1
  6638. \end_layout
  6639. \end_inset
  6640. </cell>
  6641. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6642. \begin_inset Text
  6643. \begin_layout Plain Layout
  6644. sleep
  6645. \end_layout
  6646. \end_inset
  6647. </cell>
  6648. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6649. \begin_inset Text
  6650. \begin_layout Plain Layout
  6651. CLASSIFIED/IDLE/SITTING
  6652. \end_layout
  6653. \end_inset
  6654. </cell>
  6655. </row>
  6656. <row>
  6657. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6658. \begin_inset Text
  6659. \begin_layout Plain Layout
  6660. 2
  6661. \end_layout
  6662. \end_inset
  6663. </cell>
  6664. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6665. \begin_inset Text
  6666. \begin_layout Plain Layout
  6667. sleeping
  6668. \end_layout
  6669. \end_inset
  6670. </cell>
  6671. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6672. \begin_inset Text
  6673. \begin_layout Plain Layout
  6674. CLASSIFIED/VEHICLE/BUS
  6675. \end_layout
  6676. \end_inset
  6677. </cell>
  6678. </row>
  6679. <row>
  6680. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6681. \begin_inset Text
  6682. \begin_layout Plain Layout
  6683. 1
  6684. \end_layout
  6685. \end_inset
  6686. </cell>
  6687. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6688. \begin_inset Text
  6689. \begin_layout Plain Layout
  6690. Standing
  6691. \end_layout
  6692. \end_inset
  6693. </cell>
  6694. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6695. \begin_inset Text
  6696. \begin_layout Plain Layout
  6697. CLASSIFIED/VEHICLE/BUS
  6698. \end_layout
  6699. \end_inset
  6700. </cell>
  6701. </row>
  6702. <row>
  6703. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6704. \begin_inset Text
  6705. \begin_layout Plain Layout
  6706. 1
  6707. \end_layout
  6708. \end_inset
  6709. </cell>
  6710. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6711. \begin_inset Text
  6712. \begin_layout Plain Layout
  6713. Standing
  6714. \end_layout
  6715. \end_inset
  6716. </cell>
  6717. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6718. \begin_inset Text
  6719. \begin_layout Plain Layout
  6720. CLASSIFIED/VEHICLE/CAR
  6721. \end_layout
  6722. \end_inset
  6723. </cell>
  6724. </row>
  6725. <row>
  6726. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6727. \begin_inset Text
  6728. \begin_layout Plain Layout
  6729. 1
  6730. \end_layout
  6731. \end_inset
  6732. </cell>
  6733. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6734. \begin_inset Text
  6735. \begin_layout Plain Layout
  6736. swinging
  6737. \end_layout
  6738. \end_inset
  6739. </cell>
  6740. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6741. \begin_inset Text
  6742. \begin_layout Plain Layout
  6743. CLASSIFIED/IDLE/SITTING
  6744. \end_layout
  6745. \end_inset
  6746. </cell>
  6747. </row>
  6748. <row>
  6749. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6750. \begin_inset Text
  6751. \begin_layout Plain Layout
  6752. 1
  6753. \end_layout
  6754. \end_inset
  6755. </cell>
  6756. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6757. \begin_inset Text
  6758. \begin_layout Plain Layout
  6759. test
  6760. \end_layout
  6761. \end_inset
  6762. </cell>
  6763. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6764. \begin_inset Text
  6765. \begin_layout Plain Layout
  6766. CLASSIFIED/VEHICLE/CAR
  6767. \end_layout
  6768. \end_inset
  6769. </cell>
  6770. </row>
  6771. <row>
  6772. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6773. \begin_inset Text
  6774. \begin_layout Plain Layout
  6775. 2
  6776. \end_layout
  6777. \end_inset
  6778. </cell>
  6779. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6780. \begin_inset Text
  6781. \begin_layout Plain Layout
  6782. train
  6783. \end_layout
  6784. \end_inset
  6785. </cell>
  6786. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6787. \begin_inset Text
  6788. \begin_layout Plain Layout
  6789. CLASSIFIED/VEHICLE/BUS
  6790. \end_layout
  6791. \end_inset
  6792. </cell>
  6793. </row>
  6794. <row>
  6795. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6796. \begin_inset Text
  6797. \begin_layout Plain Layout
  6798. 1
  6799. \end_layout
  6800. \end_inset
  6801. </cell>
  6802. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6803. \begin_inset Text
  6804. \begin_layout Plain Layout
  6805. traveling by bus
  6806. \end_layout
  6807. \end_inset
  6808. </cell>
  6809. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6810. \begin_inset Text
  6811. \begin_layout Plain Layout
  6812. CLASSIFIED/VEHICLE/CAR
  6813. \end_layout
  6814. \end_inset
  6815. </cell>
  6816. </row>
  6817. <row>
  6818. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6819. \begin_inset Text
  6820. \begin_layout Plain Layout
  6821. 1
  6822. \end_layout
  6823. \end_inset
  6824. </cell>
  6825. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6826. \begin_inset Text
  6827. \begin_layout Plain Layout
  6828. traveling by car
  6829. \end_layout
  6830. \end_inset
  6831. </cell>
  6832. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6833. \begin_inset Text
  6834. \begin_layout Plain Layout
  6835. CLASSIFIED/VEHICLE/BUS
  6836. \end_layout
  6837. \end_inset
  6838. </cell>
  6839. </row>
  6840. <row>
  6841. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6842. \begin_inset Text
  6843. \begin_layout Plain Layout
  6844. 1
  6845. \end_layout
  6846. \end_inset
  6847. </cell>
  6848. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6849. \begin_inset Text
  6850. \begin_layout Plain Layout
  6851. travelling by bus
  6852. \end_layout
  6853. \end_inset
  6854. </cell>
  6855. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6856. \begin_inset Text
  6857. \begin_layout Plain Layout
  6858. CLASSIFIED/VEHICLE/CAR
  6859. \end_layout
  6860. \end_inset
  6861. </cell>
  6862. </row>
  6863. <row>
  6864. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6865. \begin_inset Text
  6866. \begin_layout Plain Layout
  6867. 2
  6868. \end_layout
  6869. \end_inset
  6870. </cell>
  6871. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6872. \begin_inset Text
  6873. \begin_layout Plain Layout
  6874. travelling by s line
  6875. \end_layout
  6876. \end_inset
  6877. </cell>
  6878. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6879. \begin_inset Text
  6880. \begin_layout Plain Layout
  6881. CLASSIFIED/VEHICLE/BUS
  6882. \end_layout
  6883. \end_inset
  6884. </cell>
  6885. </row>
  6886. <row>
  6887. <cell alignment="right" valignment="top" topline="true" leftline="true" usebox="none">
  6888. \begin_inset Text
  6889. \begin_layout Plain Layout
  6890. 3
  6891. \end_layout
  6892. \end_inset
  6893. </cell>
  6894. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6895. \begin_inset Text
  6896. \begin_layout Plain Layout
  6897. UNCLASSIFIED/NOTCORRECTED
  6898. \end_layout
  6899. \end_inset
  6900. </cell>
  6901. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6902. \begin_inset Text
  6903. \begin_layout Plain Layout
  6904. CLASSIFIED/DANCING
  6905. \end_layout
  6906. \end_inset
  6907. </cell>
  6908. </row>
  6909. <row>
  6910. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6911. \begin_inset Text
  6912. \begin_layout Plain Layout
  6913. 69
  6914. \end_layout
  6915. \end_inset
  6916. </cell>
  6917. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6918. \begin_inset Text
  6919. \begin_layout Plain Layout
  6920. UNCLASSIFIED/NOTCORRECTED
  6921. \end_layout
  6922. \end_inset
  6923. </cell>
  6924. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6925. \begin_inset Text
  6926. \begin_layout Plain Layout
  6927. CLASSIFIED/IDLE/SITTING
  6928. \end_layout
  6929. \end_inset
  6930. </cell>
  6931. </row>
  6932. <row>
  6933. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6934. \begin_inset Text
  6935. \begin_layout Plain Layout
  6936. 29
  6937. \end_layout
  6938. \end_inset
  6939. </cell>
  6940. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6941. \begin_inset Text
  6942. \begin_layout Plain Layout
  6943. UNCLASSIFIED/NOTCORRECTED
  6944. \end_layout
  6945. \end_inset
  6946. </cell>
  6947. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6948. \begin_inset Text
  6949. \begin_layout Plain Layout
  6950. CLASSIFIED/IDLE/STANDING
  6951. \end_layout
  6952. \end_inset
  6953. </cell>
  6954. </row>
  6955. <row>
  6956. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6957. \begin_inset Text
  6958. \begin_layout Plain Layout
  6959. 32
  6960. \end_layout
  6961. \end_inset
  6962. </cell>
  6963. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6964. \begin_inset Text
  6965. \begin_layout Plain Layout
  6966. UNCLASSIFIED/NOTCORRECTED
  6967. \end_layout
  6968. \end_inset
  6969. </cell>
  6970. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6971. \begin_inset Text
  6972. \begin_layout Plain Layout
  6973. CLASSIFIED/VEHICLE/BUS
  6974. \end_layout
  6975. \end_inset
  6976. </cell>
  6977. </row>
  6978. <row>
  6979. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  6980. \begin_inset Text
  6981. \begin_layout Plain Layout
  6982. 14
  6983. \end_layout
  6984. \end_inset
  6985. </cell>
  6986. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  6987. \begin_inset Text
  6988. \begin_layout Plain Layout
  6989. UNCLASSIFIED/NOTCORRECTED
  6990. \end_layout
  6991. \end_inset
  6992. </cell>
  6993. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  6994. \begin_inset Text
  6995. \begin_layout Plain Layout
  6996. CLASSIFIED/VEHICLE/CAR
  6997. \end_layout
  6998. \end_inset
  6999. </cell>
  7000. </row>
  7001. <row>
  7002. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  7003. \begin_inset Text
  7004. \begin_layout Plain Layout
  7005. 16
  7006. \end_layout
  7007. \end_inset
  7008. </cell>
  7009. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  7010. \begin_inset Text
  7011. \begin_layout Plain Layout
  7012. UNCLASSIFIED/NOTCORRECTED
  7013. \end_layout
  7014. \end_inset
  7015. </cell>
  7016. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  7017. \begin_inset Text
  7018. \begin_layout Plain Layout
  7019. CLASSIFIED/WALKING
  7020. \end_layout
  7021. \end_inset
  7022. </cell>
  7023. </row>
  7024. <row>
  7025. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  7026. \begin_inset Text
  7027. \begin_layout Plain Layout
  7028. 5
  7029. \end_layout
  7030. \end_inset
  7031. </cell>
  7032. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  7033. \begin_inset Text
  7034. \begin_layout Plain Layout
  7035. Walking
  7036. \end_layout
  7037. \end_inset
  7038. </cell>
  7039. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  7040. \begin_inset Text
  7041. \begin_layout Plain Layout
  7042. CLASSIFIED/VEHICLE/BUS
  7043. \end_layout
  7044. \end_inset
  7045. </cell>
  7046. </row>
  7047. <row>
  7048. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  7049. \begin_inset Text
  7050. \begin_layout Plain Layout
  7051. 1
  7052. \end_layout
  7053. \end_inset
  7054. </cell>
  7055. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  7056. \begin_inset Text
  7057. \begin_layout Plain Layout
  7058. Walking
  7059. \end_layout
  7060. \end_inset
  7061. </cell>
  7062. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  7063. \begin_inset Text
  7064. \begin_layout Plain Layout
  7065. CLASSIFIED/VEHICLE/CAR
  7066. \end_layout
  7067. \end_inset
  7068. </cell>
  7069. </row>
  7070. <row>
  7071. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  7072. \begin_inset Text
  7073. \begin_layout Plain Layout
  7074. 1
  7075. \end_layout
  7076. \end_inset
  7077. </cell>
  7078. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  7079. \begin_inset Text
  7080. \begin_layout Plain Layout
  7081. Walking (downs tairs)
  7082. \end_layout
  7083. \end_inset
  7084. </cell>
  7085. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  7086. \begin_inset Text
  7087. \begin_layout Plain Layout
  7088. CLASSIFIED/WALKING/STAIRS/UP
  7089. \end_layout
  7090. \end_inset
  7091. </cell>
  7092. </row>
  7093. <row>
  7094. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  7095. \begin_inset Text
  7096. \begin_layout Plain Layout
  7097. 1
  7098. \end_layout
  7099. \end_inset
  7100. </cell>
  7101. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  7102. \begin_inset Text
  7103. \begin_layout Plain Layout
  7104. walking in a store
  7105. \end_layout
  7106. \end_inset
  7107. </cell>
  7108. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  7109. \begin_inset Text
  7110. \begin_layout Plain Layout
  7111. CLASSIFIED/VEHICLE/CAR
  7112. \end_layout
  7113. \end_inset
  7114. </cell>
  7115. </row>
  7116. <row>
  7117. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  7118. \begin_inset Text
  7119. \begin_layout Plain Layout
  7120. 1
  7121. \end_layout
  7122. \end_inset
  7123. </cell>
  7124. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  7125. \begin_inset Text
  7126. \begin_layout Plain Layout
  7127. walking in circles
  7128. \end_layout
  7129. \end_inset
  7130. </cell>
  7131. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  7132. \begin_inset Text
  7133. \begin_layout Plain Layout
  7134. CLASSIFIED/VEHICLE/CAR
  7135. \end_layout
  7136. \end_inset
  7137. </cell>
  7138. </row>
  7139. <row>
  7140. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  7141. \begin_inset Text
  7142. \begin_layout Plain Layout
  7143. 1
  7144. \end_layout
  7145. \end_inset
  7146. </cell>
  7147. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  7148. \begin_inset Text
  7149. \begin_layout Plain Layout
  7150. watching amovie!
  7151. \end_layout
  7152. \end_inset
  7153. </cell>
  7154. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  7155. \begin_inset Text
  7156. \begin_layout Plain Layout
  7157. CLASSIFIED/VEHICLE/BUS
  7158. \end_layout
  7159. \end_inset
  7160. </cell>
  7161. </row>
  7162. <row>
  7163. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  7164. \begin_inset Text
  7165. \begin_layout Plain Layout
  7166. 1
  7167. \end_layout
  7168. \end_inset
  7169. </cell>
  7170. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  7171. \begin_inset Text
  7172. \begin_layout Plain Layout
  7173. watching TV
  7174. \end_layout
  7175. \end_inset
  7176. </cell>
  7177. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  7178. \begin_inset Text
  7179. \begin_layout Plain Layout
  7180. CLASSIFIED/VEHICLE/BUS
  7181. \end_layout
  7182. \end_inset
  7183. </cell>
  7184. </row>
  7185. <row>
  7186. <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
  7187. \begin_inset Text
  7188. \begin_layout Plain Layout
  7189. 1
  7190. \end_layout
  7191. \end_inset
  7192. </cell>
  7193. <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
  7194. \begin_inset Text
  7195. \begin_layout Plain Layout
  7196. work in the airport
  7197. \end_layout
  7198. \end_inset
  7199. </cell>
  7200. <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
  7201. \begin_inset Text
  7202. \begin_layout Plain Layout
  7203. CLASSIFIED/VEHICLE/CAR
  7204. \end_layout
  7205. \end_inset
  7206. </cell>
  7207. </row>
  7208. <row>
  7209. <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  7210. \begin_inset Text
  7211. \begin_layout Plain Layout
  7212. 1
  7213. \end_layout
  7214. \end_inset
  7215. </cell>
  7216. <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
  7217. \begin_inset Text
  7218. \begin_layout Plain Layout
  7219. z
  7220. \end_layout
  7221. \end_inset
  7222. </cell>
  7223. <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
  7224. \begin_inset Text
  7225. \begin_layout Plain Layout
  7226. CLASSIFIED/VEHICLE/BUS
  7227. \end_layout
  7228. \end_inset
  7229. </cell>
  7230. </row>
  7231. </lyxtabular>
  7232. \end_inset
  7233. \end_layout
  7234. \begin_layout Standard
  7235. \begin_inset Float table
  7236. placement H
  7237. wide false
  7238. sideways false
  7239. status open
  7240. \begin_layout Plain Layout
  7241. \begin_inset Caption
  7242. \begin_layout Plain Layout
  7243. User-annotated
  7244. \noun on
  7245. Sensor Logger
  7246. \noun default
  7247. results
  7248. \begin_inset CommandInset label
  7249. LatexCommand label
  7250. name "tab:User-annotated-Sensor-Logger"
  7251. \end_inset
  7252. \end_layout
  7253. \end_inset
  7254. \end_layout
  7255. \end_inset
  7256. \end_layout
  7257. \begin_layout Standard
  7258. \begin_inset Newpage pagebreak
  7259. \end_inset
  7260. \begin_inset CommandInset bibtex
  7261. LatexCommand bibtex
  7262. bibfiles "/home/chris/Projects/Java/ContextApi/papers/project"
  7263. options "bibtotoc,savetrees"
  7264. \end_inset
  7265. \end_layout
  7266. \end_body
  7267. \end_document