Real-time motion and activity recognition Seminar: Post-Desktop User - - PowerPoint PPT Presentation

real time motion and activity recognition
SMART_READER_LITE
LIVE PREVIEW

Real-time motion and activity recognition Seminar: Post-Desktop User - - PowerPoint PPT Presentation

Real-time motion and activity recognition Seminar: Post-Desktop User Interfaces Tim Hemig and Moritz Wittenhagen November 9, 2006 Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 1 / 42 Contents


slide-1
SLIDE 1

Real-time motion and activity recognition

Seminar: Post-Desktop User Interfaces Tim Hemig and Moritz Wittenhagen November 9, 2006

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 1 / 42

slide-2
SLIDE 2

Contents

1

Sensors Overview Sensors

2

Activity Recognition Basics Training data Classifiers Studies

3

Motion Recognition Pattern recognition Comparing motion Transferring motion Interesting projects

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 2 / 42

slide-3
SLIDE 3

Sensor overview

Camera (lab conditions, absolute position with teamwork) Acceleration sensor (heading & orientation) Magnetic sensor (orientation) Gyroscope - angular rate sensor (orientation) Electromyogram (EMG) (force, frequency)

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 3 / 42

slide-4
SLIDE 4

Pro & Contra

Camera: High accuracy - but lab conditions and problems with light/markers Acceleration: Good heading information - but calibration & confusion with too fast movements Magnetic: absolute attitude without calibration - but sensible to (electro-)magnetic noise Gyroscope: Good attitude - but no information about position Electromyogram: good frequency information - but no accurate magnitude

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 4 / 42

slide-5
SLIDE 5

Camera

High Speed Digital IP-Camera (500 FPS - 1280x1024) Up to 12m capture area with 6 cameras (stage) processing speed is enough for 2 actor realtime-performance (on a current gaming PC) cameras already prepare data for interpretation very small reflectors

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 5 / 42

slide-6
SLIDE 6

Acceleration

commercial field not limited to industrial products almost all scales available +-1.5g up to +-10g with around 600steps

1g

for miniaturised sensors Human peak acceleration: 12g

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 6 / 42

slide-7
SLIDE 7

Magnetic

HAL-sensor in general, very accurate determines absolute orientation related to Earth’s Magnetic field from 120 micro-Gauss to 6 Gauss (Earth has 250 milli-Gauss)

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 7 / 42

slide-8
SLIDE 8

Electromyogram

Measures electrical current associated with muscular action. Does not measure movement directly. Not influenced by gravity. Contact resistance is a significant variable. Displacement, velocity and power cannot be obtained. Sensitive to remote muscle activity and interference.

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 8 / 42

slide-9
SLIDE 9

Combined sensor types

Magnetic Angular Rate Acceleration sensor by Bachmann/McGhee 3 magnetic sensors 3 angular rate 3 acceleration sensors all sensors are orthogonal arranged (size 10.1 x 5.5 x 2.5 cm)

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 9 / 42

slide-10
SLIDE 10

Best choice

Mostly acceleration data is used No movement: measures orientation Movement: measures heading and distance (s = 1

2at2)

Most efficient sensor

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 10 / 42

slide-11
SLIDE 11

Motion/Activity Recognition Comparison

Activity Recognition Motion Recognition series of movements

  • nly one movement

few sensors needed lots of sensors classification classification, comparison and transfer

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 11 / 42

slide-12
SLIDE 12

Contents

1

Sensors Overview Sensors

2

Activity Recognition Basics Training data Classifiers Studies

3

Motion Recognition Pattern recognition Comparing motion Transferring motion Interesting projects

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 12 / 42

slide-13
SLIDE 13

What is Activity Recognition?

Focused on the purpose of a movement and not the movement itself Usually done with accelerometer data Classification problem Purpose: Use the context information to build smart devices

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 13 / 42

slide-14
SLIDE 14

The Approach to Activity Recognition

1 Gather data for activity templates 2 Train classifier from the collected data 3 Use the classifiers on ”real” data Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 14 / 42

slide-15
SLIDE 15

Training Data

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 15 / 42

slide-16
SLIDE 16

Data source

Mostly accelerometer data Several positioning possibilities Example: Sensor placement [Bao, Intille, PERVASIVE ’04] Wireless data transfer

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 16 / 42

slide-17
SLIDE 17

Collection of Training Data

Laboratory training data

◮ Tell subjects what to do and record the sensor data ◮ Easy to get ◮ Not necessarily good because subjects may behave different when being

