Professional Documents
Culture Documents
3 Activity Initself
3 Activity Initself
indoor: Beacons
Indoor inertial
indoor: Contact/Proximity tracking
Particle Filter
1
Summary: the 5 Dimensions
2
User Activity
Modes of locomotion and posture
jumping on one leg and turning in the air
.......
3
User Activity
Object Interaction
simple objects
pick up, put away, press
complex interaction with tools
4
User Activity
Interaction with people
vocal interaction
speaking, listening
Discussion
physical interaction
shake hands, hug
gestures
Fight
social signals
smile
5
Modes of Locomotion
6
User Activity
Modes of locomotion and posture
jumping on one leg and turning in the air
.......
7
Walking
a typical human activity
8
Walking
up-down motion skin/clothing
forward motion muscle flexion
shape change
rotation
11
MEMS Accelerometers
13
Accelerometer
14
Acceleration Sensor
15
Acceleration Sensor
16
Example
+1g
-1g
+2g /+2g
0g /0g
-2g /-2g
greeting a person
17
Filtering the Signal
Raw signal
to learn more:
18
Matlab/toolbox/Filter Design and Analysis Tool
Filtering the Signal
Raw signal
19
Acceleration on the Upper Leg
acceleration in direction along the leg
20
Exercises now
plot out the output of accelerometer fixed along
the arm when
standing still
walking
sitting with lower arm lying on the table
scratching nose/head
reaching for the door
21
Homework
put your smart phone in the pocket and collect
data when you
standing still
walking
running
go upstairs
go downstairs
22
Problem type
Signal stream window size
situation
shift
state action
parameters
- separable in time invariant
feature space
- sliding window algorithms
23
Recognition Method
Signal stream window size
shift
Features (min, max, mean variance, std deviation,)
Down Up
25
Sliding Window Features
26
Sensor Requirements
27
Sensor Requirements
28
Case Study
Recognition Task Sensor Setup
Modes of locomotion
Air pressure
Accelerometer
Accelerometer
Evaluation Method
29
30
Example
Original Signal
D. Feature Selection
Feature selection was based on vis
The features were visually compare
good candidate features. Distribution
signal during different activities we
(Fig. 4). The plots show how the d
signal changes between different ac
tribution moves between activities a
overlap, the better it is for discrimin
A priori information was used in
tures. For example, during running th
Fig. 2. Spectogram of vertical acceleration on chest during walking, Nordic ment and thus more energy in acce
walking and running. Horizontal axis is time.
other activities. Based on a priori i
tures were calculated from raw da
Often more informative then simple statistical
C. Signal Processing and Feature Extraction selected based on the distribution ba
than one feature that could have be
The goal in context recognition is to develop algorithms that
can automatically infer features
sion, the feature with best discrimin
the annotated context from the collected
As a result of the feature selec
signals. The signals were first visually inspected and compared
(Fig. 4) were selected
32 for classifica
against the annotated contexts. This gave us the first impression
up-down chest acceleration Fpeak
on which signals are more useful than others. Feature signals
up-down chest acceleration Med(c
(1-Hz sampling rate) were calculated from the raw data.
An Example of Frequency Analyze
Koji Yatani, Khai N. Truong, Bodyscope: A Wearable Acoustic Sensor for Activity Recognition
33
Classifier Choice
PARKKA et al.: ACTIVITY CLASSIFICATION USING REALISTIC DATA FROM WEARABLE SENSORS
t
z1 z1
z2 z2
z3 z3
zN zN
different processes, gives different output series in time
35
Time Series Recognition
Prozess P Prozess P
?????
t
z*1
Process models like
Hidden Markov models z*2
Conditional Random Fields
z*3
z*N
output series in time known, then what is the process behind?
36
Example: The Dishonest Casino
Game:
1. You bet $1
2. You roll (always with a fair die)
3. Casino player rolls (maybe with fair die,
maybe with loaded die)
4. Highest number wins $2
The dishonest casino
model
0.05
0.95 0.95
FAIR LOADED
38
HMM model
Probabilistic parameters of a
hidden Markov model (example)
x states (hidden)
y possible observations
a state transition probabilities
b output probabilities
39
Question # 1 Evaluation
GIVEN
1245526462146146136136661664661636616366163616515615115146123562344
How likely is this sequence, given our model of how the casino works?
40
Question # 2 Decoding
GIVEN
1245526462146146136136661664661636616366163616515615115146123562344
QUESTION
What portion of the sequence was generated with the fair die, and what
portion with the loaded die?
GIVEN
1245526462146146136136661664661636616366163616515615115146123562344
Prob(6) = 64%
QUESTION
How loaded is the loaded die? How fair is the fair die? How
often does the casino player change from fair to loaded, and
back?
Alternative approach
event-based signal partitioning
recognition on step-basis
44
Motion Sensors
YoYo
Factory
Spin
Top
Video
46
Traditional Gyroscope
47
MEMS gyroscope
http://electroiq.com/blog/2010/11/introduction-to-mems-gyroscopes/
Coriolis Effect
An object moving in a reference frame
(coordinate) which is rotating, "receives" in this
coordinate a force when the moving direction is
different to the rotation axis, "pushing" the object
aside from its original path
48
Coriolis Effect
Coriolis Effect
An object moving in a reference frame
(coordinate) which is rotating, "receives" in this
coordinate a force when the moving direction is
different to the rotation axis, "pushing" the object
aside from its original path
49
MEMS gyro
http://electroiq.com/blog/2010/11/introduction-to-mems-gyroscopes/
gyroscope in iPad
tremble hand compensation when taking pictures
51
IMUs
InvenSense MPU-6500
6-Axis (Gyro + Accel.) MEMS MotionTracking Devices
in a 3 x 3 x 0.9 mm package
52
Workflow Detection
With Accel. and Gyro
53
IMU as a default
54
Hack it in 48 hours!
7 Universities partecipating:
48 hours to develop an Embedded System
Must use the given platform EFM32 Giant Gecko
Free food, coffee etc. and most important free Red Bulls J
55
EMECS-thon 2015 - TUKL - MIDFIT (Make it work! Don't fix it)
mobile phone
.raw data from accelerometer
.through Bluetooth out
processing unit
.accelerometer raw data to control information
(speed, angle)
.VGA control
thanks to:
Fabian Faul
Johannes Stlp
Vasiar Allaj
56
EMECS-thon 2015 - TUKL - MIDFIT (Make it work! Don't fix it)
https://www.youtube.com/watch?v=pkLiHEAMqEo&t=3m42s 57
FSR for Muscle Activity Monitoring
58
Experiment
Level Walking
Ascending
Two FSRs placed under
right shoe of each subject
Each subject walked pre-
defined path without
Descending further instructions
Data was labeled during
experiment
59
Lag Extraction
T2 2 T2 T2+1
2. Identify ball and heel
strikes that belong
together
T1 T2
3. Calculate lag (T2-T1)
between ball and
corresponding heel
strike
60
Lags
61
Intra-variability
Interquartile range
(IQR)
Level Walk
Ascending
Descending
Mean STD
Intra-Variability: Level + 0.12 0.055
Ascend -0.002 0.02
6 data sets of same subject
Descend - 0.084 0.032
Mean STD
63
Recognition
Bayes Classifier: arg max Class p(Class / Lag)
Confusion Matrix
64
Muscle Movement
down up
66
Joints Friendly Downhill Walking
67
Long vs. Short Strides
short long
68
Modes of Locomotion Recognition
69
Muscle Activity Intensity
Example
70
Squats Technique
correct asymmetric
cheat
71
from FSR to Resistive Array
Hardware.jpg
Zhou,B., Sundholm, M., Cheng, J., Cruz, H., Lukowicz, P., Never Skip Leg Day: A Novel Wearable Approach to Monitoring Gym
Leg Exercises, PerCom2016 72
Sound Based Detection
SPECTRUM WALKING
74
75
Further Examples
Visualization
withProf. Gutknecht
real motion -> word, shape, color, background image...
ETH Zrich
78
Butoh Dance Visualization
79
Homework
try sliding window approach
data recording
(standing *20s + walking *20s + running *20s ) *5
repeats
synchronization at start/end of each activity for
labelling
better share data also with others
data pre-processing
plot raw data with timestamps
create labels (ground truth by looking at the data)
80
Homework
try sliding window approach
sliding window
window size and step as a parameter
short-time Fourier transform and plot result
calculate features
plot features with timestamps + labels
select 3 features and plot in 3-D space the
distribution (different labels with different markers)
81
Homework
possible features
W. Dargie, "Analysis of Time and Frequency Domain Features of
Accelerometer Measurements," Computer Communications and
Networks, 2009. ICCCN 2009. Proceedings of 18th Internatonal
Conference on, San Francisco, CA, 2009, pp. 1-6.
82