PPG Improvements Test 1 - #18
Conversation
|
Thank you for contributing this pull request - just a few 'administration' points.
Thanks again for doing this! Graham. |
|
I tried to update the PR to change Ppg.cpp rather than add Ppg_test.cpp, but I seem to have created my own branch instead, sorry (https://github.com/OpenSeizureDetector/PineTimeSD/tree/ppg_improvements). The good news - it compiles without error :). The bad news - it crashes on start-up on the PineTime device and the device re-boots. I'll have a careful look at the code and see what is happening - it is probably an un-initialised variable or running off the end of an array. |
|
Hey Mr. Jones, no worries at all! I'll take a look at the code and see what is causing it to crash. I apologize for the delay in my message. If you were wondering about the paper I used as a reference for the code it was: https://ieeexplore.ieee.org/document/6091957 - Adaptive Comb Filtering for Motion Artifact Reduction from PPG I also have other methods in mind we could try out but let me know if the start-up issue was resolved! Thanks, |
|
Hi, Sorry for the delay - I haven't had chance to get to this yet - my update to the OpenSeizureDatabase is taking more effort than usual because we have suddenly got a lot more data from a contributor, so I am having to update and test the processing pipeline....... I think that to do this properly we really need to be able to see the raw ppg data, so you can test it offline and prove the algorithm works correctly, becuase we have no visibility of what it is doing once it is on the watch. So we probably need to make a development build of PineTimeSD which will stream the raw ppg data over bluetooth (like we do accelerometer data), then I'll make a modified version of the OpenSeizureDetector phone app to receive it and log it alongside the accelerometer data (and hopefully a 'reference' heart rate monitor at the same time) - then we can save data while we do different activities and process it through different algorithms and pick one to implement. I think that during InfiniTime development they might have had something that saved the raw ppg data - would you like to look into how to do this so that we can have some good data to work with? You might need to ask the InfiniTime folks or check the pull request or commit history on the InfiniTime project github to see if you can find it. Sorry again that I haven't put any effort into this for you! Graham. |
No description provided.