aware of what they are doing

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 17 / 42

slide-18
SLIDE 18

Collection of Training Data

Laboratory training data

◮ Tell subjects what to do and record the sensor data ◮ Easy to get ◮ Not necessarily good because subjects may behave different when being

aware of what they are doing

Naturalistic training data

◮ gathered by watching subjects performing their everyday activities ◮ subjects are not aware of them being watched ◮ very hard to achieve Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 17 / 42

slide-19
SLIDE 19

Collection of Training Data

Laboratory training data

◮ Tell subjects what to do and record the sensor data ◮ Easy to get ◮ Not necessarily good because subjects may behave different when being

aware of what they are doing

Naturalistic training data

◮ gathered by watching subjects performing their everyday activities ◮ subjects are not aware of them being watched ◮ very hard to achieve

Semi-naturalistic training data

◮ Subjects get a list of activities to perform during the day ◮ The collected data is self-described by the person ◮ Much closer to naturalistic data then lab-gained data Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 17 / 42

slide-20
SLIDE 20

Classifiers

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 18 / 42

slide-21
SLIDE 21

Some classifiers

Base-level

◮ Naive Bayes ◮ k-nearest neighbor ◮ Decision trees Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 19 / 42

slide-22
SLIDE 22

Decision Trees

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 20 / 42

slide-23
SLIDE 23

Decision Trees

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 20 / 42

Feature Occurrence Rain 20% Videos 50%

slide-24
SLIDE 24

Decision Trees

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 20 / 42

Feature Occurrence Rain 80% Videos 50%

slide-25
SLIDE 25

ID3

ID3 is an algorithm used to train decision trees It computes the quality of the questions on a certain node and chooses the best one Quality is measured by entropy

H(X) = − |Z|

i=1 pi · log2(pi)

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 21 / 42

slide-26
SLIDE 26

Some classifiers

Base-level

◮ Naive Bayes ◮ k-nearest neighbor ◮ Decision trees

Meta-level

◮ Boosting ◮ Bagging ◮ Plurality voting ◮ Meta Decision Trees (MDTs) Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 22 / 42

slide-27
SLIDE 27

Studies

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 23 / 42

slide-28
SLIDE 28

Example Study

Study by Ling Bao and Stephen Intille Activity Recognition from User-Annotated Acceleration Data Focus on:

◮ Good data acquisition ◮ What is the best classifier? Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 24 / 42

slide-29
SLIDE 29

Example Study (Setup)

20 different activities were considered Data of 20 subjects was used The data came from 5 bi-axial accelerometers (± 10g) Subjects were responsible for annotating the data themselves (semi-naturalistic) Classifiers were trained using two different protocols

◮ Train the classifier with data from all subjects but one and test it on

the remaining subject’s testing data

◮ Train the classifier with the subject’s data and test it with the subject’s

  • wn testing data

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 25 / 42

slide-30
SLIDE 30

Example Study (Results)

Decision trees were the most accurate classifier (84% accuracy rate) Some activities are easily confused with other activities The leave-one-out training policy yielded better results User-specific training may be required for some activities

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 26 / 42

slide-31
SLIDE 31

Other Studies (Results)

Real-Time Motion Classification for Wearable Computing Applications [DeVaul, Dunn, MIT ’01]

◮ You can rely on very short FFT windows for ”easy” questions ◮ More complicated questions can be answered by classifying the

classification results

Activity Recognition from Accelerometer Data [Ravi, Rutgers ’05]

◮ For some activities it is enough to use one triaxial accelerometer ◮ Plurality voting is the best meta-classifier

Predicting Human Interruptibility with Sensors [Hudson, Carnegie Mellon ’03]

◮ Speech detectors are a possibility to determine a person’s

interruptibility

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 27 / 42

slide-32
SLIDE 32

Possible Future Studies

How much improvement can be expected using user-specific training data? What is the best count and position for sensors? Are accelerometers the best data source?

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 28 / 42

slide-33
SLIDE 33

Conclusion

Activity recognition is a classification problem The way of gathering training data is important Studies indicate that decision trees are the best ”basic” classifiers Plurality voting is the best meta classifier Classification works fast and well on ”easy” questions More complex questions might be answered after user-specific training

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 29 / 42

slide-34
SLIDE 34

Contents

1

Sensors Overview Sensors

2

Activity Recognition Basics Training data Classifiers Studies

3

Motion Recognition Pattern recognition Comparing motion Transferring motion Interesting projects

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 30 / 42

