Diff of /README.md [000000] .. [fdc30e]

Switch to unified view

a b/README.md
1
*[In progress]*
2
3
# Analysis of the SisFall Dataset for Fall Detection
4
**Matthew Johnson, July 25, 2018 (last updated August 24, 2018)**
5
6
#### A dataset of performed trials of activities of daily living (ADLs) and falls with subjects wearing two triaxis accelerometers and a gyroscope.
7
<br>
8
I used features common throughout related literature, specifically from [3]:<br><br>
9
10
**Sum Vector Magnitude** =  ![Image](https://i.imgur.com/HAuhKDf.gif)
11
<br><br>
12
13
**Sum Vector Magnitude on Horizontal Plane** = ![Image](https://i.imgur.com/cte8bDa.gif)
14
<br><br>
15
16
**Angle between z-axis and vertical** = ![Image](https://i.imgur.com/Zp3A9aG.gif)
17
<br><br>
18
19
**Standard deviation magnitude on horizontal plane** = ![Image](https://i.imgur.com/QuFoizh.gif)
20
<br><br>
21
22
**Standard deviation magnitude** = ![Image](https://i.imgur.com/edDMmHI.gif)
23
<br><br>
24
25
**Signal Magnitude Area** = ![Image](https://i.imgur.com/EU9NIyQ.gif)
26
<br><br>
27
28
**Signal Magnitude Area on horizontal plane** = ![Image](https://i.imgur.com/3wFkSlu.gif)
29
<br><br>
30
31
SisFall Dataset: http://sistemic.udea.edu.co/en/investigacion/proyectos/english-falls/<br>
32
##### Sources: <br>
33
* [1] **Automatic Fall Monitoring: A Review**<br>
34
  *Natthapon Pannurat, Surapa Thiemjarus, and Ekawit Nantajeewarawat*
35
* [2] **Real-life/real-time elderly fall detection with a triaxial accelerometer**<br>
36
 *A. Sucerquia, J.D. López and J.F. Vargas-Bonilla*
37
* [3] **SisFall: A Fall and Movement Dataset**<br>
38
 *A. Sucerquia, J.D. López and J.F. Vargas-Bonilla*
39
* [4] **Fall-Detection Algorithm Using 3-Axis Acceleration: Combination with Simple Threshold and Hidden Markov Model**<br>
40
 *Dongha Lim, Chulho Park, Nam Ho Kim, Sang-Hoon Kim, and Yun Seop Yu*
41
42
### Sensor Orientation:
43
![Image](https://i.imgur.com/yJieKKw.png)
44
45
-----------
46
47
# Dataset Information
48
49
## Activities of Daily Living (ADLs):
50
51
52
| Code | Activity | # Trials | Trial Length |
53
---|---|---|---
54
| D01  | Walking slowly | 1      | 100s     |
55
| D02  | Walking quickly | 1      | 100s     |
56
| D03  | Jogging slowly | 1      | 100s     |
57
| D04  | Jogging quickly | 1      | 100s     |
58
| D05  | Walking upstairs and downstairs slowly | 5      | 25s      |
59
| D06  | Walking upstairs and downstairs quickly | 5      | 25s      |
60
| D07  | Slowly sit in a half height chair, wait a moment, and up slowly | 5      | 12s      |
61
| D08  | Quickly sit in a half height chair, wait a moment, and up quickly | 5      | 12s|
62
| D09  | Slowly sit in a low height chair, wait a moment, and up slowly | 5      | 12s      |
63
| D10  | Quickly sit in a low height chair, wait a moment, and up quickly| 5      | 12s      |
64
| D11  | Sitting a moment, trying to get up, and collapse into a chair| 5      | 12s      |
65
| D12  | Sitting a moment, lying slowly, wait a moment, and sit again | 5      | 12s      |
66
| D13  | Sitting a moment, lying quickly, wait a moment, and sit again | 5      | 12s      |
67
| D14  | Being on oneís back change to lateral position, wait a moment, and change to oneís back  | 5      | 12s      |
68
| D15  | Standing, slowly bending at knees, and getting up | 5      | 12s      |
69
| D16  | Standing, slowly bending without bending knees, and getting up | 5      | 12s      |
70
| D17  | Standing, get into a car, remain seated and get out of the car | 5      | 25s      |
71
| D18  | Stumble while walking | 5      | 12s      |
72
| D19  | Gently jump without falling (trying to reach a high object)| 5      | 12s      |
73
74
75
76
-----------
77
78
## Falls:
79
80
81
| Code | Activity | # Trials | Trial Length |
82
---|---|--- |---
83
| F01  | Fall forward while walking caused by a slip| 5      | 15s      |
84
| F02  | Fall backward while walking caused by a slip| 5      | 15s      |
85
| F03  | Lateral fall while walking caused by a slip| 5      | 15s      |
86
| F04  | Fall forward while walking caused by a trip| 5      | 15s      |
87
| F05  | Fall forward while jogging caused by a trip| 5      | 15s      |
88
| F06  | Vertical fall while walking caused by fainting | 5      | 15s      |
89
| F07  | Fall while walking, with use of hands in a table to dampen fall, caused by fainting| 5      | 15s      |
90
| F08  | Fall forward when trying to get up| 5      | 15s      |
91
| F10  | Fall forward when trying to sit down | 5      | 15s      |
92
| F11  | Fall backward when trying to sit down | 5      | 15s      |
93
| F09  | Lateral fall when trying to get up | 5      | 15s      |
94
| F12  | Lateral fall when trying to sit down | 5      | 15s      |
95
| F13  | Fall forward while sitting, caused by fainting or falling asleep| 5      | 15s      |
96
| F14  | Fall backward while sitting, caused by fainting or falling asleep| 5      | 15s |
97
| F15  | Lateral fall while sitting, caused by fainting or falling asleep| 5      | 15s      |
98
99
-----------
100
101
## Subjects:
102
103
104
| Subject | Age | Height | Weight | Gender |      |     | Subject | Age | Height | Weight | Gender |
105
---------|-----|--------|--------|-------- |  --- |  ---|---------|-----|--------|--------|--------         
106
| SA01    | 26  | 165    | 53     | F      |      |     | SA13    | 22  | 157    | 55     | F      |
107
| SA02    | 23  | 176    | 58.5   | M      |      |     | SA14    | 27  | 160    | 46     | F      |
108
| SA03    | 19  | 156    | 48     | F      |      | | SA15    | 25  | 160    | 52     | F      |
109
| SA04    | 23  | 170    | 72     | M      |      | | SA16    | 20  | 169    | 61     | F      |
110
| SA05    | 22  | 172    | 69.5   | M      |      | | SA17    | 23  | 182    | 75     | M      |
111
| SA06    | 21  | 169    | 58     | M      |      | | SA18    | 23  | 181    | 73     | M      |
112
| SA07    | 21  | 156    | 63     | F      |      | | SA19    | 30  | 170    | 76     | M      |
113
| SA08    | 21  | 149    | 41.5   | F      |      | | SA20    | 30  | 150    | 42     | F      |
114
| SA09    | 24  | 165    | 64     | M      |      | | SA21    | 30  | 183    | 68     | M      |
115
| SA10    | 21  | 177    | 67     | M      |      | | SA22    | 19  | 158    | 50.5   | F      |
116
| SA11    | 19  | 170    | 80.5   | M      |      | | SA23    | 24  | 156    | 48     | F      |
117
| SA12    | 25  | 153    | 47     | F      |      |
118
119
120
-----------
121
122
## Correlations:
123
124
I have noticed that the average of the maximum obtained value of horizontal vector magnitude standard deviation is inversely proportional to the amplitude of the same averaged measure in the first four falls, on a per activity per subject basis. The correlation between the two aforementioned variables is -0.89. The first four ADLs are walking and jogging so I am trying to use them as a baseline measure for personalized variance for threshold fall detection methods.
125
126
![Image](https://github.com/WJMatthew/SisFallAnalysis/blob/master/images/download%20(3).png)
127
<br>
128
![Image](https://github.com/WJMatthew/SisFallAnalysis/blob/master/images/download%20(2).png)
129
<br>
130
131
-----------
132
133
## Plotting method examples:
134
**plot_trials():** (Using set thresholds)
135
<br>
136
![Image](https://github.com/WJMatthew/SisFallAnalysis/blob/master/images/plot_trials_sample.png)
137
<br>
138
**plot_one_from_each():** <br>
139
![Image](https://github.com/WJMatthew/SisFallAnalysis/blob/master/images/plot_one_from_each_sample.png)
140
<br>
141
**plot_feats():** <br>
142
![Image](https://github.com/WJMatthew/SisFallAnalysis/blob/master/images/plot_feats_sample.png)