polarofficial / polar-ble-sdk

Repository includes SDK and code examples. More info https://polar.com/en/developers
Other
447 stars 147 forks source link

Normalizing ECG and ACC Data for Visualization from PolarH10 #463

Open gauricollab09 opened 4 weeks ago

gauricollab09 commented 4 weeks ago

Platform your question concerns:

Device:

Description:

Hi everyone, I'm working on a project where I need to visualize ECG and ACC signals from PolarH10. Specifically, I want to plot the signals from the last 10 seconds of data in a small rectangle on an image. To fit the plots within this rectangle, I normalize the data each time I receive a new data packet from Polar.

Here’s the problem:

Whenever I get a new data packet, I normalize the values for the entire 10 seconds of data. This causes issues because if the new packet contains very high values, the existing normalized values become very small, and if the new packet contains very low values, the existing plots become large. This makes the plots very dynamic and hard to read.

One of the suggested way to deal with this issue is to use local gain, but I'm not sure how to implement this.

Can someone explain how to manage this issue or share how they’ve solved similar problems? Any advice or pointers to resources would be greatly appreciated!

Thank you!