slide-35
SLIDE 35

What does motion recognition do?

Analyse sports movement or synchronous performance Transfer motion to an avatar User interface for ubiquitous computing

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 31 / 42

slide-36
SLIDE 36

What does motion recognition do?

Analyse sports movement or synchronous performance Transfer motion to an avatar User interface for ubiquitous computing And a lot more you did not think about yet...

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 31 / 42

slide-37
SLIDE 37

Approach to motion recognition

Humans can do that with their eyes Optical sensors (cameras) would be the translation Cameras can track areas of special color or contrast Calibrated cameras can recognize exact movement in lab conditions

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 32 / 42

slide-38
SLIDE 38

Approach to motion recognition

Humans can do that with their eyes Optical sensors (cameras) would be the translation Cameras can track areas of special color or contrast Calibrated cameras can recognize exact movement in lab conditions Under real conditions body centric sensors are necessary Sensors for magnetism, acceleration and angular rate

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 32 / 42

slide-39
SLIDE 39

Combining all sensors

sensor data can be transferred to absolute orientation of body parts all orientations on stable values are defining one posture dynamic values indicate a motion, a gesture

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 33 / 42

slide-40
SLIDE 40

Detecting motion

Motion detection by Kwon&Gross (ETHZ) Motion chunks are detected by high changes in values using Hidden Markov Model (Pattern recognition)

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 34 / 42

slide-41
SLIDE 41

Detecting motion

Motion detection by Kwon&Gross (ETHZ) Motion chunks are detected by high changes in values using Hidden Markov Model (Pattern recognition) Difference between starting value and ending value indicate a characteristic

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 34 / 42

slide-42
SLIDE 42

Detecting motion

Motion detection by Kwon&Gross (ETHZ) Motion chunks are detected by high changes in values using Hidden Markov Model (Pattern recognition) Difference between starting value and ending value indicate a characteristic Stochastic process has to be trained

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 34 / 42

slide-43
SLIDE 43

Comparing motion

Comparing data for delay of similar movement (Aylward & Paradiso - NIME ’06, pages 134-139) Cross-covariance used on small time windows of the signals (f ⋆ g)(x) ≡

  • f ∗(t)g(x + t) dt

Sensor data as signal data for review by expert.

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 35 / 42

slide-44
SLIDE 44

Transferring motion

Transformation does not need any interpretation, it is just rescaled and processed into an 3D Engine

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 36 / 42

slide-45
SLIDE 45

Transferring motion

Transformation does not need any interpretation, it is just rescaled and processed into an 3D Engine Full body suits with acceleration sensors - (VIDEO)

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 36 / 42

slide-46
SLIDE 46

Transferring motion

Transformation does not need any interpretation, it is just rescaled and processed into an 3D Engine Full body suits with acceleration sensors - (VIDEO) Transferring motion to animated characters

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 36 / 42

slide-47
SLIDE 47

Detecting other Motion

Not only human motion can be detected

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 37 / 42

slide-48
SLIDE 48

Detecting other Motion

Not only human motion can be detected Interaction with e.g. mobile phones by moving the phone User can controll almost all features

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 37 / 42

slide-49
SLIDE 49

Interesting projects

Training Avatar for martial arts

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 38 / 42

slide-50
SLIDE 50

Interesting projects

Training Avatar for martial arts The ”Moven” motion capture suit by Xsens (Enschede, NL)

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 38 / 42

slide-51
SLIDE 51

Interesting projects

Training Avatar for martial arts The ”Moven” motion capture suit by Xsens (Enschede, NL) ”Motion Captor” by Meta Motion

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 38 / 42

slide-52
SLIDE 52

Interesting projects

Mobile phones with motion detecting interface by Samsung (Korea)

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 39 / 42

slide-53
SLIDE 53

Interesting projects

Mobile phones with motion detecting interface by Samsung (Korea) ”Sketch Furniture” by Front

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 39 / 42

slide-54
SLIDE 54

Video ”FRONT”

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 40 / 42

slide-55
SLIDE 55

Future work in motion recognition

Accuracy of all sensors can be improved In general sensors are small enough, but smaller is better More implementation work (Frameworks)

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 41 / 42

slide-56
SLIDE 56

Conclusion

Motion recognition consists of transferring, comparing and detecting motion generally sensors meet necessary requirements is commonly used in commercial applications helps to create cool projects

Tim Hemig and Moritz Wittenhagen () Real-time motion and activity recognition November 9, 2006 42 / 42