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: README.md
+58-25Lines changed: 58 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,10 @@ Below there are described some of the key features of this project, but to see w
26
26
27
27
## How to your train own model?
28
28
29
-
### Setup
29
+
<details>
30
+
<summary>
31
+
32
+
### Setup</summary>
30
33
31
34
When using this framework, it is a good idea to setup a virtual environment:
32
35
```
@@ -39,7 +42,13 @@ Tested with Python 3.7.9, on Win10, macOS, and Ubuntu Linux operating systems.
39
42
40
43
Note that to activate the virtual environment on Windows instead run `./venv/Scripts/activate`.
41
44
42
-
### Usage
45
+
</details>
46
+
47
+
48
+
<details>
49
+
<summary>
50
+
51
+
### Usage</summary>
43
52
44
53
To train a model, simply run:
45
54
```
@@ -48,7 +57,13 @@ python main.py
48
57
49
58
The script supports multiple arguments. To see supported arguments, run `python main.py -h`.
50
59
51
-
### Training history
60
+
</details>
61
+
62
+
63
+
<detailsopen>
64
+
<summary>
65
+
66
+
### Training history</summary>
52
67
53
68
To visualize training history, use TensorBoard (with example):
54
69
```
@@ -64,31 +79,14 @@ Best model reached a macro-averaged F1 score of 99.66 % on the validation set, a
64
79
65
80
**Disclaimer:** This model was only trained for testing purposes. The input features were stratified on sample-level and not patient-level, and thus validation performance will likely not represent true performance on new data. However, having a trained model enables us to test it in a Mobile app.
66
81
67
-
## How to test the model in a mobile app?
68
-
69
-
### Converting model to TF-Lite
70
-
71
-
In order to be able to use the trained model in a mobile app, it is necessary to convert the model to a compatible format. TensorFlow Lite is an inference engine tailored for mobile devices. To convert the model to TF-Lite, simply run this command:
To use the app, you need an Android phone and have developer mode enabled (see [here](https://developer.android.com/studio/debug/dev-options) for how to enable it). Then simply download the APK from [here](https://github.com/andreped/DSS/releases/tag/v0.1.0), double-click to install, and use the app as you normally would.
86
-
87
-
Info on how the mobile app was developed (and how to make your own app), can be found [in the wiki](https://github.com/andreped/DSS/wiki/Getting-started-with-mobile-development).
88
-
89
-
## Which data is available?
90
-
91
-
### SmartWatch Gestures
89
+
#### SmartWatch Gestures
92
90
93
91
The current data used to train the AI model is the SmartWatch Gestures dataset,
94
92
which is available in [tensorflow-datasets](https://www.tensorflow.org/datasets/catalog/smartwatch_gestures). The dataset has the
@@ -108,6 +106,41 @@ FeaturesDict({
108
106
'participant': tf.uint8,
109
107
})
110
108
```
109
+
</details>
110
+
111
+
112
+
## How to test the model in a mobile app?
113
+
114
+
<details>
115
+
<summary>
116
+
117
+
### Converting model to TF-Lite</summary>
118
+
119
+
In order to be able to use the trained model in a mobile app, it is necessary to convert the model to a compatible format. TensorFlow Lite is an inference engine tailored for mobile devices. To convert the model to TF-Lite, simply run this command:
To use the app, you need an Android phone and have developer mode enabled (see [here](https://developer.android.com/studio/debug/dev-options) for how to enable it). Then simply download the APK from [here](https://github.com/andreped/DSS/releases/tag/v0.1.0), double-click to install, and use the app as you normally would.
140
+
141
+
Info on how the mobile app was developed (and how to make your own app), can be found [in the wiki](https://github.com/andreped/DSS/wiki/Getting-started-with-mobile-development).
0 commit comments