PulseSensor_Heart-Rate-Variabilty
PulseSensor_Heart-Rate-Variabilty copied to clipboard
Improvements I should like to see done to the new Visualizer.
- Change the title to: PulseSensor HRV Biofeedback.
- Change the main graph from IBI to BPM, and graph it as a bar graph.
- Change the graph under the circle to HRV, with a bar changing its height as HRV varies. May be taking the average of 3 beats (otherwise it would vary to fast).
- Eliminate the Frequency domain plot.
-
Can do.
-
Ok, so instead of the blue IBI waveform in the large 'main' window, a bar graph of BPM. Should the BPM increment with every heartbeat? A bar graph instead of a waveform?
-
Averaging every 3 beats would essentially be a low pass filter. You would not see the largest difference between beats. Right now, it graphs the difference between the peak and trough of the IBI wave.
-
Can do.
- Yes, BPM, a bar for every beat. Something like this:
- We have to experiment: we can start with like it is now. Depending in what we obtain, then average 2 beats, then 3, and see how it behaves.
My problem is that until I see the result, I can not decide if it is good enough. 2. It can be a step graph, like the upper graph of the IBI in your Serial Plotter of the PulseSensor_BPM. 3. Since you say: " You would not see the largest difference between beats", then graph " the difference between the peak and trough of the IBI wave", but not the IBI, but its inverse, the BPM.
On Sun, May 27, 2018 at 2:16 PM, Joel Murphy [email protected] wrote:
Can do. 2.
Ok, so instead of the blue IBI waveform in the large 'main' window, a bar graph of BPM. Should the BPM increment with every heartbeat? A bar graph instead of a waveform? 3.
Averaging every 3 beats would essentially be a low pass filter. You would not see the largest difference between beats. Right now, it graphs the difference between the peak and trough of the IBI wave. 4.
Can do.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/WorldFamousElectronics/PulseSensor_Heart-Rate-Variabilty/issues/7#issuecomment-392352241, or mute the thread https://github.com/notifications/unsubscribe-auth/Aj2vqiEZ-b5eHaXvpxpO4nLu84NZ2PYNks5t2u15gaJpZM4UPVm5 .
-- George Rod 954-294-0700
@georod99 The code that I'm developing for this is here. I want to make improvements to it there before I merge it into the WFE github.
It is still a work in progress, but I have addressed your 1 and 4 above. Right now, the main graph is a timeline trace of the IBI values. It is easy to change that to a timeline graph of the BPM values for every beat. The breath prompt is paced to breaths per minute. The HRV graph is showing the difference in BPM between the trough and the peak of the IBI waveform.
At 74, my HRV is very low. I have to find a neighbor (a young one) to test the graph on them.
@biomurph Thanks to all great work! I am currently a university student that work on a project to study the HRV biofeedback.
- Can I get the version that shows the main graph of timeline trace of the IBI values, please? Because this is more make sense for my study instead of the BPM version now.
- For the latest version, the HRV value and the bar graph of HRV are in what unit? Is it in a millisecond? What is the reason behind to use BPM waveform amplitude to get the HRV value? Your reply is really appreciated. Thanks.
It will be a pleasure to help you, but it is now more than a year that I do not work in this project, and my pal Alz does not help. I'm 75 years old. Let me check my notes and I'll send them to you. What are you studying? Year? What university?
On Wed, Jun 19, 2019 at 7:56 AM houshen0806 [email protected] wrote:
@biomurph https://github.com/biomurph Thanks to all great work! I am currently a university student that work on a project to study the HRV biofeedback.
- Can I get the version that shows the main graph of timeline trace of the IBI values, please? Because this is more make sense for my study instead of the BPM version now.
- For the latest version, the HRV value and the bar graph of HRV are in what unit? Is it in a millisecond? What is the reason behind to use BPM waveform amplitude to get the HRV value? Your reply is really appreciated. Thanks.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/WorldFamousElectronics/PulseSensor_Heart-Rate-Variabilty/issues/7?email_source=notifications&email_token=AI627KWPWDXJX6CZIXBA7OLP3INHLA5CNFSM4FB5LG42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYBUANA#issuecomment-503529524, or mute the thread https://github.com/notifications/unsubscribe-auth/AI627KVYP2STRH355EQGPUTP3INHLANCNFSM4FB5LG4Q .
-- George Rod 954-294-0700
My relationship [image: HRV-10677.jpg]
with HRV Biofeedback started when I visited a therapist that used this method to help his patients. He used the Kubios (BioTrace) device ($5000).
Using Google, I came across the PulseSensor. (Buy the original one, not the cheap Chinese copy. I had to throw them in the trash).
So, I bought an Arduino UNO and a sensor. And then began the arduous task of learning how to program in a new language. I joined an Arduino club in Fort Lauderdale but they were of no help.
Then I started a very fruitful correspondence with Joel Murphy ( [email protected]) and what happened is that he changed his original code to comply with my suggestions. This was all what I did. He and his mate Yury did the hard work.
Note: Do not write directly to Joel. Rather post your questions to
https://github.com/WorldFamousElectronics/PulseSensorPlayground/issues
Their final project had to be seen in Processing, what is more complicated. What I wanted was to watch it in the Serial Plotter, without having to load the Processing sketch.
I don’t know how much you have advanced in the study of HRV, but just in case, let me tell you that the research up to now (made mainly in Europe) is that if you pace your breathing to the value where your HRV is maximum, you obtain health benefits. This value is around 6 breaths per minute, much less than the normal breathing pace of 9 to 24 ( https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4104929/#B51)
(I will include in this email the best articles that I have found on the subject.)
If you make the circuit shown in https://pulsesensor.com/pages/getting-advanced you will see something like this:
The yellow line in the upper part is the IBI. It is with these values that HRV is calculated.
What I wanted was to have a bar graph on the HRV in real time.
(A note here): In the doctor’s office, when they say 60 BPM, they are meaning the average number of beats if you measure the number of beats during 1 minute. Average because usually they count the beats during 15 seconds and multiply by 4. But we have seen that the BPM vary during the aspiration and expiration. From now on, when we say BPM, we are referring to IBI values, that is, the BPM that we would obtain if the IBI would be constant during one minute.
We ended our communications then they improved the sketch to this:
https://github.com/biomurph/PulseSensor_Heart-Rate-Variabilty
This is an example of what I obtained:
On Wed, Jun 19, 2019 at 8:22 AM George Rod [email protected] wrote:
It will be a pleasure to help you, but it is now more than a year that I do not work in this project, and my pal Alz does not help. I'm 75 years old. Let me check my notes and I'll send them to you. What are you studying? Year? What university?
On Wed, Jun 19, 2019 at 7:56 AM houshen0806 [email protected] wrote:
@biomurph https://github.com/biomurph Thanks to all great work! I am currently a university student that work on a project to study the HRV biofeedback.
- Can I get the version that shows the main graph of timeline trace of the IBI values, please? Because this is more make sense for my study instead of the BPM version now.
- For the latest version, the HRV value and the bar graph of HRV are in what unit? Is it in a millisecond? What is the reason behind to use BPM waveform amplitude to get the HRV value? Your reply is really appreciated. Thanks.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/WorldFamousElectronics/PulseSensor_Heart-Rate-Variabilty/issues/7?email_source=notifications&email_token=AI627KWPWDXJX6CZIXBA7OLP3INHLA5CNFSM4FB5LG42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYBUANA#issuecomment-503529524, or mute the thread https://github.com/notifications/unsubscribe-auth/AI627KVYP2STRH355EQGPUTP3INHLANCNFSM4FB5LG4Q .
-- George Rod 954-294-0700
-- George Rod 954-294-0700
@georod99 That’s very kind of you, thanks a lot. I wish I can still maintain my passion like you when I am 75 years old. I wish you a happy life every day, and health will always be there. I am currently a final year student of Mechanical Engineering at UTAR, Malaysia. Just a beginner on this HRV study and programming stuff, so your help is really appreciated. My project is to build a prototype that can measure HRV and help in biofeedback training to regulate good mood. For the paper really useful for me as a reference. My lecturer has done some research on HRV and also found that deep breathing may help in maintain mindfulness. Here is the video that one of my senior creates to guide on deep breathing (https://www.youtube.com/watch?v=bmp6D8h53OU). That video also in the pace of 6 breaths per minute. Hope that might help if you wish to have deep breathing session, it is easier to use, just open youtube video and can get the guide to perform deep breathing practice. I was finished build the prototype and now on going to collect data and do the sampling. Now I am finding the ways to display and record down the data. And this brings me here and meet you. Now I have well understood to the BPM in the discussion after your explanation. Thanks for all the great work before and really appreciate your help. Thanks!
Thanks. There are several apps for iPhone and android like this. Later I will send you the names. I sell in eBay gps's with the map of many countries, and I have sold several for Malaysia. If you pay for the shipping, I will send you one, free of charge, or maybe for $1.00, just to comply with eBay policies.
On Wed, Jun 19, 2019 at 11:01 AM houshen0806 [email protected] wrote:
@georod99 https://github.com/georod99 That’s very kind of you, thanks a lot. I wish I can still maintain my passion like you when I am 75 years old. I wish you a happy life every day, and health will always be there. I am currently a final year student of Mechanical Engineering at UTAR, Malaysia. Just a beginner on this HRV study and programming stuff, so your help is really appreciated. My project is to build a prototype that can measure HRV and help in biofeedback training to regulate good mood. For the paper really useful for me as a reference. My lecturer has done some research on HRV and also found that deep breathing may help in maintain mindfulness. Here is the video that one of my senior creates to guide on deep breathing (https://www.youtube.com/watch?v=bmp6D8h53OU). That video also in the pace of 6 breaths per minute. Hope that might help if you wish to have deep breathing session, it is easier to use, just open youtube video and can get the guide to perform deep breathing practice. I was finished build the prototype and now on going to collect data and do the sampling. Now I am finding the ways to display and record down the data. And this brings me here and meet you. Now I have well understood to the BPM in the discussion after your explanation. Thanks for all the great work before and really appreciate your help. Thanks!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/WorldFamousElectronics/PulseSensor_Heart-Rate-Variabilty/issues/7?email_source=notifications&email_token=AI627KQQ5LQMCFGGNWZ2KJDP3JC3NA5CNFSM4FB5LG42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYCETTA#issuecomment-503597516, or mute the thread https://github.com/notifications/unsubscribe-auth/AI627KW6YHOKPQDCXGSU6WDP3JC3NANCNFSM4FB5LG4Q .
-- George Rod 954-294-0700
Hi guys! Thanks for using Pulse Sensor to learn about HRV! @georod99 I do plan to dress up the HRV_Biofeedback sketch to add features like GUI buttons to change the speed of the breath-rate prompt. Any other features that would be helpful?
@houshen0806 if you haven't already, check out the PulseSensor Playground Tools page for useful user functions in Arduino. For example, the getBeatsPerMinute()
function will return the latest calculated BPM (averaged over 10 beats). While this will not be useful for your HRV work, try the getInterBeatIntervalMs()
which will return the latest IBI value in milliseconds which will be useful for HRV. You can modify the Arduino code so that only the IBI values are printed and then it's easy to graph on the Arduino Serial Plotter.
Good luck!
Dear houshen0806: Could you write to me directly to [email protected] to talk about the gps? Thanks.
On Wed, Jun 19, 2019 at 2:59 PM Joel Murphy [email protected] wrote:
Hi guys! Thanks for using Pulse Sensor to learn about HRV! @georod99 https://github.com/georod99 I do plan to dress up the HRV_Biofeedback sketch to add features like GUI buttons to change the speed of the breath-rate prompt. Any other features that would be helpful?
@houshen0806 https://github.com/houshen0806 if you haven't already, check out the PulseSensor Playground Tools https://github.com/WorldFamousElectronics/PulseSensorPlayground/tree/master/resources page for useful user functions in Arduino. For example, the getBeatsPerMinute() function will return the latest calculated BPM (averaged over 10 beats). While this will not be useful for your HRV work, try the getInterBeatIntervalMs() which will return the latest IBI value in milliseconds which will be useful for HRV. You can modify the Arduino code so that only the IBI values are printed and then it's easy to graph on the Arduino Serial Plotter.
Good luck!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/WorldFamousElectronics/PulseSensor_Heart-Rate-Variabilty/issues/7?email_source=notifications&email_token=AI627KSOJALR7KATMBQTBS3P3J6XJA5CNFSM4FB5LG42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYC2RIA#issuecomment-503687328, or mute the thread https://github.com/notifications/unsubscribe-auth/AI627KXN3TU44GQSN6VABZTP3J6XJANCNFSM4FB5LG4Q .
-- George Rod 954-294-0700
Dear Joel: In your opinion, what is the accuracy of measuring HRV with the PulseSensor and with the camera of a phone?
@georod99 The PulseSensor sample rate is 500Hz, which I have read is fast enough to get accurate BPM and IBI when doing PPG based heart monitoring. PulseSensor code also determines the 'moment of heart beat' at very close to the mid-point in the rising pulse waveform. That, I've read, is the best way to closely match the timing of the R wave in an ECG.
I don't know anything about how smartphones do their IBI calculations, or what their sample rates are.