News for hackers. Stuff that matters.
Re:Show HN: Every Breath You Take – Heart Rate Variability T... by lukko on Sunday September 17, 2023 @09:03AM (#37544632)
This is really great! Thank you.

I developed a breathing app (https://www.lungy.app) last year - we're actually doing a study at the moment looking at how heart rate variability changes with breathing exercises. We're using a polysomnograph for gathering the data at the moment - using a Polar H10 may be much simpler. Is it possible to get the raw ECG lead data, or is it just BPM at each time step?

Re:Show HN: Every Breath You Take – Heart Rate Variability T... by kbre93 on Monday September 18, 2023 @04:13AM (#37553587)
Very nice, yeah the Polar H10 sends raw ECG, as well as the calculated heart rate, so could be what you're looking for.
Re:Show HN: Every Breath You Take – Heart Rate Variability T... by lukko on Monday September 18, 2023 @05:34AM (#37554061)
Amazing - thanks! And for respiratory rate, are you just taking the chest rise and fall from the accelerometer? Would it be obscured by general x,y,z body movement or are you filtering it in some way?

It actually looks much smoother than the trace we get from respiratory inductance plethysmography...

Re:Show HN: Every Breath You Take – Heart Rate Variability T... by kbre93 on Monday September 18, 2023 @01:58PM (#37559579)
Yes basically, I remove the gravity component by high pass filtering, and then take just the component of acceleration which is along the axis of chest expansion (i.e. pointing out from the sensor) off the top of my head this is the z axis. But this only works when you are sitting quite still, movement introduces a lot of noise to the acceleration
Re:Show HN: Every Breath You Take – Heart Rate Variability T... by Alias_Knagg on Tuesday September 19, 2023 @04:45AM (#37567125)
You should probably also look at the Movesense sensor I brought up elsewhere in this thread. Signs are indicating (right here!) that you would find it much better supported for a case like yours :-)