SlideShare ist ein Scribd-Unternehmen logo
1 von 30
Bridging the Gap: 

Machine Learning for Ubicomp
Thomas Ploetz
— ML Primer & ML applications for Ubicomp —
What is Machine Learning?
• Develop algorithms (“computer programs” [sic!] …) that adapt
(learn!) towards generalisation through analysing sample data
“Machine learning studies computer algorithms for
learning to do stuff”
[Robert Schapire]
2
Machine Learning → Pattern Recognition
Fink, Markov Models for Pattern Recognition, 2nd ed. Springer, 2014
C. M. Bishop, Pattern Recognition and Machine Learning. Springer, 2006.
3
820 840 860 880 900 920 940 960 980
−5
0
5
time [m]
acc[g]
Sample acceleration data collected fromthe wrist (100Hz)
823 823.5 824 824.5 825 825.5
−2
0
2
time [m]
acc[g]
0 0.1 0.2 0.3 0.4
0
5
10
15
20
0 0.1 0.2 0.3 0.4
0
5
10
15
20
0 0.1 0.2 0.3 0.4
0
5
10
15
20
Ploetz et al., UbiComp, 2012.Hammerla, 2015.
The Machine Learning Principles
1. Use parametric models to represent classes of interest
2. Use statistical learning for deriving parameter values from
representative sample sets
4 [from the Internet …]
3 Postulates of PR / ML (there are more …)
1. Collect information about problem area Ω → representative sample set
5
y additional information, i.e., annotation
= (1
fff(xxx), y1),2
fff(xxx), y2), . . . ,N
fff(xxx), yN )
2. Features characterise patterns’ affiliation to a specific class
fff(x) ccc, with dim(ccc) dim( fff)
3. Features form compact space 

(per class) in global feature
space 

(compactness)
Principles of PR / ML
Classification represents mapping:
Classification → costs, optimise average loss V(f):
= arg min V ( )
ccc k {1, 2, . . . , K} or ccc {0, 1, . . . , K} (with rejection)
Classification systems:
fff(xxx) recording preprocessing feature calc. ccc classification k
6
PR / ML Systems — Overview
Recording
(Digitalisation, Quantisation)
Preprocessing
Segmentation
Feature Extraction
Association of feature vector
to pattern class
Training or refreshing of
classifier
Classifier
feature vector
classification parameters
classified
feature vector
supervised
learning
decision supervised learning
digital pattern
improved pattern
(for classification)
number "1"
class ωi
class ωi
class ωi
7
Fundamental Elements of 

Statistical Classification
1. pk — prior probabilities of classes
2. p(c| Ωk) — class-dependent densities
3. rƛk — classification costs → V(𝛅)
4. 𝛅(Ωƛ |c) — decision rule
8
Machine Learning for / in
Automated analysis of sensor data (recorded
using opportunistic / parasitic approaches) as pre-
requisite for …
Context Awareness!
9
Applications — Context Awareness!
[Schmidt et al., 1999]10
Applications — Context Awareness!
Any information that can be used to characterize the situation of
an entity:
➡ Who, what, where, when; novel interaction.
11
Activity Recognition Location Awareness HCI
Location
“The [three] most important things
about real estate are:”
context
[Gregory Abowd (?)]
12
Location Applications

— very biased and non-exhaustive example set —
Identification of meaningful 

places [e.g., Krumm]
Route prediction from GPS traces [Horvitz, 2012]
Mobility patterns inference 

