Aura-healthcare / hrv-analysis

Package for Heart Rate Variability analysis in Python
GNU General Public License v3.0
375 stars 93 forks source link

Request #15

Closed agiani99 closed 5 years ago

agiani99 commented 5 years ago

Hi Robin, I am using your code and wonder two things: 1) ULF (i.e. frequences below 0.003Hz are not taken into account? should we? 2) why SD1/SD2 has been defined as SD2/SD1? Best Andrea

clecoued commented 5 years ago

hi @agiani99, it would be a good idea to support ULF (<0.003Hz). The only limitation is that we required a RR-interval list recording for more than 24h (about 90 000 RR samples) to compute a relevant values. Anyway I opened an issue -> https://github.com/Aura-healthcare/hrvanalysis/issues/16

clecoued commented 5 years ago

Regarding the SD1 / SD2, you are right. I opened a bug issue and we are going to fix this quickly -> https://github.com/Aura-healthcare/hrvanalysis/issues/17

agiani99 commented 5 years ago

Hallo Clement, Thanks for reply. I agree. In case could we always check if(df['First_columnn_label'].count <20000) .... Best Andrea

-----Ursprüngliche Nachricht----- Von: Clément Le Couedic [mailto:notifications@github.com] Gesendet: Montag, 12. August 2019 16:58 An: Aura-healthcare/hrvanalysis hrvanalysis@noreply.github.com Cc: Andrea Zaliani Andrea.Zaliani@ime.fraunhofer.de; Mention mention@noreply.github.com Betreff: Re: [Aura-healthcare/hrvanalysis] Request (#15)

hi @agiani99 https://github.com/agiani99 , it would be a good idea to support ULF (<0.003Hz). The only limitation is that we required a RR-interval list recording for more than 24h (about 90 000 RR samples) to compute a relevant values.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Aura-healthcare/hrvanalysis/pull/15?email_source=notifications&email_token=ACRZUZAF32DH3INM6CHP5DTQEF3ABA5CNFSM4IJIQ7NKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4CZUEQ#issuecomment-520460818 , or mute the thread https://github.com/notifications/unsubscribe-auth/ACRZUZAUNFHWVTCXZBCTHH3QEF3ABANCNFSM4IJIQ7NA . https://github.com/notifications/beacon/ACRZUZDUAB3U2MTAWHIAD7TQEF3ABA5CNFSM4IJIQ7NKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4CZUEQ.gif

agiani99 commented 5 years ago

Hi Clement, Beside what you correctly mentioned, in case of a 24hrs recording, there is a need to adjust also the ranges of filtered RR (NN) as I saw amazing differences using 2000-3000 as maximum allowed vs 5000-6000 in data preparation sections. Best Andrea

-----Ursprüngliche Nachricht----- Von: Clément Le Couedic [mailto:notifications@github.com] Gesendet: Montag, 12. August 2019 16:58 An: Aura-healthcare/hrvanalysis hrvanalysis@noreply.github.com Cc: Andrea Zaliani Andrea.Zaliani@ime.fraunhofer.de; Mention mention@noreply.github.com Betreff: Re: [Aura-healthcare/hrvanalysis] Request (#15)

hi @agiani99 https://github.com/agiani99 , it would be a good idea to support ULF (<0.003Hz). The only limitation is that we required a RR-interval list recording for more than 24h (about 90 000 RR samples) to compute a relevant values.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Aura-healthcare/hrvanalysis/pull/15?email_source=notifications&email_token=ACRZUZAF32DH3INM6CHP5DTQEF3ABA5CNFSM4IJIQ7NKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4CZUEQ#issuecomment-520460818 , or mute the thread https://github.com/notifications/unsubscribe-auth/ACRZUZAUNFHWVTCXZBCTHH3QEF3ABANCNFSM4IJIQ7NA . https://github.com/notifications/beacon/ACRZUZDUAB3U2MTAWHIAD7TQEF3ABA5CNFSM4IJIQ7NKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4CZUEQ.gif

clecoued commented 5 years ago

Hi @agiani99, We know that outliers NN intervals ( > 3000 ms) may have an impact on the computation of the frequency features. We choose to set the upper boundary to 2000 - 3000 ms (heart rate at 20 bpm)because it is the limit of what is physiologically acceptable. Higher NN interval would not make sense.

robinchampseix commented 5 years ago

Hi Andrea,

Thank you for your message and sorry for the late reply. There is no standard to our best knowledge regarding which ratio to use (SD2/SD1 vs SD1/SD2). Each feature could be used interchangeably as the 2 ratios are simply inverse numbers.

As Clement previously stated, it is very hard to have enough quality data to provide relevant and robust indicators for ULF bands. But we will implement it anyway :)

Kind Regards, Robin