Docsity

Esame Sistemi Context-Aware, Guide, Progetti e Ricerche di Machine learning

Anteprima parziale del testo

Scarica Esame Sistemi Context-Aware e più Guide, Progetti e Ricerche in PDF di Machine learning solo su Docsity!

Activity Recognition Method

for Home-Based Elderly Care Service

Based on Random Forest and Activity

Similarity

Paola Persico [email protected] Magistrale in Informatica 2019/

Introduction

Ageing society

Intelligent home-

based care services

Activity-aware

Systems

Quality of life Cost of Health Care

HAR approach (1)

 Type of activity

  1. Abnormal activities
  2. Daily activities 5 categories 12 activities

HAR approach (2)

 HAR technique

  1. Vision-based
  2. Sensor-based 2.1 External sensors 2.2 Wearable sensors Pros:  Comfortable to carry  Lightweight  Always on 3 - axis accelerometer wristband

HAR approach (4)

Problem: possible misjudgements  Idea: correct RF result exploiting location, time, and similarity between activities AR-RFAS MODEL Where:

  • x - > tri-axial acceleration
  • F(x) - > Random Forest output activity
  • HLT - > set of possible activities at that location and time
  • AcCorr[i][j] - > similarity between activity i and activity j

Random Forest: Bagging

Bagging  Meta-classification technique  Bootstrap aggregating More models of the same type trained on different datasets, each one obtained from the initial dataset using a random sampling with replacement Aggregation of the results to obtain a better result

accx_ mode accx_ mean accx_ min accx_ max activity Low Low Low High Brush teeth High High High High Comb hair High High Low High Drink water High Low High High Comb hair

Random Forest: How?

1. Creation of the Decision Trees 1.1 Creation of the bootstrapped datasets (e.g. 100) accx_ mode accx_ mean accx_ min accx_ max activity High High High High Comb hair

accx_ mode accx_ mean accx_ min accx_ max activity Low Low Low High Brush teeth High High High High Comb hair High High Low High Drink water High Low High High Comb hair

Random Forest: How?

1. Creation of the Decision Trees 1.1 Creation of the bootstrapped datasets (e.g. 100) accx_ mode accx_ mean accx_ min accx_ max activity High High High High Comb hair Low Low Low High Brush teeth

Random Forest: How?

1. Creation of the Decision Trees 1.1 Creation of the bootstrapped datasets (e.g. 100) accx_ mode accx_ mean accx_ min accx_ max activity High High High High Comb hair Low Low Low High Brush teeth High Low High High Comb hair High Low High High Comb hair Training sample accx_ mode accx_ mean accx_ min accx_ max activity Low Low Low High Brush teeth High High High High Comb hair High High Low High Drink water High Low High High Comb hair

1 .1 Deriving the decision tree, but only choosing between a random subset of features at each step accx_ mode accx_ mean accx_ min accx_ max activity Low Low Low High Brush teeth High High High High Comb hair High High Low High Drink water High Low High High Comb hair

Random Forest: How?

**1. Creation of the Decision Trees

  1. Aggregation of the classifications** 2.1 voting method Accx_ min High Low

Experiment (1)

1. Sensor sampling

2. Feature extraction

 HMP dataset

  • values of wrist-placed accelerometers
  • 729.476 records
  • 14 activities
  • 979 trials
  • 16 volunteers  max, min, range  mean, mode  standard deviation  etc.

3. AR-RFAS model building

Experiment (2)

 4 experiments - > 4 datasets

  • DS 4 = original dataset
  • DS 1 = ¼ DS 4
  • DS 2 = ½ DS 4
  • DS 3 = ¾ DS 4  for each experiment: Train Dataset Test Dataset Dataset
  • 10 - fold cross-validation 1 ° round 2 ° round 10 ° round …

Result Analysis (1)

 Random Forest vs related classifiers

 each one was executed 50 times  Result : RF had the best Average Comprehensive Accuracy

Result Analysis (2)

 Random Forest vs AR-RFAS

 we used DS 4  each algorithm was executed 50 times  Result : average accuracy of AR-RFAS = 96%, average accuracy of Random Forest = 92%