Top Banner
1 Activity Recognition with a Smart Walker Pascal Poupart Associate Professor Cheriton School of Computer Science University of Waterloo Friday, October 1st, 2010 CS886: AI for Healthcare Applications
47

Activity Recognition with a Smart Walker

Dec 29, 2021

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Activity Recognition with a Smart Walker

1

Activity Recognition with a Smart Walker

Pascal PoupartAssociate Professor

Cheriton School of Computer Science University of Waterloo

Friday, October 1st, 2010CS886: AI for Healthcare Applications

Page 2: Activity Recognition with a Smart Walker

2

Smart Walker Project

• Smart walker: rollating walker instrumented with sensors

• Problem: user activity recognition

• Contributions:– HMM and CRF modeling– Comparative analysis of supervised and unsupervised algorithms– Experimentation with regular walker users

Page 3: Activity Recognition with a Smart Walker

3

Outline

• Motivation• Experimental data• Probabilistic models

– Hidden Markov Model• Maximum likelihood• Bayesian learning

– Conditional Random Field• Conditional maximum likelihood

• Results• Conclusion & Future Work

Page 4: Activity Recognition with a Smart Walker

4

Disability Statistics• US National Business Service Alliance (July 2006)

Page 5: Activity Recognition with a Smart Walker

5

Disability Statistics• US National Business Service Alliance (July 2006)

Types of disabilities

Page 6: Activity Recognition with a Smart Walker

6

Mobility aids

Encourage walkingIncrease safety

Discourage walking

Page 7: Activity Recognition with a Smart Walker

7

Smart Walker

walker devices

+ caregivers

users

Force sensorsLoad sensorsVideo camerasMicrophoneSpeech synthesizerServo-brakesetc.

assist

Smart walker

Page 8: Activity Recognition with a Smart Walker

8

Current Prototype

• Designed by James Tung, Bill McIlroy and Kamran Habib (U of Waterloo and Toronto Rehab Institute)

• Overall objective: enhance mobility of elderlies– Monitoring: measure stability, detect falls– Assistance: braking, steering– Clinical research: collect usage data in non-laboratory setting

• New paradigm: ubiquitous computing in healthcare

Page 9: Activity Recognition with a Smart Walker

9

Clinical Assessment• Kinesiologists at Toronto Rehab and the Village of

Winston Park assess walking abilities of patients/residents on a regular basis– Traditionally: timed-up-and-go test and balance control

assessment– Recently: walking course with instrumented walker

• Quantitative data used to– Prescribe mobility aid– Recommend exercise schedule– Monitor improvement/deterioration of walking abilities

Page 10: Activity Recognition with a Smart Walker

10

Activity Recognition• State of the art: kinesiologists hand label sensor data

by looking at video feeds– Time consuming and error prone!

Backward view Forward view

Page 11: Activity Recognition with a Smart Walker

11

Activity Recognition

• Our contribution: automated techniques for activity recognition based on the non-video sensors

• Related work: – Alwan et al. (2004): infer gait characteristics the load applied

to the walker handles– Hirata et al. (2006): infer whether the user is walking, sitting or

in situation of emergency by measuring distance between walker and user

Page 12: Activity Recognition with a Smart Walker

12

Outline

• Motivation• Experimental data• Probabilistic models

– Hidden Markov Model• Maximum likelihood• Bayesian learning

– Conditional Random Field• Conditional maximum likelihood

• Results• Conclusion & Future Work

Page 13: Activity Recognition with a Smart Walker

13

Raw Sensor Data• 8 channels:

– Forward acceleration– Lateral acceleration– Vertical acceleration– Load on left rear wheel– Load on right rear wheel– Load on left front wheel– Load on right front wheel– Wheel rotation counts (speed)

• Data recorded at 50 Hz and digitized (16 bits)

Page 14: Activity Recognition with a Smart Walker

14

Experiment 1• 17 healthy young subjects (19-53 years old)• Each person performed the course twice

Page 15: Activity Recognition with a Smart Walker

15

Activities in Experiment 1

• Activities– Not touching the walker (NTW)– Transfers (sit ↔ stand) (TR)– Standing (ST)– Walking Forward (WF)– Turning Left (TL)– Turning Right (TR)– Walking Backwards (WB)

Page 16: Activity Recognition with a Smart Walker

16

Experiment 2• 8 walker users at Winston Park (84-97 years old)• 12 older adults (80-89 years old) in the Kitchener-

Waterloo area who do not use walkers

Page 17: Activity Recognition with a Smart Walker

17

Activities in Experiment 2