[Ganti et al., 2013]
13
Location Analysis: Methods
• Many methods for robust location sensing
• actual measurement techniques (triangulation and such)
• de-noising (signal processing)
• interpolation for missing data
• Very (!) sophisticated machine learning methods for
• tracking
• classification
• prediction
• Examples:
• bag of words features and topic models for classification
• Particle filtering for tracking
• Markovian models for sequential analysis and prediction
• …
14
Activity Recognition
Activity recognition aims to recognize the actions and
goals of one or more agents from a series of
observations on the agents' actions and the
environmental conditions.
What? When?
15
Activity Recognition
reviewed
→ Wearable / embedded sensing provides sequential data
16
Activity Recognition: Methods
17
[Bulling et al., 2013]
Indirect Activity Recognition through
Infrastructure Mediated Sensing
hydrosense electrisense gassense
[Patel et al.]
18
Event Detection through IMS:
HydroSense
water&tower&
incoming&cold&
water&from&
supply&line&
thermal&&
expansion&&
tank&
laundry&
bathroom 1
hose&
spigot&
hot&&
water&&
heater& bathroom 2
kitchen
dishwasher&
pressure&
regulator&
Closed Pressure System
15&
19
incoming cold
water from
supply line
water tower
[Froehlich et al., 2009]
Event Detection through IMS:
HydroSense
20
• Event segmentation
• Feature extraction
• Event classification
[Froehlich et al., 2009]
Activity Recognition using IMS
→ Actual activity recognition on top of event classification
[Thomaz et al., 2012]
Shave, Brush teeth, Wash hands, Flush toilet, Wash hands, Fill up teakettle,
Make a salad, Rinse a fruit, Take a glass of water, Do dishes (light load), Do
dishes (heavy load)
21
What it all (largely) boils down to …
Analysis of sequential data / time series data!
22
Analysis of Sequential Data
23
[from Krumm (ed.), 2010]
Sequential Data — Challenges
• Segmentation vs Classification

