PulseSensorPlayground icon indicating copy to clipboard operation
PulseSensorPlayground copied to clipboard

Generating RMSSD and SDNN from IBI, BPM data

Open sumamovva opened this issue 2 years ago • 2 comments

Hi, I am trying to calculate the RMSDD and SDNN statistics after collecting IBI, BPM data using your library with an Arduino Uno. I was digging around online and actually came across an old commit of your (now) deprecated library, where someone seems to be doing these calculations: https://github.com/WorldFamousElectronics/PulseSensor_Amped_Arduino/pull/15/files

Is there a reason why these changes were not approved? For your reference, I tried modifying the library myself with similar changes, but it seems that RMSDD and SDNN both output 0.0, so the code modifications I made likely have a bug: https://github.com/awatterson22/hrv-analysis/tree/master/PulseSensor_Playground

Do you know how to approach this issue or if you have ideas on how to more simply calculate RMSDD and SDNN using this library?

Thanks!

sumamovva avatar Mar 09 '22 01:03 sumamovva

@sumamovva I can't give you a good reason why the mods were not approved. We are not making an HRV specific device. We have some HRV specific code written for Processing here.

That said, I would think that since you are relying on the IBI values to determine the HRV, and thereby derive the relative change in beat timing, that you could do your calculations in the .ino file. No need to hack into the library, really, in order to get the basic result that you want.

Can you share the algorithm and maths that you're using?

biomurph avatar Mar 09 '22 16:03 biomurph

Hi Joel,

Sorry for the late reply - we were off on break! This is the general algorithm that we plan to use (attached below).

Thank you so much for your help!

Best, Suma

On Wed, Mar 9, 2022 at 11:55 AM Joel Murphy @.***> wrote:

@sumamovva https://github.com/sumamovva I can't give you a good reason why the mods were not approved. We are not making an HRV specific device. We have some HRV specific code written for Processing here https://github.com/WorldFamousElectronics/PulseSensor_Heart-Rate-Variabilty .

That said, I would think that since you are relying on the IBI values to determine the HRV, and thereby derive the relative change in beat timing, that you could do your calculations in the .ino file. No need to hack into the library, really, in order to get the basic result that you want.

Can you share the algorithm and maths that you're using?

— Reply to this email directly, view it on GitHub https://github.com/WorldFamousElectronics/PulseSensorPlayground/issues/147#issuecomment-1063142256, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJZIBXG6AA2B5OIEYAUEG6DU7DJX5ANCNFSM5QIFOC5A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.*** .com>

sumamovva avatar Mar 22 '22 00:03 sumamovva