• Activities– Not Touching the Walker (NTW)– Standing (ST)– Walking Forward (WF)– Turning Left (TL)– Turning Right (TR)– Walking Backwards (WB)– Sitting on the Walker (SW)– Reaching Tasks (RT)– Going Up Ramp/Curb (GUR/GUC)– Going Down Ramp/Curb (GDR/GDC)

Page 18: Activity Recognition with a Smart Walker

18

Hypotheses I• Activities expected to be easily distinguishable

Page 19: Activity Recognition with a Smart Walker

19

Hypotheses II

• Less obvious distinctions due to a variety of behaviours– Turns:

• load fluctuations on side of turn• reduced speed compared to walking• Mild lateral force

– Vertical transitions: • Fluctuations in vertical acceleration• Load fluctuations

– Transfers: • Fluctuations in rear load• Mild movements

– Reaching tasks• Unclear effect on sensors

Page 20: Activity Recognition with a Smart Walker

20

Outline

• Motivation• Experimental data• Probabilistic models

– Hidden Markov Model• Maximum likelihood• Bayesian learning

– Conditional Random Field• Conditional maximum likelihood

• Results• Conclusion & Future Work

Page 21: Activity Recognition with a Smart Walker

21

Probabilistic Models

• Hidden Markov Model (HMM)– Supervised

• Maximum likelihood (ML)

– Unsupervised• Expectation maximization (EM)• Bayesian Learning

• Conditional Random Field (CRF)– Supervised

• Maximum conditional likelihood

Page 22: Activity Recognition with a Smart Walker

22

Hidden Markov Model (HMM)

• Parameters– Initial state distribution:– Transition probabilities:– Emission probabilities:

Xt

Yt Yt Yt…

Xt+1

Yt+1 Yt+1 Yt+1…

Xt+2

Yt+2 Yt+2 Yt+2…1 1 12 2 2 888

Page 23: Activity Recognition with a Smart Walker

23

Supervised Maximum Likelihood

• Supervised learning: – Relative frequency counts

– Alternatively, to avoid bias due to predefined course

Page 24: Activity Recognition with a Smart Walker

24

Unsupervised Maximum Likelihood• Expectation maximization (EM)

– Expectations

– Improvement

• May overfit or get stuck in local optima!

Page 25: Activity Recognition with a Smart Walker

25

Bayesian Learning

• Parameters treated as random variables• More robust to overfitting and local optima

X0

Y0 Y0 Y0…

Xt

Yt Yt Yt…

Xt+1

Yt+1 Yt+1 Yt+1…1 1 12 2 2 888

π θ

φ1 φ2 φ8…

Page 26: Activity Recognition with a Smart Walker

26

Bayesian Learning

X0

Y0 Y0 Y0…

Xt

Yt Yt Yt…

Xt+1

Yt+1 Yt+1 Yt+1…1 1 12 2 2 888

π θ

φ1 φ2 φ8…

Conditional distributions Priors

Page 27: Activity Recognition with a Smart Walker

27

Dirichlet Distributions• Dirichlets are monomials over discrete random

variables

• Properties of Dirichlets– Easy to integrate– Conjugate prior

for discrete likelihood distributions

Page 28: Activity Recognition with a Smart Walker

28

Bayesian Learning

• Parameter learning: compute posterior

• Intractable: exponential mixture of Dirichlets

• Approximate solution: Gibbs sampling

Page 29: Activity Recognition with a Smart Walker

29

Gibbs Sampling

• Markov chain that converges to the posterior• Repeatedly sample

X0

Y0 Y0 Y0…

Xt

Yt Yt Yt…

Xt+1

Yt+1 Yt+1 Yt+1…1 1 12 2 2 888

π θ

φ1 φ2 φ8…

Page 30: Activity Recognition with a Smart Walker

30

Collapsed Gibbs Sampling

• Faster convergence• Repeatedly sample while integrating out

X0

Y0 Y0 Y0…

Xt

Yt Yt Yt…

Xt+1

Yt+1 Yt+1 Yt+1…1 1 12 2 2 888

π θ

φ1 φ2 φ8…

Page 31: Activity Recognition with a Smart Walker

31

Prediction

• Maximum aposteriori filtering

• Recursive belief monitoring

• Online prediction in real-time

Page 32: Activity Recognition with a Smart Walker

32

Conditional Random Field (CRF)

• Discriminative training: maximum conditional likelihood• Does not assume conditional independence of sensor

measurements• Use features instead of raw measurements

Xt

Ft Ft Ft…

Xt+1

Ft+1 Ft+1 Ft+1…

Xt+2

Ft+2 Ft+2 Ft+2…

Sensor measurements Y0..T

1 1 12 2 2n n n

Page 33: Activity Recognition with a Smart Walker

