SlideShare a Scribd company logo
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

More Related Content

Similar to 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 identification
Kuldeep 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 Punjabi
botvillain45
 
01_introduction_ML.pdf
01_introduction_ML.pdf01_introduction_ML.pdf
01_introduction_ML.pdf
giridharsripathi
 
Building Social Life Networks 130818
Building Social Life Networks 130818Building Social Life Networks 130818
Building Social Life Networks 130818
Ramesh Jain
 
ML MODULE 1_slideshare.pdf
ML MODULE 1_slideshare.pdfML MODULE 1_slideshare.pdf
ML MODULE 1_slideshare.pdf
Shiwani 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 Dietterich
BigML, Inc
 
Introduction Machine Learning Syllabus
Introduction Machine Learning SyllabusIntroduction Machine Learning Syllabus
Introduction Machine Learning Syllabus
Andres 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
 
Spatio Temporal Data Mining
Spatio Temporal Data MiningSpatio Temporal Data Mining
Spatio Temporal Data Mining
SriSruthiChilukuri
 
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
Carlos 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
 
ML basics.pptx
ML basics.pptxML basics.pptx
ML basics.pptx
PriyadharshiniG41
 
Machine Learning Overview
Machine Learning OverviewMachine Learning Overview
Machine Learning Overview
Mykhailo 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.pptx
Arthur240715
 
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
Istituto nazionale di statistica
 

Similar to 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
 

Recently uploaded

insect morphology and physiology of insect
insect morphology and physiology of insectinsect morphology and physiology of insect
insect morphology and physiology of insect
anitaento25
 
Richard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlandsRichard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlands
Richard Gill
 
Comparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebratesComparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebrates
sachin783648
 
GBSN- Microbiology (Lab 3) Gram Staining
GBSN- Microbiology (Lab 3) Gram StainingGBSN- Microbiology (Lab 3) Gram Staining
GBSN- Microbiology (Lab 3) Gram Staining
Areesha Ahmad
 
Cancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate PathwayCancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate Pathway
AADYARAJPANDEY1
 
EY - Supply Chain Services 2018_template.pptx
EY - Supply Chain Services 2018_template.pptxEY - Supply Chain Services 2018_template.pptx
EY - Supply Chain Services 2018_template.pptx
AlguinaldoKong
 
(May 29th, 2024) Advancements in Intravital Microscopy- Insights for Preclini...
(May 29th, 2024) Advancements in Intravital Microscopy- Insights for Preclini...(May 29th, 2024) Advancements in Intravital Microscopy- Insights for Preclini...
(May 29th, 2024) Advancements in Intravital Microscopy- Insights for Preclini...
Scintica Instrumentation
 
platelets- lifespan -Clot retraction-disorders.pptx
platelets- lifespan -Clot retraction-disorders.pptxplatelets- lifespan -Clot retraction-disorders.pptx
platelets- lifespan -Clot retraction-disorders.pptx
muralinath2
 
Body fluids_tonicity_dehydration_hypovolemia_hypervolemia.pptx
Body fluids_tonicity_dehydration_hypovolemia_hypervolemia.pptxBody fluids_tonicity_dehydration_hypovolemia_hypervolemia.pptx
Body fluids_tonicity_dehydration_hypovolemia_hypervolemia.pptx
muralinath2
 
Richard's entangled aventures in wonderland
Richard's entangled aventures in wonderlandRichard's entangled aventures in wonderland
Richard's entangled aventures in wonderland
Richard Gill
 
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
muralinath2
 
Seminar of U.V. Spectroscopy by SAMIR PANDA
 Seminar of U.V. Spectroscopy by SAMIR PANDA Seminar of U.V. Spectroscopy by SAMIR PANDA
Seminar of U.V. Spectroscopy by SAMIR PANDA
SAMIR PANDA
 
THE IMPORTANCE OF MARTIAN ATMOSPHERE SAMPLE RETURN.
THE IMPORTANCE OF MARTIAN ATMOSPHERE SAMPLE RETURN.THE IMPORTANCE OF MARTIAN ATMOSPHERE SAMPLE RETURN.
THE IMPORTANCE OF MARTIAN ATMOSPHERE SAMPLE RETURN.
Sérgio Sacani
 
Viksit bharat till 2047 India@2047.pptx
Viksit bharat till 2047  India@2047.pptxViksit bharat till 2047  India@2047.pptx
Viksit bharat till 2047 India@2047.pptx
rakeshsharma20142015
 
plant biotechnology Lecture note ppt.pptx
plant biotechnology Lecture note ppt.pptxplant biotechnology Lecture note ppt.pptx
plant biotechnology Lecture note ppt.pptx
yusufzako14
 
platelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptxplatelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptx
muralinath2
 
Hemostasis_importance& clinical significance.pptx
Hemostasis_importance& clinical significance.pptxHemostasis_importance& clinical significance.pptx
Hemostasis_importance& clinical significance.pptx
muralinath2
 
