You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/har_trees/README.md
+38-8
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,10 @@ Working. Tested running on ESP32 with MicroPython 1.24.
18
18
19
19
**NOTE:** This is primarily *example* code for a Human Activity Recognition,
20
20
not a generally-useful pretrained model.
21
-
The dataset used is rather simple, and may not reflect the data you get from your device
22
-
- which will lead to poor classifications.
23
-
For a real world usage you should probably replace the dataset with your own data, collected on your own device.
21
+
The dataset used is rather simple, and may not reflect the data you get from your device.
22
+
Such data mismatch will often lead to poor classification results.
23
+
For a real world usage you should aim to replace the dataset with your own data, collected on your own device.
24
+
Or alternatively use a large and diverse dataset from a multiple users, devices and scenarios.
24
25
25
26
At the bottom on the README there are some instructions and tools for collecting your own data,
26
27
and training a custom model on such a dataset.
@@ -32,19 +33,24 @@ This example uses an approach based on the paper
32
33
For each time-window, time-based statistical features are computed,
33
34
and then classified with a RandomForest model.
34
35
35
-
## Dataset
36
+
## Dataset 1: Common activities (UCI HAR)
37
+
36
38
The example uses the [UCI-HAR dataset](https://www.archive.ics.uci.edu/dataset/341/smartphone+based+recognition+of+human+activities+and+postural+transitions).
37
39
The classes are by default limited to the three static postures (standing, sitting, lying) plus three dynamic activities (walking, walking downstairs, walking upstairs).
38
40
The data is from a waist-mounted smartphone.
39
41
Samplerate is 50Hz.
40
42
By default only the accelerometer data is used (not the gyro).
41
43
44
+

45
+
46
+
## Dataset 2: Excercise detection (custom)
42
47
43
-
## TODO
48
+
This dataset was collected using the data recording tools described further below.
49
+
The data contains 3 kinds of exercises, plus "other" non-exercise activity.
50
+
The classes are: Jumping Jacks, Squats, Lunges, Other.
51
+
The data was collected using an M5Stick C PLUS 2, mounted on the wrist like a watch (button facing forward).
44
52
45
-
- Add an illustrative image
46
-
- Run the training + test/evaluation in CI
47
-
- Add demonstration on LilyGo T-Watch 2020 (BMA423 accelerometer)
0 commit comments