→ “chicken and egg” problem
• Noise, noise, and noise …
• … more noise :-(
• Evaluation — “ground truth”?
24
Noise …
• filtering
• trivial (technically)
• lag
• no higher level
variables (speed)
ˆxi =
1
n
iX
j=i n+1
zj ˆxi = median{zi n+1, zi n+2, . . . , zi 1, zi}
25
Direct Observations vs State
• Idea: Assume internal “system” state
• Approach: Infer state by exploiting
measurements / observations
• Kalman Filter

→ explicit consideration of 

(Gaussian) noise
26
Direct Observations vs State
• Idea: Assume internal “system” state
• Approach: Infer state by exploiting
measurements / observations
• Kalman Filter

→ explicit consideration of 

(Gaussian) noise
• Particle Filter

→ no limitation to Gaussian noise

→ prob. model for measurements
27
Direct Observations vs State
• Idea: Assume internal “system” state
• Approach: Infer state by exploiting
measurements / observations
• Kalman Filter

→ explicit consideration of 

(Gaussian) noise
• Particle Filter

→ no limitation to Gaussian noise

→ prob. model for measurements
28
Direct Observations vs State
• Idea: Assume internal “system” state
• Approach: Infer state by exploiting
measurements / observations
• Kalman Filter

→ explicit consideration of 

(Gaussian) noise
• Particle Filter

→ no limitation to Gaussian noise

→ prob. model for measurements
• Hidden Markov Model

→ meas. model: conditional probability

→ dynamic model: limited memory, 

transition probabilities
29
30

Weitere ähnliche Inhalte

Ähnlich wie Bridging the Gap: Machine Learning for Ubiquitous Computing -- ML and Ubicomp Primer

ODSC 2019: Sessionisation via stochastic periods for root event identification
ODSC 2019: Sessionisation via stochastic periods for root event identificationODSC 2019: Sessionisation via stochastic periods for root event identification
ODSC 2019: Sessionisation via stochastic periods for root event identificationKuldeep Jiwani
 
intro to ML by the way m toh phasee movie Punjabi
intro to ML by the way m toh phasee movie Punjabiintro to ML by the way m toh phasee movie Punjabi
intro to ML by the way m toh phasee movie Punjabibotvillain45
 
Building Social Life Networks 130818
Building Social Life Networks 130818Building Social Life Networks 130818
Building Social Life Networks 130818Ramesh Jain
 
ML MODULE 1_slideshare.pdf
ML MODULE 1_slideshare.pdfML MODULE 1_slideshare.pdf
ML MODULE 1_slideshare.pdfShiwani Gupta
 
Introduction to Data and Computation: Essential capabilities for everyone in ...
Introduction to Data and Computation: Essential capabilities for everyone in ...Introduction to Data and Computation: Essential capabilities for everyone in ...
Introduction to Data and Computation: Essential capabilities for everyone in ...Kim Flintoff
 
HunchLab 2.0 Predictive Missions: Under the Hood
HunchLab 2.0 Predictive Missions: Under the HoodHunchLab 2.0 Predictive Missions: Under the Hood
HunchLab 2.0 Predictive Missions: Under the HoodAzavea
 
Machine Learning: Past, Present and Future - by Tom Dietterich
Machine Learning: Past, Present and Future - by Tom DietterichMachine Learning: Past, Present and Future - by Tom Dietterich
Machine Learning: Past, Present and Future - by Tom DietterichBigML, Inc
 
Introduction Machine Learning Syllabus
Introduction Machine Learning SyllabusIntroduction Machine Learning Syllabus
Introduction Machine Learning SyllabusAndres Mendez-Vazquez
 
Situation Recognition from Multimodal Data Tutorial (ICME2016)
Situation Recognition from Multimodal Data Tutorial (ICME2016)Situation Recognition from Multimodal Data Tutorial (ICME2016)
Situation Recognition from Multimodal Data Tutorial (ICME2016)Siripen Pongpaichet
 
Machine_Learning_with_MATLAB_Seminar_Latest.pdf
Machine_Learning_with_MATLAB_Seminar_Latest.pdfMachine_Learning_with_MATLAB_Seminar_Latest.pdf
Machine_Learning_with_MATLAB_Seminar_Latest.pdfCarlos Paredes
 
Conference talk: Understanding Vulnerabilities of Location Privacy Mechanisms...
Conference talk: Understanding Vulnerabilities of Location Privacy Mechanisms...Conference talk: Understanding Vulnerabilities of Location Privacy Mechanisms...
Conference talk: Understanding Vulnerabilities of Location Privacy Mechanisms...Zohaib Riaz
 
Data Science in the Real World: Making a Difference
Data Science in the Real World: Making a Difference Data Science in the Real World: Making a Difference
Data Science in the Real World: Making a Difference Srinath Perera
 
Knowledge-empowered Probabilistic Graphical Models for Physical-Cyber-Social ...
Knowledge-empowered Probabilistic Graphical Models for Physical-Cyber-Social ...Knowledge-empowered Probabilistic Graphical Models for Physical-Cyber-Social ...
Knowledge-empowered Probabilistic Graphical Models for Physical-Cyber-Social ...Artificial Intelligence Institute at UofSC
 
ICTER 2014 Invited Talk: Large Scale Data Processing in the Real World: from ...
ICTER 2014 Invited Talk: Large Scale Data Processing in the Real World: from ...ICTER 2014 Invited Talk: Large Scale Data Processing in the Real World: from ...
ICTER 2014 Invited Talk: Large Scale Data Processing in the Real World: from ...Srinath Perera
 
Machine Learning Overview
Machine Learning OverviewMachine Learning Overview
Machine Learning OverviewMykhailo Koval
 
230208 MLOps Getting from Good to Great.pptx
230208 MLOps Getting from Good to Great.pptx230208 MLOps Getting from Good to Great.pptx
230208 MLOps Getting from Good to Great.pptxArthur240715
 
G. Barcaroli, The use of machine learning in official statistics
G. Barcaroli, The use of machine learning in official statisticsG. Barcaroli, The use of machine learning in official statistics
G. Barcaroli, The use of machine learning in official statisticsIstituto nazionale di statistica
 

Ähnlich wie Bridging the Gap: Machine Learning for Ubiquitous Computing -- ML and Ubicomp Primer (20)

ODSC 2019: Sessionisation via stochastic periods for root event identification
ODSC 2019: Sessionisation via stochastic periods for root event identificationODSC 2019: Sessionisation via stochastic periods for root event identification
ODSC 2019: Sessionisation via stochastic periods for root event identification
 
intro to ML by the way m toh phasee movie Punjabi
intro to ML by the way m toh phasee movie Punjabiintro to ML by the way m toh phasee movie Punjabi
intro to ML by the way m toh phasee movie Punjabi
 
01_introduction_ML.pdf
01_introduction_ML.pdf01_introduction_ML.pdf
01_introduction_ML.pdf
 
Building Social Life Networks 130818
Building Social Life Networks 130818Building Social Life Networks 130818
Building Social Life Networks 130818
 
ML MODULE 1_slideshare.pdf
ML MODULE 1_slideshare.pdfML MODULE 1_slideshare.pdf
ML MODULE 1_slideshare.pdf
 
Introduction to Data and Computation: Essential capabilities for everyone in ...
Introduction to Data and Computation: Essential capabilities for everyone in ...Introduction to Data and Computation: Essential capabilities for everyone in ...
Introduction to Data and Computation: Essential capabilities for everyone in ...
 
HunchLab 2.0 Predictive Missions: Under the Hood
HunchLab 2.0 Predictive Missions: Under the HoodHunchLab 2.0 Predictive Missions: Under the Hood
HunchLab 2.0 Predictive Missions: Under the Hood
 
Machine Learning: Past, Present and Future - by Tom Dietterich
Machine Learning: Past, Present and Future - by Tom DietterichMachine Learning: Past, Present and Future - by Tom Dietterich
Machine Learning: Past, Present and Future - by Tom Dietterich
 
Introduction Machine Learning Syllabus
Introduction Machine Learning SyllabusIntroduction Machine Learning Syllabus
Introduction Machine Learning Syllabus
 
Situation Recognition from Multimodal Data Tutorial (ICME2016)
Situation Recognition from Multimodal Data Tutorial (ICME2016)Situation Recognition from Multimodal Data Tutorial (ICME2016)
Situation Recognition from Multimodal Data Tutorial (ICME2016)
 
Spatio Temporal Data Mining
Spatio Temporal Data MiningSpatio Temporal Data Mining
Spatio Temporal Data Mining
 
Machine_Learning_with_MATLAB_Seminar_Latest.pdf
Machine_Learning_with_MATLAB_Seminar_Latest.pdfMachine_Learning_with_MATLAB_Seminar_Latest.pdf
Machine_Learning_with_MATLAB_Seminar_Latest.pdf
 
Conference talk: Understanding Vulnerabilities of Location Privacy Mechanisms...
Conference talk: Understanding Vulnerabilities of Location Privacy Mechanisms...Conference talk: Understanding Vulnerabilities of Location Privacy Mechanisms...
Conference talk: Understanding Vulnerabilities of Location Privacy Mechanisms...
 
Data Science in the Real World: Making a Difference
Data Science in the Real World: Making a Difference Data Science in the Real World: Making a Difference
Data Science in the Real World: Making a Difference
 
Knowledge-empowered Probabilistic Graphical Models for Physical-Cyber-Social ...
Knowledge-empowered Probabilistic Graphical Models for Physical-Cyber-Social ...Knowledge-empowered Probabilistic Graphical Models for Physical-Cyber-Social ...
Knowledge-empowered Probabilistic Graphical Models for Physical-Cyber-Social ...
 
ICTER 2014 Invited Talk: Large Scale Data Processing in the Real World: from ...
ICTER 2014 Invited Talk: Large Scale Data Processing in the Real World: from ...ICTER 2014 Invited Talk: Large Scale Data Processing in the Real World: from ...
ICTER 2014 Invited Talk: Large Scale Data Processing in the Real World: from ...
 
ML basics.pptx
ML basics.pptxML basics.pptx
ML basics.pptx
 
Machine Learning Overview
Machine Learning OverviewMachine Learning Overview
Machine Learning Overview
 
230208 MLOps Getting from Good to Great.pptx
230208 MLOps Getting from Good to Great.pptx230208 MLOps Getting from Good to Great.pptx
230208 MLOps Getting from Good to Great.pptx
 
G. Barcaroli, The use of machine learning in official statistics
G. Barcaroli, The use of machine learning in official statisticsG. Barcaroli, The use of machine learning in official statistics
G. Barcaroli, The use of machine learning in official statistics
 

Kürzlich hochgeladen

Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...D. B. S. College Kanpur
 
Microphone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptxMicrophone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptxpriyankatabhane
 
PROJECTILE MOTION-Horizontal and Vertical
PROJECTILE MOTION-Horizontal and VerticalPROJECTILE MOTION-Horizontal and Vertical
PROJECTILE MOTION-Horizontal and VerticalMAESTRELLAMesa2
 
Servosystem Theory / Cybernetic Theory by Petrovic
Servosystem Theory / Cybernetic Theory by PetrovicServosystem Theory / Cybernetic Theory by Petrovic
Servosystem Theory / Cybernetic Theory by PetrovicAditi Jain
 
Thermodynamics ,types of system,formulae ,gibbs free energy .pptx
Thermodynamics ,types of system,formulae ,gibbs free energy .pptxThermodynamics ,types of system,formulae ,gibbs free energy .pptx
Thermodynamics ,types of system,formulae ,gibbs free energy .pptxuniversity
 
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...Universidade Federal de Sergipe - UFS
 
trihybrid cross , test cross chi squares
trihybrid cross , test cross chi squarestrihybrid cross , test cross chi squares
trihybrid cross , test cross chi squaresusmanzain586
 
GLYCOSIDES Classification Of GLYCOSIDES Chemical Tests Glycosides
GLYCOSIDES Classification Of GLYCOSIDES  Chemical Tests GlycosidesGLYCOSIDES Classification Of GLYCOSIDES  Chemical Tests Glycosides
GLYCOSIDES Classification Of GLYCOSIDES Chemical Tests GlycosidesNandakishor Bhaurao Deshmukh
 
well logging & petrophysical analysis.pptx
well logging & petrophysical analysis.pptxwell logging & petrophysical analysis.pptx
well logging & petrophysical analysis.pptxzaydmeerab121
 
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...Universidade Federal de Sergipe - UFS
 
The dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxThe dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxEran Akiva Sinbar
 
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdfPests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdfPirithiRaju
 
Microteaching on terms used in filtration .Pharmaceutical Engineering
Microteaching on terms used in filtration .Pharmaceutical EngineeringMicroteaching on terms used in filtration .Pharmaceutical Engineering
Microteaching on terms used in filtration .Pharmaceutical EngineeringPrajakta Shinde
 
《Queensland毕业文凭-昆士兰大学毕业证成绩单》
《Queensland毕业文凭-昆士兰大学毕业证成绩单》《Queensland毕业文凭-昆士兰大学毕业证成绩单》
《Queensland毕业文凭-昆士兰大学毕业证成绩单》rnrncn29
 
GenAI talk for Young at Wageningen University & Research (WUR) March 2024
GenAI talk for Young at Wageningen University & Research (WUR) March 2024GenAI talk for Young at Wageningen University & Research (WUR) March 2024
GenAI talk for Young at Wageningen University & Research (WUR) March 2024Jene van der Heide
 
Davis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technologyDavis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technologycaarthichand2003
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxMurugaveni B
 
Pests of jatropha_Bionomics_identification_Dr.UPR.pdf
Pests of jatropha_Bionomics_identification_Dr.UPR.pdfPests of jatropha_Bionomics_identification_Dr.UPR.pdf
Pests of jatropha_Bionomics_identification_Dr.UPR.pdfPirithiRaju
 
Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024AyushiRastogi48
 

Kürzlich hochgeladen (20)

Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
 
Microphone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptxMicrophone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptx
 
PROJECTILE MOTION-Horizontal and Vertical
PROJECTILE MOTION-Horizontal and VerticalPROJECTILE MOTION-Horizontal and Vertical
PROJECTILE MOTION-Horizontal and Vertical
 
Servosystem Theory / Cybernetic Theory by Petrovic
Servosystem Theory / Cybernetic Theory by PetrovicServosystem Theory / Cybernetic Theory by Petrovic
Servosystem Theory / Cybernetic Theory by Petrovic
 
Thermodynamics ,types of system,formulae ,gibbs free energy .pptx
Thermodynamics ,types of system,formulae ,gibbs free energy .pptxThermodynamics ,types of system,formulae ,gibbs free energy .pptx
Thermodynamics ,types of system,formulae ,gibbs free energy .pptx
 
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
 
trihybrid cross , test cross chi squares
trihybrid cross , test cross chi squarestrihybrid cross , test cross chi squares
trihybrid cross , test cross chi squares
 
GLYCOSIDES Classification Of GLYCOSIDES Chemical Tests Glycosides
GLYCOSIDES Classification Of GLYCOSIDES  Chemical Tests GlycosidesGLYCOSIDES Classification Of GLYCOSIDES  Chemical Tests Glycosides
GLYCOSIDES Classification Of GLYCOSIDES Chemical Tests Glycosides
 
well logging & petrophysical analysis.pptx
well logging & petrophysical analysis.pptxwell logging & petrophysical analysis.pptx
well logging & petrophysical analysis.pptx
 
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
 
The dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxThe dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptx
 
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdfPests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdf
 
Microteaching on terms used in filtration .Pharmaceutical Engineering
Microteaching on terms used in filtration .Pharmaceutical EngineeringMicroteaching on terms used in filtration .Pharmaceutical Engineering
Microteaching on terms used in filtration .Pharmaceutical Engineering
 
《Queensland毕业文凭-昆士兰大学毕业证成绩单》
《Queensland毕业文凭-昆士兰大学毕业证成绩单》《Queensland毕业文凭-昆士兰大学毕业证成绩单》
《Queensland毕业文凭-昆士兰大学毕业证成绩单》
 
GenAI talk for Young at Wageningen University & Research (WUR) March 2024
GenAI talk for Young at Wageningen University & Research (WUR) March 2024GenAI talk for Young at Wageningen University & Research (WUR) March 2024
GenAI talk for Young at Wageningen University & Research (WUR) March 2024
 
Davis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technologyDavis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technology
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
 
Pests of jatropha_Bionomics_identification_Dr.UPR.pdf
Pests of jatropha_Bionomics_identification_Dr.UPR.pdfPests of jatropha_Bionomics_identification_Dr.UPR.pdf
Pests of jatropha_Bionomics_identification_Dr.UPR.pdf
 
Let’s Say Someone Did Drop the Bomb. Then What?
Let’s Say Someone Did Drop the Bomb. Then What?Let’s Say Someone Did Drop the Bomb. Then What?
Let’s Say Someone Did Drop the Bomb. Then What?
 
Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024
 

Bridging the Gap: Machine Learning for Ubiquitous Computing -- ML and Ubicomp Primer

  • 1. Bridging the Gap: 
 Machine Learning for Ubicomp Thomas Ploetz — ML Primer & ML applications for Ubicomp —
  • 2. What is Machine Learning? • Develop algorithms (“computer programs” [sic!] …) that adapt (learn!) towards generalisation through analysing sample data “Machine learning studies computer algorithms for learning to do stuff” [Robert Schapire] 2
  • 3. Machine Learning → Pattern Recognition Fink, Markov Models for Pattern Recognition, 2nd ed. Springer, 2014 C. M. Bishop, Pattern Recognition and Machine Learning. Springer, 2006. 3 820 840 860 880 900 920 940 960 980 −5 0 5 time [m] acc[g] Sample acceleration data collected fromthe wrist (100Hz) 823 823.5 824 824.5 825 825.5 −2 0 2 time [m] acc[g] 0 0.1 0.2 0.3 0.4 0 5 10 15 20 0 0.1 0.2 0.3 0.4 0 5 10 15 20 0 0.1 0.2 0.3 0.4 0 5 10 15 20 Ploetz et al., UbiComp, 2012.Hammerla, 2015.
  • 4. The Machine Learning Principles 1. Use parametric models to represent classes of interest 2. Use statistical learning for deriving parameter values from representative sample sets 4 [from the Internet …]
  • 5. 3 Postulates of PR / ML (there are more …) 1. Collect information about problem area Ω → representative sample set 5 y additional information, i.e., annotation = (1 fff(xxx), y1),2 fff(xxx), y2), . . . ,N fff(xxx), yN ) 2. Features characterise patterns’ affiliation to a specific class fff(x) ccc, with dim(ccc) dim( fff) 3. Features form compact space 
 (per class) in global feature space 
 (compactness)
  • 6. Principles of PR / ML Classification represents mapping: Classification → costs, optimise average loss V(f): = arg min V ( ) ccc k {1, 2, . . . , K} or ccc {0, 1, . . . , K} (with rejection) Classification systems: fff(xxx) recording preprocessing feature calc. ccc classification k 6
  • 7. PR / ML Systems — Overview Recording (Digitalisation, Quantisation) Preprocessing Segmentation Feature Extraction Association of feature vector to pattern class Training or refreshing of classifier Classifier feature vector classification parameters classified feature vector supervised learning decision supervised learning digital pattern improved pattern (for classification) number "1" class ωi class ωi class ωi 7
  • 8. Fundamental Elements of 
 Statistical Classification 1. pk — prior probabilities of classes 2. p(c| Ωk) — class-dependent densities 3. rƛk — classification costs → V(𝛅) 4. 𝛅(Ωƛ |c) — decision rule 8
  • 9. Machine Learning for / in Automated analysis of sensor data (recorded using opportunistic / parasitic approaches) as pre- requisite for … Context Awareness! 9
  • 10. Applications — Context Awareness! [Schmidt et al., 1999]10
  • 11. Applications — Context Awareness! Any information that can be used to characterize the situation of an entity: ➡ Who, what, where, when; novel interaction. 11 Activity Recognition Location Awareness HCI
  • 12. Location “The [three] most important things about real estate are:” context [Gregory Abowd (?)] 12
  • 13. Location Applications
 — very biased and non-exhaustive example set — Identification of meaningful 
 places [e.g., Krumm] Route prediction from GPS traces [Horvitz, 2012] Mobility patterns inference 
 [Ganti et al., 2013] 13
  • 14. Location Analysis: Methods • Many methods for robust location sensing • actual measurement techniques (triangulation and such) • de-noising (signal processing) • interpolation for missing data • Very (!) sophisticated machine learning methods for • tracking • classification • prediction • Examples: • bag of words features and topic models for classification • Particle filtering for tracking • Markovian models for sequential analysis and prediction • … 14
  • 15. Activity Recognition Activity recognition aims to recognize the actions and goals of one or more agents from a series of observations on the agents' actions and the environmental conditions. What? When? 15
  • 16. Activity Recognition reviewed → Wearable / embedded sensing provides sequential data 16
  • 18. Indirect Activity Recognition through Infrastructure Mediated Sensing hydrosense electrisense gassense [Patel et al.] 18
  • 19. Event Detection through IMS: HydroSense water&tower& incoming&cold& water&from& supply&line& thermal&& expansion&& tank& laundry& bathroom 1 hose& spigot& hot&& water&& heater& bathroom 2 kitchen dishwasher& pressure& regulator& Closed Pressure System 15& 19 incoming cold water from supply line water tower [Froehlich et al., 2009]
  • 20. Event Detection through IMS: HydroSense 20 • Event segmentation • Feature extraction • Event classification [Froehlich et al., 2009]
  • 21. Activity Recognition using IMS → Actual activity recognition on top of event classification [Thomaz et al., 2012] Shave, Brush teeth, Wash hands, Flush toilet, Wash hands, Fill up teakettle, Make a salad, Rinse a fruit, Take a glass of water, Do dishes (light load), Do dishes (heavy load) 21
  • 22. What it all (largely) boils down to … Analysis of sequential data / time series data! 22
  • 23. Analysis of Sequential Data 23 [from Krumm (ed.), 2010]
  • 24. Sequential Data — Challenges • Segmentation vs Classification
 → “chicken and egg” problem • Noise, noise, and noise … • … more noise :-( • Evaluation — “ground truth”? 24
  • 25. Noise … • filtering • trivial (technically) • lag • no higher level variables (speed) ˆxi = 1 n iX j=i n+1 zj ˆxi = median{zi n+1, zi n+2, . . . , zi 1, zi} 25
  • 26. Direct Observations vs State • Idea: Assume internal “system” state • Approach: Infer state by exploiting measurements / observations • Kalman Filter
 → explicit consideration of 
 (Gaussian) noise 26
  • 27. Direct Observations vs State • Idea: Assume internal “system” state • Approach: Infer state by exploiting measurements / observations • Kalman Filter
 → explicit consideration of 
 (Gaussian) noise • Particle Filter
 → no limitation to Gaussian noise
 → prob. model for measurements 27
  • 28. Direct Observations vs State • Idea: Assume internal “system” state • Approach: Infer state by exploiting measurements / observations • Kalman Filter
 → explicit consideration of 
 (Gaussian) noise • Particle Filter
 → no limitation to Gaussian noise
 → prob. model for measurements 28
  • 29. Direct Observations vs State • Idea: Assume internal “system” state • Approach: Infer state by exploiting measurements / observations • Kalman Filter
 → explicit consideration of 
 (Gaussian) noise • Particle Filter
 → no limitation to Gaussian noise
 → prob. model for measurements • Hidden Markov Model
 → meas. model: conditional probability
 → dynamic model: limited memory, 
 transition probabilities 29
  • 30. 30