33

Conditional Random Field (CRF)

• Probabilistic model

• Transition features: capture persistence

Page 34: Activity Recognition with a Smart Walker

34

Conditional Random Field (CRF)• Sensor features: thresholded average and std

– Let g(yt-w..t) be the average or std of • speed, total load, center of pressure (media-lateral, anterior-

posterior), acceleration (forward, lateral, vertical)• For windows of 1, 5, 25 and 50 measurements

– Features take the form

– Thresholds • Initially: handcrafted based on data inspection• Later: learned by linear regression and logistic regression

Page 35: Activity Recognition with a Smart Walker

35

Conditional Random Field (CRF)

• Training: maximize conditional log-likelihood

– Concave optimization– Conjugate gradient

• Prediction:

– Online and real-time

Page 36: Activity Recognition with a Smart Walker

36

Outline

• Motivation• Experimental data• Probabilistic models

– Hidden Markov Model• Maximum likelihood• Bayesian learning

– Conditional Random Field• Conditional maximum likelihood

• Results• Conclusion & Future Work

Page 37: Activity Recognition with a Smart Walker

37

Demo

Page 38: Activity Recognition with a Smart Walker

38

Evaluation Methodology• Leave-one-out cross validation• Performance measures:

– Activity prediction

– Activity changes:

• A prediction is counted as correct if the corresponding activity (change) occurs within a window of ±w– w ∈ [0, 50]

Page 39: Activity Recognition with a Smart Walker

39

Results

Page 40: Activity Recognition with a Smart Walker

40

Results• Accuracy in %, window size: 25

Model NTW ST WF TL TR WB TRS overall

HMM (ML) 65 88 95 96 92 95 85 91

CRF 96 82 98 89 80 94 70 93

HMM (EM) 100 14 48 94 90 97 0 61

HMM (Gibbs) 100 72 95 66 72 44 17 83

Model NTW ST WF TL TR WB RT SW GUR GDR GUC GDC totalHMM (ML)

50 71 73 81 73 21 52 99 86 86 94 85 81

CRF 78 94 95 51 20 0 5 99 31 23 67 13 81

HMM (EM)

73 33 54 63 63 7 30 99 40 23 15 91 62

HMM (Gibbs)

100 42 77 69 81 0 62 91 57 52 46 2 69

Page 41: Activity Recognition with a Smart Walker

41

Discussion• Experiment 1: better results than Experiment 2

– Participants perform the course twice– Less complex activities

• CRF: better results than HMM– Discriminative approach well suited– Sensor measurements violate conditional independence

• Latent states obtained by unsupervised techniques:– Manually match each latent state with the activity it is most

frequently predicted as– Sub-dividing or merging activities may improve the results

Page 42: Activity Recognition with a Smart Walker

42

Outline

• Motivation• Experimental data• Probabilistic models

– Hidden Markov Model• Maximum likelihood• Bayesian learning

– Conditional Random Field• Conditional maximum likelihood

• Results• Conclusion & Future Work

Page 43: Activity Recognition with a Smart Walker

43

Conclusion

• Contributions– Introduced the problem of recognizing the activity of walker

users from streams of low-level sensor measurements– Presented supervised and unsupervised algorithms based on

HMMs and CRFs– Showed results with real data from regular walker users and

people who do not use walkers– Proposed algorithms can be regarded as “baselines” that yield

good results that we plan to further improve.

Page 44: Activity Recognition with a Smart Walker

44

Future Work

• Improve accuracy– Extract features from video– Develop more sophisticated models (e.g., hierarchical, time)– Combine with limb tracking

• Evaluation– Long-term recordings– Undefined walking course

• Use activity models to – Assist braking and navigation safely– Evaluate risk of falling– Evaluate activity patterns and level of exercise

Page 45: Activity Recognition with a Smart Walker

45

Vision: Robotic Nurse• Navigation assistance

– Obstacle avoidance – Route to some destination

• Personal trainer– Monitor and coach exercises

• Reminder system– Medication, appointments, location

• Alert system– Notify caregiver when in need or fallen

• Conversational companion– Speech recognizer/generator

Page 46: Activity Recognition with a Smart Walker

46

Pascal’s Health Related Projects

• Behaviour recognition with a smart walker– Farheen Omar (PhD), Mathieu Sinn (Postdoc)

• Limb tracking with a smart walker– Richard Hu (MMath)

• Automated feature generation in temporal models– Adam Hartfiel (PhD), Mathieu Sinn (Postdoc)

• Voice, Location and Activity Monitoring for Alzheimer– James Tung (Postdoc)

Page 47: Activity Recognition with a Smart Walker

47

Thank You

Questions?