Skip to content

Commit a0a6c59

Browse files
authored
Merge pull request #445 from dtischler/main
hr-hrv block fixes
2 parents 0ff7ce2 + bde1f48 commit a0a6c59

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

novel-sensor-projects/ecg-hrv-block-arduino-portenta.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ The ECG signal can also be combined with data from an accelerometer for enhanced
6262

6363
The pads should be connected as follow:
6464

65-
Yellow pad to the left
66-
Red pad to the right
67-
Green pad below the red pad
65+
- Yellow pad to the left.
66+
- Red pad to the right.
67+
- Green pad below the red pad.
6868

6969
> Note: Remember to disconnect the AC from the laptop before sampling.
7070
@@ -80,7 +80,7 @@ Close the Serial Monitor and run `edge-impulse-data-forwarder`.
8080

8181
Select the Edge Impulse project and check that the frequency shows `[SER] Detected data frequency: 50Hz`.
8282

83-
Go to https://studio.edgeimpulse.com/studio/<Your-Project-ID>/acquisition/training
83+
Go to [https://studio.edgeimpulse.com/studio/Your-Project-ID/acquisition/training](https://studio.edgeimpulse.com/studio/Your-Project-ID/acquisition/training)
8484

8585
Select **Length 120.000 ms** and take around 10 to 20 samples for each category to classify. For example, regular working versus stressed. Set aside 10% of the samples for testing.
8686

@@ -102,8 +102,6 @@ Frequency-domain features are: Raw VLF Energy, Raw LF Energy, Raw HF Energy, Raw
102102

103103
I have used ECG, filter preset 1, window size 40 and no HRV features.
104104

105-
![](../.gitbook/assets/ecg-hrv-block-arduino-portenta/wearable-1.jpg)
106-
107105
## Model Training
108106

109107
The training could require some parameters to be modified from the defaults. I have found the following parameters to work well for my dataset, with a 89.3% accuracy. Training cycles **40**, learning rate **0.005**, bacth size **30** and no auto weight.
@@ -130,6 +128,8 @@ Now you will be able to use the model library with your own code. A sample ECG m
130128

131129
> Note: If Arduino Portenta shows `Exit status 74`, double click "Reset", and select the correct port.
132130
131+
![](../.gitbook/assets/ecg-hrv-block-arduino-portenta/wearable-1.jpg)
132+
133133
## Final Notes
134134

135135
Thanks to machine learning, monitoring ECG signals no longer requires transmitting data to a remote computer for expert analysis. Instead, subtle health conditions can be detected by small, offline, wearable devices equipped with machine learning capabilities. These devices can identify over-stressed workers who may be unable to perform their tasks effectively, thus preventing serious harm or consequences.

0 commit comments

Comments
 (0)