29.06.2013 Views

NUI Galway – UL Alliance First Annual ENGINEERING AND - ARAN ...

NUI Galway – UL Alliance First Annual ENGINEERING AND - ARAN ...

NUI Galway – UL Alliance First Annual ENGINEERING AND - ARAN ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Determining Subjects’ Activities from Motion Sensor Data using Ensembles<br />

Abstract<br />

Presented here is an approach to predict what type of<br />

motion or activity a person is performing using the<br />

Dynamic Time Warping (DTW) method based on data<br />

from accelerometers worn by or interacted with a<br />

person. DTW is a method of comparing similarities<br />

between two sequences of time series data. When a<br />

particular sequence is tested, it is classified as the<br />

sequence type to which it is most similar. Using<br />

ensembles involves taking the results of multiple<br />

sensors or streams of direction from each sensor i.e. X,<br />

Y, Z, and using the majority decision to be the overall<br />

classification. This technique is being applied to three<br />

separate datasets: 1. The MIT Place Labs, 2. uWave<br />

Application, 3. Cricket Umpire Signals. This is done to<br />

illustrate that the method can be used across a number<br />

of different activity types.<br />

1. Introduction<br />

One of the major motivations for research into<br />

activity detection is to develop methods for real time<br />

monitoring of elderly or post operative patients. “The<br />

number of older persons has tripled over the last 50<br />

years; it will more than triple again over the next 50<br />

years” [1]. Other motivations include the development<br />

of more commercial ventures such as computer games<br />

development. E.g. Nintendo Wii.<br />

For each of the three datasets the subject(s) are<br />

performing multiple activities. The Place Labs contains<br />

information of subjects performing Activities of Daily<br />

Living (ADL) with accelerometers on the wrist, hip and<br />

thigh which include dressing, washing, preparing food,<br />

using phone, computer use and bathroom use. The<br />

uWave and Cricket datasets both have only one<br />

accelerometer and involve hand gestures with a<br />

Nintendo Wii remote/smart phone and signals of a<br />

cricket umpire (accelerometer on wrist), respectively.<br />

Figure 1. uWave [2] & Cricket gestures<br />

[http://crickettips.hpage.com/umpiring__74834427.html]<br />

2. Method<br />

For each activity performed by a subject, the<br />

accelerometer returns the rate of acceleration with a<br />

timestamp. The Place Labs data is then preprocessed<br />

using down sampling, interpolation and moving<br />

Conor O’Rourke<br />

Michael G. Madden<br />

c.orourke3@nuigalway.ie<br />

41<br />

averages where necessary, while the uWave and Cricket<br />

data was received processed [3]. Following this, the<br />

samples are separated into training and test data, they<br />

are then tested with the DTW algorithm. Every test case<br />

is compared with every training case and is classified to<br />

be the type to which it is most similar using the k-NN<br />

algorithm.<br />

Figure 2. DTW matches the similarities between two<br />

sequences of data [4]<br />

3. Ensembles<br />

An ensemble classifier uses a committee of base<br />

classifiers that vote on classification to make a final<br />

decision. For each instance an odd number of different<br />

categories of data from the one instance are tested i.e.<br />

multiple sensors or multiple streams of data (X, Y, Z).<br />

In which case a number of predicted classifications are<br />

made, the majority decision is taken to be the overall<br />

classification.<br />

Previous work on the uWave and Cricket datasets<br />

with DTW achieved results of approx. 72% [3] and<br />

80% [3] respectively. However they have not been<br />

tested using ensembles, it is hoped to improve results<br />

with ensembles using similar DTW methods.<br />

Ensembles have been tested on the Place Labs<br />

dataset which achieved results of 84.3% [5]. In an<br />

attempt to improve these results we plan to optimize the<br />

template selection, sampling frequency and warping<br />

windows.<br />

4. References<br />

[1]. Department of Economic and Social Affairs. World<br />

population Ageing:1950-2050. New York : United Nations<br />

Publications, 2001.<br />

[2]. Liu, J., et al. uWave: Accelerometer-based Personalized<br />

Gesture Recognition. Houston : Rice University and Motorola<br />

Labs, 2008.<br />

[3]. Keogh, E. Unpublished data in private communication.<br />

Nov 2010.<br />

[4]. Ratanamahatana, C.A. and Keogh, E. Making Time-series<br />

Classification More Accurate Using Learned Constraints.<br />

Riverside : University of California - Riverside.<br />

[5]. An Ensemble Dynamic Time Warping Classifier with<br />

Application to Activity Recognition. McGlynn, D. and<br />

Madden, M.G. Cambridge : Thirtieth SGAI International<br />

Conference on Innovative Techniques and Applications of<br />

Artificial Intelligence, 2010.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!