�CS60055: Ubiquitous Computing
Location, Gesture and Activity Sensing
Part IV: Inferring Activities from IMU
INDIAN INSTITUTE OF TECHNOLOGY
KHARAGPUR
Department of Computer Science and Engineering
What We Have Learnt So Far?
Indian Institute of Technology Kharagpur
The Next Steps – Gesture to Activities
Cooking
Indian Institute of Technology Kharagpur
The Next Steps – Gesture to Activities
Preparing poached egg
However, the activity label can be more precise depending on the downstream application
Indian Institute of Technology Kharagpur
Human Activity Recognition (HAR)
Indian Institute of Technology Kharagpur
Human Activity Recognition (HAR)
Indian Institute of Technology Kharagpur
Human Activity Recognition (HAR)
Indian Institute of Technology Kharagpur
Human Activity Recognition (HAR)
A Possible Solution: Use supervised models on the preprocessed IMU data for HAR classification
Indian Institute of Technology Kharagpur
Deep Learning for HAR
UCI-HAR dataset, several activity classes:
Indian Institute of Technology Kharagpur
Deep Learning for HAR
Indian Institute of Technology Kharagpur
Deep Learning for HAR
Cons: You still need a significant amount of labelled data to train your model
Indian Institute of Technology Kharagpur
Self-Supervised Learning (SSL) for HAR
Representation
Pretext task
Representation
Classifier
Cooking
Indian Institute of Technology Kharagpur
Contrastive Learning
Indian Institute of Technology Kharagpur
Contrastive Learning
Indian Institute of Technology Kharagpur
Contrastive Learning
Loss Function:
Indian Institute of Technology Kharagpur
Contrastive Learning
Slide credit: Prasenjit Karmakar
Indian Institute of Technology Kharagpur
MNIST Representations
Two dimensional MNIST representations
Slide credit: Prasenjit Karmakar
Indian Institute of Technology Kharagpur
SimCLR
Indian Institute of Technology Kharagpur
SimCLR
How do we apply data augmentation for physical sensing data?
Indian Institute of Technology Kharagpur
SimCLR
How do we apply data augmentation for physical sensing data?
Apply the laws of physics
Indian Institute of Technology Kharagpur
Contrastive Learning for HAR
Adoption of SimCLR framework for HAR
Indian Institute of Technology Kharagpur
Contrastive Learning for HAR
Adoption of SimCLR framework for HAR
What transformations can we apply for the HAR data?
Indian Institute of Technology Kharagpur
Contrastive Learning for HAR
IMWUT 2022
Indian Institute of Technology Kharagpur
Time Synchronous Multi Device Systems (TSMDS)
Indian Institute of Technology Kharagpur
Transformations for Data Augmentation
Both indicate the same activity "Running"
Indian Institute of Technology Kharagpur
Transformations for Data Augmentation
These are natural transformations of each other!
Indian Institute of Technology Kharagpur
Transformations for Data Augmentation
Indian Institute of Technology Kharagpur
Transformations for Data Augmentation
Use such natural transformations to define a pretext task and perform contrastive learning
Indian Institute of Technology Kharagpur
Challenge 1: Selecting Positive and Negative Samples
Indian Institute of Technology Kharagpur
Challenge 1: Selecting Positive and Negative Samples
Data distributions for some devices will be very different from the data distribution of Chest – can be the "negative" samples!
How do we know which are of different distributions?
Indian Institute of Technology Kharagpur
Challenge 1: Selecting Positive and Negative Samples
Positive
Negative
Indian Institute of Technology Kharagpur
Challenge 2: Which Samples Can be Used in CL?
Indian Institute of Technology Kharagpur
Challenge 2: Which Samples Can be Used in CL?
Pattern gets very different
Indian Institute of Technology Kharagpur
Collaborative Self-supervised Learning
Indian Institute of Technology Kharagpur
Solution Steps
Indian Institute of Technology Kharagpur
Solution Steps
Indian Institute of Technology Kharagpur
Solution Steps
Indian Institute of Technology Kharagpur
Solution Steps
Indian Institute of Technology Kharagpur
Device Selection
Indian Institute of Technology Kharagpur
Device Selection
We do not have ground truth data, so how do we ensure this condition?
Indian Institute of Technology Kharagpur
Device Selection
The Catch: Devices are time-aligned in TSMDS. So, all the devices observe the same class label at every time window
Indian Institute of Technology Kharagpur
Device Selection
Indian Institute of Technology Kharagpur
Device Selection
Strictly enforcing this may not be possible
Indian Institute of Technology Kharagpur
Device Selection
Indian Institute of Technology Kharagpur
Contrastive Sampling
Indian Institute of Technology Kharagpur
Contrastive Sampling
Indian Institute of Technology Kharagpur
Multi-view Contrastive Loss
Indian Institute of Technology Kharagpur
ColloSSL Performance (Macro F1 Score)
The number in the bracket indicates amount of data used
Indian Institute of Technology Kharagpur
Take Aways
Indian Institute of Technology Kharagpur
Happy Learning!
Some resources related to this topic
Introduction | Related Work | Background | Observation | Methodology | Evaluation | Conclusion |