The ASGCT Annual Meeting was packed with exciting progress in the field advan...
The ASGCT Annual Meeting was packed with exciting progress in the field advan...The ASGCT Annual Meeting was packed with exciting progress in the field advan...
The ASGCT Annual Meeting was packed with exciting progress in the field advan...
Health Advances
 
ESR_factors_affect-clinic significance-Pathysiology.pptx
ESR_factors_affect-clinic significance-Pathysiology.pptxESR_factors_affect-clinic significance-Pathysiology.pptx
ESR_factors_affect-clinic significance-Pathysiology.pptx
muralinath2
 
RNA INTERFERENCE: UNRAVELING GENETIC SILENCING
RNA INTERFERENCE: UNRAVELING GENETIC SILENCINGRNA INTERFERENCE: UNRAVELING GENETIC SILENCING
RNA INTERFERENCE: UNRAVELING GENETIC SILENCING
AADYARAJPANDEY1
 

Recently uploaded (20)

insect morphology and physiology of insect
insect morphology and physiology of insectinsect morphology and physiology of insect
insect morphology and physiology of insect
 
Richard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlandsRichard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlands
 
Comparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebratesComparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebrates
 
GBSN- Microbiology (Lab 3) Gram Staining
GBSN- Microbiology (Lab 3) Gram StainingGBSN- Microbiology (Lab 3) Gram Staining
GBSN- Microbiology (Lab 3) Gram Staining
 
Cancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate PathwayCancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate Pathway
 
EY - Supply Chain Services 2018_template.pptx
EY - Supply Chain Services 2018_template.pptxEY - Supply Chain Services 2018_template.pptx
EY - Supply Chain Services 2018_template.pptx
 
(May 29th, 2024) Advancements in Intravital Microscopy- Insights for Preclini...
(May 29th, 2024) Advancements in Intravital Microscopy- Insights for Preclini...(May 29th, 2024) Advancements in Intravital Microscopy- Insights for Preclini...
(May 29th, 2024) Advancements in Intravital Microscopy- Insights for Preclini...
 
platelets- lifespan -Clot retraction-disorders.pptx
platelets- lifespan -Clot retraction-disorders.pptxplatelets- lifespan -Clot retraction-disorders.pptx
platelets- lifespan -Clot retraction-disorders.pptx
 
Body fluids_tonicity_dehydration_hypovolemia_hypervolemia.pptx
Body fluids_tonicity_dehydration_hypovolemia_hypervolemia.pptxBody fluids_tonicity_dehydration_hypovolemia_hypervolemia.pptx
Body fluids_tonicity_dehydration_hypovolemia_hypervolemia.pptx
 
Richard's entangled aventures in wonderland
Richard's entangled aventures in wonderlandRichard's entangled aventures in wonderland
Richard's entangled aventures in wonderland
 
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
 
Seminar of U.V. Spectroscopy by SAMIR PANDA
 Seminar of U.V. Spectroscopy by SAMIR PANDA Seminar of U.V. Spectroscopy by SAMIR PANDA
Seminar of U.V. Spectroscopy by SAMIR PANDA
 
THE IMPORTANCE OF MARTIAN ATMOSPHERE SAMPLE RETURN.
THE IMPORTANCE OF MARTIAN ATMOSPHERE SAMPLE RETURN.THE IMPORTANCE OF MARTIAN ATMOSPHERE SAMPLE RETURN.
THE IMPORTANCE OF MARTIAN ATMOSPHERE SAMPLE RETURN.
 
Viksit bharat till 2047 India@2047.pptx
Viksit bharat till 2047  India@2047.pptxViksit bharat till 2047  India@2047.pptx
Viksit bharat till 2047 India@2047.pptx
 
plant biotechnology Lecture note ppt.pptx
plant biotechnology Lecture note ppt.pptxplant biotechnology Lecture note ppt.pptx
plant biotechnology Lecture note ppt.pptx
 
platelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptxplatelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptx
 
Hemostasis_importance& clinical significance.pptx
Hemostasis_importance& clinical significance.pptxHemostasis_importance& clinical significance.pptx
Hemostasis_importance& clinical significance.pptx
 
The ASGCT Annual Meeting was packed with exciting progress in the field advan...
The ASGCT Annual Meeting was packed with exciting progress in the field advan...The ASGCT Annual Meeting was packed with exciting progress in the field advan...
The ASGCT Annual Meeting was packed with exciting progress in the field advan...
 
ESR_factors_affect-clinic significance-Pathysiology.pptx
ESR_factors_affect-clinic significance-Pathysiology.pptxESR_factors_affect-clinic significance-Pathysiology.pptx
ESR_factors_affect-clinic significance-Pathysiology.pptx
 
RNA INTERFERENCE: UNRAVELING GENETIC SILENCING
RNA INTERFERENCE: UNRAVELING GENETIC SILENCINGRNA INTERFERENCE: UNRAVELING GENETIC SILENCING
RNA INTERFERENCE: UNRAVELING GENETIC SILENCING
 

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